[
  {
    "path": ".gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n.yarn/install-state.gz\n\n# testing\n/coverage\n\n# next.js\n/.next/\n/out/\n\n# production\n/build\n\n# misc\n.DS_Store\n*.pem\n\n# debug\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# local env files\n.env*.local\n\n# vercel\n.vercel\n\n# typescript\n*.tsbuildinfo\nnext-env.d.ts\n\n.idea"
  },
  {
    "path": "backend/.gitignore",
    "content": "node_modules/\nnode_modules/*\n\n.env\n"
  },
  {
    "path": "backend/data.json",
    "content": ""
  },
  {
    "path": "backend/index.config.js",
    "content": "module.exports = {\n  apps: [\n    {\n      name: \"spread\",\n      script: \"nodemon\",\n      args: \"src/index.js\", // Arguments to pass to nodemon\n      interpreter: \"none\", // This tells PM2 to use the system's PATH to find the interpreter\n      env: {\n        NODE_ENV: \"production\"\n      }\n    }\n  ]\n};\n"
  },
  {
    "path": "backend/nodemon.json",
    "content": "{\n  \"watch\": [\"*.js\"],\n  \"ext\": \"js,json\",\n  \"ignore\": [\n    \"node_modules/\"\n  ]\n}\n"
  },
  {
    "path": "backend/package.json",
    "content": "{\n  \"name\": \"server\",\n  \"version\": \"1.0.0\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n    \"dev\": \"nodemon src/index.js\"\n  },\n  \"keywords\": [],\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"description\": \"\",\n  \"dependencies\": {\n    \"@urql/core\": \"^5.0.5\",\n    \"axios\": \"^1.7.3\",\n    \"cookie-parser\": \"^1.4.6\",\n    \"cors\": \"^2.8.5\",\n    \"dotenv\": \"^16.4.5\",\n    \"ethers\": \"^5.7.2\",\n    \"express\": \"^4.19.2\",\n    \"fhevmjs\": \"^0.4.0-3\",\n    \"multer\": \"^1.4.5-lts.1\",\n    \"node\": \"^20.16.0\",\n    \"node-fetch\": \"^3.3.2\",\n    \"nodemon\": \"^3.1.4\",\n    \"pm2\": \"^5.4.2\"\n  }\n}\n"
  },
  {
    "path": "backend/src/index.js",
    "content": "const express = require(\"express\");\nconst dotenv = require(\"dotenv\");\nconst multer = require(\"multer\");\nconst fs = require(\"fs\");\nconst cors = require(\"cors\");\nconst path = require(\"path\");\nconst cookieParser = require(\"cookie-parser\");\nconst crypto = require(\"crypto\");\nconst { JsonRpcProvider, ethers } = require(\"ethers\");\nconst { defaultAbiCoder } = require(\"ethers/lib/utils\");\nconst { FHE, createInstance } = require(\"fhevmjs\");\nconst axios = require(\"axios\");\nconst FormData = require(\"form-data\");\nconst app = express();\n\ndotenv.config();\n\napp.use(express.json());\napp.use(\n  express.urlencoded({\n    extended: true,\n  })\n);\n\nconst allowedIps = [\n  \"http://localhost:3000\",\n  \"https://onenfs.github.io/\",\n  \"https://onenfs.vercel.app\",\n];\n\napp.use(\n  cors({\n    origin: function (origin, callback) {\n      if (allowedIps.indexOf(origin) !== -1 || !origin) {\n        callback(null, true);\n      } else {\n        callback(new Error(\"Not allowed by CORS\"));\n      }\n    },\n    methods: [\"GET\", \"POST\", \"PUT\", \"DELETE\", \"FETCH\"],\n\n    credentials: true,\n  })\n);\n\napp.use(cookieParser());\n\n// Configure multer for file uploads\nconst storage = multer.diskStorage({\n  destination: (req, file, cb) => {\n    cb(null, \"uploads/audio\");\n  },\n  filename: (req, file, cb) => {\n    cb(null, Date.now() + path.extname(file.originalname));\n  },\n});\nconst upload = multer({ storage: storage });\nlet ipfsHash;\n\nfunction encrypt(text, secretKey) {\n  const cipher = crypto.createCipher(\"aes-128-ecb\", secretKey);\n  let encrypted = cipher.update(text, \"utf8\", \"hex\");\n  encrypted += cipher.final(\"hex\");\n  return encrypted;\n}\n\nfunction decrypt(encryptedText, secretKey) {\n  const decipher = crypto.createDecipher(\"aes-128-ecb\", \"\" + secretKey + \"\");\n  let decrypted = decipher.update(encryptedText, \"hex\", \"utf8\");\n  decrypted += decipher.final(\"utf8\");\n  return decrypted;\n}\n\n// for uploading music file\napp.post(\n  \"/endpoint\",\n  upload.fields([{ name: \"musicFile\" }, { name: \"coverImage\" }]),\n  async (req, res) => {\n    var JWT = process.env.JWT;\n    const { userAddress } = req.body;\n\n    const musicFile = req.files[\"musicFile\"] ? req.files[\"musicFile\"][0] : null;\n    // const coverImage = req.files[\"coverImage\"]\n    //   ? req.files[\"coverImage\"][0]\n    //   : null;\n    if (musicFile) {\n      const formData = new FormData();\n      const fileStream = fs.createReadStream(musicFile.path);\n      formData.append(\"file\", fileStream);\n\n      const pinataMetadata = JSON.stringify({\n        name: musicFile.originalname,\n      });\n      formData.append(\"pinataMetadata\", pinataMetadata);\n\n      const pinataOptions = JSON.stringify({\n        cidVersion: 1,\n      });\n      formData.append(\"pinataOptions\", pinataOptions);\n\n      try {\n        const pinataResponse = await axios.post(\n          \"https://api.pinata.cloud/pinning/pinFileToIPFS\",\n          formData,\n          {\n            headers: {\n              Authorization: `Bearer ${JWT}`,\n              ...formData.getHeaders(),\n            },\n          }\n        );\n\n        ipfsHash = pinataResponse.data.IpfsHash;\n        const FHE_LIB_ADDRESS = \"0x000000000000000000000000000000000000005d\";\n\n        const provider = new ethers.providers.JsonRpcProvider(\n          \"https://testnet.inco.org\",\n          {\n            chainId: 9090,\n            name: \"Inco Gentry Testnet\",\n          }\n        );\n\n        const createFhevmInstance = async () => {\n          const network = await provider.getNetwork();\n          const chainId = +network.chainId.toString();\n          // Get blockchain public key\n          const ret = await provider.call({\n            to: FHE_LIB_ADDRESS,\n            // first four bytes of keccak256('fhePubKey(bytes1)') + 1 byte for library\n            data: \"0xd9d47bb001\",\n          });\n\n          const decoded = defaultAbiCoder.decode([\"bytes\"], ret);\n          const publicKey = decoded[0];\n          const instance = await createInstance({ chainId, publicKey });\n          console.log(\"created instance\");\n          return instance;\n        };\n\n        const getInstance = async (myVariable) => {\n          const instance = await createFhevmInstance();\n\n          // Create a provider\n          const provider1 = new ethers.providers.JsonRpcProvider(\n            \"https://testnet.inco.org\"\n          );\n\n          // Create a wallet instance\n          const wallet = new ethers.Wallet(\n            \"b726794ec951fa89e8d8c145a44888899291b7593a5c0b21d24d66cb32802f09\",\n            provider1\n          );\n\n          const signer = wallet.connect(provider);\n          // Example ERC-20 token contract address and ABI (basic)\n          const ERC20_ABI = [\n            {\n              inputs: [\n                {\n                  internalType: \"address\",\n                  name: \"newAdmin\",\n                  type: \"address\",\n                },\n              ],\n              name: \"addAdmin\",\n              outputs: [],\n              stateMutability: \"nonpayable\",\n              type: \"function\",\n            },\n            {\n              inputs: [],\n              stateMutability: \"nonpayable\",\n              type: \"constructor\",\n            },\n            {\n              inputs: [],\n              name: \"InvalidShortString\",\n              type: \"error\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"string\",\n                  name: \"str\",\n                  type: \"string\",\n                },\n              ],\n              name: \"StringTooLong\",\n              type: \"error\",\n            },\n            {\n              anonymous: false,\n              inputs: [],\n              name: \"EIP712DomainChanged\",\n              type: \"event\",\n            },\n            {\n              inputs: [],\n              name: \"setNewRandomNumber\",\n              outputs: [],\n              stateMutability: \"nonpayable\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n                {\n                  internalType: \"string\",\n                  name: \"encryptedIpfsCid\",\n                  type: \"string\",\n                },\n                {\n                  internalType: \"bytes\",\n                  name: \"salt1\",\n                  type: \"bytes\",\n                },\n                {\n                  internalType: \"bytes\",\n                  name: \"salt2\",\n                  type: \"bytes\",\n                },\n                {\n                  internalType: \"bytes\",\n                  name: \"salt3\",\n                  type: \"bytes\",\n                },\n                {\n                  internalType: \"address\",\n                  name: \"creator\",\n                  type: \"address\",\n                },\n              ],\n              name: \"storeCid\",\n              outputs: [],\n              stateMutability: \"nonpayable\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n                {\n                  internalType: \"address\",\n                  name: \"newCreator\",\n                  type: \"address\",\n                },\n                {\n                  internalType: \"euint32\",\n                  name: \"salt1\",\n                  type: \"uint256\",\n                },\n                {\n                  internalType: \"euint32\",\n                  name: \"salt2\",\n                  type: \"uint256\",\n                },\n                {\n                  internalType: \"euint32\",\n                  name: \"salt3\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"updateRandomNumberOrCreator\",\n              outputs: [],\n              stateMutability: \"nonpayable\",\n              type: \"function\",\n            },\n            {\n              inputs: [],\n              name: \"eip712Domain\",\n              outputs: [\n                {\n                  internalType: \"bytes1\",\n                  name: \"fields\",\n                  type: \"bytes1\",\n                },\n                {\n                  internalType: \"string\",\n                  name: \"name\",\n                  type: \"string\",\n                },\n                {\n                  internalType: \"string\",\n                  name: \"version\",\n                  type: \"string\",\n                },\n                {\n                  internalType: \"uint256\",\n                  name: \"chainId\",\n                  type: \"uint256\",\n                },\n                {\n                  internalType: \"address\",\n                  name: \"verifyingContract\",\n                  type: \"address\",\n                },\n                {\n                  internalType: \"bytes32\",\n                  name: \"salt\",\n                  type: \"bytes32\",\n                },\n                {\n                  internalType: \"uint256[]\",\n                  name: \"extensions\",\n                  type: \"uint256[]\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getCreator\",\n              outputs: [\n                {\n                  internalType: \"address\",\n                  name: \"\",\n                  type: \"address\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getDecryptedCid\",\n              outputs: [\n                {\n                  internalType: \"string\",\n                  name: \"\",\n                  type: \"string\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getDecryptedSalt1\",\n              outputs: [\n                {\n                  internalType: \"uint32\",\n                  name: \"\",\n                  type: \"uint32\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getDecryptedSalt2\",\n              outputs: [\n                {\n                  internalType: \"uint32\",\n                  name: \"\",\n                  type: \"uint32\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getDecryptedSalt3\",\n              outputs: [\n                {\n                  internalType: \"uint32\",\n                  name: \"\",\n                  type: \"uint32\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [],\n              name: \"getNewRandomNumber\",\n              outputs: [\n                {\n                  internalType: \"uint32\",\n                  name: \"\",\n                  type: \"uint32\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getRandomNumberAndCreator\",\n              outputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"\",\n                  type: \"uint256\",\n                },\n                {\n                  internalType: \"address\",\n                  name: \"\",\n                  type: \"address\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getSalt1\",\n              outputs: [\n                {\n                  internalType: \"euint32\",\n                  name: \"\",\n                  type: \"uint256\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getSalt2\",\n              outputs: [\n                {\n                  internalType: \"euint32\",\n                  name: \"\",\n                  type: \"uint256\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n            {\n              inputs: [\n                {\n                  internalType: \"uint256\",\n                  name: \"tokenId\",\n                  type: \"uint256\",\n                },\n              ],\n              name: \"getSalt3\",\n              outputs: [\n                {\n                  internalType: \"euint32\",\n                  name: \"\",\n                  type: \"uint256\",\n                },\n              ],\n              stateMutability: \"view\",\n              type: \"function\",\n            },\n          ];\n\n          // Replace with the contract address of the inco you want to interact with\n          const TOKEN_CONTRACT_ADDRESS =\n            \"0x533eD2257CFA5fb172F08a10e82756D5a0Af16f9\";\n\n          // Create a contract instance\n          const tokenContract = await new ethers.Contract(\n            TOKEN_CONTRACT_ADDRESS,\n            ERC20_ABI,\n            signer\n          );\n          const e = await tokenContract.setNewRandomNumber();\n\n          const idRandom = await tokenContract.getNewRandomNumber();\n          myVariable = idRandom;\n          global.myVariable = idRandom;\n\n          // Generate a random 16-digit number as a string\n          const randomNumber = Math.floor(Math.random() * 10 ** 16)\n            .toString()\n            .padStart(16, \"0\");\n\n          // Split the number into two 8-digit parts\n          const salt1tmp = instance.encrypt32(Number(randomNumber.slice(0, 5)));\n          const salt2tmp = instance.encrypt32(\n            Number(randomNumber.slice(5, 10))\n          );\n          const salt3tmp = instance.encrypt32(\n            Number(randomNumber.slice(10, 16))\n          );\n\n          const toHexString = (bytes) =>\n            bytes.reduce(\n              (str, byte) => str + byte.toString(16).padStart(2, \"0\"),\n              \"\"\n            );\n\n          const salt1 = \"0x\" + toHexString(salt1tmp);\n          const salt2 = \"0x\" + toHexString(salt2tmp);\n          const salt3 = \"0x\" + toHexString(salt3tmp);\n\n          // Encrypt message with AES\n          const aesEncrypted = encrypt(ipfsHash, randomNumber);\n          // Function to store CID in the contract\n          async function storeCid(\n            idRandom,\n            aesEncrypted,\n            salt1,\n            salt2,\n            salt3,\n            userAddress\n          ) {\n            try {\n              const result = await tokenContract.storeCid(\n                idRandom,\n                aesEncrypted,\n                salt1,\n                salt2,\n                salt3,\n                userAddress,\n                {\n                  gasLimit: 2500000,\n                }\n              );\n              console.log(\"Transaction storing CID result:\", result);\n            } catch (error) {\n              console.error(\"Error storing CID:\", error);\n            }\n          }\n\n          // Execute the function\n          const walletAddress = ethers.utils.getAddress(wallet.address);\n          await storeCid(\n            idRandom,\n            aesEncrypted,\n            salt1,\n            salt2,\n            salt3,\n            userAddress\n          );\n          return idRandom;\n        };\n        let myVariable;\n        const dbh = await getInstance(myVariable);\n        global.myGlobalVariable = ipfsHash;\n\n        console.log(\"Pinata Response:\", pinataResponse.data);\n        res.status(200).send({\n          message: \"Data received and uploaded successfully\",\n          // pinataResponse: pinataResponse.data,\n          value: dbh,\n        });\n\n        // Unlink (delete) the music file from the server\n        fs.unlink(musicFile.path, (err) => {\n          if (err) {\n            console.error(\"Error deleting file:\", err);\n          } else {\n            console.log(\"File deleted successfully\");\n          }\n        });\n      } catch (error) {\n        console.error(\"Error uploading to Pinata:\", error);\n        res.status(500).send({\n          message: \"Failed to upload to Pinata\",\n          error: error.message,\n        });\n      }\n    } else {\n      res.status(400).send(\"No music file provided\");\n    }\n  }\n);\n\n// for playing music file\napp.get(\"/hashsong/:randomId\", async (req, res) => {\n  const { randomId } = req.params;\n  console.log(\"randomId\", randomId);\n  const provider2 = new ethers.providers.JsonRpcProvider(\n    \"https://testnet.inco.org\",\n    {\n      chainId: 9090,\n      name: \"Inco Gentry Testnet\",\n    }\n  );\n  // Create a provider\n  const provider3 = new ethers.providers.JsonRpcProvider(\n    \"https://testnet.inco.org\"\n  );\n\n  // Create a wallet instance\n  const wallet2 = new ethers.Wallet(\n    \"b726794ec951fa89e8d8c145a44888899291b7593a5c0b21d24d66cb32802f09\",\n    provider3\n  );\n\n  const signer2 = wallet2.connect(provider2);\n\n  // Example ERC-20 token contract address and ABI (basic)\n  const ERC20_ABI2 = [\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"newAdmin\",\n          type: \"address\",\n        },\n      ],\n      name: \"addAdmin\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"constructor\",\n    },\n    {\n      inputs: [],\n      name: \"InvalidShortString\",\n      type: \"error\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"str\",\n          type: \"string\",\n        },\n      ],\n      name: \"StringTooLong\",\n      type: \"error\",\n    },\n    {\n      anonymous: false,\n      inputs: [],\n      name: \"EIP712DomainChanged\",\n      type: \"event\",\n    },\n    {\n      inputs: [],\n      name: \"setNewRandomNumber\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"encryptedIpfsCid\",\n          type: \"string\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt1\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt2\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt3\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"address\",\n          name: \"creator\",\n          type: \"address\",\n        },\n      ],\n      name: \"storeCid\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"newCreator\",\n          type: \"address\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt1\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt2\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt3\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"updateRandomNumberOrCreator\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"eip712Domain\",\n      outputs: [\n        {\n          internalType: \"bytes1\",\n          name: \"fields\",\n          type: \"bytes1\",\n        },\n        {\n          internalType: \"string\",\n          name: \"name\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"version\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"chainId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"verifyingContract\",\n          type: \"address\",\n        },\n        {\n          internalType: \"bytes32\",\n          name: \"salt\",\n          type: \"bytes32\",\n        },\n        {\n          internalType: \"uint256[]\",\n          name: \"extensions\",\n          type: \"uint256[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getCreator\",\n      outputs: [\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedCid\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt1\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt2\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt3\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"getNewRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getRandomNumberAndCreator\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt1\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt2\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt3\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ];\n\n  // Replace with the contract address of the inco you want to interact with\n  const TOKEN_CONTRACT_ADDRESS2 = \"0x533eD2257CFA5fb172F08a10e82756D5a0Af16f9\";\n\n  // Create a contract instance\n  const tokenContract2 = await new ethers.Contract(\n    TOKEN_CONTRACT_ADDRESS2,\n    ERC20_ABI2,\n    signer2\n  );\n\n  try {\n    const result = await tokenContract2.getDecryptedCid(randomId);\n\n    const result1 = await tokenContract2.getDecryptedSalt1(randomId);\n    const result2 = await tokenContract2.getDecryptedSalt2(randomId);\n    const result3 = await tokenContract2.getDecryptedSalt3(randomId);\n\n    const mainSalt =\n      result1.toString() + result2.toString() + result3.toString();\n\n      console.log(\"mainSalt\", mainSalt);\n      console.log(\"result\", result);\n    const aesDecrypted = await decrypt(\"\"+result+\"\", \"\"+mainSalt+\"\");\n    console.log(\"aesDecrypted\", aesDecrypted);\n    const audioUrl = `https://harlequin-secure-tortoise-165.mypinata.cloud/ipfs/${aesDecrypted}`;\n\n    const range = req.headers.range;\n    const headResponse = await axios.head(audioUrl);\n    const contentLength = headResponse.headers[\"content-length\"];\n    const contentType = headResponse.headers[\"content-type\"];\n\n    if (range) {\n      const parts = range.replace(/bytes=/, \"\").split(\"-\");\n      const start = parseInt(parts[0], 10);\n      const end = parts[1] ? parseInt(parts[1], 10) : contentLength - 1;\n      const chunksize = end - start + 1;\n\n      const rangeResponse = await axios({\n        method: \"get\",\n        url: audioUrl,\n        responseType: \"stream\",\n        headers: { Range: `bytes=${start}-${end}` },\n      });\n\n      res.writeHead(206, {\n        \"Content-Range\": `bytes ${start}-${end}/${contentLength}`,\n        \"Accept-Ranges\": \"bytes\",\n        \"Content-Length\": chunksize,\n        \"Content-Type\": contentType,\n      });\n\n      rangeResponse.data.pipe(res);\n    } else {\n      const fullResponse = await axios({\n        method: \"get\",\n        url: audioUrl,\n        responseType: \"stream\",\n      });\n      res.writeHead(200, {\n        \"Content-Length\": contentLength,\n        \"Content-Type\": contentType,\n      });\n\n      fullResponse.data.pipe(res);\n    }\n  } catch (error) {\n    console.error(\"Error:\", error);\n  }\n});\n\n// store private playlist\napp.post(\"/playlist\", (req, res) => {\n  const { playArray, playName, rentalAdd } = req.body;\n  const providerPlaylist = new ethers.providers.JsonRpcProvider(\n    \"https://testnet.inco.org\",\n    {\n      chainId: 9090,\n      name: \"Inco Gentry Testnet\",\n    }\n  );\n\n  const walletPlaylist = new ethers.Wallet(\n    \"b726794ec951fa89e8d8c145a44888899291b7593a5c0b21d24d66cb32802f09\",\n    providerPlaylist\n  );\n\n  const signerPlaylist = walletPlaylist.connect(providerPlaylist);\n\n  const ERC20_ABI_Playlist = [\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"newAdmin\",\n          type: \"address\",\n        },\n      ],\n      name: \"addAdmin\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"constructor\",\n    },\n    {\n      inputs: [],\n      name: \"InvalidShortString\",\n      type: \"error\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"str\",\n          type: \"string\",\n        },\n      ],\n      name: \"StringTooLong\",\n      type: \"error\",\n    },\n    {\n      anonymous: false,\n      inputs: [],\n      name: \"EIP712DomainChanged\",\n      type: \"event\",\n    },\n    {\n      inputs: [],\n      name: \"setNewRandomNumber\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"encryptedIpfsCid\",\n          type: \"string\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt1\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt2\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt3\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"address\",\n          name: \"creator\",\n          type: \"address\",\n        },\n      ],\n      name: \"storeCid\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"encryptedString\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"playlistName\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n      ],\n      name: \"storePrivatePlaylist\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"newCreator\",\n          type: \"address\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt1\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt2\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt3\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"updateRandomNumberOrCreator\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"eip712Domain\",\n      outputs: [\n        {\n          internalType: \"bytes1\",\n          name: \"fields\",\n          type: \"bytes1\",\n        },\n        {\n          internalType: \"string\",\n          name: \"name\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"version\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"chainId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"verifyingContract\",\n          type: \"address\",\n        },\n        {\n          internalType: \"bytes32\",\n          name: \"salt\",\n          type: \"bytes32\",\n        },\n        {\n          internalType: \"uint256[]\",\n          name: \"extensions\",\n          type: \"uint256[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getCreator\",\n      outputs: [\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedCid\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt1\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt2\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt3\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"playlistName\",\n          type: \"string\",\n        },\n      ],\n      name: \"getEncryptedStringByPlaylistName\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"value\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"getNewRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylist\",\n      outputs: [\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistByRandomNumber\",\n      outputs: [\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"index\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistByRandomNumberAndWallet\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistCountByRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"index\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistRandomNumberFromIndex\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getRandomNumberAndCreator\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt1\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt2\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt3\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ];\n\n  const TOKEN_CONTRACT_ADDRESS_Playlist =\n    \"0xd3E06D670A1C0180AB1e3AC36254457039bBfD89\";\n\n  const tokenContractPlaylist = new ethers.Contract(\n    TOKEN_CONTRACT_ADDRESS_Playlist,\n    ERC20_ABI_Playlist,\n    signerPlaylist\n  );\n\n  // Attempt to get the random number for the playlist\n  tokenContractPlaylist\n    .getPlaylistRandomNumberFromIndex(rentalAdd, 0)\n    .then((resultPlaylist) => {\n      const bigNumber = ethers.BigNumber.from(resultPlaylist);\n      // Convert BigNumber to number\n      const number = bigNumber.toNumber();\n      let aesEncrypted;\n      let finalRandom;\n\n      if (number > 0) {\n        aesEncrypted = encrypt(playArray.toString(), number.toString());\n        finalRandom = number;\n      } else {\n        const randomNumberPlaylist = Math.floor(Math.random() * 10 ** 16)\n          .toString()\n          .padStart(16, \"0\");\n        // Encrypt message with AES\n        aesEncrypted = encrypt(\n          playArray.toString(),\n          randomNumberPlaylist.toString()\n        );\n        finalRandom = randomNumberPlaylist;\n      }\n\n      // Call the storePrivatePlaylist function\n      return tokenContractPlaylist.storePrivatePlaylist(\n        aesEncrypted,\n        playName,\n        finalRandom,\n        rentalAdd\n      );\n    })\n    .then((playlistData) => {\n      res.status(200).json({\n        message: \"Playlist RandomNumber Exist\",\n        playlistData: playlistData,\n        sucess: true,\n      });\n    })\n    .catch((error) => {\n      console.error(\"Error processing request:\", error);\n      res\n        .status(500)\n        .json({ error: \"An error occurred while processing the request\" });\n    });\n});\n\n// get playlist of signin user\napp.get(\"/getPlaylist/:rentAdd\", async (req, res) => {\n  const { rentAdd } = req.params;\n  const providerPlaylist = new ethers.providers.JsonRpcProvider(\n    \"https://testnet.inco.org\",\n    {\n      chainId: 9090,\n      name: \"Inco Gentry Testnet\",\n    }\n  );\n\n  const walletPlaylist = new ethers.Wallet(\n    \"b726794ec951fa89e8d8c145a44888899291b7593a5c0b21d24d66cb32802f09\",\n    providerPlaylist\n  );\n\n  const signerPlaylist = walletPlaylist.connect(providerPlaylist);\n\n  const ERC20_ABI_Playlist = [\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"newAdmin\",\n          type: \"address\",\n        },\n      ],\n      name: \"addAdmin\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"constructor\",\n    },\n    {\n      inputs: [],\n      name: \"InvalidShortString\",\n      type: \"error\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"str\",\n          type: \"string\",\n        },\n      ],\n      name: \"StringTooLong\",\n      type: \"error\",\n    },\n    {\n      anonymous: false,\n      inputs: [],\n      name: \"EIP712DomainChanged\",\n      type: \"event\",\n    },\n    {\n      inputs: [],\n      name: \"setNewRandomNumber\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"encryptedIpfsCid\",\n          type: \"string\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt1\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt2\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt3\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"address\",\n          name: \"creator\",\n          type: \"address\",\n        },\n      ],\n      name: \"storeCid\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"encryptedString\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"playlistName\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n      ],\n      name: \"storePrivatePlaylist\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"newCreator\",\n          type: \"address\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt1\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt2\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt3\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"updateRandomNumberOrCreator\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"eip712Domain\",\n      outputs: [\n        {\n          internalType: \"bytes1\",\n          name: \"fields\",\n          type: \"bytes1\",\n        },\n        {\n          internalType: \"string\",\n          name: \"name\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"version\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"chainId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"verifyingContract\",\n          type: \"address\",\n        },\n        {\n          internalType: \"bytes32\",\n          name: \"salt\",\n          type: \"bytes32\",\n        },\n        {\n          internalType: \"uint256[]\",\n          name: \"extensions\",\n          type: \"uint256[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getCreator\",\n      outputs: [\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedCid\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt1\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt2\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt3\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"playlistName\",\n          type: \"string\",\n        },\n      ],\n      name: \"getEncryptedStringByPlaylistName\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"value\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"getNewRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylist\",\n      outputs: [\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistByRandomNumber\",\n      outputs: [\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"index\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistByRandomNumberAndWallet\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistCountByRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"index\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistRandomNumberFromIndex\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getRandomNumberAndCreator\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt1\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt2\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt3\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ];\n\n  const TOKEN_CONTRACT_ADDRESS_Playlist =\n    \"0xd3E06D670A1C0180AB1e3AC36254457039bBfD89\";\n  const tokenContractPlaylist = new ethers.Contract(\n    TOKEN_CONTRACT_ADDRESS_Playlist,\n    ERC20_ABI_Playlist,\n    signerPlaylist\n  );\n\n  // Attempt to get the random number for the playlist\n  tokenContractPlaylist\n    .getPlaylistRandomNumberFromIndex(rentAdd, 0)\n    .then((resultPlaylist) => {\n      const salt2 = resultPlaylist;\n      const bigNumberSalty = ethers.BigNumber.from(salt2);\n      // Convert BigNumber to number\n      const numberSalt = bigNumberSalty;\n      const saltRandom = tokenContractPlaylist\n        .getPlaylist(numberSalt)\n        .then((result) => {\n          const mainSalt = result;\n\n          res.status(200).json({\n            message: \"Playlist RandomNumber Exist\",\n            playlistame: mainSalt,\n            Randomsalt: Number(numberSalt),\n          });\n        });\n    })\n    .catch((error) => {\n      console.error(\"Error processing request:\", error);\n      res\n        .status(500)\n        .json({ error: \"An error occurred while processing the request\" });\n    });\n});\n\n// get sound of playlist using playname\napp.post(\"/getSound\", (req, res) => {\n  const { random, playName } = req.body;\n\n  const providerPlaylist = new ethers.providers.JsonRpcProvider(\n    \"https://testnet.inco.org\",\n    {\n      chainId: 9090,\n      name: \"Inco Gentry Testnet\",\n    }\n  );\n\n  const walletPlaylist = new ethers.Wallet(\n    \"b726794ec951fa89e8d8c145a44888899291b7593a5c0b21d24d66cb32802f09\",\n    providerPlaylist\n  );\n\n  const signerPlaylist = walletPlaylist.connect(providerPlaylist);\n\n  const ERC20_ABI_Playlist = [\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"newAdmin\",\n          type: \"address\",\n        },\n      ],\n      name: \"addAdmin\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"constructor\",\n    },\n    {\n      inputs: [],\n      name: \"InvalidShortString\",\n      type: \"error\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"str\",\n          type: \"string\",\n        },\n      ],\n      name: \"StringTooLong\",\n      type: \"error\",\n    },\n    {\n      anonymous: false,\n      inputs: [],\n      name: \"EIP712DomainChanged\",\n      type: \"event\",\n    },\n    {\n      inputs: [],\n      name: \"setNewRandomNumber\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"encryptedIpfsCid\",\n          type: \"string\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt1\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt2\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"bytes\",\n          name: \"salt3\",\n          type: \"bytes\",\n        },\n        {\n          internalType: \"address\",\n          name: \"creator\",\n          type: \"address\",\n        },\n      ],\n      name: \"storeCid\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"string\",\n          name: \"encryptedString\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"playlistName\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n      ],\n      name: \"storePrivatePlaylist\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"newCreator\",\n          type: \"address\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt1\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt2\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"euint32\",\n          name: \"salt3\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"updateRandomNumberOrCreator\",\n      outputs: [],\n      stateMutability: \"nonpayable\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"eip712Domain\",\n      outputs: [\n        {\n          internalType: \"bytes1\",\n          name: \"fields\",\n          type: \"bytes1\",\n        },\n        {\n          internalType: \"string\",\n          name: \"name\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"version\",\n          type: \"string\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"chainId\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"verifyingContract\",\n          type: \"address\",\n        },\n        {\n          internalType: \"bytes32\",\n          name: \"salt\",\n          type: \"bytes32\",\n        },\n        {\n          internalType: \"uint256[]\",\n          name: \"extensions\",\n          type: \"uint256[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getCreator\",\n      outputs: [\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedCid\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt1\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt2\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getDecryptedSalt3\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"string\",\n          name: \"playlistName\",\n          type: \"string\",\n        },\n      ],\n      name: \"getEncryptedStringByPlaylistName\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"value\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [],\n      name: \"getNewRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint32\",\n          name: \"\",\n          type: \"uint32\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylist\",\n      outputs: [\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistByRandomNumber\",\n      outputs: [\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n        {\n          internalType: \"string[]\",\n          name: \"\",\n          type: \"string[]\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"index\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistByRandomNumberAndWallet\",\n      outputs: [\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n        {\n          internalType: \"string\",\n          name: \"\",\n          type: \"string\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"randomNumber\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistCountByRandomNumber\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"address\",\n          name: \"wallet\",\n          type: \"address\",\n        },\n        {\n          internalType: \"uint256\",\n          name: \"index\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getPlaylistRandomNumberFromIndex\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getRandomNumberAndCreator\",\n      outputs: [\n        {\n          internalType: \"uint256\",\n          name: \"\",\n          type: \"uint256\",\n        },\n        {\n          internalType: \"address\",\n          name: \"\",\n          type: \"address\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt1\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt2\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n    {\n      inputs: [\n        {\n          internalType: \"uint256\",\n          name: \"tokenId\",\n          type: \"uint256\",\n        },\n      ],\n      name: \"getSalt3\",\n      outputs: [\n        {\n          internalType: \"euint32\",\n          name: \"\",\n          type: \"uint256\",\n        },\n      ],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ];\n\n  const TOKEN_CONTRACT_ADDRESS_Playlist =\n    \"0xd3E06D670A1C0180AB1e3AC36254457039bBfD89\";\n\n  const tokenContractPlaylist = new ethers.Contract(\n    TOKEN_CONTRACT_ADDRESS_Playlist,\n    ERC20_ABI_Playlist,\n    signerPlaylist\n  );\n\n  tokenContractPlaylist\n    .getEncryptedStringByPlaylistName(\"\" + random + \"\", \"\" + playName + \"\")\n    .then((encryptresultPlaylist) => {\n      const aesDecryptedNew = decrypt(encryptresultPlaylist, \"\" + random + \"\");\n      res.status(200).json({\n        message: \"Selected Playlist\",\n        playlistData: aesDecryptedNew,\n      });\n    });\n});\n\napp.get(\"/\", (req, res) => {\n  res.send(\"Hello World!\");\n});\nconst port = process.env.PORT;\napp.listen(port, () => {\n    console.log(`Server is running on http://localhost:${port}`);\n  }).on(\"error\", (err) => {\n    console.error(\"Error starting server:\", err);\n  });\n"
  },
  {
    "path": "backend/src/subgraph.js",
    "content": "const express = require(\"express\");\nconst { createClient, fetchExchange } = require(\"@urql/core\");\nconst fetch = require(\"node-fetch\");\n\nconst app = express();\nconst port = 3002;\n\n// Create a URQL client\nconst client = createClient({\n  url: \"https://api.studio.thegraph.com/query/63941/finalows/version/latest\",\n  exchanges: [fetchExchange],\n  fetch: fetch,\n});\n\n// Define your GraphQL query\nconst MY_QUERY = `\n  query {\n    nftminteds(orderBy: tokenId) {\n    id\n    creator\n    tokenId\n  }\n  nftpurchaseds(orderBy: tokenId) {\n    id\n    buyer\n    tokenId\n  }\n  nftrenteds {\n    id\n    renter\n    tokenId\n    duration\n  }\n  rentInfoSets(orderBy: tokenId) {\n    id\n    rentBaseAmount\n    rentDuration\n    tokenId\n  }\n  royaltyPaids(orderBy: tokenId) {\n    id\n    creator\n    tokenId\n    amount\n  }\n  transfers(orderBy: OwnSound_id) {\n    id\n    from\n    to\n    OwnSound_id\n  }\n  }\n`;\n\n// Function to fetch data from The Graph\nasync function fetchData() {\n  try {\n    const result = await client.query(MY_QUERY).toPromise();\n    if (result.error) {\n      console.error(\"Error:\", result.error);\n      return null;\n    }\n    console.log(\"Query result:\", result.data);\n    return result.data;\n  } catch (error) {\n    console.error(\"Error fetching data:\", error);\n    return null;\n  }\n}\n\n// API endpoint to get data\napp.get(\"/api/data\", async (req, res) => {\n  const data = await fetchData();\n  if (data) {\n    res.json(data);\n  } else {\n    res.status(500).json({ error: \"Failed to fetch data\" });\n  }\n});\n\n// Start the server\napp.listen(port, () => {\n  console.log(`Server running at http://localhost:${port}`);\n});\n"
  },
  {
    "path": "backend/src/upload.js",
    "content": "// src/upload.js\n\nexport const config = {\n  api: {\n    bodyParser: false, // Disable body parsing for FormData\n  },\n};\n\nexport default async function handler(req, res) {\n  if (req.method === \"POST\") {\n    try {\n      const formData = await new Promise((resolve, reject) => {\n        const busboy = require(\"busboy\");\n        const bb = busboy({ headers: req.headers });\n\n        const fields = {};\n        const files = {};\n\n        bb.on(\"field\", (name, value) => {\n          fields[name] = value;\n        });\n\n        bb.on(\"file\", (name, file, info) => {\n          const { filename, mimeType } = info;\n          const chunks = [];\n          file\n            .on(\"data\", (chunk) => {\n              chunks.push(chunk);\n            })\n            .on(\"end\", () => {\n              files[name] = {\n                buffer: Buffer.concat(chunks),\n                filename,\n                mimeType,\n              };\n            });\n        });\n\n        bb.on(\"finish\", () => {\n          resolve({ fields, files });\n        });\n\n        req.pipe(bb);\n      });\n          console.log(\"Data received from formData:\", formData);\n\n      // Forward data to your Node.js API\n      const apiResponse = await fetch(\"http://localhost:8000//endpoint\", {\n        method: \"POST\",\n        headers: {\n          \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify(formDataformData),\n      });\n          console.log(\"Data received on Node.js API:\", apiResponse);\n\n      if (apiResponse.ok) {\n        res.status(200).json({ message: \"Data forwarded successfully\" });\n      } else {\n        res.status(500).json({ error: \"Failed to forward data\" });\n      }\n    } catch (error) {\n      res.status(500).json({ error: \"An error occurred\" });\n    }\n  } else {\n    res.setHeader(\"Allow\", [\"POST\",\"GET\"]);\n    res.status(405).end(`Method ${req.method} Not Allowed`);\n  }\n}\n"
  },
  {
    "path": "backend/src/wallet.js",
    "content": "const { ethers } = require(\"ethers\");\n\n// Replace with your own RPC URL and private key\nconst RPC_URL = process.env.RPC_URL;\nconst PRIVATE_KEY = process.env.PRIVATE_KEY;\n\n// Create a provider\nconst provider = new ethers.JsonRpcProvider(RPC_URL);\n\n// Create a wallet instance\nconst wallet = new ethers.Wallet(PRIVATE_KEY, provider);\n\n// Log the wallet address\nconsole.log(\"Wallet address:\", wallet.address);\n\n// Example ERC-20 token contract address and ABI (basic)\nconst ERC20_ABI = [\n  // Some ERC-20 methods\n  \"function balanceOf(address owner) view returns (uint256)\",\n];\n\n// Replace with the contract address of the ERC-20 token you want to interact with\nconst TOKEN_CONTRACT_ADDRESS = \"0xYourTokenContractAddress\";\n\n// Create a contract instance\nconst tokenContract = new ethers.Contract(\n  TOKEN_CONTRACT_ADDRESS,\n  ERC20_ABI,\n  wallet\n);\n\n// Function to get the balance of the wallet address\nasync function getBalance() {\n  try {\n    const balance = await tokenContract.balanceOf(wallet.address);\n    console.log(\"Token balance:\", ethers.formatEther(balance));\n  } catch (error) {\n    console.error(\"Error fetching balance:\", error);\n  }\n}\n\n// Execute the function\ngetBalance();\n"
  },
  {
    "path": "backend/vercel.json",
    "content": "{\n  \"version\": 2,\n  \"builds\": [\n    {\n      \"src\": \"src/index.js\",\n      \"use\": \"@vercel/node\"\n    }\n  ],\n  \"routes\": [\n    {\n      \"src\": \"/(.*)\",\n      \"dest\": \"src/index.js\"\n    }\n  ]\n}\n"
  },
  {
    "path": "client/.eslintrc.json",
    "content": "{\n  \"extends\": \"next/core-web-vitals\",\n  \"rules\": {\n    \"react/no-unescaped-entities\": \"off\",\n    \"@next/next/no-img-element\": \"off\"\n  }\n}\n"
  },
  {
    "path": "client/.gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n.yarn/install-state.gz\n\n# testing\n/coverage\n\n# next.js\n/.next/\n\n\n# production\n/build\n\n# misc\n.DS_Store\n*.pem\n\n# debug\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# local env files\n.env*.local\n\n# vercel\n.vercel\n\n# typescript\n*.tsbuildinfo\nnext-env.d.ts\n"
  },
  {
    "path": "client/README.md",
    "content": "\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n"
  },
  {
    "path": "client/components.json",
    "content": "{\n  \"$schema\": \"https://ui.shadcn.com/schema.json\",\n  \"style\": \"default\",\n  \"rsc\": true,\n  \"tsx\": false,\n  \"tailwind\": {\n    \"config\": \"tailwind.config.js\",\n    \"css\": \"src/app/globals.css\",\n    \"baseColor\": \"slate\",\n    \"cssVariables\": true,\n    \"prefix\": \"\"\n  },\n  \"aliases\": {\n    \"components\": \"@/components\",\n    \"utils\": \"@/lib/utils\"\n  }\n}"
  },
  {
    "path": "client/jsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"paths\": {\n      \"@/*\": [\"./src/*\"]\n    }\n  }\n}\n"
  },
  {
    "path": "client/next.config.mjs",
    "content": "/** @type {import('next').NextConfig} */\nconst API_URL = process.env.API_URL;\nconst nextConfig = {\n  output: 'export',\n  reactStrictMode: false,\n  env: {\n    NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: \"da9h8exvs\",\n    NEXT_PUBLIC_CLOUDINARY_PRESET_NAME: \"fi0lxkc1\",\n  },\n  images: {\n    domains: [\"res.cloudinary.com\"],\n  },\n  async rewrites() {\n    return [\n      {\n        source: \"/api/:path*\",\n        destination: `${API_URL}/:path*`,\n      },\n    ];\n  },\n};\n\nexport default nextConfig;\n"
  },
  {
    "path": "client/out/404.html",
    "content": "<!DOCTYPE html><html lang=\"en\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"stylesheet\" href=\"/_next/static/css/888b2de5347592df.css\" data-precedence=\"next\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/webpack-1f4c176689af895b.js\"/><script src=\"/_next/static/chunks/fd9d1056-819464016f7ad85c.js\" async=\"\"></script><script src=\"/_next/static/chunks/23-a2a6d2cb6c50ca8e.js\" async=\"\"></script><script src=\"/_next/static/chunks/main-app-0e53d5b0820fa726.js\" async=\"\"></script><script src=\"/_next/static/chunks/3ab9597f-9ca74e94c08af310.js\" async=\"\"></script><script src=\"/_next/static/chunks/5ab80550-22a236d451c69b50.js\" async=\"\"></script><script src=\"/_next/static/chunks/202-9b05294c1bfbdfa7.js\" async=\"\"></script><script src=\"/_next/static/chunks/app/layout-696be0f0413601fb.js\" async=\"\"></script><meta name=\"robots\" content=\"noindex\"/><title>404: This page could not be found.</title><title>Own Sound</title><meta name=\"description\" content=\"Made with love by the Qoneqt team\"/><script src=\"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js\" noModule=\"\"></script></head><body class=\"__className_d65c78\"><script>!function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');var e=localStorage.getItem('theme');if('system'===e||(!e&&false)){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){d.style.colorScheme = 'dark';c.add('dark')}else{d.style.colorScheme = 'light';c.add('light')}}else if(e){c.add(e|| '')}else{c.add('light')}if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'light'}catch(e){}}()</script><div style=\"font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center\"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class=\"next-error-h1\" style=\"display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px\">404</h1><div style=\"display:inline-block\"><h2 style=\"font-size:14px;font-weight:400;line-height:49px;margin:0\">This page could not be found.</h2></div></div></div><script src=\"/_next/static/chunks/webpack-1f4c176689af895b.js\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,\"1:HL[\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"style\\\"]\\n\"])</script><script>self.__next_f.push([1,\"2:I[95751,[],\\\"\\\"]\\n4:I[39275,[],\\\"\\\"]\\n5:I[61343,[],\\\"\\\"]\\n6:I[29635,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n7:I[61559,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n8:I[90037,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"ThemeProvider\\\"]\\nd:I[27776,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"Toaster\\\"]\\nf:I[76130,[],\\\"\\\"]\\n9:{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"textAlign\\\":\\\"center\\\",\\\"display\\\":\\\"flex\\\",\\\"flexDirection\\\":\\\"column\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"}\\na:{\\\"display\\\":\\\"inline-block\\\",\\\"margin\\\":\\\"0 20px 0 0\\\",\\\"padding\\\":\\\"0 23px 0 0\\\",\\\"fontSize\\\":24,\\\"fontWeight\\\":500,\\\"verticalAlign\\\":\\\"top\\\",\\\"lineHeight\\\":\\\"49px\\\"}\\nb:{\\\"display\\\":\\\"inline-block\\\"}\\nc:{\\\"fontSize\\\":14,\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"49px\\\",\\\"margin\\\":0}\\n10:[]\\n\"])</script><script>self.__next_f.push([1,\"0:[[[\\\"$\\\",\\\"link\\\",\\\"0\\\",{\\\"rel\\\":\\\"stylesheet\\\",\\\"href\\\":\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"precedence\\\":\\\"next\\\",\\\"crossOrigin\\\":\\\"$undefined\\\"}]],[\\\"$\\\",\\\"$L2\\\",null,{\\\"buildId\\\":\\\"Qvu3_p21LuapbgDau0_w0\\\",\\\"assetPrefix\\\":\\\"\\\",\\\"initialCanonicalUrl\\\":\\\"/_not-found\\\",\\\"initialTree\\\":[\\\"\\\",{\\\"children\\\":[\\\"/_not-found\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}]},\\\"$undefined\\\",\\\"$undefined\\\",true],\\\"initialSeedData\\\":[\\\"\\\",{\\\"children\\\":[\\\"/_not-found\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{},[[\\\"$L3\\\",[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"404: This page could not be found.\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"textAlign\\\":\\\"center\\\",\\\"display\\\":\\\"flex\\\",\\\"flexDirection\\\":\\\"column\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\\"}}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"next-error-h1\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\",\\\"margin\\\":\\\"0 20px 0 0\\\",\\\"padding\\\":\\\"0 23px 0 0\\\",\\\"fontSize\\\":24,\\\"fontWeight\\\":500,\\\"verticalAlign\\\":\\\"top\\\",\\\"lineHeight\\\":\\\"49px\\\"},\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\"},\\\"children\\\":[\\\"$\\\",\\\"h2\\\",null,{\\\"style\\\":{\\\"fontSize\\\":14,\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"49px\\\",\\\"margin\\\":0},\\\"children\\\":\\\"This page could not be found.\\\"}]}]]}]}]]],null],null]},[\\\"$\\\",\\\"$L4\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\",\\\"/_not-found\\\",\\\"children\\\"],\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L5\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"notFoundStyles\\\":\\\"$undefined\\\",\\\"styles\\\":null}],null]},[[\\\"$\\\",\\\"html\\\",null,{\\\"lang\\\":\\\"en\\\",\\\"children\\\":[\\\"$\\\",\\\"body\\\",null,{\\\"className\\\":\\\"__className_d65c78\\\",\\\"children\\\":[\\\"$\\\",\\\"$L6\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L7\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L8\\\",null,{\\\"attribute\\\":\\\"class\\\",\\\"defaultTheme\\\":\\\"light\\\",\\\"children\\\":[[\\\"$\\\",\\\"$L4\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\"],\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L5\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"404: This page could not be found.\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":\\\"$9\\\",\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\\"}}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"next-error-h1\\\",\\\"style\\\":\\\"$a\\\",\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":\\\"$b\\\",\\\"children\\\":[\\\"$\\\",\\\"h2\\\",null,{\\\"style\\\":\\\"$c\\\",\\\"children\\\":\\\"This page could not be found.\\\"}]}]]}]}]],\\\"notFoundStyles\\\":[],\\\"styles\\\":null}],[\\\"$\\\",\\\"$Ld\\\",null,{}]]}]}]}]}]}],null],null],\\\"couldBeIntercepted\\\":false,\\\"initialHead\\\":[[\\\"$\\\",\\\"meta\\\",null,{\\\"name\\\":\\\"robots\\\",\\\"content\\\":\\\"noindex\\\"}],\\\"$Le\\\"],\\\"globalErrorComponent\\\":\\\"$f\\\",\\\"missingSlots\\\":\\\"$W10\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"e:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"title\\\",\\\"2\\\",{\\\"children\\\":\\\"Own Sound\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"3\\\",{\\\"name\\\":\\\"description\\\",\\\"content\\\":\\\"Made with love by the Qoneqt team\\\"}]]\\n3:null\\n\"])</script></body></html>"
  },
  {
    "path": "client/out/_next/static/Qvu3_p21LuapbgDau0_w0/_buildManifest.js",
    "content": "self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[{has:e,source:\"/api/:path*\",destination:e}],beforeFiles:[],fallback:[]},\"/_error\":[\"static/chunks/pages/_error-6ae619510b1539d6.js\"],sortedPages:[\"/_app\",\"/_error\"]}}(void 0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();"
  },
  {
    "path": "client/out/_next/static/Qvu3_p21LuapbgDau0_w0/_ssgManifest.js",
    "content": "self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()"
  },
  {
    "path": "client/out/_next/static/chunks/112-05ef4e14cff1a5e4.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[112],{78369:function(e,t,r){\"use strict\";r.d(t,{Ry:function(){return u}});var n=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error(\"aria-hidden\",e,\"in not contained inside\",t,\". Doing nothing\"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),i=null!==t&&\"false\"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(r,\"true\"),i||e.setAttribute(l,\"true\")}catch(t){console.error(\"aria-hidden: cannot operate on \",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r=\"data-aria-hidden\");var n=Array.from(Array.isArray(e)?e:[e]),o=t||(\"undefined\"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll(\"[aria-live]\"))),l(n,o,r,\"aria-hidden\")):function(){return null}}},50084:function(e,t,r){\"use strict\";var n=r(77323),o=r(11356),i=o(n(\"String.prototype.indexOf\"));e.exports=function(e,t){var r=n(e,!!t);return\"function\"==typeof r&&i(e,\".prototype.\")>-1?o(r):r}},11356:function(e,t,r){\"use strict\";var n=r(71769),o=r(77323),i=r(49813),a=r(31354),s=o(\"%Function.prototype.apply%\"),l=o(\"%Function.prototype.call%\"),u=o(\"%Reflect.apply%\",!0)||n.call(l,s),c=r(7723),d=o(\"%Math.max%\");e.exports=function(e){if(\"function\"!=typeof e)throw new a(\"a function is required\");var t=u(n,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,s,arguments)};c?c(e.exports,\"apply\",{value:f}):e.exports.apply=f},30602:function(e,t,r){\"use strict\";var n=r(7723),o=r(97422),i=r(31354),a=r(68136);e.exports=function(e,t,r){if(!e||\"object\"!=typeof e&&\"function\"!=typeof e)throw new i(\"`obj` must be an object or a function`\");if(\"string\"!=typeof t&&\"symbol\"!=typeof t)throw new i(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new i(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new i(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new i(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new i(\"`loose`, if provided, must be a boolean\");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===l&&d?d.writable:!l});else if(!c&&(s||l||u))throw new o(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");else e[t]=r}},7723:function(e,t,r){\"use strict\";var n=r(77323)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(e){n=!1}e.exports=n},41479:function(e){\"use strict\";e.exports=EvalError},19509:function(e){\"use strict\";e.exports=Error},33231:function(e){\"use strict\";e.exports=RangeError},78531:function(e){\"use strict\";e.exports=ReferenceError},97422:function(e){\"use strict\";e.exports=SyntaxError},31354:function(e){\"use strict\";e.exports=TypeError},88150:function(e){\"use strict\";e.exports=URIError},78734:function(e){\"use strict\";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},o=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},i=function(e,t){for(var r=\"\",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,s=this;if(\"function\"!=typeof s||\"[object Function]\"!==t.apply(s))throw TypeError(\"Function.prototype.bind called on incompatible \"+s);for(var l=o(arguments,1),u=r(0,s.length-l.length),c=[],d=0;d<u;d++)c[d]=\"$\"+d;if(a=Function(\"binder\",\"return function (\"+i(c,\",\")+\"){ return binder.apply(this,arguments); }\")(function(){if(this instanceof a){var t=s.apply(this,n(l,arguments));return Object(t)===t?t:this}return s.apply(e,n(l,arguments))}),s.prototype){var f=function(){};f.prototype=s.prototype,a.prototype=new f,f.prototype=null}return a}},71769:function(e,t,r){\"use strict\";var n=r(78734);e.exports=Function.prototype.bind||n},77323:function(e,t,r){\"use strict\";var n,o=r(19509),i=r(41479),a=r(33231),s=r(78531),l=r(97422),u=r(31354),c=r(88150),d=Function,f=function(e){try{return d('\"use strict\"; return ('+e+\").constructor;\")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},\"\")}catch(e){p=null}var h=function(){throw new u},m=p?function(){try{return arguments.callee,h}catch(e){try{return p(arguments,\"callee\").get}catch(e){return h}}}():h,y=r(42152)(),g=r(77077)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w=\"undefined\"!=typeof Uint8Array&&v?v(Uint8Array):n,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?n:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?n:ArrayBuffer,\"%ArrayIteratorPrototype%\":y&&v?v([][Symbol.iterator]()):n,\"%AsyncFromSyncIteratorPrototype%\":n,\"%AsyncFunction%\":b,\"%AsyncGenerator%\":b,\"%AsyncGeneratorFunction%\":b,\"%AsyncIteratorPrototype%\":b,\"%Atomics%\":\"undefined\"==typeof Atomics?n:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?n:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?n:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?n:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?n:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":i,\"%Float32Array%\":\"undefined\"==typeof Float32Array?n:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?n:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?n:FinalizationRegistry,\"%Function%\":d,\"%GeneratorFunction%\":b,\"%Int8Array%\":\"undefined\"==typeof Int8Array?n:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?n:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?n:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":y&&v?v(v([][Symbol.iterator]())):n,\"%JSON%\":\"object\"==typeof JSON?JSON:n,\"%Map%\":\"undefined\"==typeof Map?n:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&y&&v?v(new Map()[Symbol.iterator]()):n,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?n:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?n:Proxy,\"%RangeError%\":a,\"%ReferenceError%\":s,\"%Reflect%\":\"undefined\"==typeof Reflect?n:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?n:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&y&&v?v(new Set()[Symbol.iterator]()):n,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?n:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":y&&v?v(\"\"[Symbol.iterator]()):n,\"%Symbol%\":y?Symbol:n,\"%SyntaxError%\":l,\"%ThrowTypeError%\":m,\"%TypedArray%\":w,\"%TypeError%\":u,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?n:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?n:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?n:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?n:Uint32Array,\"%URIError%\":c,\"%WeakMap%\":\"undefined\"==typeof WeakMap?n:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?n:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var S=v(v(e));x[\"%Error.prototype%\"]=S}var P=function e(t){var r;if(\"%AsyncFunction%\"===t)r=f(\"async function () {}\");else if(\"%GeneratorFunction%\"===t)r=f(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===t)r=f(\"async function* () {}\");else if(\"%AsyncGenerator%\"===t){var n=e(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===t){var o=e(\"%AsyncGenerator%\");o&&v&&(r=v(o.prototype))}return x[t]=r,r},E={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},A=r(71769),R=r(71060),j=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),O=A.call(Function.call,String.prototype.replace),T=A.call(Function.call,String.prototype.slice),M=A.call(Function.call,RegExp.prototype.exec),k=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,D=/\\\\(\\\\)?/g,N=function(e){var t=T(e,0,1),r=T(e,-1);if(\"%\"===t&&\"%\"!==r)throw new l(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==t)throw new l(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return O(e,k,function(e,t,r,o){n[n.length]=r?O(o,D,\"$1\"):t||e}),n},L=function(e,t){var r,n=e;if(R(E,n)&&(n=\"%\"+(r=E[n])[0]+\"%\"),R(x,n)){var o=x[n];if(o===b&&(o=P(n)),void 0===o&&!t)throw new u(\"intrinsic \"+e+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:o}}throw new l(\"intrinsic \"+e+\" does not exist!\")};e.exports=function(e,t){if(\"string\"!=typeof e||0===e.length)throw new u(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof t)throw new u('\"allowMissing\" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new l(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=N(e),n=r.length>0?r[0]:\"\",o=L(\"%\"+n+\"%\",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],C(r,j([0,1],c)));for(var d=1,f=!0;d<r.length;d+=1){var h=r[d],m=T(h,0,1),y=T(h,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===y||\"'\"===y||\"`\"===y)&&m!==y)throw new l(\"property names with quotes must have matching quotes\");if(\"constructor\"!==h&&f||(s=!0),n+=\".\"+h,R(x,i=\"%\"+n+\"%\"))a=x[i];else if(null!=a){if(!(h in a)){if(!t)throw new u(\"base intrinsic for \"+e+\" exists, but the property is not available.\");return}if(p&&d+1>=r.length){var g=p(a,h);a=(f=!!g)&&\"get\"in g&&!(\"originalValue\"in g.get)?g.get:a[h]}else f=R(a,h),a=a[h];f&&!s&&(x[i]=a)}}return a}},68136:function(e,t,r){\"use strict\";var n=r(77323)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(e){n=null}e.exports=n},66626:function(e,t,r){\"use strict\";var n=r(7723),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(e){return!0}},e.exports=o},77077:function(e){\"use strict\";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},42152:function(e,t,r){\"use strict\";var n=\"undefined\"!=typeof Symbol&&Symbol,o=r(41770);e.exports=function(){return\"function\"==typeof n&&\"function\"==typeof Symbol&&\"symbol\"==typeof n(\"foo\")&&\"symbol\"==typeof Symbol(\"bar\")&&o()}},41770:function(e){\"use strict\";e.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"==typeof Symbol.iterator)return!0;var e={},t=Symbol(\"test\"),r=Object(t);if(\"string\"==typeof t||\"[object Symbol]\"!==Object.prototype.toString.call(t)||\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(e).length||\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},71060:function(e,t,r){\"use strict\";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(71769);e.exports=i.call(n,o)},43393:function(e,t,r){!function(e,t,r){\"use strict\";function n(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var o=n(t),i=n(r);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=[\"animationData\",\"loop\",\"autoplay\",\"initialSegment\",\"onComplete\",\"onLoopComplete\",\"onEnterFrame\",\"onSegmentStart\",\"onConfigReady\",\"onDataReady\",\"onDataFailed\",\"onLoadedImages\",\"onDOMLoaded\",\"onDestroy\",\"lottieRef\",\"renderer\",\"name\",\"assetsPath\",\"rendererSettings\"],d=function(e,t){var n,a=e.animationData,d=e.loop,f=e.autoplay,p=e.initialSegment,h=e.onComplete,m=e.onLoopComplete,y=e.onEnterFrame,g=e.onSegmentStart,v=e.onConfigReady,b=e.onDataReady,w=e.onDataFailed,x=e.onLoadedImages,S=e.onDOMLoaded,P=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var E=l(e,c),A=function(e){if(Array.isArray(e))return e}(n=r.useState(!1))||function(e,t){var r=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{for(i=(r=r.call(e)).next;!(l=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(n,2)||function(e,t){if(e){if(\"string\"==typeof e)return u(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,2)}}(n,2)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),R=A[0],j=A[1],C=r.useRef(),O=r.useRef(null),T=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(O.current){null===(t=C.current)||void 0===t||t.destroy();var n=s(s(s({},e),r),{},{container:O.current});return C.current=o.default.loadAnimation(n),j(!!C.current),function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0}}};return r.useEffect(function(){var e=T();return function(){return null==e?void 0:e()}},[a,d]),r.useEffect(function(){C.current&&(C.current.autoplay=!!f)},[f]),r.useEffect(function(){if(C.current){if(!p){C.current.resetSegments(!0);return}Array.isArray(p)&&p.length&&((C.current.currentRawFrame<p[0]||C.current.currentRawFrame>p[1])&&(C.current.currentRawFrame=p[0]),C.current.setSegment(p[0],p[1]))}},[p]),r.useEffect(function(){var e=[{name:\"complete\",handler:h},{name:\"loopComplete\",handler:m},{name:\"enterFrame\",handler:y},{name:\"segmentStart\",handler:g},{name:\"config_ready\",handler:v},{name:\"data_ready\",handler:b},{name:\"data_failed\",handler:w},{name:\"loaded_images\",handler:x},{name:\"DOMLoaded\",handler:S},{name:\"destroy\",handler:P}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=C.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=C.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[h,m,y,g,v,b,w,x,S,P]),{View:i.default.createElement(\"div\",s({style:t,ref:O},E)),play:function(){var e;null===(e=C.current)||void 0===e||e.play()},stop:function(){var e;null===(e=C.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=C.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=C.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=C.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=C.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=C.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=C.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=C.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0},animationContainerRef:O,animationLoaded:R,animationItem:C.current}},f=function(e){var t=e.wrapperRef,n=e.animationItem,o=e.mode,i=e.actions;r.useEffect(function(){var e,r,a,s,l,u=t.current;if(u&&n&&i.length)switch(n.stop(),o){case\"scroll\":return e=null,r=function(){var t,r,o,a=(r=(t=u.getBoundingClientRect()).top,o=t.height,(window.innerHeight-r)/(window.innerHeight+o)),s=i.find(function(e){var t=e.visibility;return t&&a>=t[0]&&a<=t[1]});if(s){if(\"seek\"===s.type&&s.visibility&&2===s.frames.length){var l=s.frames[0]+Math.ceil((a-s.visibility[0])/(s.visibility[1]-s.visibility[0])*s.frames[1]);n.goToAndStop(l-n.firstFrame-1,!0)}\"loop\"===s.type&&(null===e?(n.playSegments(s.frames,!0),e=s.frames):e!==s.frames?(n.playSegments(s.frames,!0),e=s.frames):n.isPaused&&(n.playSegments(s.frames,!0),e=s.frames)),\"play\"===s.type&&n.isPaused&&(n.resetSegments(!0),n.play()),\"stop\"===s.type&&n.goToAndStop(s.frames[0]-n.firstFrame-1,!0)}},document.addEventListener(\"scroll\",r),function(){document.removeEventListener(\"scroll\",r)};case\"cursor\":return a=function(e,t){var r=e,o=t;if(-1!==r&&-1!==o){var a,s,l,c,d=(a=r,s=o,c=(l=u.getBoundingClientRect()).top,{x:(a-l.left)/l.width,y:(s-c)/l.height});r=d.x,o=d.y}var f=i.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?r>=t.x[0]&&r<=t.x[1]&&o>=t.y[0]&&o<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&r===t.x&&o===t.y});if(f){if(\"seek\"===f.type&&f.position&&Array.isArray(f.position.x)&&Array.isArray(f.position.y)&&2===f.frames.length){var p=(r-f.position.x[0])/(f.position.x[1]-f.position.x[0]),h=(o-f.position.y[0])/(f.position.y[1]-f.position.y[0]);n.playSegments(f.frames,!0),n.goToAndStop(Math.ceil((p+h)/2*(f.frames[1]-f.frames[0])),!0)}\"loop\"===f.type&&n.playSegments(f.frames,!0),\"play\"===f.type&&(n.isPaused&&n.resetSegments(!1),n.playSegments(f.frames)),\"stop\"===f.type&&n.goToAndStop(f.frames[0],!0)}},s=function(e){a(e.clientX,e.clientY)},l=function(){a(-1,-1)},u.addEventListener(\"mousemove\",s),u.addEventListener(\"mouseout\",l),function(){u.removeEventListener(\"mousemove\",s),u.removeEventListener(\"mouseout\",l)}}},[o,n])},p=function(e){var t=e.actions,r=e.mode,n=e.lottieObj,o=n.animationItem,i=n.View;return f({actions:t,animationItem:o,mode:r,wrapperRef:n.animationContainerRef}),i},h=[\"style\",\"interactivity\"];Object.defineProperty(e,\"LottiePlayer\",{enumerable:!0,get:function(){return o.default}}),e.default=function(e){var t,n,o,i=e.style,a=e.interactivity,s=d(l(e,h),i),u=s.View,c=s.play,f=s.stop,m=s.pause,y=s.setSpeed,g=s.goToAndStop,v=s.goToAndPlay,b=s.setDirection,w=s.playSegments,x=s.setSubframe,S=s.getDuration,P=s.destroy,E=s.animationContainerRef,A=s.animationLoaded,R=s.animationItem;return r.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:f,pause:m,setSpeed:y,goToAndPlay:v,goToAndStop:g,setDirection:b,playSegments:w,setSubframe:x,getDuration:S,destroy:P,animationContainerRef:E,animationLoaded:A,animationItem:R})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),p({lottieObj:{View:u,play:c,stop:f,pause:m,setSpeed:y,goToAndStop:g,goToAndPlay:v,setDirection:b,playSegments:w,setSubframe:x,getDuration:S,destroy:P,animationContainerRef:E,animationLoaded:A,animationItem:R},actions:null!==(n=null==a?void 0:a.actions)&&void 0!==n?n:[],mode:null!==(o=null==a?void 0:a.mode)&&void 0!==o?o:\"scroll\"})},e.useLottie=d,e.useLottieInteractivity=p,Object.defineProperty(e,\"__esModule\",{value:!0})}(t,r(71451),r(2265))},78030:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return l}});var n=r(2265);/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let o=e=>e.replace(/([a-z0-9])([A-Z])/g,\"$1-$2\").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(\" \")};/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */var a={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let s=(0,n.forwardRef)((e,t)=>{let{color:r=\"currentColor\",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u=\"\",children:c,iconNode:d,...f}=e;return(0,n.createElement)(\"svg\",{ref:t,...a,width:o,height:o,stroke:r,strokeWidth:l?24*Number(s)/Number(o):s,className:i(\"lucide\",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:l,...u}=r;return(0,n.createElement)(s,{ref:a,iconNode:t,className:i(\"lucide-\".concat(o(e)),l),...u})});return r.displayName=\"\".concat(e),r}},95137:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"ArrowLeft\",[[\"path\",{d:\"m12 19-7-7 7-7\",key:\"1l729n\"}],[\"path\",{d:\"M19 12H5\",key:\"x3x0zl\"}]])},22468:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Check\",[[\"path\",{d:\"M20 6 9 17l-5-5\",key:\"1gmf2c\"}]])},87592:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"ChevronRight\",[[\"path\",{d:\"m9 18 6-6-6-6\",key:\"mthhwq\"}]])},40472:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"CirclePlay\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"polygon\",{points:\"10 8 16 12 10 16 10 8\",key:\"1cimsy\"}]])},28165:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Circle\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}]])},40933:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Clock\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"polyline\",{points:\"12 6 12 12 16 14\",key:\"68esgv\"}]])},22584:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"CloudUpload\",[[\"path\",{d:\"M12 13v8\",key:\"1l5pq0\"}],[\"path\",{d:\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\",key:\"1pljnt\"}],[\"path\",{d:\"m8 17 4-4 4 4\",key:\"1quai1\"}]])},51077:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"DollarSign\",[[\"line\",{x1:\"12\",x2:\"12\",y1:\"2\",y2:\"22\",key:\"7eqyqh\"}],[\"path\",{d:\"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6\",key:\"1b0p4s\"}]])},71322:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"GripVertical\",[[\"circle\",{cx:\"9\",cy:\"12\",r:\"1\",key:\"1vctgf\"}],[\"circle\",{cx:\"9\",cy:\"5\",r:\"1\",key:\"hp0tcf\"}],[\"circle\",{cx:\"9\",cy:\"19\",r:\"1\",key:\"fkjjf6\"}],[\"circle\",{cx:\"15\",cy:\"12\",r:\"1\",key:\"1tmaij\"}],[\"circle\",{cx:\"15\",cy:\"5\",r:\"1\",key:\"19l28e\"}],[\"circle\",{cx:\"15\",cy:\"19\",r:\"1\",key:\"f4zoj3\"}]])},3274:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"LoaderCircle\",[[\"path\",{d:\"M21 12a9 9 0 1 1-6.219-8.56\",key:\"13zald\"}]])},89896:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"LogOut\",[[\"path\",{d:\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\",key:\"1uf3rs\"}],[\"polyline\",{points:\"16 17 21 12 16 7\",key:\"1gabdz\"}],[\"line\",{x1:\"21\",x2:\"9\",y1:\"12\",y2:\"12\",key:\"1uyos4\"}]])},92699:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Moon\",[[\"path\",{d:\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\",key:\"a7tn18\"}]])},14504:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Music\",[[\"path\",{d:\"M9 18V5l12-2v13\",key:\"1jmyc2\"}],[\"circle\",{cx:\"6\",cy:\"18\",r:\"3\",key:\"fqmcym\"}],[\"circle\",{cx:\"18\",cy:\"16\",r:\"3\",key:\"1hluhg\"}]])},24841:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Pause\",[[\"rect\",{x:\"14\",y:\"4\",width:\"4\",height:\"16\",rx:\"1\",key:\"zuxfzm\"}],[\"rect\",{x:\"6\",y:\"4\",width:\"4\",height:\"16\",rx:\"1\",key:\"1okwgv\"}]])},18422:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Pencil\",[[\"path\",{d:\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\",key:\"1a8usu\"}],[\"path\",{d:\"m15 5 4 4\",key:\"1mk7zo\"}]])},38401:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Percent\",[[\"line\",{x1:\"19\",x2:\"5\",y1:\"5\",y2:\"19\",key:\"1x9vlm\"}],[\"circle\",{cx:\"6.5\",cy:\"6.5\",r:\"2.5\",key:\"4mh3h7\"}],[\"circle\",{cx:\"17.5\",cy:\"17.5\",r:\"2.5\",key:\"1mdrzq\"}]])},98094:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Play\",[[\"polygon\",{points:\"6 3 20 12 6 21 6 3\",key:\"1oa8hb\"}]])},38296:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Sun\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"4\",key:\"4exip2\"}],[\"path\",{d:\"M12 2v2\",key:\"tus03m\"}],[\"path\",{d:\"M12 20v2\",key:\"1lh1kg\"}],[\"path\",{d:\"m4.93 4.93 1.41 1.41\",key:\"149t6j\"}],[\"path\",{d:\"m17.66 17.66 1.41 1.41\",key:\"ptbguv\"}],[\"path\",{d:\"M2 12h2\",key:\"1t8f8n\"}],[\"path\",{d:\"M20 12h2\",key:\"1q8mjw\"}],[\"path\",{d:\"m6.34 17.66-1.41 1.41\",key:\"1m8zz5\"}],[\"path\",{d:\"m19.07 4.93-1.41 1.41\",key:\"1shlcs\"}]])},52022:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"User\",[[\"path\",{d:\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\",key:\"975kel\"}],[\"circle\",{cx:\"12\",cy:\"7\",r:\"4\",key:\"17ys0d\"}]])},74697:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"X\",[[\"path\",{d:\"M18 6 6 18\",key:\"1bl5f8\"}],[\"path\",{d:\"m6 6 12 12\",key:\"d8bk6v\"}]])},66648:function(e,t,r){\"use strict\";r.d(t,{default:function(){return o.a}});var n=r(55601),o=r.n(n)},87138:function(e,t,r){\"use strict\";r.d(t,{default:function(){return o.a}});var n=r(231),o=r.n(n)},844:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addLocale\",{enumerable:!0,get:function(){return n}}),r(18157);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25944:function(e,t,r){\"use strict\";function n(e,t,r,n){return!1}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getDomainLocale\",{enumerable:!0,get:function(){return n}}),r(18157),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38173:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"Image\",{enumerable:!0,get:function(){return b}});let n=r(99920),o=r(41452),i=r(57437),a=o._(r(2265)),s=n._(r(54887)),l=n._(r(28321)),u=r(80497),c=r(7103),d=r(93938);r(72301);let f=r(60291),p=n._(r(21241)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,o,i,a){let s=null==e?void 0:e.src;e&&e[\"data-loaded-src\"]!==s&&(e[\"data-loaded-src\"]=s,(\"decode\"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if(\"empty\"!==t&&o(!0),null==r?void 0:r.current){let t=new Event(\"load\");Object.defineProperty(t,\"target\",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}\"undefined\"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let g=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:g,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:x,setShowAltText:S,sizesInput:P,onLoad:E,onError:A,...R}=e;return(0,i.jsx)(\"img\",{...R,...y(f),loading:h,width:l,height:s,decoding:u,\"data-nimg\":v?\"fill\":\"1\",className:c,style:d,sizes:o,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&(\"function\"==typeof t?t(e):\"object\"==typeof t&&(t.current=e)),e&&(A&&(e.src=e.src),e.complete&&m(e,p,b,w,x,g,P))},[r,p,b,w,x,A,g,P,t]),onLoad:e=>{m(e.currentTarget,p,b,w,x,g,P)},onError:e=>{S(!0),\"empty\"!==p&&x(!0),A&&A(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:\"image\",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,i.jsx)(l.default,{children:(0,i.jsx)(\"link\",{rel:\"preload\",href:r.srcSet?void 0:r.src,...n},\"__nimg-\"+r.src+r.srcSet+r.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[b,w]=(0,a.useState)(!1),[x,S]=(0,a.useState)(!1),{props:P,meta:E}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:b,showAltText:x});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{...P,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:m,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:S,sizesInput:e.sizes,ref:t}),E.priority?(0,i.jsx)(v,{isAppRouter:!r,imgAttributes:P}):null]})});(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},231:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return w}});let n=r(99920),o=r(57437),i=n._(r(2265)),a=r(98016),s=r(18029),l=r(41142),u=r(43461),c=r(844),d=r(60291),f=r(44467),p=r(53106),h=r(25944),m=r(4897),y=r(51507),g=new Set;function v(e,t,r,n,o,i){if(\"undefined\"!=typeof window&&(i||(0,s.isLocalURL)(t))){if(!n.bypassPrefetchedCheck){let o=t+\"%\"+r+\"%\"+(void 0!==n.locale?n.locale:\"locale\"in e?e.locale:void 0);if(g.has(o))return;g.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return\"string\"==typeof e?e:(0,l.formatUrl)(e)}let w=i.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:w,prefetch:x=null,passHref:S,replace:P,shallow:E,scroll:A,locale:R,onClick:j,onMouseEnter:C,onTouchStart:O,legacyBehavior:T=!1,...M}=e;r=w,T&&(\"string\"==typeof r||\"number\"==typeof r)&&(r=(0,o.jsx)(\"a\",{children:r}));let k=i.default.useContext(d.RouterContext),D=i.default.useContext(f.AppRouterContext),N=null!=k?k:D,L=!k,I=!1!==x,F=null===x?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:_,as:V}=i.default.useMemo(()=>{if(!k){let e=b(l);return{href:e,as:g?b(g):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:g?(0,a.resolveHref)(k,g):t||e}},[k,l,g]),z=i.default.useRef(_),B=i.default.useRef(V);T&&(n=i.default.Children.only(r));let W=T?n&&\"object\"==typeof n&&n.ref:t,[U,$,H]=(0,p.useIntersection)({rootMargin:\"200px\"}),K=i.default.useCallback(e=>{(B.current!==V||z.current!==_)&&(H(),B.current=V,z.current=_),U(e),W&&(\"function\"==typeof W?W(e):\"object\"==typeof W&&(W.current=e))},[V,W,_,H,U]);i.default.useEffect(()=>{N&&$&&I&&v(N,_,V,{locale:R},{kind:F},L)},[V,_,$,R,I,null==k?void 0:k.locale,N,L,F]);let q={ref:K,onClick(e){T||\"function\"!=typeof j||j(e),T&&n.props&&\"function\"==typeof n.props.onClick&&n.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,r,n,o,a,l,u,c){let{nodeName:d}=e.currentTarget;if(\"A\"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute(\"target\");return t&&\"_self\"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;\"beforePopState\"in t?t[o?\"replace\":\"push\"](r,n,{shallow:a,locale:u,scroll:e}):t[o?\"replace\":\"push\"](n||r,{scroll:e})};c?i.default.startTransition(f):f()}(e,N,_,V,P,E,A,R,L)},onMouseEnter(e){T||\"function\"!=typeof C||C(e),T&&n.props&&\"function\"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&(I||!L)&&v(N,_,V,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:F},L)},onTouchStart:function(e){T||\"function\"!=typeof O||O(e),T&&n.props&&\"function\"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&(I||!L)&&v(N,_,V,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:F},L)}};if((0,u.isAbsoluteUrl)(V))q.href=V;else if(!T||S||\"a\"===n.type&&!(\"href\"in n.props)){let e=void 0!==R?R:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(V,e,null==k?void 0:k.defaultLocale))}return T?i.default.cloneElement(n,q):(0,o.jsx)(\"a\",{...M,...q,children:r})});(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49189:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r=\"undefined\"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n=\"undefined\"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98016:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"resolveHref\",{enumerable:!0,get:function(){return d}});let n=r(18323),o=r(41142),i=r(45519),a=r(43461),s=r(18157),l=r(18029),u=r(59195),c=r(80020);function d(e,t,r){let d;let f=\"string\"==typeof t?t:(0,o.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\\/\\//),h=p?f.slice(p[0].length):f;if((h.split(\"?\",1)[0]||\"\").match(/(\\/\\/|\\\\)/)){console.error(\"Invalid href '\"+f+\"' passed to next/router in page: '\"+e.pathname+\"'. Repeated forward-slashes (//) or backslashes \\\\ are not valid in the href.\");let t=(0,a.normalizeRepeatedSlashes)(h);f=(p?p[0]:\"\")+t}if(!(0,l.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith(\"#\")?e.asPath:e.pathname,\"http://n\")}catch(e){d=new URL(\"/\",\"http://n\")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t=\"\";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(r,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[f]:f}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53106:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"useIntersection\",{enumerable:!0,get:function(){return l}});let n=r(2265),o=r(49189),i=\"function\"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!i,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||\"\"},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},s.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[p,c,(0,n.useCallback)(()=>{d(!1)},[])]}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82901:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"AmpStateContext\",{enumerable:!0,get:function(){return n}});let n=r(99920)._(r(2265)).default.createContext({})},40687:function(e,t){\"use strict\";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isInAmpMode\",{enumerable:!0,get:function(){return r}})},81943:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"escapeStringRegexp\",{enumerable:!0,get:function(){return o}});let r=/[|\\\\{}()[\\]^$+*?.-]/,n=/[|\\\\{}()[\\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,\"\\\\$&\"):e}},80497:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getImgProps\",{enumerable:!0,get:function(){return s}}),r(72301);let n=r(51564),o=r(7103);function i(e){return void 0!==e.default}function a(e){return void 0===e?e:\"number\"==typeof e?Number.isFinite(e)?e:NaN:\"string\"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:p=!1,loading:h,className:m,quality:y,width:g,height:v,fill:b=!1,style:w,overrideSrc:x,onLoad:S,onLoadingComplete:P,placeholder:E=\"empty\",blurDataURL:A,fetchPriority:R,layout:j,objectFit:C,objectPosition:O,lazyBoundary:T,lazyRoot:M,...k}=e,{imgConf:D,showAltText:N,blurComplete:L,defaultLoader:I}=t,F=D||o.imageConfigDefault;if(\"allSizes\"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t}}if(void 0===I)throw Error(\"images.loaderFile detected but the file is missing default export.\\nRead more: https://nextjs.org/docs/messages/invalid-images-config\");let _=k.loader||I;delete k.loader,delete k.srcSet;let V=\"__next_img_default\"in _;if(V){if(\"custom\"===s.loader)throw Error('Image with src \"'+c+'\" is missing \"loader\" prop.\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=_;_=t=>{let{config:r,...n}=t;return e(n)}}if(j){\"fill\"===j&&(b=!0);let e={intrinsic:{maxWidth:\"100%\",height:\"auto\"},responsive:{width:\"100%\",height:\"auto\"}}[j];e&&(w={...w,...e});let t={responsive:\"100vw\",fill:\"100vw\"}[j];t&&!d&&(d=t)}let z=\"\",B=a(g),W=a(v);if(\"object\"==typeof(r=c)&&(i(r)||void 0!==r.src)){let e=i(c)?c.default:c;if(!e.src)throw Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received \"+JSON.stringify(e));if(!e.height||!e.width)throw Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received \"+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,A=A||e.blurDataURL,z=e.src,!b){if(B||W){if(B&&!W){let t=B/e.width;W=Math.round(e.height*t)}else if(!B&&W){let t=W/e.height;B=Math.round(e.width*t)}}else B=e.width,W=e.height}}let U=!p&&(\"lazy\"===h||void 0===h);(!(c=\"string\"==typeof c?c:z)||c.startsWith(\"data:\")||c.startsWith(\"blob:\"))&&(f=!0,U=!1),s.unoptimized&&(f=!0),V&&c.endsWith(\".svg\")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(R=\"high\");let $=a(y),H=Object.assign(b?{position:\"absolute\",height:\"100%\",width:\"100%\",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:\"transparent\"},w),K=L||\"empty\"===E?null:\"blur\"===E?'url(\"data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:W,blurWidth:l,blurHeight:u,blurDataURL:A||\"\",objectFit:H.objectFit})+'\")':'url(\"'+E+'\")',q=K?{backgroundSize:H.objectFit||\"cover\",backgroundPosition:H.objectPosition||\"50% 50%\",backgroundRepeat:\"no-repeat\",backgroundImage:K}:{},G=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\\s)(1?\\d?\\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:\"w\"}}return{widths:o,kind:\"w\"}}return\"number\"!=typeof t?{widths:n,kind:\"w\"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:\"x\"}}(t,o,a),c=l.length-1;return{sizes:a||\"w\"!==u?a:\"100vw\",srcSet:l.map((e,n)=>s({config:t,src:r,quality:i,width:e})+\" \"+(\"w\"===u?e:n+1)+u).join(\", \"),src:s({config:t,src:r,quality:i,width:l[c]})}}({config:s,src:c,unoptimized:f,width:B,quality:$,sizes:d,loader:_});return{props:{...k,loading:U?\"lazy\":h,fetchPriority:R,width:B,height:W,decoding:\"async\",className:m,style:{...H,...q},sizes:G.sizes,srcSet:G.srcSet,src:x||G.src},meta:{unoptimized:f,priority:p,placeholder:E,fill:b}}}},28321:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let n=r(99920),o=r(41452),i=r(57437),a=o._(r(2265)),s=n._(r(65960)),l=r(82901),u=r(36590),c=r(40687);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)(\"meta\",{charSet:\"utf-8\"})];return e||t.push((0,i.jsx)(\"meta\",{name:\"viewport\",content:\"width=device-width\"})),t}function f(e,t){return\"string\"==typeof t||\"number\"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>\"string\"==typeof t||\"number\"==typeof t?e:e.concat(t),[])):e.concat(t)}r(72301);let p=[\"name\",\"httpEquiv\",\"charSet\",\"itemProp\"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,a=!1;if(o.key&&\"number\"!=typeof o.key&&o.key.indexOf(\"$\")>0){a=!0;let t=o.key.slice(o.key.indexOf(\"$\")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case\"title\":case\"base\":t.has(o.type)?i=!1:t.add(o.type);break;case\"meta\":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t)){if(\"charSet\"===t)r.has(t)?i=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;(\"name\"!==t||!a)&&r.has(e)?i=!1:(r.add(e),n[t]=r)}}}}return i}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&\"link\"===e.type&&e.props.href&&[\"https://fonts.googleapis.com/css\",\"https://use.typekit.net/\"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t[\"data-href\"]=t.href,t.href=void 0,t[\"data-optimized-fonts\"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,a.useContext)(l.AmpStateContext),n=(0,a.useContext)(u.HeadManagerContext);return(0,i.jsx)(s.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51564:function(e,t){\"use strict\";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=n?40*n:t,l=o?40*o:r,u=s&&l?\"viewBox='0 0 \"+s+\" \"+l+\"'\":\"\";return\"%3Csvg xmlns='http://www.w3.org/2000/svg' \"+u+\"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='\"+(u?\"none\":\"contain\"===a?\"xMidYMid\":\"cover\"===a?\"xMidYMid slice\":\"none\")+\"' style='filter: url(%23b);' href='\"+i+\"'/%3E%3C/svg%3E\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getImageBlurSvg\",{enumerable:!0,get:function(){return r}})},93938:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ImageConfigContext\",{enumerable:!0,get:function(){return i}});let n=r(99920)._(r(2265)),o=r(7103),i=n.default.createContext(o.imageConfigDefault)},7103:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=[\"default\",\"imgix\",\"cloudinary\",\"akamai\",\"custom\"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",loaderFile:\"\",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:[\"image/webp\"],dangerouslyAllowSVG:!1,contentSecurityPolicy:\"script-src 'none'; frame-src 'none'; sandbox;\",contentDispositionType:\"inline\",remotePatterns:[],unoptimized:!1}},55601:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(99920),o=r(80497),i=r(38173),a=n._(r(21241));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=i.Image},21241:function(e,t){\"use strict\";function r(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+\"?url=\"+encodeURIComponent(r)+\"&w=\"+n+\"&q=\"+(o||75)}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},60291:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"RouterContext\",{enumerable:!0,get:function(){return n}});let n=r(99920)._(r(2265)).default.createContext(null)},41142:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let n=r(41452)._(r(18323)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,i=e.protocol||\"\",a=e.pathname||\"\",s=e.hash||\"\",l=e.query||\"\",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,\":\")+\"@\":\"\",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(\":\")?\"[\"+r+\"]\":r),e.port&&(u+=\":\"+e.port)),l&&\"object\"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&\"?\"+l||\"\";return i&&!i.endsWith(\":\")&&(i+=\":\"),e.slashes||(!i||o.test(i))&&!1!==u?(u=\"//\"+(u||\"\"),a&&\"/\"!==a[0]&&(a=\"/\"+a)):u||(u=\"\"),s&&\"#\"!==s[0]&&(s=\"#\"+s),c&&\"?\"!==c[0]&&(c=\"?\"+c),\"\"+i+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace(\"#\",\"%23\"))+s}let a=[\"auth\",\"hash\",\"host\",\"hostname\",\"href\",\"path\",\"pathname\",\"port\",\"protocol\",\"query\",\"search\",\"slashes\"];function s(e){return i(e)}},59195:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(49089),o=r(28083)},80020:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"interpolateAs\",{enumerable:!0,get:function(){return i}});let n=r(41533),o=r(63169);function i(e,t,r){let i=\"\",a=(0,o.getRouteRegex)(e),s=a.groups,l=(t!==e?(0,n.getRouteMatcher)(a)(t):\"\")||r;i=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||\"\",{repeat:r,optional:n}=s[e],o=\"[\"+(r?\"...\":\"\")+e+\"]\";return n&&(o=(t?\"\":\"/\")+\"[\"+o+\"]\"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(i=i.replace(o,r?t.map(e=>encodeURIComponent(e)).join(\"/\"):encodeURIComponent(t))||\"/\")})||(i=\"\"),{params:u,result:i}}},28083:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isDynamicRoute\",{enumerable:!0,get:function(){return i}});let n=r(82269),o=/\\/\\[[^/]+?\\](?=\\/|$)/;function i(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},18029:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isLocalURL\",{enumerable:!0,get:function(){return i}});let n=r(43461),o=r(49404);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},45519:function(e,t){\"use strict\";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"omit\",{enumerable:!0,get:function(){return r}})},18323:function(e,t){\"use strict\";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return\"string\"!=typeof e&&(\"number\"!=typeof e||isNaN(e))&&\"boolean\"!=typeof e?\"\":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},41533:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getRouteMatcher\",{enumerable:!0,get:function(){return o}});let n=r(43461);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError(\"failed to decode param\")}},a={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(a[e]=~n.indexOf(\"/\")?n.split(\"/\").map(e=>i(e)):t.repeat?[i(n)]:i(n))}),a}}},63169:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l}});let n=r(82269),o=r(81943),i=r(67741);function a(e){let t=e.startsWith(\"[\")&&e.endsWith(\"]\");t&&(e=e.slice(1,-1));let r=e.startsWith(\"...\");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split(\"/\"),r={},s=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(t&&i){let{key:e,optional:n,repeat:l}=a(i[1]);return r[e]={pos:s++,repeat:l,optional:n},\"/\"+(0,o.escapeStringRegexp)(t)+\"([^/]+?)\"}if(!i)return\"/\"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=a(i[1]);return r[e]={pos:s++,repeat:t,optional:n},t?n?\"(?:/(.+?))?\":\"/(.+?)\":\"/([^/]+?)\"}}).join(\"\"),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=s(e);return{re:RegExp(\"^\"+t+\"(?:/)?$\"),groups:r}}function u(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:i,keyPrefix:s}=e,{key:l,optional:u,repeat:c}=a(n),d=l.replace(/\\W/g,\"\");s&&(d=\"\"+s+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=r()),s?i[d]=\"\"+s+l:i[d]=l;let p=t?(0,o.escapeStringRegexp)(t):\"\";return c?u?\"(?:/\"+p+\"(?<\"+d+\">.+?))?\":\"/\"+p+\"(?<\"+d+\">.+?)\":\"/\"+p+\"(?<\"+d+\">[^/]+?)\"}function c(e,t){let r;let a=(0,i.removeTrailingSlash)(e).slice(1).split(\"/\"),s=(r=0,()=>{let e=\"\",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:a.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(r&&i){let[r]=e.split(i[0]);return u({getSafeRouteKey:s,interceptionMarker:r,segment:i[1],routeKeys:l,keyPrefix:t?\"nxtI\":void 0})}return i?u({getSafeRouteKey:s,segment:i[1],routeKeys:l,keyPrefix:t?\"nxtP\":void 0}):\"/\"+(0,o.escapeStringRegexp)(e)}).join(\"\"),routeKeys:l}}function d(e,t){let r=c(e,t);return{...l(e),namedRegex:\"^\"+r.namedParameterizedRoute+\"(?:/)?$\",routeKeys:r.routeKeys}}function f(e,t){let{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if(\"/\"===r)return{namedRegex:\"^/\"+(n?\".*\":\"\")+\"$\"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:\"^\"+o+(n?\"(?:(/.*)?)\":\"\")+\"$\"}}},49089:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSortedRoutes\",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split(\"/\").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e=\"/\");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf(\"[]\"),1),null!==this.restSlugName&&t.splice(t.indexOf(\"[...]\"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf(\"[[...]]\"),1);let r=t.map(t=>this.children.get(t)._smoosh(\"\"+e+t+\"/\")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get(\"[]\")._smoosh(e+\"[\"+this.slugName+\"]/\")),!this.placeholder){let t=\"/\"===e?\"/\":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route (\"'+t+'\" and \"'+t+\"[[...\"+this.optionalRestSlugName+']]\").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get(\"[...]\")._smoosh(e+\"[...\"+this.restSlugName+\"]/\")),null!==this.optionalRestSlugName&&r.push(...this.children.get(\"[[...]]\")._smoosh(e+\"[[...\"+this.optionalRestSlugName+\"]]/\")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error(\"Catch-all must be the last part of the URL.\");let o=e[0];if(o.startsWith(\"[\")&&o.endsWith(\"]\")){let r=o.slice(1,-1),a=!1;if(r.startsWith(\"[\")&&r.endsWith(\"]\")&&(r=r.slice(1,-1),a=!0),r.startsWith(\"...\")&&(r=r.substring(3),n=!0),r.startsWith(\"[\")||r.endsWith(\"]\"))throw Error(\"Segment names may not start or end with extra brackets ('\"+r+\"').\");if(r.startsWith(\".\"))throw Error(\"Segment names may not start with erroneous periods ('\"+r+\"').\");function i(e,r){if(null!==e&&e!==r)throw Error(\"You cannot use different slug names for the same dynamic path ('\"+e+\"' !== '\"+r+\"').\");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name \"'+r+'\" repeat within a single dynamic path');if(e.replace(/\\W/g,\"\")===o.replace(/\\W/g,\"\"))throw Error('You cannot have the slug names \"'+e+'\" and \"'+r+'\" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level (\"[...'+this.restSlugName+']\" and \"'+e[0]+'\" ).');i(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o=\"[[...]]\"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level (\"[[...'+this.optionalRestSlugName+']]\" and \"'+e[0]+'\").');i(this.restSlugName,r),this.restSlugName=r,o=\"[...]\"}}else{if(a)throw Error('Optional route parameters are not yet supported (\"'+e[0]+'\").');i(this.slugName,r),this.slugName=r,o=\"[]\"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},65960:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return s}});let n=r(2265),o=\"undefined\"==typeof window,i=o?()=>{}:n.useLayoutEffect,a=o?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}if(o){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),s()}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},43461:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return y},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=[\"CLS\",\"FCP\",\"FID\",\"INP\",\"LCP\",\"TTFB\"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\\d+\\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+\"//\"+t+(r?\":\"+r:\"\")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return\"string\"==typeof e?e:e.displayName||e.name||\"Unknown\"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split(\"?\");return t[0].replace(/\\\\/g,\"/\").replace(/\\/\\/+/g,\"/\")+(t[1]?\"?\"+t.slice(1).join(\"?\"):\"\")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Error('\"'+l(e)+'.getInitialProps()\" should resolve to an object. But found \"'+n+'\" instead.');return n}let f=\"undefined\"!=typeof performance,p=f&&[\"mark\",\"measure\",\"getEntriesByName\"].every(e=>\"function\"==typeof performance[e]);class h extends Error{}class m extends Error{}class y extends Error{constructor(e){super(),this.code=\"ENOENT\",this.name=\"PageNotFoundError\",this.message=\"Cannot find module for page: \"+e}}class g extends Error{constructor(e,t){super(),this.message=\"Failed to load static file for page: \"+e+\" \"+t}}class v extends Error{constructor(){super(),this.code=\"ENOENT\",this.message=\"Cannot find the middleware module\"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},56919:function(e,t,r){var n=\"function\"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,\"size\"):null,i=n&&o&&\"function\"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s=\"function\"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,\"size\"):null,u=s&&l&&\"function\"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d=\"function\"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f=\"function\"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=\"function\"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,S=RegExp.prototype.test,P=Array.prototype.concat,E=Array.prototype.join,A=Array.prototype.slice,R=Math.floor,j=\"function\"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,O=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?Symbol.prototype.toString:null,T=\"function\"==typeof Symbol&&\"object\"==typeof Symbol.iterator,M=\"function\"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T?\"object\":\"symbol\")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,D=(\"function\"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(\"number\"==typeof e){var n=e<0?-R(-e):R(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,\"$&_\")+\".\"+b.call(b.call(i,/([0-9]{3})/g,\"$&_\"),/_$/,\"\")}}return b.call(t,r,\"$&_\")}var L=r(24654),I=L.custom,F=B(I)?I:null;function _(e,t,r){var n=\"double\"===(r.quoteStyle||t)?'\"':\"'\";return n+e+n}function V(e){return\"[object Array]\"===$(e)&&(!M||!(\"object\"==typeof e&&M in e))}function z(e){return\"[object RegExp]\"===$(e)&&(!M||!(\"object\"==typeof e&&M in e))}function B(e){if(T)return e&&\"object\"==typeof e&&e instanceof Symbol;if(\"symbol\"==typeof e)return!0;if(!e||\"object\"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(U(l,\"quoteStyle\")&&\"single\"!==l.quoteStyle&&\"double\"!==l.quoteStyle)throw TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');if(U(l,\"maxStringLength\")&&(\"number\"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');var m=!U(l,\"customInspect\")||l.customInspect;if(\"boolean\"!=typeof m&&\"symbol\"!==m)throw TypeError(\"option \\\"customInspect\\\", if provided, must be `true`, `false`, or `'symbol'`\");if(U(l,\"indent\")&&null!==l.indent&&\"\t\"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');if(U(l,\"numericSeparator\")&&\"boolean\"!=typeof l.numericSeparator)throw TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return\"undefined\";if(null===t)return\"null\";if(\"boolean\"==typeof t)return t?\"true\":\"false\";if(\"string\"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+\"... \"+n+\" more character\"+(n>1?\"s\":\"\")}return _(b.call(b.call(t,/(['\\\\])/g,\"\\\\$1\"),/[\\x00-\\x1f]/g,K),\"single\",r)}(t,l);if(\"number\"==typeof t){if(0===t)return 1/0/t>0?\"0\":\"-0\";var S=String(t);return w?N(t,S):S}if(\"bigint\"==typeof t){var R=String(t)+\"n\";return w?N(t,R):R}var C=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=C&&C>0&&\"object\"==typeof t)return V(t)?\"[Array]\":\"[Object]\";var I=function(e,t){var r;if(\"\t\"===e.indent)r=\"\t\";else{if(\"number\"!=typeof e.indent||!(e.indent>0))return null;r=E.call(Array(e.indent+1),\" \")}return{base:r,prev:E.call(Array(t+1),r)}}(l,o);if(void 0===s)s=[];else if(H(s,t)>=0)return\"[Circular]\";function W(t,r,n){if(r&&(s=A.call(s)).push(r),n){var i={depth:l.depth};return U(l,\"quoteStyle\")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if(\"function\"==typeof t&&!z(t)){var J=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\\s*([\\w$]+)/);return t?t[1]:null}(t),Q=Y(t,W);return\"[Function\"+(J?\": \"+J:\" (anonymous)\")+\"]\"+(Q.length>0?\" { \"+E.call(Q,\", \")+\" }\":\"\")}if(B(t)){var ee=T?b.call(String(t),/^(Symbol\\(.*\\))_[^)]*$/,\"$1\"):O.call(t);return\"object\"!=typeof t||T?ee:q(ee)}if(t&&\"object\"==typeof t&&(\"undefined\"!=typeof HTMLElement&&t instanceof HTMLElement||\"string\"==typeof t.nodeName&&\"function\"==typeof t.getAttribute)){for(var et,er=\"<\"+x.call(String(t.nodeName)),en=t.attributes||[],eo=0;eo<en.length;eo++)er+=\" \"+en[eo].name+\"=\"+_((et=en[eo].value,b.call(String(et),/\"/g,\"&quot;\")),\"double\",l);return er+=\">\",t.childNodes&&t.childNodes.length&&(er+=\"...\"),er+=\"</\"+x.call(String(t.nodeName))+\">\"}if(V(t)){if(0===t.length)return\"[]\";var ei=Y(t,W);return I&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],\"\\n\")>=0)return!1;return!0}(ei)?\"[\"+X(ei,I)+\"]\":\"[ \"+E.call(ei,\", \")+\" ]\"}if(\"[object Error]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t))){var ea=Y(t,W);return\"cause\"in Error.prototype||!(\"cause\"in t)||k.call(t,\"cause\")?0===ea.length?\"[\"+String(t)+\"]\":\"{ [\"+String(t)+\"] \"+E.call(ea,\", \")+\" }\":\"{ [\"+String(t)+\"] \"+E.call(P.call(\"[cause]: \"+W(t.cause),ea),\", \")+\" }\"}if(\"object\"==typeof t&&m){if(F&&\"function\"==typeof t[F]&&L)return L(t,{depth:C-o});if(\"symbol\"!==m&&\"function\"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||\"object\"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var es=[];return a&&a.call(t,function(e,r){es.push(W(r,t,!0)+\" => \"+W(e,t))}),Z(\"Map\",i.call(t),es,I)}if(function(e){if(!u||!e||\"object\"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var el=[];return c&&c.call(t,function(e){el.push(W(e,t))}),Z(\"Set\",u.call(t),el,I)}if(function(e){if(!d||!e||\"object\"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return G(\"WeakMap\");if(function(e){if(!f||!e||\"object\"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return G(\"WeakSet\");if(function(e){if(!p||!e||\"object\"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return G(\"WeakRef\");if(\"[object Number]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))return q(W(Number(t)));if(function(e){if(!e||\"object\"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return q(W(j.call(t)));if(\"[object Boolean]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))return q(h.call(t));if(\"[object String]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))return q(W(String(t)));if(\"undefined\"!=typeof window&&t===window)return\"{ [object Window] }\";if(\"undefined\"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return\"{ [object globalThis] }\";if(!(\"[object Date]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))&&!z(t)){var eu=Y(t,W),ec=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,ed=t instanceof Object?\"\":\"null prototype\",ef=!ec&&M&&Object(t)===t&&M in t?v.call($(t),8,-1):ed?\"Object\":\"\",ep=(ec||\"function\"!=typeof t.constructor?\"\":t.constructor.name?t.constructor.name+\" \":\"\")+(ef||ed?\"[\"+E.call(P.call([],ef||[],ed||[]),\": \")+\"] \":\"\");return 0===eu.length?ep+\"{}\":I?ep+\"{\"+X(eu,I)+\"}\":ep+\"{ \"+E.call(eu,\", \")+\" }\"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return W.call(e,t)}function $(e){return m.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function K(e){var t=e.charCodeAt(0),r={8:\"b\",9:\"t\",10:\"n\",12:\"f\",13:\"r\"}[t];return r?\"\\\\\"+r:\"\\\\x\"+(t<16?\"0\":\"\")+w.call(t.toString(16))}function q(e){return\"Object(\"+e+\")\"}function G(e){return e+\" { ? }\"}function Z(e,t,r,n){return e+\" (\"+t+\") {\"+(n?X(r,n):E.call(r,\", \"))+\"}\"}function X(e,t){if(0===e.length)return\"\";var r=\"\\n\"+t.prev+t.base;return r+E.call(e,\",\"+r)+\"\\n\"+t.prev}function Y(e,t){var r,n=V(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=U(e,i)?t(e[i],e):\"\"}var a=\"function\"==typeof C?C(e):[];if(T){r={};for(var s=0;s<a.length;s++)r[\"$\"+a[s]]=a[s]}for(var l in e)U(e,l)&&(!n||String(Number(l))!==l||!(l<e.length))&&(T&&r[\"$\"+l]instanceof Symbol||(S.call(/[^\\w$]/,l)?o.push(t(l,e)+\": \"+t(e[l],e)):o.push(l+\": \"+t(e[l],e))));if(\"function\"==typeof C)for(var u=0;u<a.length;u++)k.call(e,a[u])&&o.push(\"[\"+t(a[u])+\"]: \"+t(e[a[u]],e));return o}},3462:function(e){\"use strict\";var t=String.prototype.replace,r=/%20/g,n=\"RFC3986\";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,\"+\")},RFC3986:function(e){return String(e)}},RFC1738:\"RFC1738\",RFC3986:n}},97334:function(e,t,r){\"use strict\";var n=r(38489),o=r(69864),i=r(3462);e.exports={formats:i,parse:o,stringify:n}},69864:function(e,t,r){\"use strict\";var n=r(65600),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:\"utf-8\",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:\"&\",depth:5,duplicates:\"combine\",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e,t){return e&&\"string\"==typeof e&&t.comma&&e.indexOf(\",\")>-1?e.split(\",\"):e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\\?/,\"\"):e;l=l.replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,c=l.split(t.delimiter,u),d=-1,f=t.charset;if(t.charsetSentinel)for(p=0;p<c.length;++p)0===c[p].indexOf(\"utf8=\")&&(\"utf8=%E2%9C%93\"===c[p]?f=\"utf-8\":\"utf8=%26%2310003%3B\"===c[p]&&(f=\"iso-8859-1\"),d=p,p=c.length);for(p=0;p<c.length;++p)if(p!==d){var p,h,m,y=c[p],g=y.indexOf(\"]=\"),v=-1===g?y.indexOf(\"=\"):g+1;-1===v?(h=t.decoder(y,a.decoder,f,\"key\"),m=t.strictNullHandling?null:\"\"):(h=t.decoder(y.slice(0,v),a.decoder,f,\"key\"),m=n.maybeMap(s(y.slice(v+1),t),function(e){return t.decoder(e,a.decoder,f,\"value\")})),m&&t.interpretNumericEntities&&\"iso-8859-1\"===f&&(m=m.replace(/&#(\\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),y.indexOf(\"[]=\")>-1&&(m=i(m)?[m]:m);var b=o.call(r,h);b&&\"combine\"===t.duplicates?r[h]=n.combine(r[h],m):b&&\"last\"!==t.duplicates||(r[h]=m)}return r},u=function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if(\"[]\"===l&&r.parseArrays)a=r.allowEmptyArrays&&(\"\"===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u=\"[\"===l.charAt(0)&&\"]\"===l.charAt(l.length-1)?l.slice(1,-1):l,c=r.decodeDotInKeys?u.replace(/%2E/g,\".\"):u,d=parseInt(c,10);r.parseArrays||\"\"!==c?!isNaN(d)&&l!==c&&String(d)===c&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(a=[])[d]=o:\"__proto__\"!==c&&(a[c]=o):a={0:o}}o=a}return o},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\\.([^.[]+)/g,\"[$1]\"):e,a=/(\\[[^[\\]]*])/g,s=r.depth>0&&/(\\[[^[\\]]*])/.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var d=0;r.depth>0&&null!==(s=a.exec(i))&&d<r.depth;){if(d+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}if(s){if(!0===r.strictDepth)throw RangeError(\"Input depth exceeded depth option of \"+r.depth+\" and strictDepth is true\");c.push(\"[\"+i.slice(s.index)+\"]\")}return u(c,t,r,n)}},d=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&\"boolean\"!=typeof e.allowEmptyArrays)throw TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(void 0!==e.decodeDotInKeys&&\"boolean\"!=typeof e.decodeDotInKeys)throw TypeError(\"`decodeDotInKeys` option can only be `true` or `false`, when provided\");if(null!==e.decoder&&void 0!==e.decoder&&\"function\"!=typeof e.decoder)throw TypeError(\"Decoder has to be a function.\");if(void 0!==e.charset&&\"utf-8\"!==e.charset&&\"iso-8859-1\"!==e.charset)throw TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if(\"combine\"!==r&&\"first\"!==r&&\"last\"!==r)throw TypeError(\"The duplicates option must be either combine, first, or last\");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:\"boolean\"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:\"boolean\"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:\"boolean\"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:\"number\"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:\"boolean\"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:\"boolean\"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:\"boolean\"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:\"function\"==typeof e.decoder?e.decoder:a.decoder,delimiter:\"string\"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:\"number\"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:\"boolean\"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:\"number\"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:\"boolean\"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:\"boolean\"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:\"boolean\"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(\"\"===e||null==e)return r.plainObjects?Object.create(null):{};for(var o=\"string\"==typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],f=c(u,o[u],r,\"string\"==typeof e);i=n.merge(i,f,r)}return!0===r.allowSparse?i:n.compact(i)}},38489:function(e,t,r){\"use strict\";var n=r(16689),o=r(65600),i=r(3462),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+\"[]\"},comma:\"comma\",indices:function(e,t){return e+\"[\"+t+\"]\"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:\"indices\",charset:\"utf-8\",charsetSentinel:!1,delimiter:\"&\",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,r,i,a,s,u,d,f,m,y,g,v,b,w,x,S,P,E){for(var A,R,j=t,C=E,O=0,T=!1;void 0!==(C=C.get(h))&&!T;){var M=C.get(t);if(O+=1,void 0!==M){if(M===O)throw RangeError(\"Cyclic object value\");T=!0}void 0===C.get(h)&&(O=0)}if(\"function\"==typeof y?j=y(r,j):j instanceof Date?j=b(j):\"comma\"===i&&l(j)&&(j=o.maybeMap(j,function(e){return e instanceof Date?b(e):e})),null===j){if(u)return m&&!S?m(r,p.encoder,P,\"key\",w):r;j=\"\"}if(\"string\"==typeof(A=j)||\"number\"==typeof A||\"boolean\"==typeof A||\"symbol\"==typeof A||\"bigint\"==typeof A||o.isBuffer(j))return m?[x(S?r:m(r,p.encoder,P,\"key\",w))+\"=\"+x(m(j,p.encoder,P,\"value\",w))]:[x(r)+\"=\"+x(String(j))];var k=[];if(void 0===j)return k;if(\"comma\"===i&&l(j))S&&m&&(j=o.maybeMap(j,m)),R=[{value:j.length>0?j.join(\",\")||null:void 0}];else if(l(y))R=y;else{var D=Object.keys(j);R=g?D.sort(g):D}var N=f?r.replace(/\\./g,\"%2E\"):r,L=a&&l(j)&&1===j.length?N+\"[]\":N;if(s&&l(j)&&0===j.length)return L+\"[]\";for(var I=0;I<R.length;++I){var F=R[I],_=\"object\"==typeof F&&void 0!==F.value?F.value:j[F];if(!d||null!==_){var V=v&&f?F.replace(/\\./g,\"%2E\"):F,z=l(j)?\"function\"==typeof i?i(L,V):L:L+(v?\".\"+V:\"[\"+V+\"]\");E.set(t,O);var B=n();B.set(h,E),c(k,e(_,z,i,a,s,u,d,f,\"comma\"===i&&S&&l(j)?null:m,y,g,v,b,w,x,S,P,B))}}return k},y=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&\"boolean\"!=typeof e.allowEmptyArrays)throw TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(void 0!==e.encodeDotInKeys&&\"boolean\"!=typeof e.encodeDotInKeys)throw TypeError(\"`encodeDotInKeys` option can only be `true` or `false`, when provided\");if(null!==e.encoder&&void 0!==e.encoder&&\"function\"!=typeof e.encoder)throw TypeError(\"Encoder has to be a function.\");var t,r=e.charset||p.charset;if(void 0!==e.charset&&\"utf-8\"!==e.charset&&\"iso-8859-1\"!==e.charset)throw TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError(\"Unknown format option provided.\");n=e.format}var o=i.formatters[n],u=p.filter;if((\"function\"==typeof e.filter||l(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:\"indices\"in e?e.indices?\"indices\":\"repeat\":p.arrayFormat,\"commaRoundTrip\"in e&&\"boolean\"!=typeof e.commaRoundTrip)throw TypeError(\"`commaRoundTrip` must be a boolean, or absent\");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:\"boolean\"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:\"boolean\"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:\"boolean\"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:\"boolean\"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:\"boolean\"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:\"function\"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:\"boolean\"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:\"function\"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:\"boolean\"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:\"function\"==typeof e.sort?e.sort:null,strictNullHandling:\"boolean\"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,o=e,i=y(t);\"function\"==typeof i.filter?o=(0,i.filter)(\"\",o):l(i.filter)&&(r=i.filter);var a=[];if(\"object\"!=typeof o||null===o)return\"\";var u=s[i.arrayFormat],d=\"comma\"===u&&i.commaRoundTrip;r||(r=Object.keys(o)),i.sort&&r.sort(i.sort);for(var f=n(),p=0;p<r.length;++p){var h=r[p];i.skipNulls&&null===o[h]||c(a,m(o[h],h,u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,f))}var g=a.join(i.delimiter),v=!0===i.addQueryPrefix?\"?\":\"\";return i.charsetSentinel&&(\"iso-8859-1\"===i.charset?v+=\"utf8=%26%2310003%3B&\":v+=\"utf8=%E2%9C%93&\"),g.length>0?v+g:\"\"}},65600:function(e,t,r){\"use strict\";var n=r(3462),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(\"%\"+((t<16?\"0\":\"\")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:\"o\"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),l=0;l<a.length;++l){var u=a[l],c=i[u];\"object\"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:u}),r.push(c))}return s(t),e},decode:function(e,t,r){var n=e.replace(/\\+/g,\" \");if(\"iso-8859-1\"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if(\"symbol\"==typeof e?s=Symbol.prototype.toString.call(e):\"string\"!=typeof e&&(s=String(e)),\"iso-8859-1\"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return\"%26%23\"+parseInt(e.slice(2),16)+\"%3B\"});for(var l=\"\",u=0;u<s.length;u+=1024){for(var c=s.length>=1024?s.slice(u,u+1024):s,d=[],f=0;f<c.length;++f){var p=c.charCodeAt(f);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)){d[d.length]=c.charAt(f);continue}if(p<128){d[d.length]=a[p];continue}if(p<2048){d[d.length]=a[192|p>>6]+a[128|63&p];continue}if(p<55296||p>=57344){d[d.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p];continue}f+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(f)),d[d.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p]}l+=d.join(\"\")}return l},isBuffer:function(e){return!!e&&\"object\"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if(\"object\"!=typeof r){if(i(t))t.push(r);else{if(!t||\"object\"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||\"object\"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=l(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&\"object\"==typeof a&&r&&\"object\"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},49418:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return X}});var n,o,i,a,s,l,u,c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}\"function\"==typeof SuppressedError&&SuppressedError;var f=r(2265),p=\"right-scroll-bar-position\",h=\"width-before-scroll-bar\";function m(e,t){return\"function\"==typeof e?e(t):e&&(e.current=t),e}var y=\"undefined\"!=typeof window?f.useLayoutEffect:f.useEffect,g=new WeakMap,v=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var r=a;a=[],r.forEach(e),t=a}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=c({async:!0,ssr:!1},o),l),b=function(){},w=f.forwardRef(function(e,t){var r,n,o,i,a=f.useRef(null),s=f.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),l=s[0],u=s[1],p=e.forwardProps,h=e.children,w=e.className,x=e.removeScrollBar,S=e.enabled,P=e.shards,E=e.sideCar,A=e.noIsolation,R=e.inert,j=e.allowPinchZoom,C=e.as,O=e.gapMode,T=d(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\",\"gapMode\"]),M=(r=[a,t],n=function(e){return r.forEach(function(t){return m(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,i=o.facade,y(function(){var e=g.get(i);if(e){var t=new Set(e),n=new Set(r),o=i.current;t.forEach(function(e){n.has(e)||m(e,null)}),n.forEach(function(e){t.has(e)||m(e,o)})}g.set(i,r)},[r]),i),k=c(c({},T),l);return f.createElement(f.Fragment,null,S&&f.createElement(E,{sideCar:v,removeScrollBar:x,shards:P,noIsolation:A,inert:R,setCallbacks:u,allowPinchZoom:!!j,lockRef:a,gapMode:O}),p?f.cloneElement(f.Children.only(h),c(c({},k),{ref:M})):f.createElement(void 0===C?\"div\":C,c({},k,{className:w,ref:M}),h))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:h,zeroRight:p};var x=function(e){var t=e.sideCar,r=d(e,[\"sideCar\"]);if(!t)throw Error(\"Sidecar: please provide `sideCar` property to import the right car\");var n=t.read();if(!n)throw Error(\"Sidecar medium not found\");return f.createElement(n,c({},r))};x.isSideCarExport=!0;var S=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var t=n||r.nc;return t&&e.setAttribute(\"nonce\",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName(\"head\")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},P=function(){var e=S();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},E=function(){var e=P();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||\"\",10)||0},j=function(e){var t=window.getComputedStyle(document.body),r=t[\"padding\"===e?\"paddingLeft\":\"marginLeft\"],n=t[\"padding\"===e?\"paddingTop\":\"marginTop\"],o=t[\"padding\"===e?\"paddingRight\":\"marginRight\"];return[R(r),R(n),R(o)]},C=function(e){if(void 0===e&&(e=\"margin\"),\"undefined\"==typeof window)return A;var t=j(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},O=E(),T=\"data-scroll-locked\",M=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r=\"margin\"),\"\\n  .\".concat(\"with-scroll-bars-hidden\",\" {\\n   overflow: hidden \").concat(n,\";\\n   padding-right: \").concat(s,\"px \").concat(n,\";\\n  }\\n  body[\").concat(T,\"] {\\n    overflow: hidden \").concat(n,\";\\n    overscroll-behavior: contain;\\n    \").concat([t&&\"position: relative \".concat(n,\";\"),\"margin\"===r&&\"\\n    padding-left: \".concat(o,\"px;\\n    padding-top: \").concat(i,\"px;\\n    padding-right: \").concat(a,\"px;\\n    margin-left:0;\\n    margin-top:0;\\n    margin-right: \").concat(s,\"px \").concat(n,\";\\n    \"),\"padding\"===r&&\"padding-right: \".concat(s,\"px \").concat(n,\";\")].filter(Boolean).join(\"\"),\"\\n  }\\n  \\n  .\").concat(p,\" {\\n    right: \").concat(s,\"px \").concat(n,\";\\n  }\\n  \\n  .\").concat(h,\" {\\n    margin-right: \").concat(s,\"px \").concat(n,\";\\n  }\\n  \\n  .\").concat(p,\" .\").concat(p,\" {\\n    right: 0 \").concat(n,\";\\n  }\\n  \\n  .\").concat(h,\" .\").concat(h,\" {\\n    margin-right: 0 \").concat(n,\";\\n  }\\n  \\n  body[\").concat(T,\"] {\\n    \").concat(\"--removed-body-scroll-bar-size\",\": \").concat(s,\"px;\\n  }\\n\")},k=function(){var e=parseInt(document.body.getAttribute(T)||\"0\",10);return isFinite(e)?e:0},D=function(){f.useEffect(function(){return document.body.setAttribute(T,(k()+1).toString()),function(){var e=k()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},N=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?\"margin\":n;D();var i=f.useMemo(function(){return C(o)},[o]);return f.createElement(O,{styles:M(i,!t,o,r?\"\":\"!important\")})},L=!1;if(\"undefined\"!=typeof window)try{var I=Object.defineProperty({},\"passive\",{get:function(){return L=!0,!0}});window.addEventListener(\"test\",I,I),window.removeEventListener(\"test\",I,I)}catch(e){L=!1}var F=!!L&&{passive:!1},_=function(e,t){var r=window.getComputedStyle(e);return\"hidden\"!==r[t]&&!(r.overflowY===r.overflowX&&\"TEXTAREA\"!==e.tagName&&\"visible\"===r[t])},V=function(e,t){var r=t.ownerDocument,n=t;do{if(\"undefined\"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),z(e,n)){var o=B(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},z=function(e,t){return\"v\"===e?_(t,\"overflowY\"):_(t,\"overflowX\")},B=function(e,t){return\"v\"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,\"h\"===e&&\"rtl\"===i?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=B(e,l),m=h[0],y=h[1]-h[2]-a*m;(m||y)&&z(e,l)&&(f+=y,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&s>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(c=!0),c},U=function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&\"current\"in e?e.current:e},K=0,q=[],G=(u=function(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(K++)[0],i=f.useState(E)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(\"allow-interactivity-\".concat(o))}),function(){document.body.classList.remove(\"block-interactivity-\".concat(o)),t.forEach(function(e){return e.classList.remove(\"allow-interactivity-\".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(e,t){if(\"touches\"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=U(e),s=r.current,l=\"deltaX\"in e?e.deltaX:s[0]-i[0],u=\"deltaY\"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?\"h\":\"v\";if(\"touches\"in e&&\"h\"===d&&\"range\"===c.type)return!1;var f=V(d,c);if(!f)return!0;if(f?o=d:(o=\"v\"===d?\"h\":\"v\",f=V(d,c)),!f)return!1;if(!n.current&&\"changedTouches\"in e&&(l||u)&&(n.current=o),!o)return!0;var p=n.current||o;return W(p,t,e,\"h\"===p?l:u,!0)},[]),l=f.useCallback(function(e){if(q.length&&q[q.length-1]===i){var r=\"deltaY\"in e?$(e):U(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(a.current.shards||[]).map(H).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=f.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=f.useCallback(function(e){r.current=U(e),n.current=void 0},[]),d=f.useCallback(function(t){u(t.type,$(t),t.target,s(t,e.lockRef.current))},[]),p=f.useCallback(function(t){u(t.type,U(t),t.target,s(t,e.lockRef.current))},[]);f.useEffect(function(){return q.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener(\"wheel\",l,F),document.addEventListener(\"touchmove\",l,F),document.addEventListener(\"touchstart\",c,F),function(){q=q.filter(function(e){return e!==i}),document.removeEventListener(\"wheel\",l,F),document.removeEventListener(\"touchmove\",l,F),document.removeEventListener(\"touchstart\",c,F)}},[]);var h=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(i,{styles:\"\\n  .block-interactivity-\".concat(o,\" {pointer-events: none;}\\n  .allow-interactivity-\").concat(o,\" {pointer-events: all;}\\n\")}):null,h?f.createElement(N,{gapMode:e.gapMode}):null)},v.useMedium(u),x),Z=f.forwardRef(function(e,t){return f.createElement(w,c({},e,{ref:t,sideCar:G}))});Z.classNames=w.classNames;var X=Z},41505:function(e,t,r){\"use strict\";r.d(t,{OT:function(){return eR},eh:function(){return eP},s_:function(){return P}});var n,o=r(2265);let{createElement:i,createContext:a,createRef:s,forwardRef:l,useCallback:u,useContext:c,useEffect:d,useImperativeHandle:f,useLayoutEffect:p,useMemo:h,useRef:m,useState:y}=n||(n=r.t(o,2)),g=(n||(n=r.t(o,2)))[\"useId\".toString()],v=a(null);v.displayName=\"PanelGroupContext\";let b=\"function\"==typeof g?g:()=>null,w=0;function x(e=null){let t=b(),r=m(e||t||null);return null===r.current&&(r.current=\"\"+w++),null!=e?e:r.current}function S({children:e,className:t=\"\",collapsedSize:r,collapsible:n,defaultSize:o,forwardedRef:a,id:s,maxSize:l,minSize:u,onCollapse:d,onExpand:h,onResize:y,order:g,style:b,tagName:w=\"div\",...S}){let P=c(v);if(null===P)throw Error(\"Panel components must be rendered within a PanelGroup container\");let{collapsePanel:E,expandPanel:A,getPanelSize:R,getPanelStyle:j,groupId:C,isPanelCollapsed:O,reevaluatePanelConstraints:T,registerPanel:M,resizePanel:k,unregisterPanel:D}=P,N=x(s),L=m({callbacks:{onCollapse:d,onExpand:h,onResize:y},constraints:{collapsedSize:r,collapsible:n,defaultSize:o,maxSize:l,minSize:u},id:N,idIsFromProps:void 0!==s,order:g});m({didLogMissingDefaultSizeWarning:!1}),p(()=>{let{callbacks:e,constraints:t}=L.current,i={...t};L.current.id=N,L.current.idIsFromProps=void 0!==s,L.current.order=g,e.onCollapse=d,e.onExpand=h,e.onResize=y,t.collapsedSize=r,t.collapsible=n,t.defaultSize=o,t.maxSize=l,t.minSize=u,(i.collapsedSize!==t.collapsedSize||i.collapsible!==t.collapsible||i.maxSize!==t.maxSize||i.minSize!==t.minSize)&&T(L.current,i)}),p(()=>{let e=L.current;return M(e),()=>{D(e)}},[g,N,M,D]),f(a,()=>({collapse:()=>{E(L.current)},expand:e=>{A(L.current,e)},getId:()=>N,getSize:()=>R(L.current),isCollapsed:()=>O(L.current),isExpanded:()=>!O(L.current),resize:e=>{k(L.current,e)}}),[E,A,R,O,N,k]);let I=j(L.current,o);return i(w,{...S,children:e,className:t,id:s,style:{...I,...b},\"data-panel\":\"\",\"data-panel-collapsible\":n||void 0,\"data-panel-group-id\":C,\"data-panel-id\":N,\"data-panel-size\":parseFloat(\"\"+I.flexGrow).toFixed(1)})}let P=l((e,t)=>i(S,{...e,forwardedRef:t}));S.displayName=\"Panel\",P.displayName=\"forwardRef(Panel)\";let E=null,A=null;function R(e,t){let r=function(e,t){if(t){let e=(t&I)!=0,r=(t&F)!=0,n=(t&_)!=0,o=(t&V)!=0;if(e)return n?\"se-resize\":o?\"ne-resize\":\"e-resize\";if(r)return n?\"sw-resize\":o?\"nw-resize\":\"w-resize\";if(n)return\"s-resize\";if(o)return\"n-resize\"}switch(e){case\"horizontal\":return\"ew-resize\";case\"intersection\":return\"move\";case\"vertical\":return\"ns-resize\"}}(e,t);E!==r&&(E=r,null===A&&(A=document.createElement(\"style\"),document.head.appendChild(A)),A.innerHTML=`*{cursor: ${r}!important;}`)}function j(e){return\"keydown\"===e.type}function C(e){return e.type.startsWith(\"pointer\")}function O(e){return e.type.startsWith(\"mouse\")}function T(e){if(C(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(O(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let M=/\\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\\b/;function k(e){let t=e.length;for(;t--;){let r=e[t];if(Q(r,\"Missing node\"),function(e){let t=getComputedStyle(e);return!!(\"fixed\"===t.position||\"auto\"!==t.zIndex&&(\"static\"!==t.position||function(e){var t;let r=getComputedStyle(null!==(t=L(e))&&void 0!==t?t:e).display;return\"flex\"===r||\"inline-flex\"===r}(e))||1>+t.opacity||\"transform\"in t&&\"none\"!==t.transform||\"webkitTransform\"in t&&\"none\"!==t.webkitTransform||\"mixBlendMode\"in t&&\"normal\"!==t.mixBlendMode||\"filter\"in t&&\"none\"!==t.filter||\"webkitFilter\"in t&&\"none\"!==t.webkitFilter||\"isolation\"in t&&\"isolate\"===t.isolation||M.test(t.willChange))||\"touch\"===t.webkitOverflowScrolling}(r))return r}return null}function D(e){return e&&Number(getComputedStyle(e).zIndex)||0}function N(e){let t=[];for(;e;)t.push(e),e=L(e);return t}function L(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let I=1,F=2,_=4,V=8,z=\"coarse\"===function(){if(\"function\"==typeof matchMedia)return matchMedia(\"(pointer:coarse)\").matches?\"coarse\":\"fine\"}(),B=[],W=!1,U=new Map,$=new Map,H=new Set;function K(e){let{target:t}=e,{x:r,y:n}=T(e);W=!0,Z({target:t,x:r,y:n}),Y(),B.length>0&&(J(\"down\",e),e.preventDefault(),e.stopPropagation())}function q(e){let{x:t,y:r}=T(e);if(0===e.buttons&&(W=!1,J(\"up\",e)),!W){let{target:n}=e;Z({target:n,x:t,y:r})}J(\"move\",e),X(),B.length>0&&e.preventDefault()}function G(e){let{target:t}=e,{x:r,y:n}=T(e);$.clear(),W=!1,B.length>0&&e.preventDefault(),J(\"up\",e),Z({target:t,x:r,y:n}),X(),Y()}function Z({target:e,x:t,y:r}){B.splice(0);let n=null;e instanceof HTMLElement&&(n=e),H.forEach(e=>{let{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:u,top:c}=a,d=z?i.coarse:i.fine;if(t>=l-d&&t<=u+d&&r>=c-d&&r<=s+d){if(null!==n&&o!==n&&!o.contains(n)&&!n.contains(o)&&function(e,t){let r;if(e===t)throw Error(\"Cannot compare node with itself\");let n={a:N(e),b:N(t)};for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Q(r,\"Stacking order can only be calculated for elements with a common ancestor\");let o={a:D(k(n.a)),b:D(k(n.b))};if(o.a===o.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},o=e.length;for(;o--;){let r=e[o];if(r===t.a)return 1;if(r===t.b)return -1}}return Math.sign(o.a-o.b)}(n,o)>0){let e=n,t=!1;for(;e;){var f;if(e.contains(o))break;if((f=e.getBoundingClientRect()).x<a.x+a.width&&f.x+f.width>a.x&&f.y<a.y+a.height&&f.y+f.height>a.y){t=!0;break}e=e.parentElement}if(t)return}B.push(e)}})}function X(){let e=!1,t=!1;B.forEach(r=>{let{direction:n}=r;\"horizontal\"===n?e=!0:t=!0});let r=0;$.forEach(e=>{r|=e}),e&&t?R(\"intersection\",r):e?R(\"horizontal\",r):t?R(\"vertical\",r):null!==A&&(document.head.removeChild(A),E=null,A=null)}function Y(){U.forEach((e,t)=>{let{body:r}=t;r.removeEventListener(\"contextmenu\",G),r.removeEventListener(\"pointerdown\",K),r.removeEventListener(\"pointerleave\",q),r.removeEventListener(\"pointermove\",q)}),window.removeEventListener(\"pointerup\",G),window.removeEventListener(\"pointercancel\",G),H.size>0&&(W?(B.length>0&&U.forEach((e,t)=>{let{body:r}=t;e>0&&(r.addEventListener(\"contextmenu\",G),r.addEventListener(\"pointerleave\",q),r.addEventListener(\"pointermove\",q))}),window.addEventListener(\"pointerup\",G),window.addEventListener(\"pointercancel\",G)):U.forEach((e,t)=>{let{body:r}=t;e>0&&(r.addEventListener(\"pointerdown\",K,{capture:!0}),r.addEventListener(\"pointermove\",q))}))}function J(e,t){H.forEach(r=>{let{setResizeHandlerState:n}=r;n(e,B.includes(r),t)})}function Q(e,t){if(!e)throw console.error(t),Error(t)}function ee(e,t,r=10){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}function et(e,t,r=10){return 0===ee(e,t,r)}function er(e,t,r){return 0===ee(e,t,r)}function en({panelConstraints:e,panelIndex:t,size:r}){let n=e[t];Q(null!=n,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=n;return 0>ee(r,s)&&(r=i&&0>ee(r,(o+s)/2)?o:s),r=parseFloat((r=Math.min(a,r)).toFixed(10))}function eo({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:o,trigger:i}){if(er(e,0))return t;let a=[...t],[s,l]=n;Q(null!=s,\"Invalid first pivot index\"),Q(null!=l,\"Invalid second pivot index\");let u=0;if(\"keyboard\"===i){{let n=e<0?l:s,o=r[n];Q(o,`Panel constraints not found for index ${n}`);let{collapsedSize:i=0,collapsible:a,minSize:u=0}=o;if(a){let r=t[n];if(Q(null!=r,`Previous layout not found for panel index ${n}`),er(r,i)){let t=u-r;ee(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let n=e<0?s:l,o=r[n];Q(o,`No panel constraints found for index ${n}`);let{collapsedSize:i=0,collapsible:a,minSize:u=0}=o;if(a){let r=t[n];if(Q(null!=r,`Previous layout not found for panel index ${n}`),er(r,u)){let t=r-i;ee(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let n=e<0?1:-1,o=e<0?l:s,i=0;for(;;){let e=t[o];if(Q(null!=e,`Previous layout not found for panel index ${o}`),i+=en({panelConstraints:r,panelIndex:o,size:100})-e,(o+=n)<0||o>=r.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let n=e<0?s:l;for(;n>=0&&n<r.length;){let o=Math.abs(e)-Math.abs(u),i=t[n];Q(null!=i,`Previous layout not found for panel index ${n}`);let s=en({panelConstraints:r,panelIndex:n,size:i-o});if(!er(i,s)&&(u+=i-s,a[n]=s,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?n--:n++}}if(function(e,t,r){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!er(e[r],t[r],void 0))return!1;return!0}(o,a))return o;{let n=e<0?l:s,o=t[n];Q(null!=o,`Previous layout not found for panel index ${n}`);let i=o+u,c=en({panelConstraints:r,panelIndex:n,size:i});if(a[n]=c,!er(c,i)){let t=i-c,n=e<0?l:s;for(;n>=0&&n<r.length;){let o=a[n];Q(null!=o,`Previous layout not found for panel index ${n}`);let i=en({panelConstraints:r,panelIndex:n,size:o+t});if(er(o,i)||(t-=i-o,a[n]=i),er(t,0))break;e>0?n--:n++}}}return er(a.reduce((e,t)=>t+e,0),100)?a:o}function ei(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id=\"${e}\"]`))}function ea(e,t,r=document){let n=ei(e,r).findIndex(e=>e.getAttribute(\"data-panel-resize-handle-id\")===t);return null!=n?n:null}function es(e,t,r){let n=ea(e,t,r);return null!=n?[n,n+1]:[-1,-1]}function el(e,t=document){var r;return t instanceof HTMLElement&&(null==t?void 0:null===(r=t.dataset)||void 0===r?void 0:r.panelGroupId)==e?t:t.querySelector(`[data-panel-group][data-panel-group-id=\"${e}\"]`)||null}function eu(e,t=document){return t.querySelector(`[data-panel-resize-handle-id=\"${e}\"]`)||null}function ec(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function ed(e,t){let{x:r,y:n}=T(t);return\"horizontal\"===e?r:n}function ef(e,t,r){t.forEach((t,n)=>{let o=e[n];Q(o,`Panel data not found for index ${n}`);let{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:u}=a,c=r[s];if(null==c||t!==c){r[s]=t;let{onCollapse:e,onExpand:n,onResize:o}=i;o&&o(t,c),u&&(e||n)&&(n&&(null==c||et(c,l))&&!et(t,l)&&n(),e&&(null==c||!et(c,l))&&et(t,l)&&e())}})}function ep(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function eh(e){try{if(\"undefined\"!=typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error(\"localStorage not supported in this environment\")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function em(e){return`react-resizable-panels:${e}`}function ey(e){return e.map(e=>{let{constraints:t,id:r,idIsFromProps:n,order:o}=e;return n?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(\",\")}function eg(e,t){try{let r=em(e),n=t.getItem(r);if(n){let e=JSON.parse(n);if(\"object\"==typeof e&&null!=e)return e}}catch(e){}return null}function ev(e,t,r,n,o){var i;let a=em(e),s=ey(t),l=null!==(i=eg(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function eb({layout:e,panelConstraints:t}){let r=[...e],n=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(\", \")}`);if(!er(n,100))for(let e=0;e<t.length;e++){let t=r[e];Q(null!=t,`No layout data found for index ${e}`);let o=100/n*t;r[e]=o}let o=0;for(let e=0;e<t.length;e++){let n=r[e];Q(null!=n,`No layout data found for index ${e}`);let i=en({panelConstraints:t,panelIndex:e,size:n});n!=i&&(o+=n-i,r[e]=i)}if(!er(o,0))for(let e=0;e<t.length;e++){let n=r[e];Q(null!=n,`No layout data found for index ${e}`);let i=en({panelConstraints:t,panelIndex:e,size:n+o});if(n!==i&&(o-=i-n,r[e]=i,er(o,0)))break}return r}let ew={getItem:e=>(eh(ew),ew.getItem(e)),setItem:(e,t)=>{eh(ew),ew.setItem(e,t)}},ex={};function eS({autoSaveId:e=null,children:t,className:r=\"\",direction:n,forwardedRef:o,id:a=null,onLayout:s=null,keyboardResizeBy:l=null,storage:c=ew,style:g,tagName:b=\"div\",...w}){let S=x(a),P=m(null),[E,A]=y(null),[R,T]=y([]),M=function(){let[e,t]=y(0);return u(()=>t(e=>e+1),[])}(),k=m({}),D=m(new Map),N=m(0),L=m({autoSaveId:e,direction:n,dragState:E,id:S,keyboardResizeBy:l,onLayout:s,storage:c}),z=m({layout:R,panelDataArray:[],panelDataArrayChanged:!1});m({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f(o,()=>({getId:()=>L.current.id,getLayout:()=>{let{layout:e}=z.current;return e},setLayout:e=>{let{onLayout:t}=L.current,{layout:r,panelDataArray:n}=z.current,o=eb({layout:e,panelConstraints:n.map(e=>e.constraints)});ec(r,o)||(T(o),z.current.layout=o,t&&t(o),ef(n,o,k.current))}}),[]),p(()=>{L.current.autoSaveId=e,L.current.direction=n,L.current.dragState=E,L.current.id=S,L.current.onLayout=s,L.current.storage=c}),function({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:n,panelDataArray:o,panelGroupElement:i,setLayout:a}){m({didWarnAboutMissingResizeHandle:!1}),p(()=>{if(!i)return;let e=ei(r,i);for(let t=0;t<o.length-1;t++){let{valueMax:r,valueMin:i,valueNow:a}=function({layout:e,panelsArray:t,pivotIndices:r}){let n=0,o=100,i=0,a=0,s=r[0];return Q(null!=s,\"No pivot index found\"),t.forEach((e,t)=>{let{constraints:r}=e,{maxSize:l=100,minSize:u=0}=r;t===s?(n=u,o=l):(i+=u,a+=l)}),{valueMax:Math.min(o,100-i),valueMin:Math.max(n,100-a),valueNow:e[s]}}({layout:n,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{let e=o[t];Q(e,`No panel data found for index \"${t}\"`),s.setAttribute(\"aria-controls\",e.id),s.setAttribute(\"aria-valuemax\",\"\"+Math.round(r)),s.setAttribute(\"aria-valuemin\",\"\"+Math.round(i)),s.setAttribute(\"aria-valuenow\",null!=a?\"\"+Math.round(a):\"\")}}return()=>{e.forEach((e,t)=>{e.removeAttribute(\"aria-controls\"),e.removeAttribute(\"aria-valuemax\"),e.removeAttribute(\"aria-valuemin\"),e.removeAttribute(\"aria-valuenow\")})}},[r,n,o,i]),d(()=>{if(!i)return;let e=t.current;Q(e,\"Eager values not found\");let{panelDataArray:o}=e;Q(null!=el(r,i),`No group found for id \"${r}\"`);let s=ei(r,i);Q(s,`No resize handles found for group id \"${r}\"`);let l=s.map(e=>{let t=e.getAttribute(\"data-panel-resize-handle-id\");Q(t,\"Resize handle element has no handle id attribute\");let[s,l]=function(e,t,r,n=document){var o,i,a,s;let l=eu(t,n),u=ei(e,n),c=l?u.indexOf(l):-1;return[null!==(o=null===(i=r[c])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=r[c+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(r,t,o,i);if(null==s||null==l)return()=>{};let u=e=>{if(!e.defaultPrevented&&\"Enter\"===e.key){e.preventDefault();let l=o.findIndex(e=>e.id===s);if(l>=0){let e=o[l];Q(e,`No panel data found for index ${l}`);let s=n[l],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=s&&c){let e=eo({delta:er(s,u)?d-u:u-s,initialLayout:n,panelConstraints:o.map(e=>e.constraints),pivotIndices:es(r,t,i),prevLayout:n,trigger:\"keyboard\"});n!==e&&a(e)}}}};return e.addEventListener(\"keydown\",u),()=>{e.removeEventListener(\"keydown\",u)}});return()=>{l.forEach(e=>e())}},[i,e,t,r,n,o,a])}({committedValuesRef:L,eagerValuesRef:z,groupId:S,layout:R,panelDataArray:z.current.panelDataArray,setLayout:T,panelGroupElement:P.current}),d(()=>{let{panelDataArray:t}=z.current;if(e){if(0===R.length||R.length!==t.length)return;let r=ex[e];null==r&&(r=function(e,t=10){let r=null;return(...n)=>{null!==r&&clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}(ev,100),ex[e]=r),r(e,[...t],new Map(D.current),R,c)}},[e,R,c]),d(()=>{});let B=u(e=>{let{onLayout:t}=L.current,{layout:r,panelDataArray:n}=z.current;if(e.constraints.collapsible){let o=n.map(e=>e.constraints),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=eA(n,e,r);if(Q(null!=a,`Panel size not found for panel \"${e.id}\"`),!et(a,i)){D.current.set(e.id,a);let l=eo({delta:eE(n,e)===n.length-1?a-i:i-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:\"imperative-api\"});ep(r,l)||(T(l),z.current.layout=l,t&&t(l),ef(n,l,k.current))}}},[]),W=u((e,t)=>{let{onLayout:r}=L.current,{layout:n,panelDataArray:o}=z.current;if(e.constraints.collapsible){let i=o.map(e=>e.constraints),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:u}=eA(o,e,n),c=null!=t?t:l;if(et(s,a)){let t=D.current.get(e.id),a=null!=t&&t>=c?t:c,l=eo({delta:eE(o,e)===o.length-1?s-a:a-s,initialLayout:n,panelConstraints:i,pivotIndices:u,prevLayout:n,trigger:\"imperative-api\"});ep(n,l)||(T(l),z.current.layout=l,r&&r(l),ef(o,l,k.current))}}},[]),U=u(e=>{let{layout:t,panelDataArray:r}=z.current,{panelSize:n}=eA(r,e,t);return Q(null!=n,`Panel size not found for panel \"${e.id}\"`),n},[]),H=u((e,t)=>{let{panelDataArray:r}=z.current,n=eE(r,e);return function({defaultSize:e,dragState:t,layout:r,panelData:n,panelIndex:o,precision:i=3}){let a=r[o];return{flexBasis:0,flexGrow:null==a?void 0!=e?e.toPrecision(i):\"1\":1===n.length?\"1\":a.toPrecision(i),flexShrink:1,overflow:\"hidden\",pointerEvents:null!==t?\"none\":void 0}}({defaultSize:t,dragState:E,layout:R,panelData:r,panelIndex:n})},[E,R]),K=u(e=>{let{layout:t,panelDataArray:r}=z.current,{collapsedSize:n=0,collapsible:o,panelSize:i}=eA(r,e,t);return Q(null!=i,`Panel size not found for panel \"${e.id}\"`),!0===o&&et(i,n)},[]),q=u(e=>{let{layout:t,panelDataArray:r}=z.current,{collapsedSize:n=0,collapsible:o,panelSize:i}=eA(r,e,t);return Q(null!=i,`Panel size not found for panel \"${e.id}\"`),!o||ee(i,n)>0},[]),G=u(e=>{let{panelDataArray:t}=z.current;t.push(e),t.sort((e,t)=>{let r=e.order,n=t.order;return null==r&&null==n?0:null==r?-1:null==n?1:r-n}),z.current.panelDataArrayChanged=!0,M()},[M]);p(()=>{if(z.current.panelDataArrayChanged){z.current.panelDataArrayChanged=!1;let{autoSaveId:r,onLayout:n,storage:o}=L.current,{layout:i,panelDataArray:a}=z.current,s=null;if(r){var e,t;let n=null!==(t=(null!==(e=eg(r,o))&&void 0!==e?e:{})[ey(a)])&&void 0!==t?t:null;n&&(D.current=new Map(Object.entries(n.expandToSizes)),s=n.layout)}null==s&&(s=function({panelDataArray:e}){let t=Array(e.length),r=e.map(e=>e.constraints),n=0,o=100;for(let i=0;i<e.length;i++){let e=r[i];Q(e,`Panel constraints not found for index ${i}`);let{defaultSize:a}=e;null!=a&&(n++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){let a=r[i];Q(a,`Panel constraints not found for index ${i}`);let{defaultSize:s}=a;if(null!=s)continue;let l=o/(e.length-n);n++,t[i]=l,o-=l}return t}({panelDataArray:a}));let l=eb({layout:s,panelConstraints:a.map(e=>e.constraints)});ec(i,l)||(T(l),z.current.layout=l,n&&n(l),ef(a,l,k.current))}}),p(()=>{let e=z.current;return()=>{e.layout=[]}},[]);let Z=u(e=>function(t){t.preventDefault();let r=P.current;if(!r)return()=>null;let{direction:n,dragState:o,id:i,keyboardResizeBy:a,onLayout:s}=L.current,{layout:l,panelDataArray:u}=z.current,{initialLayout:c}=null!=o?o:{},d=es(i,e,r),f=function(e,t,r,n,o,i){if(j(e)){let t=\"horizontal\"===r,n=0;n=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case\"ArrowDown\":i=t?0:n;break;case\"ArrowLeft\":i=t?-n:0;break;case\"ArrowRight\":i=t?n:0;break;case\"ArrowUp\":i=t?0:-n;break;case\"End\":i=100;break;case\"Home\":i=-100}return i}return null==n?0:function(e,t,r,n,o){let i=\"horizontal\"===r,a=eu(t,o);Q(a,`No resize handle element found for id \"${t}\"`);let s=a.getAttribute(\"data-panel-group-id\");Q(s,\"Resize handle element has no group id attribute\");let{initialCursorPosition:l}=n,u=ed(r,e),c=el(s,o);Q(c,`No group element found for id \"${s}\"`);let d=c.getBoundingClientRect();return(u-l)/(i?d.width:d.height)*100}(e,t,r,n,i)}(t,e,n,o,a,r),p=\"horizontal\"===n;\"rtl\"===document.dir&&p&&(f=-f);let h=eo({delta:f,initialLayout:null!=c?c:l,panelConstraints:u.map(e=>e.constraints),pivotIndices:d,prevLayout:l,trigger:j(t)?\"keyboard\":\"mouse-or-touch\"}),m=!ep(l,h);if((C(t)||O(t))&&N.current!=f){var y,g;(N.current=f,m)?$.set(e,0):p?(y=f<0?I:F,$.set(e,y)):(g=f<0?_:V,$.set(e,g))}m&&(T(h),z.current.layout=h,s&&s(h),ef(u,h,k.current))},[]),X=u((e,t)=>{let{onLayout:r}=L.current,{layout:n,panelDataArray:o}=z.current,i=o.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=eA(o,e,n);Q(null!=a,`Panel size not found for panel \"${e.id}\"`);let l=eo({delta:eE(o,e)===o.length-1?a-t:t-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:\"imperative-api\"});ep(n,l)||(T(l),z.current.layout=l,r&&r(l),ef(o,l,k.current))},[]),Y=u((e,t)=>{let{layout:r,panelDataArray:n}=z.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:u=0}=e.constraints,{panelSize:c}=eA(n,e,r);null!=c&&(i&&s&&et(c,o)?et(o,a)||X(e,a):c<u?X(e,u):c>l&&X(e,l))},[X]),J=u((e,t)=>{let{direction:r}=L.current,{layout:n}=z.current;if(!P.current)return;let o=eu(e,P.current);Q(o,`Drag handle element not found for id \"${e}\"`);let i=ed(r,t);A({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:n})},[]),en=u(()=>{A(null)},[]),ea=u(e=>{let{panelDataArray:t}=z.current,r=eE(t,e);r>=0&&(t.splice(r,1),delete k.current[e.id],z.current.panelDataArrayChanged=!0,M())},[M]),eh=h(()=>({collapsePanel:B,direction:n,dragState:E,expandPanel:W,getPanelSize:U,getPanelStyle:H,groupId:S,isPanelCollapsed:K,isPanelExpanded:q,reevaluatePanelConstraints:Y,registerPanel:G,registerResizeHandle:Z,resizePanel:X,startDragging:J,stopDragging:en,unregisterPanel:ea,panelGroupElement:P.current}),[B,E,n,W,U,H,S,K,q,Y,G,Z,X,J,en,ea]);return i(v.Provider,{value:eh},i(b,{...w,children:t,className:r,id:a,ref:P,style:{display:\"flex\",flexDirection:\"horizontal\"===n?\"row\":\"column\",height:\"100%\",overflow:\"hidden\",width:\"100%\",...g},\"data-panel-group\":\"\",\"data-panel-group-direction\":n,\"data-panel-group-id\":S}))}let eP=l((e,t)=>i(eS,{...e,forwardedRef:t}));function eE(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eA(e,t,r){let n=eE(e,t),o=n===e.length-1,i=r[n];return{...t.constraints,panelSize:i,pivotIndices:o?[n-1,n]:[n,n+1]}}function eR({children:e=null,className:t=\"\",disabled:r=!1,hitAreaMargins:n,id:o,onBlur:a,onDragging:s,onFocus:l,style:u={},tabIndex:f=0,tagName:h=\"div\",...g}){var b,w;let S=m(null),P=m({onDragging:s});d(()=>{P.current.onDragging=s});let E=c(v);if(null===E)throw Error(\"PanelResizeHandle components must be rendered within a PanelGroup container\");let{direction:A,groupId:R,registerResizeHandle:j,startDragging:C,stopDragging:O,panelGroupElement:T}=E,M=x(o),[k,D]=y(\"inactive\"),[N,L]=y(!1),[I,F]=y(null),_=m({state:k});p(()=>{_.current.state=k}),d(()=>{if(r)F(null);else{let e=j(M);F(()=>e)}},[r,M,j]);let V=null!==(b=null==n?void 0:n.coarse)&&void 0!==b?b:15,z=null!==(w=null==n?void 0:n.fine)&&void 0!==w?w:5;return d(()=>{if(r||null==I)return;let e=S.current;return Q(e,\"Element ref not attached\"),function(e,t,r,n,o){var i;let{ownerDocument:a}=t,s={direction:r,element:t,hitAreaMargins:n,setResizeHandlerState:o},l=null!==(i=U.get(a))&&void 0!==i?i:0;return U.set(a,l+1),H.add(s),Y(),function(){var t;$.delete(e),H.delete(s);let r=null!==(t=U.get(a))&&void 0!==t?t:1;if(U.set(a,r-1),Y(),1===r&&U.delete(a),B.includes(s)){let e=B.indexOf(s);e>=0&&B.splice(e,1),X()}}}(M,e,A,{coarse:V,fine:z},(e,t,r)=>{if(t)switch(e){case\"down\":{D(\"drag\"),C(M,r);let{onDragging:e}=P.current;e&&e(!0);break}case\"move\":{let{state:e}=_.current;\"drag\"!==e&&D(\"hover\"),I(r);break}case\"up\":{D(\"hover\"),O();let{onDragging:e}=P.current;e&&e(!1)}}else D(\"inactive\")})},[V,A,r,z,j,M,I,C,O]),!function({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:n}){d(()=>{if(e||null==r||null==n)return;let o=eu(t,n);if(null==o)return;let i=e=>{if(!e.defaultPrevented)switch(e.key){case\"ArrowDown\":case\"ArrowLeft\":case\"ArrowRight\":case\"ArrowUp\":case\"End\":case\"Home\":e.preventDefault(),r(e);break;case\"F6\":{e.preventDefault();let r=o.getAttribute(\"data-panel-group-id\");Q(r,`No group element found for id \"${r}\"`);let i=ei(r,n),a=ea(r,t,n);Q(null!==a,`No resize element found for id \"${t}\"`);let s=e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0;i[s].focus()}}};return o.addEventListener(\"keydown\",i),()=>{o.removeEventListener(\"keydown\",i)}},[n,e,t,r])}({disabled:r,handleId:M,resizeHandler:I,panelGroupElement:T}),i(h,{...g,children:e,className:t,id:o,onBlur:()=>{L(!1),null==a||a()},onFocus:()=>{L(!0),null==l||l()},ref:S,role:\"separator\",style:{touchAction:\"none\",userSelect:\"none\",...u},tabIndex:f,\"data-panel-group-direction\":A,\"data-panel-group-id\":R,\"data-resize-handle\":\"\",\"data-resize-handle-active\":\"drag\"===k?\"pointer\":N?\"keyboard\":void 0,\"data-resize-handle-state\":k,\"data-panel-resize-handle-enabled\":!r,\"data-panel-resize-handle-id\":M})}eS.displayName=\"PanelGroup\",eP.displayName=\"forwardRef(PanelGroup)\",eR.displayName=\"PanelResizeHandle\"},49813:function(e,t,r){\"use strict\";var n=r(77323),o=r(30602),i=r(66626)(),a=r(68136),s=r(31354),l=n(\"%Math.floor%\");e.exports=function(e,t){if(\"function\"!=typeof e)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if(\"length\"in e&&a){var c=a(e,\"length\");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,\"length\",t,!0,!0):o(e,\"length\",t)),e}},16689:function(e,t,r){\"use strict\";var n=r(77323),o=r(50084),i=r(56919),a=r(31354),s=n(\"%WeakMap%\",!0),l=n(\"%Map%\",!0),u=o(\"WeakMap.prototype.get\",!0),c=o(\"WeakMap.prototype.set\",!0),d=o(\"WeakMap.prototype.has\",!0),f=o(\"Map.prototype.get\",!0),p=o(\"Map.prototype.set\",!0),h=o(\"Map.prototype.has\",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},y=function(e,t){var r=m(e,t);return r&&r.value},g=function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a(\"Side channel does not contain \"+i(e))},get:function(n){if(s&&n&&(\"object\"==typeof n||\"function\"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return f(t,n)}else if(r)return y(r,n)},has:function(n){if(s&&n&&(\"object\"==typeof n||\"function\"==typeof n)){if(e)return d(e,n)}else if(l){if(t)return h(t,n)}else if(r)return!!m(r,n);return!1},set:function(n,o){s&&n&&(\"object\"==typeof n||\"function\"==typeof n)?(e||(e=new s),c(e,n,o)):l?(t||(t=new l),p(t,n,o)):(r||(r={key:{},next:null}),g(r,n,o))}};return n}},78149:function(e,t,r){\"use strict\";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{M:function(){return n}})},6538:function(e,t,r){\"use strict\";r.d(t,{aU:function(){return eS},$j:function(){return eP},VY:function(){return ex},dk:function(){return eA},aV:function(){return ew},h_:function(){return eb},fC:function(){return eg},Dx:function(){return eE},xz:function(){return ev}});var n=r(2265),o=r(98324),i=r(1584),a=r(78149),s=r(53201),l=r(91715),u=r(53938),c=r(80467),d=r(56935),f=r(31383),p=r(25171),h=r(20589),m=r(49418),y=r(78369),g=r(71538),v=r(57437),b=\"Dialog\",[w,x]=(0,o.b)(b),[S,P]=w(b),E=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[f=!1,p]=(0,l.T)({prop:o,defaultProp:i,onChange:a});return(0,v.jsx)(S,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};E.displayName=b;var A=\"DialogTrigger\",R=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(A,r),s=(0,i.e)(t,o.triggerRef);return(0,v.jsx)(p.WV.button,{type:\"button\",\"aria-haspopup\":\"dialog\",\"aria-expanded\":o.open,\"aria-controls\":o.contentId,\"data-state\":H(o.open),...n,ref:s,onClick:(0,a.M)(e.onClick,o.onOpenToggle)})});R.displayName=A;var j=\"DialogPortal\",[C,O]=w(j,{forceMount:void 0}),T=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:i}=e,a=P(j,t);return(0,v.jsx)(C,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,v.jsx)(f.z,{present:r||a.open,children:(0,v.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};T.displayName=j;var M=\"DialogOverlay\",k=n.forwardRef((e,t)=>{let r=O(M,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=P(M,e.__scopeDialog);return i.modal?(0,v.jsx)(f.z,{present:n||i.open,children:(0,v.jsx)(D,{...o,ref:t})}):null});k.displayName=M;var D=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(M,r);return(0,v.jsx)(m.Z,{as:g.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,v.jsx)(p.WV.div,{\"data-state\":H(o.open),...n,ref:t,style:{pointerEvents:\"auto\",...n.style}})})}),N=\"DialogContent\",L=n.forwardRef((e,t)=>{let r=O(N,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=P(N,e.__scopeDialog);return(0,v.jsx)(f.z,{present:n||i.open,children:i.modal?(0,v.jsx)(I,{...o,ref:t}):(0,v.jsx)(F,{...o,ref:t})})});L.displayName=N;var I=n.forwardRef((e,t)=>{let r=P(N,e.__scopeDialog),o=n.useRef(null),s=(0,i.e)(t,r.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,y.Ry)(e)},[]),(0,v.jsx)(_,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault())})}),F=n.forwardRef((e,t)=>{let r=P(N,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,v.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,\"pointerdown\"!==t.detail.originalEvent.type||(i.current=!0));let s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),\"focusin\"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),_=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=P(N,r),f=n.useRef(null),p=(0,i.e)(t,f);return(0,h.EW)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,v.jsx)(u.XB,{role:\"dialog\",id:d.contentId,\"aria-describedby\":d.descriptionId,\"aria-labelledby\":d.titleId,\"data-state\":H(d.open),...l,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Z,{titleId:d.titleId}),(0,v.jsx)(X,{contentRef:f,descriptionId:d.descriptionId})]})]})}),V=\"DialogTitle\",z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(V,r);return(0,v.jsx)(p.WV.h2,{id:o.titleId,...n,ref:t})});z.displayName=V;var B=\"DialogDescription\",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(B,r);return(0,v.jsx)(p.WV.p,{id:o.descriptionId,...n,ref:t})});W.displayName=B;var U=\"DialogClose\",$=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(U,r);return(0,v.jsx)(p.WV.button,{type:\"button\",...n,ref:t,onClick:(0,a.M)(e.onClick,()=>o.onOpenChange(!1))})});function H(e){return e?\"open\":\"closed\"}$.displayName=U;var K=\"DialogTitleWarning\",[q,G]=(0,o.k)(K,{contentName:N,titleName:V,docsSlug:\"dialog\"}),Z=e=>{let{titleId:t}=e,r=G(K),o=\"`\".concat(r.contentName,\"` requires a `\").concat(r.titleName,\"` for the component to be accessible for screen reader users.\\n\\nIf you want to hide the `\").concat(r.titleName,\"`, you can wrap it with our VisuallyHidden component.\\n\\nFor more information, see https://radix-ui.com/primitives/docs/components/\").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},X=e=>{let{contentRef:t,descriptionId:r}=e,o=G(\"DialogDescriptionWarning\"),i=\"Warning: Missing `Description` or `aria-describedby={undefined}` for {\".concat(o.contentName,\"}.\");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute(\"aria-describedby\");r&&n&&!document.getElementById(r)&&console.warn(i)},[i,t,r]),null},Y=\"AlertDialog\",[J,Q]=(0,o.b)(Y,[x]),ee=x(),et=e=>{let{__scopeAlertDialog:t,...r}=e,n=ee(t);return(0,v.jsx)(E,{...n,...r,modal:!0})};et.displayName=Y;var er=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(R,{...o,...n,ref:t})});er.displayName=\"AlertDialogTrigger\";var en=e=>{let{__scopeAlertDialog:t,...r}=e,n=ee(t);return(0,v.jsx)(T,{...n,...r})};en.displayName=\"AlertDialogPortal\";var eo=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(k,{...o,...n,ref:t})});eo.displayName=\"AlertDialogOverlay\";var ei=\"AlertDialogContent\",[ea,es]=J(ei),el=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...s}=e,l=ee(r),u=n.useRef(null),c=(0,i.e)(t,u),d=n.useRef(null);return(0,v.jsx)(q,{contentName:ei,titleName:eu,docsSlug:\"alert-dialog\",children:(0,v.jsx)(ea,{scope:r,cancelRef:d,children:(0,v.jsxs)(L,{role:\"alertdialog\",...l,...s,ref:c,onOpenAutoFocus:(0,a.M)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,v.jsx)(g.A4,{children:o}),(0,v.jsx)(ey,{contentRef:u})]})})})});el.displayName=ei;var eu=\"AlertDialogTitle\",ec=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(z,{...o,...n,ref:t})});ec.displayName=eu;var ed=\"AlertDialogDescription\",ef=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(W,{...o,...n,ref:t})});ef.displayName=ed;var ep=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)($,{...o,...n,ref:t})});ep.displayName=\"AlertDialogAction\";var eh=\"AlertDialogCancel\",em=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=es(eh,r),a=ee(r),s=(0,i.e)(t,o);return(0,v.jsx)($,{...a,...n,ref:s})});em.displayName=eh;var ey=e=>{let{contentRef:t}=e,r=\"`\".concat(ei,\"` requires a description for the component to be accessible for screen reader users.\\n\\nYou can add a description to the `\").concat(ei,\"` by passing a `\").concat(ed,\"` component as a child, which also benefits sighted users by adding visible context to the dialog.\\n\\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `\").concat(ei,\"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\\n\\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog\");return n.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute(\"aria-describedby\"))||console.warn(r)},[r,t]),null},eg=et,ev=er,eb=en,ew=eo,ex=el,eS=ep,eP=em,eE=ec,eA=ef},90976:function(e,t,r){\"use strict\";r.d(t,{B:function(){return l}});var n=r(2265),o=r(98324),i=r(1584),a=r(71538),s=r(57437);function l(e){let t=e+\"CollectionProvider\",[r,l]=(0,o.b)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),i=n.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:r})};d.displayName=t;let f=e+\"CollectionSlot\",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),l=(0,i.e)(t,o.collectionRef);return(0,s.jsx)(a.g7,{ref:l,children:n})});p.displayName=f;let h=e+\"CollectionItemSlot\",m=\"data-radix-collection-item\",y=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,u=n.useRef(null),d=(0,i.e)(t,u),f=c(h,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...l}),()=>void f.itemMap.delete(u))),(0,s.jsx)(a.g7,{[m]:\"\",ref:d,children:o})});return y.displayName=h,[{Provider:d,Slot:p,ItemSlot:y},function(t){let r=c(e+\"CollectionConsumer\",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(\"[\".concat(m,\"]\")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},1584:function(e,t,r){\"use strict\";r.d(t,{F:function(){return o},e:function(){return i}});var n=r(2265);function o(...e){return t=>e.forEach(e=>{\"function\"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return n.useCallback(o(...e),e)}},98324:function(e,t,r){\"use strict\";r.d(t,{b:function(){return a},k:function(){return i}});var n=r(2265),o=r(57437);function i(e,t){let r=n.createContext(t);function i(e){let{children:t,...i}=e,a=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:a,children:t})}return i.displayName=e+\"Provider\",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\\`${o}\\` must be used within \\`${e}\\``)}]}function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let a=n.createContext(i),s=r.length;function l(t){let{scope:r,children:i,...l}=t,u=r?.[e][s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:i})}return r=[...r,i],l.displayName=t+\"Provider\",[l,function(r,o){let l=o?.[e][s]||a,u=n.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\\`${r}\\` must be used within \\`${t}\\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},87513:function(e,t,r){\"use strict\";r.d(t,{gm:function(){return i}});var n=r(2265);r(57437);var o=n.createContext(void 0);function i(e){let t=n.useContext(o);return e||t||\"ltr\"}},53938:function(e,t,r){\"use strict\";r.d(t,{XB:function(){return f}});var n,o=r(2265),i=r(78149),a=r(25171),s=r(1584),l=r(75137),u=r(57437),c=\"dismissableLayer.update\",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:y,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:w,...x}=e,S=o.useContext(d),[P,E]=o.useState(null),A=null!==(f=null==P?void 0:P.ownerDocument)&&void 0!==f?f:null===(r=globalThis)||void 0===r?void 0:r.document,[,R]=o.useState({}),j=(0,s.e)(t,e=>E(e)),C=Array.from(S.layers),[O]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),T=C.indexOf(O),M=P?C.indexOf(P):-1,k=S.layersWithOutsidePointerEventsDisabled.size>0,D=M>=T,N=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h(\"dismissableLayer.pointerDownOutside\",n,o,{discrete:!0})},o={originalEvent:e};\"touch\"===e.pointerType?(r.removeEventListener(\"click\",a.current),a.current=t,r.addEventListener(\"click\",a.current,{once:!0})):t()}else r.removeEventListener(\"click\",a.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener(\"pointerdown\",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener(\"pointerdown\",e),r.removeEventListener(\"click\",a.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...S.branches].some(e=>e.contains(t));!D||r||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},A),L=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h(\"dismissableLayer.focusOutside\",n,{originalEvent:e},{discrete:!1})};return r.addEventListener(\"focusin\",e),()=>r.removeEventListener(\"focusin\",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...S.branches].some(e=>e.contains(t))||(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},A);return!function(e,t=globalThis?.document){let r=(0,l.W)(e);o.useEffect(()=>{let e=e=>{\"Escape\"===e.key&&r(e)};return t.addEventListener(\"keydown\",e,{capture:!0}),()=>t.removeEventListener(\"keydown\",e,{capture:!0})},[r,t])}(e=>{M!==S.layers.size-1||(null==y||y(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},A),o.useEffect(()=>{if(P)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=A.body.style.pointerEvents,A.body.style.pointerEvents=\"none\"),S.layersWithOutsidePointerEventsDisabled.add(P)),S.layers.add(P),p(),()=>{m&&1===S.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=n)}},[P,A,m,S]),o.useEffect(()=>()=>{P&&(S.layers.delete(P),S.layersWithOutsidePointerEventsDisabled.delete(P),p())},[P,S]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.WV.div,{...x,ref:j,style:{pointerEvents:k?D?\"auto\":\"none\":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,N.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.jH)(i,s):i.dispatchEvent(s)}f.displayName=\"DismissableLayer\",o.forwardRef((e,t)=>{let r=o.useContext(d),n=o.useRef(null),i=(0,s.e)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.WV.div,{...e,ref:i})}).displayName=\"DismissableLayerBranch\"},21246:function(e,t,r){\"use strict\";r.d(t,{oC:function(){return rI},VY:function(){return rk},ZA:function(){return rD},ck:function(){return rL},wU:function(){return rV},__:function(){return rN},Uv:function(){return rM},Ee:function(){return rF},Rk:function(){return r_},fC:function(){return rO},Z0:function(){return rz},Tr:function(){return rB},tu:function(){return rU},fF:function(){return rW},xz:function(){return rT}});var n=r(2265),o=r(78149),i=r(1584),a=r(98324),s=r(91715),l=r(25171),u=r(90976),c=r(87513),d=r(53938),f=r(20589),p=r(80467),h=r(53201);let m=[\"top\",\"right\",\"bottom\",\"left\"],y=Math.min,g=Math.max,v=Math.round,b=Math.floor,w=e=>({x:e,y:e}),x={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"},S={start:\"end\",end:\"start\"};function P(e,t){return\"function\"==typeof e?e(t):e}function E(e){return e.split(\"-\")[0]}function A(e){return e.split(\"-\")[1]}function R(e){return\"x\"===e?\"y\":\"x\"}function j(e){return\"y\"===e?\"height\":\"width\"}function C(e){return[\"top\",\"bottom\"].includes(E(e))?\"y\":\"x\"}function O(e){return e.replace(/start|end/g,e=>S[e])}function T(e){return e.replace(/left|right|bottom|top/g,e=>x[e])}function M(e){return\"number\"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function D(e,t,r){let n,{reference:o,floating:i}=e,a=C(t),s=R(C(t)),l=j(s),u=E(t),c=\"y\"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;switch(u){case\"top\":n={x:d,y:o.y-i.height};break;case\"bottom\":n={x:d,y:o.y+o.height};break;case\"right\":n={x:o.x+o.width,y:f};break;case\"left\":n={x:o.x-i.width,y:f};break;default:n={x:o.x,y:o.y}}switch(A(t)){case\"start\":n[s]-=p*(r&&c?-1:1);break;case\"end\":n[s]+=p*(r&&c?-1:1)}return n}let N=async(e,t,r)=>{let{placement:n=\"bottom\",strategy:o=\"absolute\",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=D(u,n,l),f=n,p={},h=0;for(let r=0;r<s.length;r++){let{name:i,fn:m}=s[r],{x:y,y:g,data:v,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,\"object\"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=D(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function L(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u=\"clippingAncestors\",rootBoundary:c=\"viewport\",elementContext:d=\"floating\",altBoundary:f=!1,padding:p=0}=P(t,e),h=M(p),m=s[f?\"floating\"===d?\"reference\":\"floating\":d],y=k(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g=\"floating\"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F(e){return m.some(t=>e[t]>=0)}async function _(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=E(r),s=A(r),l=\"y\"===C(r),u=[\"left\",\"top\"].includes(a)?-1:1,c=i&&l?-1:1,d=P(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}=\"number\"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&\"number\"==typeof h&&(p=\"end\"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function V(e){return W(e)?(e.nodeName||\"\").toLowerCase():\"#document\"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return e instanceof Node||e instanceof z(e).Node}function U(e){return e instanceof Element||e instanceof z(e).Element}function $(e){return e instanceof HTMLElement||e instanceof z(e).HTMLElement}function H(e){return\"undefined\"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function K(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&![\"inline\",\"contents\"].includes(o)}function q(e){return[\":popover-open\",\":modal\"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function G(e){let t=Z(),r=U(e)?Y(e):e;return\"none\"!==r.transform||\"none\"!==r.perspective||!!r.containerType&&\"normal\"!==r.containerType||!t&&!!r.backdropFilter&&\"none\"!==r.backdropFilter||!t&&!!r.filter&&\"none\"!==r.filter||[\"transform\",\"perspective\",\"filter\"].some(e=>(r.willChange||\"\").includes(e))||[\"paint\",\"layout\",\"strict\",\"content\"].some(e=>(r.contain||\"\").includes(e))}function Z(){return\"undefined\"!=typeof CSS&&!!CSS.supports&&CSS.supports(\"-webkit-backdrop-filter\",\"none\")}function X(e){return[\"html\",\"body\",\"#document\"].includes(V(e))}function Y(e){return z(e).getComputedStyle(e)}function J(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(\"html\"===V(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||B(e);return H(t)?t.host:t}function ee(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=Q(t);return X(r)?t.ownerDocument?t.ownerDocument.body:t.body:$(r)&&K(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=z(o);return i?t.concat(a,a.visualViewport||[],K(o)?o:[],a.frameElement&&r?ee(a.frameElement):[]):t.concat(o,ee(o,[],r))}function et(e){let t=Y(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=$(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=v(r)!==i||v(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function er(e){return U(e)?e:e.contextElement}function en(e){let t=er(e);if(!$(t))return w(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=et(t),a=(i?v(r.width):r.width)/n,s=(i?v(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let eo=w(0);function ei(e){let t=z(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=er(e),s=w(1);t&&(n?U(n)&&(s=en(n)):s=en(e));let l=(void 0===(o=r)&&(o=!1),n&&(!o||n===z(a))&&o)?ei(a):w(0),u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(a){let e=z(a),t=n&&U(n)?z(n):n,r=e,o=r.frameElement;for(;o&&n&&t!==r;){let e=en(o),t=o.getBoundingClientRect(),n=Y(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=a,o=(r=z(o)).frameElement}}return k({width:d,height:f,x:u,y:c})}function es(e){return ea(B(e)).left+J(e).scrollLeft}function el(e,t,r){let n;if(\"viewport\"===t)n=function(e,t){let r=z(e),n=B(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=Z();(!e||e&&\"fixed\"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if(\"document\"===t)n=function(e){let t=B(e),r=J(e),n=e.ownerDocument.body,o=g(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=g(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+es(e),s=-r.scrollTop;return\"rtl\"===Y(n).direction&&(a+=g(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(B(e));else if(U(t))n=function(e,t){let r=ea(e,!0,\"fixed\"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=$(e)?en(e):w(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{let r=ei(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return k(n)}function eu(e){return\"static\"===Y(e).position}function ec(e,t){return $(e)&&\"fixed\"!==Y(e).position?t?t(e):e.offsetParent:null}function ed(e,t){let r=z(e);if(q(e))return r;if(!$(e)){let t=Q(e);for(;t&&!X(t);){if(U(t)&&!eu(t))return t;t=Q(t)}return r}let n=ec(e,t);for(;n&&[\"table\",\"td\",\"th\"].includes(V(n))&&eu(n);)n=ec(n,t);return n&&X(n)&&eu(n)&&!G(n)?r:n||function(e){let t=Q(e);for(;$(t)&&!X(t);){if(G(t))return t;if(q(t))break;t=Q(t)}return null}(e)||r}let ef=async function(e){let t=this.getOffsetParent||ed,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=$(t),o=B(t),i=\"fixed\"===r,a=ea(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=w(0);if(n||!n&&!i){if((\"body\"!==V(t)||K(o))&&(s=J(t)),n){let e=ea(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=es(o))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i=\"fixed\"===o,a=B(n),s=!!t&&q(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=w(1),c=w(0),d=$(n);if((d||!d&&!i)&&((\"body\"!==V(n)||K(a))&&(l=J(n)),$(n))){let e=ea(n);u=en(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x,y:r.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[...\"clippingAncestors\"===r?q(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=ee(e,[],!1).filter(e=>U(e)&&\"body\"!==V(e)),o=null,i=\"fixed\"===Y(e).position,a=i?Q(e):e;for(;U(a)&&!X(a);){let t=Y(a),r=G(a);r||\"fixed\"!==t.position||(o=null),(i?!r&&!o:!r&&\"static\"===t.position&&!!o&&[\"absolute\",\"fixed\"].includes(o.position)||K(a)&&!r&&function e(t,r){let n=Q(t);return!(n===r||!U(n)||X(n))&&(\"fixed\"===Y(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):o=t,a=Q(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce((e,r)=>{let n=el(t,r,o);return e.top=g(n.top,e.top),e.right=y(n.right,e.right),e.bottom=y(n.bottom,e.bottom),e.left=g(n.left,e.left),e},el(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ed,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=et(e);return{width:t,height:r}},getScale:en,isElement:U,isRTL:function(e){return\"rtl\"===Y(e).direction}},eh=e=>({name:\"arrow\",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=P(e,t)||{};if(null==u)return{};let d=M(c),f={x:r,y:n},p=R(C(o)),h=j(p),m=await a.getDimensions(u),v=\"y\"===p,b=v?\"clientHeight\":\"clientWidth\",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],S=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),E=S?S[b]:0;E&&await (null==a.isElement?void 0:a.isElement(S))||(E=s.floating[b]||i.floating[h]);let O=E/2-m[h]/2-1,T=y(d[v?\"top\":\"left\"],O),k=y(d[v?\"bottom\":\"right\"],O),D=E-m[h]-k,N=E/2-m[h]/2+(w/2-x/2),L=g(T,y(N,D)),I=!l.arrow&&null!=A(o)&&N!==L&&i.reference[h]/2-(N<T?T:k)-m[h]/2<0,F=I?N<T?N-T:N-D:0;return{[p]:f[p]+F,data:{[p]:L,centerOffset:N-L-F,...I&&{alignmentOffset:F}},reset:I}}}),em=(e,t,r)=>{let n=new Map,o={platform:ep,...r},i={...o.platform,_c:n};return N(e,t,{...o,platform:i})};var ey=r(54887),eg=\"undefined\"!=typeof document?n.useLayoutEffect:n.useEffect;function ev(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if(\"function\"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&\"object\"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ev(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if((\"_owner\"!==r||!e.$$typeof)&&!ev(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eb(e){return\"undefined\"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ew(e,t){let r=eb(e);return Math.round(t*r)/r}function ex(e){let t=n.useRef(e);return eg(()=>{t.current=e}),t}let eS=e=>({name:\"arrow\",options:e,fn(t){let{element:r,padding:n}=\"function\"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,\"current\")?null!=r.current?eh({element:r.current,padding:n}).fn(t):{}:r?eh({element:r,padding:n}).fn(t):{}}}),eP=(e,t)=>{var r;return{...(void 0===(r=e)&&(r=0),{name:\"offset\",options:r,async fn(e){var t,n;let{x:o,y:i,placement:a,middlewareData:s}=e,l=await _(e,r);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},eE=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"shift\",options:r,async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=P(r,e),u={x:t,y:n},c=await L(e,l),d=C(E(o)),f=R(d),p=u[f],h=u[d];if(i){let e=\"y\"===f?\"top\":\"left\",t=\"y\"===f?\"bottom\":\"right\",r=p+c[e],n=p-c[t];p=g(r,y(p,n))}if(a){let e=\"y\"===d?\"top\":\"left\",t=\"y\"===d?\"bottom\":\"right\",r=h+c[e],n=h-c[t];h=g(r,y(h,n))}let m=s.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-t,y:m.y-n}}}}),options:[e,t]}},eA=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{options:r,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=P(r,e),c={x:t,y:n},d=C(o),f=R(d),p=c[f],h=c[d],m=P(s,e),y=\"number\"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e=\"y\"===f?\"height\":\"width\",t=i.reference[f]-i.floating[e]+y.mainAxis,r=i.reference[f]+i.reference[e]-y.mainAxis;p<t?p=t:p>r&&(p=r)}if(u){var g,v;let e=\"y\"===f?\"width\":\"height\",t=[\"top\",\"left\"].includes(E(o)),r=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:y.crossAxis),n=i.reference[d]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[d])||0)-(t?y.crossAxis:0);h<r?h=r:h>n&&(h=n)}return{[f]:p,[d]:h}}}),options:[e,t]}},eR=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"flip\",options:r,async fn(e){var t,n,o,i,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:y=\"bestFit\",fallbackAxisSideDirection:g=\"none\",flipAlignment:v=!0,...b}=P(r,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let w=E(s),x=C(c),S=E(c)===c,M=await (null==d.isRTL?void 0:d.isRTL(f.floating)),k=m||(S||!v?[T(c)]:function(e){let t=T(e);return[O(e),t,O(t)]}(c)),D=\"none\"!==g;!m&&D&&k.push(...function(e,t,r,n){let o=A(e),i=function(e,t,r){let n=[\"left\",\"right\"],o=[\"right\",\"left\"];switch(e){case\"top\":case\"bottom\":if(r)return t?o:n;return t?n:o;case\"left\":case\"right\":return t?[\"top\",\"bottom\"]:[\"bottom\",\"top\"];default:return[]}}(E(e),\"start\"===r,n);return o&&(i=i.map(e=>e+\"-\"+o),t&&(i=i.concat(i.map(O)))),i}(c,v,g,M));let N=[c,...k],I=await L(e,b),F=[],_=(null==(n=l.flip)?void 0:n.overflows)||[];if(p&&F.push(I[w]),h){let e=function(e,t,r){void 0===r&&(r=!1);let n=A(e),o=R(C(e)),i=j(o),a=\"x\"===o?n===(r?\"end\":\"start\")?\"right\":\"left\":\"start\"===n?\"bottom\":\"top\";return t.reference[i]>t.floating[i]&&(a=T(a)),[a,T(a)]}(s,u,M);F.push(I[e[0]],I[e[1]])}if(_=[..._,{placement:s,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let r=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(y){case\"bestFit\":{let e=null==(a=_.filter(e=>{if(D){let t=C(e.placement);return t===x||\"y\"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case\"initialPlacement\":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}),options:[e,t]}},ej=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"size\",options:r,async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=P(r,e),c=await L(e,u),d=E(o),f=A(o),p=\"y\"===C(o),{width:h,height:m}=i.floating;\"top\"===d||\"bottom\"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?\"start\":\"end\")?\"left\":\"right\"):(n=d,t=\"end\"===f?\"top\":\"bottom\");let v=m-c.top-c.bottom,b=h-c.left-c.right,w=y(m-c[t],v),x=y(h-c[n],b),S=!e.middlewareData.shift,R=w,j=x;if(p?j=f||S?y(x,b):b:R=f||S?y(w,v):v,S&&!f){let e=g(c.left,0),t=g(c.right,0),r=g(c.top,0),n=g(c.bottom,0);p?j=h-2*(0!==e||0!==t?e+t:g(c.left,c.right)):R=m-2*(0!==r||0!==n?r+n:g(c.top,c.bottom))}await l({...e,availableWidth:j,availableHeight:R});let O=await a.getDimensions(s.floating);return h!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eC=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"hide\",options:r,async fn(e){let{rects:t}=e,{strategy:n=\"referenceHidden\",...o}=P(r,e);switch(n){case\"referenceHidden\":{let r=I(await L(e,{...o,elementContext:\"reference\"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:F(r)}}}case\"escaped\":{let r=I(await L(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:F(r)}}}default:return{}}}}),options:[e,t]}},eO=(e,t)=>({...eS(e),options:[e,t]});var eT=r(57437),eM=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,eT.jsx)(l.WV.svg,{...i,ref:t,width:n,height:o,viewBox:\"0 0 30 10\",preserveAspectRatio:\"none\",children:e.asChild?r:(0,eT.jsx)(\"polygon\",{points:\"0,0 30,0 15,10\"})})});eM.displayName=\"Arrow\";var ek=r(75137),eD=r(1336),eN=r(75238),eL=\"Popper\",[eI,eF]=(0,a.b)(eL),[e_,eV]=eI(eL),ez=e=>{let{__scopePopper:t,children:r}=e,[o,i]=n.useState(null);return(0,eT.jsx)(e_,{scope:t,anchor:o,onAnchorChange:i,children:r})};ez.displayName=eL;var eB=\"PopperAnchor\",eW=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,s=eV(eB,r),u=n.useRef(null),c=(0,i.e)(t,u);return n.useEffect(()=>{s.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,eT.jsx)(l.WV.div,{...a,ref:c})});eW.displayName=eB;var eU=\"PopperContent\",[e$,eH]=eI(eU),eK=n.forwardRef((e,t)=>{var r,o,a,s,u,c,d,f;let{__scopePopper:p,side:h=\"bottom\",sideOffset:m=0,align:v=\"center\",alignOffset:w=0,arrowPadding:x=0,avoidCollisions:S=!0,collisionBoundary:P=[],collisionPadding:E=0,sticky:A=\"partial\",hideWhenDetached:R=!1,updatePositionStrategy:j=\"optimized\",onPlaced:C,...O}=e,T=eV(eU,p),[M,k]=n.useState(null),D=(0,i.e)(t,e=>k(e)),[N,L]=n.useState(null),I=(0,eN.t)(N),F=null!==(d=null==I?void 0:I.width)&&void 0!==d?d:0,_=null!==(f=null==I?void 0:I.height)&&void 0!==f?f:0,V=\"number\"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},z=Array.isArray(P)?P:[P],W=z.length>0,U={padding:V,boundary:z.filter(eX),altBoundary:W},{refs:$,floatingStyles:H,placement:K,isPositioned:q,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t=\"bottom\",strategy:r=\"absolute\",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(o);ev(p,o)||h(o);let[m,y]=n.useState(null),[g,v]=n.useState(null),b=n.useCallback(e=>{e!==P.current&&(P.current=e,y(e))},[]),w=n.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),x=a||m,S=s||g,P=n.useRef(null),E=n.useRef(null),A=n.useRef(d),R=null!=u,j=ex(u),C=ex(i),O=n.useCallback(()=>{if(!P.current||!E.current)return;let e={placement:t,strategy:r,middleware:p};C.current&&(e.platform=C.current),em(P.current,E.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!ev(A.current,t)&&(A.current=t,ey.flushSync(()=>{f(t)}))})},[p,t,r,C]);eg(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let T=n.useRef(!1);eg(()=>(T.current=!0,()=>{T.current=!1}),[]),eg(()=>{if(x&&(P.current=x),S&&(E.current=S),x&&S){if(j.current)return j.current(x,S,O);O()}},[x,S,O,j,R]);let M=n.useMemo(()=>({reference:P,floating:E,setReference:b,setFloating:w}),[b,w]),k=n.useMemo(()=>({reference:x,floating:S}),[x,S]),D=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=ew(k.floating,d.x),n=ew(k.floating,d.y);return l?{...e,transform:\"translate(\"+t+\"px, \"+n+\"px)\",...eb(k.floating)>=1.5&&{willChange:\"transform\"}}:{position:r,left:t,top:n}},[r,l,k.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:O,refs:M,elements:k,floatingStyles:D}),[d,O,M,k,D])}({strategy:\"fixed\",placement:h+(\"center\"!==v?\"-\"+v:\"\"),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=\"function\"==typeof ResizeObserver,layoutShift:l=\"function\"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=er(e),d=i||a?[...c?ee(c):[],...ee(t)]:[];d.forEach(e=>{i&&e.addEventListener(\"scroll\",r,{passive:!0}),a&&e.addEventListener(\"resize\",r)});let f=c&&l?function(e,t){let r,n=null,o=B(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=b(c),h=b(o.clientWidth-(u+d)),m={rootMargin:-p+\"px \"+-h+\"px \"+-b(o.clientHeight-(c+f))+\"px \"+-b(u)+\"px\",threshold:g(0,y(1,l))||1},v=!0;function w(e){let t=e[0].intersectionRatio;if(t!==l){if(!v)return a();t?a(!1,t):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(w,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(w,m)}n.observe(e)}(!0),i}(c,r):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),h.observe(t));let m=u?ea(e):null;return u&&function t(){let n=ea(e);m&&(n.x!==m.x||n.y!==m.y||n.width!==m.width||n.height!==m.height)&&r(),m=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener(\"scroll\",r),a&&e.removeEventListener(\"resize\",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:\"always\"===j})},elements:{reference:T.anchor},middleware:[eP({mainAxis:m+_,alignmentAxis:w}),S&&eE({mainAxis:!0,crossAxis:!1,limiter:\"partial\"===A?eA():void 0,...U}),S&&eR({...U}),ej({...U,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:i,height:a}=r.reference,s=t.floating.style;s.setProperty(\"--radix-popper-available-width\",\"\".concat(n,\"px\")),s.setProperty(\"--radix-popper-available-height\",\"\".concat(o,\"px\")),s.setProperty(\"--radix-popper-anchor-width\",\"\".concat(i,\"px\")),s.setProperty(\"--radix-popper-anchor-height\",\"\".concat(a,\"px\"))}}),N&&eO({element:N,padding:x}),eY({arrowWidth:F,arrowHeight:_}),R&&eC({strategy:\"referenceHidden\",...U})]}),[Z,X]=eJ(K),Y=(0,ek.W)(C);(0,eD.b)(()=>{q&&(null==Y||Y())},[q,Y]);let J=null===(r=G.arrow)||void 0===r?void 0:r.x,Q=null===(o=G.arrow)||void 0===o?void 0:o.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,eo]=n.useState();return(0,eD.b)(()=>{M&&eo(window.getComputedStyle(M).zIndex)},[M]),(0,eT.jsx)(\"div\",{ref:$.setFloating,\"data-radix-popper-content-wrapper\":\"\",style:{...H,transform:q?H.transform:\"translate(0, -200%)\",minWidth:\"max-content\",zIndex:en,\"--radix-popper-transform-origin\":[null===(s=G.transformOrigin)||void 0===s?void 0:s.x,null===(u=G.transformOrigin)||void 0===u?void 0:u.y].join(\" \"),...(null===(c=G.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:\"hidden\",pointerEvents:\"none\"}},dir:e.dir,children:(0,eT.jsx)(e$,{scope:p,placedSide:Z,onArrowChange:L,arrowX:J,arrowY:Q,shouldHideArrow:et,children:(0,eT.jsx)(l.WV.div,{\"data-side\":Z,\"data-align\":X,...O,ref:D,style:{...O.style,animation:q?void 0:\"none\"}})})})});eK.displayName=eU;var eq=\"PopperArrow\",eG={top:\"bottom\",right:\"left\",bottom:\"top\",left:\"right\"},eZ=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=eH(eq,r),i=eG[o.placedSide];return(0,eT.jsx)(\"span\",{ref:o.onArrowChange,style:{position:\"absolute\",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:\"\",right:\"0 0\",bottom:\"center 0\",left:\"100% 0\"}[o.placedSide],transform:{top:\"translateY(100%)\",right:\"translateY(50%) rotate(90deg) translateX(-50%)\",bottom:\"rotate(180deg)\",left:\"translateY(50%) rotate(-90deg) translateX(50%)\"}[o.placedSide],visibility:o.shouldHideArrow?\"hidden\":void 0},children:(0,eT.jsx)(eM,{...n,ref:t,style:{...n.style,display:\"block\"}})})});function eX(e){return null!==e}eZ.displayName=eq;var eY=e=>({name:\"transformOrigin\",options:e,fn(t){var r,n,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=eJ(s),m={start:\"0%\",center:\"50%\",end:\"100%\"}[h],y=(null!==(i=null===(n=u.arrow)||void 0===n?void 0:n.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,v=\"\",b=\"\";return\"bottom\"===p?(v=c?m:\"\".concat(y,\"px\"),b=\"\".concat(-f,\"px\")):\"top\"===p?(v=c?m:\"\".concat(y,\"px\"),b=\"\".concat(l.floating.height+f,\"px\")):\"right\"===p?(v=\"\".concat(-f,\"px\"),b=c?m:\"\".concat(g,\"px\")):\"left\"===p&&(v=\"\".concat(l.floating.width+f,\"px\"),b=c?m:\"\".concat(g,\"px\")),{data:{x:v,y:b}}}});function eJ(e){let[t,r=\"center\"]=e.split(\"-\");return[t,r]}var eQ=r(56935),e0=r(31383),e1=\"rovingFocusGroup.onEntryFocus\",e2={bubbles:!1,cancelable:!0},e3=\"RovingFocusGroup\",[e5,e4,e8]=(0,u.B)(e3),[e6,e9]=(0,a.b)(e3,[e8]),[e7,te]=e6(e3),tt=n.forwardRef((e,t)=>(0,eT.jsx)(e5.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,eT.jsx)(e5.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,eT.jsx)(tr,{...e,ref:t})})}));tt.displayName=e3;var tr=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...g}=e,v=n.useRef(null),b=(0,i.e)(t,v),w=(0,c.gm)(d),[x=null,S]=(0,s.T)({prop:f,defaultProp:p,onChange:h}),[P,E]=n.useState(!1),A=(0,ek.W)(m),R=e4(r),j=n.useRef(!1),[C,O]=n.useState(0);return n.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(e1,A),()=>e.removeEventListener(e1,A)},[A]),(0,eT.jsx)(e7,{scope:r,orientation:a,dir:w,loop:u,currentTabStopId:x,onItemFocus:n.useCallback(e=>S(e),[S]),onItemShiftTab:n.useCallback(()=>E(!0),[]),onFocusableItemAdd:n.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>O(e=>e-1),[]),children:(0,eT.jsx)(l.WV.div,{tabIndex:P||0===C?-1:0,\"data-orientation\":a,...g,ref:b,style:{outline:\"none\",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(e1,e2);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>e.focusable);ta([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),y)}}j.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>E(!1))})})}),tn=\"RovingFocusGroupItem\",to=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...u}=e,c=(0,h.M)(),d=s||c,f=te(tn,r),p=f.currentTabStopId===d,m=e4(r),{onFocusableItemAdd:y,onFocusableItemRemove:g}=f;return n.useEffect(()=>{if(i)return y(),()=>g()},[i,y,g]),(0,eT.jsx)(e5.ItemSlot,{scope:r,id:d,focusable:i,active:a,children:(0,eT.jsx)(l.WV.span,{tabIndex:p?0:-1,\"data-orientation\":f.orientation,...u,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if(\"Tab\"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,\"rtl\"!==r?n:\"ArrowLeft\"===n?\"ArrowRight\":\"ArrowRight\"===n?\"ArrowLeft\":n);if(!(\"vertical\"===t&&[\"ArrowLeft\",\"ArrowRight\"].includes(o))&&!(\"horizontal\"===t&&[\"ArrowUp\",\"ArrowDown\"].includes(o)))return ti[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if(\"last\"===t)o.reverse();else if(\"prev\"===t||\"next\"===t){var r,n;\"prev\"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=f.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>ta(o))}})})})});to.displayName=tn;var ti={ArrowLeft:\"prev\",ArrowUp:\"prev\",ArrowRight:\"next\",ArrowDown:\"next\",PageUp:\"first\",Home:\"first\",PageDown:\"last\",End:\"last\"};function ta(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var ts=r(71538),tl=r(78369),tu=r(49418),tc=[\"Enter\",\" \"],td=[\"ArrowUp\",\"PageDown\",\"End\"],tf=[\"ArrowDown\",\"PageUp\",\"Home\",...td],tp={ltr:[...tc,\"ArrowRight\"],rtl:[...tc,\"ArrowLeft\"]},th={ltr:[\"ArrowLeft\"],rtl:[\"ArrowRight\"]},tm=\"Menu\",[ty,tg,tv]=(0,u.B)(tm),[tb,tw]=(0,a.b)(tm,[tv,eF,e9]),tx=eF(),tS=e9(),[tP,tE]=tb(tm),[tA,tR]=tb(tm),tj=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:i,onOpenChange:a,modal:s=!0}=e,l=tx(t),[u,d]=n.useState(null),f=n.useRef(!1),p=(0,ek.W)(a),h=(0,c.gm)(i);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener(\"pointerdown\",t,{capture:!0,once:!0}),document.addEventListener(\"pointermove\",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener(\"keydown\",e,{capture:!0}),()=>{document.removeEventListener(\"keydown\",e,{capture:!0}),document.removeEventListener(\"pointerdown\",t,{capture:!0}),document.removeEventListener(\"pointermove\",t,{capture:!0})}},[]),(0,eT.jsx)(ez,{...l,children:(0,eT.jsx)(tP,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:(0,eT.jsx)(tA,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:o})})})};tj.displayName=tm;var tC=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tx(r);return(0,eT.jsx)(eW,{...o,...n,ref:t})});tC.displayName=\"MenuAnchor\";var tO=\"MenuPortal\",[tT,tM]=tb(tO,{forceMount:void 0}),tk=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=tE(tO,t);return(0,eT.jsx)(tT,{scope:t,forceMount:r,children:(0,eT.jsx)(e0.z,{present:r||i.open,children:(0,eT.jsx)(eQ.h,{asChild:!0,container:o,children:n})})})};tk.displayName=tO;var tD=\"MenuContent\",[tN,tL]=tb(tD),tI=n.forwardRef((e,t)=>{let r=tM(tD,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=tE(tD,e.__scopeMenu),a=tR(tD,e.__scopeMenu);return(0,eT.jsx)(ty.Provider,{scope:e.__scopeMenu,children:(0,eT.jsx)(e0.z,{present:n||i.open,children:(0,eT.jsx)(ty.Slot,{scope:e.__scopeMenu,children:a.modal?(0,eT.jsx)(tF,{...o,ref:t}):(0,eT.jsx)(t_,{...o,ref:t})})})})}),tF=n.forwardRef((e,t)=>{let r=tE(tD,e.__scopeMenu),a=n.useRef(null),s=(0,i.e)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,tl.Ry)(e)},[]),(0,eT.jsx)(tV,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),t_=n.forwardRef((e,t)=>{let r=tE(tD,e.__scopeMenu);return(0,eT.jsx)(tV,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),tV=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:w,...x}=e,S=tE(tD,r),P=tR(tD,r),E=tx(r),A=tS(r),R=tg(r),[j,C]=n.useState(null),O=n.useRef(null),T=(0,i.e)(t,O,S.onContentChange),M=n.useRef(0),k=n.useRef(\"\"),D=n.useRef(0),N=n.useRef(null),L=n.useRef(\"right\"),I=n.useRef(0),F=w?tu.Z:n.Fragment,_=w?{as:ts.g7,allowPinchZoom:!0}:void 0,V=e=>{var t,r;let n=k.current+e,o=R().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,s=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(o.map(e=>e.textValue),n,a),l=null===(r=o.find(e=>e.textValue===s))||void 0===r?void 0:r.ref.current;!function e(t){k.current=t,window.clearTimeout(M.current),\"\"!==t&&(M.current=window.setTimeout(()=>e(\"\"),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout(M.current),[]),(0,f.EW)();let z=n.useCallback(e=>{var t,r,n;return L.current===(null===(t=N.current)||void 0===t?void 0:t.side)&&!!(n=null===(r=N.current)||void 0===r?void 0:r.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},n)},[]);return(0,eT.jsx)(tN,{scope:r,searchRef:k,onItemEnter:n.useCallback(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:n.useCallback(e=>{var t;z(e)||(null===(t=O.current)||void 0===t||t.focus(),C(null))},[z]),onTriggerLeave:n.useCallback(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:D,onPointerGraceIntentChange:n.useCallback(e=>{N.current=e},[]),children:(0,eT.jsx)(F,{..._,children:(0,eT.jsx)(p.M,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.M)(l,e=>{var t;e.preventDefault(),null===(t=O.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,eT.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:v,onDismiss:b,children:(0,eT.jsx)(tt,{asChild:!0,...A,dir:P.dir,orientation:\"vertical\",loop:a,currentTabStopId:j,onCurrentTabStopIdChange:C,onEntryFocus:(0,o.M)(h,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eT.jsx)(eK,{role:\"menu\",\"aria-orientation\":\"vertical\",\"data-state\":rn(S.open),\"data-radix-menu-content\":\"\",dir:P.dir,...E,...x,ref:T,style:{outline:\"none\",...x.style},onKeyDown:(0,o.M)(x.onKeyDown,e=>{let t=e.target.closest(\"[data-radix-menu-content]\")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&(\"Tab\"===e.key&&e.preventDefault(),!r&&n&&V(e.key));let o=O.current;if(e.target!==o||!tf.includes(e.key))return;e.preventDefault();let i=R().filter(e=>!e.disabled).map(e=>e.ref.current);td.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),k.current=\"\")}),onPointerMove:(0,o.M)(e.onPointerMove,ra(e=>{let t=e.target,r=I.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>I.current?\"right\":\"left\";L.current=t,I.current=e.clientX}}))})})})})})})});tI.displayName=tD;var tz=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,eT.jsx)(l.WV.div,{role:\"group\",...n,ref:t})});tz.displayName=\"MenuGroup\";var tB=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,eT.jsx)(l.WV.div,{...n,ref:t})});tB.displayName=\"MenuLabel\";var tW=\"MenuItem\",tU=\"menu.itemSelect\",t$=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...s}=e,u=n.useRef(null),c=tR(tW,e.__scopeMenu),d=tL(tW,e.__scopeMenu),f=(0,i.e)(t,u),p=n.useRef(!1);return(0,eT.jsx)(tH,{...s,ref:f,disabled:r,onClick:(0,o.M)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(tU,{bubbles:!0,cancelable:!0});e.addEventListener(tU,e=>null==a?void 0:a(e),{once:!0}),(0,l.jH)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=\"\"!==d.searchRef.current;!r&&(!t||\" \"!==e.key)&&tc.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});t$.displayName=tW;var tH=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:s,...u}=e,c=tL(tW,r),d=tS(r),f=n.useRef(null),p=(0,i.e)(t,f),[h,m]=n.useState(!1),[y,g]=n.useState(\"\");return n.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:\"\").trim())}},[u.children]),(0,eT.jsx)(ty.ItemSlot,{scope:r,disabled:a,textValue:null!=s?s:y,children:(0,eT.jsx)(to,{asChild:!0,...d,focusable:!a,children:(0,eT.jsx)(l.WV.div,{role:\"menuitem\",\"data-highlighted\":h?\"\":void 0,\"aria-disabled\":a||void 0,\"data-disabled\":a?\"\":void 0,...u,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,ra(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ra(e=>c.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>m(!0)),onBlur:(0,o.M)(e.onBlur,()=>m(!1))})})})}),tK=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,eT.jsx)(t0,{scope:e.__scopeMenu,checked:r,children:(0,eT.jsx)(t$,{role:\"menuitemcheckbox\",\"aria-checked\":ro(r)?\"mixed\":r,...i,ref:t,\"data-state\":ri(r),onSelect:(0,o.M)(i.onSelect,()=>null==n?void 0:n(!!ro(r)||!r),{checkForDefaultPrevented:!1})})})});tK.displayName=\"MenuCheckboxItem\";var tq=\"MenuRadioGroup\",[tG,tZ]=tb(tq,{value:void 0,onValueChange:()=>{}}),tX=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=(0,ek.W)(n);return(0,eT.jsx)(tG,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,eT.jsx)(tz,{...o,ref:t})})});tX.displayName=tq;var tY=\"MenuRadioItem\",tJ=n.forwardRef((e,t)=>{let{value:r,...n}=e,i=tZ(tY,e.__scopeMenu),a=r===i.value;return(0,eT.jsx)(t0,{scope:e.__scopeMenu,checked:a,children:(0,eT.jsx)(t$,{role:\"menuitemradio\",\"aria-checked\":a,...n,ref:t,\"data-state\":ri(a),onSelect:(0,o.M)(n.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,r)},{checkForDefaultPrevented:!1})})})});tJ.displayName=tY;var tQ=\"MenuItemIndicator\",[t0,t1]=tb(tQ,{checked:!1}),t2=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=t1(tQ,r);return(0,eT.jsx)(e0.z,{present:n||ro(i.checked)||!0===i.checked,children:(0,eT.jsx)(l.WV.span,{...o,ref:t,\"data-state\":ri(i.checked)})})});t2.displayName=tQ;var t3=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,eT.jsx)(l.WV.div,{role:\"separator\",\"aria-orientation\":\"horizontal\",...n,ref:t})});t3.displayName=\"MenuSeparator\";var t5=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tx(r);return(0,eT.jsx)(eZ,{...o,...n,ref:t})});t5.displayName=\"MenuArrow\";var t4=\"MenuSub\",[t8,t6]=tb(t4),t9=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:i}=e,a=tE(t4,t),s=tx(t),[l,u]=n.useState(null),[c,d]=n.useState(null),f=(0,ek.W)(i);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,eT.jsx)(ez,{...s,children:(0,eT.jsx)(tP,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:d,children:(0,eT.jsx)(t8,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:l,onTriggerChange:u,children:r})})})};t9.displayName=t4;var t7=\"MenuSubTrigger\",re=n.forwardRef((e,t)=>{let r=tE(t7,e.__scopeMenu),a=tR(t7,e.__scopeMenu),s=t6(t7,e.__scopeMenu),l=tL(t7,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,eT.jsx)(tC,{asChild:!0,...f,children:(0,eT.jsx)(tH,{id:s.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":r.open,\"aria-controls\":s.contentId,\"data-state\":rn(r.open),...e,ref:(0,i.F)(t,s.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,ra(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ra(e=>{var t,n;p();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,i=\"right\"===t,a=o[i?\"left\":\"right\"],s=o[i?\"right\":\"left\"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:s,y:o.top},{x:s,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let n=\"\"!==l.searchRef.current;if(!e.disabled&&(!n||\" \"!==t.key)&&tp[a.dir].includes(t.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),t.preventDefault()}})})})});re.displayName=t7;var rt=\"MenuSubContent\",rr=n.forwardRef((e,t)=>{let r=tM(tD,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,l=tE(tD,e.__scopeMenu),u=tR(tD,e.__scopeMenu),c=t6(rt,e.__scopeMenu),d=n.useRef(null),f=(0,i.e)(t,d);return(0,eT.jsx)(ty.Provider,{scope:e.__scopeMenu,children:(0,eT.jsx)(e0.z,{present:a||l.open,children:(0,eT.jsx)(ty.Slot,{scope:e.__scopeMenu,children:(0,eT.jsx)(tV,{id:c.contentId,\"aria-labelledby\":c.triggerId,...s,ref:f,align:\"start\",side:\"rtl\"===u.dir?\"left\":\"right\",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=th[u.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null===(n=c.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function rn(e){return e?\"open\":\"closed\"}function ro(e){return\"indeterminate\"===e}function ri(e){return ro(e)?\"indeterminate\":e?\"checked\":\"unchecked\"}function ra(e){return t=>\"mouse\"===t.pointerType?e(t):void 0}rr.displayName=rt;var rs=\"DropdownMenu\",[rl,ru]=(0,a.b)(rs,[tw]),rc=tw(),[rd,rf]=rl(rs),rp=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=rc(t),d=n.useRef(null),[f=!1,p]=(0,s.T)({prop:i,defaultProp:a,onChange:l});return(0,eT.jsx)(rd,{scope:t,triggerId:(0,h.M)(),triggerRef:d,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,eT.jsx)(tj,{...c,open:f,onOpenChange:p,dir:o,modal:u,children:r})})};rp.displayName=rs;var rh=\"DropdownMenuTrigger\",rm=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=rf(rh,r),u=rc(r);return(0,eT.jsx)(tC,{asChild:!0,...u,children:(0,eT.jsx)(l.WV.button,{type:\"button\",id:s.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":s.open,\"aria-controls\":s.open?s.contentId:void 0,\"data-state\":s.open?\"open\":\"closed\",\"data-disabled\":n?\"\":void 0,disabled:n,...a,ref:(0,i.F)(t,s.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!n&&([\"Enter\",\" \"].includes(e.key)&&s.onOpenToggle(),\"ArrowDown\"===e.key&&s.onOpenChange(!0),[\"Enter\",\" \",\"ArrowDown\"].includes(e.key)&&e.preventDefault())})})})});rm.displayName=rh;var ry=e=>{let{__scopeDropdownMenu:t,...r}=e,n=rc(t);return(0,eT.jsx)(tk,{...n,...r})};ry.displayName=\"DropdownMenuPortal\";var rg=\"DropdownMenuContent\",rv=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...i}=e,a=rf(rg,r),s=rc(r),l=n.useRef(!1);return(0,eT.jsx)(tI,{id:a.contentId,\"aria-labelledby\":a.triggerId,...s,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(l.current=!0)}),style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});rv.displayName=rg;var rb=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tz,{...o,...n,ref:t})});rb.displayName=\"DropdownMenuGroup\";var rw=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tB,{...o,...n,ref:t})});rw.displayName=\"DropdownMenuLabel\";var rx=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t$,{...o,...n,ref:t})});rx.displayName=\"DropdownMenuItem\";var rS=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tK,{...o,...n,ref:t})});rS.displayName=\"DropdownMenuCheckboxItem\";var rP=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tX,{...o,...n,ref:t})});rP.displayName=\"DropdownMenuRadioGroup\";var rE=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tJ,{...o,...n,ref:t})});rE.displayName=\"DropdownMenuRadioItem\";var rA=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t2,{...o,...n,ref:t})});rA.displayName=\"DropdownMenuItemIndicator\";var rR=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t3,{...o,...n,ref:t})});rR.displayName=\"DropdownMenuSeparator\",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t5,{...o,...n,ref:t})}).displayName=\"DropdownMenuArrow\";var rj=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(re,{...o,...n,ref:t})});rj.displayName=\"DropdownMenuSubTrigger\";var rC=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(rr,{...o,...n,ref:t,style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});rC.displayName=\"DropdownMenuSubContent\";var rO=rp,rT=rm,rM=ry,rk=rv,rD=rb,rN=rw,rL=rx,rI=rS,rF=rP,r_=rE,rV=rA,rz=rR,rB=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=rc(t),[l=!1,u]=(0,s.T)({prop:n,defaultProp:i,onChange:o});return(0,eT.jsx)(t9,{...a,open:l,onOpenChange:u,children:r})},rW=rj,rU=rC},20589:function(e,t,r){\"use strict\";r.d(t,{EW:function(){return i}});var n=r(2265),o=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll(\"[data-radix-focus-guard]\");return document.body.insertAdjacentElement(\"afterbegin\",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement(\"beforeend\",null!==(t=r[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll(\"[data-radix-focus-guard]\").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement(\"span\");return e.setAttribute(\"data-radix-focus-guard\",\"\"),e.tabIndex=0,e.style.cssText=\"outline: none; opacity: 0; position: fixed; pointer-events: none\",e}},80467:function(e,t,r){\"use strict\";let n;r.d(t,{M:function(){return f}});var o=r(2265),i=r(1584),a=r(25171),s=r(75137),l=r(57437),u=\"focusScope.autoFocusOnMount\",c=\"focusScope.autoFocusOnUnmount\",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...v}=e,[b,w]=o.useState(null),x=(0,s.W)(f),S=(0,s.W)(g),P=o.useRef(null),E=(0,i.e)(t,e=>w(e)),A=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(n){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?P.current=t:m(P.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||m(P.current,{select:!0})};document.addEventListener(\"focusin\",e),document.addEventListener(\"focusout\",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener(\"focusin\",e),document.removeEventListener(\"focusout\",t),r.disconnect()}}},[n,b,A.paused]),o.useEffect(()=>{if(b){y.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>\"A\"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,S),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,S),y.remove(A)},0)}}},[b,x,S,A]);let R=o.useCallback(e=>{if(!r&&!n||A.paused)return;let t=\"Tab\"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,i]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&m(i,{select:!0})):(e.preventDefault(),r&&m(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,A.paused]);return(0,l.jsx)(a.WV.div,{tabIndex:-1,...v,ref:E,onKeyDown:R})});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=\"INPUT\"===e.tagName&&\"hidden\"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if(\"hidden\"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if(\"none\"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&\"select\"in r&&t&&e.select()}}f.displayName=\"FocusScope\";var y=(n=[],{add(e){let t=n[0];e!==t&&(null==t||t.pause()),(n=g(n,e)).unshift(e)},remove(e){var t;null===(t=(n=g(n,e))[0])||void 0===t||t.resume()}});function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},53201:function(e,t,r){\"use strict\";r.d(t,{M:function(){return l}});var n,o=r(2265),i=r(1336),a=(n||(n=r.t(o,2)))[\"useId\".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=o.useState(a());return(0,i.b)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:\"\")}},38364:function(e,t,r){\"use strict\";r.d(t,{f:function(){return s}});var n=r(2265),o=r(25171),i=r(57437),a=n.forwardRef((e,t)=>(0,i.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest(\"button, input, select, textarea\")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName=\"Label\";var s=a},56935:function(e,t,r){\"use strict\";r.d(t,{h:function(){return l}});var n=r(2265),o=r(54887),i=r(25171),a=r(1336),s=r(57437),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[d,f]=n.useState(!1);(0,a.b)(()=>f(!0),[]);let p=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(r=l.document)||void 0===r?void 0:r.body);return p?o.createPortal((0,s.jsx)(i.WV.div,{...c,ref:t}),p):null});l.displayName=\"Portal\"},31383:function(e,t,r){\"use strict\";r.d(t,{z:function(){return s}});var n=r(2265),o=r(54887),i=r(1584),a=r(1336),s=e=>{var t,r;let s,u;let{present:c,children:d}=e,f=function(e){var t,r;let[i,s]=n.useState(),u=n.useRef({}),c=n.useRef(e),d=n.useRef(\"none\"),[f,p]=(t=e?\"mounted\":\"unmounted\",r={mounted:{UNMOUNT:\"unmounted\",ANIMATION_OUT:\"unmountSuspended\"},unmountSuspended:{MOUNT:\"mounted\",ANIMATION_END:\"unmounted\"},unmounted:{MOUNT:\"mounted\"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(u.current);d.current=\"mounted\"===f?e:\"none\"},[f]),(0,a.b)(()=>{let t=u.current,r=c.current;if(r!==e){let n=d.current,o=l(t);e?p(\"MOUNT\"):\"none\"===o||(null==t?void 0:t.display)===\"none\"?p(\"UNMOUNT\"):r&&n!==o?p(\"ANIMATION_OUT\"):p(\"UNMOUNT\"),c.current=e}},[e,p]),(0,a.b)(()=>{if(i){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===i&&t&&o.flushSync(()=>p(\"ANIMATION_END\"))},t=e=>{e.target===i&&(d.current=l(u.current))};return i.addEventListener(\"animationstart\",t),i.addEventListener(\"animationcancel\",e),i.addEventListener(\"animationend\",e),()=>{i.removeEventListener(\"animationstart\",t),i.removeEventListener(\"animationcancel\",e),i.removeEventListener(\"animationend\",e)}}p(\"ANIMATION_END\")},[i,p]),{isPresent:[\"mounted\",\"unmountSuspended\"].includes(f),ref:n.useCallback(e=>{e&&(u.current=getComputedStyle(e)),s(e)},[])}}(c),p=\"function\"==typeof d?d({present:f.isPresent}):n.Children.only(d),h=(0,i.e)(f.ref,(s=null===(t=Object.getOwnPropertyDescriptor(p.props,\"ref\"))||void 0===t?void 0:t.get)&&\"isReactWarning\"in s&&s.isReactWarning?p.ref:(s=null===(r=Object.getOwnPropertyDescriptor(p,\"ref\"))||void 0===r?void 0:r.get)&&\"isReactWarning\"in s&&s.isReactWarning?p.props.ref:p.props.ref||p.ref);return\"function\"==typeof d||f.isPresent?n.cloneElement(p,{ref:h}):null};function l(e){return(null==e?void 0:e.animationName)||\"none\"}s.displayName=\"Presence\"},25171:function(e,t,r){\"use strict\";r.d(t,{WV:function(){return s},jH:function(){return l}});var n=r(2265),o=r(54887),i=r(71538),a=r(57437),s=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"span\",\"svg\",\"ul\"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,s=n?i.g7:t;return\"undefined\"!=typeof window&&(window[Symbol.for(\"radix-ui\")]=!0),(0,a.jsx)(s,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},85068:function(e,t,r){\"use strict\";r.d(t,{e6:function(){return $},fC:function(){return W},bU:function(){return H},fQ:function(){return U}});var n=r(2265);function o(e,[t,r]){return Math.min(r,Math.max(t,e))}var i=r(78149),a=r(1584),s=r(98324),l=r(91715),u=r(87513),c=r(47250),d=r(75238),f=r(25171),p=r(90976),h=r(57437),m=[\"PageUp\",\"PageDown\"],y=[\"ArrowUp\",\"ArrowDown\",\"ArrowLeft\",\"ArrowRight\"],g={\"from-left\":[\"Home\",\"PageDown\",\"ArrowDown\",\"ArrowLeft\"],\"from-right\":[\"Home\",\"PageDown\",\"ArrowDown\",\"ArrowRight\"],\"from-bottom\":[\"Home\",\"PageDown\",\"ArrowDown\",\"ArrowLeft\"],\"from-top\":[\"Home\",\"PageDown\",\"ArrowUp\",\"ArrowLeft\"]},v=\"Slider\",[b,w,x]=(0,p.B)(v),[S,P]=(0,s.b)(v,[x]),[E,A]=S(v),R=n.forwardRef((e,t)=>{let{name:r,min:a=0,max:s=100,step:u=1,orientation:c=\"horizontal\",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[a],value:g,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:x=!1,...S}=e,P=n.useRef(new Set),A=n.useRef(0),R=\"horizontal\"===c?O:T,[j=[],C]=(0,l.T)({prop:g,defaultProp:p,onChange:e=>{var t;null===(t=[...P.current][A.current])||void 0===t||t.focus(),v(e)}}),M=n.useRef(j);function k(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},n=(String(u).split(\".\")[1]||\"\").length,i=o(function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/u)*u+a,n),[a,s]);C(function(){var e,n;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(o,i,t);if(e=a,!(!((n=f*u)>0)||Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=n))return o;{A.current=a.indexOf(i);let e=String(a)!==String(o);return e&&r&&w(a),e?a:o}})}return(0,h.jsx)(E,{scope:e.__scopeSlider,name:r,disabled:d,min:a,max:s,valueIndexToChangeRef:A,thumbs:P.current,values:j,orientation:c,children:(0,h.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(R,{\"aria-disabled\":d,\"data-disabled\":d?\"\":void 0,...S,ref:t,onPointerDown:(0,i.M)(S.onPointerDown,()=>{d||(M.current=j)}),min:a,max:s,inverted:x,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t));return r.indexOf(Math.min(...r))}(j,e);k(e,t)},onSlideMove:d?void 0:function(e){k(e,A.current)},onSlideEnd:d?void 0:function(){let e=M.current[A.current];j[A.current]!==e&&w(j)},onHomeKeyDown:()=>!d&&k(a,0,{commit:!0}),onEndKeyDown:()=>!d&&k(s,j.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!d){let e=m.includes(t.key)||t.shiftKey&&y.includes(t.key),n=A.current;k(j[n]+u*(e?10:1)*r,n,{commit:!0})}}})})})})});R.displayName=v;var[j,C]=S(v,{startEdge:\"left\",endEdge:\"right\",size:\"width\",direction:1}),O=n.forwardRef((e,t)=>{let{min:r,max:o,dir:i,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,y]=n.useState(null),v=(0,a.e)(t,e=>y(e)),b=n.useRef(),w=(0,u.gm)(i),x=\"ltr\"===w,S=x&&!s||!x&&s;function P(e){let t=b.current||m.getBoundingClientRect(),n=B([0,t.width],S?[r,o]:[o,r]);return b.current=t,n(e-t.left)}return(0,h.jsx)(j,{scope:e.__scopeSlider,startEdge:S?\"left\":\"right\",endEdge:S?\"right\":\"left\",direction:S?1:-1,size:\"width\",children:(0,h.jsx)(M,{dir:w,\"data-orientation\":\"horizontal\",...p,ref:v,style:{...p.style,\"--radix-slider-thumb-transform\":\"translateX(-50%)\"},onSlideStart:e=>{let t=P(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=P(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=g[S?\"from-left\":\"from-right\"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),T=n.forwardRef((e,t)=>{let{min:r,max:o,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...d}=e,f=n.useRef(null),p=(0,a.e)(t,f),m=n.useRef(),y=!i;function v(e){let t=m.current||f.current.getBoundingClientRect(),n=B([0,t.height],y?[o,r]:[r,o]);return m.current=t,n(e-t.top)}return(0,h.jsx)(j,{scope:e.__scopeSlider,startEdge:y?\"bottom\":\"top\",endEdge:y?\"top\":\"bottom\",size:\"height\",direction:y?1:-1,children:(0,h.jsx)(M,{\"data-orientation\":\"vertical\",...d,ref:p,style:{...d.style,\"--radix-slider-thumb-transform\":\"translateY(50%)\"},onSlideStart:e=>{let t=v(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=v(e.clientY);null==l||l(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=g[y?\"from-bottom\":\"from-top\"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),M=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:u,...c}=e,d=A(v,r);return(0,h.jsx)(f.WV.span,{...c,ref:t,onKeyDown:(0,i.M)(e.onKeyDown,e=>{\"Home\"===e.key?(s(e),e.preventDefault()):\"End\"===e.key?(l(e),e.preventDefault()):m.concat(y).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),k=\"SliderTrack\",D=n.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,o=A(k,r);return(0,h.jsx)(f.WV.span,{\"data-disabled\":o.disabled?\"\":void 0,\"data-orientation\":o.orientation,...n,ref:t})});D.displayName=k;var N=\"SliderRange\",L=n.forwardRef((e,t)=>{let{__scopeSlider:r,...o}=e,i=A(N,r),s=C(N,r),l=n.useRef(null),u=(0,a.e)(t,l),c=i.values.length,d=i.values.map(e=>z(e,i.min,i.max));return(0,h.jsx)(f.WV.span,{\"data-orientation\":i.orientation,\"data-disabled\":i.disabled?\"\":void 0,...o,ref:u,style:{...e.style,[s.startEdge]:(c>1?Math.min(...d):0)+\"%\",[s.endEdge]:100-Math.max(...d)+\"%\"}})});L.displayName=N;var I=\"SliderThumb\",F=n.forwardRef((e,t)=>{let r=w(e.__scopeSlider),[o,i]=n.useState(null),s=(0,a.e)(t,e=>i(e)),l=n.useMemo(()=>o?r().findIndex(e=>e.ref.current===o):-1,[r,o]);return(0,h.jsx)(_,{...e,ref:s,index:l})}),_=n.forwardRef((e,t)=>{var r;let{__scopeSlider:o,index:s,name:l,...u}=e,c=A(I,o),p=C(I,o),[m,y]=n.useState(null),g=(0,a.e)(t,e=>y(e)),v=!m||!!m.closest(\"form\"),w=(0,d.t)(m),x=c.values[s],S=void 0===x?0:z(x,c.min,c.max),P=(r=c.values.length)>2?\"Value \".concat(s+1,\" of \").concat(r):2===r?[\"Minimum\",\"Maximum\"][s]:void 0,E=null==w?void 0:w[p.size],R=E?function(e,t,r){let n=e/2,o=B([0,50],[0,n]);return(n-o(t)*r)*r}(E,S,p.direction):0;return n.useEffect(()=>{if(m)return c.thumbs.add(m),()=>{c.thumbs.delete(m)}},[m,c.thumbs]),(0,h.jsxs)(\"span\",{style:{transform:\"var(--radix-slider-thumb-transform)\",position:\"absolute\",[p.startEdge]:\"calc(\".concat(S,\"% + \").concat(R,\"px)\")},children:[(0,h.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.WV.span,{role:\"slider\",\"aria-label\":e[\"aria-label\"]||P,\"aria-valuemin\":c.min,\"aria-valuenow\":x,\"aria-valuemax\":c.max,\"aria-orientation\":c.orientation,\"data-orientation\":c.orientation,\"data-disabled\":c.disabled?\"\":void 0,tabIndex:c.disabled?void 0:0,...u,ref:g,style:void 0===x?{display:\"none\"}:e.style,onFocus:(0,i.M)(e.onFocus,()=>{c.valueIndexToChangeRef.current=s})})}),v&&(0,h.jsx)(V,{name:null!=l?l:c.name?c.name+(c.values.length>1?\"[]\":\"\"):void 0,value:x},s)]})});F.displayName=I;var V=e=>{let{value:t,...r}=e,o=n.useRef(null),i=(0,c.D)(t);return n.useEffect(()=>{let e=o.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"value\").set;if(i!==t&&r){let n=new Event(\"input\",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),(0,h.jsx)(\"input\",{style:{display:\"none\"},...r,ref:o,defaultValue:t})};function z(e,t,r){return o(100/(r-t)*(e-t),[0,100])}function B(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var W=R,U=D,$=L,H=F},71538:function(e,t,r){\"use strict\";r.d(t,{A4:function(){return l},g7:function(){return a}});var n=r(2265),o=r(1584),i=r(57437),a=n.forwardRef((e,t)=>{let{children:r,...o}=e,a=n.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(s,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(s,{...o,ref:t,children:r})});a.displayName=\"Slot\";var s=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(r.props,\"ref\")?.get)&&\"isReactWarning\"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,\"ref\")?.get)&&\"isReactWarning\"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):\"style\"===n?r[n]={...o,...i}:\"className\"===n&&(r[n]=[o,i].filter(Boolean).join(\" \"))}return{...e,...r}}(i,r.props),ref:t?(0,o.F)(t,s):s})}return n.Children.count(r)>1?n.Children.only(null):null});s.displayName=\"SlotClone\";var l=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===l}},9646:function(e,t,r){\"use strict\";r.d(t,{bU:function(){return P},fC:function(){return S}});var n=r(2265),o=r(78149),i=r(1584),a=r(98324),s=r(91715),l=r(47250),u=r(75238),c=r(25171),d=r(57437),f=\"Switch\",[p,h]=(0,a.b)(f),[m,y]=p(f),g=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:h=\"on\",onCheckedChange:y,...g}=e,[v,b]=n.useState(null),S=(0,i.e)(t,e=>b(e)),P=n.useRef(!1),E=!v||!!v.closest(\"form\"),[A=!1,R]=(0,s.T)({prop:l,defaultProp:u,onChange:y});return(0,d.jsxs)(m,{scope:r,checked:A,disabled:p,children:[(0,d.jsx)(c.WV.button,{type:\"button\",role:\"switch\",\"aria-checked\":A,\"aria-required\":f,\"data-state\":x(A),\"data-disabled\":p?\"\":void 0,disabled:p,value:h,...g,ref:S,onClick:(0,o.M)(e.onClick,e=>{R(e=>!e),E&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),E&&(0,d.jsx)(w,{control:v,bubbles:!P.current,name:a,value:h,checked:A,required:f,disabled:p,style:{transform:\"translateX(-100%)\"}})]})});g.displayName=f;var v=\"SwitchThumb\",b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=y(v,r);return(0,d.jsx)(c.WV.span,{\"data-state\":x(o.checked),\"data-disabled\":o.disabled?\"\":void 0,...n,ref:t})});b.displayName=v;var w=e=>{let{control:t,checked:r,bubbles:o=!0,...i}=e,a=n.useRef(null),s=(0,l.D)(r),c=(0,u.t)(t);return n.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"checked\").set;if(s!==r&&t){let n=new Event(\"click\",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[s,r,o]),(0,d.jsx)(\"input\",{type:\"checkbox\",\"aria-hidden\":!0,defaultChecked:r,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:\"absolute\",pointerEvents:\"none\",opacity:0,margin:0}})};function x(e){return e?\"checked\":\"unchecked\"}var S=g,P=b},75137:function(e,t,r){\"use strict\";r.d(t,{W:function(){return o}});var n=r(2265);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},91715:function(e,t,r){\"use strict\";r.d(t,{T:function(){return i}});var n=r(2265),o=r(75137);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,a=n.useRef(i),s=(0,o.W)(t);return n.useEffect(()=>{a.current!==i&&(s(i),a.current=i)},[i,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:i,u=(0,o.W)(r);return[l,n.useCallback(t=>{if(s){let r=\"function\"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},1336:function(e,t,r){\"use strict\";r.d(t,{b:function(){return o}});var n=r(2265),o=globalThis?.document?n.useLayoutEffect:()=>{}},47250:function(e,t,r){\"use strict\";r.d(t,{D:function(){return o}});var n=r(2265);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},75238:function(e,t,r){\"use strict\";r.d(t,{t:function(){return i}});var n=r(2265),o=r(1336);function i(e){let[t,r]=n.useState(void 0);return(0,o.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if(\"borderBoxSize\"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:\"border-box\"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},38472:function(e,t,r){\"use strict\";let n,o,i,a;r.d(t,{Z:function(){return tp}});var s,l,u,c,d,f={};function p(e,t){return function(){return e.apply(t,arguments)}}r.r(f),r.d(f,{hasBrowserEnv:function(){return ev},hasStandardBrowserEnv:function(){return eb},hasStandardBrowserWebWorkerEnv:function(){return ew},origin:function(){return ex}});var h=r(25566);let{toString:m}=Object.prototype,{getPrototypeOf:y}=Object,g=(n=Object.create(null),e=>{let t=m.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),v=e=>(e=e.toLowerCase(),t=>g(t)===e),b=e=>t=>typeof t===e,{isArray:w}=Array,x=b(\"undefined\"),S=v(\"ArrayBuffer\"),P=b(\"string\"),E=b(\"function\"),A=b(\"number\"),R=e=>null!==e&&\"object\"==typeof e,j=e=>{if(\"object\"!==g(e))return!1;let t=y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C=v(\"Date\"),O=v(\"File\"),T=v(\"Blob\"),M=v(\"FileList\"),k=v(\"URLSearchParams\"),[D,N,L,I]=[\"ReadableStream\",\"Request\",\"Response\",\"Headers\"].map(v);function F(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e){if(\"object\"!=typeof e&&(e=[e]),w(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}}function _(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let V=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:global,z=e=>!x(e)&&e!==V,B=(o=\"undefined\"!=typeof Uint8Array&&y(Uint8Array),e=>o&&e instanceof o),W=v(\"HTMLFormElement\"),U=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$=v(\"RegExp\"),H=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};F(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},K=\"abcdefghijklmnopqrstuvwxyz\",q=\"0123456789\",G={DIGIT:q,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+q},Z=v(\"AsyncFunction\"),X=(s=\"function\"==typeof setImmediate,l=E(V.postMessage),s?setImmediate:l?(u=`axios@${Math.random()}`,c=[],V.addEventListener(\"message\",({source:e,data:t})=>{e===V&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),V.postMessage(u,\"*\")}):e=>setTimeout(e)),Y=\"undefined\"!=typeof queueMicrotask?queueMicrotask.bind(V):void 0!==h&&h.nextTick||X;var J={isArray:w,isArrayBuffer:S,isBuffer:function(e){return null!==e&&!x(e)&&null!==e.constructor&&!x(e.constructor)&&E(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&(\"function\"==typeof FormData&&e instanceof FormData||E(e.append)&&(\"formdata\"===(t=g(e))||\"object\"===t&&E(e.toString)&&\"[object FormData]\"===e.toString()))},isArrayBufferView:function(e){return\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:P,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:j,isReadableStream:D,isRequest:N,isResponse:L,isHeaders:I,isUndefined:x,isDate:C,isFile:O,isBlob:T,isRegExp:$,isFunction:E,isStream:e=>R(e)&&E(e.pipe),isURLSearchParams:k,isTypedArray:B,isFileList:M,forEach:F,merge:function e(){let{caseless:t}=z(this)&&this||{},r={},n=(n,o)=>{let i=t&&_(r,o)||o;j(r[i])&&j(n)?r[i]=e(r[i],n):j(n)?r[i]=e({},n):w(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&F(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(F(t,(t,n)=>{r&&E(t)?e[n]=p(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\"),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,\"super\",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&y(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:g,kindOfTest:v,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(w(e))return e;let t=e.length;if(!A(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:W,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,r)=>{if(E(e)&&-1!==[\"arguments\",\"caller\",\"callee\"].indexOf(r))return!1;if(E(e[r])){if(t.enumerable=!1,\"writable\"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error(\"Can not rewrite read-only method '\"+r+\"'\")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(w(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_,global:V,isContextDefined:z,ALPHABET:G,generateString:(e=16,t=G.ALPHA_DIGIT)=>{let r=\"\",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&E(e.append)&&\"FormData\"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(!(\"toJSON\"in e)){t[n]=e;let o=w(e)?[]:{};return F(e,(e,t)=>{let i=r(e,n+1);x(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Z,isThenable:e=>e&&(R(e)||E(e))&&E(e.then)&&E(e.catch),setImmediate:X,asap:Y};function Q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=\"AxiosError\",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}J.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let ee=Q.prototype,et={};[\"ERR_BAD_OPTION_VALUE\",\"ERR_BAD_OPTION\",\"ECONNABORTED\",\"ETIMEDOUT\",\"ERR_NETWORK\",\"ERR_FR_TOO_MANY_REDIRECTS\",\"ERR_DEPRECATED\",\"ERR_BAD_RESPONSE\",\"ERR_BAD_REQUEST\",\"ERR_CANCELED\",\"ERR_NOT_SUPPORT\",\"ERR_INVALID_URL\"].forEach(e=>{et[e]={value:e}}),Object.defineProperties(Q,et),Object.defineProperty(ee,\"isAxiosError\",{value:!0}),Q.from=(e,t,r,n,o,i)=>{let a=Object.create(ee);return J.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>\"isAxiosError\"!==e),Q.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var er=r(9109).Buffer;function en(e){return J.isPlainObject(e)||J.isArray(e)}function eo(e){return J.endsWith(e,\"[]\")?e.slice(0,-2):e}function ei(e,t,r){return e?e.concat(t).map(function(e,t){return e=eo(e),!r&&t?\"[\"+e+\"]\":e}).join(r?\".\":\"\"):t}let ea=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});var es=function(e,t,r){if(!J.isObject(e))throw TypeError(\"target must be an object\");t=t||new FormData;let n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||\"undefined\"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw TypeError(\"visitor must be a function\");function l(e){if(null===e)return\"\";if(J.isDate(e))return e.toISOString();if(!s&&J.isBlob(e))throw new Q(\"Blob is not supported. Use a Buffer instead.\");return J.isArrayBuffer(e)||J.isTypedArray(e)?s&&\"function\"==typeof Blob?new Blob([e]):er.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&\"object\"==typeof e){if(J.endsWith(r,\"{}\"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(J.isArray(e)&&(u=e,J.isArray(u)&&!u.some(en))||(J.isFileList(e)||J.endsWith(r,\"[]\"))&&(s=J.toArray(e)))return r=eo(r),s.forEach(function(e,n){J.isUndefined(e)||null===e||t.append(!0===a?ei([r],n,i):null===a?r:r+\"[]\",l(e))}),!1}}return!!en(e)||(t.append(ei(o,r,i),l(e)),!1)}let c=[],d=Object.assign(ea,{defaultVisitor:u,convertValue:l,isVisitable:en});if(!J.isObject(e))throw TypeError(\"data must be an object\");return!function e(r,n){if(!J.isUndefined(r)){if(-1!==c.indexOf(r))throw Error(\"Circular reference detected in \"+n.join(\".\"));c.push(r),J.forEach(r,function(r,i){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t};function el(e){let t={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\",\"%00\":\"\\0\"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eu(e,t){this._pairs=[],e&&es(e,this,t)}let ec=eu.prototype;function ed(e){return encodeURIComponent(e).replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}function ef(e,t,r){let n;if(!t)return e;let o=r&&r.encode||ed,i=r&&r.serialize;if(n=i?i(t,r):J.isURLSearchParams(t)?t.toString():new eu(t,r).toString(o)){let t=e.indexOf(\"#\");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf(\"?\")?\"?\":\"&\")+n}return e}ec.append=function(e,t){this._pairs.push([e,t])},ec.toString=function(e){let t=e?function(t){return e.call(this,t,el)}:el;return this._pairs.map(function(e){return t(e[0])+\"=\"+t(e[1])},\"\").join(\"&\")};class ep{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},em=\"undefined\"!=typeof URLSearchParams?URLSearchParams:eu,ey=\"undefined\"!=typeof FormData?FormData:null,eg=\"undefined\"!=typeof Blob?Blob:null;let ev=\"undefined\"!=typeof window&&\"undefined\"!=typeof document,eb=(i=\"undefined\"!=typeof navigator&&navigator.product,ev&&0>[\"ReactNative\",\"NativeScript\",\"NS\"].indexOf(i)),ew=\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&\"function\"==typeof self.importScripts,ex=ev&&window.location.href||\"http://localhost\";var eS={...f,isBrowser:!0,classes:{URLSearchParams:em,FormData:ey,Blob:eg},protocols:[\"http\",\"https\",\"file\",\"blob\",\"url\",\"data\"]},eP=function(e){if(J.isFormData(e)&&J.isFunction(e.entries)){let t={};return J.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++];if(\"__proto__\"===i)return!0;let a=Number.isFinite(+i),s=o>=t.length;return(i=!i&&J.isArray(n)?n.length:i,s)?J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r:(n[i]&&J.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&J.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!a}(J.matchAll(/\\w+|\\[(\\w*)]/g,e).map(e=>\"[]\"===e[0]?\"\":e[1]||e[0]),r,t,0)}),t}return null};let eE={transitional:eh,adapter:[\"xhr\",\"http\",\"fetch\"],transformRequest:[function(e,t){let r;let n=t.getContentType()||\"\",o=n.indexOf(\"application/json\")>-1,i=J.isObject(e);if(i&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return o?JSON.stringify(eP(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType(\"application/x-www-form-urlencoded;charset=utf-8\",!1),e.toString();if(i){if(n.indexOf(\"application/x-www-form-urlencoded\")>-1){var a,s;return(a=e,s=this.formSerializer,es(a,new eS.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return eS.isNode&&J.isBuffer(e)?(this.append(t,e.toString(\"base64\")),!1):n.defaultVisitor.apply(this,arguments)}},s))).toString()}if((r=J.isFileList(e))||n.indexOf(\"multipart/form-data\")>-1){let t=this.env&&this.env.FormData;return es(r?{\"files[]\":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType(\"application/json\",!1),function(e,t,r){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if(\"SyntaxError\"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eE.transitional,r=t&&t.forcedJSONParsing,n=\"json\"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if(\"SyntaxError\"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:\"XSRF-TOKEN\",xsrfHeaderName:\"X-XSRF-TOKEN\",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eS.classes.FormData,Blob:eS.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:\"application/json, text/plain, */*\",\"Content-Type\":void 0}}};J.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\"],e=>{eE.headers[e]={}});let eA=J.toObjectSet([\"age\",\"authorization\",\"content-length\",\"content-type\",\"etag\",\"expires\",\"from\",\"host\",\"if-modified-since\",\"if-unmodified-since\",\"last-modified\",\"location\",\"max-forwards\",\"proxy-authorization\",\"referer\",\"retry-after\",\"user-agent\"]);var eR=e=>{let t,r,n;let o={};return e&&e.split(\"\\n\").forEach(function(e){n=e.indexOf(\":\"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&eA[t]||(\"set-cookie\"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+\", \"+r:r)}),o};let ej=Symbol(\"internals\");function eC(e){return e&&String(e).trim().toLowerCase()}function eO(e){return!1===e||null==e?e:J.isArray(e)?e.map(eO):String(e)}let eT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eM(e,t,r,n,o){if(J.isFunction(n))return n.call(this,t,r);if(o&&(t=r),J.isString(t)){if(J.isString(n))return -1!==t.indexOf(n);if(J.isRegExp(n))return n.test(t)}}class ek{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=eC(t);if(!o)throw Error(\"header name must be a non-empty string\");let i=J.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=eO(e))}let i=(e,t)=>J.forEach(e,(e,r)=>o(e,r,t));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!eT(e))i(eR(e),t);else if(J.isHeaders(e))for(let[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=eC(e)){let r=J.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw TypeError(\"parser must be boolean|regexp|function\")}}}has(e,t){if(e=eC(e)){let r=J.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eM(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=eC(e)){let o=J.findKey(r,e);o&&(!t||eM(r,r[o],o,t))&&(delete r[o],n=!0)}}return J.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||eM(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return J.forEach(this,(n,o)=>{let i=J.findKey(r,o);if(i){t[i]=eO(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\\d])(\\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=eO(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return J.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(\", \"):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+\": \"+t).join(\"\\n\")}get[Symbol.toStringTag](){return\"AxiosHeaders\"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ej]=this[ej]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eC(e);t[n]||(!function(e,t){let r=J.toCamelCase(\" \"+t);[\"get\",\"set\",\"has\"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}function eD(e,t){let r=this||eE,n=t||r,o=ek.from(n.headers),i=n.data;return J.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eN(e){return!!(e&&e.__CANCEL__)}function eL(e,t,r){Q.call(this,null==e?\"canceled\":e,Q.ERR_CANCELED,t,r),this.name=\"CanceledError\"}function eI(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Q(\"Request failed with status code \"+r.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}ek.accessor([\"Content-Type\",\"Content-Length\",\"Accept\",\"Accept-Encoding\",\"User-Agent\",\"Authorization\"]),J.reduceDescriptors(ek.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),J.freezeMethods(ek),J.inherits(eL,Q,{__CANCEL__:!0});var eF=function(e,t){let r;let n=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=o[a];r||(r=l),n[i]=s,o[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},e_=function(e,t){let r,n,o=0,i=1e3/t,a=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]};let eV=(e,t,r=3)=>{let n=0,o=eF(50,250);return e_(r=>{let i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,l=o(s);n=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:r,lengthComputable:null!=a,[t?\"download\":\"upload\"]:!0})},r)},ez=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eB=e=>(...t)=>J.asap(()=>e(...t));var eW=eS.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement(\"a\");function n(e){let n=e;return t&&(r.setAttribute(\"href\",n),n=r.href),r.setAttribute(\"href\",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,\"\"):\"\",host:r.host,search:r.search?r.search.replace(/^\\?/,\"\"):\"\",hash:r.hash?r.hash.replace(/^#/,\"\"):\"\",hostname:r.hostname,port:r.port,pathname:\"/\"===r.pathname.charAt(0)?r.pathname:\"/\"+r.pathname}}return e=n(window.location.href),function(t){let r=J.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},eU=eS.hasStandardBrowserEnv?{write(e,t,r,n,o,i){let a=[e+\"=\"+encodeURIComponent(t)];J.isNumber(r)&&a.push(\"expires=\"+new Date(r).toGMTString()),J.isString(n)&&a.push(\"path=\"+n),J.isString(o)&&a.push(\"domain=\"+o),!0===i&&a.push(\"secure\"),document.cookie=a.join(\"; \")},read(e){let t=document.cookie.match(RegExp(\"(^|;\\\\s*)(\"+e+\")=([^;]*)\"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,\"\",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function e$(e,t){return e&&!/^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(t)?t?e.replace(/\\/?\\/$/,\"\")+\"/\"+t.replace(/^\\/+/,\"\"):e:t}let eH=e=>e instanceof ek?{...e}:e;function eK(e,t){t=t||{};let r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function a(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eH(e),eH(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(n){let i=l[n]||o,a=i(e[n],t[n],n);J.isUndefined(a)&&i!==s||(r[n]=a)}),r}var eq=e=>{let t;let r=eK({},e),{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=r;if(r.headers=s=ek.from(s),r.url=ef(e$(r.baseURL,r.url),e.params,e.paramsSerializer),l&&s.set(\"Authorization\",\"Basic \"+btoa((l.username||\"\")+\":\"+(l.password?unescape(encodeURIComponent(l.password)):\"\"))),J.isFormData(n)){if(eS.hasStandardBrowserEnv||eS.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...r]=t?t.split(\";\").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||\"multipart/form-data\",...r].join(\"; \"))}}if(eS.hasStandardBrowserEnv&&(o&&J.isFunction(o)&&(o=o(r)),o||!1!==o&&eW(r.url))){let e=i&&a&&eU.read(a);e&&s.set(i,e)}return r},eG=\"undefined\"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,o,i,a,s;let l=eq(e),u=l.data,c=ek.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l;function h(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener(\"abort\",n)}let m=new XMLHttpRequest;function y(){if(!m)return;let n=ek.from(\"getAllResponseHeaders\"in m&&m.getAllResponseHeaders());eI(function(e){t(e),h()},function(e){r(e),h()},{data:d&&\"text\"!==d&&\"json\"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,\"onloadend\"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf(\"file:\"))&&setTimeout(y)},m.onabort=function(){m&&(r(new Q(\"Request aborted\",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Q(\"Network Error\",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?\"timeout of \"+l.timeout+\"ms exceeded\":\"timeout exceeded\",n=l.transitional||eh;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new Q(t,n.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),\"setRequestHeader\"in m&&J.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),J.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&\"json\"!==d&&(m.responseType=l.responseType),p&&([i,s]=eV(p,!0),m.addEventListener(\"progress\",i)),f&&m.upload&&([o,a]=eV(f),m.upload.addEventListener(\"progress\",o),m.upload.addEventListener(\"loadend\",a)),(l.cancelToken||l.signal)&&(n=t=>{m&&(r(!t||t.type?new eL(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener(\"abort\",n)));let g=function(e){let t=/^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(e);return t&&t[1]||\"\"}(l.url);if(g&&-1===eS.protocols.indexOf(g)){r(new Q(\"Unsupported protocol \"+g+\":\",Q.ERR_BAD_REQUEST,e));return}m.send(u||null)})},eZ=(e,t)=>{let r,n=new AbortController,o=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Q?t:new eL(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener(\"abort\",o):e.unsubscribe(o))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener(\"abort\",o));let{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]};let eX=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},eY=async function*(e,t,r){for await(let n of e)yield*eX(ArrayBuffer.isView(n)?n:await r(String(n)),t)},eJ=(e,t,r,n,o)=>{let i;let a=eY(e,t,o),s=0,l=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await a.next();if(t){l(),e.close();return}let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw l(e),e}},cancel:e=>(l(e),a.return())},{highWaterMark:2})},eQ=\"function\"==typeof fetch&&\"function\"==typeof Request&&\"function\"==typeof Response,e0=eQ&&\"function\"==typeof ReadableStream,e1=eQ&&(\"function\"==typeof TextEncoder?(a=new TextEncoder,e=>a.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e2=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e0&&e2(()=>{let e=!1,t=new Request(eS.origin,{body:new ReadableStream,method:\"POST\",get duplex(){return e=!0,\"half\"}}).headers.has(\"Content-Type\");return e&&!t}),e5=e0&&e2(()=>J.isReadableStream(new Response(\"\").body)),e4={stream:e5&&(e=>e.body)};eQ&&(d=new Response,[\"text\",\"arrayBuffer\",\"blob\",\"formData\",\"stream\"].forEach(e=>{e4[e]||(e4[e]=J.isFunction(d[e])?t=>t[e]():(t,r)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,r)})}));let e8=async e=>null==e?0:J.isBlob(e)?e.size:J.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=\"\"),J.isString(e))?(await e1(e)).byteLength:void 0,e6=async(e,t)=>{let r=J.toFiniteNumber(e.getContentLength());return null==r?e8(t):r},e9={http:null,xhr:eG,fetch:eQ&&(async e=>{let t,r,n,{url:o,method:i,data:a,signal:s,cancelToken:l,timeout:u,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:h=\"same-origin\",fetchOptions:m}=eq(e);f=f?(f+\"\").toLowerCase():\"text\";let[y,g]=s||l||u?eZ([s,l],u):[],v=()=>{t||setTimeout(()=>{y&&y.unsubscribe()}),t=!0};try{if(d&&e3&&\"get\"!==i&&\"head\"!==i&&0!==(n=await e6(p,a))){let e,t=new Request(o,{method:\"POST\",body:a,duplex:\"half\"});if(J.isFormData(a)&&(e=t.headers.get(\"content-type\"))&&p.setContentType(e),t.body){let[e,r]=ez(n,eV(eB(d)));a=eJ(t.body,65536,e,r,e1)}}J.isString(h)||(h=h?\"include\":\"omit\"),r=new Request(o,{...m,signal:y,method:i.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:\"half\",credentials:h});let t=await fetch(r),s=e5&&(\"stream\"===f||\"response\"===f);if(e5&&(c||s)){let e={};[\"status\",\"statusText\",\"headers\"].forEach(r=>{e[r]=t[r]});let r=J.toFiniteNumber(t.headers.get(\"content-length\")),[n,o]=c&&ez(r,eV(eB(c),!0))||[];t=new Response(eJ(t.body,65536,n,()=>{o&&o(),s&&v()},e1),e)}f=f||\"text\";let l=await e4[J.findKey(e4,f)||\"text\"](t,e);return s||v(),g&&g(),await new Promise((n,o)=>{eI(n,o,{data:l,headers:ek.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(v(),t&&\"TypeError\"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Q(\"Network Error\",Q.ERR_NETWORK,e,r),{cause:t.cause||t});throw Q.from(t,t&&t.code,e,r)}})};J.forEach(e9,(e,t)=>{if(e){try{Object.defineProperty(e,\"name\",{value:t})}catch(e){}Object.defineProperty(e,\"adapterName\",{value:t})}});let e7=e=>`- ${e}`,te=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{let t,r;let{length:n}=e=J.isArray(e)?e:[e],o={};for(let i=0;i<n;i++){let n;if(r=t=e[i],!te(t)&&void 0===(r=e9[(n=String(t)).toLowerCase()]))throw new Q(`Unknown adapter '${n}'`);if(r)break;o[n||\"#\"+i]=r}if(!r){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?\"is not supported by the environment\":\"is not available in the build\"));throw new Q(\"There is no suitable adapter to dispatch the request \"+(n?e.length>1?\"since :\\n\"+e.map(e7).join(\"\\n\"):\" \"+e7(e[0]):\"as no adapter specified\"),\"ERR_NOT_SUPPORT\")}return r};function tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function tn(e){return tr(e),e.headers=ek.from(e.headers),e.data=eD.call(e,e.transformRequest),-1!==[\"post\",\"put\",\"patch\"].indexOf(e.method)&&e.headers.setContentType(\"application/x-www-form-urlencoded\",!1),tt(e.adapter||eE.adapter)(e).then(function(t){return tr(e),t.data=eD.call(e,e.transformResponse,t),t.headers=ek.from(t.headers),t},function(t){return!eN(t)&&(tr(e),t&&t.response&&(t.response.data=eD.call(e,e.transformResponse,t.response),t.response.headers=ek.from(t.response.headers))),Promise.reject(t)})}let to=\"1.7.3\",ti={};[\"object\",\"boolean\",\"number\",\"function\",\"string\",\"symbol\"].forEach((e,t)=>{ti[e]=function(r){return typeof r===e||\"a\"+(t<1?\"n \":\" \")+e}});let ta={};ti.transitional=function(e,t,r){function n(e,t){return\"[Axios v\"+to+\"] Transitional option '\"+e+\"'\"+t+(r?\". \"+r:\"\")}return(r,o,i)=>{if(!1===e)throw new Q(n(o,\" has been removed\"+(t?\" in \"+t:\"\")),Q.ERR_DEPRECATED);return t&&!ta[o]&&(ta[o]=!0,console.warn(n(o,\" has been deprecated since v\"+t+\" and will be removed in the near future\"))),!e||e(r,o,i)}};var ts={assertOptions:function(e,t,r){if(\"object\"!=typeof e)throw new Q(\"options must be an object\",Q.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new Q(\"option \"+i+\" must be \"+r,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Q(\"Unknown option \"+i,Q.ERR_BAD_OPTION)}},validators:ti};let tl=ts.validators;class tu{constructor(e){this.defaults=e,this.interceptors={request:new ep,response:new ep}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\\n/,\"\"):\"\";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\\n.+\\n/,\"\"))&&(e.stack+=\"\\n\"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;\"string\"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:a}=t=eK(this.defaults,t);void 0!==o&&ts.assertOptions(o,{silentJSONParsing:tl.transitional(tl.boolean),forcedJSONParsing:tl.transitional(tl.boolean),clarifyTimeoutError:tl.transitional(tl.boolean)},!1),null!=i&&(J.isFunction(i)?t.paramsSerializer={serialize:i}:ts.assertOptions(i,{encode:tl.function,serialize:tl.function},!0)),t.method=(t.method||this.defaults.method||\"get\").toLowerCase();let s=a&&J.merge(a.common,a[t.method]);a&&J.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\",\"common\"],e=>{delete a[e]}),t.headers=ek.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){(\"function\"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tn.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(d=0;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=tn.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return ef(e$((e=eK(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach([\"delete\",\"get\",\"head\",\"options\"],function(e){tu.prototype[e]=function(t,r){return this.request(eK(r||{},{method:e,url:t,data:(r||{}).data}))}}),J.forEach([\"post\",\"put\",\"patch\"],function(e){function t(t){return function(r,n,o){return this.request(eK(o||{},{method:e,headers:t?{\"Content-Type\":\"multipart/form-data\"}:{},url:r,data:n}))}}tu.prototype[e]=t(),tu.prototype[e+\"Form\"]=t(!0)});class tc{constructor(e){let t;if(\"function\"!=typeof e)throw TypeError(\"executor must be a function.\");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new eL(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new tc(function(t){e=t}),cancel:e}}}let td={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(td).forEach(([e,t])=>{td[t]=e});let tf=function e(t){let r=new tu(t),n=p(tu.prototype.request,r);return J.extend(n,tu.prototype,r,{allOwnKeys:!0}),J.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eK(t,r))},n}(eE);tf.Axios=tu,tf.CanceledError=eL,tf.CancelToken=tc,tf.isCancel=eN,tf.VERSION=to,tf.toFormData=es,tf.AxiosError=Q,tf.Cancel=tf.CanceledError,tf.all=function(e){return Promise.all(e)},tf.spread=function(e){return function(t){return e.apply(null,t)}},tf.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},tf.mergeConfig=eK,tf.AxiosHeaders=ek,tf.formToJSON=e=>eP(J.isHTMLForm(e)?new FormData(e):e),tf.getAdapter=tt,tf.HttpStatusCode=td,tf.default=tf;var tp=tf},12218:function(e,t,r){\"use strict\";r.d(t,{j:function(){return i}});let n=e=>\"boolean\"==typeof e?\"\".concat(e):0===e?\"0\":e,o=function(){for(var e,t,r=0,n=\"\";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o=\"\";if(\"string\"==typeof t||\"number\"==typeof t)o+=t;else if(\"object\"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=\" \"),o+=n);else for(r in t)t[r]&&(o&&(o+=\" \"),o+=r)}return o}(e))&&(n&&(n+=\" \"),n+=t);return n},i=(e,t)=>r=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],o=null==s?void 0:s[e];if(null===t)return null;let i=n(t)||n(o);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,l,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},44839:function(e,t,r){\"use strict\";function n(){for(var e,t,r=0,n=\"\",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o=\"\";if(\"string\"==typeof t||\"number\"==typeof t)o+=t;else if(\"object\"==typeof t){if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=\" \"),o+=n)}else for(n in t)t[n]&&(o&&(o+=\" \"),o+=n)}return o}(e))&&(n&&(n+=\" \"),n+=t);return n}r.d(t,{W:function(){return n}})},34446:function(e,t,r){\"use strict\";r.d(t,{M:function(){return g}});var n=r(57437),o=r(2265),i=r(67797),a=r(30458),s=r(29791);class l extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t}){let r=(0,o.useId)(),i=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,o.useContext)(s._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:n,top:o,left:s}=a.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let l=document.createElement(\"style\");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id=\"${r}\"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${n}px !important;\n            top: ${o}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}},[t]),(0,n.jsx)(l,{isPresent:t,childRef:i,sizeRef:a,children:o.cloneElement(e,{ref:i})})}let c=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:f})=>{let p=(0,a.h)(d),h=(0,o.useId)(),m=(0,o.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:l,onExitComplete:e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;s&&s()},register:e=>(p.set(e,!1),()=>p.delete(e))}),c?[Math.random()]:[r]);return(0,o.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),o.useEffect(()=>{r||p.size||!s||s()},[r]),\"popLayout\"===f&&(e=(0,n.jsx)(u,{isPresent:r,children:e})),(0,n.jsx)(i.O.Provider,{value:m,children:e})};function d(){return new Map}var f=r(5050),p=r(19047);let h=e=>e.key||\"\";function m(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var y=r(9033);let g=({children:e,exitBeforeEnter:t,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u=\"sync\"})=>{(0,p.k)(!t,\"Replace exitBeforeEnter with mode='wait'\");let d=(0,o.useMemo)(()=>m(e),[e]),g=d.map(h),v=(0,o.useRef)(!0),b=(0,o.useRef)(d),w=(0,a.h)(()=>new Map),[x,S]=(0,o.useState)(d),[P,E]=(0,o.useState)(d);(0,y.L)(()=>{v.current=!1,b.current=d;for(let e=0;e<P.length;e++){let t=h(P[e]);g.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[P,g.length,g.join(\"-\")]);let A=[];if(d!==x){let e=[...d];for(let t=0;t<P.length;t++){let r=P[t],n=h(r);g.includes(n)||(e.splice(t,0,r),A.push(r))}\"wait\"===u&&A.length&&(e=A),E(m(e)),S(d);return}let{forceRender:R}=(0,o.useContext)(f.p);return(0,n.jsx)(n.Fragment,{children:P.map(e=>{let t=h(e),o=d===P||g.includes(t);return(0,n.jsx)(c,{isPresent:o,initial:(!v.current||!!i)&&void 0,custom:o?void 0:r,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==R||R(),E(b.current),s&&s())},children:e},t)})})}},5050:function(e,t,r){\"use strict\";r.d(t,{p:function(){return n}});let n=(0,r(2265).createContext)({})},29791:function(e,t,r){\"use strict\";r.d(t,{_:function(){return n}});let n=(0,r(2265).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:\"never\"})},67797:function(e,t,r){\"use strict\";r.d(t,{O:function(){return n}});let n=(0,r(2265).createContext)(null)},2981:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(565);let o=[\"read\",\"resolveKeyframes\",\"update\",\"preRender\",\"render\",\"postRender\"];function i(e,t){let r=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,l=o.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1,i=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,o=!1,a=!1)=>{let s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{if(a=e,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(s),n=!1,o&&(o=!1,l.process(e))}};return l}(s),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:h}=l,m=()=>{let o=n.c.useManualTiming?a.timestamp:performance.now();r=!1,a.delta=i?1e3/60:Math.max(Math.min(o-a.timestamp,40),1),a.timestamp=o,a.isProcessing=!0,u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),h.process(a),a.isProcessing=!1,r&&t&&(i=!1,e(m))},y=()=>{r=!0,i=!0,a.isProcessing||e(m)};return{schedule:o.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,o=!1)=>(r||y(),n.schedule(e,t,o)),e},{}),cancel:e=>{for(let t=0;t<o.length;t++)l[o[t]].cancel(e)},state:a,steps:l}}},86219:function(e,t,r){\"use strict\";r.d(t,{Pn:function(){return i},S6:function(){return s},Wi:function(){return o},frameData:function(){return a}});var n=r(69276);let{schedule:o,cancel:i,state:a,steps:s}=(0,r(2981).Z)(\"undefined\"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},59993:function(e,t,r){\"use strict\";let n;r.d(t,{X:function(){return s}});var o=r(565),i=r(86219);function a(){n=void 0}let s={now:()=>(void 0===n&&s.set(i.frameData.isProcessing||o.c.useManualTiming?i.frameData.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(a)}}},98141:function(e,t,r){\"use strict\";r.d(t,{E:function(){return ob}});var n,o=r(57437),i=r(2265),a=r(29791);let s=(0,i.createContext)({});var l=r(67797),u=r(9033);let c=(0,i.createContext)({strict:!1}),d=e=>e.replace(/([a-z])([A-Z])/gu,\"$1-$2\").toLowerCase(),f=\"data-\"+d(\"framerAppearId\"),{schedule:p,cancel:h}=(0,r(2981).Z)(queueMicrotask,!1);function m(e){return e&&\"object\"==typeof e&&Object.prototype.hasOwnProperty.call(e,\"current\")}let y=(0,i.createContext)({}),g=!1;function v(){window.HandoffComplete=!0}function b(e){return\"string\"==typeof e||Array.isArray(e)}function w(e){return null!==e&&\"object\"==typeof e&&\"function\"==typeof e.start}let x=[\"animate\",\"whileInView\",\"whileFocus\",\"whileHover\",\"whileTap\",\"whileDrag\",\"exit\"],S=[\"initial\",...x];function P(e){return w(e.animate)||S.some(t=>b(e[t]))}function E(e){return!!(P(e)||e.variants)}function A(e){return Array.isArray(e)?e.join(\" \"):e}let R={animation:[\"animate\",\"variants\",\"whileHover\",\"whileTap\",\"exit\",\"whileInView\",\"whileFocus\",\"whileDrag\"],exit:[\"exit\"],drag:[\"drag\",\"dragControls\"],focus:[\"whileFocus\"],hover:[\"whileHover\",\"onHoverStart\",\"onHoverEnd\"],tap:[\"whileTap\",\"onTap\",\"onTapStart\",\"onTapCancel\"],pan:[\"onPan\",\"onPanStart\",\"onPanSessionStart\",\"onPanEnd\"],inView:[\"whileInView\",\"onViewportEnter\",\"onViewportLeave\"],layout:[\"layout\",\"layoutId\"]},j={};for(let e in R)j[e]={isEnabled:t=>R[e].some(e=>!!t[e])};var C=r(77282),O=r(5050);let T=Symbol.for(\"motionComponentSymbol\"),M=[\"animate\",\"circle\",\"defs\",\"desc\",\"ellipse\",\"g\",\"image\",\"line\",\"filter\",\"marker\",\"mask\",\"metadata\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"rect\",\"stop\",\"switch\",\"symbol\",\"svg\",\"text\",\"tspan\",\"use\",\"view\"];function k(e){if(\"string\"!=typeof e||e.includes(\"-\"));else if(M.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let D={},N=[\"transformPerspective\",\"x\",\"y\",\"z\",\"translateX\",\"translateY\",\"translateZ\",\"scale\",\"scaleX\",\"scaleY\",\"rotate\",\"rotateX\",\"rotateY\",\"rotateZ\",\"skew\",\"skewX\",\"skewY\"],L=new Set(N);function I(e,{layout:t,layoutId:r}){return L.has(e)||e.startsWith(\"origin\")||(t||void 0!==r)&&(!!D[e]||\"opacity\"===e)}let F=e=>!!(e&&e.getVelocity),_=(e,t)=>t&&\"number\"==typeof e?t.transform(e):e;var V=r(40783),z=r(75480);let B={...V.Rx,transform:Math.round},W={borderWidth:z.px,borderTopWidth:z.px,borderRightWidth:z.px,borderBottomWidth:z.px,borderLeftWidth:z.px,borderRadius:z.px,radius:z.px,borderTopLeftRadius:z.px,borderTopRightRadius:z.px,borderBottomRightRadius:z.px,borderBottomLeftRadius:z.px,width:z.px,maxWidth:z.px,height:z.px,maxHeight:z.px,size:z.px,top:z.px,right:z.px,bottom:z.px,left:z.px,padding:z.px,paddingTop:z.px,paddingRight:z.px,paddingBottom:z.px,paddingLeft:z.px,margin:z.px,marginTop:z.px,marginRight:z.px,marginBottom:z.px,marginLeft:z.px,rotate:z.RW,rotateX:z.RW,rotateY:z.RW,rotateZ:z.RW,scale:V.bA,scaleX:V.bA,scaleY:V.bA,scaleZ:V.bA,skew:z.RW,skewX:z.RW,skewY:z.RW,distance:z.px,translateX:z.px,translateY:z.px,translateZ:z.px,x:z.px,y:z.px,z:z.px,perspective:z.px,transformPerspective:z.px,opacity:V.Fq,originX:z.$C,originY:z.$C,originZ:z.px,zIndex:B,backgroundPositionX:z.px,backgroundPositionY:z.px,fillOpacity:V.Fq,strokeOpacity:V.Fq,numOctaves:B},U={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"},$=N.length;var H=r(61534);function K(e,t,r){let{style:n,vars:o,transformOrigin:i}=e,a=!1,s=!1;for(let e in t){let r=t[e];if(L.has(e)){a=!0;continue}if((0,H.f)(e)){o[e]=r;continue}{let t=_(r,W[e]);e.startsWith(\"origin\")?(s=!0,i[e]=t):n[e]=t}}if(!t.transform&&(a||r?n.transform=function(e,t,r){let n=\"\",o=!0;for(let i=0;i<$;i++){let a=N[i],s=e[a];if(void 0===s)continue;let l=!0;if(!(l=\"number\"==typeof s?s===(a.startsWith(\"scale\")?1:0):0===parseFloat(s))||r){let e=_(s,W[a]);if(!l){o=!1;let t=U[a]||a;n+=`${t}(${e}) `}r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,o?\"\":n):o&&(n=\"none\"),n}(t,e.transform,r):n.transform&&(n.transform=\"none\")),s){let{originX:e=\"50%\",originY:t=\"50%\",originZ:r=0}=i;n.transformOrigin=`${e} ${t} ${r}`}}let q=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function G(e,t,r){for(let n in t)F(t[n])||I(n,r)||(e[n]=t[n])}let Z=new Set([\"animate\",\"exit\",\"variants\",\"initial\",\"style\",\"values\",\"variants\",\"transition\",\"transformTemplate\",\"custom\",\"inherit\",\"onBeforeLayoutMeasure\",\"onAnimationStart\",\"onAnimationComplete\",\"onUpdate\",\"onDragStart\",\"onDrag\",\"onDragEnd\",\"onMeasureDragConstraints\",\"onDirectionLock\",\"onDragTransitionEnd\",\"_dragX\",\"_dragY\",\"onHoverStart\",\"onHoverEnd\",\"onViewportEnter\",\"onViewportLeave\",\"globalTapTarget\",\"ignoreStrict\",\"viewport\"]);function X(e){return e.startsWith(\"while\")||e.startsWith(\"drag\")&&\"draggable\"!==e||e.startsWith(\"layout\")||e.startsWith(\"onTap\")||e.startsWith(\"onPan\")||e.startsWith(\"onLayout\")||Z.has(e)}let Y=e=>!X(e);try{(n=require(\"@emotion/is-prop-valid\").default)&&(Y=e=>e.startsWith(\"on\")?!X(e):n(e))}catch(e){}function J(e,t,r){return\"string\"==typeof e?e:z.px.transform(t+r*e)}let Q={offset:\"stroke-dashoffset\",array:\"stroke-dasharray\"},ee={offset:\"strokeDashoffset\",array:\"strokeDasharray\"};function et(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(K(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,r){let n=J(t,e.x,e.width),o=J(r,e.y,e.height);return`${n} ${o}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?Q:ee;e[i.offset]=z.px.transform(-n);let a=z.px.transform(t),s=z.px.transform(r);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}let er=()=>({...q(),attrs:{}}),en=e=>\"string\"==typeof e&&\"svg\"===e.toLowerCase();function eo(e,{style:t,vars:r},n,o){for(let i in Object.assign(e.style,t,o&&o.getProjectionStyles(n)),r)e.style.setProperty(i,r[i])}let ei=new Set([\"baseFrequency\",\"diffuseConstant\",\"kernelMatrix\",\"kernelUnitLength\",\"keySplines\",\"keyTimes\",\"limitingConeAngle\",\"markerHeight\",\"markerWidth\",\"numOctaves\",\"targetX\",\"targetY\",\"surfaceScale\",\"specularConstant\",\"specularExponent\",\"stdDeviation\",\"tableValues\",\"viewBox\",\"gradientTransform\",\"pathLength\",\"startOffset\",\"textLength\",\"lengthAdjust\"]);function ea(e,t,r,n){for(let r in eo(e,t,void 0,n),t.attrs)e.setAttribute(ei.has(r)?r:d(r),t.attrs[r])}function es(e,t,r){var n;let{style:o}=e,i={};for(let a in o)(F(o[a])||t.style&&F(t.style[a])||I(a,e)||(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle)!==void 0)&&(i[a]=o[a]);return r&&o&&\"string\"==typeof o.willChange&&(r.applyWillChange=!1),i}function el(e,t,r){let n=es(e,t,r);for(let r in e)(F(e[r])||F(t[r]))&&(n[-1!==N.indexOf(r)?\"attr\"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eu(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function ec(e,t,r,n){if(\"function\"==typeof t){let[o,i]=eu(n);t=t(void 0!==r?r:e.custom,o,i)}if(\"string\"==typeof t&&(t=e.variants&&e.variants[t]),\"function\"==typeof t){let[o,i]=eu(n);t=t(void 0!==r?r:e.custom,o,i)}return t}var ed=r(30458);let ef=e=>Array.isArray(e),ep=e=>!!(e&&\"object\"==typeof e&&e.mix&&e.toValue),eh=e=>ef(e)?e[e.length-1]||0:e;function em(e){let t=F(e)?e.get():e;return ep(t)?t.toValue():t}let ey=new Set([\"opacity\",\"clipPath\",\"filter\",\"transform\"]);function eg(e){return L.has(e)?\"transform\":ey.has(e)?d(e):void 0}var ev=r(28746);let eb=e=>(t,r)=>{let n=(0,i.useContext)(s),o=(0,i.useContext)(l.O),a=()=>(function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},o,i,a,s){let l={latestValues:function(e,t,r,n,o){var i;let a={},s=[],l=n&&(null===(i=e.style)||void 0===i?void 0:i.willChange)===void 0,u=o(e,{});for(let e in u)a[e]=em(u[e]);let{initial:c,animate:d}=e,f=P(e),p=E(e);t&&p&&!f&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===d&&(d=t.animate));let h=!!r&&!1===r.initial,m=(h=h||!1===c)?d:c;return m&&\"boolean\"!=typeof m&&!w(m)&&ew(e,m,(e,t)=>{for(let t in e){let r=e[t];if(Array.isArray(r)){let e=h?r.length-1:0;r=r[e]}null!==r&&(a[t]=r)}for(let e in t)a[e]=t[e]}),l&&(d&&!1!==c&&!w(d)&&ew(e,d,e=>{for(let t in e)!function(e,t){let r=eg(t);r&&(0,ev.y4)(e,r)}(s,t)}),s.length&&(a.willChange=s.join(\",\"))),a}(o,i,a,!s&&e,t),renderState:r()};return n&&(l.mount=e=>n(o,e,l)),l})(e,t,n,o,r);return r?a():(0,ed.h)(a)};function ew(e,t,r){let n=Array.isArray(t)?t:[t];for(let t=0;t<n.length;t++){let o=ec(e,n[t]);if(o){let{transitionEnd:e,transition:t,...n}=o;r(n,e)}}}var ex=r(86219);let eS={useVisualState:eb({scrapeMotionValuesFromProps:el,createRenderState:er,onMount:(e,t,{renderState:r,latestValues:n})=>{ex.Wi.read(()=>{try{r.dimensions=\"function\"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),ex.Wi.render(()=>{et(r,n,en(t.tagName),e.transformTemplate),ea(t,r)})}})},eP={useVisualState:eb({applyWillChange:!0,scrapeMotionValuesFromProps:es,createRenderState:q})};function eE(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let eA=e=>\"mouse\"===e.pointerType?\"number\"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eR(e,t=\"page\"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let ej=e=>t=>eA(t)&&e(t,eR(t));function eC(e,t,r,n){return eE(e,t,ej(r),n)}var eO=r(89654);function eT(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eM=eT(\"dragHorizontal\"),ek=eT(\"dragVertical\");function eD(e){let t=!1;if(\"y\"===e)t=ek();else if(\"x\"===e)t=eM();else{let e=eM(),r=ek();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function eN(){let e=eD(!0);return!e||(e(),!1)}class eL{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eI(e,t){let r=t?\"onHoverStart\":\"onHoverEnd\";return eC(e.current,t?\"pointerenter\":\"pointerleave\",(n,o)=>{if(\"touch\"===n.pointerType||eN())return;let i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive(\"whileHover\",t);let a=i[r];a&&ex.Wi.postRender(()=>a(n,o))},{passive:!e.getProps()[r]})}class eF extends eL{mount(){this.unmount=(0,eO.z)(eI(this.node,!0),eI(this.node,!1))}unmount(){}}class e_ extends eL{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(\":focus-visible\")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(\"whileFocus\",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(\"whileFocus\",!1),this.isActive=!1)}mount(){this.unmount=(0,eO.z)(eE(this.node.current,\"focus\",()=>this.onFocus()),eE(this.node.current,\"blur\",()=>this.onBlur()))}unmount(){}}let eV=(e,t)=>!!t&&(e===t||eV(e,t.parentElement));var ez=r(69276);function eB(e,t){if(!t)return;let r=new PointerEvent(\"pointer\"+e);t(r,eR(r))}class eW extends eL{constructor(){super(...arguments),this.removeStartListeners=ez.Z,this.removeEndListeners=ez.Z,this.removeAccessibleListeners=ez.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=eC(window,\"pointerup\",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:o}=this.node.getProps(),i=o||eV(this.node.current,e.target)?r:n;i&&ex.Wi.update(()=>i(e,t))},{passive:!(r.onTap||r.onPointerUp)}),o=eC(window,\"pointercancel\",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,eO.z)(n,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eE(this.node.current,\"keydown\",e=>{\"Enter\"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eE(this.node.current,\"keyup\",e=>{\"Enter\"===e.key&&this.checkPressEnd()&&eB(\"up\",(e,t)=>{let{onTap:r}=this.node.getProps();r&&ex.Wi.postRender(()=>r(e,t))})}),eB(\"down\",(e,t)=>{this.startPress(e,t)}))}),t=eE(this.node.current,\"blur\",()=>{this.isPressing&&eB(\"cancel\",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=(0,eO.z)(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive(\"whileTap\",!0),r&&ex.Wi.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(\"whileTap\",!1),!eN()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&ex.Wi.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=eC(e.globalTapTarget?window:this.node.current,\"pointerdown\",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eE(this.node.current,\"focus\",this.startAccessiblePress);this.removeStartListeners=(0,eO.z)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eU=new WeakMap,e$=new WeakMap,eH=e=>{let t=eU.get(e.target);t&&t(e)},eK=e=>{e.forEach(eH)},eq={some:0,all:1};class eG extends eL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n=\"some\",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:\"number\"==typeof n?n:eq[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;e$.has(r)||e$.set(r,{});let n=e$.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(eK,{root:e,...t})),n[o]}(t);return eU.set(e,r),n.observe(e),()=>{eU.delete(e),n.unobserve(e)}}(this.node.current,i,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(\"whileInView\",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)})}mount(){this.startObserver()}update(){if(\"undefined\"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;[\"amount\",\"margin\",\"root\"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}function eZ(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function eX(e,t,r){let n=e.getProps();return ec(n,t,void 0!==r?r:n.custom,e)}let eY=e=>1e3*e,eJ=e=>e/1e3,eQ={type:\"spring\",stiffness:500,damping:25,restSpeed:10},e0=e=>({type:\"spring\",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),e1={type:\"keyframes\",duration:.8},e2={type:\"keyframes\",ease:[.25,.1,.35,1],duration:.3},e3=(e,{keyframes:t})=>t.length>2?e1:L.has(e)?e.startsWith(\"scale\")?e0(t[1]):eQ:e2;function e5(e,t){return e[t]||e.default||e}var e4=r(565);let e8={current:!1},e6=e=>null!==e;function e9(e,{repeat:t,repeatType:r=\"loop\"},n){let o=e.filter(e6),i=t&&\"loop\"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}var e7=r(59993);let te=e=>/^0[^.\\s]+$/u.test(e);var tt=r(19047);let tr=e=>/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(e),tn=/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u,to=new Set([\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",\"x\",\"y\",\"translateX\",\"translateY\"]),ti=e=>e===V.Rx||e===z.px,ta=(e,t)=>parseFloat(e.split(\", \")[t]),ts=(e,t)=>(r,{transform:n})=>{if(\"none\"===n||!n)return 0;let o=n.match(/^matrix3d\\((.+)\\)$/u);if(o)return ta(o[1],t);{let t=n.match(/^matrix\\((.+)\\)$/u);return t?ta(t[1],e):0}},tl=new Set([\"x\",\"y\",\"z\"]),tu=N.filter(e=>!tl.has(e)),tc={width:({x:e},{paddingLeft:t=\"0\",paddingRight:r=\"0\"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t=\"0\",paddingBottom:r=\"0\"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ts(4,13),y:ts(5,14)};tc.translateX=tc.x,tc.translateY=tc.y;let td=e=>t=>t.test(e),tf=[V.Rx,z.px,z.aQ,z.RW,z.vw,z.vh,{test:e=>\"auto\"===e,parse:e=>e}],tp=e=>tf.find(td(e)),th=new Set,tm=!1,ty=!1;function tg(){if(ty){let e=Array.from(th).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return tu.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith(\"scale\")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ty=!1,tm=!1,th.forEach(e=>e.complete()),th.clear()}function tv(){th.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ty=!0)})}class tb{constructor(e,t,r,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(th.add(this),tm||(tm=!0,ex.Wi.read(tv),ex.Wi.resolveKeyframes(tg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let o=0;o<e.length;o++)if(null===e[o]){if(0===o){let o=null==n?void 0:n.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){let n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}else e[o]=e[o-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),th.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,th.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}var tw=r(83646),tx=r(47292);let tS=new Set([\"brightness\",\"contrast\",\"saturate\",\"opacity\"]);function tP(e){let[t,r]=e.slice(0,-1).split(\"(\");if(\"drop-shadow\"===t)return e;let[n]=r.match(tx.KP)||[];if(!n)return e;let o=r.replace(n,\"\"),i=tS.has(t)?1:0;return n!==r&&(i*=100),t+\"(\"+i+o+\")\"}let tE=/\\b([a-z-]*)\\(.*?\\)/gu,tA={...tw.P,getAnimatableNone:e=>{let t=e.match(tE);return t?t.map(tP).join(\" \"):e}};var tR=r(50146);let tj={...W,color:tR.$,backgroundColor:tR.$,outlineColor:tR.$,fill:tR.$,stroke:tR.$,borderColor:tR.$,borderTopColor:tR.$,borderRightColor:tR.$,borderBottomColor:tR.$,borderLeftColor:tR.$,filter:tA,WebkitFilter:tA},tC=e=>tj[e];function tO(e,t){let r=tC(e);return r!==tA&&(r=tw.P),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tT=new Set([\"auto\",\"none\",\"0\"]);class tM extends tb{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if(\"string\"==typeof n&&(n=n.trim(),(0,H.t)(n))){let o=function e(t,r,n=1){(0,tt.k)(n<=4,`Max CSS variable fallback depth detected in property \"${t}\". This may indicate a circular fallback dependency.`);let[o,i]=function(e){let t=tn.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${null!=r?r:n}`,o]}(t);if(!o)return;let a=window.getComputedStyle(r).getPropertyValue(o);if(a){let e=a.trim();return tr(e)?parseFloat(e):e}return(0,H.t)(i)?e(i,r,n+1):i}(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!to.has(r)||2!==e.length)return;let[n,o]=e,i=tp(n),a=tp(o);if(i!==a){if(ti(i)&&ti(a))for(let t=0;t<e.length;t++){let r=e[t];\"string\"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;(\"number\"==typeof(n=e[t])?0===n:null===n||\"none\"===n||\"0\"===n||te(n))&&r.push(t)}r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){let t=e[o];\"string\"==typeof t&&!tT.has(t)&&(0,tw.V)(t).values.length&&(n=e[o]),o++}if(n&&r)for(let o of t)e[o]=tO(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;\"height\"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tc[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t.current)return;let o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=tc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}function tk(e){let t;return()=>(void 0===t&&(t=e()),t)}let tD=(e,t)=>\"zIndex\"!==t&&!!(\"number\"==typeof e||Array.isArray(e)||\"string\"==typeof e&&(tw.P.test(e)||\"0\"===e)&&!e.startsWith(\"url(\"));class tN{constructor({autoplay:e=!0,delay:t=0,type:r=\"keyframes\",repeat:n=0,repeatDelay:o=0,repeatType:i=\"loop\",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(tv(),tg()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let o=e[0];if(null===o)return!1;if(\"display\"===t||\"visibility\"===t)return!0;let i=e[e.length-1],a=tD(o,t),s=tD(i,t);return(0,tt.K)(a===s,`You are trying to animate ${t} from \"${o}\" to \"${i}\". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \\`style\\` property.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||\"spring\"===r&&n)}(e,r,n,o)){if(e8.current||!i){null==s||s(e9(e,this.options,t)),null==a||a(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}var tL=r(83476);function tI(e,t,r){let n=Math.max(t-5,0);return(0,tL.R)(r-e(n),t-n)}var tF=r(51506);function t_(e,t){return e*Math.sqrt(1-t*t)}let tV=[\"duration\",\"bounce\"],tz=[\"stiffness\",\"damping\",\"mass\"];function tB(e,t){return t.some(t=>void 0!==e[t])}function tW({keyframes:e,restDelta:t,restSpeed:r,...n}){let o;let i=e[0],a=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tB(e,tz)&&tB(e,tV)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;(0,tt.K)(e<=eY(10),\"Spring duration must be 10 seconds or less\");let a=1-t;a=(0,tF.u)(.05,1,a),e=(0,tF.u)(.01,10,eJ(e)),a<1?(o=t=>{let n=t*a,o=n*e;return .001-(n-r)/t_(t,a)*Math.exp(-o)},i=t=>{let n=t*a*e,i=Math.pow(a,2)*Math.pow(t,2)*e,s=t_(Math.pow(t,2),a);return(n*r+r-i)*Math.exp(-n)*(-o(t)+.001>0?-1:1)/s}):(o=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),i=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=eY(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-eJ(n.velocity||0)}),h=f||0,m=u/(2*Math.sqrt(l*c)),y=a-i,g=eJ(Math.sqrt(l/c)),v=5>Math.abs(y);if(r||(r=v?.01:2),t||(t=v?.005:.5),m<1){let e=t_(g,m);o=t=>a-Math.exp(-m*g*t)*((h+m*g*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===m)o=e=>a-Math.exp(-g*e)*(y+(h+g*y)*e);else{let e=g*Math.sqrt(m*m-1);o=t=>{let r=Math.exp(-m*g*t),n=Math.min(e*t,300);return a-r*((h+m*g*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}return{calculatedDuration:p&&d||null,next:e=>{let n=o(e);if(p)s.done=e>=d;else{let i=0;m<1&&(i=0===e?eY(h):tI(o,e,n));let l=Math.abs(i)<=r,u=Math.abs(a-n)<=t;s.done=l&&u}return s.value=s.done?a:n,s}}}function tU({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let p=e[0],h={done:!1,value:p},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,y=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,g=r*t,v=p+g,b=void 0===a?v:a(v);b!==v&&(g=b-p);let w=e=>-g*Math.exp(-e/n),x=e=>b+w(e),S=e=>{let t=w(e),r=x(e);h.done=Math.abs(t)<=u,h.value=h.done?b:r},P=e=>{m(h.value)&&(d=e,f=tW({keyframes:[h.value,y(h.value)],velocity:tI(x,e,h.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,S(e),P(e)),void 0!==d&&e>=d)?f.next(e-d):(t||S(e),h)}}}let t$=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tH(e,t,r,n){if(e===t&&r===n)return ez.Z;let o=t=>(function(e,t,r,n,o){let i,a;let s=0;do(i=t$(a=t+(r-t)/2,n,o)-e)>0?r=a:t=a;while(Math.abs(i)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:t$(o(e),t,n)}let tK=tH(.42,0,1,1),tq=tH(0,0,.58,1),tG=tH(.42,0,.58,1),tZ=e=>Array.isArray(e)&&\"number\"!=typeof e[0],tX=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tY=e=>t=>1-e(1-t),tJ=e=>1-Math.sin(Math.acos(e)),tQ=tY(tJ),t0=tX(tJ),t1=tH(.33,1.53,.69,.99),t2=tY(t1),t3=tX(t2),t5={linear:ez.Z,easeIn:tK,easeInOut:tG,easeOut:tq,circIn:tJ,circInOut:t0,circOut:tQ,backIn:t2,backInOut:t3,backOut:t1,anticipate:e=>(e*=2)<1?.5*t2(e):.5*(2-Math.pow(2,-10*(e-1)))},t4=e=>{if(Array.isArray(e)){(0,tt.k)(4===e.length,\"Cubic bezier arrays must contain four numerical values.\");let[t,r,n,o]=e;return tH(t,r,n,o)}return\"string\"==typeof e?((0,tt.k)(void 0!==t5[e],`Invalid easing type '${e}'`),t5[e]):e};var t8=r(42548),t6=r(75004),t9=r(33217);function t7({duration:e=300,keyframes:t,times:r,ease:n=\"easeInOut\"}){let o=tZ(n)?n.map(t4):t4(n),i={done:!1,value:t[0]},a=(r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=(0,t9.Y)(0,t,n);e.push((0,t6.t)(r,1,o))}}(t,e.length-1),t}(t)).map(t=>t*e),s=(0,t8.s)(a,t,{ease:Array.isArray(o)?o:t.map(()=>o||tG).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}var re=r(5389);let rt=e=>{let t=({timestamp:t})=>e(t);return{start:()=>ex.Wi.update(t,!0),stop:()=>(0,ex.Pn)(t),now:()=>ex.frameData.isProcessing?ex.frameData.timestamp:e7.X.now()}},rr={decay:tU,inertia:tU,tween:t7,keyframes:t7,spring:tW},rn=e=>e/100;class ro extends tN{constructor({KeyframeResolver:e=tb,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState=\"running\",this.state=\"idle\",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,\"idle\"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:r,motionValue:n,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(o,i,r,n):this.resolver=new e(o,i,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n=\"keyframes\",repeat:o=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,l=rr[n]||t7;l!==t7&&\"number\"!=typeof e[0]&&(t=(0,eO.z)(rn,(0,re.C)(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});\"mirror\"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+i;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(o+1)-i}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),\"paused\"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return o.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let y=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),\"finished\"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=o;if(f){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,f+1))%2&&(\"reverse\"===p?(r=1-r,h&&(r-=h/c)):\"mirror\"===p&&(b=i)),v=(0,tF.u)(0,1,r)*c}let w=g?{done:!1,value:s[0]}:b.next(v);a&&(w.value=a(w.value));let{done:x}=w;g||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&(\"finished\"===this.state||\"running\"===this.state&&x);return S&&void 0!==n&&(w.value=e9(s,this.options,n)),m&&m(w.value),S&&this.finish(),w}get duration(){let{resolved:e}=this;return e?eJ(e.calculatedDuration):0}get time(){return eJ(this.currentTime)}set time(e){e=eY(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=eJ(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState=\"running\";return}if(this.isStopped)return;let{driver:e=rt,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&\"finished\"!==this.state||(this.startTime=r),\"finished\"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state=\"running\",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState=\"paused\";return}this.state=\"paused\",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){\"running\"!==this.state&&this.play(),this.pendingPlayState=this.state=\"finished\",this.holdTime=null}finish(){this.teardown(),this.state=\"finished\";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state=\"idle\",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let ri=e=>Array.isArray(e)&&\"number\"==typeof e[0],ra=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rs={linear:\"linear\",ease:\"ease\",easeIn:\"ease-in\",easeOut:\"ease-out\",easeInOut:\"ease-in-out\",circIn:ra([0,.65,.55,1]),circOut:ra([.55,0,1,.45]),backIn:ra([.31,.01,.66,-.59]),backOut:ra([.33,1.53,.69,.99])};function rl(e){return ru(e)||rs.easeOut}function ru(e){if(e)return ri(e)?ra(e):Array.isArray(e)?e.map(rl):rs[e]}let rc=tk(()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"));class rd extends tN{constructor(e){super(e);let{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new tM(n,(e,t)=>this.onKeyframesResolved(e,t),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if(\"spring\"===(n=this.options).type||!function e(t){return!!(!t||\"string\"==typeof t&&t in rs||ri(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,...l}=this.options,u=function(e,t){let r=new ro({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},o=[],i=0;for(;!n.done&&i<2e4;)o.push((n=r.sample(i)).value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:\"linear\"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,i=u.times,a=u.ease,s=\"keyframes\"}let c=function(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a=\"loop\",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=ru(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?\"linear\":c,fill:\"both\",iterations:i+1,direction:\"reverse\"===a?\"alternate\":\"normal\"})}(l.owner.current,u,e,{...this.options,duration:o,times:i,ease:a});return c.startTime=e7.X.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;l.set(e9(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return eJ(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return eJ(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=eY(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return\"idle\";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return ez.Z;let{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return ez.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;\"finished\"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,\"idle\"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:o,ease:i,times:a}=e;if(\"idle\"===t.playState||\"finished\"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new ro({...l,keyframes:r,duration:n,type:o,ease:i,times:a,isGenerator:!0}),c=eY(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}let{onStop:s}=this.options;s&&s(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;return rc()&&r&&ey.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&\"mirror\"!==o&&0!==i&&\"inertia\"!==a}}let rf=tk(()=>void 0!==window.ScrollTimeline);class rp{constructor(e){this.stop=()=>this.runAll(\"stop\"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){let t=this.animations.map(t=>{if(!rf()||!t.attachTimeline)return t.pause(),function(e,t){let r;let n=()=>{let{currentTime:n}=t,o=(null===n?0:n.value)/100;r!==o&&e(o),r=o};return ex.Wi.update(n,!0),()=>(0,ex.Pn)(n)}(e=>{t.time=t.duration*e},e);t.attachTimeline(e)});return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(\"time\")}set time(e){this.setAll(\"time\",e)}get speed(){return this.getAll(\"speed\")}set speed(e){this.setAll(\"speed\",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(\"play\")}pause(){this.runAll(\"pause\")}cancel(){this.runAll(\"cancel\")}complete(){this.runAll(\"complete\")}}let rh=(e,t,r,n={},o,i,a)=>s=>{let l=e5(n,e)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=eY(u);let d={keyframes:Array.isArray(r)?r:[null,r],ease:\"easeOut\",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),a&&a()},onStop:a,name:e,motionValue:t,element:i?void 0:o};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&(d={...d,...e3(e,d)}),d.duration&&(d.duration=eY(d.duration)),d.repeatDelay&&(d.repeatDelay=eY(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(f=!0)),(e8.current||e4.c.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),f&&!i&&void 0!==t.get()){let e=e9(d.keyframes,l);if(void 0!==e)return ex.Wi.update(()=>{d.onUpdate(e),d.onComplete()}),new rp([])}return!i&&rd.supports(d)?new rd(d):new ro(d)};var rm=r(20804);function ry(e){return e.getProps()[f]}class rg extends rm.Hg{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){let t=eg(e);if(!t)return;let r=this.counts.get(t)||0;this.counts.set(t,r+1),0===r&&(this.output.push(t),this.update());let n=!1;return()=>{if(n)return;n=!0;let e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&((0,ev.cl)(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(\", \"):\"auto\")}}function rv(e,t){var r,n;if(!e.applyWillChange)return;let o=e.getValue(\"willChange\");if(o||(null===(r=e.props.style)||void 0===r?void 0:r.willChange)||(o=new rg(\"auto\"),e.addValue(\"willChange\",o)),F(n=o)&&n.add)return o.add(t)}function rb(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;n&&(a=n);let u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(let t in l){let n=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let s={delay:r,elapsed:0,...e5(a||{},t)},d=!1;if(window.HandoffAppearAnimations){let r=ry(e);if(r){let e=window.HandoffAppearAnimations(r,t,n,ex.Wi);null!==e&&(s.elapsed=e,d=!0)}}n.start(rh(t,n,o,e.shouldReduceMotion&&L.has(t)?{type:!1}:s,e,d,rv(e,t)));let f=n.animation;f&&u.push(f)}return s&&Promise.all(u).then(()=>{ex.Wi.update(()=>{s&&function(e,t){let{transitionEnd:r={},transition:n={},...o}=eX(e,t)||{};for(let t in o={...o,...r}){let r=eh(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,rm.BX)(r))}}(e,s)})}),u}function rw(e,t,r={}){var n;let o=eX(e,t,\"exit\"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let a=o?()=>Promise.all(rb(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,o=1,i){let a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(rx).forEach((e,n)=>{e.notify(\"AnimationStart\",t),a.push(rw(e,t,{...i,delay:r+l(n)}).then(()=>e.notify(\"AnimationComplete\",t)))}),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]=\"beforeChildren\"===l?[a,s]:[s,a];return e().then(()=>t())}}function rx(e,t){return e.sortNodePosition(t)}let rS=[...x].reverse(),rP=x.length;function rE(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rA(){return{animate:rE(!0),whileInView:rE(),whileHover:rE(),whileTap:rE(),whileDrag:rE(),whileFocus:rE(),exit:rE()}}class rR extends eL{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify(\"AnimationStart\",t),Array.isArray(t))n=Promise.all(t.map(t=>rw(e,t,r)));else if(\"string\"==typeof t)n=rw(e,t,r);else{let o=\"function\"==typeof t?eX(e,t,r.custom):t;n=Promise.all(rb(e,o,r))}return n.then(()=>{e.notify(\"AnimationComplete\",t)})})(e,t,r))),r=rA(),n=!0,o=t=>(r,n)=>{var o;let i=eX(e,n,\"exit\"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function i(i){let a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<rP;t++){var f;let p=rS[t],h=r[p],m=void 0!==a[p]?a[p]:s[p],y=b(m),g=p===i?h.isActive:null;!1===g&&(d=t);let v=m===s[p]&&m!==a[p]&&y;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...c},!h.isActive&&null===g||!m&&!h.prevProp||w(m)||\"boolean\"==typeof m)continue;let x=(f=h.prevProp,(\"string\"==typeof m?m!==f:!!Array.isArray(m)&&!eZ(m,f))||p===i&&h.isActive&&!v&&y||t>d&&y),S=!1,P=Array.isArray(m)?m:[m],E=P.reduce(o(p),{});!1===g&&(E={});let{prevResolvedValues:A={}}=h,R={...A,...E},j=t=>{x=!0,u.has(t)&&(S=!0,u.delete(t)),h.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in R){let t=E[e],r=A[e];if(!c.hasOwnProperty(e))(ef(t)&&ef(r)?eZ(t,r):t===r)?void 0!==t&&u.has(e)?j(e):h.protectedKeys[e]=!0:null!=t?j(e):u.add(e)}h.prevProp=m,h.prevResolvedValues=E,h.isActive&&(c={...c,...E}),n&&e.blockInitialAnimation&&(x=!1),x&&(!v||S)&&l.push(...P.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};u.forEach(r=>{let n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=null!=n?n:null}),l.push({animation:t})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let a=i(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rA(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();w(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let rj=0;class rC extends eL{constructor(){super(...arguments),this.id=rj++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive(\"exit\",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let rO=(e,t)=>Math.abs(e-t);class rT{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=rD(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,o=(e=r.offset,t={x:0,y:0},Math.sqrt(rO(e.x,t.x)**2+rO(e.y,t.y)**2)>=3);if(!n&&!o)return;let{point:i}=r,{timestamp:a}=ex.frameData;this.history.push({...i,timestamp:a});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rM(t,this.transformPagePoint),ex.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=rD(\"pointercancel\"===e.type?this.lastMoveEventInfo:rM(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!eA(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let i=rM(eR(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=ex.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,rD(i,this.history)),this.removeListeners=(0,eO.z)(eC(this.contextWindow,\"pointermove\",this.handlePointerMove),eC(this.contextWindow,\"pointerup\",this.handlePointerUp),eC(this.contextWindow,\"pointercancel\",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,ex.Pn)(this.updatePoint)}}function rM(e,t){return t?{point:t(e.point)}:e}function rk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rD({point:e},t){return{point:e,delta:rk(e,rN(t)),offset:rk(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=rN(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>eY(.1)));)r--;if(!n)return{x:0,y:0};let i=eJ(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};let a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function rN(e){return e[e.length-1]}function rL(e){return e.max-e.min}function rI(e,t,r,n=.5){e.origin=n,e.originPoint=(0,t6.t)(t.min,t.max,e.origin),e.scale=rL(r)/rL(t),e.translate=(0,t6.t)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rF(e,t,r,n){rI(e.x,t.x,r.x,n?n.originX:void 0),rI(e.y,t.y,r.y,n?n.originY:void 0)}function r_(e,t,r){e.min=r.min+t.min,e.max=e.min+rL(t)}function rV(e,t,r){e.min=t.min-r.min,e.max=e.min+rL(t)}function rz(e,t,r){rV(e.x,t.x,r.x),rV(e.y,t.y,r.y)}function rB(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rW(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function rU(e,t,r){return{min:r$(e,t),max:r$(e,r)}}function r$(e,t){return\"number\"==typeof e?e:e[t]||0}let rH=()=>({translate:0,scale:1,origin:0,originPoint:0}),rK=()=>({x:rH(),y:rH()}),rq=()=>({min:0,max:0}),rG=()=>({x:rq(),y:rq()});function rZ(e){return[e(\"x\"),e(\"y\")]}function rX({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function rY(e){return void 0===e||1===e}function rJ({scale:e,scaleX:t,scaleY:r}){return!rY(e)||!rY(t)||!rY(r)}function rQ(e){return rJ(e)||r0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function r0(e){var t,r;return(t=e.x)&&\"0%\"!==t||(r=e.y)&&\"0%\"!==r}function r1(e,t,r,n,o){return void 0!==o&&(e=n+o*(e-n)),n+r*(e-n)+t}function r2(e,t=0,r=1,n,o){e.min=r1(e.min,t,r,n,o),e.max=r1(e.max,t,r,n,o)}function r3(e,{x:t,y:r}){r2(e.x,t.translate,t.scale,t.originPoint),r2(e.y,r.translate,r.scale,r.originPoint)}function r5(e,t){e.min=e.min+t,e.max=e.max+t}function r4(e,t,r,n,o=.5){let i=(0,t6.t)(e.min,e.max,o);r2(e,t,r,i,n)}function r8(e,t){r4(e.x,t.x,t.scaleX,t.scale,t.originX),r4(e.y,t.y,t.scaleY,t.scale,t.originY)}function r6(e,t){return rX(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let r9=({current:e})=>e?e.ownerDocument.defaultView:null,r7=new WeakMap;class ne{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rG(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new rT(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eR(e,\"page\").point)},onStart:(e,t)=>{var r;let{drag:n,dragPropagation:o,onDragStart:i}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eD(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rZ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(z.aQ.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=rL(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&ex.Wi.postRender(()=>i(e,t)),null===(r=this.removeWillChange)||void 0===r||r.call(this),this.removeWillChange=rv(this.visualElement,\"transform\");let{animationState:a}=this.visualElement;a&&a.setActive(\"whileDrag\",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r=\"y\":Math.abs(e.x)>t&&(r=\"x\"),r}(a),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis(\"x\",t.point,a),this.updateAxis(\"y\",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>rZ(e=>{var t;return\"paused\"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:r9(this.visualElement)})}stop(e,t){var r;null===(r=this.removeWillChange)||void 0===r||r.call(this);let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=t;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&ex.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive(\"whileDrag\",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nt(e,n,this.currentDirection))return;let o=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,t6.t)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,t6.t)(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&m(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:o}){return{x:rB(e.x,r,o),y:rB(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rU(e,\"left\",\"right\"),y:rU(e,\"top\",\"bottom\")}}(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rZ(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!m(t))return!1;let n=t.current;(0,tt.k)(null!==n,\"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=function(e,t,r){let n=r6(e,r),{scroll:o}=t;return o&&(r5(n.x,o.offset.x),r5(n.y,o.offset.y)),n}(n,o.root,this.visualElement.getTransformPagePoint()),a={x:rW((e=o.layout.layoutBox).x,i.x),y:rW(e.y,i.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rX(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rZ(a=>{if(!nt(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});let u={type:\"inertia\",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rh(e,r,0,t,this.visualElement,!1,rv(this.visualElement,e)))}stopAnimation(){rZ(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rZ(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rZ(t=>{let{drag:r}=this.getProps();if(!nt(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-(0,t6.t)(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!m(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rZ(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rL(e),o=rL(t);return o>n?r=(0,t9.Y)(t.min,t.max-n,e.min):n>o&&(r=(0,t9.Y)(e.min,e.max-o,t.min)),(0,tF.u)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},\"\"):\"none\",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rZ(t=>{if(!nt(t,e,null))return;let r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set((0,t6.t)(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;r7.set(this.visualElement,this);let e=eC(this.visualElement.current,\"pointerdown\",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();m(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener(\"measure\",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ex.Wi.read(t);let o=eE(window,\"resize\",()=>this.scalePositionWithinConstraints()),i=r.addEventListener(\"didUpdate\",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rZ(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),n(),i&&i()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function nt(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nr extends eL{constructor(e){super(e),this.removeGroupControls=ez.Z,this.removeListeners=ez.Z,this.controls=new ne(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ez.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let nn=e=>(t,r)=>{e&&ex.Wi.postRender(()=>e(t,r))};class no extends eL{constructor(){super(...arguments),this.removePointerDownListener=ez.Z}onPointerDown(e){this.session=new rT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nn(e),onStart:nn(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ex.Wi.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=eC(this.node.current,\"pointerdown\",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function na(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ns={correct:(e,t)=>{if(!t.target)return e;if(\"string\"==typeof e){if(!z.px.test(e))return e;e=parseFloat(e)}let r=na(e,t.target.x),n=na(e,t.target.y);return`${r}% ${n}%`}};class nl extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;Object.assign(D,nc),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener(\"animationComplete\",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent===o||(o?i.promote():i.relegate()||ex.Wi.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),p.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nu(e){let[t,r]=function(){let e=(0,i.useContext)(l.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=(0,i.useId)();(0,i.useEffect)(()=>n(o),[]);let a=(0,i.useCallback)(()=>r&&r(o),[o,r]);return!t&&r?[!1,a]:[!0]}(),n=(0,i.useContext)(O.p);return(0,o.jsx)(nl,{...e,layoutGroup:n,switchLayoutGroup:(0,i.useContext)(y),isPresent:t,safeToRemove:r})}let nc={borderRadius:{...ns,applyTo:[\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderBottomLeftRadius\",\"borderBottomRightRadius\"]},borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomLeftRadius:ns,borderBottomRightRadius:ns,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tw.P.parse(e);if(n.length>5)return e;let o=tw.P.createTransformer(e),i=\"number\"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+i]/=a,n[1+i]/=s;let l=(0,t6.t)(a,s,.5);return\"number\"==typeof n[2+i]&&(n[2+i]/=l),\"number\"==typeof n[3+i]&&(n[3+i]/=l),o(n)}}};var nd=r(72428);let nf=[\"TopLeft\",\"TopRight\",\"BottomLeft\",\"BottomRight\"],np=nf.length,nh=e=>\"string\"==typeof e?parseFloat(e):e,nm=e=>\"number\"==typeof e||z.px.test(e);function ny(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ng=nb(0,.5,tQ),nv=nb(.5,.95,ez.Z);function nb(e,t,r){return n=>n<e?0:n>t?1:r((0,t9.Y)(e,t,n))}function nw(e,t){e.min=t.min,e.max=t.max}function nx(e,t){nw(e.x,t.x),nw(e.y,t.y)}function nS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nP(e,t,r,n,o){return e-=t,e=n+1/r*(e-n),void 0!==o&&(e=n+1/o*(e-n)),e}function nE(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){if(z.aQ.test(t)&&(t=parseFloat(t),t=(0,t6.t)(a.min,a.max,t/100)-a.min),\"number\"!=typeof t)return;let s=(0,t6.t)(i.min,i.max,n);e===i&&(s-=t),e.min=nP(e.min,t,r,s,o),e.max=nP(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}let nA=[\"x\",\"scaleX\",\"originX\"],nR=[\"y\",\"scaleY\",\"originY\"];function nj(e,t,r,n){nE(e.x,t,nA,r?r.x:void 0,n?n.x:void 0),nE(e.y,t,nR,r?r.y:void 0,n?n.y:void 0)}function nC(e){return 0===e.translate&&1===e.scale}function nO(e){return nC(e.x)&&nC(e.y)}function nT(e,t){return e.min===t.min&&e.max===t.max}function nM(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nk(e,t){return nM(e.x,t.x)&&nM(e.y,t.y)}function nD(e){return rL(e.x)/rL(e.y)}function nN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nL{constructor(){this.members=[]}add(e){(0,ev.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,ev.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nI=(e,t)=>e.depth-t.depth;class nF{constructor(){this.children=[],this.isDirty=!1}add(e){(0,ev.y4)(this.children,e),this.isDirty=!0}remove(e){(0,ev.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nI),this.isDirty=!1,this.children.forEach(e)}}let n_={type:\"projectionFrame\",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nV=\"undefined\"!=typeof window&&void 0!==window.MotionDebug,nz=[\"\",\"X\",\"Y\",\"Z\"],nB={visibility:\"hidden\"},nW=0;function nU(e,t,r,n){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function n$({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nV&&(n_.totalNodes=n_.resolvedTargetDeltas=n_.recalculatedProjection=0),this.nodes.forEach(nq),this.nodes.forEach(n0),this.nodes.forEach(n1),this.nodes.forEach(nG),nV&&window.MotionDebug.record(n_)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nF)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nd.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&\"svg\"!==t.tagName,this.instance=t;let{layoutId:n,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(o||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=e7.X.now(),n=({timestamp:t})=>{let o=t-r;o>=250&&((0,ex.Pn)(n),e(o-250))};return ex.Wi.read(n,!0),()=>(0,ex.Pn)(n)}(n,0),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEach(nQ))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||o)&&this.addEventListener(\"didUpdate\",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||n6,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!nk(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...e5(o,\"layout\"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||nQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,ex.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n2),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;let{visualElement:r}=t.options;return!!r&&(!!ry(r)||!!t.parent&&!t.parent.hasCheckedOptimisedAppear&&e(t.parent))}(this)&&window.HandoffCancelAllAnimations(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(\"snapshot\"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,\"\"):void 0,this.updateSnapshot(),e&&this.notifyListeners(\"willUpdate\")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nX);return}this.isUpdating||this.nodes.forEach(nY),this.isUpdating=!1,this.nodes.forEach(nJ),this.nodes.forEach(nH),this.nodes.forEach(nK),this.clearAllSnapshots();let e=e7.X.now();ex.frameData.delta=(0,tF.u)(0,1e3/60,e-ex.frameData.timestamp),ex.frameData.timestamp=e,ex.frameData.isProcessing=!0,ex.S6.update.process(ex.frameData),ex.S6.preRender.process(ex.frameData),ex.S6.render.process(ex.frameData),ex.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nZ),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ex.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ex.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rG(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(\"measure\",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(\"LayoutMeasure\",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=\"measure\"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nO(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,\"\"):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||rQ(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),oe((t=n).x),oe(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rG();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(or))){let{scroll:e}=this.root;e&&(r5(r.x,e.offset.x),r5(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rG();if(nx(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&nx(r,e),r5(r.x,o.offset.x),r5(r.y,o.offset.y))}return r}applyTransform(e,t=!1){let r=rG();nx(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&r8(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),rQ(n.latestValues)&&r8(r,n.latestValues)}return rQ(this.latestValues)&&r8(r,this.latestValues),r}removeTransform(e){let t=rG();nx(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rQ(r.latestValues))continue;rJ(r.latestValues)&&r.updateSnapshot();let n=rG();nx(n,r.measurePageBox()),nj(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return rQ(this.latestValues)&&nj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ex.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,o;let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==i;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=ex.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rG(),this.relativeTargetOrigin=rG(),rz(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rG(),this.targetWithTransforms=rG()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,o=this.relativeParent.target,r_(r.x,n.x,o.x),r_(r.y,n.y,o.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nx(this.target,this.layout.layoutBox),r3(this.target,this.targetDelta)):nx(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rG(),this.relativeTargetOrigin=rG(),rz(this.relativeTargetOrigin,this.target,e.target),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nV&&n_.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rJ(this.parent.latestValues)||r0(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ex.frameData.timestamp&&(n=!1),n)return;let{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(o||i))return;nx(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let o,i;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){i=(o=r[s]).projectionDelta;let{visualElement:a}=o.options;(!a||!a.props.style||\"contents\"!==a.props.style.display)&&(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&r8(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,r3(e,i)),n&&rQ(o.latestValues)&&r8(e,o.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rG());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nS(this.prevProjectionDelta.x,this.projectionDelta.x),nS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rF(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&nN(this.projectionDelta.x,this.prevProjectionDelta.x)&&nN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(\"projectionUpdate\",l)),nV&&n_.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rK(),this.projectionDelta=rK(),this.projectionDeltaWithTransform=rK()}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,o=n?n.latestValues:{},i={...this.latestValues},a=rK();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=rG(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(n8));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n5(a.x,e.x,n),n5(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,p,h;rz(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,n4(p.x,h.x,s.x,n),n4(p.y,h.y,s.y,n),r&&(u=this.relativeTarget,f=r,nT(u.x,f.x)&&nT(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=rG()),nx(r,this.relativeTarget)}l&&(this.animationValues=i,function(e,t,r,n,o,i){o?(e.opacity=(0,t6.t)(0,void 0!==r.opacity?r.opacity:1,ng(n)),e.opacityExit=(0,t6.t)(void 0!==t.opacity?t.opacity:1,0,nv(n))):i&&(e.opacity=(0,t6.t)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let o=0;o<np;o++){let i=`border${nf[o]}Radius`,a=ny(t,i),s=ny(r,i);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||nm(a)===nm(s)?(e[i]=Math.max((0,t6.t)(nh(a),nh(s),n),0),(z.aQ.test(s)||z.aQ.test(a))&&(e[i]+=\"%\")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=(0,t6.t)(t.rotate||0,r.rotate||0,n))}(i,o,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(\"animationStart\"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,ex.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ex.Wi.update(()=>{ni.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=F(0)?0:(0,rm.BX)(0);return n.start(rh(\"\",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(\"animationComplete\")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ot(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||rG();let t=rL(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rL(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nx(t,r),r8(t,o),rF(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nL),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&nU(\"z\",e,n,this.animationValues);for(let t=0;t<nz.length;t++)nU(`rotate${nz[t]}`,e,n,this.animationValues),nU(`skew${nz[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nB;let n={visibility:\"\"},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity=\"\",n.pointerEvents=em(null==e?void 0:e.pointerEvents)||\"\",n.transform=o?o(this.latestValues,\"\"):\"none\",n;let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=em(null==e?void 0:e.pointerEvents)||\"\"),this.hasProjected&&!rQ(this.latestValues)&&(t.transform=o?o({},\"\"):\"none\",this.hasProjected=!1),t}let a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n=\"\",o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||\"none\"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(n.transform=o(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=i===this?void 0!==a.opacity?a.opacity:\"\":void 0!==a.opacityExit?a.opacityExit:0,D){if(void 0===a[e])continue;let{correct:t,applyTo:r}=D[e],o=\"none\"===n.transform?a[e]:t(a[e],i);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=o}else n[e]=o}return this.options.layoutId&&(n.pointerEvents=i===this?em(null==e?void 0:e.pointerEvents)||\"\":\"none\"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(nX),this.root.sharedNodes.clear()}}}function nH(e){e.updateLayout()}function nK(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners(\"didUpdate\")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;\"size\"===o?rZ(e=>{let n=i?r.measuredBox[e]:r.layoutBox[e],o=rL(n);n.min=t[e].min,n.max=n.min+o}):ot(o,r.layoutBox,t)&&rZ(n=>{let o=i?r.measuredBox[n]:r.layoutBox[n],a=rL(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=rK();rF(a,t,r.layoutBox);let s=rK();i?rF(s,e.applyTransform(n,!0),r.measuredBox):rF(s,t,r.layoutBox);let l=!nO(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:o,layout:i}=n;if(o&&i){let a=rG();rz(a,r.layoutBox,o.layoutBox);let s=rG();rz(s,t,i.layoutBox),nk(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners(\"didUpdate\",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nq(e){nV&&n_.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nZ(e){e.clearSnapshot()}function nX(e){e.clearMeasurements()}function nY(e){e.isLayoutDirty=!1}function nJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(\"BeforeLayoutMeasure\"),e.resetTransform()}function nQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n0(e){e.resolveTargetDelta()}function n1(e){e.calcProjection()}function n2(e){e.resetSkewAndRotation()}function n3(e){e.removeLeadSnapshot()}function n5(e,t,r){e.translate=(0,t6.t)(t.translate,0,r),e.scale=(0,t6.t)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n4(e,t,r,n){e.min=(0,t6.t)(t.min,r.min,n),e.max=(0,t6.t)(t.max,r.max,n)}function n8(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n6={duration:.45,ease:[.4,0,.1,1]},n9=e=>\"undefined\"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n7=n9(\"applewebkit/\")&&!n9(\"chrome/\")?Math.round:ez.Z;function oe(e){e.min=n7(e.min),e.max=n7(e.max)}function ot(e,t,r){return\"position\"===e||\"preserve-aspect\"===e&&!(.2>=Math.abs(nD(t)-nD(r)))}function or(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let on=n$({attachResizeListener:(e,t)=>eE(e,\"resize\",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oo={current:void 0},oi=n$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oo.current){let e=new on({});e.mount(window),e.setOptions({layoutScroll:!0}),oo.current=e}return oo.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:\"none\"},checkIsScrollRoot:e=>\"fixed\"===window.getComputedStyle(e).position}),oa={current:null},os={current:!1},ol=new WeakMap,ou=[...tf,tR.$,tw.P],oc=e=>ou.find(td(e)),od=[\"AnimationStart\",\"AnimationComplete\",\"Update\",\"BeforeLayoutMeasure\",\"LayoutMeasure\",\"LayoutAnimationStart\",\"LayoutAnimationComplete\"],of=S.length;class op{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.applyWillChange=!1,this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(\"Update\",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,ex.Wi.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=P(t),this.isVariantNode=E(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&F(t)&&t.set(s[e],!1)}}mount(e){this.current=e,ol.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),os.current||function(){if(os.current=!0,C.j){if(window.matchMedia){let e=window.matchMedia(\"(prefers-reduced-motion)\"),t=()=>oa.current=e.matches;e.addListener(t),t()}else oa.current=!1}}(),this.shouldReduceMotion=\"never\"!==this.reducedMotionConfig&&(\"always\"===this.reducedMotionConfig||oa.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in ol.delete(this.current),this.projection&&this.projection.unmount(),(0,ex.Pn)(this.notifyUpdate),(0,ex.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r=L.has(e),n=t.on(\"change\",t=>{this.latestValues[e]=t,this.props.onUpdate&&ex.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on(\"renderRequest\",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e=\"animation\";for(e in j){let t=j[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rG()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<od.length;t++){let r=od[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e[\"on\"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let o=t[n],i=r[n];if(F(o))e.addValue(n,o);else if(F(i))e.addValue(n,(0,rm.BX)(o,{owner:e}));else if(i!==o){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(n);e.addValue(n,(0,rm.BX)(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<of;e++){let r=S[e],n=this.props[r];(b(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,rm.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&(\"string\"==typeof n&&(tr(n)||te(n))?n=parseFloat(n):!oc(n)&&tw.P.test(t)&&(n=tO(e,t)),this.setBaseTarget(e,F(n)?n.get():n)),F(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if(\"string\"==typeof n||\"object\"==typeof n){let o=ec(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||F(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new nd.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class oh extends op{constructor(){super(...arguments),this.KeyframeResolver=tM}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class om extends oh{constructor(){super(...arguments),this.type=\"html\",this.applyWillChange=!0,this.renderInstance=eo}readValueFromInstance(e,t){if(L.has(t)){let e=tC(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,H.f)(t)?r.getPropertyValue(t):r[t])||0;return\"string\"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return r6(e,t)}build(e,t,r){K(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return es(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;F(e)&&(this.childSubscription=e.on(\"change\",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class oy extends oh{constructor(){super(...arguments),this.type=\"svg\",this.isSVGTag=!1,this.measureInstanceViewportBox=rG}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(L.has(t)){let e=tC(t);return e&&e.default||0}return t=ei.has(t)?t:d(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return el(e,t,r)}build(e,t,r){et(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){ea(e,t,r,n)}mount(e){this.isSVGTag=en(e.tagName),super.mount(e)}}let og=(e,t)=>k(e)?new oy(t):new om(t,{allowProjection:e!==i.Fragment}),ov={animation:{Feature:rR},exit:{Feature:rC},inView:{Feature:eG},tap:{Feature:eW},focus:{Feature:e_},hover:{Feature:eF},pan:{Feature:no},drag:{Feature:nr,ProjectionNode:oi,MeasureLayout:nu},layout:{ProjectionNode:oi,MeasureLayout:nu}},ob=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:d}){e&&function(e){for(let t in e)j[t]={...j[t],...e[t]}}(e);let h=(0,i.forwardRef)(function(e,h){var w;let x;let S={...(0,i.useContext)(a._),...e,layoutId:function({layoutId:e}){let t=(0,i.useContext)(O.p).id;return t&&void 0!==e?t+\"-\"+e:e}(e)},{isStatic:E}=S,R=function(e){let{initial:t,animate:r}=function(e,t){if(P(e)){let{initial:t,animate:r}=e;return{initial:!1===t||b(t)?t:void 0,animate:b(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:t,animate:r}),[A(t),A(r)])}(e),T=n(e,E);if(!E&&C.j){(0,i.useContext)(c).strict;let e=function(e){let{drag:t,layout:r}=j;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(S);x=e.MeasureLayout,R.visualElement=function(e,t,r,n,o){let{visualElement:d}=(0,i.useContext)(s),h=(0,i.useContext)(c),b=(0,i.useContext)(l.O),w=(0,i.useContext)(a._).reducedMotion,x=(0,i.useRef)();n=n||h.renderer,!x.current&&n&&(x.current=n(e,{visualState:t,parent:d,props:r,presenceContext:b,blockInitialAnimation:!!b&&!1===b.initial,reducedMotionConfig:w}));let S=x.current,P=(0,i.useContext)(y);S&&!S.projection&&o&&(\"html\"===S.type||\"svg\"===S.type)&&function(e,t,r,n){let{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t[\"data-framer-portal-id\"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&m(s),visualElement:e,animationType:\"string\"==typeof i?i:\"both\",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(x.current,r,o,P),(0,i.useInsertionEffect)(()=>{S&&S.update(r,b)});let E=(0,i.useRef)(!!(r[f]&&!window.HandoffComplete));return(0,u.L)(()=>{S&&(S.updateFeatures(),p.render(S.render),E.current&&S.animationState&&S.animationState.animateChanges())}),(0,i.useEffect)(()=>{S&&(!E.current&&S.animationState&&S.animationState.animateChanges(),E.current&&(E.current=!1,g||(g=!0,queueMicrotask(v))))}),S}(d,T,S,t,e.ProjectionNode)}return(0,o.jsxs)(s.Provider,{value:R,children:[x&&R.visualElement?(0,o.jsx)(x,{visualElement:R.visualElement,...S}):null,r(d,e,(w=R.visualElement,(0,i.useCallback)(e=>{e&&T.mount&&T.mount(e),w&&(e?w.mount(e):w.unmount()),h&&(\"function\"==typeof h?h(e):m(h)&&(h.current=e))},[w])),T,E,R.visualElement)]})});return h[T]=d,h}(e(t,r))}if(\"undefined\"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){return{...k(e)?eS:eP,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:o},a)=>{let s=(k(t)?function(e,t,r,n){let o=(0,i.useMemo)(()=>{let r=er();return et(r,t,en(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};G(t,e.style,e),o.style={...t,...o.style}}return o}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return G(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,i.useMemo)(()=>{let r=q();return K(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout=\"none\",n.touchAction=!0===e.drag?\"none\":`pan-${\"x\"===e.drag?\"y\":\"x\"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,o,a,t),l=function(e,t,r){let n={};for(let o in e)(\"values\"!==o||\"object\"!=typeof e.values)&&(Y(o)||!0===r&&X(o)||!t&&!X(o)||e.draggable&&o.startsWith(\"onDrag\"))&&(n[o]=e[o]);return n}(r,\"string\"==typeof t,e),u=t!==i.Fragment?{...l,...s,ref:n}:{},{children:c}=r,d=(0,i.useMemo)(()=>F(c)?c.get():c,[c]);return(0,i.createElement)(t,{...u,children:d})}}(t),createVisualElement:n,Component:e}})(e,t,ov,og))},61534:function(e,t,r){\"use strict\";r.d(t,{f:function(){return o},t:function(){return a}});let n=e=>t=>\"string\"==typeof t&&t.startsWith(e),o=n(\"--\"),i=n(\"var(--\"),a=e=>!!i(e)&&s.test(e.split(\"/*\")[0].trim()),s=/var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu},565:function(e,t,r){\"use strict\";r.d(t,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},28746:function(e,t,r){\"use strict\";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function o(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{cl:function(){return o},y4:function(){return n}})},51506:function(e,t,r){\"use strict\";r.d(t,{u:function(){return n}});let n=(e,t,r)=>r>t?t:r<e?e:r},19047:function(e,t,r){\"use strict\";r.d(t,{K:function(){return o},k:function(){return i}});var n=r(69276);let o=n.Z,i=n.Z},42548:function(e,t,r){\"use strict\";r.d(t,{s:function(){return u}});var n=r(19047),o=r(51506),i=r(89654),a=r(33217),s=r(69276),l=r(5389);function u(e,t,{clamp:r=!0,ease:u,mixer:c}={}){let d=e.length;if((0,n.k)(d===t.length,\"Both input and output ranges must be the same length\"),1===d)return()=>t[0];if(2===d&&e[0]===e[1])return()=>t[1];e[0]>e[d-1]&&(e=[...e].reverse(),t=[...t].reverse());let f=function(e,t,r){let n=[],o=r||l.C,a=e.length-1;for(let r=0;r<a;r++){let a=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||s.Z:t;a=(0,i.z)(e,a)}n.push(a)}return n}(t,u,c),p=f.length,h=t=>{let r=0;if(p>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=(0,a.Y)(e[r],e[r+1],t);return f[r](n)};return r?t=>h((0,o.u)(e[0],e[d-1],t)):h}},77282:function(e,t,r){\"use strict\";r.d(t,{j:function(){return n}});let n=\"undefined\"!=typeof window},5389:function(e,t,r){\"use strict\";r.d(t,{C:function(){return A}});var n=r(75004),o=r(19047);function i(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var a=r(45778),s=r(91583),l=r(598);function u(e,t){return r=>r>0?t:e}let c=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},d=[a.$,s.m,l.J],f=e=>d.find(t=>t.test(e));function p(e){let t=f(e);if((0,o.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===l.J&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,a=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,l=2*r-n;o=i(l,n,e+1/3),a=i(l,n,e),s=i(l,n,e-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:n}}(r)),r}let h=(e,t)=>{let r=p(e),o=p(t);if(!r||!o)return u(e,t);let i={...r};return e=>(i.red=c(r.red,o.red,e),i.green=c(r.green,o.green,e),i.blue=c(r.blue,o.blue,e),i.alpha=(0,n.t)(r.alpha,o.alpha,e),s.m.transform(i))};var m=r(89654),y=r(50146),g=r(83646),v=r(61534);let b=new Set([\"none\",\"hidden\"]);function w(e,t){return r=>(0,n.t)(e,t,r)}function x(e){return\"number\"==typeof e?w:\"string\"==typeof e?(0,v.t)(e)?u:y.$.test(e)?h:E:Array.isArray(e)?S:\"object\"==typeof e?y.$.test(e)?h:P:u}function S(e,t){let r=[...e],n=r.length,o=e.map((e,r)=>x(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function P(e,t){let r={...e,...t},n={};for(let o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=x(e[o])(e[o],t[o]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let E=(e,t)=>{let r=g.P.createTransformer(t),n=(0,g.V)(e),i=(0,g.V)(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?b.has(e)&&!i.values.length||b.has(t)&&!n.values.length?b.has(e)?r=>r<=0?e:t:r=>r>=1?t:e:(0,m.z)(S(function(e,t){var r;let n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],s=e.indexes[a][o[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[i]=l,o[a]++}return n}(n,i),i.values),r):((0,o.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(e,t))};function A(e,t,r){return\"number\"==typeof e&&\"number\"==typeof t&&\"number\"==typeof r?(0,n.t)(e,t,r):x(e)(e,t)}},75004:function(e,t,r){\"use strict\";r.d(t,{t:function(){return n}});let n=(e,t,r)=>e+(t-e)*r},69276:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});let n=e=>e},89654:function(e,t,r){\"use strict\";r.d(t,{z:function(){return o}});let n=(e,t)=>r=>t(e(r)),o=(...e)=>e.reduce(n)},33217:function(e,t,r){\"use strict\";r.d(t,{Y:function(){return n}});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},72428:function(e,t,r){\"use strict\";r.d(t,{L:function(){return o}});var n=r(28746);class o{constructor(){this.subscriptions=[]}add(e){return(0,n.y4)(this.subscriptions,e),()=>(0,n.cl)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){let n=this.subscriptions[o];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},30458:function(e,t,r){\"use strict\";r.d(t,{h:function(){return o}});var n=r(2265);function o(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},9033:function(e,t,r){\"use strict\";r.d(t,{L:function(){return o}});var n=r(2265);let o=r(77282).j?n.useLayoutEffect:n.useEffect},83476:function(e,t,r){\"use strict\";function n(e,t){return t?1e3/t*e:0}r.d(t,{R:function(){return n}})},20804:function(e,t,r){\"use strict\";r.d(t,{BX:function(){return c},Hg:function(){return u},S1:function(){return l}});var n=r(72428),o=r(83476),i=r(59993),a=r(86219);let s=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.version=\"11.3.22\",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=i.X.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=i.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=s(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(\"change\",e)}on(e,t){this.events[e]||(this.events[e]=new n.L);let r=this.events[e].add(t);return\"change\"===e?()=>{r(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=i.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new u(e,t)}},45778:function(e,t,r){\"use strict\";r.d(t,{$:function(){return o}});var n=r(91583);let o={test:(0,r(93338).i)(\"#\"),parse:function(e){let t=\"\",r=\"\",n=\"\",o=\"\";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:n.m.transform}},598:function(e,t,r){\"use strict\";r.d(t,{J:function(){return s}});var n=r(40783),o=r(75480),i=r(47292),a=r(93338);let s={test:(0,a.i)(\"hsl\",\"hue\"),parse:(0,a.d)(\"hue\",\"saturation\",\"lightness\"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>\"hsla(\"+Math.round(e)+\", \"+o.aQ.transform((0,i.Nw)(t))+\", \"+o.aQ.transform((0,i.Nw)(r))+\", \"+(0,i.Nw)(n.Fq.transform(a))+\")\"}},50146:function(e,t,r){\"use strict\";r.d(t,{$:function(){return s}});var n=r(47292),o=r(45778),i=r(598),a=r(91583);let s={test:e=>a.m.test(e)||o.$.test(e)||i.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):i.J.test(e)?i.J.parse(e):o.$.parse(e),transform:e=>(0,n.HD)(e)?e:e.hasOwnProperty(\"red\")?a.m.transform(e):i.J.transform(e)}},91583:function(e,t,r){\"use strict\";r.d(t,{m:function(){return u}});var n=r(51506),o=r(40783),i=r(47292),a=r(93338);let s=e=>(0,n.u)(0,255,e),l={...o.Rx,transform:e=>Math.round(s(e))},u={test:(0,a.i)(\"rgb\",\"red\"),parse:(0,a.d)(\"red\",\"green\",\"blue\"),transform:({red:e,green:t,blue:r,alpha:n=1})=>\"rgba(\"+l.transform(e)+\", \"+l.transform(t)+\", \"+l.transform(r)+\", \"+(0,i.Nw)(o.Fq.transform(n))+\")\"}},93338:function(e,t,r){\"use strict\";r.d(t,{d:function(){return i},i:function(){return o}});var n=r(47292);let o=(e,t)=>r=>!!((0,n.HD)(r)&&n.mj.test(r)&&r.startsWith(e)||t&&!(0,n.Rw)(r)&&Object.prototype.hasOwnProperty.call(r,t)),i=(e,t,r)=>o=>{if(!(0,n.HD)(o))return o;let[i,a,s,l]=o.match(n.KP);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},83646:function(e,t,r){\"use strict\";r.d(t,{P:function(){return f},V:function(){return l}});var n=r(50146),o=r(47292);let i=\"number\",a=\"color\",s=/var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/giu;function l(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},l=[],u=0,c=t.replace(s,e=>(n.$.test(e)?(o.color.push(u),l.push(a),r.push(n.$.parse(e))):e.startsWith(\"var(\")?(o.var.push(u),l.push(\"var\"),r.push(e)):(o.number.push(u),l.push(i),r.push(parseFloat(e))),++u,\"${}\")).split(\"${}\");return{values:r,split:c,indexes:o,types:l}}function u(e){return l(e).values}function c(e){let{split:t,types:r}=l(e),s=t.length;return e=>{let l=\"\";for(let u=0;u<s;u++)if(l+=t[u],void 0!==e[u]){let t=r[u];t===i?l+=(0,o.Nw)(e[u]):t===a?l+=n.$.transform(e[u]):l+=e[u]}return l}}let d=e=>\"number\"==typeof e?0:e,f={test:function(e){var t,r;return isNaN(e)&&(0,o.HD)(e)&&((null===(t=e.match(o.KP))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(o.dA))||void 0===r?void 0:r.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(e){let t=u(e);return c(e)(t.map(d))}}},40783:function(e,t,r){\"use strict\";r.d(t,{Fq:function(){return i},Rx:function(){return o},bA:function(){return a}});var n=r(51506);let o={test:e=>\"number\"==typeof e,parse:parseFloat,transform:e=>e},i={...o,transform:e=>(0,n.u)(0,1,e)},a={...o,default:1}},75480:function(e,t,r){\"use strict\";r.d(t,{$C:function(){return c},RW:function(){return i},aQ:function(){return a},px:function(){return s},vh:function(){return l},vw:function(){return u}});var n=r(47292);let o=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(\" \").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=o(\"deg\"),a=o(\"%\"),s=o(\"px\"),l=o(\"vh\"),u=o(\"vw\"),c={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},47292:function(e,t,r){\"use strict\";r.d(t,{HD:function(){return s},KP:function(){return o},Nw:function(){return n},Rw:function(){return l},dA:function(){return i},mj:function(){return a}});let n=e=>Math.round(1e5*e)/1e5,o=/-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu,i=/(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu,a=/^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;function s(e){return\"string\"==typeof e}function l(e){return null==e}},45282:function(e,t,r){\"use strict\";r.d(t,{c:function(){return s}});var n=r(2265),o=r(20804),i=r(29791),a=r(30458);function s(e){let t=(0,a.h)(()=>(0,o.BX)(e)),{isStatic:r}=(0,n.useContext)(i._);if(r){let[,r]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on(\"change\",r),[])}return t}},80847:function(e,t,r){\"use strict\";r.d(t,{H:function(){return f}});var n=r(42548);let o=e=>e&&\"object\"==typeof e&&e.mix,i=e=>o(e)?e.mix:void 0;var a=r(45282),s=r(9033),l=r(86219);function u(e,t){let r=(0,a.c)(t()),n=()=>r.set(t());return n(),(0,s.L)(()=>{let t=()=>l.Wi.preRender(n,!1,!0),r=e.map(e=>e.on(\"change\",t));return()=>{r.forEach(e=>e()),(0,l.Pn)(n)}}),r}var c=r(30458),d=r(20804);function f(e,t,r,o){if(\"function\"==typeof e)return function(e){d.S1.current=[],e();let t=u(d.S1.current,e);return d.S1.current=void 0,t}(e);let a=\"function\"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,o=e[0+r],a=e[1+r],s=e[2+r],l=e[3+r],u=(0,n.s)(a,s,{mixer:i(s[0]),...l});return t?u(o):u}(t,r,o);return Array.isArray(e)?p(e,a):p([e],([e])=>a(e))}function p(e,t){let r=(0,c.h)(()=>[]);return u(e,()=>{r.length=0;let n=e.length;for(let t=0;t<n;t++)r[t]=e[t].get();return t(r)})}},91810:function(e,t,r){\"use strict\";r.d(t,{w_:function(){return c}});var n=r(2265),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(o),a=[\"attr\",\"size\",\"title\"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if(\"object\"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:t+\"\"}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return t=>n.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:o,size:i,title:l}=e,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),d=i||t.size||\"1em\";return t.className&&(r=t.className),e.className&&(r=(r?r+\" \":\"\")+e.className),n.createElement(\"svg\",s({stroke:\"currentColor\",fill:\"currentColor\",strokeWidth:\"0\"},t.attr,o,c,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:\"http://www.w3.org/2000/svg\"}),l&&n.createElement(\"title\",null,l),e.children)};return void 0!==i?n.createElement(i.Consumer,null,e=>t(e)):t(o)}},96164:function(e,t,r){\"use strict\";r.d(t,{m6:function(){return I}});let n=/^\\[(.+)\\]$/;function o(e,t){let r=e;return t.split(\"-\").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}let i=/\\s+/;function a(){let e,t,r=0,n=\"\";for(;r<arguments.length;)(e=arguments[r++])&&(t=function e(t){let r;if(\"string\"==typeof t)return t;let n=\"\";for(let o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(n&&(n+=\" \"),n+=r);return n}(e))&&(n&&(n+=\" \"),n+=t);return n}function s(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\\[(?:([a-z-]+):)?(.+)\\]$/i,u=/^\\d+\\/\\d+$/,c=new Set([\"px\",\"full\",\"screen\"]),d=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,f=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,p=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/,h=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/;function y(e){return v(e)||c.has(e)||u.test(e)}function g(e){return M(e,\"length\",k)}function v(e){return!!e&&!Number.isNaN(Number(e))}function b(e){return M(e,\"number\",v)}function w(e){return!!e&&Number.isInteger(Number(e))}function x(e){return e.endsWith(\"%\")&&v(e.slice(0,-1))}function S(e){return l.test(e)}function P(e){return d.test(e)}let E=new Set([\"length\",\"size\",\"percentage\"]);function A(e){return M(e,E,D)}function R(e){return M(e,\"position\",D)}let j=new Set([\"image\",\"url\"]);function C(e){return M(e,j,L)}function O(e){return M(e,\"\",N)}function T(){return!0}function M(e,t,r){let n=l.exec(e);return!!n&&(n[1]?\"string\"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function k(e){return f.test(e)&&!p.test(e)}function D(){return!1}function N(e){return h.test(e)}function L(e){return m.test(e)}let I=function(e,...t){let r,s,l;let u=function(i){var a;return s=(r={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map;function o(o,i){r.set(o,i),++t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}}((a=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:function(e){let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length;function a(e){let r;let a=[],s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===o&&(n||e.slice(u,u+i)===t)){a.push(e.slice(l,u)),l=u+i;continue}if(\"/\"===c){r=u;continue}}\"[\"===c?s++:\"]\"===c&&s--}let u=0===a.length?e:e.substring(l),c=u.startsWith(\"!\"),d=c?u.substring(1):u;return{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}}return r?function(e){return r({className:e,parseClassName:a})}:a}(a),...function(e){let t=function(e){var t;let{theme:r,prefix:n}=e,i={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),n?t.map(([e,t])=>[e,t.map(e=>\"string\"==typeof e?n+e:\"object\"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[n+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,r,n,i){t.forEach(t=>{if(\"string\"==typeof t){(\"\"===t?r:o(r,t)).classGroupId=n;return}if(\"function\"==typeof t){if(t.isThemeGetter){e(t(i),r,n,i);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(([t,a])=>{e(a,o(r,t),n,i)})})})(t,i,e,r)}),i}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:function(e){let r=e.split(\"-\");return\"\"===r[0]&&1!==r.length&&r.shift(),function e(t,r){if(0===t.length)return r.classGroupId;let n=t[0],o=r.nextPart.get(n),i=o?e(t.slice(1),o):void 0;if(i)return i;if(0===r.validators.length)return;let a=t.join(\"-\");return r.validators.find(({validator:e})=>e(a))?.classGroupId}(r,t)||function(e){if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(\":\"));if(r)return\"arbitrary..\"+r}}(e)},getConflictingClassGroupIds:function(e,t){let n=r[e]||[];return t&&i[e]?[...n,...i[e]]:n}}}(a)}).cache.get,l=r.cache.set,u=c,c(i)};function c(e){let t=s(e);if(t)return t;let n=function(e,t){let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(i).map(e=>{let{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=r(e),s=!!a,l=n(s?i.substring(0,a):i);if(!l){if(!s||!(l=n(i)))return{isTailwindClass:!1,originalClassName:e};s=!1}let u=(function(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{\"[\"===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t})(t).join(\":\");return{isTailwindClass:!0,modifierId:o?u+\"!\":u,classGroupId:l,originalClassName:e,hasPostfixModifier:s}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,i=t+r;return!a.has(i)&&(a.add(i),o(r,n).forEach(e=>a.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(\" \")}(e,r);return l(e,n),n}return function(){return u(a.apply(null,arguments))}}(function(){let e=s(\"colors\"),t=s(\"spacing\"),r=s(\"blur\"),n=s(\"brightness\"),o=s(\"borderColor\"),i=s(\"borderRadius\"),a=s(\"borderSpacing\"),l=s(\"borderWidth\"),u=s(\"contrast\"),c=s(\"grayscale\"),d=s(\"hueRotate\"),f=s(\"invert\"),p=s(\"gap\"),h=s(\"gradientColorStops\"),m=s(\"gradientColorStopPositions\"),E=s(\"inset\"),j=s(\"margin\"),M=s(\"opacity\"),k=s(\"padding\"),D=s(\"saturate\"),N=s(\"scale\"),L=s(\"sepia\"),I=s(\"skew\"),F=s(\"space\"),_=s(\"translate\"),V=()=>[\"auto\",\"contain\",\"none\"],z=()=>[\"auto\",\"hidden\",\"clip\",\"visible\",\"scroll\"],B=()=>[\"auto\",S,t],W=()=>[S,t],U=()=>[\"\",y,g],$=()=>[\"auto\",v,S],H=()=>[\"bottom\",\"center\",\"left\",\"left-bottom\",\"left-top\",\"right\",\"right-bottom\",\"right-top\",\"top\"],K=()=>[\"solid\",\"dashed\",\"dotted\",\"double\",\"none\"],q=()=>[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"],G=()=>[\"start\",\"end\",\"center\",\"between\",\"around\",\"evenly\",\"stretch\"],Z=()=>[\"\",\"0\",S],X=()=>[\"auto\",\"avoid\",\"all\",\"avoid-page\",\"page\",\"left\",\"right\",\"column\"],Y=()=>[v,b],J=()=>[v,S];return{cacheSize:500,separator:\":\",theme:{colors:[T],spacing:[y,g],blur:[\"none\",\"\",P,S],brightness:Y(),borderColor:[e],borderRadius:[\"none\",\"\",\"full\",P,S],borderSpacing:W(),borderWidth:U(),contrast:Y(),grayscale:Z(),hueRotate:J(),invert:Z(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[x,g],inset:B(),margin:B(),opacity:Y(),padding:W(),saturate:Y(),scale:Y(),sepia:Z(),skew:J(),space:W(),translate:W()},classGroups:{aspect:[{aspect:[\"auto\",\"square\",\"video\",S]}],container:[\"container\"],columns:[{columns:[P]}],\"break-after\":[{\"break-after\":X()}],\"break-before\":[{\"break-before\":X()}],\"break-inside\":[{\"break-inside\":[\"auto\",\"avoid\",\"avoid-page\",\"avoid-column\"]}],\"box-decoration\":[{\"box-decoration\":[\"slice\",\"clone\"]}],box:[{box:[\"border\",\"content\"]}],display:[\"block\",\"inline-block\",\"inline\",\"flex\",\"inline-flex\",\"table\",\"inline-table\",\"table-caption\",\"table-cell\",\"table-column\",\"table-column-group\",\"table-footer-group\",\"table-header-group\",\"table-row-group\",\"table-row\",\"flow-root\",\"grid\",\"inline-grid\",\"contents\",\"list-item\",\"hidden\"],float:[{float:[\"right\",\"left\",\"none\",\"start\",\"end\"]}],clear:[{clear:[\"left\",\"right\",\"both\",\"none\",\"start\",\"end\"]}],isolation:[\"isolate\",\"isolation-auto\"],\"object-fit\":[{object:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"]}],\"object-position\":[{object:[...H(),S]}],overflow:[{overflow:z()}],\"overflow-x\":[{\"overflow-x\":z()}],\"overflow-y\":[{\"overflow-y\":z()}],overscroll:[{overscroll:V()}],\"overscroll-x\":[{\"overscroll-x\":V()}],\"overscroll-y\":[{\"overscroll-y\":V()}],position:[\"static\",\"fixed\",\"absolute\",\"relative\",\"sticky\"],inset:[{inset:[E]}],\"inset-x\":[{\"inset-x\":[E]}],\"inset-y\":[{\"inset-y\":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:[\"visible\",\"invisible\",\"collapse\"],z:[{z:[\"auto\",w,S]}],basis:[{basis:B()}],\"flex-direction\":[{flex:[\"row\",\"row-reverse\",\"col\",\"col-reverse\"]}],\"flex-wrap\":[{flex:[\"wrap\",\"wrap-reverse\",\"nowrap\"]}],flex:[{flex:[\"1\",\"auto\",\"initial\",\"none\",S]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:[\"first\",\"last\",\"none\",w,S]}],\"grid-cols\":[{\"grid-cols\":[T]}],\"col-start-end\":[{col:[\"auto\",{span:[\"full\",w,S]},S]}],\"col-start\":[{\"col-start\":$()}],\"col-end\":[{\"col-end\":$()}],\"grid-rows\":[{\"grid-rows\":[T]}],\"row-start-end\":[{row:[\"auto\",{span:[w,S]},S]}],\"row-start\":[{\"row-start\":$()}],\"row-end\":[{\"row-end\":$()}],\"grid-flow\":[{\"grid-flow\":[\"row\",\"col\",\"dense\",\"row-dense\",\"col-dense\"]}],\"auto-cols\":[{\"auto-cols\":[\"auto\",\"min\",\"max\",\"fr\",S]}],\"auto-rows\":[{\"auto-rows\":[\"auto\",\"min\",\"max\",\"fr\",S]}],gap:[{gap:[p]}],\"gap-x\":[{\"gap-x\":[p]}],\"gap-y\":[{\"gap-y\":[p]}],\"justify-content\":[{justify:[\"normal\",...G()]}],\"justify-items\":[{\"justify-items\":[\"start\",\"end\",\"center\",\"stretch\"]}],\"justify-self\":[{\"justify-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],\"align-content\":[{content:[\"normal\",...G(),\"baseline\"]}],\"align-items\":[{items:[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"align-self\":[{self:[\"auto\",\"start\",\"end\",\"center\",\"stretch\",\"baseline\"]}],\"place-content\":[{\"place-content\":[...G(),\"baseline\"]}],\"place-items\":[{\"place-items\":[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"place-self\":[{\"place-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],\"space-x\":[{\"space-x\":[F]}],\"space-x-reverse\":[\"space-x-reverse\"],\"space-y\":[{\"space-y\":[F]}],\"space-y-reverse\":[\"space-y-reverse\"],w:[{w:[\"auto\",\"min\",\"max\",\"fit\",\"svw\",\"lvw\",\"dvw\",S,t]}],\"min-w\":[{\"min-w\":[S,t,\"min\",\"max\",\"fit\"]}],\"max-w\":[{\"max-w\":[S,t,\"none\",\"full\",\"min\",\"max\",\"fit\",\"prose\",{screen:[P]},P]}],h:[{h:[S,t,\"auto\",\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"min-h\":[{\"min-h\":[S,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"max-h\":[{\"max-h\":[S,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],size:[{size:[S,t,\"auto\",\"min\",\"max\",\"fit\"]}],\"font-size\":[{text:[\"base\",P,g]}],\"font-smoothing\":[\"antialiased\",\"subpixel-antialiased\"],\"font-style\":[\"italic\",\"not-italic\"],\"font-weight\":[{font:[\"thin\",\"extralight\",\"light\",\"normal\",\"medium\",\"semibold\",\"bold\",\"extrabold\",\"black\",b]}],\"font-family\":[{font:[T]}],\"fvn-normal\":[\"normal-nums\"],\"fvn-ordinal\":[\"ordinal\"],\"fvn-slashed-zero\":[\"slashed-zero\"],\"fvn-figure\":[\"lining-nums\",\"oldstyle-nums\"],\"fvn-spacing\":[\"proportional-nums\",\"tabular-nums\"],\"fvn-fraction\":[\"diagonal-fractions\",\"stacked-fractons\"],tracking:[{tracking:[\"tighter\",\"tight\",\"normal\",\"wide\",\"wider\",\"widest\",S]}],\"line-clamp\":[{\"line-clamp\":[\"none\",v,b]}],leading:[{leading:[\"none\",\"tight\",\"snug\",\"normal\",\"relaxed\",\"loose\",y,S]}],\"list-image\":[{\"list-image\":[\"none\",S]}],\"list-style-type\":[{list:[\"none\",\"disc\",\"decimal\",S]}],\"list-style-position\":[{list:[\"inside\",\"outside\"]}],\"placeholder-color\":[{placeholder:[e]}],\"placeholder-opacity\":[{\"placeholder-opacity\":[M]}],\"text-alignment\":[{text:[\"left\",\"center\",\"right\",\"justify\",\"start\",\"end\"]}],\"text-color\":[{text:[e]}],\"text-opacity\":[{\"text-opacity\":[M]}],\"text-decoration\":[\"underline\",\"overline\",\"line-through\",\"no-underline\"],\"text-decoration-style\":[{decoration:[...K(),\"wavy\"]}],\"text-decoration-thickness\":[{decoration:[\"auto\",\"from-font\",y,g]}],\"underline-offset\":[{\"underline-offset\":[\"auto\",y,S]}],\"text-decoration-color\":[{decoration:[e]}],\"text-transform\":[\"uppercase\",\"lowercase\",\"capitalize\",\"normal-case\"],\"text-overflow\":[\"truncate\",\"text-ellipsis\",\"text-clip\"],\"text-wrap\":[{text:[\"wrap\",\"nowrap\",\"balance\",\"pretty\"]}],indent:[{indent:W()}],\"vertical-align\":[{align:[\"baseline\",\"top\",\"middle\",\"bottom\",\"text-top\",\"text-bottom\",\"sub\",\"super\",S]}],whitespace:[{whitespace:[\"normal\",\"nowrap\",\"pre\",\"pre-line\",\"pre-wrap\",\"break-spaces\"]}],break:[{break:[\"normal\",\"words\",\"all\",\"keep\"]}],hyphens:[{hyphens:[\"none\",\"manual\",\"auto\"]}],content:[{content:[\"none\",S]}],\"bg-attachment\":[{bg:[\"fixed\",\"local\",\"scroll\"]}],\"bg-clip\":[{\"bg-clip\":[\"border\",\"padding\",\"content\",\"text\"]}],\"bg-opacity\":[{\"bg-opacity\":[M]}],\"bg-origin\":[{\"bg-origin\":[\"border\",\"padding\",\"content\"]}],\"bg-position\":[{bg:[...H(),R]}],\"bg-repeat\":[{bg:[\"no-repeat\",{repeat:[\"\",\"x\",\"y\",\"round\",\"space\"]}]}],\"bg-size\":[{bg:[\"auto\",\"cover\",\"contain\",A]}],\"bg-image\":[{bg:[\"none\",{\"gradient-to\":[\"t\",\"tr\",\"r\",\"br\",\"b\",\"bl\",\"l\",\"tl\"]},C]}],\"bg-color\":[{bg:[e]}],\"gradient-from-pos\":[{from:[m]}],\"gradient-via-pos\":[{via:[m]}],\"gradient-to-pos\":[{to:[m]}],\"gradient-from\":[{from:[h]}],\"gradient-via\":[{via:[h]}],\"gradient-to\":[{to:[h]}],rounded:[{rounded:[i]}],\"rounded-s\":[{\"rounded-s\":[i]}],\"rounded-e\":[{\"rounded-e\":[i]}],\"rounded-t\":[{\"rounded-t\":[i]}],\"rounded-r\":[{\"rounded-r\":[i]}],\"rounded-b\":[{\"rounded-b\":[i]}],\"rounded-l\":[{\"rounded-l\":[i]}],\"rounded-ss\":[{\"rounded-ss\":[i]}],\"rounded-se\":[{\"rounded-se\":[i]}],\"rounded-ee\":[{\"rounded-ee\":[i]}],\"rounded-es\":[{\"rounded-es\":[i]}],\"rounded-tl\":[{\"rounded-tl\":[i]}],\"rounded-tr\":[{\"rounded-tr\":[i]}],\"rounded-br\":[{\"rounded-br\":[i]}],\"rounded-bl\":[{\"rounded-bl\":[i]}],\"border-w\":[{border:[l]}],\"border-w-x\":[{\"border-x\":[l]}],\"border-w-y\":[{\"border-y\":[l]}],\"border-w-s\":[{\"border-s\":[l]}],\"border-w-e\":[{\"border-e\":[l]}],\"border-w-t\":[{\"border-t\":[l]}],\"border-w-r\":[{\"border-r\":[l]}],\"border-w-b\":[{\"border-b\":[l]}],\"border-w-l\":[{\"border-l\":[l]}],\"border-opacity\":[{\"border-opacity\":[M]}],\"border-style\":[{border:[...K(),\"hidden\"]}],\"divide-x\":[{\"divide-x\":[l]}],\"divide-x-reverse\":[\"divide-x-reverse\"],\"divide-y\":[{\"divide-y\":[l]}],\"divide-y-reverse\":[\"divide-y-reverse\"],\"divide-opacity\":[{\"divide-opacity\":[M]}],\"divide-style\":[{divide:K()}],\"border-color\":[{border:[o]}],\"border-color-x\":[{\"border-x\":[o]}],\"border-color-y\":[{\"border-y\":[o]}],\"border-color-t\":[{\"border-t\":[o]}],\"border-color-r\":[{\"border-r\":[o]}],\"border-color-b\":[{\"border-b\":[o]}],\"border-color-l\":[{\"border-l\":[o]}],\"divide-color\":[{divide:[o]}],\"outline-style\":[{outline:[\"\",...K()]}],\"outline-offset\":[{\"outline-offset\":[y,S]}],\"outline-w\":[{outline:[y,g]}],\"outline-color\":[{outline:[e]}],\"ring-w\":[{ring:U()}],\"ring-w-inset\":[\"ring-inset\"],\"ring-color\":[{ring:[e]}],\"ring-opacity\":[{\"ring-opacity\":[M]}],\"ring-offset-w\":[{\"ring-offset\":[y,g]}],\"ring-offset-color\":[{\"ring-offset\":[e]}],shadow:[{shadow:[\"\",\"inner\",\"none\",P,O]}],\"shadow-color\":[{shadow:[T]}],opacity:[{opacity:[M]}],\"mix-blend\":[{\"mix-blend\":[...q(),\"plus-lighter\",\"plus-darker\"]}],\"bg-blend\":[{\"bg-blend\":q()}],filter:[{filter:[\"\",\"none\"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],\"drop-shadow\":[{\"drop-shadow\":[\"\",\"none\",P,S]}],grayscale:[{grayscale:[c]}],\"hue-rotate\":[{\"hue-rotate\":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[D]}],sepia:[{sepia:[L]}],\"backdrop-filter\":[{\"backdrop-filter\":[\"\",\"none\"]}],\"backdrop-blur\":[{\"backdrop-blur\":[r]}],\"backdrop-brightness\":[{\"backdrop-brightness\":[n]}],\"backdrop-contrast\":[{\"backdrop-contrast\":[u]}],\"backdrop-grayscale\":[{\"backdrop-grayscale\":[c]}],\"backdrop-hue-rotate\":[{\"backdrop-hue-rotate\":[d]}],\"backdrop-invert\":[{\"backdrop-invert\":[f]}],\"backdrop-opacity\":[{\"backdrop-opacity\":[M]}],\"backdrop-saturate\":[{\"backdrop-saturate\":[D]}],\"backdrop-sepia\":[{\"backdrop-sepia\":[L]}],\"border-collapse\":[{border:[\"collapse\",\"separate\"]}],\"border-spacing\":[{\"border-spacing\":[a]}],\"border-spacing-x\":[{\"border-spacing-x\":[a]}],\"border-spacing-y\":[{\"border-spacing-y\":[a]}],\"table-layout\":[{table:[\"auto\",\"fixed\"]}],caption:[{caption:[\"top\",\"bottom\"]}],transition:[{transition:[\"none\",\"all\",\"\",\"colors\",\"opacity\",\"shadow\",\"transform\",S]}],duration:[{duration:J()}],ease:[{ease:[\"linear\",\"in\",\"out\",\"in-out\",S]}],delay:[{delay:J()}],animate:[{animate:[\"none\",\"spin\",\"ping\",\"pulse\",\"bounce\",S]}],transform:[{transform:[\"\",\"gpu\",\"none\"]}],scale:[{scale:[N]}],\"scale-x\":[{\"scale-x\":[N]}],\"scale-y\":[{\"scale-y\":[N]}],rotate:[{rotate:[w,S]}],\"translate-x\":[{\"translate-x\":[_]}],\"translate-y\":[{\"translate-y\":[_]}],\"skew-x\":[{\"skew-x\":[I]}],\"skew-y\":[{\"skew-y\":[I]}],\"transform-origin\":[{origin:[\"center\",\"top\",\"top-right\",\"right\",\"bottom-right\",\"bottom\",\"bottom-left\",\"left\",\"top-left\",S]}],accent:[{accent:[\"auto\",e]}],appearance:[{appearance:[\"none\",\"auto\"]}],cursor:[{cursor:[\"auto\",\"default\",\"pointer\",\"wait\",\"text\",\"move\",\"help\",\"not-allowed\",\"none\",\"context-menu\",\"progress\",\"cell\",\"crosshair\",\"vertical-text\",\"alias\",\"copy\",\"no-drop\",\"grab\",\"grabbing\",\"all-scroll\",\"col-resize\",\"row-resize\",\"n-resize\",\"e-resize\",\"s-resize\",\"w-resize\",\"ne-resize\",\"nw-resize\",\"se-resize\",\"sw-resize\",\"ew-resize\",\"ns-resize\",\"nesw-resize\",\"nwse-resize\",\"zoom-in\",\"zoom-out\",S]}],\"caret-color\":[{caret:[e]}],\"pointer-events\":[{\"pointer-events\":[\"none\",\"auto\"]}],resize:[{resize:[\"none\",\"y\",\"x\",\"\"]}],\"scroll-behavior\":[{scroll:[\"auto\",\"smooth\"]}],\"scroll-m\":[{\"scroll-m\":W()}],\"scroll-mx\":[{\"scroll-mx\":W()}],\"scroll-my\":[{\"scroll-my\":W()}],\"scroll-ms\":[{\"scroll-ms\":W()}],\"scroll-me\":[{\"scroll-me\":W()}],\"scroll-mt\":[{\"scroll-mt\":W()}],\"scroll-mr\":[{\"scroll-mr\":W()}],\"scroll-mb\":[{\"scroll-mb\":W()}],\"scroll-ml\":[{\"scroll-ml\":W()}],\"scroll-p\":[{\"scroll-p\":W()}],\"scroll-px\":[{\"scroll-px\":W()}],\"scroll-py\":[{\"scroll-py\":W()}],\"scroll-ps\":[{\"scroll-ps\":W()}],\"scroll-pe\":[{\"scroll-pe\":W()}],\"scroll-pt\":[{\"scroll-pt\":W()}],\"scroll-pr\":[{\"scroll-pr\":W()}],\"scroll-pb\":[{\"scroll-pb\":W()}],\"scroll-pl\":[{\"scroll-pl\":W()}],\"snap-align\":[{snap:[\"start\",\"end\",\"center\",\"align-none\"]}],\"snap-stop\":[{snap:[\"normal\",\"always\"]}],\"snap-type\":[{snap:[\"none\",\"x\",\"y\",\"both\"]}],\"snap-strictness\":[{snap:[\"mandatory\",\"proximity\"]}],touch:[{touch:[\"auto\",\"none\",\"manipulation\"]}],\"touch-x\":[{\"touch-pan\":[\"x\",\"left\",\"right\"]}],\"touch-y\":[{\"touch-pan\":[\"y\",\"up\",\"down\"]}],\"touch-pz\":[\"touch-pinch-zoom\"],select:[{select:[\"none\",\"text\",\"all\",\"auto\"]}],\"will-change\":[{\"will-change\":[\"auto\",\"scroll\",\"contents\",\"transform\",S]}],fill:[{fill:[e,\"none\"]}],\"stroke-w\":[{stroke:[y,g,b]}],stroke:[{stroke:[e,\"none\"]}],sr:[\"sr-only\",\"not-sr-only\"],\"forced-color-adjust\":[{\"forced-color-adjust\":[\"auto\",\"none\"]}]},conflictingClassGroups:{overflow:[\"overflow-x\",\"overflow-y\"],overscroll:[\"overscroll-x\",\"overscroll-y\"],inset:[\"inset-x\",\"inset-y\",\"start\",\"end\",\"top\",\"right\",\"bottom\",\"left\"],\"inset-x\":[\"right\",\"left\"],\"inset-y\":[\"top\",\"bottom\"],flex:[\"basis\",\"grow\",\"shrink\"],gap:[\"gap-x\",\"gap-y\"],p:[\"px\",\"py\",\"ps\",\"pe\",\"pt\",\"pr\",\"pb\",\"pl\"],px:[\"pr\",\"pl\"],py:[\"pt\",\"pb\"],m:[\"mx\",\"my\",\"ms\",\"me\",\"mt\",\"mr\",\"mb\",\"ml\"],mx:[\"mr\",\"ml\"],my:[\"mt\",\"mb\"],size:[\"w\",\"h\"],\"font-size\":[\"leading\"],\"fvn-normal\":[\"fvn-ordinal\",\"fvn-slashed-zero\",\"fvn-figure\",\"fvn-spacing\",\"fvn-fraction\"],\"fvn-ordinal\":[\"fvn-normal\"],\"fvn-slashed-zero\":[\"fvn-normal\"],\"fvn-figure\":[\"fvn-normal\"],\"fvn-spacing\":[\"fvn-normal\"],\"fvn-fraction\":[\"fvn-normal\"],\"line-clamp\":[\"display\",\"overflow\"],rounded:[\"rounded-s\",\"rounded-e\",\"rounded-t\",\"rounded-r\",\"rounded-b\",\"rounded-l\",\"rounded-ss\",\"rounded-se\",\"rounded-ee\",\"rounded-es\",\"rounded-tl\",\"rounded-tr\",\"rounded-br\",\"rounded-bl\"],\"rounded-s\":[\"rounded-ss\",\"rounded-es\"],\"rounded-e\":[\"rounded-se\",\"rounded-ee\"],\"rounded-t\":[\"rounded-tl\",\"rounded-tr\"],\"rounded-r\":[\"rounded-tr\",\"rounded-br\"],\"rounded-b\":[\"rounded-br\",\"rounded-bl\"],\"rounded-l\":[\"rounded-tl\",\"rounded-bl\"],\"border-spacing\":[\"border-spacing-x\",\"border-spacing-y\"],\"border-w\":[\"border-w-s\",\"border-w-e\",\"border-w-t\",\"border-w-r\",\"border-w-b\",\"border-w-l\"],\"border-w-x\":[\"border-w-r\",\"border-w-l\"],\"border-w-y\":[\"border-w-t\",\"border-w-b\"],\"border-color\":[\"border-color-t\",\"border-color-r\",\"border-color-b\",\"border-color-l\"],\"border-color-x\":[\"border-color-r\",\"border-color-l\"],\"border-color-y\":[\"border-color-t\",\"border-color-b\"],\"scroll-m\":[\"scroll-mx\",\"scroll-my\",\"scroll-ms\",\"scroll-me\",\"scroll-mt\",\"scroll-mr\",\"scroll-mb\",\"scroll-ml\"],\"scroll-mx\":[\"scroll-mr\",\"scroll-ml\"],\"scroll-my\":[\"scroll-mt\",\"scroll-mb\"],\"scroll-p\":[\"scroll-px\",\"scroll-py\",\"scroll-ps\",\"scroll-pe\",\"scroll-pt\",\"scroll-pr\",\"scroll-pb\",\"scroll-pl\"],\"scroll-px\":[\"scroll-pr\",\"scroll-pl\"],\"scroll-py\":[\"scroll-pt\",\"scroll-pb\"],touch:[\"touch-x\",\"touch-y\",\"touch-pz\"],\"touch-x\":[\"touch\"],\"touch-y\":[\"touch\"],\"touch-pz\":[\"touch\"]},conflictingClassGroupModifiers:{\"font-size\":[\"leading\"]}}})}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/202-9b05294c1bfbdfa7.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[202],{5777:function(e,t,r){\"use strict\";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.CoinbaseWalletProvider=void 0;let s=i(r(37836)),o=r(39172),a=r(47224),l=r(34468),u=r(98997),c=r(96741),d=r(66320),h=r(42057),f=r(17475),p=r(9876);class g extends s.default{constructor(e){var t,r,{metadata:i}=e,s=e.preference,{keysUrl:a}=s,f=n(s,[\"keysUrl\"]);super(),this.accounts=[],this.handlers={handshake:async e=>{try{if(this.connected)return this.emit(\"connect\",{chainId:(0,u.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id))}),this.accounts;let e=await this.requestSignerSelection(),t=this.initSigner(e),r=await t.handshake();return this.signer=t,(0,c.storeSignerType)(e),this.emit(\"connect\",{chainId:(0,u.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id))}),r}catch(e){throw this.handleUnauthorizedError(e),e}},sign:async e=>{if(!this.connected||!this.signer)throw o.standardErrors.provider.unauthorized(\"Must call 'eth_requestAccounts' before other methods\");try{return await this.signer.request(e)}catch(e){throw this.handleUnauthorizedError(e),e}},fetch:e=>(0,d.fetchRPCRequest)(e,this.chain),state:e=>{let t=()=>{if(this.connected)return this.accounts;throw o.standardErrors.provider.unauthorized(\"Must call 'eth_requestAccounts' before other methods\")};switch(e.method){case\"eth_chainId\":return(0,u.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id));case\"net_version\":return this.chain.id;case\"eth_accounts\":return t();case\"eth_coinbase\":return t()[0];default:return this.handlers.unsupported(e)}},deprecated:({method:e})=>{throw o.standardErrors.rpc.methodNotSupported(`Method ${e} is deprecated.`)},unsupported:({method:e})=>{throw o.standardErrors.rpc.methodNotSupported(`Method ${e} is not supported.`)}},this.isCoinbaseWallet=!0,this.updateListener={onAccountsUpdate:({accounts:e,source:t})=>{(0,u.areAddressArraysEqual)(this.accounts,e)||(this.accounts=e,\"storage\"!==t&&this.emit(\"accountsChanged\",this.accounts))},onChainUpdate:({chain:e,source:t})=>{(e.id!==this.chain.id||e.rpcUrl!==this.chain.rpcUrl)&&(this.chain=e,\"storage\"!==t&&this.emit(\"chainChanged\",(0,u.hexStringFromIntNumber)((0,l.IntNumber)(e.id))))}},this.metadata=i,this.preference=f,this.communicator=new h.Communicator(a),this.chain={id:null!==(r=null===(t=i.appChainIds)||void 0===t?void 0:t[0])&&void 0!==r?r:1};let p=(0,c.loadSignerType)();this.signer=p?this.initSigner(p):null}get connected(){return this.accounts.length>0}async request(e){var t;try{let r=(0,d.checkErrorForInvalidRequestArgs)(e);if(r)throw r;let n=null!==(t=(0,f.determineMethodCategory)(e.method))&&void 0!==t?t:\"fetch\";return this.handlers[n](e)}catch(t){return Promise.reject((0,a.serializeError)(t,e.method))}}handleUnauthorizedError(e){e.code===o.standardErrorCodes.provider.unauthorized&&this.disconnect()}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: \"eth_requestAccounts\" }) instead.'),await this.request({method:\"eth_requestAccounts\"})}async disconnect(){this.accounts=[],this.chain={id:1},p.ScopedLocalStorage.clearAll(),this.emit(\"disconnect\",o.standardErrors.provider.disconnected(\"User initiated disconnection\"))}requestSignerSelection(){return(0,c.fetchSignerType)({communicator:this.communicator,preference:this.preference,metadata:this.metadata})}initSigner(e){return(0,c.createSigner)({signerType:e,metadata:this.metadata,communicator:this.communicator,updateListener:this.updateListener})}}t.CoinbaseWalletProvider=g},46111:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.CoinbaseWalletSDK=void 0;let n=r(5814),i=r(5777),s=r(9876),o=r(54750),a=r(98997),l=r(66320);class u{constructor(e){this.metadata={appName:e.appName||\"Dapp\",appLogoUrl:e.appLogoUrl||(0,a.getFavicon)(),appChainIds:e.appChainIds||[]},this.storeLatestVersion()}makeWeb3Provider(e={options:\"all\"}){var t;let r={metadata:this.metadata,preference:e};return null!==(t=(0,l.getCoinbaseInjectedProvider)(r))&&void 0!==t?t:new i.CoinbaseWalletProvider(r)}getCoinbaseWalletLogo(e,t=240){return(0,n.walletLogo)(e,t)}storeLatestVersion(){new s.ScopedLocalStorage(\"CBWSDK\").setItem(\"VERSION\",o.LIB_VERSION)}}t.CoinbaseWalletSDK=u},5814:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>{let r;switch(e){case\"standard\":default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case\"circle\":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case\"text\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\"textWithLogo\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case\"textLight\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},42057:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Communicator=void 0;let n=r(54750),i=r(64583),s=r(99285),o=r(39172);class a{constructor(e=s.CB_KEYS_URL){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{(await this.waitForPopupLoaded()).postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,r)=>{let n=r=>{if(r.origin!==this.url.origin)return;let i=r.data;e(i)&&(t(i),window.removeEventListener(\"message\",n),this.listeners.delete(n))};window.addEventListener(\"message\",n),this.listeners.set(n,{reject:r})}),this.disconnect=()=>{(0,i.closePopup)(this.popup),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(o.standardErrors.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?this.popup:(this.popup=(0,i.openPopup)(this.url),this.onMessage(({event:e})=>\"PopupUnload\"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>\"PopupLoaded\"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:n.LIB_VERSION}})}).then(()=>{if(!this.popup)throw o.standardErrors.rpc.internal();return this.popup})),this.url=new URL(e)}}t.Communicator=a},64583:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.closePopup=t.openPopup=void 0;let n=r(39172);t.openPopup=function(e){let t=(window.innerWidth-420)/2+window.screenX,r=(window.innerHeight-540)/2+window.screenY,i=window.open(e,\"Smart Wallet\",`width=420, height=540, left=${t}, top=${r}`);if(null==i||i.focus(),!i)throw n.standardErrors.rpc.internal(\"Pop up window failed to open\");return i},t.closePopup=function(e){e&&!e.closed&&e.close()}},99285:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.CBW_MOBILE_DEEPLINK_URL=t.WALLETLINK_URL=t.CB_KEYS_URL=void 0,t.CB_KEYS_URL=\"https://keys.coinbase.com/connect\",t.WALLETLINK_URL=\"https://www.walletlink.org\",t.CBW_MOBILE_DEEPLINK_URL=\"https://go.cb-w.com/walletlink\"},4406:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.errorValues=t.standardErrorCodes=void 0,t.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},t.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}},71839:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.standardErrors=void 0;let n=r(4406),i=r(86687);function s(e,t){let[r,n]=a(t);return new l(e,r||(0,i.getMessageFromCode)(e),n)}function o(e,t){let[r,n]=a(t);return new u(e,r||(0,i.getMessageFromCode)(e),n)}function a(e){if(e){if(\"string\"==typeof e)return[e];if(\"object\"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&\"string\"!=typeof t)throw Error(\"Must specify string message.\");return[t||void 0,r]}}return[]}t.standardErrors={rpc:{parse:e=>s(n.standardErrorCodes.rpc.parse,e),invalidRequest:e=>s(n.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>s(n.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>s(n.standardErrorCodes.rpc.methodNotFound,e),internal:e=>s(n.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||\"object\"!=typeof e||Array.isArray(e))throw Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('\"code\" must be an integer such that: -32099 <= code <= -32005');return s(t,e)},invalidInput:e=>s(n.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>s(n.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>s(n.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>s(n.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>s(n.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>s(n.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>o(n.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>o(n.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>o(n.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>o(n.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>o(n.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>o(n.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||\"object\"!=typeof e||Array.isArray(e))throw Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:r,data:n}=e;if(!r||\"string\"!=typeof r)throw Error('\"message\" must be a nonempty string');return new u(t,r,n)}}};class l extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('\"code\" must be an integer.');if(!t||\"string\"!=typeof t)throw Error('\"message\" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}}class u extends l{constructor(e,t,r){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('\"code\" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}},39172:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.standardErrors=t.standardErrorCodes=void 0;var n=r(4406);Object.defineProperty(t,\"standardErrorCodes\",{enumerable:!0,get:function(){return n.standardErrorCodes}});var i=r(71839);Object.defineProperty(t,\"standardErrors\",{enumerable:!0,get:function(){return i.standardErrors}})},47224:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.serializeError=void 0;let n=r(83705),i=r(54750),s=r(4406),o=r(86687);t.serializeError=function(e,t){let r=(0,o.serialize)(\"string\"==typeof e?{message:e,code:s.standardErrorCodes.rpc.internal}:(0,n.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e,{shouldIncludeStack:!0}),a=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");a.searchParams.set(\"version\",i.LIB_VERSION),a.searchParams.set(\"code\",r.code.toString());let l=function(e,t){let r=null==e?void 0:e.method;if(r)return r;if(void 0===t);else if(\"string\"==typeof t)return t;else if(!Array.isArray(t))return t.method;else if(t.length>0)return t[0].method}(r.data,t);return l&&a.searchParams.set(\"method\",l),a.searchParams.set(\"message\",r.message),Object.assign(Object.assign({},r),{docUrl:a.href})}},86687:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.serialize=t.getErrorCode=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=r(4406),i=\"Unspecified error message.\";function s(e,r=i){if(e&&Number.isInteger(e)){let r=e.toString();if(l(n.errorValues,r))return n.errorValues[r].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function o(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(n.errorValues[t]||e>=-32099&&e<=-32e3)}function a(e){return e&&\"object\"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return\"object\"==typeof e&&null!==e&&t in e&&\"string\"==typeof e[t]}t.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\",t.getMessageFromCode=s,t.isValidCode=o,t.getErrorCode=function(e){var t;return\"number\"==typeof e?e:\"object\"==typeof e&&null!==e&&(\"number\"==typeof e.code||\"number\"==typeof e.errorCode)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0},t.serialize=function(e,{shouldIncludeStack:t=!1}={}){let r={};return e&&\"object\"==typeof e&&!Array.isArray(e)&&l(e,\"code\")&&o(e.code)?(r.code=e.code,e.message&&\"string\"==typeof e.message?(r.message=e.message,l(e,\"data\")&&(r.data=e.data)):(r.message=s(r.code),r.data={originalError:a(e)})):(r.code=n.standardErrorCodes.rpc.internal,r.message=u(e,\"message\")?e.message:i,r.data={originalError:a(e)}),t&&(r.stack=u(e,\"stack\")?e.stack:void 0),r}},17475:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.determineMethodCategory=void 0;let r={handshake:[\"eth_requestAccounts\"],sign:[\"eth_ecRecover\",\"personal_sign\",\"personal_ecRecover\",\"eth_signTransaction\",\"eth_sendTransaction\",\"eth_signTypedData_v1\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"eth_signTypedData\",\"wallet_addEthereumChain\",\"wallet_switchEthereumChain\",\"wallet_watchAsset\",\"wallet_getCapabilities\",\"wallet_sendCalls\",\"wallet_showCallsStatus\"],state:[\"eth_chainId\",\"eth_accounts\",\"eth_coinbase\",\"net_version\"],deprecated:[\"eth_sign\",\"eth_signTypedData_v2\"],unsupported:[\"eth_subscribe\",\"eth_unsubscribe\"],fetch:[]};t.determineMethodCategory=function(e){for(let t in r)if(r[t].includes(e))return t}},34468:function(e,t){\"use strict\";function r(){return e=>e}Object.defineProperty(t,\"__esModule\",{value:!0}),t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=r,t.HexString=r(),t.AddressString=r(),t.BigIntString=r(),t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=r()},98997:function(e,t,r){\"use strict\";var n=r(9109).Buffer;Object.defineProperty(t,\"__esModule\",{value:!0}),t.areAddressArraysEqual=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBigInt=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBigInt=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let i=r(39172),s=r(34468),o=/^[0-9]*$/,a=/^[a-f0-9]*$/;function l(e){return[...e].map(e=>e.toString(16).padStart(2,\"0\")).join(\"\")}function u(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function c(e){return u(e)?e.slice(2):e}function d(e){return u(e)?`0x${e.slice(2)}`:`0x${e}`}function h(e){if(\"string\"!=typeof e)return!1;let t=c(e).toLowerCase();return a.test(t)}function f(e,t=!1){if(\"string\"==typeof e){let r=c(e).toLowerCase();if(a.test(r))return(0,s.HexString)(t?`0x${r}`:r)}throw i.standardErrors.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function p(e,t=!1){let r=f(e,!1);return r.length%2==1&&(r=(0,s.HexString)(`0${r}`)),t?(0,s.HexString)(`0x${r}`):r}function g(e){if(\"number\"==typeof e&&Number.isInteger(e))return(0,s.IntNumber)(e);if(\"string\"==typeof e){if(o.test(e))return(0,s.IntNumber)(Number(e));if(h(e))return(0,s.IntNumber)(Number(BigInt(p(e,!0))))}throw i.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function m(e){if(null==e||\"function\"!=typeof e.constructor)return!1;let{constructor:t}=e;return\"function\"==typeof t.config&&\"number\"==typeof t.EUCLID}t.randomBytesHex=function(e){return l(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=l,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},t.hexStringFromBuffer=function(e,t=!1){let r=e.toString(\"hex\");return(0,s.HexString)(t?`0x${r}`:r)},t.bigIntStringFromBigInt=function(e){return(0,s.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,s.IntNumber)(Number(BigInt(p(e,!0))))},t.hexStringFromIntNumber=function(e){return(0,s.HexString)(`0x${BigInt(e).toString(16)}`)},t.has0xPrefix=u,t.strip0x=c,t.prepend0x=d,t.isHexString=h,t.ensureHexString=f,t.ensureEvenLengthHexString=p,t.ensureAddressString=function(e){if(\"string\"==typeof e){let t=c(e).toLowerCase();if(h(t)&&40===t.length)return(0,s.AddressString)(d(t))}throw i.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)},t.ensureBuffer=function(e){if(n.isBuffer(e))return e;if(\"string\"==typeof e){if(h(e)){let t=p(e,!1);return n.from(t,\"hex\")}return n.from(e,\"utf8\")}throw i.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)},t.ensureIntNumber=g,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,s.RegExpString)(e.toString());throw i.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)},t.ensureBigInt=function(e){if(null!==e&&(\"bigint\"==typeof e||m(e)))return BigInt(e.toString(10));if(\"number\"==typeof e)return BigInt(g(e));if(\"string\"==typeof e){if(o.test(e))return BigInt(e);if(h(e))return BigInt(p(e,!0))}throw i.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)},t.ensureParsedJSONObject=function(e){if(\"string\"==typeof e)return JSON.parse(e);if(\"object\"==typeof e)return e;throw i.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)},t.isBigNumber=m,t.range=function(e,t){return Array.from({length:t-e},(t,r)=>e+r)},t.getFavicon=function(){let e=document.querySelector('link[sizes=\"192x192\"]')||document.querySelector('link[sizes=\"180x180\"]')||document.querySelector('link[rel=\"icon\"]')||document.querySelector('link[rel=\"shortcut icon\"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute(\"href\"):null;return!n||n.startsWith(\"javascript:\")||n.startsWith(\"vbscript:\")?null:n.startsWith(\"http://\")||n.startsWith(\"https://\")||n.startsWith(\"data:\")?n:n.startsWith(\"//\")?t+n:`${t}//${r}${n}`},t.areAddressArraysEqual=function(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}},86080:function(e,t,r){\"use strict\";let n=r(46111);t.ZP=n.CoinbaseWalletSDK,r(46111)},7977:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCWKeyManager=void 0;let n=r(89665),i=r(9876),s={storageKey:\"ownPrivateKey\",keyType:\"private\"},o={storageKey:\"ownPublicKey\",keyType:\"public\"},a={storageKey:\"peerPublicKey\",keyType:\"public\"};class l{constructor(){this.storage=new i.ScopedLocalStorage(\"CBWSDK\",\"SCWKeyManager\"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(a,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(o.storageKey),this.storage.removeItem(s.storageKey),this.storage.removeItem(a.storageKey)}async generateKeyPair(){let e=await (0,n.generateKeyPair)();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(s,e.privateKey),await this.storeKey(o,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(s)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(o)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(a)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await (0,n.deriveSharedSecret)(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?(0,n.importKeyFromHexString)(e.keyType,t):null}async storeKey(e,t){let r=await (0,n.exportKeyToHexString)(e.keyType,t);this.storage.setItem(e.storageKey,r)}}t.SCWKeyManager=l},51902:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCWSigner=void 0;let n=r(7977),i=r(5561),s=r(39172),o=r(98997),a=r(89665);class l{constructor(e){this.metadata=e.metadata,this.communicator=e.communicator,this.keyManager=new n.SCWKeyManager,this.stateManager=new i.SCWStateManager({appChainIds:this.metadata.appChainIds,updateListener:e.updateListener}),this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(){let e=await this.createRequestMessage({handshake:{method:\"eth_requestAccounts\",params:this.metadata}}),t=await this.communicator.postRequestAndWaitForResponse(e);if(\"failure\"in t.content)throw t.content.failure;let r=await (0,a.importKeyFromHexString)(\"public\",t.sender);await this.keyManager.setPeerPublicKey(r);let n=await this.decryptResponseMessage(t);this.updateInternalState({method:\"eth_requestAccounts\"},n);let i=n.result;if(\"error\"in i)throw i.error;return this.stateManager.accounts}async request(e){let t=this.tryLocalHandling(e);if(void 0!==t){if(t instanceof Error)throw t;return t}await this.communicator.waitForPopupLoaded();let r=await this.sendEncryptedRequest(e),n=await this.decryptResponseMessage(r);this.updateInternalState(e,n);let i=n.result;if(\"error\"in i)throw i.error;return i.value}async disconnect(){this.stateManager.clear(),await this.keyManager.clear()}tryLocalHandling(e){var t;switch(e.method){case\"wallet_switchEthereumChain\":{let r=e.params;if(!r||!(null===(t=r[0])||void 0===t?void 0:t.chainId))throw s.standardErrors.rpc.invalidParams();let n=(0,o.ensureIntNumber)(r[0].chainId);return this.stateManager.switchChain(n)?null:void 0}case\"wallet_getCapabilities\":{let e=this.stateManager.walletCapabilities;if(!e)throw s.standardErrors.provider.unauthorized(\"No wallet capabilities found, please disconnect and reconnect\");return e}default:return}}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw s.standardErrors.provider.unauthorized(\"No valid session found, try requestAccounts before other methods\");let r=await (0,a.encryptContent)({action:e,chainId:this.stateManager.activeChain.id},t),n=await this.createRequestMessage({encrypted:r});return this.communicator.postRequestAndWaitForResponse(n)}async createRequestMessage(e){let t=await (0,a.exportKeyToHexString)(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){let t=e.content;if(\"failure\"in t)throw t.failure;let r=await this.keyManager.getSharedSecret();if(!r)throw s.standardErrors.provider.unauthorized(\"Invalid session\");return(0,a.decryptContent)(t.encrypted,r)}updateInternalState(e,t){var r,n;let i=null===(r=t.data)||void 0===r?void 0:r.chains;i&&this.stateManager.updateAvailableChains(i);let s=null===(n=t.data)||void 0===n?void 0:n.capabilities;s&&this.stateManager.updateWalletCapabilities(s);let a=t.result;if(!(\"error\"in a))switch(e.method){case\"eth_requestAccounts\":{let e=a.value;this.stateManager.updateAccounts(e);break}case\"wallet_switchEthereumChain\":{if(null!==a.value)return;let t=e.params,r=(0,o.ensureIntNumber)(t[0].chainId);this.stateManager.switchChain(r)}}}}t.SCWSigner=l},5561:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCWStateManager=void 0;let n=r(9876),i=\"accounts\",s=\"activeChain\",o=\"availableChains\",a=\"walletCapabilities\";class l{get accounts(){return this._accounts}get activeChain(){return this._activeChain}get walletCapabilities(){return this._walletCapabilities}constructor(e){var t,r;this.storage=new n.ScopedLocalStorage(\"CBWSDK\",\"SCWStateManager\"),this.updateListener=e.updateListener,this.availableChains=this.loadItemFromStorage(o),this._walletCapabilities=this.loadItemFromStorage(a);let l=this.loadItemFromStorage(i),u=this.loadItemFromStorage(s);l&&this.updateListener.onAccountsUpdate({accounts:l,source:\"storage\"}),u&&this.updateListener.onChainUpdate({chain:u,source:\"storage\"}),this._accounts=l||[],this._activeChain=u||{id:null!==(r=null===(t=e.appChainIds)||void 0===t?void 0:t[0])&&void 0!==r?r:1}}updateAccounts(e){this._accounts=e,this.storeItemToStorage(i,e),this.updateListener.onAccountsUpdate({accounts:e,source:\"wallet\"})}switchChain(e){var t;let r=null===(t=this.availableChains)||void 0===t?void 0:t.find(t=>t.id===e);return!!r&&(r===this._activeChain||(this._activeChain=r,this.storeItemToStorage(s,r),this.updateListener.onChainUpdate({chain:r,source:\"wallet\"}),!0))}updateAvailableChains(e){if(!e||0===Object.keys(e).length)return;let t=Object.entries(e).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.availableChains=t,this.storeItemToStorage(o,t),this.switchChain(this._activeChain.id)}updateWalletCapabilities(e){this._walletCapabilities=e,this.storeItemToStorage(a,e)}storeItemToStorage(e,t){this.storage.setItem(e,JSON.stringify(t))}loadItemFromStorage(e){let t=this.storage.getItem(e);return t?JSON.parse(t):void 0}clear(){this.storage.clear()}}t.SCWStateManager=l},96741:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.createSigner=t.fetchSignerType=t.storeSignerType=t.loadSignerType=void 0;let n=r(51902),i=r(86510),s=r(39172),o=r(66320),a=r(9876),l=\"SignerType\",u=new a.ScopedLocalStorage(\"CBWSDK\",\"SignerConfigurator\");async function c(e){let{communicator:t,metadata:r}=e;d(t,r).catch(()=>{});let n={id:crypto.randomUUID(),event:\"selectSignerType\",data:e.preference},{data:i}=await t.postRequestAndWaitForResponse(n);return i}async function d(e,t){await e.onMessage(({event:e})=>\"WalletLinkSessionRequest\"===e);let r=new i.WalletLinkSigner({metadata:t});e.postMessage({event:\"WalletLinkUpdate\",data:{session:r.getSession()}}),await r.handshake(),e.postMessage({event:\"WalletLinkUpdate\",data:{connected:!0}})}t.loadSignerType=function(){return u.getItem(l)},t.storeSignerType=function(e){u.setItem(l,e)},t.fetchSignerType=c,t.createSigner=function(e){let{signerType:t,metadata:r,communicator:a,updateListener:l}=e;switch(t){case\"scw\":return new n.SCWSigner({metadata:r,updateListener:l,communicator:a});case\"walletlink\":return new i.WalletLinkSigner({metadata:r,updateListener:l});case\"extension\":{let e=(0,o.getCoinbaseInjectedSigner)();if(!e)throw s.standardErrors.rpc.internal(\"injected signer not found\");return e}}}},86510:function(e,t,r){\"use strict\";var n=r(9109).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkSigner=void 0;let s=i(r(80745)),o=r(56663),a=r(65896),l=r(83705),u=r(78461),c=r(99285),d=r(39172),h=r(98997),f=r(9876),p=\"DefaultChainId\",g=\"DefaultJsonRpcUrl\";class m{constructor(e){var t,r;this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1;let{appName:n,appLogoUrl:i}=e.metadata;this._appName=n,this._appLogoUrl=i,this._storage=new f.ScopedLocalStorage(\"walletlink\",c.WALLETLINK_URL),this.updateListener=e.updateListener,this._relayEventManager=new a.RelayEventManager,this._jsonRpcUrlFromOpts=\"\";let s=this._storage.getItem(o.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let e=s.split(\" \");\"\"!==e[0]&&(this._addresses=e.map(e=>(0,h.ensureAddressString)(e)),null===(t=this.updateListener)||void 0===t||t.onAccountsUpdate({accounts:this._addresses,source:\"storage\"}))}this._storage.getItem(p)&&(null===(r=this.updateListener)||void 0===r||r.onChainUpdate({chain:{id:this.getChainId(),rpcUrl:this.jsonRpcUrl},source:\"storage\"}),this.hasMadeFirstChainChangedEmission=!0),this.initializeRelay()}getSession(){let{id:e,secret:t}=this.initializeRelay().getWalletLinkSession();return{id:e,secret:t}}async handshake(){return await this.request({method:\"eth_requestAccounts\"})}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(g))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(g,e)}updateProviderInfo(e,t){var r;this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(p,t.toString(10)),(0,h.ensureIntNumber)(t)===n&&this.hasMadeFirstChainChangedEmission||(null===(r=this.updateListener)||void 0===r||r.onChainUpdate({chain:{id:t,rpcUrl:e},source:\"wallet\"}),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,r,n,i,s){let o=this.initializeRelay(),a=await o.watchAsset(e,t,r,n,i,null==s?void 0:s.toString());return!(0,l.isErrorResponse)(a)&&!!a.result}async addEthereumChain(e,t,r,n,i,s){var o,a;if((0,h.ensureIntNumber)(e)===this.getChainId())return!1;let u=this.initializeRelay();this._isAuthorized()||await u.requestEthereumAccounts();let c=await u.addEthereumChain(e.toString(),t,i,r,n,s);return!(0,l.isErrorResponse)(c)&&((null===(o=c.result)||void 0===o?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(a=c.result)||void 0===a?void 0:a.isApproved)===!0)}async switchEthereumChain(e){let t=this.initializeRelay(),r=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0);if((0,l.isErrorResponse)(r)){if(!r.errorCode)return;if(r.errorCode===d.standardErrorCodes.provider.unsupportedChain)throw d.standardErrors.provider.unsupportedChain();throw d.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode})}let n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,e)}async disconnect(){this._relay&&this._relay.resetAndReload(),this._storage.clear()}async request(e){try{return this._request(e).catch(e=>{throw e})}catch(e){return Promise.reject(e)}}async _request(e){if(!e||\"object\"!=typeof e||Array.isArray(e))throw d.standardErrors.rpc.invalidRequest({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:r}=e;if(\"string\"!=typeof t||0===t.length)throw d.standardErrors.rpc.invalidRequest({message:\"'args.method' must be a non-empty string.\",data:e});if(void 0!==r&&!Array.isArray(r)&&(\"object\"!=typeof r||null===r))throw d.standardErrors.rpc.invalidRequest({message:\"'args.params' must be an object or array if provided.\",data:e});let n=void 0===r?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:n,jsonrpc:\"2.0\",id:i})).result}_setAddresses(e,t){var r;if(!Array.isArray(e))throw Error(\"addresses is not an array\");let n=e.map(e=>(0,h.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,null===(r=this.updateListener)||void 0===r||r.onAccountsUpdate({accounts:n,source:\"wallet\"}),this._storage.setItem(o.LOCAL_STORAGE_ADDRESSES_KEY,n.join(\" \")))}_sendRequestAsync(e){return new Promise((t,r)=>{try{let r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:\"2.0\",id:e.id,result:r})}catch(e){return r(e)}this._handleAsynchronousMethods(e).then(r=>r&&t(Object.assign(Object.assign({},r),{id:e.id}))).catch(e=>r(e))})}_handleSynchronousMethods(e){let{method:t}=e;switch(t){case\"eth_accounts\":return this._eth_accounts();case\"eth_coinbase\":return this._eth_coinbase();case\"net_version\":return this._net_version();case\"eth_chainId\":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,r=e.params||[];switch(t){case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_sign\":return this._eth_sign(r);case\"eth_ecRecover\":return this._eth_ecRecover(r);case\"personal_sign\":return this._personal_sign(r);case\"personal_ecRecover\":return this._personal_ecRecover(r);case\"eth_signTransaction\":return this._eth_signTransaction(r);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(r);case\"eth_sendTransaction\":return this._eth_sendTransaction(r);case\"eth_signTypedData_v1\":return this._eth_signTypedData_v1(r);case\"eth_signTypedData_v2\":default:return this._throwUnsupportedMethodError();case\"eth_signTypedData_v3\":return this._eth_signTypedData_v3(r);case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this._eth_signTypedData_v4(r);case\"wallet_addEthereumChain\":return this._wallet_addEthereumChain(r);case\"wallet_switchEthereumChain\":return this._wallet_switchEthereumChain(r);case\"wallet_watchAsset\":return this._wallet_watchAsset(r)}}_isKnownAddress(e){try{let t=(0,h.ensureAddressString)(e);return this._addresses.map(e=>(0,h.ensureAddressString)(e)).includes(t)}catch(e){}return!1}_ensureKnownAddress(e){if(!this._isKnownAddress(e))throw Error(\"Unknown Ethereum address\")}_prepareTransactionParams(e){let t=e.from?(0,h.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(t);let r=e.to?(0,h.ensureAddressString)(e.to):null,i=null!=e.value?(0,h.ensureBigInt)(e.value):BigInt(0),s=e.data?(0,h.ensureBuffer)(e.data):n.alloc(0),o=null!=e.nonce?(0,h.ensureIntNumber)(e.nonce):null,a=null!=e.gasPrice?(0,h.ensureBigInt)(e.gasPrice):null,l=null!=e.maxFeePerGas?(0,h.ensureBigInt)(e.maxFeePerGas):null;return{fromAddress:t,toAddress:r,weiValue:i,data:s,nonce:o,gasPriceInWei:a,maxFeePerGas:l,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?(0,h.ensureBigInt)(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?(0,h.ensureBigInt)(e.gas):null,chainId:e.chainId?(0,h.ensureIntNumber)(e.chainId):this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw d.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw d.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,r,n){this._ensureKnownAddress(t);try{let i=this.initializeRelay(),s=await i.signEthereumMessage(e,t,r,n);if((0,l.isErrorResponse)(s))throw Error(s.errorMessage);return{jsonrpc:\"2.0\",id:0,result:s.result}}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied message signature\");throw e}}async _ethereumAddressFromSignedMessage(e,t,r){let n=this.initializeRelay(),i=await n.ethereumAddressFromSignedMessage(e,t,r);if((0,l.isErrorResponse)(i))throw Error(i.errorMessage);return{jsonrpc:\"2.0\",id:0,result:i.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,h.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(p);if(!e)return(0,h.ensureIntNumber)(1);let t=parseInt(e,10);return(0,h.ensureIntNumber)(t)}async _eth_requestAccounts(){let e;if(this._isAuthorized())return Promise.resolve({jsonrpc:\"2.0\",id:0,result:this._addresses});try{let t=this.initializeRelay();if(e=await t.requestEthereumAccounts(),(0,l.isErrorResponse)(e))throw Error(e.errorMessage)}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied account authorization\");throw e}if(!e.result)throw Error(\"accounts received is empty\");return this._setAddresses(e.result),{jsonrpc:\"2.0\",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._signEthereumMessage(r,t,!1)}_eth_ecRecover(e){let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureAddressString)(e[1]);return this._signEthereumMessage(t,r,!0)}_personal_ecRecover(e){let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),r=await e.signEthereumTransaction(t);if((0,l.isErrorResponse)(r))throw Error(r.errorMessage);return{jsonrpc:\"2.0\",id:0,result:r.result}}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\");throw e}}async _eth_sendRawTransaction(e){let t=(0,h.ensureBuffer)(e[0]),r=this.initializeRelay(),n=await r.submitEthereumTransaction(t,this.getChainId());if((0,l.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:\"2.0\",id:0,result:n.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),r=await e.signAndSubmitEthereumTransaction(t);if((0,l.isErrorResponse)(r))throw Error(r.errorMessage);return{jsonrpc:\"2.0\",id:0,result:r.result}}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,h.ensureParsedJSONObject)(e[0]),r=(0,h.ensureAddressString)(e[1]);this._ensureKnownAddress(r);let n=s.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let n=s.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let n=s.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,t,!1,i)}async _wallet_addEthereumChain(e){var t,r,n,i;let s=e[0];if((null===(t=s.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"please pass in at least 1 rpcUrl\"}};if(!s.chainName||\"\"===s.chainName.trim())throw d.standardErrors.rpc.invalidParams(\"chainName is a required field\");if(!s.nativeCurrency)throw d.standardErrors.rpc.invalidParams(\"nativeCurrency is a required field\");let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(n=s.blockExplorerUrls)&&void 0!==n?n:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency)?{jsonrpc:\"2.0\",id:0,result:null}:{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"unable to add ethereum chain\"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:\"2.0\",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw d.standardErrors.rpc.invalidParams(\"Type is required\");if((null==t?void 0:t.type)!==\"ERC20\")throw d.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw d.standardErrors.rpc.invalidParams(\"Options are required\");if(!(null==t?void 0:t.options.address))throw d.standardErrors.rpc.invalidParams(\"Address is required\");let r=this.getChainId(),{address:n,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:\"2.0\",id:0,result:await this.watchAsset(t.type,n,i,o,s,r)}}initializeRelay(){if(!this._relay){let e=new u.WalletLinkRelay({linkAPIUrl:c.WALLETLINK_URL,storage:this._storage});e.setAppInfo(this._appName,this._appLogoUrl),e.attachUI(),e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),this._relay=e}return this._relay}}t.WalletLinkSigner=m},65896:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.RelayEventManager=void 0;let n=r(98997);class i{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,n.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}t.RelayEventManager=i},78461:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkRelay=void 0;let n=r(32485),i=r(56663),s=r(65896),o=r(42922),a=r(83705),l=r(44412),u=r(34614),c=r(78826),d=r(39172),h=r(98997),f=r(9876);class p{constructor(e){this.accountsCallback=null,this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.chainCallback=null,this.dappDefaultChain=1,this.isMobileWeb=(0,l.isMobileWeb)(),this.appName=\"\",this.appLogoUrl=null,this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(i.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let r=t.split(\" \"),n=\"true\"===this.storage.getItem(\"IsStandaloneSigning\");\"\"===r[0]||e||!this._session.linked||n||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(e,t))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),p.accountRequestCallbackIds.size>0&&(Array.from(p.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(Object.assign(Object.assign({},{type:\"WEB3_RESPONSE\",id:t,response:{method:\"requestEthereumAccounts\",result:[e]}}),{id:t}))}),p.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage;let{session:t,ui:r,connection:n}=this.subscribe();this._session=t,this.connection=n,this.relayEventManager=new s.RelayEventManager,this.ui=r}subscribe(){let e=o.WalletLinkSession.load(this.storage)||new o.WalletLinkSession(this.storage).save(),{linkAPIUrl:t}=this,r=new n.WalletLinkConnection({session:e,linkAPIUrl:t,listener:this}),i=this.isMobileWeb?new c.WLMobileRelayUI:new u.WalletLinkRelayUI;return r.connect(),{session:e,ui:i,connection:r}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata(\"__destroyed\",\"1\"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{this.connection.destroy();let e=o.WalletLinkSession.load(this.storage);(null==e?void 0:e.id)===this._session.id&&f.ScopedLocalStorage.clearAll(),document.location.reload()}).catch(e=>{})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,r,n){return this.sendRequest({method:\"signEthereumMessage\",params:{message:(0,h.hexStringFromBuffer)(e,!0),address:t,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(e,t,r){return this.sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:(0,h.hexStringFromBuffer)(e,!0),signature:(0,h.hexStringFromBuffer)(t,!0),addPrefix:r}})}signEthereumTransaction(e){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,h.bigIntStringFromBigInt)(e.weiValue),data:(0,h.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,h.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,h.bigIntStringFromBigInt)(e.weiValue),data:(0,h.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,h.bigIntStringFromBigInt)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,h.bigIntStringFromBigInt)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,h.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:(0,h.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:\"scanQRCode\",params:{regExp:e}})}getWalletLinkSession(){return this._session}genericRequest(e,t){return this.sendRequest({method:\"generic\",params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,r=(0,h.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,n),null==t||t()};return new Promise((i,s)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(r,e=>{if(null==t||t(),(0,a.isErrorResponse)(e))return s(Error(e.errorMessage));i(e)}),this.publishWeb3RequestEvent(r,e)})}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e}publishWeb3RequestEvent(e,t){let r={type:\"WEB3_REQUEST\",id:e,request:t};this.publishEvent(\"Web3Request\",r,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r.id,response:{method:t.method,errorMessage:e.message}})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof c.WLMobileRelayUI)switch(e){case\"requestEthereumAccounts\":case\"switchEthereumChain\":return;default:window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){this.publishEvent(\"Web3RequestCanceled\",{type:\"WEB3_REQUEST_CANCELED\",id:e},!1).then()}publishEvent(e,t,r){return this.connection.publishEvent(e,t,r)}handleWeb3ResponseMessage(e){let{response:t}=e;if(\"requestEthereumAccounts\"===t.method){p.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),p.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,r){var n;let i=null!==(n=null==r?void 0:r.message)&&void 0!==n?n:\"Unspecified error message.\";this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:e,response:{method:t,errorMessage:i}})}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:\"requestEthereumAccounts\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,h.randomBytesHex)(8);return new Promise((r,n)=>{this.relayEventManager.callbacks.set(t,e=>{if((0,a.isErrorResponse)(e))return n(Error(e.errorMessage));r(e)}),p.accountRequestCallbackIds.add(t),this.publishWeb3RequestEvent(t,e)})}watchAsset(e,t,r,n,i,s){let o={method:\"watchAsset\",params:{type:e,options:{address:t,symbol:r,decimals:n,image:i},chainId:s}},l=null,u=(0,h.randomBytesHex)(8);return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,e),null==l||l()},onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(u,r=>{if(null==l||l(),(0,a.isErrorResponse)(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(u,o)})}addEthereumChain(e,t,r,n,i,s){let o={method:\"addEthereumChain\",params:{chainId:e,rpcUrls:t,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:s}},l=null,u=(0,h.randomBytesHex)(8);return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,e),null==l||l()},onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(u,r=>{if(null==l||l(),(0,a.isErrorResponse)(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(u,o)})}switchEthereumChain(e,t){let r={method:\"switchEthereumChain\",params:Object.assign({chainId:e},{address:t})},n=(0,h.randomBytesHex)(8);return new Promise((e,t)=>{this.relayEventManager.callbacks.set(n,r=>(0,a.isErrorResponse)(r)&&r.errorCode?t(d.standardErrors.provider.custom({code:r.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"})):(0,a.isErrorResponse)(r)?t(Error(r.errorMessage)):void e(r)),this.publishWeb3RequestEvent(n,r)})}}t.WalletLinkRelay=p,p.accountRequestCallbackIds=new Set},93007:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkCipher=void 0;let n=r(98997);class i{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error(\"secret must be 256 bits\");let r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey(\"raw\",(0,n.hexStringToUint8Array)(t),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},i,s.encode(e)),a=o.slice(o.byteLength-16),l=o.slice(0,o.byteLength-16),u=new Uint8Array(a),c=new Uint8Array(l),d=new Uint8Array([...r,...u,...c]);return(0,n.uint8ArrayToHex)(d)}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error(\"secret must be 256 bits\");return new Promise((r,i)=>{!async function(){let s=await crypto.subtle.importKey(\"raw\",(0,n.hexStringToUint8Array)(t),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),o=(0,n.hexStringToUint8Array)(e),a=o.slice(0,12),l=o.slice(12,28),u=new Uint8Array([...o.slice(28),...l]),c={name:\"AES-GCM\",iv:new Uint8Array(a)};try{let e=await window.crypto.subtle.decrypt(c,s,u),t=new TextDecoder;r(t.decode(e))}catch(e){i(e)}}()})}}t.WalletLinkCipher=i},32485:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkConnection=void 0;let n=r(56663),i=r(93007),s=r(99085),o=r(77730),a=r(34468);class l{constructor({session:e,linkAPIUrl:t,listener:r,WebSocketClass:l=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{e&&new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]).forEach((t,r)=>{let n=e[r];void 0!==n&&t(n)})},this.handleDestroyed=e=>{var t;\"1\"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;{let r=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(r)}},this.handleMetadataUpdated=async(e,t)=>{var r;{let n=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.metadataUpdated(e,n)}},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(n.WALLET_USER_NAME_KEY,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(n.APP_VERSION_KEY,e)},this.handleChainUpdated=async(e,t)=>{var r;{let n=await this.cipher.decrypt(e),i=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.chainUpdated(n,i)}},this.session=e,this.cipher=new i.WalletLinkCipher(e.secret),this.listener=r;let u=new o.WalletLinkWebSocket(`${t}/rpc`,l);u.setConnectionStateListener(async e=>{let t=!1;switch(e){case o.ConnectionState.DISCONNECTED:if(!this.destroyed){let e=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||u.connect().catch(()=>{e()})};e()}break;case o.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),t=!0}catch(e){}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case o.ConnectionState.CONNECTING:}this.connected!==t&&(this.connected=t)}),u.setIncomingDataListener(e=>{var t;switch(e.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let t=\"IsLinkedOK\"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":this.handleSessionMetadataUpdated(e.metadata);break;case\"Event\":this.handleIncomingEvent(e)}void 0!==e.id&&(null===(t=this.requestResolutions.get(e.id))||void 0===t||t(e))}),this.ws=u,this.http=new s.WalletLinkHTTP(t,e.id,e.key)}connect(){if(this.destroyed)throw Error(\"instance is destroyed\");this.ws.connect()}destroy(){this.destroyed=!0,this.ws.disconnect(),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var t;this._connected=e,e&&(null===(t=this.onceConnected)||void 0===t||t.call(this))}setOnceConnected(e){return new Promise(t=>{this.connected?e().then(t):this.onceConnected=()=>{e().then(t),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var t,r;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(r=this.listener)||void 0===r||r.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if(\"Event\"===e.type&&\"Web3Response\"===e.event){let r=JSON.parse(await this.cipher.decrypt(e.data));if(\"WEB3_RESPONSE\"!==r.type)return;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(r)}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error(\"Unable to check for unseen events\",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(e=>this.handleIncomingEvent(e))}async setSessionMetadata(e,t){let r={type:\"SetSessionConfig\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:t}};return this.setOnceConnected(async()=>{let e=await this.makeRequest(r);if(\"Fail\"===e.type)throw Error(e.error||\"failed to set session metadata\")})}async publishEvent(e,t,r=!1){let n=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,relaySource:\"coinbaseWalletExtension\"in window&&window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),i={type:\"PublishEvent\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:n,callWebhook:r};return this.setOnceLinked(async()=>{let e=await this.makeRequest(i);if(\"Fail\"===e.type)throw Error(e.error||\"failed to publish event\");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData(\"h\")}catch(e){}}async makeRequest(e,t=6e4){let r;let n=e.id;return this.sendData(e),Promise.race([new Promise((e,i)=>{r=window.setTimeout(()=>{i(Error(`request ${n} timed out`))},t)}),new Promise(e=>{this.requestResolutions.set(n,t=>{clearTimeout(r),e(t),this.requestResolutions.delete(n)})})])}async authenticate(){let e={type:\"HostSession\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},t=await this.makeRequest(e);if(\"Fail\"===t.type)throw Error(t.error||\"failed to authenticate\")}sendIsLinked(){let e={type:\"IsLinked\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:\"GetSessionConfig\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}}t.WalletLinkConnection=l},99085:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkHTTP=void 0;class r{constructor(e,t,r){this.linkAPIUrl=e,this.sessionId=t;let n=`${t}:${r}`;this.auth=`Basic ${btoa(n)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(e=>console.error(\"Unabled to mark event as failed:\",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:r,error:n}=await t.json();if(n)throw Error(`Check unseen events failed: ${n}`);let i=null!==(e=null==r?void 0:r.filter(e=>\"Web3Response\"===e.event).map(e=>({type:\"Event\",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(i),i}throw Error(`Check unseen events failed: ${t.status}`)}}t.WalletLinkHTTP=r},77730:function(e,t){\"use strict\";var r,n;Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkWebSocket=t.ConnectionState=void 0,(n=r||(t.ConnectionState=r={}))[n.DISCONNECTED=0]=\"DISCONNECTED\",n[n.CONNECTING=1]=\"CONNECTING\",n[n.CONNECTED=2]=\"CONNECTED\";class i{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,\"ws\")}async connect(){if(this.webSocket)throw Error(\"webSocket object is not null\");return new Promise((e,t)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(n=this.connectionStateListener)||void 0===n||n.call(this,r.CONNECTING),i.onclose=e=>{var n;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(n=this.connectionStateListener)||void 0===n||n.call(this,r.DISCONNECTED)},i.onopen=t=>{var n;e(),null===(n=this.connectionStateListener)||void 0===n||n.call(this,r.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(e=>this.sendData(e)),this.pendingData=[])},i.onmessage=e=>{var t,r;if(\"h\"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:\"Heartbeat\"});else try{let t=JSON.parse(e.data);null===(r=this.incomingDataListener)||void 0===r||r.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,r.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}t.WalletLinkWebSocket=i},56663:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0,t.WALLET_USER_NAME_KEY=\"walletUsername\",t.LOCAL_STORAGE_ADDRESSES_KEY=\"Addresses\",t.APP_VERSION_KEY=\"AppVersion\"},42922:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkSession=void 0;let n=r(42724),i=r(98997),s=\"session:id\",o=\"session:secret\",a=\"session:linked\";class l{constructor(e,t,r,s){this._storage=e,this._id=t||(0,i.randomBytesHex)(16),this._secret=r||(0,i.randomBytesHex)(32),this._key=new n.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\"hex\"),this._linked=!!s}static load(e){let t=e.getItem(s),r=e.getItem(a),n=e.getItem(o);return t&&n?new l(e,t,n,\"1\"===r):null}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(a,this._linked?\"1\":\"0\")}}t.WalletLinkSession=l},83705:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isErrorResponse=void 0,t.isErrorResponse=function(e){return void 0!==e.errorMessage}},78826:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WLMobileRelayUI=void 0;let n=r(30054),i=r(44412),s=r(99285);class o{constructor(){this.attached=!1,this.redirectDialog=new n.RedirectDialog}attach(){if(this.attached)throw Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL(s.CBW_MOBILE_DEEPLINK_URL);t.searchParams.append(\"redirect_url\",(0,i.getLocation)().href),e&&t.searchParams.append(\"wl_url\",e);let r=document.createElement(\"a\");r.target=\"cbw-opener\",r.href=t.href,r.rel=\"noreferrer noopener\",r.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}t.WLMobileRelayUI=o},34614:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkRelayUI=void 0;let n=r(69573),i=r(91989);class s{constructor(){this.attached=!1,this.snackbar=new i.Snackbar}attach(){if(this.attached)throw Error(\"Coinbase Wallet SDK UI is already attached\");let e=document.documentElement,t=document.createElement(\"div\");t.className=\"-cbwsdk-css-reset\",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,(0,n.injectCssReset)()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:e.onResetConnection}]}:{message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:e.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}}t.WalletLinkRelayUI=s},7568:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"},30054:function(e,t,r){\"use strict\";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.RedirectDialog=void 0;let i=n(r(25796)),s=r(57764),o=r(69573),a=r(91989),l=r(44412),u=n(r(7568));class c{constructor(){this.root=null,this.darkMode=(0,l.isDarkMode)()}attach(){let e=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",e.appendChild(this.root),(0,o.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,s.render)(null,this.root),e&&(0,s.render)((0,s.h)(d,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}t.RedirectDialog=c;let d=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:o})=>(0,s.h)(a.SnackbarContainer,{darkMode:r},(0,s.h)(\"div\",{class:\"-cbwsdk-redirect-dialog\"},(0,s.h)(\"style\",null,u.default),(0,s.h)(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-redirect-dialog-box\",r?\"dark\":\"light\")},(0,s.h)(\"p\",null,e),(0,s.h)(\"button\",{onClick:n},t))))},91931:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"},91989:function(e,t,r){\"use strict\";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let i=n(r(25796)),s=r(57764),o=r(83148),a=r(44412),l=n(r(91931));class u{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=(0,a.isDarkMode)()}attach(e){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)(\"div\",null,(0,s.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,r])=>(0,s.h)(t.SnackbarInstance,Object.assign({},r,{key:e}))))),this.root)}}t.Snackbar=u,t.SnackbarContainer=e=>(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-snackbar-container\")},(0,s.h)(\"style\",null,l.default),(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar\"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:r})=>{let[n,a]=(0,o.useState)(!0),[l,u]=(0,o.useState)(null!=e&&e);return(0,o.useEffect)(()=>{let e=[window.setTimeout(()=>{a(!1)},1),window.setTimeout(()=>{u(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-snackbar-instance\",n&&\"-cbwsdk-snackbar-instance-hidden\",l&&\"-cbwsdk-snackbar-instance-expanded\")},(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:()=>{u(!l)}},(0,s.h)(\"img\",{src:\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),(0,s.h)(\"div\",{class:\"-gear-container\"},!l&&(0,s.h)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,s.h)(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),(0,s.h)(\"img\",{src:\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",class:\"-gear-icon\",title:\"Expand\"}))),r&&r.length>0&&(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},r.map((e,t)=>(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-snackbar-instance-menu-item\",e.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:e.onClick,key:t},(0,s.h)(\"svg\",{width:e.svgWidth,height:e.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,s.h)(\"path\",{\"fill-rule\":e.defaultFillRule,\"clip-rule\":e.defaultClipRule,d:e.path,fill:\"#AAAAAA\"})),(0,s.h)(\"span\",{class:(0,i.default)(\"-cbwsdk-snackbar-instance-menu-item-info\",e.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},e.info)))))}},4316:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default='@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\201C\" \"\\\\201D\" \"\\\\2018\" \"\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},69573:function(e,t,r){\"use strict\";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.injectCssReset=void 0;let i=n(r(4316));t.injectCssReset=function(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},44412:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isDarkMode=t.isMobileWeb=t.getLocation=t.createQrUrl=void 0,t.createQrUrl=function(e,t,r,n,i,s){let o=new URLSearchParams({[n?\"parent-id\":\"id\"]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${o}`},t.getLocation=function(){try{if(function(){try{return null!==window.frameElement}catch(e){return!1}}()&&window.top)return window.top.location;return window.location}catch(e){return window.location}},t.isMobileWeb=function(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)},t.isDarkMode=function(){var e,t;return null!==(t=null===(e=null==window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,\"(prefers-color-scheme: dark)\").matches)&&void 0!==t&&t}},9876:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ScopedLocalStorage=void 0;class r{constructor(e,t){this.scope=e,this.module=t}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(\"\"),t=[];for(let r=0;r<localStorage.length;r++){let n=localStorage.key(r);\"string\"==typeof n&&n.startsWith(e)&&t.push(n)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:\"\"}:${e}`}static clearAll(){new r(\"CBWSDK\").clear(),new r(\"walletlink\").clear()}}t.ScopedLocalStorage=r},89665:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.decryptContent=t.encryptContent=t.importKeyFromHexString=t.exportKeyToHexString=t.decrypt=t.encrypt=t.deriveSharedSecret=t.generateKeyPair=void 0;let n=r(98997);async function i(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function s(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function o(e,t){let r=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},e,new TextEncoder().encode(t));return{iv:r,cipherText:n}}async function a(e,{iv:t,cipherText:r}){let n=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,r);return new TextDecoder().decode(n)}function l(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function u(e,t){let r=l(e),i=await crypto.subtle.exportKey(r,t);return(0,n.uint8ArrayToHex)(new Uint8Array(i))}async function c(e,t){let r=l(e),i=(0,n.hexStringToUint8Array)(t).buffer;return await crypto.subtle.importKey(r,i,{name:\"ECDH\",namedCurve:\"P-256\"},!0,\"private\"===e?[\"deriveKey\"]:[])}async function d(e,t){return o(t,JSON.stringify(e,(e,t)=>t instanceof Error?Object.assign(Object.assign({},t.code?{code:t.code}:{}),{message:t.message}):t))}async function h(e,t){return JSON.parse(await a(t,e))}t.generateKeyPair=i,t.deriveSharedSecret=s,t.encrypt=o,t.decrypt=a,t.exportKeyToHexString=u,t.importKeyFromHexString=c,t.encryptContent=d,t.decryptContent=h},66320:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.checkErrorForInvalidRequestArgs=t.getCoinbaseInjectedProvider=t.getCoinbaseInjectedSigner=t.fetchRPCRequest=void 0;let n=r(54750),i=r(39172);async function s(e,t){if(!t.rpcUrl)throw i.standardErrors.rpc.internal(\"No RPC URL set for chain\");let r=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),s=await window.fetch(t.rpcUrl,{method:\"POST\",body:JSON.stringify(r),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":n.LIB_VERSION}});return(await s.json()).result}function o(){return globalThis.coinbaseWalletSigner}t.fetchRPCRequest=s,t.getCoinbaseInjectedSigner=o,t.getCoinbaseInjectedProvider=function({metadata:e,preference:t}){var r,n,i;let s=globalThis;if(\"smartWalletOnly\"!==t.options){if(o())return;let t=s.coinbaseWalletExtension;if(t){let{appName:n,appLogoUrl:i,appChainIds:s}=e;return null===(r=t.setAppInfo)||void 0===r||r.call(t,n,i,s),t}}let a=null!==(n=s.ethereum)&&void 0!==n?n:null===(i=s.top)||void 0===i?void 0:i.ethereum;if(null==a?void 0:a.isCoinbaseBrowser)return a},t.checkErrorForInvalidRequestArgs=function(e){if(!e||\"object\"!=typeof e||Array.isArray(e))return i.standardErrors.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:r}=e;return\"string\"!=typeof t||0===t.length?i.standardErrors.rpc.invalidParams({message:\"'args.method' must be a non-empty string.\",data:e}):void 0===r||Array.isArray(r)||\"object\"==typeof r&&null!==r?void 0:i.standardErrors.rpc.invalidParams({message:\"'args.params' must be an object or array if provided.\",data:e})}},86105:function(e,t,r){var n=r(9109).Buffer;let i=r(77114);function s(e){if(e.startsWith(\"int[\"))return\"int256\"+e.slice(3);if(\"int\"===e)return\"int256\";if(e.startsWith(\"uint[\"))return\"uint256\"+e.slice(4);if(\"uint\"===e)return\"uint256\";if(e.startsWith(\"fixed[\"))return\"fixed128x128\"+e.slice(5);if(\"fixed\"===e)return\"fixed128x128\";if(e.startsWith(\"ufixed[\"))return\"ufixed128x128\"+e.slice(6);else if(\"ufixed\"===e)return\"ufixed128x128\";return e}function o(e){return parseInt(/^\\D+(\\d+)$/.exec(e)[1],10)}function a(e){var t=/^\\D+(\\d+)x(\\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function l(e){var t=e.match(/(.*)\\[(.*?)\\]$/);return t?\"\"===t[2]?\"dynamic\":parseInt(t[2],10):null}function u(e){var t=typeof e;if(\"string\"===t||\"number\"===t)return BigInt(e);if(\"bigint\"===t)return e;throw Error(\"Argument is not a number\")}function c(e,t){if(\"address\"===e)return c(\"uint160\",u(t));if(\"bool\"===e)return c(\"uint8\",t?1:0);if(\"string\"===e)return c(\"bytes\",new n(t,\"utf8\"));if((f=e).lastIndexOf(\"]\")===f.length-1){if(void 0===t.length)throw Error(\"Not an array?\");if(\"dynamic\"!==(r=l(e))&&0!==r&&t.length>r)throw Error(\"Elements exceed array size: \"+r);for(h in d=[],e=e.slice(0,e.lastIndexOf(\"[\")),\"string\"==typeof t&&(t=JSON.parse(t)),t)d.push(c(e,t[h]));if(\"dynamic\"===r){var r,s,d,h,f,p=c(\"uint256\",t.length);d.unshift(p)}return n.concat(d)}if(\"bytes\"===e)return t=new n(t),d=n.concat([c(\"uint256\",t.length),t]),t.length%32!=0&&(d=n.concat([d,i.zeros(32-t.length%32)])),d;if(e.startsWith(\"bytes\")){if((r=o(e))<1||r>32)throw Error(\"Invalid bytes<N> width: \"+r);return i.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if((r=o(e))%8||r<8||r>256)throw Error(\"Invalid uint<N> width: \"+r);s=u(t);let n=i.bitLengthFromBigInt(s);if(n>r)throw Error(\"Supplied uint exceeds width: \"+r+\" vs \"+n);if(s<0)throw Error(\"Supplied uint is negative\");return i.bufferBEFromBigInt(s,32)}else if(e.startsWith(\"int\")){if((r=o(e))%8||r<8||r>256)throw Error(\"Invalid int<N> width: \"+r);s=u(t);let n=i.bitLengthFromBigInt(s);if(n>r)throw Error(\"Supplied int exceeds width: \"+r+\" vs \"+n);let a=i.twosFromBigInt(s,256);return i.bufferBEFromBigInt(a,32)}else if(e.startsWith(\"ufixed\")){if(r=a(e),(s=u(t))<0)throw Error(\"Supplied ufixed is negative\");return c(\"uint256\",s*BigInt(2)**BigInt(r[1]))}else if(e.startsWith(\"fixed\"))return r=a(e),c(\"int256\",u(t)*BigInt(2)**BigInt(r[1]));throw Error(\"Unsupported or invalid type: \"+e)}function d(e,t){if(e.length!==t.length)throw Error(\"Number of types are not matching the values\");for(var r,a,l=[],c=0;c<e.length;c++){var d=s(e[c]),h=t[c];if(\"bytes\"===d)l.push(h);else if(\"string\"===d)l.push(new n(h,\"utf8\"));else if(\"bool\"===d)l.push(new n(h?\"01\":\"00\",\"hex\"));else if(\"address\"===d)l.push(i.setLength(h,20));else if(d.startsWith(\"bytes\")){if((r=o(d))<1||r>32)throw Error(\"Invalid bytes<N> width: \"+r);l.push(i.setLengthRight(h,r))}else if(d.startsWith(\"uint\")){if((r=o(d))%8||r<8||r>256)throw Error(\"Invalid uint<N> width: \"+r);a=u(h);let e=i.bitLengthFromBigInt(a);if(e>r)throw Error(\"Supplied uint exceeds width: \"+r+\" vs \"+e);l.push(i.bufferBEFromBigInt(a,r/8))}else if(d.startsWith(\"int\")){if((r=o(d))%8||r<8||r>256)throw Error(\"Invalid int<N> width: \"+r);a=u(h);let e=i.bitLengthFromBigInt(a);if(e>r)throw Error(\"Supplied int exceeds width: \"+r+\" vs \"+e);let t=i.twosFromBigInt(a,r);l.push(i.bufferBEFromBigInt(t,r/8))}else throw Error(\"Unsupported or invalid type: \"+d)}return n.concat(l)}e.exports={rawEncode:function(e,t){var r=[],i=[],o=32*e.length;for(var a in e){var u=s(e[a]),d=c(u,t[a]);\"string\"===u||\"bytes\"===u||\"dynamic\"===l(u)?(r.push(c(\"uint256\",o)),i.push(d),o+=d.length):r.push(d)}return n.concat(r.concat(i))},solidityPack:d,soliditySHA3:function(e,t){return i.keccak(d(e,t))}}},80745:function(e,t,r){var n=r(9109).Buffer;let i=r(77114),s=r(86105),o={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},a={encodeData(e,t,r,o=!0){let a=[\"bytes32\"],l=[this.hashType(e,r)];if(o){let u=(e,t,a)=>{if(void 0!==r[t])return[\"bytes32\",null==a?\"0x0000000000000000000000000000000000000000000000000000000000000000\":i.keccak(this.encodeData(t,a,r,o))];if(void 0===a)throw Error(`missing value for field ${e} of type ${t}`);if(\"bytes\"===t)return[\"bytes32\",i.keccak(a)];if(\"string\"===t)return\"string\"==typeof a&&(a=n.from(a,\"utf8\")),[\"bytes32\",i.keccak(a)];if(t.lastIndexOf(\"]\")===t.length-1){let r=t.slice(0,t.lastIndexOf(\"[\")),n=a.map(t=>u(e,r,t));return[\"bytes32\",i.keccak(s.rawEncode(n.map(([e])=>e),n.map(([,e])=>e)))]}return[t,a]};for(let n of r[e]){let[e,r]=u(n.name,n.type,t[n.name]);a.push(e),l.push(r)}}else for(let s of r[e]){let e=t[s.name];if(void 0!==e){if(\"bytes\"===s.type)a.push(\"bytes32\"),e=i.keccak(e),l.push(e);else if(\"string\"===s.type)a.push(\"bytes32\"),\"string\"==typeof e&&(e=n.from(e,\"utf8\")),e=i.keccak(e),l.push(e);else if(void 0!==r[s.type])a.push(\"bytes32\"),e=i.keccak(this.encodeData(s.type,e,r,o)),l.push(e);else if(s.type.lastIndexOf(\"]\")===s.type.length-1)throw Error(\"Arrays currently unimplemented in encodeData\");else a.push(s.type),l.push(e)}}return s.rawEncode(a,l)},encodeType(e,t){let r=\"\",n=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let i of n=[e].concat(n.sort())){if(!t[i])throw Error(\"No type definition specified: \"+i);r+=i+\"(\"+t[i].map(({name:e,type:t})=>t+\" \"+e).join(\",\")+\")\"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\\w*/)[0],r.includes(e)||void 0===t[e])return r;for(let n of(r.push(e),t[e]))for(let e of this.findTypeDependencies(n.type,t,r))r.includes(e)||r.push(e);return r},hashStruct(e,t,r,n=!0){return i.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return i.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let r in o.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let r=this.sanitizeData(e),s=[n.from(\"1901\",\"hex\")];return s.push(this.hashStruct(\"EIP712Domain\",r.domain,r.types,t)),\"EIP712Domain\"!==r.primaryType&&s.push(this.hashStruct(r.primaryType,r.message,r.types,t)),i.keccak(n.concat(s))}};e.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){let t=Error(\"Expect argument to be non-empty array\");if(\"object\"!=typeof e||!e.length)throw t;let r=e.map(function(e){return\"bytes\"===e.type?i.toBuffer(e.value):e.value}),n=e.map(function(e){return e.type}),o=e.map(function(e){if(!e.name)throw t;return e.type+\" \"+e.name});return s.soliditySHA3([\"bytes32\",\"bytes32\"],[s.soliditySHA3(Array(e.length).fill(\"string\"),o),s.soliditySHA3(n,r)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},77114:function(e,t,r){var n=r(9109).Buffer;let i=r(6230);function s(e){return n.allocUnsafe(e).fill(0)}function o(e,t){let r=e.toString(16);r.length%2!=0&&(r=\"0\"+r);let i=r.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;i.length<t;)i.unshift(0);return n.from(i)}function a(e,t,r){let n=s(t);return(e=l(e),r)?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)}function l(e){if(!n.isBuffer(e)){if(Array.isArray(e))e=n.from(e);else if(\"string\"==typeof e){var t;e=u(e)?n.from((t=c(e)).length%2?\"0\"+t:t,\"hex\"):n.from(e)}else if(\"number\"==typeof e)e=intToBuffer(e);else if(null==e)e=n.allocUnsafe(0);else if(\"bigint\"==typeof e)e=o(e);else if(e.toArray)e=n.from(e.toArray());else throw Error(\"invalid type\")}return e}function u(e){return\"string\"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function c(e){return\"string\"==typeof e&&e.startsWith(\"0x\")?e.slice(2):e}e.exports={zeros:s,setLength:a,setLengthRight:function(e,t){return a(e,t,!0)},isHexString:u,stripHexPrefix:c,toBuffer:l,bufferToHex:function(e){return\"0x\"+(e=l(e)).toString(\"hex\")},keccak:function(e,t){return e=l(e),t||(t=256),i(\"keccak\"+t).update(e).digest()},bitLengthFromBigInt:function(e){return e.toString(2).length},bufferBEFromBigInt:o,twosFromBigInt:function(e,t){return(e<0n?(~e&(1n<<BigInt(t))-1n)+1n:e)&(1n<<BigInt(t))-1n}}},54750:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION=\"4.0.3\"},25796:function(e,t,r){\"use strict\";function n(){for(var e,t,r=0,n=\"\";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i=\"\";if(\"string\"==typeof t||\"number\"==typeof t)i+=t;else if(\"object\"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=\" \"),i+=n);else for(r in t)t[r]&&(i&&(i+=\" \"),i+=r)}return i}(e))&&(n&&(n+=\" \"),n+=t);return n}r.r(t),r.d(t,{clsx:function(){return n}}),t.default=n},59035:function(e,t,r){\"use strict\";r.d(t,{Sg:function(){return o},zt:function(){return a}});var n=r(22594);r(9784);var i=r(36173);let s=new(r(13421)).Yd(\"abstract-provider/5.7.0\");class o extends i.dk{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class a{constructor(){s.checkAbstract(new.target,a),(0,i.zG)(this,\"_isProvider\",!0)}getFeeData(){var e,t,r,s;return e=this,t=void 0,r=void 0,s=function*(){let{block:e,gasPrice:t}=yield(0,i.mE)({block:this.getBlock(\"latest\"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,s=null,o=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,o=n.O$.from(\"1500000000\"),s=e.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:s,maxPriorityFeePerGas:o,gasPrice:t}},new(r||(r=Promise))(function(n,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function a(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},37637:function(e,t,r){\"use strict\";r.d(t,{E:function(){return u},b:function(){return c}});var n=r(36173),i=r(13421),s=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let o=new i.Yd(\"abstract-signer/5.7.0\"),a=[\"accessList\",\"ccipReadEnabled\",\"chainId\",\"customData\",\"data\",\"from\",\"gasLimit\",\"gasPrice\",\"maxFeePerGas\",\"maxPriorityFeePerGas\",\"nonce\",\"to\",\"type\",\"value\"],l=[i.Yd.errors.INSUFFICIENT_FUNDS,i.Yd.errors.NONCE_EXPIRED,i.Yd.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){o.checkAbstract(new.target,u),(0,n.zG)(this,\"_isSigner\",!0)}getBalance(e){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getBalance\"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getTransactionCount\"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return s(this,void 0,void 0,function*(){this._checkProvider(\"estimateGas\");let t=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return s(this,void 0,void 0,function*(){this._checkProvider(\"call\");let r=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return s(this,void 0,void 0,function*(){this._checkProvider(\"sendTransaction\");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getChainId\"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getGasPrice\"),yield this.provider.getGasPrice()})}getFeeData(){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getFeeData\"),yield this.provider.getFeeData()})}resolveName(e){return s(this,void 0,void 0,function*(){return this._checkProvider(\"resolveName\"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===a.indexOf(t)&&o.throwArgumentError(\"invalid transaction key: \"+t,\"transaction\",e);let t=(0,n.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&o.throwArgumentError(\"from address mismatch\",\"transaction\",e),t[0])),t}populateTransaction(e){return s(this,void 0,void 0,function*(){let t=yield(0,n.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>s(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&o.throwArgumentError(\"provided ENS name resolves to null\",\"tx.to\",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?o.throwArgumentError(\"eip-1559 transaction do not support gasPrice\",\"transaction\",e):(0===t.type||1===t.type)&&r&&o.throwArgumentError(\"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas\",\"transaction\",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&o.throwError(\"network does not support EIP-1559\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"populateTransaction\"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):o.throwError(\"failed to get consistent fee data\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"signer.getFeeData\"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount(\"pending\")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(l.indexOf(e.code)>=0)throw e;return o.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&o.throwArgumentError(\"chainId address mismatch\",\"transaction\",e),t[0])),yield(0,n.mE)(t)})}_checkProvider(e){this.provider||o.throwError(\"missing provider\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:e||\"_checkProvider\"})}static isSigner(e){return!!(e&&e._isSigner)}}class c extends u{constructor(e,t){super(),(0,n.zG)(this,\"address\",e),(0,n.zG)(this,\"provider\",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{o.throwError(e,i.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail(\"VoidSigner cannot sign messages\",\"signMessage\")}signTransaction(e){return this._fail(\"VoidSigner cannot sign transactions\",\"signTransaction\")}_signTypedData(e,t,r){return this._fail(\"VoidSigner cannot sign typed data\",\"signTypedData\")}connect(e){return new c(this.address,e)}}},89005:function(e,t,r){\"use strict\";r.d(t,{Kn:function(){return d},CR:function(){return h}});var n=r(9784),i=r(22594),s=r(43481),o=r(18162);let a=new(r(13421)).Yd(\"address/5.7.0\");function l(e){(0,n.A7)(e,20)||a.throwArgumentError(\"invalid address\",\"address\",e);let t=(e=e.toLowerCase()).substring(2).split(\"\"),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.lE)((0,s.w)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return\"0x\"+t.join(\"\")}let u={};for(let e=0;e<10;e++)u[String(e)]=String(e);for(let e=0;e<26;e++)u[String.fromCharCode(65+e)]=String(10+e);let c=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function d(e){let t=null;if(\"string\"!=typeof e&&a.throwArgumentError(\"invalid address\",\"address\",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&a.throwArgumentError(\"bad address checksum\",\"address\",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+\"00\").split(\"\").map(e=>u[e]).join(\"\");for(;t.length>=c;){let e=t.substring(0,c);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r=\"0\"+r;return r}(e)&&a.throwArgumentError(\"bad icap checksum\",\"address\",e),t=(0,i.g$)(e.substring(4));t.length<40;)t=\"0\"+t;t=l(\"0x\"+t)}else a.throwArgumentError(\"invalid address\",\"address\",e);return t}function h(e){let t=null;try{t=d(e.from)}catch(t){a.throwArgumentError(\"missing from address\",\"transaction\",e)}let r=(0,n.G1)((0,n.lE)(i.O$.from(e.nonce).toHexString()));return d((0,n.p3)((0,s.w)((0,o.c)([t,r])),12))}},38418:function(e,t,r){\"use strict\";r.d(t,{i:function(){return n}});let n=\"bignumber/5.7.0\"},22594:function(e,t,r){\"use strict\";r.d(t,{O$:function(){return f},Zm:function(){return d},g$:function(){return b}});var n=r(58171),i=r.n(n),s=r(9784),o=r(13421),a=r(38418),l=i().BN;let u=new o.Yd(a.i),c={};function d(e){return null!=e&&(f.isBigNumber(e)||\"number\"==typeof e&&e%1==0||\"string\"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.A7)(e)||\"bigint\"==typeof e||(0,s._t)(e))}let h=!1;class f{constructor(e,t){e!==c&&u.throwError(\"cannot call constructor directly; use BigNumber.from\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new (BigNumber)\"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return g(m(this).fromTwos(e))}toTwos(e){return g(m(this).toTwos(e))}abs(){return\"-\"===this._hex[0]?f.from(this._hex.substring(1)):this}add(e){return g(m(this).add(m(e)))}sub(e){return g(m(this).sub(m(e)))}div(e){return f.from(e).isZero()&&y(\"division-by-zero\",\"div\"),g(m(this).div(m(e)))}mul(e){return g(m(this).mul(m(e)))}mod(e){let t=m(e);return t.isNeg()&&y(\"division-by-zero\",\"mod\"),g(m(this).umod(t))}pow(e){let t=m(e);return t.isNeg()&&y(\"negative-power\",\"pow\"),g(m(this).pow(t))}and(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y(\"unbound-bitwise-result\",\"and\"),g(m(this).and(t))}or(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y(\"unbound-bitwise-result\",\"or\"),g(m(this).or(t))}xor(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y(\"unbound-bitwise-result\",\"xor\"),g(m(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y(\"negative-width\",\"mask\"),g(m(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y(\"negative-width\",\"shl\"),g(m(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y(\"negative-width\",\"shr\"),g(m(this).shrn(e))}eq(e){return m(this).eq(m(e))}lt(e){return m(this).lt(m(e))}lte(e){return m(this).lte(m(e))}gt(e){return m(this).gt(m(e))}gte(e){return m(this).gte(m(e))}isNegative(){return\"-\"===this._hex[0]}isZero(){return m(this).isZero()}toNumber(){try{return m(this).toNumber()}catch(e){y(\"overflow\",\"toNumber\",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError(\"this platform does not support BigInt\",o.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn(\"BigNumber.toString does not accept any parameters; base-10 is assumed\")):16===arguments[0]?u.throwError(\"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()\",o.Yd.errors.UNEXPECTED_ARGUMENT,{}):u.throwError(\"BigNumber.toString does not accept parameters\",o.Yd.errors.UNEXPECTED_ARGUMENT,{})),m(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:\"BigNumber\",hex:this.toHexString()}}static from(e){if(e instanceof f)return e;if(\"string\"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new f(c,p(e)):e.match(/^-?[0-9]+$/)?new f(c,p(new l(e))):u.throwArgumentError(\"invalid BigNumber string\",\"value\",e);if(\"number\"==typeof e)return e%1&&y(\"underflow\",\"BigNumber.from\",e),(e>=9007199254740991||e<=-9007199254740991)&&y(\"overflow\",\"BigNumber.from\",e),f.from(String(e));if(\"bigint\"==typeof e)return f.from(e.toString());if((0,s._t)(e))return f.from((0,s.Dv)(e));if(e){if(e.toHexString){let t=e.toHexString();if(\"string\"==typeof t)return f.from(t)}else{let t=e._hex;if(null==t&&\"BigNumber\"===e.type&&(t=e.hex),\"string\"==typeof t&&((0,s.A7)(t)||\"-\"===t[0]&&(0,s.A7)(t.substring(1))))return f.from(t)}}return u.throwArgumentError(\"invalid BigNumber value\",\"value\",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function p(e){if(\"string\"!=typeof e)return p(e.toString(16));if(\"-\"===e[0])return(\"-\"===(e=e.substring(1))[0]&&u.throwArgumentError(\"invalid hex\",\"value\",e),\"0x00\"===(e=p(e)))?e:\"-\"+e;if(\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),\"0x\"===e)return\"0x00\";for(e.length%2&&(e=\"0x0\"+e.substring(2));e.length>4&&\"0x00\"===e.substring(0,4);)e=\"0x\"+e.substring(4);return e}function g(e){return f.from(p(e))}function m(e){let t=f.from(e).toHexString();return\"-\"===t[0]?new l(\"-\"+t.substring(3),16):new l(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,o.Yd.errors.NUMERIC_FAULT,n)}function b(e){return new l(e,36).toString(16)}},9784:function(e,t,r){\"use strict\";r.d(t,{lE:function(){return u},zo:function(){return c},xs:function(){return y},E1:function(){return g},p3:function(){return m},$P:function(){return b},$m:function(){return v},Dv:function(){return p},_t:function(){return l},Zq:function(){return o},A7:function(){return h},N:function(){return w},G1:function(){return d}});let n=new(r(13421)).Yd(\"bytes/5.7.0\");function i(e){return!!e.toHexString}function s(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return h(e)&&!(e.length%2)||l(e)}function a(e){return\"number\"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if(\"string\"==typeof e||!a(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!a(r)||r<0||r>=256)return!1}return!0}function u(e,t){if(t||(t={}),\"number\"==typeof e){n.checkSafeUint53(e,\"invalid arrayify value\");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),s(new Uint8Array(t))}if(t.allowMissingPrefix&&\"string\"==typeof e&&\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),i(e)&&(e=e.toHexString()),h(e)){let r=e.substring(2);r.length%2&&(\"left\"===t.hexPad?r=\"0\"+r:\"right\"===t.hexPad?r+=\"0\":n.throwArgumentError(\"hex data is odd-length\",\"value\",e));let i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return s(new Uint8Array(i))}return l(e)?s(new Uint8Array(e)):n.throwArgumentError(\"invalid arrayify value\",\"value\",e)}function c(e){let t=e.map(e=>u(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),s(r)}function d(e){let t=u(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function h(e,t){return\"string\"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let f=\"0123456789abcdef\";function p(e,t){if(t||(t={}),\"number\"==typeof e){n.checkSafeUint53(e,\"invalid hexlify value\");let t=\"\";for(;e;)t=f[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t=\"0\"+t),\"0x\"+t):\"0x00\"}if(\"bigint\"==typeof e)return(e=e.toString(16)).length%2?\"0x0\"+e:\"0x\"+e;if(t.allowMissingPrefix&&\"string\"==typeof e&&\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),i(e))return e.toHexString();if(h(e))return e.length%2&&(\"left\"===t.hexPad?e=\"0x0\"+e.substring(2):\"right\"===t.hexPad?e+=\"0\":n.throwArgumentError(\"hex data is odd-length\",\"value\",e)),e.toLowerCase();if(l(e)){let t=\"0x\";for(let r=0;r<e.length;r++){let n=e[r];t+=f[(240&n)>>4]+f[15&n]}return t}return n.throwArgumentError(\"invalid hexlify value\",\"value\",e)}function g(e){if(\"string\"!=typeof e)e=p(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,r){return(\"string\"!=typeof e?e=p(e):(!h(e)||e.length%2)&&n.throwArgumentError(\"invalid hexData\",\"value\",e),t=2+2*t,null!=r)?\"0x\"+e.substring(t,2+2*r):\"0x\"+e.substring(t)}function y(e){let t=\"0x\";return e.forEach(e=>{t+=p(e).substring(2)}),t}function b(e){let t=function(e){\"string\"!=typeof e&&(e=p(e)),h(e)||n.throwArgumentError(\"invalid hex string\",\"value\",e),e=e.substring(2);let t=0;for(;t<e.length&&\"0\"===e[t];)t++;return\"0x\"+e.substring(t)}(p(e,{hexPad:\"left\"}));return\"0x\"===t?\"0x0\":t}function v(e,t){for(\"string\"!=typeof e?e=p(e):h(e)||n.throwArgumentError(\"invalid hex string\",\"value\",e),e.length>2*t+2&&n.throwArgumentError(\"value out of range\",\"value\",arguments[1]);e.length<2*t+2;)e=\"0x0\"+e.substring(2);return e}function w(e){let t={r:\"0x\",s:\"0x\",_vs:\"0x\",recoveryParam:0,v:0,yParityAndS:\"0x\",compact:\"0x\"};if(o(e)){let r=u(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64))):65===r.length?(t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64)),t.v=r[64]):n.throwArgumentError(\"invalid signature string\",\"signature\",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError(\"signature invalid v byte\",\"signature\",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=p(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=function(e,t){(e=u(e)).length>t&&n.throwArgumentError(\"value out of range\",\"value\",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),s(r)}(u(t._vs),32);t._vs=p(r);let i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&n.throwArgumentError(\"signature recoveryParam mismatch _vs\",\"signature\",e),r[0]&=127;let o=p(r);null==t.s?t.s=o:t.s!==o&&n.throwArgumentError(\"signature v mismatch _vs\",\"signature\",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError(\"signature missing v and recoveryParam\",\"signature\",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError(\"signature recoveryParam mismatch v\",\"signature\",e)}null!=t.r&&h(t.r)?t.r=v(t.r,32):n.throwArgumentError(\"signature missing or invalid r\",\"signature\",e),null!=t.s&&h(t.s)?t.s=v(t.s,32):n.throwArgumentError(\"signature missing or invalid s\",\"signature\",e);let r=u(t.s);r[0]>=128&&n.throwArgumentError(\"signature s out of range\",\"signature\",e),t.recoveryParam&&(r[0]|=128);let i=p(r);t._vs&&(h(t._vs)||n.throwArgumentError(\"signature invalid _vs\",\"signature\",e),t._vs=v(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&n.throwArgumentError(\"signature _vs mismatch v and s\",\"signature\",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}},75986:function(e,t,r){\"use strict\";r.d(t,{Bz:function(){return a},_Y:function(){return s},fh:function(){return o},tL:function(){return i}});var n=r(22594);let i=n.O$.from(-1),s=n.O$.from(0),o=n.O$.from(1),a=n.O$.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\")},22554:function(e,t,r){\"use strict\";r.d(t,{CH:function(){return eC}});var n=r(9784),i=r(22594),s=r(36173),o=r(13421);let a=\"abi/5.7.0\",l=new o.Yd(a);class u{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){l.throwArgumentError(e,this.localName,t)}}class c{constructor(e){(0,s.zG)(this,\"wordSize\",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,n.xs)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,n.zo)(e._data))}writeBytes(e){let t=(0,n.lE)(e),r=t.length%this.wordSize;return r&&(t=(0,n.zo)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,n.lE)(i.O$.from(e));return t.length>this.wordSize&&l.throwError(\"value out-of-bounds\",o.Yd.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.zo)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class d{constructor(e,t,r,i){(0,s.zG)(this,\"_data\",(0,n.lE)(e)),(0,s.zG)(this,\"wordSize\",t||32),(0,s.zG)(this,\"_coerceFunc\",r),(0,s.zG)(this,\"allowLoose\",i),this._offset=0}get data(){return(0,n.Dv)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match(\"^u?int([0-9]+)$\");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):d.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:l.throwError(\"data out-of-bounds\",o.Yd.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new d(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return i.O$.from(this.readBytes(this.wordSize))}}var h=r(89005),f=r(99554),p=r(43481);class g extends u{constructor(e){super(\"address\",\"address\",e,!1)}defaultValue(){return\"0x0000000000000000000000000000000000000000\"}encode(e,t){try{t=(0,h.Kn)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,h.Kn)((0,n.$m)(e.readValue().toHexString(),20))}}class m extends u{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}let y=new o.Yd(a);function b(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&\"object\"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||y.throwError(\"cannot encode object for signature with missing names\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"values\",coder:t,value:r}),e[n]&&y.throwError(\"cannot encode object for signature with duplicate names\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"values\",coder:t,value:r}),e[n]=!0,r[n]})}else y.throwArgumentError(\"invalid tuple value\",\"tuple\",r);t.length!==n.length&&y.throwArgumentError(\"types/value length mismatch\",\"tuple\",r);let i=new c(e.wordSize),s=new c(e.wordSize),a=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=s.length;e.encode(s,r);let n=i.writeUpdatableValue();a.push(e=>{n(e+t)})}else e.encode(i,r)}),a.forEach(e=>{e(i.length)}),e.appendWriter(i)+e.appendWriter(s)}function v(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readValue(),s=n.subReader(r.toNumber());try{i=t.decode(s)}catch(e){if(e.code===o.Yd.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===o.Yd.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)});let i=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let n=e.localName;if(!n||1!==i[n]||(\"length\"===n&&(n=\"_length\"),null!=r[n]))return;let s=r[t];s instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw s}}):r[n]=s});for(let e=0;e<r.length;e++){let t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(r)}class w extends u{constructor(e,t,r){super(\"array\",e.type+\"[\"+(t>=0?t:\"\")+\"]\",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError(\"expected array value\",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),y.checkArgumentCount(t.length,r,\"coder array\"+(this.localName?\" \"+this.localName:\"\"));let n=[];for(let e=0;e<t.length;e++)n.push(this.coder);return b(e,n,t)}decode(e){let t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&y.throwError(\"insufficient data length\",o.Yd.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;e<t;e++)r.push(new m(this.coder));return e.coerce(this.name,v(e,r))}}class _ extends u{constructor(e){super(\"bool\",\"bool\",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class E extends u{constructor(e,t){super(e,e,t,!0)}defaultValue(){return\"0x\"}encode(e,t){return t=(0,n.lE)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class A extends E{constructor(e){super(\"bytes\",e)}decode(e){return e.coerce(this.name,(0,n.Dv)(super.decode(e)))}}class x extends u{constructor(e,t){let r=\"bytes\"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return\"0x0000000000000000000000000000000000000000000000000000000000000000\".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.lE)(t);return r.length!==this.size&&this._throwError(\"incorrect data length\",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,n.Dv)(e.readBytes(this.size)))}}class k extends u{constructor(e){super(\"null\",\"\",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError(\"not null\",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var S=r(75986);class $ extends u{constructor(e,t,r){let n=(t?\"int\":\"uint\")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=i.O$.from(t),n=S.Bz.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(S.fh).mul(S.tL)))&&this._throwError(\"value out-of-bounds\",t)}else(r.lt(S._Y)||r.gt(n.mask(8*this.size)))&&this._throwError(\"value out-of-bounds\",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var C=r(28257);class P extends E{constructor(e){super(\"string\",e)}defaultValue(){return\"\"}encode(e,t){return super.encode(e,(0,C.Y0)(t))}decode(e){return(0,C.ZN)(super.decode(e))}}class I extends u{constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super(\"tuple\",\"tuple(\"+n.join(\",\")+\")\",t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&(\"length\"===i&&(i=\"_length\"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return b(e,this.coders,t)}decode(e){return e.coerce(this.name,v(e,this.coders))}}let O=new o.Yd(a),N={},M={calldata:!0,memory:!0,storage:!0},R={calldata:!0,memory:!0};function T(e,t){if(\"bytes\"===e||\"string\"===e){if(M[t])return!0}else if(\"address\"===e){if(\"payable\"===t)return!0}else if((e.indexOf(\"[\")>=0||\"tuple\"===e)&&R[t])return!0;return(M[t]||\"payable\"===t)&&O.throwArgumentError(\"invalid modifier\",\"name\",t),!1}function D(e,t){for(let r in t)(0,s.zG)(e,r,t[r])}let L=Object.freeze({sighash:\"sighash\",minimal:\"minimal\",full:\"full\",json:\"json\"}),j=new RegExp(/^(.*)\\[([0-9]*)\\]$/);class B{constructor(e,t){e!==N&&O.throwError(\"use fromString\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new ParamType()\"}),D(this,t);let r=this.type.match(j);r?D(this,{arrayLength:parseInt(r[2]||\"-1\"),arrayChildren:B.fromObject({type:r[1],components:this.components}),baseType:\"array\"}):D(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?\"tuple\":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json){let t={type:\"tuple\"===this.baseType?\"tuple\":this.type,name:this.name||void 0};return\"boolean\"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t=\"\";return\"array\"===this.baseType?t+=this.arrayChildren.format(e)+\"[\"+(this.arrayLength<0?\"\":String(this.arrayLength))+\"]\":\"tuple\"===this.baseType?(e!==L.sighash&&(t+=this.type),t+=\"(\"+this.components.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\")\"):t+=this.type,e!==L.sighash&&(!0===this.indexed&&(t+=\" indexed\"),e===L.full&&this.name&&(t+=\" \"+this.name)),t}static from(e,t){return\"string\"==typeof e?B.fromString(e,t):B.fromObject(e)}static fromObject(e){return B.isParamType(e)?e:new B(N,{name:e.name||null,type:Z(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(B.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){O.throwArgumentError(`unexpected character at position ${t}`,\"param\",e)}function i(e){let r={type:\"\",name:\"\",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\\s/g,\" \");let s={type:\"\",name:\"\",state:{allowType:!0}},o=s;for(let r=0;r<e.length;r++){let s=e[r];switch(s){case\"(\":o.state.allowType&&\"\"===o.type?o.type=\"tuple\":o.state.allowParams||n(r),o.state.allowType=!1,o.type=Z(o.type),o.components=[i(o)],o=o.components[0];break;case\")\":delete o.state,\"indexed\"===o.name&&(t||n(r),o.indexed=!0,o.name=\"\"),T(o.type,o.name)&&(o.name=\"\"),o.type=Z(o.type);let a=o;(o=o.parent)||n(r),delete a.parent,o.state.allowParams=!1,o.state.allowName=!0,o.state.allowArray=!0;break;case\",\":delete o.state,\"indexed\"===o.name&&(t||n(r),o.indexed=!0,o.name=\"\"),T(o.type,o.name)&&(o.name=\"\"),o.type=Z(o.type);let l=i(o.parent);o.parent.components.push(l),delete o.parent,o=l;break;case\" \":o.state.allowType&&\"\"!==o.type&&(o.type=Z(o.type),delete o.state.allowType,o.state.allowName=!0,o.state.allowParams=!0),o.state.allowName&&\"\"!==o.name&&(\"indexed\"===o.name?(t||n(r),o.indexed&&n(r),o.indexed=!0,o.name=\"\"):T(o.type,o.name)?o.name=\"\":o.state.allowName=!1);break;case\"[\":o.state.allowArray||n(r),o.type+=s,o.state.allowArray=!1,o.state.allowName=!1,o.state.readArray=!0;break;case\"]\":o.state.readArray||n(r),o.type+=s,o.state.readArray=!1,o.state.allowArray=!0,o.state.allowName=!0;break;default:o.state.allowType?(o.type+=s,o.state.allowParams=!0,o.state.allowArray=!0):o.state.allowName?(o.name+=s,delete o.state.allowArray):o.state.readArray?o.type+=s:n(r)}}return o.parent&&O.throwArgumentError(\"unexpected eof\",\"param\",e),delete s.state,\"indexed\"===o.name?(t||n(r.length-7),o.indexed&&n(r.length-7),o.indexed=!0,o.name=\"\"):T(o.type,o.name)&&(o.name=\"\"),s.type=Z(s.type),s}(e,!!t),B.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(e){return!!(null!=e&&e._isParamType)}}function F(e,t){return(function(e){e=e.trim();let t=[],r=\"\",n=0;for(let i=0;i<e.length;i++){let s=e[i];\",\"===s&&0===n?(t.push(r),r=\"\"):(r+=s,\"(\"===s?n++:\")\"===s&&-1==--n&&O.throwArgumentError(\"unbalanced parenthesis\",\"value\",e))}return r&&t.push(r),t})(e).map(e=>B.fromString(e,t))}class U{constructor(e,t){e!==N&&O.throwError(\"use a static from method\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new Fragment()\"}),D(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return U.isFragment(e)?e:\"string\"==typeof e?U.fromString(e):U.fromObject(e)}static fromObject(e){if(U.isFragment(e))return e;switch(e.type){case\"function\":return W.fromObject(e);case\"event\":return z.fromObject(e);case\"constructor\":return V.fromObject(e);case\"error\":return Y.fromObject(e);case\"fallback\":case\"receive\":return null}return O.throwArgumentError(\"invalid fragment object\",\"value\",e)}static fromString(e){return\"event\"===(e=(e=(e=e.replace(/\\s/g,\" \")).replace(/\\(/g,\" (\").replace(/\\)/g,\") \").replace(/\\s+/g,\" \")).trim()).split(\" \")[0]?z.fromString(e.substring(5).trim()):\"function\"===e.split(\" \")[0]?W.fromString(e.substring(8).trim()):\"constructor\"===e.split(\"(\")[0].trim()?V.fromString(e.trim()):\"error\"===e.split(\" \")[0]?Y.fromString(e.substring(5).trim()):O.throwArgumentError(\"unsupported fragment\",\"value\",e)}static isFragment(e){return!!(e&&e._isFragment)}}class z extends U{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"event\",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=\"\";return e!==L.sighash&&(t+=\"event \"),t+=this.name+\"(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \",e!==L.sighash&&this.anonymous&&(t+=\"anonymous \"),t.trim()}static from(e){return\"string\"==typeof e?z.fromString(e):z.fromObject(e)}static fromObject(e){return z.isEventFragment(e)?e:(\"event\"!==e.type&&O.throwArgumentError(\"invalid event object\",\"value\",e),new z(N,{name:Q(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(B.fromObject):[],type:\"event\"}))}static fromString(e){let t=e.match(X);t||O.throwArgumentError(\"invalid event string\",\"value\",e);let r=!1;return t[3].split(\" \").forEach(e=>{switch(e.trim()){case\"anonymous\":r=!0;break;case\"\":break;default:O.warn(\"unknown modifier: \"+e)}}),z.fromObject({name:t[1].trim(),anonymous:r,inputs:F(t[2],!0),type:\"event\"})}static isEventFragment(e){return e&&e._isFragment&&\"event\"===e.type}}function q(e,t){t.gas=null;let r=e.split(\"@\");return 1!==r.length?(r.length>2&&O.throwArgumentError(\"invalid human-readable ABI signature\",\"value\",e),r[1].match(/^[0-9]+$/)||O.throwArgumentError(\"invalid human-readable ABI signature gas\",\"value\",e),t.gas=i.O$.from(r[1]),r[0]):e}function H(e,t){t.constant=!1,t.payable=!1,t.stateMutability=\"nonpayable\",e.split(\" \").forEach(e=>{switch(e.trim()){case\"constant\":t.constant=!0;break;case\"payable\":t.payable=!0,t.stateMutability=\"payable\";break;case\"nonpayable\":t.payable=!1,t.stateMutability=\"nonpayable\";break;case\"pure\":t.constant=!0,t.stateMutability=\"pure\";break;case\"view\":t.constant=!0,t.stateMutability=\"view\";break;case\"external\":case\"public\":case\"\":break;default:console.log(\"unknown modifier: \"+e)}})}function G(e){let t={constant:!1,payable:!0,stateMutability:\"payable\"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant=\"view\"===t.stateMutability||\"pure\"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&O.throwArgumentError(\"cannot have constant function with mutability \"+t.stateMutability,\"value\",e),t.payable=\"payable\"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&O.throwArgumentError(\"cannot have payable function with mutability \"+t.stateMutability,\"value\",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||\"constructor\"===e.type||O.throwArgumentError(\"unable to determine stateMutability\",\"value\",e),t.constant=!!e.constant,t.constant?t.stateMutability=\"view\":t.stateMutability=t.payable?\"payable\":\"nonpayable\",t.payable&&t.constant&&O.throwArgumentError(\"cannot have constant payable function\",\"value\",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?\"view\":\"payable\"):\"constructor\"!==e.type&&O.throwArgumentError(\"unable to determine stateMutability\",\"value\",e),t}class V extends U{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"constructor\",stateMutability:\"nonpayable\"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===L.sighash&&O.throwError(\"cannot format a constructor for sighash\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"format(sighash)\"});let t=\"constructor(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \";return this.stateMutability&&\"nonpayable\"!==this.stateMutability&&(t+=this.stateMutability+\" \"),t.trim()}static from(e){return\"string\"==typeof e?V.fromString(e):V.fromObject(e)}static fromObject(e){if(V.isConstructorFragment(e))return e;\"constructor\"!==e.type&&O.throwArgumentError(\"invalid constructor object\",\"value\",e);let t=G(e);return t.constant&&O.throwArgumentError(\"constructor cannot be constant\",\"value\",e),new V(N,{name:null,type:e.type,inputs:e.inputs?e.inputs.map(B.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.O$.from(e.gas):null})}static fromString(e){let t={type:\"constructor\"},r=(e=q(e,t)).match(X);return r&&\"constructor\"===r[1].trim()||O.throwArgumentError(\"invalid constructor string\",\"value\",e),t.inputs=F(r[2].trim(),!1),H(r[3].trim(),t),V.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&\"constructor\"===e.type}}class W extends V{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"function\",name:this.name,constant:this.constant,stateMutability:\"nonpayable\"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=\"\";return e!==L.sighash&&(t+=\"function \"),t+=this.name+\"(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \",e!==L.sighash&&(this.stateMutability?\"nonpayable\"!==this.stateMutability&&(t+=this.stateMutability+\" \"):this.constant&&(t+=\"view \"),this.outputs&&this.outputs.length&&(t+=\"returns (\"+this.outputs.map(t=>t.format(e)).join(\", \")+\") \"),null!=this.gas&&(t+=\"@\"+this.gas.toString()+\" \")),t.trim()}static from(e){return\"string\"==typeof e?W.fromString(e):W.fromObject(e)}static fromObject(e){if(W.isFunctionFragment(e))return e;\"function\"!==e.type&&O.throwArgumentError(\"invalid function object\",\"value\",e);let t=G(e);return new W(N,{type:e.type,name:Q(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(B.fromObject):[],outputs:e.outputs?e.outputs.map(B.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.O$.from(e.gas):null})}static fromString(e){let t={type:\"function\"},r=(e=q(e,t)).split(\" returns \");r.length>2&&O.throwArgumentError(\"invalid function string\",\"value\",e);let n=r[0].match(X);if(n||O.throwArgumentError(\"invalid function signature\",\"value\",e),t.name=n[1].trim(),t.name&&Q(t.name),t.inputs=F(n[2],!1),H(n[3].trim(),t),r.length>1){let n=r[1].match(X);(\"\"!=n[1].trim()||\"\"!=n[3].trim())&&O.throwArgumentError(\"unexpected tokens\",\"value\",e),t.outputs=F(n[2],!1)}else t.outputs=[];return W.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&\"function\"===e.type}}function K(e){let t=e.format();return(\"Error(string)\"===t||\"Panic(uint256)\"===t)&&O.throwArgumentError(`cannot specify user defined ${t} error`,\"fragment\",e),e}class Y extends U{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"error\",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=\"\";return e!==L.sighash&&(t+=\"error \"),(t+=this.name+\"(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \").trim()}static from(e){return\"string\"==typeof e?Y.fromString(e):Y.fromObject(e)}static fromObject(e){return Y.isErrorFragment(e)?e:(\"error\"!==e.type&&O.throwArgumentError(\"invalid error object\",\"value\",e),K(new Y(N,{type:e.type,name:Q(e.name),inputs:e.inputs?e.inputs.map(B.fromObject):[]})))}static fromString(e){let t={type:\"error\"},r=e.match(X);return r||O.throwArgumentError(\"invalid error signature\",\"value\",e),t.name=r[1].trim(),t.name&&Q(t.name),t.inputs=F(r[2],!1),K(Y.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&\"error\"===e.type}}function Z(e){return e.match(/^uint($|[^1-9])/)?e=\"uint256\"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e=\"int256\"+e.substring(3)),e}let J=RegExp(\"^[a-zA-Z$_][a-zA-Z0-9$_]*$\");function Q(e){return e&&e.match(J)||O.throwArgumentError(`invalid identifier \"${e}\"`,\"value\",e),e}let X=RegExp(\"^([^)(]*)\\\\((.*)\\\\)([^)(]*)$\"),ee=new o.Yd(a),et=new RegExp(/^bytes([0-9]*)$/),er=new RegExp(/^(u?int)([0-9]*)$/);class en{constructor(e){(0,s.zG)(this,\"coerceFunc\",e||null)}_getCoder(e){switch(e.baseType){case\"address\":return new g(e.name);case\"bool\":return new _(e.name);case\"string\":return new P(e.name);case\"bytes\":return new A(e.name);case\"array\":return new w(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case\"tuple\":return new I((e.components||[]).map(e=>this._getCoder(e)),e.name);case\"\":return new k(e.name)}let t=e.type.match(er);if(t){let r=parseInt(t[2]||\"256\");return(0===r||r>256||r%8!=0)&&ee.throwArgumentError(\"invalid \"+t[1]+\" bit length\",\"param\",e),new $(r/8,\"int\"===t[1],e.name)}if(t=e.type.match(et)){let r=parseInt(t[1]);return(0===r||r>32)&&ee.throwArgumentError(\"invalid bytes length\",\"param\",e),new x(r,e.name)}return ee.throwArgumentError(\"invalid type\",\"type\",e.type)}_getWordSize(){return 32}_getReader(e,t){return new d(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new c(this._getWordSize())}getDefaultValue(e){return new I(e.map(e=>this._getCoder(B.from(e))),\"_\").defaultValue()}encode(e,t){e.length!==t.length&&ee.throwError(\"types/values length mismatch\",o.Yd.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=new I(e.map(e=>this._getCoder(B.from(e))),\"_\"),n=this._getWriter();return r.encode(n,t),n.data}decode(e,t,r){return new I(e.map(e=>this._getCoder(B.from(e))),\"_\").decode(this._getReader((0,n.lE)(t),r))}}let ei=new en,es=new o.Yd(a);class eo extends s.dk{}class ea extends s.dk{}class el extends s.dk{}class eu extends s.dk{static isIndexed(e){return!!(e&&e._isIndexed)}}let ec={\"0x08c379a0\":{signature:\"Error(string)\",name:\"Error\",inputs:[\"string\"],reason:!0},\"0x4e487b71\":{signature:\"Panic(uint256)\",name:\"Panic\",inputs:[\"uint256\"]}};function ed(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class eh{constructor(e){let t=[];t=\"string\"==typeof e?JSON.parse(e):e,(0,s.zG)(this,\"fragments\",t.map(e=>U.from(e)).filter(e=>null!=e)),(0,s.zG)(this,\"_abiCoder\",(0,s.tu)(new.target,\"getAbiCoder\")()),(0,s.zG)(this,\"functions\",{}),(0,s.zG)(this,\"errors\",{}),(0,s.zG)(this,\"events\",{}),(0,s.zG)(this,\"structs\",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case\"constructor\":if(this.deploy){es.warn(\"duplicate definition - constructor\");return}(0,s.zG)(this,\"deploy\",e);return;case\"function\":t=this.functions;break;case\"event\":t=this.events;break;case\"error\":t=this.errors;break;default:return}let r=e.format();if(t[r]){es.warn(\"duplicate definition - \"+r);return}t[r]=e}),this.deploy||(0,s.zG)(this,\"deploy\",V.from({payable:!1,type:\"constructor\"})),(0,s.zG)(this,\"_isInterface\",!0)}format(e){e||(e=L.full),e===L.sighash&&es.throwArgumentError(\"interface does not support formatting sighash\",\"format\",e);let t=this.fragments.map(t=>t.format(e));return e===L.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return ei}static getAddress(e){return(0,h.Kn)(e)}static getSighash(e){return(0,n.p3)((0,f.id)(e.format()),0,4)}static getEventTopic(e){return(0,f.id)(e.format())}getFunction(e){if((0,n.A7)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];es.throwArgumentError(\"no matching function\",\"sighash\",e)}if(-1===e.indexOf(\"(\")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split(\"(\")[0]===t);return 0===r.length?es.throwArgumentError(\"no matching function\",\"name\",t):r.length>1&&es.throwArgumentError(\"multiple matching functions\",\"name\",t),this.functions[r[0]]}let t=this.functions[W.fromString(e).format()];return t||es.throwArgumentError(\"no matching function\",\"signature\",e),t}getEvent(e){if((0,n.A7)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];es.throwArgumentError(\"no matching event\",\"topichash\",t)}if(-1===e.indexOf(\"(\")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split(\"(\")[0]===t);return 0===r.length?es.throwArgumentError(\"no matching event\",\"name\",t):r.length>1&&es.throwArgumentError(\"multiple matching events\",\"name\",t),this.events[r[0]]}let t=this.events[z.fromString(e).format()];return t||es.throwArgumentError(\"no matching event\",\"signature\",e),t}getError(e){if((0,n.A7)(e)){let t=(0,s.tu)(this.constructor,\"getSighash\");for(let r in this.errors)if(e===t(this.errors[r]))return this.errors[r];es.throwArgumentError(\"no matching error\",\"sighash\",e)}if(-1===e.indexOf(\"(\")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split(\"(\")[0]===t);return 0===r.length?es.throwArgumentError(\"no matching error\",\"name\",t):r.length>1&&es.throwArgumentError(\"multiple matching errors\",\"name\",t),this.errors[r[0]]}let t=this.errors[W.fromString(e).format()];return t||es.throwArgumentError(\"no matching error\",\"signature\",e),t}getSighash(e){if(\"string\"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,s.tu)(this.constructor,\"getSighash\")(e)}getEventTopic(e){return\"string\"==typeof e&&(e=this.getEvent(e)),(0,s.tu)(this.constructor,\"getEventTopic\")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){\"string\"==typeof e&&(e=this.getError(e));let r=(0,n.lE)(t);return(0,n.Dv)(r.slice(0,4))!==this.getSighash(e)&&es.throwArgumentError(`data signature does not match error ${e.name}.`,\"data\",(0,n.Dv)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return\"string\"==typeof e&&(e=this.getError(e)),(0,n.Dv)((0,n.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){\"string\"==typeof e&&(e=this.getFunction(e));let r=(0,n.lE)(t);return(0,n.Dv)(r.slice(0,4))!==this.getSighash(e)&&es.throwArgumentError(`data signature does not match function ${e.name}.`,\"data\",(0,n.Dv)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return\"string\"==typeof e&&(e=this.getFunction(e)),(0,n.Dv)((0,n.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){\"string\"==typeof e&&(e=this.getFunction(e));let r=(0,n.lE)(t),i=null,s=\"\",a=null,l=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,n.Dv)(r.slice(0,4)),t=ec[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),l=t.name,u=t.signature,t.reason&&(i=a[0]),\"Error\"===l?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:\"Panic\"===l&&(s=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),l=t.name,u=t.format()}catch(e){}}}return es.throwError(\"call revert exception\"+s,o.Yd.errors.CALL_EXCEPTION,{method:e.format(),data:(0,n.Dv)(t),errorArgs:a,errorName:l,errorSignature:u,reason:i})}encodeFunctionResult(e,t){return\"string\"==typeof e&&(e=this.getFunction(e)),(0,n.Dv)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){\"string\"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&es.throwError(\"too many arguments for \"+e.format(),o.Yd.errors.UNEXPECTED_ARGUMENT,{argument:\"values\",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let s=(e,t)=>\"string\"===e.type?(0,f.id)(t):\"bytes\"===e.type?(0,p.w)((0,n.Dv)(t)):(\"bool\"===e.type&&\"boolean\"==typeof t&&(t=t?\"0x01\":\"0x00\"),e.type.match(/^u?int/)&&(t=i.O$.from(t).toHexString()),\"address\"===e.type&&this._abiCoder.encode([\"address\"],[t]),(0,n.$m)((0,n.Dv)(t),32));for(t.forEach((t,n)=>{let i=e.inputs[n];if(!i.indexed){null!=t&&es.throwArgumentError(\"cannot filter non-indexed parameters; must be null\",\"contract.\"+i.name,t);return}null==t?r.push(null):\"array\"===i.baseType||\"tuple\"===i.baseType?es.throwArgumentError(\"filtering with tuples or arrays not supported\",\"contract.\"+i.name,t):Array.isArray(t)?r.push(t.map(e=>s(i,e))):r.push(s(i,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){\"string\"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&es.throwArgumentError(\"event arguments/values mismatch\",\"values\",t),e.inputs.forEach((e,s)=>{let o=t[s];if(e.indexed){if(\"string\"===e.type)r.push((0,f.id)(o));else if(\"bytes\"===e.type)r.push((0,p.w)(o));else if(\"tuple\"===e.baseType||\"array\"===e.baseType)throw Error(\"not implemented\");else r.push(this._abiCoder.encode([e.type],[o]))}else n.push(e),i.push(o)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if(\"string\"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,n.A7)(r[0],32)&&r[0].toLowerCase()===t||es.throwError(\"fragment/topic mismatch\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"topics[0]\",expected:t,value:r[0]}),r=r.slice(1)}let i=[],s=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?\"string\"===e.type||\"bytes\"===e.type||\"tuple\"===e.baseType||\"array\"===e.baseType?(i.push(B.fromObject({type:\"bytes32\",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(s.push(e),a.push(!1))});let l=null!=r?this._abiCoder.decode(i,(0,n.zo)(r)):null,u=this._abiCoder.decode(s,t,!0),c=[],d=0,h=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==l)c[t]=new eu({_isIndexed:!0,hash:null});else if(a[t])c[t]=new eu({_isIndexed:!0,hash:l[h++]});else try{c[t]=l[h++]}catch(e){c[t]=e}}else try{c[t]=u[d++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){let r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw ed(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}});for(let e=0;e<c.length;e++){let t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw ed(`index ${e}`,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new ea({args:this._abiCoder.decode(t.inputs,\"0x\"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.O$.from(e.value||\"0\")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new eo({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,n.Dv)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new el({args:this._abiCoder.decode(r.inputs,\"0x\"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}var ef=r(59035),ep=r(37637),eg=r(2149),em=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let ey=new o.Yd(\"contracts/5.7.0\");function eb(e,t){return em(this,void 0,void 0,function*(){let r=yield t;\"string\"!=typeof r&&ey.throwArgumentError(\"invalid address or ENS name\",\"name\",r);try{return(0,h.Kn)(r)}catch(e){}e||ey.throwError(\"a provider or signer is needed to resolve ENS names\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"resolveName\"});let n=yield e.resolveName(r);return null==n&&ey.throwArgumentError(\"resolver or addr is not configured for ENS name\",\"name\",r),n})}function ev(e,t,r){return em(this,void 0,void 0,function*(){let a={};r.length===t.inputs.length+1&&\"object\"==typeof r[r.length-1]&&(a=(0,s.DC)(r.pop())),ey.checkArgumentCount(r.length,t.inputs.length,\"passed to contract\"),e.signer?a.from?a.from=(0,s.mE)({override:eb(e.signer,a.from),signer:e.signer.getAddress()}).then(e=>em(this,void 0,void 0,function*(){return(0,h.Kn)(e.signer)!==e.override&&ey.throwError(\"Contract with a Signer cannot override from\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"overrides.from\"}),e.override})):a.from=e.signer.getAddress():a.from&&(a.from=eb(e.provider,a.from));let l=yield(0,s.mE)({args:function e(t,r,n){return em(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((n,i)=>e(t,Array.isArray(r)?r[i]:r[n.name],n))):\"address\"===n.type?yield eb(t,r):\"tuple\"===n.type?yield e(t,r,n.components):\"array\"===n.baseType?Array.isArray(r)?yield Promise.all(r.map(r=>e(t,r,n.arrayChildren))):Promise.reject(ey.makeError(\"invalid value for array\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"value\",value:r})):r})}(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,s.mE)(a)||{}}),u=e.interface.encodeFunctionData(t,l.args),c={data:u,to:l.address},d=l.overrides;if(null!=d.nonce&&(c.nonce=i.O$.from(d.nonce).toNumber()),null!=d.gasLimit&&(c.gasLimit=i.O$.from(d.gasLimit)),null!=d.gasPrice&&(c.gasPrice=i.O$.from(d.gasPrice)),null!=d.maxFeePerGas&&(c.maxFeePerGas=i.O$.from(d.maxFeePerGas)),null!=d.maxPriorityFeePerGas&&(c.maxPriorityFeePerGas=i.O$.from(d.maxPriorityFeePerGas)),null!=d.from&&(c.from=d.from),null!=d.type&&(c.type=d.type),null!=d.accessList&&(c.accessList=(0,eg.z7)(d.accessList)),null==c.gasLimit&&null!=t.gas){let e=21e3,r=(0,n.lE)(u);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);c.gasLimit=i.O$.from(t.gas).add(e)}if(d.value){let e=i.O$.from(d.value);e.isZero()||t.payable||ey.throwError(\"non-payable method cannot override value\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"overrides.value\",value:a.value}),c.value=e}d.customData&&(c.customData=(0,s.DC)(d.customData)),d.ccipReadEnabled&&(c.ccipReadEnabled=!!d.ccipReadEnabled),delete a.nonce,delete a.gasLimit,delete a.gasPrice,delete a.from,delete a.value,delete a.type,delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.customData,delete a.ccipReadEnabled;let f=Object.keys(a).filter(e=>null!=a[e]);return f.length&&ey.throwError(`cannot override ${f.map(e=>JSON.stringify(e)).join(\",\")}`,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"overrides\",overrides:f}),c})}function ew(e,t,r){let n=e.signer||e.provider;return function(...i){return em(this,void 0,void 0,function*(){let a;if(i.length===t.inputs.length+1&&\"object\"==typeof i[i.length-1]){let e=(0,s.DC)(i.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let l=yield ev(e,t,i),u=yield n.call(l,a);try{let n=e.interface.decodeFunctionResult(t,u);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===o.Yd.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=l),t}})}}function e_(e,t,r){return t.constant?ew(e,t,r):function(...r){return em(this,void 0,void 0,function*(){e.signer||ey.throwError(\"sending a transaction requires a signer\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"sendTransaction\"}),null!=e.deployTransaction&&(yield e._deployed());let n=yield ev(e,t,r),i=yield e.signer.sendTransaction(n);return function(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,s.p$)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n}),t))}(e,i),i})}}function eE(e){return e.address&&(null==e.topics||0===e.topics.length)?\"*\":(e.address||\"*\")+\"@\"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join(\"|\"):e).join(\":\"):\"\")}class eA{constructor(e,t){(0,s.zG)(this,\"tag\",e),(0,s.zG)(this,\"filter\",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class ex extends eA{constructor(){super(\"error\",null)}}class ek extends eA{constructor(e,t,r,n){let i={address:e},o=t.getEventTopic(r);n?(o!==n[0]&&ey.throwArgumentError(\"topic mismatch\",\"topics\",n),i.topics=n.slice()):i.topics=[o],super(eE(i),i),(0,s.zG)(this,\"address\",e),(0,s.zG)(this,\"interface\",t),(0,s.zG)(this,\"fragment\",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){let t=function(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){let s=e.slice();s.push(i);try{r(s,n[i])}catch(e){t.push({path:s,error:e})}}};return r([],e),t}(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class eS extends eA{constructor(e,t){super(\"*\",{address:e}),(0,s.zG)(this,\"address\",e),(0,s.zG)(this,\"interface\",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class e${constructor(e,t,r){(0,s.zG)(this,\"interface\",(0,s.tu)(new.target,\"getInterface\")(t)),null==r?((0,s.zG)(this,\"provider\",null),(0,s.zG)(this,\"signer\",null)):ep.E.isSigner(r)?((0,s.zG)(this,\"provider\",r.provider||null),(0,s.zG)(this,\"signer\",r)):ef.zt.isProvider(r)?((0,s.zG)(this,\"provider\",r),(0,s.zG)(this,\"signer\",null)):ey.throwArgumentError(\"invalid signer or provider\",\"signerOrProvider\",r),(0,s.zG)(this,\"callStatic\",{}),(0,s.zG)(this,\"estimateGas\",{}),(0,s.zG)(this,\"functions\",{}),(0,s.zG)(this,\"populateTransaction\",{}),(0,s.zG)(this,\"filters\",{});{let e={};Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,s.zG)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,s.zG)(this.filters,t,this.filters[r[0]]):ey.warn(`Duplicate definition of ${t} (${r.join(\", \")})`)})}if((0,s.zG)(this,\"_runningEvents\",{}),(0,s.zG)(this,\"_wrappedEmits\",{}),null==e&&ey.throwArgumentError(\"invalid contract address or ENS name\",\"addressOrName\",e),(0,s.zG)(this,\"address\",e),this.provider)(0,s.zG)(this,\"resolvedAddress\",eb(this.provider,e));else try{(0,s.zG)(this,\"resolvedAddress\",Promise.resolve((0,h.Kn)(e)))}catch(e){ey.throwError(\"provider is required to use ENS name as contract address\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new Contract\"})}this.resolvedAddress.catch(e=>{});let n={},i={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(i[e]){ey.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}i[e]=!0;{let r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}if(null==this[e]&&(0,s.zG)(this,e,e_(this,t,!0)),null==this.functions[e]&&(0,s.zG)(this.functions,e,e_(this,t,!1)),null==this.callStatic[e]&&(0,s.zG)(this.callStatic,e,ew(this,t,!0)),null==this.populateTransaction[e]){var r;(0,s.zG)(this.populateTransaction,e,(r=this,function(...e){return ev(r,t,e)}))}null==this.estimateGas[e]&&(0,s.zG)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...n){return em(this,void 0,void 0,function*(){r||ey.throwError(\"estimate require a provider or signer\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"estimateGas\"});let i=yield ev(e,t,n);return yield r.estimateGas(i)})}}(this,t))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,s.zG)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,s.zG)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,s.zG)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,s.zG)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,s.zG)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,h.CR)(e)}static getInterface(e){return eh.isInterface(e)?e:new eh(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>(\"0x\"===e&&ey.throwError(\"contract not deployed\",o.Yd.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:\"getDeployed\"}),this))),this._deployedPromise}fallback(e){this.signer||ey.throwError(\"sending a transactions require a signer\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"sendTransaction(fallback)\"});let t=(0,s.DC)(e||{});return[\"from\",\"to\"].forEach(function(e){null!=t[e]&&ey.throwError(\"cannot override \"+e,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){\"string\"==typeof e&&(e=new ep.b(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,s.zG)(t,\"deployTransaction\",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return eu.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(\"string\"==typeof e){if(\"error\"===e)return this._normalizeRunningEvent(new ex);if(\"event\"===e)return this._normalizeRunningEvent(new eA(\"event\",null));if(\"*\"===e)return this._normalizeRunningEvent(new eS(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new ek(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if(\"string\"!=typeof t)throw Error(\"invalid topic\");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new ek(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new eA(eE(t),t))}return this._normalizeRunningEvent(new eS(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,s.p$)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||ey.throwError(\"events require a provider or a signer with a provider\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"once\"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit(\"event\",n),null!=n.decodeError&&this.emit(\"error\",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let i=this._getRunningEvent(e),o=(0,s.DC)(i.filter);return\"string\"==typeof t&&(0,n.A7)(t,32)?(null!=r&&ey.throwArgumentError(\"cannot specify toBlock with blockhash\",\"toBlock\",r),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=r?r:\"latest\"),this.provider.getLogs(o).then(e=>e.map(e=>this._wrapEvent(i,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class eC extends e${}},99554:function(e,t,r){\"use strict\";r.d(t,{id:function(){return s}});var n=r(43481),i=r(28257);function s(e){return(0,n.w)((0,i.Y0)(e))}},43481:function(e,t,r){\"use strict\";r.d(t,{w:function(){return o}});var n=r(83524),i=r.n(n),s=r(9784);function o(e){return\"0x\"+i().keccak_256((0,s.lE)(e))}},13421:function(e,t,r){\"use strict\";var n,i,s,o;r.d(t,{jK:function(){return i},Yd:function(){return p}});let a=!1,l=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},c=u.default,d=null,h=function(){try{let e=[];if([\"NFD\",\"NFC\",\"NFKD\",\"NFKC\"].forEach(t=>{try{if(\"test\"!==\"test\".normalize(t))throw Error(\"bad normalize\")}catch(r){e.push(t)}}),e.length)throw Error(\"missing \"+e.join(\", \"));if(String.fromCharCode(233).normalize(\"NFD\")!==String.fromCharCode(101,769))throw Error(\"broken implementation\")}catch(e){return e.message}return null}();(s=n||(n={})).DEBUG=\"DEBUG\",s.INFO=\"INFO\",s.WARNING=\"WARNING\",s.ERROR=\"ERROR\",s.OFF=\"OFF\",(o=i||(i={})).UNKNOWN_ERROR=\"UNKNOWN_ERROR\",o.NOT_IMPLEMENTED=\"NOT_IMPLEMENTED\",o.UNSUPPORTED_OPERATION=\"UNSUPPORTED_OPERATION\",o.NETWORK_ERROR=\"NETWORK_ERROR\",o.SERVER_ERROR=\"SERVER_ERROR\",o.TIMEOUT=\"TIMEOUT\",o.BUFFER_OVERRUN=\"BUFFER_OVERRUN\",o.NUMERIC_FAULT=\"NUMERIC_FAULT\",o.MISSING_NEW=\"MISSING_NEW\",o.INVALID_ARGUMENT=\"INVALID_ARGUMENT\",o.MISSING_ARGUMENT=\"MISSING_ARGUMENT\",o.UNEXPECTED_ARGUMENT=\"UNEXPECTED_ARGUMENT\",o.CALL_EXCEPTION=\"CALL_EXCEPTION\",o.INSUFFICIENT_FUNDS=\"INSUFFICIENT_FUNDS\",o.NONCE_EXPIRED=\"NONCE_EXPIRED\",o.REPLACEMENT_UNDERPRICED=\"REPLACEMENT_UNDERPRICED\",o.UNPREDICTABLE_GAS_LIMIT=\"UNPREDICTABLE_GAS_LIMIT\",o.TRANSACTION_REPLACED=\"TRANSACTION_REPLACED\",o.ACTION_REJECTED=\"ACTION_REJECTED\";let f=\"0123456789abcdef\";class p{constructor(e){Object.defineProperty(this,\"version\",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==u[r]&&this.throwArgumentError(\"invalid log level name\",\"logLevel\",e),c>u[r]||console.log.apply(console,t)}debug(...e){this._log(p.levels.DEBUG,e)}info(...e){this._log(p.levels.INFO,e)}warn(...e){this._log(p.levels.WARNING,e)}makeError(e,t,r){if(l)return this.makeError(\"censored error\",t,{});t||(t=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r=\"\";for(let e=0;e<t.length;e++)r+=f[t[e]>>4]+f[15&t[e]];n.push(e+\"=Uint8Array(0x\"+r+\")\")}else n.push(e+\"=\"+JSON.stringify(t))}catch(t){n.push(e+\"=\"+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let s=e,o=\"\";switch(t){case i.NUMERIC_FAULT:{o=\"NUMERIC_FAULT\";let t=e;switch(t){case\"overflow\":case\"underflow\":case\"division-by-zero\":o+=\"-\"+t;break;case\"negative-power\":case\"negative-width\":o+=\"-unsupported\";break;case\"unbound-bitwise-result\":o+=\"-unbound-result\"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=\" [ See: https://links.ethers.org/v5-errors-\"+o+\" ]\"),n.length&&(e+=\" (\"+n.join(\", \")+\")\");let a=Error(e);return a.reason=s,a.code=t,Object.keys(r).forEach(function(e){a[e]=r[e]}),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,p.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e=\"platform missing String.prototype.normalize\"),h&&this.throwError(\"platform missing String.prototype.normalize\",p.errors.UNSUPPORTED_OPERATION,{operation:\"String.prototype.normalize\",form:h})}checkSafeUint53(e,t){\"number\"==typeof e&&(null==t&&(t=\"value not safe\"),(e<0||e>=9007199254740991)&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"out-of-safe-range\",value:e}),e%1&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"non-integer\",value:e}))}checkArgumentCount(e,t,r){r=r?\": \"+r:\"\",e<t&&this.throwError(\"missing argument\"+r,p.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError(\"too many arguments\"+r,p.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError(\"missing new\",p.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError(\"cannot instantiate abstract class \"+JSON.stringify(t.name)+\" directly; use a sub-class\",p.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:\"new\"}):(e===Object||null==e)&&this.throwError(\"missing new\",p.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return d||(d=new p(\"logger/5.7.0\")),d}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError(\"cannot permanently disable censorship\",p.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"}),a){if(!e)return;this.globalLogger().throwError(\"error censorship permanent\",p.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"})}l=!!e,a=!!t}static setLogLevel(e){let t=u[e.toLowerCase()];if(null==t){p.globalLogger().warn(\"invalid log level - \"+e);return}c=t}static from(e){return new p(e)}}p.errors=i,p.levels=n},36173:function(e,t,r){\"use strict\";r.d(t,{dk:function(){return d},uj:function(){return a},p$:function(){return c},zG:function(){return i},tu:function(){return s},mE:function(){return o},DC:function(){return l}});let n=new(r(13421)).Yd(\"properties/5.7.0\");function i(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function s(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||\"object\"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function o(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=Object.keys(e).map(t=>Promise.resolve(e[t]).then(e=>({key:t,value:e})));return(yield Promise.all(t)).reduce((e,t)=>(e[t.key]=t.value,e),{})},new(n||(n=Promise))(function(e,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(o,a)}l((i=i.apply(t,r||[])).next())})}function a(e,t){e&&\"object\"==typeof e||n.throwArgumentError(\"invalid object\",\"object\",e),Object.keys(e).forEach(r=>{t[r]||n.throwArgumentError(\"invalid object key - \"+r,\"transaction:\"+r,e)})}function l(e){let t={};for(let r in e)t[r]=e[r];return t}let u={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function c(e){return function(e){if(function e(t){if(null==t||u[typeof t])return!0;if(Array.isArray(t)||\"object\"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=null;try{i=t[r[n]]}catch(e){continue}if(!e(i))return!1}return!0}return n.throwArgumentError(`Cannot deepCopy ${typeof t}`,\"object\",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>c(e)));if(\"object\"==typeof e){let t={};for(let r in e){let n=e[r];void 0!==n&&i(t,r,c(n))}return t}return n.throwArgumentError(`Cannot deepCopy ${typeof e}`,\"object\",e)}(e)}class d{constructor(e){for(let t in e)this[t]=c(e[t])}}},86365:function(e,t,r){\"use strict\";r.d(t,{i:function(){return n}});let n=\"providers/5.7.2\"},27972:function(e,t,r){\"use strict\";let n,i;r.d(t,{r:function(){return e0}});var s,o=r(37637),a=r(22594),l=r(9784),u=r(89005),c=r(43481),d=r(36173),h=r(13421);let f=\"hash/5.7.0\";var p=r(99554);let g=new h.Yd(f),m=new Uint8Array(32);m.fill(0);let y=a.O$.from(-1),b=a.O$.from(0),v=a.O$.from(1),w=a.O$.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),_=(0,l.$m)(v.toHexString(),32),E=(0,l.$m)(b.toHexString(),32),A={name:\"string\",version:\"string\",chainId:\"uint256\",verifyingContract:\"address\",salt:\"bytes32\"},x=[\"name\",\"version\",\"chainId\",\"verifyingContract\",\"salt\"];function k(e){return function(t){return\"string\"!=typeof t&&g.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let S={name:k(\"name\"),version:k(\"version\"),chainId:function(e){try{return a.O$.from(e).toString()}catch(e){}return g.throwArgumentError('invalid domain value for \"chainId\"',\"domain.chainId\",e)},verifyingContract:function(e){try{return(0,u.Kn)(e).toLowerCase()}catch(e){}return g.throwArgumentError('invalid domain value \"verifyingContract\"',\"domain.verifyingContract\",e)},salt:function(e){try{let t=(0,l.lE)(e);if(32!==t.length)throw Error(\"bad length\");return(0,l.Dv)(t)}catch(e){}return g.throwArgumentError('invalid domain value \"salt\"',\"domain.salt\",e)}};function $(e){{let t=e.match(/^(u?)int(\\d*)$/);if(t){let r=\"\"===t[1],n=parseInt(t[2]||\"256\");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&g.throwArgumentError(\"invalid numeric width\",\"type\",e);let i=w.mask(r?n-1:n),s=r?i.add(v).mul(y):b;return function(t){let r=a.O$.from(t);return(r.lt(s)||r.gt(i))&&g.throwArgumentError(`value out-of-bounds for ${e}`,\"value\",t),(0,l.$m)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&g.throwArgumentError(\"invalid bytes width\",\"type\",e),function(t){return(0,l.lE)(t).length!==r&&g.throwArgumentError(`invalid length for ${e}`,\"value\",t),function(e){let t=(0,l.lE)(e),r=t.length%32;return r?(0,l.xs)([t,m.slice(r)]):(0,l.Dv)(t)}(t)}}}switch(e){case\"address\":return function(e){return(0,l.$m)((0,u.Kn)(e),32)};case\"bool\":return function(e){return e?_:E};case\"bytes\":return function(e){return(0,c.w)(e)};case\"string\":return function(e){return(0,p.id)(e)}}return null}function C(e,t){return`${e}(${t.map(({name:e,type:t})=>t+\" \"+e).join(\",\")})`}class P{constructor(e){(0,d.zG)(this,\"types\",Object.freeze((0,d.p$)(e))),(0,d.zG)(this,\"_encoderCache\",{}),(0,d.zG)(this,\"_types\",{});let t={},r={},n={};for(let i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){let n={};e[i].forEach(s=>{n[s.name]&&g.throwArgumentError(`duplicate variable name ${JSON.stringify(s.name)} in ${JSON.stringify(i)}`,\"types\",e),n[s.name]=!0;let o=s.type.match(/^([^\\x5b]*)(\\x5b|$)/)[1];o===i&&g.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,\"types\",e),$(o)||(r[o]||g.throwArgumentError(`unknown type ${JSON.stringify(o)}`,\"types\",e),r[o].push(i),t[i][o]=!0)})}let i=Object.keys(r).filter(e=>0===r[e].length);for(let s in 0===i.length?g.throwArgumentError(\"missing primary type\",\"types\",e):i.length>1&&g.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(\", \")}`,\"types\",e),(0,d.zG)(this,\"primaryType\",i[0]),!function i(s,o){o[s]&&g.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,\"types\",e),o[s]=!0,Object.keys(t[s]).forEach(e=>{r[e]&&(i(e,o),Object.keys(o).forEach(t=>{n[t][e]=!0}))}),delete o[s]}(this.primaryType,{}),n){let t=Object.keys(n[s]);t.sort(),this._types[s]=C(s,e[s])+t.map(t=>C(t,e[t])).join(\"\")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=$(e);if(t)return t}let t=e.match(/^(.*)(\\x5b(\\d*)\\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&g.throwArgumentError(\"array length mismatch; expected length ${ arrayLength }\",\"value\",t);let i=t.map(r);return this._types[e]&&(i=i.map(c.w)),(0,c.w)((0,l.xs)(i))}}let r=this.types[e];if(r){let t=(0,p.id)(this._types[e]);return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this._types[r]?(0,c.w)(n):n});return n.unshift(t),(0,l.xs)(n)}}return g.throwArgumentError(`unknown type: ${e}`,\"type\",e)}encodeType(e){let t=this._types[e];return t||g.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,\"name\",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,c.w)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if($(e))return r(e,t);let n=e.match(/^(.*)(\\x5b(\\d*)\\x5d)$/);if(n){let e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&g.throwArgumentError(\"array length mismatch; expected length ${ arrayLength }\",\"value\",t),t.map(t=>this._visit(e,t,r))}let i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):g.throwArgumentError(`unknown type: ${e}`,\"type\",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new P(e)}static getPrimaryType(e){return P.from(e).primaryType}static hashStruct(e,t,r){return P.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let n=A[r];n||g.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,\"domain\",e),t.push({name:r,type:n})}return t.sort((e,t)=>x.indexOf(e.name)-x.indexOf(t.name)),P.hashStruct(\"EIP712Domain\",{EIP712Domain:t},e)}static encode(e,t,r){return(0,l.xs)([\"0x1901\",P.hashDomain(e),P.from(t).hash(r)])}static hash(e,t,r){return(0,c.w)(P.encode(e,t,r))}static resolveNames(e,t,r,n){var i,s,o,a;return i=this,s=void 0,o=void 0,a=function*(){e=(0,d.DC)(e);let i={};e.verifyingContract&&!(0,l.A7)(e.verifyingContract,20)&&(i[e.verifyingContract]=\"0x\");let s=P.from(t);for(let e in s.visit(r,(e,t)=>(\"address\"!==e||(0,l.A7)(t,20)||(i[t]=\"0x\"),t)),i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=s.visit(r,(e,t)=>\"address\"===e&&i[t]?i[t]:t),{domain:e,value:r}},new(o||(o=Promise))(function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function n(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(r,n)}l((a=a.apply(i,s||[])).next())})}static getPayload(e,t,r){P.hashDomain(e);let n={},i=[];x.forEach(t=>{let r=e[t];null!=r&&(n[t]=S[t](r),i.push({name:t,type:A[t]}))});let s=P.from(t),o=(0,d.DC)(t);return o.EIP712Domain?g.throwArgumentError(\"types must not contain EIP712Domain type\",\"types.EIP712Domain\",t):o.EIP712Domain=i,s.encode(r),{types:o,domain:n,primaryType:s.primaryType,message:s.visit(r,(e,t)=>{if(e.match(/^bytes(\\d*)/))return(0,l.Dv)((0,l.lE)(t));if(e.match(/^u?int/))return a.O$.from(t).toString();switch(e){case\"address\":return t.toLowerCase();case\"bool\":return!!t;case\"string\":return\"string\"!=typeof t&&g.throwArgumentError(\"invalid string\",\"value\",t),t}return g.throwArgumentError(\"unsupported type\",\"type\",e)})}}}var I=r(28257),O=r(2149);function N(e){e=atob(e);let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,l.lE)(t)}function M(e){e=(0,l.lE)(e);let t=\"\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}let R=new h.Yd(\"web/5.7.1\");function T(e){return new Promise(t=>{setTimeout(t,e)})}function D(e,t){if(null==e)return null;if(\"string\"==typeof e)return e;if((0,l.Zq)(e)){if(t&&(\"text\"===t.split(\"/\")[0]||\"application/json\"===t.split(\";\")[0].trim()))try{return(0,I.ZN)(e)}catch(e){}return(0,l.Dv)(e)}return e}function L(e,t,r){let n=null;if(null!=t){n=(0,I.Y0)(t);let r=\"string\"==typeof e?{url:e}:(0,d.DC)(e);r.headers?0!==Object.keys(r.headers).filter(e=>\"content-type\"===e.toLowerCase()).length||(r.headers=(0,d.DC)(r.headers),r.headers[\"content-type\"]=\"application/json\"):r.headers={\"content-type\":\"application/json\"},e=r}return function(e,t,r){let n;let i=\"object\"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;R.assertArgument(i>0&&i%1==0,\"invalid connection throttle limit\",\"connection.throttleLimit\",i);let s=\"object\"==typeof e?e.throttleCallback:null,o=\"object\"==typeof e&&\"number\"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;R.assertArgument(o>0&&o%1==0,\"invalid connection throttle slot interval\",\"connection.throttleSlotInterval\",o);let a=\"object\"==typeof e&&!!e.errorPassThrough,u={},c=null,f={method:\"GET\"},p=!1,g=12e4;if(\"string\"==typeof e)c=e;else if(\"object\"==typeof e){if((null==e||null==e.url)&&R.throwArgumentError(\"missing URL\",\"connection.url\",e),c=e.url,\"number\"==typeof e.timeout&&e.timeout>0&&(g=e.timeout),e.headers)for(let t in e.headers)u[t.toLowerCase()]={key:t,value:String(e.headers[t])},[\"if-none-match\",\"if-modified-since\"].indexOf(t.toLowerCase())>=0&&(p=!0);if(f.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){\"https:\"!==c.substring(0,6)&&!0!==e.allowInsecureAuthentication&&R.throwError(\"basic authentication requires a secure https url\",h.Yd.errors.INVALID_ARGUMENT,{argument:\"url\",url:c,user:e.user,password:\"[REDACTED]\"});let t=e.user+\":\"+e.password;u.authorization={key:\"Authorization\",value:\"Basic \"+M((0,I.Y0)(t))}}null!=e.skipFetchSetup&&(f.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(f.fetchOptions=(0,d.DC)(e.fetchOptions))}let m=RegExp(\"^data:([^;:]*)?(;base64)?,(.*)$\",\"i\"),y=c?c.match(m):null;if(y)try{var b;let e={statusCode:200,statusMessage:\"OK\",headers:{\"content-type\":y[1]||\"text/plain\"},body:y[2]?N(y[3]):(b=y[3],(0,I.Y0)(b.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){R.throwError(\"processing response error\",h.Yd.errors.SERVER_ERROR,{body:D(y[1],y[2]),error:e,requestBody:null,requestMethod:\"GET\",url:c})}t&&(f.method=\"POST\",f.body=t,null==u[\"content-type\"]&&(u[\"content-type\"]={key:\"Content-Type\",value:\"application/octet-stream\"}),null==u[\"content-length\"]&&(u[\"content-length\"]={key:\"Content-Length\",value:String(t.length)}));let v={};Object.keys(u).forEach(e=>{let t=u[e];v[t.key]=t.value}),f.headers=v;let w=(n=null,{promise:new Promise(function(e,t){g&&(n=setTimeout(()=>{null!=n&&(n=null,t(R.makeError(\"timeout\",h.Yd.errors.TIMEOUT,{requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,timeout:g,url:c})))},g))}),cancel:function(){null!=n&&(clearTimeout(n),n=null)}}),_=function(){var e,t,n,u;return e=this,t=void 0,n=void 0,u=function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield function(e,t){var r,n,i,s;return r=this,n=void 0,i=void 0,s=function*(){null==t&&(t={});let r={method:t.method||\"GET\",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode=\"cors\",r.cache=\"no-cache\",r.credentials=\"same-origin\",r.redirect=\"follow\",r.referrer=\"client\"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let n=yield fetch(e,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((e,t)=>{s[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{s[e.toLowerCase()]=n.headers.get(e)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:(0,l.lE)(new Uint8Array(i))}},new(i||(i=Promise))(function(e,t){function o(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(o,a)}l((s=s.apply(r,n||[])).next())})}(c,f),e<i){if(301===t.statusCode||302===t.statusCode){let e=t.headers.location||\"\";if(\"GET\"===f.method&&e.match(/^https:/)){c=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(s&&(r=yield s(e,c)),r){let r=0,n=t.headers[\"retry-after\"];r=\"string\"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,e))),yield T(r);continue}}}}catch(e){null==(t=e.response)&&(w.cancel(),R.throwError(\"missing response\",h.Yd.errors.SERVER_ERROR,{requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,serverError:e,url:c}))}let n=t.body;if(p&&304===t.statusCode?n=null:!a&&(t.statusCode<200||t.statusCode>=300)&&(w.cancel(),R.throwError(\"bad response\",h.Yd.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:D(n,t.headers?t.headers[\"content-type\"]:null),requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,url:c})),r)try{let e=yield r(n,t);return w.cancel(),e}catch(r){if(r.throttleRetry&&e<i){let t=!0;if(s&&(t=yield s(e,c)),t){let t=o*parseInt(String(Math.random()*Math.pow(2,e)));yield T(t);continue}}w.cancel(),R.throwError(\"processing response error\",h.Yd.errors.SERVER_ERROR,{body:D(n,t.headers?t.headers[\"content-type\"]:null),error:r,requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,url:c})}return w.cancel(),n}return R.throwError(\"failed response\",h.Yd.errors.SERVER_ERROR,{requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,url:c})},new(n||(n=Promise))(function(r,i){function s(e){try{a(u.next(e))}catch(e){i(e)}}function o(e){try{a(u.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}a((u=u.apply(e,t||[])).next())})}();return Promise.race([w.promise,_])}(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,I.ZN)(e))}catch(t){R.throwError(\"invalid JSON\",h.Yd.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n})}function j(e,t){return t||(t={}),null==(t=(0,d.DC)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,s=!1,o=()=>!s&&(s=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{o()&&n(Error(\"timeout\"))},t.timeout));let a=t.retryLimit,l=0;!function i(){return e().then(function(e){if(void 0!==e)o()&&r(e);else if(t.oncePoll)t.oncePoll.once(\"poll\",i);else if(t.onceBlock)t.onceBlock.once(\"block\",i);else if(!s){if(++l>a){o()&&n(Error(\"retry limit reached\"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){o()&&n(e)})}()})}var B=r(86365),F=r(59035);class U{constructor(e){(0,d.zG)(this,\"alphabet\",e),(0,d.zG)(this,\"base\",e.length),(0,d.zG)(this,\"_alphabetMap\",{}),(0,d.zG)(this,\"_leader\",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=(0,l.lE)(e);if(0===t.length)return\"\";let r=[0];for(let e=0;e<t.length;++e){let n=t[e];for(let e=0;e<r.length;++e)n+=r[e]<<8,r[e]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n=\"\";for(let e=0;0===t[e]&&e<t.length-1;++e)n+=this._leader;for(let e=r.length-1;e>=0;--e)n+=this.alphabet[r[e]];return n}decode(e){if(\"string\"!=typeof e)throw TypeError(\"Expected String\");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw Error(\"Non-base\"+this.base+\" character\");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return(0,l.lE)(new Uint8Array(t.reverse()))}}new U(\"abcdefghijklmnopqrstuvwxyz234567\");let z=new U(\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\");function q(e,t){null==t&&(t=1);let r=[],n=r.forEach,i=function(e,t){n.call(e,function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function H(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function G(e,t){let r=H(e(),e),n=e(),i=H(n,e),s=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let e=0;e<n;e++)for(let t=0;t<s[e];t++)r.push(i[e]+t);return t?r.map(e=>t[e]):r}function V(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,s=0;i<e;i++){var n;r[i]=s+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}let W=(s=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,s=[0,1];for(let e=1;e<n;e++)s.push(i+=r());let o=r(),a=t;t+=o;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[t++],l=8),u>>--l&1}let d=0;for(let e=0;e<31;e++)d=d<<1|c();let h=[],f=0,p=2147483648;for(;;){let e=Math.floor(((d-f+1)*i-1)/p),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<s[n]?r=n:t=n}if(0==t)break;h.push(t);let o=f+Math.floor(p*s[t]/i),a=f+Math.floor(p*s[t+1]/i)-1;for(;((o^a)&1073741824)==0;)d=d<<1&2147483647|c(),o=o<<1&2147483647,a=a<<1&2147483647|1;for(;o&~a&536870912;)d=1073741824&d|d<<1&1073741823|c(),o=o<<1^1073741824,a=(1073741824^a)<<1|1073741825;f=o,p=1+a-o}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return g+256+(e[a++]<<8|e[a++]);case 1:return g+e[a++];default:return t-1}})}(N(\"AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==\")),i=0,()=>s[i++]),K=new Set(G(W)),Y=new Set(G(W)),Z=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return q(V(i.length,1+e,t).map((e,t)=>{let s=e[0],o=e.slice(1);return Array(i[t]).fill(void 0).map((e,t)=>{let i=t*n;return[s+t*r,o.map(e=>e+i)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(V(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[n[0]]=n[1]}return t}(q(t))}(W),J=(n=G(W).sort((e,t)=>e-t),function e(){let t=[];for(;;){let r=G(W,n);if(0==r.length)break;t.push({set:new Set(r),node:e()})}t.sort((e,t)=>t.set.size-e.set.size);let r=W();return{branches:t,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}());function Q(e){return e.filter(e=>65039!=e)}function X(e){for(let t of e.split(\".\")){let e=(0,I.XL)(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error(\"underscore only allowed at start\");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error(\"invalid label extension\")}catch(e){throw Error(`Invalid label \"${t}\": ${e.message}`)}}return e}let ee=new h.Yd(f),et=new Uint8Array(32);function er(e){if(0===e.length)throw Error(\"invalid ENS name; empty component\");return e}function en(e){let t=(0,I.Y0)(X(function(e,t){let r=(0,I.XL)(e).reverse(),n=[];for(;r.length;){let e=function(e,t){var r;let n,i;let s=J,o=[],a=e.length;for(;a;){let t=e[--a];if(!(s=null===(r=s.branches.find(e=>e.set.has(t)))||void 0===r?void 0:r.node))break;if(s.save)i=t;else if(s.check&&t===i)break;o.push(t),s.fe0f&&(o.push(65039),a>0&&65039==e[a-1]&&a--),s.valid&&(n=o.slice(),2==s.valid&&n.splice(1,1),e.length=a)}return n}(r);if(e){n.push(...t(e));continue}let i=r.pop();if(K.has(i)){n.push(i);continue}if(Y.has(i))continue;let s=Z[i];if(s){n.push(...s);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return X(String.fromCodePoint(...n).normalize(\"NFC\"))}(e,Q))),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(er(t.slice(n,e))),n=e+1);if(n>=t.length)throw Error(\"invalid ENS name; empty component\");return r.push(er(t.slice(n))),r}function ei(e){\"string\"!=typeof e&&ee.throwArgumentError(\"invalid ENS name; not a string\",\"name\",e);let t=et,r=en(e);for(;r.length;)t=(0,c.w)((0,l.zo)([t,(0,c.w)(r.pop())]));return(0,l.Dv)(t)}et.fill(0);let es=new h.Yd(\"networks/5.7.1\");function eo(e){let t=function(t,r){null==r&&(r={});let n=[];if(t.InfuraProvider&&\"-\"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&\"-\"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&\"-\"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&\"-\"!==r.pocket)try{let i=new t.PocketProvider(e,r.pocket);i.network&&-1===[\"goerli\",\"ropsten\",\"rinkeby\",\"sepolia\"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.CloudflareProvider&&\"-\"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&\"-\"!==r.ankr)try{let i=new t.AnkrProvider(e,r.ankr);i.network&&-1===[\"ropsten\"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:\"homestead\"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return eo(e)},t}function ea(e,t){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return ea(e,t)},r}let el={chainId:1,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"homestead\",_defaultProvider:eo(\"homestead\")},eu={chainId:3,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"ropsten\",_defaultProvider:eo(\"ropsten\")},ec={chainId:63,name:\"classicMordor\",_defaultProvider:ea(\"https://www.ethercluster.com/mordor\",\"classicMordor\")},ed={unspecified:{chainId:0,name:\"unspecified\"},homestead:el,mainnet:el,morden:{chainId:2,name:\"morden\"},ropsten:eu,testnet:eu,rinkeby:{chainId:4,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"rinkeby\",_defaultProvider:eo(\"rinkeby\")},kovan:{chainId:42,name:\"kovan\",_defaultProvider:eo(\"kovan\")},goerli:{chainId:5,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"goerli\",_defaultProvider:eo(\"goerli\")},kintsugi:{chainId:1337702,name:\"kintsugi\"},sepolia:{chainId:11155111,name:\"sepolia\",_defaultProvider:eo(\"sepolia\")},classic:{chainId:61,name:\"classic\",_defaultProvider:ea(\"https://www.ethercluster.com/etc\",\"classic\")},classicMorden:{chainId:62,name:\"classicMorden\"},classicMordor:ec,classicTestnet:ec,classicKotti:{chainId:6,name:\"classicKotti\",_defaultProvider:ea(\"https://www.ethercluster.com/kotti\",\"classicKotti\")},xdai:{chainId:100,name:\"xdai\"},matic:{chainId:137,name:\"matic\",_defaultProvider:eo(\"matic\")},maticmum:{chainId:80001,name:\"maticmum\"},optimism:{chainId:10,name:\"optimism\",_defaultProvider:eo(\"optimism\")},\"optimism-kovan\":{chainId:69,name:\"optimism-kovan\"},\"optimism-goerli\":{chainId:420,name:\"optimism-goerli\"},arbitrum:{chainId:42161,name:\"arbitrum\"},\"arbitrum-rinkeby\":{chainId:421611,name:\"arbitrum-rinkeby\"},\"arbitrum-goerli\":{chainId:421613,name:\"arbitrum-goerli\"},bnb:{chainId:56,name:\"bnb\"},bnbt:{chainId:97,name:\"bnbt\"}};var eh=r(83699),ef=r.n(eh);function ep(e){return\"0x\"+ef().sha256().update((0,l.lE)(e)).digest(\"hex\")}new h.Yd(\"sha2/5.7.0\");var eg=r(1192),em=r.n(eg);let ey=new h.Yd(B.i);class eb{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),s=this.hash.bind(this),o=this.hex.bind(this),a=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:s,type:l,accessList:eb.allowNull(this.accessList.bind(this),null),blockHash:eb.allowNull(s,null),blockNumber:eb.allowNull(a,null),transactionIndex:eb.allowNull(a,null),confirmations:eb.allowNull(a,null),from:t,gasPrice:eb.allowNull(r),maxPriorityFeePerGas:eb.allowNull(r),maxFeePerGas:eb.allowNull(r),gasLimit:r,to:eb.allowNull(t,null),value:r,nonce:a,data:i,r:eb.allowNull(this.uint256),s:eb.allowNull(this.uint256),v:eb.allowNull(a),creates:eb.allowNull(t,null),raw:eb.allowNull(i)},e.transactionRequest={from:eb.allowNull(t),nonce:eb.allowNull(a),gasLimit:eb.allowNull(r),gasPrice:eb.allowNull(r),maxPriorityFeePerGas:eb.allowNull(r),maxFeePerGas:eb.allowNull(r),to:eb.allowNull(t),value:eb.allowNull(r),data:eb.allowNull(e=>this.data(e,!0)),type:eb.allowNull(a),accessList:eb.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:s,address:t,topics:eb.arrayOf(s),data:i,logIndex:a,blockHash:s},e.receipt={to:eb.allowNull(this.address,null),from:eb.allowNull(this.address,null),contractAddress:eb.allowNull(t,null),transactionIndex:a,root:eb.allowNull(o),gasUsed:r,logsBloom:eb.allowNull(i),blockHash:s,transactionHash:s,logs:eb.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:eb.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:eb.allowNull(r),status:eb.allowNull(a),type:l},e.block={hash:eb.allowNull(s),parentHash:s,number:a,timestamp:a,nonce:eb.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:eb.allowNull(t),extraData:i,transactions:eb.allowNull(eb.arrayOf(s)),baseFeePerGas:eb.allowNull(r)},e.blockWithTransactions=(0,d.DC)(e.block),e.blockWithTransactions.transactions=eb.allowNull(eb.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:eb.allowNull(n,void 0),toBlock:eb.allowNull(n,void 0),blockHash:eb.allowNull(s,void 0),address:eb.allowNull(t,void 0),topics:eb.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:eb.allowNull(a),blockHash:eb.allowNull(s),transactionIndex:a,removed:eb.allowNull(this.boolean.bind(this)),address:t,data:eb.allowFalsish(i,\"0x\"),topics:eb.arrayOf(s),transactionHash:s,logIndex:a},e}accessList(e){return(0,O.z7)(e||[])}number(e){return\"0x\"===e?0:a.O$.from(e).toNumber()}type(e){return\"0x\"===e||null==e?0:a.O$.from(e).toNumber()}bigNumber(e){return a.O$.from(e)}boolean(e){if(\"boolean\"==typeof e)return e;if(\"string\"==typeof e){if(\"true\"===(e=e.toLowerCase()))return!0;if(\"false\"===e)return!1}throw Error(\"invalid boolean - \"+e)}hex(e,t){return\"string\"==typeof e&&(t||\"0x\"===e.substring(0,2)||(e=\"0x\"+e),(0,l.A7)(e))?e.toLowerCase():ey.throwArgumentError(\"invalid hash\",\"value\",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error(\"invalid data; odd-length - \"+e);return r}address(e){return(0,u.Kn)(e)}callAddress(e){if(!(0,l.A7)(e,32))return null;let t=(0,u.Kn)((0,l.p3)(e,12));return\"0x0000000000000000000000000000000000000000\"===t?null:t}contractAddress(e){return(0,u.CR)(e)}blockTag(e){if(null==e)return\"latest\";if(\"earliest\"===e)return\"0x0\";switch(e){case\"earliest\":return\"0x0\";case\"latest\":case\"pending\":case\"safe\":case\"finalized\":return e}if(\"number\"==typeof e||(0,l.A7)(e))return(0,l.$P)(e);throw Error(\"invalid blockTag\")}hash(e,t){let r=this.hex(e,t);return 32!==(0,l.E1)(r)?ey.throwArgumentError(\"invalid hash\",\"value\",e):r}difficulty(e){if(null==e)return null;let t=a.O$.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,l.A7)(e))throw Error(\"invalid uint256\");return(0,l.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,n=eb.check(t,e);return n._difficulty=null==r?null:a.O$.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return eb.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&a.O$.from(e.to).isZero()&&(e.to=\"0x0000000000000000000000000000000000000000\"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=eb.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,l.A7)(r)&&(r=a.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,l.A7)(r)&&(r=a.O$.from(r).toNumber()),\"number\"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),\"number\"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&\"x\"===t.blockHash.replace(/0/g,\"\")&&(t.blockHash=null),t}transaction(e){return(0,O.Qc)(e)}receiptLog(e){return eb.check(this.formats.receiptLog,e)}receipt(e){let t=eb.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=a.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&ey.throwArgumentError(\"alt-root-status/status mismatch\",\"value\",{root:t.root,status:t.status}),t.status=e,delete t.root):ey.throwArgumentError(\"invalid alt-root-status\",\"value.root\",t.root)}else 66!==t.root.length&&ey.throwArgumentError(\"invalid root hash\",\"value.root\",t.root)}return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return eb.check(this.formats.filter,e)}filterLog(e){return eb.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let n in e)try{let i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error(\"not an array\");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}var ev=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let ew=new h.Yd(B.i);function e_(e){return null==e?\"null\":(32!==(0,l.E1)(e)&&ew.throwArgumentError(\"invalid topic\",\"topic\",e),e.toLowerCase())}function eE(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return e_(e);{let t={};e.forEach(e=>{t[e_(e)]=!0});let r=Object.keys(t);return r.sort(),r.join(\"|\")}}).join(\"&\")}function eA(e){if(\"string\"==typeof e){if(e=e.toLowerCase(),32===(0,l.E1)(e))return\"tx:\"+e;if(-1===e.indexOf(\":\"))return e}else if(Array.isArray(e))return\"filter:*:\"+eE(e);else if(F.Sg.isForkEvent(e))throw ew.warn(\"not implemented\"),Error(\"not implemented\");else if(e&&\"object\"==typeof e)return\"filter:\"+(e.address||\"*\")+\":\"+eE(e.topics||[]);throw Error(\"invalid event - \"+e)}function ex(){return new Date().getTime()}function ek(e){return new Promise(t=>{setTimeout(t,e)})}let eS=[\"block\",\"network\",\"pending\",\"poll\"];class e${constructor(e,t,r){(0,d.zG)(this,\"tag\",e),(0,d.zG)(this,\"listener\",t),(0,d.zG)(this,\"once\",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case\"tx\":return this.hash;case\"filter\":return this.filter}return this.tag}get type(){return this.tag.split(\":\")[0]}get hash(){let e=this.tag.split(\":\");return\"tx\"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(\":\");if(\"filter\"!==t[0])return null;let r=t[1],n=\"\"===(e=t[2])?[]:e.split(/&/g).map(e=>{if(\"\"===e)return[];let t=e.split(\"|\").map(e=>\"null\"===e?null:e);return 1===t.length?t[0]:t}),i={};return n.length>0&&(i.topics=n),r&&\"*\"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(\":\")>=0||eS.indexOf(this.tag)>=0}}let eC={0:{symbol:\"btc\",p2pkh:0,p2sh:5,prefix:\"bc\"},2:{symbol:\"ltc\",p2pkh:48,p2sh:50,prefix:\"ltc\"},3:{symbol:\"doge\",p2pkh:30,p2sh:22},60:{symbol:\"eth\",ilk:\"eth\"},61:{symbol:\"etc\",ilk:\"eth\"},700:{symbol:\"xdai\",ilk:\"eth\"}};function eP(e){return(0,l.$m)(a.O$.from(e).toHexString(),32)}function eI(e){return z.encode((0,l.zo)([e,(0,l.p3)(ep(ep(e)),0,4)]))}let eO=RegExp(\"^(ipfs)://(.*)$\",\"i\"),eN=[RegExp(\"^(https)://(.*)$\",\"i\"),RegExp(\"^(data):(.*)$\",\"i\"),eO,RegExp(\"^eip155:[0-9]+/(erc[0-9]+):(.*)$\",\"i\")];function eM(e,t){try{return(0,I.ZN)(eR(e,t))}catch(e){}return null}function eR(e,t){if(\"0x\"===e)return null;let r=a.O$.from((0,l.p3)(e,t,t+32)).toNumber(),n=a.O$.from((0,l.p3)(e,r,r+32)).toNumber();return(0,l.p3)(e,r+32,r+32+n)}function eT(e){return e.match(/^ipfs:\\/\\/ipfs\\//i)?e=e.substring(12):e.match(/^ipfs:\\/\\//i)?e=e.substring(7):ew.throwArgumentError(\"unsupported IPFS format\",\"link\",e),`https://gateway.ipfs.io/ipfs/${e}`}function eD(e){let t=(0,l.lE)(e);if(t.length>32)throw Error(\"internal; should not happen\");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function eL(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){let i=(0,l.lE)(e[n]);t[n]=eD(r),t.push(eD(i.length)),t.push(function(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}(i)),r+=32+32*Math.ceil(i.length/32)}return(0,l.xs)(t)}class ej{constructor(e,t,r,n){(0,d.zG)(this,\"provider\",e),(0,d.zG)(this,\"name\",r),(0,d.zG)(this,\"address\",e.formatter.address(t)),(0,d.zG)(this,\"_resolvedAddress\",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:\"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000\"}).then(e=>a.O$.from(e).eq(1)).catch(e=>{if(e.code===h.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return ev(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,l.xs)([e,ei(this.name),t||\"0x\"])},n=!1;if(yield this.supportsWildcard()){var i;n=!0,r.data=(0,l.xs)([\"0x9061b923\",eL([(i=this.name,(0,l.Dv)((0,l.zo)(en(i).map(e=>{if(e.length>63)throw Error(\"invalid DNS encoded entry; length exceeds 63 bytes\");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+\"00\"),r.data])])}try{let e=yield this.provider.call(r);return(0,l.lE)(e).length%32==4&&ew.throwError(\"resolver threw error\",h.Yd.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=eR(e,0)),e}catch(e){if(e.code===h.Yd.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return ev(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?eR(r,0):null})}_getAddress(e,t){let r=eC[String(e)];if(null==r&&ew.throwError(`unsupported coin type: ${e}`,h.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),\"eth\"===r.ilk)return this.provider.formatter.address(t);let n=(0,l.lE)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return eI((0,l.zo)([[r.p2pkh],\"0x\"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return eI((0,l.zo)([[r.p2sh],\"0x\"+e[2]]))}}if(null!=r.prefix){let e=n[1],t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){let e=em().toWords(n.slice(2));return e.unshift(t),em().encode(r.prefix,e)}}return null}getAddress(e){return ev(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch(\"0x3b3b57de\");if(\"0x\"===e||\"0x0000000000000000000000000000000000000000000000000000000000000000\"===e)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===h.Yd.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes(\"0xf1cb7e06\",eP(e));if(null==t||\"0x\"===t)return null;let r=this._getAddress(e,t);return null==r&&ew.throwError(\"invalid or unsupported coin data\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return ev(this,void 0,void 0,function*(){let e=[{type:\"name\",content:this.name}];try{let t=yield this.getText(\"avatar\");if(null==t)return null;for(let r=0;r<eN.length;r++){let n=t.match(eN[r]);if(null==n)continue;let i=n[1].toLowerCase();switch(i){case\"https\":return e.push({type:\"url\",content:t}),{linkage:e,url:t};case\"data\":return e.push({type:\"data\",content:t}),{linkage:e,url:t};case\"ipfs\":return e.push({type:\"ipfs\",content:t}),{linkage:e,url:eT(t)};case\"erc721\":case\"erc1155\":{let r=\"erc721\"===i?\"0xc87b56dd\":\"0x0e89341c\";e.push({type:i,content:t});let s=this._resolvedAddress||(yield this.getAddress()),o=(n[2]||\"\").split(\"/\");if(2!==o.length)return null;let u=yield this.provider.formatter.address(o[0]),c=(0,l.$m)(a.O$.from(o[1]).toHexString(),32);if(\"erc721\"===i){let t=this.provider.formatter.callAddress((yield this.provider.call({to:u,data:(0,l.xs)([\"0x6352211e\",c])})));if(s!==t)return null;e.push({type:\"owner\",content:t})}else if(\"erc1155\"===i){let t=a.O$.from((yield this.provider.call({to:u,data:(0,l.xs)([\"0x00fdd58e\",(0,l.$m)(s,32),c])})));if(t.isZero())return null;e.push({type:\"balance\",content:t.toString()})}let d={to:this.provider.formatter.address(o[0]),data:(0,l.xs)([r,c])},h=eM((yield this.provider.call(d)),0);if(null==h)return null;e.push({type:\"metadata-url-base\",content:h}),\"erc1155\"===i&&(h=h.replace(\"{id}\",c.substring(2)),e.push({type:\"metadata-url-expanded\",content:h})),h.match(/^ipfs:/i)&&(h=eT(h)),e.push({type:\"metadata-url\",content:h});let f=yield L(h);if(!f)return null;e.push({type:\"metadata\",content:JSON.stringify(f)});let p=f.image;if(\"string\"!=typeof p)return null;if(p.match(/^(https:\\/\\/|data:)/i));else{let t=p.match(eO);if(null==t)return null;e.push({type:\"url-ipfs\",content:p}),p=eT(p)}return e.push({type:\"url\",content:p}),{linkage:e,url:p}}}}}catch(e){}return null})}getContentHash(){return ev(this,void 0,void 0,function*(){let e=yield this._fetchBytes(\"0xbc1c58d1\");if(null==e||\"0x\"===e)return null;let t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e=parseInt(t[3],16);if(t[4].length===2*e)return\"ipfs://\"+z.encode(\"0x\"+t[1])}let r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let e=parseInt(r[3],16);if(r[4].length===2*e)return\"ipns://\"+z.encode(\"0x\"+r[1])}let n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return\"bzz://\"+n[1];let i=e.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){let e={\"=\":\"\",\"+\":\"-\",\"/\":\"_\"};return\"sia://\"+M(\"0x\"+i[1]).replace(/[=+\\/]/g,t=>e[t])}return ew.throwError(\"invalid or unsupported content hash data\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"getContentHash()\",data:e})})}getText(e){return ev(this,void 0,void 0,function*(){let t=(0,I.Y0)(e);(t=(0,l.zo)([eP(64),eP(t.length),t])).length%32!=0&&(t=(0,l.zo)([t,(0,l.$m)(\"0x\",32-e.length%32)]));let r=yield this._fetchBytes(\"0x59d1d43c\",(0,l.Dv)(t));return null==r||\"0x\"===r?null:(0,I.ZN)(r)})}}let eB=null,eF=1;class eU extends F.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,d.zG)(this,\"anyNetwork\",\"any\"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,d.tu)(new.target,\"getNetwork\")(e);t?((0,d.zG)(this,\"_network\",t),this.emit(\"network\",t,null)):ew.throwArgumentError(\"invalid network\",\"network\",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return ev(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||ew.throwError(\"no network detected\",h.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,d.zG)(this,\"_network\",e),this.emit(\"network\",e,null))}return this._network})}get ready(){return j(()=>this._ready().then(e=>e,e=>{if(e.code!==h.Yd.errors.NETWORK_ERROR||\"noNetwork\"!==e.event)throw e}))}static getFormatter(){return null==eB&&(eB=new eb),eB}static getNetwork(e){return function(e){if(null==e)return null;if(\"number\"==typeof e){for(let t in ed){let r=ed[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:\"unknown\"}}if(\"string\"==typeof e){let t=ed[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=ed[e.name];if(!t)return\"number\"!=typeof e.chainId&&es.throwArgumentError(\"invalid network chainId\",\"network\",e),e;0!==e.chainId&&e.chainId!==t.chainId&&es.throwArgumentError(\"network chainId mismatch\",\"network\",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var n;r=(n=t._defaultProvider)&&\"function\"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}(null==e?\"homestead\":e)}ccipReadFetch(e,t,r){return ev(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),s=[];for(let e=0;e<r.length;e++){let t=r[e],o=t.replace(\"{sender}\",n).replace(\"{data}\",i),a=t.indexOf(\"{data}\")>=0?null:JSON.stringify({data:i,sender:n}),l=yield L({url:o,errorPassThrough:!0},a,(e,t)=>(e.status=t.statusCode,e));if(l.data)return l.data;let u=l.message||\"unknown error\";if(l.status>=400&&l.status<500)return ew.throwError(`response not found during CCIP fetch: ${u}`,h.Yd.errors.SERVER_ERROR,{url:t,errorMessage:u});s.push(u)}return ew.throwError(`error encountered during CCIP fetch: ${s.map(e=>JSON.stringify(e)).join(\", \")}`,h.Yd.errors.SERVER_ERROR,{urls:r,errorMessages:s})})}_getInternalBlockNumber(e){return ev(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(ex()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=ex(),r=(0,d.mE)({blockNumber:this.perform(\"getBlockNumber\",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=ex();return(e=a.O$.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return ev(this,void 0,void 0,function*(){let e=eF++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit(\"error\",e);return}if(this._setFastBlockNumber(r),this.emit(\"poll\",e,r),r===this._lastBlockNumber){this.emit(\"didPoll\",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)ew.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit(\"error\",ew.makeError(\"network block skew detected\",h.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:\"blockSkew\",previousBlockNumber:this._emitted.block})),this.emit(\"block\",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit(\"block\",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if(\"block\"===e)return;let t=this._emitted[e];\"pending\"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case\"tx\":{let r=e.hash,n=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted[\"t:\"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit(\"error\",e)});t.push(n);break}case\"filter\":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;let i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);let s=this.getLogs(n).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted[\"b:\"+t.blockHash]=t.blockNumber,this._emitted[\"t:\"+t.transactionHash]=t.blockNumber,this.emit(n,t)})}).catch(t=>{this.emit(\"error\",t),e._inflight=!1});t.push(s)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit(\"didPoll\",e)}).catch(e=>{this.emit(\"error\",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return ev(this,void 0,void 0,function*(){return ew.throwError(\"provider does not support network detection\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"provider.detectNetwork\"})})}getNetwork(){return ev(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit(\"network\",t,e),yield ek(0),this._network;let r=ew.makeError(\"underlying network changed\",h.Yd.errors.NETWORK_ERROR,{event:\"changed\",network:e,detectedNetwork:t});throw this.emit(\"error\",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(\"number\"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error(\"invalid polling interval\");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=ex();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(e<this._fastBlockNumber))&&(this._fastQueryDate=ex(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return ev(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return ev(this,void 0,void 0,function*(){let i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise((i,s)=>{let o=[],a=!1,l=function(){return!!a||(a=!0,o.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<t||l()||i(e)};if(this.on(e,u),o.push(()=>{this.removeListener(e,u)}),n){let r=n.startBlock,i=null,u=o=>ev(this,void 0,void 0,function*(){a||(yield ek(1e3),this.getTransactionCount(n.from).then(c=>ev(this,void 0,void 0,function*(){if(!a){if(c<=n.nonce)r=o;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3)<n.startBlock&&(i=n.startBlock);i<=o;){if(a)return;let r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){let o=r.transactions[i];if(o.hash===e)return;if(o.from===n.from&&o.nonce===n.nonce){if(a)return;let r=yield this.waitForTransaction(o.hash,t);if(l())return;let i=\"replaced\";o.data===n.data&&o.to===n.to&&o.value.eq(n.value)?i=\"repriced\":\"0x\"===o.data&&o.from===o.to&&o.value.isZero()&&(i=\"cancelled\"),s(ew.makeError(\"transaction was replaced\",h.Yd.errors.TRANSACTION_REPLACED,{cancelled:\"replaced\"===i||\"cancelled\"===i,reason:i,replacement:this._wrapTransaction(o),hash:e,receipt:r}));return}}i++}}a||this.once(\"block\",u)}}),e=>{a||this.once(\"block\",u)}))});if(a)return;this.once(\"block\",u),o.push(()=>{this.removeListener(\"block\",u)})}if(\"number\"==typeof r&&r>0){let e=setTimeout(()=>{l()||s(ew.makeError(\"timeout exceeded\",h.Yd.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),o.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return ev(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform(\"getGasPrice\",{});try{return a.O$.from(e)}catch(t){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getGasPrice\",result:e,error:t})}})}getBalance(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform(\"getBalance\",r);try{return a.O$.from(n)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getBalance\",params:r,result:n,error:e})}})}getTransactionCount(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform(\"getTransactionCount\",r);try{return a.O$.from(n).toNumber()}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getTransactionCount\",params:r,result:n,error:e})}})}getCode(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform(\"getCode\",r);try{return(0,l.Dv)(n)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getCode\",params:r,result:n,error:e})}})}getStorageAt(e,t,r){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,l.$P)(e))}),i=yield this.perform(\"getStorageAt\",n);try{return(0,l.Dv)(i)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getStorageAt\",params:n,result:i,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,l.E1)(t))throw Error(\"invalid response - sendTransaction\");return null!=t&&e.hash!==t&&ew.throwError(\"Transaction hash mismatch from Provider.sendTransaction.\",h.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,n)=>ev(this,void 0,void 0,function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let s=yield this._waitForTransaction(e.hash,t,n,i);return null==s&&0===t?null:(this._emitted[\"t:\"+e.hash]=s.blockNumber,0===s.status&&ew.throwError(\"transaction failed\",h.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),s)}),e}sendTransaction(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,l.Dv)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform(\"sendTransaction\",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return ev(this,void 0,void 0,function*(){let t=yield e,r={};return[\"from\",\"to\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),[\"gasLimit\",\"gasPrice\",\"maxFeePerGas\",\"maxPriorityFeePerGas\",\"value\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?a.O$.from(e):null))}),[\"type\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),[\"data\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,l.Dv)(e):null))}),this.formatter.transactionRequest((yield(0,d.mE)(r)))})}_getFilter(e){return ev(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),[\"blockHash\",\"topics\"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),[\"fromBlock\",\"toBlock\"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,d.mE)(t)))})}_call(e,t,r){return ev(this,void 0,void 0,function*(){r>=10&&ew.throwError(\"CCIP read exceeded maximum redirections\",h.Yd.errors.SERVER_ERROR,{redirects:r,transaction:e});let n=e.to,i=yield this.perform(\"call\",{transaction:e,blockTag:t});if(r>=0&&\"latest\"===t&&null!=n&&\"0x556f1830\"===i.substring(0,10)&&(0,l.E1)(i)%32==4)try{let s=(0,l.p3)(i,4),o=(0,l.p3)(s,0,32);a.O$.from(o).eq(n)||ew.throwError(\"CCIP Read sender did not match\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i});let u=[],c=a.O$.from((0,l.p3)(s,32,64)).toNumber(),d=a.O$.from((0,l.p3)(s,c,c+32)).toNumber(),f=(0,l.p3)(s,c+32);for(let t=0;t<d;t++){let r=eM(f,32*t);null==r&&ew.throwError(\"CCIP Read contained corrupt URL string\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i}),u.push(r)}let p=eR(s,64);a.O$.from((0,l.p3)(s,100,128)).isZero()||ew.throwError(\"CCIP Read callback selector included junk\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i});let g=(0,l.p3)(s,96,100),m=eR(s,128),y=yield this.ccipReadFetch(e,p,u);null==y&&ew.throwError(\"CCIP Read disabled or provided no URLs\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i});let b={to:n,data:(0,l.xs)([g,eL([y,m])])};return this._call(b,t,r+1)}catch(e){if(e.code===h.Yd.errors.SERVER_ERROR)throw e}try{return(0,l.Dv)(i)}catch(r){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"call\",params:{transaction:e,blockTag:t},result:i,error:r})}})}call(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,d.mE)({transaction:this._getTransactionRequest(e)}),r=yield this.perform(\"estimateGas\",t);try{return a.O$.from(r)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"estimateGas\",params:t,result:r,error:e})}})}_getAddress(e){return ev(this,void 0,void 0,function*(){\"string\"!=typeof(e=yield e)&&ew.throwArgumentError(\"invalid address or ENS name\",\"name\",e);let t=yield this.resolveName(e);return null==t&&ew.throwError(\"ENS name not configured\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t})}_getBlock(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128,n={includeTransactions:!!t};if((0,l.A7)(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),(0,l.A7)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(t){ew.throwArgumentError(\"invalid block hash or block tag\",\"blockHashOrBlockTag\",e)}return j(()=>ev(this,void 0,void 0,function*(){let e=yield this.perform(\"getBlock\",n);if(null==e)return null!=n.blockHash&&null==this._emitted[\"b:\"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;r<e.transactions.length;r++){let n=e.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}}let r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return j(()=>ev(this,void 0,void 0,function*(){let r=yield this.perform(\"getTransaction\",t);if(null==r)return null==this._emitted[\"t:\"+e]?null:void 0;let n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return j(()=>ev(this,void 0,void 0,function*(){let r=yield this.perform(\"getTransactionReceipt\",t);if(null==r)return null==this._emitted[\"t:\"+e]?null:void 0;if(null==r.blockHash)return;let n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}),{oncePoll:this})})}getLogs(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,d.mE)({filter:this._getFilter(e)}),r=yield this.perform(\"getLogs\",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),eb.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return ev(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform(\"getEtherPrice\",{})})}_getBlockTag(e){return ev(this,void 0,void 0,function*(){if(\"number\"==typeof(e=yield e)&&e<0){e%1&&ew.throwArgumentError(\"invalid BlockTag\",\"blockTag\",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return ev(this,void 0,void 0,function*(){let t=e;for(;;){if(\"\"===t||\".\"===t||\"eth\"!==e&&\"eth\"===t)return null;let r=yield this._getResolver(t,\"getResolver\");if(null!=r){let n=new ej(this,r,e);if(t!==e&&!(yield n.supportsWildcard()))return null;return n}t=t.split(\".\").slice(1).join(\".\")}})}_getResolver(e,t){return ev(this,void 0,void 0,function*(){null==t&&(t=\"ENS\");let r=yield this.getNetwork();r.ensAddress||ew.throwError(\"network does not support ENS\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:\"0x0178b8bf\"+ei(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return ev(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,l.A7)(e))throw t}\"string\"!=typeof e&&ew.throwArgumentError(\"invalid ENS name\",\"name\",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return ev(this,void 0,void 0,function*(){e=yield e;let t=(e=this.formatter.address(e)).substring(2).toLowerCase()+\".addr.reverse\",r=yield this._getResolver(t,\"lookupAddress\");if(null==r)return null;let n=eM((yield this.call({to:r,data:\"0x691f3431\"+ei(t).substring(2)})),0);return(yield this.resolveName(n))!=e?null:n})}getAvatar(e){return ev(this,void 0,void 0,function*(){let t=null;if((0,l.A7)(e)){let r=this.formatter.address(e).substring(2).toLowerCase()+\".addr.reverse\",n=yield this._getResolver(r,\"getAvatar\");if(!n)return null;t=new ej(this,n,r);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==h.Yd.errors.CALL_EXCEPTION)throw e}try{let e=eM((yield this.call({to:n,data:\"0x691f3431\"+ei(r).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==h.Yd.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return ew.throwError(e+\" not implemented\",h.Yd.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let n=new e$(eA(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=eA(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=eA(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=eA(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],n=!1,i=eA(e);return this._events=this._events.filter(e=>e.tag!==i||e.listener!=t||!!n||(n=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=eA(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var ez=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let eq=new h.Yd(B.i),eH=[\"call\",\"estimateGas\"];function eG(e,t){if(null==e)return null;if(\"string\"==typeof e.message&&e.message.match(\"reverted\")){let r=(0,l.A7)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if(\"object\"==typeof e){for(let r in e){let n=eG(e[r],t);if(n)return n}return null}if(\"string\"==typeof e)try{return eG(JSON.parse(e),t)}catch(e){}return null}function eV(e,t,r){let n=r.transaction||r.signedTransaction;if(\"call\"===e){let e=eG(t,!0);if(e)return e.data;eq.throwError(\"missing revert data in call exception; Transaction reverted without a reason string\",h.Yd.errors.CALL_EXCEPTION,{data:\"0x\",transaction:n,error:t})}if(\"estimateGas\"===e){let r=eG(t.body,!1);null==r&&(r=eG(t,!1)),r&&eq.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\",h.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===h.Yd.errors.SERVER_ERROR&&t.error&&\"string\"==typeof t.error.message?i=t.error.message:\"string\"==typeof t.body?i=t.body:\"string\"==typeof t.responseText&&(i=t.responseText),(i=(i||\"\").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&eq.throwError(\"insufficient funds for intrinsic transaction cost\",h.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&eq.throwError(\"nonce has already been used\",h.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&eq.throwError(\"replacement fee too low\",h.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&eq.throwError(\"legacy pre-eip-155 transactions not supported\",h.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),eH.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&eq.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\",h.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function eW(e){return new Promise(function(t){setTimeout(t,e)})}function eK(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function eY(e){return e?e.toLowerCase():e}let eZ={};class eJ extends o.E{constructor(e,t,r){if(super(),e!==eZ)throw Error(\"do not call the JsonRpcSigner constructor directly; use provider.getSigner\");(0,d.zG)(this,\"provider\",t),null==r&&(r=0),\"string\"==typeof r?((0,d.zG)(this,\"_address\",this.provider.formatter.address(r)),(0,d.zG)(this,\"_index\",null)):\"number\"==typeof r?((0,d.zG)(this,\"_index\",r),(0,d.zG)(this,\"_address\",null)):eq.throwArgumentError(\"invalid address or index\",\"addressOrIndex\",r)}connect(e){return eq.throwError(\"cannot alter JSON-RPC Signer connection\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"connect\"})}connectUnchecked(){return new eQ(eZ,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send(\"eth_accounts\",[]).then(e=>(e.length<=this._index&&eq.throwError(\"unknown account #\"+this._index,h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"getAddress\"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,d.DC)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,d.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>ez(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&eq.throwArgumentError(\"provided ENS name resolves to null\",\"tx.to\",e),t}))),(0,d.mE)({tx:(0,d.mE)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&eq.throwArgumentError(\"from address mismatch\",\"transaction\",e):t.from=r;let n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send(\"eth_sendTransaction\",[n]).then(e=>e,e=>(\"string\"==typeof e.message&&e.message.match(/user denied/i)&&eq.throwError(\"user rejected transaction\",h.Yd.errors.ACTION_REJECTED,{action:\"sendTransaction\",transaction:t}),eV(\"sendTransaction\",e,n)))})}signTransaction(e){return eq.throwError(\"signing transactions is unsupported\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"signTransaction\"})}sendTransaction(e){return ez(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield j(()=>ez(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return ez(this,void 0,void 0,function*(){let t=\"string\"==typeof e?(0,I.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send(\"personal_sign\",[(0,l.Dv)(t),r.toLowerCase()])}catch(t){throw\"string\"==typeof t.message&&t.message.match(/user denied/i)&&eq.throwError(\"user rejected signing\",h.Yd.errors.ACTION_REJECTED,{action:\"signMessage\",from:r,messageData:e}),t}})}_legacySignMessage(e){return ez(this,void 0,void 0,function*(){let t=\"string\"==typeof e?(0,I.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send(\"eth_sign\",[r.toLowerCase(),(0,l.Dv)(t)])}catch(t){throw\"string\"==typeof t.message&&t.message.match(/user denied/i)&&eq.throwError(\"user rejected signing\",h.Yd.errors.ACTION_REJECTED,{action:\"_legacySignMessage\",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return ez(this,void 0,void 0,function*(){let n=yield P.resolveNames(e,t,r,e=>this.provider.resolveName(e)),i=yield this.getAddress();try{return yield this.provider.send(\"eth_signTypedData_v4\",[i.toLowerCase(),JSON.stringify(P.getPayload(n.domain,t,n.value))])}catch(e){throw\"string\"==typeof e.message&&e.message.match(/user denied/i)&&eq.throwError(\"user rejected signing\",h.Yd.errors.ACTION_REJECTED,{action:\"_signTypedData\",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),e}})}unlock(e){return ez(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send(\"personal_unlockAccount\",[r.toLowerCase(),e,null])})}}class eQ extends eJ{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let eX={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class e0 extends eU{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,d.tu)(this.constructor,\"defaultUrl\")()),\"string\"==typeof e?(0,d.zG)(this,\"connection\",Object.freeze({url:e})):(0,d.zG)(this,\"connection\",Object.freeze((0,d.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return\"http://localhost:8545\"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ez(this,void 0,void 0,function*(){yield eW(0);let e=null;try{e=yield this.send(\"eth_chainId\",[])}catch(t){try{e=yield this.send(\"net_version\",[])}catch(e){}}if(null!=e){let t=(0,d.tu)(this.constructor,\"getNetwork\");try{return t(a.O$.from(e).toNumber())}catch(t){return eq.throwError(\"could not detect network\",h.Yd.errors.NETWORK_ERROR,{chainId:e,event:\"invalidNetwork\",serverError:t})}}return eq.throwError(\"could not detect network\",h.Yd.errors.NETWORK_ERROR,{event:\"noNetwork\"})})}getSigner(e){return new eJ(eZ,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send(\"eth_accounts\",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:\"2.0\"};this.emit(\"debug\",{action:\"request\",request:(0,d.p$)(r),provider:this});let n=[\"eth_chainId\",\"eth_blockNumber\"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let i=L(this.connection,JSON.stringify(r),eK).then(e=>(this.emit(\"debug\",{action:\"response\",request:r,response:e,provider:this}),e),e=>{throw this.emit(\"debug\",{action:\"response\",error:e,request:r,provider:this}),e});return n&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case\"getBlockNumber\":return[\"eth_blockNumber\",[]];case\"getGasPrice\":return[\"eth_gasPrice\",[]];case\"getBalance\":return[\"eth_getBalance\",[eY(t.address),t.blockTag]];case\"getTransactionCount\":return[\"eth_getTransactionCount\",[eY(t.address),t.blockTag]];case\"getCode\":return[\"eth_getCode\",[eY(t.address),t.blockTag]];case\"getStorageAt\":return[\"eth_getStorageAt\",[eY(t.address),(0,l.$m)(t.position,32),t.blockTag]];case\"sendTransaction\":return[\"eth_sendRawTransaction\",[t.signedTransaction]];case\"getBlock\":if(t.blockTag)return[\"eth_getBlockByNumber\",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return[\"eth_getBlockByHash\",[t.blockHash,!!t.includeTransactions]];break;case\"getTransaction\":return[\"eth_getTransactionByHash\",[t.transactionHash]];case\"getTransactionReceipt\":return[\"eth_getTransactionReceipt\",[t.transactionHash]];case\"call\":return[\"eth_call\",[(0,d.tu)(this.constructor,\"hexlifyTransaction\")(t.transaction,{from:!0}),t.blockTag]];case\"estimateGas\":return[\"eth_estimateGas\",[(0,d.tu)(this.constructor,\"hexlifyTransaction\")(t.transaction,{from:!0})]];case\"getLogs\":return t.filter&&null!=t.filter.address&&(t.filter.address=eY(t.filter.address)),[\"eth_getLogs\",[t.filter]]}return null}perform(e,t){return ez(this,void 0,void 0,function*(){if(\"call\"===e||\"estimateGas\"===e){let e=t.transaction;if(e&&null!=e.type&&a.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,d.DC)(t)).transaction=(0,d.DC)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&eq.throwError(e+\" not implemented\",h.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return eV(e,r,t)}})}_startEvent(e){\"pending\"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send(\"eth_newPendingTransactionFilter\",[]);this._pendingFilter=t,t.then(function(r){return function n(){e.send(\"eth_getFilterChanges\",[r]).then(function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach(function(t){e._emitted[\"t:\"+t.toLowerCase()]=\"pending\",n=n.then(function(){return e.getTransaction(t).then(function(t){return e.emit(\"pending\",t),null})})}),n.then(function(){return eW(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send(\"eth_uninstallFilter\",[r]);return}return setTimeout(function(){n()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){\"pending\"===e.tag&&0===this.listenerCount(\"pending\")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,d.DC)(eX);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,d.uj)(e,r);let n={};return[\"chainId\",\"gasLimit\",\"gasPrice\",\"type\",\"maxFeePerGas\",\"maxPriorityFeePerGas\",\"nonce\",\"value\"].forEach(function(t){if(null==e[t])return;let r=(0,l.$P)(a.O$.from(e[t]));\"gasLimit\"===t&&(t=\"gas\"),n[t]=r}),[\"from\",\"to\",\"data\"].forEach(function(t){null!=e[t]&&(n[t]=(0,l.Dv)(e[t]))}),e.accessList&&(n.accessList=(0,O.z7)(e.accessList)),n}}},40739:function(e,t,r){\"use strict\";r.d(t,{c:function(){return l}});var n=r(36173),i=r(13421),s=r(86365),o=r(27972);let a=new i.Yd(s.i);class l extends o.r{detectNetwork(){var e,t,r,s;let o=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,s=function*(){let e=this.network;return null==e&&((e=yield o.detectNetwork.call(this))||a.throwError(\"no network detected\",i.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,n.zG)(this,\"_network\",e),this.emit(\"network\",e,null))),e},new(r||(r=Promise))(function(n,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function a(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}}},68893:function(e,t,r){\"use strict\";r.d(t,{Q:function(){return c}});var n=r(36173),i=r(13421),s=r(86365),o=r(27972);let a=new i.Yd(s.i),l=1;function u(e,t){let r=\"Web3LegacyFetcher\";return function(e,i){let s={method:e,params:i,id:l++,jsonrpc:\"2.0\"};return new Promise((e,i)=>{this.emit(\"debug\",{action:\"request\",fetcher:r,request:(0,n.p$)(s),provider:this}),t(s,(t,n)=>{if(t)return this.emit(\"debug\",{action:\"response\",fetcher:r,error:t,request:s,provider:this}),i(t);if(this.emit(\"debug\",{action:\"response\",fetcher:r,request:s,response:n,provider:this}),n.error){let e=Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,i(e)}e(n.result)})})}}class c extends o.r{constructor(e,t){null==e&&a.throwArgumentError(\"missing provider\",\"provider\",e);let r=null,i=null,s=null;\"function\"==typeof e?(r=\"unknown:\",i=e):(((r=e.host||e.path||\"\")||!e.isMetaMask||(r=\"metamask\"),s=e,e.request)?(\"\"===r&&(r=\"eip-1193:\"),i=function(t,r){null==r&&(r=[]);let i={method:t,params:r};return this.emit(\"debug\",{action:\"request\",fetcher:\"Eip1193Fetcher\",request:(0,n.p$)(i),provider:this}),e.request(i).then(e=>(this.emit(\"debug\",{action:\"response\",fetcher:\"Eip1193Fetcher\",request:i,response:e,provider:this}),e),e=>{throw this.emit(\"debug\",{action:\"response\",fetcher:\"Eip1193Fetcher\",request:i,error:e,provider:this}),e})}):e.sendAsync?i=u(e,e.sendAsync.bind(e)):e.send?i=u(e,e.send.bind(e)):a.throwArgumentError(\"unsupported provider\",\"provider\",e),r||(r=\"unknown:\")),super(r,t),(0,n.zG)(this,\"jsonRpcFetchFunc\",i),(0,n.zG)(this,\"provider\",s)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},18162:function(e,t,r){\"use strict\";r.d(t,{J:function(){return d},c:function(){return l}});var n=r(9784),i=r(13421);let s=new i.Yd(\"rlp/5.7.0\");function o(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function l(e){return(0,n.Dv)(function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=o(r.length);return n.unshift(247+n.length),n.concat(r)}(0,n.Zq)(t)||s.throwArgumentError(\"RLP object must be BytesLike\",\"object\",t);let r=Array.prototype.slice.call((0,n.lE)(t));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let i=o(r.length);return i.unshift(183+i.length),i.concat(r)}(e))}function u(e,t,r,n){let o=[];for(;r<t+1+n;){let a=c(e,r);o.push(a.result),(r+=a.consumed)>t+1+n&&s.throwError(\"child data too short\",i.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function c(e,t){if(0===e.length&&s.throwError(\"data too short\",i.Yd.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&s.throwError(\"data short segment too short\",i.Yd.errors.BUFFER_OVERRUN,{});let n=a(e,t+1,r);return t+1+r+n>e.length&&s.throwError(\"data long segment too short\",i.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+r,r+n)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&s.throwError(\"data array too short\",i.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&s.throwError(\"data array too short\",i.Yd.errors.BUFFER_OVERRUN,{});let o=a(e,t+1,r);t+1+r+o>e.length&&s.throwError(\"data array too short\",i.Yd.errors.BUFFER_OVERRUN,{});let l=(0,n.Dv)(e.slice(t+1+r,t+1+r+o));return{consumed:1+r+o,result:l}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&s.throwError(\"data too short\",i.Yd.errors.BUFFER_OVERRUN,{});let o=(0,n.Dv)(e.slice(t+1,t+1+r));return{consumed:1+r,result:o}}return{consumed:1,result:(0,n.Dv)(e[t])}}function d(e){let t=(0,n.lE)(e),r=c(t,0);return r.consumed!==t.length&&s.throwArgumentError(\"invalid rlp data\",\"data\",e),r.result}},28257:function(e,t,r){\"use strict\";r.d(t,{Y0:function(){return h},XL:function(){return p},ZN:function(){return f}});var n,i,s,o,a=r(9784);let l=new(r(13421)).Yd(\"strings/5.7.0\");function u(e,t,r,n,i){if(e===o.BAD_PREFIX||e===o.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===o.OVERRUN?r.length-t-1:0}(n=s||(s={})).current=\"\",n.NFC=\"NFC\",n.NFD=\"NFD\",n.NFKC=\"NFKC\",n.NFKD=\"NFKD\",(i=o||(o={})).UNEXPECTED_CONTINUE=\"unexpected continuation byte\",i.BAD_PREFIX=\"bad codepoint prefix\",i.OVERRUN=\"string overrun\",i.MISSING_CONTINUE=\"missing continuation byte\",i.OUT_OF_RANGE=\"out of UTF-8 range\",i.UTF16_SURROGATE=\"UTF-16 surrogate\",i.OVERLONG=\"overlong representation\";let c=Object.freeze({error:function(e,t,r,n,i){return l.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,\"bytes\",r)},ignore:u,replace:function(e,t,r,n,i){return e===o.OVERLONG?(n.push(i),0):(n.push(65533),u(e,t,r,n,i))}});function d(e,t){null==t&&(t=c.error),e=(0,a.lE)(e);let r=[],n=0;for(;n<e.length;){let i=e[n++];if(i>>7==0){r.push(i);continue}let s=null,a=null;if((224&i)==192)s=1,a=127;else if((240&i)==224)s=2,a=2047;else if((248&i)==240)s=3,a=65535;else{(192&i)==128?n+=t(o.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(o.BAD_PREFIX,n-1,e,r);continue}if(n-1+s>=e.length){n+=t(o.OVERRUN,n-1,e,r);continue}let l=i&(1<<8-s-1)-1;for(let i=0;i<s;i++){let i=e[n];if((192&i)!=128){n+=t(o.MISSING_CONTINUE,n,e,r),l=null;break}l=l<<6|63&i,n++}if(null!==l){if(l>1114111){n+=t(o.OUT_OF_RANGE,n-1-s,e,r,l);continue}if(l>=55296&&l<=57343){n+=t(o.UTF16_SURROGATE,n-1-s,e,r,l);continue}if(l<=a){n+=t(o.OVERLONG,n-1-s,e,r,l);continue}r.push(l)}}return r}function h(e,t=s.current){t!=s.current&&(l.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error(\"invalid utf-8 string\");let s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,a.lE)(r)}function f(e,t){return d(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join(\"\")}function p(e,t=s.current){return d(h(e,t))}},2149:function(e,t,r){\"use strict\";r.d(t,{z7:function(){return eo},Qc:function(){return eh},qC:function(){return ec}});var n,i,s=r(89005),o=r(22594),a=r(9784),l=r(75986),u=r(43481),c=r(36173),d=r(18162),h=r(58171),f=r.n(h),p=r(83699),g=r.n(p);function m(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(e,null==t?r.path:t)}},r.exports),r.exports}\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:void 0!==r.g?r.g:\"undefined\"!=typeof self&&self;var y=b;function b(e,t){if(!e)throw Error(t||\"Assertion failed\")}b.equal=function(e,t,r){if(e!=t)throw Error(r||\"Assertion failed: \"+e+\" != \"+t)};var v=m(function(e,t){function r(e){return 1===e.length?\"0\"+e:e}function n(e){for(var t=\"\",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(\"string\"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if(\"hex\"===t){(e=e.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(e=\"0\"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),s=i>>8,o=255&i;s?r.push(s,o):r.push(o)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return\"hex\"===t?n(e):e}}),w=m(function(e,t){t.assert=y,t.toArray=v.toArray,t.zero2=v.zero2,t.toHex=v.toHex,t.encode=v.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,s=e.clone(),o=0;o<n.length;o++){var a,l=s.andln(i-1);s.isOdd()?(a=l>(i>>1)-1?(i>>1)-l:l,s.isubn(a)):a=0,n[o]=a,s.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var s,o,a,l=e.andln(3)+n&3,u=t.andln(3)+i&3;3===l&&(l=-1),3===u&&(u=-1),o=(1&l)==0?0:(3==(s=e.andln(7)+n&7)||5===s)&&2===u?-l:l,r[0].push(o),a=(1&u)==0?0:(3==(s=t.andln(7)+i&7)||5===s)&&2===l?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n=\"_\"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return\"string\"==typeof e?t.toArray(e,\"hex\"):e},t.intFromLE=function(e){return new(f())(e,\"hex\",\"le\")}}),_=w.getNAF,E=w.getJSF,A=w.assert;function x(e,t){this.type=e,this.p=new(f())(t.p,16),this.red=t.prime?f().red(t.prime):f().mont(this.p),this.zero=new(f())(0).toRed(this.red),this.one=new(f())(1).toRed(this.red),this.two=new(f())(2).toRed(this.red),this.n=t.n&&new(f())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function k(e,t){this.curve=e,this.type=t,this.precomputed=null}x.prototype.point=function(){throw Error(\"Not implemented\")},x.prototype.validate=function(){throw Error(\"Not implemented\")},x.prototype._fixedNafMul=function(e,t){A(e.precomputed);var r,n,i=e._getDoubles(),s=_(t,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<s.length;r+=i.step){n=0;for(var l=r+i.step-1;l>=r;l--)n=(n<<1)+s[l];a.push(n)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=o;d>0;d--){for(r=0;r<a.length;r++)(n=a[r])===d?c=c.mixedAdd(i.points[r]):n===-d&&(c=c.mixedAdd(i.points[r].neg()));u=u.add(c)}return u.toP()},x.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=_(t,r,this._bitLength),o=this.jpoint(null,null,null),a=s.length-1;a>=0;a--){for(var l=0;a>=0&&0===s[a];a--)l++;if(a>=0&&l++,o=o.dblp(l),a<0)break;var u=s[a];A(0!==u),o=\"affine\"===e.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return\"affine\"===e.type?o.toP():o},x.prototype._wnafMulAdd=function(e,t,r,n,i){var s,o,a,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,d=0;for(s=0;s<n;s++){var h=(a=t[s])._getNAFPoints(e);l[s]=h.wnd,u[s]=h.points}for(s=n-1;s>=1;s-=2){var f=s-1,p=s;if(1!==l[f]||1!==l[p]){c[f]=_(r[f],l[f],this._bitLength),c[p]=_(r[p],l[p],this._bitLength),d=Math.max(c[f].length,d),d=Math.max(c[p].length,d);continue}var g=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(g[1]=t[f].add(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].add(t[p].neg())):(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],y=E(r[f],r[p]);for(o=0,d=Math.max(y[0].length,d),c[f]=Array(d),c[p]=Array(d);o<d;o++){var b=0|y[0][o],v=0|y[1][o];c[f][o]=m[(b+1)*3+(v+1)],c[p][o]=0,u[f]=g}}var w=this.jpoint(null,null,null),A=this._wnafT4;for(s=d;s>=0;s--){for(var x=0;s>=0;){var k=!0;for(o=0;o<n;o++)A[o]=0|c[o][s],0!==A[o]&&(k=!1);if(!k)break;x++,s--}if(s>=0&&x++,w=w.dblp(x),s<0)break;for(o=0;o<n;o++){var S=A[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w=\"affine\"===a.type?w.mixedAdd(a):w.add(a))}}for(s=0;s<n;s++)u[s]=null;return i?w:w.toP()},x.BasePoint=k,k.prototype.eq=function(){throw Error(\"Not implemented\")},k.prototype.validate=function(){return this.curve.validate(this)},x.prototype.decodePoint=function(e,t){e=w.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?A(e[e.length-1]%2==0):7===e[0]&&A(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error(\"Unknown point format\")},k.prototype.encodeCompressed=function(e){return this.encode(e,!0)},k.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray(\"be\",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray(\"be\",t))},k.prototype.encode=function(e,t){return w.encode(this._encode(t),e)},k.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},k.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},k.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var s=0;s<e;s++)n=n.dbl();r.push(n)}return{step:e,points:r}},k.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var S=m(function(e){\"function\"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),$=w.assert;function C(e){x.call(this,\"short\",e),this.a=new(f())(e.a,16).toRed(this.red),this.b=new(f())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function P(e,t,r,n){x.BasePoint.call(this,e,\"affine\"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(f())(t,16),this.y=new(f())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function I(e,t,r,n){x.BasePoint.call(this,e,\"jacobian\"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(f())(0)):(this.x=new(f())(t,16),this.y=new(f())(r,16),this.z=new(f())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}S(C,x),C.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new(f())(e.beta,16).toRed(this.red);else{var t,r,n,i=this._getEndoRoots(this.p);t=(t=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new(f())(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],$(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new(f())(e.a,16),b:new(f())(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},C.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:f().mont(e),r=new(f())(2).toRed(t).redInvm(),n=r.redNeg(),i=new(f())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},C.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,o,a,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new(f())(1),g=new(f())(0),m=new(f())(0),y=new(f())(1),b=0;0!==d.cmpn(0);){var v=h.div(d);l=h.sub(v.mul(d)),u=m.sub(v.mul(p));var w=y.sub(v.mul(g));if(!n&&0>l.cmp(c))t=a.neg(),r=p,n=l.neg(),i=u;else if(n&&2==++b)break;a=l,h=d,d=l,m=p,p=u,y=g,g=w}s=l.neg(),o=u;var _=n.sqr().add(i.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},C.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),a=s.mul(n.a),l=i.mul(r.b),u=s.mul(n.b);return{k1:e.sub(o).sub(a),k2:l.add(u).neg()}},C.prototype.pointFromX=function(e,t){(e=new(f())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error(\"invalid point\");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},C.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},C.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s<e.length;s++){var o=this._endoSplit(t[s]),a=e[s],l=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),n[2*s]=a,n[2*s+1]=l,i[2*s]=o.k1,i[2*s+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*s,r),c=0;c<2*s;c++)n[c]=null,i[c]=null;return u},S(P,x.BasePoint),C.prototype.point=function(e,t,r){return new P(this,e,t,r)},C.prototype.pointFromJSON=function(e,t){return P.fromJSON(this,e,t)},P.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},P.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},P.fromJSON=function(e,t,r){\"string\"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var s=t[2];return n.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[n].concat(s.doubles.points.map(i))},naf:s.naf&&{wnd:s.naf.wnd,points:[n].concat(s.naf.points.map(i))}},n},P.prototype.inspect=function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\">\"},P.prototype.isInfinity=function(){return this.inf},P.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},P.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},P.prototype.getX=function(){return this.x.fromRed()},P.prototype.getY=function(){return this.y.fromRed()},P.prototype.mul=function(e){return(e=new(f())(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},P.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},P.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},P.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},P.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},P.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},S(I,x.BasePoint),C.prototype.jpoint=function(e,t,r){return new I(this,e,t,r)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),l=s.redSub(o);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),d=n.redMul(u),h=l.redSqr().redIAdd(c).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(s.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,f,p)},I.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=r.redSub(n),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),u=l.redMul(o),c=r.redMul(l),d=a.redSqr().redIAdd(u).redISub(c).redISub(c),h=a.redMul(c.redISub(d)).redISub(i.redMul(u)),f=this.z.redMul(o);return this.curve.jpoint(d,h,f)},I.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,s=this.x,o=this.y,a=this.z,l=a.redSqr().redSqr(),u=o.redAdd(o);for(t=0;t<e;t++){var c=s.redSqr(),d=u.redSqr(),h=d.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(l)),p=s.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),y=f.redMul(m);y=y.redIAdd(y).redISub(h);var b=u.redMul(a);t+1<e&&(l=l.redMul(h)),s=g,a=b,u=y}return this.curve.jpoint(s,u.redMul(i),a)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},I.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(s);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),l=a.redSqr().redISub(o).redISub(o),u=s.redIAdd(s);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=a.redMul(o.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(c).redISub(h);f=f.redIAdd(f);var p=c.redAdd(c).redIAdd(c),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},I.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(s);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=a.redSqr().redISub(o).redISub(o);e=l;var u=s.redIAdd(s);u=(u=u.redIAdd(u)).redIAdd(u),t=a.redMul(o.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},I.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),s=t.redSqr(),o=r.redSqr(),a=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(o),c=a.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=a.redMul(d).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,f,p)},I.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),s=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(s)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(o).redSqr().redISub(s).redISub(a).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(a).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(u.redMul(l.redISub(u)).redISub(o.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(d,h,f)},I.prototype.mul=function(e,t){return e=new(f())(e,t),this.curve._wnafMul(this,e)},I.prototype.eq=function(e){if(\"affine\"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},I.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},I.prototype.inspect=function(){return this.isInfinity()?\"<EC JPoint Infinity>\":\"<EC JPoint x: \"+this.x.toString(16,2)+\" y: \"+this.y.toString(16,2)+\" z: \"+this.z.toString(16,2)+\">\"},I.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var O=m(function(e,t){t.base=x,t.short=C,t.mont=null,t.edwards=null}),N=m(function(e,t){var r,n=w.assert;function i(e){\"short\"===e.type?this.curve=new O.short(e):\"edwards\"===e.type?this.curve=new O.edwards(e):this.curve=new O.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),\"Invalid curve\"),n(this.g.mul(this.n).isInfinity(),\"Invalid curve, G*N != O\")}function s(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,s(\"p192\",{type:\"short\",prime:\"p192\",p:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc\",b:\"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1\",n:\"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831\",hash:g().sha256,gRed:!1,g:[\"188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012\",\"07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811\"]}),s(\"p224\",{type:\"short\",prime:\"p224\",p:\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe\",b:\"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4\",n:\"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d\",hash:g().sha256,gRed:!1,g:[\"b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21\",\"bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34\"]}),s(\"p256\",{type:\"short\",prime:null,p:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff\",a:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc\",b:\"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b\",n:\"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551\",hash:g().sha256,gRed:!1,g:[\"6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296\",\"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5\"]}),s(\"p384\",{type:\"short\",prime:null,p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff\",a:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc\",b:\"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef\",n:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973\",hash:g().sha384,gRed:!1,g:[\"aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7\",\"3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f\"]}),s(\"p521\",{type:\"short\",prime:null,p:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\",a:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc\",b:\"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00\",n:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409\",hash:g().sha512,gRed:!1,g:[\"000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66\",\"00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650\"]}),s(\"curve25519\",{type:\"mont\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"76d06\",b:\"1\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:g().sha256,gRed:!1,g:[\"9\"]}),s(\"ed25519\",{type:\"edwards\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"-1\",c:\"1\",d:\"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:g().sha256,gRed:!1,g:[\"216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\",\"6666666666666666666666666666666666666666666666666666666666666658\"]});try{r=null.crash()}catch(e){r=void 0}s(\"secp256k1\",{type:\"short\",prime:\"k256\",p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\",a:\"0\",b:\"7\",n:\"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141\",h:\"1\",hash:g().sha256,beta:\"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\",lambda:\"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72\",basis:[{a:\"3086d221a7d46bcde86c90e49284eb15\",b:\"-e4437ed6010e88286f547fa90abfe4c3\"},{a:\"114ca50f7a8e2f3f657c1108d9d44cfd8\",b:\"3086d221a7d46bcde86c90e49284eb15\"}],gRed:!1,g:[\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\",r]})});function M(e){if(!(this instanceof M))return new M(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=v.toArray(e.entropy,e.entropyEnc||\"hex\"),r=v.toArray(e.nonce,e.nonceEnc||\"hex\"),n=v.toArray(e.pers,e.persEnc||\"hex\");y(t.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._init(t,r,n)}M.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new(g()).hmac(this.hash,this.K)},M.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(e,t,r,n){\"string\"!=typeof t&&(n=r,r=t,t=null),e=v.toArray(e,t),r=v.toArray(r,n),y(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._update(e.concat(r||[])),this._reseed=1},M.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error(\"Reseed is required\");\"string\"!=typeof t&&(n=r,r=t,t=null),r&&(r=v.toArray(r,n||\"hex\"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var s=i.slice(0,e);return this._update(r),this._reseed++,v.encode(s,t)};var R=w.assert;function T(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}T.fromPublic=function(e,t,r){return t instanceof T?t:new T(e,{pub:t,pubEnc:r})},T.fromPrivate=function(e,t,r){return t instanceof T?t:new T(e,{priv:t,privEnc:r})},T.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:\"Invalid public key\"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:\"Public key * N != O\"}:{result:!1,reason:\"Public key is not a point\"}},T.prototype.getPublic=function(e,t){return(\"string\"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},T.prototype.getPrivate=function(e){return\"hex\"===e?this.priv.toString(16,2):this.priv},T.prototype._importPrivate=function(e,t){this.priv=new(f())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},T.prototype._importPublic=function(e,t){if(e.x||e.y){\"mont\"===this.ec.curve.type?R(e.x,\"Need x coordinate\"):(\"short\"===this.ec.curve.type||\"edwards\"===this.ec.curve.type)&&R(e.x&&e.y,\"Need both x and y coordinate\"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},T.prototype.derive=function(e){return e.validate()||R(e.validate(),\"public point not validated\"),e.mul(this.priv).getX()},T.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},T.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},T.prototype.inspect=function(){return\"<Key priv: \"+(this.priv&&this.priv.toString(16,2))+\" pub: \"+(this.pub&&this.pub.inspect())+\" >\"};var D=w.assert;function L(e,t){if(e instanceof L)return e;this._importDER(e,t)||(D(e.r&&e.s,\"Signature without r or s\"),this.r=new(f())(e.r,16),this.s=new(f())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function j(){this.place=0}function B(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,s=0,o=t.place;s<n;s++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function F(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function U(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}L.prototype._importDER=function(e,t){e=w.toArray(e,t);var r=new j;if(48!==e[r.place++])return!1;var n=B(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var i=B(e,r);if(!1===i)return!1;var s=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var o=B(e,r);if(!1===o||e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(f())(s),this.s=new(f())(a),this.recoveryParam=null,!0},L.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=F(t),r=F(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var i=n.concat(r),s=[48];return U(s,i.length),s=s.concat(i),w.encode(s,e)};var z=function(){throw Error(\"unsupported\")},q=w.assert;function H(e){if(!(this instanceof H))return new H(e);\"string\"==typeof e&&(q(Object.prototype.hasOwnProperty.call(N,e),\"Unknown curve \"+e),e=N[e]),e instanceof N.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}H.prototype.keyPair=function(e){return new T(this,e)},H.prototype.keyFromPrivate=function(e,t){return T.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return T.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new M({hash:this.hash,pers:e.pers,persEnc:e.persEnc||\"utf8\",entropy:e.entropy||z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||\"utf8\",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(f())(2));;){var i=new(f())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},H.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},H.prototype.sign=function(e,t,r,n){\"object\"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(f())(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray(\"be\",i),o=e.toArray(\"be\",i),a=new M({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||\"utf8\"}),l=this.n.sub(new(f())(1)),u=0;;u++){var c=n.k?n.k(u):new(f())(a.generate(this.n.byteLength()));if(!(0>=(c=this._truncateToN(c,!0)).cmpn(1)||c.cmp(l)>=0)){var d=this.g.mul(c);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var g=c.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return n.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),m^=1),new L({r:p,s:g,recoveryParam:m})}}}}}},H.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(f())(e,16)),r=this.keyFromPublic(r,n);var i,s=(t=new L(t,\"hex\")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(e).umod(this.n),u=a.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(l,r.getPublic(),u)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(l,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},H.prototype.recoverPubKey=function(e,t,r,n){q((3&r)===r,\"The recovery param is more than two bits\"),t=new L(t,n);var i=this.n,s=new(f())(e),o=t.r,a=t.s,l=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error(\"Unable to find sencond key candinate\");o=u?this.curve.pointFromX(o.add(this.curve.n),l):this.curve.pointFromX(o,l);var c=t.r.invm(i),d=i.sub(s).mul(c).umod(i),h=a.mul(c).umod(i);return this.g.mulAdd(d,o,h)},H.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new L(t,n)).recoveryParam)return t.recoveryParam;for(var i,s=0;s<4;s++){try{i=this.recoverPubKey(e,t,s)}catch(e){continue}if(i.eq(r))return s}throw Error(\"Unable to find valid recovery factor\")};var G=m(function(e,t){t.version=\"6.5.4\",t.utils=w,t.rand=function(){throw Error(\"unsupported\")},t.curve=O,t.curves=N,t.ec=H,t.eddsa=null}).ec,V=r(13421);let W=new V.Yd(\"signing-key/5.7.0\"),K=null;function Y(){return K||(K=new G(\"secp256k1\")),K}class Z{constructor(e){(0,c.zG)(this,\"curve\",\"secp256k1\"),(0,c.zG)(this,\"privateKey\",(0,a.Dv)(e)),32!==(0,a.E1)(this.privateKey)&&W.throwArgumentError(\"invalid private key\",\"privateKey\",\"[[ REDACTED ]]\");let t=Y().keyFromPrivate((0,a.lE)(this.privateKey));(0,c.zG)(this,\"publicKey\",\"0x\"+t.getPublic(!1,\"hex\")),(0,c.zG)(this,\"compressedPublicKey\",\"0x\"+t.getPublic(!0,\"hex\")),(0,c.zG)(this,\"_isSigningKey\",!0)}_addPoint(e){let t=Y().keyFromPublic((0,a.lE)(this.publicKey)),r=Y().keyFromPublic((0,a.lE)(e));return\"0x\"+t.pub.add(r.pub).encodeCompressed(\"hex\")}signDigest(e){let t=Y().keyFromPrivate((0,a.lE)(this.privateKey)),r=(0,a.lE)(e);32!==r.length&&W.throwArgumentError(\"bad digest length\",\"digest\",e);let n=t.sign(r,{canonical:!0});return(0,a.N)({recoveryParam:n.recoveryParam,r:(0,a.$m)(\"0x\"+n.r.toString(16),32),s:(0,a.$m)(\"0x\"+n.s.toString(16),32)})}computeSharedSecret(e){let t=Y().keyFromPrivate((0,a.lE)(this.privateKey)),r=Y().keyFromPublic((0,a.lE)(J(e)));return(0,a.$m)(\"0x\"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function J(e,t){let r=(0,a.lE)(e);if(32===r.length){let e=new Z(r);return t?\"0x\"+Y().keyFromPrivate(r).getPublic(!0,\"hex\"):e.publicKey}return 33===r.length?t?(0,a.Dv)(r):\"0x\"+Y().keyFromPublic(r).getPublic(!1,\"hex\"):65===r.length?t?\"0x\"+Y().keyFromPublic(r).getPublic(!0,\"hex\"):(0,a.Dv)(r):W.throwArgumentError(\"invalid public or private key\",\"key\",\"[REDACTED]\")}let Q=new V.Yd(\"transactions/5.7.0\");function X(e){return\"0x\"===e?null:(0,s.Kn)(e)}function ee(e){return\"0x\"===e?l._Y:o.O$.from(e)}(n=i||(i={}))[n.legacy=0]=\"legacy\",n[n.eip2930=1]=\"eip2930\",n[n.eip1559=2]=\"eip1559\";let et=[{name:\"nonce\",maxLength:32,numeric:!0},{name:\"gasPrice\",maxLength:32,numeric:!0},{name:\"gasLimit\",maxLength:32,numeric:!0},{name:\"to\",length:20},{name:\"value\",maxLength:32,numeric:!0},{name:\"data\"}],er={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function en(e,t){return function(e){let t=J(e);return(0,s.Kn)((0,a.p3)((0,u.w)((0,a.p3)(t,1)),12))}(function(e,t){let r=(0,a.N)(t),n={r:(0,a.lE)(r.r),s:(0,a.lE)(r.s)};return\"0x\"+Y().recoverPubKey((0,a.lE)(e),n,r.recoveryParam).encode(\"hex\",!1)}((0,a.lE)(e),t))}function ei(e,t){let r=(0,a.G1)(o.O$.from(e).toHexString());return r.length>32&&Q.throwArgumentError(\"invalid length for \"+t,\"transaction:\"+t,e),r}function es(e,t){return{address:(0,s.Kn)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,a.E1)(t)&&Q.throwArgumentError(\"invalid access list storageKey\",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function eo(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&Q.throwArgumentError(\"access list expected to be [ address, storageKeys[] ]\",`value[${t}]`,e),es(e[0],e[1])):es(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return es(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function ea(e){return eo(e).map(e=>[e.address,e.storageKeys])}function el(e,t){if(null!=e.gasPrice){let t=o.O$.from(e.gasPrice),r=o.O$.from(e.maxFeePerGas||0);t.eq(r)||Q.throwArgumentError(\"mismatch EIP-1559 gasPrice != maxFeePerGas\",\"tx\",{gasPrice:t,maxFeePerGas:r})}let r=[ei(e.chainId||0,\"chainId\"),ei(e.nonce||0,\"nonce\"),ei(e.maxPriorityFeePerGas||0,\"maxPriorityFeePerGas\"),ei(e.maxFeePerGas||0,\"maxFeePerGas\"),ei(e.gasLimit||0,\"gasLimit\"),null!=e.to?(0,s.Kn)(e.to):\"0x\",ei(e.value||0,\"value\"),e.data||\"0x\",ea(e.accessList||[])];if(t){let e=(0,a.N)(t);r.push(ei(e.recoveryParam,\"recoveryParam\")),r.push((0,a.G1)(e.r)),r.push((0,a.G1)(e.s))}return(0,a.xs)([\"0x02\",d.c(r)])}function eu(e,t){let r=[ei(e.chainId||0,\"chainId\"),ei(e.nonce||0,\"nonce\"),ei(e.gasPrice||0,\"gasPrice\"),ei(e.gasLimit||0,\"gasLimit\"),null!=e.to?(0,s.Kn)(e.to):\"0x\",ei(e.value||0,\"value\"),e.data||\"0x\",ea(e.accessList||[])];if(t){let e=(0,a.N)(t);r.push(ei(e.recoveryParam,\"recoveryParam\")),r.push((0,a.G1)(e.r)),r.push((0,a.G1)(e.s))}return(0,a.xs)([\"0x01\",d.c(r)])}function ec(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&Q.throwArgumentError(\"untyped transactions do not support accessList; include type: 1\",\"transaction\",e),function(e,t){(0,c.uj)(e,er);let r=[];et.forEach(function(t){let n=e[t.name]||[],i={};t.numeric&&(i.hexPad=\"left\"),n=(0,a.lE)((0,a.Dv)(n,i)),t.length&&n.length!==t.length&&n.length>0&&Q.throwArgumentError(\"invalid length for \"+t.name,\"transaction:\"+t.name,n),t.maxLength&&(n=(0,a.G1)(n)).length>t.maxLength&&Q.throwArgumentError(\"invalid length for \"+t.name,\"transaction:\"+t.name,n),r.push((0,a.Dv)(n))});let n=0;if(null!=e.chainId?\"number\"!=typeof(n=e.chainId)&&Q.throwArgumentError(\"invalid transaction.chainId\",\"transaction\",e):t&&!(0,a.Zq)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,a.Dv)(n)),r.push(\"0x\"),r.push(\"0x\")),!t)return d.c(r);let i=(0,a.N)(t),s=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),s+=2*n+8,i.v>28&&i.v!==s&&Q.throwArgumentError(\"transaction.chainId/signature.v mismatch\",\"signature\",t)):i.v!==s&&Q.throwArgumentError(\"transaction.chainId/signature.v mismatch\",\"signature\",t),r.push((0,a.Dv)(s)),r.push((0,a.G1)((0,a.lE)(i.r))),r.push((0,a.G1)((0,a.lE)(i.s))),d.c(r)}(e,t);switch(e.type){case 1:return eu(e,t);case 2:return el(e,t)}return Q.throwError(`unsupported transaction type: ${e.type}`,V.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"serializeTransaction\",transactionType:e.type})}function ed(e,t,r){try{let r=ee(t[0]).toNumber();if(0!==r&&1!==r)throw Error(\"bad recid\");e.v=r}catch(e){Q.throwArgumentError(\"invalid v for transaction type: 1\",\"v\",t[0])}e.r=(0,a.$m)(t[1],32),e.s=(0,a.$m)(t[2],32);try{let t=(0,u.w)(r(e));e.from=en(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function eh(e){let t=(0,a.lE)(e);if(t[0]>127)return function(e){let t=d.J(e);9!==t.length&&6!==t.length&&Q.throwArgumentError(\"invalid raw transaction\",\"rawTransaction\",e);let r={nonce:ee(t[0]).toNumber(),gasPrice:ee(t[1]),gasLimit:ee(t[2]),to:X(t[3]),value:ee(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.O$.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,a.$m)(t[7],32),r.s=(0,a.$m)(t[8],32),o.O$.from(r.r).isZero()&&o.O$.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,a.Dv)(r.chainId)),i.push(\"0x\"),i.push(\"0x\"),n-=2*r.chainId+8);let s=(0,u.w)(d.c(i));try{r.from=en(s,{r:(0,a.Dv)(r.r),s:(0,a.Dv)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,u.w)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=d.J(e.slice(1));8!==t.length&&11!==t.length&&Q.throwArgumentError(\"invalid component count for transaction type: 1\",\"payload\",(0,a.Dv)(e));let r={type:1,chainId:ee(t[0]).toNumber(),nonce:ee(t[1]).toNumber(),gasPrice:ee(t[2]),gasLimit:ee(t[3]),to:X(t[4]),value:ee(t[5]),data:t[6],accessList:eo(t[7])};return 8===t.length||(r.hash=(0,u.w)(e),ed(r,t.slice(8),eu)),r}(t);case 2:return function(e){let t=d.J(e.slice(1));9!==t.length&&12!==t.length&&Q.throwArgumentError(\"invalid component count for transaction type: 2\",\"payload\",(0,a.Dv)(e));let r=ee(t[2]),n=ee(t[3]),i={type:2,chainId:ee(t[0]).toNumber(),nonce:ee(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:ee(t[4]),to:X(t[5]),value:ee(t[6]),data:t[7],accessList:eo(t[8])};return 9===t.length||(i.hash=(0,u.w)(e),ed(i,t.slice(9),el)),i}(t)}return Q.throwError(`unsupported transaction type: ${t[0]}`,V.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"parseTransaction\",transactionType:t[0]})}},58789:function(e,t,r){\"use strict\";r.d(t,{dF:function(){return x},bM:function(){return E},fi:function(){return k},vz:function(){return A}});var n=r(9784),i=r(13421),s=r(38418),o=r(22594);let a=new i.Yd(s.i),l={},u=o.O$.from(0),c=o.O$.from(-1);function d(e,t,r,n){let s={fault:t,operation:r};return void 0!==n&&(s.value=n),a.throwError(e,i.Yd.errors.NUMERIC_FAULT,s)}let h=\"0\";for(;h.length<256;)h+=h;function f(e){if(\"number\"!=typeof e)try{e=o.O$.from(e).toNumber()}catch(e){}return\"number\"==typeof e&&e>=0&&e<=256&&!(e%1)?\"1\"+h.substring(0,e):a.throwArgumentError(\"invalid decimal size\",\"decimals\",e)}function p(e,t){null==t&&(t=0);let r=f(t),n=(e=o.O$.from(e)).lt(u);n&&(e=e.mul(c));let i=e.mod(r).toString();for(;i.length<r.length-1;)i=\"0\"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let s=e.div(r).toString();return e=1===r.length?s:s+\".\"+i,n&&(e=\"-\"+e),e}function g(e,t){null==t&&(t=0);let r=f(t);\"string\"==typeof e&&e.match(/^-?[0-9.]+$/)||a.throwArgumentError(\"invalid decimal value\",\"value\",e);let n=\"-\"===e.substring(0,1);n&&(e=e.substring(1)),\".\"===e&&a.throwArgumentError(\"missing value\",\"value\",e);let i=e.split(\".\");i.length>2&&a.throwArgumentError(\"too many decimal points\",\"value\",e);let s=i[0],l=i[1];for(s||(s=\"0\"),l||(l=\"0\");\"0\"===l[l.length-1];)l=l.substring(0,l.length-1);for(l.length>r.length-1&&d(\"fractional component exceeds decimals\",\"underflow\",\"parseFixed\"),\"\"===l&&(l=\"0\");l.length<r.length-1;)l+=\"0\";let u=o.O$.from(s),h=o.O$.from(l),p=u.mul(r).add(h);return n&&(p=p.mul(c)),p}class m{constructor(e,t,r,n){e!==l&&a.throwError(\"cannot use FixedFormat constructor; use FixedFormat.from\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?\"\":\"u\")+\"fixed\"+String(r)+\"x\"+String(n),this._multiplier=f(n),Object.freeze(this)}static from(e){if(e instanceof m)return e;\"number\"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if(\"string\"==typeof e){if(\"fixed\"===e);else if(\"ufixed\"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||a.throwArgumentError(\"invalid fixed format\",\"format\",e),t=\"u\"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}else if(e){let i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&a.throwArgumentError(\"invalid fixed format (\"+t+\" not \"+r+\")\",\"format.\"+t,e[t]),e[t]);t=i(\"signed\",\"boolean\",t),r=i(\"width\",\"number\",r),n=i(\"decimals\",\"number\",n)}return r%8&&a.throwArgumentError(\"invalid fixed format width (not byte aligned)\",\"format.width\",r),n>80&&a.throwArgumentError(\"invalid fixed format (decimals too large)\",\"format.decimals\",n),new m(l,t,r,n)}}class y{constructor(e,t,r,n){e!==l&&a.throwError(\"cannot use FixedNumber constructor; use FixedNumber.from\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&a.throwArgumentError(\"incompatible format; use fixedNumber.toFormat\",\"other\",e)}addUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(\".\");1===e.length&&e.push(\"0\");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(b.toFormat(t.format))),t}ceiling(){let e=this.toString().split(\".\");1===e.length&&e.push(\"0\");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(b.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(\".\");if(1===t.length&&t.push(\"0\"),(e<0||e>80||e%1)&&a.throwArgumentError(\"invalid decimal count\",\"decimals\",e),t[1].length<=e)return this;let r=y.from(\"1\"+h.substring(0,e),this.format),n=v.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return\"0.0\"===this._value||\"0\"===this._value}isNegative(){return\"-\"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&a.throwArgumentError(\"invalid byte width\",\"width\",e);let t=o.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.$m)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,o.Zm)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r=\"fixed\"),y.fromString(p(e,t),m.from(r))}static fromString(e,t){null==t&&(t=\"fixed\");let r=m.from(t),i=g(e,r.decimals);!r.signed&&i.lt(u)&&d(\"unsigned value cannot be negative\",\"overflow\",\"value\",e);let s=null;return r.signed?s=i.toTwos(r.width).toHexString():(s=i.toHexString(),s=(0,n.$m)(s,r.width/8)),new y(l,s,p(i,r.decimals),r)}static fromBytes(e,t){null==t&&(t=\"fixed\");let r=m.from(t);if((0,n.lE)(e).length>r.width/8)throw Error(\"overflow\");let i=o.O$.from(e);return r.signed&&(i=i.fromTwos(r.width)),new y(l,i.toTwos((r.signed?0:1)+r.width).toHexString(),p(i,r.decimals),r)}static from(e,t){if(\"string\"==typeof e)return y.fromString(e,t);if((0,n._t)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==i.Yd.errors.INVALID_ARGUMENT)throw e}return a.throwArgumentError(\"invalid FixedNumber value\",\"value\",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let b=y.from(1),v=y.from(\"0.5\"),w=new i.Yd(\"units/5.7.0\"),_=[\"wei\",\"kwei\",\"mwei\",\"gwei\",\"szabo\",\"finney\",\"ether\"];function E(e,t){if(\"string\"==typeof t){let e=_.indexOf(t);-1!==e&&(t=3*e)}return p(e,null!=t?t:18)}function A(e,t){if(\"string\"!=typeof e&&w.throwArgumentError(\"value must be a string\",\"value\",e),\"string\"==typeof t){let e=_.indexOf(t);-1!==e&&(t=3*e)}return g(e,null!=t?t:18)}function x(e){return E(e,18)}function k(e){return A(e,18)}},3754:function(e,t,r){\"use strict\";var n,i;r.d(t,{GR:function(){return l},M_:function(){return a}}),(i=n||(n={})).MISSING_OR_INVALID_PRIVY_APP_ID=\"missing_or_invalid_privy_app_id\",i.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID=\"missing_or_invalid_privy_account_id\",i.INVALID_DATA=\"invalid_data\",i.LINKED_TO_ANOTHER_USER=\"linked_to_another_user\",i.ALLOWLIST_REJECTED=\"allowlist_rejected\",i.OAUTH_USER_DENIED=\"oauth_user_denied\",i.UNKNOWN_AUTH_ERROR=\"unknown_auth_error\",i.USER_EXITED_AUTH_FLOW=\"exited_auth_flow\",i.MUST_BE_AUTHENTICATED=\"must_be_authenticated\",i.UNKNOWN_CONNECT_WALLET_ERROR=\"unknown_connect_wallet_error\",i.GENERIC_CONNECT_WALLET_ERROR=\"generic_connect_wallet_error\",i.CLIENT_REQUEST_TIMEOUT=\"client_request_timeout\",i.INVALID_CREDENTIALS=\"invalid_credentials\";class s extends Error{cause;privyErrorCode;constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:\"\"}: ${this.message}${this.cause?` [cause: ${this.cause}]`:\"\"}`}}class o extends s{type=\"provider_error\";code;data;constructor(e,t,r){super(e),this.code=t,this.data=r}}let a={UNKNOWN_ERROR:{eipCode:0,message:\"Unknown error\",detail:\"Unknown error\",retryable:!0},E4001_DEFAULT_USER_REJECTED_REQUEST:{eipCode:4001,message:\"User Rejected Request\",detail:\"The user rejected the request.\",default:!0,retryable:!0},E4100_DEFAULT_UNAUTHORIZED:{eipCode:4100,message:\"Unauthorized\",detail:\"The requested method and/or account has not been authorized by the user.\",default:!0,retryable:!1},E4200_DEFAULT_UNSUPPORTED_METHOD:{eipCode:4200,message:\"Unsupported Method\",detail:\"The Provider does not support the requested method.\",default:!0,retryable:!1},E4900_DEFAULT_DISCONNECTED:{eipCode:4900,message:\"Disconnected\",detail:\"The Provider is disconnected from all chains.\",default:!0,retryable:!0},E4901_DEFAULT_CHAIN_DISCONNECTED:{eipCode:4901,message:\"Chain Disconnected\",detail:\"The Provider is not connected to the requested chain.\",default:!0,retryable:!0},E32700_DEFAULT_PARSE_ERROR:{eipCode:-32700,message:\"Parse error\",detail:\"Invalid JSON\",default:!0,retryable:!1},E32600_DEFAULT_INVALID_REQUEST:{eipCode:-32600,message:\"Invalid request\",detail:\"JSON is not a valid request object\",default:!0,retryable:!1},E32601_DEFAULT_METHOD_NOT_FOUND:{eipCode:-32601,message:\"Method not found\",detail:\"Method does not exist\",default:!0,retryable:!1},E32602_DEFAULT_INVALID_PARAMS:{eipCode:-32602,message:\"Invalid params\",detail:\"Invalid method parameters\",default:!0,retryable:!1},E32603_DEFAULT_INTERNAL_ERROR:{eipCode:-32603,message:\"Internal error\",detail:\"Internal JSON-RPC error\",default:!0,retryable:!0},E32000_DEFAULT_INVALID_INPUT:{eipCode:-32e3,message:\"Invalid input\",detail:\"Missing or invalid parameters\",default:!0,retryable:!1},E32001_DEFAULT_RESOURCE_NOT_FOUND:{eipCode:-32001,message:\"Resource not found\",detail:\"Requested resource not found\",default:!0,retryable:!1},E32002_DEFAULT_RESOURCE_UNAVAILABLE:{eipCode:-32002,message:\"Resource unavailable\",detail:\"Requested resource not available\",default:!0,retryable:!0},E32003_DEFAULT_TRANSACTION_REJECTED:{eipCode:-32003,message:\"Transaction rejected\",detail:\"Transaction creation failed\",default:!0,retryable:!0},E32004_DEFAULT_METHOD_NOT_SUPPORTED:{eipCode:-32004,message:\"Method not supported\",detail:\"Method is not implemented\",default:!0,retryable:!1},E32005_DEFAULT_LIMIT_EXCEEDED:{eipCode:-32005,message:\"Limit exceeded\",detail:\"Request exceeds defined limit\",default:!0,retryable:!1},E32006_DEFAULT_JSON_RPC_VERSION_NOT_SUPPORTED:{eipCode:-32006,message:\"JSON-RPC version not supported\",detail:\"Version of JSON-RPC protocol is not supported\",default:!0,retryable:!1},E32002_CONNECTION_ALREADY_PENDING:{eipCode:-32002,message:\"Connection request already pending\",detail:\"Don’t see your wallet? Check your other browser windows.\",retryable:!1},E32002_REQUEST_ALREADY_PENDING:{eipCode:-32002,message:\"Resource request already pending\",detail:\"Don’t see your wallet? Check your other browser windows.\",retryable:!1},E32002_WALLET_LOCKED:{eipCode:-32002,message:\"Wallet might be locked\",detail:\"Don’t see your wallet? Check your other browser windows.\",retryable:!1},E4001_USER_REJECTED_REQUEST:{eipCode:4001,message:\"Signature rejected\",detail:\"Please try signing again.\",retryable:!0}};class l extends o{details;constructor(e){super(e.message,e.code,e.data);let t=Object.values(a).find(t=>t.eipCode===e.code);this.details=t||a.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes(\"already pending for origin\")?e.message?.includes(\"wallet_requestPermissions\")?this.details=a.E32002_CONNECTION_ALREADY_PENDING:this.details=a.E32002_REQUEST_ALREADY_PENDING:e.message?.includes(\"Already processing\")&&e.message.includes(\"eth_requestAccounts\")&&(this.details=a.E32002_WALLET_LOCKED))}}},81318:function(e,t,r){\"use strict\";r.d(t,{no:function(){return u},t_:function(){return c},OW:function(){return l}});var n=r(22594),i=r(22554),s=r(2149),o=r(50607);let a=[\"function getL1Fee(bytes memory _data) external view returns (uint256)\"],l=e=>[8453,84531,84532,10,420,11155420,7777777,999,999999999,81457,168587773].includes(e),u=async(e,t)=>{if(!l(e.chainId))throw Error(\"Invalid chain ID for OP Stack gas estimation.\");if(void 0===e.type&&(e.type=2),e.maxPriorityFeePerGas&&e.maxFeePerGas||e.gasPrice)return e;try{if(!e.maxPriorityFeePerGas){let r=await t.send(\"eth_maxPriorityFeePerGas\",[]);e.maxPriorityFeePerGas=r}if(e.maxFeePerGas&&(console.warn(\"maxFeePerGas is specified without maxPriorityFeePerGas - this can result in hung transactions.\"),e.maxPriorityFeePerGas>=e.maxFeePerGas))throw Error(\"Overridden maxFeePerGas is less than or equal to the calculated maxPriorityFeePerGas. Please set both values or maxPriorityFeePerGas alone for correct gas estimation.\");if(!e.maxFeePerGas){let{lastBaseFeePerGas:r}=await t.getFeeData();if(!r)throw Error(\"Unable to fetch baseFee for last block.\");let i=n.O$.from(r).mul(n.O$.from(126)).div(n.O$.from(100)).add(n.O$.from(e.maxPriorityFeePerGas));e.maxFeePerGas=(0,o.L5)(i)}}catch(e){throw Error(`Failed to set gas price for OP stack transaction: ${e}.`)}return e};async function c(e,t){if(!e.chainId||e.chainId&&!l(e.chainId))return n.O$.from(0);let r=n.O$.from(0);try{let n=new i.CH(\"0x420000000000000000000000000000000000000F\",a,t),l=(0,o.mv)(e),u=(0,s.qC)(l);r=await n.getL1Fee(u)}catch(e){}return r}},50607:function(e,t,r){\"use strict\";r.d(t,{L5:function(){return s},mv:function(){return o},uq:function(){return i}});var n=r(22594);let i=e=>n.O$.from(e);function s(e){if(\"number\"==typeof e||\"bigint\"==typeof e||\"string\"==typeof e)return e;if(\"function\"==typeof e.toHexString)return e.toHexString();throw Error(`Expected numeric value but received ${e}`)}function o(e){let t={};return void 0!==e.to&&(t.to=e.to),void 0!==e.data&&(t.data=e.data),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.type&&(t.type=e.type),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.nonce&&(t.nonce=i(e.nonce).toNumber()),void 0!==e.gasLimit&&(t.gasLimit=i(e.gasLimit)),void 0!==e.gasPrice&&(t.gasPrice=i(e.gasPrice)),void 0!==e.value&&(t.value=i(e.value)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=i(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i(e.maxPriorityFeePerGas)),t}},37786:function(e,t,r){\"use strict\";r.d(t,{Fj:function(){return a},_7:function(){return u},gM:function(){return l}});var n=r(22594),i=r(3754),s=r(81318),o=r(50607);let a=async(e,t)=>{if(void 0===e.type&&(e.type=2),2===e.type){if(!e.maxFeePerGas||!e.maxPriorityFeePerGas){let r=await t.getFeeData();e.maxFeePerGas||(e.maxFeePerGas=r.maxFeePerGas?.toHexString()),e.maxPriorityFeePerGas||(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas?.toHexString())}}else if(!e.gasPrice){let r=await t.getFeeData();e.gasPrice=r.gasPrice?.toHexString()}return e};async function l(e,t){if(!e.gasLimit)throw new i.GR(\"gasLimit was not successfully set for transaction.\");let r=(0,o.uq)(e.gasLimit),a=n.O$.from(0);if(2==e.type){if(!e.maxFeePerGas)throw new i.GR(\"maxFeePerGas was not successfully set for transaction of type 2.\");a=(0,o.uq)(e.maxFeePerGas)}else{if(!e.gasPrice)throw new i.GR(\"gasPrice was not successfully set for transaction of type 0 or 1.\");a=(0,o.uq)(e.gasPrice)}let l=r.mul(a),u=n.O$.from(0);if(e.chainId&&(0,s.OW)(e.chainId))try{u=await (0,s.t_)(e,t),l=l.add(u)}catch(e){}return{totalGasEstimate:l,l1ExecutionFeeEstimate:u}}async function u(e,t){try{return(await t.estimateGas(e)).toHexString()}catch(r){console.warn(`Gas estimation failed with error: ${r}. Retrying gas estimation by omitting the 'from' address`);try{let r={...e,from:void 0};return(await t.estimateGas(r)).toHexString()}catch(e){throw console.warn(`Gas estimation failed with error: ${e} when omitting the 'from' address`),r}}}},58118:function(e,t,r){\"use strict\";r.d(t,{vT:function(){return x}});var n=r(37637),i=r(22594),s=r(50607);let o=e=>[42161,421613,421614].includes(e),a=async(e,t)=>{if(!o(e.chainId))throw Error(\"Invalid chain ID for Arbitrum gas estimation.\");if(void 0===e.type&&(e.type=2),e.maxFeePerGas)return e;try{let{lastBaseFeePerGas:r}=await t.getFeeData();if(r){let t=r.mul(i.O$.from(120)).div(i.O$.from(100));e.maxFeePerGas=(0,s.L5)(t),e.maxPriorityFeePerGas=(0,s.L5)(i.O$.from(0))}}catch(e){throw Error(`Failed to set gas price for Arbitrum transaction: ${e}.`)}return e},l=e=>[56,97].includes(e),u=async(e,t)=>{if(!l(e.chainId))throw Error(\"Invalid chain ID for BSC gas estimation.\");if(void 0===e.type?e.type=0:1!=e.type&&2!=e.type||console.warn(\"Transaction request type specified is incompatible for chain and will result in undefined behavior.  Please use transaction type 0.\"),!e.gasPrice){let r=await t.getFeeData();e.gasPrice=r.gasPrice?.toHexString()}return e};var c=r(81318),d=r(58789),h=r(27695),f=r.n(h);let p={id:137},g={id:80002},m={id:80001},y=f()(fetch,{retries:3,retryDelay:500}),b=e=>[p.id,m.id,g.id].includes(e),v=e=>({maxPriorityFee:(0,d.vz)(e.maxPriorityFee.toFixed(9),\"gwei\").toHexString(),maxFee:(0,d.vz)(e.maxFee.toFixed(9),\"gwei\").toHexString()}),w=async e=>{let t=\"\";switch(e){case p.id:t=\"https://gasstation.polygon.technology/v2\";break;case m.id:t=\"https://gasstation-testnet.polygon.technology/v2\";break;case g.id:t=\"https://gasstation.polygon.technology/amoy\";break;default:throw Error(`chainId ${e} does not support polygon gas stations`)}let r=await y(t),n=await r.json();if(r.status>399)throw n;return{safeLow:v(n.safeLow),standard:v(n.standard),fast:v(n.fast)}};async function _(e){if(!b(e.chainId))throw Error(\"Invalid chain ID for Polygon gas estimation.\");if(void 0===e.type&&(e.type=2),e.maxPriorityFeePerGas&&e.maxFeePerGas)return e;try{let{standard:t}=await w(e.chainId);e.maxPriorityFeePerGas||(e.maxPriorityFeePerGas=t.maxPriorityFee),e.maxFeePerGas||(e.maxFeePerGas=t.maxFee)}catch(e){throw Error(`Failed to set gas prices from Polygon gas station with error: ${e}.`)}return e}var E=r(37786);function A(e){return/^-?0x[a-f0-9]+$/i.test(e)}async function x(e,t,r){if(t.chainId=Number(t.chainId),function(e){for(let t of[\"gasLimit\",\"gasPrice\",\"value\",\"maxPriorityFeePerGas\",\"maxFeePerGas\"]){let r=e[t];if(void 0!==r&&!function(e){let t=\"number\"==typeof e,r=\"bigint\"==typeof e,n=\"string\"==typeof e&&A(e);return t||r||n}(r))throw Error(`Transaction request property '${t}' must be a valid number, bigint, or hex string representing a quantity`)}if(\"number\"!=typeof e.chainId)throw Error(\"Transaction request property 'chainId' must be a number\")}(t),t.from||(t.from=e),!t.nonce){let i=new n.b(e,r);t.nonce=await i.getTransactionCount(\"pending\")}return t.gasLimit||(t.gas?(t.gasLimit=t.gas,delete t.gas):t.gasLimit=await (0,E._7)(t,r)),\"string\"==typeof t.type&&A(t.type)&&(t.type=Number(t.type)),[23294,23295].includes(t.chainId)&&(t.type=0),0===(t=b(t.chainId)?await _(t):o(t.chainId)?await a(t,r):(0,c.OW)(t.chainId)?await (0,c.no)(t,r):l(t.chainId)?await u(t,r):await (0,E.Fj)(t,r)).type&&delete t.accessList,2!==t.type&&(delete t.maxPriorityFeePerGas,delete t.maxFeePerGas),t}},59488:function(e,t,r){\"use strict\";r.d(t,{W:function(){return n}});let n=(e,t=!0)=>e.reduce((e,r)=>({...e,[r]:t}),{})},18615:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(24986);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function l(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function u(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function c(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),c(e/4294967296>>>0,t,r),c(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=s,t.writeInt16LE=s,t.readInt32BE=o,t.readUint32BE=a,t.readInt32LE=l,t.readUint32LE=u,t.writeUint32BE=c,t.writeInt32BE=c,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=o(e,t),n=o(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 4294967296*l(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error(\"readUintBE supports only bitLengths divisible by 8\");if(e/8>t.length-r)throw Error(\"readUintBE: array is too short for the given bitLength\");for(var n=0,i=1,s=e/8+r-1;s>=r;s--)n+=t[s]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error(\"readUintLE supports only bitLengths divisible by 8\");if(e/8>t.length-r)throw Error(\"readUintLE: array is too short for the given bitLength\");for(var n=0,i=1,s=r;s<r+e/8;s++)n+=t[s]*i,i*=256;return n},t.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error(\"writeUintBE supports only bitLengths divisible by 8\");if(!n.isSafeInteger(t))throw Error(\"writeUintBE value must be an integer\");for(var s=1,o=e/8+i-1;o>=i;o--)r[o]=t/s&255,s*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error(\"writeUintLE supports only bitLengths divisible by 8\");if(!n.isSafeInteger(t))throw Error(\"writeUintLE value must be an integer\");for(var s=1,o=i;o<i+e/8;o++)r[o]=t/s&255,s*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},23518:function(e,t,r){\"use strict\";var n=r(94168),i=r(14605),s=r(32583),o=r(18615),a=r(21346);t.Cv=32,t.WH=12,t.pg=16;var l=new Uint8Array(16),u=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error(\"ChaCha20Poly1305 needs 32-byte key\");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw Error(\"ChaCha20Poly1305: incorrect nonce length\");var o,a=new Uint8Array(16);a.set(e,a.length-e.length);var l=new Uint8Array(32);n.stream(this._key,a,l,4);var u=t.length+this.tagLength;if(i){if(i.length!==u)throw Error(\"ChaCha20Poly1305: incorrect destination length\");o=i}else o=new Uint8Array(u);return n.streamXOR(this._key,a,t,o,4),this._authenticate(o.subarray(o.length-this.tagLength,o.length),l,o.subarray(0,o.length-this.tagLength),r),s.wipe(a),o},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error(\"ChaCha20Poly1305: incorrect nonce length\");if(t.length<this.tagLength)return null;var o,l=new Uint8Array(16);l.set(e,l.length-e.length);var u=new Uint8Array(32);n.stream(this._key,l,u,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,u,t.subarray(0,t.length-this.tagLength),r),!a.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(i){if(i.length!==d)throw Error(\"ChaCha20Poly1305: incorrect destination length\");o=i}else o=new Uint8Array(d);return n.streamXOR(this._key,l,t.subarray(0,t.length-this.tagLength),o,4),s.wipe(l),o},e.prototype.clean=function(){return s.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var a=new i.Poly1305(t);n&&(a.update(n),n.length%16>0&&a.update(l.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(l.subarray(r.length%16));var u=new Uint8Array(8);n&&o.writeUint64LE(n.length,u),a.update(u),o.writeUint64LE(r.length,u),a.update(u);for(var c=a.digest(),d=0;d<c.length;d++)e[d]=c[d];a.clean(),s.wipe(c),s.wipe(u)},e}();t.OK=u},94168:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(18615),i=r(32583);function s(e,t,r,s,o){if(void 0===o&&(o=0),32!==e.length)throw Error(\"ChaCha: key size must be 32 bytes\");if(s.length<r.length)throw Error(\"ChaCha: destination is shorter than source\");if(0===o){if(8!==t.length&&12!==t.length)throw Error(\"ChaCha nonce must be 8 or 12 bytes\");l=(a=new Uint8Array(16)).length-t.length,a.set(t,l)}else{if(16!==t.length)throw Error(\"ChaCha nonce with counter must be 16 bytes\");a=t,l=o}for(var a,l,u=new Uint8Array(64),c=0;c<r.length;c+=64){!function(e,t,r){for(var i=r[3]<<24|r[2]<<16|r[1]<<8|r[0],s=r[7]<<24|r[6]<<16|r[5]<<8|r[4],o=r[11]<<24|r[10]<<16|r[9]<<8|r[8],a=r[15]<<24|r[14]<<16|r[13]<<8|r[12],l=r[19]<<24|r[18]<<16|r[17]<<8|r[16],u=r[23]<<24|r[22]<<16|r[21]<<8|r[20],c=r[27]<<24|r[26]<<16|r[25]<<8|r[24],d=r[31]<<24|r[30]<<16|r[29]<<8|r[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],g=t[15]<<24|t[14]<<16|t[13]<<8|t[12],m=1634760805,y=857760878,b=2036477234,v=1797285236,w=i,_=s,E=o,A=a,x=l,k=u,S=c,$=d,C=h,P=f,I=p,O=g,N=0;N<20;N+=2)C^=m=m+w|0,w^=x=x+(C=C>>>16|C<<16)|0,w=w>>>20|w<<12,P^=y=y+_|0,_^=k=k+(P=P>>>16|P<<16)|0,_=_>>>20|_<<12,I^=b=b+E|0,E^=S=S+(I=I>>>16|I<<16)|0,E=E>>>20|E<<12,O^=v=v+A|0,A^=$=$+(O=O>>>16|O<<16)|0,A=A>>>20|A<<12,I^=b=b+E|0,E^=S=S+(I=I>>>24|I<<8)|0,E=E>>>25|E<<7,O^=v=v+A|0,A^=$=$+(O=O>>>24|O<<8)|0,A=A>>>25|A<<7,P^=y=y+_|0,_^=k=k+(P=P>>>24|P<<8)|0,_=_>>>25|_<<7,C^=m=m+w|0,w^=x=x+(C=C>>>24|C<<8)|0,w=w>>>25|w<<7,O^=m=m+_|0,_^=S=S+(O=O>>>16|O<<16)|0,_=_>>>20|_<<12,C^=y=y+E|0,E^=$=$+(C=C>>>16|C<<16)|0,E=E>>>20|E<<12,P^=b=b+A|0,A^=x=x+(P=P>>>16|P<<16)|0,A=A>>>20|A<<12,I^=v=v+w|0,w^=k=k+(I=I>>>16|I<<16)|0,w=w>>>20|w<<12,P^=b=b+A|0,A^=x=x+(P=P>>>24|P<<8)|0,A=A>>>25|A<<7,I^=v=v+w|0,w^=k=k+(I=I>>>24|I<<8)|0,w=w>>>25|w<<7,C^=y=y+E|0,E^=$=$+(C=C>>>24|C<<8)|0,E=E>>>25|E<<7,O^=m=m+_|0,_^=S=S+(O=O>>>24|O<<8)|0,_=_>>>25|_<<7;n.writeUint32LE(m+1634760805|0,e,0),n.writeUint32LE(y+857760878|0,e,4),n.writeUint32LE(b+2036477234|0,e,8),n.writeUint32LE(v+1797285236|0,e,12),n.writeUint32LE(w+i|0,e,16),n.writeUint32LE(_+s|0,e,20),n.writeUint32LE(E+o|0,e,24),n.writeUint32LE(A+a|0,e,28),n.writeUint32LE(x+l|0,e,32),n.writeUint32LE(k+u|0,e,36),n.writeUint32LE(S+c|0,e,40),n.writeUint32LE($+d|0,e,44),n.writeUint32LE(C+h|0,e,48),n.writeUint32LE(P+f|0,e,52),n.writeUint32LE(I+p|0,e,56),n.writeUint32LE(O+g|0,e,60)}(u,a,e);for(var d=c;d<c+64&&d<r.length;d++)s[d]=r[d]^u[d-c];!function(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw Error(\"ChaCha: counter overflow\")}(a,0,l)}return i.wipe(u),0===o&&i.wipe(a),s}t.streamXOR=s,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),s(e,t,r,r,n)}},21346:function(e,t){\"use strict\";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,\"__esModule\",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},59271:function(e,t,r){\"use strict\";t.Xx=t._w=t.aP=t.KS=t.jQ=void 0,r(24861);let n=r(13033);function i(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}r(32583),t.jQ=64,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;let s=i(),o=i([1]),a=(i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),l=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function c(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function d(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function h(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function f(e,t){let r=i(),n=i();for(let e=0;e<16;e++)n[e]=t[e];d(n),d(n),d(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,h(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function g(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function m(e,t,r){let n,i,s=0,o=0,a=0,l=0,u=0,c=0,d=0,h=0,f=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,_=0,E=0,A=0,x=0,k=0,S=0,$=0,C=0,P=0,I=0,O=0,N=0,M=0,R=0,T=0,D=r[0],L=r[1],j=r[2],B=r[3],F=r[4],U=r[5],z=r[6],q=r[7],H=r[8],G=r[9],V=r[10],W=r[11],K=r[12],Y=r[13],Z=r[14],J=r[15];s+=(n=t[0])*D,o+=n*L,a+=n*j,l+=n*B,u+=n*F,c+=n*U,d+=n*z,h+=n*q,f+=n*H,p+=n*G,g+=n*V,m+=n*W,y+=n*K,b+=n*Y,v+=n*Z,w+=n*J,o+=(n=t[1])*D,a+=n*L,l+=n*j,u+=n*B,c+=n*F,d+=n*U,h+=n*z,f+=n*q,p+=n*H,g+=n*G,m+=n*V,y+=n*W,b+=n*K,v+=n*Y,w+=n*Z,_+=n*J,a+=(n=t[2])*D,l+=n*L,u+=n*j,c+=n*B,d+=n*F,h+=n*U,f+=n*z,p+=n*q,g+=n*H,m+=n*G,y+=n*V,b+=n*W,v+=n*K,w+=n*Y,_+=n*Z,E+=n*J,l+=(n=t[3])*D,u+=n*L,c+=n*j,d+=n*B,h+=n*F,f+=n*U,p+=n*z,g+=n*q,m+=n*H,y+=n*G,b+=n*V,v+=n*W,w+=n*K,_+=n*Y,E+=n*Z,A+=n*J,u+=(n=t[4])*D,c+=n*L,d+=n*j,h+=n*B,f+=n*F,p+=n*U,g+=n*z,m+=n*q,y+=n*H,b+=n*G,v+=n*V,w+=n*W,_+=n*K,E+=n*Y,A+=n*Z,x+=n*J,c+=(n=t[5])*D,d+=n*L,h+=n*j,f+=n*B,p+=n*F,g+=n*U,m+=n*z,y+=n*q,b+=n*H,v+=n*G,w+=n*V,_+=n*W,E+=n*K,A+=n*Y,x+=n*Z,k+=n*J,d+=(n=t[6])*D,h+=n*L,f+=n*j,p+=n*B,g+=n*F,m+=n*U,y+=n*z,b+=n*q,v+=n*H,w+=n*G,_+=n*V,E+=n*W,A+=n*K,x+=n*Y,k+=n*Z,S+=n*J,h+=(n=t[7])*D,f+=n*L,p+=n*j,g+=n*B,m+=n*F,y+=n*U,b+=n*z,v+=n*q,w+=n*H,_+=n*G,E+=n*V,A+=n*W,x+=n*K,k+=n*Y,S+=n*Z,$+=n*J,f+=(n=t[8])*D,p+=n*L,g+=n*j,m+=n*B,y+=n*F,b+=n*U,v+=n*z,w+=n*q,_+=n*H,E+=n*G,A+=n*V,x+=n*W,k+=n*K,S+=n*Y,$+=n*Z,C+=n*J,p+=(n=t[9])*D,g+=n*L,m+=n*j,y+=n*B,b+=n*F,v+=n*U,w+=n*z,_+=n*q,E+=n*H,A+=n*G,x+=n*V,k+=n*W,S+=n*K,$+=n*Y,C+=n*Z,P+=n*J,g+=(n=t[10])*D,m+=n*L,y+=n*j,b+=n*B,v+=n*F,w+=n*U,_+=n*z,E+=n*q,A+=n*H,x+=n*G,k+=n*V,S+=n*W,$+=n*K,C+=n*Y,P+=n*Z,I+=n*J,m+=(n=t[11])*D,y+=n*L,b+=n*j,v+=n*B,w+=n*F,_+=n*U,E+=n*z,A+=n*q,x+=n*H,k+=n*G,S+=n*V,$+=n*W,C+=n*K,P+=n*Y,I+=n*Z,O+=n*J,y+=(n=t[12])*D,b+=n*L,v+=n*j,w+=n*B,_+=n*F,E+=n*U,A+=n*z,x+=n*q,k+=n*H,S+=n*G,$+=n*V,C+=n*W,P+=n*K,I+=n*Y,O+=n*Z,N+=n*J,b+=(n=t[13])*D,v+=n*L,w+=n*j,_+=n*B,E+=n*F,A+=n*U,x+=n*z,k+=n*q,S+=n*H,$+=n*G,C+=n*V,P+=n*W,I+=n*K,O+=n*Y,N+=n*Z,M+=n*J,v+=(n=t[14])*D,w+=n*L,_+=n*j,E+=n*B,A+=n*F,x+=n*U,k+=n*z,S+=n*q,$+=n*H,C+=n*G,P+=n*V,I+=n*W,O+=n*K,N+=n*Y,M+=n*Z,R+=n*J,w+=(n=t[15])*D,_+=n*L,E+=n*j,A+=n*B,x+=n*F,k+=n*U,S+=n*z,$+=n*q,C+=n*H,P+=n*G,I+=n*V,O+=n*W,N+=n*K,M+=n*Y,R+=n*Z,T+=n*J,s+=38*_,o+=38*E,a+=38*A,l+=38*x,u+=38*k,c+=38*S,d+=38*$,h+=38*C,f+=38*P,p+=38*I,g+=38*O,m+=38*N,y+=38*M,b+=38*R,v+=38*T,i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),e[0]=s,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function y(e,t){let r=i(),n=i(),s=i(),o=i(),l=i(),u=i(),c=i(),d=i(),h=i();g(r,e[1],e[0]),g(h,t[1],t[0]),m(r,r,h),p(n,e[0],e[1]),p(h,t[0],t[1]),m(n,n,h),m(s,e[3],t[3]),m(s,s,a),m(o,e[2],t[2]),p(o,o,o),g(l,n,r),g(u,o,s),p(c,o,s),p(d,n,r),m(e[0],l,u),m(e[1],d,c),m(e[2],c,u),m(e[3],l,d)}function b(e,t,r){for(let n=0;n<4;n++)h(e[n],t[n],r)}function v(e,t){let r=i(),n=i(),s=i();(function(e,t){let r;let n=i();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)m(n,n,n),2!==r&&4!==r&&m(n,n,t);for(r=0;r<16;r++)e[r]=n[r]})(s,t[2]),m(r,t[0],s),m(n,t[1],s),f(e,n),e[31]^=function(e){let t=new Uint8Array(32);return f(t,e),1&t[0]}(r)<<7}function w(e,t){let r=[i(),i(),i(),i()];c(r[0],l),c(r[1],u),c(r[2],o),m(r[3],l,u),function(e,t,r){c(e[0],s),c(e[1],o),c(e[2],o),c(e[3],s);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(7&n)&1;b(e,t,i),y(t,e),y(e,e),b(e,t,i)}}(e,r,t)}t._w=function(e){if(e.length!==t.aP)throw Error(`ed25519: seed must be ${t.aP} bytes`);let r=(0,n.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let s=new Uint8Array(32),o=[i(),i(),i(),i()];w(o,r),v(s,o);let a=new Uint8Array(64);return a.set(e),a.set(s,32),{publicKey:s,secretKey:a}};let _=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function E(e,t){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i<s;++i)t[i]+=r-16*t[n]*_[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(i=0,r=0;i<32;i++)t[i]+=r-(t[31]>>4)*_[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*_[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function A(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;E(e,t)}t.Xx=function(e,t){let r=new Float64Array(64),s=[i(),i(),i(),i()],o=(0,n.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;let a=new Uint8Array(64);a.set(o.subarray(32),32);let l=new n.SHA512;l.update(a.subarray(32)),l.update(t);let u=l.digest();l.clean(),A(u),w(s,u),v(a,s),l.reset(),l.update(a.subarray(0,32)),l.update(e.subarray(32)),l.update(t);let c=l.digest();A(c);for(let e=0;e<32;e++)r[e]=u[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)r[e+t]+=c[e]*o[t];return E(a.subarray(32),r),a}},86784:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},67878:function(e,t,r){\"use strict\";var n=r(4705),i=r(32583),s=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var s=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error(\"hkdf: cannot expand more\");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.t=s},4705:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(86784),i=r(21346),s=r(32583),o=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i<r.length;i++)r[i]^=54;this._inner.update(r);for(var i=0;i<r.length;i++)r[i]^=106;this._outer.update(r),n.isSerializableHash(this._inner)&&n.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),s.wipe(r)}return e.prototype.reset=function(){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error(\"hmac: can't reset() because hash doesn't implement restoreState()\");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){n.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),n.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!n.isSerializableHash(this._inner))throw Error(\"hmac: can't saveState() because hash doesn't implement it\");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error(\"hmac: can't restoreState() because hash doesn't implement it\");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!n.isSerializableHash(this._inner))throw Error(\"hmac: can't cleanSavedState() because hash doesn't implement it\");this._inner.cleanSavedState(e)},e}();t.HMAC=o,t.hmac=function(e,t,r){var n=new o(e,t);n.update(r);var i=n.digest();return n.clean(),i},t.equal=i.equal},24986:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return\"number\"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},14605:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(21346),i=r(32583);t.DIGEST_LENGTH=16;var s=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var s=e[6]|e[7]<<8;this._r[3]=(i>>>7|s<<9)&8191;var o=e[8]|e[9]<<8;this._r[4]=(s>>>4|o<<12)&255,this._r[5]=o>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=(o>>>14|a<<2)&8191;var l=e[12]|e[13]<<8;this._r[7]=(a>>>11|l<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(l>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],l=this._h[4],u=this._h[5],c=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],g=this._r[1],m=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],w=this._r[6],_=this._r[7],E=this._r[8],A=this._r[9];r>=16;){var x,k=e[t+0]|e[t+1]<<8;i+=8191&k;var S=e[t+2]|e[t+3]<<8;s+=(k>>>13|S<<3)&8191;var $=e[t+4]|e[t+5]<<8;o+=(S>>>10|$<<6)&8191;var C=e[t+6]|e[t+7]<<8;a+=($>>>7|C<<9)&8191;var P=e[t+8]|e[t+9]<<8;l+=(C>>>4|P<<12)&8191,u+=P>>>1&8191;var I=e[t+10]|e[t+11]<<8;c+=(P>>>14|I<<2)&8191;var O=e[t+12]|e[t+13]<<8;d+=(I>>>11|O<<5)&8191;var N=e[t+14]|e[t+15]<<8;h+=(O>>>8|N<<8)&8191,f+=N>>>5|n;var M=0;M=(x=0+i*p+5*A*s+5*E*o+5*_*a+5*w*l)>>>13,x&=8191,x+=5*v*u+5*b*c+5*y*d+5*m*h+5*g*f,M+=x>>>13,x&=8191;var R=M;R+=i*g+s*p+5*A*o+5*E*a+5*_*l,M=R>>>13,R&=8191,R+=5*w*u+5*v*c+5*b*d+5*y*h+5*m*f,M+=R>>>13,R&=8191;var T=M;T+=i*m+s*g+o*p+5*A*a+5*E*l,M=T>>>13,T&=8191,T+=5*_*u+5*w*c+5*v*d+5*b*h+5*y*f,M+=T>>>13,T&=8191;var D=M;D+=i*y+s*m+o*g+a*p+5*A*l,M=D>>>13,D&=8191,D+=5*E*u+5*_*c+5*w*d+5*v*h+5*b*f,M+=D>>>13,D&=8191;var L=M;L+=i*b+s*y+o*m+a*g+l*p,M=L>>>13,L&=8191,L+=5*A*u+5*E*c+5*_*d+5*w*h+5*v*f,M+=L>>>13,L&=8191;var j=M;j+=i*v+s*b+o*y+a*m+l*g,M=j>>>13,j&=8191,j+=u*p+5*A*c+5*E*d+5*_*h+5*w*f,M+=j>>>13,j&=8191;var B=M;B+=i*w+s*v+o*b+a*y+l*m,M=B>>>13,B&=8191,B+=u*g+c*p+5*A*d+5*E*h+5*_*f,M+=B>>>13,B&=8191;var F=M;F+=i*_+s*w+o*v+a*b+l*y,M=F>>>13,F&=8191,F+=u*m+c*g+d*p+5*A*h+5*E*f,M+=F>>>13,F&=8191;var U=M;U+=i*E+s*_+o*w+a*v+l*b,M=U>>>13,U&=8191,U+=u*y+c*m+d*g+h*p+5*A*f,M+=U>>>13,U&=8191;var z=M;z+=i*A+s*E+o*_+a*w+l*v,M=z>>>13,z&=8191,z+=u*b+c*y+d*m+h*g+f*p,M+=z>>>13,z&=8191,x=8191&(M=(M=(M<<2)+M|0)+x|0),M>>>=13,R+=M,i=x,s=R,o=T,a=D,l=L,u=j,c=B,d=F,h=U,f=z,t+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=l,this._h[5]=u,this._h[6]=c,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(s=0,n=~n;s<10;s++)this._h[s]=this._h[s]&n|o[s];for(s=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[r+i];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var i=0;i<n;i++)this._buffer[this._leftover+i]=e[r+i];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw Error(\"Poly1305 was finished\");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=s,t.oneTimeAuth=function(e,t){var r=new s(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},24861:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(71722),i=r(18615),s=r(32583);function o(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){let r=o(4,e),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};let a=\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";function l(e,r=a,n=t.defaultRandomSource){if(r.length<2)throw Error(\"randomString charset is too short\");if(r.length>256)throw Error(\"randomString charset is too long\");let i=\"\",l=r.length,u=256-256%l;for(;e>0;){let t=o(Math.ceil(256*e/u),n);for(let n=0;n<t.length&&e>0;n++){let s=t[n];s<u&&(i+=r.charAt(s%l),e--)}(0,s.wipe)(t)}return i}t.randomString=l,t.randomStringForEntropy=function(e,r=a,n=t.defaultRandomSource){return l(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},3724:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.BrowserRandomSource=void 0;class r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=\"undefined\"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error(\"Browser random byte generator is not available.\");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}t.BrowserRandomSource=r},39663:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.NodeRandomSource=void 0;let n=r(32583);class i{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error(\"Node.js random byte generator is not available.\");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error(\"NodeRandomSource: got fewer bytes than requested\");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}t.NodeRandomSource=i},71722:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SystemRandomSource=void 0;let n=r(3724),i=r(39663);class s{constructor(){if(this.isAvailable=!1,this.name=\"\",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name=\"Browser\";return}if(this._source=new i.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name=\"Node\";return}}randomBytes(e){if(!this.isAvailable)throw Error(\"System random byte generator is not available.\");return this._source.randomBytes(e)}}t.SystemRandomSource=s},67929:function(e,t,r){\"use strict\";var n=r(18615),i=r(32583);t.k=32,t.cn=64;var s=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error(\"SHA256: can't update because hash was finished.\");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=a(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%64<56?64:128;this._buffer[r]=128;for(var s=r+1;s<i-8;s++)this._buffer[s]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),a(this._temp,this._state,this._buffer,0,i),this._finished=!0}for(var s=0;s<this.digestLength/4;s++)n.writeUint32BE(this._state[s],e,4*s);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error(\"SHA256: cannot save finished state\");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=s;var o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function a(e,t,r,i,s){for(;s>=64;){for(var a=t[0],l=t[1],u=t[2],c=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=0;g<16;g++){var m=i+4*g;e[g]=n.readUint32BE(r,m)}for(var g=16;g<64;g++){var y=e[g-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[g-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[g]=(b+e[g-7]|0)+(v+e[g-16]|0)}for(var g=0;g<64;g++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(o[g]+e[g]|0)|0)|0,v=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&l^a&u^l&u)|0;p=f,f=h,h=d,d=c+b|0,c=u,u=l,l=a,a=b+v|0}t[0]+=a,t[1]+=l,t[2]+=u,t[3]+=c,t[4]+=d,t[5]+=h,t[6]+=f,t[7]+=p,i+=64,s-=64}return i}t.vp=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},13033:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(18615),i=r(32583);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var s=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error(\"SHA512: can't update because hash was finished.\");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%128<112?128:256;this._buffer[r]=128;for(var s=r+1;s<i-8;s++)this._buffer[s]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,i),this._finished=!0}for(var s=0;s<this.digestLength/8;s++)n.writeUint32BE(this._stateHi[s],e,8*s),n.writeUint32BE(this._stateLo[s],e,8*s+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error(\"SHA256: cannot save finished state\");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=s;var o=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function a(e,t,r,i,s,a,l){for(var u,c,d,h,f,p,g,m,y=r[0],b=r[1],v=r[2],w=r[3],_=r[4],E=r[5],A=r[6],x=r[7],k=i[0],S=i[1],$=i[2],C=i[3],P=i[4],I=i[5],O=i[6],N=i[7];l>=128;){for(var M=0;M<16;M++){var R=8*M+a;e[M]=n.readUint32BE(s,R),t[M]=n.readUint32BE(s,R+4)}for(var M=0;M<80;M++){var T=y,D=b,L=v,j=w,B=_,F=E,U=A,z=x,q=k,H=S,G=$,V=C,W=P,K=I,Y=O,Z=N;if(u=x,f=65535&(c=N),p=c>>>16,g=65535&u,m=u>>>16,u=(_>>>14|P<<18)^(_>>>18|P<<14)^(P>>>9|_<<23),f+=65535&(c=(P>>>14|_<<18)^(P>>>18|_<<14)^(_>>>9|P<<23)),p+=c>>>16,g+=65535&u,m+=u>>>16,u=_&E^~_&A,f+=65535&(c=P&I^~P&O),p+=c>>>16,g+=65535&u,m+=u>>>16,u=o[2*M],f+=65535&(c=o[2*M+1]),p+=c>>>16,g+=65535&u,m+=u>>>16,u=e[M%16],f+=65535&(c=t[M%16]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,d=65535&g|m<<16,h=65535&f|p<<16,u=d,f=65535&(c=h),p=c>>>16,g=65535&u,m=u>>>16,u=(y>>>28|k<<4)^(k>>>2|y<<30)^(k>>>7|y<<25),f+=65535&(c=(k>>>28|y<<4)^(y>>>2|k<<30)^(y>>>7|k<<25)),p+=c>>>16,g+=65535&u,m+=u>>>16,u=y&b^y&v^b&v,f+=65535&(c=k&S^k&$^S&$),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,z=65535&g|m<<16,Z=65535&f|p<<16,u=j,f=65535&(c=V),p=c>>>16,g=65535&u,m=u>>>16,u=d,f+=65535&(c=h),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,j=65535&g|m<<16,V=65535&f|p<<16,b=T,v=D,w=L,_=j,E=B,A=F,x=U,y=z,S=q,$=H,C=G,P=V,I=W,O=K,N=Y,k=Z,M%16==15)for(var R=0;R<16;R++)u=e[R],f=65535&(c=t[R]),p=c>>>16,g=65535&u,m=u>>>16,u=e[(R+9)%16],f+=65535&(c=t[(R+9)%16]),p+=c>>>16,g+=65535&u,m+=u>>>16,u=((d=e[(R+1)%16])>>>1|(h=t[(R+1)%16])<<31)^(d>>>8|h<<24)^d>>>7,f+=65535&(c=(h>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),p+=c>>>16,g+=65535&u,m+=u>>>16,u=((d=e[(R+14)%16])>>>19|(h=t[(R+14)%16])<<13)^(h>>>29|d<<3)^d>>>6,f+=65535&(c=(h>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26)),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,e[R]=65535&g|m<<16,t[R]=65535&f|p<<16}u=y,f=65535&(c=k),p=c>>>16,g=65535&u,m=u>>>16,u=r[0],f+=65535&(c=i[0]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[0]=y=65535&g|m<<16,i[0]=k=65535&f|p<<16,u=b,f=65535&(c=S),p=c>>>16,g=65535&u,m=u>>>16,u=r[1],f+=65535&(c=i[1]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[1]=b=65535&g|m<<16,i[1]=S=65535&f|p<<16,u=v,f=65535&(c=$),p=c>>>16,g=65535&u,m=u>>>16,u=r[2],f+=65535&(c=i[2]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[2]=v=65535&g|m<<16,i[2]=$=65535&f|p<<16,u=w,f=65535&(c=C),p=c>>>16,g=65535&u,m=u>>>16,u=r[3],f+=65535&(c=i[3]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[3]=w=65535&g|m<<16,i[3]=C=65535&f|p<<16,u=_,f=65535&(c=P),p=c>>>16,g=65535&u,m=u>>>16,u=r[4],f+=65535&(c=i[4]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[4]=_=65535&g|m<<16,i[4]=P=65535&f|p<<16,u=E,f=65535&(c=I),p=c>>>16,g=65535&u,m=u>>>16,u=r[5],f+=65535&(c=i[5]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[5]=E=65535&g|m<<16,i[5]=I=65535&f|p<<16,u=A,f=65535&(c=O),p=c>>>16,g=65535&u,m=u>>>16,u=r[6],f+=65535&(c=i[6]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[6]=A=65535&g|m<<16,i[6]=O=65535&f|p<<16,u=x,f=65535&(c=N),p=c>>>16,g=65535&u,m=u>>>16,u=r[7],f+=65535&(c=i[7]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[7]=x=65535&g|m<<16,i[7]=N=65535&f|p<<16,a+=128,l-=128}return a}t.hash=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},32583:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},89414:function(e,t,r){\"use strict\";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(24861),i=r(32583);function s(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let o=new Uint8Array(32);o[0]=9;let a=s([56129,1]);function l(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function u(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function c(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function d(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function h(e,t,r){let n,i,s=0,o=0,a=0,l=0,u=0,c=0,d=0,h=0,f=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,_=0,E=0,A=0,x=0,k=0,S=0,$=0,C=0,P=0,I=0,O=0,N=0,M=0,R=0,T=0,D=r[0],L=r[1],j=r[2],B=r[3],F=r[4],U=r[5],z=r[6],q=r[7],H=r[8],G=r[9],V=r[10],W=r[11],K=r[12],Y=r[13],Z=r[14],J=r[15];s+=(n=t[0])*D,o+=n*L,a+=n*j,l+=n*B,u+=n*F,c+=n*U,d+=n*z,h+=n*q,f+=n*H,p+=n*G,g+=n*V,m+=n*W,y+=n*K,b+=n*Y,v+=n*Z,w+=n*J,o+=(n=t[1])*D,a+=n*L,l+=n*j,u+=n*B,c+=n*F,d+=n*U,h+=n*z,f+=n*q,p+=n*H,g+=n*G,m+=n*V,y+=n*W,b+=n*K,v+=n*Y,w+=n*Z,_+=n*J,a+=(n=t[2])*D,l+=n*L,u+=n*j,c+=n*B,d+=n*F,h+=n*U,f+=n*z,p+=n*q,g+=n*H,m+=n*G,y+=n*V,b+=n*W,v+=n*K,w+=n*Y,_+=n*Z,E+=n*J,l+=(n=t[3])*D,u+=n*L,c+=n*j,d+=n*B,h+=n*F,f+=n*U,p+=n*z,g+=n*q,m+=n*H,y+=n*G,b+=n*V,v+=n*W,w+=n*K,_+=n*Y,E+=n*Z,A+=n*J,u+=(n=t[4])*D,c+=n*L,d+=n*j,h+=n*B,f+=n*F,p+=n*U,g+=n*z,m+=n*q,y+=n*H,b+=n*G,v+=n*V,w+=n*W,_+=n*K,E+=n*Y,A+=n*Z,x+=n*J,c+=(n=t[5])*D,d+=n*L,h+=n*j,f+=n*B,p+=n*F,g+=n*U,m+=n*z,y+=n*q,b+=n*H,v+=n*G,w+=n*V,_+=n*W,E+=n*K,A+=n*Y,x+=n*Z,k+=n*J,d+=(n=t[6])*D,h+=n*L,f+=n*j,p+=n*B,g+=n*F,m+=n*U,y+=n*z,b+=n*q,v+=n*H,w+=n*G,_+=n*V,E+=n*W,A+=n*K,x+=n*Y,k+=n*Z,S+=n*J,h+=(n=t[7])*D,f+=n*L,p+=n*j,g+=n*B,m+=n*F,y+=n*U,b+=n*z,v+=n*q,w+=n*H,_+=n*G,E+=n*V,A+=n*W,x+=n*K,k+=n*Y,S+=n*Z,$+=n*J,f+=(n=t[8])*D,p+=n*L,g+=n*j,m+=n*B,y+=n*F,b+=n*U,v+=n*z,w+=n*q,_+=n*H,E+=n*G,A+=n*V,x+=n*W,k+=n*K,S+=n*Y,$+=n*Z,C+=n*J,p+=(n=t[9])*D,g+=n*L,m+=n*j,y+=n*B,b+=n*F,v+=n*U,w+=n*z,_+=n*q,E+=n*H,A+=n*G,x+=n*V,k+=n*W,S+=n*K,$+=n*Y,C+=n*Z,P+=n*J,g+=(n=t[10])*D,m+=n*L,y+=n*j,b+=n*B,v+=n*F,w+=n*U,_+=n*z,E+=n*q,A+=n*H,x+=n*G,k+=n*V,S+=n*W,$+=n*K,C+=n*Y,P+=n*Z,I+=n*J,m+=(n=t[11])*D,y+=n*L,b+=n*j,v+=n*B,w+=n*F,_+=n*U,E+=n*z,A+=n*q,x+=n*H,k+=n*G,S+=n*V,$+=n*W,C+=n*K,P+=n*Y,I+=n*Z,O+=n*J,y+=(n=t[12])*D,b+=n*L,v+=n*j,w+=n*B,_+=n*F,E+=n*U,A+=n*z,x+=n*q,k+=n*H,S+=n*G,$+=n*V,C+=n*W,P+=n*K,I+=n*Y,O+=n*Z,N+=n*J,b+=(n=t[13])*D,v+=n*L,w+=n*j,_+=n*B,E+=n*F,A+=n*U,x+=n*z,k+=n*q,S+=n*H,$+=n*G,C+=n*V,P+=n*W,I+=n*K,O+=n*Y,N+=n*Z,M+=n*J,v+=(n=t[14])*D,w+=n*L,_+=n*j,E+=n*B,A+=n*F,x+=n*U,k+=n*z,S+=n*q,$+=n*H,C+=n*G,P+=n*V,I+=n*W,O+=n*K,N+=n*Y,M+=n*Z,R+=n*J,w+=(n=t[15])*D,_+=n*L,E+=n*j,A+=n*B,x+=n*F,k+=n*U,S+=n*z,$+=n*q,C+=n*H,P+=n*G,I+=n*V,O+=n*W,N+=n*K,M+=n*Y,R+=n*Z,T+=n*J,s+=38*_,o+=38*E,a+=38*A,l+=38*x,u+=38*k,c+=38*S,d+=38*$,h+=38*C,f+=38*P,p+=38*I,g+=38*O,m+=38*N,y+=38*M,b+=38*R,v+=38*T,i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),e[0]=s,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function f(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=s(),o=s(),f=s(),p=s(),g=s(),m=s();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(n,t);for(let e=0;e<16;e++)o[e]=n[e];i[0]=p[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;u(i,o,t),u(f,p,t),c(g,i,f),d(i,i,f),c(f,o,p),d(o,o,p),h(p,g,g),h(m,i,i),h(i,f,i),h(f,o,g),c(g,i,f),d(i,i,f),h(o,i,i),d(f,p,m),h(i,f,a),c(i,i,p),h(f,f,i),h(i,p,m),h(p,o,n),h(o,g,g),u(i,o,t),u(f,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=f[e],n[e+48]=o[e],n[e+64]=p[e];let y=n.subarray(32),b=n.subarray(16);!function(e,t){let r=s();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)h(r,r,r),2!==e&&4!==e&&h(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(y,y),h(b,b,y);let v=new Uint8Array(32);return!function(e,t){let r=s(),n=s();for(let e=0;e<16;e++)n[e]=t[e];l(n),l(n),l(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,u(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(v,b),v}t.Au=function(e){let r=(0,n.randomBytes)(32,e),s=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:f(r,o),secretKey:r}}(r);return(0,i.wipe)(r),s},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error(\"X25519: incorrect secret key length\");if(r.length!==t.kz)throw Error(\"X25519: incorrect public key length\");let i=f(e,r);if(n){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw Error(\"X25519: invalid shared key\")}return i}},39016:function(e,t,r){\"use strict\";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){let e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,\"__esModule\",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},56010:function(e,t,r){\"use strict\";var n=r(25566);function i(){return\"undefined\"==typeof document&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product}function s(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,\"__esModule\",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=i,t.isNode=s,t.isBrowser=function(){return!i()&&!s()}},60092:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(69637);n.__exportStar(r(39016),t),n.__exportStar(r(56010),t)},69637:function(e,t,r){\"use strict\";r.r(t),r.d(t,{__assign:function(){return s},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return _},__await:function(){return b},__awaiter:function(){return c},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return S},__createBinding:function(){return h},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return x},__importStar:function(){return A},__makeTemplateObject:function(){return E},__metadata:function(){return u},__param:function(){return l},__read:function(){return g},__rest:function(){return o},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw TypeError(\"Generator is already executing.\");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function f(e,t){for(var r in e)\"default\"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function g(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var n,i=r.apply(e,t||[]),s=[];return n={},o(\"next\"),o(\"throw\"),o(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){a(\"next\",e)}function u(e){a(\"throw\",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function w(e){var t,r;return t={},n(\"next\"),n(\"throw\",function(e){throw e}),n(\"return\"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:\"return\"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n(\"next\"),n(\"throw\"),n(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError(\"attempted to get private field on non-instance\");return t.get(e)}function S(e,t,r){if(!t.has(e))throw TypeError(\"attempted to set private field on non-instance\");return t.set(e,r),r}},89649:function(e,t,r){\"use strict\";let n;r.d(t,{Gn:function(){return iM},gy:function(){return iw},lI:function(){return ib}});var i=r(68885),s=r.n(i),o=r(50499),a=r(10259),l=r(9109).Buffer;function u(e,...t){try{var r;return(r=e(...t))&&\"function\"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function c(e){if(function(e){let t=typeof e;return null===e||\"object\"!==t&&\"function\"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if(\"function\"==typeof e.toJSON)return c(e.toJSON());throw Error(\"[unstorage] Cannot stringify value!\")}let d=\"base64:\";function h(e){return e?e.split(\"?\")[0].replace(/[/\\\\]/g,\":\").replace(/:+/g,\":\").replace(/^:|:$/g,\"\"):\"\"}function f(e){return(e=h(e))?e+\":\":\"\"}let p=()=>{let e=new Map;return{name:\"memory\",options:{},hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function g(e,t,r){return e.watch?e.watch((e,n)=>t(e,r+n)):()=>{}}async function m(e){\"function\"==typeof e.dispose&&await u(e.dispose)}function y(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function b(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=y(r);return(e,r)=>n.then(n=>r(n.transaction(t,e).objectStore(t)))}function v(){return n||(n=b(\"keyval-store\",\"keyval\")),n}function w(e,t=v()){return t(\"readonly\",t=>y(t.get(e)))}let _=e=>JSON.stringify(e,(e,t)=>\"bigint\"==typeof t?t.toString()+\"n\":t),E=e=>JSON.parse(e.replace(/([\\[:])?(\\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\\}\\]])/g,'$1\"$2n\"$3'),(e,t)=>\"string\"==typeof t&&t.match(/^\\d+n$/)?BigInt(t.substring(0,t.length-1)):t);function A(e){if(\"string\"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return E(e)}catch(t){return e}}function x(e){return\"string\"==typeof e?e:_(e)||\"\"}var k=(e={})=>{let t;let r=e.base&&e.base.length>0?`${e.base}:`:\"\",n=e=>r+e;return e.dbName&&e.storeName&&(t=b(e.dbName,e.storeName)),{name:\"idb-keyval\",options:e,hasItem:async e=>!(typeof await w(n(e),t)>\"u\"),getItem:async e=>await w(n(e),t)??null,setItem:(e,r)=>(function(e,t,r=v()){return r(\"readwrite\",r=>(r.put(t,e),y(r.transaction)))})(n(e),r,t),removeItem:e=>(function(e,t=v()){return t(\"readwrite\",t=>(t.delete(e),y(t.transaction)))})(n(e),t),getKeys:()=>(function(e=v()){return e(\"readonly\",e=>{var t;if(e.getAllKeys)return y(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},y(e.transaction)).then(()=>r)})})(t),clear:()=>(function(e=v()){return e(\"readwrite\",e=>(e.clear(),y(e.transaction)))})(t)}};class S{constructor(){this.indexedDb=function(e={}){let t={mounts:{\"\":e.driver||p()},mountpoints:[\"\"],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:\"\",relativeKey:e,driver:t.mounts[\"\"]}},n=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),i=(e,r)=>{if(t.watching)for(let n of(r=h(r),t.watchListeners))n(e,r)},s=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await g(t.mounts[e],i,e)},o=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},y=(e,t,n)=>{let i=new Map,s=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(let n of e){let e=\"string\"==typeof n,i=h(e?n:n.key),o=e?void 0:n.value,a=e||!n.options?t:{...t,...n.options},l=r(i);s(l).items.push({key:i,value:o,relativeKey:l.relativeKey,options:a})}return Promise.all([...i.values()].map(e=>n(e))).then(e=>e.flat())},b={hasItem(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return u(i.hasItem,n,t)},getItem(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return u(i.getItem,n,t).then(e=>(0,a.ZP)(e))},getItems:(e,t)=>y(e,t,e=>e.driver.getItems?u(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return h(e.join(\":\"))}(e.base,t.key),value:(0,a.ZP)(t.value)}))):Promise.all(e.items.map(t=>u(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:(0,a.ZP)(e)}))))),getItemRaw(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return i.getItemRaw?u(i.getItemRaw,n,t):u(i.getItem,n,t).then(e=>\"string\"==typeof e&&e.startsWith(d)?l.from(e.slice(d.length),\"base64\"):e)},async setItem(e,t,n={}){if(void 0===t)return b.removeItem(e);let{relativeKey:s,driver:o}=r(e=h(e));o.setItem&&(await u(o.setItem,s,c(t),n),o.watch||i(\"update\",e))},async setItems(e,t){await y(e,t,async e=>{if(e.driver.setItems)return u(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:c(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>u(e.driver.setItem,t.relativeKey,c(t.value),t.options)))})},async setItemRaw(e,t,n={}){if(void 0===t)return b.removeItem(e,n);let{relativeKey:s,driver:o}=r(e=h(e));if(o.setItemRaw)await u(o.setItemRaw,s,t,n);else{if(!o.setItem)return;await u(o.setItem,s,\"string\"==typeof t?t:d+l.from(t).toString(\"base64\"),n)}o.watch||i(\"update\",e)},async removeItem(e,t={}){\"boolean\"==typeof t&&(t={removeMeta:t});let{relativeKey:n,driver:s}=r(e=h(e));s.removeItem&&(await u(s.removeItem,n,t),(t.removeMeta||t.removeMata)&&await u(s.removeItem,n+\"$\",t),s.watch||i(\"remove\",e))},async getMeta(e,t={}){\"boolean\"==typeof t&&(t={nativeOnly:t});let{relativeKey:n,driver:i}=r(e=h(e)),s=Object.create(null);if(i.getMeta&&Object.assign(s,await u(i.getMeta,n,t)),!t.nativeOnly){let e=await u(i.getItem,n+\"$\",t).then(e=>(0,a.ZP)(e));e&&\"object\"==typeof e&&(\"string\"==typeof e.atime&&(e.atime=new Date(e.atime)),\"string\"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(s,e))}return s},setMeta(e,t,r={}){return this.setItem(e+\"$\",t,r)},removeMeta(e,t={}){return this.removeItem(e+\"$\",t)},async getKeys(e,t={}){let r=n(e=f(e),!0),i=[],s=[];for(let e of r){let r=(await u(e.driver.getKeys,e.relativeBase,t)).map(t=>e.mountpoint+h(t)).filter(e=>!i.some(t=>e.startsWith(t)));s.push(...r),i=[e.mountpoint,...i.filter(t=>!t.startsWith(e.mountpoint))]}return e?s.filter(t=>t.startsWith(e)&&!t.endsWith(\"$\")):s.filter(e=>!e.endsWith(\"$\"))},async clear(e,t={}){e=f(e),await Promise.all(n(e,!1).map(async e=>e.driver.clear?u(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||\"\",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>m(e)))},watch:async e=>(await s(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await o()}),async unwatch(){t.watchListeners=[],await o()},mount(e,r){if((e=f(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(g(r,i,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),b},async unmount(e,r=!0){(e=f(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await m(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=\"\"){let t=r(e=h(e)+\":\");return{driver:t.driver,base:t.base}},getMounts:(e=\"\",t={})=>n(e=h(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))};return b}({driver:k({dbName:\"WALLET_CONNECT_V2_INDEXED_DB\",storeName:\"keyvaluestorage\"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,x(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var $=\"u\">typeof globalThis?globalThis:\"u\">typeof window?window:\"u\">typeof r.g?r.g:\"u\">typeof self?self:{},C={exports:{}};function P(e){var t;return[e[0],A(null!=(t=e[1])?t:\"\")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__(\"length\",function(){return Object.keys(this).length}),\"u\">typeof $&&$.localStorage?C.exports=$.localStorage:\"u\">typeof window&&window.localStorage?C.exports=window.localStorage:C.exports=new e}();class I{constructor(){this.localStorage=C.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(P)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return A(t)}async setItem(e,t){this.localStorage.setItem(e,x(t))}async removeItem(e){this.localStorage.removeItem(e)}}let O=async(e,t,r)=>{let n=\"wc_storage_version\",i=await t.getItem(n);if(i&&i>=1){r(t);return}let s=await e.getKeys();if(!s.length){r(t);return}let o=[];for(;s.length;){let r=s.shift();if(!r)continue;let n=r.toLowerCase();if(n.includes(\"wc@\")||n.includes(\"walletconnect\")||n.includes(\"wc_\")||n.includes(\"wallet_connect\")){let n=await e.getItem(r);await t.setItem(r,n),o.push(r)}}await t.setItem(n,1),r(t),N(e,o)},N=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class M{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new I;this.storage=e;try{let t=new S;O(e,t,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}}var R=r(54574);class T{}class D extends T{constructor(e){super()}}let L=R.FIVE_SECONDS,j=\"heartbeat_pulse\";class B extends D{constructor(e){super(e),this.events=new i.EventEmitter,this.interval=L,this.interval=e?.interval||L}static async init(e){let t=new B(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,R.toMiliseconds)(this.interval))}pulse(){this.events.emit(j)}}var F=r(78227),U=r.n(F);let z={level:\"info\"},q=\"custom_context\";class H{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class G{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new H(e);if(t.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=t):this.head=t,this.tail=t,this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let t=e.value;return e=e.next,{done:!1,value:t}}}}}class V{constructor(e,t=1024e3){this.level=e??\"error\",this.levelValue=F.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new G(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===F.levels.values.error?console.error(e):t===F.levels.values.warn?console.warn(e):t===F.levels.values.debug?console.debug(e):t===F.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(x({timestamp:new Date().toISOString(),log:e}));let t=\"string\"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new G(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push(x({extraMetadata:e})),new Blob(t,{type:\"application/json\"})}}class W{constructor(e,t=1024e3){this.baseChunkLogger=new V(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement(\"a\");r.href=t,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class K{constructor(e,t=1024e3){this.baseChunkLogger=new V(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var Y=Object.defineProperty,Z=Object.defineProperties,J=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,et=(e,t,r)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,er=(e,t)=>{for(var r in t||(t={}))X.call(t,r)&&et(e,r,t[r]);if(Q)for(var r of Q(t))ee.call(t,r)&&et(e,r,t[r]);return e},en=(e,t)=>Z(e,J(t));function ei(e){return en(er({},e),{level:e?.level||z.level})}function es(e,t=q){return typeof e.bindings>\"u\"?function(e,t=q){return e[t]||\"\"}(e,t):e.bindings().context||\"\"}function eo(e,t,r=q){let n=function(e,t,r=q){let n=es(e,r);return n.trim()?`${n}/${t}`:t}(e,t,r);return function(e,t,r=q){return e[r]=t,e}(e.child({context:n}),n,r)}class ea extends T{constructor(e){super(),this.opts=e,this.protocol=\"wc\",this.version=2}}class el extends T{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class eu{constructor(e,t){this.logger=e,this.core=t}}class ec extends T{constructor(e,t){super(),this.relayer=e,this.logger=t}}class ed extends T{constructor(e){super()}}class eh{constructor(e,t,r,n){this.core=e,this.logger=t,this.name=r}}class ef extends T{constructor(e,t){super(),this.relayer=e,this.logger=t}}class ep extends T{constructor(e,t){super(),this.core=e,this.logger=t}}class eg{constructor(e,t){this.projectId=e,this.logger=t}}class em{constructor(e,t){this.projectId=e,this.logger=t}}class ey{constructor(e){this.opts=e,this.protocol=\"wc\",this.version=2}}class eb{constructor(e){this.client=e}}var ev=r(59271),ew=r(24861);let e_=\"base64url\",eE=\"base58btc\";var eA=r(69717),ex=r(3767),ek=r(55522);function eS(e){return(0,ex.B)((0,ek.m)(x(e),\"utf8\"),e_)}function e$(e){let t=(0,ek.m)(\"K36\",eE);return[\"did\",\"key\",\"z\"+(0,ex.B)((0,eA.z)([t,e]),eE)].join(\":\")}function eC(e=(0,ew.randomBytes)(32)){return ev._w(e)}async function eP(e,t,r,n,i=(0,R.fromMiliseconds)(Date.now())){var s,o,a;let l={alg:\"EdDSA\",typ:\"JWT\"},u={iss:e$(n.publicKey),sub:e,aud:t,iat:i,exp:i+r},c=(s={header:l,payload:u},(0,ek.m)([eS(s.header),eS(s.payload)].join(\".\"),\"utf8\"));return[eS((o={header:l,payload:u,signature:ev.Xx(n.secretKey,c)}).header),eS(o.payload),(a=o.signature,(0,ex.B)(a,e_))].join(\".\")}r(77726);var eI=r(39613);let eO=\"INTERNAL_ERROR\",eN=\"SERVER_ERROR\",eM=[-32700,-32600,-32601,-32602,-32603],eR={PARSE_ERROR:{code:-32700,message:\"Parse error\"},INVALID_REQUEST:{code:-32600,message:\"Invalid Request\"},METHOD_NOT_FOUND:{code:-32601,message:\"Method not found\"},INVALID_PARAMS:{code:-32602,message:\"Invalid params\"},[eO]:{code:-32603,message:\"Internal error\"},[eN]:{code:-32e3,message:\"Server error\"}};function eT(e){return Object.keys(eR).includes(e)?eR[e]:eR[eN]}function eD(e,t,r){return e.message.includes(\"getaddrinfo ENOTFOUND\")||e.message.includes(\"connect ECONNREFUSED\")?Error(`Unavailable ${r} RPC url at ${t}`):e}var eL=r(60092);function ej(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function eB(e=6){return BigInt(ej(e))}function eF(e,t,r){return{id:r||ej(),jsonrpc:\"2.0\",method:e,params:t}}function eU(e,t){return{id:e,jsonrpc:\"2.0\",result:t}}function ez(e,t,r){var n,i,s;return{id:e,jsonrpc:\"2.0\",error:void 0===(n=t)?eT(eO):(\"string\"==typeof n&&(n=Object.assign(Object.assign({},eT(eN)),{message:n})),void 0!==r&&(n.data=r),i=n.code,eM.includes(i)&&(s=n.code,n=Object.values(eR).find(e=>e.code===s)||eR[eN]),n)}}class eq{}class eH extends eq{constructor(){super()}}class eG extends eH{constructor(e){super()}}function eV(e,t){let r=function(e){let t=e.match(RegExp(/^\\w+:/,\"gi\"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function eW(e){return eV(e,\"^https?:\")}function eK(e){return eV(e,\"^wss?:\")}function eY(e){return\"object\"==typeof e&&\"id\"in e&&\"jsonrpc\"in e&&\"2.0\"===e.jsonrpc}function eZ(e){return eY(e)&&\"method\"in e}function eJ(e){return eY(e)&&(eQ(e)||eX(e))}function eQ(e){return\"result\"in e}function eX(e){return\"error\"in e}class e0 extends eG{constructor(e){super(e),this.events=new i.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(eF(e.method,e.params||[],e.id||eB().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{eX(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit(\"payload\",e),eJ(e)?this.events.emit(`${e.id}`,e):this.events.emit(\"message\",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit(\"error\",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:\"\"}`)),this.events.emit(\"disconnect\")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),\"string\"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit(\"connect\"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on(\"payload\",e=>this.onPayload(e)),this.connection.on(\"close\",e=>this.onClose(e)),this.connection.on(\"error\",e=>this.events.emit(\"error\",e)),this.connection.on(\"register_error\",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}let e1=()=>\"u\">typeof WebSocket||\"u\">typeof r.g&&\"u\">typeof r.g.WebSocket||\"u\">typeof window&&\"u\">typeof window.WebSocket||\"u\">typeof self&&\"u\">typeof self.WebSocket,e2=e=>e.split(\"?\")[0],e3=\"u\">typeof WebSocket?WebSocket:\"u\">typeof r.g&&\"u\">typeof r.g.WebSocket?r.g.WebSocket:\"u\">typeof window&&\"u\">typeof window.WebSocket?window.WebSocket:\"u\">typeof self&&\"u\">typeof self.WebSocket?self.WebSocket:r(27185);class e5{constructor(e){if(this.url=e,this.events=new i.EventEmitter,this.registering=!1,!eK(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return\"u\">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>\"u\"){t(Error(\"Connection already closed\"));return}this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>\"u\"&&(this.socket=await this.register());try{this.socket.send(x(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!eK(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount(\"register_error\")>=e||this.events.listenerCount(\"open\")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once(\"register_error\",e=>{this.resetMaxListeners(),t(e)}),this.events.once(\"open\",()=>{if(this.resetMaxListeners(),typeof this.socket>\"u\")return t(Error(\"WebSocket connection is missing or invalid\"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,r)=>{let n=new URLSearchParams(e).get(\"origin\"),i=(0,eL.isReactNative)()?{headers:{origin:n}}:{rejectUnauthorized:!RegExp(\"wss?://localhost(:d{2,5})?\").test(e)},s=new e3(e,[],i);e1()?s.onerror=e=>{r(this.emitError(e.error))}:s.on(\"error\",e=>{r(this.emitError(e))}),s.onopen=()=>{this.onOpen(s),t(s)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit(\"open\")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit(\"close\",e)}onPayload(e){if(typeof e.data>\"u\")return;let t=\"string\"==typeof e.data?A(e.data):e.data;this.events.emit(\"payload\",t)}onError(e,t){let r=this.parseError(t),n=ez(e,r.message||r.toString());this.events.emit(\"payload\",n)}parseError(e,t=this.url){return eD(e,e2(t),\"WS\")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${e2(this.url)}`));return this.events.emit(\"register_error\",t),t}}var e6=r(8355),e4=r.n(e6),e8=r(37185),e9=r.n(e8),e7=r(25566),te=function(e,t){if(e.length>=255)throw TypeError(\"Alphabet too long\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var s=e.charAt(i),o=s.charCodeAt(0);if(255!==r[o])throw TypeError(s+\" is ambiguous\");r[o]=i}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function d(e){if(\"string\"!=typeof e)throw TypeError(\"Expected String\");if(0===e.length)return new Uint8Array;var t=0;if(\" \"!==e[0]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var s=(e.length-t)*u+1>>>0,o=new Uint8Array(s);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var d=0,h=s-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*o[h]>>>0,o[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error(\"Non-zero carry\");i=d,t++}if(\" \"!==e[t]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),g=n;f!==s;)p[g++]=o[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError(\"Expected Uint8Array\");if(0===t.length)return\"\";for(var r=0,n=0,i=0,s=t.length;i!==s&&0===t[i];)i++,r++;for(var o=(s-i)*c+1>>>0,u=new Uint8Array(o);i!==s;){for(var d=t[i],h=0,f=o-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*u[f]>>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error(\"Non-zero carry\");n=h,i++}for(var p=o-n;p!==o&&0===u[p];)p++;for(var g=l.repeat(r);p<o;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};let tt=e=>{if(e instanceof Uint8Array&&\"Uint8Array\"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error(\"Unknown type, must be binary type\")},tr=e=>new TextEncoder().encode(e),tn=e=>new TextDecoder().decode(e);class ti{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\"Unknown type, must be binary type\")}}class ts{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error(\"Invalid prefix character\");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if(\"string\"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error(\"Can only multibase decode strings\")}or(e){return ta(this,e)}}class to{constructor(e){this.decoders=e}or(e){return ta(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let ta=(e,t)=>new to({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class tl{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new ti(e,t,r),this.decoder=new ts(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let tu=({name:e,prefix:t,encode:r,decode:n})=>new tl(e,t,r,n),tc=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=te(r,t);return tu({prefix:e,name:t,encode:n,decode:e=>tt(i(e))})},td=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let s=e.length;for(;\"=\"===e[s-1];)--s;let o=new Uint8Array(s*r/8|0),a=0,l=0,u=0;for(let t=0;t<s;++t){let s=i[e[t]];if(void 0===s)throw SyntaxError(`Non-${n} character`);l=l<<r|s,(a+=r)>=8&&(a-=8,o[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw SyntaxError(\"Unexpected end of data\");return o},th=(e,t,r)=>{let n=\"=\"===t[t.length-1],i=(1<<r)-1,s=\"\",o=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],o+=8;o>r;)o-=r,s+=t[i&a>>o];if(o&&(s+=t[i&a<<r-o]),n)for(;s.length*r&7;)s+=\"=\";return s},tf=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>tu({prefix:t,name:e,encode:e=>th(e,n,r),decode:t=>td(t,n,r,e)});var tp=Object.freeze({__proto__:null,identity:tu({prefix:\"\\0\",name:\"identity\",encode:e=>tn(e),decode:e=>tr(e)})}),tg=Object.freeze({__proto__:null,base2:tf({prefix:\"0\",name:\"base2\",alphabet:\"01\",bitsPerChar:1})}),tm=Object.freeze({__proto__:null,base8:tf({prefix:\"7\",name:\"base8\",alphabet:\"01234567\",bitsPerChar:3})}),ty=Object.freeze({__proto__:null,base10:tc({prefix:\"9\",name:\"base10\",alphabet:\"0123456789\"})}),tb=Object.freeze({__proto__:null,base16:tf({prefix:\"f\",name:\"base16\",alphabet:\"0123456789abcdef\",bitsPerChar:4}),base16upper:tf({prefix:\"F\",name:\"base16upper\",alphabet:\"0123456789ABCDEF\",bitsPerChar:4})});let tv=tf({prefix:\"b\",name:\"base32\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567\",bitsPerChar:5}),tw=tf({prefix:\"B\",name:\"base32upper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\",bitsPerChar:5}),t_=tf({prefix:\"c\",name:\"base32pad\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567=\",bitsPerChar:5}),tE=tf({prefix:\"C\",name:\"base32padupper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\",bitsPerChar:5}),tA=tf({prefix:\"v\",name:\"base32hex\",alphabet:\"0123456789abcdefghijklmnopqrstuv\",bitsPerChar:5}),tx=tf({prefix:\"V\",name:\"base32hexupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV\",bitsPerChar:5});var tk=Object.freeze({__proto__:null,base32:tv,base32upper:tw,base32pad:t_,base32padupper:tE,base32hex:tA,base32hexupper:tx,base32hexpad:tf({prefix:\"t\",name:\"base32hexpad\",alphabet:\"0123456789abcdefghijklmnopqrstuv=\",bitsPerChar:5}),base32hexpadupper:tf({prefix:\"T\",name:\"base32hexpadupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\",bitsPerChar:5}),base32z:tf({prefix:\"h\",name:\"base32z\",alphabet:\"ybndrfg8ejkmcpqxot1uwisza345h769\",bitsPerChar:5})}),tS=Object.freeze({__proto__:null,base36:tc({prefix:\"k\",name:\"base36\",alphabet:\"0123456789abcdefghijklmnopqrstuvwxyz\"}),base36upper:tc({prefix:\"K\",name:\"base36upper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"})}),t$=Object.freeze({__proto__:null,base58btc:tc({name:\"base58btc\",prefix:\"z\",alphabet:\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"}),base58flickr:tc({name:\"base58flickr\",prefix:\"Z\",alphabet:\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\"})});let tC=tf({prefix:\"m\",name:\"base64\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",bitsPerChar:6});var tP=Object.freeze({__proto__:null,base64:tC,base64pad:tf({prefix:\"M\",name:\"base64pad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",bitsPerChar:6}),base64url:tf({prefix:\"u\",name:\"base64url\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\",bitsPerChar:6}),base64urlpad:tf({prefix:\"U\",name:\"base64urlpad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\",bitsPerChar:6})});let tI=Array.from(\"\\uD83D\\uDE80\\uD83E\\uDE90☄\\uD83D\\uDEF0\\uD83C\\uDF0C\\uD83C\\uDF11\\uD83C\\uDF12\\uD83C\\uDF13\\uD83C\\uDF14\\uD83C\\uDF15\\uD83C\\uDF16\\uD83C\\uDF17\\uD83C\\uDF18\\uD83C\\uDF0D\\uD83C\\uDF0F\\uD83C\\uDF0E\\uD83D\\uDC09☀\\uD83D\\uDCBB\\uD83D\\uDDA5\\uD83D\\uDCBE\\uD83D\\uDCBF\\uD83D\\uDE02❤\\uD83D\\uDE0D\\uD83E\\uDD23\\uD83D\\uDE0A\\uD83D\\uDE4F\\uD83D\\uDC95\\uD83D\\uDE2D\\uD83D\\uDE18\\uD83D\\uDC4D\\uD83D\\uDE05\\uD83D\\uDC4F\\uD83D\\uDE01\\uD83D\\uDD25\\uD83E\\uDD70\\uD83D\\uDC94\\uD83D\\uDC96\\uD83D\\uDC99\\uD83D\\uDE22\\uD83E\\uDD14\\uD83D\\uDE06\\uD83D\\uDE44\\uD83D\\uDCAA\\uD83D\\uDE09☺\\uD83D\\uDC4C\\uD83E\\uDD17\\uD83D\\uDC9C\\uD83D\\uDE14\\uD83D\\uDE0E\\uD83D\\uDE07\\uD83C\\uDF39\\uD83E\\uDD26\\uD83C\\uDF89\\uD83D\\uDC9E✌✨\\uD83E\\uDD37\\uD83D\\uDE31\\uD83D\\uDE0C\\uD83C\\uDF38\\uD83D\\uDE4C\\uD83D\\uDE0B\\uD83D\\uDC97\\uD83D\\uDC9A\\uD83D\\uDE0F\\uD83D\\uDC9B\\uD83D\\uDE42\\uD83D\\uDC93\\uD83E\\uDD29\\uD83D\\uDE04\\uD83D\\uDE00\\uD83D\\uDDA4\\uD83D\\uDE03\\uD83D\\uDCAF\\uD83D\\uDE48\\uD83D\\uDC47\\uD83C\\uDFB6\\uD83D\\uDE12\\uD83E\\uDD2D❣\\uD83D\\uDE1C\\uD83D\\uDC8B\\uD83D\\uDC40\\uD83D\\uDE2A\\uD83D\\uDE11\\uD83D\\uDCA5\\uD83D\\uDE4B\\uD83D\\uDE1E\\uD83D\\uDE29\\uD83D\\uDE21\\uD83E\\uDD2A\\uD83D\\uDC4A\\uD83E\\uDD73\\uD83D\\uDE25\\uD83E\\uDD24\\uD83D\\uDC49\\uD83D\\uDC83\\uD83D\\uDE33✋\\uD83D\\uDE1A\\uD83D\\uDE1D\\uD83D\\uDE34\\uD83C\\uDF1F\\uD83D\\uDE2C\\uD83D\\uDE43\\uD83C\\uDF40\\uD83C\\uDF37\\uD83D\\uDE3B\\uD83D\\uDE13⭐✅\\uD83E\\uDD7A\\uD83C\\uDF08\\uD83D\\uDE08\\uD83E\\uDD18\\uD83D\\uDCA6✔\\uD83D\\uDE23\\uD83C\\uDFC3\\uD83D\\uDC90☹\\uD83C\\uDF8A\\uD83D\\uDC98\\uD83D\\uDE20☝\\uD83D\\uDE15\\uD83C\\uDF3A\\uD83C\\uDF82\\uD83C\\uDF3B\\uD83D\\uDE10\\uD83D\\uDD95\\uD83D\\uDC9D\\uD83D\\uDE4A\\uD83D\\uDE39\\uD83D\\uDDE3\\uD83D\\uDCAB\\uD83D\\uDC80\\uD83D\\uDC51\\uD83C\\uDFB5\\uD83E\\uDD1E\\uD83D\\uDE1B\\uD83D\\uDD34\\uD83D\\uDE24\\uD83C\\uDF3C\\uD83D\\uDE2B⚽\\uD83E\\uDD19☕\\uD83C\\uDFC6\\uD83E\\uDD2B\\uD83D\\uDC48\\uD83D\\uDE2E\\uD83D\\uDE46\\uD83C\\uDF7B\\uD83C\\uDF43\\uD83D\\uDC36\\uD83D\\uDC81\\uD83D\\uDE32\\uD83C\\uDF3F\\uD83E\\uDDE1\\uD83C\\uDF81⚡\\uD83C\\uDF1E\\uD83C\\uDF88❌✊\\uD83D\\uDC4B\\uD83D\\uDE30\\uD83E\\uDD28\\uD83D\\uDE36\\uD83E\\uDD1D\\uD83D\\uDEB6\\uD83D\\uDCB0\\uD83C\\uDF53\\uD83D\\uDCA2\\uD83E\\uDD1F\\uD83D\\uDE41\\uD83D\\uDEA8\\uD83D\\uDCA8\\uD83E\\uDD2C✈\\uD83C\\uDF80\\uD83C\\uDF7A\\uD83E\\uDD13\\uD83D\\uDE19\\uD83D\\uDC9F\\uD83C\\uDF31\\uD83D\\uDE16\\uD83D\\uDC76\\uD83E\\uDD74▶➡❓\\uD83D\\uDC8E\\uD83D\\uDCB8⬇\\uD83D\\uDE28\\uD83C\\uDF1A\\uD83E\\uDD8B\\uD83D\\uDE37\\uD83D\\uDD7A⚠\\uD83D\\uDE45\\uD83D\\uDE1F\\uD83D\\uDE35\\uD83D\\uDC4E\\uD83E\\uDD32\\uD83E\\uDD20\\uD83E\\uDD27\\uD83D\\uDCCC\\uD83D\\uDD35\\uD83D\\uDC85\\uD83E\\uDDD0\\uD83D\\uDC3E\\uD83C\\uDF52\\uD83D\\uDE17\\uD83E\\uDD11\\uD83C\\uDF0A\\uD83E\\uDD2F\\uD83D\\uDC37☎\\uD83D\\uDCA7\\uD83D\\uDE2F\\uD83D\\uDC86\\uD83D\\uDC46\\uD83C\\uDFA4\\uD83D\\uDE47\\uD83C\\uDF51❄\\uD83C\\uDF34\\uD83D\\uDCA3\\uD83D\\uDC38\\uD83D\\uDC8C\\uD83D\\uDCCD\\uD83E\\uDD40\\uD83E\\uDD22\\uD83D\\uDC45\\uD83D\\uDCA1\\uD83D\\uDCA9\\uD83D\\uDC50\\uD83D\\uDCF8\\uD83D\\uDC7B\\uD83E\\uDD10\\uD83E\\uDD2E\\uD83C\\uDFBC\\uD83E\\uDD75\\uD83D\\uDEA9\\uD83C\\uDF4E\\uD83C\\uDF4A\\uD83D\\uDC7C\\uD83D\\uDC8D\\uD83D\\uDCE3\\uD83E\\uDD42\"),tO=tI.reduce((e,t,r)=>(e[r]=t,e),[]),tN=tI.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var tM=Object.freeze({__proto__:null,base256emoji:tu({prefix:\"\\uD83D\\uDE80\",name:\"base256emoji\",encode:function(e){return e.reduce((e,t)=>e+=tO[t],\"\")},decode:function(e){let t=[];for(let r of e){let e=tN[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}})});function tR(e,t){var r,n=0,t=t||0,i=0,s=t,o=e.length;do{if(s>=o)throw tR.bytes=0,RangeError(\"Could not decode varint\");r=e[s++],n+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128);return tR.bytes=s-t,n}var tT=function e(t,r,n){r=r||[],n=n||0;for(var i=n;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r};let tD=(e,t,r=0)=>(tT(e,t,r),t),tL=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,tj=(e,t)=>{let r=t.byteLength,n=tL(e),i=n+tL(r),s=new Uint8Array(i+r);return tD(e,s,0),tD(r,s,n),s.set(t,i),new tB(e,r,t,s)};class tB{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let tF=({name:e,code:t,encode:r})=>new tU(e,t,r);class tU{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tj(this.code,t):t.then(e=>tj(this.code,e))}throw Error(\"Unknown type, must be binary type\")}}let tz=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var tq=Object.freeze({__proto__:null,sha256:tF({name:\"sha2-256\",code:18,encode:tz(\"SHA-256\")}),sha512:tF({name:\"sha2-512\",code:19,encode:tz(\"SHA-512\")})}),tH=Object.freeze({__proto__:null,identity:{code:0,name:\"identity\",encode:tt,digest:e=>tj(0,tt(e))}});new TextEncoder,new TextDecoder;let tG={...tp,...tg,...tm,...ty,...tb,...tk,...tS,...t$,...tP,...tM};function tV(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...tq,...tH});let tW=tV(\"utf8\",\"u\",e=>\"u\"+new TextDecoder(\"utf8\").decode(e),e=>new TextEncoder().encode(e.substring(1))),tK=tV(\"ascii\",\"a\",e=>{let t=\"a\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),tY={utf8:tW,\"utf-8\":tW,hex:tG.base16,latin1:tK,ascii:tK,binary:tK,...tG},tZ=\"core\",tJ=`wc@2:${tZ}:`,tQ={logger:\"error\"},tX={database:\":memory:\"},t0=\"client_ed25519_seed\",t1=R.ONE_DAY,t2=R.SIX_HOURS,t3=\"wss://relay.walletconnect.org\",t5={message:\"relayer_message\",message_ack:\"relayer_message_ack\",connect:\"relayer_connect\",disconnect:\"relayer_disconnect\",error:\"relayer_error\",connection_stalled:\"relayer_connection_stalled\",publish:\"relayer_publish\"},t6={payload:\"payload\",connect:\"connect\",disconnect:\"disconnect\",error:\"error\"},t4={created:\"subscription_created\",deleted:\"subscription_deleted\",sync:\"subscription_sync\",resubscribed:\"subscription_resubscribed\"},t8=1e3*R.FIVE_SECONDS,t9={wc_pairingDelete:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:R.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:R.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:R.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:R.ONE_DAY,prompt:!1,tag:0},res:{ttl:R.ONE_DAY,prompt:!1,tag:0}}},t7={create:\"pairing_create\",expire:\"pairing_expire\",delete:\"pairing_delete\",ping:\"pairing_ping\"},re={created:\"history_created\",updated:\"history_updated\",deleted:\"history_deleted\",sync:\"history_sync\"},rt={created:\"expirer_created\",deleted:\"expirer_deleted\",expired:\"expirer_expired\",sync:\"expirer_sync\"},rr=\"verify-api\",rn=\"https://verify.walletconnect.org\",ri=[\"https://verify.walletconnect.com\",rn];class rs{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name=\"keychain\",this.version=\"0.3\",this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{if(!this.initialized){let e=await this.getKeyChain();\"u\">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();let t=this.keychain.get(e);if(typeof t>\"u\"){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=eo(t,this.name)}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,o.KCv)(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return\"u\">typeof e?(0,o.IPd)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class ro{constructor(e,t,r){this.core=e,this.logger=t,this.name=\"crypto\",this.randomSessionIdentifier=(0,o.jdp)(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>(this.isInitialized(),e$(eC(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();let e=(0,o.Au2)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let t=eC(await this.getClientSeed()),r=this.randomSessionIdentifier;return await eP(r,e,t1,t)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();let n=this.getPrivateKey(e),i=(0,o.m$A)(n,t);return this.setSymKey(i,r)},this.setSymKey=async(e,t)=>{this.isInitialized();let r=t||(0,o.YmJ)(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();let n=(0,o.ENt)(r),i=x(t);if((0,o.Q8x)(n)){let t=n.senderPublicKey,r=n.receiverPublicKey;e=await this.generateSharedKey(t,r)}let s=this.getSymKey(e),{type:a,senderPublicKey:l}=n;return(0,o.HIp)({type:a,symKey:s,message:i,senderPublicKey:l})},this.decode=async(e,t,r)=>{this.isInitialized();let n=(0,o.Llj)(t,r);if((0,o.Q8x)(n)){let t=n.receiverPublicKey,r=n.senderPublicKey;e=await this.generateSharedKey(t,r)}try{let r=this.getSymKey(e),n=(0,o.peR)({symKey:r,encoded:t});return A(n)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=e=>{let t=(0,o.vBi)(e);return(0,o.WGe)(t.type)},this.getPayloadSenderPublicKey=e=>{let t=(0,o.vBi)(e);return t.senderPublicKey?(0,eI.BB)(t.senderPublicKey,o.AWt):void 0},this.core=e,this.logger=eo(t,this.name),this.keychain=r||new rs(this.core,this.logger)}get context(){return es(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e=\"\";try{e=this.keychain.get(t0)}catch{e=(0,o.jdp)(),await this.keychain.set(t0,e)}return function(e,t=\"utf8\"){let r=tY[t];if(!r)throw Error(`Unsupported encoding \"${t}\"`);return(\"utf8\"===t||\"utf-8\"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,\"utf8\"):r.decoder.decode(`${r.prefix}${e}`)}(e,\"base16\")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class ra extends eu{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=\"messages\",this.version=\"0.3\",this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{if(!this.initialized){this.logger.trace(\"Initialized\");try{let e=await this.getRelayerMessages();\"u\">typeof e&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();let r=(0,o.rjm)(t),n=this.messages.get(e);return typeof n>\"u\"&&(n={}),\"u\">typeof n[r]||(n[r]=t,this.messages.set(e,n),await this.persist()),r},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>\"u\"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),\"u\">typeof this.get(e)[(0,o.rjm)(t)]),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=eo(e,this.name),this.core=t}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,o.KCv)(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return\"u\">typeof e?(0,o.IPd)(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rl extends ec{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new i.EventEmitter,this.name=\"publisher\",this.queue=new Map,this.publishTimeout=(0,R.toMiliseconds)(R.ONE_MINUTE),this.failedPublishTimeout=(0,R.toMiliseconds)(R.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{var n;this.logger.debug(\"Publishing Payload\"),this.logger.trace({type:\"method\",method:\"publish\",params:{topic:e,message:t,opts:r}});let i=r?.ttl||t2,s=(0,o._HE)(r),a=r?.prompt||!1,l=r?.tag||0,u=r?.id||eB().toString(),c={topic:e,message:t,opts:{ttl:i,relay:s,prompt:a,tag:l,id:u}},d=`Failed to publish payload, please try again. id:${u} tag:${l}`,h=Date.now(),f,p=1;try{for(;void 0===f;){if(Date.now()-h>this.publishTimeout)throw Error(d);this.logger.trace({id:u,attempts:p},`publisher.publish - attempt ${p}`),f=await await (0,o.hFY)(this.rpcPublish(e,t,i,s,a,l,u).catch(e=>this.logger.warn(e)),this.publishTimeout,d),p++,f||await new Promise(e=>setTimeout(e,this.failedPublishTimeout))}this.relayer.events.emit(t5.publish,c),this.logger.debug(\"Successfully Published Payload\"),this.logger.trace({type:\"method\",method:\"publish\",params:{id:u,topic:e,message:t,opts:r}})}catch(e){if(this.logger.debug(\"Failed to Publish Payload\"),this.logger.error(e),null!=(n=r?.internal)&&n.throwOnFailedPublish)throw e;this.queue.set(u,c)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=eo(t,this.name),this.registerEventListeners()}get context(){return es(this.logger)}rpcPublish(e,t,r,n,i,s,a){var l,u,c,d;let h={method:(0,o.cOS)(n.protocol).publish,params:{topic:e,message:t,ttl:r,prompt:i,tag:s},id:a};return(0,o.o8e)(null==(l=h.params)?void 0:l.prompt)&&(null==(u=h.params)||delete u.prompt),(0,o.o8e)(null==(c=h.params)?void 0:c.tag)&&(null==(d=h.params)||delete d.tag),this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"message\",direction:\"outgoing\",request:h}),this.relayer.request(h)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:r,opts:n}=e;await this.publish(t,r,n)})}registerEventListeners(){this.relayer.core.heartbeat.on(j,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(t5.connection_stalled);return}this.checkQueue()}),this.relayer.on(t5.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class ru{constructor(){this.map=new Map,this.set=(e,t)=>{let r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>\"u\"){this.map.delete(e);return}if(!this.map.has(e))return;let r=this.get(e);if(!this.exists(e,t))return;let n=r.filter(e=>e!==t);if(!n.length){this.map.delete(e);return}this.map.set(e,n)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var rc=Object.defineProperty,rd=Object.defineProperties,rh=Object.getOwnPropertyDescriptors,rf=Object.getOwnPropertySymbols,rp=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable,rm=(e,t,r)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ry=(e,t)=>{for(var r in t||(t={}))rp.call(t,r)&&rm(e,r,t[r]);if(rf)for(var r of rf(t))rg.call(t,r)&&rm(e,r,t[r]);return e},rb=(e,t)=>rd(e,rh(t));class rv extends ef{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new ru,this.events=new i.EventEmitter,this.name=\"subscription\",this.version=\"0.3\",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel=\"pending_sub_watch_label\",this.pollingInterval=20,this.storagePrefix=tJ,this.subscribeTimeout=(0,R.toMiliseconds)(R.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug(\"Subscribing Topic\"),this.logger.trace({type:\"method\",method:\"subscribe\",params:{topic:e,opts:t}});try{let r=(0,o._HE)(t),n={topic:e,relay:r};this.pending.set(e,n);let i=await this.rpcSubscribe(e,r);return\"string\"==typeof i&&(this.onSubscribe(i,n),this.logger.debug(\"Successfully Subscribed Topic\"),this.logger.trace({type:\"method\",method:\"subscribe\",params:{topic:e,opts:t}})),i}catch(e){throw this.logger.debug(\"Failed to Subscribe Topic\"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),\"u\">typeof t?.id?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;let t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise((r,n)=>{let i=new R.Watch;i.start(t);let s=setInterval(()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(s),i.stop(t),r(!0)),i.elapsed(t)>=t8&&(clearInterval(s),i.stop(t),n(Error(\"Subscription resolution timeout\")))},this.pollingInterval)}).catch(()=>!1)},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=eo(t,this.name),this.clientId=\"\"}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+\"//\"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let r=this.topicMap.get(e);await Promise.all(r.map(async r=>await this.unsubscribeById(e,r,t)))}async unsubscribeById(e,t,r){this.logger.debug(\"Unsubscribing Topic\"),this.logger.trace({type:\"method\",method:\"unsubscribe\",params:{topic:e,id:t,opts:r}});try{let n=(0,o._HE)(r);await this.rpcUnsubscribe(e,t,n);let i=(0,o.D6H)(\"USER_DISCONNECTED\",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug(\"Successfully Unsubscribed Topic\"),this.logger.trace({type:\"method\",method:\"unsubscribe\",params:{topic:e,id:t,opts:r}})}catch(e){throw this.logger.debug(\"Failed to Unsubscribe Topic\"),this.logger.error(e),e}}async rpcSubscribe(e,t){let r={method:(0,o.cOS)(t.protocol).subscribe,params:{topic:e}};this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:r});try{return await await (0,o.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)?(0,o.rjm)(e+this.clientId):null}catch{this.logger.debug(\"Outgoing Relay Subscribe Payload stalled\"),this.relayer.events.emit(t5.connection_stalled)}return null}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,r={method:(0,o.cOS)(t.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:r});try{return await await (0,o.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(t5.connection_stalled)}}async rpcBatchFetchMessages(e){let t;if(!e.length)return;let r=e[0].relay,n={method:(0,o.cOS)(r.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:n});try{t=await await (0,o.hFY)(this.relayer.request(n).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(t5.connection_stalled)}return t}rpcUnsubscribe(e,t,r){let n={method:(0,o.cOS)(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:n}),this.relayer.request(n)}onSubscribe(e,t){this.setSubscription(e,rb(ry({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,ry({},e)),this.pending.delete(e.topic)})}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug(\"Setting subscription\"),this.logger.trace({type:\"method\",method:\"setSubscription\",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,ry({},t)),this.topicMap.set(t.topic,e),this.events.emit(t4.created,t)}getSubscription(e){this.logger.debug(\"Getting subscription\"),this.logger.trace({type:\"method\",method:\"getSubscription\",id:e});let t=this.subscriptions.get(e);if(!t){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw Error(t)}return t}deleteSubscription(e,t){this.logger.debug(\"Deleting subscription\"),this.logger.trace({type:\"method\",method:\"deleteSubscription\",id:e,reason:t});let r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(t4.deleted,rb(ry({},r),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(t4.sync)}async reset(){if(this.cached.length){let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t<e;t++){let e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(t4.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>\"u\"||!e.length)return;if(this.subscriptions.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);(0,o.qt8)(t)&&this.onBatchSubscribe(t.map((t,r)=>rb(ry({},e[r]),{id:t})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(j,async()=>{await this.checkPending()}),this.events.on(t4.created,async e=>{let t=t4.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),await this.persist()}),this.events.on(t4.deleted,async e=>{let t=t4.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}}var rw=Object.defineProperty,r_=Object.getOwnPropertySymbols,rE=Object.prototype.hasOwnProperty,rA=Object.prototype.propertyIsEnumerable,rx=(e,t,r)=>t in e?rw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rk=(e,t)=>{for(var r in t||(t={}))rE.call(t,r)&&rx(e,r,t[r]);if(r_)for(var r of r_(t))rA.call(t,r)&&rx(e,r,t[r]);return e};class rS extends ed{constructor(e){super(e),this.protocol=\"wc\",this.version=2,this.events=new i.EventEmitter,this.name=\"relayer\",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=[\"socket hang up\",\"stalled\",\"interrupted\"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,R.toMiliseconds)(R.THIRTY_SECONDS+R.ONE_SECOND),this.request=async e=>{var t,r;this.logger.debug(\"Publishing Request Payload\");let n=e.id||eB().toString();await this.toEstablishConnection();try{let i=this.provider.request(e);this.requestsInFlight.set(n,{promise:i,request:e}),this.logger.trace({id:n,method:e.method,topic:null==(t=e.params)?void 0:t.topic},\"relayer.request - attempt to publish...\");let s=await new Promise(async(e,t)=>{let r=()=>{t(Error(`relayer.request - publish interrupted, id: ${n}`))};this.provider.on(t6.disconnect,r);let s=await i;this.provider.off(t6.disconnect,r),e(s)});return this.logger.trace({id:n,method:e.method,topic:null==(r=e.params)?void 0:r.topic},\"relayer.request - published\"),s}catch(e){throw this.logger.debug(`Failed to Publish Request: ${n}`),e}finally{this.requestsInFlight.delete(n)}},this.resetPingTimeout=()=>{if((0,o.UGU)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var e,t,r;null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||r.terminate()},this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace(\"relayer connected\"),this.startPingTimeout(),this.events.emit(t5.connect)},this.onDisconnectHandler=()=>{this.logger.trace(\"relayer disconnected\"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(t5.error,e),this.logger.info(\"Fatal socket error received, closing transport\"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(t6.payload,this.onPayloadHandler),this.provider.on(t6.connect,this.onConnectHandler),this.provider.on(t6.disconnect,this.onDisconnectHandler),this.provider.on(t6.error,this.onProviderErrorHandler)},this.core=e.core,this.logger=\"u\">typeof e.logger&&\"string\"!=typeof e.logger?eo(e.logger,this.name):U()(ei({level:e.logger||\"error\"})),this.messages=new ra(this.logger,e.core),this.subscriber=new rv(this,this.logger),this.publisher=new rl(this,this.logger),this.relayUrl=e?.relayUrl||t3,this.projectId=e.projectId,this.bundleId=(0,o.X_B)(),this.provider={}}async init(){this.logger.trace(\"Initialized\"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),await this.transportOpen(),this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info(\"No topics subscribed to after init, closing transport\"),await this.transportClose(),this.transportExplicitlyClosed=!1)},1e4)}get context(){return es(this.logger)}get connected(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===1}get connecting(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===0}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){var r;this.isInitialized();let n=(null==(r=this.subscriber.topicMap.get(e))?void 0:r[0])||\"\",i,s=t=>{t.topic===e&&(this.subscriber.off(t4.created,s),i())};return await Promise.all([new Promise(e=>{i=e,this.subscriber.on(t4.created,s)}),new Promise(async r=>{n=await this.subscriber.subscribe(e,t)||n,r()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await (0,o.hFY)(this.provider.disconnect(),2e3,\"provider.disconnect()\").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(e,t)=>{let r=()=>{this.provider.off(t6.disconnect,r),t(Error(\"Connection interrupted while trying to subscribe\"))};this.provider.on(t6.disconnect,r),await (0,o.hFY)(this.provider.connect(),(0,R.toMiliseconds)(R.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(e=>{t(e)}),this.subscriber.start().catch(e=>{this.logger.error(e),this.onDisconnectHandler()}),this.hasExperiencedNetworkDisruption=!1,e()})}catch(e){if(this.logger.error(e),this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw e}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,o.Ggh)())throw Error(\"No internet connection detected. Please restart your network and try again.\")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace(\"Batch message events is empty. Ignoring...\");return}let t=e.sort((e,t)=>e.publishedAt-t.publishedAt);for(let e of(this.logger.trace(`Batch of ${t.length} message events sorted`),t))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${t.length} message events processed`)}startPingTimeout(){var e,t,r,n,i;if((0,o.UGU)())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(i=null==(n=null==(r=this.provider)?void 0:r.connection)?void 0:n.socket)||i.once(\"ping\",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some(t=>e.includes(t))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new e0(new e5((0,o.$0m)({sdkVersion:\"2.14.0\",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){let{topic:t,message:r}=e;await this.messages.set(t,r)}async shouldIgnoreMessageEvent(e){let{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;let n=this.messages.has(t,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(e){if(this.logger.debug(\"Incoming Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"incoming\",payload:e}),eZ(e)){if(!e.method.endsWith(\"_subscription\"))return;let t=e.params,{topic:r,message:n,publishedAt:i}=t.data,s={topic:r,message:n,publishedAt:i};this.logger.debug(\"Emitting Relayer Payload\"),this.logger.trace(rk({type:\"event\",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}else eJ(e)&&this.events.emit(t5.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(t5.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=eU(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(t6.payload,this.onPayloadHandler),this.provider.off(t6.connect,this.onConnectHandler),this.provider.off(t6.disconnect,this.onDisconnectHandler),this.provider.off(t6.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await (0,o.Ggh)();(0,o.uwg)(async t=>{e!==t&&(e=t,t?await this.restartTransport().catch(e=>this.logger.error(e)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(t5.disconnect),this.connectionAttemptInProgress=!1,this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,R.toMiliseconds)(.1))}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.connected&&(clearInterval(t),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var r$=Object.defineProperty,rC=Object.getOwnPropertySymbols,rP=Object.prototype.hasOwnProperty,rI=Object.prototype.propertyIsEnumerable,rO=(e,t,r)=>t in e?r$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rN=(e,t)=>{for(var r in t||(t={}))rP.call(t,r)&&rO(e,r,t[r]);if(rC)for(var r of rC(t))rI.call(t,r)&&rO(e,r,t[r]);return e};class rM extends eh{constructor(e,t,r,n=tJ,i){super(e,t,r,n),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version=\"0.3\",this.cached=[],this.initialized=!1,this.storagePrefix=tJ,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),await this.restore(),this.cached.forEach(e=>{this.getKey&&null!==e&&!(0,o.o8e)(e)?this.map.set(this.getKey(e),e):(0,o.xWS)(e)?this.map.set(e.id,e):(0,o.h1R)(e)&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug(\"Setting value\"),this.logger.trace({type:\"method\",method:\"set\",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug(\"Getting value\"),this.logger.trace({type:\"method\",method:\"get\",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(t=>Object.keys(e).every(r=>e4()(t[r],e[r]))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug(\"Updating value\"),this.logger.trace({type:\"method\",method:\"update\",key:e,update:t});let r=rN(rN({},this.getData(e)),t);this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug(\"Deleting value\"),this.logger.trace({type:\"method\",method:\"delete\",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=eo(t,this.name),this.storagePrefix=n,this.getKey=i}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),Error(t)}let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw this.logger.error(t),Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>\"u\"||!e.length)return;if(this.map.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rR{constructor(e,t){this.core=e,this.logger=t,this.name=\"pairing\",this.version=\"0.3\",this.events=new(s()),this.initialized=!1,this.storagePrefix=tJ,this.ignoredPayloadTypes=[o.rVF],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace(\"Initialized\"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();let t=(0,o.jdp)(),r=await this.core.crypto.setSymKey(t),n=(0,o.gn4)(R.FIVE_MINUTES),i={protocol:\"irn\"},s=(0,o.Bvr)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:i,expiryTimestamp:n,methods:e?.methods});return this.core.expirer.set(r,n),await this.pairings.set(r,{topic:r,expiry:n,relay:i,active:!1}),await this.core.relayer.subscribe(r),{topic:r,uri:s}},this.pair=async e=>{this.isInitialized(),this.isValidPair(e);let{topic:t,symKey:r,relay:n,expiryTimestamp:i,methods:s}=(0,o.heJ)(e.uri);if(this.pairings.keys.includes(t)&&this.pairings.get(t).active)throw Error(`Pairing already exists: ${t}. Please try again with a new connection URI.`);let a=i||(0,o.gn4)(R.FIVE_MINUTES),l={topic:t,relay:n,expiry:a,active:!1,methods:s};return this.core.expirer.set(t,a),await this.pairings.set(t,l),e.activatePairing&&await this.activate({topic:t}),this.events.emit(t7.create,l),this.core.crypto.keychain.has(t)||await this.core.crypto.setSymKey(r,t),await this.core.relayer.subscribe(t,{relay:n}),l},this.activate=async({topic:e})=>{this.isInitialized();let t=(0,o.gn4)(R.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);let{topic:t}=e;if(this.pairings.keys.includes(t)){let e=await this.sendRequest(t,\"wc_pairingPing\",{}),{done:r,resolve:n,reject:i}=(0,o.H1S)();this.events.once((0,o.E0T)(\"pairing_ping\",e),({error:e})=>{e?i(e):n()}),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,\"wc_pairingDelete\",(0,o.D6H)(\"USER_DISCONNECTED\")),await this.deletePairing(t))},this.sendRequest=async(e,t,r)=>{let n=eF(t,r),i=await this.core.crypto.encode(e,n),s=t9[t].req;return this.core.history.set(e,n),this.core.relayer.publish(e,i,s),n.id},this.sendResult=async(e,t,r)=>{let n=eU(e,r),i=await this.core.crypto.encode(t,n),s=t9[(await this.core.history.get(t,e)).request.method].res;await this.core.relayer.publish(t,i,s),await this.core.history.resolve(n)},this.sendError=async(e,t,r)=>{let n=ez(e,r),i=await this.core.crypto.encode(t,n),s=await this.core.history.get(t,e),o=t9[s.request.method]?t9[s.request.method].res:t9.unregistered_method.res;await this.core.relayer.publish(t,i,o),await this.core.history.resolve(n)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,o.D6H)(\"USER_DISCONNECTED\")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>(0,o.BwD)(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=e=>{let{topic:t,payload:r}=e;switch(r.method){case\"wc_pairingPing\":return this.onPairingPingRequest(t,r);case\"wc_pairingDelete\":return this.onPairingDeleteRequest(t,r);default:return this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,n=(await this.core.history.get(t,r.id)).request.method;return\"wc_pairingPing\"===n?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(t7.ping,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{let{id:r}=t;setTimeout(()=>{eQ(t)?this.events.emit((0,o.E0T)(\"pairing_ping\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"pairing_ping\",r),{error:t.error})},500)},this.onPairingDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(t7.delete,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{let{id:r,method:n}=t;try{if(this.registeredMethods.includes(n))return;let t=(0,o.D6H)(\"WC_METHOD_UNSUPPORTED\",n);await this.sendError(r,e,t),this.logger.error(t)}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,o.D6H)(\"WC_METHOD_UNSUPPORTED\",e))},this.isValidPair=e=>{var t;if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pair() params: ${e}`);throw Error(t)}if(!(0,o.jvJ)(e.uri)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pair() uri: ${e.uri}`);throw Error(t)}let r=(0,o.heJ)(e.uri);if(!(null!=(t=r?.relay)&&t.protocol)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",\"pair() uri#relay-protocol\");throw Error(e)}if(!(null!=r&&r.symKey)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",\"pair() uri#symKey\");throw Error(e)}if(null!=r&&r.expiryTimestamp&&(0,R.toMiliseconds)(r?.expiryTimestamp)<Date.now()){let{message:e}=(0,o.kCb)(\"EXPIRED\",\"pair() URI has expired. Please try again with a new connection URI.\");throw Error(e)}},this.isValidPing=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.pairings.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:t}=(0,o.kCb)(\"EXPIRED\",`pairing topic: ${e}`);throw Error(t)}},this.core=e,this.logger=eo(t,this.name),this.pairings=new rM(this.core,this.logger,this.name,this.storagePrefix)}get context(){return es(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(t5.message,async e=>{let{topic:t,message:r}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;let n=await this.core.crypto.decode(t,r);try{eZ(n)?(this.core.history.set(t,n),this.onRelayEventRequest({topic:t,payload:n})):eJ(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:t,payload:n}),this.core.history.delete(t,n.id))}catch(e){this.logger.error(e)}})}registerExpirerEvents(){this.core.expirer.on(rt.expired,async e=>{let{topic:t}=(0,o.iPz)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(t7.expire,{topic:t}))})}}class rT extends el{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new i.EventEmitter,this.name=\"history\",this.version=\"0.3\",this.cached=[],this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug(\"Setting JSON-RPC request history record\"),this.logger.trace({type:\"method\",method:\"set\",topic:e,request:t,chainId:r}),this.records.has(t.id))return;let n={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:(0,o.gn4)(R.THIRTY_DAYS)};this.records.set(n.id,n),this.persist(),this.events.emit(re.created,n)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug(\"Updating JSON-RPC response history record\"),this.logger.trace({type:\"method\",method:\"update\",response:e}),!this.records.has(e.id))return;let t=await this.getRecord(e.id);typeof t.response>\"u\"&&(t.response=eX(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(re.updated,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug(\"Getting record\"),this.logger.trace({type:\"method\",method:\"get\",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug(\"Deleting record\"),this.logger.trace({type:\"method\",method:\"delete\",id:t}),this.values.forEach(r=>{r.topic!==e||\"u\">typeof t&&r.id!==t||(this.records.delete(r.id),this.events.emit(re.deleted,r))}),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=eo(t,this.name)}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if(\"u\">typeof t.response)return;let r={topic:t.topic,request:eF(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(re.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>\"u\"||!e.length)return;if(this.records.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(re.created,e=>{let t=re.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,record:e})}),this.events.on(re.updated,e=>{let t=re.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,record:e})}),this.events.on(re.deleted,e=>{let t=re.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,record:e})}),this.core.heartbeat.on(j,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,R.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(re.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rD extends ep{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new i.EventEmitter,this.name=\"expirer\",this.version=\"0.3\",this.cached=[],this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let t=this.formatTarget(e);return\"u\">typeof this.getExpiration(t)}catch{return!1}},this.set=(e,t)=>{this.isInitialized();let r=this.formatTarget(e),n={target:r,expiry:t};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(rt.created,{target:r,expiration:n})},this.get=e=>{this.isInitialized();let t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){let t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(rt.deleted,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=eo(t,this.name)}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(\"string\"==typeof e)return(0,o.Z42)(e);if(\"number\"==typeof e)return(0,o.GqV)(e);let{message:t}=(0,o.kCb)(\"UNKNOWN_TYPE\",`Target type: ${typeof e}`);throw Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(rt.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>\"u\"||!e.length)return;if(this.expirations.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw this.logger.warn(t),Error(t)}return t}checkExpiry(e,t){let{expiry:r}=t;(0,R.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(rt.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(j,()=>this.checkExpirations()),this.events.on(rt.created,e=>{let t=rt.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),this.persist()}),this.events.on(rt.expired,e=>{let t=rt.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),this.persist()}),this.events.on(rt.deleted,e=>{let t=rt.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rL extends eg{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.name=rr,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async e=>{if(this.verifyDisabled||(0,o.b$m)()||!(0,o.jUY)())return;let t=this.getVerifyUrl(e?.verifyUrl);this.verifyUrl!==t&&this.removeIframe(),this.verifyUrl=t;try{await this.createIframe()}catch(e){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(e),this.verifyDisabled=!0}},this.register=async e=>{this.initialized?this.sendPost(e.attestationId):(this.addToQueue(e.attestationId),await this.init())},this.resolve=async e=>{if(this.isDevEnv)return\"\";let t=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(e.attestationId,t)},this.fetchAttestation=async(e,t)=>{this.logger.info(`resolving attestation: ${e} from url: ${t}`);let r=this.startAbortTimer(5*R.ONE_SECOND),n=await fetch(`${t}/attestation/${e}`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.addToQueue=e=>{this.queue.push(e)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach(e=>this.sendPost(e)),this.queue=[])},this.sendPost=e=>{var t;try{if(!this.iframe)return;null==(t=this.iframe.contentWindow)||t.postMessage(e,\"*\"),this.logger.info(`postMessage sent: ${e} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let e;let t=r=>{\"verify_ready\"===r.data&&(this.onInit(),window.removeEventListener(\"message\",t),e())};await Promise.race([new Promise(r=>{let n=document.getElementById(rr);if(n)return this.iframe=n,this.onInit(),r();window.addEventListener(\"message\",t);let i=document.createElement(\"iframe\");i.id=rr,i.src=`${this.verifyUrl}/${this.projectId}`,i.style.display=\"none\",document.body.append(i),this.iframe=i,e=r}),new Promise((e,r)=>setTimeout(()=>{window.removeEventListener(\"message\",t),r(\"verify iframe load timeout\")},(0,R.toMiliseconds)(R.FIVE_SECONDS)))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=e=>{let t=e||rn;return ri.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${rn}`),t=rn),t},this.logger=eo(t,this.name),this.verifyUrl=rn,this.abortController=new AbortController,this.isDevEnv=(0,o.UGU)()&&e7.env.IS_VITEST}get context(){return es(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,R.toMiliseconds)(e))}}class rj extends em{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context=\"echo\",this.registerDeviceToken=async e=>{let{clientId:t,token:r,notificationType:n,enableEncrypted:i=!1}=e,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await e9()(s,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({client_id:t,type:n,token:r,always_raw:i})})},this.logger=eo(t,this.context)}}var rB=Object.defineProperty,rF=Object.getOwnPropertySymbols,rU=Object.prototype.hasOwnProperty,rz=Object.prototype.propertyIsEnumerable,rq=(e,t,r)=>t in e?rB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rH=(e,t)=>{for(var r in t||(t={}))rU.call(t,r)&&rq(e,r,t[r]);if(rF)for(var r of rF(t))rz.call(t,r)&&rq(e,r,t[r]);return e};class rG extends ea{constructor(e){var t,r;super(e),this.protocol=\"wc\",this.version=2,this.name=tZ,this.events=new i.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||t3,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:\"\";let{logger:n,chunkLoggerController:s}=\"u\">typeof(r={opts:ei({level:\"string\"==typeof e?.logger&&e.logger?e.logger:tQ.logger}),maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger}).loggerOverride&&\"string\"!=typeof r.loggerOverride?{logger:r.loggerOverride,chunkLoggerController:null}:\"u\">typeof window?function(e){var t,r;let n=new W(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:U()(en(er({},e.opts),{level:\"trace\",browser:en(er({},null==(r=e.opts)?void 0:r.browser),{write:e=>n.write(e)})})),chunkLoggerController:n}}(r):function(e){var t;let r=new K(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:U()(en(er({},e.opts),{level:\"trace\"}),r),chunkLoggerController:r}}(r);this.logChunkController=s,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=eo(n,this.name),this.heartbeat=new B,this.crypto=new ro(this,this.logger,e?.keychain),this.history=new rT(this,this.logger),this.expirer=new rD(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new M(rH(rH({},tX),e?.storageOptions)),this.relayer=new rS({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new rR(this,this.logger),this.verify=new rL(this.projectId||\"\",this.logger),this.echoClient=new rj(this.projectId||\"\",this.logger)}static async init(e){let t=new rG(e);await t.initialize();let r=await t.crypto.getClientId();return await t.storage.setItem(\"WALLETCONNECT_CLIENT_ID\",r),t}get context(){return es(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace(\"Initialized\");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info(\"Core Initialization Success\")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}let rV=\"client\",rW=`wc@2:${rV}:`,rK={name:rV,logger:\"error\"},rY=\"WALLETCONNECT_DEEPLINK_CHOICE\",rZ=\"Proposal expired\",rJ=R.SEVEN_DAYS,rQ={wc_sessionPropose:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1104},res:{ttl:R.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1106},res:{ttl:R.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1112},res:{ttl:R.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1114},res:{ttl:R.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:R.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:R.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1119}}},rX={min:R.FIVE_MINUTES,max:R.SEVEN_DAYS},r0={idle:\"IDLE\",active:\"ACTIVE\"},r1=[\"wc_sessionPropose\",\"wc_sessionRequest\",\"wc_authRequest\",\"wc_sessionAuthenticate\"],r2=\"wc@1.5:auth:\",r3=`${r2}:PUB_KEY`;var r5=Object.defineProperty,r6=Object.defineProperties,r4=Object.getOwnPropertyDescriptors,r8=Object.getOwnPropertySymbols,r9=Object.prototype.hasOwnProperty,r7=Object.prototype.propertyIsEnumerable,ne=(e,t,r)=>t in e?r5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nt=(e,t)=>{for(var r in t||(t={}))r9.call(t,r)&&ne(e,r,t[r]);if(r8)for(var r of r8(t))r7.call(t,r)&&ne(e,r,t[r]);return e},nr=(e,t)=>r6(e,r4(t));class nn extends eb{constructor(e){super(e),this.name=\"engine\",this.events=new(s()),this.initialized=!1,this.requestQueue={state:r0.idle,queue:[]},this.sessionRequestQueue={state:r0.idle,queue:[]},this.requestQueueDelay=R.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(rQ)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,R.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{await this.isInitialized();let t=nr(nt({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);let{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:s,relays:a}=t,l=r,u,c=!1;try{l&&(c=this.client.core.pairing.pairings.get(l).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${l}) failed`),e}if(!l||!c){let{topic:e,uri:t}=await this.client.core.pairing.create();l=e,u=t}if(!l){let{message:e}=(0,o.kCb)(\"NO_MATCHING_KEY\",`connect() pairing topic: ${l}`);throw Error(e)}let d=await this.client.core.crypto.generateKeyPair(),h=rQ.wc_sessionPropose.req.ttl||R.FIVE_MINUTES,f=(0,o.gn4)(h),p=nt({requiredNamespaces:n,optionalNamespaces:i,relays:a??[{protocol:\"irn\"}],proposer:{publicKey:d,metadata:this.client.metadata},expiryTimestamp:f,pairingTopic:l},s&&{sessionProperties:s}),{reject:g,resolve:m,done:y}=(0,o.H1S)(h,rZ);this.events.once((0,o.E0T)(\"session_connect\"),async({error:e,session:t})=>{if(e)g(e);else if(t){t.self.publicKey=d;let e=nr(nt({},t),{pairingTopic:p.pairingTopic,requiredNamespaces:p.requiredNamespaces,optionalNamespaces:p.optionalNamespaces});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),m(e)}});let b=await this.sendRequest({topic:l,method:\"wc_sessionPropose\",params:p,throwOnFailedPublish:!0});return await this.setProposal(b,nt({id:b},p)),{uri:u,approval:y}},this.pair=async e=>{await this.isInitialized();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error(\"pair() failed\"),e}},this.approve=async e=>{let t;await this.isInitialized();try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error(\"approve() -> isValidApprove() failed\"),e}let{id:r,relayProtocol:n,namespaces:i,sessionProperties:s,sessionConfig:a}=e;try{t=this.client.proposal.get(r)}catch(e){throw this.client.logger.error(`approve() -> proposal.get(${r}) failed`),e}let{pairingTopic:l,proposer:u,requiredNamespaces:c,optionalNamespaces:d}=t,h=await this.client.core.crypto.generateKeyPair(),f=u.publicKey,p=await this.client.core.crypto.generateSharedKey(h,f),g=nt(nt({relay:{protocol:n??\"irn\"},namespaces:i,controller:{publicKey:h,metadata:this.client.metadata},expiry:(0,o.gn4)(rJ)},s&&{sessionProperties:s}),a&&{sessionConfig:a});await this.client.core.relayer.subscribe(p);let m=nr(nt({},g),{topic:p,requiredNamespaces:c,optionalNamespaces:d,pairingTopic:l,acknowledged:!1,self:g.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:h});await this.client.session.set(p,m);try{await this.sendResult({id:r,topic:l,result:{relay:{protocol:n??\"irn\"},responderPublicKey:h},throwOnFailedPublish:!0}),await this.sendRequest({topic:p,method:\"wc_sessionSettle\",params:g,throwOnFailedPublish:!0})}catch(e){throw this.client.logger.error(e),this.client.session.delete(p,(0,o.D6H)(\"USER_DISCONNECTED\")),await this.client.core.relayer.unsubscribe(p),e}return await this.client.core.pairing.updateMetadata({topic:l,metadata:u.metadata}),await this.client.proposal.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\")),await this.client.core.pairing.activate({topic:l}),await this.setExpiry(p,(0,o.gn4)(rJ)),{topic:p,acknowledged:()=>new Promise(e=>setTimeout(()=>e(this.client.session.get(p)),500))}},this.reject=async e=>{let t;await this.isInitialized();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error(\"reject() -> isValidReject() failed\"),e}let{id:r,reason:n}=e;try{t=this.client.proposal.get(r).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),e}t&&(await this.sendError({id:r,topic:t,error:n,rpcOpts:rQ.wc_sessionPropose.reject}),await this.client.proposal.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\")))},this.update=async e=>{await this.isInitialized();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error(\"update() -> isValidUpdate() failed\"),e}let{topic:t,namespaces:r}=e,{done:n,resolve:i,reject:s}=(0,o.H1S)(),a=ej(),l=eB().toString(),u=this.client.session.get(t).namespaces;return this.events.once((0,o.E0T)(\"session_update\",a),({error:e})=>{e?s(e):i()}),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:\"wc_sessionUpdate\",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:a,relayRpcId:l}).catch(e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:u}),s(e)}),{acknowledged:n}},this.extend=async e=>{await this.isInitialized();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error(\"extend() -> isValidExtend() failed\"),e}let{topic:t}=e,r=ej(),{done:n,resolve:i,reject:s}=(0,o.H1S)();return this.events.once((0,o.E0T)(\"session_extend\",r),({error:e})=>{e?s(e):i()}),await this.setExpiry(t,(0,o.gn4)(rJ)),this.sendRequest({topic:t,method:\"wc_sessionExtend\",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch(e=>{s(e)}),{acknowledged:n}},this.request=async e=>{await this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error(\"request() -> isValidRequest() failed\"),e}let{chainId:t,request:r,topic:n,expiry:i=rQ.wc_sessionRequest.req.ttl}=e,s=this.client.session.get(n),a=ej(),l=eB().toString(),{done:u,resolve:c,reject:d}=(0,o.H1S)(i,\"Request expired. Please try again.\");return this.events.once((0,o.E0T)(\"session_request\",a),({error:e,result:t})=>{e?d(e):c(t)}),await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:a,relayRpcId:l,topic:n,method:\"wc_sessionRequest\",params:{request:nr(nt({},r),{expiryTimestamp:(0,o.gn4)(i)}),chainId:t},expiry:i,throwOnFailedPublish:!0}).catch(e=>d(e)),this.client.events.emit(\"session_request_sent\",{topic:n,request:r,chainId:t,id:a}),e()}),new Promise(async e=>{var t;if(!(null!=(t=s.sessionConfig)&&t.disableDeepLink)){let e=await (0,o.bW6)(this.client.core.storage,rY);(0,o.HhN)({id:a,topic:n,wcDeepLink:e})}e()}),u()]).then(e=>e[2])},this.respond=async e=>{await this.isInitialized(),await this.isValidRespond(e);let{topic:t,response:r}=e,{id:n}=r;eQ(r)?await this.sendResult({id:n,topic:t,result:r.result,throwOnFailedPublish:!0}):eX(r)&&await this.sendError({id:n,topic:t,error:r.error}),this.cleanupAfterResponse(e)},this.ping=async e=>{await this.isInitialized();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error(\"ping() -> isValidPing() failed\"),e}let{topic:t}=e;if(this.client.session.keys.includes(t)){let e=ej(),r=eB().toString(),{done:n,resolve:i,reject:s}=(0,o.H1S)();this.events.once((0,o.E0T)(\"session_ping\",e),({error:e})=>{e?s(e):i()}),await Promise.all([this.sendRequest({topic:t,method:\"wc_sessionPing\",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),n()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{await this.isInitialized(),await this.isValidEmit(e);let{topic:t,event:r,chainId:n}=e,i=eB().toString();await this.sendRequest({topic:t,method:\"wc_sessionEvent\",params:{event:r,chainId:n},throwOnFailedPublish:!0,relayRpcId:i})},this.disconnect=async e=>{await this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:\"wc_sessionDelete\",params:(0,o.D6H)(\"USER_DISCONNECTED\"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{let{message:e}=(0,o.kCb)(\"MISMATCHED_TOPIC\",`Session or pairing topic not found: ${t}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>(0,o.Ih8)(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async e=>{this.isInitialized(),this.isValidAuthenticate(e);let{chains:t,statement:r=\"\",uri:n,domain:i,nonce:s,type:a,exp:l,nbf:u,methods:c=[],expiry:d}=e,h=[...e.resources||[]],{topic:f,uri:p}=await this.client.core.pairing.create({methods:[\"wc_sessionAuthenticate\"]});this.client.logger.info({message:\"Generated new pairing\",pairing:{topic:f,uri:p}});let g=await this.client.core.crypto.generateKeyPair(),m=(0,o.YmJ)(g);if(await Promise.all([this.client.auth.authKeys.set(r3,{responseTopic:m,publicKey:g}),this.client.auth.pairingTopics.set(m,{topic:m,pairingTopic:f})]),await this.client.core.relayer.subscribe(m),this.client.logger.info(`sending request to new pairing topic: ${f}`),c.length>0){let{namespace:e}=(0,o.DQe)(t[0]),r=(0,o.IkP)(e,\"request\",c);(0,o.hA9)(h)&&(r=(0,o.qJM)(r,h.pop())),h.push(r)}let y=d&&d>rQ.wc_sessionAuthenticate.req.ttl?d:rQ.wc_sessionAuthenticate.req.ttl,b={authPayload:{type:a??\"caip122\",chains:t,statement:r,aud:n,domain:i,version:\"1\",nonce:s,iat:new Date().toISOString(),exp:l,nbf:u,resources:h},requester:{publicKey:g,metadata:this.client.metadata},expiryTimestamp:(0,o.gn4)(y)},v={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:t,methods:[...new Set([\"personal_sign\",...c])],events:[\"chainChanged\",\"accountsChanged\"]}},relays:[{protocol:\"irn\"}],pairingTopic:f,proposer:{publicKey:g,metadata:this.client.metadata},expiryTimestamp:(0,o.gn4)(rQ.wc_sessionPropose.req.ttl)},{done:w,resolve:_,reject:E}=(0,o.H1S)(y,\"Request expired\"),A=async({error:e,session:t})=>{if(this.events.off((0,o.E0T)(\"session_request\",k),x),e)E(e);else if(t){t.self.publicKey=g,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),f&&await this.client.core.pairing.updateMetadata({topic:f,metadata:t.peer.metadata});let e=this.client.session.get(t.topic);await this.deleteProposal(S),_({session:e})}},x=async e=>{let t;if(await this.deletePendingAuthRequest(k,{message:\"fulfilled\",code:0}),e.error){let t=(0,o.D6H)(\"WC_METHOD_UNSUPPORTED\",\"wc_sessionAuthenticate\");return e.error.code===t.code?void 0:(this.events.off((0,o.E0T)(\"session_connect\"),A),E(e.error.message))}await this.deleteProposal(S),this.events.off((0,o.E0T)(\"session_connect\"),A);let{cacaos:r,responder:n}=e.result,i=[],s=[];for(let e of r){await (0,o.c4l)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,\"Signature verification failed\"),E((0,o.D6H)(\"SESSION_SETTLEMENT_FAILED\",\"Signature verification failed\")));let{p:t}=e,r=(0,o.hA9)(t.resources),n=[(0,o.DJo)(t.iss)],a=(0,o.NmC)(t.iss);if(r){let e=(0,o.Y31)(r),t=(0,o.ouN)(r);i.push(...e),n.push(...t)}for(let e of n)s.push(`${e}:${a}`)}let a=await this.client.core.crypto.generateSharedKey(g,n.publicKey);i.length>0&&(t={topic:a,acknowledged:!0,self:{publicKey:g,metadata:this.client.metadata},peer:n,controller:n.publicKey,expiry:(0,o.gn4)(rJ),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\"irn\"},pairingTopic:f,namespaces:(0,o.E12)([...new Set(i)],[...new Set(s)])},await this.client.core.relayer.subscribe(a),await this.client.session.set(a,t),f&&await this.client.core.pairing.updateMetadata({topic:f,metadata:n.metadata}),t=this.client.session.get(a)),_({auths:r,session:t})},k=ej(),S=ej();this.events.once((0,o.E0T)(\"session_connect\"),A),this.events.once((0,o.E0T)(\"session_request\",k),x);try{await Promise.all([this.sendRequest({topic:f,method:\"wc_sessionAuthenticate\",params:b,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:k}),this.sendRequest({topic:f,method:\"wc_sessionPropose\",params:v,expiry:rQ.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:S})])}catch(e){throw this.events.off((0,o.E0T)(\"session_connect\"),A),this.events.off((0,o.E0T)(\"session_request\",k),x),e}return await this.setProposal(S,nt({id:S},v)),await this.setAuthRequest(k,{request:nr(nt({},b),{verifyContext:{}}),pairingTopic:f}),{uri:p,response:w}},this.approveSessionAuthenticate=async e=>{let t;this.isInitialized();let{id:r,auths:n}=e,i=this.getPendingAuthRequest(r);if(!i)throw Error(`Could not find pending auth request with id ${r}`);let s=i.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),l=(0,o.YmJ)(s),u={type:o.rVF,receiverPublicKey:s,senderPublicKey:a},c=[],d=[];for(let e of n){if(!await (0,o.c4l)({cacao:e,projectId:this.client.core.projectId})){let e=(0,o.D6H)(\"SESSION_SETTLEMENT_FAILED\",\"Signature verification failed\");throw await this.sendError({id:r,topic:l,error:e,encodeOpts:u}),Error(e.message)}let{p:t}=e,n=(0,o.hA9)(t.resources),i=[(0,o.DJo)(t.iss)],s=(0,o.NmC)(t.iss);if(n){let e=(0,o.Y31)(n),t=(0,o.ouN)(n);c.push(...e),i.push(...t)}for(let e of i)d.push(`${e}:${s}`)}let h=await this.client.core.crypto.generateSharedKey(a,s);return c?.length>0&&(t={topic:h,acknowledged:!0,self:{publicKey:a,metadata:this.client.metadata},peer:{publicKey:s,metadata:i.requester.metadata},controller:s,expiry:(0,o.gn4)(rJ),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\"irn\"},pairingTopic:i.pairingTopic,namespaces:(0,o.E12)([...new Set(c)],[...new Set(d)])},await this.client.core.relayer.subscribe(h),await this.client.session.set(h,t),await this.client.core.pairing.updateMetadata({topic:i.pairingTopic,metadata:i.requester.metadata})),await this.sendResult({topic:l,id:r,result:{cacaos:n,responder:{publicKey:a,metadata:this.client.metadata}},encodeOpts:u,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(r,{message:\"fulfilled\",code:0}),await this.client.core.pairing.activate({topic:i.pairingTopic}),{session:t}},this.rejectSessionAuthenticate=async e=>{await this.isInitialized();let{id:t,reason:r}=e,n=this.getPendingAuthRequest(t);if(!n)throw Error(`Could not find pending auth request with id ${t}`);let i=n.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),a=(0,o.YmJ)(i),l={type:o.rVF,receiverPublicKey:i,senderPublicKey:s};await this.sendError({id:t,topic:a,error:r,encodeOpts:l,rpcOpts:rQ.wc_sessionAuthenticate.reject}),await this.client.auth.requests.delete(t,{message:\"rejected\",code:0}),await this.client.proposal.delete(t,(0,o.D6H)(\"USER_DISCONNECTED\"))},this.formatAuthMessage=e=>{this.isInitialized();let{request:t,iss:r}=e;return(0,o.wvx)(t,r)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{let e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter(r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===e.peer.metadata.url&&r.topic&&r.topic!==t.topic});if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info(\"Duplicate pairings clean up finished\")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{var t;let{topic:r,expirerHasDeleted:n=!1,emitEvent:i=!0,id:s=0}=e,{self:a}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await this.client.session.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\")),this.addToRecentlyDeleted(r,\"session\"),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(rY).catch(e=>this.client.logger.warn(e)),this.getPendingSessionRequests().forEach(e=>{e.topic===r&&this.deletePendingSessionRequest(e.id,(0,o.D6H)(\"USER_DISCONNECTED\"))}),r===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=r0.idle),i&&this.client.events.emit(\"session_delete\",{id:s,topic:r})},this.deleteProposal=async(e,t)=>{await Promise.all([this.client.proposal.delete(e,(0,o.D6H)(\"USER_DISCONNECTED\")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,\"proposal\")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,\"request\"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(t=>t.id!==e),r&&(this.sessionRequestQueue.state=r0.idle,this.client.events.emit(\"session_request_expire\",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,o.gn4)(rQ.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{let{request:r,pairingTopic:n}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:n,verifyContext:r.verifyContext})},this.setPendingSessionRequest=async e=>{let{id:t,topic:r,params:n,verifyContext:i}=e,s=n.request.expiryTimestamp||(0,o.gn4)(rQ.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,s),await this.client.pendingRequest.set(t,{id:t,topic:r,params:n,verifyContext:i})},this.sendRequest=async e=>{let t;let{topic:r,method:n,params:i,expiry:s,relayRpcId:a,clientRpcId:l,throwOnFailedPublish:u}=e,c=eF(n,i,l);if((0,o.jUY)()&&r1.includes(n)){let e=(0,o.rjm)(JSON.stringify(c));this.client.core.verify.register({attestationId:e})}try{t=await this.client.core.crypto.encode(r,c)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${r} failed`),e}let d=rQ[n].req;return s&&(d.ttl=s),a&&(d.id=a),this.client.core.history.set(r,c),u?(d.internal=nr(nt({},d.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,t,d)):this.client.core.relayer.publish(r,t,d).catch(e=>this.client.logger.error(e)),c.id},this.sendResult=async e=>{let t,r;let{id:n,topic:i,result:s,throwOnFailedPublish:o,encodeOpts:a}=e,l=eU(n,s);try{t=await this.client.core.crypto.encode(i,l,a)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),e}try{r=await this.client.core.history.get(i,n)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${n}) failed`),e}let u=rQ[r.request.method].res;o?(u.internal=nr(nt({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,t,u)):this.client.core.relayer.publish(i,t,u).catch(e=>this.client.logger.error(e)),await this.client.core.history.resolve(l)},this.sendError=async e=>{let t,r;let{id:n,topic:i,error:s,encodeOpts:o,rpcOpts:a}=e,l=ez(n,s);try{t=await this.client.core.crypto.encode(i,l,o)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),e}try{r=await this.client.core.history.get(i,n)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${i}, ${n}) failed`),e}let u=a||rQ[r.request.method].res;this.client.core.relayer.publish(i,t,u),await this.client.core.history.resolve(l)},this.cleanup=async()=>{let e=[],t=[];this.client.session.getAll().forEach(t=>{let r=!1;(0,o.BwD)(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)}),this.client.proposal.getAll().forEach(e=>{(0,o.BwD)(e.expiryTimestamp)&&t.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...t.map(e=>this.deleteProposal(e))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===r0.active){this.client.logger.info(\"Request queue already active, skipping...\");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=r0.active;let e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=r0.idle},this.processRequest=async e=>{let{topic:t,payload:r}=e,n=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:n}))switch(n){case\"wc_sessionPropose\":return await this.onSessionProposeRequest(t,r);case\"wc_sessionSettle\":return await this.onSessionSettleRequest(t,r);case\"wc_sessionUpdate\":return await this.onSessionUpdateRequest(t,r);case\"wc_sessionExtend\":return await this.onSessionExtendRequest(t,r);case\"wc_sessionPing\":return await this.onSessionPingRequest(t,r);case\"wc_sessionDelete\":return await this.onSessionDeleteRequest(t,r);case\"wc_sessionRequest\":return await this.onSessionRequest(t,r);case\"wc_sessionEvent\":return await this.onSessionEventRequest(t,r);case\"wc_sessionAuthenticate\":return await this.onSessionAuthenticateRequest(t,r);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,n=(await this.client.core.history.get(t,r.id)).request.method;switch(n){case\"wc_sessionPropose\":return this.onSessionProposeResponse(t,r);case\"wc_sessionSettle\":return this.onSessionSettleResponse(t,r);case\"wc_sessionUpdate\":return this.onSessionUpdateResponse(t,r);case\"wc_sessionExtend\":return this.onSessionExtendResponse(t,r);case\"wc_sessionPing\":return this.onSessionPingResponse(t,r);case\"wc_sessionRequest\":return this.onSessionRequestResponse(t,r);case\"wc_sessionAuthenticate\":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:t}=e,{message:r}=(0,o.kCb)(\"MISSING_OR_INVALID\",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw Error(r)},this.shouldIgnorePairingRequest=e=>{let{topic:t,requestMethod:r}=e,n=this.expectedPairingMethodMap.get(t);return!(!n||n.includes(r))&&!!(n.includes(\"wc_sessionAuthenticate\")&&this.client.events.listenerCount(\"session_authenticate\")>0)},this.onSessionProposeRequest=async(e,t)=>{let{params:r,id:n}=t;try{this.isValidConnect(nt({},t.params));let i=r.expiryTimestamp||(0,o.gn4)(rQ.wc_sessionPropose.req.ttl),s=nt({id:n,pairingTopic:e,expiryTimestamp:i},r);await this.setProposal(n,s);let a=(0,o.rjm)(JSON.stringify(t)),l=await this.getVerifyContext(a,s.proposer.metadata);this.client.events.emit(\"session_proposal\",{id:n,params:s,verifyContext:l})}catch(t){await this.sendError({id:n,topic:e,error:t,rpcOpts:rQ.wc_sessionPropose.autoReject}),this.client.logger.error(t)}},this.onSessionProposeResponse=async(e,t)=>{let{id:r}=t;if(eQ(t)){let{result:n}=t;this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",result:n});let i=this.client.proposal.get(r);this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",proposal:i});let s=i.proposer.publicKey;this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",selfPublicKey:s});let o=n.responderPublicKey;this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",peerPublicKey:o});let a=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",sessionTopic:a});let l=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",subscriptionId:l}),await this.client.core.pairing.activate({topic:e})}else if(eX(t)){await this.client.proposal.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\"));let e=(0,o.E0T)(\"session_connect\");if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit((0,o.E0T)(\"session_connect\"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{let{id:r,params:n}=t;try{this.isValidSessionSettleRequest(n);let{relay:r,controller:i,expiry:s,namespaces:a,sessionProperties:l,sessionConfig:u}=t.params,c=nt(nt({topic:e,relay:r,expiry:s,namespaces:a,acknowledged:!0,pairingTopic:\"\",requiredNamespaces:{},optionalNamespaces:{},controller:i.publicKey,self:{publicKey:\"\",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},l&&{sessionProperties:l}),u&&{sessionConfig:u});await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0});let d=(0,o.E0T)(\"session_connect\");if(0===this.events.listenerCount(d))throw Error(`emitting ${d} without any listeners 997`);this.events.emit((0,o.E0T)(\"session_connect\"),{session:c})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{let{id:r}=t;eQ(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,o.E0T)(\"session_approve\",r),{})):eX(t)&&(await this.client.session.delete(e,(0,o.D6H)(\"USER_DISCONNECTED\")),this.events.emit((0,o.E0T)(\"session_approve\",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{let{params:r,id:n}=t;try{let t=`${e}_session_update`,i=o.O6B.get(t);if(i&&this.isRequestOutOfSync(i,n)){this.client.logger.info(`Discarding out of sync request - ${n}`),this.sendError({id:n,topic:e,error:(0,o.D6H)(\"INVALID_UPDATE_REQUEST\")});return}this.isValidUpdate(nt({topic:e},r));try{o.O6B.set(t,n),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw o.O6B.delete(t),e}this.client.events.emit(\"session_update\",{id:n,topic:e,params:r})}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_update\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eQ(t)?this.events.emit((0,o.E0T)(\"session_update\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"session_update\",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{let{id:r}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,(0,o.gn4)(rJ)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\"session_extend\",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_extend\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eQ(t)?this.events.emit((0,o.E0T)(\"session_extend\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"session_extend\",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\"session_ping\",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_ping\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);setTimeout(()=>{eQ(t)?this.events.emit((0,o.E0T)(\"session_ping\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"session_ping\",r),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),await Promise.all([new Promise(t=>{this.client.core.relayer.once(t5.publish,async()=>{t(await this.deleteSession({topic:e,id:r}))})}),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,o.D6H)(\"USER_DISCONNECTED\")})])}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async(e,t)=>{var r;let{id:n,params:i}=t;try{await this.isValidRequest(nt({topic:e},i));let t=(0,o.rjm)(JSON.stringify(eF(\"wc_sessionRequest\",i,n))),s=this.client.session.get(e),a=await this.getVerifyContext(t,s.peer.metadata),l={id:n,topic:e,params:i,verifyContext:a};await this.setPendingSessionRequest(l),null!=(r=this.client.signConfig)&&r.disableRequestQueue?this.emitSessionRequest(l):(this.addSessionRequestToSessionRequestQueue(l),this.processSessionRequestQueue())}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionRequestResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_request\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eQ(t)?this.events.emit((0,o.E0T)(\"session_request\",r),{result:t.result}):eX(t)&&this.events.emit((0,o.E0T)(\"session_request\",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{let{id:r,params:n}=t;try{let t=`${e}_session_event_${n.event.name}`,i=o.O6B.get(t);if(i&&this.isRequestOutOfSync(i,r)){this.client.logger.info(`Discarding out of sync request - ${r}`);return}this.isValidEmit(nt({topic:e},n)),this.client.events.emit(\"session_event\",{id:r,topic:e,params:n}),o.O6B.set(t,r)}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{let{id:r}=t;this.client.logger.trace({type:\"method\",method:\"onSessionAuthenticateResponse\",topic:e,payload:t}),eQ(t)?this.events.emit((0,o.E0T)(\"session_request\",r),{result:t.result}):eX(t)&&this.events.emit((0,o.E0T)(\"session_request\",r),{error:t.error})},this.onSessionAuthenticateRequest=async(e,t)=>{try{let{requester:r,authPayload:n,expiryTimestamp:i}=t.params,s=(0,o.rjm)(JSON.stringify(t)),a=await this.getVerifyContext(s,this.client.metadata),l={requester:r,pairingTopic:e,id:t.id,authPayload:n,verifyContext:a,expiryTimestamp:i};await this.setAuthRequest(t.id,{request:l,pairingTopic:e}),this.client.events.emit(\"session_authenticate\",{topic:e,params:t.params,id:t.id,verifyContext:a})}catch(s){this.client.logger.error(s);let r=t.params.requester.publicKey,n=await this.client.core.crypto.generateKeyPair(),i={type:o.rVF,receiverPublicKey:r,senderPublicKey:n};await this.sendError({id:t.id,topic:e,error:s,encodeOpts:i,rpcOpts:rQ.wc_sessionAuthenticate.autoReject})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:\"fulfilled\",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=r0.idle,this.processSessionRequestQueue()},(0,R.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{let r=this.client.core.history.pending;r.length>0&&r.filter(t=>t.topic===e&&\"wc_sessionRequest\"===t.request.method).forEach(e=>{let r=e.request.id,n=(0,o.E0T)(\"session_request\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);this.events.emit((0,o.E0T)(\"session_request\",e.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===r0.active){this.client.logger.info(\"session request queue is already active.\");return}let e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info(\"session request queue is empty.\");return}try{this.sessionRequestQueue.state=r0.active,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.client.events.emit(\"session_request\",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let t=this.client.proposal.getAll().find(t=>t.pairingTopic===e.topic);t&&this.onSessionProposeRequest(e.topic,eF(\"wc_sessionPropose\",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id))},this.isValidConnect=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`connect() params: ${JSON.stringify(e)}`);throw Error(t)}let{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:s}=e;if((0,o.o8e)(t)||await this.isValidPairingTopic(t),!(0,o.PMr)(s,!0)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`connect() relays: ${s}`);throw Error(e)}(0,o.o8e)(r)||0===(0,o.L5o)(r)||this.validateNamespaces(r,\"requiredNamespaces\"),(0,o.o8e)(n)||0===(0,o.L5o)(n)||this.validateNamespaces(n,\"optionalNamespaces\"),(0,o.o8e)(i)||this.validateSessionProps(i,\"sessionProperties\")},this.validateNamespaces=(e,t)=>{let r=(0,o.naP)(e,\"connect()\",t);if(r)throw Error(r.message)},this.isValidApprove=async e=>{if(!(0,o.EJd)(e))throw Error((0,o.kCb)(\"MISSING_OR_INVALID\",`approve() params: ${e}`).message);let{id:t,namespaces:r,relayProtocol:n,sessionProperties:i}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);let s=this.client.proposal.get(t),a=(0,o.ing)(r,\"approve()\");if(a)throw Error(a.message);let l=(0,o.rFo)(s.requiredNamespaces,r,\"approve()\");if(l)throw Error(l.message);if(!(0,o.M_r)(n,!0)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`approve() relayProtocol: ${n}`);throw Error(e)}(0,o.o8e)(i)||this.validateSessionProps(i,\"sessionProperties\")},this.isValidReject=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`reject() params: ${e}`);throw Error(t)}let{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,o.H4H)(r)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`reject() reason: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`onSessionSettleRequest() params: ${e}`);throw Error(t)}let{relay:t,controller:r,namespaces:n,expiry:i}=e;if(!(0,o.Z26)(t)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",\"onSessionSettleRequest() relay protocol should be a string\");throw Error(e)}let s=(0,o.DdM)(r,\"onSessionSettleRequest()\");if(s)throw Error(s.message);let a=(0,o.ing)(n,\"onSessionSettleRequest()\");if(a)throw Error(a.message);if((0,o.BwD)(i)){let{message:e}=(0,o.kCb)(\"EXPIRED\",\"onSessionSettleRequest()\");throw Error(e)}},this.isValidUpdate=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`update() params: ${e}`);throw Error(t)}let{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let n=this.client.session.get(t),i=(0,o.ing)(r,\"update()\");if(i)throw Error(i.message);let s=(0,o.rFo)(n.requiredNamespaces,r,\"update()\");if(s)throw Error(s.message)},this.isValidExtend=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`extend() params: ${e}`);throw Error(t)}let{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() params: ${e}`);throw Error(t)}let{topic:t,request:r,chainId:n,expiry:i}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let{namespaces:s}=this.client.session.get(t);if(!(0,o.p8o)(s,n)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() chainId: ${n}`);throw Error(e)}if(!(0,o.hHR)(r)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() ${JSON.stringify(r)}`);throw Error(e)}if(!(0,o.alS)(s,n,r.method)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() method: ${r.method}`);throw Error(e)}if(i&&!(0,o.ONw)(i,rX)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${rX.min} and ${rX.max}`);throw Error(e)}},this.isValidRespond=async e=>{var t;if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`respond() params: ${e}`);throw Error(t)}let{topic:r,response:n}=e;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),r}if(!(0,o.JTI)(n)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`respond() response: ${JSON.stringify(n)}`);throw Error(e)}},this.isValidPing=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() params: ${e}`);throw Error(t)}let{topic:t,event:r,chainId:n}=e;await this.isValidSessionTopic(t);let{namespaces:i}=this.client.session.get(t);if(!(0,o.p8o)(i,n)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() chainId: ${n}`);throw Error(e)}if(!(0,o.nfW)(r)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}if(!(0,o.B95)(i,n,r.name)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{let{chains:t,uri:r,domain:n,nonce:i}=e;if(!Array.isArray(t)||0===t.length)throw Error(\"chains is required and must be a non-empty array\");if(!(0,o.M_r)(r,!1))throw Error(\"uri is required parameter\");if(!(0,o.M_r)(n,!1))throw Error(\"domain is required parameter\");if(!(0,o.M_r)(i,!1))throw Error(\"nonce is required parameter\");if([...new Set(t.map(e=>(0,o.DQe)(e).namespace))].length>1)throw Error(\"Multi-namespace requests are not supported. Please request single namespace only.\");let{namespace:s}=(0,o.DQe)(t[0]);if(\"eip155\"!==s)throw Error(\"Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.\")},this.getVerifyContext=async(e,t)=>{let r={verified:{verifyUrl:t.verifyUrl||rn,validation:\"UNKNOWN\",origin:t.url||\"\"}};try{let n=await this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});n&&(r.verified.origin=n.origin,r.verified.isScam=n.isScam,r.verified.validation=n.origin===new URL(t.url).origin?\"VALID\":\"INVALID\")}catch(e){this.client.logger.info(e)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(e,t)=>{Object.values(e).forEach(e=>{if(!(0,o.M_r)(e,!1)){let{message:r}=(0,o.kCb)(\"MISSING_OR_INVALID\",`${t} must be in Record<string, string> format. Received: ${JSON.stringify(e)}`);throw Error(r)}})},this.getPendingAuthRequest=e=>{let t=this.client.auth.requests.get(e);return\"object\"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,t=this.recentlyDeletedLimit/2;for(let r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{let t=this.recentlyDeletedMap.get(e);if(t){let{message:r}=(0,o.kCb)(\"MISSING_OR_INVALID\",`Record was recently deleted - ${t}: ${e}`);throw Error(r)}}}async isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(t5.message,e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)})}async onRelayMessage(e){let{topic:t,message:r}=e,{publicKey:n}=this.client.auth.authKeys.keys.includes(r3)?this.client.auth.authKeys.get(r3):{responseTopic:void 0,publicKey:void 0},i=await this.client.core.crypto.decode(t,r,{receiverPublicKey:n});try{eZ(i)?(this.client.core.history.set(t,i),this.onRelayEventRequest({topic:t,payload:i})):eJ(i)?(await this.client.core.history.resolve(i),await this.onRelayEventResponse({topic:t,payload:i}),this.client.core.history.delete(t,i.id)):this.onRelayEventUnknownPayload({topic:t,payload:i})}catch(e){this.client.logger.error(e)}}registerExpirerEvents(){this.client.core.expirer.on(rt.expired,async e=>{let{topic:t,id:r}=(0,o.iPz)(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,(0,o.kCb)(\"EXPIRED\"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,(0,o.kCb)(\"EXPIRED\"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit(\"session_expire\",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit(\"proposal_expire\",{id:r})))})}registerPairingEvents(){this.client.core.pairing.events.on(t7.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(t7.delete,e=>{this.addToRecentlyDeleted(e.topic,\"pairing\")})}isValidPairingTopic(e){if(!(0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=(0,o.kCb)(\"EXPIRED\",`pairing topic: ${e}`);throw Error(t)}}async isValidSessionTopic(e){if(!(0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`session topic should be a string: ${e}`);throw Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`session topic doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:t}=(0,o.kCb)(\"EXPIRED\",`session topic: ${e}`);throw Error(t)}if(!this.client.core.crypto.keychain.has(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if((0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`session or pairing topic doesn't exist: ${e}`);throw Error(t)}else{let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`session or pairing topic should be a string: ${e}`);throw Error(t)}}async isValidProposalId(e){if(!(0,o.Q01)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`proposal id should be a number: ${e}`);throw Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`proposal id doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:t}=(0,o.kCb)(\"EXPIRED\",`proposal id: ${e}`);throw Error(t)}}}class ni extends rM{constructor(e,t){super(e,t,\"proposal\",rW),this.core=e,this.logger=t}}class ns extends rM{constructor(e,t){super(e,t,\"session\",rW),this.core=e,this.logger=t}}class no extends rM{constructor(e,t){super(e,t,\"request\",rW,e=>e.id),this.core=e,this.logger=t}}class na extends rM{constructor(e,t){super(e,t,\"authKeys\",r2,()=>r3),this.core=e,this.logger=t}}class nl extends rM{constructor(e,t){super(e,t,\"pairingTopics\",r2),this.core=e,this.logger=t}}class nu extends rM{constructor(e,t){super(e,t,\"requests\",r2,e=>e.id),this.core=e,this.logger=t}}class nc{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new na(this.core,this.logger),this.pairingTopics=new nl(this.core,this.logger),this.requests=new nu(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class nd extends ey{constructor(e){super(e),this.protocol=\"wc\",this.version=2,this.name=rK.name,this.events=new i.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async e=>{try{return await this.engine.authenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||rK.name,this.metadata=e?.metadata||(0,o.DaH)(),this.signConfig=e?.signConfig;let t=\"u\">typeof e?.logger&&\"string\"!=typeof e?.logger?e.logger:U()(ei({level:e?.logger||rK.logger}));this.core=e?.core||new rG(e),this.logger=eo(t,this.name),this.session=new ns(this.core,this.logger),this.proposal=new ni(this.core,this.logger),this.pendingRequest=new no(this.core,this.logger),this.engine=new nn(this),this.auth=new nc(this.core,this.logger)}static async init(e){let t=new nd(e);return await t.initialize(),t}get context(){return es(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace(\"Initialized\");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info(\"SignClient Initialization Success\"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info(\"SignClient Initialization Failure\"),this.logger.error(e.message),e}}}var nh=r(55151),nf=r.n(nh),np=Object.defineProperty,ng=Object.defineProperties,nm=Object.getOwnPropertyDescriptors,ny=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,nv=Object.prototype.propertyIsEnumerable,nw=(e,t,r)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n_=(e,t)=>{for(var r in t||(t={}))nb.call(t,r)&&nw(e,r,t[r]);if(ny)for(var r of ny(t))nv.call(t,r)&&nw(e,r,t[r]);return e},nE=(e,t)=>ng(e,nm(t));let nA={headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},method:\"POST\"};class nx{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new i.EventEmitter,this.isAvailable=!1,this.registering=!1,!eW(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error(\"Connection already closed\");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=x(e),r=await (await nf()(this.url,nE(n_({},nA),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!eW(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount(\"register_error\")>=e||this.events.listenerCount(\"open\")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once(\"register_error\",e=>{this.resetMaxListeners(),t(e)}),this.events.once(\"open\",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>\"u\")return t(Error(\"HTTP connection is missing or invalid\"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=x({id:1,jsonrpc:\"2.0\",method:\"test\",params:[]});await nf()(e,nE(n_({},nA),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit(\"register_error\",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit(\"open\")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit(\"close\")}onPayload(e){if(typeof e.data>\"u\")return;let t=\"string\"==typeof e.data?A(e.data):e.data;this.events.emit(\"payload\",t)}onError(e,t){let r=this.parseError(t),n=ez(e,r.message||r.toString());this.events.emit(\"payload\",n)}parseError(e,t=this.url){return eD(e,t,\"HTTP\")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}let nk=\"error\",nS=\"wc@2:universal_provider:\",n$=\"generic\",nC=\"default_chain_changed\";var nP=\"u\">typeof globalThis?globalThis:\"u\">typeof window?window:\"u\">typeof r.g?r.g:\"u\">typeof self?self:{},nI={exports:{}};/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */!function(e,t){(function(){var r,n=\"Expected a function\",i=\"__lodash_hash_undefined__\",s=\"__lodash_placeholder__\",o=1/0,a=0/0,l=[[\"ary\",128],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",16],[\"flip\",512],[\"partial\",32],[\"partialRight\",64],[\"rearg\",256]],u=\"[object Arguments]\",c=\"[object Array]\",d=\"[object Boolean]\",h=\"[object Date]\",f=\"[object Error]\",p=\"[object Function]\",g=\"[object GeneratorFunction]\",m=\"[object Map]\",y=\"[object Number]\",b=\"[object Object]\",v=\"[object Promise]\",w=\"[object RegExp]\",_=\"[object Set]\",E=\"[object String]\",A=\"[object Symbol]\",x=\"[object WeakMap]\",k=\"[object ArrayBuffer]\",S=\"[object DataView]\",$=\"[object Float32Array]\",C=\"[object Float64Array]\",P=\"[object Int8Array]\",I=\"[object Int16Array]\",O=\"[object Int32Array]\",N=\"[object Uint8Array]\",M=\"[object Uint8ClampedArray]\",R=\"[object Uint16Array]\",T=\"[object Uint32Array]\",D=/\\b__p \\+= '';/g,L=/\\b(__p \\+=) '' \\+/g,j=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>\"']/g,U=RegExp(B.source),z=RegExp(F.source),q=/<%-([\\s\\S]+?)%>/g,H=/<%([\\s\\S]+?)%>/g,G=/<%=([\\s\\S]+?)%>/g,V=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,W=/^\\w*$/,K=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Y=/[\\\\^$.*+?()[\\]{}|]/g,Z=RegExp(Y.source),J=/^\\s+/,Q=/\\s/,X=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ee=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,et=/,? & /,er=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,en=/[()=,{}\\[\\]\\/\\s]/,ei=/\\\\(\\\\)?/g,es=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,eo=/\\w*$/,ea=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,eu=/^\\[object .+?Constructor\\]$/,ec=/^0o[0-7]+$/i,ed=/^(?:0|[1-9]\\d*)$/,eh=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,ef=/($^)/,ep=/['\\n\\r\\u2028\\u2029\\\\]/g,eg=\"\\ud800-\\udfff\",em=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",ey=\"\\\\u2700-\\\\u27bf\",eb=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",ev=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",ew=\"\\\\ufe0e\\\\ufe0f\",e_=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",eE=\"['’]\",eA=\"[\"+e_+\"]\",ex=\"[\"+em+\"]\",ek=\"[\"+eb+\"]\",eS=\"[^\"+eg+e_+\"\\\\d+\"+ey+eb+ev+\"]\",e$=\"\\ud83c[\\udffb-\\udfff]\",eC=\"[^\"+eg+\"]\",eP=\"(?:\\ud83c[\\udde6-\\uddff]){2}\",eI=\"[\\ud800-\\udbff][\\udc00-\\udfff]\",eO=\"[\"+ev+\"]\",eN=\"\\\\u200d\",eM=\"(?:\"+ek+\"|\"+eS+\")\",eR=\"(?:\"+eE+\"(?:d|ll|m|re|s|t|ve))?\",eT=\"(?:\"+eE+\"(?:D|LL|M|RE|S|T|VE))?\",eD=\"(?:\"+ex+\"|\"+e$+\")?\",eL=\"[\"+ew+\"]?\",ej=\"(?:\"+eN+\"(?:\"+[eC,eP,eI].join(\"|\")+\")\"+eL+eD+\")*\",eB=eL+eD+ej,eF=\"(?:\"+[\"[\"+ey+\"]\",eP,eI].join(\"|\")+\")\"+eB,eU=\"(?:\"+[eC+ex+\"?\",ex,eP,eI,\"[\"+eg+\"]\"].join(\"|\")+\")\",ez=RegExp(eE,\"g\"),eq=RegExp(ex,\"g\"),eH=RegExp(e$+\"(?=\"+e$+\")|\"+eU+eB,\"g\"),eG=RegExp([eO+\"?\"+ek+\"+\"+eR+\"(?=\"+[eA,eO,\"$\"].join(\"|\")+\")\",\"(?:\"+eO+\"|\"+eS+\")+\"+eT+\"(?=\"+[eA,eO+eM,\"$\"].join(\"|\")+\")\",eO+\"?\"+eM+\"+\"+eR,eO+\"+\"+eT,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",\"\\\\d+\",eF].join(\"|\"),\"g\"),eV=RegExp(\"[\"+eN+eg+em+ew+\"]\"),eW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eK=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],eY=-1,eZ={};eZ[$]=eZ[C]=eZ[P]=eZ[I]=eZ[O]=eZ[N]=eZ[M]=eZ[R]=eZ[T]=!0,eZ[u]=eZ[c]=eZ[k]=eZ[d]=eZ[S]=eZ[h]=eZ[f]=eZ[p]=eZ[m]=eZ[y]=eZ[b]=eZ[w]=eZ[_]=eZ[E]=eZ[x]=!1;var eJ={};eJ[u]=eJ[c]=eJ[k]=eJ[S]=eJ[d]=eJ[h]=eJ[$]=eJ[C]=eJ[P]=eJ[I]=eJ[O]=eJ[m]=eJ[y]=eJ[b]=eJ[w]=eJ[_]=eJ[E]=eJ[A]=eJ[N]=eJ[M]=eJ[R]=eJ[T]=!0,eJ[f]=eJ[p]=eJ[x]=!1;var eQ={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},eX=parseFloat,e0=parseInt,e1=\"object\"==typeof nP&&nP&&nP.Object===Object&&nP,e2=\"object\"==typeof self&&self&&self.Object===Object&&self,e3=e1||e2||Function(\"return this\")(),e5=t&&!t.nodeType&&t,e6=e5&&e&&!e.nodeType&&e,e4=e6&&e6.exports===e5,e8=e4&&e1.process,e9=function(){try{return e6&&e6.require&&e6.require(\"util\").types||e8&&e8.binding&&e8.binding(\"util\")}catch{}}(),e7=e9&&e9.isArrayBuffer,te=e9&&e9.isDate,tt=e9&&e9.isMap,tr=e9&&e9.isRegExp,tn=e9&&e9.isSet,ti=e9&&e9.isTypedArray;function ts(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function to(e,t,r,n){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function ta(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function tl(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function tu(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function tc(e,t){return!!(null==e?0:e.length)&&tw(e,t,0)>-1}function td(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function th(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function tf(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tp(e,t,r,n){var i=-1,s=null==e?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function tg(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tm(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ty=tx(\"length\");function tb(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function tv(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}function tw(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):tv(e,tE,r)}function t_(e,t,r,n){for(var i=r-1,s=e.length;++i<s;)if(n(e[i],t))return i;return -1}function tE(e){return e!=e}function tA(e,t){var r=null==e?0:e.length;return r?t$(e,t)/r:a}function tx(e){return function(t){return null==t?r:t[e]}}function tk(e){return function(t){return null==e?r:e[t]}}function tS(e,t,r,n,i){return i(e,function(e,i,s){r=n?(n=!1,e):t(r,e,i,s)}),r}function t$(e,t){for(var n,i=-1,s=e.length;++i<s;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function tC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tP(e){return e&&e.slice(0,tG(e)+1).replace(J,\"\")}function tI(e){return function(t){return e(t)}}function tO(e,t){return th(t,function(t){return e[t]})}function tN(e,t){return e.has(t)}function tM(e,t){for(var r=-1,n=e.length;++r<n&&tw(t,e[r],0)>-1;);return r}function tR(e,t){for(var r=e.length;r--&&tw(t,e[r],0)>-1;);return r}var tT=tk({À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),tD=tk({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function tL(e){return\"\\\\\"+eQ[e]}function tj(e){return eV.test(e)}function tB(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tF(e,t){return function(r){return e(t(r))}}function tU(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];(a===t||a===s)&&(e[r]=s,o[i++]=r)}return o}function tz(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tq(e){return tj(e)?function(e){for(var t=eH.lastIndex=0;eH.test(e);)++t;return t}(e):ty(e)}function tH(e){return tj(e)?e.match(eH)||[]:e.split(\"\")}function tG(e){for(var t=e.length;t--&&Q.test(e.charAt(t)););return t}var tV=tk({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"}),tW=function e(t){var Q,eg,em,ey,eb=(t=null==t?e3:tW.defaults(e3.Object(),t,tW.pick(e3,eK))).Array,ev=t.Date,ew=t.Error,e_=t.Function,eE=t.Math,eA=t.Object,ex=t.RegExp,ek=t.String,eS=t.TypeError,e$=eb.prototype,eC=e_.prototype,eP=eA.prototype,eI=t[\"__core-js_shared__\"],eO=eC.toString,eN=eP.hasOwnProperty,eM=0,eR=(Q=/[^.]+$/.exec(eI&&eI.keys&&eI.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+Q:\"\",eT=eP.toString,eD=eO.call(eA),eL=e3._,ej=ex(\"^\"+eO.call(eN).replace(Y,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),eB=e4?t.Buffer:r,eF=t.Symbol,eU=t.Uint8Array,eH=eB?eB.allocUnsafe:r,eV=tF(eA.getPrototypeOf,eA),eQ=eA.create,e1=eP.propertyIsEnumerable,e2=e$.splice,e5=eF?eF.isConcatSpreadable:r,e6=eF?eF.iterator:r,e8=eF?eF.toStringTag:r,e9=function(){try{var e=ip(eA,\"defineProperty\");return e({},\"\",{}),e}catch{}}(),ty=t.clearTimeout!==e3.clearTimeout&&t.clearTimeout,tk=ev&&ev.now!==e3.Date.now&&ev.now,tK=t.setTimeout!==e3.setTimeout&&t.setTimeout,tY=eE.ceil,tZ=eE.floor,tJ=eA.getOwnPropertySymbols,tQ=eB?eB.isBuffer:r,tX=t.isFinite,t0=e$.join,t1=tF(eA.keys,eA),t2=eE.max,t3=eE.min,t5=ev.now,t6=t.parseInt,t4=eE.random,t8=e$.reverse,t9=ip(t,\"DataView\"),t7=ip(t,\"Map\"),re=ip(t,\"Promise\"),rt=ip(t,\"Set\"),rr=ip(t,\"WeakMap\"),rn=ip(eA,\"create\"),ri=rr&&new rr,rs={},ro=iB(t9),ra=iB(t7),rl=iB(re),ru=iB(rt),rc=iB(rr),rd=eF?eF.prototype:r,rh=rd?rd.valueOf:r,rf=rd?rd.toString:r;function rp(e){if(sV(e)&&!sT(e)&&!(e instanceof rb)){if(e instanceof ry)return e;if(eN.call(e,\"__wrapped__\"))return iF(e)}return new ry(e)}var rg=function(){function e(){}return function(t){if(!sG(t))return{};if(eQ)return eQ(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function rm(){}function ry(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function rb(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function rv(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function r_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rE(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new r_;++t<r;)this.add(e[t])}function rA(e){var t=this.__data__=new rw(e);this.size=t.size}function rx(e,t){var r=sT(e),n=!r&&sR(e),i=!r&&!n&&sB(e),s=!r&&!n&&!i&&s0(e),o=r||n||i||s,a=o?tC(e.length,ek):[],l=a.length;for(var u in e)(t||eN.call(e,u))&&!(o&&(\"length\"==u||i&&(\"offset\"==u||\"parent\"==u)||s&&(\"buffer\"==u||\"byteLength\"==u||\"byteOffset\"==u)||i_(u,l)))&&a.push(u);return a}function rk(e){var t=e.length;return t?e[nu(0,t-1)]:r}function rS(e,t,n){(n===r||sO(e[t],n))&&(n!==r||t in e)||rO(e,t,n)}function r$(e,t,n){var i=e[t];eN.call(e,t)&&sO(i,n)&&(n!==r||t in e)||rO(e,t,n)}function rC(e,t){for(var r=e.length;r--;)if(sO(e[r][0],t))return r;return -1}function rP(e,t,r,n){return rj(e,function(e,i,s){t(n,e,r(e),s)}),n}function rI(e,t){return e&&nU(t,oh(t),e)}function rO(e,t,r){\"__proto__\"==t&&e9?e9(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rN(e,t){for(var n=-1,i=t.length,s=eb(i),o=null==e;++n<i;)s[n]=o?r:oa(e,t[n]);return s}function rM(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function rR(e,t,n,i,s,o){var a,l=1&t,c=2&t,f=4&t;if(n&&(a=s?n(e,i,s,o):n(e)),a!==r)return a;if(!sG(e))return e;var v=sT(e);if(v){if(x=e.length,D=new e.constructor(x),x&&\"string\"==typeof e[0]&&eN.call(e,\"index\")&&(D.index=e.index,D.input=e.input),a=D,!l)return nF(e,a)}else{var x,D,L,j,B,F=iy(e),U=F==p||F==g;if(sB(e))return nR(e,l);if(F==b||F==u||U&&!s){if(a=c||U?{}:iv(e),!l)return c?(L=(B=a)&&nU(e,of(e),B),nU(e,im(e),L)):(j=rI(a,e),nU(e,ig(e),j))}else{if(!eJ[F])return s?e:{};a=function(e,t,r){var n,i,s=e.constructor;switch(t){case k:return nT(e);case d:case h:return new s(+e);case S:return n=r?nT(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case $:case C:case P:case I:case O:case N:case M:case R:case T:return nD(e,r);case m:return new s;case y:case E:return new s(e);case w:return(i=new e.constructor(e.source,eo.exec(e))).lastIndex=e.lastIndex,i;case _:return new s;case A:return rh?eA(rh.call(e)):{}}}(e,F,l)}}o||(o=new rA);var z=o.get(e);if(z)return z;o.set(e,a),sJ(e)?e.forEach(function(r){a.add(rR(r,t,n,r,e,o))}):sW(e)&&e.forEach(function(r,i){a.set(i,rR(r,t,n,i,e,o))});var q=f?c?io:is:c?of:oh,H=v?r:q(e);return ta(H||e,function(r,i){H&&(r=e[i=r]),r$(a,i,rR(r,t,n,i,e,o))}),a}function rT(e,t,n){var i=n.length;if(null==e)return!i;for(e=eA(e);i--;){var s=n[i],o=t[s],a=e[s];if(a===r&&!(s in e)||!o(a))return!1}return!0}function rD(e,t,i){if(\"function\"!=typeof e)throw new eS(n);return iN(function(){e.apply(r,i)},t)}function rL(e,t,r,n){var i=-1,s=tc,o=!0,a=e.length,l=[],u=t.length;if(!a)return l;r&&(t=th(t,tI(r))),n?(s=td,o=!1):t.length>=200&&(s=tN,o=!1,t=new rE(t));e:for(;++i<a;){var c=e[i],d=null==r?c:r(c);if(c=n||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;l.push(c)}else s(t,d,n)||l.push(c)}return l}rp.templateSettings={escape:q,evaluate:H,interpolate:G,variable:\"\",imports:{_:rp}},rp.prototype=rm.prototype,rp.prototype.constructor=rp,ry.prototype=rg(rm.prototype),ry.prototype.constructor=ry,rb.prototype=rg(rm.prototype),rb.prototype.constructor=rb,rv.prototype.clear=function(){this.__data__=rn?rn(null):{},this.size=0},rv.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rv.prototype.get=function(e){var t=this.__data__;if(rn){var n=t[e];return n===i?r:n}return eN.call(t,e)?t[e]:r},rv.prototype.has=function(e){var t=this.__data__;return rn?t[e]!==r:eN.call(t,e)},rv.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rn&&t===r?i:t,this},rw.prototype.clear=function(){this.__data__=[],this.size=0},rw.prototype.delete=function(e){var t=this.__data__,r=rC(t,e);return!(r<0)&&(r==t.length-1?t.pop():e2.call(t,r,1),--this.size,!0)},rw.prototype.get=function(e){var t=this.__data__,n=rC(t,e);return n<0?r:t[n][1]},rw.prototype.has=function(e){return rC(this.__data__,e)>-1},rw.prototype.set=function(e,t){var r=this.__data__,n=rC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},r_.prototype.clear=function(){this.size=0,this.__data__={hash:new rv,map:new(t7||rw),string:new rv}},r_.prototype.delete=function(e){var t=id(this,e).delete(e);return this.size-=t?1:0,t},r_.prototype.get=function(e){return id(this,e).get(e)},r_.prototype.has=function(e){return id(this,e).has(e)},r_.prototype.set=function(e,t){var r=id(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},rE.prototype.add=rE.prototype.push=function(e){return this.__data__.set(e,i),this},rE.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.clear=function(){this.__data__=new rw,this.size=0},rA.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rA.prototype.get=function(e){return this.__data__.get(e)},rA.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rw){var n=r.__data__;if(!t7||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new r_(n)}return r.set(e,t),this.size=r.size,this};var rj=nH(rV),rB=nH(rW,!0);function rF(e,t){var r=!0;return rj(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rU(e,t,n){for(var i=-1,s=e.length;++i<s;){var o=e[i],a=t(o);if(null!=a&&(l===r?a==a&&!sX(a):n(a,l)))var l=a,u=o}return u}function rz(e,t){var r=[];return rj(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rq(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=iw),i||(i=[]);++s<o;){var a=e[s];t>0&&r(a)?t>1?rq(a,t-1,r,n,i):tf(i,a):n||(i[i.length]=a)}return i}var rH=nG(),rG=nG(!0);function rV(e,t){return e&&rH(e,t,oh)}function rW(e,t){return e&&rG(e,t,oh)}function rK(e,t){return tu(t,function(t){return sz(e[t])})}function rY(e,t){t=nO(t,e);for(var n=0,i=t.length;null!=e&&n<i;)e=e[ij(t[n++])];return n&&n==i?e:r}function rZ(e,t,r){var n=t(e);return sT(e)?n:tf(n,r(e))}function rJ(e){return null==e?e===r?\"[object Undefined]\":\"[object Null]\":e8&&e8 in eA(e)?function(e){var t=eN.call(e,e8),n=e[e8];try{e[e8]=r;var i=!0}catch{}var s=eT.call(e);return i&&(t?e[e8]=n:delete e[e8]),s}(e):eT.call(e)}function rQ(e,t){return e>t}function rX(e,t){return null!=e&&eN.call(e,t)}function r0(e,t){return null!=e&&t in eA(e)}function r1(e,t,n){for(var i=n?td:tc,s=e[0].length,o=e.length,a=o,l=eb(o),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=th(d,tI(t))),u=t3(d.length,u),l[a]=!n&&(t||s>=120&&d.length>=120)?new rE(a&&d):r}d=e[0];var h=-1,f=l[0];e:for(;++h<s&&c.length<u;){var p=d[h],g=t?t(p):p;if(p=n||0!==p?p:0,!(f?tN(f,g):i(c,g,n))){for(a=o;--a;){var m=l[a];if(!(m?tN(m,g):i(e[a],g,n)))continue e}f&&f.push(g),c.push(p)}}return c}function r2(e,t,n){t=nO(t,e);var i=null==(e=iP(e,t))?e:e[ij(iJ(t))];return null==i?r:ts(i,e,n)}function r3(e){return sV(e)&&rJ(e)==u}function r5(e,t,n,i,s){return e===t||(null!=e&&null!=t&&(sV(e)||sV(t))?function(e,t,n,i,s,o){var a=sT(e),l=sT(t),p=a?c:iy(e),g=l?c:iy(t);p=p==u?b:p,g=g==u?b:g;var v=p==b,x=g==b,$=p==g;if($&&sB(e)){if(!sB(t))return!1;a=!0,v=!1}if($&&!v)return o||(o=new rA),a||s0(e)?ir(e,t,n,i,s,o):function(e,t,r,n,i,s,o){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!s(new eU(e),new eU(t)));case d:case h:case y:return sO(+e,+t);case f:return e.name==t.name&&e.message==t.message;case w:case E:return e==t+\"\";case m:var a=tB;case _:var l=1&n;if(a||(a=tz),e.size!=t.size&&!l)break;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var c=ir(a(e),a(t),n,i,s,o);return o.delete(e),c;case A:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,p,n,i,s,o);if(!(1&n)){var C=v&&eN.call(e,\"__wrapped__\"),P=x&&eN.call(t,\"__wrapped__\");if(C||P){var I=C?e.value():e,O=P?t.value():t;return o||(o=new rA),s(I,O,n,i,o)}}return!!$&&(o||(o=new rA),function(e,t,n,i,s,o){var a=1&n,l=is(e),u=l.length;if(u!=is(t).length&&!a)return!1;for(var c=u;c--;){var d=l[c];if(!(a?d in t:eN.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=a;++c<u;){var m=e[d=l[c]],y=t[d];if(i)var b=a?i(y,m,d,t,e,o):i(m,y,d,e,t,o);if(!(b===r?m===y||s(m,y,n,i,o):b)){p=!1;break}g||(g=\"constructor\"==d)}if(p&&!g){var v=e.constructor,w=t.constructor;v!=w&&\"constructor\"in e&&\"constructor\"in t&&!(\"function\"==typeof v&&v instanceof v&&\"function\"==typeof w&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,s,o))}(e,t,n,i,r5,s):e!=e&&t!=t)}function r6(e,t,n,i){var s=n.length,o=s,a=!i;if(null==e)return!o;for(e=eA(e);s--;){var l=n[s];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<o;){var u=(l=n[s])[0],c=e[u],d=l[1];if(a&&l[2]){if(c===r&&!(u in e))return!1}else{var h=new rA;if(i)var f=i(c,d,u,e,t,h);if(!(f===r?r5(d,c,3,i,h):f))return!1}}return!0}function r4(e){return!(!sG(e)||eR&&eR in e)&&(sz(e)?ej:eu).test(iB(e))}function r8(e){return\"function\"==typeof e?e:null==e?oj:\"object\"==typeof e?sT(e)?nr(e[0],e[1]):nt(e):oW(e)}function r9(e){if(!iS(e))return t1(e);var t=[];for(var r in eA(e))eN.call(e,r)&&\"constructor\"!=r&&t.push(r);return t}function r7(e,t){return e<t}function ne(e,t){var r=-1,n=sL(e)?eb(e.length):[];return rj(e,function(e,i,s){n[++r]=t(e,i,s)}),n}function nt(e){var t=ih(e);return 1==t.length&&t[0][2]?i$(t[0][0],t[0][1]):function(r){return r===e||r6(r,e,t)}}function nr(e,t){var n;return iA(e)&&(n=t)==n&&!sG(n)?i$(ij(e),t):function(n){var i=oa(n,e);return i===r&&i===t?ol(n,e):r5(t,i,3)}}function nn(e,t,n,i,s){e!==t&&rH(t,function(o,a){if(s||(s=new rA),sG(o))!function(e,t,n,i,s,o,a){var l=iI(e,n),u=iI(t,n),c=a.get(u);if(c){rS(e,n,c);return}var d=o?o(l,u,n+\"\",e,t,a):r,h=d===r;if(h){var f=sT(u),p=!f&&sB(u),g=!f&&!p&&s0(u);d=u,f||p||g?sT(l)?d=l:sj(l)?d=nF(l):p?(h=!1,d=nR(u,!0)):g?(h=!1,d=nD(u,!0)):d=[]:sY(u)||sR(u)?(d=l,sR(l)?d=s9(l):(!sG(l)||sz(l))&&(d=iv(u))):h=!1}h&&(a.set(u,d),s(d,u,i,o,a),a.delete(u)),rS(e,n,d)}(e,t,a,n,nn,i,s);else{var l=i?i(iI(e,a),o,a+\"\",e,t,s):r;l===r&&(l=o),rS(e,a,l)}},of)}function ni(e,t){var n=e.length;if(n)return i_(t+=t<0?n:0,n)?e[t]:r}function ns(e,t,r){t=t.length?th(t,function(e){return sT(e)?function(t){return rY(t,1===e.length?e[0]:e)}:e}):[oj];var n=-1;return t=th(t,tI(ic())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(ne(e,function(e,r,i){return{criteria:th(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,o=i.length,a=r.length;++n<o;){var l=nL(i[n],s[n]);if(l){if(n>=a)return l;return l*(\"desc\"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function no(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var o=t[n],a=rY(e,o);r(a,o)&&nh(s,nO(o,e),a)}return s}function na(e,t,r,n){var i=n?t_:tw,s=-1,o=t.length,a=e;for(e===t&&(t=nF(t)),r&&(a=th(e,tI(r)));++s<o;)for(var l=0,u=t[s],c=r?r(u):u;(l=i(a,c,l,n))>-1;)a!==e&&e2.call(a,l,1),e2.call(e,l,1);return e}function nl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==s){var s=i;i_(i)?e2.call(e,i,1):nA(e,i)}}return e}function nu(e,t){return e+tZ(t4()*(t-e+1))}function nc(e,t){var r=\"\";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tZ(t/2))&&(e+=e);while(t);return r}function nd(e,t){return iM(iC(e,t,oj),e+\"\")}function nh(e,t,n,i){if(!sG(e))return e;t=nO(t,e);for(var s=-1,o=t.length,a=o-1,l=e;null!=l&&++s<o;){var u=ij(t[s]),c=n;if(\"__proto__\"===u||\"constructor\"===u||\"prototype\"===u)break;if(s!=a){var d=l[u];(c=i?i(d,u,l):r)===r&&(c=sG(d)?d:i_(t[s+1])?[]:{})}r$(l,u,c),l=l[u]}return e}var nf=ri?function(e,t){return ri.set(e,t),e}:oj,np=e9?function(e,t){return e9(e,\"toString\",{configurable:!0,enumerable:!1,value:oT(t),writable:!0})}:oj;function ng(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=eb(i);++n<i;)s[n]=e[n+t];return s}function nm(e,t){var r;return rj(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function ny(e,t,r){var n=0,i=null==e?n:e.length;if(\"number\"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var s=n+i>>>1,o=e[s];null!==o&&!sX(o)&&(r?o<=t:o<t)?n=s+1:i=s}return i}return nb(e,t,oj,r)}function nb(e,t,n,i){var s=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);for(var a=t!=t,l=null===t,u=sX(t),c=t===r;s<o;){var d=tZ((s+o)/2),h=n(e[d]),f=h!==r,p=null===h,g=h==h,m=sX(h);if(a)var y=i||g;else y=c?g&&(i||f):l?g&&f&&(i||!p):u?g&&f&&!p&&(i||!m):!p&&!m&&(i?h<=t:h<t);y?s=d+1:o=d}return t3(o,4294967294)}function nv(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var o=e[r],a=t?t(o):o;if(!r||!sO(a,l)){var l=a;s[i++]=0===o?0:o}}return s}function nw(e){return\"number\"==typeof e?e:sX(e)?a:+e}function n_(e){if(\"string\"==typeof e)return e;if(sT(e))return th(e,n_)+\"\";if(sX(e))return rf?rf.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-o?\"-0\":t}function nE(e,t,r){var n=-1,i=tc,s=e.length,o=!0,a=[],l=a;if(r)o=!1,i=td;else if(s>=200){var u=t?null:n4(e);if(u)return tz(u);o=!1,i=tN,l=new rE}else l=t?[]:a;e:for(;++n<s;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(c)}else i(l,d,r)||(l!==a&&l.push(d),a.push(c))}return a}function nA(e,t){return t=nO(t,e),null==(e=iP(e,t))||delete e[ij(iJ(t))]}function nx(e,t,r,n){return nh(e,t,r(rY(e,t)),n)}function nk(e,t,r,n){for(var i=e.length,s=n?i:-1;(n?s--:++s<i)&&t(e[s],s,e););return r?ng(e,n?0:s,n?s+1:i):ng(e,n?s+1:0,n?i:s)}function nS(e,t){var r=e;return r instanceof rb&&(r=r.value()),tp(t,function(e,t){return t.func.apply(t.thisArg,tf([e],t.args))},r)}function n$(e,t,r){var n=e.length;if(n<2)return n?nE(e[0]):[];for(var i=-1,s=eb(n);++i<n;)for(var o=e[i],a=-1;++a<n;)a!=i&&(s[i]=rL(s[i]||o,e[a],t,r));return nE(rq(s,1),t,r)}function nC(e,t,n){for(var i=-1,s=e.length,o=t.length,a={};++i<s;){var l=i<o?t[i]:r;n(a,e[i],l)}return a}function nP(e){return sj(e)?e:[]}function nI(e){return\"function\"==typeof e?e:oj}function nO(e,t){return sT(e)?e:iA(e,t)?[e]:iL(s7(e))}function nN(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ng(e,t,n)}var nM=ty||function(e){return e3.clearTimeout(e)};function nR(e,t){if(t)return e.slice();var r=e.length,n=eH?eH(r):new e.constructor(r);return e.copy(n),n}function nT(e){var t=new e.constructor(e.byteLength);return new eU(t).set(new eU(e)),t}function nD(e,t){var r=t?nT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nL(e,t){if(e!==t){var n=e!==r,i=null===e,s=e==e,o=sX(e),a=t!==r,l=null===t,u=t==t,c=sX(t);if(!l&&!c&&!o&&e>t||o&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!s)return 1;if(!i&&!o&&!c&&e<t||c&&n&&s&&!i&&!o||l&&n&&s||!a&&s||!u)return -1}return 0}function nj(e,t,r,n){for(var i=-1,s=e.length,o=r.length,a=-1,l=t.length,u=t2(s-o,0),c=eb(l+u),d=!n;++a<l;)c[a]=t[a];for(;++i<o;)(d||i<s)&&(c[r[i]]=e[i]);for(;u--;)c[a++]=e[i++];return c}function nB(e,t,r,n){for(var i=-1,s=e.length,o=-1,a=r.length,l=-1,u=t.length,c=t2(s-a,0),d=eb(c+u),h=!n;++i<c;)d[i]=e[i];for(var f=i;++l<u;)d[f+l]=t[l];for(;++o<a;)(h||i<s)&&(d[f+r[o]]=e[i++]);return d}function nF(e,t){var r=-1,n=e.length;for(t||(t=eb(n));++r<n;)t[r]=e[r];return t}function nU(e,t,n,i){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),s?rO(n,l,u):r$(n,l,u)}return n}function nz(e,t){return function(r,n){var i=sT(r)?to:rP,s=t?t():{};return i(r,e,ic(n,2),s)}}function nq(e){return nd(function(t,n){var i=-1,s=n.length,o=s>1?n[s-1]:r,a=s>2?n[2]:r;for(o=e.length>3&&\"function\"==typeof o?(s--,o):r,a&&iE(n[0],n[1],a)&&(o=s<3?r:o,s=1),t=eA(t);++i<s;){var l=n[i];l&&e(t,l,i,o)}return t})}function nH(e,t){return function(r,n){if(null==r)return r;if(!sL(r))return e(r,n);for(var i=r.length,s=t?i:-1,o=eA(r);(t?s--:++s<i)&&!1!==n(o[s],s,o););return r}}function nG(e){return function(t,r,n){for(var i=-1,s=eA(t),o=n(t),a=o.length;a--;){var l=o[e?a:++i];if(!1===r(s[l],l,s))break}return t}}function nV(e){return function(t){var n=tj(t=s7(t))?tH(t):r,i=n?n[0]:t.charAt(0),s=n?nN(n,1).join(\"\"):t.slice(1);return i[e]()+s}}function nW(e){return function(t){return tp(oN(ox(t).replace(ez,\"\")),e,\"\")}}function nK(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rg(e.prototype),n=e.apply(r,t);return sG(n)?n:r}}function nY(e){return function(t,n,i){var s=eA(t);if(!sL(t)){var o=ic(n,3);t=oh(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,i);return a>-1?s[o?t[a]:a]:r}}function nZ(e){return ii(function(t){var i=t.length,s=i,o=ry.prototype.thru;for(e&&t.reverse();s--;){var a=t[s];if(\"function\"!=typeof a)throw new eS(n);if(o&&!l&&\"wrapper\"==il(a))var l=new ry([],!0)}for(s=l?s:i;++s<i;){var u=il(a=t[s]),c=\"wrapper\"==u?ia(a):r;l=c&&ix(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[il(c[0])].apply(l,c[3]):1==a.length&&ix(a)?l[u]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&sT(r))return l.plant(r).value();for(var n=0,s=i?t[n].apply(this,e):r;++n<i;)s=t[n].call(this,s);return s}})}function nJ(e,t,n,i,s,o,a,l,u,c){var d=128&t,h=1&t,f=2&t,p=24&t,g=512&t,m=f?r:nK(e);return function y(){for(var b=arguments.length,v=eb(b),w=b;w--;)v[w]=arguments[w];if(p)var _=iu(y),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(v,_);if(i&&(v=nj(v,i,s,p)),o&&(v=nB(v,o,a,p)),b-=E,p&&b<c){var A=tU(v,_);return n5(e,t,nJ,y.placeholder,n,v,A,l,u,c-b)}var x=h?n:this,k=f?x[e]:e;return b=v.length,l?v=function(e,t){for(var n=e.length,i=t3(t.length,n),s=nF(e);i--;){var o=t[i];e[i]=i_(o,n)?s[o]:r}return e}(v,l):g&&b>1&&v.reverse(),d&&u<b&&(v.length=u),this&&this!==e3&&this instanceof y&&(k=m||nK(k)),k.apply(x,v)}}function nQ(e,t){return function(r,n){var i,s;return i=t(n),s={},rV(r,function(t,r,n){e(s,i(t),r,n)}),s}}function nX(e,t){return function(n,i){var s;if(n===r&&i===r)return t;if(n!==r&&(s=n),i!==r){if(s===r)return i;\"string\"==typeof n||\"string\"==typeof i?(n=n_(n),i=n_(i)):(n=nw(n),i=nw(i)),s=e(n,i)}return s}}function n0(e){return ii(function(t){return t=th(t,tI(ic())),nd(function(r){var n=this;return e(t,function(e){return ts(e,n,r)})})})}function n1(e,t){var n=(t=t===r?\" \":n_(t)).length;if(n<2)return n?nc(t,e):t;var i=nc(t,tY(e/tq(t)));return tj(t)?nN(tH(i),0,e).join(\"\"):i.slice(0,e)}function n2(e){return function(t,n,i){return i&&\"number\"!=typeof i&&iE(t,n,i)&&(n=i=r),t=s5(t),n===r?(n=t,t=0):n=s5(n),i=i===r?t<n?1:-1:s5(i),function(e,t,r,n){for(var i=-1,s=t2(tY((t-e)/(r||1)),0),o=eb(s);s--;)o[n?s:++i]=e,e+=r;return o}(t,n,i,e)}}function n3(e){return function(t,r){return\"string\"==typeof t&&\"string\"==typeof r||(t=s8(t),r=s8(r)),e(t,r)}}function n5(e,t,n,i,s,o,a,l,u,c){var d=8&t,h=d?a:r,f=d?r:a,p=d?o:r,g=d?r:o;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var m=[e,t,s,p,h,g,f,l,u,c],y=n.apply(r,m);return ix(e)&&iO(y,m),y.placeholder=i,iR(y,e,t)}function n6(e){var t=eE[e];return function(e,r){if(e=s8(e),(r=null==r?0:t3(s6(r),292))&&tX(e)){var n=(s7(e)+\"e\").split(\"e\");return+((n=(s7(t(n[0]+\"e\"+(+n[1]+r)))+\"e\").split(\"e\"))[0]+\"e\"+(+n[1]-r))}return t(e)}}var n4=rt&&1/tz(new rt([,-0]))[1]==o?function(e){return new rt(e)}:oq;function n8(e){return function(t){var r,n,i=iy(t);return i==m?tB(t):i==_?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}),n):th(e(t),function(e){return[e,t[e]]})}}function n9(e,t,i,o,a,l,u,c){var d=2&t;if(!d&&\"function\"!=typeof e)throw new eS(n);var h=o?o.length:0;if(h||(t&=-97,o=a=r),u=u===r?u:t2(s6(u),0),c=c===r?c:s6(c),h-=a?a.length:0,64&t){var f=o,p=a;o=a=r}var g=d?r:ia(e),m=[e,t,i,o,a,f,p,l,u,c];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,a=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(o||a){1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?nj(u,l,t[4]):l,e[4]=u?tU(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?nB(u,l,t[6]):l,e[6]=u?tU(e[5],s):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(m,g),e=m[0],t=m[1],i=m[2],o=m[3],a=m[4],(c=m[9]=m[9]===r?d?0:e.length:t2(m[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(y=e,b=t,v=c,w=nK(y),N=function e(){for(var t=arguments.length,n=eb(t),i=t,s=iu(e);i--;)n[i]=arguments[i];var o=t<3&&n[0]!==s&&n[t-1]!==s?[]:tU(n,s);return(t-=o.length)<v?n5(y,b,nJ,e.placeholder,r,n,o,r,r,v-t):ts(this&&this!==e3&&this instanceof e?w:y,this,n)}):32!=t&&33!=t||a.length?N=nJ.apply(r,m):(_=e,E=t,A=i,x=o,k=1&E,S=nK(_),N=function e(){for(var t=-1,r=arguments.length,n=-1,i=x.length,s=eb(i+r),o=this&&this!==e3&&this instanceof e?S:_;++n<i;)s[n]=x[n];for(;r--;)s[n++]=arguments[++t];return ts(o,k?A:this,s)});else var y,b,v,w,_,E,A,x,k,S,$,C,P,I,O,N=($=e,C=t,P=i,I=1&C,O=nK($),function e(){return(this&&this!==e3&&this instanceof e?O:$).apply(I?P:this,arguments)});return iR((g?nf:iO)(N,m),e,t)}function n7(e,t,n,i){return e===r||sO(e,eP[n])&&!eN.call(i,n)?t:e}function ie(e,t,n,i,s,o){return sG(e)&&sG(t)&&(o.set(t,e),nn(e,t,r,ie,o),o.delete(t)),e}function it(e){return sY(e)?r:e}function ir(e,t,n,i,s,o){var a=1&n,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,p=2&n?new rE:r;for(o.set(e,t),o.set(t,e);++h<l;){var g=e[h],m=t[h];if(i)var y=a?i(m,g,h,t,e,o):i(g,m,h,e,t,o);if(y!==r){if(y)continue;f=!1;break}if(p){if(!tm(t,function(e,t){if(!tN(p,t)&&(g===e||s(g,e,n,i,o)))return p.push(t)})){f=!1;break}}else if(!(g===m||s(g,m,n,i,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function ii(e){return iM(iC(e,r,iV),e+\"\")}function is(e){return rZ(e,oh,ig)}function io(e){return rZ(e,of,im)}var ia=ri?function(e){return ri.get(e)}:oq;function il(e){for(var t=e.name+\"\",r=rs[t],n=eN.call(rs,t)?r.length:0;n--;){var i=r[n],s=i.func;if(null==s||s==e)return i.name}return t}function iu(e){return(eN.call(rp,\"placeholder\")?rp:e).placeholder}function ic(){var e=rp.iteratee||oB;return e=e===oB?r8:e,arguments.length?e(arguments[0],arguments[1]):e}function id(e,t){var r,n=e.__data__;return(\"string\"==(r=typeof t)||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==t:null===t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}function ih(e){for(var t=oh(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,i==i&&!sG(i)]}return t}function ip(e,t){var n=null==e?r:e[t];return r4(n)?n:r}var ig=tJ?function(e){return null==e?[]:tu(tJ(e=eA(e)),function(t){return e1.call(e,t)})}:oZ,im=tJ?function(e){for(var t=[];e;)tf(t,ig(e)),e=eV(e);return t}:oZ,iy=rJ;function ib(e,t,r){t=nO(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=ij(t[n]);if(!(s=null!=e&&r(e,o)))break;e=e[o]}return s||++n!=i?s:!!(i=null==e?0:e.length)&&sH(i)&&i_(o,i)&&(sT(e)||sR(e))}function iv(e){return\"function\"!=typeof e.constructor||iS(e)?{}:rg(eV(e))}function iw(e){return sT(e)||sR(e)||!!(e5&&e&&e[e5])}function i_(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&(\"number\"==r||\"symbol\"!=r&&ed.test(e))&&e>-1&&e%1==0&&e<t}function iE(e,t,r){if(!sG(r))return!1;var n=typeof t;return(\"number\"==n?!!(sL(r)&&i_(t,r.length)):\"string\"==n&&t in r)&&sO(r[t],e)}function iA(e,t){if(sT(e))return!1;var r=typeof e;return!!(\"number\"==r||\"symbol\"==r||\"boolean\"==r||null==e||sX(e))||W.test(e)||!V.test(e)||null!=t&&e in eA(t)}function ix(e){var t=il(e),r=rp[t];if(\"function\"!=typeof r||!(t in rb.prototype))return!1;if(e===r)return!0;var n=ia(r);return!!n&&e===n[0]}(t9&&iy(new t9(new ArrayBuffer(1)))!=S||t7&&iy(new t7)!=m||re&&iy(re.resolve())!=v||rt&&iy(new rt)!=_||rr&&iy(new rr)!=x)&&(iy=function(e){var t=rJ(e),n=t==b?e.constructor:r,i=n?iB(n):\"\";if(i)switch(i){case ro:return S;case ra:return m;case rl:return v;case ru:return _;case rc:return x}return t});var ik=eI?sz:oJ;function iS(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||eP)}function i$(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in eA(n))}}function iC(e,t,n){return t=t2(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=t2(r.length-t,0),o=eb(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=eb(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),ts(e,this,a)}}function iP(e,t){return t.length<2?e:rY(e,ng(t,0,-1))}function iI(e,t){if(!(\"constructor\"===t&&\"function\"==typeof e[t])&&\"__proto__\"!=t)return e[t]}var iO=iT(nf),iN=tK||function(e,t){return e3.setTimeout(e,t)},iM=iT(np);function iR(e,t,r){var n,i,s=t+\"\";return iM(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?\"& \":\"\")+t[n],t=t.join(r>2?\", \":\" \"),e.replace(X,`{\n/* [wrapped with `+t+`] */\n`)}(s,(n=(i=s.match(ee))?i[1].split(et):[],ta(l,function(e){var t=\"_.\"+e[0];r&e[1]&&!tc(n,t)&&n.push(t)}),n.sort())))}function iT(e){var t=0,n=0;return function(){var i=t5(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function iD(e,t){var n=-1,i=e.length,s=i-1;for(t=t===r?i:t;++n<t;){var o=nu(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var iL=(em=(eg=sk(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(K,function(e,r,n,i){t.push(n?i.replace(ei,\"$1\"):r||e)}),t},function(e){return 500===em.size&&em.clear(),e})).cache,eg);function ij(e){if(\"string\"==typeof e||sX(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-o?\"-0\":t}function iB(e){if(null!=e){try{return eO.call(e)}catch{}try{return e+\"\"}catch{}}return\"\"}function iF(e){if(e instanceof rb)return e.clone();var t=new ry(e.__wrapped__,e.__chain__);return t.__actions__=nF(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iU=nd(function(e,t){return sj(e)?rL(e,rq(t,1,sj,!0)):[]}),iz=nd(function(e,t){var n=iJ(t);return sj(n)&&(n=r),sj(e)?rL(e,rq(t,1,sj,!0),ic(n,2)):[]}),iq=nd(function(e,t){var n=iJ(t);return sj(n)&&(n=r),sj(e)?rL(e,rq(t,1,sj,!0),r,n):[]});function iH(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:s6(r);return i<0&&(i=t2(n+i,0)),tv(e,ic(t,3),i)}function iG(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var s=i-1;return n!==r&&(s=s6(n),s=n<0?t2(i+s,0):t3(s,i-1)),tv(e,ic(t,3),s,!0)}function iV(e){return(null==e?0:e.length)?rq(e,1):[]}function iW(e){return e&&e.length?e[0]:r}var iK=nd(function(e){var t=th(e,nP);return t.length&&t[0]===e[0]?r1(t):[]}),iY=nd(function(e){var t=iJ(e),n=th(e,nP);return t===iJ(n)?t=r:n.pop(),n.length&&n[0]===e[0]?r1(n,ic(t,2)):[]}),iZ=nd(function(e){var t=iJ(e),n=th(e,nP);return(t=\"function\"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?r1(n,r,t):[]});function iJ(e){var t=null==e?0:e.length;return t?e[t-1]:r}var iQ=nd(iX);function iX(e,t){return e&&e.length&&t&&t.length?na(e,t):e}var i0=ii(function(e,t){var r=null==e?0:e.length,n=rN(e,t);return nl(e,th(t,function(e){return i_(e,r)?+e:e}).sort(nL)),n});function i1(e){return null==e?e:t8.call(e)}var i2=nd(function(e){return nE(rq(e,1,sj,!0))}),i3=nd(function(e){var t=iJ(e);return sj(t)&&(t=r),nE(rq(e,1,sj,!0),ic(t,2))}),i5=nd(function(e){var t=iJ(e);return t=\"function\"==typeof t?t:r,nE(rq(e,1,sj,!0),r,t)});function i6(e){if(!(e&&e.length))return[];var t=0;return e=tu(e,function(e){if(sj(e))return t=t2(e.length,t),!0}),tC(t,function(t){return th(e,tx(t))})}function i4(e,t){if(!(e&&e.length))return[];var n=i6(e);return null==t?n:th(n,function(e){return ts(t,r,e)})}var i8=nd(function(e,t){return sj(e)?rL(e,t):[]}),i9=nd(function(e){return n$(tu(e,sj))}),i7=nd(function(e){var t=iJ(e);return sj(t)&&(t=r),n$(tu(e,sj),ic(t,2))}),se=nd(function(e){var t=iJ(e);return t=\"function\"==typeof t?t:r,n$(tu(e,sj),r,t)}),st=nd(i6),sr=nd(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=\"function\"==typeof n?(e.pop(),n):r,i4(e,n)});function sn(e){var t=rp(e);return t.__chain__=!0,t}function si(e,t){return t(e)}var ss=ii(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,s=function(t){return rN(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rb&&i_(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:si,args:[s],thisArg:r}),new ry(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(s)}),so=nz(function(e,t,r){eN.call(e,r)?++e[r]:rO(e,r,1)}),sa=nY(iH),sl=nY(iG);function su(e,t){return(sT(e)?ta:rj)(e,ic(t,3))}function sc(e,t){return(sT(e)?function(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}:rB)(e,ic(t,3))}var sd=nz(function(e,t,r){eN.call(e,r)?e[r].push(t):rO(e,r,[t])}),sh=nd(function(e,t,r){var n=-1,i=\"function\"==typeof t,s=sL(e)?eb(e.length):[];return rj(e,function(e){s[++n]=i?ts(t,e,r):r2(e,t,r)}),s}),sf=nz(function(e,t,r){rO(e,r,t)});function sp(e,t){return(sT(e)?th:ne)(e,ic(t,3))}var sg=nz(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),sm=nd(function(e,t){if(null==e)return[];var r=t.length;return r>1&&iE(e,t[0],t[1])?t=[]:r>2&&iE(t[0],t[1],t[2])&&(t=[t[0]]),ns(e,rq(t,1),[])}),sy=tk||function(){return e3.Date.now()};function sb(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,n9(e,128,r,r,r,r,t)}function sv(e,t){var i;if(\"function\"!=typeof t)throw new eS(n);return e=s6(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var sw=nd(function(e,t,r){var n=1;if(r.length){var i=tU(r,iu(sw));n|=32}return n9(e,n,t,r,i)}),s_=nd(function(e,t,r){var n=3;if(r.length){var i=tU(r,iu(s_));n|=32}return n9(t,n,e,r,i)});function sE(e,t,i){var s,o,a,l,u,c,d=0,h=!1,f=!1,p=!0;if(\"function\"!=typeof e)throw new eS(n);function g(t){var n=s,i=o;return s=o=r,d=t,l=e.apply(i,n)}function m(e){var n=e-c,i=e-d;return c===r||n>=t||n<0||f&&i>=a}function y(){var e,r,n,i=sy();if(m(i))return b(i);u=iN(y,(e=i-c,r=i-d,n=t-e,f?t3(n,a-r):n))}function b(e){return u=r,p&&s?g(e):(s=o=r,l)}function v(){var e,n=sy(),i=m(n);if(s=arguments,o=this,c=n,i){if(u===r)return d=e=c,u=iN(y,t),h?g(e):l;if(f)return nM(u),u=iN(y,t),g(c)}return u===r&&(u=iN(y,t)),l}return t=s8(t)||0,sG(i)&&(h=!!i.leading,a=(f=\"maxWait\"in i)?t2(s8(i.maxWait)||0,t):a,p=\"trailing\"in i?!!i.trailing:p),v.cancel=function(){u!==r&&nM(u),d=0,s=c=o=u=r},v.flush=function(){return u===r?l:b(sy())},v}var sA=nd(function(e,t){return rD(e,1,t)}),sx=nd(function(e,t,r){return rD(e,s8(t)||0,r)});function sk(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new eS(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(sk.Cache||r_),r}function sS(e){if(\"function\"!=typeof e)throw new eS(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}sk.Cache=r_;var s$=nd(function(e,t){var r=(t=1==t.length&&sT(t[0])?th(t[0],tI(ic())):th(rq(t,1),tI(ic()))).length;return nd(function(n){for(var i=-1,s=t3(n.length,r);++i<s;)n[i]=t[i].call(this,n[i]);return ts(e,this,n)})}),sC=nd(function(e,t){var n=tU(t,iu(sC));return n9(e,32,r,t,n)}),sP=nd(function(e,t){var n=tU(t,iu(sP));return n9(e,64,r,t,n)}),sI=ii(function(e,t){return n9(e,256,r,r,r,t)});function sO(e,t){return e===t||e!=e&&t!=t}var sN=n3(rQ),sM=n3(function(e,t){return e>=t}),sR=r3(function(){return arguments}())?r3:function(e){return sV(e)&&eN.call(e,\"callee\")&&!e1.call(e,\"callee\")},sT=eb.isArray,sD=e7?tI(e7):function(e){return sV(e)&&rJ(e)==k};function sL(e){return null!=e&&sH(e.length)&&!sz(e)}function sj(e){return sV(e)&&sL(e)}var sB=tQ||oJ,sF=te?tI(te):function(e){return sV(e)&&rJ(e)==h};function sU(e){if(!sV(e))return!1;var t=rJ(e);return t==f||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!sY(e)}function sz(e){if(!sG(e))return!1;var t=rJ(e);return t==p||t==g||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function sq(e){return\"number\"==typeof e&&e==s6(e)}function sH(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function sG(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function sV(e){return null!=e&&\"object\"==typeof e}var sW=tt?tI(tt):function(e){return sV(e)&&iy(e)==m};function sK(e){return\"number\"==typeof e||sV(e)&&rJ(e)==y}function sY(e){if(!sV(e)||rJ(e)!=b)return!1;var t=eV(e);if(null===t)return!0;var r=eN.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof r&&r instanceof r&&eO.call(r)==eD}var sZ=tr?tI(tr):function(e){return sV(e)&&rJ(e)==w},sJ=tn?tI(tn):function(e){return sV(e)&&iy(e)==_};function sQ(e){return\"string\"==typeof e||!sT(e)&&sV(e)&&rJ(e)==E}function sX(e){return\"symbol\"==typeof e||sV(e)&&rJ(e)==A}var s0=ti?tI(ti):function(e){return sV(e)&&sH(e.length)&&!!eZ[rJ(e)]},s1=n3(r7),s2=n3(function(e,t){return e<=t});function s3(e){if(!e)return[];if(sL(e))return sQ(e)?tH(e):nF(e);if(e6&&e[e6])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e6]());var t=iy(e);return(t==m?tB:t==_?tz:o_)(e)}function s5(e){return e?(e=s8(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function s6(e){var t=s5(e),r=t%1;return t==t?r?t-r:t:0}function s4(e){return e?rM(s6(e),0,4294967295):0}function s8(e){if(\"number\"==typeof e)return e;if(sX(e))return a;if(sG(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=sG(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=tP(e);var r=el.test(e);return r||ec.test(e)?e0(e.slice(2),r?2:8):ea.test(e)?a:+e}function s9(e){return nU(e,of(e))}function s7(e){return null==e?\"\":n_(e)}var oe=nq(function(e,t){if(iS(t)||sL(t)){nU(t,oh(t),e);return}for(var r in t)eN.call(t,r)&&r$(e,r,t[r])}),ot=nq(function(e,t){nU(t,of(t),e)}),or=nq(function(e,t,r,n){nU(t,of(t),e,n)}),on=nq(function(e,t,r,n){nU(t,oh(t),e,n)}),oi=ii(rN),os=nd(function(e,t){e=eA(e);var n=-1,i=t.length,s=i>2?t[2]:r;for(s&&iE(t[0],t[1],s)&&(i=1);++n<i;)for(var o=t[n],a=of(o),l=-1,u=a.length;++l<u;){var c=a[l],d=e[c];(d===r||sO(d,eP[c])&&!eN.call(e,c))&&(e[c]=o[c])}return e}),oo=nd(function(e){return e.push(r,ie),ts(og,r,e)});function oa(e,t,n){var i=null==e?r:rY(e,t);return i===r?n:i}function ol(e,t){return null!=e&&ib(e,t,r0)}var ou=nQ(function(e,t,r){null!=t&&\"function\"!=typeof t.toString&&(t=eT.call(t)),e[t]=r},oT(oj)),oc=nQ(function(e,t,r){null!=t&&\"function\"!=typeof t.toString&&(t=eT.call(t)),eN.call(e,t)?e[t].push(r):e[t]=[r]},ic),od=nd(r2);function oh(e){return sL(e)?rx(e):r9(e)}function of(e){return sL(e)?rx(e,!0):function(e){if(!sG(e))return function(e){var t=[];if(null!=e)for(var r in eA(e))t.push(r);return t}(e);var t=iS(e),r=[];for(var n in e)\"constructor\"==n&&(t||!eN.call(e,n))||r.push(n);return r}(e)}var op=nq(function(e,t,r){nn(e,t,r)}),og=nq(function(e,t,r,n){nn(e,t,r,n)}),om=ii(function(e,t){var r={};if(null==e)return r;var n=!1;t=th(t,function(t){return t=nO(t,e),n||(n=t.length>1),t}),nU(e,io(e),r),n&&(r=rR(r,7,it));for(var i=t.length;i--;)nA(r,t[i]);return r}),oy=ii(function(e,t){return null==e?{}:no(e,t,function(t,r){return ol(e,r)})});function ob(e,t){if(null==e)return{};var r=th(io(e),function(e){return[e]});return t=ic(t),no(e,r,function(e,r){return t(e,r[0])})}var ov=n8(oh),ow=n8(of);function o_(e){return null==e?[]:tO(e,oh(e))}var oE=nW(function(e,t,r){return t=t.toLowerCase(),e+(r?oA(t):t)});function oA(e){return oO(s7(e).toLowerCase())}function ox(e){return(e=s7(e))&&e.replace(eh,tT).replace(eq,\"\")}var ok=nW(function(e,t,r){return e+(r?\"-\":\"\")+t.toLowerCase()}),oS=nW(function(e,t,r){return e+(r?\" \":\"\")+t.toLowerCase()}),o$=nV(\"toLowerCase\"),oC=nW(function(e,t,r){return e+(r?\"_\":\"\")+t.toLowerCase()}),oP=nW(function(e,t,r){return e+(r?\" \":\"\")+oO(t)}),oI=nW(function(e,t,r){return e+(r?\" \":\"\")+t.toUpperCase()}),oO=nV(\"toUpperCase\");function oN(e,t,n){var i;return e=s7(e),(t=n?r:t)===r?(i=e,eW.test(i))?e.match(eG)||[]:e.match(er)||[]:e.match(t)||[]}var oM=nd(function(e,t){try{return ts(e,r,t)}catch(e){return sU(e)?e:new ew(e)}}),oR=ii(function(e,t){return ta(t,function(t){rO(e,t=ij(t),sw(e[t],e))}),e});function oT(e){return function(){return e}}var oD=nZ(),oL=nZ(!0);function oj(e){return e}function oB(e){return r8(\"function\"==typeof e?e:rR(e,1))}var oF=nd(function(e,t){return function(r){return r2(r,e,t)}}),oU=nd(function(e,t){return function(r){return r2(e,r,t)}});function oz(e,t,r){var n=oh(t),i=rK(t,n);null!=r||sG(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=rK(t,oh(t)));var s=!(sG(r)&&\"chain\"in r)||!!r.chain,o=sz(e);return ta(i,function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__);return(r.__actions__=nF(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tf([this.value()],arguments))})}),e}function oq(){}var oH=n0(th),oG=n0(tl),oV=n0(tm);function oW(e){return iA(e)?tx(ij(e)):function(t){return rY(t,e)}}var oK=n2(),oY=n2(!0);function oZ(){return[]}function oJ(){return!1}var oQ=nX(function(e,t){return e+t},0),oX=n6(\"ceil\"),o0=nX(function(e,t){return e/t},1),o1=n6(\"floor\"),o2=nX(function(e,t){return e*t},1),o3=n6(\"round\"),o5=nX(function(e,t){return e-t},0);return rp.after=function(e,t){if(\"function\"!=typeof t)throw new eS(n);return e=s6(e),function(){if(--e<1)return t.apply(this,arguments)}},rp.ary=sb,rp.assign=oe,rp.assignIn=ot,rp.assignInWith=or,rp.assignWith=on,rp.at=oi,rp.before=sv,rp.bind=sw,rp.bindAll=oR,rp.bindKey=s_,rp.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return sT(e)?e:[e]},rp.chain=sn,rp.chunk=function(e,t,n){t=(n?iE(e,t,n):t===r)?1:t2(s6(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,o=0,a=eb(tY(i/t));s<i;)a[o++]=ng(e,s,s+=t);return a},rp.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var s=e[t];s&&(i[n++]=s)}return i},rp.concat=function(){var e=arguments.length;if(!e)return[];for(var t=eb(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return tf(sT(r)?nF(r):[r],rq(t,1))},rp.cond=function(e){var t=null==e?0:e.length,r=ic();return e=t?th(e,function(e){if(\"function\"!=typeof e[1])throw new eS(n);return[r(e[0]),e[1]]}):[],nd(function(r){for(var n=-1;++n<t;){var i=e[n];if(ts(i[0],this,r))return ts(i[1],this,r)}})},rp.conforms=function(e){var t,r;return r=oh(t=rR(e,1)),function(e){return rT(e,t,r)}},rp.constant=oT,rp.countBy=so,rp.create=function(e,t){var r=rg(e);return null==t?r:rI(r,t)},rp.curry=function e(t,n,i){n=i?r:n;var s=n9(t,8,r,r,r,r,r,n);return s.placeholder=e.placeholder,s},rp.curryRight=function e(t,n,i){n=i?r:n;var s=n9(t,16,r,r,r,r,r,n);return s.placeholder=e.placeholder,s},rp.debounce=sE,rp.defaults=os,rp.defaultsDeep=oo,rp.defer=sA,rp.delay=sx,rp.difference=iU,rp.differenceBy=iz,rp.differenceWith=iq,rp.drop=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=n||t===r?1:s6(t))<0?0:t,i):[]},rp.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,0,(t=i-(t=n||t===r?1:s6(t)))<0?0:t):[]},rp.dropRightWhile=function(e,t){return e&&e.length?nk(e,ic(t,3),!0,!0):[]},rp.dropWhile=function(e,t){return e&&e.length?nk(e,ic(t,3),!0):[]},rp.fill=function(e,t,n,i){var s=null==e?0:e.length;return s?(n&&\"number\"!=typeof n&&iE(e,t,n)&&(n=0,i=s),function(e,t,n,i){var s=e.length;for((n=s6(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:s6(i))<0&&(i+=s),i=n>i?0:s4(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},rp.filter=function(e,t){return(sT(e)?tu:rz)(e,ic(t,3))},rp.flatMap=function(e,t){return rq(sp(e,t),1)},rp.flatMapDeep=function(e,t){return rq(sp(e,t),o)},rp.flatMapDepth=function(e,t,n){return n=n===r?1:s6(n),rq(sp(e,t),n)},rp.flatten=iV,rp.flattenDeep=function(e){return(null==e?0:e.length)?rq(e,o):[]},rp.flattenDepth=function(e,t){return(null==e?0:e.length)?rq(e,t=t===r?1:s6(t)):[]},rp.flip=function(e){return n9(e,512)},rp.flow=oD,rp.flowRight=oL,rp.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},rp.functions=function(e){return null==e?[]:rK(e,oh(e))},rp.functionsIn=function(e){return null==e?[]:rK(e,of(e))},rp.groupBy=sd,rp.initial=function(e){return(null==e?0:e.length)?ng(e,0,-1):[]},rp.intersection=iK,rp.intersectionBy=iY,rp.intersectionWith=iZ,rp.invert=ou,rp.invertBy=oc,rp.invokeMap=sh,rp.iteratee=oB,rp.keyBy=sf,rp.keys=oh,rp.keysIn=of,rp.map=sp,rp.mapKeys=function(e,t){var r={};return t=ic(t,3),rV(e,function(e,n,i){rO(r,t(e,n,i),e)}),r},rp.mapValues=function(e,t){var r={};return t=ic(t,3),rV(e,function(e,n,i){rO(r,n,t(e,n,i))}),r},rp.matches=function(e){return nt(rR(e,1))},rp.matchesProperty=function(e,t){return nr(e,rR(t,1))},rp.memoize=sk,rp.merge=op,rp.mergeWith=og,rp.method=oF,rp.methodOf=oU,rp.mixin=oz,rp.negate=sS,rp.nthArg=function(e){return e=s6(e),nd(function(t){return ni(t,e)})},rp.omit=om,rp.omitBy=function(e,t){return ob(e,sS(ic(t)))},rp.once=function(e){return sv(2,e)},rp.orderBy=function(e,t,n,i){return null==e?[]:(sT(t)||(t=null==t?[]:[t]),sT(n=i?r:n)||(n=null==n?[]:[n]),ns(e,t,n))},rp.over=oH,rp.overArgs=s$,rp.overEvery=oG,rp.overSome=oV,rp.partial=sC,rp.partialRight=sP,rp.partition=sg,rp.pick=oy,rp.pickBy=ob,rp.property=oW,rp.propertyOf=function(e){return function(t){return null==e?r:rY(e,t)}},rp.pull=iQ,rp.pullAll=iX,rp.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?na(e,t,ic(r,2)):e},rp.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?na(e,t,r,n):e},rp.pullAt=i0,rp.range=oK,rp.rangeRight=oY,rp.rearg=sI,rp.reject=function(e,t){return(sT(e)?tu:rz)(e,sS(ic(t,3)))},rp.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],s=e.length;for(t=ic(t,3);++n<s;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return nl(e,i),r},rp.rest=function(e,t){if(\"function\"!=typeof e)throw new eS(n);return nd(e,t=t===r?t:s6(t))},rp.reverse=i1,rp.sampleSize=function(e,t,n){return t=(n?iE(e,t,n):t===r)?1:s6(t),(sT(e)?function(e,t){return iD(nF(e),rM(t,0,e.length))}:function(e,t){var r=o_(e);return iD(r,rM(t,0,r.length))})(e,t)},rp.set=function(e,t,r){return null==e?e:nh(e,t,r)},rp.setWith=function(e,t,n,i){return i=\"function\"==typeof i?i:r,null==e?e:nh(e,t,n,i)},rp.shuffle=function(e){return(sT(e)?function(e){return iD(nF(e))}:function(e){return iD(o_(e))})(e)},rp.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&\"number\"!=typeof n&&iE(e,t,n)?(t=0,n=i):(t=null==t?0:s6(t),n=n===r?i:s6(n)),ng(e,t,n)):[]},rp.sortBy=sm,rp.sortedUniq=function(e){return e&&e.length?nv(e):[]},rp.sortedUniqBy=function(e,t){return e&&e.length?nv(e,ic(t,2)):[]},rp.split=function(e,t,n){return n&&\"number\"!=typeof n&&iE(e,t,n)&&(t=n=r),(n=n===r?4294967295:n>>>0)?(e=s7(e))&&(\"string\"==typeof t||null!=t&&!sZ(t))&&!(t=n_(t))&&tj(e)?nN(tH(e),0,n):e.split(t,n):[]},rp.spread=function(e,t){if(\"function\"!=typeof e)throw new eS(n);return t=null==t?0:t2(s6(t),0),nd(function(r){var n=r[t],i=nN(r,0,t);return n&&tf(i,n),ts(e,this,i)})},rp.tail=function(e){var t=null==e?0:e.length;return t?ng(e,1,t):[]},rp.take=function(e,t,n){return e&&e.length?ng(e,0,(t=n||t===r?1:s6(t))<0?0:t):[]},rp.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=i-(t=n||t===r?1:s6(t)))<0?0:t,i):[]},rp.takeRightWhile=function(e,t){return e&&e.length?nk(e,ic(t,3),!1,!0):[]},rp.takeWhile=function(e,t){return e&&e.length?nk(e,ic(t,3)):[]},rp.tap=function(e,t){return t(e),e},rp.throttle=function(e,t,r){var i=!0,s=!0;if(\"function\"!=typeof e)throw new eS(n);return sG(r)&&(i=\"leading\"in r?!!r.leading:i,s=\"trailing\"in r?!!r.trailing:s),sE(e,t,{leading:i,maxWait:t,trailing:s})},rp.thru=si,rp.toArray=s3,rp.toPairs=ov,rp.toPairsIn=ow,rp.toPath=function(e){return sT(e)?th(e,ij):sX(e)?[e]:nF(iL(s7(e)))},rp.toPlainObject=s9,rp.transform=function(e,t,r){var n=sT(e),i=n||sB(e)||s0(e);if(t=ic(t,4),null==r){var s=e&&e.constructor;r=i?n?new s:[]:sG(e)&&sz(s)?rg(eV(e)):{}}return(i?ta:rV)(e,function(e,n,i){return t(r,e,n,i)}),r},rp.unary=function(e){return sb(e,1)},rp.union=i2,rp.unionBy=i3,rp.unionWith=i5,rp.uniq=function(e){return e&&e.length?nE(e):[]},rp.uniqBy=function(e,t){return e&&e.length?nE(e,ic(t,2)):[]},rp.uniqWith=function(e,t){return t=\"function\"==typeof t?t:r,e&&e.length?nE(e,r,t):[]},rp.unset=function(e,t){return null==e||nA(e,t)},rp.unzip=i6,rp.unzipWith=i4,rp.update=function(e,t,r){return null==e?e:nx(e,t,nI(r))},rp.updateWith=function(e,t,n,i){return i=\"function\"==typeof i?i:r,null==e?e:nx(e,t,nI(n),i)},rp.values=o_,rp.valuesIn=function(e){return null==e?[]:tO(e,of(e))},rp.without=i8,rp.words=oN,rp.wrap=function(e,t){return sC(nI(t),e)},rp.xor=i9,rp.xorBy=i7,rp.xorWith=se,rp.zip=st,rp.zipObject=function(e,t){return nC(e||[],t||[],r$)},rp.zipObjectDeep=function(e,t){return nC(e||[],t||[],nh)},rp.zipWith=sr,rp.entries=ov,rp.entriesIn=ow,rp.extend=ot,rp.extendWith=or,oz(rp,rp),rp.add=oQ,rp.attempt=oM,rp.camelCase=oE,rp.capitalize=oA,rp.ceil=oX,rp.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=s8(n))==n?n:0),t!==r&&(t=(t=s8(t))==t?t:0),rM(s8(e),t,n)},rp.clone=function(e){return rR(e,4)},rp.cloneDeep=function(e){return rR(e,5)},rp.cloneDeepWith=function(e,t){return rR(e,5,t=\"function\"==typeof t?t:r)},rp.cloneWith=function(e,t){return rR(e,4,t=\"function\"==typeof t?t:r)},rp.conformsTo=function(e,t){return null==t||rT(e,t,oh(t))},rp.deburr=ox,rp.defaultTo=function(e,t){return null==e||e!=e?t:e},rp.divide=o0,rp.endsWith=function(e,t,n){e=s7(e),t=n_(t);var i=e.length,s=n=n===r?i:rM(s6(n),0,i);return(n-=t.length)>=0&&e.slice(n,s)==t},rp.eq=sO,rp.escape=function(e){return(e=s7(e))&&z.test(e)?e.replace(F,tD):e},rp.escapeRegExp=function(e){return(e=s7(e))&&Z.test(e)?e.replace(Y,\"\\\\$&\"):e},rp.every=function(e,t,n){var i=sT(e)?tl:rF;return n&&iE(e,t,n)&&(t=r),i(e,ic(t,3))},rp.find=sa,rp.findIndex=iH,rp.findKey=function(e,t){return tb(e,ic(t,3),rV)},rp.findLast=sl,rp.findLastIndex=iG,rp.findLastKey=function(e,t){return tb(e,ic(t,3),rW)},rp.floor=o1,rp.forEach=su,rp.forEachRight=sc,rp.forIn=function(e,t){return null==e?e:rH(e,ic(t,3),of)},rp.forInRight=function(e,t){return null==e?e:rG(e,ic(t,3),of)},rp.forOwn=function(e,t){return e&&rV(e,ic(t,3))},rp.forOwnRight=function(e,t){return e&&rW(e,ic(t,3))},rp.get=oa,rp.gt=sN,rp.gte=sM,rp.has=function(e,t){return null!=e&&ib(e,t,rX)},rp.hasIn=ol,rp.head=iW,rp.identity=oj,rp.includes=function(e,t,r,n){e=sL(e)?e:o_(e),r=r&&!n?s6(r):0;var i=e.length;return r<0&&(r=t2(i+r,0)),sQ(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tw(e,t,r)>-1},rp.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:s6(r);return i<0&&(i=t2(n+i,0)),tw(e,t,i)},rp.inRange=function(e,t,n){var i,s,o;return t=s5(t),n===r?(n=t,t=0):n=s5(n),(i=e=s8(e))>=t3(s=t,o=n)&&i<t2(s,o)},rp.invoke=od,rp.isArguments=sR,rp.isArray=sT,rp.isArrayBuffer=sD,rp.isArrayLike=sL,rp.isArrayLikeObject=sj,rp.isBoolean=function(e){return!0===e||!1===e||sV(e)&&rJ(e)==d},rp.isBuffer=sB,rp.isDate=sF,rp.isElement=function(e){return sV(e)&&1===e.nodeType&&!sY(e)},rp.isEmpty=function(e){if(null==e)return!0;if(sL(e)&&(sT(e)||\"string\"==typeof e||\"function\"==typeof e.splice||sB(e)||s0(e)||sR(e)))return!e.length;var t=iy(e);if(t==m||t==_)return!e.size;if(iS(e))return!r9(e).length;for(var r in e)if(eN.call(e,r))return!1;return!0},rp.isEqual=function(e,t){return r5(e,t)},rp.isEqualWith=function(e,t,n){var i=(n=\"function\"==typeof n?n:r)?n(e,t):r;return i===r?r5(e,t,r,n):!!i},rp.isError=sU,rp.isFinite=function(e){return\"number\"==typeof e&&tX(e)},rp.isFunction=sz,rp.isInteger=sq,rp.isLength=sH,rp.isMap=sW,rp.isMatch=function(e,t){return e===t||r6(e,t,ih(t))},rp.isMatchWith=function(e,t,n){return n=\"function\"==typeof n?n:r,r6(e,t,ih(t),n)},rp.isNaN=function(e){return sK(e)&&e!=+e},rp.isNative=function(e){if(ik(e))throw new ew(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return r4(e)},rp.isNil=function(e){return null==e},rp.isNull=function(e){return null===e},rp.isNumber=sK,rp.isObject=sG,rp.isObjectLike=sV,rp.isPlainObject=sY,rp.isRegExp=sZ,rp.isSafeInteger=function(e){return sq(e)&&e>=-9007199254740991&&e<=9007199254740991},rp.isSet=sJ,rp.isString=sQ,rp.isSymbol=sX,rp.isTypedArray=s0,rp.isUndefined=function(e){return e===r},rp.isWeakMap=function(e){return sV(e)&&iy(e)==x},rp.isWeakSet=function(e){return sV(e)&&\"[object WeakSet]\"==rJ(e)},rp.join=function(e,t){return null==e?\"\":t0.call(e,t)},rp.kebabCase=ok,rp.last=iJ,rp.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var s=i;return n!==r&&(s=(s=s6(n))<0?t2(i+s,0):t3(s,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,s):tv(e,tE,s,!0)},rp.lowerCase=oS,rp.lowerFirst=o$,rp.lt=s1,rp.lte=s2,rp.max=function(e){return e&&e.length?rU(e,oj,rQ):r},rp.maxBy=function(e,t){return e&&e.length?rU(e,ic(t,2),rQ):r},rp.mean=function(e){return tA(e,oj)},rp.meanBy=function(e,t){return tA(e,ic(t,2))},rp.min=function(e){return e&&e.length?rU(e,oj,r7):r},rp.minBy=function(e,t){return e&&e.length?rU(e,ic(t,2),r7):r},rp.stubArray=oZ,rp.stubFalse=oJ,rp.stubObject=function(){return{}},rp.stubString=function(){return\"\"},rp.stubTrue=function(){return!0},rp.multiply=o2,rp.nth=function(e,t){return e&&e.length?ni(e,s6(t)):r},rp.noConflict=function(){return e3._===this&&(e3._=eL),this},rp.noop=oq,rp.now=sy,rp.pad=function(e,t,r){e=s7(e);var n=(t=s6(t))?tq(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n1(tZ(i),r)+e+n1(tY(i),r)},rp.padEnd=function(e,t,r){e=s7(e);var n=(t=s6(t))?tq(e):0;return t&&n<t?e+n1(t-n,r):e},rp.padStart=function(e,t,r){e=s7(e);var n=(t=s6(t))?tq(e):0;return t&&n<t?n1(t-n,r)+e:e},rp.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t6(s7(e).replace(J,\"\"),t||0)},rp.random=function(e,t,n){if(n&&\"boolean\"!=typeof n&&iE(e,t,n)&&(t=n=r),n===r&&(\"boolean\"==typeof t?(n=t,t=r):\"boolean\"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=s5(e),t===r?(t=e,e=0):t=s5(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var s=t4();return t3(e+s*(t-e+eX(\"1e-\"+((s+\"\").length-1))),t)}return nu(e,t)},rp.reduce=function(e,t,r){var n=sT(e)?tp:tS,i=arguments.length<3;return n(e,ic(t,4),r,i,rj)},rp.reduceRight=function(e,t,r){var n=sT(e)?tg:tS,i=arguments.length<3;return n(e,ic(t,4),r,i,rB)},rp.repeat=function(e,t,n){return t=(n?iE(e,t,n):t===r)?1:s6(t),nc(s7(e),t)},rp.replace=function(){var e=arguments,t=s7(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rp.result=function(e,t,n){t=nO(t,e);var i=-1,s=t.length;for(s||(s=1,e=r);++i<s;){var o=null==e?r:e[ij(t[i])];o===r&&(i=s,o=n),e=sz(o)?o.call(e):o}return e},rp.round=o3,rp.runInContext=e,rp.sample=function(e){return(sT(e)?rk:function(e){return rk(o_(e))})(e)},rp.size=function(e){if(null==e)return 0;if(sL(e))return sQ(e)?tq(e):e.length;var t=iy(e);return t==m||t==_?e.size:r9(e).length},rp.snakeCase=oC,rp.some=function(e,t,n){var i=sT(e)?tm:nm;return n&&iE(e,t,n)&&(t=r),i(e,ic(t,3))},rp.sortedIndex=function(e,t){return ny(e,t)},rp.sortedIndexBy=function(e,t,r){return nb(e,t,ic(r,2))},rp.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ny(e,t);if(n<r&&sO(e[n],t))return n}return -1},rp.sortedLastIndex=function(e,t){return ny(e,t,!0)},rp.sortedLastIndexBy=function(e,t,r){return nb(e,t,ic(r,2),!0)},rp.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ny(e,t,!0)-1;if(sO(e[r],t))return r}return -1},rp.startCase=oP,rp.startsWith=function(e,t,r){return e=s7(e),r=null==r?0:rM(s6(r),0,e.length),t=n_(t),e.slice(r,r+t.length)==t},rp.subtract=o5,rp.sum=function(e){return e&&e.length?t$(e,oj):0},rp.sumBy=function(e,t){return e&&e.length?t$(e,ic(t,2)):0},rp.template=function(e,t,n){var i=rp.templateSettings;n&&iE(e,t,n)&&(t=r),e=s7(e),t=or({},t,i,n7);var s,o,a=or({},t.imports,i.imports,n7),l=oh(a),u=tO(a,l),c=0,d=t.interpolate||ef,h=\"__p += '\",f=ex((t.escape||ef).source+\"|\"+d.source+\"|\"+(d===G?es:ef).source+\"|\"+(t.evaluate||ef).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(eN.call(t,\"sourceURL\")?(t.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++eY+\"]\")+`\n`;e.replace(f,function(t,r,n,i,a,l){return n||(n=i),h+=e.slice(c,l).replace(ep,tL),r&&(s=!0,h+=`' +\n__e(`+r+`) +\n'`),a&&(o=!0,h+=`';\n`+a+`;\n__p += '`),n&&(h+=`' +\n((__t = (`+n+`)) == null ? '' : __t) +\n'`),c=l+t.length,t}),h+=`';\n`;var g=eN.call(t,\"variable\")&&t.variable;if(g){if(en.test(g))throw new ew(\"Invalid `variable` option passed into `_.template`\")}else h=`with (obj) {\n`+h+`\n}\n`;h=(o?h.replace(D,\"\"):h).replace(L,\"$1\").replace(j,\"$1;\"),h=\"function(\"+(g||\"obj\")+`) {\n`+(g?\"\":`obj || (obj = {});\n`)+\"var __t, __p = ''\"+(s?\", __e = _.escape\":\"\")+(o?`, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n`:`;\n`)+h+`return __p\n}`;var m=oM(function(){return e_(l,p+\"return \"+h).apply(r,u)});if(m.source=h,sU(m))throw m;return m},rp.times=function(e,t){if((e=s6(e))<1||e>9007199254740991)return[];var r=4294967295,n=t3(e,4294967295);t=ic(t),e-=4294967295;for(var i=tC(n,t);++r<e;)t(r);return i},rp.toFinite=s5,rp.toInteger=s6,rp.toLength=s4,rp.toLower=function(e){return s7(e).toLowerCase()},rp.toNumber=s8,rp.toSafeInteger=function(e){return e?rM(s6(e),-9007199254740991,9007199254740991):0===e?e:0},rp.toString=s7,rp.toUpper=function(e){return s7(e).toUpperCase()},rp.trim=function(e,t,n){if((e=s7(e))&&(n||t===r))return tP(e);if(!e||!(t=n_(t)))return e;var i=tH(e),s=tH(t),o=tM(i,s),a=tR(i,s)+1;return nN(i,o,a).join(\"\")},rp.trimEnd=function(e,t,n){if((e=s7(e))&&(n||t===r))return e.slice(0,tG(e)+1);if(!e||!(t=n_(t)))return e;var i=tH(e),s=tR(i,tH(t))+1;return nN(i,0,s).join(\"\")},rp.trimStart=function(e,t,n){if((e=s7(e))&&(n||t===r))return e.replace(J,\"\");if(!e||!(t=n_(t)))return e;var i=tH(e),s=tM(i,tH(t));return nN(i,s).join(\"\")},rp.truncate=function(e,t){var n=30,i=\"...\";if(sG(t)){var s=\"separator\"in t?t.separator:s;n=\"length\"in t?s6(t.length):n,i=\"omission\"in t?n_(t.omission):i}var o=(e=s7(e)).length;if(tj(e)){var a=tH(e);o=a.length}if(n>=o)return e;var l=n-tq(i);if(l<1)return i;var u=a?nN(a,0,l).join(\"\"):e.slice(0,l);if(s===r)return u+i;if(a&&(l+=u.length-l),sZ(s)){if(e.slice(l).search(s)){var c,d=u;for(s.global||(s=ex(s.source,s7(eo.exec(s))+\"g\")),s.lastIndex=0;c=s.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(n_(s),l)!=l){var f=u.lastIndexOf(s);f>-1&&(u=u.slice(0,f))}return u+i},rp.unescape=function(e){return(e=s7(e))&&U.test(e)?e.replace(B,tV):e},rp.uniqueId=function(e){var t=++eM;return s7(e)+t},rp.upperCase=oI,rp.upperFirst=oO,rp.each=su,rp.eachRight=sc,rp.first=iW,oz(rp,(ey={},rV(rp,function(e,t){eN.call(rp.prototype,t)||(ey[t]=e)}),ey),{chain:!1}),rp.VERSION=\"4.17.21\",ta([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){rp[e].placeholder=rp}),ta([\"drop\",\"take\"],function(e,t){rb.prototype[e]=function(n){n=n===r?1:t2(s6(n),0);var i=this.__filtered__&&!t?new rb(this):this.clone();return i.__filtered__?i.__takeCount__=t3(n,i.__takeCount__):i.__views__.push({size:t3(n,4294967295),type:e+(i.__dir__<0?\"Right\":\"\")}),i},rb.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),ta([\"filter\",\"map\",\"takeWhile\"],function(e,t){var r=t+1,n=1==r||3==r;rb.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ic(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),ta([\"head\",\"last\"],function(e,t){var r=\"take\"+(t?\"Right\":\"\");rb.prototype[e]=function(){return this[r](1).value()[0]}}),ta([\"initial\",\"tail\"],function(e,t){var r=\"drop\"+(t?\"\":\"Right\");rb.prototype[e]=function(){return this.__filtered__?new rb(this):this[r](1)}}),rb.prototype.compact=function(){return this.filter(oj)},rb.prototype.find=function(e){return this.filter(e).head()},rb.prototype.findLast=function(e){return this.reverse().find(e)},rb.prototype.invokeMap=nd(function(e,t){return\"function\"==typeof e?new rb(this):this.map(function(r){return r2(r,e,t)})}),rb.prototype.reject=function(e){return this.filter(sS(ic(e)))},rb.prototype.slice=function(e,t){e=s6(e);var n=this;return n.__filtered__&&(e>0||t<0)?new rb(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=s6(t))<0?n.dropRight(-t):n.take(t-e)),n)},rb.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rb.prototype.toArray=function(){return this.take(4294967295)},rV(rb.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=rp[i?\"take\"+(\"last\"==t?\"Right\":\"\"):t],o=i||/^find/.test(t);s&&(rp.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof rb,u=a[0],c=l||sT(t),d=function(e){var t=s.apply(rp,tf([e],a));return i&&h?t[0]:t};c&&n&&\"function\"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,g=l&&!f;if(!o&&c){t=g?t:new rb(this);var m=e.apply(t,a);return m.__actions__.push({func:si,args:[d],thisArg:r}),new ry(m,h)}return p&&g?e.apply(this,a):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),ta([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=e$[e],r=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",n=/^(?:pop|shift)$/.test(e);rp.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(sT(i)?i:[],e)}return this[r](function(r){return t.apply(sT(r)?r:[],e)})}}),rV(rb.prototype,function(e,t){var r=rp[t];if(r){var n=r.name+\"\";eN.call(rs,n)||(rs[n]=[]),rs[n].push({name:t,func:r})}}),rs[nJ(r,2).name]=[{name:\"wrapper\",func:r}],rb.prototype.clone=function(){var e=new rb(this.__wrapped__);return e.__actions__=nF(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nF(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nF(this.__views__),e},rb.prototype.reverse=function(){if(this.__filtered__){var e=new rb(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rb.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=sT(e),n=t<0,i=r?e.length:0,s=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var s=r[n],o=s.size;switch(s.type){case\"drop\":e+=o;break;case\"dropRight\":t-=o;break;case\"take\":t=t3(t,e+o);break;case\"takeRight\":e=t2(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,l=a-o,u=n?a:o-1,c=this.__iteratees__,d=c.length,h=0,f=t3(l,this.__takeCount__);if(!r||!n&&i==l&&f==l)return nS(e,this.__actions__);var p=[];e:for(;l--&&h<f;){u+=t;for(var g=-1,m=e[u];++g<d;){var y=c[g],b=y.iteratee,v=y.type,w=b(m);if(2==v)m=w;else if(!w){if(1==v)continue e;break e}}p[h++]=m}return p},rp.prototype.at=ss,rp.prototype.chain=function(){return sn(this)},rp.prototype.commit=function(){return new ry(this.value(),this.__chain__)},rp.prototype.next=function(){this.__values__===r&&(this.__values__=s3(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}},rp.prototype.plant=function(e){for(var t,n=this;n instanceof rm;){var i=iF(n);i.__index__=0,i.__values__=r,t?s.__wrapped__=i:t=i;var s=i;n=n.__wrapped__}return s.__wrapped__=e,t},rp.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rb){var t=e;return this.__actions__.length&&(t=new rb(this)),(t=t.reverse()).__actions__.push({func:si,args:[i1],thisArg:r}),new ry(t,this.__chain__)}return this.thru(i1)},rp.prototype.toJSON=rp.prototype.valueOf=rp.prototype.value=function(){return nS(this.__wrapped__,this.__actions__)},rp.prototype.first=rp.prototype.head,e6&&(rp.prototype[e6]=function(){return this}),rp}();e6?((e6.exports=tW)._=tW,e5._=tW):e3._=tW}).call(nP)}(nI,nI.exports);var nO=Object.defineProperty,nN=Object.defineProperties,nM=Object.getOwnPropertyDescriptors,nR=Object.getOwnPropertySymbols,nT=Object.prototype.hasOwnProperty,nD=Object.prototype.propertyIsEnumerable,nL=(e,t,r)=>t in e?nO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nj=(e,t)=>{for(var r in t||(t={}))nT.call(t,r)&&nL(e,r,t[r]);if(nR)for(var r of nR(t))nD.call(t,r)&&nL(e,r,t[r]);return e},nB=(e,t)=>nN(e,nM(t));function nF(e,t,r){var n;let i=(0,o.DQe)(e);return(null==(n=t.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function nU(e){return e.includes(\":\")?e.split(\":\")[1]:e}function nz(e){return e.map(e=>`${e.split(\":\")[0]}:${e.split(\":\")[1]}`)}function nq(e={},t={}){let r=nH(e),n=nH(t);return nI.exports.merge(r,n)}function nH(e){var t,r,n,i;let s={};if(!(0,o.L5o)(e))return s;for(let[a,l]of Object.entries(e)){let e=(0,o.gpE)(a)?[a]:l.chains,u=l.methods||[],c=l.events||[],d=l.rpcMap||{},h=(0,o.Maj)(a);s[h]=nB(nj(nj({},s[h]),l),{chains:(0,o.eGA)(e,null==(t=s[h])?void 0:t.chains),methods:(0,o.eGA)(u,null==(r=s[h])?void 0:r.methods),events:(0,o.eGA)(c,null==(n=s[h])?void 0:n.events),rpcMap:nj(nj({},d),null==(i=s[h])?void 0:i.rpcMap)})}return s}function nG(e){return e.includes(\":\")?e.split(\":\")[2]:e}function nV(e){let t={};for(let[r,n]of Object.entries(e)){let e=n.methods||[],i=n.events||[],s=n.accounts||[],a=(0,o.gpE)(r)?[r]:n.chains?n.chains:nz(n.accounts);t[r]={chains:a,methods:e,events:i,accounts:s}}return t}function nW(e){return\"number\"==typeof e?e:e.includes(\"0x\")?parseInt(e,16):isNaN(Number(e=e.includes(\":\")?e.split(\":\")[1]:e))?e:Number(e)}let nK={},nY=e=>nK[e],nZ=(e,t)=>{nK[e]=t};class nJ{constructor(e){this.name=\"polkadot\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}var nQ=Object.defineProperty,nX=Object.defineProperties,n0=Object.getOwnPropertyDescriptors,n1=Object.getOwnPropertySymbols,n2=Object.prototype.hasOwnProperty,n3=Object.prototype.propertyIsEnumerable,n5=(e,t,r)=>t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n6=(e,t)=>{for(var r in t||(t={}))n2.call(t,r)&&n5(e,r,t[r]);if(n1)for(var r of n1(t))n3.call(t,r)&&n5(e,r,t[r]);return e},n4=(e,t)=>nX(e,n0(t));class n8{constructor(e){this.name=\"eip155\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case\"eth_requestAccounts\":case\"eth_accounts\":return this.getAccounts();case\"wallet_switchEthereumChain\":return await this.handleSwitchChain(e);case\"eth_chainId\":return parseInt(this.getDefaultChain());case\"wallet_getCapabilities\":return await this.getCapabilities(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(nC,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}createHttpProvider(e,t){let r=t||nF(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=parseInt(nU(t));e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,r;let n=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:\"0x0\",i=parseInt(n=n.startsWith(\"0x\")?n:`0x${n}`,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else if(this.namespace.methods.includes(\"wallet_switchEthereumChain\"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`);else throw Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var t,r,n;let i=null==(r=null==(t=e.request)?void 0:t.params)?void 0:r[0];if(!i)throw Error(\"Missing address parameter in `wallet_getCapabilities` request\");let s=this.client.session.get(e.topic),o=(null==(n=s?.sessionProperties)?void 0:n.capabilities)||{};if(null!=o&&o[i])return o?.[i];let a=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:n4(n6({},s.sessionProperties||{}),{capabilities:n4(n6({},o||{}),{[i]:a})})})}catch(e){console.warn(\"Failed to update session with capabilities\",e)}return a}}class n9{constructor(e){this.name=\"solana\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class n7{constructor(e){this.name=\"cosmos\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class ie{constructor(e){this.name=\"cip34\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let r=this.getCardanoRPCUrl(t),n=nU(t);e[n]=this.createHttpProvider(n,r)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||this.getCardanoRPCUrl(e);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class it{constructor(e){this.name=\"elrond\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class ir{constructor(e){this.name=\"multiversx\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class ii{constructor(e){this.name=\"near\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let r=t||nF(`${this.name}:${e}`,this.namespace);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(nC,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace);return typeof r>\"u\"?void 0:new e0(new nx(r,nY(\"disableProviderPing\")))}}class is{constructor(e){this.name=n$,this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){var e,t;let r={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach(e=>{let t=(0,o.DQe)(e);r[`${t.namespace}:${t.reference}`]=this.createHttpProvider(e)}),r}getHttpProvider(e){let t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}var io=Object.defineProperty,ia=Object.defineProperties,il=Object.getOwnPropertyDescriptors,iu=Object.getOwnPropertySymbols,ic=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,ih=(e,t,r)=>t in e?io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ip=(e,t)=>{for(var r in t||(t={}))ic.call(t,r)&&ih(e,r,t[r]);if(iu)for(var r of iu(t))id.call(t,r)&&ih(e,r,t[r]);return e},ig=(e,t)=>ia(e,il(t));class im{constructor(e){this.events=new(s()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger=\"u\">typeof e?.logger&&\"string\"!=typeof e?.logger?e.logger:U()(ei({level:e?.logger||nk})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let t=new im(e);return await t.initialize(),t}async request(e,t,r){let[n,i]=this.validateChain(t);if(!this.session)throw Error(\"Please call connect() before request()\");return await this.getProvider(n).request({request:ip({},e),chainId:`${n}:${i}`,topic:this.session.topic,expiry:r})}sendAsync(e,t,r,n){let i=new Date().getTime();this.request(e,r,n).then(e=>t(null,eU(i,e))).catch(e=>t(e,void 0))}async enable(){if(!this.client)throw Error(\"Sign Client not initialized\");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw Error(\"Please call connect() before enable()\");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:(0,o.D6H)(\"USER_DISCONNECTED\")}),await this.cleanup()}async connect(e){if(!this.client)throw Error(\"Sign Client not initialized\");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e){if(!this.client)throw Error(\"Sign Client not initialized\");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:t,response:r}=await this.client.authenticate(e);t&&(this.uri=t,this.events.emit(\"display_uri\",t));let n=await r();if(this.session=n.session,this.session){let e=nV(this.session.namespaces);this.namespaces=nq(this.namespaces,e),this.persist(\"namespaces\",this.namespaces),this.onConnect()}return n}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw Error(\"Pairing aborted\");if(t>=this.maxPairingAttempts)throw Error(\"Max auto pairing attempts reached\");let{uri:r,approval:n}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit(\"display_uri\",r)),await n().then(e=>{this.session=e;let t=nV(e.namespaces);this.namespaces=nq(this.namespaces,t),this.persist(\"namespaces\",this.namespaces)}).catch(e=>{if(e.message!==rZ)throw e;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;let[r,n]=this.validateChain(e),i=this.getProvider(r);i.name===n$?i.setDefaultChain(`${r}:${n}`,t):i.setDefaultChain(n,t)}catch(e){if(!/Please call connect/.test(e.message))throw e}}async cleanupPendingPairings(e={}){this.logger.info(\"Cleaning up inactive pairings...\");let t=this.client.pairing.getAll();if((0,o.qt8)(t)){for(let r of t)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore(\"namespaces\"),this.optionalNamespaces=await this.getFromStore(\"optionalNamespaces\")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace(\"Initialized\"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await nd.init({logger:this.providerOpts.logger||nk,relayUrl:this.providerOpts.relayUrl||\"wss://relay.walletconnect.com\",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace(\"SignClient Initialized\")}createProviders(){if(!this.client)throw Error(\"Sign Client not initialized\");if(!this.session)throw Error(\"Session not initialized. Please call connect() before enable()\");let e=[...new Set(Object.keys(this.session.namespaces).map(e=>(0,o.Maj)(e)))];nZ(\"client\",this.client),nZ(\"events\",this.events),nZ(\"disableProviderPing\",this.disableProviderPing),e.forEach(e=>{if(!this.session)return;let t=function(e,t){let r=Object.keys(t.namespaces).filter(t=>t.includes(e));if(!r.length)return[];let n=[];return r.forEach(e=>{let r=t.namespaces[e].accounts;n.push(...r)}),n}(e,this.session),r=nz(t),n=ig(ip({},nq(this.namespaces,this.optionalNamespaces)[e]),{accounts:t,chains:r});switch(e){case\"eip155\":this.rpcProviders[e]=new n8({namespace:n});break;case\"solana\":this.rpcProviders[e]=new n9({namespace:n});break;case\"cosmos\":this.rpcProviders[e]=new n7({namespace:n});break;case\"polkadot\":this.rpcProviders[e]=new nJ({namespace:n});break;case\"cip34\":this.rpcProviders[e]=new ie({namespace:n});break;case\"elrond\":this.rpcProviders[e]=new it({namespace:n});break;case\"multiversx\":this.rpcProviders[e]=new ir({namespace:n});break;case\"near\":this.rpcProviders[e]=new ii({namespace:n});break;default:this.rpcProviders[n$]?this.rpcProviders[n$].updateNamespace(n):this.rpcProviders[n$]=new is({namespace:n})}})}registerEventListeners(){if(typeof this.client>\"u\")throw Error(\"Sign Client is not initialized\");this.client.on(\"session_ping\",e=>{this.events.emit(\"session_ping\",e)}),this.client.on(\"session_event\",e=>{let{params:t}=e,{event:r}=t;if(\"accountsChanged\"===r.name){let e=r.data;e&&(0,o.qt8)(e)&&this.events.emit(\"accountsChanged\",e.map(nG))}else if(\"chainChanged\"===r.name){let e=t.chainId,r=t.event.data,n=(0,o.Maj)(e),i=nW(e)!==nW(r)?`${n}:${nW(r)}`:e;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit(\"session_event\",e)}),this.client.on(\"session_update\",({topic:e,params:t})=>{var r;let{namespaces:n}=t,i=null==(r=this.client)?void 0:r.session.get(e);this.session=ig(ip({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit(\"session_update\",{topic:e,params:t})}),this.client.on(\"session_delete\",async e=>{await this.cleanup(),this.events.emit(\"session_delete\",e),this.events.emit(\"disconnect\",ig(ip({},(0,o.D6H)(\"USER_DISCONNECTED\")),{data:e.topic}))}),this.on(nC,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[n$]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:r,sessionProperties:n}=e;t&&Object.keys(t).length&&(this.namespaces=t),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist(\"namespaces\",t),this.persist(\"optionalNamespaces\",r)}validateChain(e){let[t,r]=e?.split(\":\")||[\"\",\"\"];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,r];if(t&&!Object.keys(this.namespaces||{}).map(e=>(0,o.Maj)(e)).includes(t))throw Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&r)return[t,r];let n=(0,o.Maj)(Object.keys(this.namespaces)[0]),i=this.rpcProviders[n].getDefaultChain();return[n,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;let[r,n]=this.validateChain(e);n&&(t||this.getProvider(r).setDefaultChain(n),this.namespaces[r]?this.namespaces[r].defaultChain=n:this.namespaces[`${r}:${n}`]?this.namespaces[`${r}:${n}`].defaultChain=n:this.namespaces[`${r}:${n}`]={defaultChain:n},this.persist(\"namespaces\",this.namespaces),this.events.emit(\"chainChanged\",n))}onConnect(){this.createProviders(),this.events.emit(\"connect\",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist(\"namespaces\",void 0),this.persist(\"optionalNamespaces\",void 0),this.persist(\"sessionProperties\",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${nS}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${nS}/${e}`)}}let iy=[\"eth_sendTransaction\",\"personal_sign\"],ib=[\"eth_accounts\",\"eth_requestAccounts\",\"eth_sendRawTransaction\",\"eth_sign\",\"eth_signTransaction\",\"eth_signTypedData\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"eth_sendTransaction\",\"personal_sign\",\"wallet_switchEthereumChain\",\"wallet_addEthereumChain\",\"wallet_getPermissions\",\"wallet_requestPermissions\",\"wallet_registerOnboarding\",\"wallet_watchAsset\",\"wallet_scanQRCode\",\"wallet_sendCalls\",\"wallet_getCapabilities\",\"wallet_getCallsStatus\",\"wallet_showCallsStatus\"],iv=[\"chainChanged\",\"accountsChanged\"],iw=[\"chainChanged\",\"accountsChanged\",\"message\",\"disconnect\",\"connect\"];var i_=Object.defineProperty,iE=Object.defineProperties,iA=Object.getOwnPropertyDescriptors,ix=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,i$=(e,t,r)=>t in e?i_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iC=(e,t)=>{for(var r in t||(t={}))ik.call(t,r)&&i$(e,r,t[r]);if(ix)for(var r of ix(t))iS.call(t,r)&&i$(e,r,t[r]);return e},iP=(e,t)=>iE(e,iA(t));function iI(e){return Number(e[0].split(\":\")[1])}function iO(e){return`0x${e.toString(16)}`}class iN{constructor(){this.events=new i.EventEmitter,this.namespace=\"eip155\",this.accounts=[],this.chainId=1,this.STORAGE_KEY=\"wc@2:ethereum_provider:\",this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new iN;return await t.initialize(e),t}async request(e,t){return await this.signer.request(e,this.formatChainId(this.chainId),t)}sendAsync(e,t,r){this.signer.sendAsync(e,t,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:\"eth_requestAccounts\"})}async connect(e){if(!this.signer.client)throw Error(\"Provider not initialized. Call init() first\");this.loadConnectOpts(e);let{required:t,optional:r}=function(e){let{chains:t,optionalChains:r,methods:n,optionalMethods:i,events:s,optionalEvents:a,rpcMap:l}=e;if(!(0,o.qt8)(t))throw Error(\"Invalid chains\");let u={chains:t,methods:n||iy,events:s||iv,rpcMap:iC({},t.length?{[iI(t)]:l[iI(t)]}:{})},c=s?.filter(e=>!iv.includes(e)),d=n?.filter(e=>!iy.includes(e));if(!r&&!a&&!i&&!(null!=c&&c.length)&&!(null!=d&&d.length))return{required:t.length?u:void 0};let h={chains:[...new Set(c?.length&&d?.length||!r?u.chains.concat(r||[]):r)],methods:[...new Set(u.methods.concat(null!=i&&i.length?i:ib))],events:[...new Set(u.events.concat(null!=a&&a.length?a:iw))],rpcMap:l};return{required:t.length?u:void 0,optional:r.length?h:void 0}}(this.rpc);try{let n=await new Promise(async(n,i)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),i(Error(\"Connection request reset. Please try again.\")))})),await this.signer.connect(iP(iC({namespaces:iC({},t&&{[this.namespace]:t})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e?.pairingTopic})).then(e=>{n(e)}).catch(e=>{i(Error(e.message))})});if(!n)return;let i=(0,o.guN)(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit(\"connect\",{chainId:iO(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async authenticate(e){if(!this.signer.client)throw Error(\"Provider not initialized. Call init() first\");this.loadConnectOpts({chains:e?.chains});try{let t=await new Promise(async(t,r)=>{var n;this.rpc.showQrModal&&(null==(n=this.modal)||n.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),r(Error(\"Connection request reset. Please try again.\")))})),await this.signer.authenticate(iP(iC({},e),{chains:this.rpc.chains})).then(e=>{t(e)}).catch(e=>{r(Error(e.message))})}),r=t.session;if(r){let e=(0,o.guN)(r.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit(\"connect\",{chainId:iO(this.chainId)})}return t}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on(\"session_event\",e=>{let{params:t}=e,{event:r}=t;\"accountsChanged\"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit(\"accountsChanged\",this.accounts)):\"chainChanged\"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit(\"session_event\",e)}),this.signer.on(\"chainChanged\",e=>{let t=parseInt(e);this.chainId=t,this.events.emit(\"chainChanged\",iO(this.chainId)),this.persist()}),this.signer.on(\"session_update\",e=>{this.events.emit(\"session_update\",e)}),this.signer.on(\"session_delete\",e=>{this.reset(),this.events.emit(\"session_delete\",e),this.events.emit(\"disconnect\",iP(iC({},(0,o.D6H)(\"USER_DISCONNECTED\")),{data:e.topic,name:\"USER_DISCONNECTED\"}))}),this.signer.on(\"display_uri\",e=>{var t,r;this.rpc.showQrModal&&(null==(t=this.modal)||t.closeModal(),null==(r=this.modal)||r.openModal({uri:e})),this.events.emit(\"display_uri\",e)})}switchEthereumChain(e){this.request({method:\"wallet_switchEthereumChain\",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return\"string\"==typeof e&&e.startsWith(`${this.namespace}:`)}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(\":\")[1])}setChainIds(e){let t=e.filter(e=>this.isCompatibleChainId(e)).map(e=>this.parseChainId(e));t.length&&(this.chainId=t[0],this.events.emit(\"chainChanged\",iO(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.switchEthereumChain(t)}}parseAccountId(e){let[t,r,n]=e.split(\":\");return{chainId:`${t}:${r}`,address:n}}setAccounts(e){this.accounts=e.filter(e=>this.parseChainId(this.parseAccountId(e).chainId)===this.chainId).map(e=>this.parseAccountId(e).address),this.events.emit(\"accountsChanged\",this.accounts)}getRpcConfig(e){var t,r;let n=null!=(t=e?.chains)?t:[],i=null!=(r=e?.optionalChains)?r:[],s=n.concat(i);if(!s.length)throw Error(\"No chains specified in either `chains` or `optionalChains`\");let o=n.length?e?.methods||iy:[],a=n.length?e?.events||iv:[],l=e?.optionalMethods||[],u=e?.optionalEvents||[],c=e?.rpcMap||this.buildRpcMap(s,e.projectId),d=e?.qrModalOptions||void 0;return{chains:n?.map(e=>this.formatChainId(e)),optionalChains:i.map(e=>this.formatChainId(e)),methods:o,events:a,optionalMethods:l,optionalEvents:u,rpcMap:c,showQrModal:!!(null!=e&&e.showQrModal),qrModalOptions:d,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let r={};return e.forEach(e=>{r[e]=this.getRpcUrl(e,t)}),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?iI(this.rpc.chains):iI(this.rpc.optionalChains),this.signer=await im.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{let{WalletConnectModal:t}=await r.e(318).then(r.bind(r,55318));e=t}catch{throw Error(\"To use QR modal, please install @walletconnect/modal package\")}if(e)try{this.modal=new e(iC({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(e){throw this.signer.logger.error(e),Error(\"Could not generate WalletConnectModal Instance\")}}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:r,rpcMap:n}=e;t&&(0,o.qt8)(t)&&(this.rpc.chains=t.map(e=>this.formatChainId(e)),t.forEach(e=>{this.rpc.rpcMap[e]=n?.[e]||this.getRpcUrl(e)})),r&&(0,o.qt8)(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map(e=>this.formatChainId(e)),r.forEach(e=>{this.rpc.rpcMap[e]=n?.[e]||this.getRpcUrl(e)}))}getRpcUrl(e,t){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[e])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),t=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:t?.accounts),this.setAccounts(t?.accounts)}catch(e){this.signer.logger.error(\"Failed to load persisted session, clearing state...\"),this.signer.logger.error(e),await this.disconnect().catch(e=>this.signer.logger.warn(e))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return\"string\"==typeof e||e instanceof String?[this.parseAccount(e)]:e.map(e=>this.parseAccount(e))}}let iM=iN},27185:function(e){\"use strict\";e.exports=function(){throw Error(\"ws does not work in the browser. Browser clients must use the native WebSocket object\")}},57711:function(e,t,r){\"use strict\";r.d(t,{iO:function(){return n}});let n={waku:{publish:\"waku_publish\",batchPublish:\"waku_batchPublish\",subscribe:\"waku_subscribe\",batchSubscribe:\"waku_batchSubscribe\",subscription:\"waku_subscription\",unsubscribe:\"waku_unsubscribe\",batchUnsubscribe:\"waku_batchUnsubscribe\",batchFetchMessages:\"waku_batchFetchMessages\"},irn:{publish:\"irn_publish\",batchPublish:\"irn_batchPublish\",subscribe:\"irn_subscribe\",batchSubscribe:\"irn_batchSubscribe\",subscription:\"irn_subscription\",unsubscribe:\"irn_unsubscribe\",batchUnsubscribe:\"irn_batchUnsubscribe\",batchFetchMessages:\"irn_batchFetchMessages\"},iridium:{publish:\"iridium_publish\",batchPublish:\"iridium_batchPublish\",subscribe:\"iridium_subscribe\",batchSubscribe:\"iridium_batchSubscribe\",subscription:\"iridium_subscription\",unsubscribe:\"iridium_unsubscribe\",batchUnsubscribe:\"iridium_batchUnsubscribe\",batchFetchMessages:\"iridium_batchFetchMessages\"}}},77726:function(){},71851:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(24011);n.__exportStar(r(47036),t),n.__exportStar(r(62703),t)},47036:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},62703:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},54574:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(24011);n.__exportStar(r(91268),t),n.__exportStar(r(32674),t),n.__exportStar(r(79165),t),n.__exportStar(r(71851),t)},79165:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(24011).__exportStar(r(34760),t)},34760:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},25115:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(71851);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},23396:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},91268:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(24011);n.__exportStar(r(23396),t),n.__exportStar(r(25115),t)},32674:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},24011:function(e,t,r){\"use strict\";r.r(t),r.d(t,{__assign:function(){return s},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return _},__await:function(){return b},__awaiter:function(){return c},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return S},__createBinding:function(){return h},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return x},__importStar:function(){return A},__makeTemplateObject:function(){return E},__metadata:function(){return u},__param:function(){return l},__read:function(){return g},__rest:function(){return o},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw TypeError(\"Generator is already executing.\");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function f(e,t){for(var r in e)\"default\"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function g(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var n,i=r.apply(e,t||[]),s=[];return n={},o(\"next\"),o(\"throw\"),o(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){a(\"next\",e)}function u(e){a(\"throw\",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function w(e){var t,r;return t={},n(\"next\"),n(\"throw\",function(e){throw e}),n(\"return\"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:\"return\"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n(\"next\"),n(\"throw\"),n(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError(\"attempted to get private field on non-instance\");return t.get(e)}function S(e,t,r){if(!t.has(e))throw TypeError(\"attempted to set private field on non-instance\");return t.set(e,r),r}},25527:function(e,t){\"use strict\";function r(e){let t;return\"undefined\"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n(\"document\")},t.getDocument=function(){return r(\"document\")},t.getNavigatorOrThrow=function(){return n(\"navigator\")},t.getNavigator=function(){return r(\"navigator\")},t.getLocationOrThrow=function(){return n(\"location\")},t.getLocation=function(){return r(\"location\")},t.getCryptoOrThrow=function(){return n(\"crypto\")},t.getCrypto=function(){return r(\"crypto\")},t.getLocalStorageOrThrow=function(){return n(\"localStorage\")},t.getLocalStorage=function(){return r(\"localStorage\")}},70053:function(e,t,r){\"use strict\";t.D=void 0;let n=r(25527);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName(\"meta\");for(let e=0;e<r.length;e++){let n=r[e],i=[\"itemprop\",\"property\",\"name\"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute(\"content\");if(e)return e}}return\"\"}let s=((r=i(\"name\",\"og:site_name\",\"og:title\",\"twitter:title\"))||(r=e.title),r),o=i(\"description\",\"og:description\",\"twitter:description\",\"keywords\");return{description:o,url:t.origin,icons:function(){let r=e.getElementsByTagName(\"link\"),n=[];for(let e=0;e<r.length;e++){let i=r[e],s=i.getAttribute(\"rel\");if(s&&s.toLowerCase().indexOf(\"icon\")>-1){let e=i.getAttribute(\"href\");if(e){if(-1===e.toLowerCase().indexOf(\"https:\")&&-1===e.toLowerCase().indexOf(\"http:\")&&0!==e.indexOf(\"//\")){let r=t.protocol+\"//\"+t.host;if(0===e.indexOf(\"/\"))r+=e;else{let n=t.pathname.split(\"/\");n.pop(),r+=n.join(\"/\")+\"/\"+e}n.push(r)}else if(0===e.indexOf(\"//\")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}(),name:s}}},48738:function(e,t){\"use strict\";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=l(e),o=s[0],a=s[1],u=new i((o+a)*3/4-a),c=0,d=a>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(function(e,t,n){for(var i,s=[],o=t;o<n;o+=3)s.push(r[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+\"==\"):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+\"=\"),s.join(\"\")};for(var r=[],n=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[\"-\".charCodeAt(0)]=62,n[\"_\".charCodeAt(0)]=63},1192:function(e){\"use strict\";for(var t=\"qpzry9x8gf2tvdw0s3jn54khce6mua7l\",r={},n=0;n<t.length;n++){var i=t.charAt(n);if(void 0!==r[i])throw TypeError(i+\" is ambiguous\");r[i]=n}function s(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return\"Invalid prefix (\"+e+\")\";t=s(t)^n>>5}for(r=0,t=s(t);r<e.length;++r){var i=e.charCodeAt(r);t=s(t)^31&i}return t}function a(e,t){if(t=t||90,e.length<8)return e+\" too short\";if(e.length>t)return\"Exceeds length limit\";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return\"Mixed-case string \"+e;var a=(e=n).lastIndexOf(\"1\");if(-1===a)return\"No separator character for \"+e;if(0===a)return\"Missing prefix for \"+e;var l=e.slice(0,a),u=e.slice(a+1);if(u.length<6)return\"Data too short\";var c=o(l);if(\"string\"==typeof c)return c;for(var d=[],h=0;h<u.length;++h){var f=u.charAt(h),p=r[f];if(void 0===p)return\"Unknown character \"+f;c=s(c)^p,h+6>=u.length||d.push(p)}return 1!==c?\"Invalid checksum for \"+e:{prefix:l,words:d}}function l(e,t,r,n){for(var i=0,s=0,o=(1<<r)-1,a=[],l=0;l<e.length;++l)for(i=i<<t|e[l],s+=t;s>=r;)a.push(i>>(s-=r)&o);if(n)s>0&&a.push(i<<r-s&o);else{if(s>=t)return\"Excess padding\";if(i<<r-s&o)return\"Non-zero padding\"}return a}e.exports={decodeUnsafe:function(){var e=a.apply(null,arguments);if(\"object\"==typeof e)return e},decode:function(e){var t=a.apply(null,arguments);if(\"object\"==typeof t)return t;throw Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw TypeError(\"Exceeds length limit\");var i=o(e=e.toLowerCase());if(\"string\"==typeof i)throw Error(i);for(var a=e+\"1\",l=0;l<r.length;++l){var u=r[l];if(u>>5!=0)throw Error(\"Non 5-bit word\");i=s(i)^u,a+=t.charAt(u)}for(l=0;l<6;++l)i=s(i);for(i^=1,l=0;l<6;++l){var c=i>>(5-l)*5&31;a+=t.charAt(c)}return a},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},58171:function(e,t,r){!function(e,t){\"use strict\";function n(e,t){if(!e)throw Error(t||\"Assertion failed\")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function s(e,t,r){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&((\"le\"===t||\"be\"===t)&&(r=t,t=10),this._init(e||0,t||10,r||\"be\"))}\"object\"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{d=\"undefined\"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,\"Invalid character in \"+e)}function a(e,t,r){var n=o(e,r);return r-1>=t&&(n|=o(e,r-1)<<4),n}function l(e,t,r,i){for(var s=0,o=0,a=Math.min(e.length,r),l=t;l<a;l++){var u=e.charCodeAt(l)-48;s*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,\"Invalid character\"),s+=o}return s}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&\"object\"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return 0>e.cmp(t)?e:t},s.prototype._init=function(e,t,r){if(\"number\"==typeof e)return this._initNumber(e,t,r);if(\"object\"==typeof e)return this._initArray(e,t,r);\"hex\"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;\"-\"===(e=e.toString().replace(/\\s+/g,\"\"))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),\"le\"===r&&this._initArray(this.toArray(),t,r)))},s.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),\"le\"===r&&this._initArray(this.toArray(),t,r)},s.prototype._initArray=function(e,t,r){if(n(\"number\"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,s,o=0;o<this.length;o++)this.words[o]=0;var a=0;if(\"be\"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if(\"le\"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},s.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var s=0,o=0;if(\"be\"===r)for(i=e.length-1;i>=t;i-=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var s=e.length-r,o=s%n,a=Math.min(s,s-o)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=l(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},s.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){u(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},\"undefined\"!=typeof Symbol&&\"function\"==typeof Symbol.for)try{s.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=c}catch(e){s.prototype.inspect=c}else s.prototype.inspect=c;function c(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var d,h=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,l=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;c+=(o=(i=0|e.words[p])*(s=0|t.words[f])+d)/67108864|0,d=67108863&o}r.words[u]=0|d,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}s.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||\"hex\"===e){r=\"\";for(var r,i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],l=((a<<i|s)&16777215).toString(16);s=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?h[6-l.length]+l+r:l+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],c=p[e];r=\"\";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(c).toString(e);r=(d=d.idivn(c)).isZero()?g+r:h[u-g.length]+g+r}for(this.isZero()&&(r=\"0\"+r);r.length%t!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}n(!1,\"Base should be between 2 and 36\")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},d&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(d,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,\"byte array longer than desired length\"),n(s>0,\"Requested array length <= 0\");var o=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this[\"_toArrayLike\"+(\"le\"===t?\"LE\":\"BE\")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===s?(r<e.length&&(e[r++]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===s?(r>=0&&(e[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n(\"number\"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n(\"number\"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,s=0;s<n.length;s++)t=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<r.length;s++)t=(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(n=(0|t.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&n;for(;0!==s&&o<t.length;o++)s=(n=(0|t.words[o])+s)>>26,this.words[o]=67108863&n;if(0===s&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,s,o=e.words,a=t.words,l=r.words,u=0,c=0|o[0],d=8191&c,h=c>>>13,f=0|o[1],p=8191&f,g=f>>>13,m=0|o[2],y=8191&m,b=m>>>13,v=0|o[3],w=8191&v,_=v>>>13,E=0|o[4],A=8191&E,x=E>>>13,k=0|o[5],S=8191&k,$=k>>>13,C=0|o[6],P=8191&C,I=C>>>13,O=0|o[7],N=8191&O,M=O>>>13,R=0|o[8],T=8191&R,D=R>>>13,L=0|o[9],j=8191&L,B=L>>>13,F=0|a[0],U=8191&F,z=F>>>13,q=0|a[1],H=8191&q,G=q>>>13,V=0|a[2],W=8191&V,K=V>>>13,Y=0|a[3],Z=8191&Y,J=Y>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],er=8191&et,en=et>>>13,ei=0|a[6],es=8191&ei,eo=ei>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ec=0|a[8],ed=8191&ec,eh=ec>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(u+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(h,U)|0))<<13)|0;u=((s=Math.imul(h,z))+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,z))+Math.imul(g,U)|0,s=Math.imul(g,z);var ey=(u+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,H)|0))<<13)|0;u=((s=s+Math.imul(h,G)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(y,U),i=(i=Math.imul(y,z))+Math.imul(b,U)|0,s=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,G)|0;var eb=(u+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,W)|0))<<13)|0;u=((s=s+Math.imul(h,K)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,z))+Math.imul(_,U)|0,s=Math.imul(_,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,H)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,K)|0;var ev=(u+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(h,Z)|0))<<13)|0;u=((s=s+Math.imul(h,J)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,z))+Math.imul(x,U)|0,s=Math.imul(x,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,H)|0,s=s+Math.imul(_,G)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,W)|0,s=s+Math.imul(b,K)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,Z)|0,s=s+Math.imul(g,J)|0;var ew=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((s=s+Math.imul(h,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,z))+Math.imul($,U)|0,s=Math.imul($,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(x,H)|0,s=s+Math.imul(x,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,W)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Z)|0,s=s+Math.imul(b,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,ee)|0;var e_=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;u=((s=s+Math.imul(h,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,z))+Math.imul(I,U)|0,s=Math.imul(I,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul($,H)|0,s=s+Math.imul($,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(x,W)|0,s=s+Math.imul(x,K)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,s=s+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,s=s+Math.imul(g,en)|0;var eE=(u+(n=n+Math.imul(d,es)|0)|0)+((8191&(i=(i=i+Math.imul(d,eo)|0)+Math.imul(h,es)|0))<<13)|0;u=((s=s+Math.imul(h,eo)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(N,U),i=(i=Math.imul(N,z))+Math.imul(M,U)|0,s=Math.imul(M,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,G)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul($,W)|0,s=s+Math.imul($,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(x,Z)|0,s=s+Math.imul(x,J)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(b,er)|0,s=s+Math.imul(b,en)|0,n=n+Math.imul(p,es)|0,i=(i=i+Math.imul(p,eo)|0)+Math.imul(g,es)|0,s=s+Math.imul(g,eo)|0;var eA=(u+(n=n+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((s=s+Math.imul(h,eu)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,z))+Math.imul(D,U)|0,s=Math.imul(D,z),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(M,H)|0,s=s+Math.imul(M,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,K)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul($,Z)|0,s=s+Math.imul($,J)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(x,X)|0,s=s+Math.imul(x,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,s=s+Math.imul(_,en)|0,n=n+Math.imul(y,es)|0,i=(i=i+Math.imul(y,eo)|0)+Math.imul(b,es)|0,s=s+Math.imul(b,eo)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(g,el)|0,s=s+Math.imul(g,eu)|0;var ex=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;u=((s=s+Math.imul(h,eh)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(j,U),i=(i=Math.imul(j,z))+Math.imul(B,U)|0,s=Math.imul(B,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(D,H)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(M,W)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(I,Z)|0,s=s+Math.imul(I,J)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul($,X)|0,s=s+Math.imul($,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(x,er)|0,s=s+Math.imul(x,en)|0,n=n+Math.imul(w,es)|0,i=(i=i+Math.imul(w,eo)|0)+Math.imul(_,es)|0,s=s+Math.imul(_,eo)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(b,el)|0,s=s+Math.imul(b,eu)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,s=s+Math.imul(g,eh)|0;var ek=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((s=s+Math.imul(h,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,G))+Math.imul(B,H)|0,s=Math.imul(B,G),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(D,W)|0,s=s+Math.imul(D,K)|0,n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,J)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(I,X)|0,s=s+Math.imul(I,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul($,er)|0,s=s+Math.imul($,en)|0,n=n+Math.imul(A,es)|0,i=(i=i+Math.imul(A,eo)|0)+Math.imul(x,es)|0,s=s+Math.imul(x,eo)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(_,el)|0,s=s+Math.imul(_,eu)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(b,ed)|0,s=s+Math.imul(b,eh)|0;var eS=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((s=s+Math.imul(g,eg)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,K))+Math.imul(B,W)|0,s=Math.imul(B,K),n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(D,Z)|0,s=s+Math.imul(D,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(M,X)|0,s=s+Math.imul(M,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(I,er)|0,s=s+Math.imul(I,en)|0,n=n+Math.imul(S,es)|0,i=(i=i+Math.imul(S,eo)|0)+Math.imul($,es)|0,s=s+Math.imul($,eo)|0,n=n+Math.imul(A,el)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(x,el)|0,s=s+Math.imul(x,eu)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(_,ed)|0,s=s+Math.imul(_,eh)|0;var e$=(u+(n=n+Math.imul(y,ep)|0)|0)+((8191&(i=(i=i+Math.imul(y,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((s=s+Math.imul(b,eg)|0)+(i>>>13)|0)+(e$>>>26)|0,e$&=67108863,n=Math.imul(j,Z),i=(i=Math.imul(j,J))+Math.imul(B,Z)|0,s=Math.imul(B,J),n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,ee)|0,n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(M,er)|0,s=s+Math.imul(M,en)|0,n=n+Math.imul(P,es)|0,i=(i=i+Math.imul(P,eo)|0)+Math.imul(I,es)|0,s=s+Math.imul(I,eo)|0,n=n+Math.imul(S,el)|0,i=(i=i+Math.imul(S,eu)|0)+Math.imul($,el)|0,s=s+Math.imul($,eu)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,eh)|0)+Math.imul(x,ed)|0,s=s+Math.imul(x,eh)|0;var eC=(u+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,eg)|0)+Math.imul(_,ep)|0))<<13)|0;u=((s=s+Math.imul(_,eg)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(B,X)|0,s=Math.imul(B,ee),n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(D,er)|0,s=s+Math.imul(D,en)|0,n=n+Math.imul(N,es)|0,i=(i=i+Math.imul(N,eo)|0)+Math.imul(M,es)|0,s=s+Math.imul(M,eo)|0,n=n+Math.imul(P,el)|0,i=(i=i+Math.imul(P,eu)|0)+Math.imul(I,el)|0,s=s+Math.imul(I,eu)|0,n=n+Math.imul(S,ed)|0,i=(i=i+Math.imul(S,eh)|0)+Math.imul($,ed)|0,s=s+Math.imul($,eh)|0;var eP=(u+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,eg)|0)+Math.imul(x,ep)|0))<<13)|0;u=((s=s+Math.imul(x,eg)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(j,er),i=(i=Math.imul(j,en))+Math.imul(B,er)|0,s=Math.imul(B,en),n=n+Math.imul(T,es)|0,i=(i=i+Math.imul(T,eo)|0)+Math.imul(D,es)|0,s=s+Math.imul(D,eo)|0,n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(M,el)|0,s=s+Math.imul(M,eu)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,eh)|0)+Math.imul(I,ed)|0,s=s+Math.imul(I,eh)|0;var eI=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(i=(i=i+Math.imul(S,eg)|0)+Math.imul($,ep)|0))<<13)|0;u=((s=s+Math.imul($,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(j,es),i=(i=Math.imul(j,eo))+Math.imul(B,es)|0,s=Math.imul(B,eo),n=n+Math.imul(T,el)|0,i=(i=i+Math.imul(T,eu)|0)+Math.imul(D,el)|0,s=s+Math.imul(D,eu)|0,n=n+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,eh)|0)+Math.imul(M,ed)|0,s=s+Math.imul(M,eh)|0;var eO=(u+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((s=s+Math.imul(I,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(j,el),i=(i=Math.imul(j,eu))+Math.imul(B,el)|0,s=Math.imul(B,eu),n=n+Math.imul(T,ed)|0,i=(i=i+Math.imul(T,eh)|0)+Math.imul(D,ed)|0,s=s+Math.imul(D,eh)|0;var eN=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,eg)|0)+Math.imul(M,ep)|0))<<13)|0;u=((s=s+Math.imul(M,eg)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(j,ed),i=(i=Math.imul(j,eh))+Math.imul(B,ed)|0,s=Math.imul(B,eh);var eM=(u+(n=n+Math.imul(T,ep)|0)|0)+((8191&(i=(i=i+Math.imul(T,eg)|0)+Math.imul(D,ep)|0))<<13)|0;u=((s=s+Math.imul(D,eg)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863;var eR=(u+(n=Math.imul(j,ep))|0)+((8191&(i=(i=Math.imul(j,eg))+Math.imul(B,ep)|0))<<13)|0;return u=((s=Math.imul(B,eg))+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,l[0]=em,l[1]=ey,l[2]=eb,l[3]=ev,l[4]=ew,l[5]=e_,l[6]=eE,l[7]=eA,l[8]=ex,l[9]=ek,l[10]=eS,l[11]=e$,l[12]=eC,l[13]=eP,l[14]=eI,l[15]=eO,l[16]=eN,l[17]=eM,l[18]=eR,0!==u&&(l[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var o=i;i=0;for(var a=67108863&n,l=Math.min(s,t.length-1),u=Math.max(0,s-e.length+1);u<=l;u++){var c=s-u,d=(0|e.words[c])*(0|t.words[u]),h=67108863&d;o=o+(d/67108864|0)|0,a=67108863&(h=h+a|0),i+=(o=o+(h>>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function b(e,t){this.x=e,this.y=t}Math.imul||(m=g),s.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?g(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=s.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,s){for(var o=0;o<s;o++)n[o]=t[e[o]],i[o]=r[e[o]]},b.prototype.transform=function(e,t,r,n,i,s){this.permute(s,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,l=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var d=l,h=u,f=0;f<o;f++){var p=r[c+f],g=n[c+f],m=r[c+f+o],y=n[c+f+o],b=d*m-h*y;y=d*y+h*m,m=b,r[c+f]=p+m,n[c+f]=g+y,r[c+f+o]=p-m,n[c+f+o]=g-y,f!==a&&(b=l*d-u*h,h=l*h+u*d,d=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],r[2*o]=8191&s,s>>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===s),n((-8192&s)==0)},b.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),s=this.stub(n),o=Array(n),a=Array(n),l=Array(n),u=Array(n),c=Array(n),d=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,u,n),this.transform(o,s,a,l,n,i),this.transform(u,s,c,d,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*d[f];l[f]=a[f]*d[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,h,s,n,i),this.conjugate(h,s,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=Array(this.length+e.length),y(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n(\"number\"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&r);r>>=26,r+=(s/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(e){n(\"number\"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,l=(0|this.words[t])-a<<r;this.words[t]=l|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,r){n(\"number\"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s;if(i-=o,i=Math.max(0,i),r){for(var l=0;l<o;l++)r.words[l]=this.words[l];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-s|c>>>s,u=c&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n(\"number\"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},s.prototype.imaskn=function(e){n(\"number\"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return(n(\"number\"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n(\"number\"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,r){var i,s,o=e.length+r;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+r])+a;var l=(0|e.words[i])*t;s-=67108863&l,a=(s>>26)-(l/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)a=(s=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var l=i.length-o.length;if(\"mod\"!==t){(r=new s(null)).length=l+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|i.words[o.length+d])*67108864+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=h)}return r&&r._strip(),i._strip(),\"div\"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},s.prototype.divmod=function(e,t,r){var i,o,a;return(n(!e.isZero()),this.isZero())?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),\"mod\"!==t&&(i=a.div.neg()),\"div\"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),\"mod\"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),\"div\"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new s(0),mod:this}:1===e.length?\"div\"===t?{div:this.divn(e.words[0]),mod:null}:\"mod\"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t)},s.prototype.div=function(e){return this.divmod(e,\"div\",!1).div},s.prototype.mod=function(e){return this.divmod(e,\"mod\",!1).mod},s.prototype.umod=function(e){return this.divmod(e,\"mod\",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),l=new s(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(d)),a.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),o.isub(l)):(r.isub(t),a.isub(i),l.isub(o))}return{a:a,b:l,gcd:r.iushln(u)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new s(1),a=new s(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;(i.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(i.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(t=0===r.cmpn(1)?o:a).cmpn(0)&&t.iadd(e),t},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var s=t;t=r,r=s}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n(\"number\"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,o=r;0!==s&&o<this.length;o++){var a=0|this.words[o];a+=s,s=a>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,\"Number is too big\");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return -1===this.cmpn(e)},s.prototype.lt=function(e){return -1===this.cmp(e)},s.prototype.lten=function(e){return 0>=this.cmpn(e)},s.prototype.lte=function(e){return 0>=this.cmp(e)},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new k(e)},s.prototype.toRed=function(e){return n(!this.red,\"Already a number in reduction context\"),n(0===this.negative,\"red works only with positives\"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function E(){w.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function A(){w.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function x(){w.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function k(e){if(\"string\"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),\"modulus must be greater than 1\"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new s(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(4194303&s)<<4|i>>>22,i=s}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(E,w),i(A,w),i(x,w),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){var t;if(v[e])return v[e];if(\"k256\"===e)t=new _;else if(\"p224\"===e)t=new E;else if(\"p192\"===e)t=new A;else if(\"p25519\"===e)t=new x;else throw Error(\"Unknown prime \"+e);return v[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,\"red works only with positives\"),n(e.red,\"red works only with red numbers\")},k.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,\"red works only with positives\"),n(e.red&&e.red===t.red,\"red works only with red numbers\")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new s(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(d,new s(1).iushln(p-m-1));h=h.redMul(y),d=y.redSqr(),f=f.redMul(d),p=m}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new s(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],c=l-1;c>=0;c--){var d=u>>c&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===o){a=0;continue}o<<=1,o|=d,(4==++a||0===n&&0===c)&&(i=this.mul(i,r[o]),a=0,o=0)}l=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new S(e)},i(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},9109:function(e,t,r){\"use strict\";/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <https://feross.org>\n * @license  MIT\n */let n=r(48738),i=r(6868),s=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;function o(e){if(e>2147483647)throw RangeError('The value \"'+e+'\" is invalid for option \"size\"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if(\"number\"==typeof e){if(\"string\"==typeof t)throw TypeError('The \"string\" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if(\"string\"==typeof e)return function(e,t){if((\"string\"!=typeof t||\"\"===t)&&(t=\"utf8\"),!a.isEncoding(t))throw TypeError(\"Unknown encoding: \"+t);let r=0|p(e,t),n=o(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||\"undefined\"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return h(e,t,r);if(\"number\"==typeof e)throw TypeError('The \"value\" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);let i=function(e){var t;if(a.isBuffer(e)){let t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?\"number\"!=typeof e.length||(t=e.length)!=t?o(0):d(e):\"Buffer\"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive](\"string\"),t,r);throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function u(e){if(\"number\"!=typeof e)throw TypeError('\"size\" argument must be of type number');if(e<0)throw RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function c(e){return u(e),o(e<0?0:0|f(e))}function d(e){let t=e.length<0?0:0|f(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('\"length\" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function f(e){if(e>=2147483647)throw RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes\");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return T(e).length;default:if(i)return n?-1:R(e).length;t=(\"\"+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i=\"\";for(let n=t;n<r;++n)i+=j[e[n]];return i}(this,t,r);case\"utf8\":case\"utf-8\":return v(this,t,r);case\"ascii\":return function(e,t,r){let n=\"\";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case\"latin1\":case\"binary\":return function(e,t,r){let n=\"\";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case\"base64\":var s,o;return s=t,o=r,0===s&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(s,o));case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return function(e,t,r){let n=e.slice(t,r),i=\"\";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var s;if(0===e.length)return -1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(s=r=+r)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if(\"string\"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if(\"number\"==typeof t)return(t&=255,\"function\"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError(\"val must be string, number or Buffer\")}function b(e,t,r,n,i){let s,o=1,a=e.length,l=t.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(s=r;s<a;s++)if(u(e,s)===u(t,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===l)return n*o}else -1!==n&&(s-=s-n),n=-1}else for(r+l>a&&(r=a-l),s=r;s>=0;s--){let r=!0;for(let n=0;n<l;n++)if(u(e,s+n)!==u(t,n)){r=!1;break}if(r)return s}return -1}function v(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(s=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r=\"\",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError(\"offset is not uint\");if(e+t>r)throw RangeError(\"Trying to access beyond buffer length\")}function _(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('\"buffer\" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('\"value\" argument is out of bounds');if(r+n>e.length)throw RangeError(\"Index out of range\")}function E(e,t,r,n,i){I(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function A(e,t,r,n,i){I(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function x(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError(\"Index out of range\")}function k(e,t,r,n,s){return t=+t,r>>>=0,s||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,s){return t=+t,r>>>=0,s||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(a.prototype,\"parent\",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,\"offset\",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?\"string\"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},a.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(L(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('\"list\" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(\"Buffer size must be a multiple of 16-bits\");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(\"Buffer size must be a multiple of 32-bits\");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(\"Buffer size must be a multiple of 64-bits\");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?\"\":0==arguments.length?v(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError(\"Argument must be a Buffer\");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e=\"\",r=t.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,r).replace(/(.{2})/g,\"$1 \").trim(),this.length>r&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError(\"out of range index\");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,l=Math.min(s,o),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){s=u[e],o=c[e];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){var i,s,o,a,l,u,c,d;if(void 0===t)n=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0);else throw Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");let f=!1;for(;;)switch(n){case\"hex\":return function(e,t,r,n){let i;r=Number(r)||0;let s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;let o=t.length;for(n>o/2&&(n=o/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(n!=n)break;e[r+i]=n}return i}(this,e,t,r);case\"utf8\":case\"utf-8\":return i=t,s=r,D(R(e,this.length-i),this,i,s);case\"ascii\":case\"latin1\":case\"binary\":return o=t,a=r,D(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,a);case\"base64\":return l=t,u=r,D(T(e),this,l,u);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return c=t,d=r,D(function(e,t){let r,n;let i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&N(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),a.prototype.readBigInt64BE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&N(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=B(function(e,t=0){return E(this,e,t,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),a.prototype.writeBigUInt64BE=B(function(e,t=0){return A(this,e,t,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=0,s=1,o=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=B(function(e,t=0){return E(this,e,t,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),a.prototype.writeBigInt64BE=B(function(e,t=0){return A(this,e,t,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),a.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError(\"argument should be a Buffer\");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw RangeError(\"Index out of range\");if(n<0)throw RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){let i;if(\"string\"==typeof e){if(\"string\"==typeof t?(n=t,t=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),void 0!==n&&\"string\"!=typeof n)throw TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!a.isEncoding(n))throw TypeError(\"Unknown encoding: \"+n);if(1===e.length){let t=e.charCodeAt(0);(\"utf8\"===n&&t<128||\"latin1\"===n)&&(e=t)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError(\"Out of range index\");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let s=a.isBuffer(e)?e:a.from(e,n),o=s.length;if(0===o)throw TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};let $={};function C(e,t,r){$[e]=class extends r{constructor(){super(),Object.defineProperty(this,\"message\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function P(e){let t=\"\",r=e.length,n=\"-\"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function I(e,t,r,n,i,s){if(e>r||e<t){let n;let i=\"bigint\"==typeof t?\"n\":\"\";throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(s+1)*8}${i}`:`>= -(2${i} ** ${(s+1)*8-1}${i}) and < 2 ** ${(s+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new $.ERR_OUT_OF_RANGE(\"value\",n,e)}O(i,\"offset\"),(void 0===n[i]||void 0===n[i+s])&&N(i,n.length-(s+1))}function O(e,t){if(\"number\"!=typeof e)throw new $.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function N(e,t,r){if(Math.floor(e)!==e)throw O(e,r),new $.ERR_OUT_OF_RANGE(r||\"offset\",\"an integer\",e);if(t<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||\"offset\",`>= ${r?1:0} and <= ${t}`,e)}C(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError),C(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError),C(\"ERR_OUT_OF_RANGE\",function(e,t,r){let n=`The value of \"${e}\" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=P(String(r)):\"bigint\"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=P(i)),i+=\"n\"),n+=` It must be ${t}. Received ${i}`},RangeError);let M=/[^+/0-9A-Za-z-_]/g;function R(e,t){let r;t=t||1/0;let n=e.length,i=null,s=[];for(let o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error(\"Invalid code point\")}return s}function T(e){return n.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(M,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let j=function(){let e=\"0123456789abcdef\",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function B(e){return\"undefined\"==typeof BigInt?F:e}function F(){throw Error(\"BigInt not supported\")}},55151:function(e,t){var r=\"undefined\"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:\"URLSearchParams\"in n,iterable:\"Symbol\"in n&&\"iterator\"in Symbol,blob:\"FileReader\"in n&&\"Blob\"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:\"FormData\"in n,arrayBuffer:\"ArrayBuffer\"in n};if(t.arrayBuffer)var r=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(e))throw TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function o(e){return\"string\"!=typeof e&&(e=String(e)),e}function a(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError(\"Already read\"));e.bodyUsed=!0}function c(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=c(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if(\"string\"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText=\"\";!this.headers.get(\"content-type\")&&(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error(\"could not read FormData body as blob\")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=u(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=c(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error(\"could not read FormData body as text\")},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=o(t);var r=this.map[e];this.map[e]=r?r+\", \"+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=o(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),a(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),a(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];function g(e,t){var r,n,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"same-origin\",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||\"GET\").toUpperCase(),p.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&i)throw TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(i)}function m(e){var t=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var r=e.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new l(t.headers),this.url=t.url||\"\",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},f.call(g.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError(\"Invalid status code\");return new y(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,n){return new Promise(function(i,s){var o=new g(r,n);if(o.signal&&o.signal.aborted)return s(new e.DOMException(\"Aborted\",\"AbortError\"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||\"\",t=new l,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var r=e.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();t.append(n,i)}}),t)};r.url=\"responseURL\"in a?a.responseURL:r.headers.get(\"X-Request-URL\"),i(new y(\"response\"in a?a.response:a.responseText,r))},a.onerror=function(){s(TypeError(\"Network request failed\"))},a.ontimeout=function(){s(TypeError(\"Network request failed\"))},a.onabort=function(){s(new e.DOMException(\"Aborted\",\"AbortError\"))},a.open(o.method,o.url,!0),\"include\"===o.credentials?a.withCredentials=!0:\"omit\"===o.credentials&&(a.withCredentials=!1),\"responseType\"in a&&t.blob&&(a.responseType=\"blob\"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener(\"abort\",u),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener(\"abort\",u)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}v.polyfill=!0,n.fetch||(n.fetch=v,n.Headers=l,n.Request=g,n.Response=y),e.Headers=l,e.Request=g,e.Response=y,e.fetch=v,Object.defineProperty(e,\"__esModule\",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},56368:function(e){\"use strict\";var t=\"%[a-f0-9]{2}\",r=RegExp(\"(\"+t+\")|([^%]+?)\",\"gi\"),n=RegExp(\"(\"+t+\")+\",\"gi\");e.exports=function(e){if(\"string\"!=typeof e)throw TypeError(\"Expected `encodedURI` to be of type `string`, got `\"+typeof e+\"`\");try{return e=e.replace(/\\+/g,\" \"),decodeURIComponent(e)}catch(t){return function(e){for(var t={\"%FE%FF\":\"��\",\"%FF%FE\":\"��\"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var s=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(\"\"))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,n).join(\"\")).match(r)||[];return e}}(i[0]);s!==i[0]&&(t[i[0]]=s)}i=n.exec(e)}t[\"%C2\"]=\"�\";for(var o=Object.keys(t),a=0;a<o.length;a++){var l=o[a];e=e.replace(RegExp(l,\"g\"),t[l])}return e}(e)}}},52159:function(e,t,r){\"use strict\";r.d(t,{qY:function(){return f}});var n=r(25566),i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},s=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type=\"browser\"},o=function(e){this.version=e,this.type=\"node\",this.name=\"node\",this.os=n.platform},a=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type=\"bot-device\"},l=function(){this.type=\"bot\",this.bot=!0,this.name=\"bot\",this.version=null,this.os=null},u=function(){this.type=\"react-native\",this.name=\"react-native\",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\\ Jeeves\\/Teoma|ia_archiver)/,d=[[\"aol\",/AOLShield\\/([0-9\\._]+)/],[\"edge\",/Edge\\/([0-9\\._]+)/],[\"edge-ios\",/EdgiOS\\/([0-9\\._]+)/],[\"yandexbrowser\",/YaBrowser\\/([0-9\\._]+)/],[\"kakaotalk\",/KAKAOTALK\\s([0-9\\.]+)/],[\"samsung\",/SamsungBrowser\\/([0-9\\.]+)/],[\"silk\",/\\bSilk\\/([0-9._-]+)\\b/],[\"miui\",/MiuiBrowser\\/([0-9\\.]+)$/],[\"beaker\",/BeakerBrowser\\/([0-9\\.]+)/],[\"edge-chromium\",/EdgA?\\/([0-9\\.]+)/],[\"chromium-webview\",/(?!Chrom.*OPR)wv\\).*Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],[\"chrome\",/(?!Chrom.*OPR)Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],[\"phantomjs\",/PhantomJS\\/([0-9\\.]+)(:?\\s|$)/],[\"crios\",/CriOS\\/([0-9\\.]+)(:?\\s|$)/],[\"firefox\",/Firefox\\/([0-9\\.]+)(?:\\s|$)/],[\"fxios\",/FxiOS\\/([0-9\\.]+)/],[\"opera-mini\",/Opera Mini.*Version\\/([0-9\\.]+)/],[\"opera\",/Opera\\/([0-9\\.]+)(?:\\s|$)/],[\"opera\",/OPR\\/([0-9\\.]+)(:?\\s|$)/],[\"pie\",/^Microsoft Pocket Internet Explorer\\/(\\d+\\.\\d+)$/],[\"pie\",/^Mozilla\\/\\d\\.\\d+\\s\\(compatible;\\s(?:MSP?IE|MSInternet Explorer) (\\d+\\.\\d+);.*Windows CE.*\\)$/],[\"netfront\",/^Mozilla\\/\\d\\.\\d+.*NetFront\\/(\\d.\\d)/],[\"ie\",/Trident\\/7\\.0.*rv\\:([0-9\\.]+).*\\).*Gecko$/],[\"ie\",/MSIE\\s([0-9\\.]+);.*Trident\\/[4-7].0/],[\"ie\",/MSIE\\s(7\\.0)/],[\"bb10\",/BB10;\\sTouch.*Version\\/([0-9\\.]+)/],[\"android\",/Android\\s([0-9\\.]+)/],[\"ios\",/Version\\/([0-9\\._]+).*Mobile.*Safari.*/],[\"safari\",/Version\\/([0-9\\._]+).*Safari/],[\"facebook\",/FB[AS]V\\/([0-9\\.]+)/],[\"instagram\",/Instagram\\s([0-9\\.]+)/],[\"ios-webview\",/AppleWebKit\\/([0-9\\.]+).*Mobile/],[\"ios-webview\",/AppleWebKit\\/([0-9\\.]+).*Gecko\\)$/],[\"curl\",/^curl\\/([0-9\\.]+)$/],[\"searchbot\",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[[\"iOS\",/iP(hone|od|ad)/],[\"Android OS\",/Android/],[\"BlackBerry OS\",/BlackBerry|BB10/],[\"Windows Mobile\",/IEMobile/],[\"Amazon OS\",/Kindle/],[\"Windows 3.11\",/Win16/],[\"Windows 95\",/(Windows 95)|(Win95)|(Windows_95)/],[\"Windows 98\",/(Windows 98)|(Win98)/],[\"Windows 2000\",/(Windows NT 5.0)|(Windows 2000)/],[\"Windows XP\",/(Windows NT 5.1)|(Windows XP)/],[\"Windows Server 2003\",/(Windows NT 5.2)/],[\"Windows Vista\",/(Windows NT 6.0)/],[\"Windows 7\",/(Windows NT 6.1)/],[\"Windows 8\",/(Windows NT 6.2)/],[\"Windows 8.1\",/(Windows NT 6.3)/],[\"Windows 10\",/(Windows NT 10.0)/],[\"Windows ME\",/Windows ME/],[\"Windows CE\",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],[\"Open BSD\",/OpenBSD/],[\"Sun OS\",/SunOS/],[\"Chrome OS\",/CrOS/],[\"Linux\",/(Linux)|(X11)/],[\"Mac OS\",/(Mac_PowerPC)|(Macintosh)/],[\"QNX\",/QNX/],[\"BeOS\",/BeOS/],[\"OS/2\",/OS\\/2/]];function f(e){return e?p(e):\"undefined\"==typeof document&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product?new u:\"undefined\"!=typeof navigator?p(navigator.userAgent):void 0!==n&&n.version?new o(n.version.slice(1)):null}function p(e){var t=\"\"!==e&&d.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var s=i.exec(e);return!!s&&[n,s]},!1);if(!t)return null;var r=t[0],n=t[1];if(\"searchbot\"===r)return new l;var o=n[1]&&n[1].split(\".\").join(\"_\").split(\"_\").slice(0,3);o?o.length<3&&(o=i(i([],o,!0),function(e){for(var t=[],r=0;r<e;r++)t.push(\"0\");return t}(3-o.length),!0)):o=[];var u=o.join(\".\"),f=function(e){for(var t=0,r=h.length;t<r;t++){var n=h[t],i=n[0];if(n[1].exec(e))return i}return null}(e),p=c.exec(e);return p&&p[1]?new a(r,u,f,p[1]):new s(r,u,f)}},52892:function(e){\"use strict\";var t={single_source_shortest_paths:function(e,r,n){var i,s,o,a,l,u,c,d={},h={};h[r]=0;var f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(o in s=(i=f.pop()).value,a=i.cost,l=e[s]||{})l.hasOwnProperty(o)&&(u=a+l[o],c=h[o],(void 0===h[o]||c>u)&&(h[o]=u,f.push(o,u),d[o]=s));if(void 0!==n&&void 0===h[n])throw Error([\"Could not find a path from \",r,\" to \",n,\".\"].join(\"\"));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},47059:function(e){\"use strict\";e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var s=e.charCodeAt(n+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,n+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},37836:function(e){\"use strict\";var t=Object.prototype.hasOwnProperty,r=\"~\";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,n,s,o){if(\"function\"!=typeof n)throw TypeError(\"The listener must be a function\");var a=new i(n,s||e,o),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=Array(s);i<s;i++)o[i]=n[i].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,i,s,o){var a=r?r+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,s),!0;case 6:return c.fn.call(c.context,t,n,i,s,o),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,i){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||o(this,s);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||i&&!a[l].once||n&&a[l].context!==n)&&u.push(a[l]);u.length?this._events[s]=1===u.length?u[0]:u:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},68885:function(e){\"use strict\";var t,r=\"object\"==typeof Reflect?Reflect:null,n=r&&\"function\"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&\"function\"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(r,n){var i;function s(r){e.removeListener(t,o),n(r)}function o(){\"function\"==typeof e.removeListener&&e.removeListener(\"error\",s),r([].slice.call(arguments))}g(e,t,o,{once:!0}),\"error\"!==t&&(i={once:!0},\"function\"==typeof e.on&&g(e,\"error\",s,i))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(e){if(\"function\"!=typeof e)throw TypeError('The \"listener\" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(a(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit(\"newListener\",t,r.listener?r.listener:r),s=e._events),o=s[t]),void 0===o)o=s[t]=r,++e._eventsCount;else if(\"function\"==typeof o?o=s[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var i,s,o,u=Error(\"Possible EventEmitter memory leak detected. \"+o.length+\" \"+String(t)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");u.name=\"MaxListenersExceededWarning\",u.emitter=e,u.type=t,u.count=o.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if(\"function\"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if(\"function\"==typeof e.addEventListener)e.addEventListener(t,function i(s){n.once&&e.removeEventListener(t,i),r(s)});else throw TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,\"defaultMaxListeners\",{enumerable:!0,get:function(){return o},set:function(e){if(\"number\"!=typeof e||e<0||i(e))throw RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+e+\".\");o=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(\"number\"!=typeof e||e<0||i(e))throw RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+e+\".\");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i=\"error\"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,a=Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if(\"function\"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r<u;++r)n(c[r],this,t);return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,s,o;if(a(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit(\"removeListener\",e,r.listener||t));else if(\"function\"!=typeof r){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,s=Object.keys(r);for(n=0;n<s.length;++n)\"removeListener\"!==(i=s[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return\"function\"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94023:function(e){\"use strict\";var t,r=(t=[{name:\"lowercase\",re:/[a-z]/,length:26},{name:\"uppercase\",re:/[A-Z]/,length:26},{name:\"numbers\",re:/[0-9]/,length:10},{name:\"symbols\",re:/[^a-zA-Z0-9]/,length:33}],function(e){return t.reduce(function(t,r){return t+(r.re.test(e)?r.length:0)},0)});e.exports=function(e){var t;return e?(t=r(e),Math.round(e.length*Math.log(t)/Math.LN2)):0}},27695:function(e){var t;t=function(){\"use strict\";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name=\"ArgumentError\",this.message=e}return function(r,n){if(n=n||{},\"function\"!=typeof r)throw new t(\"fetch must be a function\");if(\"object\"!=typeof n)throw new t(\"defaults must be an object\");if(void 0!==n.retries&&!e(n.retries))throw new t(\"retries must be a positive integer\");if(void 0!==n.retryDelay&&!e(n.retryDelay)&&\"function\"!=typeof n.retryDelay)throw new t(\"retryDelay must be a positive integer or a function returning a positive integer\");if(void 0!==n.retryOn&&!Array.isArray(n.retryOn)&&\"function\"!=typeof n.retryOn)throw new t(\"retryOn property expects an array or function\");return n=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},n),function(i,s){var o=n.retries,a=n.retryDelay,l=n.retryOn;if(s&&void 0!==s.retries){if(e(s.retries))o=s.retries;else throw new t(\"retries must be a positive integer\")}if(s&&void 0!==s.retryDelay){if(e(s.retryDelay)||\"function\"==typeof s.retryDelay)a=s.retryDelay;else throw new t(\"retryDelay must be a positive integer or a function returning a positive integer\")}if(s&&s.retryOn){if(Array.isArray(s.retryOn)||\"function\"==typeof s.retryOn)l=s.retryOn;else throw new t(\"retryOn property expects an array or function\")}return new Promise(function(e,t){var n=function(n){r(\"undefined\"!=typeof Request&&i instanceof Request?i.clone():i,s).then(function(r){if(Array.isArray(l)&&-1===l.indexOf(r.status))e(r);else if(\"function\"==typeof l)try{return Promise.resolve(l(n,null,r)).then(function(t){t?u(n,null,r):e(r)}).catch(t)}catch(e){t(e)}else n<o?u(n,null,r):e(r)}).catch(function(e){if(\"function\"==typeof l)try{Promise.resolve(l(n,e,null)).then(function(r){r?u(n,e,null):t(e)}).catch(function(e){t(e)})}catch(e){t(e)}else n<o?u(n,e,null):t(e)})};function u(e,t,r){setTimeout(function(){n(++e)},\"function\"==typeof a?a(e,t,r):a)}n(0)})}}},e.exports=t()},24816:function(e){\"use strict\";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),s=0;s<n.length;s++){var o=n[s],a=e[o];(i?-1!==t.indexOf(o):t(o,a,e))&&(r[o]=a)}return r}},83699:function(e,t,r){t.utils=r(69874),t.common=r(37142),t.sha=r(37727),t.ripemd=r(89561),t.hmac=r(40238),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},37142:function(e,t,r){\"use strict\";var n=r(69874),i=r(71974);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=s,s.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},s.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},s.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,\"big\"===this.endian){for(var s=8;s<this.padLength;s++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(s=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;s<this.padLength;s++)n[i++]=0;return n}},40238:function(e,t,r){\"use strict\";var n=r(69874),i=r(71974);function s(e,t,r){if(!(this instanceof s))return new s(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=s,s.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},s.prototype.update=function(e,t){return this.inner.update(e,t),this},s.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},89561:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=n.rotl32,o=n.sum32,a=n.sum32_3,l=n.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}n.inherits(c,u),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],m=r,y=n,b=i,v=u,w=c,_=0;_<80;_++){var E,A,x=o(s(l(r,d(_,n,i,u),e[h[_]+t],(E=_)<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838),p[_]),c);r=c,c=u,u=s(i,10),i=n,n=x,x=o(s(l(m,d(79-_,y,b,v),e[f[_]+t],(A=_)<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0),g[_]),w),m=w,w=v,v=s(b,10),b=y,y=x}x=a(this.h[1],i,v),this.h[1]=a(this.h[2],u,w),this.h[2]=a(this.h[3],c,m),this.h[3]=a(this.h[4],r,y),this.h[4]=a(this.h[0],n,b),this.h[0]=x},c.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"little\"):n.split32(this.h,\"little\")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},37727:function(e,t,r){\"use strict\";t.sha1=r(99659),t.sha224=r(15577),t.sha256=r(4132),t.sha384=r(65560),t.sha512=r(86124)},99659:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=r(9221),o=n.rotl32,a=n.sum32,l=n.sum32_5,u=s.ft_1,c=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],s=this.h[1],c=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=l(o(i,5),u(p,s,c,h),f,r[n],d[p]);f=h,h=c,c=o(s,30),s=i,i=g}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],c),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],f)},h.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"big\"):n.split32(this.h,\"big\")}},15577:function(e,t,r){\"use strict\";var n=r(69874),i=r(4132);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,i),e.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h.slice(0,7),\"big\"):n.split32(this.h.slice(0,7),\"big\")}},4132:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=r(9221),o=r(71974),a=n.sum32,l=n.sum32_4,u=n.sum32_5,c=s.ch32,d=s.maj32,h=s.s0_256,f=s.s1_256,p=s.g0_256,g=s.g1_256,m=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],s=this.h[1],m=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var E=u(_,f(b),c(b,v,w),this.k[n],r[n]),A=a(h(i),d(i,s,m));_=w,w=v,v=b,b=a(y,E),y=m,m=s,s=i,i=a(E,A)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},b.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"big\"):n.split32(this.h,\"big\")}},65560:function(e,t,r){\"use strict\";var n=r(69874),i=r(86124);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,i),e.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h.slice(0,12),\"big\"):n.split32(this.h.slice(0,12),\"big\")}},86124:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=r(71974),o=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,u=n.shr64_lo,c=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=Array(160)}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=o(e,t,19)^o(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),s=function(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),c=r[n-14],d=r[n-13],h=function(e,t){var r=o(e,t,1)^o(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),g=function(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),m=r[n-32],y=r[n-31];r[n]=f(i,s,c,d,h,g,m,y),r[n+1]=p(i,s,c,d,h,g,m,y)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],l=this.h[2],u=this.h[3],f=this.h[4],p=this.h[5],y=this.h[6],b=this.h[7],v=this.h[8],w=this.h[9],_=this.h[10],E=this.h[11],A=this.h[12],x=this.h[13],k=this.h[14],S=this.h[15];s(this.k.length===r.length);for(var $=0;$<r.length;$+=2){var C=k,P=S,I=function(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}(v,w),O=function(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}(v,w),N=function(e,t,r,n,i){var s=e&r^~e&i;return s<0&&(s+=4294967296),s}(v,0,_,0,A,x),M=function(e,t,r,n,i,s){var o=t&n^~t&s;return o<0&&(o+=4294967296),o}(0,w,0,E,0,x),R=this.k[$],T=this.k[$+1],D=r[$],L=r[$+1],j=g(C,P,I,O,N,M,R,T,D,L),B=m(C,P,I,O,N,M,R,T,D,L);C=function(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}(n,i);var F=d(C,P=function(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}(n,i),I=function(e,t,r,n,i){var s=e&r^e&i^r&i;return s<0&&(s+=4294967296),s}(n,0,l,0,f,p),O=function(e,t,r,n,i,s){var o=t&n^t&s^n&s;return o<0&&(o+=4294967296),o}(0,i,0,u,0,p)),U=h(C,P,I,O);k=A,S=x,A=_,x=E,_=v,E=w,v=d(y,b,j,B),w=h(b,b,j,B),y=f,b=p,f=l,p=u,l=n,u=i,n=d(j,B,F,U),i=h(j,B,F,U)}c(this.h,0,n,i),c(this.h,2,l,u),c(this.h,4,f,p),c(this.h,6,y,b),c(this.h,8,v,w),c(this.h,10,_,E),c(this.h,12,A,x),c(this.h,14,k,S)},v.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"big\"):n.split32(this.h,\"big\")}},9221:function(e,t,r){\"use strict\";var n=r(69874).rotr32;function i(e,t,r){return e&t^e&r^t&r}t.ft_1=function(e,t,r,n){return 0===e?t&r^~t&n:1===e||3===e?t^r^n:2===e?i(t,r,n):void 0},t.ch32=function(e,t,r){return e&t^~e&r},t.maj32=i,t.p32=function(e,t,r){return e^t^r},t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},69874:function(e,t,r){\"use strict\";var n=r(71974),i=r(87398);function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?\"0\"+e:e}function a(e){if(7===e.length)return\"0\"+e;if(6===e.length)return\"00\"+e;if(5===e.length)return\"000\"+e;if(4===e.length)return\"0000\"+e;if(3===e.length)return\"00000\"+e;if(2===e.length)return\"000000\"+e;if(1===e.length)return\"0000000\"+e;else return e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(\"string\"==typeof e){if(t){if(\"hex\"===t)for((e=e.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(e=\"0\"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s,o,a=e.charCodeAt(i);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:((s=e,o=i,(64512&s.charCodeAt(o))!=55296||o<0||o+1>=s.length?1:(64512&s.charCodeAt(o+1))!=56320)?r[n++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128),r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t=\"\",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var r=\"\",n=0;n<e.length;n++){var i=e[n];\"little\"===t&&(i=s(i)),r+=a(i.toString(16))}return r},t.zero2=o,t.zero8=a,t.join32=function(e,t,r,i){var s,o=r-t;n(o%4==0);for(var a=Array(o/4),l=0,u=t;l<a.length;l++,u+=4)s=\"big\"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[l]=s>>>0;return a},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var s=e[n];\"big\"===t?(r[i]=s>>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],s=n+e[t+1]>>>0;e[t]=(s<n?1:0)+r+i>>>0,e[t+1]=s},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,s,o,a){var l,u=t;return e+r+i+o+(0+((u=u+n>>>0)<t?1:0)+((u=u+s>>>0)<s?1:0)+((u=u+a>>>0)<a?1:0))>>>0},t.sum64_4_lo=function(e,t,r,n,i,s,o,a){return t+n+s+a>>>0},t.sum64_5_hi=function(e,t,r,n,i,s,o,a,l,u){var c,d=t;return e+r+i+o+l+(0+((d=d+n>>>0)<t?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+a>>>0)<a?1:0)+((d=d+u>>>0)<u?1:0))>>>0},t.sum64_5_lo=function(e,t,r,n,i,s,o,a,l,u){return t+n+s+a+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},46451:function(e,t,r){\"use strict\";var n=r(12659),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if(\"string\"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var a=l(t),g=l(r),m=0;m<o.length;++m){var y=o[m];if(!s[y]&&!(n&&n[y])&&!(g&&g[y])&&!(a&&a[y])){var b=h(r,y);try{u(t,y,b)}catch(e){}}}}return t}},6868:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,s=f&(1<<-c)-1,f>>=-c,c+=a;c>0;s=256*s+e[t+d],d+=h,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),s-=u}return(f?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,l,u=8*s-i-1,c=(1<<u)-1,d=c>>1,h=23===i?5960464477539062e-23:0,f=n?0:s-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(a=0,o=c):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*g}},87398:function(e){\"function\"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},83524:function(e,t,r){var n,i=r(25566);!function(){\"use strict\";var s=\"input is invalid type\",o=\"object\"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var l=!o&&\"object\"==typeof self;!a.JS_SHA3_NO_NODE_JS&&\"object\"==typeof i&&i.versions&&i.versions.node?a=r.g:l&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,d=!a.JS_SHA3_NO_ARRAY_BUFFER&&\"undefined\"!=typeof ArrayBuffer,h=\"0123456789abcdef\".split(\"\"),f=[4,1024,262144,67108864],p=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],y=[128,256],b=[\"hex\",\"buffer\",\"arrayBuffer\",\"array\",\"digest\"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return\"[object Array]\"===Object.prototype.toString.call(e)}),d&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return\"object\"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new T(e,t,e).update(n)[r]()}},_=function(e,t,r){return function(n,i){return new T(e,t,i).update(n)[r]()}},E=function(e,t,r){return function(t,n,i,s){return $[\"cshake\"+e].update(t,n,i,s)[r]()}},A=function(e,t,r){return function(t,n,i,s){return $[\"kmac\"+e].update(t,n,i,s)[r]()}},x=function(e,t,r,n){for(var i=0;i<b.length;++i){var s=b[i];e[s]=t(r,n,s)}return e},k=function(e,t){var r=w(e,t,\"hex\");return r.create=function(){return new T(e,t,e)},r.update=function(e){return r.create().update(e)},x(r,w,e,t)},S=[{name:\"keccak\",padding:[1,256,65536,16777216],bits:m,createMethod:k},{name:\"sha3\",padding:[6,1536,393216,100663296],bits:m,createMethod:k},{name:\"shake\",padding:[31,7936,2031616,520093696],bits:y,createMethod:function(e,t){var r=_(e,t,\"hex\");return r.create=function(r){return new T(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},x(r,_,e,t)}},{name:\"cshake\",padding:f,bits:y,createMethod:function(e,t){var r=v[e],n=E(e,t,\"hex\");return n.create=function(n,i,s){return i||s?new T(e,t,n).bytepad([i,s],r):$[\"shake\"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},x(n,E,e,t)}},{name:\"kmac\",padding:f,bits:y,createMethod:function(e,t){var r=v[e],n=A(e,t,\"hex\");return n.create=function(n,i,s){return new D(e,t,i).bytepad([\"KMAC\",s],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},x(n,A,e,t)}}],$={},C=[],P=0;P<S.length;++P)for(var I=S[P],O=I.bits,N=0;N<O.length;++N){var M=I.name+\"_\"+O[N];if(C.push(M),$[M]=I.createMethod(O[N],I.padding),\"sha3\"!==I.name){var R=I.name+O[N];C.push(R),$[R]=$[M]}}function T(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function D(e,t,r){T.call(this,e,t,r)}T.prototype.update=function(e){if(this.finalized)throw Error(\"finalize already called\");var t,r=typeof e;if(\"string\"!==r){if(\"object\"===r){if(null===e)throw Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(s)}else throw Error(s);t=!0}for(var n,i,o=this.blocks,a=this.byteCount,l=e.length,u=this.blockCount,c=0,h=this.s;c<l;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(t)for(n=this.start;c<l&&n<a;++c)o[n>>2]|=e[c]<<p[3&n++];else for(n=this.start;c<l&&n<a;++c)(i=e.charCodeAt(c))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++c)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)h[n]^=o[n];L(h),this.reset=!0}else this.start=n}return this},T.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},T.prototype.encodeString=function(e){var t,r=typeof e;if(\"string\"!==r){if(\"object\"===r){if(null===e)throw Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(s)}else throw Error(s);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},T.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,s=[];return s.length=i,this.update(s),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},T.prototype.toString=T.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=\"\";o<n;){for(s=0;s<t&&o<n;++s,++o)a+=h[(e=r[s])>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];o%t==0&&(L(r),s=0)}return i&&(a+=h[(e=r[s])>>4&15]+h[15&e],i>1&&(a+=h[e>>12&15]+h[e>>8&15]),i>2&&(a+=h[e>>20&15]+h[e>>16&15])),a},T.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:a));o<n;){for(s=0;s<t&&o<n;++s,++o)l[o]=r[s];o%t==0&&L(r)}return i&&(l[s]=r[s],e=e.slice(0,a)),e},T.prototype.buffer=T.prototype.arrayBuffer,T.prototype.digest=T.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,s=this.extraBytes,o=0,a=0,l=[];a<i;){for(o=0;o<r&&a<i;++o,++a)e=a<<2,t=n[o],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;a%r==0&&L(n)}return s&&(e=a<<2,t=n[o],l[e]=255&t,s>1&&(l[e+1]=t>>8&255),s>2&&(l[e+2]=t>>16&255)),l},D.prototype=new T,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),T.prototype.finalize.call(this)};var L=function(e){var t,r,n,i,s,o,a,l,u,c,d,h,f,p,m,y,b,v,w,_,E,A,x,k,S,$,C,P,I,O,N,M,R,T,D,L,j,B,F,U,z,q,H,G,V,W,K,Y,Z,J,Q,X,ee,et,er,en,ei,es,eo,ea,el,eu,ec;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],f=e[9]^e[19]^e[29]^e[39]^e[49],t=h^(o<<1|a>>>31),r=f^(a<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=s^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(c<<1|d>>>31),r=a^(d<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(h<<1|f>>>31),r=u^(f<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|s>>>31),r=d^(s<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],W=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ea=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,T=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,M=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,B=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,$=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,es=e[29]<<7|e[28]>>>25,eo=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=m^~b&w,e[10]=k^~$&P,e[11]=S^~C&I,e[20]=T^~L&B,e[21]=D^~j&F,e[30]=G^~W&Y,e[31]=V^~K&Z,e[40]=et^~en&es,e[41]=er^~ei&eo,e[2]=y^~v&_,e[3]=b^~w&E,e[12]=$^~P&O,e[13]=C^~I&N,e[22]=L^~B&U,e[23]=j^~F&z,e[32]=W^~Y&J,e[33]=K^~Z&Q,e[42]=en^~es&ea,e[43]=ei^~eo&el,e[4]=v^~_&A,e[5]=w^~E&x,e[14]=P^~O&M,e[15]=I^~N&R,e[24]=B^~U&q,e[25]=F^~z&H,e[34]=Y^~J&X,e[35]=Z^~Q&ee,e[44]=es^~ea&eu,e[45]=eo^~el&ec,e[6]=_^~A&p,e[7]=E^~x&m,e[16]=O^~M&k,e[17]=N^~R&S,e[26]=U^~q&T,e[27]=z^~H&D,e[36]=J^~X&G,e[37]=Q^~ee&V,e[46]=ea^~eu&et,e[47]=el^~ec&er,e[8]=A^~p&y,e[9]=x^~m&b,e[18]=M^~k&$,e[19]=R^~S&C,e[28]=q^~T&L,e[29]=H^~D&j,e[38]=X^~G&W,e[39]=ee^~V&K,e[48]=eu^~et&en,e[49]=ec^~er&ei,e[0]^=g[n],e[1]^=g[n+1]};if(u)e.exports=$;else{for(P=0;P<C.length;++P)a[C[P]]=$[C[P]];c&&void 0!==(n=(function(){return $}).call(t,r,t,e))&&(e.exports=n)}}()},6230:function(e,t,r){e.exports=r(80826)(r(14417))},80826:function(e,t,r){let n=r(58091),i=r(1911);e.exports=function(e){let t=n(e),r=i(e);return function(e,n){switch(\"string\"==typeof e?e.toLowerCase():e){case\"keccak224\":return new t(1152,448,null,224,n);case\"keccak256\":return new t(1088,512,null,256,n);case\"keccak384\":return new t(832,768,null,384,n);case\"keccak512\":return new t(576,1024,null,512,n);case\"sha3-224\":return new t(1152,448,6,224,n);case\"sha3-256\":return new t(1088,512,6,256,n);case\"sha3-384\":return new t(832,768,6,384,n);case\"sha3-512\":return new t(576,1024,6,512,n);case\"shake128\":return new r(1344,256,31,n);case\"shake256\":return new r(1088,512,31,n);default:throw Error(\"Invald algorithm: \"+e)}}}},58091:function(e,t,r){var n=r(9109).Buffer;let{Transform:i}=r(5939);e.exports=e=>class t extends i{constructor(t,r,n,i,s){super(s),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=s,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!n.isBuffer(e)&&\"string\"!=typeof e)throw TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw Error(\"Digest already called\");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error(\"Digest already called\");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},1911:function(e,t,r){var n=r(9109).Buffer;let{Transform:i}=r(5939);e.exports=e=>class t extends i{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&\"string\"!=typeof e)throw TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw Error(\"Squeeze already called\");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},66768:function(e,t){let r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){let n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],c=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],f=d^(s<<1|o>>>31),p=h^(o<<1|s>>>31),g=e[0]^f,m=e[1]^p,y=e[10]^f,b=e[11]^p,v=e[20]^f,w=e[21]^p,_=e[30]^f,E=e[31]^p,A=e[40]^f,x=e[41]^p;f=n^(a<<1|l>>>31),p=i^(l<<1|a>>>31);let k=e[2]^f,S=e[3]^p,$=e[12]^f,C=e[13]^p,P=e[22]^f,I=e[23]^p,O=e[32]^f,N=e[33]^p,M=e[42]^f,R=e[43]^p;f=s^(u<<1|c>>>31),p=o^(c<<1|u>>>31);let T=e[4]^f,D=e[5]^p,L=e[14]^f,j=e[15]^p,B=e[24]^f,F=e[25]^p,U=e[34]^f,z=e[35]^p,q=e[44]^f,H=e[45]^p;f=a^(d<<1|h>>>31),p=l^(h<<1|d>>>31);let G=e[6]^f,V=e[7]^p,W=e[16]^f,K=e[17]^p,Y=e[26]^f,Z=e[27]^p,J=e[36]^f,Q=e[37]^p,X=e[46]^f,ee=e[47]^p;f=u^(n<<1|i>>>31),p=c^(i<<1|n>>>31);let et=e[8]^f,er=e[9]^p,en=e[18]^f,ei=e[19]^p,es=e[28]^f,eo=e[29]^p,ea=e[38]^f,el=e[39]^p,eu=e[48]^f,ec=e[49]^p,ed=b<<4|y>>>28,eh=y<<4|b>>>28,ef=v<<3|w>>>29,ep=w<<3|v>>>29,eg=E<<9|_>>>23,em=_<<9|E>>>23,ey=A<<18|x>>>14,eb=x<<18|A>>>14,ev=k<<1|S>>>31,ew=S<<1|k>>>31,e_=C<<12|$>>>20,eE=$<<12|C>>>20,eA=P<<10|I>>>22,ex=I<<10|P>>>22,ek=N<<13|O>>>19,eS=O<<13|N>>>19,e$=M<<2|R>>>30,eC=R<<2|M>>>30,eP=D<<30|T>>>2,eI=T<<30|D>>>2,eO=L<<6|j>>>26,eN=j<<6|L>>>26,eM=F<<11|B>>>21,eR=B<<11|F>>>21,eT=U<<15|z>>>17,eD=z<<15|U>>>17,eL=H<<29|q>>>3,ej=q<<29|H>>>3,eB=G<<28|V>>>4,eF=V<<28|G>>>4,eU=K<<23|W>>>9,ez=W<<23|K>>>9,eq=Y<<25|Z>>>7,eH=Z<<25|Y>>>7,eG=J<<21|Q>>>11,eV=Q<<21|J>>>11,eW=ee<<24|X>>>8,eK=X<<24|ee>>>8,eY=et<<27|er>>>5,eZ=er<<27|et>>>5,eJ=en<<20|ei>>>12,eQ=ei<<20|en>>>12,eX=eo<<7|es>>>25,e0=es<<7|eo>>>25,e1=ea<<8|el>>>24,e2=el<<8|ea>>>24,e3=eu<<14|ec>>>18,e5=ec<<14|eu>>>18;e[0]=g^~e_&eM,e[1]=m^~eE&eR,e[10]=eB^~eJ&ef,e[11]=eF^~eQ&ep,e[20]=ev^~eO&eq,e[21]=ew^~eN&eH,e[30]=eY^~ed&eA,e[31]=eZ^~eh&ex,e[40]=eP^~eU&eX,e[41]=eI^~ez&e0,e[2]=e_^~eM&eG,e[3]=eE^~eR&eV,e[12]=eJ^~ef&ek,e[13]=eQ^~ep&eS,e[22]=eO^~eq&e1,e[23]=eN^~eH&e2,e[32]=ed^~eA&eT,e[33]=eh^~ex&eD,e[42]=eU^~eX&eg,e[43]=ez^~e0&em,e[4]=eM^~eG&e3,e[5]=eR^~eV&e5,e[14]=ef^~ek&eL,e[15]=ep^~eS&ej,e[24]=eq^~e1&ey,e[25]=eH^~e2&eb,e[34]=eA^~eT&eW,e[35]=ex^~eD&eK,e[44]=eX^~eg&e$,e[45]=e0^~em&eC,e[6]=eG^~e3&g,e[7]=eV^~e5&m,e[16]=ek^~eL&eB,e[17]=eS^~ej&eF,e[26]=e1^~ey&ev,e[27]=e2^~eb&ew,e[36]=eT^~eW&eY,e[37]=eD^~eK&eZ,e[46]=eg^~e$&eP,e[47]=em^~eC&eI,e[8]=e3^~g&e_,e[9]=e5^~m&eE,e[18]=eL^~eB&eJ,e[19]=ej^~eF&eQ,e[28]=ey^~ev&eO,e[29]=eb^~ew&eN,e[38]=eW^~eY&ed,e[39]=eK^~eZ&eh,e[48]=e$^~eP&eU,e[49]=eC^~eI&ez,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},14417:function(e,t,r){var n=r(9109).Buffer;let i=r(66768);function s(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}s.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},s.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},s.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,(128&e)!=0&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},s.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=n.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},s.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=s},8355:function(e,t,r){e=r.nmd(e);var n,i,s,o=\"__lodash_hash_undefined__\",a=\"[object Arguments]\",l=\"[object Array]\",u=\"[object Boolean]\",c=\"[object Date]\",d=\"[object Error]\",h=\"[object Function]\",f=\"[object Map]\",p=\"[object Number]\",g=\"[object Object]\",m=\"[object Promise]\",y=\"[object RegExp]\",b=\"[object Set]\",v=\"[object String]\",w=\"[object WeakMap]\",_=\"[object ArrayBuffer]\",E=\"[object DataView]\",A=/^\\[object .+?Constructor\\]$/,x=/^(?:0|[1-9]\\d*)$/,k={};k[\"[object Float32Array]\"]=k[\"[object Float64Array]\"]=k[\"[object Int8Array]\"]=k[\"[object Int16Array]\"]=k[\"[object Int32Array]\"]=k[\"[object Uint8Array]\"]=k[\"[object Uint8ClampedArray]\"]=k[\"[object Uint16Array]\"]=k[\"[object Uint32Array]\"]=!0,k[a]=k[l]=k[_]=k[u]=k[E]=k[c]=k[d]=k[h]=k[f]=k[p]=k[g]=k[y]=k[b]=k[v]=k[w]=!1;var S=\"object\"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,$=\"object\"==typeof self&&self&&self.Object===Object&&self,C=S||$||Function(\"return this\")(),P=t&&!t.nodeType&&t,I=P&&e&&!e.nodeType&&e,O=I&&I.exports===P,N=O&&S.process,M=function(){try{return N&&N.binding&&N.binding(\"util\")}catch(e){}}(),R=M&&M.isTypedArray;function T(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function D(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var L=Array.prototype,j=Function.prototype,B=Object.prototype,F=C[\"__core-js_shared__\"],U=j.toString,z=B.hasOwnProperty,q=(n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",H=B.toString,G=RegExp(\"^\"+U.call(z).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),V=O?C.Buffer:void 0,W=C.Symbol,K=C.Uint8Array,Y=B.propertyIsEnumerable,Z=L.splice,J=W?W.toStringTag:void 0,Q=Object.getOwnPropertySymbols,X=V?V.isBuffer:void 0,ee=(i=Object.keys,s=Object,function(e){return i(s(e))}),et=ek(C,\"DataView\"),er=ek(C,\"Map\"),en=ek(C,\"Promise\"),ei=ek(C,\"Set\"),es=ek(C,\"WeakMap\"),eo=ek(Object,\"create\"),ea=eC(et),el=eC(er),eu=eC(en),ec=eC(ei),ed=eC(es),eh=W?W.prototype:void 0,ef=eh?eh.valueOf:void 0;function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ey(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function eb(e){var t=this.__data__=new eg(e);this.size=t.size}function ev(e,t){for(var r=e.length;r--;)if(eP(e[r][0],t))return r;return -1}function ew(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":J&&J in Object(e)?function(e){var t=z.call(e,J),r=e[J];try{e[J]=void 0;var n=!0}catch(e){}var i=H.call(e);return n&&(t?e[J]=r:delete e[J]),i}(e):H.call(e)}function e_(e){return eD(e)&&ew(e)==a}function eE(e,t,r,n,i,s){var o=1&r,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var c=-1,d=!0,h=2&r?new ey:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var f=e[c],p=t[c];if(n)var g=o?n(p,f,c,t,e,s):n(f,p,c,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(f===e||i(f,e,r,n,s)))return h.push(t)})){d=!1;break}}else if(!(f===p||i(f,p,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}function eA(e){var t;return t=function(e){return null!=e&&eR(e.length)&&!eM(e)?function(e,t){var r,n=eO(e),i=!n&&eI(e),s=!n&&!i&&eN(e),o=!n&&!i&&!s&&eL(e),a=n||i||s||o,l=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=l.length;for(var c in e)z.call(e,c)&&!(a&&(\"length\"==c||s&&(\"offset\"==c||\"parent\"==c)||o&&(\"buffer\"==c||\"byteLength\"==c||\"byteOffset\"==c)||(r=null==(r=u)?9007199254740991:r)&&(\"number\"==typeof c||x.test(c))&&c>-1&&c%1==0&&c<r))&&l.push(c);return l}(e):function(e){if(t=e&&e.constructor,e!==(\"function\"==typeof t&&t.prototype||B))return ee(e);var t,r=[];for(var n in Object(e))z.call(e,n)&&\"constructor\"!=n&&r.push(n);return r}(e)}(e),eO(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eS(e))}function ex(e,t){var r,n=e.__data__;return(\"string\"==(r=typeof t)||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==t:null===t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}function ek(e,t){var r=null==e?void 0:e[t];return!(!eT(r)||q&&q in r)&&(eM(r)?G:A).test(eC(r))?r:void 0}ep.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ep.prototype.get=function(e){var t=this.__data__;if(eo){var r=t[e];return r===o?void 0:r}return z.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:z.call(t,e)},ep.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eo&&void 0===t?o:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,r=ev(t,e);return!(r<0)&&(r==t.length-1?t.pop():Z.call(t,r,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,r=ev(t,e);return r<0?void 0:t[r][1]},eg.prototype.has=function(e){return ev(this.__data__,e)>-1},eg.prototype.set=function(e,t){var r=this.__data__,n=ev(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(er||eg),string:new ep}},em.prototype.delete=function(e){var t=ex(this,e).delete(e);return this.size-=t?1:0,t},em.prototype.get=function(e){return ex(this,e).get(e)},em.prototype.has=function(e){return ex(this,e).has(e)},em.prototype.set=function(e,t){var r=ex(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,o),this},ey.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new eg,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eg){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eS=Q?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}(Q(e=Object(e)),function(t){return Y.call(e,t)})}:function(){return[]},e$=ew;function eC(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}function eP(e,t){return e===t||e!=e&&t!=t}(et&&e$(new et(new ArrayBuffer(1)))!=E||er&&e$(new er)!=f||en&&e$(en.resolve())!=m||ei&&e$(new ei)!=b||es&&e$(new es)!=w)&&(e$=function(e){var t=ew(e),r=t==g?e.constructor:void 0,n=r?eC(r):\"\";if(n)switch(n){case ea:return E;case el:return f;case eu:return m;case ec:return b;case ed:return w}return t});var eI=e_(function(){return arguments}())?e_:function(e){return eD(e)&&z.call(e,\"callee\")&&!Y.call(e,\"callee\")},eO=Array.isArray,eN=X||function(){return!1};function eM(e){if(!eT(e))return!1;var t=ew(e);return t==h||\"[object GeneratorFunction]\"==t||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function eR(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eT(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function eD(e){return null!=e&&\"object\"==typeof e}var eL=R?function(e){return R(e)}:function(e){return eD(e)&&eR(e.length)&&!!k[ew(e)]};e.exports=function(e,t){return function e(t,r,n,i,s){return t===r||(null!=t&&null!=r&&(eD(t)||eD(r))?function(e,t,r,n,i,s){var o=eO(e),h=eO(t),m=o?l:e$(e),w=h?l:e$(t);m=m==a?g:m,w=w==a?g:w;var A=m==g,x=w==g,k=m==w;if(k&&eN(e)){if(!eN(t))return!1;o=!0,A=!1}if(k&&!A)return s||(s=new eb),o||eL(e)?eE(e,t,r,n,i,s):function(e,t,r,n,i,s,o){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:if(e.byteLength!=t.byteLength||!s(new K(e),new K(t)))break;return!0;case u:case c:case p:return eP(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case v:return e==t+\"\";case f:var a=T;case b:var l=1&n;if(a||(a=D),e.size!=t.size&&!l)break;var h=o.get(e);if(h)return h==t;n|=2,o.set(e,t);var g=eE(a(e),a(t),n,i,s,o);return o.delete(e),g;case\"[object Symbol]\":if(ef)return ef.call(e)==ef.call(t)}return!1}(e,t,m,r,n,i,s);if(!(1&r)){var S=A&&z.call(e,\"__wrapped__\"),$=x&&z.call(t,\"__wrapped__\");if(S||$){var C=S?e.value():e,P=$?t.value():t;return s||(s=new eb),i(C,P,r,n,s)}}return!!k&&(s||(s=new eb),function(e,t,r,n,i,s){var o=1&r,a=eA(e),l=a.length;if(l!=eA(t).length&&!o)return!1;for(var u=l;u--;){var c=a[u];if(!(o?c in t:z.call(t,c)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var f=o;++u<l;){var p=e[c=a[u]],g=t[c];if(n)var m=o?n(g,p,c,t,e,s):n(p,g,c,e,t,s);if(!(void 0===m?p===g||i(p,g,r,n,s):m)){h=!1;break}f||(f=\"constructor\"==c)}if(h&&!f){var y=e.constructor,b=t.constructor;y!=b&&\"constructor\"in e&&\"constructor\"in t&&!(\"function\"==typeof y&&y instanceof y&&\"function\"==typeof b&&b instanceof b)&&(h=!1)}return s.delete(e),s.delete(t),h}(e,t,r,n,i,s))}(t,r,n,i,e,s):t!=t&&r!=r)}(e,t)}},71974:function(e){function t(e,t){if(!e)throw Error(t||\"Assertion failed\")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||\"Assertion failed: \"+e+\" != \"+t)}},37185:function(e){\"use strict\";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},57764:function(e,t,r){\"use strict\";r.r(t),r.d(t,{Component:function(){return k},Fragment:function(){return x},cloneElement:function(){return F},createContext:function(){return U},createElement:function(){return _},createRef:function(){return A},h:function(){return _},hydrate:function(){return B},isValidElement:function(){return o},options:function(){return i},render:function(){return j},toChildArray:function(){return function e(t,r){return r=r||[],null==t||\"boolean\"==typeof t||(b(t)?t.some(function(t){e(t,r)}):r.push(t)),r}}});var n,i,s,o,a,l,u,c,d,h,f,p,g={},m=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function v(e,t){for(var r in t)e[r]=t[r];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,r){var i,s,o,a={};for(o in t)\"key\"==o?i=t[o]:\"ref\"==o?s=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),\"function\"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return E(e,a,i,s,null)}function E(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=i.vnode&&i.vnode(a),a}function A(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return\"function\"==typeof e.type?S(e):null}function $(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!C.__r++||l!==i.debounceRendering)&&((l=i.debounceRendering)||u)(C)}function C(){var e,t,r,n,s,o,l,u;for(a.sort(c);e=a.shift();)e.__d&&(t=a.length,n=void 0,o=(s=(r=e).__v).__e,l=[],u=[],r.__P&&((n=v({},s)).__v=s.__v+1,i.vnode&&i.vnode(n),M(r.__P,n,s,r.__n,r.__P.namespaceURI,32&s.__u?[o]:null,l,null==o?S(s):o,!!(32&s.__u),u),n.__v=s.__v,n.__.__k[n.__i]=n,R(l,n,u),n.__e!=o&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n)),a.length>t&&a.sort(c));C.__r=0}function P(e,t,r,n,i,s,o,a,l,u,c){var d,h,f,p,y,v=n&&n.__k||m,w=t.length;for(r.__d=l,function(e,t,r){var n,i,s,o,a,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)o=n+d,null!=(i=e.__k[n]=null==(i=t[n])||\"boolean\"==typeof i||\"function\"==typeof i?null:\"string\"==typeof i||\"number\"==typeof i||\"bigint\"==typeof i||i.constructor==String?E(null,i,null,null,null):b(i)?E(x,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?E(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=function(e,t,r,n){var i=e.key,s=e.type,o=r-1,a=r+1,l=t[r];if(null===l||l&&i==l.key&&s===l.type&&0==(131072&l.__u))return r;if(n>(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return -1}(i,r,o,c),i.__i=a,s=null,-1!==a&&(c--,(s=r[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&d--,\"function\"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a==o-1?d=a-o:a==o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o&&d++,a!==n+d&&(i.__u|=65536))):(s=r[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=S(s)),D(s,s,!1),r[o]=null,c--);if(c)for(n=0;n<u;n++)null!=(s=r[n])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=S(s)),D(s,s))}(r,t,v),l=r.__d,d=0;d<w;d++)null!=(f=r.__k[d])&&\"boolean\"!=typeof f&&\"function\"!=typeof f&&(h=-1===f.__i?g:v[f.__i]||g,f.__i=d,M(e,f,h,i,s,o,a,l,u,c),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&T(h.ref,null,f),c.push(f.ref,f.__c||p,f)),null==y&&null!=p&&(y=p),65536&f.__u||h.__k===f.__k?l=function e(t,r,n){var i,s;if(\"function\"==typeof t.type){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,r=e(i[s],r,n));return r}t.__e!=r&&(r&&t.type&&!n.contains(r)&&(r=S(t)),n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType);return r}(f,l,e):\"function\"==typeof f.type&&void 0!==f.__d?l=f.__d:p&&(l=p.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=l,r.__e=y}function I(e,t,r){\"-\"===t[0]?e.setProperty(t,null==r?\"\":r):e[t]=null==r?\"\":\"number\"!=typeof r||y.test(t)?r:r+\"px\"}function O(e,t,r,n,i){var s;t:if(\"style\"===t){if(\"string\"==typeof r)e.style.cssText=r;else{if(\"string\"==typeof n&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||I(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||I(e.style,t,r[t])}}else if(\"o\"===t[0]&&\"n\"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase() in e||\"onFocusOut\"===t||\"onFocusIn\"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?n?r.u=n.u:(r.u=d,e.addEventListener(t,s?f:h,s)):e.removeEventListener(t,s?f:h,s);else{if(\"http://www.w3.org/2000/svg\"==i)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=t&&\"height\"!=t&&\"href\"!=t&&\"list\"!=t&&\"form\"!=t&&\"tabIndex\"!=t&&\"download\"!=t&&\"rowSpan\"!=t&&\"colSpan\"!=t&&\"role\"!=t&&\"popover\"!=t&&t in e)try{e[t]=null==r?\"\":r;break t}catch(e){}\"function\"==typeof r||(null==r||!1===r&&\"-\"!==t[4]?e.removeAttribute(t):e.setAttribute(t,\"popover\"==t&&1==r?\"\":r))}}function N(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<r.u)return;return r(i.event?i.event(t):t)}}}function M(e,t,r,s,o,a,l,u,c,d){var h,f,p,m,y,_,E,A,$,C,I,N,M,R,T,D,j=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),a=[u=t.__e=r.__e]),(h=i.__b)&&h(t);t:if(\"function\"==typeof j)try{if(A=t.props,$=\"prototype\"in j&&j.prototype.render,C=(h=j.contextType)&&s[h.__c],I=h?C?C.props.value:h.__:s,r.__c?E=(f=t.__c=r.__c).__=f.__E:($?t.__c=f=new j(A,I):(t.__c=f=new k(A,I),f.constructor=j,f.render=L),C&&C.sub(f),f.props=A,f.state||(f.state={}),f.context=I,f.__n=s,p=f.__d=!0,f.__h=[],f._sb=[]),$&&null==f.__s&&(f.__s=f.state),$&&null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,j.getDerivedStateFromProps(A,f.__s))),m=f.props,y=f.state,f.__v=t,p)$&&null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),$&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if($&&null==j.getDerivedStateFromProps&&A!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(A,I),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(A,f.__s,I)||t.__v===r.__v)){for(t.__v!==r.__v&&(f.props=A,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),N=0;N<f._sb.length;N++)f.__h.push(f._sb[N]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(A,f.__s,I),$&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(m,y,_)})}if(f.context=I,f.props=A,f.__P=e,f.__e=!1,M=i.__r,R=0,$){for(f.state=f.__s,f.__d=!1,M&&M(t),h=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,M&&M(t),h=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++R<25);f.state=f.__s,null!=f.getChildContext&&(s=v(v({},s),f.getChildContext())),$&&!p&&null!=f.getSnapshotBeforeUpdate&&(_=f.getSnapshotBeforeUpdate(m,y)),P(e,b(D=null!=h&&h.type===x&&null==h.key?h.props.children:h)?D:[D],t,r,s,o,a,l,u,c,d),f.base=t.__e,t.__u&=-161,f.__h.length&&l.push(f),E&&(f.__E=f.__=null)}catch(e){if(t.__v=null,c||null!=a){for(t.__u|=c?160:32;u&&8===u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,t.__e=u}else t.__e=r.__e,t.__k=r.__k;i.__e(e,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,i,s,o,a,l,u){var c,d,h,f,p,m,y,v=r.props,_=t.props,E=t.type;if(\"svg\"===E?s=\"http://www.w3.org/2000/svg\":\"math\"===E?s=\"http://www.w3.org/1998/Math/MathML\":s||(s=\"http://www.w3.org/1999/xhtml\"),null!=o){for(c=0;c<o.length;c++)if((p=o[c])&&\"setAttribute\"in p==!!E&&(E?p.localName===E:3===p.nodeType)){e=p,o[c]=null;break}}if(null==e){if(null===E)return document.createTextNode(_);e=document.createElementNS(s,E,_.is&&_),o=null,l=!1}if(null===E)v===_||l&&e.data===_||(e.data=_);else{if(o=o&&n.call(e.childNodes),v=r.props||g,!l&&null!=o)for(v={},c=0;c<e.attributes.length;c++)v[(p=e.attributes[c]).name]=p.value;for(c in v)if(p=v[c],\"children\"==c);else if(\"dangerouslySetInnerHTML\"==c)h=p;else if(\"key\"!==c&&!(c in _)){if(\"value\"==c&&\"defaultValue\"in _||\"checked\"==c&&\"defaultChecked\"in _)continue;O(e,c,null,p,s)}for(c in _)p=_[c],\"children\"==c?f=p:\"dangerouslySetInnerHTML\"==c?d=p:\"value\"==c?m=p:\"checked\"==c?y=p:\"key\"===c||l&&\"function\"!=typeof p||v[c]===p||O(e,c,p,v[c],s);if(d)l||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=\"\"),P(e,b(f)?f:[f],t,r,i,\"foreignObject\"===E?\"http://www.w3.org/1999/xhtml\":s,o,a,o?o[0]:r.__k&&S(r,0),l,u),null!=o)for(c=o.length;c--;)null!=o[c]&&w(o[c]);l||(c=\"value\",void 0===m||m===e[c]&&(\"progress\"!==E||m)&&(\"option\"!==E||m===v[c])||O(e,c,m,v[c],s),c=\"checked\",void 0!==y&&y!==e[c]&&O(e,c,y,v[c],s))}return e}(r.__e,t,r,s,o,a,l,c,d);(h=i.diffed)&&h(t)}function R(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)T(r[n],r[++n],r[++n]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function T(e,t,r){try{if(\"function\"==typeof e){var n=\"function\"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,r)}}function D(e,t,r){var n,s;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||T(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&D(n[s],t,r||\"function\"!=typeof e.type);r||null==e.__e||w(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function L(e,t,r){return this.constructor(e,r)}function j(e,t,r){var s,o,a,l;i.__&&i.__(e,t),o=(s=\"function\"==typeof r)?null:r&&r.__k||t.__k,a=[],l=[],M(t,e=(!s&&r||t).__k=_(x,null,[e]),o||g,g,t.namespaceURI,!s&&r?[r]:o?null:t.firstChild?n.call(t.childNodes):null,a,!s&&r?r:o?o.__e:t.firstChild,s,l),R(a,e,l)}function B(e,t){j(e,t,B)}function F(e,t,r){var i,s,o,a,l=v({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)\"key\"==o?i=t[o]:\"ref\"==o?s=t[o]:l[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),E(e.type,l,i||e.key,s||e.ref,null)}function U(e,t){var r={__c:t=\"__cC\"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(function(e){e.__e=!0,$(e)})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}n=m.slice,i={__e:function(e,t,r,n){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},s=0,o=function(e){return null!=e&&null==e.constructor},k.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),\"function\"==typeof e&&(e=e(v({},r),this.props)),e&&v(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},k.prototype.render=x,a=[],u=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,d=0,h=N(!1),f=N(!0),p=0},83148:function(e,t,r){\"use strict\";r.r(t),r.d(t,{useCallback:function(){return k},useContext:function(){return S},useDebugValue:function(){return $},useEffect:function(){return w},useErrorBoundary:function(){return C},useId:function(){return P},useImperativeHandle:function(){return A},useLayoutEffect:function(){return _},useMemo:function(){return x},useReducer:function(){return v},useRef:function(){return E},useState:function(){return b}});var n,i,s,o,a=r(57764),l=0,u=[],c=a.options,d=c.__b,h=c.__r,f=c.diffed,p=c.__c,g=c.unmount,m=c.__;function y(e,t){c.__h&&c.__h(i,e,l||t),l=0;var r=i.__H||(i.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function b(e){return l=1,v(T,e)}function v(e,t,r){var s=y(n++,2);if(s.t=e,!s.__c&&(s.__=[r?r(t):T(void 0,t),function(e){var t=s.__N?s.__N[0]:s.__[0],r=s.t(t,e);t!==r&&(s.__N=[r,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(e,t,r){if(!s.__c.__H)return!0;var n=s.__c.__H.__.filter(function(e){return!!e.__c});if(n.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var i=!1;return n.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&s.__c.props===e)&&(!a||a.call(this,e,t,r))};i.u=!0;var a=i.shouldComponentUpdate,l=i.componentWillUpdate;i.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,o(e,t,r),a=n}l&&l.call(this,e,t,r)},i.shouldComponentUpdate=o}return s.__N||s.__}function w(e,t){var r=y(n++,3);!c.__s&&R(r.__H,t)&&(r.__=e,r.i=t,i.__H.__h.push(r))}function _(e,t){var r=y(n++,4);!c.__s&&R(r.__H,t)&&(r.__=e,r.i=t,i.__h.push(r))}function E(e){return l=5,x(function(){return{current:e}},[])}function A(e,t,r){l=6,_(function(){return\"function\"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))}function x(e,t){var r=y(n++,7);return R(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function k(e,t){return l=8,x(function(){return e},t)}function S(e){var t=i.context[e.__c],r=y(n++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(i)),t.props.value):e.__}function $(e,t){c.useDebugValue&&c.useDebugValue(t?t(e):e)}function C(e){var t=y(n++,10),r=b();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function P(){var e=y(n++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__=\"P\"+r[0]+\"-\"+r[1]++}return e.__}function I(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(N),e.__H.__h.forEach(M),e.__H.__h=[]}catch(t){e.__H.__h=[],c.__e(t,e.__v)}}c.__b=function(e){i=null,d&&d(e)},c.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),m&&m(e,t)},c.__r=function(e){h&&h(e),n=0;var t=(i=e.__c).__H;t&&(s===i?(t.__h=[],i.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(N),t.__h.forEach(M),t.__h=[],n=0)),s=i},c.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&o===c.requestAnimationFrame||((o=c.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),O&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);O&&(t=requestAnimationFrame(r))})(I)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),s=i=null},c.__c=function(e,t){t.some(function(e){try{e.__h.forEach(N),e.__h=e.__h.filter(function(e){return!e.__||M(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],c.__e(r,e.__v)}}),p&&p(e,t)},c.unmount=function(e){g&&g(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{N(e)}catch(e){t=e}}),r.__H=void 0,t&&c.__e(t,r.__v))};var O=\"function\"==typeof requestAnimationFrame;function N(e){var t=i,r=e.__c;\"function\"==typeof r&&(e.__c=void 0,r()),i=t}function M(e){var t=i;e.__c=e.__(),i=t}function R(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function T(e,t){return\"function\"==typeof t?t(e):t}},19783:function(e,t,r){let n=r(87936),i=r(23364),s=r(64811),o=r(65773);function a(e,t,r,s,o){let a=[].slice.call(arguments,1),l=a.length,u=\"function\"==typeof a[l-1];if(!u&&!n())throw Error(\"Callback required as last argument\");if(u){if(l<2)throw Error(\"Too few arguments provided\");2===l?(o=r,r=t,t=s=void 0):3===l&&(t.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=t,t=void 0))}else{if(l<1)throw Error(\"Too few arguments provided\");return 1===l?(r=t,t=s=void 0):2!==l||t.getContext||(s=r,r=t,t=void 0),new Promise(function(n,o){try{let o=i.create(r,s);n(e(o,t,s))}catch(e){o(e)}})}try{let n=i.create(r,s);o(null,e(n,t,s))}catch(e){o(e)}}t.create=i.create,t.toCanvas=a.bind(null,s.render),t.toDataURL=a.bind(null,s.renderToDataURL),t.toString=a.bind(null,function(e,t,r){return o.render(e,r)})},87936:function(e){e.exports=function(){return\"function\"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},80532:function(e,t,r){let n=r(2601).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),s=[r-7];for(let e=1;e<t-1;e++)s[e]=s[e-1]-i;return s.push(6),s.reverse()},t.getPositions=function(e){let r=[],n=t.getRowColCoords(e),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)(0!==e||0!==t)&&(0!==e||t!==i-1)&&(e!==i-1||0!==t)&&r.push([n[e],n[t]]);return r}},62971:function(e,t,r){let n=r(58257),i=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\" \",\"$\",\"%\",\"*\",\"+\",\"-\",\".\",\"/\",\":\"];function s(e){this.mode=n.ALPHANUMERIC,this.data=e}s.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t]);r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=s},86423:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},43143:function(e){function t(e){if(!e||e<1)throw Error(\"BitMatrix size must be defined and greater than 0\");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},23841:function(e,t,r){let n=r(47059),i=r(58257);function s(e){this.mode=i.BYTE,\"string\"==typeof e&&(e=n(e)),this.data=new Uint8Array(e)}s.getBitsLength=function(e){return 8*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=s},34270:function(e,t,r){let n=r(38428),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return i[(e-1)*4+0];case n.M:return i[(e-1)*4+1];case n.Q:return i[(e-1)*4+2];case n.H:return i[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return s[(e-1)*4+0];case n.M:return s[(e-1)*4+1];case n.Q:return s[(e-1)*4+2];case n.H:return s[(e-1)*4+3];default:return}}},38428:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if(\"string\"!=typeof e)throw Error(\"Param is not a string\");switch(e.toLowerCase()){case\"l\":case\"low\":return t.L;case\"m\":case\"medium\":return t.M;case\"q\":case\"quartile\":return t.Q;case\"h\":case\"high\":return t.H;default:throw Error(\"Unknown EC Level: \"+e)}}(e)}catch(e){return r}}},16123:function(e,t,r){let n=r(2601).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},59906:function(e,t,r){let n=r(2601),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,s=r<<10;for(;n.getBCHDigit(s)-i>=0;)s^=1335<<n.getBCHDigit(s)-i;return(r<<10|s)^21522}},61011:function(e,t){let r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error(\"log(\"+e+\")\");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},62558:function(e,t,r){let n=r(58257),i=r(2601);function s(e){this.mode=n.KANJI,this.data=e}s.getBitsLength=function(e){return 13*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error(\"Invalid SJIS character: \"+this.data[t]+\"\\nMake sure your charset is UTF-8\");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=s},42903:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&\"\"!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,i=0,s=0,o=null,a=null;for(let l=0;l<t;l++){i=s=0,o=a=null;for(let u=0;u<t;u++){let t=e.get(l,u);t===o?i++:(i>=5&&(n+=r.N1+(i-5)),o=t,i=1),(t=e.get(u,l))===a?s++:(s>=5&&(n+=r.N1+(s-5)),a=t,s=1)}i>=5&&(n+=r.N1+(i-5)),s>=5&&(n+=r.N1+(s-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(4===t||0===t)&&n++}return n*r.N2},t.getPenaltyN3=function(e){let t=e.size,n=0,i=0,s=0;for(let r=0;r<t;r++){i=s=0;for(let o=0;o<t;o++)i=i<<1&2047|e.get(r,o),o>=10&&(1488===i||93===i)&&n++,s=s<<1&2047|e.get(o,r),o>=10&&(1488===s||93===s)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*r.N4},t.applyMask=function(e,r){let n=r.size;for(let i=0;i<n;i++)for(let s=0;s<n;s++)r.isReserved(s,i)||r.xor(s,i,function(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error(\"bad maskPattern:\"+e)}}(e,s,i))},t.getBestMask=function(e,r){let n=Object.keys(t.Patterns).length,i=0,s=1/0;for(let o=0;o<n;o++){r(o),t.applyMask(o,e);let n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),n<s&&(s=n,i=o)}return i}},58257:function(e,t,r){let n=r(66477),i=r(36276);t.NUMERIC={id:\"Numeric\",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:\"Alphanumeric\",bit:2,ccBits:[9,11,13]},t.BYTE={id:\"Byte\",bit:4,ccBits:[8,16,16]},t.KANJI={id:\"Kanji\",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error(\"Invalid mode: \"+e);if(!n.isValid(t))throw Error(\"Invalid version: \"+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error(\"Invalid mode\")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if(\"string\"!=typeof e)throw Error(\"Param is not a string\");switch(e.toLowerCase()){case\"numeric\":return t.NUMERIC;case\"alphanumeric\":return t.ALPHANUMERIC;case\"kanji\":return t.KANJI;case\"byte\":return t.BYTE;default:throw Error(\"Unknown mode: \"+e)}}(e)}catch(e){return r}}},6078:function(e,t,r){let n=r(58257);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=i},80958:function(e,t,r){let n=r(61011);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let s=0;s<t.length;s++)r[i+s]^=n.mul(e[i],t[s]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let i=0;i<t.length;i++)r[i]^=n.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]));return r}},23364:function(e,t,r){let n=r(2601),i=r(38428),s=r(86423),o=r(43143),a=r(80532),l=r(16123),u=r(42903),c=r(34270),d=r(84001),h=r(11888),f=r(59906),p=r(58257),g=r(25051);function m(e,t,r){let n,i;let s=e.size,o=f.getEncodedBits(t,r);for(n=0;n<15;n++)i=(o>>n&1)==1,n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(s-15+n,8,i,!0),n<8?e.set(8,s-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(s-8,8,1,!0)}t.create=function(e,t){let r,f;if(void 0===e||\"\"===e)throw Error(\"No input text\");let y=i.M;return void 0!==t&&(y=i.from(t.errorCorrectionLevel,i.M),r=h.from(t.version),f=u.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let f;if(Array.isArray(e))f=g.fromArray(e);else if(\"string\"==typeof e){let n=t;if(!n){let t=g.rawSplit(e);n=h.getBestVersionForData(t,r)}f=g.fromString(e,n||40)}else throw Error(\"Invalid data\");let y=h.getBestVersionForData(f,r);if(!y)throw Error(\"The amount of data is too big to be stored in a QR Code\");if(t){if(t<y)throw Error(\"\\nThe chosen QR Code version cannot contain this amount of data.\\nMinimum version required to store current data is: \"+y+\".\\n\")}else t=y;let b=function(e,t,r){let i=new s;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)});let o=(n.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t))*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let a=(o-i.getLengthInBits())/8;for(let e=0;e<a;e++)i.put(e%2?17:236,8);return function(e,t,r){let i,s;let o=n.getSymbolTotalCodewords(t),a=o-c.getTotalCodewordsCount(t,r),l=c.getBlocksCount(t,r),u=o%l,h=l-u,f=Math.floor(o/l),p=Math.floor(a/l),g=p+1,m=f-p,y=new d(m),b=0,v=Array(l),w=Array(l),_=0,E=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?p:g;v[e]=E.slice(b,b+t),w[e]=y.encode(v[e]),b+=t,_=Math.max(_,t)}let A=new Uint8Array(o),x=0;for(i=0;i<_;i++)for(s=0;s<l;s++)i<v[s].length&&(A[x++]=v[s][i]);for(i=0;i<m;i++)for(s=0;s<l;s++)A[x++]=w[s][i];return A}(i,e,t)}(t,r,f),v=new o(n.getSymbolSize(t));return function(e,t){let r=e.size,n=l.getPositions(t);for(let t=0;t<n.length;t++){let i=n[t][0],s=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1)&&!(r<=i+t))for(let n=-1;n<=7;n++)s+n<=-1||r<=s+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,s+n,!0,!0):e.set(i+t,s+n,!1,!0))}}(v,t),function(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(v),function(e,t){let r=a.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(v,t),m(v,r,0),t>=7&&function(e,t){let r,n,i;let s=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+s-8-3,i=(o>>t&1)==1,e.set(r,n,i,!0),e.set(n,r,i,!0)}(v,t),function(e,t){let r=e.size,n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,a-r)){let n=!1;o<t.length&&(n=(t[o]>>>s&1)==1),e.set(i,a-r,n),-1==--s&&(o++,s=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(v,b),isNaN(i)&&(i=u.getBestMask(v,m.bind(null,v,r))),u.applyMask(i,v),m(v,r,i),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:i,segments:f}}(e,r,y,f)}},84001:function(e,t,r){let n=r(80958);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error(\"Encoder not initialized\");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},36276:function(e,t){let r=\"[0-9]+\",n=\"(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+\",i=\"(?:(?![A-Z0-9 $%*+\\\\-./:]|\"+(n=n.replace(/u/g,\"\\\\u\"))+\")(?:.|[\\r\\n]))+\";t.KANJI=RegExp(n,\"g\"),t.BYTE_KANJI=RegExp(\"[^A-Z0-9 $%*+\\\\-./:]+\",\"g\"),t.BYTE=RegExp(i,\"g\"),t.NUMERIC=RegExp(r,\"g\"),t.ALPHANUMERIC=RegExp(\"[A-Z $%*+\\\\-./:]+\",\"g\");let s=RegExp(\"^\"+n+\"$\"),o=RegExp(\"^\"+r+\"$\"),a=RegExp(\"^[A-Z0-9 $%*+\\\\-./:]+$\");t.testKanji=function(e){return s.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},25051:function(e,t,r){let n=r(58257),i=r(6078),s=r(62971),o=r(23841),a=r(62558),l=r(36276),u=r(2601),c=r(52892);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,r){let n;let i=[];for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function f(e){let t,r;let i=h(l.NUMERIC,n.NUMERIC,e),s=h(l.ALPHANUMERIC,n.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=h(l.BYTE,n.BYTE,e),r=h(l.KANJI,n.KANJI,e)):(t=h(l.BYTE_KANJI,n.BYTE,e),r=[]),i.concat(s,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return s.getBitsLength(e);case n.KANJI:return a.getBitsLength(e);case n.BYTE:return o.getBitsLength(e)}}function g(e,t){let r;let l=n.getBestModeForData(e);if((r=n.from(t,l))!==n.BYTE&&r.bit<l.bit)throw Error('\"'+e+'\" cannot be encoded with mode '+n.toString(r)+\".\\n Suggested mode is: \"+n.toString(l));switch(r!==n.KANJI||u.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new s(e);case n.KANJI:return new a(e);case n.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return\"string\"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,r){let i=function(e,t){let r={},i={start:{}},s=[\"start\"];for(let o=0;o<e.length;o++){let a=e[o],l=[];for(let e=0;e<a.length;e++){let u=a[e],c=\"\"+o+e;l.push(c),r[c]={node:u,lastCount:0},i[c]={};for(let e=0;e<s.length;e++){let o=s[e];r[o]&&r[o].node.mode===u.mode?(i[o][c]=p(r[o].lastCount+u.length,u.mode)-p(r[o].lastCount,u.mode),r[o].lastCount+=u.length):(r[o]&&(r[o].lastCount=u.length),i[o][c]=p(u.length,u.mode)+4+n.getCharCountIndicator(u.mode,t))}}s=l}for(let e=0;e<s.length;e++)i[s[e]].end=0;return{map:i,table:r}}(function(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}(f(e,u.isKanjiModeEnabled())),r),s=c.find_path(i.map,\"start\",\"end\"),o=[];for(let e=1;e<s.length-1;e++)o.push(i.table[s[e]].node);return t.fromArray(o.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(f(e,u.isKanjiModeEnabled()))}},2601:function(e,t){let r;let n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('\"version\" cannot be null or undefined');if(e<1||e>40)throw Error('\"version\" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if(\"function\"!=typeof e)throw Error('\"toSJISFunc\" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},66477:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},11888:function(e,t,r){let n=r(2601),i=r(34270),s=r(38428),o=r(58257),a=r(66477),l=n.getBCHDigit(7973);function u(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!a.isValid(e))throw Error(\"Invalid QR Code version\");void 0===r&&(r=o.BYTE);let s=(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t))*8;if(r===o.MIXED)return s;let l=s-u(r,e);switch(r){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){let n;let i=s.from(r,s.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(function(e,t){let r=0;return e.forEach(function(e){let n=u(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n)<=t.getCapacity(n,r,o.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(\"Invalid QR Code version\");let t=e<<12;for(;n.getBCHDigit(t)-l>=0;)t^=7973<<n.getBCHDigit(t)-l;return e<<12|t}},64811:function(e,t,r){let n=r(59472);t.render=function(e,t,r){var i;let s=r,o=t;void 0!==s||t&&t.getContext||(s=t,t=void 0),t||(o=function(){try{return document.createElement(\"canvas\")}catch(e){throw Error(\"You need to specify a canvas element\")}}()),s=n.getOptions(s);let a=n.getImageWidth(e.modules.size,s),l=o.getContext(\"2d\"),u=l.createImageData(a,a);return n.qrToImageData(u.data,e,s),i=o,l.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+\"px\",i.style.width=a+\"px\",l.putImageData(u,0,0),o},t.renderToDataURL=function(e,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});let s=t.render(e,r,i),o=i.type||\"image/png\",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}},65773:function(e,t,r){let n=r(59472);function i(e,t){let r=e.a/255,n=t+'=\"'+e.hex+'\"';return r<1?n+\" \"+t+'-opacity=\"'+r.toFixed(2).slice(1)+'\"':n}function s(e,t,r){let n=e+t;return void 0!==r&&(n+=\" \"+r),n}t.render=function(e,t,r){let o=n.getOptions(t),a=e.modules.size,l=e.modules.data,u=a+2*o.margin,c=o.color.light.a?\"<path \"+i(o.color.light,\"fill\")+' d=\"M0 0h'+u+\"v\"+u+'H0z\"/>':\"\",d=\"<path \"+i(o.color.dark,\"stroke\")+' d=\"'+function(e,t,r){let n=\"\",i=0,o=!1,a=0;for(let l=0;l<e.length;l++){let u=Math.floor(l%t),c=Math.floor(l/t);u||o||(o=!0),e[l]?(a++,l>0&&u>0&&e[l-1]||(n+=o?s(\"M\",u+r,.5+c+r):s(\"m\",i,0),i=0,o=!1),u+1<t&&e[l+1]||(n+=s(\"h\",a),a=0)):i++}return n}(l,a,o.margin)+'\"/>',h='<svg xmlns=\"http://www.w3.org/2000/svg\" '+(o.width?'width=\"'+o.width+'\" height=\"'+o.width+'\" ':\"\")+('viewBox=\"0 0 '+u)+\" \"+u+'\" shape-rendering=\"crispEdges\">'+c+d+\"</svg>\\n\";return\"function\"==typeof r&&r(null,h),h}},59472:function(e,t){function r(e){if(\"number\"==typeof e&&(e=e.toString()),\"string\"!=typeof e)throw Error(\"Color should be defined as hex string\");let t=e.slice().replace(\"#\",\"\").split(\"\");if(t.length<3||5===t.length||t.length>8)throw Error(\"Invalid hex color: \"+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push(\"F\",\"F\");let r=parseInt(t.join(\"\"),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:\"#\"+t.slice(0,6).join(\"\")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||\"#000000ff\"),light:r(e.color.light||\"#ffffffff\")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let i=r.modules.size,s=r.modules.data,o=t.getScale(i,n),a=Math.floor((i+2*n.margin)*o),l=n.margin*o,u=[n.color.light,n.color.dark];for(let t=0;t<a;t++)for(let r=0;r<a;r++){let c=(t*a+r)*4,d=n.color.light;t>=l&&r>=l&&t<a-l&&r<a-l&&(d=u[s[Math.floor((t-l)/o)*i+Math.floor((r-l)/o)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},61179:function(e,t,r){\"use strict\";let n=r(29276),i=r(56368),s=r(76442),o=r(24816),a=e=>null==e,l=Symbol(\"encodeFragmentIdentifier\");function u(e){if(\"string\"!=typeof e||1!==e.length)throw TypeError(\"arrayFormatSeparator must be single character string\")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?i(e):e}function h(e){let t=e.indexOf(\"#\");return -1!==t&&(e=e.slice(0,t)),e}function f(e){let t=(e=h(e)).indexOf(\"?\");return -1===t?\"\":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&\"string\"==typeof e&&\"\"!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&(\"true\"===e.toLowerCase()||\"false\"===e.toLowerCase())&&(e=\"true\"===e.toLowerCase()),e}function g(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:\"none\",arrayFormatSeparator:\",\",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case\"index\":return(e,r,n)=>{if(t=/\\[(\\d*)\\]$/.exec(e),e=e.replace(/\\[\\d*\\]$/,\"\"),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case\"bracket\":return(e,r,n)=>{if(t=/(\\[\\])$/.exec(e),e=e.replace(/\\[\\]$/,\"\"),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case\"colon-list-separator\":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,\"\"),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case\"comma\":case\"separator\":return(t,r,n)=>{let i=\"string\"==typeof r&&r.includes(e.arrayFormatSeparator),s=\"string\"==typeof r&&!i&&d(r,e).includes(e.arrayFormatSeparator);r=s?d(r,e):r;let o=i||s?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=o};case\"bracket-separator\":return(t,r,n)=>{let i=/(\\[\\])$/.test(t);if(t=t.replace(/\\[\\]$/,\"\"),!i){n[t]=r?d(r,e):r;return}let s=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===n[t]){n[t]=s;return}n[t]=[].concat(n[t],s)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if(\"string\"!=typeof e||!(e=e.trim().replace(/^[?#&]/,\"\")))return n;for(let i of e.split(\"&\")){if(\"\"===i)continue;let[e,o]=s(t.decode?i.replace(/\\+/g,\" \"):i,\"=\");o=void 0===o?null:[\"comma\",\"separator\",\"bracket-separator\"].includes(t.arrayFormat)?o:d(o,t),r(d(e,t),o,n)}for(let e of Object.keys(n)){let r=n[e];if(\"object\"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&\"object\"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():\"object\"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=f,t.parse=g,t.stringify=(e,t)=>{if(!e)return\"\";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:\"none\",arrayFormatSeparator:\",\"},t)).arrayFormatSeparator);let r=r=>t.skipNull&&a(e[r])||t.skipEmptyString&&\"\"===e[r],n=function(e){switch(e.arrayFormat){case\"index\":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,[c(t,e),\"[\",i,\"]\"].join(\"\")]:[...r,[c(t,e),\"[\",c(i,e),\"]=\",c(n,e)].join(\"\")]};case\"bracket\":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,[c(t,e),\"[]\"].join(\"\")]:[...r,[c(t,e),\"[]=\",c(n,e)].join(\"\")];case\"colon-list-separator\":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,[c(t,e),\":list=\"].join(\"\")]:[...r,[c(t,e),\":list=\",c(n,e)].join(\"\")];case\"comma\":case\"separator\":case\"bracket-separator\":{let t=\"bracket-separator\"===e.arrayFormat?\"[]=\":\"=\";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&\"\"===i?n:(i=null===i?\"\":i,0===n.length)?[[c(r,e),t,c(i,e)].join(\"\")]:[[n,c(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),\"=\",c(n,e)].join(\"\")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map(r=>{let i=e[r];return void 0===i?\"\":null===i?c(r,t):Array.isArray(i)?0===i.length&&\"bracket-separator\"===t.arrayFormat?c(r,t)+\"[]\":i.reduce(n(r),[]).join(\"&\"):c(r,t)+\"=\"+c(i,t)}).filter(e=>e.length>0).join(\"&\")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=s(e,\"#\");return Object.assign({url:r.split(\"?\")[0]||\"\",query:g(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[l]:!0},r);let n=h(e.url).split(\"?\")[0]||\"\",i=t.extract(e.url),s=Object.assign(t.parse(i,{sort:!1}),e.query),o=t.stringify(s,r);o&&(o=`?${o}`);let a=function(e){let t=\"\",r=e.indexOf(\"#\");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(a=`#${r[l]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${o}${a}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[l]:!1},n);let{url:i,query:s,fragmentIdentifier:a}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:a},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},57963:function(e){\"use strict\";function t(e){try{return JSON.stringify(e)}catch(e){return'\"[Circular]\"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if(\"object\"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var o=Array(s);o[0]=i(e);for(var a=1;a<s;a++)o[a]=i(r[a]);return o.join(\" \")}if(\"string\"!=typeof e)return e;var l=r.length;if(0===l)return e;for(var u=\"\",c=0,d=-1,h=e&&e.length||0,f=0;f<h;){if(37===e.charCodeAt(f)&&f+1<h){switch(d=d>-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(c>=l||null==r[c])break;d<f&&(u+=e.slice(d,f)),u+=Number(r[c]),d=f+2,f++;break;case 105:if(c>=l||null==r[c])break;d<f&&(u+=e.slice(d,f)),u+=Math.floor(Number(r[c])),d=f+2,f++;break;case 79:case 111:case 106:if(c>=l||void 0===r[c])break;d<f&&(u+=e.slice(d,f));var p=typeof r[c];if(\"string\"===p){u+=\"'\"+r[c]+\"'\",d=f+2,f++;break}if(\"function\"===p){u+=r[c].name||\"<anonymous>\",d=f+2,f++;break}u+=i(r[c]),d=f+2,f++;break;case 115:if(c>=l)break;d<f&&(u+=e.slice(d,f)),u+=String(r[c]),d=f+2,f++;break;case 37:d<f&&(u+=e.slice(d,f)),u+=\"%\",d=f+2,f++,c--}++c}++f}return -1===d?e:(d<h&&(u+=e.slice(d)),u)}},63858:function(e,t,r){\"use strict\";var n,i,s,o,a,l,u=r(2265);u&&\"object\"==typeof u&&\"default\"in u&&u.default;var c=r(17914),d=new c,h=d.getBrowser(),f=d.getCPU(),p=d.getDevice(),g=d.getEngine(),m=d.getOS(),y=d.getUA(),b={Mobile:\"mobile\",Tablet:\"tablet\",SmartTv:\"smarttv\",Console:\"console\",Wearable:\"wearable\",Embedded:\"embedded\",Browser:void 0},v={Chrome:\"Chrome\",Firefox:\"Firefox\",Opera:\"Opera\",Yandex:\"Yandex\",Safari:\"Safari\",InternetExplorer:\"Internet Explorer\",Edge:\"Edge\",Chromium:\"Chromium\",Ie:\"IE\",MobileSafari:\"Mobile Safari\",MIUI:\"MIUI Browser\",SamsungBrowser:\"Samsung Browser\"},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"none\";return e||t},_=function(){return!!(\"undefined\"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},E=function(e){var t=_();return t&&t.platform&&(-1!==t.platform.indexOf(e)||\"MacIntel\"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},A=function(e){return e.type===b.Browser},x=function(e){return e.name===v.Edge},k=function(e){return\"string\"==typeof e&&-1!==e.indexOf(\"Edg/\")},S=function(){return E(\"iPad\")};p.type,b.SmartTv,p.type,b.Console,p.type,b.Wearable,p.type,b.Embedded,h.name===v.MobileSafari||S(),h.name,v.Chromium;var $=(n=p.type)===b.Mobile||n===b.Tablet||S(),C=(p.type,b.Mobile,p.type===b.Tablet||S(),A(p),A(p),\"Android\"===m.name),P=(m.name,\"iOS\"===m.name||S()),I=(h.name,v.Chrome,h.name===v.Firefox);(i=h.name)===v.Safari||v.MobileSafari,h.name,v.Opera,(s=h.name)===v.InternetExplorer||v.Ie,w(m.version),w(m.name),w(h.version),w(h.major),w(h.name),w(p.vendor),w(p.model),w(g.name),w(g.version),w(y),x(h)||k(y),h.name,v.Yandex,w(p.type,\"browser\"),(o=_())&&(/iPad|iPhone|iPod/.test(o.platform)||\"MacIntel\"===o.platform&&o.maxTouchPoints>1)&&window.MSStream,S(),E(\"iPhone\"),E(\"iPod\"),\"string\"==typeof(l=(a=_())&&a.userAgent&&a.userAgent.toLowerCase())&&/electron/.test(l),k(y),x(h)&&k(y),m.name,m.name,h.name,v.MIUI,h.name,v.SamsungBrowser,t.Dt=C,t.vU=I,t.gn=P,t.tq=$},74332:function(e,t){\"use strict\";/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var r=\"function\"==typeof Symbol&&Symbol.for,n=r?Symbol.for(\"react.element\"):60103,i=r?Symbol.for(\"react.portal\"):60106,s=r?Symbol.for(\"react.fragment\"):60107,o=r?Symbol.for(\"react.strict_mode\"):60108,a=r?Symbol.for(\"react.profiler\"):60114,l=r?Symbol.for(\"react.provider\"):60109,u=r?Symbol.for(\"react.context\"):60110,c=r?Symbol.for(\"react.async_mode\"):60111,d=r?Symbol.for(\"react.concurrent_mode\"):60111,h=r?Symbol.for(\"react.forward_ref\"):60112,f=r?Symbol.for(\"react.suspense\"):60113,p=r?Symbol.for(\"react.suspense_list\"):60120,g=r?Symbol.for(\"react.memo\"):60115,m=r?Symbol.for(\"react.lazy\"):60116,y=r?Symbol.for(\"react.block\"):60121,b=r?Symbol.for(\"react.fundamental\"):60117,v=r?Symbol.for(\"react.responder\"):60118,w=r?Symbol.for(\"react.scope\"):60119;function _(e){if(\"object\"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case s:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function E(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===s},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return\"string\"==typeof e||\"function\"==typeof e||e===s||e===d||e===a||e===o||e===f||e===p||\"object\"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},12659:function(e,t,r){\"use strict\";e.exports=r(74332)},16058:function(e){\"use strict\";var t={};function r(e,r,n){n||(n=Error);var i=function(e){function t(t,n,i){return e.call(this,\"string\"==typeof r?r:r(t,n,i))||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return\"of \".concat(t,\" \").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?\"one of \".concat(t,\" \").concat(e.slice(0,r-1).join(\", \"),\", or \")+e[r-1]:2===r?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}r(\"ERR_INVALID_OPT_VALUE\",function(e,t){return'The value \"'+t+'\" is invalid for option \"'+e+'\"'},TypeError),r(\"ERR_INVALID_ARG_TYPE\",function(e,t,r){if(\"string\"==typeof t&&(i=\"not \",t.substr(0,i.length)===i)?(l=\"must not be\",t=t.replace(/^not /,\"\")):l=\"must be\",s=\" argument\",(void 0===o||o>e.length)&&(o=e.length),e.substring(o-s.length,o)===s)u=\"The \".concat(e,\" \").concat(l,\" \").concat(n(t,\"type\"));else{var i,s,o,a,l,u,c=(\"number\"!=typeof a&&(a=0),a+1>e.length||-1===e.indexOf(\".\",a))?\"argument\":\"property\";u='The \"'.concat(e,'\" ').concat(c,\" \").concat(l,\" \").concat(n(t,\"type\"))}return u+\". Received type \".concat(typeof r)},TypeError),r(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),r(\"ERR_METHOD_NOT_IMPLEMENTED\",function(e){return\"The \"+e+\" method is not implemented\"}),r(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),r(\"ERR_STREAM_DESTROYED\",function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"}),r(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),r(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),r(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),r(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),r(\"ERR_UNKNOWN_ENCODING\",function(e){return\"Unknown encoding: \"+e},TypeError),r(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),e.exports.q=t},414:function(e,t,r){\"use strict\";var n=r(25566),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var s=r(27813),o=r(67684);r(87398)(c,s);for(var a=i(o.prototype),l=0;l<a.length;l++){var u=a[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(\"end\",d)))}function d(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},87802:function(e,t,r){\"use strict\";e.exports=i;var n=r(64958);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(87398)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},27813:function(e,t,r){\"use strict\";var n,i,s,o,a,l=r(25566);e.exports=k,k.ReadableState=x,r(68885).EventEmitter;var u=function(e,t){return e.listeners(t).length},c=r(81725),d=r(9109).Buffer,h=(void 0!==r.g?r.g:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){},f=r(94616);i=f&&f.debuglog?f.debuglog(\"stream\"):function(){};var p=r(36337),g=r(3587),m=r(72164).getHighWaterMark,y=r(16058).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(87398)(k,c);var E=g.errorOrDestroy,A=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function x(e,t,i){n=n||r(414),e=e||{},\"boolean\"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,\"readableHighWaterMark\",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(56123).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(414),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new x(e,this,t),this.readable=!0,e&&(\"function\"==typeof e.read&&(this._read=e.read),\"function\"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function S(e,t,r,n,s){i(\"readableAddChunk\",t);var o,a,l,u,c,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(i(\"onEofChunk\"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,f);else{if(s||(o=f,a=t,d.isBuffer(a)||a instanceof h||\"string\"==typeof a||void 0===a||o.objectMode||(l=new b(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],a)),c=l),c)E(e,c);else if(f.objectMode||t&&t.length>0){if(\"string\"==typeof t||f.objectMode||Object.getPrototypeOf(t)===d.prototype||(u=t,t=d.from(u)),n)f.endEmitted?E(e,new _):$(e,f,t,!0);else if(f.ended)E(e,new v);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?$(e,f,t,!1):O(e,f)):$(e,f,t,!1)}}else n||(f.reading=!1,O(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function $(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),O(e,t)}function C(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function P(e){var t=e._readableState;i(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i(\"emitReadable\",t.flowing),t.emittedReadable=!0,l.nextTick(I,e))}function I(e){var t=e._readableState;i(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,l.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i(\"maybeReadMore read 0\"),e.read(0),r===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function R(e){i(\"readable nexttick read 0\"),e.read(0)}function T(e,t){i(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(i(\"flow\",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(\"\"):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function j(e){var t=e._readableState;i(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,l.nextTick(B,t,e))}function B(e,t){if(i(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(k.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=g.destroy,k.prototype._undestroy=g.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=\"\"),r=!0),S(this,e,t,!1,r)},k.prototype.unshift=function(e){return S(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){s||(s=r(56123).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i=\"\";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),\"\"!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},k.prototype.read=function(e){i(\"read\",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return i(\"read: emitReadable\",r.length,r.ended),0===r.length&&r.ended?j(this):P(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&j(this),null;var s=r.needReadable;return i(\"need readable\",s),(0===r.length||r.length-e<r.highWaterMark)&&i(\"length less than watermark\",s=!0),r.ended||r.reading?i(\"reading or ended\",s=!1):s&&(i(\"do read\"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=C(n,r))),null===(t=e>0?L(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&j(this)),null!==t&&this.emit(\"data\",t),t},k.prototype._read=function(e){E(this,new w(\"_read()\"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i(\"pipe count=%d opts=%j\",n.pipesCount,t);var s=t&&!1===t.end||e===l.stdout||e===l.stderr?g:o;function o(){i(\"onend\"),e.end()}n.endEmitted?l.nextTick(s):r.once(\"end\",s),e.on(\"unpipe\",function t(s,l){i(\"onunpipe\"),s===r&&l&&!1===l.hasUnpiped&&(l.hasUnpiped=!0,i(\"cleanup\"),e.removeListener(\"close\",f),e.removeListener(\"finish\",p),e.removeListener(\"drain\",a),e.removeListener(\"error\",h),e.removeListener(\"unpipe\",t),r.removeListener(\"end\",o),r.removeListener(\"end\",g),r.removeListener(\"data\",d),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a())});var a=function(){var e=r._readableState;i(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(r,\"data\")&&(e.flowing=!0,D(r))};e.on(\"drain\",a);var c=!1;function d(t){i(\"ondata\");var s=e.write(t);i(\"dest.write\",s),!1===s&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!c&&(i(\"false write response, pause\",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){i(\"onerror\",t),g(),e.removeListener(\"error\",h),0===u(e,\"error\")&&E(e,t)}function f(){e.removeListener(\"finish\",p),g()}function p(){i(\"onfinish\"),e.removeListener(\"close\",f),g()}function g(){i(\"unpipe\"),r.unpipe(e)}return r.on(\"data\",d),function(e,t,r){if(\"function\"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,\"error\",h),e.once(\"close\",f),e.once(\"finish\",p),e.emit(\"pipe\",r),n.flowing||(i(\"pipe resume\"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var o=F(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,r)),this},k.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t),n=this._readableState;return\"data\"===e?(n.readableListening=this.listenerCount(\"readable\")>0,!1!==n.flowing&&this.resume()):\"readable\"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i(\"on readable\",n.length,n.reading),n.length?P(this):n.reading||l.nextTick(R,this)),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return\"readable\"===e&&l.nextTick(M,this),r},k.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return(\"readable\"===e||void 0===e)&&l.nextTick(M,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(i(\"resume\"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,l.nextTick(T,this,e))),e.paused=!1,this},k.prototype.pause=function(){return i(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(i(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on(\"end\",function(){if(i(\"wrapped end\"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(\"data\",function(s){i(\"wrapped data\"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))}),e)void 0===this[s]&&\"function\"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){i(\"wrapped _read\",t),n&&(n=!1,e.resume())},this},\"function\"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===o&&(o=r(87136)),o(this)}),Object.defineProperty(k.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=L,Object.defineProperty(k.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}}),\"function\"==typeof Symbol&&(k.from=function(e,t){return void 0===a&&(a=r(98505)),a(k,e,t)})},64958:function(e,t,r){\"use strict\";e.exports=c;var n=r(16058).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(414);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(\"error\",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(\"function\"==typeof e.transform&&(this._transform=e.transform),\"function\"==typeof e.flush&&(this._flush=e.flush)),this.on(\"prefinish\",d)}function d(){var e=this;\"function\"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit(\"error\",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}r(87398)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i(\"_transform()\"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},67684:function(e,t,r){\"use strict\";var n,i,s=r(25566);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=k,k.WritableState=x;var a={deprecate:r(20310)},l=r(81725),u=r(9109).Buffer,c=(void 0!==r.g?r.g:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){},d=r(3587),h=r(72164).getHighWaterMark,f=r(16058).q,p=f.ERR_INVALID_ARG_TYPE,g=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,_=f.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;function A(){}function x(e,t,i){n=n||r(414),e=e||{},\"boolean\"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,\"writableHighWaterMark\",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(\"function\"!=typeof i)throw new m;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,n?(s.nextTick(i,t),s.nextTick(O,e,r),e._writableState.errorEmitted=!0,E(e,t)):(i(t),e._writableState.errorEmitted=!0,E(e,t),O(e,r));else{var o=P(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),n?s.nextTick($,e,r,o,i):$(e,r,o,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(n=n||r(414));if(!t&&!i.call(k,this))return new k(e);this._writableState=new x(e,this,t),this.writable=!0,e&&(\"function\"==typeof e.write&&(this._write=e.write),\"function\"==typeof e.writev&&(this._writev=e.writev),\"function\"==typeof e.destroy&&(this._destroy=e.destroy),\"function\"==typeof e.final&&(this._final=e.final)),l.call(this)}function S(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b(\"write\")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function $(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\")),t.pendingcb--,n(),O(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,S(e,t,!0,t.length,n,\"\",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,d=t.objectMode?1:l.length;if(S(e,t,!1,d,l,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit(\"prefinish\"),O(e,t)})}function O(e,t){var r=P(t);if(r&&(t.prefinished||t.finalCalled||(\"function\"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit(\"prefinish\")):(t.pendingcb++,t.finalCalled=!0,s.nextTick(I,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(87398)(k,l),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,\"buffer\",{get:a.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(e){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===k&&e&&e._writableState instanceof x}})):i=function(e){return e instanceof this},k.prototype.pipe=function(){E(this,new y)},k.prototype.write=function(e,t,r){var n,i,o,a,l,d,h,f=this._writableState,g=!1,m=!f.objectMode&&(n=e,u.isBuffer(n)||n instanceof c);return m&&!u.isBuffer(e)&&(i=e,e=u.from(i)),(\"function\"==typeof t&&(r=t,t=null),m?t=\"buffer\":t||(t=f.defaultEncoding),\"function\"!=typeof r&&(r=A),f.ending)?(o=r,E(this,a=new w),s.nextTick(o,a)):(m||(l=e,d=r,null===l?h=new v:\"string\"==typeof l||f.objectMode||(h=new p(\"chunk\",[\"string\",\"Buffer\"],l)),!h||(E(this,h),s.nextTick(d,h),0)))&&(f.pendingcb++,g=function(e,t,r,n,i,s){if(!r){var o,a,l=(o=n,a=i,t.objectMode||!1===t.decodeStrings||\"string\"!=typeof o||(o=u.from(o,a)),o);n!==l&&(r=!0,i=\"buffer\",n=l)}var c=t.objectMode?1:n.length;t.length+=c;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,c,n,i,s);return d}(this,f,m,e,t,r)),g},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},k.prototype.setDefaultEncoding=function(e){if(\"string\"==typeof e&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new g(\"_write()\"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n,i=this._writableState;return\"function\"==typeof e?(r=e,e=null,t=null):\"function\"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,O(this,i),n&&(i.finished?s.nextTick(n):this.once(\"finish\",n)),i.ended=!0,this.writable=!1),this},Object.defineProperty(k.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}},87136:function(e,t,r){\"use strict\";var n,i=r(25566);function s(e,t,r){var n;return(t=\"symbol\"==typeof(n=function(e,t){if(\"object\"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(t,\"string\"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(91763),a=Symbol(\"lastResolve\"),l=Symbol(\"lastReject\"),u=Symbol(\"error\"),c=Symbol(\"ended\"),d=Symbol(\"lastPromise\"),h=Symbol(\"handlePromise\"),f=Symbol(\"stream\");function p(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[a]=null,e[l]=null,t(p(r,!1)))}}function m(e){i.nextTick(g,e)}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var e,t,r=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(e,t){i.nextTick(function(){r[u]?t(r[u]):e(p(void 0,!0))})});var s=this[d];if(s)t=new Promise((e=this,function(t,r){s.then(function(){if(e[c]){t(p(void 0,!0));return}e[h](t,r)},r)}));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));t=new Promise(this[h])}return this[d]=t,t}},Symbol.asyncIterator,function(){return this}),s(n,\"return\",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),n),y);e.exports=function(e){var t,r=Object.create(b,(s(t={},f,{value:e,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,l,{value:null,writable:!0}),s(t,u,{value:null,writable:!0}),s(t,c,{value:e._readableState.endEmitted,writable:!0}),s(t,h,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[a]=null,r[l]=null,e(p(n,!1))):(r[a]=e,r[l]=t)},writable:!0}),t));return r[d]=null,o(e,function(e){if(e&&\"ERR_STREAM_PREMATURE_CLOSE\"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[a]=null,r[l]=null,t(e)),r[u]=e;return}var n=r[a];null!==n&&(r[d]=null,r[a]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0}),e.on(\"readable\",m.bind(null,r)),r}},36337:function(e,t,r){\"use strict\";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=s(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:String(t)}var o=r(9109).Buffer,a=r(52361).inspect,l=a&&a.custom||\"inspect\";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:\"push\",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:\"unshift\",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:\"shift\",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(e){if(0===this.length)return\"\";for(var t=this.head,r=\"\"+t.data;t=t.next;)r+=e+t.data;return r}},{key:\"concat\",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,s=0;i;)t=i.data,r=s,o.prototype.copy.call(t,n,r),s+=i.data.length,i=i.next;return n}},{key:\"consume\",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,s=e>i.length?i.length:e;if(s===i.length?n+=i:n+=i.slice(0,e),0==(e-=s)){s===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++r}return this.length-=r,n}},{key:\"_getBuffer\",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0==(e-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return a(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}()},3587:function(e,t,r){\"use strict\";var n=r(25566);function i(e,t){o(e,t),s(e)}function s(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit(\"close\")}function o(e,t){e.emit(\"error\",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(s,r),t(e)):n.nextTick(s,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit(\"error\",t)}}},91763:function(e,t,r){\"use strict\";var n=r(16058).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,s){if(\"function\"==typeof r)return e(t,null,r);r||(r={}),o=s||i,a=!1,s=function(){if(!a){a=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.apply(this,t)}};var o,a,l=r.readable||!1!==r.readable&&t.readable,u=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||h()},d=t._writableState&&t._writableState.finished,h=function(){u=!1,d=!0,l||s.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,f=!0,u||s.call(t)},g=function(e){s.call(t,e)},m=function(){var e;return l&&!f?(t._readableState&&t._readableState.ended||(e=new n),s.call(t,e)):u&&!d?(t._writableState&&t._writableState.ended||(e=new n),s.call(t,e)):void 0},y=function(){t.req.on(\"finish\",h)};return t.setHeader&&\"function\"==typeof t.abort?(t.on(\"complete\",h),t.on(\"abort\",m),t.req?y():t.on(\"request\",y)):u&&!t._writableState&&(t.on(\"end\",c),t.on(\"close\",c)),t.on(\"end\",p),t.on(\"finish\",h),!1!==r.error&&t.on(\"error\",g),t.on(\"close\",m),function(){t.removeListener(\"complete\",h),t.removeListener(\"abort\",m),t.removeListener(\"request\",y),t.req&&t.req.removeListener(\"finish\",h),t.removeListener(\"end\",c),t.removeListener(\"close\",c),t.removeListener(\"finish\",h),t.removeListener(\"end\",p),t.removeListener(\"error\",g),t.removeListener(\"close\",m)}}},98505:function(e){e.exports=function(){throw Error(\"Readable.from is not available in the browser\")}},85597:function(e,t,r){\"use strict\";var n,i=r(16058).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,c=Array(i),d=0;d<i;d++)c[d]=arguments[d];var h=(e=c).length&&\"function\"==typeof e[e.length-1]?e.pop():a;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new s(\"streams\");var f=c.map(function(e,i){var s,a,u,d,p,g,m=i<c.length-1;return s=i>0,u=a=function(e){t||(t=e),e&&f.forEach(l),m||(f.forEach(l),h(t))},d=!1,a=function(){d||(d=!0,u.apply(void 0,arguments))},p=!1,e.on(\"close\",function(){p=!0}),void 0===n&&(n=r(91763)),n(e,{readable:m,writable:s},function(e){if(e)return a(e);p=!0,a()}),g=!1,function(t){if(!p&&!g){if(g=!0,e.setHeader&&\"function\"==typeof e.abort)return e.abort();if(\"function\"==typeof e.destroy)return e.destroy();a(t||new o(\"pipe\"))}}});return c.reduce(u)}},72164:function(e,t,r){\"use strict\";var n=r(16058).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var s=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new n(i?r:\"highWaterMark\",s);return Math.floor(s)}return e.objectMode?16:16384}}},81725:function(e,t,r){e.exports=r(68885).EventEmitter},5939:function(e,t,r){(t=e.exports=r(27813)).Stream=t,t.Readable=t,t.Writable=r(67684),t.Duplex=r(414),t.Transform=r(64958),t.PassThrough=r(87802),t.finished=r(91763),t.pipeline=r(85597)},10632:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=r(9109),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(e,t,r){if(\"number\"==typeof e)throw TypeError(\"Argument must not be a number\");return i(e,t,r)},o.alloc=function(e,t,r){if(\"number\"!=typeof e)throw TypeError(\"Argument must be a number\");var n=i(e);return void 0!==t?\"string\"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if(\"number\"!=typeof e)throw TypeError(\"Argument must be a number\");return i(e)},o.allocUnsafeSlow=function(e){if(\"number\"!=typeof e)throw TypeError(\"Argument must be a number\");return n.SlowBuffer(e)}},40333:function(e,t,r){var n=r(10632).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){\"string\"==typeof e&&(t=t||\"utf8\",e=n.from(e,t));for(var r=this._block,i=this._blockSize,s=e.length,o=this._len,a=0;a<s;){for(var l=o%i,u=Math.min(s-a,i-l),c=0;c<u;c++)r[l+c]=e[a+c];o+=u,a+=u,o%i==0&&this._update(r)}return this._len+=s,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0;this._block.writeUInt32BE((r-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},i.prototype._update=function(){throw Error(\"_update must be implemented by subclass\")},e.exports=i},42724:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+\" is not supported (we accept pull requests)\");return new t};n.sha=r(53799),n.sha1=r(4836),n.sha224=r(44455),n.sha256=r(51250),n.sha384=r(43836),n.sha512=r(58103)},53799:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);function l(){this.init(),this._w=a,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var u=0;u<80;++u){var c,d,h,f,p,g=~~(u/20),m=((c=r)<<5|c>>>27)+(d=n,h=i,f=s,0===g?d&h|~d&f:2===g?d&h|d&f|h&f:d^h^f)+a+t[u]+o[g]|0;a=s,s=i,i=(p=n)<<30|p>>>2,n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},4836:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);function l(){this.init(),this._w=a,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=(c=t[l-3]^t[l-8]^t[l-14]^t[l-16])<<1|c>>>31;for(var u=0;u<80;++u){var c,d,h,f,p,g,m=~~(u/20),y=((d=r)<<5|d>>>27)+(h=n,f=i,p=s,0===m?h&f|~h&p:2===m?h&f|h&p|f&p:h^f^p)+a+t[u]+o[m]|0;a=s,s=i,i=(g=n)<<30|g>>>2,n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},44455:function(e,t,r){var n=r(87398),i=r(51250),s=r(40333),o=r(10632).Buffer,a=Array(64);function l(){this.init(),this._w=a,s.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},51250:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=Array(64);function l(){this.init(),this._w=a,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,a=0|this._e,l=0|this._f,u=0|this._g,c=0|this._h,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<64;++d)t[d]=(((f=t[d-2])>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+t[d-7]+(((p=t[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[d-16]|0;for(var h=0;h<64;++h){var f,p,g,m,y,b,v,w,_,E=c+(((g=a)>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(m=a,y=l,(b=u)^m&(y^b))+o[h]+t[h]|0,A=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((w=r)&(_=n)|i&(w|_))|0;c=u,u=l,l=a,a=s+E|0,s=i,i=n,n=r,r=E+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=l+this._f|0,this._g=u+this._g|0,this._h=c+this._h|0},l.prototype._hash=function(){var e=s.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},43836:function(e,t,r){var n=r(87398),i=r(58103),s=r(40333),o=r(10632).Buffer,a=Array(160);function l(){this.init(),this._w=a,s.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},58103:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=Array(160);function l(){this.init(),this._w=a,i.call(this,128,112)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function c(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return e>>>0<t>>>0?1:0}n(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,a=0|this._eh,l=0|this._fh,h=0|this._gh,f=0|this._hh,p=0|this._al,g=0|this._bl,m=0|this._cl,y=0|this._dl,b=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A,x,k,S,$,C,P,I,O=t[E-30],N=t[E-30+1],M=((A=O)>>>1|(x=N)<<31)^(A>>>8|x<<24)^A>>>7,R=((k=N)>>>1|(S=O)<<31)^(k>>>8|S<<24)^(k>>>7|S<<25);O=t[E-4],N=t[E-4+1];var T=(($=O)>>>19|(C=N)<<13)^(C>>>29|$<<3)^$>>>6,D=((P=N)>>>19|(I=O)<<13)^(I>>>29|P<<3)^(P>>>6|I<<26),L=t[E-14],j=t[E-14+1],B=t[E-32],F=t[E-32+1],U=R+j|0,z=M+L+d(U,R)|0;z=(z=z+T+d(U=U+D|0,D)|0)+B+d(U=U+F|0,F)|0,t[E]=z,t[E+1]=U}for(var q=0;q<160;q+=2){z=t[q],U=t[q+1];var H,G,V,W,K,Y,Z,J,Q,X,ee=(H=r)&(G=n)|i&(H|G),et=(V=p)&(W=g)|m&(V|W),er=u(r,p),en=u(p,r),ei=c(a,b),es=c(b,a),eo=o[q],ea=o[q+1],el=(K=a,Y=l,(Z=h)^K&(Y^Z)),eu=(J=b,Q=v,(X=w)^J&(Q^X)),ec=_+es|0,ed=f+ei+d(ec,_)|0;ed=(ed=(ed=ed+el+d(ec=ec+eu|0,eu)|0)+eo+d(ec=ec+ea|0,ea)|0)+z+d(ec=ec+U|0,U)|0;var eh=en+et|0,ef=er+ee+d(eh,en)|0;f=h,_=w,h=l,w=v,l=a,v=b,a=s+ed+d(b=y+ec|0,y)|0,s=i,y=m,i=n,m=g,n=r,g=p,r=ed+ef+d(p=ec+eh|0,ec)|0}this._al=this._al+p|0,this._bl=this._bl+g|0,this._cl=this._cl+m|0,this._dl=this._dl+y|0,this._el=this._el+b|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._ah=this._ah+r+d(this._al,p)|0,this._bh=this._bh+n+d(this._bl,g)|0,this._ch=this._ch+i+d(this._cl,m)|0,this._dh=this._dh+s+d(this._dl,y)|0,this._eh=this._eh+a+d(this._el,b)|0,this._fh=this._fh+l+d(this._fl,v)|0,this._gh=this._gh+h+d(this._gl,w)|0,this._hh=this._hh+f+d(this._hl,_)|0},l.prototype._hash=function(){var e=s.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},6889:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if(\"object\"!=typeof e||!e||\"object\"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var u=s[l];if(!a(u))return!1;var c=e[u],d=t[u];if(!1===(i=r?r.call(n,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},76442:function(e){\"use strict\";e.exports=(e,t)=>{if(!(\"string\"==typeof e&&\"string\"==typeof t))throw TypeError(\"Expected the arguments to be of type `string`\");if(\"\"===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},29276:function(e){\"use strict\";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},56123:function(e,t,r){\"use strict\";var n=r(10632).Buffer,i=n.isEncoding||function(e){switch((e=\"\"+e)&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return\"utf8\";for(;;)switch(e){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return e;default:if(t)return;e=(\"\"+e).toLowerCase(),t=!0}}(e);if(\"string\"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error(\"Unknown encoding: \"+e);return t||e}(e),this.encoding){case\"utf16le\":this.text=l,this.end=u,t=4;break;case\"utf8\":this.fillLast=a,t=4;break;case\"base64\":this.text=c,this.end=d,t=3;break;default:this.write=h,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,\"�\";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,\"�\";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,\"�\"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){if((e.length-t)%2==0){var r=e.toString(\"utf16le\",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString(\"base64\",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):\"\"}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return\"\";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||\"\"},s.prototype.end=function(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"�\":t},s.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString(\"utf8\",t,n)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},10506:function(e,t,r){\"use strict\";r.d(t,{vJ:function(){return eM},iv:function(){return e_},ZP:function(){return eT},F4:function(){return eR}});var n,i,s,o=r(12659),a=r(2265),l=r(6889),u=r.n(l),c=function(e){function t(e,t,n){var i=t.trim().split(p);t=i;var s=i.length,o=e.length;switch(o){case 0:case 1:var a=0;for(e=0===o?\"\":e[0]+\" \";a<s;++a)t[a]=r(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<s;++a)for(var u=0;u<o;++u)t[l++]=r(e[u]+\" \",i[a],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,\"$1\"+e.trim());case 58:return e.trim()+t.replace(g,\"$1\"+e.trim());default:if(0<1*r&&0<t.indexOf(\"\\f\"))return t.replace(g,(58===e.charCodeAt(0)?\"\":\"$1\")+e.trim())}return e+t}function n(e,t,r,s){var o=e+\";\",a=2*t+3*r+4*s;if(944===a){e=o.indexOf(\":\",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+\";\",1===P||2===P&&i(l,1)?\"-webkit-\"+l+l:l}if(0===P||2===P&&!i(o,1))return o;switch(a){case 1015:return 97===o.charCodeAt(10)?\"-webkit-\"+o+o:o;case 951:return 116===o.charCodeAt(3)?\"-webkit-\"+o+o:o;case 963:return 110===o.charCodeAt(5)?\"-webkit-\"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return\"-webkit-\"+o+o;case 978:return\"-webkit-\"+o+\"-moz-\"+o+o;case 1019:case 983:return\"-webkit-\"+o+\"-moz-\"+o+\"-ms-\"+o+o;case 883:if(45===o.charCodeAt(8))return\"-webkit-\"+o+o;if(0<o.indexOf(\"image-set(\",11))return o.replace(k,\"$1-webkit-$2\")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return\"-webkit-box-\"+o.replace(\"-grow\",\"\")+\"-webkit-\"+o+\"-ms-\"+o.replace(\"grow\",\"positive\")+o;case 115:return\"-webkit-\"+o+\"-ms-\"+o.replace(\"shrink\",\"negative\")+o;case 98:return\"-webkit-\"+o+\"-ms-\"+o.replace(\"basis\",\"preferred-size\")+o}return\"-webkit-\"+o+\"-ms-\"+o+o;case 964:return\"-webkit-\"+o+\"-ms-flex-\"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return\"-webkit-box-pack\"+(l=o.substring(o.indexOf(\":\",15)).replace(\"flex-\",\"\").replace(\"space-between\",\"justify\"))+\"-webkit-\"+o+\"-ms-flex-pack\"+l+o;case 1005:return h.test(o)?o.replace(d,\":-webkit-\")+o.replace(d,\":-moz-\")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf(\"-\")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(v,\"tb\");break;case 232:l=o.replace(v,\"tb-rl\");break;case 220:l=o.replace(v,\"lr\");break;default:return o}return\"-webkit-\"+o+\"-ms-\"+l+o;case 1017:if(-1===o.indexOf(\"sticky\",9))break;case 975:switch(t=(o=e).length-10,a=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(\":\",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,\"-webkit-\"+l)+\";\"+o;break;case 207:case 102:o=o.replace(l,\"-webkit-\"+(102<a?\"inline-\":\"\")+\"box\")+\";\"+o.replace(l,\"-webkit-\"+l)+\";\"+o.replace(l,\"-ms-\"+l+\"box\")+\";\"+o}return o+\";\";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace(\"-items\",\"\"),\"-webkit-\"+o+\"-webkit-box-\"+l+\"-ms-flex-\"+l+o;case 115:return\"-webkit-\"+o+\"-ms-flex-item-\"+o.replace(E,\"\")+o;default:return\"-webkit-\"+o+\"-ms-flex-line-pack\"+o.replace(\"align-content\",\"\").replace(E,\"\")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(\":\")+1)).charCodeAt(0)?n(e.replace(\"stretch\",\"fill-available\"),t,r,s).replace(\":fill-available\",\":stretch\"):o.replace(l,\"-webkit-\"+l)+o.replace(l,\"-moz-\"+l.replace(\"fill-\",\"\"))+o;break;case 962:if(o=\"-webkit-\"+o+(102===o.charCodeAt(5)?\"-ms-\"+o:\"\")+o,211===r+s&&105===o.charCodeAt(13)&&0<o.indexOf(\"transform\",10))return o.substring(0,o.indexOf(\";\",27)+1).replace(f,\"$1-webkit-$2\")+o}return o}function i(e,t){var r=e.indexOf(1===t?\":\":\"{\"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),M(2!==t?n:n.replace(A,\"$1\"),r,t)}function s(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+\";\"?r.replace(_,\" or ($1)\").substring(4):\"(\"+t+\")\"}function o(e,t,r,n,i,s,o,a,u,c){for(var d,h=0,f=t;h<N;++h)switch(d=O[h].call(l,e,f,r,n,i,s,o,a,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function a(e){return void 0!==(e=e.prefix)&&(M=null,e?\"function\"!=typeof e?P=1:(P=2,M=e):P=0),a}function l(e,r){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<N){var l=o(-1,r,a,a,$,S,0,0,0,0);void 0!==l&&\"string\"==typeof l&&(r=l)}var d=function e(r,a,l,d,h){for(var f,p,g,v,_,E=0,A=0,x=0,k=0,O=0,M=0,T=g=f=0,D=0,L=0,j=0,B=0,F=l.length,U=F-1,z=\"\",q=\"\",H=\"\",G=\"\";D<F;){if(p=l.charCodeAt(D),D===U&&0!==A+k+x+E&&(0!==A&&(p=47===A?10:47),k=x=E=0,F++,U++),0===A+k+x+E){if(D===U&&(0<L&&(z=z.replace(c,\"\")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(D)}p=59}switch(p){case 123:for(f=(z=z.trim()).charCodeAt(0),g=1,B=++D;D<F;){switch(p=l.charCodeAt(D)){case 123:g++;break;case 125:g--;break;case 47:switch(p=l.charCodeAt(D+1)){case 42:case 47:r:{for(T=D+1;T<U;++T)switch(l.charCodeAt(T)){case 47:if(42===p&&42===l.charCodeAt(T-1)&&D+2!==T){D=T+1;break r}break;case 10:if(47===p){D=T+1;break r}}D=T}}break;case 91:p++;case 40:p++;case 34:case 39:for(;D++<U&&l.charCodeAt(D)!==p;);}if(0===g)break;D++}if(g=l.substring(B,D),0===f&&(f=(z=z.replace(u,\"\").trim()).charCodeAt(0)),64===f){switch(0<L&&(z=z.replace(c,\"\")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:L=a;break;default:L=I}if(B=(g=e(a,L,g,p,h+1)).length,0<N&&(_=o(3,g,L=t(I,z,j),a,$,S,B,p,h,d),z=L.join(\"\"),void 0!==_&&0===(B=(g=_.trim()).length)&&(p=0,g=\"\")),0<B)switch(p){case 115:z=z.replace(w,s);case 100:case 109:case 45:g=z+\"{\"+g+\"}\";break;case 107:g=(z=z.replace(m,\"$1 $2\"))+\"{\"+g+\"}\",g=1===P||2===P&&i(\"@\"+g,3)?\"@-webkit-\"+g+\"@\"+g:\"@\"+g;break;default:g=z+g,112===d&&(q+=g,g=\"\")}else g=\"\"}else g=e(a,t(a,z,j),g,d,h+1);H+=g,g=j=L=T=f=0,z=\"\",p=l.charCodeAt(++D);break;case 125:case 59:if(1<(B=(z=(0<L?z.replace(c,\"\"):z).trim()).length))switch(0===T&&(45===(f=z.charCodeAt(0))||96<f&&123>f)&&(B=(z=z.replace(\" \",\":\")).length),0<N&&void 0!==(_=o(1,z,a,r,$,S,q.length,d,h,d))&&0===(B=(z=_.trim()).length)&&(z=\"\\0\\0\"),f=z.charCodeAt(0),p=z.charCodeAt(1),f){case 0:break;case 64:if(105===p||99===p){G+=z+l.charAt(D);break}default:58!==z.charCodeAt(B-1)&&(q+=n(z,f,p,z.charCodeAt(2)))}j=L=T=f=0,z=\"\",p=l.charCodeAt(++D)}}switch(p){case 13:case 10:47===A?A=0:0===1+f&&107!==d&&0<z.length&&(L=1,z+=\"\\0\"),0<N*R&&o(0,z,a,r,$,S,q.length,d,h,d),S=1,$++;break;case 59:case 125:if(0===A+k+x+E){S++;break}default:switch(S++,v=l.charAt(D),p){case 9:case 32:if(0===k+E+A)switch(O){case 44:case 58:case 9:case 32:v=\"\";break;default:32!==p&&(v=\" \")}break;case 0:v=\"\\\\0\";break;case 12:v=\"\\\\f\";break;case 11:v=\"\\\\v\";break;case 38:0===k+A+E&&(L=j=1,v=\"\\f\"+v);break;case 108:if(0===k+A+E+C&&0<T)switch(D-T){case 2:112===O&&58===l.charCodeAt(D-3)&&(C=O);case 8:111===M&&(C=M)}break;case 58:0===k+A+E&&(T=D);break;case 44:0===A+x+k+E&&(L=1,v+=\"\\r\");break;case 34:case 39:0===A&&(k=k===p?0:0===k?p:k);break;case 91:0===k+A+x&&E++;break;case 93:0===k+A+x&&E--;break;case 41:0===k+A+E&&x--;break;case 40:0===k+A+E&&(0===f&&(2*O+3*M==533||(f=1)),x++);break;case 64:0===A+x+k+E+T+g&&(g=1);break;case 42:case 47:if(!(0<k+E+x))switch(A){case 0:switch(2*p+3*l.charCodeAt(D+1)){case 235:A=47;break;case 220:B=D,A=42}break;case 42:47===p&&42===O&&B+2!==D&&(33===l.charCodeAt(B+2)&&(q+=l.substring(B,D+1)),v=\"\",A=0)}}0===A&&(z+=v)}M=O,O=p,D++}if(0<(B=q.length)){if(L=a,0<N&&void 0!==(_=o(2,q,L,r,$,S,B,d,h,d))&&0===(q=_).length)return G+q+H;if(q=L.join(\",\")+\"{\"+q+\"}\",0!=P*C){switch(2!==P||i(q,2)||(C=0),C){case 111:q=q.replace(b,\":-moz-$1\")+q;break;case 112:q=q.replace(y,\"::-webkit-input-$1\")+q.replace(y,\"::-moz-$1\")+q.replace(y,\":-ms-input-$1\")+q}C=0}}return G+q+H}(I,a,r,0,0);return 0<N&&void 0!==(l=o(-2,d,a,a,$,S,d.length,0,0,0))&&(d=l),C=0,S=$=1,d}var u=/^\\0+/g,c=/[\\0\\r\\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,p=/,\\r+?/g,g=/([\\t\\r\\n ])*\\f?&/g,m=/@(k\\w+)\\s*(\\S*)\\s*/,y=/::(place)/g,b=/:(read-only)/g,v=/[svh]\\w+-[tblr]{2}/,w=/\\(\\s*(.*)\\s*\\)/g,_=/([\\s\\S]*?);/g,E=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\\w-]+)[^]*/,x=/stretch|:\\s*\\w+\\-(?:conte|avail)/,k=/([^-])(image-set\\()/,S=1,$=1,C=0,P=1,I=[],O=[],N=0,M=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:N=O.length=0;break;default:if(\"function\"==typeof t)O[N++]=t;else if(\"object\"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},l.set=a,void 0!==e&&a(e),l},d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,f=(n=function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},i=Object.create(null),function(e){return void 0===i[e]&&(i[e]=n(e)),i[e]}),p=r(46451),g=r.n(p),m=r(25566);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},v=function(e){return null!==e&&\"object\"==typeof e&&\"[object Object]\"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,o.typeOf)(e)},w=Object.freeze([]),_=Object.freeze({});function E(e){return\"function\"==typeof e}function A(e){return e.displayName||e.name||\"Component\"}function x(e){return e&&\"string\"==typeof e.styledComponentId}var k=void 0!==m&&void 0!==m.env&&(m.env.REACT_APP_SC_ATTR||m.env.SC_ATTR)||\"data-styled\",S=\"undefined\"!=typeof window&&\"HTMLElement\"in window,$=!!(\"boolean\"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==m&&void 0!==m.env&&(void 0!==m.env.REACT_APP_SC_DISABLE_SPEEDY&&\"\"!==m.env.REACT_APP_SC_DISABLE_SPEEDY?\"false\"!==m.env.REACT_APP_SC_DISABLE_SPEEDY&&m.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==m.env.SC_DISABLE_SPEEDY&&\"\"!==m.env.SC_DISABLE_SPEEDY&&\"false\"!==m.env.SC_DISABLE_SPEEDY&&m.env.SC_DISABLE_SPEEDY)),C={};function P(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error(\"An error occurred. See https://git.io/JUIaE#\"+e+\" for more information.\"+(r.length>0?\" Args: \"+r.join(\", \"):\"\"))}var I=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&P(16,\"\"+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=n;s<i;s++)this.groupSizes[s]=0}for(var o=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t=\"\";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,s=n;s<i;s++)t+=this.tag.getRule(s)+\"/*!sc*/\\n\";return t},e}(),O=new Map,N=new Map,M=1,R=function(e){if(O.has(e))return O.get(e);for(;N.has(M);)M++;var t=M++;return O.set(e,t),N.set(t,e),t},T=function(e,t){t>=M&&(M=t+1),O.set(e,t),N.set(t,e)},D=\"style[\"+k+'][data-styled-version=\"5.3.11\"]',L=RegExp(\"^\"+k+'\\\\.g(\\\\d+)\\\\[id=\"([\\\\w\\\\d-]+)\"\\\\].*?\"([^\"]*)'),j=function(e,t,r){for(var n,i=r.split(\",\"),s=0,o=i.length;s<o;s++)(n=i[s])&&e.registerName(t,n)},B=function(e,t){for(var r=(t.textContent||\"\").split(\"/*!sc*/\\n\"),n=[],i=0,s=r.length;i<s;i++){var o=r[i].trim();if(o){var a=o.match(L);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(T(u,l),j(e,u,a[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(o)}}},F=function(){return r.nc},U=function(e){var t=document.head,r=e||t,n=document.createElement(\"style\"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(k))return n}}(r),s=void 0!==i?i.nextSibling:null;n.setAttribute(k,\"active\"),n.setAttribute(\"data-styled-version\",\"5.3.11\");var o=F();return o&&n.setAttribute(\"nonce\",o),r.insertBefore(n,s),n},z=function(){function e(e){var t=this.element=U(e);t.appendChild(document.createTextNode(\"\")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}P(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&\"string\"==typeof t.cssText?t.cssText:\"\"},e}(),q=function(){function e(e){var t=this.element=U(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:\"\"},e}(),H=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:\"\"},e}(),G=S,V={isServer:!S,useCSSOMInjection:!$},W=function(){function e(e,t,r){void 0===e&&(e=_),void 0===t&&(t={}),this.options=y({},V,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&G&&(G=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];i&&\"active\"!==i.getAttribute(k)&&(B(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return R(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(y({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new I(t?new H(n):r?new z(n):new q(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(R(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(R(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(R(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n=\"\",i=0;i<r;i++){var s,o=(s=i,N.get(s));if(void 0!==o){var a=e.names.get(o),l=t.getGroup(i);if(a&&l&&a.size){var u=k+\".g\"+i+'[id=\"'+o+'\"]',c=\"\";void 0!==a&&a.forEach(function(e){e.length>0&&(c+=e+\",\")}),n+=\"\"+l+u+'{content:\"'+c+'\"}/*!sc*/\\n'}}}return n}(this)},e}(),K=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,r=\"\";for(t=Math.abs(e);t>52;t=t/52|0)r=Y(t%52)+r;return(Y(t%52)+r).replace(K,\"$1-$2\")}var J=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Q=function(e){return J(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(E(r)&&!x(r))return!1}return!0}var ee=Q(\"5.3.11\"),et=function(){function e(e,t,r){this.rules=e,this.staticRulesId=\"\",this.isStatic=(void 0===r||r.isStatic)&&X(e),this.componentId=t,this.baseHash=J(ee,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var s=ev(this.rules,e,t,r).join(\"\"),o=Z(J(this.baseHash,s)>>>0);if(!t.hasNameForId(n,o)){var a=r(s,\".\"+o,void 0,n);t.insertRules(n,o,a)}i.push(o),this.staticRulesId=o}}else{for(var l=this.rules.length,u=J(this.baseHash,r.hash),c=\"\",d=0;d<l;d++){var h=this.rules[d];if(\"string\"==typeof h)c+=h;else if(h){var f=ev(h,e,t,r),p=Array.isArray(f)?f.join(\"\"):f;u=J(u,p+d),c+=p}}if(c){var g=Z(u>>>0);if(!t.hasNameForId(n,g)){var m=r(c,\".\"+g,void 0,n);t.insertRules(n,g,m)}i.push(g)}}return i.join(\" \")},e}(),er=/^\\s*\\/\\/.*$/gm,en=[\":\",\"[\",\".\",\"#\"];function ei(e){var t,r,n,i,s=void 0===e?_:e,o=s.options,a=void 0===o?_:o,l=s.plugins,u=void 0===l?w:l,d=new c(a),h=[],f=function(e){function t(t){if(t)try{e(t+\"}\")}catch(e){}}return function(r,n,i,s,o,a,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+\";\"),\"\";break;case 2:if(0===u)return n+\"/*|*/\";break;case 3:switch(u){case 102:case 112:return e(i[0]+n),\"\";default:return n+(0===d?\"/*|*/\":\"\")}case -2:n.split(\"/*|*/}\").forEach(t)}}}(function(e){h.push(e)}),p=function(e,n,s){return 0===n&&-1!==en.indexOf(s[r.length])||s.match(i)?e:\".\"+t};function g(e,s,o,a){void 0===a&&(a=\"&\");var l=e.replace(er,\"\"),u=s&&o?o+\" \"+s+\" { \"+l+\" }\":l;return t=a,n=RegExp(\"\\\\\"+(r=s)+\"\\\\b\",\"g\"),i=RegExp(\"(\\\\\"+r+\"\\\\b){2,}\"),d(o||!s?\"\":s,u)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),g.hash=u.length?u.reduce(function(e,t){return t.name||P(15),J(e,t.name)},5381).toString():\"\",g}var es=a.createContext(),eo=(es.Consumer,a.createContext()),ea=(eo.Consumer,new W),el=ei();function eu(){return(0,a.useContext)(es)||ea}function ec(){return(0,a.useContext)(eo)||el}function ed(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],i=eu(),s=(0,a.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),o=(0,a.useMemo)(function(){return ei({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,a.useEffect)(function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(es.Provider,{value:s},a.createElement(eo.Provider,{value:o},e.children))}var eh=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=el);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,\"@keyframes\"))},this.toString=function(){return P(12,String(r.name))},this.name=e,this.id=\"sc-keyframes-\"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=el),this.name+e.hash},e}(),ef=/([A-Z])/,ep=/([A-Z])/g,eg=/^ms-/,em=function(e){return\"-\"+e.toLowerCase()};function ey(e){return ef.test(e)?e.replace(ep,em).replace(eg,\"-ms-\"):e}var eb=function(e){return null==e||!1===e||\"\"===e};function ev(e,t,r,n){if(Array.isArray(e)){for(var i,s=[],o=0,a=e.length;o<a;o+=1)\"\"!==(i=ev(e[o],t,r,n))&&(Array.isArray(i)?s.push.apply(s,i):s.push(i));return s}return eb(e)?\"\":x(e)?\".\"+e.styledComponentId:E(e)?\"function\"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ev(e(t),t,r,n):e instanceof eh?r?(e.inject(r,n),e.getName(n)):e:v(e)?function e(t,r){var n,i=[];for(var s in t)t.hasOwnProperty(s)&&!eb(t[s])&&(Array.isArray(t[s])&&t[s].isCss||E(t[s])?i.push(ey(s)+\":\",t[s],\";\"):v(t[s])?i.push.apply(i,e(t[s],s)):i.push(ey(s)+\": \"+(null==(n=t[s])||\"boolean\"==typeof n||\"\"===n?\"\":\"number\"!=typeof n||0===n||s in d||s.startsWith(\"--\")?String(n).trim():n+\"px\")+\";\"));return r?[r+\" {\"].concat(i,[\"}\"]):i}(e):e.toString()}var ew=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function e_(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return E(e)||v(e)?ew(ev(b(w,[e].concat(r)))):0===r.length&&1===e.length&&\"string\"==typeof e[0]?e:ew(ev(b(e,r)))}var eE=function(e,t,r){return void 0===r&&(r=_),e.theme!==r.theme&&e.theme||t||r.theme},eA=/[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^`{|}~-]+/g,ex=/(^-|-$)/g;function ek(e){return e.replace(eA,\"-\").replace(ex,\"\")}var eS=function(e){return Z(Q(e)>>>0)};function e$(e){return\"string\"==typeof e}var eC=function(e){return\"function\"==typeof e||\"object\"==typeof e&&null!==e&&!Array.isArray(e)},eP=a.createContext();eP.Consumer;var eI={},eO=function(e){return function e(t,r,n){if(void 0===n&&(n=_),!(0,o.isValidElementType)(r))return P(1,String(r));var i=function(){return t(r,n,e_.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,y({},n,{},i))},i.attrs=function(i){return e(t,r,y({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=x(t),s=!e$(t),o=r.attrs,l=void 0===o?w:o,u=r.componentId,c=void 0===u?(v=r.displayName,k=r.parentComponentId,eI[S=\"string\"!=typeof v?\"sc\":ek(v)]=(eI[S]||0)+1,$=S+\"-\"+eS(\"5.3.11\"+S+eI[S]),k?k+\"-\"+$:$):u,d=r.displayName,h=void 0===d?e$(t)?\"styled.\"+t:\"Styled(\"+A(t)+\")\":d,p=r.displayName&&r.componentId?ek(r.displayName)+\"-\"+r.componentId:r.componentId||c,m=i&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,b=r.shouldForwardProp;i&&t.shouldForwardProp&&(b=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,k,S,$,C,P=new et(n,p,i?t.componentStyle:void 0),I=P.isStatic&&0===l.length,O=function(e,t){return function(e,t,r,n){var i,s,o,l,u,c=e.attrs,d=e.componentStyle,h=e.defaultProps,p=e.foldedComponentIds,g=e.shouldForwardProp,m=e.styledComponentId,b=e.target,v=(void 0===(i=eE(t,(0,a.useContext)(eP),h)||_)&&(i=_),s=y({},t,{theme:i}),o={},c.forEach(function(e){var t,r,n,i=e;for(t in E(i)&&(i=i(s)),i)s[t]=o[t]=\"className\"===t?(r=o[t],n=i[t],r&&n?r+\" \"+n:r||n):i[t]}),[s,o]),w=v[0],A=v[1],x=(l=eu(),u=ec(),n?d.generateAndInjectStyles(_,l,u):d.generateAndInjectStyles(w,l,u)),k=A.$as||t.$as||A.as||t.as||b,S=e$(k),$=A!==t?y({},t,{},A):t,C={};for(var P in $)\"$\"!==P[0]&&\"as\"!==P&&(\"forwardedAs\"===P?C.as=$[P]:(g?g(P,f,k):!S||f(P))&&(C[P]=$[P]));return t.style&&A.style!==t.style&&(C.style=y({},t.style,{},A.style)),C.className=Array.prototype.concat(p,m,x!==m?x:null,t.className,A.className).filter(Boolean).join(\" \"),C.ref=r,(0,a.createElement)(k,C)}(C,e,t,I)};return O.displayName=h,(C=a.forwardRef(O)).attrs=m,C.componentStyle=P,C.displayName=h,C.shouldForwardProp=b,C.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):w,C.styledComponentId=p,C.target=i?t.target:t,C.withComponent=function(t){var i=r.componentId,s=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(i[r]=e[r]);return i}(r,[\"componentId\"]),o=i&&i+\"-\"+(e$(t)?t:ek(A(t)));return e(t,y({},s,{attrs:m,componentId:o}),n)},Object.defineProperty(C,\"defaultProps\",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var s=0;s<n.length;s++){var o=n[s];if(eC(o))for(var a in o)\"__proto__\"!==a&&\"constructor\"!==a&&\"prototype\"!==a&&function(t,r,n){var i=t[n];eC(r)&&eC(i)?e(i,r):t[n]=r}(t,o[a],a)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(C,\"toString\",{value:function(){return\".\"+C.styledComponentId}}),s&&g()(C,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C},e)};[\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"keygen\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"marquee\",\"menu\",\"menuitem\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"title\",\"tr\",\"track\",\"u\",\"ul\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"marker\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"textPath\",\"tspan\"].forEach(function(e){eO[e]=eO(e)});var eN=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ev(this.rules,t,r,n).join(\"\"),\"\"),s=this.componentId+e;r.insertRules(s,s,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eM(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e_.apply(void 0,[e].concat(r)),s=\"sc-global-\"+eS(JSON.stringify(i)),o=new eN(i,s);function l(e){var t=eu(),r=ec(),n=(0,a.useContext)(eP),i=(0,a.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,n,r),(0,a.useLayoutEffect)(function(){if(!t.server)return u(i,e,t,n,r),function(){return o.removeStyles(i,t)}},[i,e,t,n,r]),null}function u(e,t,r,n,i){if(o.isStatic)o.renderStyles(e,C,r,i);else{var s=y({},t,{theme:eE(t,n,l.defaultProps)});o.renderStyles(e,s,r,i)}}return a.memo(l)}function eR(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e_.apply(void 0,[e].concat(r)).join(\"\");return new eh(eS(i),i)}(s=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return\"\";var r=F();return\"<style \"+[r&&'nonce=\"'+r+'\"',k+'=\"true\"','data-styled-version=\"5.3.11\"'].filter(Boolean).join(\" \")+\">\"+t+\"</style>\"},this.getStyleTags=function(){return e.sealed?P(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return P(2);var t,r=((t={})[k]=\"\",t[\"data-styled-version\"]=\"5.3.11\",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=F();return n&&(r.nonce=n),[a.createElement(\"style\",y({},r,{key:\"sc-0-0\"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?P(2):a.createElement(ed,{sheet:this.instance},e)},s.interleaveWithNodeStream=function(e){return P(3)};var eT=eO},17914:function(e,t,r){var n;!function(i,s){\"use strict\";var o=\"function\",a=\"undefined\",l=\"object\",u=\"string\",c=\"major\",d=\"model\",h=\"name\",f=\"type\",p=\"vendor\",g=\"version\",m=\"architecture\",y=\"console\",b=\"mobile\",v=\"tablet\",w=\"smarttv\",_=\"wearable\",E=\"embedded\",A=\"Amazon\",x=\"Apple\",k=\"ASUS\",S=\"BlackBerry\",$=\"Browser\",C=\"Chrome\",P=\"Firefox\",I=\"Google\",O=\"Huawei\",N=\"Microsoft\",M=\"Motorola\",R=\"Opera\",T=\"Samsung\",D=\"Sharp\",L=\"Sony\",j=\"Xiaomi\",B=\"Zebra\",F=\"Facebook\",U=\"Chromium OS\",z=\"Mac OS\",q=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},H=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},G=function(e,t){return typeof e===u&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===u)return e=e.replace(/^\\s\\s*/,\"\"),typeof t===a?e:e.substring(0,500)},K=function(e,t){for(var r,n,i,a,u,c,d=0;d<t.length&&!u;){var h=t[d],f=t[d+1];for(r=n=0;r<h.length&&!u&&h[r];)if(u=h[r++].exec(e))for(i=0;i<f.length;i++)c=u[++n],typeof(a=f[i])===l&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):void 0:this[a[0]]=c?a[1].call(this,c,a[2]):void 0:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):void 0):this[a]=c||s;d+=2}},Y=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(G(t[r][n],e))return\"?\"===r?s:r}else if(G(t[r],e))return\"?\"===r?s:r;return e},Z={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},J={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[g,[h,\"Chrome\"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[g,[h,\"Edge\"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[h,g],[/opios[\\/ ]+([\\w\\.]+)/i],[g,[h,R+\" Mini\"]],[/\\bop(?:rg)?x\\/([\\w\\.]+)/i],[g,[h,R+\" GX\"]],[/\\bopr\\/([\\w\\.]+)/i],[g,[h,R]],[/\\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\\/ ]?([\\w\\.]+)/i],[g,[h,\"Baidu\"]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant|iemobile|slim)\\s?(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(heytap|ovi)browser\\/([\\d\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[h,g],[/\\bddg\\/([\\w\\.]+)/i],[g,[h,\"DuckDuckGo\"]],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[g,[h,\"UC\"+$]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i,/micromessenger\\/([\\w\\.]+)/i],[g,[h,\"WeChat\"]],[/konqueror\\/([\\w\\.]+)/i],[g,[h,\"Konqueror\"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[g,[h,\"IE\"]],[/ya(?:search)?browser\\/([\\w\\.]+)/i],[g,[h,\"Yandex\"]],[/slbrowser\\/([\\w\\.]+)/i],[g,[h,\"Smart Lenovo \"+$]],[/(avast|avg)\\/([\\w\\.]+)/i],[[h,/(.+)/,\"$1 Secure \"+$],g],[/\\bfocus\\/([\\w\\.]+)/i],[g,[h,P+\" Focus\"]],[/\\bopt\\/([\\w\\.]+)/i],[g,[h,R+\" Touch\"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[g,[h,\"Coc Coc\"]],[/dolfin\\/([\\w\\.]+)/i],[g,[h,\"Dolphin\"]],[/coast\\/([\\w\\.]+)/i],[g,[h,R+\" Coast\"]],[/miuibrowser\\/([\\w\\.]+)/i],[g,[h,\"MIUI \"+$]],[/fxios\\/([-\\w\\.]+)/i],[g,[h,P]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[h,\"360 \"+$]],[/(oculus|sailfish|huawei|vivo)browser\\/([\\w\\.]+)/i],[[h,/(.+)/,\"$1 \"+$],g],[/samsungbrowser\\/([\\w\\.]+)/i],[g,[h,T+\" Internet\"]],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[h,/_/g,\" \"],g],[/metasr[\\/ ]?([\\d\\.]+)/i],[g,[h,\"Sogou Explorer\"]],[/(sogou)mo\\w+\\/([\\d\\.]+)/i],[[h,\"Sogou Mobile\"],g],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[h,g],[/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[h],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[h,F],g],[/(Klarna)\\/([\\w\\.]+)/i,/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(alipay)client\\/([\\w\\.]+)/i,/(twitter)(?:and| f.+e\\/([\\w\\.]+))/i,/(chromium|instagram|snapchat)[\\/ ]([-\\w\\.]+)/i],[h,g],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[g,[h,\"GSA\"]],[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],[g,[h,\"TikTok\"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[g,[h,C+\" Headless\"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[h,C+\" WebView\"],g],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[g,[h,\"Android \"+$]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[h,g],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[g,[h,\"Mobile Safari\"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[h,[g,Y,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[h,g],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[h,\"Netscape\"],g],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[g,[h,P+\" Reality\"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\\/([\\w\\.]+)/i],[h,[g,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[m,\"amd64\"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\\)]/i],[[m,\"ia32\"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[m,\"arm64\"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[m,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[m,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[m,/ower/,\"\",V]],[/(sun4\\w)[;\\)]/i],[[m,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[m,V]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,T],[f,v]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[d,[p,T],[f,b]],[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],[d,[p,x],[f,b]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[d,[p,x],[f,v]],[/(macintosh);/i],[d,[p,x]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[d,[p,D],[f,b]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[d,[p,O],[f,v]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[d,[p,O],[f,b]],[/\\b(poco[\\w ]+|m2\\d{3}j\\d\\d[a-z]{2})(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/oid[^\\)]+; (m?[12][0-389][01]\\w{3,6}[c-y])( bui|; wv|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[d,/_/g,\" \"],[p,j],[f,b]],[/oid[^\\)]+; (2\\d{4}(283|rpbf)[cgl])( bui|\\))/i,/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[d,/_/g,\" \"],[p,j],[f,v]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[d,[p,\"OPPO\"],[f,b]],[/\\b(opd2\\d{3}a?) bui/i],[d,[p,\"OPPO\"],[f,v]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[d,[p,\"Vivo\"],[f,b]],[/\\b(rmx[1-3]\\d{3})(?: bui|;|\\))/i],[d,[p,\"Realme\"],[f,b]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[d,[p,M],[f,b]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[d,[p,M],[f,v]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,\"LG\"],[f,v]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[d,[p,\"LG\"],[f,b]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[d,[p,\"Lenovo\"],[f,v]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[d,/_/g,\" \"],[p,\"Nokia\"],[f,b]],[/(pixel c)\\b/i],[d,[p,I],[f,v]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[d,[p,I],[f,b]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[d,[p,L],[f,b]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[d,\"Xperia Tablet\"],[p,L],[f,v]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[d,[p,\"OnePlus\"],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[d,[p,A],[f,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[p,A],[f,b]],[/(playbook);[-\\w\\),; ]+(rim)/i],[d,p,[f,v]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[d,[p,S],[f,b]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[d,[p,k],[f,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[d,[p,k],[f,b]],[/(nexus 9)/i],[d,[p,\"HTC\"],[f,v]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i],[p,[d,/_/g,\" \"],[f,b]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[d,[p,\"Acer\"],[f,v]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[d,[p,\"Meizu\"],[f,b]],[/; ((?:power )?armor(?:[\\w ]{0,8}))(?: bui|\\))/i],[d,[p,\"Ulefone\"],[f,b]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[p,d,[f,b]],[/(kobo)\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[p,d,[f,v]],[/(surface duo)/i],[d,[p,N],[f,v]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[d,[p,\"Fairphone\"],[f,b]],[/(u304aa)/i],[d,[p,\"AT&T\"],[f,b]],[/\\bsie-(\\w*)/i],[d,[p,\"Siemens\"],[f,b]],[/\\b(rct\\w+) b/i],[d,[p,\"RCA\"],[f,v]],[/\\b(venue[\\d ]{2,7}) b/i],[d,[p,\"Dell\"],[f,v]],[/\\b(q(?:mv|ta)\\w+) b/i],[d,[p,\"Verizon\"],[f,v]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[d,[p,\"Barnes & Noble\"],[f,v]],[/\\b(tm\\d{3}\\w+) b/i],[d,[p,\"NuVision\"],[f,v]],[/\\b(k88) b/i],[d,[p,\"ZTE\"],[f,v]],[/\\b(nx\\d{3}j) b/i],[d,[p,\"ZTE\"],[f,b]],[/\\b(gen\\d{3}) b.+49h/i],[d,[p,\"Swiss\"],[f,b]],[/\\b(zur\\d{3}) b/i],[d,[p,\"Swiss\"],[f,v]],[/\\b((zeki)?tb.*\\b) b/i],[d,[p,\"Zeki\"],[f,v]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[p,\"Dragon Touch\"],d,[f,v]],[/\\b(ns-?\\w{0,9}) b/i],[d,[p,\"Insignia\"],[f,v]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[d,[p,\"NextBook\"],[f,v]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,\"Voice\"],d,[f,b]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[p,\"LvTel\"],d,[f,b]],[/\\b(ph-1) /i],[d,[p,\"Essential\"],[f,b]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[d,[p,\"Envizen\"],[f,v]],[/\\b(trio[-\\w\\. ]+) b/i],[d,[p,\"MachSpeed\"],[f,v]],[/\\btu_(1491) b/i],[d,[p,\"Rotor\"],[f,v]],[/(shield[\\w ]+) b/i],[d,[p,\"Nvidia\"],[f,v]],[/(sprint) (\\w+)/i],[p,d,[f,b]],[/(kin\\.[onetw]{3})/i],[[d,/\\./g,\" \"],[p,N],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[d,[p,B],[f,v]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[d,[p,B],[f,b]],[/smart-tv.+(samsung)/i],[p,[f,w]],[/hbbtv.+maple;(\\d+)/i],[[d,/^/,\"SmartTV\"],[p,T],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[p,\"LG\"],[f,w]],[/(apple) ?tv/i],[p,[d,x+\" TV\"],[f,w]],[/crkey/i],[[d,C+\"cast\"],[p,I],[f,w]],[/droid.+aft(\\w+)( bui|\\))/i],[d,[p,A],[f,w]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[d,[p,D],[f,w]],[/(bravia[\\w ]+)( bui|\\))/i],[d,[p,L],[f,w]],[/(mitv-\\w{5}) bui/i],[d,[p,j],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[f,w]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i],[[p,W],[d,W],[f,w]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[f,y]],[/droid.+; (shield) bui/i],[d,[p,\"Nvidia\"],[f,y]],[/(playstation [345portablevi]+)/i],[d,[p,L],[f,y]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[d,[p,N],[f,y]],[/((pebble))app/i],[p,d,[f,_]],[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],[d,[p,x],[f,_]],[/droid.+; (glass) \\d/i],[d,[p,I],[f,_]],[/droid.+; (wt63?0{2,3})\\)/i],[d,[p,B],[f,_]],[/(quest( \\d| pro)?)/i],[d,[p,F],[f,_]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[p,[f,E]],[/(aeobc)\\b/i],[d,[p,A],[f,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\\)|\\) applew).+? mobile safari/i],[d,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[d,[f,v]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[f,v]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/(android[-\\w\\. ]{0,9});.+buil/i],[d,[p,\"Generic\"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[g,[h,\"EdgeHTML\"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[g,[h,\"Blink\"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,/\\b(libweb)/i],[h,g],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i],[h,[g,Y,Z]],[/windows nt 6\\.2; (arm)/i,/windows[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[g,Y,Z],[h,\"Windows\"]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/(?:ios;fbsv\\/|iphone.+ios[\\/ ])([\\d\\.]+)/i,/cfnetwork\\/.+darwin/i],[[g,/_/g,\".\"],[h,\"iOS\"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[h,z],[g,/_/g,\".\"]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[h,g],[/\\(bb(10);/i],[g,[h,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[g,[h,\"Symbian\"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[g,[h,P+\" OS\"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[g,[h,\"webOS\"]],[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],[g,[h,\"watchOS\"]],[/crkey\\/([\\d\\.]+)/i],[g,[h,C+\"cast\"]],[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],[[h,U],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[h,g],[/(sunos) ?([\\w\\.\\d]*)/i],[[h,\"Solaris\"],g],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\w\\.]*)/i],[h,g]]},Q=function(e,t){if(typeof e===l&&(t=e,e=s),!(this instanceof Q))return new Q(e,t).getResult();var r=typeof i!==a&&i.navigator?i.navigator:s,n=e||(r&&r.userAgent?r.userAgent:\"\"),y=r&&r.userAgentData?r.userAgentData:s,w=t?q(J,t):J,_=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=s,t[g]=s,K.call(t,n,w.browser),t[c]=typeof(e=t[g])===u?e.replace(/[^\\d\\.]/g,\"\").split(\".\")[0]:s,_&&r&&r.brave&&typeof r.brave.isBrave==o&&(t[h]=\"Brave\"),t},this.getCPU=function(){var e={};return e[m]=s,K.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[p]=s,e[d]=s,e[f]=s,K.call(e,n,w.device),_&&!e[f]&&y&&y.mobile&&(e[f]=b),_&&\"Macintosh\"==e[d]&&r&&typeof r.standalone!==a&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]=\"iPad\",e[f]=v),e},this.getEngine=function(){var e={};return e[h]=s,e[g]=s,K.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[h]=s,e[g]=s,K.call(e,n,w.os),_&&!e[h]&&y&&y.platform&&\"Unknown\"!=y.platform&&(e[h]=y.platform.replace(/chrome os/i,U).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?W(e,500):e,this},this.setUA(n),this};Q.VERSION=\"1.0.38\",Q.BROWSER=H([h,g,c]),Q.CPU=H([m]),Q.DEVICE=H([d,p,f,y,b,w,v,_,E]),Q.ENGINE=Q.OS=H([h,g]),typeof t!==a?(e.exports&&(t=e.exports=Q),t.UAParser=Q):r.amdO?s!==(n=(function(){return Q}).call(t,r,t,e))&&(e.exports=n):typeof i!==a&&(i.UAParser=Q);var X=typeof i!==a&&(i.jQuery||i.Zepto);if(X&&!X.ua){var ee=new Q;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)X.ua[r]=t[r]}}}(\"object\"==typeof window?window:this)},33404:function(e,t,r){\"use strict\";/**\n * @license React\n * use-sync-external-store-with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var n=r(2265),i=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useSyncExternalStore,o=n.useRef,a=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var d=o(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=s(e,(d=l(function(){function e(e){if(!a){if(a=!0,s=e,e=n(e),void 0!==c&&h.hasValue){var t=h.value;if(c(t,e))return o=t}return o=e}if(t=o,i(s,e))return t;var r=n(e);return void 0!==c&&c(t,r)?t:(s=e,o=r)}var s,o,a=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],d[1]);return a(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},67183:function(e,t,r){\"use strict\";e.exports=r(33404)},20310:function(e,t,r){e.exports=function(e,t){if(n(\"noDeprecation\"))return e;var r=!1;return function(){if(!r){if(n(\"throwDeprecation\"))throw Error(t);n(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}};function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}},20920:function(e,t,r){\"use strict\";let n;r.d(t,{Z:function(){return a}});var i={randomUUID:\"undefined\"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var a=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();let a=(e=e||{}).random||(e.rng||function(){if(!n&&!(n=\"undefined\"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return n(s)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+\"-\"+o[e[t+4]]+o[e[t+5]]+\"-\"+o[e[t+6]]+o[e[t+7]]+\"-\"+o[e[t+8]]+o[e[t+9]]+\"-\"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}(a)}},25566:function(e){var t,r,n,i=e.exports={};function s(){throw Error(\"setTimeout has not been defined\")}function o(){throw Error(\"clearTimeout has not been defined\")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t=\"function\"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r=\"function\"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(e){throw Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},78227:function(e,t,r){\"use strict\";let n=r(57963);e.exports=s;let i=function(){function e(e){return void 0!==e&&e}try{if(\"undefined\"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,\"globalThis\",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function s(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&\"function\"!=typeof n.send)throw Error(\"pino: transmit option must have a send function\");let c=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let d=e.serializers||{},g=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return\"!stdSerializers.err\"!==e}):!0===t&&Object.keys(d),m=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf(\"!stdSerializers.err\")>-1&&(m=!1),\"function\"==typeof c&&(c.error=c.fatal=c.warn=c.info=c.debug=c.trace=c),!1===e.enabled&&(e.level=\"silent\");let y=e.level||\"info\",b=Object.create(c);b.log||(b.log=h),Object.defineProperty(b,\"levelVal\",{get:function(){return\"silent\"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(b,\"level\",{get:function(){return this._level},set:function(e){if(\"silent\"!==e&&!this.levels.values[e])throw Error(\"unknown level \"+e);this._level=e,o(v,b,\"error\",\"log\"),o(v,b,\"fatal\",\"error\"),o(v,b,\"warn\",\"error\"),o(v,b,\"info\",\"log\"),o(v,b,\"debug\",\"log\"),o(v,b,\"trace\",\"log\")}});let v={transmit:n,serialize:g,asObject:e.browser.asObject,levels:[\"error\",\"fatal\",\"warn\",\"info\",\"debug\",\"trace\"],timestamp:\"function\"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?f:p};return b.levels=s.levels,b.level=y,b.setMaxListeners=b.getMaxListeners=b.emit=b.addListener=b.on=b.prependListener=b.once=b.prependOnceListener=b.removeListener=b.removeAllListeners=b.listeners=b.listenerCount=b.eventNames=b.write=b.flush=h,b.serializers=d,b._serialize=g,b._stdErrSerialize=m,b.child=function(t,r){if(!t)throw Error(\"missing bindings for child Pino\");r=r||{},g&&t.serializers&&(r.serializers=t.serializers);let i=r.serializers;if(g&&i){var s=Object.assign({},d,i),o=!0===e.browser.serialize?Object.keys(s):g;delete t.serializers,a([t],o,s,this._stdErrSerialize)}function c(e){this._childLevel=(0|e._childLevel)+1,this.error=l(e,t,\"error\"),this.fatal=l(e,t,\"fatal\"),this.warn=l(e,t,\"warn\"),this.info=l(e,t,\"info\"),this.debug=l(e,t,\"debug\"),this.trace=l(e,t,\"trace\"),s&&(this.serializers=s,this._serialize=o),n&&(this._logEvent=u([].concat(e._logEvent.bindings,t)))}return c.prototype=this,new c(this)},n&&(b._logEvent=u()),b}function o(e,t,r,o){let l=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?h:l[r]?l[r]:i[r]||i[o]||h,function(e,t,r){if(e.transmit||t[r]!==h){var o;t[r]=(o=t[r],function(){let l=e.timestamp(),c=Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h<c.length;h++)c[h]=arguments[h];if(e.serialize&&!e.asObject&&a(c,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?o.call(d,function(e,t,r,i){e._serialize&&a(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),l=o[0],u={};i&&(u.time=i),u.level=s.levels.values[t];let c=(0|e._childLevel)+1;if(c<1&&(c=1),null!==l&&\"object\"==typeof l){for(;c--&&\"object\"==typeof o[0];)Object.assign(u,o.shift());l=o.length?n(o.shift(),o):void 0}else\"string\"==typeof l&&(l=n(o.shift(),o));return void 0!==l&&(u.msg=l),u}(this,r,c,l)):o.apply(d,c),e.transmit){let n=e.transmit.level||t.level,i=s.levels.values[n],o=s.levels.values[r];if(o<i)return;(function(e,t,r){let n=t.send,i=t.ts,s=t.methodLevel,o=t.methodValue,l=t.val,c=e._logEvent.bindings;a(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(e){return -1===c.indexOf(e)}),e._logEvent.level.label=s,e._logEvent.level.value=o,n(s,e._logEvent,l),e._logEvent=u(c)})(this,{ts:l,methodLevel:r,methodValue:o,transmitLevel:n,transmitValue:s.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},c)}})}}(e,t,r)}function a(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=s.stdSerializers.err(e[i]);else if(\"object\"==typeof e[i]&&!Array.isArray(e[i]))for(let n in e[i])t&&t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function l(e,t,r){return function(){let n=Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function u(e){return{ts:0,messages:[],bindings:e||[],level:{label:\"\",value:0}}}function c(){return{}}function d(e){return e}function h(){}function f(){return!1}function p(){return Date.now()}s.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:\"trace\",20:\"debug\",30:\"info\",40:\"warn\",50:\"error\",60:\"fatal\"}},s.stdSerializers={mapHttpRequest:c,mapHttpResponse:c,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:c,res:c,err:function(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}},s.stdTimeFunctions=Object.assign({},{nullTime:f,epochTime:p,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},60943:function(e,t,r){\"use strict\";let n,i,s,o,a,l,u,c,d,h,f,p,g,m;r.d(t,{V:function(){return eD}});var y,b,v,w=r(2265),_=r.t(w,2),E=r(99299),A=r(6584),x=r(88703);function k(e,t,r,n){let i=(0,x.E)(r);(0,w.useEffect)(()=>{function r(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var S=r(26400),$=r(28043);function C(e){let t=(0,A.z)(e),r=(0,w.useRef)(!1);(0,w.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,$.Y)(()=>{r.current&&t()})}),[t])}var P=r(54462);function I(e){return P.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty(\"current\")&&e.current instanceof Node?e.current.ownerDocument:document}function O(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,w.useMemo)(()=>I(...t),[...t])}var N=r(33856),M=r(41469);function R(e,t,r){let n=(0,x.E)(t);(0,w.useEffect)(()=>{function t(e){n.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}var T=((n=T||{})[n.Forwards=0]=\"Forwards\",n[n.Backwards=1]=\"Backwards\",n);function D(e,t){let r=(0,w.useRef)([]),n=(0,A.z)(e);(0,w.useEffect)(()=>{let e=[...r.current];for(let[i,s]of t.entries())if(r.current[i]!==s){let i=n(t,e);return r.current=t,i}},[n,...t])}var L=r(3600),j=((i=j||{})[i.None=1]=\"None\",i[i.Focusable=2]=\"Focusable\",i[i.Hidden=4]=\"Hidden\",i);let B=(0,L.yV)(function(e,t){var r;let{features:n=1,...i}=e,s={ref:t,\"aria-hidden\":(2&n)==2||(null!=(r=i[\"aria-hidden\"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:\"fixed\",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\",...(4&n)==4&&(2&n)!=2&&{display:\"none\"}}};return(0,L.sY)({ourProps:s,theirProps:i,slot:{},defaultTag:\"div\",name:\"Hidden\"})}),F=[];!function(e){function t(){\"loading\"!==document.readyState&&(e(),document.removeEventListener(\"DOMContentLoaded\",t))}\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&(document.addEventListener(\"DOMContentLoaded\",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&F[0]!==e.target&&(F.unshift(e.target),(F=F.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener(\"click\",e,{capture:!0}),window.addEventListener(\"mousedown\",e,{capture:!0}),window.addEventListener(\"focus\",e,{capture:!0}),document.body.addEventListener(\"click\",e,{capture:!0}),document.body.addEventListener(\"mousedown\",e,{capture:!0}),document.body.addEventListener(\"focus\",e,{capture:!0})});var U=r(5583);let z=[\"[contentEditable=true]\",\"[tabindex]\",\"a[href]\",\"area[href]\",\"button:not([disabled])\",\"iframe\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\"].map(e=>\"\".concat(e,\":not([tabindex='-1'])\")).join(\",\");var q=((s=q||{})[s.First=1]=\"First\",s[s.Previous=2]=\"Previous\",s[s.Next=4]=\"Next\",s[s.Last=8]=\"Last\",s[s.WrapAround=16]=\"WrapAround\",s[s.NoScroll=32]=\"NoScroll\",s),H=((o=H||{})[o.Error=0]=\"Error\",o[o.Overflow=1]=\"Overflow\",o[o.Success=2]=\"Success\",o[o.Underflow=3]=\"Underflow\",o),G=((a=G||{})[a.Previous=-1]=\"Previous\",a[a.Next=1]=\"Next\",a),V=((l=V||{})[l.Strict=0]=\"Strict\",l[l.Loose=1]=\"Loose\",l),W=((u=W||{})[u.Keyboard=0]=\"Keyboard\",u[u.Mouse=1]=\"Mouse\",u);function K(e){null==e||e.focus({preventScroll:!0})}function Y(e,t){var r,n,i;let{sorted:s=!0,relativeTo:o=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?s?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let s=n.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(z)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.includes(e))),o=null!=o?o:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error(\"Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last\")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(o))-1;if(4&t)return Math.max(0,u.indexOf(o))+1;if(8&t)return u.length-1;throw Error(\"Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last\")})(),h=32&t?{preventScroll:!0}:{},f=0,p=u.length,g;do{if(f>=p||f+p<=0)return 0;let e=d+f;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(g=u[e])||g.focus(h),f+=c}while(g!==l.activeElement);return 6&t&&null!=(i=null==(n=null==(r=g)?void 0:r.matches)?void 0:n.call(r,\"textarea,input\"))&&i&&g.select(),2}function Z(e){if(!e)return new Set;if(\"function\"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&(document.addEventListener(\"keydown\",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=\"\")},!0),document.addEventListener(\"click\",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible=\"\")},!0));var J=((c=J||{})[c.None=1]=\"None\",c[c.InitialFocus=2]=\"InitialFocus\",c[c.TabLock=4]=\"TabLock\",c[c.FocusLock=8]=\"FocusLock\",c[c.RestoreFocus=16]=\"RestoreFocus\",c[c.All=30]=\"All\",c);let Q=Object.assign((0,L.yV)(function(e,t){let r,n=(0,w.useRef)(null),i=(0,M.T)(n,t),{initialFocus:s,containers:o,features:a=30,...l}=e;(0,N.H)()||(a=1);let u=O(n);!function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,w.useRef)(F.slice());return D((e,r)=>{let[n]=e,[i]=r;!0===i&&!1===n&&(0,$.Y)(()=>{t.current.splice(0)}),!1===i&&!0===n&&(t.current=F.slice())},[e,F,t]),(0,A.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);D(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&K(n())},[t]),C(()=>{t&&K(n())})}({ownerDocument:u},!!(16&a));let c=function(e,t){let{ownerDocument:r,container:n,initialFocus:i}=e,s=(0,w.useRef)(null),o=(0,S.t)();return D(()=>{if(!t)return;let e=n.current;e&&(0,$.Y)(()=>{if(!o.current)return;let t=null==r?void 0:r.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===t){s.current=t;return}}else if(e.contains(t)){s.current=t;return}null!=i&&i.current?K(i.current):Y(e,q.First)===H.Error&&console.warn(\"There are no focusable elements inside the <FocusTrap />\"),s.current=null==r?void 0:r.activeElement})},[t]),s}({ownerDocument:u,container:n,initialFocus:s},!!(2&a));!function(e,t){let{ownerDocument:r,container:n,containers:i,previousActiveElement:s}=e,o=(0,S.t)();k(null==r?void 0:r.defaultView,\"focus\",e=>{if(!t||!o.current)return;let r=Z(i);n.current instanceof HTMLElement&&r.add(n.current);let a=s.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?X(r,l)?(s.current=l,K(l)):(e.preventDefault(),e.stopPropagation(),K(a)):K(s.current)},!0)}({ownerDocument:u,container:n,containers:o,previousActiveElement:c},!!(8&a));let d=(r=(0,w.useRef)(0),R(\"keydown\",e=>{\"Tab\"===e.key&&(r.current=e.shiftKey?1:0)},!0),r),h=(0,A.z)(e=>{let t=n.current;t&&(0,U.E)(d.current,{[T.Forwards]:()=>{Y(t,q.First,{skipElements:[e.relatedTarget]})},[T.Backwards]:()=>{Y(t,q.Last,{skipElements:[e.relatedTarget]})}})}),f=(0,E.G)(),p=(0,w.useRef)(!1);return w.createElement(w.Fragment,null,!!(4&a)&&w.createElement(B,{as:\"button\",type:\"button\",\"data-headlessui-focus-guard\":!0,onFocus:h,features:j.Focusable}),(0,L.sY)({ourProps:{ref:i,onKeyDown(e){\"Tab\"==e.key&&(p.current=!0,f.requestAnimationFrame(()=>{p.current=!1}))},onBlur(e){let t=Z(o);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&\"true\"!==r.dataset.headlessuiFocusGuard&&(X(t,r)||(p.current?Y(n.current,(0,U.E)(d.current,{[T.Forwards]:()=>q.Next,[T.Backwards]:()=>q.Previous})|q.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&K(e.target)))}},theirProps:l,defaultTag:\"div\",name:\"FocusTrap\"}),!!(4&a)&&w.createElement(B,{as:\"button\",type:\"button\",\"data-headlessui-focus-guard\":!0,onFocus:h,features:j.Focusable}))}),{features:J});function X(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var ee=r(54887),et=r(61463);let er=(0,w.createContext)(!1);function en(e){return w.createElement(er.Provider,{value:e.force},e.children)}let ei=w.Fragment,es=w.Fragment,eo=(0,w.createContext)(null),ea=(0,w.createContext)(null),el=Object.assign((0,L.yV)(function(e,t){let r=(0,w.useRef)(null),n=(0,M.T)((0,M.h)(e=>{r.current=e}),t),i=O(r),s=function(e){let t=(0,w.useContext)(er),r=(0,w.useContext)(eo),n=O(e),[i,s]=(0,w.useState)(()=>{if(!t&&null!==r||P.O.isServer)return null;let e=null==n?void 0:n.getElementById(\"headlessui-portal-root\");if(e)return e;if(null===n)return null;let i=n.createElement(\"div\");return i.setAttribute(\"id\",\"headlessui-portal-root\"),n.body.appendChild(i)});return(0,w.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,w.useEffect)(()=>{t||null!==r&&s(r.current)},[r,s,t]),i}(r),[o]=(0,w.useState)(()=>{var e;return P.O.isServer?null:null!=(e=null==i?void 0:i.createElement(\"div\"))?e:null}),a=(0,w.useContext)(ea),l=(0,N.H)();return(0,et.e)(()=>{!s||!o||s.contains(o)||(o.setAttribute(\"data-headlessui-portal\",\"\"),s.appendChild(o))},[s,o]),(0,et.e)(()=>{if(o&&a)return a.register(o)},[a,o]),C(()=>{var e;s&&o&&(o instanceof Node&&s.contains(o)&&s.removeChild(o),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}),l&&s&&o?(0,ee.createPortal)((0,L.sY)({ourProps:{ref:n},theirProps:e,defaultTag:ei,name:\"Portal\"}),o):null}),{Group:(0,L.yV)(function(e,t){let{target:r,...n}=e,i={ref:(0,M.T)(t)};return w.createElement(eo.Provider,{value:r},(0,L.sY)({ourProps:i,theirProps:n,defaultTag:es,name:\"Popover.Group\"}))})}),{useState:eu,useEffect:ec,useLayoutEffect:ed,useDebugValue:eh}=_;\"undefined\"!=typeof window&&void 0!==window.document&&window.document.createElement;let ef=_.useSyncExternalStore;var ep=r(70777);function eg(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}let em=(y=()=>new Map,b={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,ep.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:r,d:n,meta:i}=e,s={doc:r,d:n,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(i)},o=[eg()?{before(e){let{doc:t,d:r,meta:n}=e;function i(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}r.microTask(()=>{var e;if(\"auto\"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,ep.k)();e.style(t.documentElement,\"scrollBehavior\",\"auto\"),r.add(()=>r.microTask(()=>e.dispose()))}let n=null!=(e=window.scrollY)?e:window.pageYOffset,s=null;r.addEventListener(t,\"click\",e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest(\"a\");if(!r)return;let{hash:n}=new URL(r.href),o=t.querySelector(n);o&&!i(o)&&(s=o)}catch(e){}},!0),r.addEventListener(t,\"touchstart\",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;r.style(t,\"overscrollBehavior\",\"contain\")}else r.style(e.target,\"touchAction\",\"none\")}}),r.addEventListener(t,\"touchmove\",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&\"\"!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;\"\"===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),r.add(()=>{var e;n!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,n),s&&s.isConnected&&(s.scrollIntoView({block:\"nearest\"}),s=null)})})}}:{},{before(e){var r;let{doc:n}=e,i=n.documentElement;t=(null!=(r=n.defaultView)?r:window).innerWidth-i.clientWidth},after(e){let{doc:r,d:n}=e,i=r.documentElement,s=i.clientWidth-i.offsetWidth,o=t-s;n.style(i,\"paddingRight\",\"\".concat(o,\"px\"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,\"overflow\",\"hidden\")}}];o.forEach(e=>{let{before:t}=e;return null==t?void 0:t(s)}),o.forEach(e=>{let{after:t}=e;return null==t?void 0:t(s)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},d=y(),h=new Set,{getSnapshot:()=>d,subscribe:e=>(h.add(e),()=>h.delete(e)),dispatch(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=b[e].call(d,...r);i&&(d=i,h.forEach(e=>e()))}});em.subscribe(()=>{let e=em.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e=\"hidden\"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&em.dispatch(r.count>0?\"SCROLL_PREVENT\":\"SCROLL_ALLOW\",r),0===r.count&&em.dispatch(\"TEARDOWN\",r)}});let ey=null!=(v=w.useId)?v:function(){let e=(0,N.H)(),[t,r]=w.useState(e?()=>P.O.nextId():null);return(0,et.e)(()=>{null===t&&r(P.O.nextId())},[t]),null!=t?\"\"+t:void 0},eb=new Map,ev=new Map;function ew(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,et.e)(()=>{var r;if(!t)return;let n=\"function\"==typeof e?e():e.current;if(!n)return;let i=null!=(r=ev.get(n))?r:0;return ev.set(n,i+1),0!==i||(eb.set(n,{\"aria-hidden\":n.getAttribute(\"aria-hidden\"),inert:n.inert}),n.setAttribute(\"aria-hidden\",\"true\"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ev.get(n))?e:1;if(1===t?ev.delete(n):ev.set(n,t-1),1!==t)return;let r=eb.get(n);r&&(null===r[\"aria-hidden\"]?n.removeAttribute(\"aria-hidden\"):n.setAttribute(\"aria-hidden\",r[\"aria-hidden\"]),n.inert=r.inert,eb.delete(n))}},[e,t])}function e_(e,t,r){let n=(0,x.E)(t);(0,w.useEffect)(()=>{function t(e){n.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var eE=r(53509);let eA=(0,w.createContext)(()=>{});eA.displayName=\"StackContext\";var ex=((f=ex||{})[f.Add=0]=\"Add\",f[f.Remove=1]=\"Remove\",f);function ek(e){let{children:t,onUpdate:r,type:n,element:i,enabled:s}=e,o=(0,w.useContext)(eA),a=(0,A.z)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),o(...t)});return(0,et.e)(()=>{let e=void 0===s||!0===s;return e&&a(0,n,i),()=>{e&&a(1,n,i)}},[a,n,i,s]),w.createElement(eA.Provider,{value:a},t)}let eS=(0,w.createContext)(null),e$=Object.assign((0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-description-\".concat(r),...i}=e,s=function e(){let t=(0,w.useContext)(eS);if(null===t){let t=Error(\"You used a <Description /> component, but it is not inside a relevant parent.\");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),o=(0,M.T)(t);(0,et.e)(()=>s.register(n),[n,s.register]);let a={ref:o,...s.props,id:n};return(0,L.sY)({ourProps:a,theirProps:i,slot:s.slot||{},defaultTag:\"p\",name:s.name||\"Description\"})}),{});var eC=((p=eC||{}).Space=\" \",p.Enter=\"Enter\",p.Escape=\"Escape\",p.Backspace=\"Backspace\",p.Delete=\"Delete\",p.ArrowLeft=\"ArrowLeft\",p.ArrowUp=\"ArrowUp\",p.ArrowRight=\"ArrowRight\",p.ArrowDown=\"ArrowDown\",p.Home=\"Home\",p.End=\"End\",p.PageUp=\"PageUp\",p.PageDown=\"PageDown\",p.Tab=\"Tab\",p),eP=((g=eP||{})[g.Open=0]=\"Open\",g[g.Closed=1]=\"Closed\",g),eI=((m=eI||{})[m.SetTitleId=0]=\"SetTitleId\",m);let eO={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eN=(0,w.createContext)(null);function eM(e){let t=(0,w.useContext)(eN);if(null===t){let t=Error(\"<\".concat(e,\" /> is missing a parent <Dialog /> component.\"));throw Error.captureStackTrace&&Error.captureStackTrace(t,eM),t}return t}function eR(e,t){return(0,U.E)(t.type,eO,e,t)}eN.displayName=\"DialogContext\";let eT=L.AN.RenderStrategy|L.AN.Static,eD=Object.assign((0,L.yV)(function(e,t){let r,n,i,s,o,a=ey(),{id:l=\"headlessui-dialog-\".concat(a),open:u,onClose:c,initialFocus:d,role:h=\"dialog\",__demoMode:f=!1,...p}=e,[g,m]=(0,w.useState)(0),y=(0,w.useRef)(!1);h=\"dialog\"===h||\"alertdialog\"===h?h:(y.current||(y.current=!0,console.warn(\"Invalid role [\".concat(h,\"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead.\"))),\"dialog\");let b=(0,eE.oJ)();void 0===u&&null!==b&&(u=(b&eE.ZM.Open)===eE.ZM.Open);let v=(0,w.useRef)(null),_=(0,M.T)(v,t),E=O(v),x=e.hasOwnProperty(\"open\")||null!==b,S=e.hasOwnProperty(\"onClose\");if(!x&&!S)throw Error(\"You have to provide an `open` and an `onClose` prop to the `Dialog` component.\");if(!x)throw Error(\"You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.\");if(!S)throw Error(\"You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.\");if(\"boolean\"!=typeof u)throw Error(\"You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: \".concat(u));if(\"function\"!=typeof c)throw Error(\"You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: \".concat(c));let $=u?0:1,[C,P]=(0,w.useReducer)(eR,{titleId:null,descriptionId:null,panelRef:(0,w.createRef)()}),T=(0,A.z)(()=>c(!1)),D=(0,A.z)(e=>P({type:0,id:e})),F=!!(0,N.H)()&&!f&&0===$,q=g>1,H=null!==(0,w.useContext)(eN),[G,W]=(r=(0,w.useContext)(ea),n=(0,w.useRef)([]),i=(0,A.z)(e=>(n.current.push(e),r&&r.register(e),()=>s(e))),s=(0,A.z)(e=>{let t=n.current.indexOf(e);-1!==t&&n.current.splice(t,1),r&&r.unregister(e)}),o=(0,w.useMemo)(()=>({register:i,unregister:s,portals:n}),[i,s,n]),[n,(0,w.useMemo)(()=>function(e){let{children:t}=e;return w.createElement(ea.Provider,{value:o},t)},[o])]),{resolveContainers:K,mainTreeNodeRef:Y,MainTreeNode:Z}=function(){var e;let{defaultContainers:t=[],portals:r,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,w.useRef)(null!=(e=null==n?void 0:n.current)?e:null),s=O(i),o=(0,A.z)(()=>{var e,n,o;let a=[];for(let e of t)null!==e&&(e instanceof HTMLElement?a.push(e):\"current\"in e&&e.current instanceof HTMLElement&&a.push(e.current));if(null!=r&&r.current)for(let e of r.current)a.push(e);for(let t of null!=(e=null==s?void 0:s.querySelectorAll(\"html > *, body > *\"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&\"headlessui-portal-root\"!==t.id&&(t.contains(i.current)||t.contains(null==(o=null==(n=i.current)?void 0:n.getRootNode())?void 0:o.host)||a.some(e=>t.contains(e))||a.push(t));return a});return{resolveContainers:o,contains:(0,A.z)(e=>o().some(t=>t.contains(e))),mainTreeNodeRef:i,MainTreeNode:(0,w.useMemo)(()=>function(){return null!=n?null:w.createElement(B,{features:j.Hidden,ref:i})},[i,n])}}({portals:G,defaultContainers:[{get current(){var J;return null!=(J=C.panelRef.current)?J:v.current}}]}),X=null!==b&&(b&eE.ZM.Closing)===eE.ZM.Closing,ee=!H&&!X&&F;ew((0,w.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==E?void 0:E.querySelectorAll(\"body > *\"))?e:[]).find(e=>\"headlessui-portal-root\"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),ee);let er=!!q||F;ew((0,w.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==E?void 0:E.querySelectorAll(\"[data-headlessui-portal]\"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),er),function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,w.useRef)(!1);function i(r,i){if(!n.current||r.defaultPrevented)return;let s=i(r);if(null!==s&&s.getRootNode().contains(s)&&s.isConnected){for(let t of function e(t){return\"function\"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(s)||r.composed&&r.composedPath().includes(e))return}return!function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=I(e))?void 0:t.body)&&(0,U.E)(r,{0:()=>e.matches(z),1(){let t=e;for(;null!==t;){if(t.matches(z))return!0;t=t.parentElement}return!1}})}(s,V.Loose)&&-1!==s.tabIndex&&r.preventDefault(),t(r,s)}}(0,w.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);let s=(0,w.useRef)(null);e_(\"pointerdown\",e=>{var t,r;n.current&&(s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),e_(\"mousedown\",e=>{var t,r;n.current&&(s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),e_(\"click\",e=>{eg()||/Android/gi.test(window.navigator.userAgent)||s.current&&(i(e,()=>s.current),s.current=null)},!0),e_(\"touchend\",e=>i(e,()=>e.target instanceof HTMLElement?e.target:null),!0),R(\"blur\",e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}(K,e=>{e.preventDefault(),T()},!(!F||q));let ei=!(q||0!==$);k(null==E?void 0:E.defaultView,\"keydown\",e=>{ei&&(e.defaultPrevented||e.key===eC.Escape&&(e.preventDefault(),e.stopPropagation(),T()))}),function(e,t){var r;let n,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],s]}},n=ef(em.subscribe,em.getSnapshot,em.getSnapshot),(i=e?n.get(e):void 0)&&i.count,(0,et.e)(()=>{if(!(!e||!t))return em.dispatch(\"PUSH\",e,r),()=>em.dispatch(\"POP\",e,r)},[t,e])}(E,!(X||0!==$||H),K),(0,w.useEffect)(()=>{if(0!==$||!v.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&T()}});return e.observe(v.current),()=>e.disconnect()},[$,v,T]);let[es,eo]=function(){let[e,t]=(0,w.useState)([]);return[e.length>0?e.join(\" \"):void 0,(0,w.useMemo)(()=>function(e){let r=(0,A.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,w.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return w.createElement(eS.Provider,{value:n},e.children)},[t])]}(),eu=(0,w.useMemo)(()=>[{dialogState:$,close:T,setTitleId:D},C],[$,C,T,D]),ec=(0,w.useMemo)(()=>({open:0===$}),[$]),ed={ref:_,id:l,role:h,\"aria-modal\":0===$||void 0,\"aria-labelledby\":C.titleId,\"aria-describedby\":es};return w.createElement(ek,{type:\"Dialog\",enabled:0===$,element:v,onUpdate:(0,A.z)((e,t)=>{\"Dialog\"===t&&(0,U.E)(e,{[ex.Add]:()=>m(e=>e+1),[ex.Remove]:()=>m(e=>e-1)})})},w.createElement(en,{force:!0},w.createElement(el,null,w.createElement(eN.Provider,{value:eu},w.createElement(el.Group,{target:v},w.createElement(en,{force:!1},w.createElement(eo,{slot:ec,name:\"Dialog.Description\"},w.createElement(Q,{initialFocus:d,containers:K,features:F?(0,U.E)(q?\"parent\":\"leaf\",{parent:Q.features.RestoreFocus,leaf:Q.features.All&~Q.features.FocusLock}):Q.features.None},w.createElement(W,null,(0,L.sY)({ourProps:ed,theirProps:p,slot:ec,defaultTag:\"div\",features:eT,visible:0===$,name:\"Dialog\"}))))))))),w.createElement(Z,null))}),{Backdrop:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-backdrop-\".concat(r),...i}=e,[{dialogState:s},o]=eM(\"Dialog.Backdrop\"),a=(0,M.T)(t);(0,w.useEffect)(()=>{if(null===o.panelRef.current)throw Error(\"A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.\")},[o.panelRef]);let l=(0,w.useMemo)(()=>({open:0===s}),[s]);return w.createElement(en,{force:!0},w.createElement(el,null,(0,L.sY)({ourProps:{ref:a,id:n,\"aria-hidden\":!0},theirProps:i,slot:l,defaultTag:\"div\",name:\"Dialog.Backdrop\"})))}),Panel:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-panel-\".concat(r),...i}=e,[{dialogState:s},o]=eM(\"Dialog.Panel\"),a=(0,M.T)(t,o.panelRef),l=(0,w.useMemo)(()=>({open:0===s}),[s]),u=(0,A.z)(e=>{e.stopPropagation()});return(0,L.sY)({ourProps:{ref:a,id:n,onClick:u},theirProps:i,slot:l,defaultTag:\"div\",name:\"Dialog.Panel\"})}),Overlay:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-overlay-\".concat(r),...i}=e,[{dialogState:s,close:o}]=eM(\"Dialog.Overlay\"),a=(0,M.T)(t),l=(0,A.z)(e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute(\"disabled\"))===\"\";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}}),u=(0,w.useMemo)(()=>({open:0===s}),[s]);return(0,L.sY)({ourProps:{ref:a,id:n,\"aria-hidden\":!0,onClick:l},theirProps:i,slot:u,defaultTag:\"div\",name:\"Dialog.Overlay\"})}),Title:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-title-\".concat(r),...i}=e,[{dialogState:s,setTitleId:o}]=eM(\"Dialog.Title\"),a=(0,M.T)(t);(0,w.useEffect)(()=>(o(n),()=>o(null)),[n,o]);let l=(0,w.useMemo)(()=>({open:0===s}),[s]);return(0,L.sY)({ourProps:{ref:a,id:n},theirProps:i,slot:l,defaultTag:\"h2\",name:\"Dialog.Title\"})}),Description:e$})},59226:function(e,t,r){\"use strict\";let n;r.d(t,{u:function(){return N}});var i=r(2265),s=r(99299),o=r(6584),a=r(26400),l=r(61463),u=r(88703),c=r(33856),d=r(41469),h=r(70777),f=r(5583);function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function g(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var m=r(53509),y=r(12585),b=r(3600);function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";return e.split(/\\s+/).filter(e=>e.length>1)}let w=(0,i.createContext)(null);w.displayName=\"TransitionContext\";var _=((n=_||{}).Visible=\"visible\",n.Hidden=\"hidden\",n);let E=(0,i.createContext)(null);function A(e){return\"children\"in e?A(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return\"visible\"===t}).length>0}function x(e,t){let r=(0,u.E)(e),n=(0,i.useRef)([]),l=(0,a.t)(),c=(0,s.G)(),d=(0,o.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.l4.Hidden,i=n.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==i&&((0,f.E)(t,{[b.l4.Unmount](){n.current.splice(i,1)},[b.l4.Hidden](){n.current[i].state=\"hidden\"}}),c.microTask(()=>{var e;!A(n)&&l.current&&(null==(e=r.current)||e.call(r))}))}),h=(0,o.z)(e=>{let t=n.current.find(t=>{let{el:r}=t;return r===e});return t?\"visible\"!==t.state&&(t.state=\"visible\"):n.current.push({el:e,state:\"visible\"}),()=>d(e,b.l4.Unmount)}),p=(0,i.useRef)([]),g=(0,i.useRef)(Promise.resolve()),m=(0,i.useRef)({enter:[],leave:[],idle:[]}),y=(0,o.z)((e,r,n)=>{p.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{p.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(m.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())})]),\"enter\"===r?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),v=(0,o.z)((e,t,r)=>{Promise.all(m.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=p.current.shift())||e()}).then(()=>r(t))});return(0,i.useMemo)(()=>({children:n,register:h,unregister:d,onStart:y,onStop:v,wait:g,chains:m}),[h,d,n,y,v,m,g])}function k(){}E.displayName=\"NestingContext\";let S=[\"beforeEnter\",\"afterEnter\",\"beforeLeave\",\"afterLeave\"];function $(e){var t;let r={};for(let n of S)r[n]=null!=(t=e[n])?t:k;return r}let C=b.AN.RenderStrategy,P=(0,b.yV)(function(e,t){let{show:r,appear:n=!1,unmount:s=!0,...a}=e,u=(0,i.useRef)(null),h=(0,d.T)(u,t);(0,c.H)();let f=(0,m.oJ)();if(void 0===r&&null!==f&&(r=(f&m.ZM.Open)===m.ZM.Open),![!0,!1].includes(r))throw Error(\"A <Transition /> is used but it is missing a `show={true | false}` prop.\");let[p,g]=(0,i.useState)(r?\"visible\":\"hidden\"),y=x(()=>{g(\"hidden\")}),[v,_]=(0,i.useState)(!0),k=(0,i.useRef)([r]);(0,l.e)(()=>{!1!==v&&k.current[k.current.length-1]!==r&&(k.current.push(r),_(!1))},[k,r]);let S=(0,i.useMemo)(()=>({show:r,appear:n,initial:v}),[r,n,v]);(0,i.useEffect)(()=>{if(r)g(\"visible\");else if(A(y)){let e=u.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g(\"hidden\")}else g(\"hidden\")},[r,y]);let $={unmount:s},P=(0,o.z)(()=>{var t;v&&_(!1),null==(t=e.beforeEnter)||t.call(e)}),O=(0,o.z)(()=>{var t;v&&_(!1),null==(t=e.beforeLeave)||t.call(e)});return i.createElement(E.Provider,{value:y},i.createElement(w.Provider,{value:S},(0,b.sY)({ourProps:{...$,as:i.Fragment,children:i.createElement(I,{ref:h,...$,...a,beforeEnter:P,beforeLeave:O})},theirProps:{},defaultTag:i.Fragment,features:C,visible:\"visible\"===p,name:\"Transition\"})))}),I=(0,b.yV)(function(e,t){var r,n,_;let k;let{beforeEnter:S,afterEnter:P,beforeLeave:I,afterLeave:O,enter:N,enterFrom:M,enterTo:R,entered:T,leave:D,leaveFrom:L,leaveTo:j,...B}=e,F=(0,i.useRef)(null),U=(0,d.T)(F,t),z=null==(r=B.unmount)||r?b.l4.Unmount:b.l4.Hidden,{show:q,appear:H,initial:G}=function(){let e=(0,i.useContext)(w);if(null===e)throw Error(\"A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.\");return e}(),[V,W]=(0,i.useState)(q?\"visible\":\"hidden\"),K=function(){let e=(0,i.useContext)(E);if(null===e)throw Error(\"A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.\");return e}(),{register:Y,unregister:Z}=K;(0,i.useEffect)(()=>Y(F),[Y,F]),(0,i.useEffect)(()=>{if(z===b.l4.Hidden&&F.current){if(q&&\"visible\"!==V){W(\"visible\");return}return(0,f.E)(V,{hidden:()=>Z(F),visible:()=>Y(F)})}},[V,F,Y,Z,q,z]);let J=(0,u.E)({base:v(B.className),enter:v(N),enterFrom:v(M),enterTo:v(R),entered:v(T),leave:v(D),leaveFrom:v(L),leaveTo:v(j)}),Q=(_={beforeEnter:S,afterEnter:P,beforeLeave:I,afterLeave:O},k=(0,i.useRef)($(_)),(0,i.useEffect)(()=>{k.current=$(_)},[_]),k),X=(0,c.H)();(0,i.useEffect)(()=>{if(X&&\"visible\"===V&&null===F.current)throw Error(\"Did you forget to passthrough the `ref` to the actual DOM node?\")},[F,V,X]);let ee=H&&q&&G,et=X&&(!G||H)?q?\"enter\":\"leave\":\"idle\",er=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,i.useState)(e),n=(0,a.t)(),s=(0,i.useCallback)(e=>{n.current&&r(t=>t|e)},[t,n]),o=(0,i.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:s,hasFlag:o,removeFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t&~e)},[r,n]),toggleFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t^e)},[r])}}(0),en=(0,o.z)(e=>(0,f.E)(e,{enter:()=>{er.addFlag(m.ZM.Opening),Q.current.beforeEnter()},leave:()=>{er.addFlag(m.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),ei=(0,o.z)(e=>(0,f.E)(e,{enter:()=>{er.removeFlag(m.ZM.Opening),Q.current.afterEnter()},leave:()=>{er.removeFlag(m.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),es=x(()=>{W(\"hidden\"),Z(F)},K),eo=(0,i.useRef)(!1);!function(e){let{immediate:t,container:r,direction:n,classes:i,onStart:o,onStop:c}=e,d=(0,a.t)(),m=(0,s.G)(),y=(0,u.E)(n);(0,l.e)(()=>{t&&(y.current=\"enter\")},[t]),(0,l.e)(()=>{let e=(0,h.k)();m.add(e.dispose);let t=r.current;if(t&&\"idle\"!==y.current&&d.current){var n,s,a;let r,l,u,d,m,b,v;return e.dispose(),o.current(y.current),e.add((n=i.current,s=\"enter\"===y.current,a=()=>{e.dispose(),c.current(y.current)},l=s?\"enter\":\"leave\",u=(0,h.k)(),d=void 0!==a?(r={called:!1},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!r.called)return r.called=!0,a(...t)}):()=>{},\"enter\"===l&&(t.removeAttribute(\"hidden\"),t.style.display=\"\"),m=(0,f.E)(l,{enter:()=>n.enter,leave:()=>n.leave}),b=(0,f.E)(l,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),v=(0,f.E)(l,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom}),g(t,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),p(t,...n.base,...m,...v),u.nextFrame(()=>{g(t,...n.base,...m,...v),p(t,...n.base,...m,...b),function(e,t){let r=(0,h.k)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[s,o]=[n,i].map(e=>{let[t=0]=e.split(\",\").filter(Boolean).map(e=>e.includes(\"ms\")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),a=s+o;if(0!==a){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},a),r.addEventListener(e,\"transitionrun\",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,\"transitionend\",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(t,()=>(g(t,...n.base,...m),p(t,...n.base,...n.entered),d()))}),u.dispose)),e.dispose}},[n])}({immediate:ee,container:F,classes:J,direction:et,onStart:(0,u.E)(e=>{eo.current=!0,es.onStart(F,e,en)}),onStop:(0,u.E)(e=>{eo.current=!1,es.onStop(F,e,ei),\"leave\"!==e||A(es)||(W(\"hidden\"),Z(F))})});let ea=B;return ee?ea={...ea,className:(0,y.A)(B.className,...J.current.enter,...J.current.enterFrom)}:eo.current&&(ea.className=(0,y.A)(B.className,null==(n=F.current)?void 0:n.className),\"\"===ea.className&&delete ea.className),i.createElement(E.Provider,{value:es},i.createElement(m.up,{value:(0,f.E)(V,{visible:m.ZM.Open,hidden:m.ZM.Closed})|er.flags},(0,b.sY)({ourProps:{ref:U},theirProps:ea,defaultTag:\"div\",features:C,visible:\"visible\"===V,name:\"Transition.Child\"})))}),O=(0,b.yV)(function(e,t){let r=null!==(0,i.useContext)(w),n=null!==(0,m.oJ)();return i.createElement(i.Fragment,null,!r&&n?i.createElement(P,{ref:t,...e}):i.createElement(I,{ref:t,...e}))}),N=Object.assign(P,{Child:O,Root:P})},99299:function(e,t,r){\"use strict\";r.d(t,{G:function(){return s}});var n=r(2265),i=r(70777);function s(){let[e]=(0,n.useState)(i.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},6584:function(e,t,r){\"use strict\";r.d(t,{z:function(){return s}});var n=r(2265),i=r(88703);let s=function(e){let t=(0,i.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},26400:function(e,t,r){\"use strict\";r.d(t,{t:function(){return s}});var n=r(2265),i=r(61463);function s(){let e=(0,n.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},61463:function(e,t,r){\"use strict\";r.d(t,{e:function(){return s}});var n=r(2265),i=r(54462);let s=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},88703:function(e,t,r){\"use strict\";r.d(t,{E:function(){return s}});var n=r(2265),i=r(61463);function s(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},33856:function(e,t,r){\"use strict\";r.d(t,{H:function(){return o}});var n,i=r(2265),s=r(54462);function o(){let e;let t=(e=\"undefined\"==typeof document,(0,(n||(n=r.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,a]=i.useState(s.O.isHandoffComplete);return o&&!1===s.O.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==o&&a(!0)},[o]),i.useEffect(()=>s.O.handoff(),[]),!t&&o}},41469:function(e,t,r){\"use strict\";r.d(t,{T:function(){return a},h:function(){return o}});var n=r(2265),i=r(6584);let s=Symbol();function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[s]:t})}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=(0,n.useRef)(t);(0,n.useEffect)(()=>{o.current=t},[t]);let a=(0,i.z)(e=>{for(let t of o.current)null!=t&&(\"function\"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[s]))?void 0:a}},53509:function(e,t,r){\"use strict\";let n;r.d(t,{ZM:function(){return o},oJ:function(){return a},up:function(){return l}});var i=r(2265);let s=(0,i.createContext)(null);s.displayName=\"OpenClosedContext\";var o=((n=o||{})[n.Open=1]=\"Open\",n[n.Closed=2]=\"Closed\",n[n.Closing=4]=\"Closing\",n[n.Opening=8]=\"Opening\",n);function a(){return(0,i.useContext)(s)}function l(e){let{value:t,children:r}=e;return i.createElement(s.Provider,{value:t},r)}},12585:function(e,t,r){\"use strict\";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>\"string\"==typeof e?e.split(\" \"):[]))).filter(Boolean).join(\" \")}r.d(t,{A:function(){return n}})},70777:function(e,t,r){\"use strict\";r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let s={current:!0};return(0,n.Y)(()=>{s.current&&t[0]()}),r.add(()=>{s.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(28043)},54462:function(e,t,r){\"use strict\";r.d(t,{O:function(){return a}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t,r)=>(i(e,\"symbol\"!=typeof t?t+\"\":t,r),r);class o{set(e){this.current!==e&&(this.handoffState=\"pending\",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return\"server\"===this.current}get isClient(){return\"client\"===this.current}detect(){return\"undefined\"==typeof window||\"undefined\"==typeof document?\"server\":\"client\"}handoff(){\"pending\"===this.handoffState&&(this.handoffState=\"complete\")}get isHandoffComplete(){return\"complete\"===this.handoffState}constructor(){s(this,\"current\",this.detect()),s(this,\"handoffState\",\"pending\"),s(this,\"currentId\",0)}}let a=new o},5583:function(e,t,r){\"use strict\";function n(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];if(e in t){let r=t[e];return\"function\"==typeof r?r(...i):r}let o=Error('Tried to handle \"'.concat(e,'\" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'\"'.concat(e,'\"')).join(\", \"),\".\"));throw Error.captureStackTrace&&Error.captureStackTrace(o,n),o}r.d(t,{E:function(){return n}})},28043:function(e,t,r){\"use strict\";function n(e){\"function\"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},3600:function(e,t,r){\"use strict\";let n,i;r.d(t,{AN:function(){return l},l4:function(){return u},sY:function(){return c},yV:function(){return p}});var s=r(2265),o=r(12585),a=r(5583),l=((n=l||{})[n.None=0]=\"None\",n[n.RenderStrategy=1]=\"RenderStrategy\",n[n.Static=2]=\"Static\",n),u=((i=u||{})[i.Unmount=0]=\"Unmount\",i[i.Hidden=1]=\"Hidden\",i);function c(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:s,visible:o=!0,name:l,mergeRefs:u}=e;u=null!=u?u:h;let c=f(r,t);if(o)return d(c,n,i,l,u);let p=null!=s?s:0;if(2&p){let{static:e=!1,...t}=c;if(e)return d(t,n,i,l,u)}if(1&p){let{unmount:e=!0,...t}=c;return(0,a.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:\"none\"}},n,i,l,u)})}return d(c,n,i,l,u)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:a=r,children:l,refName:u=\"ref\",...c}=m(e,[\"unmount\",\"static\"]),d=void 0!==e.ref?{[u]:e.ref}:{},h=\"function\"==typeof l?l(t):l;\"className\"in c&&c.className&&\"function\"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))\"boolean\"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(p[\"data-headlessui-state\"]=r.join(\" \"))}if(a===s.Fragment&&Object.keys(g(c)).length>0){if(!(0,s.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw Error(['Passing props on \"Fragment\"!',\"\",\"The current component <\".concat(n,' /> is rendering a \"Fragment\".'),\"However we need to passthrough the following props:\",Object.keys(c).map(e=>\"  - \".concat(e)).join(\"\\n\"),\"\",\"You can apply a few solutions:\",['Add an `as=\"...\"` prop, to ensure that we render an actual element instead of a \"Fragment\".',\"Render a single element as the child so that we can forward the props onto that element.\"].map(e=>\"  - \".concat(e)).join(\"\\n\")].join(\"\\n\"));let e=h.props,t=\"function\"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,o.A)(null==e?void 0:e.className(...r),c.className)}:(0,o.A)(null==e?void 0:e.className,c.className);return(0,s.cloneElement)(h,Object.assign({},f(h.props,g(m(c,[\"ref\"]))),p,d,{ref:i(h.ref,d.ref)},t?{className:t}:{}))}return(0,s.createElement)(a,Object.assign({},m(c,[\"ref\"]),a!==s.Fragment&&d,a!==s.Fragment&&p),h)}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&(\"function\"==typeof r?r(e):r.current=e)}}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith(\"on\")&&\"function\"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n[\"aria-disabled\"])return Object.assign(n,Object.fromEntries(Object.keys(i).map(e=>[e,void 0])));for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function p(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},39422:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z\",clipRule:\"evenodd\"}))});t.Z=i},76218:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3\"}))});t.Z=i},66514:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18\"}))});t.Z=i},64728:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99\"}))});t.Z=i},22091:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25\"}))});t.Z=i},82238:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25\"}))});t.Z=i},84351:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"}))});t.Z=i},85130:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"}))});t.Z=i},68906:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m19.5 8.25-7.5 7.5-7.5-7.5\"}))});t.Z=i},59808:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m8.25 4.5 7.5 7.5-7.5 7.5\"}))});t.Z=i},87335:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75\"}))});t.Z=i},49601:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z\"}))});t.Z=i},33009:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"}))});t.Z=i},74634:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3\"}))});t.Z=i},57470:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75\"}))});t.Z=i},92009:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75\"}))});t.Z=i},99442:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z\"}))});t.Z=i},11853:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z\"}))});t.Z=i},52985:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z\"}),n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"}))});t.Z=i},47193:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88\"}))});t.Z=i},70882:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33\"}))});t.Z=i},93925:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418\"}))});t.Z=i},13934:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z\"}))});t.Z=i},69992:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z\"}))});t.Z=i},64954:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244\"}))});t.Z=i},63722:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z\"}))});t.Z=i},58900:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125\"}))});t.Z=i},62957:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10\"}))});t.Z=i},47899:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z\"}))});t.Z=i},44011:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z\"}),n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z\"}))});t.Z=i},20402:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z\"}))});t.Z=i},2825:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z\"}))});t.Z=i},25032:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6\"}))});t.Z=i},12560:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0\"}))});t.Z=i},89651:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"}))});t.Z=i},54515:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M21 12a2.25 2.25 0 0 0-2.25-2.25H15a3 3 0 1 1-6 0H5.25A2.25 2.25 0 0 0 3 12m18 0v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 9m18 0V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v3\"}))});t.Z=i},84573:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6 18 18 6M6 6l12 12\"}))});t.Z=i},75752:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M15.97 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H7.5a.75.75 0 0 1 0-1.5h11.69l-3.22-3.22a.75.75 0 0 1 0-1.06Zm-7.94 9a.75.75 0 0 1 0 1.06l-3.22 3.22H16.5a.75.75 0 0 1 0 1.5H4.81l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z\",clipRule:\"evenodd\"}))});t.Z=i},90196:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}))});t.Z=i},14340:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}))});t.Z=i},54621:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{d:\"M10.5 18.75a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Z\"}),n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8.625.75A3.375 3.375 0 0 0 5.25 4.125v15.75a3.375 3.375 0 0 0 3.375 3.375h6.75a3.375 3.375 0 0 0 3.375-3.375V4.125A3.375 3.375 0 0 0 15.375.75h-6.75ZM7.5 4.125C7.5 3.504 8.004 3 8.625 3H9.75v.375c0 .621.504 1.125 1.125 1.125h2.25c.621 0 1.125-.504 1.125-1.125V3h1.125c.621 0 1.125.504 1.125 1.125v15.75c0 .621-.504 1.125-1.125 1.125h-6.75A1.125 1.125 0 0 1 7.5 19.875V4.125Z\",clipRule:\"evenodd\"}))});t.Z=i},79314:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9 1.5H5.625c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5Zm6.61 10.936a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 14.47a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}),n.createElement(\"path\",{d:\"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z\"}))});t.Z=i},27762:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z\",clipRule:\"evenodd\"}))});t.Z=i},75514:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z\",clipRule:\"evenodd\"}))});t.Z=i},29765:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z\",clipRule:\"evenodd\"}))});t.Z=i},24167:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\",clipRule:\"evenodd\"}))});t.Z=i},5620:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12.516 2.17a.75.75 0 0 0-1.032 0 11.209 11.209 0 0 1-7.877 3.08.75.75 0 0 0-.722.515A12.74 12.74 0 0 0 2.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 0 0 .374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 0 0-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08Zm3.094 8.016a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}))});t.Z=i},61652:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z\",clipRule:\"evenodd\"}))});t.Z=i},59956:function(e,t,r){\"use strict\";r.d(t,{Nc:function(){return d}});var n=r(57437),i=r(2265);let s=(0,i.forwardRef)((e,t)=>{let{as:r=\"div\",...i}=e;return(0,n.jsx)(r,{...i,ref:t})}),o=\"cf-turnstile-script\",a=\"onloadTurnstileCallback\",l=e=>!!document.getElementById(e),u=e=>{let{render:t=\"explicit\",onLoadCallbackName:r=a,scriptOptions:{nonce:n=\"\",defer:i=!0,async:s=!0,id:u=\"\",appendTo:c,onError:d,crossOrigin:h=\"\"}={}}=e,f=u||o;if(l(f))return;let p=document.createElement(\"script\");p.id=f,p.src=\"\".concat(\"https://challenges.cloudflare.com/turnstile/v0/api.js\",\"?onload=\").concat(r,\"&render=\").concat(t),document.querySelector('script[src=\"'.concat(p.src,'\"]'))||(p.defer=!!i,p.async=!!s,n&&(p.nonce=n),h&&(p.crossOrigin=h),d&&(p.onerror=d),(\"body\"===c?document.body:document.getElementsByTagName(\"head\")[0]).appendChild(p))},c={normal:{width:300,height:65},compact:{width:130,height:120},invisible:{width:0,height:0,overflow:\"hidden\"},interactionOnly:{width:\"fit-content\",height:\"auto\"}},d=(0,i.forwardRef)((e,t)=>{var r;let{scriptOptions:d,options:h={},siteKey:f,onWidgetLoad:p,onSuccess:g,onExpire:m,onError:y,onBeforeInteractive:b,onAfterInteractive:v,onUnsupported:w,onLoadScript:_,id:E,style:A,as:x=\"div\",injectScript:k=!0,...S}=e,$=null!==(r=h.size)&&void 0!==r?r:\"normal\",[C,P]=(0,i.useState)(\"execute\"===h.execution?c.invisible:\"interaction-only\"===h.appearance?c.interactionOnly:c[$]),I=(0,i.useRef)(null),O=(0,i.useRef)(!1),[N,M]=(0,i.useState)(),[R,T]=(0,i.useState)(!1),D=null!=E?E:\"cf-turnstile\",L=k?(null==d?void 0:d.id)||\"\".concat(o,\"__\").concat(D):(null==d?void 0:d.id)||o,j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,[t,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let t=()=>{l(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}},[e]),t}(L),B=(null==d?void 0:d.onLoadCallbackName)?\"\".concat(d.onLoadCallbackName,\"__\").concat(D):\"\".concat(a,\"__\").concat(D),F=(0,i.useMemo)(()=>{var e,t,r,n,i,s,o;let a;return{sitekey:f,action:h.action,cData:h.cData,callback:g,\"error-callback\":y,\"expired-callback\":m,\"before-interactive-callback\":b,\"after-interactive-callback\":v,\"unsupported-callback\":w,theme:null!==(e=h.theme)&&void 0!==e?e:\"auto\",language:null!==(t=h.language)&&void 0!==t?t:\"auto\",tabindex:h.tabIndex,\"response-field\":h.responseField,\"response-field-name\":h.responseFieldName,size:(\"invisible\"!==$&&(a=$),a),retry:null!==(r=h.retry)&&void 0!==r?r:\"auto\",\"retry-interval\":null!==(n=h.retryInterval)&&void 0!==n?n:8e3,\"refresh-expired\":null!==(i=h.refreshExpired)&&void 0!==i?i:\"auto\",execution:null!==(s=h.execution)&&void 0!==s?s:\"render\",appearance:null!==(o=h.appearance)&&void 0!==o?o:\"always\"}},[f,h,g,y,m,$,b,v,w]),U=(0,i.useMemo)(()=>JSON.stringify(F),[F]);return(0,i.useImperativeHandle)(t,()=>{if(\"undefined\"==typeof window||!j)return;let{turnstile:e}=window;return{getResponse(){if(!(null==e?void 0:e.getResponse)||!N){console.warn(\"Turnstile has not been loaded\");return}return e.getResponse(N)},reset(){if(!(null==e?void 0:e.reset)||!N){console.warn(\"Turnstile has not been loaded\");return}\"execute\"===h.execution&&P(c.invisible);try{e.reset(N)}catch(e){console.warn(\"Failed to reset Turnstile widget \".concat(N),e)}},remove(){if(!(null==e?void 0:e.remove)||!N){console.warn(\"Turnstile has not been loaded\");return}M(\"\"),P(c.invisible),e.remove(N)},render(){if(!(null==e?void 0:e.render)||!I.current||N){console.warn(\"Turnstile has not been loaded or widget already rendered\");return}let t=e.render(I.current,F);return M(t),\"execute\"!==h.execution&&P(c[$]),t},execute(){if(\"execute\"===h.execution){if(!(null==e?void 0:e.execute)||!I.current||!N){console.warn(\"Turnstile has not been loaded or widget has not been rendered\");return}e.execute(I.current,F),P(c[$])}},isExpired(){if(!(null==e?void 0:e.isExpired)||!N){console.warn(\"Turnstile has not been loaded\");return}return e.isExpired(N)}}},[j,N,h.execution,$,F,I]),(0,i.useEffect)(()=>(window[B]=()=>T(!0),()=>{delete window[B]}),[B]),(0,i.useEffect)(()=>{k&&!R&&u({onLoadCallbackName:B,scriptOptions:{...d,id:L}})},[k,R,B,d,L]),(0,i.useEffect)(()=>{j&&!R&&window.turnstile&&T(!0)},[R,j]),(0,i.useEffect)(()=>{if(!f){console.warn(\"sitekey was not provided\");return}j&&I.current&&R&&!O.current&&(M(window.turnstile.render(I.current,F)),O.current=!0)},[j,f,F,O,R]),(0,i.useEffect)(()=>{window.turnstile&&I.current&&N&&(l(N)&&window.turnstile.remove(N),M(window.turnstile.render(I.current,F)),O.current=!0)},[U,f]),(0,i.useEffect)(()=>{if(window.turnstile&&N&&l(N))return null==p||p(N),()=>{window.turnstile.remove(N)}},[N,p]),(0,i.useEffect)(()=>{P(\"execute\"===h.execution?c.invisible:\"interaction-only\"===F.appearance?c.interactionOnly:c[$])},[h.execution,$,F.appearance]),(0,i.useEffect)(()=>{j&&\"function\"==typeof _&&_()},[j,_]),(0,n.jsx)(s,{ref:I,as:x,id:D,style:{...C,...A},...S})});d.displayName=\"Turnstile\"},65376:function(e,t,r){\"use strict\";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array||null!=e&&\"object\"==typeof e&&\"Uint8Array\"===e.constructor.name))throw Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function s(e){if(\"function\"!=typeof e||\"function\"!=typeof e.create)throw Error(\"Hash should be wrapped by utils.wrapConstructor\");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw Error(\"Hash#digest() has already been called\")}function a(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:function(){return o},J8:function(){return a},Rx:function(){return n},aI:function(){return i},vp:function(){return s}})},80543:function(e,t,r){\"use strict\";r.d(t,{J:function(){return h}});var n=r(65376),i=r(68104);let s=(e,t,r)=>e&t^~e&r,o=(e,t,r)=>e&t^e&r^t&r;class a extends i.kb{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:r,blockLen:s}=this,o=(e=(0,i.O0)(e)).length;for(let n=0;n<o;){let a=Math.min(s-this.pos,o-n);if(a===s){let t=(0,i.GL)(e);for(;s<=o-n;n+=s)this.process(t,n);continue}r.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===s&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:s,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(r,0),a=0);for(let e=a;e<s;e++)t[e]=0;!function(e,t,r,n){if(\"function\"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),l=n?4:0,u=n?0:4;e.setUint32(t+l,o,n),e.setUint32(t+u,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);let l=(0,i.GL)(e),u=this.outputLen;if(u%4)throw Error(\"_sha2: outputLen should be aligned to 32bit\");let c=u/4,d=this.get();if(c>d.length)throw Error(\"_sha2: outputLen bigger than state\");for(let e=0;e<c;e++)l.setUint32(4*e,d[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:s,pos:o}=this;return e.length=n,e.pos=o,e.finished=i,e.destroyed=s,n%t&&e.buffer.set(r),e}}let l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class d extends a{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[e,t,r,n,i,s,o,a]}set(e,t,r,n,i,s,o,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,s=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;c[e]=s+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:a,D:u,E:d,F:h,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+s(d,h,f)+l[e]+c[e]|0,g=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+o(r,n,a)|0;p=f,f=h,h=d,d=u+t|0,u=a,a=n,n=r,r=t+g|0}r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,u=u+this.D|0,d=d+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,n,a,u,d,h,f,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let h=(0,i.hE)(()=>new d)},68104:function(e,t,r){\"use strict\";r.d(t,{kb:function(){return f},l1:function(){return c},eV:function(){return h},GL:function(){return o},iA:function(){return l},O6:function(){return g},np:function(){return a},O0:function(){return d},Jq:function(){return s},hE:function(){return p}});let n=\"object\"==typeof globalThis&&\"crypto\"in globalThis?globalThis.crypto:void 0;var i=r(65376);let s=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),a=(e,t)=>e<<32-t|e>>>t,l=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],u=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function c(e){for(let t=0;t<e.length;t++)e[t]=u(e[t])}function d(e){return\"string\"==typeof e&&(e=function(e){if(\"string\"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,i.aI)(e),e}function h(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];(0,i.aI)(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class f{clone(){return this._cloneInto()}}function p(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function g(e=32){if(n&&\"function\"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));throw Error(\"crypto.getRandomValues must be defined\")}},66862:function(e,t,r){\"use strict\";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{xC:function(){return eu},oM:function(){return ep}});var i,s,o=\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\",a=()=>Math.random().toString(36).substring(7).split(\"\").join(\".\"),l={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function u(e){if(\"object\"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(e){return({dispatch:t,getState:r})=>n=>i=>\"function\"==typeof i?i(t,r,e):n(i)}var h=d(),f=Symbol.for(\"immer-nothing\"),p=Symbol.for(\"immer-draftable\"),g=Symbol.for(\"immer-state\");function m(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var y=Object.getPrototypeOf;function b(e){return!!e&&!!e[g]}function v(e){return!!e&&(_(e)||Array.isArray(e)||!!e[p]||!!e.constructor?.[p]||S(e)||$(e))}var w=Object.prototype.constructor.toString();function _(e){if(!e||\"object\"!=typeof e)return!1;let t=y(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,\"constructor\")&&t.constructor;return r===Object||\"function\"==typeof r&&Function.toString.call(r)===w}function E(e,t){0===A(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function A(e){let t=e[g];return t?t.type_:Array.isArray(e)?1:S(e)?2:$(e)?3:0}function x(e,t){return 2===A(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function k(e,t,r){let n=A(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function S(e){return e instanceof Map}function $(e){return e instanceof Set}function C(e){return e.copy_||e.base_}function P(e,t){if(S(e))return new Map(e);if($(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&(\"class_only\"!==t||r)){let t=y(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[g];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i];!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(y(e),t)}}function I(e,t=!1){return N(e)||b(e)||!v(e)||(A(e)>1&&(e.set=e.add=e.clear=e.delete=O),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>I(t,!0))),e}function O(){m(2)}function N(e){return Object.isFrozen(e)}var M={};function R(e){let t=M[e];return t||m(0,e),t}function T(e,t){t&&(R(\"Patches\"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){L(e),e.drafts_.forEach(B),e.drafts_=null}function L(e){e===s&&(s=e.parent_)}function j(e){return s={drafts_:[],parent_:s,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function B(e){let t=e[g];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function F(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[g].modified_&&(D(t),m(4)),v(e)&&(e=U(t,e),t.parent_||q(t,e)),t.patches_&&R(\"Patches\").generateReplacementPatches_(r[g].base_,e,t.patches_,t.inversePatches_)):e=U(t,r,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==f?e:void 0}function U(e,t,r){if(N(t))return t;let n=t[g];if(!n)return E(t,(i,s)=>z(e,n,t,i,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return q(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,s=!1;3===n.type_&&(i=new Set(t),t.clear(),s=!0),E(i,(i,o)=>z(e,n,t,i,o,r,s)),q(e,t,!1),r&&e.patches_&&R(\"Patches\").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function z(e,t,r,n,i,s,o){if(b(i)){let o=U(e,i,s&&t&&3!==t.type_&&!x(t.assigned_,n)?s.concat(n):void 0);if(k(r,n,o),!b(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if(v(i)&&!N(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;U(e,i),(!t||!t.scope_.parent_)&&\"symbol\"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&q(e,i)}}function q(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&I(t,r)}var H={get(e,t){if(t===g)return e;let r=C(e);if(!x(r,t))return function(e,t,r){let n=W(t,r);return n?\"value\"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!v(n)?n:n===V(e.base_,t)?(Y(e),e.copy_[t]=Z(n,e)):n},has:(e,t)=>t in C(e),ownKeys:e=>Reflect.ownKeys(C(e)),set(e,t,r){let n=W(C(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=V(C(e),t),i=n?.[g];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||x(e.base_,t)))return!0;Y(e),K(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==V(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Y(e),K(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=C(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||\"length\"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){m(11)},getPrototypeOf:e=>y(e.base_),setPrototypeOf(){m(12)}},G={};function V(e,t){let r=e[g];return(r?C(r):e)[t]}function W(e,t){if(!(t in e))return;let r=y(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=y(r)}}function K(e){!e.modified_&&(e.modified_=!0,e.parent_&&K(e.parent_))}function Y(e){e.copy_||(e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Z(e,t){let r=S(e)?R(\"MapSet\").proxyMap_(e,t):$(e)?R(\"MapSet\").proxySet_(e,t):function(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:s,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,o=H;r&&(i=[n],o=G);let{revoke:a,proxy:l}=Proxy.revocable(i,o);return n.draft_=l,n.revoke_=a,l}(e,t);return(t?t.scope_:s).drafts_.push(r),r}E(H,(e,t)=>{G[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),G.deleteProperty=function(e,t){return G.set.call(this,e,t,void 0)},G.set=function(e,t,r){return H.set.call(this,e[0],t,r,e[0])};var J=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if(\"function\"==typeof e&&\"function\"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(\"function\"!=typeof t&&m(6),void 0!==r&&\"function\"!=typeof r&&m(7),v(e)){let i=j(this),s=Z(e,void 0),o=!0;try{n=t(s),o=!1}finally{o?D(i):L(i)}return T(i,r),F(n,i)}if(e&&\"object\"==typeof e)m(1,e);else{if(void 0===(n=t(e))&&(n=e),n===f&&(n=void 0),this.autoFreeze_&&I(n,!0),r){let t=[],i=[];R(\"Patches\").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return\"function\"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},\"boolean\"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),\"boolean\"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;v(e)||m(8),b(e)&&(b(t=e)||m(10,t),e=function e(t){let r;if(!v(t)||N(t))return t;let n=t[g];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_)}else r=P(t,!0);return E(r,(t,n)=>{k(r,t,e(n))}),n&&(n.finalized_=!1),r}(t));let r=j(this),n=Z(e,void 0);return n[g].isManual_=!0,L(r),n}finishDraft(e,t){let r=e&&e[g];r&&r.isManual_||m(9);let{scope_:n}=r;return T(n,t),F(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&\"replace\"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=R(\"Patches\").applyPatches_;return b(e)?n(e,t):this.produce(e,e=>n(e,t))}},Q=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseStrictShallowCopy.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J),r(25566);var X=\"undefined\"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return\"object\"==typeof arguments[0]?c:c.apply(null,arguments)};\"undefined\"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ee(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(eA(0));return{type:e,payload:r.payload,...\"meta\"in r&&{meta:r.meta},...\"error\"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>u(t)&&\"type\"in t&&\"string\"==typeof t.type&&t.type===e,r}var et=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function er(e){return v(e)?Q(e,()=>{}):e}function en(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw Error(eA(10));let n=r.insert(t,e);return e.set(t,n),n}var ei=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},s=new et;return t&&(\"boolean\"==typeof t?s.push(h):s.push(d(t.extraArgument))),s},es=e=>t=>{setTimeout(t,e)},eo=\"undefined\"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:es(10),ea=(e={type:\"raf\"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!1,o=!1,a=new Set,l=\"tick\"===e.type?queueMicrotask:\"raf\"===e.type?eo:\"callback\"===e.type?e.queueNotification:es(e.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(s=!(i=!e?.meta?.RTK_autoBatch))&&!o&&(o=!0,l(u)),n.dispatch(e)}finally{i=!0}}})},el=e=>function(t){let{autoBatch:r=!0}=t??{},n=new et(e);return r&&n.push(ea(\"object\"==typeof r?r:void 0)),n};function eu(e){let t,r;let i=ei(),{reducer:s,middleware:a,devTools:d=!0,preloadedState:h,enhancers:f}=e||{};if(\"function\"==typeof s)t=s;else if(u(s))t=function(e){let t;let r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let n=r[t];\"function\"==typeof e[n]&&(i[n]=e[n])}let s=Object.keys(i);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t];if(void 0===r(void 0,{type:l.INIT}))throw Error(n(12));if(void 0===r(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw Error(n(13))})}(i)}catch(e){t=e}return function(e={},r){if(t)throw t;let o=!1,a={};for(let t=0;t<s.length;t++){let l=s[t],u=i[l],c=e[l],d=u(c,r);if(void 0===d)throw r&&r.type,Error(n(14));a[l]=d,o=o||d!==c}return(o=o||s.length!==Object.keys(e).length)?a:e}}(s);else throw Error(eA(1));r=\"function\"==typeof a?a(i):i();let p=c;d&&(p=X({trace:!1,...\"object\"==typeof d&&d}));let g=el(function(...e){return t=>(r,i)=>{let s=t(r,i),o=()=>{throw Error(n(15))},a={getState:s.getState,dispatch:(e,...t)=>o(e,...t)};return o=c(...e.map(e=>e(a)))(s.dispatch),{...s,dispatch:o}}}(...r));return function e(t,r,i){if(\"function\"!=typeof t)throw Error(n(2));if(\"function\"==typeof r&&\"function\"==typeof i||\"function\"==typeof i&&\"function\"==typeof arguments[3])throw Error(n(0));if(\"function\"==typeof r&&void 0===i&&(i=r,r=void 0),void 0!==i){if(\"function\"!=typeof i)throw Error(n(1));return i(e)(t,r)}let s=t,a=r,c=new Map,d=c,h=0,f=!1;function p(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function g(){if(f)throw Error(n(3));return a}function m(e){if(\"function\"!=typeof e)throw Error(n(4));if(f)throw Error(n(5));let t=!0;p();let r=h++;return d.set(r,e),function(){if(t){if(f)throw Error(n(6));t=!1,p(),d.delete(r),c=null}}}function y(e){if(!u(e))throw Error(n(7));if(void 0===e.type)throw Error(n(8));if(\"string\"!=typeof e.type)throw Error(n(17));if(f)throw Error(n(9));try{f=!0,a=s(a,e)}finally{f=!1}return(c=d).forEach(e=>{e()}),e}return y({type:l.INIT}),{dispatch:y,subscribe:m,getState:g,replaceReducer:function(e){if(\"function\"!=typeof e)throw Error(n(10));s=e,y({type:l.REPLACE})},[o]:function(){return{subscribe(e){if(\"object\"!=typeof e||null===e)throw Error(n(11));function t(){e.next&&e.next(g())}return t(),{unsubscribe:m(t)}},[o](){return this}}}}}(t,h,p(...\"function\"==typeof f?f(g):g()))}function ec(e){let t;let r={},n=[],i={addCase(e,t){let n=\"string\"==typeof e?e:e.type;if(!n)throw Error(eA(28));if(n in r)throw Error(eA(29));return r[n]=t,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var ed=(e=21)=>{let t=\"\",r=e;for(;r--;)t+=\"ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW\"[64*Math.random()|0];return t},eh=Symbol.for(\"rtk-slice-createasyncthunk\"),ef=((i=ef||{}).reducer=\"reducer\",i.reducerWithPrepare=\"reducerWithPrepare\",i.asyncThunk=\"asyncThunk\",i),ep=function({creators:e}={}){let t=e?.asyncThunk?.[eh];return function(e){let r;let{name:n,reducerPath:i=n}=e;if(!n)throw Error(eA(11));let s=(\"function\"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:\"asyncThunk\",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:\"reducer\"}),preparedReducer:(e,t)=>({_reducerDefinitionType:\"reducerWithPrepare\",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(s),a={},l={},u={},c=[],d={addCase(e,t){let r=\"string\"==typeof e?e:e.type;if(!r)throw Error(eA(12));if(r in l)throw Error(eA(13));return l[r]=t,d},addMatcher:(e,t)=>(c.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(u[e]=t,d),exposeCaseReducer:(e,t)=>(a[e]=t,d)};function h(){let[t={},r=[],n]=\"function\"==typeof e.extraReducers?ec(e.extraReducers):[e.extraReducers],i={...t,...l};return function(e,t){let r;let[n,i,s]=ec(t);if(\"function\"==typeof e)r=()=>er(e());else{let t=er(e);r=()=>t}function o(e=r(),t){let o=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[s]),o.reduce((e,r)=>{if(r){if(b(e)){let n=r(e,t);return void 0===n?e:n}if(v(e))return Q(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error(eA(9))}return n}}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of c)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}o.forEach(r=>{let i=s[r],o={reducerName:r,type:`${n}/${r}`,createNotation:\"function\"==typeof e.reducers};\"asyncThunk\"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(eA(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:c}=r,d=i(e,s,c);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:o||eg,pending:a||eg,rejected:l||eg,settled:u||eg})}(o,i,d,t):function({type:e,reducerName:t,createNotation:r},n,i){let s,o;if(\"reducer\"in n){if(r&&\"reducerWithPrepare\"!==n._reducerDefinitionType)throw Error(eA(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ee(e,o):ee(e))}(o,i,d)});let f=e=>e,p=new Map;function g(e,t){return r||(r=h()),r(e,t)}function m(){return r||(r=h()),r.getInitialState()}function y(t,r=!1){function n(e){let n=e[t];return void 0===n&&r&&(n=m()),n}function i(t=f){let n=en(p,r,{insert:()=>new WeakMap});return en(n,t,{insert:()=>{let n={};for(let[i,s]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(s,...o){let a=t(s);return void 0===a&&n&&(a=r()),e(a,...o)}return i.unwrapped=e,i}(s,t,m,r);return n}})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let w={name:n,reducer:g,actions:u,caseReducers:a,getInitialState:m,...y(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:g},r),{...w,...y(n,!0)}}};return w}}();function eg(){}var em=(e,t)=>{if(\"function\"!=typeof e)throw Error(eA(32))},{assign:ey}=Object,eb=\"listenerMiddleware\",ev=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:s}=e;if(t)i=ee(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(eA(21));return em(s,\"options.listener\"),{predicate:i,type:t,effect:s}},ew=ey(e=>{let{type:t,predicate:r,effect:n}=ev(e);return{id:ed(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(eA(22))}}},{withTypes:()=>ew}),e_=ey(ee(`${eb}/add`),{withTypes:()=>e_}),eE=ey(ee(`${eb}/remove`),{withTypes:()=>eE});function eA(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for(\"rtk-state-proxy-original\")},43197:function(e,t,r){\"use strict\";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{Zw:function(){return n},cN:function(){return o},eL:function(){return i},lh:function(){return s}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,o=/^\\(.+?\\).*?$/},10259:function(e,t,r){\"use strict\";r.d(t,{ZP:function(){return a}});let n=/\"(?:_|\\\\u0{2}5[Ff]){2}(?:p|\\\\u0{2}70)(?:r|\\\\u0{2}72)(?:o|\\\\u0{2}6[Ff])(?:t|\\\\u0{2}74)(?:o|\\\\u0{2}6[Ff])(?:_|\\\\u0{2}5[Ff]){2}\"\\s*:/,i=/\"(?:c|\\\\u0063)(?:o|\\\\u006[Ff])(?:n|\\\\u006[Ee])(?:s|\\\\u0073)(?:t|\\\\u0074)(?:r|\\\\u0072)(?:u|\\\\u0075)(?:c|\\\\u0063)(?:t|\\\\u0074)(?:o|\\\\u006[Ff])(?:r|\\\\u0072)\"\\s*:/,s=/^\\s*[\"[{]|^\\s*-?\\d{1,16}(\\.\\d{1,17})?([Ee][+-]?\\d+)?\\s*$/;function o(e,t){if(\"__proto__\"===e||\"constructor\"===e&&t&&\"object\"==typeof t&&\"prototype\"in t){console.warn(`[destr] Dropping \"${e}\" key to prevent prototype pollution.`);return}return t}function a(e,t={}){if(\"string\"!=typeof e)return e;let r=e.trim();if('\"'===e[0]&&e.endsWith('\"')&&!e.includes(\"\\\\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if(\"true\"===e)return!0;if(\"false\"===e)return!1;if(\"undefined\"===e)return;if(\"null\"===e)return null;if(\"nan\"===e)return Number.NaN;if(\"infinity\"===e)return Number.POSITIVE_INFINITY;if(\"-infinity\"===e)return Number.NEGATIVE_INFINITY}if(!s.test(e)){if(t.strict)throw SyntaxError(\"[destr] Invalid JSON\");return e}try{if(n.test(e)||i.test(e)){if(t.strict)throw Error(\"[destr] Possible prototype pollution\");return JSON.parse(e,o)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}},36393:function(e,t,r){\"use strict\";var n=r(37836);t.Z=n},50069:function(e,t,r){\"use strict\";r.d(t,{g7:function(){return n},xv:function(){return i}});let n=new TextEncoder,i=new TextDecoder},18482:function(e,t,r){\"use strict\";r.d(t,{J:function(){return a},c:function(){return o}});var n=r(50069);let i=e=>{let t=e;\"string\"==typeof t&&(t=n.g7.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(\"\"))},s=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},o=e=>i(e).replace(/=/g,\"\").replace(/\\+/g,\"-\").replace(/\\//g,\"_\"),a=e=>{let t=e;t instanceof Uint8Array&&(t=n.xv.decode(t)),t=t.replace(/-/g,\"+\").replace(/_/g,\"/\").replace(/\\s/g,\"\");try{return s(t)}catch(e){throw TypeError(\"The input to be decoded is not correctly encoded.\")}}},9648:function(e,t,r){\"use strict\";r.d(t,{t:function(){return a}});var n=r(18482),i=r(50069);class s extends Error{static get code(){return\"ERR_JOSE_GENERIC\"}constructor(e){var t;super(e),this.code=\"ERR_JOSE_GENERIC\",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class o extends s{constructor(){super(...arguments),this.code=\"ERR_JWT_INVALID\"}static get code(){return\"ERR_JWT_INVALID\"}}function a(e){let t,r;if(\"string\"!=typeof e)throw new o(\"JWTs must use Compact JWS serialization, JWT must be a string\");let{1:s,length:a}=e.split(\".\");if(5===a)throw new o(\"Only JWTs using Compact JWS serialization can be decoded\");if(3!==a)throw new o(\"Invalid JWT\");if(!s)throw new o(\"JWTs must contain a payload\");try{t=(0,n.J)(s)}catch(e){throw new o(\"Failed to base64url decode the payload\")}try{r=JSON.parse(i.xv.decode(t))}catch(e){throw new o(\"Failed to parse the decoded payload as JSON\")}if(!function(e){if(!(\"object\"==typeof e&&null!==e)||\"[object Object]\"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(r))throw new o(\"Invalid JWT Claims Set\");return r}},44785:function(e,t,r){\"use strict\";/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{Z:function(){return i}});var i=function e(t,r){function i(e,i,s){if(\"undefined\"!=typeof document){\"number\"==typeof(s=n({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o=\"\";for(var a in s)s[a]&&(o+=\"; \"+a,!0!==s[a]&&(o+=\"=\"+s[a].split(\";\")[0]));return document.cookie=e+\"=\"+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if(\"undefined\"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split(\"; \"):[],n={},i=0;i<r.length;i++){var s=r[i].split(\"=\"),o=s.slice(1).join(\"=\");try{var a=decodeURIComponent(s[0]);if(n[a]=t.read(o,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,\"\",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'\"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:\"/\"})},18822:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return m}});var n=r(31767),i=r(59105),s=r(69496),o=r(46587),a=r(71669),l=/^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h={formatExtension:function(e,t,r){return\"\".concat(e).concat(r.ext()).concat(t)}};function f(e,t,r,n,i){var o=function(e,t){for(var r,n=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e);!(r=n()).done;){var i=r.value;if(i.leadingDigitsPatterns().length>0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==t.search(o))continue}if((0,s.Z)(t,i.pattern()))return i}}(n.formats(),e);return o?(0,a.Z)(e,o,{useInternationalFormat:\"INTERNATIONAL\"===r,withNationalPrefix:!o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:n}):e}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var m=function(){var e;function t(e,r,i){if(!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),!e)throw TypeError(\"`country` or `countryCallingCode` not passed\");if(!r)throw TypeError(\"`nationalNumber` not passed\");if(!i)throw TypeError(\"`metadata` not passed\");var s,o,a,l,u,c=(s=e,o=i,u=new n.ZP(o),/^[A-Z]{2}$/.test(s)?(a=s,u.selectNumberingPlan(a),l=u.countryCallingCode()):l=s,{country:a,countryCallingCode:l}),d=c.country,h=c.countryCallingCode;this.country=d,this.countryCallingCode=h,this.nationalNumber=r,this.number=\"+\"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}}return e=[{key:\"setExt\",value:function(e){this.ext=e}},{key:\"getPossibleCountries\",value:function(){var e,t,r,i;return this.country?[this.country]:(e=this.countryCallingCode,t=this.nationalNumber,r=this.getMetadata(),(i=new n.ZP(r).getCountryCodesForCallingCode(e))?i.filter(function(e){var i;return(i=new n.ZP(r)).selectNumberingPlan(e),i.numberingPlan.possibleLengths().indexOf(t.length)>=0}):[])}},{key:\"isPossible\",value:function(){return(0,i.Z)(this,{v2:!0},this.getMetadata())}},{key:\"isValid\",value:function(){return function(e,t,r){if(t=t||{},(r=new n.ZP(r)).selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes())return void 0!==(0,o.Z)(e,t,r.metadata);var i=t.v2?e.nationalNumber:e.phone;return(0,s.Z)(i,r.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:\"isNonGeographic\",value:function(){return new n.ZP(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:\"isEqual\",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:\"getType\",value:function(){return(0,o.Z)(this,{v2:!0},this.getMetadata())}},{key:\"format\",value:function(e,t){return function(e,t,r,i){if(r=r?d(d({},h),r):h,i=new n.ZP(i),e.country&&\"001\"!==e.country){if(!i.hasCountry(e.country))throw Error(\"Unknown country: \".concat(e.country));i.country(e.country)}else{if(!e.countryCallingCode)return e.phone||\"\";i.selectNumberingPlan(e.countryCallingCode)}var s,o,a,u,c,p,g,m,y,b,v,w,_,E=i.countryCallingCode(),A=r.v2?e.nationalNumber:e.phone;switch(t){case\"NATIONAL\":if(!A)return\"\";return s=_=f(A,e.carrierCode,\"NATIONAL\",i,r),o=e.ext,a=i,u=r.formatExtension,o?u(s,o,a):s;case\"INTERNATIONAL\":if(!A)return\"+\".concat(E);return _=f(A,null,\"INTERNATIONAL\",i,r),c=_=\"+\".concat(E,\" \").concat(_),p=e.ext,g=i,m=r.formatExtension,p?m(c,p,g):c;case\"E.164\":return\"+\".concat(E).concat(A);case\"RFC3966\":return function(e){var t=e.number,r=e.ext;if(!t)return\"\";if(\"+\"!==t[0])throw Error('\"formatRFC3966()\" expects \"number\" to be in E.164 format.');return\"tel:\".concat(t).concat(r?\";ext=\"+r:\"\")}({number:\"+\".concat(E).concat(A),ext:e.ext});case\"IDD\":if(!r.fromCountry)return;return y=function(e,t,r,i,s){if((0,n.Gg)(i,s.metadata)===r){var o,a,u,c=f(e,t,\"NATIONAL\",s);return\"1\"===r?r+\" \"+c:c}var d=(o=void 0,a=s.metadata,((u=new n.ZP(a)).selectNumberingPlan(i,o),u.defaultIDDPrefix())?u.defaultIDDPrefix():l.test(u.IDDPrefix())?u.IDDPrefix():void 0);if(d)return\"\".concat(d,\" \").concat(r,\" \").concat(f(e,null,\"INTERNATIONAL\",s))}(A,e.carrierCode,E,r.fromCountry,i),b=e.ext,v=i,w=r.formatExtension,b?w(y,b,v):y;default:throw Error('Unknown \"format\" argument passed to \"formatNumber()\": \"'.concat(t,'\"'))}}(this,e,t?g(g({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:\"formatNational\",value:function(e){return this.format(\"NATIONAL\",e)}},{key:\"formatInternational\",value:function(e){return this.format(\"INTERNATIONAL\",e)}},{key:\"getURI\",value:function(e){return this.format(\"RFC3966\",e)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}()},13399:function(e,t,r){\"use strict\";r.d(t,{ex:function(){return n},sJ:function(){return i},uv:function(){return a},xc:function(){return o},xg:function(){return s},xy:function(){return l}});var n=2,i=17,s=3,o=\"0-9０-９٠-٩۰-۹\",a=\"\".concat(\"-‐-―−ー－\").concat(\"／/\").concat(\"．.\").concat(\" \\xa0\\xad​⁠　\").concat(\"()（）［］\\\\[\\\\]\").concat(\"~⁓∼～\"),l=\"+＋\"},90263:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(13399);function i(e){return e.replace(RegExp(\"[\".concat(n.uv,\"]+\"),\"g\"),\" \").trim()}},23419:function(e,t,r){\"use strict\";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){return function e(t,r,i){var s=i.type(r),o=s&&s.possibleLengths()||i.possibleLengths();if(!o)return\"IS_POSSIBLE\";if(\"FIXED_LINE_OR_MOBILE\"===r){if(!i.type(\"FIXED_LINE\"))return e(t,\"MOBILE\",i);var a=i.type(\"MOBILE\");a&&(o=function(e,t){for(var r,i=e.slice(),s=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(t);!(r=s()).done;){var o=r.value;0>e.indexOf(o)&&i.push(o)}return i.sort(function(e,t){return e-t})}(o,a.possibleLengths()))}else if(r&&!s)return\"INVALID_LENGTH\";var l=t.length,u=o[0];return u===l?\"IS_POSSIBLE\":u>l?\"TOO_SHORT\":o[o.length-1]<l?\"TOO_LONG\":o.indexOf(l,1)>=0?\"IS_POSSIBLE\":\"INVALID_LENGTH\"}(e,void 0,t)}r.d(t,{Z:function(){return i}})},52586:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return a}});var n=r(72924),i=r(3238),s=r(31767),o=r(13399);function a(e,t,r,a){if(!e)return{};if(\"+\"!==e[0]){var l,u=(0,n.Z)(e,t,r,a);if(u&&u!==e)l=!0,e=\"+\"+u;else{if(t||r){var c=(0,i.Z)(e,t,r,a),d=c.countryCallingCode,h=c.number;if(d)return{countryCallingCodeSource:\"FROM_NUMBER_WITHOUT_PLUS_SIGN\",countryCallingCode:d,number:h}}return{number:e}}}if(\"0\"===e[1])return{};a=new s.ZP(a);for(var f=2;f-1<=o.xg&&f<=e.length;){var p=e.slice(1,f);if(a.hasCallingCode(p))return a.selectNumberingPlan(p),{countryCallingCodeSource:l?\"FROM_NUMBER_WITH_IDD\":\"FROM_NUMBER_WITH_PLUS_SIGN\",countryCallingCode:p,number:e.slice(f)};f++}return{}}},3238:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return a}});var n=r(31767),i=r(69496),s=r(11264),o=r(23419);function a(e,t,r,a){var l=t?(0,n.Gg)(t,a):r;if(0===e.indexOf(l)){(a=new n.ZP(a)).selectNumberingPlan(t,r);var u=e.slice(l.length),c=(0,s.Z)(u,a).nationalNumber,d=(0,s.Z)(e,a).nationalNumber;if(!(0,i.Z)(d,a.nationalNumberPattern())&&(0,i.Z)(c,a.nationalNumberPattern())||\"TOO_LONG\"===(0,o.Z)(d,a))return{countryCallingCode:l,number:u}}return{number:e}}},11264:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return o}});var n=r(30196),i=r(69496),s=r(23419);function o(e,t){var r=(0,n.Z)(e,t),o=r.carrierCode,a=r.nationalNumber;return a!==e&&(!(!(0,i.Z)(e,t.nationalNumberPattern())||(0,i.Z)(a,t.nationalNumberPattern()))||t.possibleLengths()&&!function(e,t){switch((0,s.Z)(e,t)){case\"TOO_SHORT\":case\"INVALID_LENGTH\":return!1;default:return!0}}(a,t))?{nationalNumber:e}:{nationalNumber:a,carrierCode:o}}},30196:function(e,t,r){\"use strict\";function n(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=RegExp(\"^(?:\"+t.numberingPlan.nationalPrefixForParsing()+\")\"),n=r.exec(e);if(n){var i,s,o,a=n.length-1,l=a>0&&n[a];if(t.nationalPrefixTransformRule()&&l)i=e.replace(r,t.nationalPrefixTransformRule()),a>1&&(s=n[1]);else{var u=n[0];i=e.slice(u.length),l&&(s=n[1])}if(l){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(o=t.numberingPlan.nationalPrefix())}else o=n[0];return{nationalNumber:i,nationalPrefix:o,carrierCode:s}}}return{nationalNumber:e}}r.d(t,{Z:function(){return n}})},71669:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return s},i:function(){return i}});var n=r(90263),i=/(\\$\\d)/;function s(e,t,r){var s=r.useInternationalFormat,o=r.withNationalPrefix;r.carrierCode,r.metadata;var a=e.replace(new RegExp(t.pattern()),s?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(i,t.nationalPrefixFormattingRule()):t.format());return s?(0,n.Z)(a):a}},81271:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(79092);function i(e,t){var r=t.nationalNumber,i=t.defaultCountry,s=t.metadata,o=s.getCountryCodesForCallingCode(e);return o?1===o.length?o[0]:(0,n.Z)(r,{countries:o,defaultCountry:i,metadata:s.metadata}):void 0}},79092:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return o}});var n=r(31767),i=r(46587);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){var r=t.countries,o=t.defaultCountry,a=t.metadata;a=new n.ZP(a);for(var l,u=[],c=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(r);!(l=c()).done;){var d=l.value;if(a.country(d),a.leadingDigits()){if(e&&0===e.search(a.leadingDigits()))return d}else if((0,i.Z)({phone:e,country:d},void 0,a.metadata)){if(!o||d===o)return d;u.push(d)}}if(u.length>0)return u[0]}},46587:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return a}});var n=r(31767),i=r(69496);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var o=[\"MOBILE\",\"PREMIUM_RATE\",\"TOLL_FREE\",\"SHARED_COST\",\"VOIP\",\"PERSONAL_NUMBER\",\"PAGER\",\"UAN\",\"VOICEMAIL\"];function a(e,t,r){if(t=t||{},e.country||e.countryCallingCode){(r=new n.ZP(r)).selectNumberingPlan(e.country,e.countryCallingCode);var a=t.v2?e.nationalNumber:e.phone;if((0,i.Z)(a,r.nationalNumberPattern())){if(l(a,\"FIXED_LINE\",r))return r.type(\"MOBILE\")&&\"\"===r.type(\"MOBILE\").pattern()||!r.type(\"MOBILE\")||l(a,\"MOBILE\",r)?\"FIXED_LINE_OR_MOBILE\":\"FIXED_LINE\";for(var u,c=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(o);!(u=c()).done;){var d=u.value;if(l(a,d,r))return d}}}}function l(e,t,r){return!(!(t=r.type(t))||!t.pattern()||t.possibleLengths()&&0>t.possibleLengths().indexOf(e.length))&&(0,i.Z)(e,t.pattern())}},84667:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n={}.constructor;function i(e){return null!=e&&e.constructor===n}},69496:function(e,t,r){\"use strict\";function n(e,t){return e=e||\"\",RegExp(\"^(?:\"+t+\")$\").test(e)}r.d(t,{Z:function(){return n}})},43829:function(e,t,r){\"use strict\";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{ZP:function(){return o},xh:function(){return s}});var i={0:\"0\",1:\"1\",2:\"2\",3:\"3\",4:\"4\",5:\"5\",6:\"6\",7:\"7\",8:\"8\",9:\"9\",\"０\":\"0\",\"１\":\"1\",\"２\":\"2\",\"３\":\"3\",\"４\":\"4\",\"５\":\"5\",\"６\":\"6\",\"７\":\"7\",\"８\":\"8\",\"９\":\"9\",\"٠\":\"0\",\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"۰\":\"0\",\"۱\":\"1\",\"۲\":\"2\",\"۳\":\"3\",\"۴\":\"4\",\"۵\":\"5\",\"۶\":\"6\",\"۷\":\"7\",\"۸\":\"8\",\"۹\":\"9\"};function s(e){return i[e]}function o(e){for(var t,r=\"\",s=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e.split(\"\"));!(t=s()).done;){var o=i[t.value];o&&(r+=o)}return r}},72924:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return s}});var n=r(31767),i=RegExp(\"([\"+r(13399).xc+\"])\");function s(e,t,r,s){if(t){var o=new n.ZP(s);o.selectNumberingPlan(t,r);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var l=(e=e.slice(e.match(a)[0].length)).match(i);if(!l||null==l[1]||!(l[1].length>0)||\"0\"!==l[1])return e}}}},59105:function(e,t,r){\"use strict\";r.d(t,{D:function(){return o},Z:function(){return s}});var n=r(31767),i=r(23419);function s(e,t,r){if(void 0===t&&(t={}),r=new n.ZP(r),t.v2){if(!e.countryCallingCode)throw Error(\"Invalid phone number object passed\");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw Error(\"Unknown country: \".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw Error(\"Invalid phone number object passed\");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return o(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function o(e,t){return\"IS_POSSIBLE\"===(0,i.Z)(e,t)}},31767:function(e,t,r){\"use strict\";function n(e,t){e=e.split(\"-\"),t=t.split(\"-\");for(var r=e[0].split(\".\"),n=t[0].split(\".\"),i=0;i<3;i++){var s=Number(r[i]),o=Number(n[i]);if(s>o)return 1;if(o>s)return -1;if(!isNaN(s)&&isNaN(o))return 1;if(isNaN(s)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}r.d(t,{ZP:function(){return d},Gg:function(){return b},aS:function(){return v}});var i=r(84667);function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var u=\" ext. \",c=/^\\d+$/,d=function(){function e(t){o(this,e),function(e){if(!e)throw Error(\"[libphonenumber-js] `metadata` argument not passed. Check your arguments.\");if(!(0,i.Z)(e)||!(0,i.Z)(e.countries))throw Error(\"[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got \".concat((0,i.Z)(e)?\"an object of shape: { \"+Object.keys(e).join(\", \")+\" }\":\"a \"+y(e)+\": \"+e,\".\"))}(t),this.metadata=t,w.call(this,t)}return l(e,[{key:\"getCountries\",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return\"001\"!==e})}},{key:\"getCountryMetadata\",value:function(e){return this.metadata.countries[e]}},{key:\"nonGeographic\",value:function(){if(!this.v1&&!this.v2&&!this.v3)return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:\"hasCountry\",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:\"hasCallingCode\",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&\"001\"===t[0])return!0}}},{key:\"isNonGeographicCallingCode\",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:\"country\",value:function(e){return this.selectNumberingPlan(e)}},{key:\"selectNumberingPlan\",value:function(e,t){if(e&&c.test(e)&&(t=e,e=null),e&&\"001\"!==e){if(!this.hasCountry(e))throw Error(\"Unknown country: \".concat(e));this.numberingPlan=new h(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error(\"Unknown calling code: \".concat(t));this.numberingPlan=new h(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:\"getCountryCodesForCallingCode\",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:\"getCountryCodeForCallingCode\",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:\"getNumberingPlanMetadata\",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&\"001\"===n[0])return this.metadata.countries[\"001\"]}}},{key:\"countryCallingCode\",value:function(){return this.numberingPlan.callingCode()}},{key:\"IDDPrefix\",value:function(){return this.numberingPlan.IDDPrefix()}},{key:\"defaultIDDPrefix\",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:\"nationalNumberPattern\",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:\"possibleLengths\",value:function(){return this.numberingPlan.possibleLengths()}},{key:\"formats\",value:function(){return this.numberingPlan.formats()}},{key:\"nationalPrefixForParsing\",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:\"nationalPrefixTransformRule\",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:\"leadingDigits\",value:function(){return this.numberingPlan.leadingDigits()}},{key:\"hasTypes\",value:function(){return this.numberingPlan.hasTypes()}},{key:\"type\",value:function(e){return this.numberingPlan.type(e)}},{key:\"ext\",value:function(){return this.numberingPlan.ext()}},{key:\"countryCallingCodes\",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:\"chooseCountryByCountryCallingCode\",value:function(e){return this.selectNumberingPlan(e)}},{key:\"hasSelectedNumberingPlan\",value:function(){return void 0!==this.numberingPlan}}]),e}(),h=function(){function e(t,r){o(this,e),this.globalMetadataObject=r,this.metadata=t,w.call(this,r.metadata)}return l(e,[{key:\"callingCode\",value:function(){return this.metadata[0]}},{key:\"getDefaultCountryMetadataForRegion\",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:\"IDDPrefix\",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:\"defaultIDDPrefix\",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:\"nationalNumberPattern\",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:\"possibleLengths\",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:\"_getFormats\",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:\"formats\",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new f(t,e)})}},{key:\"nationalPrefix\",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:\"_getNationalPrefixFormattingRule\",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:\"nationalPrefixFormattingRule\",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:\"_nationalPrefixForParsing\",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:\"nationalPrefixForParsing\",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:\"nationalPrefixTransformRule\",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:\"_getNationalPrefixIsOptionalWhenFormatting\",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:\"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:\"leadingDigits\",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:\"types\",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:\"hasTypes\",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:\"type\",value:function(e){if(this.hasTypes()&&m(this.types(),e))return new g(m(this.types(),e),this)}},{key:\"ext\",value:function(){return this.v1||this.v2?u:this.metadata[13]||u}}]),e}(),f=function(){function e(t,r){o(this,e),this._format=t,this.metadata=r}return l(e,[{key:\"pattern\",value:function(){return this._format[0]}},{key:\"format\",value:function(){return this._format[1]}},{key:\"leadingDigitsPatterns\",value:function(){return this._format[2]||[]}},{key:\"nationalPrefixFormattingRule\",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:\"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:\"nationalPrefixIsMandatoryWhenFormattingInNationalFormat\",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:\"usesNationalPrefix\",value:function(){return!!this.nationalPrefixFormattingRule()&&!p.test(this.nationalPrefixFormattingRule())}},{key:\"internationalFormat\",value:function(){return this._format[5]||this.format()}}]),e}(),p=/^\\(?\\$1\\)?$/,g=function(){function e(t,r){o(this,e),this.type=t,this.metadata=r}return l(e,[{key:\"pattern\",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:\"possibleLengths\",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function m(e,t){switch(t){case\"FIXED_LINE\":return e[0];case\"MOBILE\":return e[1];case\"TOLL_FREE\":return e[2];case\"PREMIUM_RATE\":return e[3];case\"PERSONAL_NUMBER\":return e[4];case\"VOICEMAIL\":return e[5];case\"UAN\":return e[6];case\"PAGER\":return e[7];case\"VOIP\":return e[8];case\"SHARED_COST\":return e[9]}}var y=function(e){return s(e)};function b(e,t){if((t=new d(t)).hasCountry(e))return t.country(e).countryCallingCode();throw Error(\"Unknown country: \".concat(e))}function v(e,t){return t.countries.hasOwnProperty(e)}function w(e){var t=e.version;\"number\"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===n(t,\"1.2.0\")?this.v2=!0:-1===n(t,\"1.7.35\")?this.v3=!0:this.v4=!0:this.v1=!0}},24609:function(e,t){\"use strict\";t.Z={AC:\"40123\",AD:\"312345\",AE:\"501234567\",AF:\"701234567\",AG:\"2684641234\",AI:\"2642351234\",AL:\"672123456\",AM:\"77123456\",AO:\"923123456\",AR:\"91123456789\",AS:\"6847331234\",AT:\"664123456\",AU:\"412345678\",AW:\"5601234\",AX:\"412345678\",AZ:\"401234567\",BA:\"61123456\",BB:\"2462501234\",BD:\"1812345678\",BE:\"470123456\",BF:\"70123456\",BG:\"43012345\",BH:\"36001234\",BI:\"79561234\",BJ:\"90011234\",BL:\"690001234\",BM:\"4413701234\",BN:\"7123456\",BO:\"71234567\",BQ:\"3181234\",BR:\"11961234567\",BS:\"2423591234\",BT:\"17123456\",BW:\"71123456\",BY:\"294911911\",BZ:\"6221234\",CA:\"5062345678\",CC:\"412345678\",CD:\"991234567\",CF:\"70012345\",CG:\"061234567\",CH:\"781234567\",CI:\"0123456789\",CK:\"71234\",CL:\"221234567\",CM:\"671234567\",CN:\"13123456789\",CO:\"3211234567\",CR:\"83123456\",CU:\"51234567\",CV:\"9911234\",CW:\"95181234\",CX:\"412345678\",CY:\"96123456\",CZ:\"601123456\",DE:\"15123456789\",DJ:\"77831001\",DK:\"34412345\",DM:\"7672251234\",DO:\"8092345678\",DZ:\"551234567\",EC:\"991234567\",EE:\"51234567\",EG:\"1001234567\",EH:\"650123456\",ER:\"7123456\",ES:\"612345678\",ET:\"911234567\",FI:\"412345678\",FJ:\"7012345\",FK:\"51234\",FM:\"3501234\",FO:\"211234\",FR:\"612345678\",GA:\"06031234\",GB:\"7400123456\",GD:\"4734031234\",GE:\"555123456\",GF:\"694201234\",GG:\"7781123456\",GH:\"231234567\",GI:\"57123456\",GL:\"221234\",GM:\"3012345\",GN:\"601123456\",GP:\"690001234\",GQ:\"222123456\",GR:\"6912345678\",GT:\"51234567\",GU:\"6713001234\",GW:\"955012345\",GY:\"6091234\",HK:\"51234567\",HN:\"91234567\",HR:\"921234567\",HT:\"34101234\",HU:\"201234567\",ID:\"812345678\",IE:\"850123456\",IL:\"502345678\",IM:\"7924123456\",IN:\"8123456789\",IO:\"3801234\",IQ:\"7912345678\",IR:\"9123456789\",IS:\"6111234\",IT:\"3123456789\",JE:\"7797712345\",JM:\"8762101234\",JO:\"790123456\",JP:\"9012345678\",KE:\"712123456\",KG:\"700123456\",KH:\"91234567\",KI:\"72001234\",KM:\"3212345\",KN:\"8697652917\",KP:\"1921234567\",KR:\"1020000000\",KW:\"50012345\",KY:\"3453231234\",KZ:\"7710009998\",LA:\"2023123456\",LB:\"71123456\",LC:\"7582845678\",LI:\"660234567\",LK:\"712345678\",LR:\"770123456\",LS:\"50123456\",LT:\"61234567\",LU:\"628123456\",LV:\"21234567\",LY:\"912345678\",MA:\"650123456\",MC:\"612345678\",MD:\"62112345\",ME:\"67622901\",MF:\"690001234\",MG:\"321234567\",MH:\"2351234\",MK:\"72345678\",ML:\"65012345\",MM:\"92123456\",MN:\"88123456\",MO:\"66123456\",MP:\"6702345678\",MQ:\"696201234\",MR:\"22123456\",MS:\"6644923456\",MT:\"96961234\",MU:\"52512345\",MV:\"7712345\",MW:\"991234567\",MX:\"2221234567\",MY:\"123456789\",MZ:\"821234567\",NA:\"811234567\",NC:\"751234\",NE:\"93123456\",NF:\"381234\",NG:\"8021234567\",NI:\"81234567\",NL:\"612345678\",NO:\"40612345\",NP:\"9841234567\",NR:\"5551234\",NU:\"8884012\",NZ:\"211234567\",OM:\"92123456\",PA:\"61234567\",PE:\"912345678\",PF:\"87123456\",PG:\"70123456\",PH:\"9051234567\",PK:\"3012345678\",PL:\"512345678\",PM:\"551234\",PR:\"7872345678\",PS:\"599123456\",PT:\"912345678\",PW:\"6201234\",PY:\"961456789\",QA:\"33123456\",RE:\"692123456\",RO:\"712034567\",RS:\"601234567\",RU:\"9123456789\",RW:\"720123456\",SA:\"512345678\",SB:\"7421234\",SC:\"2510123\",SD:\"911231234\",SE:\"701234567\",SG:\"81234567\",SH:\"51234\",SI:\"31234567\",SJ:\"41234567\",SK:\"912123456\",SL:\"25123456\",SM:\"66661212\",SN:\"701234567\",SO:\"71123456\",SR:\"7412345\",SS:\"977123456\",ST:\"9812345\",SV:\"70123456\",SX:\"7215205678\",SY:\"944567890\",SZ:\"76123456\",TA:\"8999\",TC:\"6492311234\",TD:\"63012345\",TG:\"90112345\",TH:\"812345678\",TJ:\"917123456\",TK:\"7290\",TL:\"77212345\",TM:\"66123456\",TN:\"20123456\",TO:\"7715123\",TR:\"5012345678\",TT:\"8682911234\",TV:\"901234\",TW:\"912345678\",TZ:\"621234567\",UA:\"501234567\",UG:\"712345678\",US:\"2015550123\",UY:\"94231234\",UZ:\"912345678\",VA:\"3123456789\",VC:\"7844301234\",VE:\"4121234567\",VG:\"2843001234\",VI:\"3406421234\",VN:\"912345678\",VU:\"5912345\",WF:\"821234\",WS:\"7212345\",XK:\"43201234\",YE:\"712345678\",YT:\"639012345\",ZA:\"711234567\",ZM:\"955123456\",ZW:\"712345678\"}},89803:function(e,t){\"use strict\";t.Z={version:4,country_calling_codes:{1:[\"US\",\"AG\",\"AI\",\"AS\",\"BB\",\"BM\",\"BS\",\"CA\",\"DM\",\"DO\",\"GD\",\"GU\",\"JM\",\"KN\",\"KY\",\"LC\",\"MP\",\"MS\",\"PR\",\"SX\",\"TC\",\"TT\",\"VC\",\"VG\",\"VI\"],7:[\"RU\",\"KZ\"],20:[\"EG\"],27:[\"ZA\"],30:[\"GR\"],31:[\"NL\"],32:[\"BE\"],33:[\"FR\"],34:[\"ES\"],36:[\"HU\"],39:[\"IT\",\"VA\"],40:[\"RO\"],41:[\"CH\"],43:[\"AT\"],44:[\"GB\",\"GG\",\"IM\",\"JE\"],45:[\"DK\"],46:[\"SE\"],47:[\"NO\",\"SJ\"],48:[\"PL\"],49:[\"DE\"],51:[\"PE\"],52:[\"MX\"],53:[\"CU\"],54:[\"AR\"],55:[\"BR\"],56:[\"CL\"],57:[\"CO\"],58:[\"VE\"],60:[\"MY\"],61:[\"AU\",\"CC\",\"CX\"],62:[\"ID\"],63:[\"PH\"],64:[\"NZ\"],65:[\"SG\"],66:[\"TH\"],81:[\"JP\"],82:[\"KR\"],84:[\"VN\"],86:[\"CN\"],90:[\"TR\"],91:[\"IN\"],92:[\"PK\"],93:[\"AF\"],94:[\"LK\"],95:[\"MM\"],98:[\"IR\"],211:[\"SS\"],212:[\"MA\",\"EH\"],213:[\"DZ\"],216:[\"TN\"],218:[\"LY\"],220:[\"GM\"],221:[\"SN\"],222:[\"MR\"],223:[\"ML\"],224:[\"GN\"],225:[\"CI\"],226:[\"BF\"],227:[\"NE\"],228:[\"TG\"],229:[\"BJ\"],230:[\"MU\"],231:[\"LR\"],232:[\"SL\"],233:[\"GH\"],234:[\"NG\"],235:[\"TD\"],236:[\"CF\"],237:[\"CM\"],238:[\"CV\"],239:[\"ST\"],240:[\"GQ\"],241:[\"GA\"],242:[\"CG\"],243:[\"CD\"],244:[\"AO\"],245:[\"GW\"],246:[\"IO\"],247:[\"AC\"],248:[\"SC\"],249:[\"SD\"],250:[\"RW\"],251:[\"ET\"],252:[\"SO\"],253:[\"DJ\"],254:[\"KE\"],255:[\"TZ\"],256:[\"UG\"],257:[\"BI\"],258:[\"MZ\"],260:[\"ZM\"],261:[\"MG\"],262:[\"RE\",\"YT\"],263:[\"ZW\"],264:[\"NA\"],265:[\"MW\"],266:[\"LS\"],267:[\"BW\"],268:[\"SZ\"],269:[\"KM\"],290:[\"SH\",\"TA\"],291:[\"ER\"],297:[\"AW\"],298:[\"FO\"],299:[\"GL\"],350:[\"GI\"],351:[\"PT\"],352:[\"LU\"],353:[\"IE\"],354:[\"IS\"],355:[\"AL\"],356:[\"MT\"],357:[\"CY\"],358:[\"FI\",\"AX\"],359:[\"BG\"],370:[\"LT\"],371:[\"LV\"],372:[\"EE\"],373:[\"MD\"],374:[\"AM\"],375:[\"BY\"],376:[\"AD\"],377:[\"MC\"],378:[\"SM\"],380:[\"UA\"],381:[\"RS\"],382:[\"ME\"],383:[\"XK\"],385:[\"HR\"],386:[\"SI\"],387:[\"BA\"],389:[\"MK\"],420:[\"CZ\"],421:[\"SK\"],423:[\"LI\"],500:[\"FK\"],501:[\"BZ\"],502:[\"GT\"],503:[\"SV\"],504:[\"HN\"],505:[\"NI\"],506:[\"CR\"],507:[\"PA\"],508:[\"PM\"],509:[\"HT\"],590:[\"GP\",\"BL\",\"MF\"],591:[\"BO\"],592:[\"GY\"],593:[\"EC\"],594:[\"GF\"],595:[\"PY\"],596:[\"MQ\"],597:[\"SR\"],598:[\"UY\"],599:[\"CW\",\"BQ\"],670:[\"TL\"],672:[\"NF\"],673:[\"BN\"],674:[\"NR\"],675:[\"PG\"],676:[\"TO\"],677:[\"SB\"],678:[\"VU\"],679:[\"FJ\"],680:[\"PW\"],681:[\"WF\"],682:[\"CK\"],683:[\"NU\"],685:[\"WS\"],686:[\"KI\"],687:[\"NC\"],688:[\"TV\"],689:[\"PF\"],690:[\"TK\"],691:[\"FM\"],692:[\"MH\"],850:[\"KP\"],852:[\"HK\"],853:[\"MO\"],855:[\"KH\"],856:[\"LA\"],880:[\"BD\"],886:[\"TW\"],960:[\"MV\"],961:[\"LB\"],962:[\"JO\"],963:[\"SY\"],964:[\"IQ\"],965:[\"KW\"],966:[\"SA\"],967:[\"YE\"],968:[\"OM\"],970:[\"PS\"],971:[\"AE\"],972:[\"IL\"],973:[\"BH\"],974:[\"QA\"],975:[\"BT\"],976:[\"MN\"],977:[\"NP\"],992:[\"TJ\"],993:[\"TM\"],994:[\"AZ\"],995:[\"GE\"],996:[\"KG\"],998:[\"UZ\"]},countries:{AC:[\"247\",\"00\",\"(?:[01589]\\\\d|[46])\\\\d{4}\",[5,6]],AD:[\"376\",\"00\",\"(?:1|6\\\\d)\\\\d{7}|[135-9]\\\\d{5}\",[6,8,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"[135-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]]],AE:[\"971\",\"00\",\"(?:[4-7]\\\\d|9[0-689])\\\\d{7}|800\\\\d{2,9}|[2-4679]\\\\d{7}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{2,9})\",\"$1 $2\",[\"60|8\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[236]|[479][2-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{5})\",\"$1 $2 $3\",[\"[479]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],AF:[\"93\",\"00\",\"[2-7]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"]],\"0\"],AG:[\"1\",\"011\",\"(?:268|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([457]\\\\d{6})$|1\",\"268$1\",0,\"268\"],AI:[\"1\",\"011\",\"(?:264|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2457]\\\\d{6})$|1\",\"264$1\",0,\"264\"],AL:[\"355\",\"00\",\"(?:700\\\\d\\\\d|900)\\\\d{3}|8\\\\d{5,7}|(?:[2-5]|6\\\\d)\\\\d{7}\",[6,7,8,9],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"80|9\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"4[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2358][2-5]|4\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[23578]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"]],\"0\"],AM:[\"374\",\"00\",\"(?:[1-489]\\\\d|55|60|77)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]0\"],\"0 $1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2|3[12]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"1|47\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[3-9]\"],\"0$1\"]],\"0\"],AO:[\"244\",\"00\",\"[29]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[29]\"]]]],AR:[\"54\",\"00\",\"(?:11|[89]\\\\d\\\\d)\\\\d{8}|[2368]\\\\d{9}\",[10,11],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2-$3\",[\"2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])\",\"2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"1\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[68]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[23]\"],\"0$1\",1],[\"(\\\\d)(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9(?:2[2-469]|3[3-578])\",\"9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))\",\"9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$2 15-$3-$4\",[\"91\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9\"],\"0$1\",0,\"$1 $2 $3-$4\"]],\"0\",0,\"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?\",\"9$1\"],AS:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|684|900)\\\\d{7}\",[10],0,\"1\",0,\"([267]\\\\d{6})$|1\",\"684$1\",0,\"684\"],AT:[\"43\",\"00\",\"1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}\",[4,5,6,7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3,12})\",\"$1 $2\",[\"1(?:11|[2-9])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})\",\"$1 $2\",[\"517\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"5[079]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,10})\",\"$1 $2\",[\"(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,9})\",\"$1 $2\",[\"[2-467]|5[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,7})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],AU:[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{7}(?:\\\\d(?:\\\\d{2})?)?|8[0-24-9]\\\\d{7})|[2-478]\\\\d{8}|1\\\\d{4,7}\",[5,6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"16\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"16\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"14|4\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[2378]\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:30|[89])\"]]],\"0\",0,\"(183[12])|0\",0,0,0,[[\"(?:(?:(?:2(?:[0-26-9]\\\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\\\d|2[0-8]))\\\\d|3(?:(?:[0-3589]\\\\d|6[1-9]|7[0-35-9])\\\\d|4(?:[0-578]\\\\d|90)))\\\\d\\\\d|8(?:51(?:0(?:0[03-9]|[12479]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\\\d|7[89]|9[0-4])|3\\\\d\\\\d)|(?:6[0-8]|[78]\\\\d)\\\\d{3}|9(?:[02-9]\\\\d{3}|1(?:(?:[0-58]\\\\d|6[0135-9])\\\\d|7(?:0[0-24-9]|[1-9]\\\\d)|9(?:[0-46-9]\\\\d|5[0-79])))))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,[\"163\\\\d{2,6}\",[5,6,7,8,9]],[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],AW:[\"297\",\"00\",\"(?:[25-79]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[25-9]\"]]]],AX:[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"2\\\\d{4,9}|35\\\\d{4,5}|(?:60\\\\d\\\\d|800)\\\\d{4,6}|7\\\\d{5,11}|(?:[14]\\\\d|3[0-46-9]|50)\\\\d{4,8}\",[5,6,7,8,9,10,11,12],0,\"0\",0,0,0,0,\"18\",0,\"00\"],AZ:[\"994\",\"00\",\"365\\\\d{6}|(?:[124579]\\\\d|60|88)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[28]|2|365|46\",\"1[28]|2|365[45]|46\",\"1[28]|2|365(?:4|5[02])|46\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[13-9]\"],\"0$1\"]],\"0\"],BA:[\"387\",\"00\",\"6\\\\d{8}|(?:[35689]\\\\d|49|70)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[1-3]|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2-$3\",[\"[3-5]|6[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\"]],\"0\"],BB:[\"1\",\"011\",\"(?:246|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"246$1\",0,\"246\"],BD:[\"880\",\"00\",\"[1-469]\\\\d{9}|8[0-79]\\\\d{7,8}|[2-79]\\\\d{8}|[2-9]\\\\d{7}|[3-9]\\\\d{6}|[57-9]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1-$2\",[\"31[5-8]|[459]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1-$2\",[\"3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,6})\",\"$1-$2\",[\"[13-9]|22\"],\"0$1\"],[\"(\\\\d)(\\\\d{7,8})\",\"$1-$2\",[\"2\"],\"0$1\"]],\"0\"],BE:[\"32\",\"00\",\"4\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:80|9)0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[239]|4[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[15-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4\"],\"0$1\"]],\"0\"],BF:[\"226\",\"00\",\"[025-7]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[025-7]\"]]]],BG:[\"359\",\"00\",\"00800\\\\d{7}|[2-7]\\\\d{6,7}|[89]\\\\d{6,8}|2\\\\d{5}\",[6,7,8,9,12],[[\"(\\\\d)(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"43[1-6]|70[1-9]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:70|8)0\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3\",[\"43[1-7]|7\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[48]|9[08]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],BH:[\"973\",\"00\",\"[136-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[13679]|8[02-4679]\"]]]],BI:[\"257\",\"00\",\"(?:[267]\\\\d|31)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2367]\"]]]],BJ:[\"229\",\"00\",\"[24-689]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-689]\"]]]],BL:[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:2[7-9]|3[3-7]|5[12]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],BM:[\"1\",\"011\",\"(?:441|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"441$1\",0,\"441\"],BN:[\"673\",\"00\",\"[2-578]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-578]\"]]]],BO:[\"591\",\"00(?:1\\\\d)?\",\"8001\\\\d{5}|(?:[2-467]\\\\d|50)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[235]|4[46]\"]],[\"(\\\\d{8})\",\"$1\",[\"[67]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\",0,\"0(1\\\\d)?\"],BQ:[\"599\",\"00\",\"(?:[34]1|7\\\\d)\\\\d{5}\",[7],0,0,0,0,0,0,\"[347]\"],BR:[\"55\",\"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)\",\"(?:[1-46-9]\\\\d\\\\d|5(?:[0-46-9]\\\\d|5[0-46-9]))\\\\d{8}|[1-9]\\\\d{9}|[3589]\\\\d{8}|[34]\\\\d{7}\",[8,9,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"300|4(?:0[02]|37)\",\"4(?:02|37)0|[34]00\"]],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:[358]|90)0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1 $2-$3\",[\"[16][1-9]|[2-57-9]\"],\"($1)\"]],\"0\",0,\"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?\",\"$2\"],BS:[\"1\",\"011\",\"(?:242|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([3-8]\\\\d{6})$|1\",\"242$1\",0,\"242\"],BT:[\"975\",\"00\",\"[17]\\\\d{7}|[2-8]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-68]|7[246]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[67]|7\"]]]],BW:[\"267\",\"00\",\"(?:0800|(?:[37]|800)\\\\d)\\\\d{6}|(?:[2-6]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[24-6]|3[15-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],BY:[\"375\",\"810\",\"(?:[12]\\\\d|33|44|902)\\\\d{7}|8(?:0[0-79]\\\\d{5,7}|[1-7]\\\\d{9})|8(?:1[0-489]|[5-79]\\\\d)\\\\d{7}|8[1-79]\\\\d{6,7}|8[0-79]\\\\d{5}|8\\\\d{5}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"800\"],\"8 $1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,4})\",\"$1 $2 $3\",[\"800\"],\"8 $1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{3})\",\"$1 $2-$3\",[\"1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])\",\"1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"1(?:[56]|7[467])|2[1-3]\"],\"8 0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-4]\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"8 $1\"]],\"8\",0,\"0|80?\",0,0,0,0,\"8~10\"],BZ:[\"501\",\"00\",\"(?:0800\\\\d|[2-8])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-8]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"0\"]]]],CA:[\"1\",\"011\",\"(?:[2-8]\\\\d|90)\\\\d{8}|3\\\\d{6}\",[7,10],0,\"1\",0,0,0,0,0,[[\"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\\\d{6}\",[10]],[\"\",[10]],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\",[10]],[\"900[2-9]\\\\d{6}\",[10]],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\\\d{6}\",[10]],0,[\"310\\\\d{4}\",[7]],0,[\"600[2-9]\\\\d{6}\",[10]]]],CC:[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],CD:[\"243\",\"00\",\"[189]\\\\d{8}|[1-68]\\\\d{6}\",[7,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[1-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],CF:[\"236\",\"00\",\"(?:[27]\\\\d{3}|8776)\\\\d{4}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[278]\"]]]],CG:[\"242\",\"00\",\"222\\\\d{6}|(?:0\\\\d|80)\\\\d{7}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[02]\"]]]],CH:[\"41\",\"00\",\"8\\\\d{11}|[2-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8[047]|90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]|81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"8\"],\"0$1\"]],\"0\"],CI:[\"225\",\"00\",\"[02]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d)(\\\\d{5})\",\"$1 $2 $3 $4\",[\"2\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"0\"]]]],CK:[\"682\",\"00\",\"[2-578]\\\\d{4}\",[5],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"[2-578]\"]]]],CL:[\"56\",\"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0\",\"12300\\\\d{6}|6\\\\d{9,10}|[2-9]\\\\d{8}\",[9,10,11],[[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"219\",\"2196\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[1-36]\"],\"($1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"9[2-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"60|8\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"60\"]]]],CM:[\"237\",\"00\",\"[26]\\\\d{8}|88\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"88\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[26]|88\"]]]],CN:[\"86\",\"00|1(?:[12]\\\\d|79)\\\\d\\\\d00\",\"1[127]\\\\d{8,9}|2\\\\d{9}(?:\\\\d{2})?|[12]\\\\d{6,7}|86\\\\d{6}|(?:1[03-689]\\\\d|6)\\\\d{7,9}|(?:[3-579]\\\\d|8[0-57-9])\\\\d{6,9}\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5,6})\",\"$1 $2\",[\"(?:10|2[0-57-9])[19]\",\"(?:10|2[0-57-9])(?:10|9[56])\",\"10(?:10|9[56])|2[0-57-9](?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]\",\"(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))[19]\",\"85[23](?:10|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:10|9[56])\",\"85[23](?:100|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:4|80)0\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|2(?:[02-57-9]|1[1-9])\",\"10|2(?:[02-57-9]|1[1-9])\",\"10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-578]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"1[3-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"[12]\"],\"0$1\",1]],\"0\",0,\"(1(?:[12]\\\\d|79)\\\\d\\\\d)|0\",0,0,0,0,\"00\"],CO:[\"57\",\"00(?:4(?:[14]4|56)|[579])\",\"(?:60\\\\d\\\\d|9101)\\\\d{6}|(?:1\\\\d|3)\\\\d{9}\",[10,11],[[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"6\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3[0-357]|91\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{7})\",\"$1-$2-$3\",[\"1\"],\"0$1\",0,\"$1 $2 $3\"]],\"0\",0,\"0([3579]|4(?:[14]4|56))?\"],CR:[\"506\",\"00\",\"(?:8\\\\d|90)\\\\d{8}|(?:[24-8]\\\\d{3}|3005)\\\\d{4}\",[8,10],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[3-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[89]\"]]],0,0,\"(19(?:0[0-2468]|1[09]|20|66|77|99))\"],CU:[\"53\",\"119\",\"(?:[2-7]|8\\\\d\\\\d)\\\\d{7}|[2-47]\\\\d{6}|[34]\\\\d{5}\",[6,7,8,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"2[1-4]|[34]\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{6,7})\",\"$1 $2\",[\"7\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[56]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"8\"],\"0$1\"]],\"0\"],CV:[\"238\",\"0\",\"(?:[2-59]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-589]\"]]]],CW:[\"599\",\"00\",\"(?:[34]1|60|(?:7|9\\\\d)\\\\d)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[3467]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9[4-8]\"]]],0,0,0,0,0,\"[69]\"],CX:[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],CY:[\"357\",\"00\",\"(?:[279]\\\\d|[58]0)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[257-9]\"]]]],CZ:[\"420\",\"00\",\"(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]|9[015-7]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"96\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]]],DE:[\"49\",\"00\",\"[2579]\\\\d{5,14}|49(?:[34]0|69|8\\\\d)\\\\d\\\\d?|49(?:37|49|60|7[089]|9\\\\d)\\\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\\\d{1,8}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}|49(?:[015]\\\\d|2[13]|31|[46][1-8])\\\\d{1,9}\",[4,5,6,7,8,9,10,11,12,13,14,15],[[\"(\\\\d{2})(\\\\d{3,13})\",\"$1 $2\",[\"3[02]|40|[68]9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,12})\",\"$1 $2\",[\"2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\",\"2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2,11})\",\"$1 $2\",[\"[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]\",\"[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"138\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{2,10})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,11})\",\"$1 $2\",[\"181\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{4,10})\",\"$1 $2 $3\",[\"1(?:3|80)|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"1[67]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,12})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"185\",\"1850\",\"18500\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"18[68]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"15[1279]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"15[03568]\",\"15(?:[0568]|31)\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{8})\",\"$1 $2\",[\"18\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{7,8})\",\"$1 $2 $3\",[\"1(?:6[023]|7)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{7})\",\"$1 $2 $3\",[\"15[279]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{8})\",\"$1 $2 $3\",[\"15\"],\"0$1\"]],\"0\"],DJ:[\"253\",\"00\",\"(?:2\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[27]\"]]]],DK:[\"45\",\"00\",\"[2-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-9]\"]]]],DM:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|767|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"767$1\",0,\"767\"],DO:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"8001|8[024]9\"],DZ:[\"213\",\"00\",\"(?:[1-4]|[5-79]\\\\d|80)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-8]\"],\"0$1\"]],\"0\"],EC:[\"593\",\"00\",\"1\\\\d{9,10}|(?:[2-7]|9\\\\d)\\\\d{7}\",[8,9,10,11],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[2-7]\"],\"(0$1)\",0,\"$1-$2-$3\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],EE:[\"372\",\"00\",\"8\\\\d{9}|[4578]\\\\d{7}|(?:[3-8]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88\",\"[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88\"]],[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[45]|8(?:00|[1-49])\",\"[45]|8(?:00[1-9]|[1-49])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],EG:[\"20\",\"00\",\"[189]\\\\d{8,9}|[24-6]\\\\d{8}|[135]\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{7,8})\",\"$1 $2\",[\"[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,7})\",\"$1 $2\",[\"1[35]|[4-6]|8[2468]|9[235-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{8})\",\"$1 $2\",[\"1\"],\"0$1\"]],\"0\"],EH:[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],0,\"0\",0,0,0,0,\"528[89]\"],ER:[\"291\",\"00\",\"[178]\\\\d{6}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[178]\"],\"0$1\"]],\"0\"],ES:[\"34\",\"00\",\"[5-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]00\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-9]\"]]]],ET:[\"251\",\"00\",\"(?:11|[2-579]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-579]\"],\"0$1\"]],\"0\"],FI:[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{5})\",\"$1\",[\"20[2-59]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"(?:[1-3]0|[68])0|70[07-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,8})\",\"$1 $2\",[\"[14]|2[09]|50|7[135]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,10})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d)(\\\\d{4,9})\",\"$1 $2\",[\"(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9\"],\"0$1\"]],\"0\",0,0,0,0,\"1[03-79]|[2-9]\",0,\"00\"],FJ:[\"679\",\"0(?:0|52)\",\"45\\\\d{5}|(?:0800\\\\d|[235-9])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[235-9]|45\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]]],0,0,0,0,0,0,0,\"00\"],FK:[\"500\",\"00\",\"[2-7]\\\\d{4}\",[5]],FM:[\"691\",\"00\",\"(?:[39]\\\\d\\\\d|820)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[389]\"]]]],FO:[\"298\",\"00\",\"[2-9]\\\\d{5}\",[6],[[\"(\\\\d{6})\",\"$1\",[\"[2-9]\"]]],0,0,\"(10(?:01|[12]0|88))\"],FR:[\"33\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0 $1\"],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[1-79]\"],\"0$1\"]],\"0\"],GA:[\"241\",\"00\",\"(?:[067]\\\\d|11)\\\\d{6}|[2-7]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"11|[67]\"],\"0$1\"]],0,0,\"0(11\\\\d{6}|60\\\\d{6}|61\\\\d{6}|6[256]\\\\d{6}|7[467]\\\\d{6})\",\"$1\"],GB:[\"44\",\"00\",\"[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}\",[7,9,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"800\",\"8001\",\"80011\",\"800111\",\"8001111\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"845\",\"8454\",\"84546\",\"845464\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"1(?:38|5[23]|69|76|94)\",\"1(?:(?:38|69)7|5(?:24|39)|768|946)\",\"1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"1(?:[2-69][02-9]|[78])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[25]|7(?:0|6[02-9])\",\"[25]|7(?:0|6(?:[03-9]|2[356]))\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1389]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"(?:1(?:1(?:3(?:[0-58]\\\\d\\\\d|73[0-35])|4(?:(?:[0-5]\\\\d|70)\\\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\\\d|6(?:[0-4]\\\\d|50))\\\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d|1(?:[0-7]\\\\d|8[0-3]))|(?:3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d)\\\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}\",[9,10]],[\"7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]],0,\" x\"],GD:[\"1\",\"011\",\"(?:473|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"473$1\",0,\"473\"],GE:[\"995\",\"00\",\"(?:[3-57]\\\\d\\\\d|800)\\\\d{6}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"32\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[57]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[348]\"],\"0$1\"]],\"0\"],GF:[\"594\",\"00\",\"[56]94\\\\d{6}|(?:80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[56]|9[47]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[89]\"],\"0$1\"]],\"0\"],GG:[\"44\",\"00\",\"(?:1481|[357-9]\\\\d{3})\\\\d{6}|8\\\\d{6}(?:\\\\d{2})?\",[7,9,10],0,\"0\",0,\"([25-9]\\\\d{5})$|0\",\"1481$1\",0,0,[[\"1481[25-9]\\\\d{5}\",[10]],[\"7(?:(?:781|839)\\\\d|911[17])\\\\d{5}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[0-3]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]]],GH:[\"233\",\"00\",\"(?:[235]\\\\d{3}|800)\\\\d{5}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[235]\"],\"0$1\"]],\"0\"],GI:[\"350\",\"00\",\"(?:[25]\\\\d|60)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2\"]]]],GL:[\"299\",\"00\",\"(?:19|[2-689]\\\\d|70)\\\\d{4}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"19|[2-9]\"]]]],GM:[\"220\",\"00\",\"[2-9]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],GN:[\"224\",\"00\",\"722\\\\d{6}|(?:3|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"3\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[67]\"]]]],GP:[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\\\d)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],GQ:[\"240\",\"00\",\"222\\\\d{6}|(?:3\\\\d|55|[89]0)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235]\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[89]\"]]]],GR:[\"30\",\"00\",\"5005000\\\\d{3}|8\\\\d{9,11}|(?:[269]\\\\d|70)\\\\d{8}\",[10,11,12],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"21|7\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2689]\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{5})\",\"$1 $2 $3\",[\"8\"]]]],GT:[\"502\",\"00\",\"80\\\\d{6}|(?:1\\\\d{3}|[2-7])\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-8]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],GU:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|671|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"671$1\",0,\"671\"],GW:[\"245\",\"00\",\"[49]\\\\d{8}|4\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"40\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"]]]],GY:[\"592\",\"001\",\"(?:[2-8]\\\\d{3}|9008)\\\\d{3}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],HK:[\"852\",\"00(?:30|5[09]|[126-9]?)\",\"8[0-46-9]\\\\d{6,7}|9\\\\d{4,7}|(?:[2-7]|9\\\\d{3})\\\\d{7}\",[5,6,7,8,9,11],[[\"(\\\\d{3})(\\\\d{2,5})\",\"$1 $2\",[\"900\",\"9003\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[1-4]|9(?:0[1-9]|[1-8])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]],0,0,0,0,0,0,0,\"00\"],HN:[\"504\",\"00\",\"8\\\\d{10}|[237-9]\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[237-9]\"]]]],HR:[\"385\",\"00\",\"(?:[24-69]\\\\d|3[0-79])\\\\d{7}|80\\\\d{5,7}|[1-79]\\\\d{7}|6\\\\d{5,6}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"6[01]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6|7[245]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-57]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],HT:[\"509\",\"00\",\"(?:[2-489]\\\\d|55)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-589]\"]]]],HU:[\"36\",\"00\",\"[235-7]\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"06 $1\"]],\"06\"],ID:[\"62\",\"00[89]\",\"(?:(?:00[1-9]|8\\\\d)\\\\d{4}|[1-36])\\\\d{6}|00\\\\d{10}|[1-9]\\\\d{8,10}|[2-9]\\\\d{7}\",[7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"15\"]],[\"(\\\\d{2})(\\\\d{5,9})\",\"$1 $2\",[\"2[124]|[36]1\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,7})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,8})\",\"$1 $2\",[\"[2-79]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{3})\",\"$1-$2-$3\",[\"8[1-35-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6,8})\",\"$1 $2\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"804\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"80\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"]],\"0\"],IE:[\"353\",\"00\",\"(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"2[24-9]|47|58|6[237-9]|9[35-9]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[45]0\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2569]|4[1-69]|7[14]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"81\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"4\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],IL:[\"972\",\"0(?:0|1[2-9])\",\"1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}\",[7,8,9,10,11,12],[[\"(\\\\d{4})(\\\\d{3})\",\"$1-$2\",[\"125\"]],[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"121\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[2-489]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"12\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1-$2\",[\"159\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"1[7-9]\"]],[\"(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3-$4\",[\"15\"]]],\"0\"],IM:[\"44\",\"00\",\"1624\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([25-8]\\\\d{5})$|0\",\"1624$1\",0,\"74576|(?:16|7[56])24\"],IN:[\"91\",\"00\",\"(?:000800|[2-9]\\\\d\\\\d)\\\\d{7}|1\\\\d{7,12}\",[8,9,10,11,12,13],[[\"(\\\\d{8})\",\"$1\",[\"5(?:0|2[23]|3[03]|[67]1|88)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)\"],0,1],[\"(\\\\d{4})(\\\\d{4,5})\",\"$1 $2\",[\"180\",\"1800\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"140\"],0,1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"11|2[02]|33|4[04]|79[1-7]|80[2-46]\",\"11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])\",\"11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807\",\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]\",\"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\\\d|7(?:1(?:[013-8]\\\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\\\d|5[0-367])|70[13-7]))[2-7]\"],\"0$1\",1],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"[6-9]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{2,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:6|8[06])\",\"1(?:6|8[06]0)\"],0,1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"18\"],0,1]],\"0\"],IO:[\"246\",\"00\",\"3\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"3\"]]]],IQ:[\"964\",\"00\",\"(?:1|7\\\\d\\\\d)\\\\d{7}|[2-6]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],IR:[\"98\",\"00\",\"[1-9]\\\\d{9}|(?:[1-8]\\\\d\\\\d|9)\\\\d{3,4}\",[4,5,6,7,10],[[\"(\\\\d{4,5})\",\"$1\",[\"96\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,5})\",\"$1 $2\",[\"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-8]\"],\"0$1\"]],\"0\"],IS:[\"354\",\"00|1(?:0(?:01|[12]0)|100)\",\"(?:38\\\\d|[4-9])\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,0,\"00\"],IT:[\"39\",\"00\",\"0\\\\d{5,10}|1\\\\d{8,10}|3(?:[0-8]\\\\d{7,10}|9\\\\d{7,8})|(?:43|55|70)\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?\",[6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"0[26]\"]],[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"0[13-57-9][0159]|8(?:03|4[17]|9[2-5])\",\"0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))\"]],[\"(\\\\d{4})(\\\\d{2,6})\",\"$1 $2\",[\"0(?:[13-579][2-46-8]|8[236-8])\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"894\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[26]|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1(?:44|[679])|[378]|43\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[13-57-9][0159]|14\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{5})\",\"$1 $2 $3\",[\"0[26]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,[[\"0669[0-79]\\\\d{1,6}|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}\"],[\"3[2-9]\\\\d{7,8}|(?:31|43)\\\\d{8}\",[9,10]],[\"80(?:0\\\\d{3}|3)\\\\d{3}\",[6,9]],[\"(?:0878\\\\d{3}|89(?:2\\\\d|3[04]|4(?:[0-4]|[5-9]\\\\d\\\\d)|5[0-4]))\\\\d\\\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\\\d{6}\",[6,8,9,10]],[\"1(?:78\\\\d|99)\\\\d{6}\",[9,10]],0,0,0,[\"55\\\\d{8}\",[10]],[\"84(?:[08]\\\\d{3}|[17])\\\\d{3}\",[6,9]]]],JE:[\"44\",\"00\",\"1534\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([0-24-8]\\\\d{5})$|0\",\"1534$1\",0,0,[[\"1534[0-24-8]\\\\d{5}\"],[\"7(?:(?:(?:50|82)9|937)\\\\d|7(?:00[378]|97\\\\d))\\\\d{5}\"],[\"80(?:07(?:35|81)|8901)\\\\d{4}\"],[\"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}\"],[\"701511\\\\d{4}\"],0,[\"(?:3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\\\d{4})\\\\d{4}\"],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\"],[\"56\\\\d{8}\"]]],JM:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|658|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"658|876\"],JO:[\"962\",\"00\",\"(?:(?:[2689]|7\\\\d)\\\\d|32|53)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2356]|87\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"70\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],JP:[\"81\",\"010\",\"00[1-9]\\\\d{6,14}|[257-9]\\\\d{9}|(?:00|[1-9]\\\\d\\\\d)\\\\d{6}\",[8,9,10,11,12,13,14,15,16,17],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"(?:12|57|99)0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"60\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]|4(?:2[09]|7[01])\",\"[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3\",[\"[14]|[289][2-9]|5[3-9]|7[2-4679]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"800\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[257-9]\"],\"0$1\"]],\"0\",0,\"(000[259]\\\\d{6})$|(?:(?:003768)0?)|0\",\"$1\"],KE:[\"254\",\"000\",\"(?:[17]\\\\d\\\\d|900)\\\\d{6}|(?:2|80)0\\\\d{6,7}|[4-6]\\\\d{6,8}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"[24-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[17]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],KG:[\"996\",\"00\",\"8\\\\d{9}|[235-9]\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3(?:1[346]|[24-79])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235-79]|88\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{2,3})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],KH:[\"855\",\"00[14-9]\",\"1\\\\d{9}|[1-9]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],KI:[\"686\",\"00\",\"(?:[37]\\\\d|6[0-79])\\\\d{6}|(?:[2-48]\\\\d|50)\\\\d{3}\",[5,8],0,\"0\"],KM:[\"269\",\"00\",\"[3478]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[3478]\"]]]],KN:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"869$1\",0,\"869\"],KP:[\"850\",\"00|99\",\"85\\\\d{6}|(?:19\\\\d|[2-7])\\\\d{7}\",[8,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"]],\"0\"],KR:[\"82\",\"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))\",\"00[1-9]\\\\d{8,11}|(?:[12]|5\\\\d{3})\\\\d{7}|[13-6]\\\\d{9}|(?:[1-6]\\\\d|80)\\\\d{7}|[3-6]\\\\d{4,5}|(?:00|7)0\\\\d{8}\",[5,6,8,9,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1-$2\",[\"(?:3[1-3]|[46][1-4]|5[1-5])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"1\"]],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"[1346]|5[1-5]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1-$2-$3\",[\"5\"],\"0$1\"]],\"0\",0,\"0(8(?:[1-46-8]|5\\\\d\\\\d))?\"],KW:[\"965\",\"00\",\"18\\\\d{5}|(?:[2569]\\\\d|41)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[169]|2(?:[235]|4[1-35-9])|52\"]],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[245]\"]]]],KY:[\"1\",\"011\",\"(?:345|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"345$1\",0,\"345\"],KZ:[\"7\",\"810\",\"(?:33622|8\\\\d{8})\\\\d{5}|[78]\\\\d{9}\",[10,14],0,\"8\",0,0,0,0,\"33|7\",0,\"8~10\"],LA:[\"856\",\"00\",\"[23]\\\\d{9}|3\\\\d{8}|(?:[235-8]\\\\d|41)\\\\d{6}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2[13]|3[14]|[4-8]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"30[0135-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\"],LB:[\"961\",\"00\",\"[27-9]\\\\d{7}|[13-9]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27-9]\"]]],\"0\"],LC:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|758|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-8]\\\\d{6})$|1\",\"758$1\",0,\"758\"],LI:[\"423\",\"00\",\"[68]\\\\d{8}|(?:[2378]\\\\d|90)\\\\d{5}\",[7,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2379]|8(?:0[09]|7)\",\"[2379]|8(?:0(?:02|9)|7)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"69\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]],\"0\",0,\"(1001)|0\"],LK:[\"94\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[1-689]\"],\"0$1\"]],\"0\"],LR:[\"231\",\"00\",\"(?:[245]\\\\d|33|77|88)\\\\d{7}|(?:2\\\\d|[4-6])\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4[67]|[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-578]\"],\"0$1\"]],\"0\"],LS:[\"266\",\"00\",\"(?:[256]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2568]\"]]]],LT:[\"370\",\"00\",\"(?:[3469]\\\\d|52|[78]0)\\\\d{6}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"52[0-7]\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0 $1\",1],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"37|4(?:[15]|6[1-8])\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[3-6]\"],\"(0-$1)\",1]],\"0\",0,\"[08]\"],LU:[\"352\",\"00\",\"35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}\",[4,5,6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"20[2-689]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"80[01]|90[015]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"20\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4 $5\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})\",\"$1 $2 $3 $4\",[\"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]\"]]],0,0,\"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)\"],LV:[\"371\",\"00\",\"(?:[268]\\\\d|90)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[269]|8[01]\"]]]],LY:[\"218\",\"00\",\"[2-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"[2-9]\"],\"0$1\"]],\"0\"],MA:[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5[45]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1-$2\",[\"5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"8\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1-$2\",[\"[5-7]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"5(?:2(?:[0-25-79]\\\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\\\d)\\\\d{5}\"],[\"(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:[0167]\\\\d|2[0-4]|5[01]|8[0-3]))\\\\d{6}\"],[\"80[0-7]\\\\d{6}\"],[\"89\\\\d{7}\"],0,0,0,0,[\"(?:592(?:4[0-2]|93)|80[89]\\\\d\\\\d)\\\\d{4}\"]]],MC:[\"377\",\"00\",\"(?:[3489]|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[389]\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"6\"],\"0$1\"]],\"0\"],MD:[\"373\",\"00\",\"(?:[235-7]\\\\d|[89]0)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"22|3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[25-7]\"],\"0$1\"]],\"0\"],ME:[\"382\",\"00\",\"(?:20|[3-79]\\\\d)\\\\d{6}|80\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"0$1\"]],\"0\"],MF:[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],MG:[\"261\",\"00\",\"[23]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\",0,\"([24-9]\\\\d{6})$|0\",\"20$1\"],MH:[\"692\",\"011\",\"329\\\\d{4}|(?:[256]\\\\d|45)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-6]\"]]],\"1\"],MK:[\"389\",\"00\",\"[2-578]\\\\d{7}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2|34[47]|4(?:[37]7|5[47]|64)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[347]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[58]\"],\"0$1\"]],\"0\"],ML:[\"223\",\"00\",\"[24-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-9]\"]]]],MM:[\"95\",\"00\",\"1\\\\d{5,7}|95\\\\d{6}|(?:[4-7]|9[0-46-9])\\\\d{6,8}|(?:2|8\\\\d)\\\\d{5,8}\",[6,7,8,9,10],[[\"(\\\\d)(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"16|2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[4-7]|8[1-35]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4,6})\",\"$1 $2 $3\",[\"9(?:2[0-4]|[35-9]|4[137-9])\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"92\"],\"0$1\"],[\"(\\\\d)(\\\\d{5})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],MN:[\"976\",\"001\",\"[12]\\\\d{7,9}|[5-9]\\\\d{7}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[12]1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[12]2[1-3]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])\",\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"[12]\"],\"0$1\"]],\"0\"],MO:[\"853\",\"00\",\"0800\\\\d{3}|(?:28|[68]\\\\d)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[268]\"]]]],MP:[\"1\",\"011\",\"[58]\\\\d{9}|(?:67|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"670$1\",0,\"670\"],MQ:[\"596\",\"00\",\"596\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],MR:[\"222\",\"00\",\"(?:[2-4]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-48]\"]]]],MS:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|664|900)\\\\d{7}\",[10],0,\"1\",0,\"([34]\\\\d{6})$|1\",\"664$1\",0,\"664\"],MT:[\"356\",\"00\",\"3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2357-9]\"]]]],MU:[\"230\",\"0(?:0|[24-7]0|3[03])\",\"(?:[57]|8\\\\d\\\\d)\\\\d{7}|[2-468]\\\\d{6}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-46]|8[013]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[57]\"]],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"8\"]]],0,0,0,0,0,0,0,\"020\"],MV:[\"960\",\"0(?:0|19)\",\"(?:800|9[0-57-9]\\\\d)\\\\d{7}|[34679]\\\\d{6}\",[7,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[34679]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]],0,0,0,0,0,0,0,\"00\"],MW:[\"265\",\"00\",\"(?:[1289]\\\\d|31|77)\\\\d{7}|1\\\\d{6}\",[7,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[137-9]\"],\"0$1\"]],\"0\"],MX:[\"52\",\"0[09]\",\"[2-9]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"33|5[56]|81\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-9]\"]]],0,0,0,0,0,0,0,\"00\"],MY:[\"60\",\"00\",\"1\\\\d{8,9}|(?:3\\\\d|[4-9])\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"[4-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1-$2 $3\",[\"1(?:[02469]|[378][1-9]|53)|8\",\"1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"3\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3-$4\",[\"1(?:[367]|80)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"15\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"1\"],\"0$1\"]],\"0\"],MZ:[\"258\",\"00\",\"(?:2|8\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2|8[2-79]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],NA:[\"264\",\"00\",\"[68]\\\\d{7,8}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"87\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],NC:[\"687\",\"00\",\"(?:050|[2-57-9]\\\\d\\\\d)\\\\d{3}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1.$2.$3\",[\"[02-57-9]\"]]]],NE:[\"227\",\"00\",\"[027-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"08\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[089]|2[013]|7[0467]\"]]]],NF:[\"672\",\"00\",\"[13]\\\\d{5}\",[6],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"1[0-3]\"]],[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"[13]\"]]],0,0,\"([0-258]\\\\d{4})$\",\"3$1\"],NG:[\"234\",\"009\",\"2[0-24-9]\\\\d{8}|[78]\\\\d{10,13}|[7-9]\\\\d{9}|[1-9]\\\\d{7}|[124-7]\\\\d{6}\",[7,8,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"78\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]|9(?:0[3-9]|[1-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-6]|7(?:0[0-689]|[1-79])|8[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"20[129]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})(\\\\d{5,6})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"]],\"0\"],NI:[\"505\",\"00\",\"(?:1800|[25-8]\\\\d{3})\\\\d{4}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[125-8]\"]]]],NL:[\"31\",\"00\",\"(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|8\\\\d{6,9}|9\\\\d{6,10}|1\\\\d{4,5}\",[5,6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{4,7})\",\"$1 $2\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"66\"],\"0$1\"],[\"(\\\\d)(\\\\d{8})\",\"$1 $2\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[16-8]|2[259]|3[124]|4[17-9]|5[124679]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-578]|91\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],NO:[\"47\",\"00\",\"(?:0|[2-9]\\\\d{3})\\\\d{4}\",[5,8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]\"]]],0,0,0,0,0,\"[02-689]|7[0-8]\"],NP:[\"977\",\"00\",\"(?:1\\\\d|9)\\\\d{9}|[1-9]\\\\d{7}\",[8,10,11],[[\"(\\\\d)(\\\\d{7})\",\"$1-$2\",[\"1[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1-$2\",[\"1[01]|[2-8]|9(?:[1-59]|[67][2-6])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"9\"]]],\"0\"],NR:[\"674\",\"00\",\"(?:444|(?:55|8\\\\d)\\\\d|666)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-68]\"]]]],NU:[\"683\",\"00\",\"(?:[4-7]|888\\\\d)\\\\d{3}\",[4,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"8\"]]]],NZ:[\"64\",\"0(?:0|161)\",\"[1289]\\\\d{9}|50\\\\d{5}(?:\\\\d{2,3})?|[27-9]\\\\d{7,8}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|8\\\\d{4,6}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,8})\",\"$1 $2\",[\"8[1-79]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"50[036-8]|8|90\",\"50(?:[0367]|88)|8|90\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"24|[346]|7[2-57-9]|9[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:10|74)|[589]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1|2[028]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,5})\",\"$1 $2 $3\",[\"2(?:[169]|7[0-35-9])|7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"00\"],OM:[\"968\",\"00\",\"(?:1505|[279]\\\\d{3}|500)\\\\d{4}|800\\\\d{5,6}\",[7,8,9],[[\"(\\\\d{3})(\\\\d{4,6})\",\"$1 $2\",[\"[58]\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[179]\"]]]],PA:[\"507\",\"00\",\"(?:00800|8\\\\d{3})\\\\d{6}|[68]\\\\d{7}|[1-57-9]\\\\d{6}\",[7,8,10,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[1-57-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[68]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]]],PE:[\"51\",\"00|19(?:1[124]|77|90)00\",\"(?:[14-8]|9\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[4-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"]]],\"0\",0,0,0,0,0,0,\"00\",\" Anexo \"],PF:[\"689\",\"00\",\"4\\\\d{5}(?:\\\\d{2})?|8\\\\d{7,8}\",[6,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4|8[7-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],PG:[\"675\",\"00|140[1-3]\",\"(?:180|[78]\\\\d{3})\\\\d{4}|(?:[2-589]\\\\d|64)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"18|[2-69]|85\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[78]\"]]],0,0,0,0,0,0,0,\"00\"],PH:[\"63\",\"00\",\"(?:[2-7]|9\\\\d)\\\\d{8}|2\\\\d{5}|(?:1800|8)\\\\d{7,9}\",[6,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"2\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2\",\"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"346|4(?:27|9[35])|883\",\"3469|4(?:279|9(?:30|56))|8834\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|8[2-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{4})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"1\"]]],\"0\"],PK:[\"92\",\"00\",\"122\\\\d{6}|[24-8]\\\\d{10,11}|9(?:[013-9]\\\\d{8,10}|2(?:[01]\\\\d\\\\d|2(?:[06-8]\\\\d|1[01]))\\\\d{7})|(?:[2-8]\\\\d{3}|92(?:[0-7]\\\\d|8[1-9]))\\\\d{6}|[24-9]\\\\d{8}|[89]\\\\d{7}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,7})\",\"$1 $2 $3\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{6,7})\",\"$1 $2\",[\"2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])\",\"9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{7,8})\",\"$1 $2\",[\"(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"58\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[24-9]\"],\"(0$1)\"]],\"0\"],PL:[\"48\",\"00\",\"(?:6|8\\\\d\\\\d)\\\\d{7}|[1-9]\\\\d{6}(?:\\\\d{2})?|[26]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{5})\",\"$1\",[\"19\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"11|20|64\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1\",\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"64\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[2-8]|[2-7]|8[1-79]|9[145]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"8\"]]]],PM:[\"508\",\"00\",\"[45]\\\\d{5}|(?:708|80\\\\d)\\\\d{6}\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[45]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],PR:[\"1\",\"011\",\"(?:[589]\\\\d\\\\d|787)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"787|939\"],PS:[\"970\",\"00\",\"[2489]2\\\\d{6}|(?:1\\\\d|5)\\\\d{8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2489]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],PT:[\"351\",\"00\",\"1693\\\\d{5}|(?:[26-9]\\\\d|30)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2[12]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"16|[236-9]\"]]]],PW:[\"680\",\"01[12]\",\"(?:[24-8]\\\\d\\\\d|345|900)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],PY:[\"595\",\"00\",\"59\\\\d{4,6}|9\\\\d{5,10}|(?:[2-46-8]\\\\d|5[0-8])\\\\d{4,7}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"[2-9]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{4,5})\",\"$1 $2\",[\"2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"87\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"9(?:[5-79]|8[1-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"]]],\"0\"],QA:[\"974\",\"00\",\"800\\\\d{4}|(?:2|800)\\\\d{6}|(?:0080|[3-7])\\\\d{7}\",[7,8,9,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"2[16]|8\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[3-7]\"]]]],RE:[\"262\",\"00\",\"(?:26|[689]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2689]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"26(?:2\\\\d\\\\d|3(?:0\\\\d|1[0-6]))\\\\d{4}\"],[\"69(?:2\\\\d\\\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\\\d{4}\"],[\"80\\\\d{7}\"],[\"89[1-37-9]\\\\d{6}\"],0,0,0,0,[\"9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\\\d{4}\"],[\"8(?:1[019]|2[0156]|84|90)\\\\d{6}\"]]],RO:[\"40\",\"00\",\"(?:[236-8]\\\\d|90)\\\\d{7}|[23]\\\\d{5}\",[6,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"2[3-6]\",\"2[3-6]\\\\d9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"219|31\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[23]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[236-9]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\" int \"],RS:[\"381\",\"00\",\"38[02-9]\\\\d{6,9}|6\\\\d{7,9}|90\\\\d{4,8}|38\\\\d{5,6}|(?:7\\\\d\\\\d|800)\\\\d{3,9}|(?:[12]\\\\d|3[0-79])\\\\d{5,10}\",[6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3,9})\",\"$1 $2\",[\"(?:2[389]|39)0|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5,10})\",\"$1 $2\",[\"[1-36]\"],\"0$1\"]],\"0\"],RU:[\"7\",\"810\",\"8\\\\d{13}|[347-9]\\\\d{9}\",[10,14],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-8]|2[1-9])\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2\"],\"8 ($1)\",1],[\"(\\\\d{5})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-68]|2[1-9])\",\"7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))\",\"7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[349]|8(?:[02-7]|1[1-8])\"],\"8 ($1)\",1],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"8\"],\"8 ($1)\"]],\"8\",0,0,0,0,\"3[04-689]|[489]\",0,\"8~10\"],RW:[\"250\",\"00\",\"(?:06|[27]\\\\d\\\\d|[89]00)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"]],\"0\"],SA:[\"966\",\"00\",\"92\\\\d{7}|(?:[15]|8\\\\d)\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\"],SB:[\"677\",\"0[01]\",\"[6-9]\\\\d{6}|[1-6]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])\"]]]],SC:[\"248\",\"010|0[0-2]\",\"(?:[2489]\\\\d|64)\\\\d{5}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[246]|9[57]\"]]],0,0,0,0,0,0,0,\"00\"],SD:[\"249\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],SE:[\"46\",\"00\",\"(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"20\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"9(?:00|39|44|9)\"],\"0$1\",0,\"$1 $2\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3\",[\"[12][136]|3[356]|4[0246]|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{3})\",\"$1-$2 $3\",[\"9(?:00|39|44)\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"10|7\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1-$2 $3 $4\",[\"9\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4 $5\",[\"[26]\"],\"0$1\",0,\"$1 $2 $3 $4 $5\"]],\"0\"],SG:[\"65\",\"0[0-3]\\\\d\",\"(?:(?:1\\\\d|8)\\\\d\\\\d|7000)\\\\d{7}|[3689]\\\\d{7}\",[8,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[369]|8(?:0[1-9]|[1-9])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],SH:[\"290\",\"00\",\"(?:[256]\\\\d|8)\\\\d{3}\",[4,5],0,0,0,0,0,0,\"[256]\"],SI:[\"386\",\"00|10(?:22|66|88|99)\",\"[1-7]\\\\d{7}|8\\\\d{4,7}|90\\\\d{4,6}\",[5,6,7,8],[[\"(\\\\d{2})(\\\\d{3,6})\",\"$1 $2\",[\"8[09]|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"59|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37][01]|4[0139]|51|6\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-57]\"],\"(0$1)\"]],\"0\",0,0,0,0,0,0,\"00\"],SJ:[\"47\",\"00\",\"0\\\\d{4}|(?:[489]\\\\d|79)\\\\d{6}\",[5,8],0,0,0,0,0,0,\"79\"],SK:[\"421\",\"00\",\"[2-689]\\\\d{8}|[2-59]\\\\d{6}|[2-5]\\\\d{5}\",[6,7,9],[[\"(\\\\d)(\\\\d{2})(\\\\d{3,4})\",\"$1 $2 $3\",[\"21\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-5][1-8]1\",\"[3-5][1-8]1[67]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[689]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"[3-5]\"],\"0$1\"]],\"0\"],SL:[\"232\",\"00\",\"(?:[237-9]\\\\d|66)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[236-9]\"],\"(0$1)\"]],\"0\"],SM:[\"378\",\"00\",\"(?:0549|[5-7]\\\\d)\\\\d{6}\",[8,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-7]\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"0\"]]],0,0,\"([89]\\\\d{5})$\",\"0549$1\"],SN:[\"221\",\"00\",\"(?:[378]\\\\d|93)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[379]\"]]]],SO:[\"252\",\"00\",\"[346-9]\\\\d{8}|[12679]\\\\d{7}|[1-5]\\\\d{6}|[1348]\\\\d{5}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"8[125]\"]],[\"(\\\\d{6})\",\"$1\",[\"[134]\"]],[\"(\\\\d)(\\\\d{6})\",\"$1 $2\",[\"[15]|2[0-79]|3[0-46-8]|4[0-7]\"]],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"(?:2|90)4|[67]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[348]|64|79|90\"]],[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"1|28|6[0-35-9]|77|9[2-9]\"]]],\"0\"],SR:[\"597\",\"00\",\"(?:[2-5]|68|[78]\\\\d)\\\\d{5}\",[6,7],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"56\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1-$2\",[\"[2-5]\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[6-8]\"]]]],SS:[\"211\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],ST:[\"239\",\"00\",\"(?:22|9\\\\d)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[29]\"]]]],SV:[\"503\",\"00\",\"[267]\\\\d{7}|(?:80\\\\d|900)\\\\d{4}(?:\\\\d{4})?\",[7,8,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[89]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[267]\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]]],SX:[\"1\",\"011\",\"7215\\\\d{6}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"(5\\\\d{6})$|1\",\"721$1\",0,\"721\"],SY:[\"963\",\"00\",\"[1-39]\\\\d{8}|[1-5]\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-5]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\",1]],\"0\"],SZ:[\"268\",\"00\",\"0800\\\\d{4}|(?:[237]\\\\d|900)\\\\d{6}\",[8,9],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[0237]\"]],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"9\"]]]],TA:[\"290\",\"00\",\"8\\\\d{3}\",[4],0,0,0,0,0,0,\"8\"],TC:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|649|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-479]\\\\d{6})$|1\",\"649$1\",0,\"649\"],TD:[\"235\",\"00|16\",\"(?:22|[689]\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[26-9]\"]]],0,0,0,0,0,0,0,\"00\"],TG:[\"228\",\"00\",\"[279]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[279]\"]]]],TH:[\"66\",\"00[1-9]\",\"(?:001800|[2-57]|[689]\\\\d)\\\\d{7}|1\\\\d{7,9}\",[8,9,10,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[13-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],TJ:[\"992\",\"810\",\"[0-57-9]\\\\d{8}\",[9],[[\"(\\\\d{6})(\\\\d)(\\\\d{2})\",\"$1 $2 $3\",[\"331\",\"3317\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"44[02-479]|[34]7\"]],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[1245]|3[12])\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[0-57-9]\"]]],0,0,0,0,0,0,0,\"8~10\"],TK:[\"690\",\"00\",\"[2-47]\\\\d{3,6}\",[4,5,6,7]],TL:[\"670\",\"00\",\"7\\\\d{7}|(?:[2-47]\\\\d|[89]0)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-489]|70\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"7\"]]]],TM:[\"993\",\"810\",\"(?:[1-6]\\\\d|71)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"12\"],\"(8 $1)\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-5]\"],\"(8 $1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[67]\"],\"8 $1\"]],\"8\",0,0,0,0,0,0,\"8~10\"],TN:[\"216\",\"00\",\"[2-57-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-57-9]\"]]]],TO:[\"676\",\"00\",\"(?:0800|(?:[5-8]\\\\d\\\\d|999)\\\\d)\\\\d{3}|[2-8]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1-$2\",[\"[2-4]|50|6[09]|7[0-24-69]|8[05]\"]],[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]]]],TR:[\"90\",\"00\",\"4\\\\d{6}|8\\\\d{11,12}|(?:[2-58]\\\\d\\\\d|900)\\\\d{7}\",[7,10,12,13],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"512|8[01589]|90\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5(?:[0-59]|61)\",\"5(?:[0-59]|61[06])\",\"5(?:[0-59]|61[06]1)\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24][1-8]|3[1-9]\"],\"(0$1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{6,7})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1]],\"0\"],TT:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-46-8]\\\\d{6})$|1\",\"868$1\",0,\"868\"],TV:[\"688\",\"00\",\"(?:2|7\\\\d\\\\d|90)\\\\d{4}\",[5,6,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],TW:[\"886\",\"0(?:0[25-79]|19)\",\"[2-689]\\\\d{8}|7\\\\d{9,10}|[2-8]\\\\d{7}|2\\\\d{6}\",[7,8,9,10,11],[[\"(\\\\d{2})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"202\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[258]0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]\",\"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\"#\"],TZ:[\"255\",\"00[056]\",\"(?:[25-8]\\\\d|41|90)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[24]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[67]\"],\"0$1\"]],\"0\"],UA:[\"380\",\"00\",\"[89]\\\\d{9}|[3-9]\\\\d{8}\",[9,10],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]\",\"6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])\",\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|89|9[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"0~0\"],UG:[\"256\",\"00[057]\",\"800\\\\d{6}|(?:[29]0|[347]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"202\",\"2024\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[27-9]|4(?:6[45]|[7-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[34]\"],\"0$1\"]],\"0\"],US:[\"1\",\"011\",\"[2-9]\\\\d{9}|3\\\\d{6}\",[10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"310\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"($1) $2-$3\",[\"[2-9]\"],0,1,\"$1-$2-$3\"]],\"1\",0,0,0,0,0,[[\"(?:3052(?:0[0-8]|[1-9]\\\\d)|5056(?:[0-35-9]\\\\d|4[468])|7302[0-4]\\\\d)\\\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\\\d{6}\"],[\"\"],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"],[\"900[2-9]\\\\d{6}\"],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\\\d{6}\"],0,0,0,[\"305209\\\\d{4}\"]]],UY:[\"598\",\"0(?:0|1[3-9]\\\\d)\",\"0004\\\\d{2,9}|[1249]\\\\d{7}|(?:[49]\\\\d|80)\\\\d{5}\",[6,7,8,9,10,11,12,13],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[49]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[124]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3 $4\",[\"0\"]]],\"0\",0,0,0,0,0,0,\"00\",\" int. \"],UZ:[\"998\",\"00\",\"(?:20|33|[5-79]\\\\d|88)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[235-9]\"]]]],VA:[\"39\",\"00\",\"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\",[6,7,8,9,10,11],0,0,0,0,0,0,\"06698\"],VC:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|784|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"784$1\",0,\"784\"],VE:[\"58\",\"00\",\"[68]00\\\\d{7}|(?:[24]\\\\d|[59]0)\\\\d{8}\",[10],[[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"[24-689]\"],\"0$1\"]],\"0\"],VG:[\"1\",\"011\",\"(?:284|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-578]\\\\d{6})$|1\",\"284$1\",0,\"284\"],VI:[\"1\",\"011\",\"[58]\\\\d{9}|(?:34|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"340$1\",0,\"340\"],VN:[\"84\",\"00\",\"[12]\\\\d{9}|[135-9]\\\\d{8}|[16]\\\\d{7}|[16-8]\\\\d{6}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"1\"],0,1],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[357-9]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[48]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\",1]],\"0\"],VU:[\"678\",\"00\",\"[57-9]\\\\d{6}|(?:[238]\\\\d|48)\\\\d{3}\",[5,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[57-9]\"]]]],WF:[\"681\",\"00\",\"(?:40|72)\\\\d{4}|8\\\\d{5}(?:\\\\d{3})?\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[478]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],WS:[\"685\",\"0\",\"(?:[2-6]|8\\\\d{5})\\\\d{4}|[78]\\\\d{6}|[68]\\\\d{5}\",[5,6,7,10],[[\"(\\\\d{5})\",\"$1\",[\"[2-5]|6[1-9]\"]],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"[68]\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],XK:[\"383\",\"00\",\"2\\\\d{7,8}|3\\\\d{7,11}|(?:4\\\\d\\\\d|[89]00)\\\\d{5}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2|39\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7,10})\",\"$1 $2\",[\"3\"],\"0$1\"]],\"0\"],YE:[\"967\",\"00\",\"(?:1|7\\\\d)\\\\d{7}|[1-7]\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-6]|7(?:[24-6]|8[0-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],YT:[\"262\",\"00\",\"(?:80|9\\\\d)\\\\d{7}|(?:26|63)9\\\\d{6}\",[9],0,\"0\",0,0,0,0,0,[[\"269(?:0[0-467]|15|5[0-4]|6\\\\d|[78]0)\\\\d{4}\"],[\"639(?:0[0-79]|1[019]|[267]\\\\d|3[09]|40|5[05-9]|9[04-79])\\\\d{4}\"],[\"80\\\\d{7}\"],0,0,0,0,0,[\"9(?:(?:39|47)8[01]|769\\\\d)\\\\d{4}\"]]],ZA:[\"27\",\"00\",\"[1-79]\\\\d{8}|8\\\\d{4,9}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"860\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],ZM:[\"260\",\"00\",\"800\\\\d{6}|(?:21|63|[79]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[28]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[79]\"],\"0$1\"]],\"0\"],ZW:[\"263\",\"00\",\"2(?:[0-57-9]\\\\d{6,8}|6[0-24-9]\\\\d{6,7})|[38]\\\\d{9}|[35-8]\\\\d{8}|[3-6]\\\\d{7}|[1-689]\\\\d{6}|[1-3569]\\\\d{5}|[1356]\\\\d{4}\",[5,6,7,8,9,10],[[\"(\\\\d{3})(\\\\d{3,5})\",\"$1 $2\",[\"2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"80\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2\",\"2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)\",\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"29[013-9]|39|54\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,5})\",\"$1 $2\",[\"(?:25|54)8\",\"258|5483\"],\"0$1\"]],\"0\"]},nonGeographic:{800:[\"800\",0,\"(?:00|[1-9]\\\\d)\\\\d{6}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"\\\\d\"]]],0,0,0,0,0,0,[0,0,[\"(?:00|[1-9]\\\\d)\\\\d{6}\"]]],808:[\"808\",0,\"[1-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[1-9]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[\"[1-9]\\\\d{7}\"]]],870:[\"870\",0,\"7\\\\d{11}|[35-7]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[35-7]\"]]],0,0,0,0,0,0,[0,[\"(?:[356]|774[45])\\\\d{8}|7[6-8]\\\\d{7}\"]]],878:[\"878\",0,\"10\\\\d{10}\",[12],[[\"(\\\\d{2})(\\\\d{5})(\\\\d{5})\",\"$1 $2 $3\",[\"1\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"10\\\\d{10}\"]]],881:[\"881\",0,\"6\\\\d{9}|[0-36-9]\\\\d{8}\",[9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"[0-37-9]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{5,6})\",\"$1 $2 $3\",[\"6\"]]],0,0,0,0,0,0,[0,[\"6\\\\d{9}|[0-36-9]\\\\d{8}\"]]],882:[\"882\",0,\"[13]\\\\d{6}(?:\\\\d{2,5})?|[19]\\\\d{7}|(?:[25]\\\\d\\\\d|4)\\\\d{7}(?:\\\\d{2})?\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"16|342\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"49\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"1[36]|9\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"3[23]\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"16\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|23|3(?:[15]|4[57])|4|51\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"34\"]],[\"(\\\\d{2})(\\\\d{4,5})(\\\\d{5})\",\"$1 $2 $3\",[\"[1-35]\"]]],0,0,0,0,0,0,[0,[\"342\\\\d{4}|(?:337|49)\\\\d{6}|(?:3(?:2|47|7\\\\d{3})|50\\\\d{3})\\\\d{7}\",[7,8,9,10,12]],0,0,0,0,0,0,[\"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\\\d{4}|6\\\\d{5,10})|(?:345\\\\d|9[89])\\\\d{6}|(?:10|2(?:3|85\\\\d)|3(?:[15]|[69]\\\\d\\\\d)|4[15-8]|51)\\\\d{8}\"]]],883:[\"883\",0,\"(?:[1-4]\\\\d|51)\\\\d{6,10}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,8})\",\"$1 $2 $3\",[\"[14]|2[24-689]|3[02-689]|51[24-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"510\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"21\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"51[13]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[235]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"(?:2(?:00\\\\d\\\\d|10)|(?:370[1-9]|51\\\\d0)\\\\d)\\\\d{7}|51(?:00\\\\d{5}|[24-9]0\\\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\\\d{5,9}\"]]],888:[\"888\",0,\"\\\\d{11}\",[11],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\"]],0,0,0,0,0,0,[0,0,0,0,0,0,[\"\\\\d{11}\"]]],979:[\"979\",0,\"[1359]\\\\d{8}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1359]\"]]],0,0,0,0,0,0,[0,0,0,[\"[1359]\\\\d{8}\"]]]}}},51834:function(e,t,r){\"use strict\";r.d(t,{R:function(){return V}});var n=r(89803),i=r(31767),s=r(18822),o=function(){var e;function t(e){var r=e.onCountryChange,n=e.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.onCountryChange=r,this.onCallingCodeChange=n}return e=[{key:\"reset\",value:function(e){var t=e.country,r=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits=\"\",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,r)}},{key:\"resetNationalSignificantNumber\",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:\"update\",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];this[n]=e[n]}}},{key:\"initCountryAndCallingCode\",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:\"setCountry\",value:function(e){this.country=e,this.onCountryChange(e)}},{key:\"setCallingCode\",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:\"startInternationalNumber\",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:\"appendDigits\",value:function(e){this.digits+=e}},{key:\"appendNationalSignificantNumberDigits\",value:function(e){this.nationalSignificantNumber+=e}},{key:\"getNationalDigits\",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:\"getDigitsWithoutInternationalPrefix\",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}();function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var l=/x/;function u(e,t){if(t<1)return\"\";for(var r=\"\";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function c(e,t){return\")\"===e[t]&&t++,function(e){for(var t=[],r=0;r<e.length;)\"(\"===e[r]?t.push(r):\")\"===e[r]&&t.pop(),r++;var n=0,i=\"\";t.push(e.length);for(var s=0;s<t.length;s++){var o=t[s];i+=e.slice(n,o),n=o+1}return i}(e.slice(0,t))}var d=r(23419),h=r(43829),f=r(71669);function p(e,t,r){var n,i=r.metadata,s=r.useNationalPrefixFormattingRule,o=r.getSeparatorAfterNationalPrefix,a=(0,f.Z)(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:s,metadata:i});if(!s&&(e.nationalPrefix?a=e.nationalPrefix+o(t)+a:e.complexPrefixBeforeNationalSignificantNumber&&(a=e.complexPrefixBeforeNationalSignificantNumber+\" \"+a)),n=a,(0,h.ZP)(n)===e.getNationalDigits())return a}var g=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t)}return e=[{key:\"parse\",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw Error(\"Non-finalized contexts left when pattern parse ended\");var t=this.context[0],r=t.branches,n=t.instructions;if(r)return{op:\"|\",args:r.concat([b(n)])};if(0===n.length)throw Error(\"Pattern is required\");return 1===n.length?n[0]:n}},{key:\"startContext\",value:function(e){this.context.push(e)}},{key:\"endContext\",value:function(){this.context.pop()}},{key:\"getContext\",value:function(){return this.context[this.context.length-1]}},{key:\"parsePattern\",value:function(e){if(!e)throw Error(\"Pattern is required\");var t=e.match(y);if(!t){if(m.test(e))throw Error(\"Illegal characters found in a pattern: \".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(\"\"));return}var r=t[1],n=e.slice(0,t.index),i=e.slice(t.index+r.length);switch(r){case\"(?:\":n&&this.parsePattern(n),this.startContext({or:!0,instructions:[],branches:[]});break;case\")\":if(!this.getContext().or)throw Error('\")\" operator must be preceded by \"(?:\" operator');if(n&&this.parsePattern(n),0===this.getContext().instructions.length)throw Error('No instructions found after \"|\" operator in an \"or\" group');var s=this.getContext().branches;s.push(b(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:\"|\",args:s});break;case\"|\":if(!this.getContext().or)throw Error('\"|\" operator can only be used inside \"or\" groups');if(n&&this.parsePattern(n),!this.getContext().branches){if(1===this.context.length)this.getContext().branches=[];else throw Error('\"branches\" not found in an \"or\" group context')}this.getContext().branches.push(b(this.getContext().instructions)),this.getContext().instructions=[];break;case\"[\":n&&this.parsePattern(n),this.startContext({oneOfSet:!0});break;case\"]\":if(!this.getContext().oneOfSet)throw Error('\"]\" operator must be preceded by \"[\" operator');this.endContext(),this.getContext().instructions.push({op:\"[]\",args:function(e){for(var t=[],r=0;r<e.length;){if(\"-\"===e[r]){if(0===r||r===e.length-1)throw Error(\"Couldn't parse a one-of set pattern: \".concat(e));for(var n=e[r-1].charCodeAt(0)+1,i=e[r+1].charCodeAt(0)-1,s=n;s<=i;)t.push(String.fromCharCode(s)),s++}else t.push(e[r]);r++}return t}(n)});break;default:throw Error(\"Unknown operator: \".concat(r))}i&&this.parsePattern(i)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),m=/[\\(\\)\\[\\]\\?\\:\\|]/,y=RegExp(\"(\\\\||\\\\(\\\\?\\\\:|\\\\)|\\\\[|\\\\])\");function b(e){return 1===e.length?e[0]:e}function v(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return w(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,void 0)}}(e))||t&&e&&\"number\"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.matchTree=new g().parse(e)}return e=[{key:\"match\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.allowOverflow;if(!e)throw Error(\"String is required\");var n=function e(t,r,n){if(\"string\"==typeof r){var i=t.join(\"\");return 0===r.indexOf(i)?t.length===r.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===i.indexOf(r)?n&&t.length>r.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,r.length)}:void 0}if(Array.isArray(r)){for(var s=t.slice(),o=0;o<r.length;){var a=e(s,r[o],n&&o===r.length-1);if(!a)return;if(a.overflow)return a;if(a.match){if(0===(s=s.slice(a.matchedChars.length)).length){if(o===r.length-1)return{match:!0,matchedChars:t};return{partialMatch:!0}}}else{if(a.partialMatch)return{partialMatch:!0};throw Error(\"Unsupported match result:\\n\".concat(JSON.stringify(a,null,2)))}o++}return n?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-s.length)}}switch(r.op){case\"|\":for(var l,u,c=v(r.args);!(u=c()).done;){var d=e(t,u.value,n);if(d){if(d.overflow)return d;if(d.match)return{match:!0,matchedChars:d.matchedChars};if(d.partialMatch)l=!0;else throw Error(\"Unsupported match result:\\n\".concat(JSON.stringify(d,null,2)))}}if(l)return{partialMatch:!0};return;case\"[]\":for(var h,f=v(r.args);!(h=f()).done;){var p=h.value;if(t[0]===p){if(1===t.length)return{match:!0,matchedChars:t};if(n)return{overflow:!0};return{match:!0,matchedChars:[p]}}}return;default:throw Error(\"Unsupported instruction tree: \".concat(r))}}(e.split(\"\"),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||r)return n}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),E=r(13399),A=r(90263);function x(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return k(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,void 0)}}(e))||t&&e&&\"number\"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var S=u(\"9\",15),$=/[- ]/,C=RegExp(\"[\"+E.uv+\"]*\\\\$1[\"+E.uv+\"]*(\\\\$\\\\d[\"+E.uv+\"]*)*$\"),P=function(){var e;function t(e){e.state;var r=e.metadata;!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.metadata=r,this.resetFormat()}return e=[{key:\"resetFormat\",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:\"reset\",value:function(e,t){this.resetFormat(),e?(this.isNANP=\"1\"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:\"format\",value:function(e,t){var r=this;if(n=t.nationalSignificantNumber,i=this.metadata,\"IS_POSSIBLE\"===(0,d.Z)(n,i))for(var n,i,s,o=x(this.matchingFormats);!(s=o()).done;){var a=s.value,l=function(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,s=r.getSeparatorAfterNationalPrefix;if(new RegExp(\"^(?:\".concat(t.pattern(),\")$\")).test(e.nationalSignificantNumber))return function(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,s=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var o=p(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:s,metadata:n});if(o)return o}return p(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:s,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:s})}(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return r.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return r.getSeparatorAfterNationalPrefix(e)}});if(l)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(l.replace(/\\d/g,\"x\"),t),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(\"x\"),l}return this.formatNationalNumberWithNextDigits(e,t)}},{key:\"formatNationalNumberWithNextDigits\",value:function(e,t){var r=this.chosenFormat,n=this.chooseFormat(t);if(n)return n===r?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:\"narrowDownMatchingFormats\",value:function(e){var t=this,r=e.nationalSignificantNumber,n=e.nationalPrefix,i=e.international,s=r.length-3;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,n)&&t.formatMatches(e,r,s)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:\"formatSuits\",value:function(e,t,r){return!(r&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!r&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:\"formatMatches\",value:function(e,t,r){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;r=Math.min(r,n-1);var i=e.leadingDigitsPatterns()[r];if(t.length<3)try{return void 0!==new _(i).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp(\"^(\".concat(i,\")\")).test(t)}},{key:\"getFormatFormat\",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:\"chooseFormat\",value:function(e){for(var t,r=this,n=x(this.matchingFormats.slice());!(t=n()).done;){var i=function(){var n=t.value;return r.chosenFormat===n?\"break\":C.test(r.getFormatFormat(n,e.international))?r.createTemplateForFormat(n,e)?(r.chosenFormat=n,\"break\"):(r.matchingFormats=r.matchingFormats.filter(function(e){return e!==n}),\"continue\"):\"continue\"}();if(\"break\"===i)break;if(\"continue\"===i)continue}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:\"createTemplateForFormat\",value:function(e,t){if(!(e.pattern().indexOf(\"|\")>=0)){var r=this.getTemplateForFormat(e,t);if(r)return this.setNationalNumberTemplate(r,t),!0}}},{key:\"getSeparatorAfterNationalPrefix\",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&$.test(e.nationalPrefixFormattingRule())?\" \":\"\"}},{key:\"getInternationalPrefixBeforeCountryCallingCode\",value:function(e,t){var r=e.IDDPrefix,n=e.missingPlus;return r?t&&!1===t.spacing?r:r+\" \":n?\"\":\"+\"}},{key:\"getTemplate\",value:function(e){if(this.template){for(var t=-1,r=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):\"\";r<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(\"x\",t+1),r++;return c(this.template,t+1)}}},{key:\"setNationalNumberTemplate\",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\\d\\+]/g,\"x\")+u(\"x\",t.callingCode.length)+\" \"+e:this.template=e}},{key:\"getTemplateForFormat\",value:function(e,t){var r,n=t.nationalSignificantNumber,i=t.international,s=t.nationalPrefix,o=t.complexPrefixBeforeNationalSignificantNumber,a=e.pattern();a=a.replace(/\\[([^\\[\\]])*\\]/g,\"\\\\d\").replace(/\\d(?=[^,}][^,}])/g,\"\\\\d\");var l=S.match(a)[0];if(!(n.length>l.length)){var c=RegExp(\"^\"+a+\"$\"),d=n.replace(/\\d/g,\"9\");c.test(d)&&(l=d);var p=this.getFormatFormat(e,i);if(this.shouldTryNationalPrefixFormattingRule(e,{international:i,nationalPrefix:s})){var g=p.replace(f.i,e.nationalPrefixFormattingRule());if((0,h.ZP)(e.nationalPrefixFormattingRule())===(s||\"\")+(0,h.ZP)(\"$1\")&&(p=g,r=!0,s))for(var m=s.length;m>0;)p=p.replace(/\\d/,\"x\"),m--}var y=l.replace(new RegExp(a),p).replace(/9/g,\"x\");return!r&&(o?y=u(\"x\",o.length)+\" \"+y:s&&(y=u(\"x\",s.length)+this.getSeparatorAfterNationalPrefix(e)+y)),i&&(y=(0,A.Z)(y)),y}}},{key:\"formatNextNationalNumberDigits\",value:function(e){var t=function(e,t,r){for(var n,i=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(r.split(\"\"));!(n=i()).done;){var s=n.value;if(0>e.slice(t+1).search(l))return;t=e.search(l),e=e.replace(l,s)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(!t){this.resetFormat();return}return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],c(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:\"shouldTryNationalPrefixFormattingRule\",value:function(e,t){var r=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&n||!i&&!r)return!0}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),I=r(52586),O=r(3238),N=r(30196),M=r(72924);function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=i){var s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}}(e,t)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var D=RegExp(\"^[\"+E.uv+E.xc+\"]+$\",\"i\"),L=\"(?:[\"+E.xy+\"][\"+E.uv+E.xc+\"]*|[\"+E.uv+E.xc+\"]+)\",j=RegExp(\"[^\"+E.uv+E.xc+\"]+.*$\"),B=/[^\\d\\[\\]]/,F=function(){var e;function t(e){var r=e.defaultCountry,n=e.defaultCallingCode,i=e.metadata,s=e.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=i,this.onNationalSignificantNumberChange=s}return e=[{key:\"input\",value:function(e,t){var r,n,i,s,o,a=R((i=(n=R(\"+\"===(r=function(e){var t,r=e.search(L);if(!(r<0))return\"+\"===(e=e.slice(r))[0]&&(t=!0,e=e.slice(1)),e=e.replace(j,\"\"),t&&(e=\"+\"+e),e}(e)||\"\")[0]?[r.slice(1),!0]:[r],2))[0],s=n[1],D.test(i)||(i=\"\"),[i,s]),2),l=a[0],u=a[1],c=(0,h.ZP)(l);return!u||t.digits||(t.startInternationalNumber(),c||(o=!0)),c&&this.inputDigits(c,t),{digits:c,justLeadingPlus:o}}},{key:\"inputDigits\",value:function(e,t){var r=t.digits,n=r.length<3&&r.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:\"isWaitingForCountryCallingCode\",value:function(e){var t=e.international,r=e.callingCode;return t&&!r}},{key:\"extractCountryCallingCode\",value:function(e){var t=(0,I.Z)(\"+\"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode,n=t.number;if(r)return e.setCallingCode(r),e.update({nationalSignificantNumber:n}),!0}},{key:\"reset\",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&B.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:\"extractNationalSignificantNumber\",value:function(e,t){if(this.hasSelectedNumberingPlan){var r=(0,N.Z)(e,this.metadata),n=r.nationalPrefix,i=r.nationalNumber,s=r.carrierCode;if(i!==e)return this.onExtractedNationalNumber(n,s,i,e,t),!0}}},{key:\"extractAnotherNationalSignificantNumber\",value:function(e,t,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=(0,N.Z)(e,this.metadata),i=n.nationalPrefix,s=n.nationalNumber,o=n.carrierCode;if(s!==t)return this.onExtractedNationalNumber(i,o,s,e,r),!0}}},{key:\"onExtractedNationalNumber\",value:function(e,t,r,n,i){var s,o,a=n.lastIndexOf(r);if(a>=0&&a===n.length-r.length){o=!0;var l=n.slice(0,a);l!==e&&(s=l)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:r,nationalSignificantNumberMatchesInput:o,complexPrefixBeforeNationalSignificantNumber:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:\"reExtractNationalSignificantNumber\",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:\"extractIddPrefix\",value:function(e){var t=e.international,r=e.IDDPrefix,n=e.digits;if(e.nationalSignificantNumber,!t&&!r){var i=(0,M.Z)(n,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(void 0!==i&&i!==n)return e.update({IDDPrefix:n.slice(0,n.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0}}},{key:\"fixMissingPlus\",value:function(e){if(!e.international){var t=(0,O.Z)(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode;if(t.number,r)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:r}),!0}}},{key:\"startInternationalNumber\",value:function(e,t){var r=t.country,n=t.callingCode;e.startInternationalNumber(r,n),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:\"extractCallingCodeAndNationalSignificantNumber\",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),U=r(81271),z=r(79092),q=r(84667);function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var G=function(){var e;function t(e,r){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.metadata=new i.ZP(r);var n,s=function(e){if(Array.isArray(e))return e}(n=this.getCountryAndCallingCode(e))||function(e,t){var r,n,i=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=i){var s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),2!==s.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}}(n,2)||function(e,t){if(e){if(\"string\"==typeof e)return H(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,2)}}(n,2)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),o=s[0],a=s[1];this.defaultCountry=o,this.defaultCallingCode=a,this.reset()}return e=[{key:\"getCountryAndCallingCode\",value:function(e){var t,r;return e&&((0,q.Z)(e)?(t=e.defaultCountry,r=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,r]}},{key:\"input\",value:function(e){var t=this.parser.input(e,this.state),r=t.digits;if(t.justLeadingPlus)this.formattedOutput=\"+\";else if(r){if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(r,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var n,i=this.state.getNationalDigits();i&&(n=this.formatter.format(i,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:\"reset\",value:function(){var e=this;return this.state=new o({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,r){e.metadata.selectNumberingPlan(r,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new P({state:this.state,metadata:this.metadata}),this.parser=new F({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput=\"\",this}},{key:\"isInternational\",value:function(){return this.state.international}},{key:\"getCallingCode\",value:function(){if(this.isInternational())return this.state.callingCode}},{key:\"getCountryCallingCode\",value:function(){return this.getCallingCode()}},{key:\"getCountry\",value:function(){if(this.state.digits)return this._getCountry()}},{key:\"_getCountry\",value:function(){return this.state.country}},{key:\"determineTheCountryIfNeeded\",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:\"getFullNumber\",value:function(e){var t=this;if(this.isInternational()){var r,n=this.state.callingCode;return r=n?e?\"\".concat(n,\" \").concat(e):n:\"\".concat(this.state.getDigitsWithoutInternationalPrefix()),t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!r})+r}return e}},{key:\"getNonFormattedNationalNumberWithPrefix\",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.complexPrefixBeforeNationalSignificantNumber,n=e.nationalPrefix,i=t,s=r||n;return s&&(i=s+i),i}},{key:\"getNonFormattedNumber\",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:\"getNonFormattedTemplate\",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\\+\\d]/g,\"x\")}},{key:\"isCountryCallingCodeAmbiguous\",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:\"determineTheCountry\",value:function(){this.state.setCountry((0,U.Z)(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:\"getNumberValue\",value:function(){var e=this.state,t=e.digits,r=e.callingCode,n=e.country,i=e.nationalSignificantNumber;if(t){if(this.isInternational())return r?\"+\"+r+i:\"+\"+t;if(n||r)return\"+\"+(n?this.metadata.countryCallingCode():r)+i}}},{key:\"getNumber\",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.carrierCode,n=e.callingCode,o=this._getCountry();if(t&&(o||n)){if(o&&o===this.defaultCountry){var a=new i.ZP(this.metadata.metadata);a.selectNumberingPlan(o);var l=a.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(l);if(u.length>1){var c=(0,z.Z)(t,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});c&&(o=c)}}var d=new s.Z(o||n,t,this.metadata.metadata);return r&&(d.carrierCode=r),d}}},{key:\"isPossible\",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:\"isValid\",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:\"getNationalNumber\",value:function(){return this.state.nationalSignificantNumber}},{key:\"getChars\",value:function(){return(this.state.international?\"+\":\"\")+this.state.digits}},{key:\"getTemplate\",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||\"\"}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}();function V(e){return G.call(this,e,n.Z)}V.prototype=Object.create(G.prototype,{}),V.prototype.constructor=V},78299:function(e,t,r){\"use strict\";r.d(t,{o:function(){return o}});var n=r(5038),i=r(31767);function s(e){return new i.ZP(e).getCountries()}function o(){return(0,n.Z)(s,arguments)}},24967:function(e,t,r){\"use strict\";r.d(t,{G:function(){return s}});var n=r(5038),i=r(31767);function s(){return(0,n.Z)(i.Gg,arguments)}},26930:function(e,t,r){\"use strict\";r.d(t,{L:function(){return o}});var n=r(5038),i=r(18822);function s(e,t,r){if(t[e])return new i.Z(e,t[e],r)}function o(){return(0,n.Z)(s,arguments)}},75006:function(e,t,r){\"use strict\";r.d(t,{t:function(){return K}});var n=r(5038),i=r(84667);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=r(13399);function l(e){return(l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){if(void 0===e)throw ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function c(e){var t=\"function\"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf(\"[native code]\"))return e;if(\"function\"!=typeof e)throw TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function d(e,t,r){return(d=h()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&f(i,r.prototype),i}).apply(null,arguments)}function h(){if(\"undefined\"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&f(e,t)}(n,e);var t,r=(t=h(),function(){var e,r=p(n);return e=t?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),function(e,t){if(t&&(\"object\"===l(t)||\"function\"==typeof t))return t;if(void 0!==t)throw TypeError(\"Derived constructors may only return object or undefined\");return u(e)}(this,e)});function n(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,n),Object.setPrototypeOf(u(t=r.call(this,e)),n.prototype),t.name=t.constructor.name,t}return Object.defineProperty(n,\"prototype\",{writable:!1}),n}(c(Error)),m=r(31767),y=function(e){return\"([\".concat(a.xc,\"]{1,\").concat(e,\"})\")};function b(e){var t=\"[ \\xa0\\\\t,]*\",r=\"[:\\\\.．]?[ \\xa0\\\\t,-]*\",n=\"[ \\xa0\\\\t]*\";return\";ext=\"+y(\"20\")+\"|\"+(t+\"(?:e?xt(?:ensi(?:ó?|\\xf3))?n?|ｅ?ｘｔｎ?|доб|anexo)\"+r)+y(\"20\")+\"#?|\"+(t+\"(?:[xｘ#＃~～]|int|ｉｎｔ)\"+r)+y(\"9\")+\"#?|[- ]+\"+y(\"6\")+\"#|\"+(n+\"(?:,{2}|;)\"+r)+y(\"15\")+\"#?|\"+(n+\"(?:,)+\"+r)+y(\"9\")+\"#?\"}var v=\"[\"+a.xc+\"]{\"+a.ex+\"}\",w=\"[\"+a.xy+\"]{0,1}(?:[\"+a.uv+\"]*[\"+a.xc+\"]){3,}[\"+a.uv+a.xc+\"]*\",_=RegExp(\"^[\"+a.xy+\"]{0,1}(?:[\"+a.uv+\"]*[\"+a.xc+\"]){1,2}$\",\"i\"),E=RegExp(\"^\"+v+\"$|^\"+(w+\"(?:\")+b()+\")?$\",\"i\"),A=RegExp(\"(?:\"+b()+\")$\",\"i\"),x=r(43829);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S(e){for(var t,r=\"\",n=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return k(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e.split(\"\"));!(t=n()).done;){var i=t.value;r+=function(e,t,r){if(\"+\"===e){if(t)return;return\"+\"}return(0,x.xh)(e)}(i,r)||\"\"}return r}var $=r(59105),C=r(18822),P=r(69496),I=r(52586),O=r(11264),N=r(81271),M=\"([\"+a.xc+\"]|[\\\\-\\\\.\\\\(\\\\)]?)\",R=RegExp(\"^\\\\+\"+M+\"*[\"+a.xc+\"]\"+M+\"*$\",\"g\"),T=a.xc,D=RegExp(\"^([\"+T+\"]+((\\\\-)*[\"+T+\"])*\\\\.)*[a-zA-Z]+((\\\\-)*[\"+T+\"])*\\\\.?$\",\"g\"),L=\"tel:\",j=\";phone-context=\",B=RegExp(\"[\"+a.xy+a.xc+\"]\"),F=RegExp(\"[^\"+a.xc+\"#]+$\");function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(){var e=function(e){var t,r,n,a,l=function(e){if(Array.isArray(e))return e}(t=Array.prototype.slice.call(e))||function(e,t){var r,n,i=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=i){var s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),4!==s.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}}(t,4)||function(e,t){if(e){if(\"string\"==typeof e)return o(e,4);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,4)}}(t,4)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),u=l[0],c=l[1],d=l[2],h=l[3];if(\"string\"==typeof u)r=u;else throw TypeError(\"A text for parsing must be a string.\");if(c&&\"string\"!=typeof c){if((0,i.Z)(c))d?(n=c,a=d):a=c;else throw Error(\"Invalid second argument: \".concat(c))}else h?(n=d,a=h):(n=void 0,a=d),c&&(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({defaultCountry:c},n));return{text:r,options:n,metadata:a}}(arguments),t=e.text,r=e.options,n=e.metadata,l=function(e,t,r){t&&t.defaultCountry&&!(0,m.aS)(t.defaultCountry,r)&&(t=H(H({},t),{},{defaultCountry:void 0}));try{var n;return n=t,function(e,t,r){if(t=t||{},r=new m.ZP(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new g(\"INVALID_COUNTRY\");throw Error(\"Unknown country: \".concat(t.defaultCountry))}var n,i=function(e,t,r){var n=function(e,t){var r=t.extractFormattedPhoneNumber,n=function(e){var t=e.indexOf(j);if(t<0)return null;var r=t+j.length;if(r>=e.length)return\"\";var n=e.indexOf(\";\",r);return n>=0?e.substring(r,n):e.substring(r)}(e);if(!(null===n||0!==n.length&&(R.test(n)||D.test(n))))throw new g(\"NOT_A_NUMBER\");if(null===n)i=r(e)||\"\";else{i=\"\",\"+\"===n.charAt(0)&&(i+=n);var i,s,o=e.indexOf(L);s=o>=0?o+L.length:0;var a=e.indexOf(j);i+=e.substring(s,a)}var l=i.indexOf(\";isub=\");if(l>0&&(i=i.substring(0,l)),\"\"!==i)return i}(e,{extractFormattedPhoneNumber:function(e){return function(e,t,r){if(e){if(e.length>250){if(r)throw new g(\"TOO_LONG\");return}if(!1===t)return e;var n=e.search(B);if(!(n<0))return e.slice(n).replace(F,\"\")}}(e,r,t)}});if(!n)return{};if(!(n.length>=a.ex&&E.test(n)))return _.test(n)?{error:\"TOO_SHORT\"}:{};var i=function(e){var t=e.search(A);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(A),i=1;i<n.length;){if(n[i])return{number:r,ext:n[i]};i++}}(n);return i.ext?i:{number:n}}(e,t.v2,t.extract),s=i.number,o=i.ext,l=i.error;if(!s){if(t.v2){if(\"TOO_SHORT\"===l)throw new g(\"TOO_SHORT\");throw new g(\"NOT_A_NUMBER\")}return{}}var u=function(e,t,r,n){var i,s=(0,I.Z)(S(e),t,r,n.metadata),o=s.countryCallingCodeSource,a=s.countryCallingCode,l=s.number;if(a)n.selectNumberingPlan(a);else{if(!l||!t&&!r)return{};n.selectNumberingPlan(t,r),t&&(i=t),a=r||(0,m.Gg)(t,n.metadata)}if(!l)return{countryCallingCodeSource:o,countryCallingCode:a};var u=(0,O.Z)(S(l),n),c=u.nationalNumber,d=u.carrierCode,h=(0,N.Z)(a,{nationalNumber:c,defaultCountry:t,metadata:n});return h&&(i=h,\"001\"===h||n.country(i)),{country:i,countryCallingCode:a,countryCallingCodeSource:o,nationalNumber:c,carrierCode:d}}(s,t.defaultCountry,t.defaultCallingCode,r),c=u.country,d=u.nationalNumber,h=u.countryCallingCode,f=u.countryCallingCodeSource,p=u.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new g(\"INVALID_COUNTRY\");return{}}if(!d||d.length<a.ex){if(t.v2)throw new g(\"TOO_SHORT\");return{}}if(d.length>a.sJ){if(t.v2)throw new g(\"TOO_LONG\");return{}}if(t.v2){var y=new C.Z(h,d,r.metadata);return c&&(y.country=c),p&&(y.carrierCode=p),o&&(y.ext=o),y.__countryCallingCodeSource=f,y}var b=(t.extended?!!r.hasSelectedNumberingPlan():!!c)&&(0,P.Z)(d,r.nationalNumberPattern());return t.extended?{country:c,countryCallingCode:h,carrierCode:p,valid:b,possible:!!b||!!(!0===t.extended&&r.possibleLengths()&&(0,$.D)(d,r)),phone:d,ext:o}:b?(n={country:c,phone:d},o&&(n.ext=o),n):{}}(e,z(z({},n),{},{v2:!0}),r)}catch(e){if(e instanceof g);else throw e}}(t,r=V(V({},r),{},{extract:!1}),n);return l&&l.isPossible()||!1}function K(){return(0,n.Z)(W,arguments)}},5038:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(89803);function i(e,t){var r=Array.prototype.slice.call(t);return r.push(n.Z),e.apply(this,r)}},53989:function(e,t,r){\"use strict\";function n(){let e=new Set,t=[],r=()=>(function(e){if(\"undefined\"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener(\"eip6963:announceProvider\",t),window.dispatchEvent(new CustomEvent(\"eip6963:requestProvider\")),()=>window.removeEventListener(\"eip6963:announceProvider\",t)})(r=>{t.some(({info:e})=>e.uuid===r.info.uuid)||(t=[...t,r],e.forEach(e=>e(t,{added:[r]})))}),n=r();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),n?.(),n=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}r.d(t,{M:function(){return n}})},79512:function(e,t,r){\"use strict\";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(2265),i=[\"light\",\"dark\"],s=\"(prefers-color-scheme: dark)\",o=\"undefined\"==typeof window,a=n.createContext(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(a))?e:l},c=e=>n.useContext(a)?e.children:n.createElement(h,{...e}),d=[\"light\",\"dark\"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:l=!0,storageKey:u=\"theme\",themes:c=d,defaultTheme:h=o?\"system\":\"light\",attribute:y=\"data-theme\",value:b,children:v,nonce:w}=e,[_,E]=n.useState(()=>p(u,h)),[A,x]=n.useState(()=>p(u)),k=b?Object.values(b):c,S=n.useCallback(e=>{let t=e;if(!t)return;\"system\"===e&&o&&(t=m());let n=b?b[t]:t,s=r?g():null,a=document.documentElement;if(\"class\"===y?(a.classList.remove(...k),n&&a.classList.add(n)):n?a.setAttribute(y,n):a.removeAttribute(y),l){let e=i.includes(h)?h:null,r=i.includes(t)?t:e;a.style.colorScheme=r}null==s||s()},[]),$=n.useCallback(e=>{let t=\"function\"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),C=n.useCallback(e=>{x(m(e)),\"system\"===_&&o&&!t&&S(\"system\")},[_,t]);n.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),n.useEffect(()=>{let e=e=>{e.key===u&&$(e.newValue||h)};return window.addEventListener(\"storage\",e),()=>window.removeEventListener(\"storage\",e)},[$]),n.useEffect(()=>{S(null!=t?t:_)},[t,_]);let P=n.useMemo(()=>({theme:_,setTheme:$,forcedTheme:t,resolvedTheme:\"system\"===_?A:_,themes:o?[...c,\"system\"]:c,systemTheme:o?A:void 0}),[_,$,t,A,o,c]);return n.createElement(a.Provider,{value:P},n.createElement(f,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:o,enableColorScheme:l,storageKey:u,themes:c,defaultTheme:h,attribute:y,value:b,children:v,attrs:k,nonce:w}),v)},f=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:o,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:c,attrs:d,nonce:h}=e,f=\"system\"===u,p=\"class\"===o?\"var d=document.documentElement,c=d.classList;\".concat(\"c.remove(\".concat(d.map(e=>\"'\".concat(e,\"'\")).join(\",\"),\")\"),\";\"):\"var d=document.documentElement,n='\".concat(o,\"',s='setAttribute';\"),g=l?(i.includes(u)?u:null)?\"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'\".concat(u,\"'\"):\"if(e==='light'||e==='dark')d.style.colorScheme=e\":\"\",m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=c?c[e]:e,s=t?e+\"|| ''\":\"'\".concat(n,\"'\"),a=\"\";return l&&r&&!t&&i.includes(e)&&(a+=\"d.style.colorScheme = '\".concat(e,\"';\")),\"class\"===o?t||n?a+=\"c.add(\".concat(s,\")\"):a+=\"null\":n&&(a+=\"d[s](n,\".concat(s,\")\")),a},y=t?\"!function(){\".concat(p).concat(m(t),\"}()\"):a?\"!function(){try{\".concat(p,\"var e=localStorage.getItem('\").concat(r,\"');if('system'===e||(!e&&\").concat(f,\")){var t='\").concat(s,\"',m=window.matchMedia(t);if(m.media!==t||m.matches){\").concat(m(\"dark\"),\"}else{\").concat(m(\"light\"),\"}}else if(e){\").concat(c?\"var x=\".concat(JSON.stringify(c),\";\"):\"\").concat(m(c?\"x[e]\":\"e\",!0),\"}\").concat(f?\"\":\"else{\"+m(u,!1,!1)+\"}\").concat(g,\"}catch(e){}}()\"):\"!function(){try{\".concat(p,\"var e=localStorage.getItem('\").concat(r,\"');if(e){\").concat(c?\"var x=\".concat(JSON.stringify(c),\";\"):\"\").concat(m(c?\"x[e]\":\"e\",!0),\"}else{\").concat(m(u,!1,!1),\";}\").concat(g,\"}catch(t){}}();\");return n.createElement(\"script\",{nonce:h,dangerouslySetInnerHTML:{__html:y}})}),p=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},g=()=>{let e=document.createElement(\"style\");return e.appendChild(document.createTextNode(\"*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},m=e=>(e||(e=window.matchMedia(s)),e.matches?\"dark\":\"light\")},58249:function(e,t,r){\"use strict\";r.d(t,{Wg:function(){return l}});var n=r(99434);let i=function(){if(\"undefined\"!=typeof globalThis)return globalThis;if(\"undefined\"!=typeof self)return self;if(\"undefined\"!=typeof window)return window;if(\"undefined\"!=typeof global)return global;throw Error(\"unable to locate global object\")}(),s=i.fetch||(()=>Promise.reject(Error(\"[ofetch] global.fetch is not supported!\"))),o=i.Headers,a=i.AbortController,l=(0,n.c)({fetch:s,Headers:o,AbortController:a})},99434:function(e,t,r){\"use strict\";r.d(t,{F:function(){return x},c:function(){return function e(t={}){let{fetch:r=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:s=globalThis.AbortController}=t;async function o(e){let t=e.error&&\"AbortError\"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t=\"number\"==typeof e.options.retry?e.options.retry:S(e.options.method)?0:1;let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):P.has(r))){let r=e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),a(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||\"\",r=e.request?.method||e.options?.method||\"GET\",n=e.request?.url||String(e.request)||\"/\",i=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:\"<no response>\",o=new x(`${i}: ${s}${t?` ${t}`:\"\"}`,e.error?{cause:e.error}:void 0);for(let t of[\"request\",\"options\",\"response\"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,r]of[[\"data\",\"_data\"],[\"status\",\"status\"],[\"statusCode\",\"status\"],[\"statusText\",\"statusText\"],[\"statusMessage\",\"statusText\"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[r]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,a),r}let a=async function(e,a={}){let u;let c={request:e,options:function(e,t,r=globalThis.Headers){let n={...t,...e};if(t?.params&&e?.params&&(n.params={...t?.params,...e?.params}),t?.query&&e?.query&&(n.query={...t?.query,...e?.query}),t?.headers&&e?.headers)for(let[i,s]of(n.headers=new r(t?.headers||{}),new r(e?.headers||{})))n.headers.set(i,s);return n}(a,t.defaults,i),response:void 0,error:void 0};if(c.options.method=c.options.method?.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),\"string\"==typeof c.request&&(c.options.baseURL&&(c.request=function(e,t){if(!t||\"/\"===t||_(e))return e;let r=function(e=\"\",t){return(!function(e=\"\",t){return e.endsWith(\"/\")}(e)?e:e.slice(0,-1))||\"/\"}(t);return e.startsWith(r)?e:function(e,...t){let r=e||\"\";for(let e of t.filter(e=>e&&\"/\"!==e))if(r){let t=e.replace(w,\"\");r=function(e=\"\",t){return e.endsWith(\"/\")?e:e+\"/\"}(r)+t}else r=e;return r}(r,e)}(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=function(e,t){let r=function e(t=\"\",r){let n=t.match(/^[\\s\\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=\"\"]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:\"\",host:\"\",search:\"\",hash:\"\"}}if(!_(t,{acceptRelative:!0}))return r?e(r+t):A(t);let[,i=\"\",s,o=\"\"]=t.replace(/\\\\/g,\"/\").match(/^[\\s\\0]*([\\w+.-]{2,}:)?\\/\\/([^/@]+@)?(.*)/)||[],[,a=\"\",l=\"\"]=o.match(/([^#/?]*)(.*)?/)||[];\"file:\"===i&&(l=l.replace(/\\/(?=[A-Za-z]:)/,\"\"));let{pathname:u,search:c,hash:d}=A(l);return{protocol:i.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):\"\",host:a,pathname:u,search:c,hash:d,[E]:!i}}(e),n={...function(e=\"\"){let t={};for(let r of(\"?\"===e[0]&&(e=e.slice(1)),e.split(\"&\"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=g(e[1].replace(l,\" \"));if(\"__proto__\"===n||\"constructor\"===n)continue;let i=g((e[2]||\"\").replace(l,\" \"));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}(r.search),...t};return r.search=Object.keys(n).filter(e=>void 0!==n[e]).map(e=>{var t;return((\"number\"==typeof(t=n[e])||\"boolean\"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${p(e)}=${f(t)}`).join(\"&\"):`${p(e)}=${f(t)}`:p(e)}).filter(Boolean).join(\"&\"),function(e){let t=e.pathname||\"\",r=e.search?(e.search.startsWith(\"?\")?\"\":\"?\")+e.search:\"\",n=e.hash||\"\",i=e.auth?e.auth+\"@\":\"\",s=e.host||\"\";return(e.protocol||e[E]?(e.protocol||\"\")+\"//\":\"\")+i+s+t+r+n}(r)}(c.request,{...c.options.params,...c.options.query}))),c.options.body&&S(c.options.method)&&(function(e){if(void 0===e)return!1;let t=typeof e;return\"string\"===t||\"number\"===t||\"boolean\"===t||null===t||\"object\"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&\"Object\"===e.constructor.name||\"function\"==typeof e.toJSON))}(c.options.body)?(c.options.body=\"string\"==typeof c.options.body?c.options.body:JSON.stringify(c.options.body),c.options.headers=new i(c.options.headers||{}),c.options.headers.has(\"content-type\")||c.options.headers.set(\"content-type\",\"application/json\"),c.options.headers.has(\"accept\")||c.options.headers.set(\"accept\",\"application/json\")):(\"pipeTo\"in c.options.body&&\"function\"==typeof c.options.body.pipeTo||\"function\"==typeof c.options.body.pipe)&&!(\"duplex\"in c.options)&&(c.options.duplex=\"half\")),!c.options.signal&&c.options.timeout){let e=new s;u=setTimeout(()=>e.abort(),c.options.timeout),c.options.signal=e.signal}try{c.response=await r(c.request,c.options)}catch(e){return c.error=e,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}finally{u&&clearTimeout(u)}if(c.response.body&&!I.has(c.response.status)&&\"HEAD\"!==c.options.method){let e=(c.options.parseResponse?\"json\":c.options.responseType)||function(e=\"\"){if(!e)return\"json\";let t=e.split(\";\").shift()||\"\";return C.test(t)?\"json\":$.has(t)||t.startsWith(\"text/\")?\"text\":\"blob\"}(c.response.headers.get(\"content-type\")||\"\");switch(e){case\"json\":{let e=await c.response.text(),t=c.options.parseResponse||n.ZP;c.response._data=t(e);break}case\"stream\":c.response._data=c.response.body;break;default:c.response._data=await c.response[e]()}}return(c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600)?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},u=async function(e,t){return(await a(e,t))._data};return u.raw=a,u.native=(...e)=>r(...e),u.create=(r={})=>e({...t,defaults:{...t.defaults,...r}}),u}}});var n=r(10259);let i=/#/g,s=/&/g,o=/\\//g,a=/=/g,l=/\\+/g,u=/%5e/gi,c=/%60/gi,d=/%7c/gi,h=/%20/gi;function f(e){return encodeURI(\"\"+(\"string\"==typeof e?e:JSON.stringify(e))).replace(d,\"|\").replace(l,\"%2B\").replace(h,\"+\").replace(i,\"%23\").replace(s,\"%26\").replace(c,\"`\").replace(u,\"^\").replace(o,\"%2F\")}function p(e){return f(e).replace(a,\"%3D\")}function g(e=\"\"){try{return decodeURIComponent(\"\"+e)}catch{return\"\"+e}}let m=/^[\\s\\w\\0+.-]{2,}:([/\\\\]{1,2})/,y=/^[\\s\\w\\0+.-]{2,}:([/\\\\]{2})?/,b=/^([/\\\\]\\s*){2,}[^/\\\\]/,v=/\\/$|\\/\\?|\\/#/,w=/^\\.?\\//;function _(e,t={}){return(\"boolean\"==typeof t&&(t={acceptRelative:t}),t.strict)?m.test(e):y.test(e)||!!t.acceptRelative&&b.test(e)}let E=Symbol.for(\"ufo:protocolRelative\");function A(e=\"\"){let[t=\"\",r=\"\",n=\"\"]=(e.match(/([^#?]*)(\\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class x extends Error{constructor(e,t){super(e,t),this.name=\"FetchError\",t?.cause&&!this.cause&&(this.cause=t.cause)}}let k=new Set(Object.freeze([\"PATCH\",\"POST\",\"PUT\",\"DELETE\"]));function S(e=\"GET\"){return k.has(e.toUpperCase())}let $=new Set([\"image/svg\",\"application/xml\",\"application/xhtml\",\"application/html\"]),C=/^application\\/(?:[\\w!#$%&*.^`~-]*\\+)?json(;.+)?$/i,P=new Set([408,409,425,429,500,502,503,504]),I=new Set([101,204,205,304])},11444:function(e,t,r){\"use strict\";r.d(t,{I0:function(){return w},v9:function(){return h},zt:function(){return y}});var n=r(2265),i=r(67183),s=Symbol.for(\"react-redux-context\"),o=\"undefined\"!=typeof globalThis?globalThis:{},a=function(){if(!n.createContext)return{};let e=o[s]??(o[s]=new Map),t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}();function l(e=a){return function(){return n.useContext(e)}}var u=l(),c=()=>{throw Error(\"uSES not initialized!\")},d=(e,t)=>e===t,h=function(e=a){let t=e===a?u:l(e),r=(e,r={})=>{let{equalityFn:i=d,devModeChecks:s={}}=\"function\"==typeof r?{equalityFn:r}:r,{store:o,subscription:a,getServerState:l,stabilityCheck:u,identityFunctionCheck:h}=t();n.useRef(!0);let f=n.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,s.stabilityCheck]),p=c(a.addNestedSub,o.getState,l||o.getState,f,i);return n.useDebugValue(p),p};return Object.assign(r,{withTypes:()=>r}),r}();Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.server_context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.suspense_list\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.for(\"react.offscreen\"),Symbol.for(\"react.client.reference\");var f={notify(){},get:()=>[]},p=!!(\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),g=\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product,m=p||g?n.useLayoutEffect:n.useEffect,y=function({store:e,context:t,children:r,serverState:i,stabilityCheck:s=\"once\",identityFunctionCheck:o=\"once\"}){let l=n.useMemo(()=>{let t=function(e,t){let r;let n=f,i=0,s=!1;function o(){u.onStateChange&&u.onStateChange()}function a(){if(i++,!r){let t,i;r=e.subscribe(o),t=null,i=null,n={clear(){t=null,i=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:t=n,function(){r&&null!==t&&(r=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=f)}let u={addNestedSub:function(e){a();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,a())},tryUnsubscribe:function(){s&&(s=!1,l())},getListeners:()=>n};return u}(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:s,identityFunctionCheck:o}},[e,i,s,o]),u=n.useMemo(()=>e.getState(),[e]);return m(()=>{let{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[l,u]),n.createElement((t||a).Provider,{value:l},r)};function b(e=a){let t=e===a?u:l(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var v=b(),w=function(e=a){let t=e===a?v:b(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}();c=i.useSyncExternalStoreWithSelector,n.useSyncExternalStore},4811:function(e,t,r){\"use strict\";function n(e){return crypto.getRandomValues(new Uint8Array(e))}function i(){let[e]=n(1);return e}function s(){let[e,t]=n(2);return(e<<8)+t}function o(e,t,r=\"-\"){if(\"number\"!=typeof e||e<1)throw Error(\"Invalid argument: length argument must be a number greater than or equal to 1\");if(!Array.isArray(t)||t.length<2)throw Error(\"Invalid argument: wordlist argument must be an array with length greater than or equal to 2\");if(\"string\"!=typeof r)throw Error(\"Invalid argument: sep argument must be a string\");return(function(e,t,r){if(\"number\"!=typeof e||e<1)throw Error(\"Invalid argument: length must be a number greater than or equal to 1\");if(\"number\"!=typeof r||r>65536)throw Error(\"Invalid argument: end must be a number less than or equal to 65536\");if(r-0<2)throw Error(\"Invalid range: range must contain at least two values\");let n=[];for(let o=0;o<e;o++)n[o]=t+function(e){if(\"number\"!=typeof e||e<2||e>65536)throw Error(\"Invalid number: number must be at least two and at most 65536\");let t=e>256,r=t?s:i,n=e*Math.floor((t?65536:256)/e);for(;;){let t=r();if(t<n)return t%e}}(r-t);return n})(e,0,t.length).reduce((e,n,i)=>{let s=t[n];return e+(0===i?s:r+s)},\"\")}r.d(t,{OW:function(){return o}})},92861:function(e,t,r){\"use strict\";r.d(t,{k:function(){return n}});let n=Object.freeze(Object.freeze([\"abacus\",\"abdomen\",\"abdominal\",\"abide\",\"abiding\",\"ability\",\"ablaze\",\"able\",\"abnormal\",\"abrasion\",\"abrasive\",\"abreast\",\"abridge\",\"abroad\",\"abruptly\",\"absence\",\"absentee\",\"absently\",\"absinthe\",\"absolute\",\"absolve\",\"abstain\",\"abstract\",\"absurd\",\"accent\",\"acclaim\",\"acclimate\",\"accompany\",\"account\",\"accuracy\",\"accurate\",\"accustom\",\"acetone\",\"achiness\",\"aching\",\"acid\",\"acorn\",\"acquaint\",\"acquire\",\"acre\",\"acrobat\",\"acronym\",\"acting\",\"action\",\"activate\",\"activator\",\"active\",\"activism\",\"activist\",\"activity\",\"actress\",\"acts\",\"acutely\",\"acuteness\",\"aeration\",\"aerobics\",\"aerosol\",\"aerospace\",\"afar\",\"affair\",\"affected\",\"affecting\",\"affection\",\"affidavit\",\"affiliate\",\"affirm\",\"affix\",\"afflicted\",\"affluent\",\"afford\",\"affront\",\"aflame\",\"afloat\",\"aflutter\",\"afoot\",\"afraid\",\"afterglow\",\"afterlife\",\"aftermath\",\"aftermost\",\"afternoon\",\"aged\",\"ageless\",\"agency\",\"agenda\",\"agent\",\"aggregate\",\"aghast\",\"agile\",\"agility\",\"aging\",\"agnostic\",\"agonize\",\"agonizing\",\"agony\",\"agreeable\",\"agreeably\",\"agreed\",\"agreeing\",\"agreement\",\"aground\",\"ahead\",\"ahoy\",\"aide\",\"aids\",\"aim\",\"ajar\",\"alabaster\",\"alarm\",\"albatross\",\"album\",\"alfalfa\",\"algebra\",\"algorithm\",\"alias\",\"alibi\",\"alienable\",\"alienate\",\"aliens\",\"alike\",\"alive\",\"alkaline\",\"alkalize\",\"almanac\",\"almighty\",\"almost\",\"aloe\",\"aloft\",\"aloha\",\"alone\",\"alongside\",\"aloof\",\"alphabet\",\"alright\",\"although\",\"altitude\",\"alto\",\"aluminum\",\"alumni\",\"always\",\"amaretto\",\"amaze\",\"amazingly\",\"amber\",\"ambiance\",\"ambiguity\",\"ambiguous\",\"ambition\",\"ambitious\",\"ambulance\",\"ambush\",\"amendable\",\"amendment\",\"amends\",\"amenity\",\"amiable\",\"amicably\",\"amid\",\"amigo\",\"amino\",\"amiss\",\"ammonia\",\"ammonium\",\"amnesty\",\"amniotic\",\"among\",\"amount\",\"amperage\",\"ample\",\"amplifier\",\"amplify\",\"amply\",\"amuck\",\"amulet\",\"amusable\",\"amused\",\"amusement\",\"amuser\",\"amusing\",\"anaconda\",\"anaerobic\",\"anagram\",\"anatomist\",\"anatomy\",\"anchor\",\"anchovy\",\"ancient\",\"android\",\"anemia\",\"anemic\",\"aneurism\",\"anew\",\"angelfish\",\"angelic\",\"anger\",\"angled\",\"angler\",\"angles\",\"angling\",\"angrily\",\"angriness\",\"anguished\",\"angular\",\"animal\",\"animate\",\"animating\",\"animation\",\"animator\",\"anime\",\"animosity\",\"ankle\",\"annex\",\"annotate\",\"announcer\",\"annoying\",\"annually\",\"annuity\",\"anointer\",\"another\",\"answering\",\"antacid\",\"antarctic\",\"anteater\",\"antelope\",\"antennae\",\"anthem\",\"anthill\",\"anthology\",\"antibody\",\"antics\",\"antidote\",\"antihero\",\"antiquely\",\"antiques\",\"antiquity\",\"antirust\",\"antitoxic\",\"antitrust\",\"antiviral\",\"antivirus\",\"antler\",\"antonym\",\"antsy\",\"anvil\",\"anybody\",\"anyhow\",\"anymore\",\"anyone\",\"anyplace\",\"anything\",\"anytime\",\"anyway\",\"anywhere\",\"aorta\",\"apache\",\"apostle\",\"appealing\",\"appear\",\"appease\",\"appeasing\",\"appendage\",\"appendix\",\"appetite\",\"appetizer\",\"applaud\",\"applause\",\"apple\",\"appliance\",\"applicant\",\"applied\",\"apply\",\"appointee\",\"appraisal\",\"appraiser\",\"apprehend\",\"approach\",\"approval\",\"approve\",\"apricot\",\"april\",\"apron\",\"aptitude\",\"aptly\",\"aqua\",\"aqueduct\",\"arbitrary\",\"arbitrate\",\"ardently\",\"area\",\"arena\",\"arguable\",\"arguably\",\"argue\",\"arise\",\"armadillo\",\"armband\",\"armchair\",\"armed\",\"armful\",\"armhole\",\"arming\",\"armless\",\"armoire\",\"armored\",\"armory\",\"armrest\",\"army\",\"aroma\",\"arose\",\"around\",\"arousal\",\"arrange\",\"array\",\"arrest\",\"arrival\",\"arrive\",\"arrogance\",\"arrogant\",\"arson\",\"art\",\"ascend\",\"ascension\",\"ascent\",\"ascertain\",\"ashamed\",\"ashen\",\"ashes\",\"ashy\",\"aside\",\"askew\",\"asleep\",\"asparagus\",\"aspect\",\"aspirate\",\"aspire\",\"aspirin\",\"astonish\",\"astound\",\"astride\",\"astrology\",\"astronaut\",\"astronomy\",\"astute\",\"atlantic\",\"atlas\",\"atom\",\"atonable\",\"atop\",\"atrium\",\"atrocious\",\"atrophy\",\"attach\",\"attain\",\"attempt\",\"attendant\",\"attendee\",\"attention\",\"attentive\",\"attest\",\"attic\",\"attire\",\"attitude\",\"attractor\",\"attribute\",\"atypical\",\"auction\",\"audacious\",\"audacity\",\"audible\",\"audibly\",\"audience\",\"audio\",\"audition\",\"augmented\",\"august\",\"authentic\",\"author\",\"autism\",\"autistic\",\"autograph\",\"automaker\",\"automated\",\"automatic\",\"autopilot\",\"available\",\"avalanche\",\"avatar\",\"avenge\",\"avenging\",\"avenue\",\"average\",\"aversion\",\"avert\",\"aviation\",\"aviator\",\"avid\",\"avoid\",\"await\",\"awaken\",\"award\",\"aware\",\"awhile\",\"awkward\",\"awning\",\"awoke\",\"awry\",\"axis\",\"babble\",\"babbling\",\"babied\",\"baboon\",\"backache\",\"backboard\",\"backboned\",\"backdrop\",\"backed\",\"backer\",\"backfield\",\"backfire\",\"backhand\",\"backing\",\"backlands\",\"backlash\",\"backless\",\"backlight\",\"backlit\",\"backlog\",\"backpack\",\"backpedal\",\"backrest\",\"backroom\",\"backshift\",\"backside\",\"backslid\",\"backspace\",\"backspin\",\"backstab\",\"backstage\",\"backtalk\",\"backtrack\",\"backup\",\"backward\",\"backwash\",\"backwater\",\"backyard\",\"bacon\",\"bacteria\",\"bacterium\",\"badass\",\"badge\",\"badland\",\"badly\",\"badness\",\"baffle\",\"baffling\",\"bagel\",\"bagful\",\"baggage\",\"bagged\",\"baggie\",\"bagginess\",\"bagging\",\"baggy\",\"bagpipe\",\"baguette\",\"baked\",\"bakery\",\"bakeshop\",\"baking\",\"balance\",\"balancing\",\"balcony\",\"balmy\",\"balsamic\",\"bamboo\",\"banana\",\"banish\",\"banister\",\"banjo\",\"bankable\",\"bankbook\",\"banked\",\"banker\",\"banking\",\"banknote\",\"bankroll\",\"banner\",\"bannister\",\"banshee\",\"banter\",\"barbecue\",\"barbed\",\"barbell\",\"barber\",\"barcode\",\"barge\",\"bargraph\",\"barista\",\"baritone\",\"barley\",\"barmaid\",\"barman\",\"barn\",\"barometer\",\"barrack\",\"barracuda\",\"barrel\",\"barrette\",\"barricade\",\"barrier\",\"barstool\",\"bartender\",\"barterer\",\"bash\",\"basically\",\"basics\",\"basil\",\"basin\",\"basis\",\"basket\",\"batboy\",\"batch\",\"bath\",\"baton\",\"bats\",\"battalion\",\"battered\",\"battering\",\"battery\",\"batting\",\"battle\",\"bauble\",\"bazooka\",\"blabber\",\"bladder\",\"blade\",\"blah\",\"blame\",\"blaming\",\"blanching\",\"blandness\",\"blank\",\"blaspheme\",\"blasphemy\",\"blast\",\"blatancy\",\"blatantly\",\"blazer\",\"blazing\",\"bleach\",\"bleak\",\"bleep\",\"blemish\",\"blend\",\"bless\",\"blighted\",\"blimp\",\"bling\",\"blinked\",\"blinker\",\"blinking\",\"blinks\",\"blip\",\"blissful\",\"blitz\",\"blizzard\",\"bloated\",\"bloating\",\"blob\",\"blog\",\"bloomers\",\"blooming\",\"blooper\",\"blot\",\"blouse\",\"blubber\",\"bluff\",\"bluish\",\"blunderer\",\"blunt\",\"blurb\",\"blurred\",\"blurry\",\"blurt\",\"blush\",\"blustery\",\"boaster\",\"boastful\",\"boasting\",\"boat\",\"bobbed\",\"bobbing\",\"bobble\",\"bobcat\",\"bobsled\",\"bobtail\",\"bodacious\",\"body\",\"bogged\",\"boggle\",\"bogus\",\"boil\",\"bok\",\"bolster\",\"bolt\",\"bonanza\",\"bonded\",\"bonding\",\"bondless\",\"boned\",\"bonehead\",\"boneless\",\"bonelike\",\"boney\",\"bonfire\",\"bonnet\",\"bonsai\",\"bonus\",\"bony\",\"boogeyman\",\"boogieman\",\"book\",\"boondocks\",\"booted\",\"booth\",\"bootie\",\"booting\",\"bootlace\",\"bootleg\",\"boots\",\"boozy\",\"borax\",\"boring\",\"borough\",\"borrower\",\"borrowing\",\"boss\",\"botanical\",\"botanist\",\"botany\",\"botch\",\"both\",\"bottle\",\"bottling\",\"bottom\",\"bounce\",\"bouncing\",\"bouncy\",\"bounding\",\"boundless\",\"bountiful\",\"bovine\",\"boxcar\",\"boxer\",\"boxing\",\"boxlike\",\"boxy\",\"breach\",\"breath\",\"breeches\",\"breeching\",\"breeder\",\"breeding\",\"breeze\",\"breezy\",\"brethren\",\"brewery\",\"brewing\",\"briar\",\"bribe\",\"brick\",\"bride\",\"bridged\",\"brigade\",\"bright\",\"brilliant\",\"brim\",\"bring\",\"brink\",\"brisket\",\"briskly\",\"briskness\",\"bristle\",\"brittle\",\"broadband\",\"broadcast\",\"broaden\",\"broadly\",\"broadness\",\"broadside\",\"broadways\",\"broiler\",\"broiling\",\"broken\",\"broker\",\"bronchial\",\"bronco\",\"bronze\",\"bronzing\",\"brook\",\"broom\",\"brought\",\"browbeat\",\"brownnose\",\"browse\",\"browsing\",\"bruising\",\"brunch\",\"brunette\",\"brunt\",\"brush\",\"brussels\",\"brute\",\"brutishly\",\"bubble\",\"bubbling\",\"bubbly\",\"buccaneer\",\"bucked\",\"bucket\",\"buckle\",\"buckshot\",\"buckskin\",\"bucktooth\",\"buckwheat\",\"buddhism\",\"buddhist\",\"budding\",\"buddy\",\"budget\",\"buffalo\",\"buffed\",\"buffer\",\"buffing\",\"buffoon\",\"buggy\",\"bulb\",\"bulge\",\"bulginess\",\"bulgur\",\"bulk\",\"bulldog\",\"bulldozer\",\"bullfight\",\"bullfrog\",\"bullhorn\",\"bullion\",\"bullish\",\"bullpen\",\"bullring\",\"bullseye\",\"bullwhip\",\"bully\",\"bunch\",\"bundle\",\"bungee\",\"bunion\",\"bunkbed\",\"bunkhouse\",\"bunkmate\",\"bunny\",\"bunt\",\"busboy\",\"bush\",\"busily\",\"busload\",\"bust\",\"busybody\",\"buzz\",\"cabana\",\"cabbage\",\"cabbie\",\"cabdriver\",\"cable\",\"caboose\",\"cache\",\"cackle\",\"cacti\",\"cactus\",\"caddie\",\"caddy\",\"cadet\",\"cadillac\",\"cadmium\",\"cage\",\"cahoots\",\"cake\",\"calamari\",\"calamity\",\"calcium\",\"calculate\",\"calculus\",\"caliber\",\"calibrate\",\"calm\",\"caloric\",\"calorie\",\"calzone\",\"camcorder\",\"cameo\",\"camera\",\"camisole\",\"camper\",\"campfire\",\"camping\",\"campsite\",\"campus\",\"canal\",\"canary\",\"cancel\",\"candied\",\"candle\",\"candy\",\"cane\",\"canine\",\"canister\",\"cannabis\",\"canned\",\"canning\",\"cannon\",\"cannot\",\"canola\",\"canon\",\"canopener\",\"canopy\",\"canteen\",\"canyon\",\"capable\",\"capably\",\"capacity\",\"cape\",\"capillary\",\"capital\",\"capitol\",\"capped\",\"capricorn\",\"capsize\",\"capsule\",\"caption\",\"captivate\",\"captive\",\"captivity\",\"capture\",\"caramel\",\"carat\",\"caravan\",\"carbon\",\"cardboard\",\"carded\",\"cardiac\",\"cardigan\",\"cardinal\",\"cardstock\",\"carefully\",\"caregiver\",\"careless\",\"caress\",\"caretaker\",\"cargo\",\"caring\",\"carless\",\"carload\",\"carmaker\",\"carnage\",\"carnation\",\"carnival\",\"carnivore\",\"carol\",\"carpenter\",\"carpentry\",\"carpool\",\"carport\",\"carried\",\"carrot\",\"carrousel\",\"carry\",\"cartel\",\"cartload\",\"carton\",\"cartoon\",\"cartridge\",\"cartwheel\",\"carve\",\"carving\",\"carwash\",\"cascade\",\"case\",\"cash\",\"casing\",\"casino\",\"casket\",\"cassette\",\"casually\",\"casualty\",\"catacomb\",\"catalog\",\"catalyst\",\"catalyze\",\"catapult\",\"cataract\",\"catatonic\",\"catcall\",\"catchable\",\"catcher\",\"catching\",\"catchy\",\"caterer\",\"catering\",\"catfight\",\"catfish\",\"cathedral\",\"cathouse\",\"catlike\",\"catnap\",\"catnip\",\"catsup\",\"cattail\",\"cattishly\",\"cattle\",\"catty\",\"catwalk\",\"caucasian\",\"caucus\",\"causal\",\"causation\",\"cause\",\"causing\",\"cauterize\",\"caution\",\"cautious\",\"cavalier\",\"cavalry\",\"caviar\",\"cavity\",\"cedar\",\"celery\",\"celestial\",\"celibacy\",\"celibate\",\"celtic\",\"cement\",\"census\",\"ceramics\",\"ceremony\",\"certainly\",\"certainty\",\"certified\",\"certify\",\"cesarean\",\"cesspool\",\"chafe\",\"chaffing\",\"chain\",\"chair\",\"chalice\",\"challenge\",\"chamber\",\"chamomile\",\"champion\",\"chance\",\"change\",\"channel\",\"chant\",\"chaos\",\"chaperone\",\"chaplain\",\"chapped\",\"chaps\",\"chapter\",\"character\",\"charbroil\",\"charcoal\",\"charger\",\"charging\",\"chariot\",\"charity\",\"charm\",\"charred\",\"charter\",\"charting\",\"chase\",\"chasing\",\"chaste\",\"chastise\",\"chastity\",\"chatroom\",\"chatter\",\"chatting\",\"chatty\",\"cheating\",\"cheddar\",\"cheek\",\"cheer\",\"cheese\",\"cheesy\",\"chef\",\"chemicals\",\"chemist\",\"chemo\",\"cherisher\",\"cherub\",\"chess\",\"chest\",\"chevron\",\"chevy\",\"chewable\",\"chewer\",\"chewing\",\"chewy\",\"chief\",\"chihuahua\",\"childcare\",\"childhood\",\"childish\",\"childless\",\"childlike\",\"chili\",\"chill\",\"chimp\",\"chip\",\"chirping\",\"chirpy\",\"chitchat\",\"chivalry\",\"chive\",\"chloride\",\"chlorine\",\"choice\",\"chokehold\",\"choking\",\"chomp\",\"chooser\",\"choosing\",\"choosy\",\"chop\",\"chosen\",\"chowder\",\"chowtime\",\"chrome\",\"chubby\",\"chuck\",\"chug\",\"chummy\",\"chump\",\"chunk\",\"churn\",\"chute\",\"cider\",\"cilantro\",\"cinch\",\"cinema\",\"cinnamon\",\"circle\",\"circling\",\"circular\",\"circulate\",\"circus\",\"citable\",\"citadel\",\"citation\",\"citizen\",\"citric\",\"citrus\",\"city\",\"civic\",\"civil\",\"clad\",\"claim\",\"clambake\",\"clammy\",\"clamor\",\"clamp\",\"clamshell\",\"clang\",\"clanking\",\"clapped\",\"clapper\",\"clapping\",\"clarify\",\"clarinet\",\"clarity\",\"clash\",\"clasp\",\"class\",\"clatter\",\"clause\",\"clavicle\",\"claw\",\"clay\",\"clean\",\"clear\",\"cleat\",\"cleaver\",\"cleft\",\"clench\",\"clergyman\",\"clerical\",\"clerk\",\"clever\",\"clicker\",\"client\",\"climate\",\"climatic\",\"cling\",\"clinic\",\"clinking\",\"clip\",\"clique\",\"cloak\",\"clobber\",\"clock\",\"clone\",\"cloning\",\"closable\",\"closure\",\"clothes\",\"clothing\",\"cloud\",\"clover\",\"clubbed\",\"clubbing\",\"clubhouse\",\"clump\",\"clumsily\",\"clumsy\",\"clunky\",\"clustered\",\"clutch\",\"clutter\",\"coach\",\"coagulant\",\"coastal\",\"coaster\",\"coasting\",\"coastland\",\"coastline\",\"coat\",\"coauthor\",\"cobalt\",\"cobbler\",\"cobweb\",\"cocoa\",\"coconut\",\"cod\",\"coeditor\",\"coerce\",\"coexist\",\"coffee\",\"cofounder\",\"cognition\",\"cognitive\",\"cogwheel\",\"coherence\",\"coherent\",\"cohesive\",\"coil\",\"coke\",\"cola\",\"cold\",\"coleslaw\",\"coliseum\",\"collage\",\"collapse\",\"collar\",\"collected\",\"collector\",\"collide\",\"collie\",\"collision\",\"colonial\",\"colonist\",\"colonize\",\"colony\",\"colossal\",\"colt\",\"coma\",\"come\",\"comfort\",\"comfy\",\"comic\",\"coming\",\"comma\",\"commence\",\"commend\",\"comment\",\"commerce\",\"commode\",\"commodity\",\"commodore\",\"common\",\"commotion\",\"commute\",\"commuting\",\"compacted\",\"compacter\",\"compactly\",\"compactor\",\"companion\",\"company\",\"compare\",\"compel\",\"compile\",\"comply\",\"component\",\"composed\",\"composer\",\"composite\",\"compost\",\"composure\",\"compound\",\"compress\",\"comprised\",\"computer\",\"computing\",\"comrade\",\"concave\",\"conceal\",\"conceded\",\"concept\",\"concerned\",\"concert\",\"conch\",\"concierge\",\"concise\",\"conclude\",\"concrete\",\"concur\",\"condense\",\"condiment\",\"condition\",\"condone\",\"conducive\",\"conductor\",\"conduit\",\"cone\",\"confess\",\"confetti\",\"confidant\",\"confident\",\"confider\",\"confiding\",\"configure\",\"confined\",\"confining\",\"confirm\",\"conflict\",\"conform\",\"confound\",\"confront\",\"confused\",\"confusing\",\"confusion\",\"congenial\",\"congested\",\"congrats\",\"congress\",\"conical\",\"conjoined\",\"conjure\",\"conjuror\",\"connected\",\"connector\",\"consensus\",\"consent\",\"console\",\"consoling\",\"consonant\",\"constable\",\"constant\",\"constrain\",\"constrict\",\"construct\",\"consult\",\"consumer\",\"consuming\",\"contact\",\"container\",\"contempt\",\"contend\",\"contented\",\"contently\",\"contents\",\"contest\",\"context\",\"contort\",\"contour\",\"contrite\",\"control\",\"contusion\",\"convene\",\"convent\",\"copartner\",\"cope\",\"copied\",\"copier\",\"copilot\",\"coping\",\"copious\",\"copper\",\"copy\",\"coral\",\"cork\",\"cornball\",\"cornbread\",\"corncob\",\"cornea\",\"corned\",\"corner\",\"cornfield\",\"cornflake\",\"cornhusk\",\"cornmeal\",\"cornstalk\",\"corny\",\"coronary\",\"coroner\",\"corporal\",\"corporate\",\"corral\",\"correct\",\"corridor\",\"corrode\",\"corroding\",\"corrosive\",\"corsage\",\"corset\",\"cortex\",\"cosigner\",\"cosmetics\",\"cosmic\",\"cosmos\",\"cosponsor\",\"cost\",\"cottage\",\"cotton\",\"couch\",\"cough\",\"could\",\"countable\",\"countdown\",\"counting\",\"countless\",\"country\",\"county\",\"courier\",\"covenant\",\"cover\",\"coveted\",\"coveting\",\"coyness\",\"cozily\",\"coziness\",\"cozy\",\"crabbing\",\"crabgrass\",\"crablike\",\"crabmeat\",\"cradle\",\"cradling\",\"crafter\",\"craftily\",\"craftsman\",\"craftwork\",\"crafty\",\"cramp\",\"cranberry\",\"crane\",\"cranial\",\"cranium\",\"crank\",\"crate\",\"crave\",\"craving\",\"crawfish\",\"crawlers\",\"crawling\",\"crayfish\",\"crayon\",\"crazed\",\"crazily\",\"craziness\",\"crazy\",\"creamed\",\"creamer\",\"creamlike\",\"crease\",\"creasing\",\"creatable\",\"create\",\"creation\",\"creative\",\"creature\",\"credible\",\"credibly\",\"credit\",\"creed\",\"creme\",\"creole\",\"crepe\",\"crept\",\"crescent\",\"crested\",\"cresting\",\"crestless\",\"crevice\",\"crewless\",\"crewman\",\"crewmate\",\"crib\",\"cricket\",\"cried\",\"crier\",\"crimp\",\"crimson\",\"cringe\",\"cringing\",\"crinkle\",\"crinkly\",\"crisped\",\"crisping\",\"crisply\",\"crispness\",\"crispy\",\"criteria\",\"critter\",\"croak\",\"crock\",\"crook\",\"croon\",\"crop\",\"cross\",\"crouch\",\"crouton\",\"crowbar\",\"crowd\",\"crown\",\"crucial\",\"crudely\",\"crudeness\",\"cruelly\",\"cruelness\",\"cruelty\",\"crumb\",\"crummiest\",\"crummy\",\"crumpet\",\"crumpled\",\"cruncher\",\"crunching\",\"crunchy\",\"crusader\",\"crushable\",\"crushed\",\"crusher\",\"crushing\",\"crust\",\"crux\",\"crying\",\"cryptic\",\"crystal\",\"cubbyhole\",\"cube\",\"cubical\",\"cubicle\",\"cucumber\",\"cuddle\",\"cuddly\",\"cufflink\",\"culinary\",\"culminate\",\"culpable\",\"culprit\",\"cultivate\",\"cultural\",\"culture\",\"cupbearer\",\"cupcake\",\"cupid\",\"cupped\",\"cupping\",\"curable\",\"curator\",\"curdle\",\"cure\",\"curfew\",\"curing\",\"curled\",\"curler\",\"curliness\",\"curling\",\"curly\",\"curry\",\"curse\",\"cursive\",\"cursor\",\"curtain\",\"curtly\",\"curtsy\",\"curvature\",\"curve\",\"curvy\",\"cushy\",\"cusp\",\"cussed\",\"custard\",\"custodian\",\"custody\",\"customary\",\"customer\",\"customize\",\"customs\",\"cut\",\"cycle\",\"cyclic\",\"cycling\",\"cyclist\",\"cylinder\",\"cymbal\",\"cytoplasm\",\"cytoplast\",\"dab\",\"dad\",\"daffodil\",\"dagger\",\"daily\",\"daintily\",\"dainty\",\"dairy\",\"daisy\",\"dallying\",\"dance\",\"dancing\",\"dandelion\",\"dander\",\"dandruff\",\"dandy\",\"danger\",\"dangle\",\"dangling\",\"daredevil\",\"dares\",\"daringly\",\"darkened\",\"darkening\",\"darkish\",\"darkness\",\"darkroom\",\"darling\",\"darn\",\"dart\",\"darwinism\",\"dash\",\"dastardly\",\"data\",\"datebook\",\"dating\",\"daughter\",\"daunting\",\"dawdler\",\"dawn\",\"daybed\",\"daybreak\",\"daycare\",\"daydream\",\"daylight\",\"daylong\",\"dayroom\",\"daytime\",\"dazzler\",\"dazzling\",\"deacon\",\"deafening\",\"deafness\",\"dealer\",\"dealing\",\"dealmaker\",\"dealt\",\"dean\",\"debatable\",\"debate\",\"debating\",\"debit\",\"debrief\",\"debtless\",\"debtor\",\"debug\",\"debunk\",\"decade\",\"decaf\",\"decal\",\"decathlon\",\"decay\",\"deceased\",\"deceit\",\"deceiver\",\"deceiving\",\"december\",\"decency\",\"decent\",\"deception\",\"deceptive\",\"decibel\",\"decidable\",\"decimal\",\"decimeter\",\"decipher\",\"deck\",\"declared\",\"decline\",\"decode\",\"decompose\",\"decorated\",\"decorator\",\"decoy\",\"decrease\",\"decree\",\"dedicate\",\"dedicator\",\"deduce\",\"deduct\",\"deed\",\"deem\",\"deepen\",\"deeply\",\"deepness\",\"deface\",\"defacing\",\"defame\",\"default\",\"defeat\",\"defection\",\"defective\",\"defendant\",\"defender\",\"defense\",\"defensive\",\"deferral\",\"deferred\",\"defiance\",\"defiant\",\"defile\",\"defiling\",\"define\",\"definite\",\"deflate\",\"deflation\",\"deflator\",\"deflected\",\"deflector\",\"defog\",\"deforest\",\"defraud\",\"defrost\",\"deftly\",\"defuse\",\"defy\",\"degraded\",\"degrading\",\"degrease\",\"degree\",\"dehydrate\",\"deity\",\"dejected\",\"delay\",\"delegate\",\"delegator\",\"delete\",\"deletion\",\"delicacy\",\"delicate\",\"delicious\",\"delighted\",\"delirious\",\"delirium\",\"deliverer\",\"delivery\",\"delouse\",\"delta\",\"deluge\",\"delusion\",\"deluxe\",\"demanding\",\"demeaning\",\"demeanor\",\"demise\",\"democracy\",\"democrat\",\"demote\",\"demotion\",\"demystify\",\"denatured\",\"deniable\",\"denial\",\"denim\",\"denote\",\"dense\",\"density\",\"dental\",\"dentist\",\"denture\",\"deny\",\"deodorant\",\"deodorize\",\"departed\",\"departure\",\"depict\",\"deplete\",\"depletion\",\"deplored\",\"deploy\",\"deport\",\"depose\",\"depraved\",\"depravity\",\"deprecate\",\"depress\",\"deprive\",\"depth\",\"deputize\",\"deputy\",\"derail\",\"deranged\",\"derby\",\"derived\",\"desecrate\",\"deserve\",\"deserving\",\"designate\",\"designed\",\"designer\",\"designing\",\"deskbound\",\"desktop\",\"deskwork\",\"desolate\",\"despair\",\"despise\",\"despite\",\"destiny\",\"destitute\",\"destruct\",\"detached\",\"detail\",\"detection\",\"detective\",\"detector\",\"detention\",\"detergent\",\"detest\",\"detonate\",\"detonator\",\"detoxify\",\"detract\",\"deuce\",\"devalue\",\"deviancy\",\"deviant\",\"deviate\",\"deviation\",\"deviator\",\"device\",\"devious\",\"devotedly\",\"devotee\",\"devotion\",\"devourer\",\"devouring\",\"devoutly\",\"dexterity\",\"dexterous\",\"diabetes\",\"diabetic\",\"diabolic\",\"diagnoses\",\"diagnosis\",\"diagram\",\"dial\",\"diameter\",\"diaper\",\"diaphragm\",\"diary\",\"dice\",\"dicing\",\"dictate\",\"dictation\",\"dictator\",\"difficult\",\"diffused\",\"diffuser\",\"diffusion\",\"diffusive\",\"dig\",\"dilation\",\"diligence\",\"diligent\",\"dill\",\"dilute\",\"dime\",\"diminish\",\"dimly\",\"dimmed\",\"dimmer\",\"dimness\",\"dimple\",\"diner\",\"dingbat\",\"dinghy\",\"dinginess\",\"dingo\",\"dingy\",\"dining\",\"dinner\",\"diocese\",\"dioxide\",\"diploma\",\"dipped\",\"dipper\",\"dipping\",\"directed\",\"direction\",\"directive\",\"directly\",\"directory\",\"direness\",\"dirtiness\",\"disabled\",\"disagree\",\"disallow\",\"disarm\",\"disarray\",\"disaster\",\"disband\",\"disbelief\",\"disburse\",\"discard\",\"discern\",\"discharge\",\"disclose\",\"discolor\",\"discount\",\"discourse\",\"discover\",\"discuss\",\"disdain\",\"disengage\",\"disfigure\",\"disgrace\",\"dish\",\"disinfect\",\"disjoin\",\"disk\",\"dislike\",\"disliking\",\"dislocate\",\"dislodge\",\"disloyal\",\"dismantle\",\"dismay\",\"dismiss\",\"dismount\",\"disobey\",\"disorder\",\"disown\",\"disparate\",\"disparity\",\"dispatch\",\"dispense\",\"dispersal\",\"dispersed\",\"disperser\",\"displace\",\"display\",\"displease\",\"disposal\",\"dispose\",\"disprove\",\"dispute\",\"disregard\",\"disrupt\",\"dissuade\",\"distance\",\"distant\",\"distaste\",\"distill\",\"distinct\",\"distort\",\"distract\",\"distress\",\"district\",\"distrust\",\"ditch\",\"ditto\",\"ditzy\",\"dividable\",\"divided\",\"dividend\",\"dividers\",\"dividing\",\"divinely\",\"diving\",\"divinity\",\"divisible\",\"divisibly\",\"division\",\"divisive\",\"divorcee\",\"dizziness\",\"dizzy\",\"doable\",\"docile\",\"dock\",\"doctrine\",\"document\",\"dodge\",\"dodgy\",\"doily\",\"doing\",\"dole\",\"dollar\",\"dollhouse\",\"dollop\",\"dolly\",\"dolphin\",\"domain\",\"domelike\",\"domestic\",\"dominion\",\"dominoes\",\"donated\",\"donation\",\"donator\",\"donor\",\"donut\",\"doodle\",\"doorbell\",\"doorframe\",\"doorknob\",\"doorman\",\"doormat\",\"doornail\",\"doorpost\",\"doorstep\",\"doorstop\",\"doorway\",\"doozy\",\"dork\",\"dormitory\",\"dorsal\",\"dosage\",\"dose\",\"dotted\",\"doubling\",\"douche\",\"dove\",\"down\",\"dowry\",\"doze\",\"drab\",\"dragging\",\"dragonfly\",\"dragonish\",\"dragster\",\"drainable\",\"drainage\",\"drained\",\"drainer\",\"drainpipe\",\"dramatic\",\"dramatize\",\"drank\",\"drapery\",\"drastic\",\"draw\",\"dreaded\",\"dreadful\",\"dreadlock\",\"dreamboat\",\"dreamily\",\"dreamland\",\"dreamless\",\"dreamlike\",\"dreamt\",\"dreamy\",\"drearily\",\"dreary\",\"drench\",\"dress\",\"drew\",\"dribble\",\"dried\",\"drier\",\"drift\",\"driller\",\"drilling\",\"drinkable\",\"drinking\",\"dripping\",\"drippy\",\"drivable\",\"driven\",\"driver\",\"driveway\",\"driving\",\"drizzle\",\"drizzly\",\"drone\",\"drool\",\"droop\",\"drop-down\",\"dropbox\",\"dropkick\",\"droplet\",\"dropout\",\"dropper\",\"drove\",\"drown\",\"drowsily\",\"drudge\",\"drum\",\"dry\",\"dubbed\",\"dubiously\",\"duchess\",\"duckbill\",\"ducking\",\"duckling\",\"ducktail\",\"ducky\",\"duct\",\"dude\",\"duffel\",\"dugout\",\"duh\",\"duke\",\"duller\",\"dullness\",\"duly\",\"dumping\",\"dumpling\",\"dumpster\",\"duo\",\"dupe\",\"duplex\",\"duplicate\",\"duplicity\",\"durable\",\"durably\",\"duration\",\"duress\",\"during\",\"dusk\",\"dust\",\"dutiful\",\"duty\",\"duvet\",\"dwarf\",\"dweeb\",\"dwelled\",\"dweller\",\"dwelling\",\"dwindle\",\"dwindling\",\"dynamic\",\"dynamite\",\"dynasty\",\"dyslexia\",\"dyslexic\",\"each\",\"eagle\",\"earache\",\"eardrum\",\"earflap\",\"earful\",\"earlobe\",\"early\",\"earmark\",\"earmuff\",\"earphone\",\"earpiece\",\"earplugs\",\"earring\",\"earshot\",\"earthen\",\"earthlike\",\"earthling\",\"earthly\",\"earthworm\",\"earthy\",\"earwig\",\"easeful\",\"easel\",\"easiest\",\"easily\",\"easiness\",\"easing\",\"eastbound\",\"eastcoast\",\"easter\",\"eastward\",\"eatable\",\"eaten\",\"eatery\",\"eating\",\"eats\",\"ebay\",\"ebony\",\"ebook\",\"ecard\",\"eccentric\",\"echo\",\"eclair\",\"eclipse\",\"ecologist\",\"ecology\",\"economic\",\"economist\",\"economy\",\"ecosphere\",\"ecosystem\",\"edge\",\"edginess\",\"edging\",\"edgy\",\"edition\",\"editor\",\"educated\",\"education\",\"educator\",\"eel\",\"effective\",\"effects\",\"efficient\",\"effort\",\"eggbeater\",\"egging\",\"eggnog\",\"eggplant\",\"eggshell\",\"egomaniac\",\"egotism\",\"egotistic\",\"either\",\"eject\",\"elaborate\",\"elastic\",\"elated\",\"elbow\",\"eldercare\",\"elderly\",\"eldest\",\"electable\",\"election\",\"elective\",\"elephant\",\"elevate\",\"elevating\",\"elevation\",\"elevator\",\"eleven\",\"elf\",\"eligible\",\"eligibly\",\"eliminate\",\"elite\",\"elitism\",\"elixir\",\"elk\",\"ellipse\",\"elliptic\",\"elm\",\"elongated\",\"elope\",\"eloquence\",\"eloquent\",\"elsewhere\",\"elude\",\"elusive\",\"elves\",\"email\",\"embargo\",\"embark\",\"embassy\",\"embattled\",\"embellish\",\"ember\",\"embezzle\",\"emblaze\",\"emblem\",\"embody\",\"embolism\",\"emboss\",\"embroider\",\"emcee\",\"emerald\",\"emergency\",\"emission\",\"emit\",\"emote\",\"emoticon\",\"emotion\",\"empathic\",\"empathy\",\"emperor\",\"emphases\",\"emphasis\",\"emphasize\",\"emphatic\",\"empirical\",\"employed\",\"employee\",\"employer\",\"emporium\",\"empower\",\"emptier\",\"emptiness\",\"empty\",\"emu\",\"enable\",\"enactment\",\"enamel\",\"enchanted\",\"enchilada\",\"encircle\",\"enclose\",\"enclosure\",\"encode\",\"encore\",\"encounter\",\"encourage\",\"encroach\",\"encrust\",\"encrypt\",\"endanger\",\"endeared\",\"endearing\",\"ended\",\"ending\",\"endless\",\"endnote\",\"endocrine\",\"endorphin\",\"endorse\",\"endowment\",\"endpoint\",\"endurable\",\"endurance\",\"enduring\",\"energetic\",\"energize\",\"energy\",\"enforced\",\"enforcer\",\"engaged\",\"engaging\",\"engine\",\"engorge\",\"engraved\",\"engraver\",\"engraving\",\"engross\",\"engulf\",\"enhance\",\"enigmatic\",\"enjoyable\",\"enjoyably\",\"enjoyer\",\"enjoying\",\"enjoyment\",\"enlarged\",\"enlarging\",\"enlighten\",\"enlisted\",\"enquirer\",\"enrage\",\"enrich\",\"enroll\",\"enslave\",\"ensnare\",\"ensure\",\"entail\",\"entangled\",\"entering\",\"entertain\",\"enticing\",\"entire\",\"entitle\",\"entity\",\"entomb\",\"entourage\",\"entrap\",\"entree\",\"entrench\",\"entrust\",\"entryway\",\"entwine\",\"enunciate\",\"envelope\",\"enviable\",\"enviably\",\"envious\",\"envision\",\"envoy\",\"envy\",\"enzyme\",\"epic\",\"epidemic\",\"epidermal\",\"epidermis\",\"epidural\",\"epilepsy\",\"epileptic\",\"epilogue\",\"epiphany\",\"episode\",\"equal\",\"equate\",\"equation\",\"equator\",\"equinox\",\"equipment\",\"equity\",\"equivocal\",\"eradicate\",\"erasable\",\"erased\",\"eraser\",\"erasure\",\"ergonomic\",\"errand\",\"errant\",\"erratic\",\"error\",\"erupt\",\"escalate\",\"escalator\",\"escapable\",\"escapade\",\"escapist\",\"escargot\",\"eskimo\",\"esophagus\",\"espionage\",\"espresso\",\"esquire\",\"essay\",\"essence\",\"essential\",\"establish\",\"estate\",\"esteemed\",\"estimate\",\"estimator\",\"estranged\",\"estrogen\",\"etching\",\"eternal\",\"eternity\",\"ethanol\",\"ether\",\"ethically\",\"ethics\",\"euphemism\",\"evacuate\",\"evacuee\",\"evade\",\"evaluate\",\"evaluator\",\"evaporate\",\"evasion\",\"evasive\",\"even\",\"everglade\",\"evergreen\",\"everybody\",\"everyday\",\"everyone\",\"evict\",\"evidence\",\"evident\",\"evil\",\"evoke\",\"evolution\",\"evolve\",\"exact\",\"exalted\",\"example\",\"excavate\",\"excavator\",\"exceeding\",\"exception\",\"excess\",\"exchange\",\"excitable\",\"exciting\",\"exclaim\",\"exclude\",\"excluding\",\"exclusion\",\"exclusive\",\"excretion\",\"excretory\",\"excursion\",\"excusable\",\"excusably\",\"excuse\",\"exemplary\",\"exemplify\",\"exemption\",\"exerciser\",\"exert\",\"exes\",\"exfoliate\",\"exhale\",\"exhaust\",\"exhume\",\"exile\",\"existing\",\"exit\",\"exodus\",\"exonerate\",\"exorcism\",\"exorcist\",\"expand\",\"expanse\",\"expansion\",\"expansive\",\"expectant\",\"expedited\",\"expediter\",\"expel\",\"expend\",\"expenses\",\"expensive\",\"expert\",\"expire\",\"expiring\",\"explain\",\"expletive\",\"explicit\",\"explode\",\"exploit\",\"explore\",\"exploring\",\"exponent\",\"exporter\",\"exposable\",\"expose\",\"exposure\",\"express\",\"expulsion\",\"exquisite\",\"extended\",\"extending\",\"extent\",\"extenuate\",\"exterior\",\"external\",\"extinct\",\"extortion\",\"extradite\",\"extras\",\"extrovert\",\"extrude\",\"extruding\",\"exuberant\",\"fable\",\"fabric\",\"fabulous\",\"facebook\",\"facecloth\",\"facedown\",\"faceless\",\"facelift\",\"faceplate\",\"faceted\",\"facial\",\"facility\",\"facing\",\"facsimile\",\"faction\",\"factoid\",\"factor\",\"factsheet\",\"factual\",\"faculty\",\"fade\",\"fading\",\"failing\",\"falcon\",\"fall\",\"false\",\"falsify\",\"fame\",\"familiar\",\"family\",\"famine\",\"famished\",\"fanatic\",\"fancied\",\"fanciness\",\"fancy\",\"fanfare\",\"fang\",\"fanning\",\"fantasize\",\"fantastic\",\"fantasy\",\"fascism\",\"fastball\",\"faster\",\"fasting\",\"fastness\",\"faucet\",\"favorable\",\"favorably\",\"favored\",\"favoring\",\"favorite\",\"fax\",\"feast\",\"federal\",\"fedora\",\"feeble\",\"feed\",\"feel\",\"feisty\",\"feline\",\"felt-tip\",\"feminine\",\"feminism\",\"feminist\",\"feminize\",\"femur\",\"fence\",\"fencing\",\"fender\",\"ferment\",\"fernlike\",\"ferocious\",\"ferocity\",\"ferret\",\"ferris\",\"ferry\",\"fervor\",\"fester\",\"festival\",\"festive\",\"festivity\",\"fetal\",\"fetch\",\"fever\",\"fiber\",\"fiction\",\"fiddle\",\"fiddling\",\"fidelity\",\"fidgeting\",\"fidgety\",\"fifteen\",\"fifth\",\"fiftieth\",\"fifty\",\"figment\",\"figure\",\"figurine\",\"filing\",\"filled\",\"filler\",\"filling\",\"film\",\"filter\",\"filth\",\"filtrate\",\"finale\",\"finalist\",\"finalize\",\"finally\",\"finance\",\"financial\",\"finch\",\"fineness\",\"finer\",\"finicky\",\"finished\",\"finisher\",\"finishing\",\"finite\",\"finless\",\"finlike\",\"fiscally\",\"fit\",\"five\",\"flaccid\",\"flagman\",\"flagpole\",\"flagship\",\"flagstick\",\"flagstone\",\"flail\",\"flakily\",\"flaky\",\"flame\",\"flammable\",\"flanked\",\"flanking\",\"flannels\",\"flap\",\"flaring\",\"flashback\",\"flashbulb\",\"flashcard\",\"flashily\",\"flashing\",\"flashy\",\"flask\",\"flatbed\",\"flatfoot\",\"flatly\",\"flatness\",\"flatten\",\"flattered\",\"flatterer\",\"flattery\",\"flattop\",\"flatware\",\"flatworm\",\"flavored\",\"flavorful\",\"flavoring\",\"flaxseed\",\"fled\",\"fleshed\",\"fleshy\",\"flick\",\"flier\",\"flight\",\"flinch\",\"fling\",\"flint\",\"flip\",\"flirt\",\"float\",\"flock\",\"flogging\",\"flop\",\"floral\",\"florist\",\"floss\",\"flounder\",\"flyable\",\"flyaway\",\"flyer\",\"flying\",\"flyover\",\"flypaper\",\"foam\",\"foe\",\"fog\",\"foil\",\"folic\",\"folk\",\"follicle\",\"follow\",\"fondling\",\"fondly\",\"fondness\",\"fondue\",\"font\",\"food\",\"fool\",\"footage\",\"football\",\"footbath\",\"footboard\",\"footer\",\"footgear\",\"foothill\",\"foothold\",\"footing\",\"footless\",\"footman\",\"footnote\",\"footpad\",\"footpath\",\"footprint\",\"footrest\",\"footsie\",\"footsore\",\"footwear\",\"footwork\",\"fossil\",\"foster\",\"founder\",\"founding\",\"fountain\",\"fox\",\"foyer\",\"fraction\",\"fracture\",\"fragile\",\"fragility\",\"fragment\",\"fragrance\",\"fragrant\",\"frail\",\"frame\",\"framing\",\"frantic\",\"fraternal\",\"frayed\",\"fraying\",\"frays\",\"freckled\",\"freckles\",\"freebase\",\"freebee\",\"freebie\",\"freedom\",\"freefall\",\"freehand\",\"freeing\",\"freeload\",\"freely\",\"freemason\",\"freeness\",\"freestyle\",\"freeware\",\"freeway\",\"freewill\",\"freezable\",\"freezing\",\"freight\",\"french\",\"frenzied\",\"frenzy\",\"frequency\",\"frequent\",\"fresh\",\"fretful\",\"fretted\",\"friction\",\"friday\",\"fridge\",\"fried\",\"friend\",\"frighten\",\"frightful\",\"frigidity\",\"frigidly\",\"frill\",\"fringe\",\"frisbee\",\"frisk\",\"fritter\",\"frivolous\",\"frolic\",\"from\",\"front\",\"frostbite\",\"frosted\",\"frostily\",\"frosting\",\"frostlike\",\"frosty\",\"froth\",\"frown\",\"frozen\",\"fructose\",\"frugality\",\"frugally\",\"fruit\",\"frustrate\",\"frying\",\"gab\",\"gaffe\",\"gag\",\"gainfully\",\"gaining\",\"gains\",\"gala\",\"gallantly\",\"galleria\",\"gallery\",\"galley\",\"gallon\",\"gallows\",\"gallstone\",\"galore\",\"galvanize\",\"gambling\",\"game\",\"gaming\",\"gamma\",\"gander\",\"gangly\",\"gangrene\",\"gangway\",\"gap\",\"garage\",\"garbage\",\"garden\",\"gargle\",\"garland\",\"garlic\",\"garment\",\"garnet\",\"garnish\",\"garter\",\"gas\",\"gatherer\",\"gathering\",\"gating\",\"gauging\",\"gauntlet\",\"gauze\",\"gave\",\"gawk\",\"gazing\",\"gear\",\"gecko\",\"geek\",\"geiger\",\"gem\",\"gender\",\"generic\",\"generous\",\"genetics\",\"genre\",\"gentile\",\"gentleman\",\"gently\",\"gents\",\"geography\",\"geologic\",\"geologist\",\"geology\",\"geometric\",\"geometry\",\"geranium\",\"gerbil\",\"geriatric\",\"germicide\",\"germinate\",\"germless\",\"germproof\",\"gestate\",\"gestation\",\"gesture\",\"getaway\",\"getting\",\"getup\",\"giant\",\"gibberish\",\"giblet\",\"giddily\",\"giddiness\",\"giddy\",\"gift\",\"gigabyte\",\"gigahertz\",\"gigantic\",\"giggle\",\"giggling\",\"giggly\",\"gigolo\",\"gilled\",\"gills\",\"gimmick\",\"girdle\",\"giveaway\",\"given\",\"giver\",\"giving\",\"gizmo\",\"gizzard\",\"glacial\",\"glacier\",\"glade\",\"gladiator\",\"gladly\",\"glamorous\",\"glamour\",\"glance\",\"glancing\",\"glandular\",\"glare\",\"glaring\",\"glass\",\"glaucoma\",\"glazing\",\"gleaming\",\"gleeful\",\"glider\",\"gliding\",\"glimmer\",\"glimpse\",\"glisten\",\"glitch\",\"glitter\",\"glitzy\",\"gloater\",\"gloating\",\"gloomily\",\"gloomy\",\"glorified\",\"glorifier\",\"glorify\",\"glorious\",\"glory\",\"gloss\",\"glove\",\"glowing\",\"glowworm\",\"glucose\",\"glue\",\"gluten\",\"glutinous\",\"glutton\",\"gnarly\",\"gnat\",\"goal\",\"goatskin\",\"goes\",\"goggles\",\"going\",\"goldfish\",\"goldmine\",\"goldsmith\",\"golf\",\"goliath\",\"gonad\",\"gondola\",\"gone\",\"gong\",\"good\",\"gooey\",\"goofball\",\"goofiness\",\"goofy\",\"google\",\"goon\",\"gopher\",\"gore\",\"gorged\",\"gorgeous\",\"gory\",\"gosling\",\"gossip\",\"gothic\",\"gotten\",\"gout\",\"gown\",\"grab\",\"graceful\",\"graceless\",\"gracious\",\"gradation\",\"graded\",\"grader\",\"gradient\",\"grading\",\"gradually\",\"graduate\",\"graffiti\",\"grafted\",\"grafting\",\"grain\",\"granddad\",\"grandkid\",\"grandly\",\"grandma\",\"grandpa\",\"grandson\",\"granite\",\"granny\",\"granola\",\"grant\",\"granular\",\"grape\",\"graph\",\"grapple\",\"grappling\",\"grasp\",\"grass\",\"gratified\",\"gratify\",\"grating\",\"gratitude\",\"gratuity\",\"gravel\",\"graveness\",\"graves\",\"graveyard\",\"gravitate\",\"gravity\",\"gravy\",\"gray\",\"grazing\",\"greasily\",\"greedily\",\"greedless\",\"greedy\",\"green\",\"greeter\",\"greeting\",\"grew\",\"greyhound\",\"grid\",\"grief\",\"grievance\",\"grieving\",\"grievous\",\"grill\",\"grimace\",\"grimacing\",\"grime\",\"griminess\",\"grimy\",\"grinch\",\"grinning\",\"grip\",\"gristle\",\"grit\",\"groggily\",\"groggy\",\"groin\",\"groom\",\"groove\",\"grooving\",\"groovy\",\"grope\",\"ground\",\"grouped\",\"grout\",\"grove\",\"grower\",\"growing\",\"growl\",\"grub\",\"grudge\",\"grudging\",\"grueling\",\"gruffly\",\"grumble\",\"grumbling\",\"grumbly\",\"grumpily\",\"grunge\",\"grunt\",\"guacamole\",\"guidable\",\"guidance\",\"guide\",\"guiding\",\"guileless\",\"guise\",\"gulf\",\"gullible\",\"gully\",\"gulp\",\"gumball\",\"gumdrop\",\"gumminess\",\"gumming\",\"gummy\",\"gurgle\",\"gurgling\",\"guru\",\"gush\",\"gusto\",\"gusty\",\"gutless\",\"guts\",\"gutter\",\"guy\",\"guzzler\",\"gyration\",\"habitable\",\"habitant\",\"habitat\",\"habitual\",\"hacked\",\"hacker\",\"hacking\",\"hacksaw\",\"had\",\"haggler\",\"haiku\",\"half\",\"halogen\",\"halt\",\"halved\",\"halves\",\"hamburger\",\"hamlet\",\"hammock\",\"hamper\",\"hamster\",\"hamstring\",\"handbag\",\"handball\",\"handbook\",\"handbrake\",\"handcart\",\"handclap\",\"handclasp\",\"handcraft\",\"handcuff\",\"handed\",\"handful\",\"handgrip\",\"handgun\",\"handheld\",\"handiness\",\"handiwork\",\"handlebar\",\"handled\",\"handler\",\"handling\",\"handmade\",\"handoff\",\"handpick\",\"handprint\",\"handrail\",\"handsaw\",\"handset\",\"handsfree\",\"handshake\",\"handstand\",\"handwash\",\"handwork\",\"handwoven\",\"handwrite\",\"handyman\",\"hangnail\",\"hangout\",\"hangover\",\"hangup\",\"hankering\",\"hankie\",\"hanky\",\"haphazard\",\"happening\",\"happier\",\"happiest\",\"happily\",\"happiness\",\"happy\",\"harbor\",\"hardcopy\",\"hardcore\",\"hardcover\",\"harddisk\",\"hardened\",\"hardener\",\"hardening\",\"hardhat\",\"hardhead\",\"hardiness\",\"hardly\",\"hardness\",\"hardship\",\"hardware\",\"hardwired\",\"hardwood\",\"hardy\",\"harmful\",\"harmless\",\"harmonica\",\"harmonics\",\"harmonize\",\"harmony\",\"harness\",\"harpist\",\"harsh\",\"harvest\",\"hash\",\"hassle\",\"haste\",\"hastily\",\"hastiness\",\"hasty\",\"hatbox\",\"hatchback\",\"hatchery\",\"hatchet\",\"hatching\",\"hatchling\",\"hate\",\"hatless\",\"hatred\",\"haunt\",\"haven\",\"hazard\",\"hazelnut\",\"hazily\",\"haziness\",\"hazing\",\"hazy\",\"headache\",\"headband\",\"headboard\",\"headcount\",\"headdress\",\"headed\",\"header\",\"headfirst\",\"headgear\",\"heading\",\"headlamp\",\"headless\",\"headlock\",\"headphone\",\"headpiece\",\"headrest\",\"headroom\",\"headscarf\",\"headset\",\"headsman\",\"headstand\",\"headstone\",\"headway\",\"headwear\",\"heap\",\"heat\",\"heave\",\"heavily\",\"heaviness\",\"heaving\",\"hedge\",\"hedging\",\"heftiness\",\"hefty\",\"helium\",\"helmet\",\"helper\",\"helpful\",\"helping\",\"helpless\",\"helpline\",\"hemlock\",\"hemstitch\",\"hence\",\"henchman\",\"henna\",\"herald\",\"herbal\",\"herbicide\",\"herbs\",\"heritage\",\"hermit\",\"heroics\",\"heroism\",\"herring\",\"herself\",\"hertz\",\"hesitancy\",\"hesitant\",\"hesitate\",\"hexagon\",\"hexagram\",\"hubcap\",\"huddle\",\"huddling\",\"huff\",\"hug\",\"hula\",\"hulk\",\"hull\",\"human\",\"humble\",\"humbling\",\"humbly\",\"humid\",\"humiliate\",\"humility\",\"humming\",\"hummus\",\"humongous\",\"humorist\",\"humorless\",\"humorous\",\"humpback\",\"humped\",\"humvee\",\"hunchback\",\"hundredth\",\"hunger\",\"hungrily\",\"hungry\",\"hunk\",\"hunter\",\"hunting\",\"huntress\",\"huntsman\",\"hurdle\",\"hurled\",\"hurler\",\"hurling\",\"hurray\",\"hurricane\",\"hurried\",\"hurry\",\"hurt\",\"husband\",\"hush\",\"husked\",\"huskiness\",\"hut\",\"hybrid\",\"hydrant\",\"hydrated\",\"hydration\",\"hydrogen\",\"hydroxide\",\"hyperlink\",\"hypertext\",\"hyphen\",\"hypnoses\",\"hypnosis\",\"hypnotic\",\"hypnotism\",\"hypnotist\",\"hypnotize\",\"hypocrisy\",\"hypocrite\",\"ibuprofen\",\"ice\",\"iciness\",\"icing\",\"icky\",\"icon\",\"icy\",\"idealism\",\"idealist\",\"idealize\",\"ideally\",\"idealness\",\"identical\",\"identify\",\"identity\",\"ideology\",\"idiocy\",\"idiom\",\"idly\",\"igloo\",\"ignition\",\"ignore\",\"iguana\",\"illicitly\",\"illusion\",\"illusive\",\"image\",\"imaginary\",\"imagines\",\"imaging\",\"imbecile\",\"imitate\",\"imitation\",\"immature\",\"immerse\",\"immersion\",\"imminent\",\"immobile\",\"immodest\",\"immorally\",\"immortal\",\"immovable\",\"immovably\",\"immunity\",\"immunize\",\"impaired\",\"impale\",\"impart\",\"impatient\",\"impeach\",\"impeding\",\"impending\",\"imperfect\",\"imperial\",\"impish\",\"implant\",\"implement\",\"implicate\",\"implicit\",\"implode\",\"implosion\",\"implosive\",\"imply\",\"impolite\",\"important\",\"importer\",\"impose\",\"imposing\",\"impotence\",\"impotency\",\"impotent\",\"impound\",\"imprecise\",\"imprint\",\"imprison\",\"impromptu\",\"improper\",\"improve\",\"improving\",\"improvise\",\"imprudent\",\"impulse\",\"impulsive\",\"impure\",\"impurity\",\"iodine\",\"iodize\",\"ion\",\"ipad\",\"iphone\",\"ipod\",\"irate\",\"irk\",\"iron\",\"irregular\",\"irrigate\",\"irritable\",\"irritably\",\"irritant\",\"irritate\",\"islamic\",\"islamist\",\"isolated\",\"isolating\",\"isolation\",\"isotope\",\"issue\",\"issuing\",\"italicize\",\"italics\",\"item\",\"itinerary\",\"itunes\",\"ivory\",\"ivy\",\"jab\",\"jackal\",\"jacket\",\"jackknife\",\"jackpot\",\"jailbird\",\"jailbreak\",\"jailer\",\"jailhouse\",\"jalapeno\",\"jam\",\"janitor\",\"january\",\"jargon\",\"jarring\",\"jasmine\",\"jaundice\",\"jaunt\",\"java\",\"jawed\",\"jawless\",\"jawline\",\"jaws\",\"jaybird\",\"jaywalker\",\"jazz\",\"jeep\",\"jeeringly\",\"jellied\",\"jelly\",\"jersey\",\"jester\",\"jet\",\"jiffy\",\"jigsaw\",\"jimmy\",\"jingle\",\"jingling\",\"jinx\",\"jitters\",\"jittery\",\"job\",\"jockey\",\"jockstrap\",\"jogger\",\"jogging\",\"john\",\"joining\",\"jokester\",\"jokingly\",\"jolliness\",\"jolly\",\"jolt\",\"jot\",\"jovial\",\"joyfully\",\"joylessly\",\"joyous\",\"joyride\",\"joystick\",\"jubilance\",\"jubilant\",\"judge\",\"judgingly\",\"judicial\",\"judiciary\",\"judo\",\"juggle\",\"juggling\",\"jugular\",\"juice\",\"juiciness\",\"juicy\",\"jujitsu\",\"jukebox\",\"july\",\"jumble\",\"jumbo\",\"jump\",\"junction\",\"juncture\",\"june\",\"junior\",\"juniper\",\"junkie\",\"junkman\",\"junkyard\",\"jurist\",\"juror\",\"jury\",\"justice\",\"justifier\",\"justify\",\"justly\",\"justness\",\"juvenile\",\"kabob\",\"kangaroo\",\"karaoke\",\"karate\",\"karma\",\"kebab\",\"keenly\",\"keenness\",\"keep\",\"keg\",\"kelp\",\"kennel\",\"kept\",\"kerchief\",\"kerosene\",\"kettle\",\"kick\",\"kiln\",\"kilobyte\",\"kilogram\",\"kilometer\",\"kilowatt\",\"kilt\",\"kimono\",\"kindle\",\"kindling\",\"kindly\",\"kindness\",\"kindred\",\"kinetic\",\"kinfolk\",\"king\",\"kinship\",\"kinsman\",\"kinswoman\",\"kissable\",\"kisser\",\"kissing\",\"kitchen\",\"kite\",\"kitten\",\"kitty\",\"kiwi\",\"kleenex\",\"knapsack\",\"knee\",\"knelt\",\"knickers\",\"knoll\",\"koala\",\"kooky\",\"kosher\",\"krypton\",\"kudos\",\"kung\",\"labored\",\"laborer\",\"laboring\",\"laborious\",\"labrador\",\"ladder\",\"ladies\",\"ladle\",\"ladybug\",\"ladylike\",\"lagged\",\"lagging\",\"lagoon\",\"lair\",\"lake\",\"lance\",\"landed\",\"landfall\",\"landfill\",\"landing\",\"landlady\",\"landless\",\"landline\",\"landlord\",\"landmark\",\"landmass\",\"landmine\",\"landowner\",\"landscape\",\"landside\",\"landslide\",\"language\",\"lankiness\",\"lanky\",\"lantern\",\"lapdog\",\"lapel\",\"lapped\",\"lapping\",\"laptop\",\"lard\",\"large\",\"lark\",\"lash\",\"lasso\",\"last\",\"latch\",\"late\",\"lather\",\"latitude\",\"latrine\",\"latter\",\"latticed\",\"launch\",\"launder\",\"laundry\",\"laurel\",\"lavender\",\"lavish\",\"laxative\",\"lazily\",\"laziness\",\"lazy\",\"lecturer\",\"left\",\"legacy\",\"legal\",\"legend\",\"legged\",\"leggings\",\"legible\",\"legibly\",\"legislate\",\"lego\",\"legroom\",\"legume\",\"legwarmer\",\"legwork\",\"lemon\",\"lend\",\"length\",\"lens\",\"lent\",\"leotard\",\"lesser\",\"letdown\",\"lethargic\",\"lethargy\",\"letter\",\"lettuce\",\"level\",\"leverage\",\"levers\",\"levitate\",\"levitator\",\"liability\",\"liable\",\"liberty\",\"librarian\",\"library\",\"licking\",\"licorice\",\"lid\",\"life\",\"lifter\",\"lifting\",\"liftoff\",\"ligament\",\"likely\",\"likeness\",\"likewise\",\"liking\",\"lilac\",\"lilly\",\"lily\",\"limb\",\"limeade\",\"limelight\",\"limes\",\"limit\",\"limping\",\"limpness\",\"line\",\"lingo\",\"linguini\",\"linguist\",\"lining\",\"linked\",\"linoleum\",\"linseed\",\"lint\",\"lion\",\"lip\",\"liquefy\",\"liqueur\",\"liquid\",\"lisp\",\"list\",\"litigate\",\"litigator\",\"litmus\",\"litter\",\"little\",\"livable\",\"lived\",\"lively\",\"liver\",\"livestock\",\"lividly\",\"living\",\"lizard\",\"lubricant\",\"lubricate\",\"lucid\",\"luckily\",\"luckiness\",\"luckless\",\"lucrative\",\"ludicrous\",\"lugged\",\"lukewarm\",\"lullaby\",\"lumber\",\"luminance\",\"luminous\",\"lumpiness\",\"lumping\",\"lumpish\",\"lunacy\",\"lunar\",\"lunchbox\",\"luncheon\",\"lunchroom\",\"lunchtime\",\"lung\",\"lurch\",\"lure\",\"luridness\",\"lurk\",\"lushly\",\"lushness\",\"luster\",\"lustfully\",\"lustily\",\"lustiness\",\"lustrous\",\"lusty\",\"luxurious\",\"luxury\",\"lying\",\"lyrically\",\"lyricism\",\"lyricist\",\"lyrics\",\"macarena\",\"macaroni\",\"macaw\",\"mace\",\"machine\",\"machinist\",\"magazine\",\"magenta\",\"maggot\",\"magical\",\"magician\",\"magma\",\"magnesium\",\"magnetic\",\"magnetism\",\"magnetize\",\"magnifier\",\"magnify\",\"magnitude\",\"magnolia\",\"mahogany\",\"maimed\",\"majestic\",\"majesty\",\"majorette\",\"majority\",\"makeover\",\"maker\",\"makeshift\",\"making\",\"malformed\",\"malt\",\"mama\",\"mammal\",\"mammary\",\"mammogram\",\"manager\",\"managing\",\"manatee\",\"mandarin\",\"mandate\",\"mandatory\",\"mandolin\",\"manger\",\"mangle\",\"mango\",\"mangy\",\"manhandle\",\"manhole\",\"manhood\",\"manhunt\",\"manicotti\",\"manicure\",\"manifesto\",\"manila\",\"mankind\",\"manlike\",\"manliness\",\"manly\",\"manmade\",\"manned\",\"mannish\",\"manor\",\"manpower\",\"mantis\",\"mantra\",\"manual\",\"many\",\"map\",\"marathon\",\"marauding\",\"marbled\",\"marbles\",\"marbling\",\"march\",\"mardi\",\"margarine\",\"margarita\",\"margin\",\"marigold\",\"marina\",\"marine\",\"marital\",\"maritime\",\"marlin\",\"marmalade\",\"maroon\",\"married\",\"marrow\",\"marry\",\"marshland\",\"marshy\",\"marsupial\",\"marvelous\",\"marxism\",\"mascot\",\"masculine\",\"mashed\",\"mashing\",\"massager\",\"masses\",\"massive\",\"mastiff\",\"matador\",\"matchbook\",\"matchbox\",\"matcher\",\"matching\",\"matchless\",\"material\",\"maternal\",\"maternity\",\"math\",\"mating\",\"matriarch\",\"matrimony\",\"matrix\",\"matron\",\"matted\",\"matter\",\"maturely\",\"maturing\",\"maturity\",\"mauve\",\"maverick\",\"maximize\",\"maximum\",\"maybe\",\"mayday\",\"mayflower\",\"moaner\",\"moaning\",\"mobile\",\"mobility\",\"mobilize\",\"mobster\",\"mocha\",\"mocker\",\"mockup\",\"modified\",\"modify\",\"modular\",\"modulator\",\"module\",\"moisten\",\"moistness\",\"moisture\",\"molar\",\"molasses\",\"mold\",\"molecular\",\"molecule\",\"molehill\",\"mollusk\",\"mom\",\"monastery\",\"monday\",\"monetary\",\"monetize\",\"moneybags\",\"moneyless\",\"moneywise\",\"mongoose\",\"mongrel\",\"monitor\",\"monkhood\",\"monogamy\",\"monogram\",\"monologue\",\"monopoly\",\"monorail\",\"monotone\",\"monotype\",\"monoxide\",\"monsieur\",\"monsoon\",\"monstrous\",\"monthly\",\"monument\",\"moocher\",\"moodiness\",\"moody\",\"mooing\",\"moonbeam\",\"mooned\",\"moonlight\",\"moonlike\",\"moonlit\",\"moonrise\",\"moonscape\",\"moonshine\",\"moonstone\",\"moonwalk\",\"mop\",\"morale\",\"morality\",\"morally\",\"morbidity\",\"morbidly\",\"morphine\",\"morphing\",\"morse\",\"mortality\",\"mortally\",\"mortician\",\"mortified\",\"mortify\",\"mortuary\",\"mosaic\",\"mossy\",\"most\",\"mothball\",\"mothproof\",\"motion\",\"motivate\",\"motivator\",\"motive\",\"motocross\",\"motor\",\"motto\",\"mountable\",\"mountain\",\"mounted\",\"mounting\",\"mourner\",\"mournful\",\"mouse\",\"mousiness\",\"moustache\",\"mousy\",\"mouth\",\"movable\",\"move\",\"movie\",\"moving\",\"mower\",\"mowing\",\"much\",\"muck\",\"mud\",\"mug\",\"mulberry\",\"mulch\",\"mule\",\"mulled\",\"mullets\",\"multiple\",\"multiply\",\"multitask\",\"multitude\",\"mumble\",\"mumbling\",\"mumbo\",\"mummified\",\"mummify\",\"mummy\",\"mumps\",\"munchkin\",\"mundane\",\"municipal\",\"muppet\",\"mural\",\"murkiness\",\"murky\",\"murmuring\",\"muscular\",\"museum\",\"mushily\",\"mushiness\",\"mushroom\",\"mushy\",\"music\",\"musket\",\"muskiness\",\"musky\",\"mustang\",\"mustard\",\"muster\",\"mustiness\",\"musty\",\"mutable\",\"mutate\",\"mutation\",\"mute\",\"mutilated\",\"mutilator\",\"mutiny\",\"mutt\",\"mutual\",\"muzzle\",\"myself\",\"myspace\",\"mystified\",\"mystify\",\"myth\",\"nacho\",\"nag\",\"nail\",\"name\",\"naming\",\"nanny\",\"nanometer\",\"nape\",\"napkin\",\"napped\",\"napping\",\"nappy\",\"narrow\",\"nastily\",\"nastiness\",\"national\",\"native\",\"nativity\",\"natural\",\"nature\",\"naturist\",\"nautical\",\"navigate\",\"navigator\",\"navy\",\"nearby\",\"nearest\",\"nearly\",\"nearness\",\"neatly\",\"neatness\",\"nebula\",\"nebulizer\",\"nectar\",\"negate\",\"negation\",\"negative\",\"neglector\",\"negligee\",\"negligent\",\"negotiate\",\"nemeses\",\"nemesis\",\"neon\",\"nephew\",\"nerd\",\"nervous\",\"nervy\",\"nest\",\"net\",\"neurology\",\"neuron\",\"neurosis\",\"neurotic\",\"neuter\",\"neutron\",\"never\",\"next\",\"nibble\",\"nickname\",\"nicotine\",\"niece\",\"nifty\",\"nimble\",\"nimbly\",\"nineteen\",\"ninetieth\",\"ninja\",\"nintendo\",\"ninth\",\"nuclear\",\"nuclei\",\"nucleus\",\"nugget\",\"nullify\",\"number\",\"numbing\",\"numbly\",\"numbness\",\"numeral\",\"numerate\",\"numerator\",\"numeric\",\"numerous\",\"nuptials\",\"nursery\",\"nursing\",\"nurture\",\"nutcase\",\"nutlike\",\"nutmeg\",\"nutrient\",\"nutshell\",\"nuttiness\",\"nutty\",\"nuzzle\",\"nylon\",\"oaf\",\"oak\",\"oasis\",\"oat\",\"obedience\",\"obedient\",\"obituary\",\"object\",\"obligate\",\"obliged\",\"oblivion\",\"oblivious\",\"oblong\",\"obnoxious\",\"oboe\",\"obscure\",\"obscurity\",\"observant\",\"observer\",\"observing\",\"obsessed\",\"obsession\",\"obsessive\",\"obsolete\",\"obstacle\",\"obstinate\",\"obstruct\",\"obtain\",\"obtrusive\",\"obtuse\",\"obvious\",\"occultist\",\"occupancy\",\"occupant\",\"occupier\",\"occupy\",\"ocean\",\"ocelot\",\"octagon\",\"octane\",\"october\",\"octopus\",\"ogle\",\"oil\",\"oink\",\"ointment\",\"okay\",\"old\",\"olive\",\"olympics\",\"omega\",\"omen\",\"ominous\",\"omission\",\"omit\",\"omnivore\",\"onboard\",\"oncoming\",\"ongoing\",\"onion\",\"online\",\"onlooker\",\"only\",\"onscreen\",\"onset\",\"onshore\",\"onslaught\",\"onstage\",\"onto\",\"onward\",\"onyx\",\"oops\",\"ooze\",\"oozy\",\"opacity\",\"opal\",\"open\",\"operable\",\"operate\",\"operating\",\"operation\",\"operative\",\"operator\",\"opium\",\"opossum\",\"opponent\",\"oppose\",\"opposing\",\"opposite\",\"oppressed\",\"oppressor\",\"opt\",\"opulently\",\"osmosis\",\"other\",\"otter\",\"ouch\",\"ought\",\"ounce\",\"outage\",\"outback\",\"outbid\",\"outboard\",\"outbound\",\"outbreak\",\"outburst\",\"outcast\",\"outclass\",\"outcome\",\"outdated\",\"outdoors\",\"outer\",\"outfield\",\"outfit\",\"outflank\",\"outgoing\",\"outgrow\",\"outhouse\",\"outing\",\"outlast\",\"outlet\",\"outline\",\"outlook\",\"outlying\",\"outmatch\",\"outmost\",\"outnumber\",\"outplayed\",\"outpost\",\"outpour\",\"output\",\"outrage\",\"outrank\",\"outreach\",\"outright\",\"outscore\",\"outsell\",\"outshine\",\"outshoot\",\"outsider\",\"outskirts\",\"outsmart\",\"outsource\",\"outspoken\",\"outtakes\",\"outthink\",\"outward\",\"outweigh\",\"outwit\",\"oval\",\"ovary\",\"oven\",\"overact\",\"overall\",\"overarch\",\"overbid\",\"overbill\",\"overbite\",\"overblown\",\"overboard\",\"overbook\",\"overbuilt\",\"overcast\",\"overcoat\",\"overcome\",\"overcook\",\"overcrowd\",\"overdraft\",\"overdrawn\",\"overdress\",\"overdrive\",\"overdue\",\"overeager\",\"overeater\",\"overexert\",\"overfed\",\"overfeed\",\"overfill\",\"overflow\",\"overfull\",\"overgrown\",\"overhand\",\"overhang\",\"overhaul\",\"overhead\",\"overhear\",\"overheat\",\"overhung\",\"overjoyed\",\"overkill\",\"overlabor\",\"overlaid\",\"overlap\",\"overlay\",\"overload\",\"overlook\",\"overlord\",\"overlying\",\"overnight\",\"overpass\",\"overpay\",\"overplant\",\"overplay\",\"overpower\",\"overprice\",\"overrate\",\"overreach\",\"overreact\",\"override\",\"overripe\",\"overrule\",\"overrun\",\"overshoot\",\"overshot\",\"oversight\",\"oversized\",\"oversleep\",\"oversold\",\"overspend\",\"overstate\",\"overstay\",\"overstep\",\"overstock\",\"overstuff\",\"oversweet\",\"overtake\",\"overthrow\",\"overtime\",\"overtly\",\"overtone\",\"overture\",\"overturn\",\"overuse\",\"overvalue\",\"overview\",\"overwrite\",\"owl\",\"oxford\",\"oxidant\",\"oxidation\",\"oxidize\",\"oxidizing\",\"oxygen\",\"oxymoron\",\"oyster\",\"ozone\",\"paced\",\"pacemaker\",\"pacific\",\"pacifier\",\"pacifism\",\"pacifist\",\"pacify\",\"padded\",\"padding\",\"paddle\",\"paddling\",\"padlock\",\"pagan\",\"pager\",\"paging\",\"pajamas\",\"palace\",\"palatable\",\"palm\",\"palpable\",\"palpitate\",\"paltry\",\"pampered\",\"pamperer\",\"pampers\",\"pamphlet\",\"panama\",\"pancake\",\"pancreas\",\"panda\",\"pandemic\",\"pang\",\"panhandle\",\"panic\",\"panning\",\"panorama\",\"panoramic\",\"panther\",\"pantomime\",\"pantry\",\"pants\",\"pantyhose\",\"paparazzi\",\"papaya\",\"paper\",\"paprika\",\"papyrus\",\"parabola\",\"parachute\",\"parade\",\"paradox\",\"paragraph\",\"parakeet\",\"paralegal\",\"paralyses\",\"paralysis\",\"paralyze\",\"paramedic\",\"parameter\",\"paramount\",\"parasail\",\"parasite\",\"parasitic\",\"parcel\",\"parched\",\"parchment\",\"pardon\",\"parish\",\"parka\",\"parking\",\"parkway\",\"parlor\",\"parmesan\",\"parole\",\"parrot\",\"parsley\",\"parsnip\",\"partake\",\"parted\",\"parting\",\"partition\",\"partly\",\"partner\",\"partridge\",\"party\",\"passable\",\"passably\",\"passage\",\"passcode\",\"passenger\",\"passerby\",\"passing\",\"passion\",\"passive\",\"passivism\",\"passover\",\"passport\",\"password\",\"pasta\",\"pasted\",\"pastel\",\"pastime\",\"pastor\",\"pastrami\",\"pasture\",\"pasty\",\"patchwork\",\"patchy\",\"paternal\",\"paternity\",\"path\",\"patience\",\"patient\",\"patio\",\"patriarch\",\"patriot\",\"patrol\",\"patronage\",\"patronize\",\"pauper\",\"pavement\",\"paver\",\"pavestone\",\"pavilion\",\"paving\",\"pawing\",\"payable\",\"payback\",\"paycheck\",\"payday\",\"payee\",\"payer\",\"paying\",\"payment\",\"payphone\",\"payroll\",\"pebble\",\"pebbly\",\"pecan\",\"pectin\",\"peculiar\",\"peddling\",\"pediatric\",\"pedicure\",\"pedigree\",\"pedometer\",\"pegboard\",\"pelican\",\"pellet\",\"pelt\",\"pelvis\",\"penalize\",\"penalty\",\"pencil\",\"pendant\",\"pending\",\"penholder\",\"penknife\",\"pennant\",\"penniless\",\"penny\",\"penpal\",\"pension\",\"pentagon\",\"pentagram\",\"pep\",\"perceive\",\"percent\",\"perch\",\"percolate\",\"perennial\",\"perfected\",\"perfectly\",\"perfume\",\"periscope\",\"perish\",\"perjurer\",\"perjury\",\"perkiness\",\"perky\",\"perm\",\"peroxide\",\"perpetual\",\"perplexed\",\"persecute\",\"persevere\",\"persuaded\",\"persuader\",\"pesky\",\"peso\",\"pessimism\",\"pessimist\",\"pester\",\"pesticide\",\"petal\",\"petite\",\"petition\",\"petri\",\"petroleum\",\"petted\",\"petticoat\",\"pettiness\",\"petty\",\"petunia\",\"phantom\",\"phobia\",\"phoenix\",\"phonebook\",\"phoney\",\"phonics\",\"phoniness\",\"phony\",\"phosphate\",\"photo\",\"phrase\",\"phrasing\",\"placard\",\"placate\",\"placidly\",\"plank\",\"planner\",\"plant\",\"plasma\",\"plaster\",\"plastic\",\"plated\",\"platform\",\"plating\",\"platinum\",\"platonic\",\"platter\",\"platypus\",\"plausible\",\"plausibly\",\"playable\",\"playback\",\"player\",\"playful\",\"playgroup\",\"playhouse\",\"playing\",\"playlist\",\"playmaker\",\"playmate\",\"playoff\",\"playpen\",\"playroom\",\"playset\",\"plaything\",\"playtime\",\"plaza\",\"pleading\",\"pleat\",\"pledge\",\"plentiful\",\"plenty\",\"plethora\",\"plexiglas\",\"pliable\",\"plod\",\"plop\",\"plot\",\"plow\",\"ploy\",\"pluck\",\"plug\",\"plunder\",\"plunging\",\"plural\",\"plus\",\"plutonium\",\"plywood\",\"poach\",\"pod\",\"poem\",\"poet\",\"pogo\",\"pointed\",\"pointer\",\"pointing\",\"pointless\",\"pointy\",\"poise\",\"poison\",\"poker\",\"poking\",\"polar\",\"police\",\"policy\",\"polio\",\"polish\",\"politely\",\"polka\",\"polo\",\"polyester\",\"polygon\",\"polygraph\",\"polymer\",\"poncho\",\"pond\",\"pony\",\"popcorn\",\"pope\",\"poplar\",\"popper\",\"poppy\",\"popsicle\",\"populace\",\"popular\",\"populate\",\"porcupine\",\"pork\",\"porous\",\"porridge\",\"portable\",\"portal\",\"portfolio\",\"porthole\",\"portion\",\"portly\",\"portside\",\"poser\",\"posh\",\"posing\",\"possible\",\"possibly\",\"possum\",\"postage\",\"postal\",\"postbox\",\"postcard\",\"posted\",\"poster\",\"posting\",\"postnasal\",\"posture\",\"postwar\",\"pouch\",\"pounce\",\"pouncing\",\"pound\",\"pouring\",\"pout\",\"powdered\",\"powdering\",\"powdery\",\"power\",\"powwow\",\"pox\",\"praising\",\"prance\",\"prancing\",\"pranker\",\"prankish\",\"prankster\",\"prayer\",\"praying\",\"preacher\",\"preaching\",\"preachy\",\"preamble\",\"precinct\",\"precise\",\"precision\",\"precook\",\"precut\",\"predator\",\"predefine\",\"predict\",\"preface\",\"prefix\",\"preflight\",\"preformed\",\"pregame\",\"pregnancy\",\"pregnant\",\"preheated\",\"prelaunch\",\"prelaw\",\"prelude\",\"premiere\",\"premises\",\"premium\",\"prenatal\",\"preoccupy\",\"preorder\",\"prepaid\",\"prepay\",\"preplan\",\"preppy\",\"preschool\",\"prescribe\",\"preseason\",\"preset\",\"preshow\",\"president\",\"presoak\",\"press\",\"presume\",\"presuming\",\"preteen\",\"pretended\",\"pretender\",\"pretense\",\"pretext\",\"pretty\",\"pretzel\",\"prevail\",\"prevalent\",\"prevent\",\"preview\",\"previous\",\"prewar\",\"prewashed\",\"prideful\",\"pried\",\"primal\",\"primarily\",\"primary\",\"primate\",\"primer\",\"primp\",\"princess\",\"print\",\"prior\",\"prism\",\"prison\",\"prissy\",\"pristine\",\"privacy\",\"private\",\"privatize\",\"prize\",\"proactive\",\"probable\",\"probably\",\"probation\",\"probe\",\"probing\",\"probiotic\",\"problem\",\"procedure\",\"process\",\"proclaim\",\"procreate\",\"procurer\",\"prodigal\",\"prodigy\",\"produce\",\"product\",\"profane\",\"profanity\",\"professed\",\"professor\",\"profile\",\"profound\",\"profusely\",\"progeny\",\"prognosis\",\"program\",\"progress\",\"projector\",\"prologue\",\"prolonged\",\"promenade\",\"prominent\",\"promoter\",\"promotion\",\"prompter\",\"promptly\",\"prone\",\"prong\",\"pronounce\",\"pronto\",\"proofing\",\"proofread\",\"proofs\",\"propeller\",\"properly\",\"property\",\"proponent\",\"proposal\",\"propose\",\"props\",\"prorate\",\"protector\",\"protegee\",\"proton\",\"prototype\",\"protozoan\",\"protract\",\"protrude\",\"proud\",\"provable\",\"proved\",\"proven\",\"provided\",\"provider\",\"providing\",\"province\",\"proving\",\"provoke\",\"provoking\",\"provolone\",\"prowess\",\"prowler\",\"prowling\",\"proximity\",\"proxy\",\"prozac\",\"prude\",\"prudishly\",\"prune\",\"pruning\",\"pry\",\"psychic\",\"public\",\"publisher\",\"pucker\",\"pueblo\",\"pug\",\"pull\",\"pulmonary\",\"pulp\",\"pulsate\",\"pulse\",\"pulverize\",\"puma\",\"pumice\",\"pummel\",\"punch\",\"punctual\",\"punctuate\",\"punctured\",\"pungent\",\"punisher\",\"punk\",\"pupil\",\"puppet\",\"puppy\",\"purchase\",\"pureblood\",\"purebred\",\"purely\",\"pureness\",\"purgatory\",\"purge\",\"purging\",\"purifier\",\"purify\",\"purist\",\"puritan\",\"purity\",\"purple\",\"purplish\",\"purposely\",\"purr\",\"purse\",\"pursuable\",\"pursuant\",\"pursuit\",\"purveyor\",\"pushcart\",\"pushchair\",\"pusher\",\"pushiness\",\"pushing\",\"pushover\",\"pushpin\",\"pushup\",\"pushy\",\"putdown\",\"putt\",\"puzzle\",\"puzzling\",\"pyramid\",\"pyromania\",\"python\",\"quack\",\"quadrant\",\"quail\",\"quaintly\",\"quake\",\"quaking\",\"qualified\",\"qualifier\",\"qualify\",\"quality\",\"qualm\",\"quantum\",\"quarrel\",\"quarry\",\"quartered\",\"quarterly\",\"quarters\",\"quartet\",\"quench\",\"query\",\"quicken\",\"quickly\",\"quickness\",\"quicksand\",\"quickstep\",\"quiet\",\"quill\",\"quilt\",\"quintet\",\"quintuple\",\"quirk\",\"quit\",\"quiver\",\"quizzical\",\"quotable\",\"quotation\",\"quote\",\"rabid\",\"race\",\"racing\",\"racism\",\"rack\",\"racoon\",\"radar\",\"radial\",\"radiance\",\"radiantly\",\"radiated\",\"radiation\",\"radiator\",\"radio\",\"radish\",\"raffle\",\"raft\",\"rage\",\"ragged\",\"raging\",\"ragweed\",\"raider\",\"railcar\",\"railing\",\"railroad\",\"railway\",\"raisin\",\"rake\",\"raking\",\"rally\",\"ramble\",\"rambling\",\"ramp\",\"ramrod\",\"ranch\",\"rancidity\",\"random\",\"ranged\",\"ranger\",\"ranging\",\"ranked\",\"ranking\",\"ransack\",\"ranting\",\"rants\",\"rare\",\"rarity\",\"rascal\",\"rash\",\"rasping\",\"ravage\",\"raven\",\"ravine\",\"raving\",\"ravioli\",\"ravishing\",\"reabsorb\",\"reach\",\"reacquire\",\"reaction\",\"reactive\",\"reactor\",\"reaffirm\",\"ream\",\"reanalyze\",\"reappear\",\"reapply\",\"reappoint\",\"reapprove\",\"rearrange\",\"rearview\",\"reason\",\"reassign\",\"reassure\",\"reattach\",\"reawake\",\"rebalance\",\"rebate\",\"rebel\",\"rebirth\",\"reboot\",\"reborn\",\"rebound\",\"rebuff\",\"rebuild\",\"rebuilt\",\"reburial\",\"rebuttal\",\"recall\",\"recant\",\"recapture\",\"recast\",\"recede\",\"recent\",\"recess\",\"recharger\",\"recipient\",\"recital\",\"recite\",\"reckless\",\"reclaim\",\"recliner\",\"reclining\",\"recluse\",\"reclusive\",\"recognize\",\"recoil\",\"recollect\",\"recolor\",\"reconcile\",\"reconfirm\",\"reconvene\",\"recopy\",\"record\",\"recount\",\"recoup\",\"recovery\",\"recreate\",\"rectal\",\"rectangle\",\"rectified\",\"rectify\",\"recycled\",\"recycler\",\"recycling\",\"reemerge\",\"reenact\",\"reenter\",\"reentry\",\"reexamine\",\"referable\",\"referee\",\"reference\",\"refill\",\"refinance\",\"refined\",\"refinery\",\"refining\",\"refinish\",\"reflected\",\"reflector\",\"reflex\",\"reflux\",\"refocus\",\"refold\",\"reforest\",\"reformat\",\"reformed\",\"reformer\",\"reformist\",\"refract\",\"refrain\",\"refreeze\",\"refresh\",\"refried\",\"refueling\",\"refund\",\"refurbish\",\"refurnish\",\"refusal\",\"refuse\",\"refusing\",\"refutable\",\"refute\",\"regain\",\"regalia\",\"regally\",\"reggae\",\"regime\",\"region\",\"register\",\"registrar\",\"registry\",\"regress\",\"regretful\",\"regroup\",\"regular\",\"regulate\",\"regulator\",\"rehab\",\"reheat\",\"rehire\",\"rehydrate\",\"reimburse\",\"reissue\",\"reiterate\",\"rejoice\",\"rejoicing\",\"rejoin\",\"rekindle\",\"relapse\",\"relapsing\",\"relatable\",\"related\",\"relation\",\"relative\",\"relax\",\"relay\",\"relearn\",\"release\",\"relenting\",\"reliable\",\"reliably\",\"reliance\",\"reliant\",\"relic\",\"relieve\",\"relieving\",\"relight\",\"relish\",\"relive\",\"reload\",\"relocate\",\"relock\",\"reluctant\",\"rely\",\"remake\",\"remark\",\"remarry\",\"rematch\",\"remedial\",\"remedy\",\"remember\",\"reminder\",\"remindful\",\"remission\",\"remix\",\"remnant\",\"remodeler\",\"remold\",\"remorse\",\"remote\",\"removable\",\"removal\",\"removed\",\"remover\",\"removing\",\"rename\",\"renderer\",\"rendering\",\"rendition\",\"renegade\",\"renewable\",\"renewably\",\"renewal\",\"renewed\",\"renounce\",\"renovate\",\"renovator\",\"rentable\",\"rental\",\"rented\",\"renter\",\"reoccupy\",\"reoccur\",\"reopen\",\"reorder\",\"repackage\",\"repacking\",\"repaint\",\"repair\",\"repave\",\"repaying\",\"repayment\",\"repeal\",\"repeated\",\"repeater\",\"repent\",\"rephrase\",\"replace\",\"replay\",\"replica\",\"reply\",\"reporter\",\"repose\",\"repossess\",\"repost\",\"repressed\",\"reprimand\",\"reprint\",\"reprise\",\"reproach\",\"reprocess\",\"reproduce\",\"reprogram\",\"reps\",\"reptile\",\"reptilian\",\"repugnant\",\"repulsion\",\"repulsive\",\"repurpose\",\"reputable\",\"reputably\",\"request\",\"require\",\"requisite\",\"reroute\",\"rerun\",\"resale\",\"resample\",\"rescuer\",\"reseal\",\"research\",\"reselect\",\"reseller\",\"resemble\",\"resend\",\"resent\",\"reset\",\"reshape\",\"reshoot\",\"reshuffle\",\"residence\",\"residency\",\"resident\",\"residual\",\"residue\",\"resigned\",\"resilient\",\"resistant\",\"resisting\",\"resize\",\"resolute\",\"resolved\",\"resonant\",\"resonate\",\"resort\",\"resource\",\"respect\",\"resubmit\",\"result\",\"resume\",\"resupply\",\"resurface\",\"resurrect\",\"retail\",\"retainer\",\"retaining\",\"retake\",\"retaliate\",\"retention\",\"rethink\",\"retinal\",\"retired\",\"retiree\",\"retiring\",\"retold\",\"retool\",\"retorted\",\"retouch\",\"retrace\",\"retract\",\"retrain\",\"retread\",\"retreat\",\"retrial\",\"retrieval\",\"retriever\",\"retry\",\"return\",\"retying\",\"retype\",\"reunion\",\"reunite\",\"reusable\",\"reuse\",\"reveal\",\"reveler\",\"revenge\",\"revenue\",\"reverb\",\"revered\",\"reverence\",\"reverend\",\"reversal\",\"reverse\",\"reversing\",\"reversion\",\"revert\",\"revisable\",\"revise\",\"revision\",\"revisit\",\"revivable\",\"revival\",\"reviver\",\"reviving\",\"revocable\",\"revoke\",\"revolt\",\"revolver\",\"revolving\",\"reward\",\"rewash\",\"rewind\",\"rewire\",\"reword\",\"rework\",\"rewrap\",\"rewrite\",\"rhyme\",\"ribbon\",\"ribcage\",\"rice\",\"riches\",\"richly\",\"richness\",\"rickety\",\"ricotta\",\"riddance\",\"ridden\",\"ride\",\"riding\",\"rifling\",\"rift\",\"rigging\",\"rigid\",\"rigor\",\"rimless\",\"rimmed\",\"rind\",\"rink\",\"rinse\",\"rinsing\",\"riot\",\"ripcord\",\"ripeness\",\"ripening\",\"ripping\",\"ripple\",\"rippling\",\"riptide\",\"rise\",\"rising\",\"risk\",\"risotto\",\"ritalin\",\"ritzy\",\"rival\",\"riverbank\",\"riverbed\",\"riverboat\",\"riverside\",\"riveter\",\"riveting\",\"roamer\",\"roaming\",\"roast\",\"robbing\",\"robe\",\"robin\",\"robotics\",\"robust\",\"rockband\",\"rocker\",\"rocket\",\"rockfish\",\"rockiness\",\"rocking\",\"rocklike\",\"rockslide\",\"rockstar\",\"rocky\",\"rogue\",\"roman\",\"romp\",\"rope\",\"roping\",\"roster\",\"rosy\",\"rotten\",\"rotting\",\"rotunda\",\"roulette\",\"rounding\",\"roundish\",\"roundness\",\"roundup\",\"roundworm\",\"routine\",\"routing\",\"rover\",\"roving\",\"royal\",\"rubbed\",\"rubber\",\"rubbing\",\"rubble\",\"rubdown\",\"ruby\",\"ruckus\",\"rudder\",\"rug\",\"ruined\",\"rule\",\"rumble\",\"rumbling\",\"rummage\",\"rumor\",\"runaround\",\"rundown\",\"runner\",\"running\",\"runny\",\"runt\",\"runway\",\"rupture\",\"rural\",\"ruse\",\"rush\",\"rust\",\"rut\",\"sabbath\",\"sabotage\",\"sacrament\",\"sacred\",\"sacrifice\",\"sadden\",\"saddlebag\",\"saddled\",\"saddling\",\"sadly\",\"sadness\",\"safari\",\"safeguard\",\"safehouse\",\"safely\",\"safeness\",\"saffron\",\"saga\",\"sage\",\"sagging\",\"saggy\",\"said\",\"saint\",\"sake\",\"salad\",\"salami\",\"salaried\",\"salary\",\"saline\",\"salon\",\"saloon\",\"salsa\",\"salt\",\"salutary\",\"salute\",\"salvage\",\"salvaging\",\"salvation\",\"same\",\"sample\",\"sampling\",\"sanction\",\"sanctity\",\"sanctuary\",\"sandal\",\"sandbag\",\"sandbank\",\"sandbar\",\"sandblast\",\"sandbox\",\"sanded\",\"sandfish\",\"sanding\",\"sandlot\",\"sandpaper\",\"sandpit\",\"sandstone\",\"sandstorm\",\"sandworm\",\"sandy\",\"sanitary\",\"sanitizer\",\"sank\",\"santa\",\"sapling\",\"sappiness\",\"sappy\",\"sarcasm\",\"sarcastic\",\"sardine\",\"sash\",\"sasquatch\",\"sassy\",\"satchel\",\"satiable\",\"satin\",\"satirical\",\"satisfied\",\"satisfy\",\"saturate\",\"saturday\",\"sauciness\",\"saucy\",\"sauna\",\"savage\",\"savanna\",\"saved\",\"savings\",\"savior\",\"savor\",\"saxophone\",\"say\",\"scabbed\",\"scabby\",\"scalded\",\"scalding\",\"scale\",\"scaling\",\"scallion\",\"scallop\",\"scalping\",\"scam\",\"scandal\",\"scanner\",\"scanning\",\"scant\",\"scapegoat\",\"scarce\",\"scarcity\",\"scarecrow\",\"scared\",\"scarf\",\"scarily\",\"scariness\",\"scarring\",\"scary\",\"scavenger\",\"scenic\",\"schedule\",\"schematic\",\"scheme\",\"scheming\",\"schilling\",\"schnapps\",\"scholar\",\"science\",\"scientist\",\"scion\",\"scoff\",\"scolding\",\"scone\",\"scoop\",\"scooter\",\"scope\",\"scorch\",\"scorebook\",\"scorecard\",\"scored\",\"scoreless\",\"scorer\",\"scoring\",\"scorn\",\"scorpion\",\"scotch\",\"scoundrel\",\"scoured\",\"scouring\",\"scouting\",\"scouts\",\"scowling\",\"scrabble\",\"scraggly\",\"scrambled\",\"scrambler\",\"scrap\",\"scratch\",\"scrawny\",\"screen\",\"scribble\",\"scribe\",\"scribing\",\"scrimmage\",\"script\",\"scroll\",\"scrooge\",\"scrounger\",\"scrubbed\",\"scrubber\",\"scruffy\",\"scrunch\",\"scrutiny\",\"scuba\",\"scuff\",\"sculptor\",\"sculpture\",\"scurvy\",\"scuttle\",\"secluded\",\"secluding\",\"seclusion\",\"second\",\"secrecy\",\"secret\",\"sectional\",\"sector\",\"secular\",\"securely\",\"security\",\"sedan\",\"sedate\",\"sedation\",\"sedative\",\"sediment\",\"seduce\",\"seducing\",\"segment\",\"seismic\",\"seizing\",\"seldom\",\"selected\",\"selection\",\"selective\",\"selector\",\"self\",\"seltzer\",\"semantic\",\"semester\",\"semicolon\",\"semifinal\",\"seminar\",\"semisoft\",\"semisweet\",\"senate\",\"senator\",\"send\",\"senior\",\"senorita\",\"sensation\",\"sensitive\",\"sensitize\",\"sensually\",\"sensuous\",\"sepia\",\"september\",\"septic\",\"septum\",\"sequel\",\"sequence\",\"sequester\",\"series\",\"sermon\",\"serotonin\",\"serpent\",\"serrated\",\"serve\",\"service\",\"serving\",\"sesame\",\"sessions\",\"setback\",\"setting\",\"settle\",\"settling\",\"setup\",\"sevenfold\",\"seventeen\",\"seventh\",\"seventy\",\"severity\",\"shabby\",\"shack\",\"shaded\",\"shadily\",\"shadiness\",\"shading\",\"shadow\",\"shady\",\"shaft\",\"shakable\",\"shakily\",\"shakiness\",\"shaking\",\"shaky\",\"shale\",\"shallot\",\"shallow\",\"shame\",\"shampoo\",\"shamrock\",\"shank\",\"shanty\",\"shape\",\"shaping\",\"share\",\"sharpener\",\"sharper\",\"sharpie\",\"sharply\",\"sharpness\",\"shawl\",\"sheath\",\"shed\",\"sheep\",\"sheet\",\"shelf\",\"shell\",\"shelter\",\"shelve\",\"shelving\",\"sherry\",\"shield\",\"shifter\",\"shifting\",\"shiftless\",\"shifty\",\"shimmer\",\"shimmy\",\"shindig\",\"shine\",\"shingle\",\"shininess\",\"shining\",\"shiny\",\"ship\",\"shirt\",\"shivering\",\"shock\",\"shone\",\"shoplift\",\"shopper\",\"shopping\",\"shoptalk\",\"shore\",\"shortage\",\"shortcake\",\"shortcut\",\"shorten\",\"shorter\",\"shorthand\",\"shortlist\",\"shortly\",\"shortness\",\"shorts\",\"shortwave\",\"shorty\",\"shout\",\"shove\",\"showbiz\",\"showcase\",\"showdown\",\"shower\",\"showgirl\",\"showing\",\"showman\",\"shown\",\"showoff\",\"showpiece\",\"showplace\",\"showroom\",\"showy\",\"shrank\",\"shrapnel\",\"shredder\",\"shredding\",\"shrewdly\",\"shriek\",\"shrill\",\"shrimp\",\"shrine\",\"shrink\",\"shrivel\",\"shrouded\",\"shrubbery\",\"shrubs\",\"shrug\",\"shrunk\",\"shucking\",\"shudder\",\"shuffle\",\"shuffling\",\"shun\",\"shush\",\"shut\",\"shy\",\"siamese\",\"siberian\",\"sibling\",\"siding\",\"sierra\",\"siesta\",\"sift\",\"sighing\",\"silenced\",\"silencer\",\"silent\",\"silica\",\"silicon\",\"silk\",\"silliness\",\"silly\",\"silo\",\"silt\",\"silver\",\"similarly\",\"simile\",\"simmering\",\"simple\",\"simplify\",\"simply\",\"sincere\",\"sincerity\",\"singer\",\"singing\",\"single\",\"singular\",\"sinister\",\"sinless\",\"sinner\",\"sinuous\",\"sip\",\"siren\",\"sister\",\"sitcom\",\"sitter\",\"sitting\",\"situated\",\"situation\",\"sixfold\",\"sixteen\",\"sixth\",\"sixties\",\"sixtieth\",\"sixtyfold\",\"sizable\",\"sizably\",\"size\",\"sizing\",\"sizzle\",\"sizzling\",\"skater\",\"skating\",\"skedaddle\",\"skeletal\",\"skeleton\",\"skeptic\",\"sketch\",\"skewed\",\"skewer\",\"skid\",\"skied\",\"skier\",\"skies\",\"skiing\",\"skilled\",\"skillet\",\"skillful\",\"skimmed\",\"skimmer\",\"skimming\",\"skimpily\",\"skincare\",\"skinhead\",\"skinless\",\"skinning\",\"skinny\",\"skintight\",\"skipper\",\"skipping\",\"skirmish\",\"skirt\",\"skittle\",\"skydiver\",\"skylight\",\"skyline\",\"skype\",\"skyrocket\",\"skyward\",\"slab\",\"slacked\",\"slacker\",\"slacking\",\"slackness\",\"slacks\",\"slain\",\"slam\",\"slander\",\"slang\",\"slapping\",\"slapstick\",\"slashed\",\"slashing\",\"slate\",\"slather\",\"slaw\",\"sled\",\"sleek\",\"sleep\",\"sleet\",\"sleeve\",\"slept\",\"sliceable\",\"sliced\",\"slicer\",\"slicing\",\"slick\",\"slider\",\"slideshow\",\"sliding\",\"slighted\",\"slighting\",\"slightly\",\"slimness\",\"slimy\",\"slinging\",\"slingshot\",\"slinky\",\"slip\",\"slit\",\"sliver\",\"slobbery\",\"slogan\",\"sloped\",\"sloping\",\"sloppily\",\"sloppy\",\"slot\",\"slouching\",\"slouchy\",\"sludge\",\"slug\",\"slum\",\"slurp\",\"slush\",\"sly\",\"small\",\"smartly\",\"smartness\",\"smasher\",\"smashing\",\"smashup\",\"smell\",\"smelting\",\"smile\",\"smilingly\",\"smirk\",\"smite\",\"smith\",\"smitten\",\"smock\",\"smog\",\"smoked\",\"smokeless\",\"smokiness\",\"smoking\",\"smoky\",\"smolder\",\"smooth\",\"smother\",\"smudge\",\"smudgy\",\"smuggler\",\"smuggling\",\"smugly\",\"smugness\",\"snack\",\"snagged\",\"snaking\",\"snap\",\"snare\",\"snarl\",\"snazzy\",\"sneak\",\"sneer\",\"sneeze\",\"sneezing\",\"snide\",\"sniff\",\"snippet\",\"snipping\",\"snitch\",\"snooper\",\"snooze\",\"snore\",\"snoring\",\"snorkel\",\"snort\",\"snout\",\"snowbird\",\"snowboard\",\"snowbound\",\"snowcap\",\"snowdrift\",\"snowdrop\",\"snowfall\",\"snowfield\",\"snowflake\",\"snowiness\",\"snowless\",\"snowman\",\"snowplow\",\"snowshoe\",\"snowstorm\",\"snowsuit\",\"snowy\",\"snub\",\"snuff\",\"snuggle\",\"snugly\",\"snugness\",\"speak\",\"spearfish\",\"spearhead\",\"spearman\",\"spearmint\",\"species\",\"specimen\",\"specked\",\"speckled\",\"specks\",\"spectacle\",\"spectator\",\"spectrum\",\"speculate\",\"speech\",\"speed\",\"spellbind\",\"speller\",\"spelling\",\"spendable\",\"spender\",\"spending\",\"spent\",\"spew\",\"sphere\",\"spherical\",\"sphinx\",\"spider\",\"spied\",\"spiffy\",\"spill\",\"spilt\",\"spinach\",\"spinal\",\"spindle\",\"spinner\",\"spinning\",\"spinout\",\"spinster\",\"spiny\",\"spiral\",\"spirited\",\"spiritism\",\"spirits\",\"spiritual\",\"splashed\",\"splashing\",\"splashy\",\"splatter\",\"spleen\",\"splendid\",\"splendor\",\"splice\",\"splicing\",\"splinter\",\"splotchy\",\"splurge\",\"spoilage\",\"spoiled\",\"spoiler\",\"spoiling\",\"spoils\",\"spoken\",\"spokesman\",\"sponge\",\"spongy\",\"sponsor\",\"spoof\",\"spookily\",\"spooky\",\"spool\",\"spoon\",\"spore\",\"sporting\",\"sports\",\"sporty\",\"spotless\",\"spotlight\",\"spotted\",\"spotter\",\"spotting\",\"spotty\",\"spousal\",\"spouse\",\"spout\",\"sprain\",\"sprang\",\"sprawl\",\"spray\",\"spree\",\"sprig\",\"spring\",\"sprinkled\",\"sprinkler\",\"sprint\",\"sprite\",\"sprout\",\"spruce\",\"sprung\",\"spry\",\"spud\",\"spur\",\"sputter\",\"spyglass\",\"squabble\",\"squad\",\"squall\",\"squander\",\"squash\",\"squatted\",\"squatter\",\"squatting\",\"squeak\",\"squealer\",\"squealing\",\"squeamish\",\"squeegee\",\"squeeze\",\"squeezing\",\"squid\",\"squiggle\",\"squiggly\",\"squint\",\"squire\",\"squirt\",\"squishier\",\"squishy\",\"stability\",\"stabilize\",\"stable\",\"stack\",\"stadium\",\"staff\",\"stage\",\"staging\",\"stagnant\",\"stagnate\",\"stainable\",\"stained\",\"staining\",\"stainless\",\"stalemate\",\"staleness\",\"stalling\",\"stallion\",\"stamina\",\"stammer\",\"stamp\",\"stand\",\"stank\",\"staple\",\"stapling\",\"starboard\",\"starch\",\"stardom\",\"stardust\",\"starfish\",\"stargazer\",\"staring\",\"stark\",\"starless\",\"starlet\",\"starlight\",\"starlit\",\"starring\",\"starry\",\"starship\",\"starter\",\"starting\",\"startle\",\"startling\",\"startup\",\"starved\",\"starving\",\"stash\",\"state\",\"static\",\"statistic\",\"statue\",\"stature\",\"status\",\"statute\",\"statutory\",\"staunch\",\"stays\",\"steadfast\",\"steadier\",\"steadily\",\"steadying\",\"steam\",\"steed\",\"steep\",\"steerable\",\"steering\",\"steersman\",\"stegosaur\",\"stellar\",\"stem\",\"stench\",\"stencil\",\"step\",\"stereo\",\"sterile\",\"sterility\",\"sterilize\",\"sterling\",\"sternness\",\"sternum\",\"stew\",\"stick\",\"stiffen\",\"stiffly\",\"stiffness\",\"stifle\",\"stifling\",\"stillness\",\"stilt\",\"stimulant\",\"stimulate\",\"stimuli\",\"stimulus\",\"stinger\",\"stingily\",\"stinging\",\"stingray\",\"stingy\",\"stinking\",\"stinky\",\"stipend\",\"stipulate\",\"stir\",\"stitch\",\"stock\",\"stoic\",\"stoke\",\"stole\",\"stomp\",\"stonewall\",\"stoneware\",\"stonework\",\"stoning\",\"stony\",\"stood\",\"stooge\",\"stool\",\"stoop\",\"stoplight\",\"stoppable\",\"stoppage\",\"stopped\",\"stopper\",\"stopping\",\"stopwatch\",\"storable\",\"storage\",\"storeroom\",\"storewide\",\"storm\",\"stout\",\"stove\",\"stowaway\",\"stowing\",\"straddle\",\"straggler\",\"strained\",\"strainer\",\"straining\",\"strangely\",\"stranger\",\"strangle\",\"strategic\",\"strategy\",\"stratus\",\"straw\",\"stray\",\"streak\",\"stream\",\"street\",\"strength\",\"strenuous\",\"strep\",\"stress\",\"stretch\",\"strewn\",\"stricken\",\"strict\",\"stride\",\"strife\",\"strike\",\"striking\",\"strive\",\"striving\",\"strobe\",\"strode\",\"stroller\",\"strongbox\",\"strongly\",\"strongman\",\"struck\",\"structure\",\"strudel\",\"struggle\",\"strum\",\"strung\",\"strut\",\"stubbed\",\"stubble\",\"stubbly\",\"stubborn\",\"stucco\",\"stuck\",\"student\",\"studied\",\"studio\",\"study\",\"stuffed\",\"stuffing\",\"stuffy\",\"stumble\",\"stumbling\",\"stump\",\"stung\",\"stunned\",\"stunner\",\"stunning\",\"stunt\",\"stupor\",\"sturdily\",\"sturdy\",\"styling\",\"stylishly\",\"stylist\",\"stylized\",\"stylus\",\"suave\",\"subarctic\",\"subatomic\",\"subdivide\",\"subdued\",\"subduing\",\"subfloor\",\"subgroup\",\"subheader\",\"subject\",\"sublease\",\"sublet\",\"sublevel\",\"sublime\",\"submarine\",\"submerge\",\"submersed\",\"submitter\",\"subpanel\",\"subpar\",\"subplot\",\"subprime\",\"subscribe\",\"subscript\",\"subsector\",\"subside\",\"subsiding\",\"subsidize\",\"subsidy\",\"subsoil\",\"subsonic\",\"substance\",\"subsystem\",\"subtext\",\"subtitle\",\"subtly\",\"subtotal\",\"subtract\",\"subtype\",\"suburb\",\"subway\",\"subwoofer\",\"subzero\",\"succulent\",\"such\",\"suction\",\"sudden\",\"sudoku\",\"suds\",\"sufferer\",\"suffering\",\"suffice\",\"suffix\",\"suffocate\",\"suffrage\",\"sugar\",\"suggest\",\"suing\",\"suitable\",\"suitably\",\"suitcase\",\"suitor\",\"sulfate\",\"sulfide\",\"sulfite\",\"sulfur\",\"sulk\",\"sullen\",\"sulphate\",\"sulphuric\",\"sultry\",\"superbowl\",\"superglue\",\"superhero\",\"superior\",\"superjet\",\"superman\",\"supermom\",\"supernova\",\"supervise\",\"supper\",\"supplier\",\"supply\",\"support\",\"supremacy\",\"supreme\",\"surcharge\",\"surely\",\"sureness\",\"surface\",\"surfacing\",\"surfboard\",\"surfer\",\"surgery\",\"surgical\",\"surging\",\"surname\",\"surpass\",\"surplus\",\"surprise\",\"surreal\",\"surrender\",\"surrogate\",\"surround\",\"survey\",\"survival\",\"survive\",\"surviving\",\"survivor\",\"sushi\",\"suspect\",\"suspend\",\"suspense\",\"sustained\",\"sustainer\",\"swab\",\"swaddling\",\"swagger\",\"swampland\",\"swan\",\"swapping\",\"swarm\",\"sway\",\"swear\",\"sweat\",\"sweep\",\"swell\",\"swept\",\"swerve\",\"swifter\",\"swiftly\",\"swiftness\",\"swimmable\",\"swimmer\",\"swimming\",\"swimsuit\",\"swimwear\",\"swinger\",\"swinging\",\"swipe\",\"swirl\",\"switch\",\"swivel\",\"swizzle\",\"swooned\",\"swoop\",\"swoosh\",\"swore\",\"sworn\",\"swung\",\"sycamore\",\"sympathy\",\"symphonic\",\"symphony\",\"symptom\",\"synapse\",\"syndrome\",\"synergy\",\"synopses\",\"synopsis\",\"synthesis\",\"synthetic\",\"syrup\",\"system\",\"t-shirt\",\"tabasco\",\"tabby\",\"tableful\",\"tables\",\"tablet\",\"tableware\",\"tabloid\",\"tackiness\",\"tacking\",\"tackle\",\"tackling\",\"tacky\",\"taco\",\"tactful\",\"tactical\",\"tactics\",\"tactile\",\"tactless\",\"tadpole\",\"taekwondo\",\"tag\",\"tainted\",\"take\",\"taking\",\"talcum\",\"talisman\",\"tall\",\"talon\",\"tamale\",\"tameness\",\"tamer\",\"tamper\",\"tank\",\"tanned\",\"tannery\",\"tanning\",\"tantrum\",\"tapeless\",\"tapered\",\"tapering\",\"tapestry\",\"tapioca\",\"tapping\",\"taps\",\"tarantula\",\"target\",\"tarmac\",\"tarnish\",\"tarot\",\"tartar\",\"tartly\",\"tartness\",\"task\",\"tassel\",\"taste\",\"tastiness\",\"tasting\",\"tasty\",\"tattered\",\"tattle\",\"tattling\",\"tattoo\",\"taunt\",\"tavern\",\"thank\",\"that\",\"thaw\",\"theater\",\"theatrics\",\"thee\",\"theft\",\"theme\",\"theology\",\"theorize\",\"thermal\",\"thermos\",\"thesaurus\",\"these\",\"thesis\",\"thespian\",\"thicken\",\"thicket\",\"thickness\",\"thieving\",\"thievish\",\"thigh\",\"thimble\",\"thing\",\"think\",\"thinly\",\"thinner\",\"thinness\",\"thinning\",\"thirstily\",\"thirsting\",\"thirsty\",\"thirteen\",\"thirty\",\"thong\",\"thorn\",\"those\",\"thousand\",\"thrash\",\"thread\",\"threaten\",\"threefold\",\"thrift\",\"thrill\",\"thrive\",\"thriving\",\"throat\",\"throbbing\",\"throng\",\"throttle\",\"throwaway\",\"throwback\",\"thrower\",\"throwing\",\"thud\",\"thumb\",\"thumping\",\"thursday\",\"thus\",\"thwarting\",\"thyself\",\"tiara\",\"tibia\",\"tidal\",\"tidbit\",\"tidiness\",\"tidings\",\"tidy\",\"tiger\",\"tighten\",\"tightly\",\"tightness\",\"tightrope\",\"tightwad\",\"tigress\",\"tile\",\"tiling\",\"till\",\"tilt\",\"timid\",\"timing\",\"timothy\",\"tinderbox\",\"tinfoil\",\"tingle\",\"tingling\",\"tingly\",\"tinker\",\"tinkling\",\"tinsel\",\"tinsmith\",\"tint\",\"tinwork\",\"tiny\",\"tipoff\",\"tipped\",\"tipper\",\"tipping\",\"tiptoeing\",\"tiptop\",\"tiring\",\"tissue\",\"trace\",\"tracing\",\"track\",\"traction\",\"tractor\",\"trade\",\"trading\",\"tradition\",\"traffic\",\"tragedy\",\"trailing\",\"trailside\",\"train\",\"traitor\",\"trance\",\"tranquil\",\"transfer\",\"transform\",\"translate\",\"transpire\",\"transport\",\"transpose\",\"trapdoor\",\"trapeze\",\"trapezoid\",\"trapped\",\"trapper\",\"trapping\",\"traps\",\"trash\",\"travel\",\"traverse\",\"travesty\",\"tray\",\"treachery\",\"treading\",\"treadmill\",\"treason\",\"treat\",\"treble\",\"tree\",\"trekker\",\"tremble\",\"trembling\",\"tremor\",\"trench\",\"trend\",\"trespass\",\"triage\",\"trial\",\"triangle\",\"tribesman\",\"tribunal\",\"tribune\",\"tributary\",\"tribute\",\"triceps\",\"trickery\",\"trickily\",\"tricking\",\"trickle\",\"trickster\",\"tricky\",\"tricolor\",\"tricycle\",\"trident\",\"tried\",\"trifle\",\"trifocals\",\"trillion\",\"trilogy\",\"trimester\",\"trimmer\",\"trimming\",\"trimness\",\"trinity\",\"trio\",\"tripod\",\"tripping\",\"triumph\",\"trivial\",\"trodden\",\"trolling\",\"trombone\",\"trophy\",\"tropical\",\"tropics\",\"trouble\",\"troubling\",\"trough\",\"trousers\",\"trout\",\"trowel\",\"truce\",\"truck\",\"truffle\",\"trump\",\"trunks\",\"trustable\",\"trustee\",\"trustful\",\"trusting\",\"trustless\",\"truth\",\"try\",\"tubby\",\"tubeless\",\"tubular\",\"tucking\",\"tuesday\",\"tug\",\"tuition\",\"tulip\",\"tumble\",\"tumbling\",\"tummy\",\"turban\",\"turbine\",\"turbofan\",\"turbojet\",\"turbulent\",\"turf\",\"turkey\",\"turmoil\",\"turret\",\"turtle\",\"tusk\",\"tutor\",\"tutu\",\"tux\",\"tweak\",\"tweed\",\"tweet\",\"tweezers\",\"twelve\",\"twentieth\",\"twenty\",\"twerp\",\"twice\",\"twiddle\",\"twiddling\",\"twig\",\"twilight\",\"twine\",\"twins\",\"twirl\",\"twistable\",\"twisted\",\"twister\",\"twisting\",\"twisty\",\"twitch\",\"twitter\",\"tycoon\",\"tying\",\"tyke\",\"udder\",\"ultimate\",\"ultimatum\",\"ultra\",\"umbilical\",\"umbrella\",\"umpire\",\"unabashed\",\"unable\",\"unadorned\",\"unadvised\",\"unafraid\",\"unaired\",\"unaligned\",\"unaltered\",\"unarmored\",\"unashamed\",\"unaudited\",\"unawake\",\"unaware\",\"unbaked\",\"unbalance\",\"unbeaten\",\"unbend\",\"unbent\",\"unbiased\",\"unbitten\",\"unblended\",\"unblessed\",\"unblock\",\"unbolted\",\"unbounded\",\"unboxed\",\"unbraided\",\"unbridle\",\"unbroken\",\"unbuckled\",\"unbundle\",\"unburned\",\"unbutton\",\"uncanny\",\"uncapped\",\"uncaring\",\"uncertain\",\"unchain\",\"unchanged\",\"uncharted\",\"uncheck\",\"uncivil\",\"unclad\",\"unclaimed\",\"unclamped\",\"unclasp\",\"uncle\",\"unclip\",\"uncloak\",\"unclog\",\"unclothed\",\"uncoated\",\"uncoiled\",\"uncolored\",\"uncombed\",\"uncommon\",\"uncooked\",\"uncork\",\"uncorrupt\",\"uncounted\",\"uncouple\",\"uncouth\",\"uncover\",\"uncross\",\"uncrown\",\"uncrushed\",\"uncured\",\"uncurious\",\"uncurled\",\"uncut\",\"undamaged\",\"undated\",\"undaunted\",\"undead\",\"undecided\",\"undefined\",\"underage\",\"underarm\",\"undercoat\",\"undercook\",\"undercut\",\"underdog\",\"underdone\",\"underfed\",\"underfeed\",\"underfoot\",\"undergo\",\"undergrad\",\"underhand\",\"underline\",\"underling\",\"undermine\",\"undermost\",\"underpaid\",\"underpass\",\"underpay\",\"underrate\",\"undertake\",\"undertone\",\"undertook\",\"undertow\",\"underuse\",\"underwear\",\"underwent\",\"underwire\",\"undesired\",\"undiluted\",\"undivided\",\"undocked\",\"undoing\",\"undone\",\"undrafted\",\"undress\",\"undrilled\",\"undusted\",\"undying\",\"unearned\",\"unearth\",\"unease\",\"uneasily\",\"uneasy\",\"uneatable\",\"uneaten\",\"unedited\",\"unelected\",\"unending\",\"unengaged\",\"unenvied\",\"unequal\",\"unethical\",\"uneven\",\"unexpired\",\"unexposed\",\"unfailing\",\"unfair\",\"unfasten\",\"unfazed\",\"unfeeling\",\"unfiled\",\"unfilled\",\"unfitted\",\"unfitting\",\"unfixable\",\"unfixed\",\"unflawed\",\"unfocused\",\"unfold\",\"unfounded\",\"unframed\",\"unfreeze\",\"unfrosted\",\"unfrozen\",\"unfunded\",\"unglazed\",\"ungloved\",\"unglue\",\"ungodly\",\"ungraded\",\"ungreased\",\"unguarded\",\"unguided\",\"unhappily\",\"unhappy\",\"unharmed\",\"unhealthy\",\"unheard\",\"unhearing\",\"unheated\",\"unhelpful\",\"unhidden\",\"unhinge\",\"unhitched\",\"unholy\",\"unhook\",\"unicorn\",\"unicycle\",\"unified\",\"unifier\",\"uniformed\",\"uniformly\",\"unify\",\"unimpeded\",\"uninjured\",\"uninstall\",\"uninsured\",\"uninvited\",\"union\",\"uniquely\",\"unisexual\",\"unison\",\"unissued\",\"unit\",\"universal\",\"universe\",\"unjustly\",\"unkempt\",\"unkind\",\"unknotted\",\"unknowing\",\"unknown\",\"unlaced\",\"unlatch\",\"unlawful\",\"unleaded\",\"unlearned\",\"unleash\",\"unless\",\"unleveled\",\"unlighted\",\"unlikable\",\"unlimited\",\"unlined\",\"unlinked\",\"unlisted\",\"unlit\",\"unlivable\",\"unloaded\",\"unloader\",\"unlocked\",\"unlocking\",\"unlovable\",\"unloved\",\"unlovely\",\"unloving\",\"unluckily\",\"unlucky\",\"unmade\",\"unmanaged\",\"unmanned\",\"unmapped\",\"unmarked\",\"unmasked\",\"unmasking\",\"unmatched\",\"unmindful\",\"unmixable\",\"unmixed\",\"unmolded\",\"unmoral\",\"unmovable\",\"unmoved\",\"unmoving\",\"unnamable\",\"unnamed\",\"unnatural\",\"unneeded\",\"unnerve\",\"unnerving\",\"unnoticed\",\"unopened\",\"unopposed\",\"unpack\",\"unpadded\",\"unpaid\",\"unpainted\",\"unpaired\",\"unpaved\",\"unpeeled\",\"unpicked\",\"unpiloted\",\"unpinned\",\"unplanned\",\"unplanted\",\"unpleased\",\"unpledged\",\"unplowed\",\"unplug\",\"unpopular\",\"unproven\",\"unquote\",\"unranked\",\"unrated\",\"unraveled\",\"unreached\",\"unread\",\"unreal\",\"unreeling\",\"unrefined\",\"unrelated\",\"unrented\",\"unrest\",\"unretired\",\"unrevised\",\"unrigged\",\"unripe\",\"unrivaled\",\"unroasted\",\"unrobed\",\"unroll\",\"unruffled\",\"unruly\",\"unrushed\",\"unsaddle\",\"unsafe\",\"unsaid\",\"unsalted\",\"unsaved\",\"unsavory\",\"unscathed\",\"unscented\",\"unscrew\",\"unsealed\",\"unseated\",\"unsecured\",\"unseeing\",\"unseemly\",\"unseen\",\"unselect\",\"unselfish\",\"unsent\",\"unsettled\",\"unshackle\",\"unshaken\",\"unshaved\",\"unshaven\",\"unsheathe\",\"unshipped\",\"unsightly\",\"unsigned\",\"unskilled\",\"unsliced\",\"unsmooth\",\"unsnap\",\"unsocial\",\"unsoiled\",\"unsold\",\"unsolved\",\"unsorted\",\"unspoiled\",\"unspoken\",\"unstable\",\"unstaffed\",\"unstamped\",\"unsteady\",\"unsterile\",\"unstirred\",\"unstitch\",\"unstopped\",\"unstuck\",\"unstuffed\",\"unstylish\",\"unsubtle\",\"unsubtly\",\"unsuited\",\"unsure\",\"unsworn\",\"untagged\",\"untainted\",\"untaken\",\"untamed\",\"untangled\",\"untapped\",\"untaxed\",\"unthawed\",\"unthread\",\"untidy\",\"untie\",\"until\",\"untimed\",\"untimely\",\"untitled\",\"untoasted\",\"untold\",\"untouched\",\"untracked\",\"untrained\",\"untreated\",\"untried\",\"untrimmed\",\"untrue\",\"untruth\",\"unturned\",\"untwist\",\"untying\",\"unusable\",\"unused\",\"unusual\",\"unvalued\",\"unvaried\",\"unvarying\",\"unveiled\",\"unveiling\",\"unvented\",\"unviable\",\"unvisited\",\"unvocal\",\"unwanted\",\"unwarlike\",\"unwary\",\"unwashed\",\"unwatched\",\"unweave\",\"unwed\",\"unwelcome\",\"unwell\",\"unwieldy\",\"unwilling\",\"unwind\",\"unwired\",\"unwitting\",\"unwomanly\",\"unworldly\",\"unworn\",\"unworried\",\"unworthy\",\"unwound\",\"unwoven\",\"unwrapped\",\"unwritten\",\"unzip\",\"upbeat\",\"upchuck\",\"upcoming\",\"upcountry\",\"update\",\"upfront\",\"upgrade\",\"upheaval\",\"upheld\",\"uphill\",\"uphold\",\"uplifted\",\"uplifting\",\"upload\",\"upon\",\"upper\",\"upright\",\"uprising\",\"upriver\",\"uproar\",\"uproot\",\"upscale\",\"upside\",\"upstage\",\"upstairs\",\"upstart\",\"upstate\",\"upstream\",\"upstroke\",\"upswing\",\"uptake\",\"uptight\",\"uptown\",\"upturned\",\"upward\",\"upwind\",\"uranium\",\"urban\",\"urchin\",\"urethane\",\"urgency\",\"urgent\",\"urging\",\"urologist\",\"urology\",\"usable\",\"usage\",\"useable\",\"used\",\"uselessly\",\"user\",\"usher\",\"usual\",\"utensil\",\"utility\",\"utilize\",\"utmost\",\"utopia\",\"utter\",\"vacancy\",\"vacant\",\"vacate\",\"vacation\",\"vagabond\",\"vagrancy\",\"vagrantly\",\"vaguely\",\"vagueness\",\"valiant\",\"valid\",\"valium\",\"valley\",\"valuables\",\"value\",\"vanilla\",\"vanish\",\"vanity\",\"vanquish\",\"vantage\",\"vaporizer\",\"variable\",\"variably\",\"varied\",\"variety\",\"various\",\"varmint\",\"varnish\",\"varsity\",\"varying\",\"vascular\",\"vaseline\",\"vastly\",\"vastness\",\"veal\",\"vegan\",\"veggie\",\"vehicular\",\"velcro\",\"velocity\",\"velvet\",\"vendetta\",\"vending\",\"vendor\",\"veneering\",\"vengeful\",\"venomous\",\"ventricle\",\"venture\",\"venue\",\"venus\",\"verbalize\",\"verbally\",\"verbose\",\"verdict\",\"verify\",\"verse\",\"version\",\"versus\",\"vertebrae\",\"vertical\",\"vertigo\",\"very\",\"vessel\",\"vest\",\"veteran\",\"veto\",\"vexingly\",\"viability\",\"viable\",\"vibes\",\"vice\",\"vicinity\",\"victory\",\"video\",\"viewable\",\"viewer\",\"viewing\",\"viewless\",\"viewpoint\",\"vigorous\",\"village\",\"villain\",\"vindicate\",\"vineyard\",\"vintage\",\"violate\",\"violation\",\"violator\",\"violet\",\"violin\",\"viper\",\"viral\",\"virtual\",\"virtuous\",\"virus\",\"visa\",\"viscosity\",\"viscous\",\"viselike\",\"visible\",\"visibly\",\"vision\",\"visiting\",\"visitor\",\"visor\",\"vista\",\"vitality\",\"vitalize\",\"vitally\",\"vitamins\",\"vivacious\",\"vividly\",\"vividness\",\"vixen\",\"vocalist\",\"vocalize\",\"vocally\",\"vocation\",\"voice\",\"voicing\",\"void\",\"volatile\",\"volley\",\"voltage\",\"volumes\",\"voter\",\"voting\",\"voucher\",\"vowed\",\"vowel\",\"voyage\",\"wackiness\",\"wad\",\"wafer\",\"waffle\",\"waged\",\"wager\",\"wages\",\"waggle\",\"wagon\",\"wake\",\"waking\",\"walk\",\"walmart\",\"walnut\",\"walrus\",\"waltz\",\"wand\",\"wannabe\",\"wanted\",\"wanting\",\"wasabi\",\"washable\",\"washbasin\",\"washboard\",\"washbowl\",\"washcloth\",\"washday\",\"washed\",\"washer\",\"washhouse\",\"washing\",\"washout\",\"washroom\",\"washstand\",\"washtub\",\"wasp\",\"wasting\",\"watch\",\"water\",\"waviness\",\"waving\",\"wavy\",\"whacking\",\"whacky\",\"wham\",\"wharf\",\"wheat\",\"whenever\",\"whiff\",\"whimsical\",\"whinny\",\"whiny\",\"whisking\",\"whoever\",\"whole\",\"whomever\",\"whoopee\",\"whooping\",\"whoops\",\"why\",\"wick\",\"widely\",\"widen\",\"widget\",\"widow\",\"width\",\"wieldable\",\"wielder\",\"wife\",\"wifi\",\"wikipedia\",\"wildcard\",\"wildcat\",\"wilder\",\"wildfire\",\"wildfowl\",\"wildland\",\"wildlife\",\"wildly\",\"wildness\",\"willed\",\"willfully\",\"willing\",\"willow\",\"willpower\",\"wilt\",\"wimp\",\"wince\",\"wincing\",\"wind\",\"wing\",\"winking\",\"winner\",\"winnings\",\"winter\",\"wipe\",\"wired\",\"wireless\",\"wiring\",\"wiry\",\"wisdom\",\"wise\",\"wish\",\"wisplike\",\"wispy\",\"wistful\",\"wizard\",\"wobble\",\"wobbling\",\"wobbly\",\"wok\",\"wolf\",\"wolverine\",\"womanhood\",\"womankind\",\"womanless\",\"womanlike\",\"womanly\",\"womb\",\"woof\",\"wooing\",\"wool\",\"woozy\",\"word\",\"work\",\"worried\",\"worrier\",\"worrisome\",\"worry\",\"worsening\",\"worshiper\",\"worst\",\"wound\",\"woven\",\"wow\",\"wrangle\",\"wrath\",\"wreath\",\"wreckage\",\"wrecker\",\"wrecking\",\"wrench\",\"wriggle\",\"wriggly\",\"wrinkle\",\"wrinkly\",\"wrist\",\"writing\",\"written\",\"wrongdoer\",\"wronged\",\"wrongful\",\"wrongly\",\"wrongness\",\"wrought\",\"xbox\",\"xerox\",\"yahoo\",\"yam\",\"yanking\",\"yapping\",\"yard\",\"yarn\",\"yeah\",\"yearbook\",\"yearling\",\"yearly\",\"yearning\",\"yeast\",\"yelling\",\"yelp\",\"yen\",\"yesterday\",\"yiddish\",\"yield\",\"yin\",\"yippee\",\"yo-yo\",\"yodel\",\"yoga\",\"yogurt\",\"yonder\",\"yoyo\",\"yummy\",\"zap\",\"zealous\",\"zebra\",\"zen\",\"zeppelin\",\"zero\",\"zestfully\",\"zesty\",\"zigzagged\",\"zipfile\",\"zipping\",\"zippy\",\"zips\",\"zit\",\"zodiac\",\"zombie\",\"zone\",\"zoning\",\"zookeeper\",\"zoologist\",\"zoology\",\"zoom\"]).filter(e=>!e.includes(\"-\")))},27776:function(e,t,r){\"use strict\";r.d(t,{A:function(){return m},Toaster:function(){return _}});var n=r(2265),i=r(54887),s=e=>{switch(e){case\"success\":return l;case\"info\":return c;case\"warning\":return u;case\"error\":return d;default:return null}},o=Array(12).fill(0),a=e=>{let{visible:t}=e;return n.createElement(\"div\",{className:\"sonner-loading-wrapper\",\"data-visible\":t},n.createElement(\"div\",{className:\"sonner-spinner\"},o.map((e,t)=>n.createElement(\"div\",{className:\"sonner-loading-bar\",key:\"spinner-bar-\".concat(t)}))))},l=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\",clipRule:\"evenodd\"})),u=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z\",clipRule:\"evenodd\"})),c=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\",clipRule:\"evenodd\"})),d=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\",clipRule:\"evenodd\"})),h=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(\"visibilitychange\",e),()=>window.removeEventListener(\"visibilitychange\",e)},[]),e},f=1,p=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i=\"number\"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:f++,s=this.toasts.find(e=>e.id===i),o=void 0===e.dismissible||e.dismissible;return s?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:o,title:r}):t):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:\"error\"}),this.success=(e,t)=>this.create({...t,type:\"success\",message:e}),this.info=(e,t)=>this.create({...t,type:\"info\",message:e}),this.warning=(e,t)=>this.create({...t,type:\"warning\",message:e}),this.loading=(e,t)=>this.create({...t,type:\"loading\",message:e}),this.promise=(e,t)=>{let r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:\"loading\",message:t.loading,description:\"function\"!=typeof t.description?t.description:void 0}));let n=e instanceof Promise?e:e(),i=void 0!==r;return n.then(async e=>{if(g(e)&&!e.ok){i=!1;let n=\"function\"==typeof t.error?await t.error(\"HTTP error! status: \".concat(e.status)):t.error,s=\"function\"==typeof t.description?await t.description(\"HTTP error! status: \".concat(e.status)):t.description;this.create({id:r,type:\"error\",message:n,description:s})}else if(void 0!==t.success){i=!1;let n=\"function\"==typeof t.success?await t.success(e):t.success,s=\"function\"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:\"success\",message:n,description:s})}}).catch(async e=>{if(void 0!==t.error){i=!1;let n=\"function\"==typeof t.error?await t.error(e):t.error,s=\"function\"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:\"error\",message:n,description:s})}}).finally(()=>{var e;i&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),r},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||f++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},g=e=>e&&\"object\"==typeof e&&\"ok\"in e&&\"boolean\"==typeof e.ok&&\"status\"in e&&\"number\"==typeof e.status,m=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||f++;return p.addToast({title:e,...t,id:r}),r},{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:()=>p.toasts});function y(e){return void 0!==e.label}function b(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(\" \")}!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||\"undefined\"==typeof document)return;let r=document.head||document.getElementsByTagName(\"head\")[0],n=document.createElement(\"style\");n.type=\"text/css\",\"top\"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':where(html[dir=\"ltr\"]),:where([data-sonner-toaster][dir=\"ltr\"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir=\"rtl\"]),:where([data-sonner-toaster][dir=\"rtl\"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position=\"right\"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=\"left\"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=\"center\"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position=\"top\"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=\"bottom\"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=\"true\"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position=\"top\"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=\"bottom\"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=\"true\"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=\"dark\"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled=\"true\"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=\"true\"]):before{content:\"\";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=\"top\"][data-swiping=\"true\"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=\"bottom\"][data-swiping=\"true\"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=\"false\"][data-removed=\"true\"]):before{content:\"\";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:\"\";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=\"true\"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=\"false\"][data-front=\"false\"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=\"false\"][data-front=\"false\"][data-styled=\"true\"])>*{opacity:0}:where([data-sonner-toast][data-visible=\"false\"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=\"true\"][data-expanded=\"true\"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"true\"][data-swipe-out=\"false\"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"false\"][data-swipe-out=\"false\"][data-expanded=\"true\"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"false\"][data-swipe-out=\"false\"][data-expanded=\"false\"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"false\"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\\n');var v=e=>{var t,r,i,o,l,u,c,d,f,p;let{invert:g,toast:m,unstyled:b,interacting:v,setHeights:w,visibleToasts:_,heights:E,index:A,toasts:x,expanded:k,removeToast:S,defaultRichColors:$,closeButton:C,style:P,cancelButtonStyle:I,actionButtonStyle:O,className:N=\"\",descriptionClassName:M=\"\",duration:R,position:T,gap:D,loadingIcon:L,expandByDefault:j,classNames:B,icons:F,closeButtonAriaLabel:U=\"Close toast\",pauseWhenPageIsHidden:z,cn:q}=e,[H,G]=n.useState(!1),[V,W]=n.useState(!1),[K,Y]=n.useState(!1),[Z,J]=n.useState(!1),[Q,X]=n.useState(0),[ee,et]=n.useState(0),er=n.useRef(null),en=n.useRef(null),ei=0===A,es=A+1<=_,eo=m.type,ea=!1!==m.dismissible,el=m.className||\"\",eu=m.descriptionClassName||\"\",ec=n.useMemo(()=>E.findIndex(e=>e.toastId===m.id)||0,[E,m.id]),ed=n.useMemo(()=>{var e;return null!=(e=m.closeButton)?e:C},[m.closeButton,C]),eh=n.useMemo(()=>m.duration||R||4e3,[m.duration,R]),ef=n.useRef(0),ep=n.useRef(0),eg=n.useRef(0),em=n.useRef(null),[ey,eb]=T.split(\"-\"),ev=n.useMemo(()=>E.reduce((e,t,r)=>r>=ec?e:e+t.height,0),[E,ec]),ew=h(),e_=m.invert||g,eE=\"loading\"===eo;ep.current=n.useMemo(()=>ec*D+ev,[ec,ev]),n.useEffect(()=>{G(!0)},[]),n.useLayoutEffect(()=>{if(!H)return;let e=en.current,t=e.style.height;e.style.height=\"auto\";let r=e.getBoundingClientRect().height;e.style.height=t,et(r),w(e=>e.find(e=>e.toastId===m.id)?e.map(e=>e.toastId===m.id?{...e,height:r}:e):[{toastId:m.id,height:r,position:m.position},...e])},[H,m.title,m.description,w,m.id]);let eA=n.useCallback(()=>{W(!0),X(ep.current),w(e=>e.filter(e=>e.toastId!==m.id)),setTimeout(()=>{S(m)},200)},[m,S,w,ep]);return n.useEffect(()=>{if(m.promise&&\"loading\"===eo||m.duration===1/0||\"loading\"===m.type)return;let e,t=eh;return k||v||z&&ew?(()=>{if(eg.current<ef.current){let e=new Date().getTime()-ef.current;t-=e}eg.current=new Date().getTime()})():t!==1/0&&(ef.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=m.onAutoClose)||e.call(m,m),eA()},t)),()=>clearTimeout(e)},[k,v,j,m,eh,eA,m.promise,eo,z,ew]),n.useEffect(()=>{let e=en.current;if(e){let t=e.getBoundingClientRect().height;return et(t),w(e=>[{toastId:m.id,height:t,position:m.position},...e]),()=>w(e=>e.filter(e=>e.toastId!==m.id))}},[w,m.id]),n.useEffect(()=>{m.delete&&eA()},[eA,m.delete]),n.createElement(\"li\",{\"aria-live\":m.important?\"assertive\":\"polite\",\"aria-atomic\":\"true\",role:\"status\",tabIndex:0,ref:en,className:q(N,el,null==B?void 0:B.toast,null==(t=null==m?void 0:m.classNames)?void 0:t.toast,null==B?void 0:B.default,null==B?void 0:B[eo],null==(r=null==m?void 0:m.classNames)?void 0:r[eo]),\"data-sonner-toast\":\"\",\"data-rich-colors\":null!=(i=m.richColors)?i:$,\"data-styled\":!(m.jsx||m.unstyled||b),\"data-mounted\":H,\"data-promise\":!!m.promise,\"data-removed\":V,\"data-visible\":es,\"data-y-position\":ey,\"data-x-position\":eb,\"data-index\":A,\"data-front\":ei,\"data-swiping\":K,\"data-dismissible\":ea,\"data-type\":eo,\"data-invert\":e_,\"data-swipe-out\":Z,\"data-expanded\":!!(k||j&&H),style:{\"--index\":A,\"--toasts-before\":A,\"--z-index\":x.length-A,\"--offset\":\"\".concat(V?Q:ep.current,\"px\"),\"--initial-height\":j?\"auto\":\"\".concat(ee,\"px\"),...P,...m.style},onPointerDown:e=>{eE||!ea||(er.current=new Date,X(ep.current),e.target.setPointerCapture(e.pointerId),\"BUTTON\"!==e.target.tagName&&(Y(!0),em.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(Z||!ea)return;em.current=null;let i=Number((null==(e=en.current)?void 0:e.style.getPropertyValue(\"--swipe-amount\").replace(\"px\",\"\"))||0),s=new Date().getTime()-(null==(t=er.current)?void 0:t.getTime());if(Math.abs(i)>=20||Math.abs(i)/s>.11){X(ep.current),null==(r=m.onDismiss)||r.call(m,m),eA(),J(!0);return}null==(n=en.current)||n.style.setProperty(\"--swipe-amount\",\"0px\"),Y(!1)},onPointerMove:e=>{var t;if(!em.current||!ea)return;let r=e.clientY-em.current.y,n=e.clientX-em.current.x,i=(\"top\"===ey?Math.min:Math.max)(0,r),s=\"touch\"===e.pointerType?10:2;Math.abs(i)>s?null==(t=en.current)||t.style.setProperty(\"--swipe-amount\",\"\".concat(r,\"px\")):Math.abs(n)>s&&(em.current=null)}},ed&&!m.jsx?n.createElement(\"button\",{\"aria-label\":U,\"data-disabled\":eE,\"data-close-button\":!0,onClick:eE||!ea?()=>{}:()=>{var e;eA(),null==(e=m.onDismiss)||e.call(m,m)},className:q(null==B?void 0:B.closeButton,null==(o=null==m?void 0:m.classNames)?void 0:o.closeButton)},n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"},n.createElement(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),n.createElement(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"}))):null,m.jsx||n.isValidElement(m.title)?m.jsx||m.title:n.createElement(n.Fragment,null,eo||m.icon||m.promise?n.createElement(\"div\",{\"data-icon\":\"\",className:q(null==B?void 0:B.icon,null==(l=null==m?void 0:m.classNames)?void 0:l.icon)},m.promise||\"loading\"===m.type&&!m.icon?m.icon||(null!=F&&F.loading?n.createElement(\"div\",{className:\"sonner-loader\",\"data-visible\":\"loading\"===eo},F.loading):L?n.createElement(\"div\",{className:\"sonner-loader\",\"data-visible\":\"loading\"===eo},L):n.createElement(a,{visible:\"loading\"===eo})):null,\"loading\"!==m.type?m.icon||(null==F?void 0:F[eo])||s(eo):null):null,n.createElement(\"div\",{\"data-content\":\"\",className:q(null==B?void 0:B.content,null==(u=null==m?void 0:m.classNames)?void 0:u.content)},n.createElement(\"div\",{\"data-title\":\"\",className:q(null==B?void 0:B.title,null==(c=null==m?void 0:m.classNames)?void 0:c.title)},m.title),m.description?n.createElement(\"div\",{\"data-description\":\"\",className:q(M,eu,null==B?void 0:B.description,null==(d=null==m?void 0:m.classNames)?void 0:d.description)},m.description):null),n.isValidElement(m.cancel)?m.cancel:m.cancel&&y(m.cancel)?n.createElement(\"button\",{\"data-button\":!0,\"data-cancel\":!0,style:m.cancelButtonStyle||I,onClick:e=>{var t,r;y(m.cancel)&&ea&&(null==(r=(t=m.cancel).onClick)||r.call(t,e),eA())},className:q(null==B?void 0:B.cancelButton,null==(f=null==m?void 0:m.classNames)?void 0:f.cancelButton)},m.cancel.label):null,n.isValidElement(m.action)?m.action:m.action&&y(m.action)?n.createElement(\"button\",{\"data-button\":!0,\"data-action\":!0,style:m.actionButtonStyle||O,onClick:e=>{var t,r;y(m.action)&&(e.defaultPrevented||(null==(r=(t=m.action).onClick)||r.call(t,e),eA()))},className:q(null==B?void 0:B.actionButton,null==(p=null==m?void 0:m.classNames)?void 0:p.actionButton)},m.action.label):null))};function w(){if(\"undefined\"==typeof window||\"undefined\"==typeof document)return\"ltr\";let e=document.documentElement.getAttribute(\"dir\");return\"auto\"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var _=e=>{let{invert:t,position:r=\"bottom-right\",hotkey:s=[\"altKey\",\"KeyT\"],expand:o,closeButton:a,className:l,offset:u,theme:c=\"light\",richColors:d,duration:h,style:f,visibleToasts:g=3,toastOptions:m,dir:y=w(),gap:_=14,loadingIcon:E,icons:A,containerAriaLabel:x=\"Notifications\",pauseWhenPageIsHidden:k,cn:S=b}=e,[$,C]=n.useState([]),P=n.useMemo(()=>Array.from(new Set([r].concat($.filter(e=>e.position).map(e=>e.position)))),[$,r]),[I,O]=n.useState([]),[N,M]=n.useState(!1),[R,T]=n.useState(!1),[D,L]=n.useState(\"system\"!==c?c:\"undefined\"!=typeof window&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"),j=n.useRef(null),B=s.join(\"+\").replace(/Key/g,\"\").replace(/Digit/g,\"\"),F=n.useRef(null),U=n.useRef(!1),z=n.useCallback(e=>{var t;null!=(t=$.find(t=>t.id===e.id))&&t.delete||p.dismiss(e.id),C(t=>t.filter(t=>{let{id:r}=t;return r!==e.id}))},[$]);return n.useEffect(()=>p.subscribe(e=>{if(e.dismiss){C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{i.flushSync(()=>{C(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if(\"system\"!==c){L(c);return}\"system\"===c&&(window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?L(\"dark\"):L(\"light\")),\"undefined\"!=typeof window&&window.matchMedia(\"(prefers-color-scheme: dark)\").addEventListener(\"change\",e=>{let{matches:t}=e;L(t?\"dark\":\"light\")})},[c]),n.useEffect(()=>{$.length<=1&&M(!1)},[$]),n.useEffect(()=>{let e=e=>{var t,r;s.every(t=>e[t]||e.code===t)&&(M(!0),null==(t=j.current)||t.focus()),\"Escape\"===e.code&&(document.activeElement===j.current||null!=(r=j.current)&&r.contains(document.activeElement))&&M(!1)};return document.addEventListener(\"keydown\",e),()=>document.removeEventListener(\"keydown\",e)},[s]),n.useEffect(()=>{if(j.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,U.current=!1)}},[j.current]),$.length?n.createElement(\"section\",{\"aria-label\":\"\".concat(x,\" \").concat(B),tabIndex:-1},P.map((e,r)=>{var i;let[s,c]=e.split(\"-\");return n.createElement(\"ol\",{key:e,dir:\"auto\"===y?w():y,tabIndex:-1,ref:j,className:l,\"data-sonner-toaster\":!0,\"data-theme\":D,\"data-y-position\":s,\"data-x-position\":c,style:{\"--front-toast-height\":\"\".concat((null==(i=I[0])?void 0:i.height)||0,\"px\"),\"--offset\":\"number\"==typeof u?\"\".concat(u,\"px\"):u||\"32px\",\"--width\":\"\".concat(356,\"px\"),\"--gap\":\"\".concat(_,\"px\"),...f},onBlur:e=>{U.current&&!e.currentTarget.contains(e.relatedTarget)&&(U.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&\"false\"===e.target.dataset.dismissible||U.current||(U.current=!0,F.current=e.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{R||M(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&\"false\"===e.target.dataset.dismissible||T(!0)},onPointerUp:()=>T(!1)},$.filter(t=>!t.position&&0===r||t.position===e).map((r,i)=>{var s,l;return n.createElement(v,{key:r.id,icons:A,index:i,toast:r,defaultRichColors:d,duration:null!=(s=null==m?void 0:m.duration)?s:h,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:t,visibleToasts:g,closeButton:null!=(l=null==m?void 0:m.closeButton)?l:a,interacting:R,position:e,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:z,toasts:$.filter(e=>e.position==r.position),heights:I.filter(e=>e.position==r.position),setHeights:O,expandByDefault:o,gap:_,loadingIcon:E,expanded:N,pauseWhenPageIsHidden:k,cn:S})}))})):null}},13130:function(e,t,r){\"use strict\";function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}r.d(t,{Z:function(){return u}});var i,s,o,a=/^\\s+/,l=/\\s+$/;function u(e,t){if(t=t||{},(e=e||\"\")instanceof u)return e;if(!(this instanceof u))return new u(e,t);var r,i,s,o,c,d,h,f,p,g,m,y,b,v,w,_,E,A,x,k,$=(i={r:0,g:0,b:0},s=1,o=null,c=null,d=null,h=!1,f=!1,\"string\"==typeof(r=e)&&(r=function(e){e=e.replace(a,\"\").replace(l,\"\").toLowerCase();var t,r=!1;if(S[e])e=S[e],r=!0;else if(\"transparent\"==e)return{r:0,g:0,b:0,a:0,format:\"name\"};return(t=T.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=T.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=T.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=T.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=T.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=T.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=T.hex8.exec(e))?{r:O(t[1]),g:O(t[2]),b:O(t[3]),a:O(t[4])/255,format:r?\"name\":\"hex8\"}:(t=T.hex6.exec(e))?{r:O(t[1]),g:O(t[2]),b:O(t[3]),format:r?\"name\":\"hex\"}:(t=T.hex4.exec(e))?{r:O(t[1]+\"\"+t[1]),g:O(t[2]+\"\"+t[2]),b:O(t[3]+\"\"+t[3]),a:O(t[4]+\"\"+t[4])/255,format:r?\"name\":\"hex8\"}:!!(t=T.hex3.exec(e))&&{r:O(t[1]+\"\"+t[1]),g:O(t[2]+\"\"+t[2]),b:O(t[3]+\"\"+t[3]),format:r?\"name\":\"hex\"}}(r)),\"object\"==n(r)&&(D(r.r)&&D(r.g)&&D(r.b)?(p=r.r,g=r.g,m=r.b,i={r:255*P(p,255),g:255*P(g,255),b:255*P(m,255)},h=!0,f=\"%\"===String(r.r).substr(-1)?\"prgb\":\"rgb\"):D(r.h)&&D(r.s)&&D(r.v)?(o=M(r.s),c=M(r.v),y=r.h,b=o,v=c,y=6*P(y,360),b=P(b,100),v=P(v,100),w=Math.floor(y),_=y-w,E=v*(1-b),A=v*(1-_*b),x=v*(1-(1-_)*b),i={r:255*[v,A,E,E,x,v][k=w%6],g:255*[x,v,v,A,E,E][k],b:255*[E,E,x,v,v,A][k]},h=!0,f=\"hsv\"):D(r.h)&&D(r.s)&&D(r.l)&&(o=M(r.s),d=M(r.l),i=function(e,t,r){var n,i,s;function o(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=P(e,360),t=P(t,100),r=P(r,100),0===t)n=i=s=r;else{var a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;n=o(l,a,e+1/3),i=o(l,a,e),s=o(l,a,e-1/3)}return{r:255*n,g:255*i,b:255*s}}(r.h,o,d),h=!0,f=\"hsl\"),r.hasOwnProperty(\"a\")&&(s=r.a)),s=C(s),{ok:h,format:r.format||f,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:s});this._originalInput=e,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||$.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=$.ok}function c(e,t,r){var n,i,s=Math.max(e=P(e,255),t=P(t,255),r=P(r,255)),o=Math.min(e,t,r),a=(s+o)/2;if(s==o)n=i=0;else{var l=s-o;switch(i=a>.5?l/(2-s-o):l/(s+o),s){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:a}}function d(e,t,r){var n,i,s=Math.max(e=P(e,255),t=P(t,255),r=P(r,255)),o=Math.min(e,t,r),a=s-o;if(i=0===s?0:a/s,s==o)n=0;else{switch(s){case e:n=(t-r)/a+(t<r?6:0);break;case t:n=(r-e)/a+2;break;case r:n=(e-t)/a+4}n/=6}return{h:n,s:i,v:s}}function h(e,t,r,n){var i=[N(Math.round(e).toString(16)),N(Math.round(t).toString(16)),N(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function f(e,t,r,n){return[N(R(n)),N(Math.round(e).toString(16)),N(Math.round(t).toString(16)),N(Math.round(r).toString(16))].join(\"\")}function p(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.s-=t/100,r.s=I(r.s),u(r)}function g(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.s+=t/100,r.s=I(r.s),u(r)}function m(e){return u(e).desaturate(100)}function y(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.l+=t/100,r.l=I(r.l),u(r)}function b(e,t){t=0===t?0:t||10;var r=u(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),u(r)}function v(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.l-=t/100,r.l=I(r.l),u(r)}function w(e,t){var r=u(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,u(r)}function _(e){var t=u(e).toHsl();return t.h=(t.h+180)%360,u(t)}function E(e,t){if(isNaN(t)||t<=0)throw Error(\"Argument to polyad must be a positive number\");for(var r=u(e).toHsl(),n=[u(e)],i=360/t,s=1;s<t;s++)n.push(u({h:(r.h+s*i)%360,s:r.s,l:r.l}));return n}function A(e){var t=u(e).toHsl(),r=t.h;return[u(e),u({h:(r+72)%360,s:t.s,l:t.l}),u({h:(r+216)%360,s:t.s,l:t.l})]}function x(e,t,r){t=t||6,r=r||30;var n=u(e).toHsl(),i=360/r,s=[u(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,s.push(u(n));return s}function k(e,t){t=t||6;for(var r=u(e).toHsv(),n=r.h,i=r.s,s=r.v,o=[],a=1/t;t--;)o.push(u({h:n,s:i,v:s})),s=(s+a)%1;return o}u.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*((t=n.g/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=d(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?\"hsv(\"+t+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+t+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?\"hsl(\"+t+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+t+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return\"#\"+this.toHex(e)},toHex8:function(e){var t,r,n,i,s;return t=this._r,r=this._g,n=this._b,i=this._a,s=[N(Math.round(t).toString(16)),N(Math.round(r).toString(16)),N(Math.round(n).toString(16)),N(R(i))],e&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join(\"\")},toHex8String:function(e){return\"#\"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+\"%\",g:Math.round(100*P(this._g,255))+\"%\",b:Math.round(100*P(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*P(this._r,255))+\"%, \"+Math.round(100*P(this._g,255))+\"%, \"+Math.round(100*P(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*P(this._r,255))+\"%, \"+Math.round(100*P(this._g,255))+\"%, \"+Math.round(100*P(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&($[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t=\"#\"+f(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?\"GradientType = 1, \":\"\";if(e){var i=u(e);r=\"#\"+f(i._r,i._g,i._b,i._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+n+\"startColorstr=\"+t+\",endColorstr=\"+r+\")\"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&(\"hex\"===e||\"hex6\"===e||\"hex3\"===e||\"hex4\"===e||\"hex8\"===e||\"name\"===e)?\"name\"===e&&0===this._a?this.toName():this.toRgbString():(\"rgb\"===e&&(r=this.toRgbString()),\"prgb\"===e&&(r=this.toPercentageRgbString()),(\"hex\"===e||\"hex6\"===e)&&(r=this.toHexString()),\"hex3\"===e&&(r=this.toHexString(!0)),\"hex4\"===e&&(r=this.toHex8String(!0)),\"hex8\"===e&&(r=this.toHex8String()),\"name\"===e&&(r=this.toName()),\"hsl\"===e&&(r=this.toHslString()),\"hsv\"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(E,[3])},tetrad:function(){return this._applyCombination(E,[4])}},u.fromRatio=function(e,t){if(\"object\"==n(e)){var r={};for(var i in e)e.hasOwnProperty(i)&&(\"a\"===i?r[i]=e[i]:r[i]=M(e[i]));e=r}return u(e,t)},u.equals=function(e,t){return!!e&&!!t&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},u.mix=function(e,t,r){r=0===r?0:r||50;var n=u(e).toRgb(),i=u(t).toRgb(),s=r/100;return u({r:(i.r-n.r)*s+n.r,g:(i.g-n.g)*s+n.g,b:(i.b-n.b)*s+n.b,a:(i.a-n.a)*s+n.a})},u.readability=function(e,t){var r=u(e),n=u(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},u.isReadable=function(e,t,r){var n,i,s,o,a,l=u.readability(e,t);switch(a=!1,(i=((n=(n=r)||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),s=(n.size||\"small\").toLowerCase(),\"AA\"!==i&&\"AAA\"!==i&&(i=\"AA\"),\"small\"!==s&&\"large\"!==s&&(s=\"small\"),o={level:i,size:s}).level+o.size){case\"AAsmall\":case\"AAAlarge\":a=l>=4.5;break;case\"AAlarge\":a=l>=3;break;case\"AAAsmall\":a=l>=7}return a},u.mostReadable=function(e,t,r){var n,i,s,o,a=null,l=0;i=(r=r||{}).includeFallbackColors,s=r.level,o=r.size;for(var c=0;c<t.length;c++)(n=u.readability(e,t[c]))>l&&(l=n,a=u(t[c]));return u.isReadable(e,a,{level:s,size:o})||!i?a:(r.includeFallbackColors=!1,u.mostReadable(e,[\"#fff\",\"#000\"],r))};var S=u.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},$=u.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(S);function C(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function P(e,t){\"string\"==typeof(r=e)&&-1!=r.indexOf(\".\")&&1===parseFloat(r)&&(e=\"100%\");var r,n,i=\"string\"==typeof(n=e)&&-1!=n.indexOf(\"%\");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function I(e){return Math.min(1,Math.max(0,e))}function O(e){return parseInt(e,16)}function N(e){return 1==e.length?\"0\"+e:\"\"+e}function M(e){return e<=1&&(e=100*e+\"%\"),e}function R(e){return Math.round(255*parseFloat(e)).toString(16)}var T=(s=\"[\\\\s|\\\\(]+(\"+(i=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+i+\")[,|\\\\s]+(\"+i+\")\\\\s*\\\\)?\",o=\"[\\\\s|\\\\(]+(\"+i+\")[,|\\\\s]+(\"+i+\")[,|\\\\s]+(\"+i+\")[,|\\\\s]+(\"+i+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(i),rgb:RegExp(\"rgb\"+s),rgba:RegExp(\"rgba\"+o),hsl:RegExp(\"hsl\"+s),hsla:RegExp(\"hsla\"+o),hsv:RegExp(\"hsv\"+s),hsva:RegExp(\"hsva\"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function D(e){return!!T.CSS_UNIT.exec(e)}},69199:function(e,t,r){\"use strict\";function n(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}r.d(t,{E:function(){return n}})},69717:function(e,t,r){\"use strict\";r.d(t,{z:function(){return i}});var n=r(69199);function i(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}},55522:function(e,t,r){\"use strict\";r.d(t,{m:function(){return i}});var n=r(49112);function i(e,t=\"utf8\"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding \"${t}\"`);return(\"utf8\"===t||\"utf-8\"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,\"utf8\"):r.decoder.decode(`${r.prefix}${e}`)}},39613:function(e,t,r){\"use strict\";r.d(t,{BB:function(){return s.B},mL:function(){return i.m},zo:function(){return n.z}});var n=r(69717),i=r(55522),s=r(3767)},3767:function(e,t,r){\"use strict\";r.d(t,{B:function(){return i}});var n=r(49112);function i(e,t=\"utf8\"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding \"${t}\"`);return(\"utf8\"===t||\"utf-8\"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString(\"utf8\"):r.encoder.encode(e).substring(1)}},49112:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return eW}});var n={};r.r(n),r.d(n,{identity:function(){return N}});var i={};r.r(i),r.d(i,{base2:function(){return M}});var s={};r.r(s),r.d(s,{base8:function(){return R}});var o={};r.r(o),r.d(o,{base10:function(){return T}});var a={};r.r(a),r.d(a,{base16:function(){return D},base16upper:function(){return L}});var l={};r.r(l),r.d(l,{base32:function(){return j},base32hex:function(){return z},base32hexpad:function(){return H},base32hexpadupper:function(){return G},base32hexupper:function(){return q},base32pad:function(){return F},base32padupper:function(){return U},base32upper:function(){return B},base32z:function(){return V}});var u={};r.r(u),r.d(u,{base36:function(){return W},base36upper:function(){return K}});var c={};r.r(c),r.d(c,{base58btc:function(){return Y},base58flickr:function(){return Z}});var d={};r.r(d),r.d(d,{base64:function(){return J},base64pad:function(){return Q},base64url:function(){return X},base64urlpad:function(){return ee}});var h={};r.r(h),r.d(h,{base256emoji:function(){return ei}});var f={};r.r(f),r.d(f,{sha256:function(){return ey},sha512:function(){return eb}});var p={};r.r(p),r.d(p,{identity:function(){return ev}});var g={};r.r(g),r.d(g,{code:function(){return e_},decode:function(){return eA},encode:function(){return eE},name:function(){return ew}});var m={};r.r(m),r.d(m,{code:function(){return e$},decode:function(){return eP},encode:function(){return eC},name:function(){return eS}});var y=function(e,t){if(e.length>=255)throw TypeError(\"Alphabet too long\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var s=e.charAt(i),o=s.charCodeAt(0);if(255!==r[o])throw TypeError(s+\" is ambiguous\");r[o]=i}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function d(e){if(\"string\"!=typeof e)throw TypeError(\"Expected String\");if(0===e.length)return new Uint8Array;var t=0;if(\" \"!==e[0]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var s=(e.length-t)*u+1>>>0,o=new Uint8Array(s);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var d=0,h=s-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*o[h]>>>0,o[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error(\"Non-zero carry\");i=d,t++}if(\" \"!==e[t]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),g=n;f!==s;)p[g++]=o[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError(\"Expected Uint8Array\");if(0===t.length)return\"\";for(var r=0,n=0,i=0,s=t.length;i!==s&&0===t[i];)i++,r++;for(var o=(s-i)*c+1>>>0,u=new Uint8Array(o);i!==s;){for(var d=t[i],h=0,f=o-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*u[f]>>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error(\"Non-zero carry\");n=h,i++}for(var p=o-n;p!==o&&0===u[p];)p++;for(var g=l.repeat(r);p<o;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let b=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},v=e=>{if(e instanceof Uint8Array&&\"Uint8Array\"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error(\"Unknown type, must be binary type\")},w=e=>new TextEncoder().encode(e),_=e=>new TextDecoder().decode(e);class E{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\"Unknown type, must be binary type\")}}class A{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error(\"Invalid prefix character\");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if(\"string\"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error(\"Can only multibase decode strings\")}or(e){return k(this,e)}}class x{constructor(e){this.decoders=e}or(e){return k(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let k=(e,t)=>new x({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class S{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new E(e,t,r),this.decoder=new A(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let $=({name:e,prefix:t,encode:r,decode:n})=>new S(e,t,r,n),C=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=y(r,t);return $({prefix:e,name:t,encode:n,decode:e=>v(i(e))})},P=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let s=e.length;for(;\"=\"===e[s-1];)--s;let o=new Uint8Array(s*r/8|0),a=0,l=0,u=0;for(let t=0;t<s;++t){let s=i[e[t]];if(void 0===s)throw SyntaxError(`Non-${n} character`);l=l<<r|s,(a+=r)>=8&&(a-=8,o[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw SyntaxError(\"Unexpected end of data\");return o},I=(e,t,r)=>{let n=\"=\"===t[t.length-1],i=(1<<r)-1,s=\"\",o=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],o+=8;o>r;)o-=r,s+=t[i&a>>o];if(o&&(s+=t[i&a<<r-o]),n)for(;s.length*r&7;)s+=\"=\";return s},O=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>$({prefix:t,name:e,encode:e=>I(e,n,r),decode:t=>P(t,n,r,e)}),N=$({prefix:\"\\0\",name:\"identity\",encode:e=>_(e),decode:e=>w(e)}),M=O({prefix:\"0\",name:\"base2\",alphabet:\"01\",bitsPerChar:1}),R=O({prefix:\"7\",name:\"base8\",alphabet:\"01234567\",bitsPerChar:3}),T=C({prefix:\"9\",name:\"base10\",alphabet:\"0123456789\"}),D=O({prefix:\"f\",name:\"base16\",alphabet:\"0123456789abcdef\",bitsPerChar:4}),L=O({prefix:\"F\",name:\"base16upper\",alphabet:\"0123456789ABCDEF\",bitsPerChar:4}),j=O({prefix:\"b\",name:\"base32\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567\",bitsPerChar:5}),B=O({prefix:\"B\",name:\"base32upper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\",bitsPerChar:5}),F=O({prefix:\"c\",name:\"base32pad\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567=\",bitsPerChar:5}),U=O({prefix:\"C\",name:\"base32padupper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\",bitsPerChar:5}),z=O({prefix:\"v\",name:\"base32hex\",alphabet:\"0123456789abcdefghijklmnopqrstuv\",bitsPerChar:5}),q=O({prefix:\"V\",name:\"base32hexupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV\",bitsPerChar:5}),H=O({prefix:\"t\",name:\"base32hexpad\",alphabet:\"0123456789abcdefghijklmnopqrstuv=\",bitsPerChar:5}),G=O({prefix:\"T\",name:\"base32hexpadupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\",bitsPerChar:5}),V=O({prefix:\"h\",name:\"base32z\",alphabet:\"ybndrfg8ejkmcpqxot1uwisza345h769\",bitsPerChar:5}),W=C({prefix:\"k\",name:\"base36\",alphabet:\"0123456789abcdefghijklmnopqrstuvwxyz\"}),K=C({prefix:\"K\",name:\"base36upper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"}),Y=C({name:\"base58btc\",prefix:\"z\",alphabet:\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"}),Z=C({name:\"base58flickr\",prefix:\"Z\",alphabet:\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\"}),J=O({prefix:\"m\",name:\"base64\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",bitsPerChar:6}),Q=O({prefix:\"M\",name:\"base64pad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",bitsPerChar:6}),X=O({prefix:\"u\",name:\"base64url\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\",bitsPerChar:6}),ee=O({prefix:\"U\",name:\"base64urlpad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\",bitsPerChar:6}),et=Array.from(\"\\uD83D\\uDE80\\uD83E\\uDE90☄\\uD83D\\uDEF0\\uD83C\\uDF0C\\uD83C\\uDF11\\uD83C\\uDF12\\uD83C\\uDF13\\uD83C\\uDF14\\uD83C\\uDF15\\uD83C\\uDF16\\uD83C\\uDF17\\uD83C\\uDF18\\uD83C\\uDF0D\\uD83C\\uDF0F\\uD83C\\uDF0E\\uD83D\\uDC09☀\\uD83D\\uDCBB\\uD83D\\uDDA5\\uD83D\\uDCBE\\uD83D\\uDCBF\\uD83D\\uDE02❤\\uD83D\\uDE0D\\uD83E\\uDD23\\uD83D\\uDE0A\\uD83D\\uDE4F\\uD83D\\uDC95\\uD83D\\uDE2D\\uD83D\\uDE18\\uD83D\\uDC4D\\uD83D\\uDE05\\uD83D\\uDC4F\\uD83D\\uDE01\\uD83D\\uDD25\\uD83E\\uDD70\\uD83D\\uDC94\\uD83D\\uDC96\\uD83D\\uDC99\\uD83D\\uDE22\\uD83E\\uDD14\\uD83D\\uDE06\\uD83D\\uDE44\\uD83D\\uDCAA\\uD83D\\uDE09☺\\uD83D\\uDC4C\\uD83E\\uDD17\\uD83D\\uDC9C\\uD83D\\uDE14\\uD83D\\uDE0E\\uD83D\\uDE07\\uD83C\\uDF39\\uD83E\\uDD26\\uD83C\\uDF89\\uD83D\\uDC9E✌✨\\uD83E\\uDD37\\uD83D\\uDE31\\uD83D\\uDE0C\\uD83C\\uDF38\\uD83D\\uDE4C\\uD83D\\uDE0B\\uD83D\\uDC97\\uD83D\\uDC9A\\uD83D\\uDE0F\\uD83D\\uDC9B\\uD83D\\uDE42\\uD83D\\uDC93\\uD83E\\uDD29\\uD83D\\uDE04\\uD83D\\uDE00\\uD83D\\uDDA4\\uD83D\\uDE03\\uD83D\\uDCAF\\uD83D\\uDE48\\uD83D\\uDC47\\uD83C\\uDFB6\\uD83D\\uDE12\\uD83E\\uDD2D❣\\uD83D\\uDE1C\\uD83D\\uDC8B\\uD83D\\uDC40\\uD83D\\uDE2A\\uD83D\\uDE11\\uD83D\\uDCA5\\uD83D\\uDE4B\\uD83D\\uDE1E\\uD83D\\uDE29\\uD83D\\uDE21\\uD83E\\uDD2A\\uD83D\\uDC4A\\uD83E\\uDD73\\uD83D\\uDE25\\uD83E\\uDD24\\uD83D\\uDC49\\uD83D\\uDC83\\uD83D\\uDE33✋\\uD83D\\uDE1A\\uD83D\\uDE1D\\uD83D\\uDE34\\uD83C\\uDF1F\\uD83D\\uDE2C\\uD83D\\uDE43\\uD83C\\uDF40\\uD83C\\uDF37\\uD83D\\uDE3B\\uD83D\\uDE13⭐✅\\uD83E\\uDD7A\\uD83C\\uDF08\\uD83D\\uDE08\\uD83E\\uDD18\\uD83D\\uDCA6✔\\uD83D\\uDE23\\uD83C\\uDFC3\\uD83D\\uDC90☹\\uD83C\\uDF8A\\uD83D\\uDC98\\uD83D\\uDE20☝\\uD83D\\uDE15\\uD83C\\uDF3A\\uD83C\\uDF82\\uD83C\\uDF3B\\uD83D\\uDE10\\uD83D\\uDD95\\uD83D\\uDC9D\\uD83D\\uDE4A\\uD83D\\uDE39\\uD83D\\uDDE3\\uD83D\\uDCAB\\uD83D\\uDC80\\uD83D\\uDC51\\uD83C\\uDFB5\\uD83E\\uDD1E\\uD83D\\uDE1B\\uD83D\\uDD34\\uD83D\\uDE24\\uD83C\\uDF3C\\uD83D\\uDE2B⚽\\uD83E\\uDD19☕\\uD83C\\uDFC6\\uD83E\\uDD2B\\uD83D\\uDC48\\uD83D\\uDE2E\\uD83D\\uDE46\\uD83C\\uDF7B\\uD83C\\uDF43\\uD83D\\uDC36\\uD83D\\uDC81\\uD83D\\uDE32\\uD83C\\uDF3F\\uD83E\\uDDE1\\uD83C\\uDF81⚡\\uD83C\\uDF1E\\uD83C\\uDF88❌✊\\uD83D\\uDC4B\\uD83D\\uDE30\\uD83E\\uDD28\\uD83D\\uDE36\\uD83E\\uDD1D\\uD83D\\uDEB6\\uD83D\\uDCB0\\uD83C\\uDF53\\uD83D\\uDCA2\\uD83E\\uDD1F\\uD83D\\uDE41\\uD83D\\uDEA8\\uD83D\\uDCA8\\uD83E\\uDD2C✈\\uD83C\\uDF80\\uD83C\\uDF7A\\uD83E\\uDD13\\uD83D\\uDE19\\uD83D\\uDC9F\\uD83C\\uDF31\\uD83D\\uDE16\\uD83D\\uDC76\\uD83E\\uDD74▶➡❓\\uD83D\\uDC8E\\uD83D\\uDCB8⬇\\uD83D\\uDE28\\uD83C\\uDF1A\\uD83E\\uDD8B\\uD83D\\uDE37\\uD83D\\uDD7A⚠\\uD83D\\uDE45\\uD83D\\uDE1F\\uD83D\\uDE35\\uD83D\\uDC4E\\uD83E\\uDD32\\uD83E\\uDD20\\uD83E\\uDD27\\uD83D\\uDCCC\\uD83D\\uDD35\\uD83D\\uDC85\\uD83E\\uDDD0\\uD83D\\uDC3E\\uD83C\\uDF52\\uD83D\\uDE17\\uD83E\\uDD11\\uD83C\\uDF0A\\uD83E\\uDD2F\\uD83D\\uDC37☎\\uD83D\\uDCA7\\uD83D\\uDE2F\\uD83D\\uDC86\\uD83D\\uDC46\\uD83C\\uDFA4\\uD83D\\uDE47\\uD83C\\uDF51❄\\uD83C\\uDF34\\uD83D\\uDCA3\\uD83D\\uDC38\\uD83D\\uDC8C\\uD83D\\uDCCD\\uD83E\\uDD40\\uD83E\\uDD22\\uD83D\\uDC45\\uD83D\\uDCA1\\uD83D\\uDCA9\\uD83D\\uDC50\\uD83D\\uDCF8\\uD83D\\uDC7B\\uD83E\\uDD10\\uD83E\\uDD2E\\uD83C\\uDFBC\\uD83E\\uDD75\\uD83D\\uDEA9\\uD83C\\uDF4E\\uD83C\\uDF4A\\uD83D\\uDC7C\\uD83D\\uDC8D\\uD83D\\uDCE3\\uD83E\\uDD42\"),er=et.reduce((e,t,r)=>(e[r]=t,e),[]),en=et.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),ei=$({prefix:\"\\uD83D\\uDE80\",name:\"base256emoji\",encode:function(e){return e.reduce((e,t)=>e+=er[t],\"\")},decode:function(e){let t=[];for(let r of e){let e=en[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var es=function e(t,r,n){r=r||[];for(var i=n=n||0;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r},eo=function e(t,r){var n,i=0,r=r||0,s=0,o=r,a=t.length;do{if(o>=a)throw e.bytes=0,RangeError(\"Could not decode varint\");n=t[o++],i+=s<28?(127&n)<<s:(127&n)*Math.pow(2,s),s+=7}while(n>=128);return e.bytes=o-r,i};let ea=(e,t=0)=>[eo(e,t),eo.bytes],el=(e,t,r=0)=>(es(e,t,r),t),eu=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,ec=(e,t)=>{let r=t.byteLength,n=eu(e),i=n+eu(r),s=new Uint8Array(i+r);return el(e,s,0),el(r,s,n),s.set(t,i),new ef(e,r,t,s)},ed=e=>{let t=v(e),[r,n]=ea(t),[i,s]=ea(t.subarray(n)),o=t.subarray(n+s);if(o.byteLength!==i)throw Error(\"Incorrect length\");return new ef(r,i,o,t)},eh=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&b(e.bytes,t.bytes);class ef{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ep=({name:e,code:t,encode:r})=>new eg(e,t,r);class eg{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error(\"Unknown type, must be binary type\")}}let em=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ey=ep({name:\"sha2-256\",code:18,encode:em(\"SHA-256\")}),eb=ep({name:\"sha2-512\",code:19,encode:em(\"SHA-512\")}),ev={code:0,name:\"identity\",encode:v,digest:e=>ec(0,v(e))},ew=\"raw\",e_=85,eE=e=>v(e),eA=e=>v(e),ex=new TextEncoder,ek=new TextDecoder,eS=\"json\",e$=512,eC=e=>ex.encode(JSON.stringify(e)),eP=e=>JSON.parse(ek.decode(e));class eI{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eB,byteLength:eB,code:ej,version:ej,multihash:ej,bytes:ej,_baseCache:eB,asCID:eB})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eR)throw Error(\"Cannot convert a non dag-pb CID to CIDv0\");if(t.code!==eT)throw Error(\"Cannot convert non sha2-256 multihash CID to CIDv0\");return eI.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=ec(e,t);return eI.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&eh(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eN(t,n,e||Y.encoder):eM(t,n,e||j.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return\"CID\"}[Symbol.for(\"nodejs.util.inspect.custom\")](){return\"CID(\"+this.toString()+\")\"}static isCID(e){return eF(/^0\\.0/,eU),!!(e&&(e[eL]||e.asCID===e))}get toBaseEncodedString(){throw Error(\"Deprecated, use .toString()\")}get codec(){throw Error('\"codec\" property is deprecated, use integer \"code\" property instead')}get buffer(){throw Error(\"Deprecated .buffer property, use .bytes to get Uint8Array instead\")}get multibaseName(){throw Error('\"multibaseName\" property is deprecated')}get prefix(){throw Error('\"prefix\" property is deprecated')}static asCID(e){if(e instanceof eI)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eI(t,r,n,i||eD(t,r,n.bytes))}if(null==e||!0!==e[eL])return null;{let{version:t,multihash:r,code:n}=e,i=ed(r);return eI.create(t,n,i)}}static create(e,t,r){if(\"number\"!=typeof t)throw Error(\"String codecs are no longer supported\");switch(e){case 0:if(t===eR)return new eI(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eR}) block encoding`);case 1:{let n=eD(e,t,r.bytes);return new eI(e,t,r,n)}default:throw Error(\"Invalid version\")}}static createV0(e){return eI.create(0,eR,e)}static createV1(e,t){return eI.create(1,e,t)}static decode(e){let[t,r]=eI.decodeFirst(e);if(r.length)throw Error(\"Incorrect length\");return t}static decodeFirst(e){let t=eI.inspectBytes(e),r=t.size-t.multihashSize,n=v(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error(\"Incorrect length\");let i=n.subarray(t.multihashSize-t.digestSize),s=new ef(t.multihashCode,t.digestSize,i,n);return[0===t.version?eI.createV0(s):eI.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=ea(e.subarray(t));return t+=n,r},n=r(),i=eR;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let s=t,o=r(),a=r(),l=t+a;return{version:n,codec:i,multihashCode:o,digestSize:a,multihashSize:l-s,size:l}}static parse(e,t){let[r,n]=eO(e,t),i=eI.decode(n);return i._baseCache.set(r,e),i}}let eO=(e,t)=>{switch(e[0]){case\"Q\":return[Y.prefix,(t||Y).decode(`${Y.prefix}${e}`)];case Y.prefix:return[Y.prefix,(t||Y).decode(e)];case j.prefix:return[j.prefix,(t||j).decode(e)];default:if(null==t)throw Error(\"To parse non base32 or base58btc encoded CID multibase decoder must be provided\");return[e[0],t.decode(e)]}},eN=(e,t,r)=>{let{prefix:n}=r;if(n!==Y.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},eM=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eR=112,eT=18,eD=(e,t,r)=>{let n=eu(e),i=n+eu(t),s=new Uint8Array(i+r.byteLength);return el(e,s,0),el(t,s,n),s.set(r,i),s},eL=Symbol.for(\"@ipld/js-cid/CID\"),ej={writable:!1,configurable:!1,enumerable:!0},eB={writable:!1,enumerable:!1,configurable:!1},eF=(e,t)=>{if(e.test(\"0.0.0-dev\"))console.warn(t);else throw Error(t)},eU=`CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n  doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n  // Make sure to use cid instead of value\n  doSomethingWithCID(cid)\n}\n`,ez={...n,...i,...s,...o,...a,...l,...u,...c,...d,...h};({...f,...p});var eq=r(69199);function eH(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let eG=eH(\"utf8\",\"u\",e=>\"u\"+new TextDecoder(\"utf8\").decode(e),e=>new TextEncoder().encode(e.substring(1))),eV=eH(\"ascii\",\"a\",e=>{let t=\"a\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=(0,eq.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t});var eW={utf8:eG,\"utf-8\":eG,hex:ez.base16,latin1:eV,ascii:eV,binary:eV,...ez}},96104:function(e,t,r){\"use strict\";function n(e){return\"string\"==typeof e?{address:e,type:\"json-rpc\"}:e}r.d(t,{T:function(){return n}})},12994:function(e,t,r){\"use strict\";r.d(t,{R:function(){return ee}});var n=r(43197);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/,s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/,o=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?<returns>.*?)\\))?$/,a=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?<properties>.*?)\\}$/,l=/^constructor\\((?<parameters>.*?)\\)(?:\\s(?<stateMutability>payable{1}))?$/,u=/^fallback\\(\\) external(?:\\s(?<stateMutability>payable{1}))?$/,c=/^receive\\(\\) external payable$/,d=new Set([\"indexed\"]),h=new Set([\"calldata\",\"memory\",\"storage\"]);class f extends Error{constructor(e,t={}){let r=t.cause instanceof f?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof f&&t.cause.docsPath||t.docsPath;super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],\"Version: abitype@1.0.5\"].join(\"\\n\")),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class p extends f{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}}class g extends f{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}class m extends f{constructor({param:e}){super(\"Invalid ABI parameter.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}}class y extends f{constructor({param:e,name:t}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`\"${t}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}}class b extends f{constructor({param:e,type:t,modifier:r}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${r}\" not allowed${t?` in \"${t}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}}class v extends f{constructor({param:e,type:t,modifier:r}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${r}\" not allowed${t?` in \"${t}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${r}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}}class w extends f{constructor({abiParameter:e}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(e,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}class _ extends f{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}}class E extends f{constructor({signature:e}){super(\"Unknown signature.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}}class A extends f{constructor({signature:e}){super(\"Invalid struct signature.\",{details:e,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}class x extends f{constructor({type:e}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${e}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}class k extends f{constructor({current:e,depth:t}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${e.trim()}\" has too many ${t>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${t}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}let S=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]]),$=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,C=/^\\((?<type>.+?)\\)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,P=/^u?int$/;function I(e,t){var r,i,s;let o;let a=(r=t?.type)?`${r}:${e}`:e;if(S.has(a))return S.get(a);let l=n.cN.test(e),u=(0,n.Zw)(l?C:$,e);if(!u)throw new m({param:e});if(u.name&&(\"address\"===(i=u.name)||\"bool\"===i||\"function\"===i||\"string\"===i||\"tuple\"===i||n.eL.test(i)||n.lh.test(i)||M.test(i)))throw new y({param:e,name:u.name});let c=u.name?{name:u.name}:{},d=\"indexed\"===u.modifier?{indexed:!0}:{},f=t?.structs??{},p={};if(l){o=\"tuple\";let e=O(u.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(I(e[n],{structs:f}));p={components:t}}else if(u.type in f)o=\"tuple\",p={components:f[u.type]};else if(P.test(u.type))o=`${u.type}256`;else if(o=u.type,t?.type!==\"struct\"&&!N(o))throw new g({type:o});if(u.modifier){if(!t?.modifiers?.has?.(u.modifier))throw new b({param:e,type:t?.type,modifier:u.modifier});if(h.has(u.modifier)&&(s=o,!u.array&&\"bytes\"!==s&&\"string\"!==s&&\"tuple\"!==s))throw new v({param:e,type:t?.type,modifier:u.modifier})}let w={type:`${o}${u.array??\"\"}`,...c,...d,...p};return S.set(a,w),w}function O(e,t=[],r=\"\",n=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],o=e.slice(s+1);switch(i){case\",\":return 0===n?O(o,[...t,r.trim()]):O(o,t,`${r}${i}`,n);case\"(\":return O(o,t,`${r}${i}`,n+1);case\")\":return O(o,t,`${r}${i}`,n-1);default:return O(o,t,`${r}${i}`,n)}}if(\"\"===r)return t;if(0!==n)throw new k({current:r,depth:n});return t.push(r.trim()),t}function N(e){return\"address\"===e||\"bool\"===e||\"function\"===e||\"string\"===e||n.eL.test(e)||n.lh.test(e)}let M=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,R=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?$/;function T(e){let t=function(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!a.test(r))continue;let s=(0,n.Zw)(a,r);if(!s)throw new _({signature:r,type:\"struct\"});let o=s.properties.split(\";\"),l=[],u=o.length;for(let e=0;e<u;e++){let t=o[e].trim();if(!t)continue;let r=I(t,{type:\"struct\"});l.push(r)}if(!l.length)throw new A({signature:r});t[s.name]=l}let i={},s=Object.entries(t),o=s.length;for(let e=0;e<o;e++){let[r,o]=s[e];i[r]=function e(t,r,i=new Set){let s=[],o=t.length;for(let a=0;a<o;a++){let o=t[a];if(n.cN.test(o.type))s.push(o);else{let t=(0,n.Zw)(R,o.type);if(!t?.type)throw new w({abiParameter:o});let{array:a,type:l}=t;if(l in r){if(i.has(l))throw new x({type:l});s.push({...o,type:`tuple${a??\"\"}`,components:e(r[l]??[],r,new Set([...i,l]))})}else if(N(l))s.push(o);else throw new p({type:l})}}return s}(o,t)}return i}(e),r=[],f=e.length;for(let p=0;p<f;p++){let f=e[p];a.test(f)||r.push(function(e,t={}){if(o.test(e)){let r=(0,n.Zw)(o,e);if(!r)throw new _({signature:e,type:\"function\"});let i=O(r.parameters),s=[],a=i.length;for(let e=0;e<a;e++)s.push(I(i[e],{modifiers:h,structs:t,type:\"function\"}));let l=[];if(r.returns){let e=O(r.returns),n=e.length;for(let r=0;r<n;r++)l.push(I(e[r],{modifiers:h,structs:t,type:\"function\"}))}return{name:r.name,type:\"function\",stateMutability:r.stateMutability??\"nonpayable\",inputs:s,outputs:l}}if(s.test(e)){let r=(0,n.Zw)(s,e);if(!r)throw new _({signature:e,type:\"event\"});let i=O(r.parameters),o=[],a=i.length;for(let e=0;e<a;e++)o.push(I(i[e],{modifiers:d,structs:t,type:\"event\"}));return{name:r.name,type:\"event\",inputs:o}}if(i.test(e)){let r=(0,n.Zw)(i,e);if(!r)throw new _({signature:e,type:\"error\"});let s=O(r.parameters),o=[],a=s.length;for(let e=0;e<a;e++)o.push(I(s[e],{structs:t,type:\"error\"}));return{name:r.name,type:\"error\",inputs:o}}if(l.test(e)){let r=(0,n.Zw)(l,e);if(!r)throw new _({signature:e,type:\"constructor\"});let i=O(r.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(I(i[e],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:r.stateMutability??\"nonpayable\",inputs:s}}if(u.test(e))return{type:\"fallback\"};if(c.test(e))return{type:\"receive\",stateMutability:\"payable\"};throw new E({signature:e})}(f,t))}return r}var D=r(96104),L=r(21620),j=r(13955),B=r(48926),F=r(89045),U=r(58591),z=r(97225),q=r(32637),H=r(31006),G=r(18543),V=r(95046),W=r(37764),K=r(43149),Y=r(27031),Z=r(37669),J=r(10639),Q=r(11667),X=r(82857);async function ee(e,t){let{account:n=e.account,batch:i=!!e.batch?.multicall,blockNumber:s,blockTag:o=\"latest\",accessList:a,blobs:l,code:u,data:c,factory:d,factoryData:h,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:b,to:v,value:w,stateOverride:_,...E}=t,A=n?(0,D.T)(n):void 0;if(u&&(d||h))throw new B.G(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(u&&v)throw new B.G(\"Cannot provide both `code` & `to` as parameters.\");let x=u&&c,k=d&&h&&v&&c,S=x||k,$=x?function(e){let{code:t,data:r}=e;return(0,q.w)({abi:T([\"constructor(bytes, bytes)\"]),bytecode:j.NO,args:[t,r]})}({code:u,data:c}):k?function(e){let{data:t,factory:r,factoryData:n,to:i}=e;return(0,q.w)({abi:T([\"constructor(address, bytes, address, bytes)\"]),bytecode:j.pG,args:[i,t,r,n]})}({data:c,factory:d,factoryData:h,to:v}):c;try{(0,X.F)(t);let r=(s?(0,V.eC)(s):void 0)||o,n=(0,Q.mF)(_),u=e.chain?.formatters?.transactionRequest?.format,c=(u||Z.tG)({...(0,Y.K)(E,{format:u}),from:A?.address,accessList:a,blobs:l,data:$,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:b,to:S?void 0:v,value:w});if(i&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(\"0x82ad56cb\"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:c})&&!n)try{return await et(e,{...c,blockNumber:s,blockTag:o})}catch(e){if(!(e instanceof F.pZ)&&!(e instanceof F.mm))throw e}let d=await e.request({method:\"eth_call\",params:n?[c,r,n]:[c,r]});if(\"0x\"===d)return{data:void 0};return{data:d}}catch(o){let n=function(e){if(!(e instanceof B.G))return;let t=e.walk();return\"object\"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:i,offchainLookupSignature:s}=await r.e(26).then(r.bind(r,35026));if(!1!==e.ccipRead&&n?.slice(0,10)===s&&v)return{data:await i(e,{data:n,to:v})};if(S&&n?.slice(0,10)===\"0x101bb98d\")throw new U.Mo({factory:d});throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,K.k)(e,r);return t instanceof W.cj?e:t})();return new U.cg(n,{docsPath:t,...r})}(o,{...t,account:A,chain:e.chain})}}async function et(e,t){let{batchSize:r=1024,wait:n=0}=\"object\"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:s=\"latest\",data:o,multicallAddress:a,to:l}=t,u=a;if(!u){if(!e.chain)throw new F.pZ;u=(0,G.L)({blockNumber:i,chain:e.chain,contract:\"multicall3\"})}let c=(i?(0,V.eC)(i):void 0)||s,{schedule:d}=(0,J.S)({id:`${e.uid}.${c}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,H.R)({abi:L.F8,args:[r],functionName:\"aggregate3\"}),i=await e.request({method:\"eth_call\",params:[{data:n,to:u},c]});return(0,z.k)({abi:L.F8,args:[r],functionName:\"aggregate3\",data:i||\"0x\"})}}),[{returnData:h,success:f}]=await d({data:o,to:l});if(!f)throw new U.VQ({data:h});return\"0x\"===h?{data:void 0}:{data:h}}},5:function(e,t,r){\"use strict\";r.d(t,{v:function(){return tY}});var n=r(96104),i=r(14851),s=r(21620),o=r(97225),a=r(31006),l=r(18543),u=r(77955),c=r(95046),d=r(47807),h=r(48926),f=r(58591);function p(e,t){if(!(e instanceof h.G))return!1;let r=e.walk(e=>e instanceof f.Lu);return r instanceof f.Lu&&(!!(r.data?.errorName===\"ResolverNotFound\"||r.data?.errorName===\"ResolverWildcardNotSupported\"||r.data?.errorName===\"ResolverNotContract\"||r.data?.errorName===\"ResolverError\"||r.data?.errorName===\"HttpError\"||r.reason?.includes(\"Wildcard on non-extended resolvers is not supported\"))||\"reverse\"===t&&r.reason===d.$[50])}var g=r(53932),m=r(82361),y=r(36494),b=r(40369);function v(e){if(66!==e.length||0!==e.indexOf(\"[\")||65!==e.indexOf(\"]\"))return null;let t=`0x${e.slice(1,65)}`;return(0,b.v)(t)?t:null}function w(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,c.ci)(t);let r=e.split(\".\");for(let e=r.length-1;e>=0;e-=1){let n=v(r[e]),i=n?(0,m.O0)(n):(0,y.w)((0,m.qX)(r[e]),\"bytes\");t=(0,y.w)((0,g.zo)([t,i]),\"bytes\")}return(0,c.ci)(t)}function _(e){let t=e.replace(/^\\.|\\.$/gm,\"\");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,m.qX)(t).byteLength+2),n=0,i=t.split(\".\");for(let e=0;e<i.length;e++){let t=(0,m.qX)(i[e]);if(t.byteLength>255){var s;t=(0,m.qX)((s=function(e){let t=new Uint8Array(32).fill(0);return e?v(e)||(0,y.w)((0,m.qX)(e)):(0,c.ci)(t)}(i[e]),`[${s.slice(2)}]`))}r[n]=t.length,r.set(t,n+1),n+=t.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}function E(e,t,r){let n=e[t.name];if(\"function\"==typeof n)return n;let i=e[r];return\"function\"==typeof i?i:r=>t(e,r)}var A=r(52186),x=r(96329);function k(e,{abi:t,address:r,args:n,docsPath:i,functionName:s,sender:o}){let{code:a,data:l,message:u,shortMessage:c}=e instanceof f.VQ?e:e instanceof h.G?e.walk(e=>\"data\"in e)||e.walk():{},d=e instanceof A.wb?new f.Dk({functionName:s}):[3,x.XS.code].includes(a)&&(l||u||c)?new f.Lu({abi:t,data:\"object\"==typeof l?l.data:l,functionName:s,message:c??u}):e;return new f.uq(d,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:s,sender:o})}var S=r(12994);async function $(e,t){let{abi:r,address:n,args:i,functionName:s,...l}=t,u=(0,a.R)({abi:r,args:i,functionName:s});try{let{data:t}=await E(e,S.R,\"call\")({...l,data:u,to:n});return(0,o.k)({abi:r,args:i,functionName:s,data:t||\"0x\"})}catch(e){throw k(e,{abi:r,address:n,args:i,docsPath:\"/docs/contract/readContract\",functionName:s})}}async function C(e,{blockNumber:t,blockTag:r,coinType:n,name:i,gatewayUrls:d,strict:h,universalResolverAddress:f}){let g=f;if(!g){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");g=(0,l.L)({blockNumber:t,chain:e.chain,contract:\"ensUniversalResolver\"})}try{let l=(0,a.R)({abi:s.X$,functionName:\"addr\",...null!=n?{args:[w(i),BigInt(n)]}:{args:[w(i)]}}),h={address:g,abi:s.k3,functionName:\"resolve\",args:[(0,c.NC)(_(i)),l],blockNumber:t,blockTag:r},f=E(e,$,\"readContract\"),p=d?await f({...h,args:[...h.args,d]}):await f(h);if(\"0x\"===p[0])return null;let m=(0,o.k)({abi:s.X$,args:null!=n?[w(i),BigInt(n)]:void 0,functionName:\"addr\",data:p[0]});if(\"0x\"===m||\"0x00\"===(0,u.f)(m))return null;return m}catch(e){if(h)throw e;if(p(e,\"resolve\"))return null;throw e}}class P extends h.G{constructor({data:e}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarInvalidMetadataError\"})}}class I extends h.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarInvalidNftUriError\"})}}class O extends h.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI \"${e}\". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarUriResolutionError\"})}}class N extends h.G{constructor({namespace:e}){super(`ENS NFT avatar namespace \"${e}\" is not supported. Must be \"erc721\" or \"erc1155\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarUnsupportedNamespaceError\"})}}let M=/(?<protocol>https?:\\/\\/[^\\/]*|ipfs:\\/|ipns:\\/|ar:\\/)?(?<root>\\/)?(?<subpath>ipfs\\/|ipns\\/)?(?<target>[\\w\\-.]+)(?<subtarget>\\/.*)?/,R=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\/(?<target>[\\w\\-.]+))?(?<subtarget>\\/.*)?$/,T=/^data:([a-zA-Z\\-/+]*);base64,([^\"].*)/,D=/^data:([a-zA-Z\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function L(e){try{let t=await fetch(e,{method:\"HEAD\"});if(200===t.status){let e=t.headers.get(\"content-type\");return e?.startsWith(\"image/\")}return!1}catch(t){if(\"object\"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty(\"Image\"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function j(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function B({uri:e,gatewayUrls:t}){let r=T.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=j(t?.ipfs,\"https://ipfs.io\"),i=j(t?.arweave,\"https://arweave.net\"),s=e.match(M),{protocol:o,subpath:a,target:l,subtarget:u=\"\"}=s?.groups||{},c=\"ipns:/\"===o||\"ipns/\"===a,d=\"ipfs:/\"===o||\"ipfs/\"===a||R.test(e);if(e.startsWith(\"http\")&&!c&&!d){let r=e;return t?.arweave&&(r=e.replace(/https:\\/\\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((c||d)&&l)return{uri:`${n}/${c?\"ipns\":\"ipfs\"}/${l}${u}`,isOnChain:!1,isEncoded:!1};if(\"ar:/\"===o&&l)return{uri:`${i}/${l}${u||\"\"}`,isOnChain:!1,isEncoded:!1};let h=e.replace(D,\"\");if(h.startsWith(\"<svg\")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith(\"data:\")||h.startsWith(\"{\"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new O({uri:e})}function F(e){if(\"object\"!=typeof e||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new P({data:e});return e.image||e.image_url||e.image_data}async function U({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await z({gatewayUrls:e,uri:F(r)})}catch{throw new O({uri:t})}}async function z({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=B({uri:t,gatewayUrls:e});if(n||await L(r))return r;throw new O({uri:t})}async function q(e,{nft:t}){if(\"erc721\"===t.namespace)return $(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(\"erc1155\"===t.namespace)return $(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new N({namespace:t.namespace})}async function H(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?G(e,{gatewayUrls:t,record:r}):z({uri:r,gatewayUrls:t})}async function G(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));let[r,n,i]=t.split(\"/\"),[s,o]=r.split(\":\"),[a,l]=n.split(\":\");if(!s||\"eip155\"!==s.toLowerCase())throw new I({reason:\"Only EIP-155 supported\"});if(!o)throw new I({reason:\"Chain ID not found\"});if(!l)throw new I({reason:\"Contract address not found\"});if(!i)throw new I({reason:\"Token ID not found\"});if(!a)throw new I({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(o),namespace:a.toLowerCase(),contractAddress:l,tokenID:i}}(r),{uri:i,isOnChain:s,isEncoded:o}=B({uri:await q(e,{nft:n}),gatewayUrls:t});if(s&&(i.includes(\"data:application/json;base64,\")||i.startsWith(\"{\")))return z({uri:F(JSON.parse(o?atob(i.replace(\"data:application/json;base64,\",\"\")):i)),gatewayUrls:t});let a=n.tokenID;return\"erc1155\"===n.namespace&&(a=a.replace(\"0x\",\"\").padStart(64,\"0\")),U({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,a)})}async function V(e,{blockNumber:t,blockTag:r,name:n,key:i,gatewayUrls:u,strict:d,universalResolverAddress:h}){let f=h;if(!f){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");f=(0,l.L)({blockNumber:t,chain:e.chain,contract:\"ensUniversalResolver\"})}try{let l={address:f,abi:s.k3,functionName:\"resolve\",args:[(0,c.NC)(_(n)),(0,a.R)({abi:s.nZ,functionName:\"text\",args:[w(n),i]})],blockNumber:t,blockTag:r},d=E(e,$,\"readContract\"),h=u?await d({...l,args:[...l.args,u]}):await d(l);if(\"0x\"===h[0])return null;let p=(0,o.k)({abi:s.nZ,functionName:\"text\",data:h[0]});return\"\"===p?null:p}catch(e){if(d)throw e;if(p(e,\"resolve\"))return null;throw e}}async function W(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:s,strict:o,universalResolverAddress:a}){let l=await E(e,V,\"getEnsText\")({blockNumber:t,blockTag:r,key:\"avatar\",name:i,universalResolverAddress:a,gatewayUrls:s,strict:o});if(!l)return null;try{return await H(e,{record:l,gatewayUrls:n})}catch{return null}}async function K(e,{address:t,blockNumber:r,blockTag:n,gatewayUrls:i,strict:o,universalResolverAddress:a}){let u=a;if(!u){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");u=(0,l.L)({blockNumber:r,chain:e.chain,contract:\"ensUniversalResolver\"})}let d=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let o={address:u,abi:s.du,functionName:\"reverse\",args:[(0,c.NC)(_(d))],blockNumber:r,blockTag:n},a=E(e,$,\"readContract\"),[l,h]=i?await a({...o,args:[...o.args,i]}):await a(o);if(t.toLowerCase()!==h.toLowerCase())return null;return l}catch(e){if(o)throw e;if(p(e,\"reverse\"))return null;throw e}}async function Y(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let s=i;if(!s){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");s=(0,l.L)({blockNumber:t,chain:e.chain,contract:\"ensUniversalResolver\"})}let[o]=await E(e,$,\"readContract\")({address:s,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[(0,c.NC)(_(n))],blockNumber:t,blockTag:r});return o}function Z(e,{method:t}){let r={};return\"fallback\"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:s})=>{\"success\"===i&&t===e&&(r[n]=s.request)}),t=>r[t]||e.request}async function J(e){let t=Z(e,{method:\"eth_newBlockFilter\"}),r=await e.request({method:\"eth_newBlockFilter\"});return{id:r,request:t(r),type:\"block\"}}class Q extends h.G{constructor(e){super(`Filter type \"${e}\" is not supported.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FilterTypeNotSupportedError\"})}}var X=r(53263),ee=r(39480),et=r(20101),er=r(18748);let en=\"/docs/contract/encodeEventTopics\";function ei(e){let{abi:t,eventName:r,args:n}=e,i=t[0];if(r){let e=(0,er.mE)({abi:t,name:r});if(!e)throw new A.mv(r,{docsPath:en});i=e}if(\"event\"!==i.type)throw new A.mv(void 0,{docsPath:en});let s=(0,et.t)(i),o=(0,X.n)(s),a=[];if(n&&\"inputs\"in i){let e=i.inputs?.filter(e=>\"indexed\"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(a=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>es({param:e,value:t[r][i]})):t[r]?es({param:e,value:t[r]}):null)??[])}return[o,...a]}function es({param:e,value:t}){if(\"string\"===e.type||\"bytes\"===e.type)return(0,y.w)((0,m.O0)(t));if(\"tuple\"===e.type||e.type.match(/^(.*)\\[(\\d+)?\\]$/))throw new Q(e.type);return(0,ee.E)([e],[t])}async function eo(e,t){let{address:r,abi:n,args:i,eventName:s,fromBlock:o,strict:a,toBlock:l}=t,u=Z(e,{method:\"eth_newFilter\"}),d=s?ei({abi:n,args:i,eventName:s}):void 0,h=await e.request({method:\"eth_newFilter\",params:[{address:r,fromBlock:\"bigint\"==typeof o?(0,c.eC)(o):o,toBlock:\"bigint\"==typeof l?(0,c.eC)(l):l,topics:d}]});return{abi:n,args:i,eventName:s,id:h,request:u(h),strict:!!a,type:\"event\"}}async function ea(e,{address:t,args:r,event:n,events:i,fromBlock:s,strict:o,toBlock:a}={}){let l=i??(n?[n]:void 0),u=Z(e,{method:\"eth_newFilter\"}),d=[];l&&(d=[l.flatMap(e=>ei({abi:[e],eventName:e.name,args:r}))],n&&(d=d[0]));let h=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:\"bigint\"==typeof s?(0,c.eC)(s):s,toBlock:\"bigint\"==typeof a?(0,c.eC)(a):a,...d.length?{topics:d}:{}}]});return{abi:l,args:r,eventName:n?n.name:void 0,fromBlock:s,id:h,request:u(h),strict:!!o,toBlock:a,type:\"event\"}}async function el(e){let t=Z(e,{method:\"eth_newPendingTransactionFilter\"}),r=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:r,request:t(r),type:\"transaction\"}}var eu=r(85053),ec=r(49268),ed=r(97658);class eh extends h.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:s,gasPrice:o,maxFeePerGas:a,maxPriorityFeePerGas:l,nonce:u,to:c,value:d}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",(0,ed.xr)({from:t?.address,to:c,value:void 0!==d&&`${(0,eu.d)(d)} ${n?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:s,gasPrice:void 0!==o&&`${(0,ec.o)(o)} gwei`,maxFeePerGas:void 0!==a&&`${(0,ec.o)(a)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,ec.o)(l)} gwei`,nonce:u})].filter(Boolean)}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EstimateGasExecutionError\"}),this.cause=e}}var ef=r(37764),ep=r(43149),eg=r(27031),em=r(37669),ey=r(11667),eb=r(82857);class ev extends h.G{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseFeeScalarError\"})}}class ew extends h.G{constructor(){super(\"Chain does not support EIP-1559 fees.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Eip1559FeesNotSupportedError\"})}}class e_ extends h.G{constructor({maxPriorityFeePerGas:e}){super(`\\`maxFeePerGas\\` cannot be less than the \\`maxPriorityFeePerGas\\` (${(0,ec.o)(e)} gwei).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MaxFeePerGasTooLowError\"})}}var eE=r(21019);class eA extends h.G{constructor({blockHash:e,blockNumber:t}){let r=\"Block\";e&&(r=`Block at hash \"${e}\"`),t&&(r=`Block at number \"${t}\"`),super(`${r} could not be found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BlockNotFoundError\"})}}let ex={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\"};function ek(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,eE.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,eE.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?ex[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(\"bigint\"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),\"legacy\"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),\"eip2930\"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),\"eip1559\"===t.type&&delete t.maxFeePerBlobGas,t}function eS(e){let t=e.transactions?.map(e=>\"string\"==typeof e?e:ek(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function e$(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:i}={}){let s=i??!1,o=void 0!==r?(0,c.eC)(r):void 0,a=null;if(!(a=t?await e.request({method:\"eth_getBlockByHash\",params:[t,s]},{dedupe:!0}):await e.request({method:\"eth_getBlockByNumber\",params:[o||(n??\"latest\"),s]},{dedupe:!!o})))throw new eA({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||eS)(a)}async function eC(e){return BigInt(await e.request({method:\"eth_gasPrice\"}))}async function eP(e,t){return eI(e,t)}async function eI(e,t){let{block:r,chain:n=e.chain,request:i}=t||{};if(\"function\"==typeof n?.fees?.defaultPriorityFee){let t=r||await E(e,e$,\"getBlock\")({});return n.fees.defaultPriorityFee({block:t,client:e,request:i})}if(void 0!==n?.fees?.defaultPriorityFee)return n?.fees?.defaultPriorityFee;try{let t=await e.request({method:\"eth_maxPriorityFeePerGas\"});return(0,eE.y_)(t)}catch{let[t,n]=await Promise.all([r?Promise.resolve(r):E(e,e$,\"getBlock\")({}),E(e,eC,\"getGasPrice\")({})]);if(\"bigint\"!=typeof t.baseFeePerGas)throw new ew;let i=n-t.baseFeePerGas;if(i<0n)return 0n;return i}}async function eO(e,t){return eN(e,t)}async function eN(e,t){let{block:r,chain:n=e.chain,request:i,type:s=\"eip1559\"}=t||{},o=await (async()=>\"function\"==typeof n?.fees?.baseFeeMultiplier?n.fees.baseFeeMultiplier({block:r,client:e,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(o<1)throw new ev;let a=10**(o.toString().split(\".\")[1]?.length??0),l=e=>e*BigInt(Math.ceil(o*a))/BigInt(a),u=r||await E(e,e$,\"getBlock\")({});if(\"function\"==typeof n?.fees?.estimateFeesPerGas){let t=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:l,request:i,type:s});if(null!==t)return t}if(\"eip1559\"===s){if(\"bigint\"!=typeof u.baseFeePerGas)throw new ew;let t=\"bigint\"==typeof i?.maxPriorityFeePerGas?i.maxPriorityFeePerGas:await eI(e,{block:u,chain:n,request:i}),r=l(u.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??l(await E(e,eC,\"getGasPrice\")({}))}}async function eM(e,{address:t,blockTag:r=\"latest\",blockNumber:n}){let i=await e.request({method:\"eth_getTransactionCount\",params:[t,n?(0,c.eC)(n):r]},{dedupe:!!n});return(0,eE.ly)(i)}function eR(e){let{kzg:t}=e,r=e.to??(\"string\"==typeof e.blobs[0]?\"hex\":\"bytes\"),n=\"string\"==typeof e.blobs[0]?e.blobs.map(e=>(0,m.nr)(e)):e.blobs,i=[];for(let e of n)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return\"bytes\"===r?i:i.map(e=>(0,c.ci)(e))}function eT(e){let{kzg:t}=e,r=e.to??(\"string\"==typeof e.blobs[0]?\"hex\":\"bytes\"),n=\"string\"==typeof e.blobs[0]?e.blobs.map(e=>(0,m.nr)(e)):e.blobs,i=\"string\"==typeof e.commitments[0]?e.commitments.map(e=>(0,m.nr)(e)):e.commitments,s=[];for(let e=0;e<n.length;e++){let r=n[e],o=i[e];s.push(Uint8Array.from(t.computeBlobKzgProof(r,o)))}return\"bytes\"===r?s:s.map(e=>(0,c.ci)(e))}var eD=r(80543);class eL extends h.G{constructor({maxSize:e,size:t}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BlobSizeTooLargeError\"})}}class ej extends h.G{constructor(){super(\"Blob data must not be empty.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EmptyBlobError\"})}}var eB=r(15222),eF=r(7508);async function eU(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return(0,eE.ly)(t)}let ez=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"];async function eq(e,t){let r,i;let{account:s=e.account,blobs:o,chain:a,gas:l,kzg:u,nonce:d,parameters:h=ez,type:f}=t,p=s?(0,n.T)(s):void 0,g={...t,...p?{from:p?.address}:{}};async function y(){return r||(r=await E(e,e$,\"getBlock\")({blockTag:\"latest\"}))}async function v(){return i||(a?a.id:void 0!==t.chainId?t.chainId:i=await E(e,eU,\"getChainId\")({}))}if((h.includes(\"blobVersionedHashes\")||h.includes(\"sidecars\"))&&o&&u){let e=eR({blobs:o,kzg:u});if(h.includes(\"blobVersionedHashes\")){let t=function(e){let{commitments:t,version:r}=e,n=e.to??(\"string\"==typeof t[0]?\"hex\":\"bytes\"),i=[];for(let e of t)i.push(function(e){let{commitment:t,version:r=1}=e,n=e.to??(\"string\"==typeof t?\"hex\":\"bytes\"),i=function(e,t){let r=(0,eD.J)((0,b.v)(e,{strict:!1})?(0,m.O0)(e):e);return\"bytes\"===(t||\"hex\")?r:(0,c.NC)(r)}(t,\"bytes\");return i.set([r],0),\"bytes\"===n?i:(0,c.ci)(i)}({commitment:e,to:n,version:r}));return i}({commitments:e,to:\"hex\"});g.blobVersionedHashes=t}if(h.includes(\"sidecars\")){let t=eT({blobs:o,commitments:e,kzg:u}),r=function(e){let{data:t,kzg:r,to:n}=e,i=e.blobs??function(e){let t=e.to??(\"string\"==typeof e.data?\"hex\":\"bytes\"),r=\"string\"==typeof e.data?(0,m.nr)(e.data):e.data,n=(0,eF.d)(r);if(!n)throw new ej;if(n>761855)throw new eL({maxSize:761855,size:n});let i=[],s=!0,o=0;for(;s;){let e=(0,eB.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(o,o+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),s=!1;break}t++,o+=31}i.push(e)}return\"bytes\"===t?i.map(e=>e.bytes):i.map(e=>(0,c.ci)(e.bytes))}({data:t,to:n}),s=e.commitments??eR({blobs:i,kzg:r,to:n}),o=e.proofs??eT({blobs:i,commitments:s,kzg:r,to:n}),a=[];for(let e=0;e<i.length;e++)a.push({blob:i[e],commitment:s[e],proof:o[e]});return a}({blobs:o,commitments:e,proofs:t,to:\"hex\"});g.sidecars=r}}if(h.includes(\"chainId\")&&(g.chainId=await v()),h.includes(\"nonce\")&&void 0===d&&p){if(p.nonceManager){let t=await v();g.nonce=await p.nonceManager.consume({address:p.address,chainId:t,client:e})}else g.nonce=await E(e,eM,\"getTransactionCount\")({address:p.address,blockTag:\"pending\"})}if((h.includes(\"fees\")||h.includes(\"type\"))&&void 0===f)try{g.type=function(e){if(e.type)return e.type;if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return\"eip4844\";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return\"eip1559\";if(void 0!==e.gasPrice)return void 0!==e.accessList?\"eip2930\":\"legacy\";throw new ed.j3({transaction:e})}(g)}catch{let e=await y();g.type=\"bigint\"==typeof e?.baseFeePerGas?\"eip1559\":\"legacy\"}if(h.includes(\"fees\")){if(\"legacy\"!==g.type&&\"eip2930\"!==g.type){if(void 0===g.maxFeePerGas||void 0===g.maxPriorityFeePerGas){let r=await y(),{maxFeePerGas:n,maxPriorityFeePerGas:i}=await eN(e,{block:r,chain:a,request:g});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new e_({maxPriorityFeePerGas:i});g.maxPriorityFeePerGas=i,g.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new ew;let r=await y(),{gasPrice:n}=await eN(e,{block:r,chain:a,request:g,type:\"legacy\"});g.gasPrice=n}}return h.includes(\"gas\")&&void 0===l&&(g.gas=await E(e,eH,\"estimateGas\")({...g,account:p?{address:p.address,type:\"json-rpc\"}:void 0})),(0,eb.F)(g),delete g.parameters,g}async function eH(e,t){let r=t.account??e.account,i=r?(0,n.T)(r):void 0;try{let{accessList:r,blobs:n,blobVersionedHashes:s,blockNumber:o,blockTag:a,data:l,gas:u,gasPrice:d,maxFeePerBlobGas:h,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:g,to:m,value:y,stateOverride:b,...v}=await eq(e,{...t,parameters:i?.type===\"local\"?void 0:[\"blobVersionedHashes\"]}),w=(o?(0,c.eC)(o):void 0)||a,_=(0,ey.mF)(b);(0,eb.F)(t);let E=e.chain?.formatters?.transactionRequest?.format,A=(E||em.tG)({...(0,eg.K)(v,{format:E}),from:i?.address,accessList:r,blobs:n,blobVersionedHashes:s,data:l,gas:u,gasPrice:d,maxFeePerBlobGas:h,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:g,to:m,value:y}),x=await e.request({method:\"eth_estimateGas\",params:_?[A,w??\"latest\",_]:w?[A,w]:[A]});return BigInt(x)}catch(r){throw function(e,{docsPath:t,...r}){return new eh((()=>{let t=(0,ep.k)(e,r);return t instanceof ef.cj?e:t})(),{docsPath:t,...r})}(r,{...t,account:i,chain:e.chain})}}async function eG(e,t){let{abi:r,address:i,args:s,functionName:o,...l}=t,u=(0,a.R)({abi:r,args:s,functionName:o});try{return await E(e,eH,\"estimateGas\")({data:u,to:i,...l})}catch(t){let e=l.account?(0,n.T)(l.account):void 0;throw k(t,{abi:r,address:i,args:s,docsPath:\"/docs/contract/estimateContractGas\",functionName:o,sender:e?.address})}}async function eV(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let i=r?(0,c.eC)(r):void 0;return BigInt(await e.request({method:\"eth_getBalance\",params:[t,i||n]}))}async function eW(e){return BigInt(await e.request({method:\"eth_blobBaseFee\"}))}let eK=new Map,eY=new Map;async function eZ(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let n=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,eK),n=t(e,eY);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0&&new Date().getTime()-i.created.getTime()<r)return i.data;let s=n.promise.get();s||(s=e(),n.promise.set(s));try{let e=await s;return n.response.set({created:new Date,data:e}),e}finally{n.promise.clear()}}let eJ=e=>`blockNumber.${e}`;async function eQ(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await eZ(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:eJ(e.uid),cacheTime:t}))}async function eX(e,{blockHash:t,blockNumber:r,blockTag:n=\"latest\"}={}){let i;let s=void 0!==r?(0,c.eC)(r):void 0;return i=t?await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[s||n]},{dedupe:!!s}),(0,eE.ly)(i)}async function e0(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let i=void 0!==r?(0,c.eC)(r):void 0,s=await e.request({method:\"eth_getCode\",params:[t,i||n]},{dedupe:!!i});if(\"0x\"!==s)return s}var e1=r(65937),e2=r(19477),e3=r(52998);let e5=\"/docs/contract/decodeEventLog\";function e6(e){let{abi:t,data:r,strict:n,topics:i}=e,s=n??!0,[o,...a]=i;if(!o)throw new A.FM({docsPath:e5});let l=t.find(e=>\"event\"===e.type&&o===(0,X.n)((0,et.t)(e)));if(!(l&&\"name\"in l)||\"event\"!==l.type)throw new A.lC(o,{docsPath:e5});let{name:u,inputs:c}=l,d=c?.some(e=>!(\"name\"in e&&e.name)),h=d?[]:{},f=c.filter(e=>\"indexed\"in e&&e.indexed);for(let e=0;e<f.length;e++){let t=f[e],r=a[e];if(!r)throw new A.Gy({abiItem:l,param:t});h[d?e:t.name||e]=function({param:e,value:t}){return\"string\"===e.type||\"bytes\"===e.type||\"tuple\"===e.type||e.type.match(/^(.*)\\[(\\d+)?\\]$/)?t:((0,e3.r)([e],t)||[])[0]}({param:t,value:r})}let p=c.filter(e=>!(\"indexed\"in e&&e.indexed));if(p.length>0){if(r&&\"0x\"!==r)try{let e=(0,e3.r)(p,r);if(e){if(d)h=[...h,...e];else for(let t=0;t<p.length;t++)h[p[t].name]=e[t]}}catch(e){if(s){if(e instanceof A.xB||e instanceof e2.lQ)throw new A.SM({abiItem:l,data:r,params:p,size:(0,eF.d)(r)});throw e}}else if(s)throw new A.SM({abiItem:l,data:\"0x\",params:p,size:0})}return{eventName:u,args:Object.values(h).length>0?h:void 0}}function e4(e){let{abi:t,args:r,logs:n,strict:i=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(e=>{try{let n=(0,er.mE)({abi:t,name:e.topics[0]});if(!n)return null;let o=e6({...e,abi:[n],strict:i});if(s&&!s.includes(o.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function i(e,t,r){try{if(\"address\"===e.type)return(0,e1.E)(t,r);if(\"string\"===e.type||\"bytes\"===e.type)return(0,y.w)((0,m.O0)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(!e)return!0;let s=r[n];return!!s&&(Array.isArray(e)?e:[e]).some(e=>i(s,e,t[n]))}):!(\"object\"!=typeof t||Array.isArray(t)||\"object\"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(!n)return!0;let s=r.find(t=>t.name===e);return!!s&&(Array.isArray(n)?n:[n]).some(r=>i(s,r,t[e]))})}({args:o.args,inputs:n.inputs,matchArgs:r}))return null;return{...o,...e}}catch(n){let t,r;if(n instanceof A.lC)return null;if(n instanceof A.SM||n instanceof A.Gy){if(i)return null;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)}function e8(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}async function e9(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:s,events:o,args:a,strict:l}={}){let u=o??(s?[s]:void 0),d=[];u&&(d=[u.flatMap(e=>ei({abi:[e],eventName:e.name,args:o?void 0:a}))],s&&(d=d[0]));let h=(r?await e.request({method:\"eth_getLogs\",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:\"eth_getLogs\",params:[{address:t,topics:d,fromBlock:\"bigint\"==typeof n?(0,c.eC)(n):n,toBlock:\"bigint\"==typeof i?(0,c.eC)(i):i}]})).map(e=>e8(e));return u?e4({abi:u,args:a,logs:h,strict:l??!1}):h}async function e7(e,t){let{abi:r,address:n,args:i,blockHash:s,eventName:o,fromBlock:a,toBlock:l,strict:u}=t,c=o?(0,er.mE)({abi:r,name:o}):void 0,d=c?void 0:r.filter(e=>\"event\"===e.type);return E(e,e9,\"getLogs\")({address:n,args:i,blockHash:s,event:c,events:d,fromBlock:a,toBlock:l,strict:u})}class te extends h.G{constructor({address:e}){super(`No EIP-712 domain found on contract \"${e}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${e}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Eip712DomainNotFoundError\"})}}async function tt(e,t){let{address:r,factory:n,factoryData:i}=t;try{let[t,s,o,a,l,u,c]=await E(e,$,\"readContract\")({abi:tr,address:r,functionName:\"eip712Domain\",factory:n,factoryData:i});return{domain:{name:s,version:o,chainId:Number(a),verifyingContract:l,salt:u},extensions:c,fields:t}}catch(e){if(\"ContractFunctionExecutionError\"===e.name&&\"ContractFunctionZeroDataError\"===e.cause.name)throw new te({address:r});throw e}}let tr=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}];async function tn(e,{blockCount:t,blockNumber:r,blockTag:n=\"latest\",rewardPercentiles:i}){var s;let o=r?(0,c.eC)(r):void 0;return{baseFeePerGas:(s=await e.request({method:\"eth_feeHistory\",params:[(0,c.eC)(t),o||n,i]},{dedupe:!!o})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:s.gasUsedRatio,oldestBlock:BigInt(s.oldestBlock),reward:s.reward?.map(e=>e.map(e=>BigInt(e)))}}async function ti(e,{filter:t}){let r=\"strict\"in t&&t.strict,n=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(\"string\"==typeof n[0])return n;let i=n.map(e=>e8(e));return\"abi\"in t&&t.abi?e4({abi:t.abi,logs:i,strict:r}):i}async function ts(e,{filter:t}){let r=t.strict??!1,n=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(e=>e8(e));return t.abi?e4({abi:t.abi,logs:n,strict:r}):n}async function to(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){var s;let o=void 0!==r?(0,c.eC)(r):void 0;return{...s=await e.request({method:\"eth_getProof\",params:[t,i,o||(n??\"latest\")]}),balance:s.balance?BigInt(s.balance):void 0,nonce:s.nonce?(0,eE.ly)(s.nonce):void 0,storageProof:s.storageProof?s.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function ta(e,{address:t,blockNumber:r,blockTag:n=\"latest\",slot:i}){let s=void 0!==r?(0,c.eC)(r):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,i,s||n]})}async function tl(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:s}){let o=n||\"latest\",a=void 0!==r?(0,c.eC)(r):void 0,l=null;if(i?l=await e.request({method:\"eth_getTransactionByHash\",params:[i]},{dedupe:!0}):t?l=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,(0,c.eC)(s)]},{dedupe:!0}):(a||o)&&(l=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[a||o,(0,c.eC)(s)]},{dedupe:!!a})),!l)throw new ed.Bh({blockHash:t,blockNumber:r,blockTag:o,hash:i,index:s});return(e.chain?.formatters?.transaction?.format||ek)(l)}async function tu(e,{hash:t,transactionReceipt:r}){let[n,i]=await Promise.all([E(e,eQ,\"getBlockNumber\")({}),t?E(e,tl,\"getTransaction\")({hash:t}):void 0]),s=r?.blockNumber||i?.blockNumber;return s?n-s+1n:0n}let tc={\"0x0\":\"reverted\",\"0x1\":\"success\"};async function td(e,{hash:t}){let r=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!r)throw new ed.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>e8(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,eE.ly)(e.transactionIndex):null,status:e.status?tc[e.status]:null,type:e.type?ex[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(r)}async function th(e,t){let{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:u,multicallAddress:c,stateOverride:d}=t,p=t.contracts,g=n??(\"object\"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),m=c;if(!m){if(!e.chain)throw Error(\"client chain not configured. multicallAddress is required.\");m=(0,l.L)({blockNumber:i,chain:e.chain,contract:\"multicall3\"})}let y=[[]],b=0,v=0;for(let e=0;e<p.length;e++){let{abi:t,address:n,args:i,functionName:s}=p[e];try{let e=(0,a.R)({abi:t,args:i,functionName:s});v+=(e.length-2)/2,g>0&&v>g&&y[b].length>0&&(b++,v=(e.length-2)/2,y[b]=[]),y[b]=[...y[b],{allowFailure:!0,callData:e,target:n}]}catch(o){let e=k(o,{abi:t,address:n,args:i,docsPath:\"/docs/contract/multicall\",functionName:s});if(!r)throw e;y[b]=[...y[b],{allowFailure:!0,callData:\"0x\",target:n}]}}let w=await Promise.allSettled(y.map(t=>E(e,$,\"readContract\")({abi:s.F8,address:m,args:[t],blockNumber:i,blockTag:u,functionName:\"aggregate3\",stateOverride:d}))),_=[];for(let e=0;e<w.length;e++){let t=w[e];if(\"rejected\"===t.status){if(!r)throw t.reason;for(let r=0;r<y[e].length;r++)_.push({status:\"failure\",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:i,success:s}=n[t],{callData:a}=y[e][t],{abi:l,address:u,functionName:c,args:d}=p[_.length];try{if(\"0x\"===a)throw new A.wb;if(!s)throw new f.VQ({data:i});let e=(0,o.k)({abi:l,args:d,data:i,functionName:c});_.push(r?{result:e,status:\"success\"}:e)}catch(t){let e=k(t,{abi:l,address:u,args:d,docsPath:\"/docs/contract/multicall\",functionName:c});if(!r)throw e;_.push({error:e,result:void 0,status:\"failure\"})}}}if(_.length!==p.length)throw new h.G(\"multicall results mismatch\");return _}async function tf(e,t){let{abi:r,address:i,args:s,dataSuffix:l,functionName:u,...c}=t,d=c.account?(0,n.T)(c.account):e.account,h=(0,a.R)({abi:r,args:s,functionName:u});try{let{data:n}=await E(e,S.R,\"call\")({batch:!1,data:`${h}${l?l.replace(\"0x\",\"\"):\"\"}`,to:i,...c,account:d}),a=(0,o.k)({abi:r,args:s,functionName:u,data:n||\"0x\"}),f=r.filter(e=>\"name\"in e&&e.name===t.functionName);return{result:a,request:{abi:f,address:i,args:s,dataSuffix:l,functionName:u,...c,account:d}}}catch(e){throw k(e,{abi:r,address:i,args:s,docsPath:\"/docs/contract/simulateContract\",functionName:u,sender:d?.address})}}async function tp(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}function tg(e,t){return(0,y.w)(function(e){let t=\"string\"==typeof e?(0,c.$G)(e):\"string\"==typeof e.raw?e.raw:(0,c.ci)(e.raw),r=(0,c.$G)(`\\x19Ethereum Signed Message:\n${(0,eF.d)(t)}`);return(0,g.zo)([r,t])}(e),t)}var tm=r(13955),ty=r(32637),tb=r(99112),tv=r(38078);let tw=\"0x6492649264926492649264926492649264926492649264926492649264926492\";var t_=r(49014);async function tE({hash:e,signature:t}){let n=(0,b.v)(e)?e:(0,c.NC)(e),{secp256k1:i}=await Promise.resolve().then(r.bind(r,68610)),s=(()=>{if(\"object\"==typeof t&&\"r\"in t&&\"s\"in t){let{r:e,s:r,v:n,yParity:s}=t,o=tA(Number(s??n));return new i.Signature((0,eE.y_)(e),(0,eE.y_)(r)).addRecoveryBit(o)}let e=(0,b.v)(t)?t:(0,c.NC)(t),r=tA((0,eE.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${s}`}function tA(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error(\"Invalid yParityOrV value\")}async function tx({hash:e,signature:t}){return function(e){let t=(0,y.w)(`0x${e.substring(4)}`).substring(26);return(0,tb.x)(`0x${t}`)}(await tE({hash:e,signature:t}))}var tk=r(68610);async function tS(e,t){let{address:r,factory:n,factoryData:i,hash:o,signature:a,...l}=t,u=(0,b.v)(a)?a:\"object\"==typeof a&&\"r\"in a&&\"s\"in a?function({r:e,s:t,to:r=\"hex\",v:n,yParity:i}){let s=(()=>{if(0===i||1===i)return i;if(n&&(27n===n||28n===n||n>=35n))return n%2n===0n?1:0;throw Error(\"Invalid `v` or `yParity` value\")})(),o=`0x${new tk.secp256k1.Signature((0,eE.y_)(e),(0,eE.y_)(t)).toCompactHex()}${0===s?\"1b\":\"1c\"}`;return\"hex\"===r?o:(0,m.nr)(o)}(a):(0,c.ci)(a),d=await (async()=>n||i?(0,t_.p5)(u,-32)===tw?u:function(e){let{address:t,data:r,signature:n,to:i=\"hex\"}=e,s=(0,g.SM)([(0,ee.E)([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],[t,r,n]),tw]);return\"hex\"===i?s:(0,m.nr)(s)}({address:n,data:i,signature:u}):u)();try{let{data:t}=await E(e,S.R,\"call\")({data:(0,ty.w)({abi:s.$o,args:[r,o,d],bytecode:tm.ST}),...l});return function(e,t){let r=(0,b.v)(e)?(0,m.O0)(e):e,n=(0,b.v)(\"0x1\")?(0,m.O0)(\"0x1\"):\"0x1\";return(0,tv.Wd)(r,n)}(t??\"0x0\",\"0x1\")}catch(e){try{if((0,e1.E)((0,tb.K)(r),await tx({hash:o,signature:a})))return!0}catch{}if(e instanceof f.cg)return!1;throw e}}async function t$(e,{address:t,message:r,factory:n,factoryData:i,signature:s,...o}){return tS(e,{address:t,factory:n,factoryData:i,hash:tg(r),signature:s,...o})}var tC=r(51359),tP=r(64113);let tI=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tO=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function tN({data:e,primaryType:t,types:r}){let n=function e({data:t,primaryType:r,types:n}){let i=[{type:\"bytes32\"}],s=[function({primaryType:e,types:t}){let r=(0,c.NC)(function({primaryType:e,types:t}){let r=\"\",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\\w*/u),s=i?.[0];if(n.has(s)||void 0===r[s])return n;for(let t of(n.add(s),r[s]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(\",\")})`;return r}({primaryType:e,types:t}));return(0,y.w)(r)}({primaryType:r,types:n})];for(let o of n[r]){let[r,a]=function t({types:r,name:n,type:i,value:s}){if(void 0!==r[i])return[{type:\"bytes32\"},(0,y.w)(e({data:s,primaryType:i,types:r}))];if(\"bytes\"===i){let e=s.length%2?\"0\":\"\";return s=`0x${e+s.slice(2)}`,[{type:\"bytes32\"},(0,y.w)(s)]}if(\"string\"===i)return[{type:\"bytes32\"},(0,y.w)((0,c.NC)(s))];if(i.lastIndexOf(\"]\")===i.length-1){let e=i.slice(0,i.lastIndexOf(\"[\")),o=s.map(i=>t({name:n,type:e,types:r,value:i}));return[{type:\"bytes32\"},(0,y.w)((0,ee.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:i},s]}({types:n,name:o.name,type:o.type,value:t[o.name]});i.push(r),s.push(a)}return(0,ee.E)(i,s)}({data:e,primaryType:t,types:r});return(0,y.w)(n)}async function tM(e,t){let{address:r,factory:n,factoryData:i,signature:s,message:o,primaryType:a,types:l,domain:u,...d}=t;return tS(e,{address:r,factory:n,factoryData:i,hash:function(e){let{domain:t={},message:r,primaryType:n}=e,i={EIP712Domain:function({domain:e}){return[\"string\"==typeof e?.name&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},\"number\"==typeof e?.chainId&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}({domain:t}),...e.types};!function(e){let{domain:t,message:r,primaryType:n,types:i}=e,s=(e,t)=>{for(let r of e){let{name:e,type:n}=r,o=t[e],a=n.match(tO);if(a&&(\"number\"==typeof o||\"bigint\"==typeof o)){let[e,t,r]=a;(0,c.eC)(o,{signed:\"int\"===t,size:Number.parseInt(r)/8})}if(\"address\"===n&&\"string\"==typeof o&&!(0,tP.U)(o))throw new tC.b({address:o});let l=n.match(tI);if(l){let[e,t]=l;if(t&&(0,eF.d)(o)!==Number.parseInt(t))throw new A.KY({expectedSize:Number.parseInt(t),givenSize:(0,eF.d)(o)})}let u=i[n];u&&s(u,o)}};i.EIP712Domain&&t&&s(i.EIP712Domain,t),\"EIP712Domain\"!==n&&s(i[n],r)}({domain:t,message:r,primaryType:n,types:i});let s=[\"0x1901\"];return t&&s.push(function({domain:e,types:t}){return tN({data:e,primaryType:\"EIP712Domain\",types:t})}({domain:t,types:i})),\"EIP712Domain\"!==n&&s.push(tN({data:r,primaryType:n,types:i})),(0,y.w)((0,g.zo)(s))}({message:o,primaryType:a,types:l,domain:u}),signature:s,...d})}let tR=new Map,tT=new Map,tD=0;function tL(e,t,r){let n=++tD,i=()=>tR.get(e)||[],s=()=>{let t=i();tR.set(e,t.filter(e=>e.id!==n))},o=()=>{let t=tT.get(e);1===i().length&&t&&t(),s()},a=i();if(tR.set(e,[...a,{id:n,fns:t}]),a&&a.length>0)return o;let l={};for(let e in t)l[e]=(...t)=>{let r=i();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let u=r(l);return\"function\"==typeof u&&tT.set(e,u),o}var tj=r(55894),tB=r(47499),tF=r(97317);function tU(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0,s=()=>i=!1;return(async()=>{let o;t&&(o=await e({unpoll:s}));let a=await r?.(o)??n;await (0,tF.D)(a);let l=async()=>{i&&(await e({unpoll:s}),await (0,tF.D)(n),l())};l()})(),s}function tz(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:s,pollingInterval:o=e.pollingInterval}){let a;return(void 0!==s?s:\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type))?tL((0,tB.P)([\"watchBlockNumber\",e.uid,t,r,o]),{onBlockNumber:n,onError:i},n=>tU(async()=>{try{let t=await E(e,eQ,\"getBlockNumber\")({cacheTime:0});if(a){if(t===a)return;if(t-a>1&&r)for(let e=a+1n;e<t;e++)n.onBlockNumber(e,a),a=e}(!a||t>a)&&(n.onBlockNumber(t,a),a=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:o})):tL((0,tB.P)([\"watchBlockNumber\",e.uid,t,r]),{onBlockNumber:n,onError:i},t=>{let r=!0,n=()=>r=!1;return(async()=>{try{let i=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await i.subscribe({params:[\"newHeads\"],onData(e){if(!r)return;let n=(0,eE.y_)(e.result?.number);t.onBlockNumber(n,a),a=n},onError(e){t.onError?.(e)}});n=s,r||n()}catch(e){i?.(e)}})(),()=>n()})}async function tq(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,retryCount:s=6,retryDelay:o=({count:e})=>200*~~(1<<e),timeout:a}){let l,u,c;let d=(0,tB.P)([\"waitForTransactionReceipt\",e.uid,r]),h=0,f=!1;return new Promise((p,g)=>{a&&setTimeout(()=>g(new ed.mc({hash:r})),a);let m=tL(d,{onReplaced:n,resolve:p,reject:g},n=>{let a=E(e,tz,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){let d=e=>{a(),e(),m()},p=i;if(!f){h>s&&d(()=>n.reject(new ed.mc({hash:r})));try{if(c){if(t>1&&(!c.blockNumber||p-c.blockNumber+1n<t))return;d(()=>n.resolve(c));return}if(l||(f=!0,await (0,tj.J)(async()=>{(l=await E(e,tl,\"getTransaction\")({hash:r})).blockNumber&&(p=l.blockNumber)},{delay:o,retryCount:s}),f=!1),c=await E(e,td,\"getTransactionReceipt\")({hash:r}),t>1&&(!c.blockNumber||p-c.blockNumber+1n<t))return;d(()=>n.resolve(c))}catch(r){if(r instanceof ed.Bh||r instanceof ed.Yb){if(!l){f=!1;return}try{u=l,f=!0;let r=await (0,tj.J)(()=>E(e,e$,\"getBlock\")({blockNumber:p,includeTransactions:!0}),{delay:o,retryCount:s,shouldRetry:({error:e})=>e instanceof eA});f=!1;let i=r.transactions.find(({from:e,nonce:t})=>e===u.from&&t===u.nonce);if(!i||(c=await E(e,td,\"getTransactionReceipt\")({hash:i.hash}),t>1&&(!c.blockNumber||p-c.blockNumber+1n<t)))return;let a=\"replaced\";i.to===u.to&&i.value===u.value?a=\"repriced\":i.from===i.to&&0n===i.value&&(a=\"cancelled\"),d(()=>{n.onReplaced?.({reason:a,replacedTransaction:u,transaction:i,transactionReceipt:c}),n.resolve(c)})}catch(e){d(()=>n.reject(e))}}else d(()=>n.reject(r))}finally{h++}}}})})})}let tH=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\/\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\n)(?<address>0x[a-fA-F0-9]{40})\\n\\n(?:(?<statement>.*)\\n\\n)?/,tG=/(?:URI: (?<uri>.+))\\n(?:Version: (?<version>.+))\\n(?:Chain ID: (?<chainId>\\d+))\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\n(?:Issued At: (?<issuedAt>.+))(?:\\nExpiration Time: (?<expirationTime>.+))?(?:\\nNot Before: (?<notBefore>.+))?(?:\\nRequest ID: (?<requestId>.+))?/;async function tV(e,t){let{address:r,domain:n,message:i,nonce:s,scheme:o,signature:a,time:l=new Date,...u}=t,c=function(e){let{scheme:t,statement:r,...n}=e.match(tH)?.groups??{},{chainId:i,expirationTime:s,issuedAt:o,notBefore:a,requestId:l,...u}=e.match(tG)?.groups??{},c=e.split(\"Resources:\")[1]?.split(\"\\n- \").slice(1);return{...n,...u,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...o?{issuedAt:new Date(o)}:{},...a?{notBefore:new Date(a)}:{},...l?{requestId:l}:{},...c?{resources:c}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(i);if(!c.address||!function(e){let{address:t,domain:r,message:n,nonce:i,scheme:s,time:o=new Date}=e;if(r&&n.domain!==r||i&&n.nonce!==i||s&&n.scheme!==s||n.expirationTime&&o>=n.expirationTime||n.notBefore&&o<n.notBefore)return!1;try{if(!n.address||t&&!(0,e1.E)(n.address,t))return!1}catch{return!1}return!0}({address:r,domain:n,message:c,nonce:s,scheme:o,time:l}))return!1;let d=tg(i);return tS(e,{address:c.address,hash:d,signature:a,...u})}async function tW(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}function tK(e){return{call:t=>(0,S.R)(e,t),createBlockFilter:()=>J(e),createContractEventFilter:t=>eo(e,t),createEventFilter:t=>ea(e,t),createPendingTransactionFilter:()=>el(e),estimateContractGas:t=>eG(e,t),estimateGas:t=>eH(e,t),getBalance:t=>eV(e,t),getBlobBaseFee:()=>eW(e),getBlock:t=>e$(e,t),getBlockNumber:t=>eQ(e,t),getBlockTransactionCount:t=>eX(e,t),getBytecode:t=>e0(e,t),getChainId:()=>eU(e),getCode:t=>e0(e,t),getContractEvents:t=>e7(e,t),getEip712Domain:t=>tt(e,t),getEnsAddress:t=>C(e,t),getEnsAvatar:t=>W(e,t),getEnsName:t=>K(e,t),getEnsResolver:t=>Y(e,t),getEnsText:t=>V(e,t),getFeeHistory:t=>tn(e,t),estimateFeesPerGas:t=>eO(e,t),getFilterChanges:t=>ti(e,t),getFilterLogs:t=>ts(e,t),getGasPrice:()=>eC(e),getLogs:t=>e9(e,t),getProof:t=>to(e,t),estimateMaxPriorityFeePerGas:t=>eP(e,t),getStorageAt:t=>ta(e,t),getTransaction:t=>tl(e,t),getTransactionConfirmations:t=>tu(e,t),getTransactionCount:t=>eM(e,t),getTransactionReceipt:t=>td(e,t),multicall:t=>th(e,t),prepareTransactionRequest:t=>eq(e,t),readContract:t=>$(e,t),sendRawTransaction:t=>tW(e,t),simulateContract:t=>tf(e,t),verifyMessage:t=>t$(e,t),verifySiweMessage:t=>tV(e,t),verifyTypedData:t=>tM(e,t),uninstallFilter:t=>tp(e,t),waitForTransactionReceipt:t=>tq(e,t),watchBlocks:t=>(function(e,{blockTag:t=\"latest\",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:s,includeTransactions:o,poll:a,pollingInterval:l=e.pollingInterval}){let u,c,d;let h=void 0!==a?a:\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type),f=o??!1;return h?tL((0,tB.P)([\"watchBlocks\",e.uid,t,r,n,f,l]),{onBlock:i,onError:s},i=>tU(async()=>{try{let n=await E(e,e$,\"getBlock\")({blockTag:t,includeTransactions:f});if(n.number&&u?.number){if(n.number===u.number)return;if(n.number-u.number>1&&r)for(let t=u?.number+1n;t<n.number;t++){let r=await E(e,e$,\"getBlock\")({blockNumber:t,includeTransactions:f});i.onBlock(r,u),u=r}}(!u?.number||\"pending\"===t&&!n?.number||n.number&&n.number>u.number)&&(i.onBlock(n,u),u=n)}catch(e){i.onError?.(e)}},{emitOnBegin:n,interval:l})):(c=!0,d=()=>c=!1,(async()=>{try{let t=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:r}=await t.subscribe({params:[\"newHeads\"],onData(t){if(!c)return;let r=(e.chain?.formatters?.block?.format||eS)(t.result);i(r,u),u=r},onError(e){s?.(e)}});d=r,c||d()}catch(e){s?.(e)}})(),()=>d())})(e,t),watchBlockNumber:t=>tz(e,t),watchContractEvent:t=>(function(e,t){let{abi:r,address:n,args:i,batch:s=!0,eventName:o,fromBlock:a,onError:l,onLogs:u,poll:c,pollingInterval:d=e.pollingInterval,strict:h}=t;return(void 0!==c?c:\"bigint\"==typeof a||\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type))?(()=>{let t=h??!1;return tL((0,tB.P)([\"watchContractEvent\",n,i,s,e.uid,o,d,t,a]),{onLogs:u,onError:l},l=>{let u,c;void 0!==a&&(u=a-1n);let h=!1,f=tU(async()=>{if(!h){try{c=await E(e,eo,\"createContractEventFilter\")({abi:r,address:n,args:i,eventName:o,strict:t,fromBlock:a})}catch{}h=!0;return}try{let a;if(c)a=await E(e,ti,\"getFilterChanges\")({filter:c});else{let s=await E(e,eQ,\"getBlockNumber\")({});a=u&&u<s?await E(e,e7,\"getContractEvents\")({abi:r,address:n,args:i,eventName:o,fromBlock:u+1n,toBlock:s,strict:t}):[],u=s}if(0===a.length)return;if(s)l.onLogs(a);else for(let e of a)l.onLogs([e])}catch(e){c&&e instanceof x.yR&&(h=!1),l.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{c&&await E(e,tp,\"uninstallFilter\")({filter:c}),f()}})})():(()=>{let t=(0,tB.P)([\"watchContractEvent\",n,i,s,e.uid,o,d,h??!1]),a=!0,c=()=>a=!1;return tL(t,{onLogs:u,onError:l},t=>((async()=>{try{let s=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=o?ei({abi:r,eventName:o,args:i}):[],{unsubscribe:u}=await s.subscribe({params:[\"logs\",{address:n,topics:l}],onData(e){if(!a)return;let n=e.result;try{let{eventName:e,args:i}=e6({abi:r,data:n.data,topics:n.topics,strict:h}),s=e8(n,{args:i,eventName:e});t.onLogs([s])}catch(s){let e,r;if(s instanceof A.SM||s instanceof A.Gy){if(h)return;e=s.abiItem.name,r=s.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}let i=e8(n,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});c=u,a||c()}catch(e){l?.(e)}})(),()=>c()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:s,fromBlock:o,onError:a,onLogs:l,poll:u,pollingInterval:c=e.pollingInterval,strict:d}){let h,f;let p=void 0!==u?u:\"bigint\"==typeof o||\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type),g=d??!1;return p?tL((0,tB.P)([\"watchEvent\",t,r,n,e.uid,i,c,o]),{onLogs:l,onError:a},a=>{let l,u;void 0!==o&&(l=o-1n);let d=!1,h=tU(async()=>{if(!d){try{u=await E(e,ea,\"createEventFilter\")({address:t,args:r,event:i,events:s,strict:g,fromBlock:o})}catch{}d=!0;return}try{let o;if(u)o=await E(e,ti,\"getFilterChanges\")({filter:u});else{let n=await E(e,eQ,\"getBlockNumber\")({});o=l&&l!==n?await E(e,e9,\"getLogs\")({address:t,args:r,event:i,events:s,fromBlock:l+1n,toBlock:n}):[],l=n}if(0===o.length)return;if(n)a.onLogs(o);else for(let e of o)a.onLogs([e])}catch(e){u&&e instanceof x.yR&&(d=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await E(e,tp,\"uninstallFilter\")({filter:u}),h()}}):(h=!0,f=()=>h=!1,(async()=>{try{let n=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),o=s??(i?[i]:void 0),u=[];o&&(u=[o.flatMap(e=>ei({abi:[e],eventName:e.name,args:r}))],i&&(u=u[0]));let{unsubscribe:c}=await n.subscribe({params:[\"logs\",{address:t,topics:u}],onData(e){if(!h)return;let t=e.result;try{let{eventName:e,args:r}=e6({abi:o??[],data:t.data,topics:t.topics,strict:g}),n=e8(t,{args:r,eventName:e});l([n])}catch(i){let e,r;if(i instanceof A.SM||i instanceof A.Gy){if(d)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}let n=e8(t,{args:r?[]:{},eventName:e});l([n])}},onError(e){a?.(e)}});f=c,h||f()}catch(e){a?.(e)}})(),()=>f())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:s=e.pollingInterval}){let o,a;return(void 0!==i?i:\"webSocket\"!==e.transport.type)?tL((0,tB.P)([\"watchPendingTransactions\",e.uid,t,s]),{onTransactions:n,onError:r},r=>{let n;let i=tU(async()=>{try{if(!n)try{n=await E(e,el,\"createPendingTransactionFilter\")({});return}catch(e){throw i(),e}let s=await E(e,ti,\"getFilterChanges\")({filter:n});if(0===s.length)return;if(t)r.onTransactions(s);else for(let e of s)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:s});return async()=>{n&&await E(e,tp,\"uninstallFilter\")({filter:n}),i()}}):(o=!0,a=()=>o=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(e){if(!o)return;let t=e.result;n([t])},onError(e){r?.(e)}});a=t,o||a()}catch(e){r?.(e)}})(),()=>a())})(e,t)}}function tY(e){let{key:t=\"public\",name:r=\"Public Client\"}=e;return(function(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:s,key:o=\"base\",name:a=\"Base Client\",pollingInterval:l=4e3,type:u=\"base\"}=e,c=e.chain,d=e.account?(0,n.T)(e.account):void 0,{config:h,request:f,value:p}=e.transport({chain:c,pollingInterval:l}),g={account:d,batch:t,cacheTime:r,ccipRead:s,chain:c,key:o,name:a,pollingInterval:l,request:f,transport:{...h,...p},type:u,uid:(0,i.h)()};return Object.assign(g,{extend:function e(t){return r=>{let n=r(t);for(let e in g)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(g)})})({...e,key:t,name:r,type:\"publicClient\"}).extend(tK)}},28781:function(e,t,r){\"use strict\";r.d(t,{d:function(){return g}});var n=r(4456),i=r(48926);class s extends i.G{constructor(){super(\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\",{docsPath:\"/docs/clients/intro\"})}}var o=r(10639),a=r(47499);let l={current:0,take(){return this.current++},reset(){this.current=0}};var u=r(96329),c=r(95046),d=r(36494);let h=new(r(98992)).k(8192);var f=r(55894),p=r(14851);function g(e,t={}){let{batch:r,fetchOptions:g,key:m=\"http\",name:y=\"HTTP JSON-RPC\",onFetchRequest:b,onFetchResponse:v,retryDelay:w}=t;return({chain:_,retryCount:E,timeout:A})=>{let{batchSize:x=1e3,wait:k=0}=\"object\"==typeof r?r:{},S=t.retryCount??E,$=A??t.timeout??1e4,C=e||_?.rpcUrls.default.http[0];if(!C)throw new s;let P=function(e,t={}){return{async request(r){let{body:i,onRequest:s=t.onRequest,onResponse:o=t.onResponse,timeout:u=t.timeout??1e4}=r,c={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:d,method:h,signal:f}=c;try{let t;let r=await function(e,{errorInstance:t=Error(\"timed out\"),timeout:r,signal:n}){return new Promise((i,s)=>{(async()=>{let o;try{let a=new AbortController;r>0&&(o=setTimeout(()=>{n?a.abort():s(t)},r)),i(await e({signal:a?.signal||null}))}catch(e){e?.name===\"AbortError\"&&s(t),s(e)}finally{clearTimeout(o)}})()})}(async({signal:t})=>{let r={...c,body:Array.isArray(i)?(0,a.P)(i.map(e=>({jsonrpc:\"2.0\",id:e.id??l.take(),...e}))):(0,a.P)({jsonrpc:\"2.0\",id:i.id??l.take(),...i}),headers:{\"Content-Type\":\"application/json\",...d},method:h||\"POST\",signal:f||(u>0?t:null)},n=new Request(e,r);return s&&await s(n),await fetch(e,r)},{errorInstance:new n.W5({body:i,url:e}),timeout:u,signal:!0});if(o&&await o(r),r.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?t=await r.json():(t=await r.text(),t=JSON.parse(t||\"{}\")),!r.ok)throw new n.Gg({body:i,details:(0,a.P)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Gg||t instanceof n.W5)throw t;throw new n.Gg({body:i,cause:t,url:e})}}}}(C,{fetchOptions:g,onRequest:b,onResponse:v,timeout:$});return function({key:e,name:t,request:r,retryCount:s=3,retryDelay:o=150,timeout:l,type:g},m){return{config:{key:e,name:t,request:r,retryCount:s,retryDelay:o,timeout:l,type:g},request:function(e,t={}){return async(r,s={})=>{let{dedupe:o=!1,retryDelay:l=150,retryCount:p=3,uid:g}={...t,...s},m=o?(0,d.w)((0,c.$G)(`${g}.${(0,a.P)(r)}`)):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(h.get(r))return h.get(r);let n=e().finally(()=>h.delete(r));return h.set(r,n),n}(()=>(0,f.J)(async()=>{try{return await e(r)}catch(e){switch(e.code){case u.s7.code:throw new u.s7(e);case u.B.code:throw new u.B(e);case u.LX.code:throw new u.LX(e,{method:r.method});case u.nY.code:throw new u.nY(e);case u.XS.code:throw new u.XS(e);case u.yR.code:throw new u.yR(e);case u.Og.code:throw new u.Og(e);case u.pT.code:throw new u.pT(e);case u.KB.code:throw new u.KB(e);case u.gS.code:throw new u.gS(e,{method:r.method});case u.Pv.code:throw new u.Pv(e);case u.GD.code:throw new u.GD(e);case u.ab.code:throw new u.ab(e);case u.PE.code:throw new u.PE(e);case u.Ts.code:throw new u.Ts(e);case u.u5.code:throw new u.u5(e);case u.I0.code:throw new u.I0(e);case u.x3.code:throw new u.x3(e);case 5e3:throw new u.ab(e);default:if(e instanceof i.G)throw e;throw new u.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof n.Gg){let e=t?.headers?.get(\"Retry-After\");if(e?.match(/\\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*l},retryCount:p,shouldRetry:({error:e})=>\"code\"in e&&\"number\"==typeof e.code?-1===e.code||e.code===u.Pv.code||e.code===u.XS.code:!(e instanceof n.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:o,id:m})}}(r,{retryCount:s,retryDelay:o,uid:(0,p.h)()}),value:m}}({key:m,name:y,async request({method:e,params:t}){let i={method:e,params:t},{schedule:s}=(0,o.S)({id:C,wait:k,shouldSplitBatch:e=>e.length>x,fn:e=>P.request({body:e}),sort:(e,t)=>e.id-t.id}),a=async e=>r?s(e):[await P.request({body:e})],[{error:l,result:u}]=await a(i);if(l)throw new n.bs({body:i,error:l,url:C});return u},retryCount:S,retryDelay:w,timeout:$,type:\"http\"},{fetchOptions:g,url:C})}}},21620:function(e,t,r){\"use strict\";r.d(t,{$o:function(){return u},F8:function(){return n},X$:function(){return l},du:function(){return o},k3:function(){return s},nZ:function(){return a}});let n=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"}],i=[{inputs:[],name:\"ResolverNotFound\",type:\"error\"},{inputs:[],name:\"ResolverWildcardNotSupported\",type:\"error\"},{inputs:[],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"returnData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{components:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"errors\",type:\"tuple[]\"}],name:\"HttpError\",type:\"error\"}],s=[...i,{name:\"resolve\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]},{name:\"resolve\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],o=[...i,{name:\"reverse\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolvedAddress\"},{type:\"address\",name:\"reverseResolver\"},{type:\"address\",name:\"resolver\"}]},{name:\"reverse\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolvedAddress\"},{type:\"address\",name:\"reverseResolver\"},{type:\"address\",name:\"resolver\"}]}],a=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],l=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],u=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"}]},13955:function(e,t,r){\"use strict\";r.d(t,{NO:function(){return n},ST:function(){return s},pG:function(){return i}});let n=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",i=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",s=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\"},47807:function(e,t,r){\"use strict\";r.d(t,{$:function(){return n},Up:function(){return i},hZ:function(){return s}});let n={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},i={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},s={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}},90408:function(e,t,r){\"use strict\";r.d(t,{Zn:function(){return i},ez:function(){return n}});let n={gwei:9,wei:18},i={ether:-9,wei:9}},52186:function(e,t,r){\"use strict\";r.d(t,{CI:function(){return k},FM:function(){return p},Gy:function(){return A},KY:function(){return _},M4:function(){return d},MX:function(){return b},S4:function(){return w},SM:function(){return E},cO:function(){return a},dh:function(){return x},eF:function(){return v},fM:function(){return o},fs:function(){return h},gr:function(){return c},hn:function(){return S},lC:function(){return g},mv:function(){return m},wM:function(){return $},wb:function(){return u},xB:function(){return l},xL:function(){return y},yP:function(){return f}});var n=r(20101),i=r(7508),s=r(48926);class o extends s.G{constructor({docsPath:e}){super(\"A constructor was not found on the ABI.\\nMake sure you are using the correct ABI and that the constructor exists on it.\",{docsPath:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiConstructorNotFoundError\"})}}class a extends s.G{constructor({docsPath:e}){super(\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\",{docsPath:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiConstructorParamsNotFoundError\"})}}class l extends s.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends s.G{constructor(){super('Cannot decode zero data (\"0x\") with ABI parameters.'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiDecodingZeroDataError\"})}}class c extends s.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.\nExpected length: ${e}\nGiven length: ${t}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEncodingArrayLengthMismatchError\"})}}class d extends s.G{constructor({expectedSize:e,value:t}){super(`Size of bytes \"${t}\" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEncodingBytesSizeMismatchError\"})}}class h extends s.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.\nExpected length (params): ${e}\nGiven length (values): ${t}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEncodingLengthMismatchError\"})}}class f extends s.G{constructor(e,{docsPath:t}){super(`Encoded error signature \"${e}\" not found on ABI.\nMake sure you are using the correct ABI and that the error exists on it.\nYou can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiErrorSignatureNotFoundError\"}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends s.G{constructor({docsPath:e}){super(\"Cannot extract event signature from empty topics.\",{docsPath:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEventSignatureEmptyTopicsError\"})}}class g extends s.G{constructor(e,{docsPath:t}){super(`Encoded event signature \"${e}\" not found on ABI.\nMake sure you are using the correct ABI and that the event exists on it.\nYou can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEventSignatureNotFoundError\"})}}class m extends s.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`\"${e}\" `:\"\"}not found on ABI.\nMake sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEventNotFoundError\"})}}class y extends s.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`\"${e}\" `:\"\"}not found on ABI.\nMake sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiFunctionNotFoundError\"})}}class b extends s.G{constructor(e,{docsPath:t}){super(`Function \"${e}\" does not contain any \\`outputs\\` on ABI.\nCannot decode function result without knowing what the parameter types are.\nMake sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiFunctionOutputsNotFoundError\"})}}class v extends s.G{constructor(e,{docsPath:t}){super(`Encoded function signature \"${e}\" not found on ABI.\nMake sure you are using the correct ABI and that the function exists on it.\nYou can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiFunctionSignatureNotFoundError\"})}}class w extends s.G{constructor(e,t){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\`${e.type}\\` in \\`${(0,n.t)(e.abiItem)}\\`, and`,`\\`${t.type}\\` in \\`${(0,n.t)(t.abiItem)}\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItemAmbiguityError\"})}}class _ extends s.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BytesSizeMismatchError\"})}}class E extends s.G{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class A extends s.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` \"${t.name}\"`:\"\"} on event \"${(0,n.t)(e,{includeName:!0})}\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class x extends s.G{constructor(e,{docsPath:t}){super(`Type \"${e}\" is not a valid encoding type.\nPlease provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiEncodingType\"})}}class k extends s.G{constructor(e,{docsPath:t}){super(`Type \"${e}\" is not a valid decoding type.\nPlease provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiDecodingType\"})}}class S extends s.G{constructor(e){super(`Value \"${e}\" is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidArrayError\"})}}class $ extends s.G{constructor(e){super(`\"${e}\" is not a valid definition type.\nValid types: \"function\", \"event\", \"error\"`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidDefinitionTypeError\"})}}},51359:function(e,t,r){\"use strict\";r.d(t,{b:function(){return i}});var n=r(48926);class i extends n.G{constructor({address:e}){super(`Address \"${e}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAddressError\"})}}},48926:function(e,t,r){\"use strict\";r.d(t,{G:function(){return i}});var n=r(94290);class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof i&&t.cause.docsPath||t.docsPath,o=(0,n.bo)();super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...s?[`Docs: ${t.docsBaseUrl??\"https://viem.sh\"}${s}${t.docsSlug?`#${t.docsSlug}`:\"\"}`]:[],...r?[`Details: ${r}`]:[],`Version: ${o}`].join(\"\\n\"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ViemError\"}),this.details=r,this.docsPath=s,this.metaMessages=t.metaMessages,this.shortMessage=e,this.version=o}walk(e){return function e(t,r){return r?.(t)?t:t&&\"object\"==typeof t&&\"cause\"in t?e(t.cause,r):r?null:t}(this,e)}}},89045:function(e,t,r){\"use strict\";r.d(t,{mm:function(){return i},pZ:function(){return s}});var n=r(48926);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain \"${t.name}\" does not support contract \"${r.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract \"${r.name}\" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract \"${r.name}\" configured.`]]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainDoesNotSupportContract\"})}}class s extends n.G{constructor(){super(\"No chain was provided to the Client.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ClientChainNotConfiguredError\"})}}},58591:function(e,t,r){\"use strict\";r.d(t,{cg:function(){return y},uq:function(){return b},Lu:function(){return v},Dk:function(){return w},Mo:function(){return _},VQ:function(){return E}});var n=r(96104),i=r(47807),s=r(71108),o=r(20101),a=r(47499);function l({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${r?e.name:\"\"}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:\"\"}${\"object\"==typeof t[r]?(0,a.P)(t[r]):t[r]}`).join(\", \")})`}var u=r(18748),c=r(85053),d=r(49268),h=r(52186),f=r(48926),p=r(75534),g=r(97658),m=r(94290);class y extends f.G{constructor(e,{account:t,docsPath:r,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:h,to:f,value:m,stateOverride:y}){let b=t?(0,n.T)(t):void 0,v=(0,g.xr)({from:b?.address,to:f,value:void 0!==m&&`${(0,c.d)(m)} ${i?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,d.o)(a)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:h});y&&(v+=`\n${(0,p.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Raw Call Arguments:\",v].filter(Boolean)}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CallExecutionError\"}),this.cause=e}}class b extends f.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:s,sender:a}){let c=(0,u.mE)({abi:t,args:r,name:s}),d=c?l({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,h=c?(0,o.t)(c,{includeName:!0}):void 0,f=(0,g.xr)({address:n&&(0,m.CR)(n),function:h,args:d&&\"()\"!==d&&`${[...Array(s?.length??0).keys()].map(()=>\" \").join(\"\")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function \"${s}\".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],f&&\"Contract Call:\",f].filter(Boolean)}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ContractFunctionExecutionError\"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=s,this.sender=a}}class v extends f.G{constructor({abi:e,data:t,functionName:r,message:n}){let a,u,c,d,f;if(t&&\"0x\"!==t)try{let{abiItem:r,errorName:n,args:a}=f=(0,s.p)({abi:e,data:t});if(\"Error\"===n)c=a[0];else if(\"Panic\"===n){let[e]=a;c=i.$[e]}else{let e=r?(0,o.t)(r,{includeName:!0}):void 0,t=r&&a?l({abiItem:r,args:a,includeFunctionName:!1,includeName:!1}):void 0;u=[e?`Error: ${e}`:\"\",t&&\"()\"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>\" \").join(\"\")}${t}`:\"\"]}}catch(e){a=e}else n&&(c=n);a instanceof h.yP&&(d=a.signature,u=[`Unable to decode signature \"${d}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(c&&\"execution reverted\"!==c||d?[`The contract function \"${r}\" reverted with the following ${d?\"signature\":\"reason\"}:`,c||d].join(\"\\n\"):`The contract function \"${r}\" reverted.`,{cause:a,metaMessages:u}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.reason=c,this.signature=d}}class w extends f.G{constructor({functionName:e}){super(`The contract function \"${e}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${e}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ContractFunctionZeroDataError\"})}}class _ extends f.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory \"${e}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CounterfactualDeploymentFailedError\"})}}class E extends f.G{constructor({data:e,message:t}){super(t||\"\"),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RawContractError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},19477:function(e,t,r){\"use strict\";r.d(t,{KD:function(){return o},T_:function(){return i},lQ:function(){return s}});var n=r(48926);class i extends n.G{constructor({offset:e}){super(`Offset \\`${e}\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NegativeOffsetError\"})}}class s extends n.G{constructor({length:e,position:t}){super(`Position \\`${t}\\` is out of bounds (\\`0 < position < ${e}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PositionOutOfBoundsError\"})}}class o extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \\`${t}\\` exceeded (recursive read count: \\`${e}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RecursiveReadLimitExceededError\"})}}},75057:function(e,t,r){\"use strict\";r.d(t,{$s:function(){return s},W_:function(){return o},mV:function(){return i}});var n=r(48926);class i extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${\"start\"===t?\"starting\":\"ending\"} at offset \"${e}\" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SliceOffsetOutOfBoundsError\"})}}class s extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SizeExceedsPaddingSizeError\"})}}class o extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidBytesLengthError\"})}}},74188:function(e,t,r){\"use strict\";r.d(t,{J5:function(){return i},M6:function(){return o},yr:function(){return s}});var n=r(48926);class i extends n.G{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \"${i}\" is not in safe ${n?`${8*n}-bit ${r?\"signed\":\"unsigned\"} `:\"\"}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"IntegerOutOfRangeError\"})}}class s extends n.G{constructor(e){super(`Bytes value \"${e}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidBytesBooleanError\"})}}class o extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SizeOverflowError\"})}}},37764:function(e,t,r){\"use strict\";r.d(t,{C_:function(){return d},G$:function(){return a},Hh:function(){return o},M_:function(){return s},WF:function(){return h},ZI:function(){return l},cj:function(){return m},cs:function(){return g},dR:function(){return f},pZ:function(){return p},se:function(){return c},vU:function(){return u}});var n=r(49268),i=r(48926);class s extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${r?`with reason: ${r}`:\"for an unknown reason\"}.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ExecutionRevertedError\"})}}Object.defineProperty(s,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\\`maxFeePerGas\\`${t?` = ${(0,n.o)(t)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FeeCapTooHigh\"})}}Object.defineProperty(o,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\^256-1|fee cap higher than 2\\^256-1/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\\`maxFeePerGas\\`${t?` = ${(0,n.o)(t)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FeeCapTooLow\"})}}Object.defineProperty(a,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NonceTooHighError\"})}}Object.defineProperty(l,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}is lower than the current nonce of the account.\nTry increasing the nonce or find the latest nonce with \\`getTransactionCount\\`.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NonceTooLowError\"})}}Object.defineProperty(u,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NonceMaxValueError\"})}}Object.defineProperty(c,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super(\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\",{cause:e,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InsufficientFundsError\"})}}Object.defineProperty(d,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"IntrinsicGasTooHighError\"})}}Object.defineProperty(h,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:\"\"}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"IntrinsicGasTooLowError\"})}}Object.defineProperty(f,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super(\"The transaction type is not supported for this chain.\",{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionTypeNotSupportedError\"})}}Object.defineProperty(p,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\\`maxPriorityFeePerGas\\`${t?` = ${(0,n.o)(t)} gwei`:\"\"}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${r?` = ${(0,n.o)(r)} gwei`:\"\"}).`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TipAboveFeeCapError\"})}}Object.defineProperty(g,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownNodeError\"})}}},4456:function(e,t,r){\"use strict\";r.d(t,{Gg:function(){return o},W5:function(){return l},bs:function(){return a}});var n=r(47499),i=r(48926),s=r(94290);class o extends i.G{constructor({body:e,cause:t,details:r,headers:i,status:o,url:a}){super(\"HTTP request failed.\",{cause:t,details:r,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,s.Gr)(a)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=o,this.url=a}}class a extends i.G{constructor({body:e,error:t,url:r}){super(\"RPC Request failed.\",{cause:t,details:t.message,metaMessages:[`URL: ${(0,s.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class l extends i.G{constructor({body:e,url:t}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${(0,s.Gr)(t)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TimeoutError\"})}}},96329:function(e,t,r){\"use strict\";r.d(t,{B:function(){return l},GD:function(){return b},I0:function(){return A},KB:function(){return g},LX:function(){return u},Og:function(){return f},PE:function(){return w},Pv:function(){return y},Ts:function(){return _},XS:function(){return d},ab:function(){return v},gS:function(){return m},ir:function(){return k},nY:function(){return c},pT:function(){return p},s7:function(){return a},u5:function(){return E},x3:function(){return x},yR:function(){return h}});var n=r(48926),i=r(4456);class s extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:s}){super(s,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class o extends s{constructor(e,t){super(e,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class a extends s{constructor(e){super(e,{code:a.code,shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ParseRpcError\"})}}Object.defineProperty(a,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class l extends s{constructor(e){super(e,{code:l.code,shortMessage:\"JSON is not a valid request object.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidRequestRpcError\"})}}Object.defineProperty(l,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends s{constructor(e,{method:t}={}){super(e,{code:u.code,shortMessage:`The method${t?` \"${t}\"`:\"\"} does not exist / is not available.`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MethodNotFoundRpcError\"})}}Object.defineProperty(u,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class c extends s{constructor(e){super(e,{code:c.code,shortMessage:\"Invalid parameters were provided to the RPC method.\\nDouble check you have provided the correct parameters.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParamsRpcError\"})}}Object.defineProperty(c,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends s{constructor(e){super(e,{code:d.code,shortMessage:\"An internal error was received.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InternalRpcError\"})}}Object.defineProperty(d,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class h extends s{constructor(e){super(e,{code:h.code,shortMessage:\"Missing or invalid parameters.\\nDouble check you have provided the correct parameters.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidInputRpcError\"})}}Object.defineProperty(h,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends s{constructor(e){super(e,{code:f.code,shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}}Object.defineProperty(f,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends s{constructor(e){super(e,{code:p.code,shortMessage:\"Requested resource not available.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceUnavailableRpcError\"})}}Object.defineProperty(p,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class g extends s{constructor(e){super(e,{code:g.code,shortMessage:\"Transaction creation failed.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionRejectedRpcError\"})}}Object.defineProperty(g,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends s{constructor(e,{method:t}={}){super(e,{code:m.code,shortMessage:`Method${t?` \"${t}\"`:\"\"} is not implemented.`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MethodNotSupportedRpcError\"})}}Object.defineProperty(m,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends s{constructor(e){super(e,{code:y.code,shortMessage:\"Request exceeds defined limit.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"LimitExceededRpcError\"})}}Object.defineProperty(y,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends s{constructor(e){super(e,{code:b.code,shortMessage:\"Version of JSON-RPC protocol is not supported.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"JsonRpcVersionUnsupportedError\"})}}Object.defineProperty(b,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends o{constructor(e){super(e,{code:v.code,shortMessage:\"User rejected the request.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UserRejectedRequestError\"})}}Object.defineProperty(v,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends o{constructor(e){super(e,{code:w.code,shortMessage:\"The requested method and/or account has not been authorized by the user.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnauthorizedProviderError\"})}}Object.defineProperty(w,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});class _ extends o{constructor(e,{method:t}={}){super(e,{code:_.code,shortMessage:`The Provider does not support the requested method${t?` \" ${t}\"`:\"\"}.`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnsupportedProviderMethodError\"})}}Object.defineProperty(_,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends o{constructor(e){super(e,{code:E.code,shortMessage:\"The Provider is disconnected from all chains.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderDisconnectedError\"})}}Object.defineProperty(E,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});class A extends o{constructor(e){super(e,{code:A.code,shortMessage:\"The Provider is not connected to the requested chain.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainDisconnectedError\"})}}Object.defineProperty(A,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});class x extends o{constructor(e){super(e,{code:x.code,shortMessage:\"An error occurred when attempting to switch chain.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SwitchChainError\"})}}Object.defineProperty(x,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends s{constructor(e){super(e,{shortMessage:\"An unknown RPC error occurred.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownRpcError\"})}}},75534:function(e,t,r){\"use strict\";r.d(t,{Bj:function(){return a},Nc:function(){return i},Z8:function(){return s}});var n=r(48926);class i extends n.G{constructor({address:e}){super(`State for account \"${e}\" is set multiple times.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AccountStateConflictError\"})}}class s extends n.G{constructor(){super(\"state and stateDiff are set on the same account.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"StateAssignmentConflictError\"})}}function o(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}\n`,\"\")}function a(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:\n`;return r.nonce&&(n+=`      nonce: ${r.nonce}\n`),r.balance&&(n+=`      balance: ${r.balance}\n`),r.code&&(n+=`      code: ${r.code}\n`),r.state&&(n+=\"      state:\\n\"+o(r.state)),r.stateDiff&&(n+=\"      stateDiff:\\n\"+o(r.stateDiff)),n},\"  State Override:\\n\").slice(0,-1)}},97658:function(e,t,r){\"use strict\";r.d(t,{Bh:function(){return a},Yb:function(){return l},j3:function(){return o},mc:function(){return u},xY:function(){return s},xr:function(){return i}}),r(85053),r(49268);var n=r(48926);function i(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join(\"\\n\")}class s extends n.G{constructor(){super(\"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FeeConflictError\"})}}class o extends n.G{constructor({transaction:e}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",i(e),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- a Legacy Transaction with `gasPrice`\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSerializableTransactionError\"})}}class a extends n.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let s=\"Transaction\";r&&void 0!==i&&(s=`Transaction at block time \"${r}\" at index \"${i}\"`),e&&void 0!==i&&(s=`Transaction at block hash \"${e}\" at index \"${i}\"`),t&&void 0!==i&&(s=`Transaction at block number \"${t}\" at index \"${i}\"`),n&&(s=`Transaction with hash \"${n}\"`),super(`${s} could not be found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionNotFoundError\"})}}class l extends n.G{constructor({hash:e}){super(`Transaction receipt with hash \"${e}\" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionReceiptNotFoundError\"})}}class u extends n.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash \"${e}\" to be confirmed.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WaitForTransactionReceiptTimeoutError\"})}}},94290:function(e,t,r){\"use strict\";r.d(t,{CR:function(){return n},Gr:function(){return i},bo:function(){return s}});let n=e=>e,i=e=>e,s=()=>\"viem@2.18.8\"},52998:function(e,t,r){\"use strict\";r.d(t,{r:function(){return g}});var n=r(52186),i=r(99112),s=r(15222),o=r(7508),a=r(49014),l=r(77955),u=r(74188),c=r(21019),d=r(95046);function h(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.ly)(r,t)}var f=r(82361),p=r(39480);function g(e,t){let r=\"string\"==typeof t?(0,f.nr)(t):t,g=(0,s.q)(r);if(0===(0,o.d)(r)&&e.length>0)throw new n.wb;if((0,o.d)(t)&&32>(0,o.d)(t))throw new n.xB({data:\"string\"==typeof t?t:(0,d.ci)(t),params:e,size:(0,o.d)(t)});let y=0,b=[];for(let t=0;t<e.length;++t){let r=e[t];g.setPosition(y);let[s,o]=function e(t,r,{staticPosition:s}){let o=(0,p.S)(r.type);if(o){let[n,i]=o;return function(t,r,{length:n,staticPosition:i}){if(!n){let n=i+h(t.readBytes(32)),s=n+32;t.setPosition(n);let o=h(t.readBytes(32)),a=m(r),l=0,u=[];for(let n=0;n<o;++n){t.setPosition(s+(a?32*n:l));let[i,o]=e(t,r,{staticPosition:s});l+=o,u.push(i)}return t.setPosition(i+32),[u,32]}if(m(r)){let s=i+h(t.readBytes(32)),o=[];for(let i=0;i<n;++i){t.setPosition(s+32*i);let[n]=e(t,r,{staticPosition:s});o.push(n)}return t.setPosition(i+32),[o,32]}let s=0,o=[];for(let a=0;a<n;++a){let[n,a]=e(t,r,{staticPosition:i+s});s+=a,o.push(n)}return[o,s]}(t,{...r,type:i},{length:n,staticPosition:s})}if(\"tuple\"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),s=i?[]:{},o=0;if(m(r)){let a=n+h(t.readBytes(32));for(let n=0;n<r.components.length;++n){let l=r.components[n];t.setPosition(a+o);let[u,c]=e(t,l,{staticPosition:a});o+=c,s[i?n:l?.name]=u}return t.setPosition(n+32),[s,32]}for(let a=0;a<r.components.length;++a){let l=r.components[a],[u,c]=e(t,l,{staticPosition:n});s[i?a:l?.name]=u,o+=c}return[s,o]}(t,r,{staticPosition:s});if(\"address\"===r.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,a.T4)(t,-20))),32]}(t);if(\"bool\"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,l.f)(r)),r.length>1||r[0]>1)throw new u.yr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith(\"bytes\"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split(\"bytes\");if(!i){let t=h(e.readBytes(32));e.setPosition(r+t);let n=h(e.readBytes(32));if(0===n)return e.setPosition(r+32),[\"0x\",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i),32)),32]}(t,r,{staticPosition:s});if(r.type.startsWith(\"uint\")||r.type.startsWith(\"int\"))return function(e,t){let r=t.type.startsWith(\"int\"),n=Number.parseInt(t.type.split(\"int\")[1]||\"256\"),i=e.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.y_)(r,t)}(i,{signed:r}):h(i,{signed:r}),32]}(t,r);if(\"string\"===r.type)return function(e,{staticPosition:t}){let r=h(e.readBytes(32));e.setPosition(t+r);let n=h(e.readBytes(32));if(0===n)return e.setPosition(t+32),[\"\",32];let i=e.readBytes(n,32),s=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,l.f)(r,{dir:\"right\"})),new TextDecoder().decode(r)}((0,l.f)(i));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new n.CI(r.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}(g,r,{staticPosition:0});y+=o,b.push(s)}return b}function m(e){let{type:t}=e;if(\"string\"===t||\"bytes\"===t||t.endsWith(\"[]\"))return!0;if(\"tuple\"===t)return e.components?.some(m);let r=(0,p.S)(e.type);return!!(r&&m({...e,type:r[1]}))}},71108:function(e,t,r){\"use strict\";r.d(t,{p:function(){return u}});var n=r(47807),i=r(52186),s=r(49014),o=r(87522),a=r(52998),l=r(20101);function u(e){let{abi:t,data:r}=e,u=(0,s.tP)(r,0,4);if(\"0x\"===u)throw new i.wb;let c=[...t||[],n.Up,n.hZ].find(e=>\"error\"===e.type&&u===(0,o.C)((0,l.t)(e)));if(!c)throw new i.yP(u,{docsPath:\"/docs/contract/decodeErrorResult\"});return{abiItem:c,args:\"inputs\"in c&&c.inputs&&c.inputs.length>0?(0,a.r)(c.inputs,(0,s.tP)(r,4)):void 0,errorName:c.name}}},43408:function(e,t,r){\"use strict\";r.d(t,{p:function(){return l}});var n=r(52186),i=r(49014),s=r(87522),o=r(52998),a=r(20101);function l(e){let{abi:t,data:r}=e,l=(0,i.tP)(r,0,4),u=t.find(e=>\"function\"===e.type&&l===(0,s.C)((0,a.t)(e)));if(!u)throw new n.eF(l,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:u.name,args:\"inputs\"in u&&u.inputs&&u.inputs.length>0?(0,o.r)(u.inputs,(0,i.tP)(r,4)):void 0}}},97225:function(e,t,r){\"use strict\";r.d(t,{k:function(){return a}});var n=r(52186),i=r(52998),s=r(18748);let o=\"/docs/contract/decodeFunctionResult\";function a(e){let{abi:t,args:r,functionName:a,data:l}=e,u=t[0];if(a){let e=(0,s.mE)({abi:t,args:r,name:a});if(!e)throw new n.xL(a,{docsPath:o});u=e}if(\"function\"!==u.type)throw new n.xL(void 0,{docsPath:o});if(!u.outputs)throw new n.MX(u.name,{docsPath:o});let c=(0,i.r)(u.outputs,l);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},39480:function(e,t,r){\"use strict\";r.d(t,{E:function(){return h},S:function(){return p}});var n=r(52186),i=r(51359),s=r(48926),o=r(64113),a=r(53932),l=r(88202),u=r(7508),c=r(49014),d=r(95046);function h(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=f(function({params:e,values:t}){let r=[];for(let h=0;h<e.length;h++)r.push(function e({param:t,value:r}){let h=p(t.type);if(h){let[i,s]=h;return function(t,{length:r,param:i}){let s=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!s&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let o=!1,l=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(o=!0),l.push(n)}if(s||o){let e=f(l);if(s){let t=(0,d.eC)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,a.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(l.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:s}})}if(\"tuple\"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let s=0;s<r.components.length;s++){let o=r.components[s],a=Array.isArray(t)?s:o.name,l=e({param:o,value:t[a]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?f(i):(0,a.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if(\"address\"===t.type)return function(e){if(!(0,o.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,l.gc)(e.toLowerCase())}}(r);if(\"bool\"===t.type)return function(e){if(\"boolean\"!=typeof e)throw new s.G(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:(0,l.gc)((0,d.C4)(e))}}(r);if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,d.eC)(e,{size:32,signed:t})}}(r,{signed:t.type.startsWith(\"int\")});if(t.type.startsWith(\"bytes\"))return function(e,{param:t}){let[,r]=t.type.split(\"bytes\"),i=(0,u.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,l.gc)(t,{dir:\"right\",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,l.gc)((0,d.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,l.gc)(e,{dir:\"right\"})}}(r,{param:t});if(\"string\"===t.type)return function(e){let t=(0,d.$G)(e),r=Math.ceil((0,u.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,l.gc)((0,c.tP)(t,32*e,(e+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:(0,a.zo)([(0,l.gc)((0,d.eC)((0,u.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}({param:e[h],value:t[h]}));return r}({params:e,values:t}));return 0===r.length?\"0x\":r}function f(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.d)(i)}let r=[],n=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(r.push((0,d.eC)(t+i,{size:32})),n.push(a),i+=(0,u.d)(a)):r.push(a)}return(0,a.zo)([...r,...n])}function p(e){let t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},32637:function(e,t,r){\"use strict\";r.d(t,{w:function(){return a}});var n=r(52186),i=r(53932),s=r(39480);let o=\"/docs/contract/encodeDeployData\";function a(e){let{abi:t,args:r,bytecode:a}=e;if(!r||0===r.length)return a;let l=t.find(e=>\"type\"in e&&\"constructor\"===e.type);if(!l)throw new n.fM({docsPath:o});if(!(\"inputs\"in l)||!l.inputs||0===l.inputs.length)throw new n.cO({docsPath:o});let u=(0,s.E)(l.inputs,r);return(0,i.SM)([a,u])}},31006:function(e,t,r){\"use strict\";r.d(t,{R:function(){return c}});var n=r(53932),i=r(39480),s=r(52186),o=r(87522),a=r(20101),l=r(18748);let u=\"/docs/contract/encodeFunctionData\";function c(e){let{args:t}=e,{abi:r,functionName:c}=1===e.abi.length&&e.functionName?.startsWith(\"0x\")?e:function(e){let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,l.mE)({abi:t,args:r,name:n});if(!e)throw new s.xL(n,{docsPath:u});i=e}if(\"function\"!==i.type)throw new s.xL(void 0,{docsPath:u});return{abi:[i],functionName:(0,o.C)((0,a.t)(i))}}(e),d=r[0],h=\"inputs\"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,n.SM)([c,h??\"0x\"])}},20101:function(e,t,r){\"use strict\";r.d(t,{h:function(){return s},t:function(){return i}});var n=r(52186);function i(e,{includeName:t=!1}={}){if(\"function\"!==e.type&&\"event\"!==e.type&&\"error\"!==e.type)throw new n.wM(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")})(e,{includeName:t})).join(t?\", \":\",\"):\"\"}},18748:function(e,t,r){\"use strict\";r.d(t,{mE:function(){return l}});var n=r(52186),i=r(40369),s=r(64113),o=r(53263),a=r(87522);function l(e){let t;let{abi:r,args:l=[],name:u}=e,c=(0,i.v)(u,{strict:!1}),d=r.filter(e=>c?\"function\"===e.type?(0,a.C)(e)===u:\"event\"===e.type&&(0,o.n)(e)===u:\"name\"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if(\"inputs\"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.every((t,r)=>{let n=\"inputs\"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case\"address\":return(0,s.U)(t,{strict:!1});case\"bool\":return\"boolean\"===n;case\"function\":case\"string\":return\"string\"===n;default:if(\"tuple\"===i&&\"components\"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return\"number\"===n||\"bigint\"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return\"string\"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\\[[0-9]{0,}\\])$/,\"\")}));return!1}}(t,n)})){if(t&&\"inputs\"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let o=t[i],a=r[i];if(\"tuple\"===o.type&&\"tuple\"===a.type&&\"components\"in o&&\"components\"in a)return e(o.components,a.components,n[i]);let l=[o.type,a.type];if(l.includes(\"address\")&&l.includes(\"bytes20\")||(l.includes(\"address\")&&l.includes(\"string\")||l.includes(\"address\")&&l.includes(\"bytes\"))&&(0,s.U)(n[i],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(r)throw new n.S4({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}return t||d[0]}}},99112:function(e,t,r){\"use strict\";r.d(t,{K:function(){return c},x:function(){return u}});var n=r(51359),i=r(82361),s=r(36494),o=r(98992),a=r(64113);let l=new o.k(8192);function u(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,s.w)((0,i.qX)(r),\"bytes\"),o=(t?r.substring(`${t}0x`.length):r).split(\"\");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join(\"\")}`;return l.set(`${e}.${t}`,a),a}function c(e,t){if(!(0,a.U)(e,{strict:!1}))throw new n.b({address:e});return u(e,t)}},64113:function(e,t,r){\"use strict\";r.d(t,{U:function(){return a}});var n=r(98992),i=r(99112);let s=/^0x[a-fA-F0-9]{40}$/,o=new n.k(8192);function a(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(o.has(n))return o.get(n);let a=!!s.test(e)&&(e.toLowerCase()===e||!r||(0,i.x)(e)===e);return o.set(n,a),a}},65937:function(e,t,r){\"use strict\";r.d(t,{E:function(){return s}});var n=r(51359),i=r(64113);function s(e,t){if(!(0,i.U)(e,{strict:!1}))throw new n.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new n.b({address:t});return e.toLowerCase()===t.toLowerCase()}},18543:function(e,t,r){\"use strict\";r.d(t,{L:function(){return i}});var n=r(89045);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.mm({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},15222:function(e,t,r){\"use strict\";r.d(t,{q:function(){return s}});var n=r(19477);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function s(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},53932:function(e,t,r){\"use strict\";function n(e){return\"string\"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace(\"0x\",\"\"),\"\")}`}r.d(t,{SM:function(){return i},zo:function(){return n}})},40369:function(e,t,r){\"use strict\";function n(e,{strict:t=!0}={}){return!!e&&\"string\"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\"))}r.d(t,{v:function(){return n}})},88202:function(e,t,r){\"use strict\";r.d(t,{gc:function(){return s},vk:function(){return i}});var n=r(75057);function i(e,{dir:t,size:r=32}={}){return\"string\"==typeof e?s(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$s({size:e.length,targetSize:r,type:\"bytes\"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let s=\"right\"===t;i[s?n:r-n-1]=e[s?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function s(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace(\"0x\",\"\");if(i.length>2*r)throw new n.$s({size:Math.ceil(i.length/2),targetSize:r,type:\"hex\"});return`0x${i[\"right\"===t?\"padEnd\":\"padStart\"](2*r,\"0\")}`}},7508:function(e,t,r){\"use strict\";r.d(t,{d:function(){return i}});var n=r(40369);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},49014:function(e,t,r){\"use strict\";r.d(t,{T4:function(){return u},p5:function(){return c},tP:function(){return o}});var n=r(75057),i=r(40369),s=r(7508);function o(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?c(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function a(e,t){if(\"number\"==typeof t&&t>0&&t>(0,s.d)(e)-1)throw new n.mV({offset:t,position:\"start\",size:(0,s.d)(e)})}function l(e,t,r){if(\"number\"==typeof t&&\"number\"==typeof r&&(0,s.d)(e)!==r-t)throw new n.mV({offset:r,position:\"end\",size:(0,s.d)(e)})}function u(e,t,r,{strict:n}={}){a(e,t);let i=e.slice(t,r);return n&&l(i,t,r),i}function c(e,t,r,{strict:n}={}){a(e,t);let i=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return n&&l(i,t,r),i}},77955:function(e,t,r){\"use strict\";function n(e,{dir:t=\"left\"}={}){let r=\"string\"==typeof e?e.replace(\"0x\",\"\"):e,n=0;for(let e=0;e<r.length-1&&\"0\"===r[\"left\"===t?e:r.length-e-1].toString();e++)n++;return(r=\"left\"===t?r.slice(n):r.slice(0,r.length-n),\"string\"==typeof e)?(1===r.length&&\"right\"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{f:function(){return n}})},21019:function(e,t,r){\"use strict\";r.d(t,{Yf:function(){return s},ly:function(){return a},y_:function(){return o}});var n=r(74188),i=r(7508);function s(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function o(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${\"f\".padStart(2*i,\"f\")}`)-1n}function a(e,t={}){return Number(o(e,t))}},82361:function(e,t,r){\"use strict\";r.d(t,{O0:function(){return u},nr:function(){return h},qX:function(){return f}});var n=r(48926),i=r(40369),s=r(88202),o=r(21019),a=r(95046);let l=new TextEncoder;function u(e,t={}){return\"number\"==typeof e||\"bigint\"==typeof e?h((0,a.eC)(e,t)):\"boolean\"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),\"number\"==typeof t.size)?((0,o.Yf)(r,{size:t.size}),(0,s.vk)(r,{size:t.size})):r}(e,t):(0,i.v)(e)?h(e,t):f(e,t)}let c={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=c.zero&&e<=c.nine?e-c.zero:e>=c.A&&e<=c.F?e-(c.A-10):e>=c.a&&e<=c.f?e-(c.a-10):void 0}function h(e,t={}){let r=e;t.size&&((0,o.Yf)(r,{size:t.size}),r=(0,s.vk)(r,{dir:\"right\",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let r=d(i.charCodeAt(t++)),s=d(i.charCodeAt(t++));if(void 0===r||void 0===s)throw new n.G(`Invalid byte sequence (\"${i[t-2]}${i[t-1]}\" in \"${i}\").`);l[e]=16*r+s}return l}function f(e,t={}){let r=l.encode(e);return\"number\"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,s.vk)(r,{dir:\"right\",size:t.size})):r}},95046:function(e,t,r){\"use strict\";r.d(t,{$G:function(){return h},C4:function(){return l},NC:function(){return a},ci:function(){return u},eC:function(){return c}});var n=r(74188),i=r(88202),s=r(21019);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function a(e,t={}){return\"number\"==typeof e||\"bigint\"==typeof e?c(e,t):\"string\"==typeof e?h(e,t):\"boolean\"==typeof e?l(e,t):u(e,t)}function l(e,t={}){let r=`0x${Number(e)}`;return\"number\"==typeof t.size?((0,s.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}function u(e,t={}){let r=\"\";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return\"number\"==typeof t.size?((0,s.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:\"right\",size:t.size})):n}function c(e,t={}){let r;let{signed:s,size:o}=t,a=BigInt(e);o?r=s?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:\"number\"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l=\"bigint\"==typeof r&&s?-r-1n:0;if(r&&a>r||a<l){let t=\"bigint\"==typeof e?\"n\":\"\";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:s,size:o,value:`${e}${t}`})}let u=`0x${(s&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.vk)(u,{size:o}):u}let d=new TextEncoder;function h(e,t={}){return u(d.encode(e),t)}},43149:function(e,t,r){\"use strict\";r.d(t,{k:function(){return s}});var n=r(48926),i=r(37764);function s(e,t){let r=(e.details||\"\").toLowerCase(),s=e instanceof n.G?e.walk(e=>e.code===i.M_.code):e;return s instanceof n.G?new i.M_({cause:e,message:s.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:e}):i.WF.nodeMessage.test(r)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:e}):i.cs.nodeMessage.test(r)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},27031:function(e,t,r){\"use strict\";function n(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&\"object\"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}r.d(t,{K:function(){return n}})},37669:function(e,t,r){\"use strict\";r.d(t,{tG:function(){return s}});var n=r(95046);let i={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\"};function s(e){let t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&(\"string\"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,n.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.eC)(e.value)),t}},36494:function(e,t,r){\"use strict\";r.d(t,{w:function(){return P}});var n=r(65376);let i=BigInt(4294967296-1),s=BigInt(32),o=(e,t,r)=>e<<r|t>>>32-r,a=(e,t,r)=>t<<r|e>>>32-r,l=(e,t,r)=>t<<r-32|e>>>64-r,u=(e,t,r)=>e<<r-32|t>>>64-r;var c=r(68104);let d=[],h=[],f=[],p=BigInt(0),g=BigInt(1),m=BigInt(2),y=BigInt(7),b=BigInt(256),v=BigInt(113);for(let e=0,t=g,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<g^(t>>y)*v)%b)&m&&(i^=g<<(g<<BigInt(e))-g);f.push(i)}let[w,_]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>s&i)}:{h:0|Number(e>>s&i),l:0|Number(e&i)}}(e[o],t);[r[o],n[o]]=[a,l]}return[r,n]}(f,!0),E=(e,t,r)=>r>32?l(e,t,r):o(e,t,r),A=(e,t,r)=>r>32?u(e,t,r):a(e,t,r);class x extends c.kb{constructor(e,t,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error(\"Sha3 supports only keccak-f1600 function\");this.state=new Uint8Array(200),this.state32=(0,c.Jq)(this.state)}keccak(){c.iA||(0,c.l1)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,s=r[i],o=r[i+1],a=E(s,o,1)^r[n],l=A(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=h[r],s=E(t,i,n),o=A(t,i,n),a=d[r];t=e[a],i=e[a+1],e[a]=s,e[a+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=w[n],e[1]^=_[n]}r.fill(0)}(this.state32,this.rounds),c.iA||(0,c.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:r}=this,i=(e=(0,c.O0)(e)).length;for(let n=0;n<i;){let s=Math.min(t-this.pos,i-n);for(let t=0;t<s;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.Gg)(this,!1),(0,n.aI)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let s=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return e}xofInto(e){if(!this.enableXOF)throw Error(\"XOF is not possible for this instance\");return this.writeInto(e)}xof(e){return(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(e,this),this.finished)throw Error(\"digest() was already called\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return e||(e=new x(t,r,n,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=s,e.destroyed=this.destroyed,e}}let k=(0,c.hE)(()=>new x(136,1,32));var S=r(40369),$=r(82361),C=r(95046);function P(e,t){let r=k((0,S.v)(e,{strict:!1})?(0,$.O0)(e):e);return\"bytes\"===(t||\"hex\")?r:(0,C.NC)(r)}},53263:function(e,t,r){\"use strict\";r.d(t,{n:function(){return n}});let n=r(99530).r},87522:function(e,t,r){\"use strict\";r.d(t,{C:function(){return s}});var n=r(49014),i=r(99530);let s=e=>(0,n.tP)((0,i.r)(e),0,4)},99530:function(e,t,r){\"use strict\";r.d(t,{r:function(){return d}});var n=r(82361),i=r(36494);let s=e=>(0,i.w)((0,n.O0)(e));var o=r(43197);let a=/^tuple(?<array>(\\[(\\d*)\\])*)$/;function l(e){let t=\"\",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(a.test(t.type)&&\"components\"in t){r=\"(\";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=\", \");let i=(0,o.Zw)(a,t.type);return r+=`)${i?.array??\"\"}`,e({...t,type:r})}return(\"indexed\"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=\", \");return t}var u=r(48926);let c=e=>(function(e){let t=!0,r=\"\",n=0,i=\"\",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if([\"(\",\")\",\",\"].includes(a)&&(t=!0),\"(\"===a&&n++,\")\"===a&&n--,t){if(0===n){if(\" \"===a&&[\"event\",\"function\",\"\"].includes(i))i=\"\";else if(i+=a,\")\"===a){s=!0;break}continue}if(\" \"===a){\",\"!==e[o-1]&&\",\"!==r&&\",(\"!==r&&(r=\"\",t=!1);continue}i+=a,r+=a}}if(!s)throw new u.G(\"Unable to normalize signature.\");return i})(\"string\"==typeof e?e:\"function\"===e.type?`function ${e.name}(${l(e.inputs)})${e.stateMutability&&\"nonpayable\"!==e.stateMutability?` ${e.stateMutability}`:\"\"}${e.outputs.length?` returns (${l(e.outputs)})`:\"\"}`:\"event\"===e.type?`event ${e.name}(${l(e.inputs)})`:\"error\"===e.type?`error ${e.name}(${l(e.inputs)})`:\"constructor\"===e.type?`constructor(${l(e.inputs)})${\"payable\"===e.stateMutability?\" payable\":\"\"}`:\"fallback\"===e.type?\"fallback()\":\"receive() external payable\");function d(e){return s(c(e))}},98992:function(e,t,r){\"use strict\";r.d(t,{k:function(){return n}});class n extends Map{constructor(e){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}},10639:function(e,t,r){\"use strict\";r.d(t,{S:function(){return i}});let n=new Map;function i({fn:e,id:t,shouldSplitBatch:r,wait:i=0,sort:s}){let o=async()=>{let t=u();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.resolve?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.reject?.(e)}})},a=()=>n.delete(t),l=()=>u().map(({args:e})=>e),u=()=>n.get(t)||[],c=e=>n.set(t,[...u(),e]);return{flush:a,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r});return(r?.([...l(),e])&&o(),u().length>0)?c({args:e,pendingPromise:t}):(c({args:e,pendingPromise:t}),setTimeout(o,i)),n}}}},55894:function(e,t,r){\"use strict\";r.d(t,{J:function(){return i}});var n=r(97317);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((s,o)=>{let a=async({count:l=0}={})=>{let u=async({error:e})=>{let r=\"function\"==typeof t?t({count:l,error:e}):t;r&&await (0,n.D)(r),a({count:l+1})};try{let t=await e();s(t)}catch(e){if(l<r&&await i({count:l,error:e}))return u({error:e});o(e)}};a()})}},11667:function(e,t,r){\"use strict\";r.d(t,{mF:function(){return u}});var n=r(51359),i=r(75057),s=r(75534),o=r(64113),a=r(95046);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:\"hex\"});if(66!==r.length)throw new i.W_({size:r.length,targetSize:66,type:\"hex\"});return e[t]=r,e},{})}function u(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,o.U)(r,{strict:!1}))throw new n.b({address:r});if(t[r])throw new s.Nc({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:o}=e,u={};if(void 0!==o&&(u.code=o),void 0!==t&&(u.balance=(0,a.eC)(t)),void 0!==r&&(u.nonce=(0,a.eC)(r)),void 0!==n&&(u.state=l(n)),void 0!==i){if(u.state)throw new s.Z8;u.stateDiff=l(i)}return u}(i)}return t}},47499:function(e,t,r){\"use strict\";r.d(t,{P:function(){return n}});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n=\"bigint\"==typeof r?r.toString():r;return\"function\"==typeof t?t(e,n):n},r)},82857:function(e,t,r){\"use strict\";r.d(t,{F:function(){return l}});var n=r(96104),i=r(51359),s=r(37764),o=r(97658),a=r(64113);function l(e){let{account:t,gasPrice:r,maxFeePerGas:l,maxPriorityFeePerGas:u,to:c}=e,d=t?(0,n.T)(t):void 0;if(d&&!(0,a.U)(d.address))throw new i.b({address:d.address});if(c&&!(0,a.U)(c))throw new i.b({address:c});if(void 0!==r&&(void 0!==l||void 0!==u))throw new o.xY;if(l&&l>2n**256n-1n)throw new s.Hh({maxFeePerGas:l});if(u&&l&&u>l)throw new s.cs({maxFeePerGas:l,maxPriorityFeePerGas:u})}},14851:function(e,t,r){\"use strict\";let n;r.d(t,{h:function(){return s}});let i=256;function s(e=11){if(!n||i+e>512){n=\"\",i=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++e)}},85053:function(e,t,r){\"use strict\";r.d(t,{d:function(){return s}});var n=r(90408),i=r(42921);function s(e,t=\"wei\"){return(0,i.b)(e,n.ez[t])}},49268:function(e,t,r){\"use strict\";r.d(t,{o:function(){return s}});var n=r(90408),i=r(42921);function s(e,t=\"wei\"){return(0,i.b)(e,n.Zn[t])}},42921:function(e,t,r){\"use strict\";function n(e,t){let r=e.toString(),n=r.startsWith(\"-\");n&&(r=r.slice(1));let[i,s]=[(r=r.padStart(t,\"0\")).slice(0,r.length-t),r.slice(r.length-t)];return s=s.replace(/(0+)$/,\"\"),`${n?\"-\":\"\"}${i||\"0\"}${s?`.${s}`:\"\"}`}r.d(t,{b:function(){return n}})},97317:function(e,t,r){\"use strict\";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},38078:function(e,t,r){\"use strict\";r.d(t,{FF:function(){return k},S5:function(){return m},Wd:function(){return v},_t:function(){return s},bytesToNumberBE:function(){return f},ci:function(){return l},dQ:function(){return w},eV:function(){return b},gk:function(){return o},hexToBytes:function(){return h},n$:function(){return A},ql:function(){return y},tL:function(){return g},ty:function(){return p}}),BigInt(0);let n=BigInt(1),i=BigInt(2);function s(e){return e instanceof Uint8Array||null!=e&&\"object\"==typeof e&&\"Uint8Array\"===e.constructor.name}function o(e){if(!s(e))throw Error(\"Uint8Array expected\")}let a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function l(e){o(e);let t=\"\";for(let r=0;r<e.length;r++)t+=a[e[r]];return t}function u(e){if(\"string\"!=typeof e)throw Error(\"hex string expected, got \"+typeof e);return BigInt(\"\"===e?\"0\":`0x${e}`)}let c={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function d(e){return e>=c._0&&e<=c._9?e-c._0:e>=c._A&&e<=c._F?e-(c._A-10):e>=c._a&&e<=c._f?e-(c._a-10):void 0}function h(e){if(\"string\"!=typeof e)throw Error(\"hex string expected, got \"+typeof e);let t=e.length,r=t/2;if(t%2)throw Error(\"padded hex string expected, got unpadded hex of length \"+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=d(e.charCodeAt(i)),s=d(e.charCodeAt(i+1));if(void 0===r||void 0===s)throw Error('hex string expected, got non-hex character \"'+(e[i]+e[i+1])+'\" at index '+i);n[t]=16*r+s}return n}function f(e){return u(l(e))}function p(e){return o(e),u(l(Uint8Array.from(e).reverse()))}function g(e,t){return h(e.toString(16).padStart(2*t,\"0\"))}function m(e,t){return g(e,t).reverse()}function y(e,t,r){let n;if(\"string\"==typeof t)try{n=h(t)}catch(r){throw Error(`${e} must be valid hex string, got \"${t}\". Cause: ${r}`)}else if(s(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if(\"number\"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function b(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];o(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}function v(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}let w=e=>(i<<BigInt(e-1))-n,_=e=>new Uint8Array(e),E=e=>Uint8Array.from(e);function A(e,t,r){if(\"number\"!=typeof e||e<2)throw Error(\"hashLen must be a number\");if(\"number\"!=typeof t||t<2)throw Error(\"qByteLen must be a number\");if(\"function\"!=typeof r)throw Error(\"hmacFn must be a function\");let n=_(e),i=_(e),s=0,o=()=>{n.fill(1),i.fill(0),s=0},a=(...e)=>r(i,n,...e),l=(e=_())=>{i=a(E([0]),e),n=a(),0!==e.length&&(i=a(E([1]),e),n=a())},u=()=>{if(s++>=1e3)throw Error(\"drbg: tried 1000 values\");let e=0,r=[];for(;e<t;){let t=(n=a()).slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(o(),l(e);!(r=t(u()));)l();return o(),r}}let x={bigint:e=>\"bigint\"==typeof e,function:e=>\"function\"==typeof e,boolean:e=>\"boolean\"==typeof e,string:e=>\"string\"==typeof e,stringOrUint8Array:e=>\"string\"==typeof e||s(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>\"function\"==typeof e&&Number.isSafeInteger(e.outputLen)};function k(e,t,r={}){let n=(t,r,n)=>{let i=x[r];if(\"function\"!=typeof i)throw Error(`Invalid validator \"${r}\", expected function`);let s=e[t];if((!n||void 0!==s)&&!i(s,e))throw Error(`Invalid param ${String(t)}=${s} (${typeof s}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},68610:function(e,t,r){\"use strict\";r.d(t,{secp256k1:function(){return j}});var n=r(80543),i=r(38078);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let s=BigInt(0),o=BigInt(1),a=BigInt(2),l=BigInt(3),u=BigInt(4),c=BigInt(5),d=BigInt(8);function h(e,t){let r=e%t;return r>=s?r:t+r}function f(e,t,r){let n=e;for(;t-- >s;)n*=n,n%=r;return n}function p(e,t){if(e===s||t<=s)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=h(e,t),n=t,i=s,a=o,l=o,u=s;for(;r!==s;){let e=n/r,t=n%r,s=i-l*e,o=a-u*e;n=r,r=t,i=l,a=u,l=s,u=o}if(n!==o)throw Error(\"invert: does not exist\");return h(i,t)}BigInt(9),BigInt(16);let g=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"];function m(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function y(e){if(\"bigint\"!=typeof e)throw Error(\"field order must be bigint\");return Math.ceil(e.toString(2).length/8)}function b(e){let t=y(e);return t+Math.ceil(t/2)}var v=r(65376),w=r(68104);class _ extends w.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,v.vp)(e);let r=(0,w.O0)(t);if(this.iHash=e.create(),\"function\"!=typeof this.iHash.update)throw Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return(0,v.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,v.Gg)(this),(0,v.aI)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:s,outputLen:o}=this;return e.finished=n,e.destroyed=i,e.blockLen=s,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let E=(e,t,r)=>new _(e,t).update(r).digest();E.create=(e,t)=>new _(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let A=BigInt(0),x=BigInt(1);function k(e){return!function(e){let t=g.reduce((e,t)=>(e[t]=\"function\",e),{ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"});(0,i.FF)(e,t)}(e.Fp),(0,i.FF)(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...m(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}let{bytesToNumberBE:S,hexToBytes:$}=i,C={Err:class extends Error{constructor(e=\"\"){super(e)}},_parseInt(e){let{Err:t}=C;if(e.length<2||2!==e[0])throw new t(\"Invalid signature integer tag\");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t(\"Invalid signature integer: wrong length\");if(128&n[0])throw new t(\"Invalid signature integer: negative\");if(0===n[0]&&!(128&n[1]))throw new t(\"Invalid signature integer: unnecessary leading zero\");return{d:S(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=C,r=\"string\"==typeof e?$(e):e;i.gk(r);let n=r.length;if(n<2||48!=r[0])throw new t(\"Invalid signature tag\");if(r[1]!==n-2)throw new t(\"Invalid signature: incorrect length\");let{d:s,l:o}=C._parseInt(r.subarray(2)),{d:a,l:l}=C._parseInt(o);if(l.length)throw new t(\"Invalid signature: left bytes after parsing\");return{r:s,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?\"00\"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),s=n.length/2,o=i.length/2,a=r(s),l=r(o);return`30${r(o+s+4)}02${l}${i}02${a}${n}`}},P=BigInt(0),I=BigInt(1),O=(BigInt(2),BigInt(3));BigInt(4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let N=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),M=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),R=BigInt(1),T=BigInt(2),D=(e,t)=>(e+t/T)/t,L=function(e,t,r=!1,n={}){if(e<=s)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:f,nByteLength:g}=m(e,t);if(g>2048)throw Error(\"Field lengths over 2048 bytes are not supported\");let y=function(e){if(e%u===l){let t=(e+o)/u;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error(\"Cannot find square root\");return n}}if(e%d===c){let t=(e-c)/d;return function(e,r){let n=e.mul(r,a),i=e.pow(n,t),s=e.mul(r,i),o=e.mul(e.mul(s,a),i),l=e.mul(s,e.sub(o,e.ONE));if(!e.eql(e.sqr(l),r))throw Error(\"Cannot find square root\");return l}}return function(e){let t,r,n;let i=(e-o)/a;for(t=e-o,r=0;t%a===s;t/=a,r++);for(n=a;n<e&&function(e,t,r){if(r<=s||t<s)throw Error(\"Expected power/modulo > 0\");if(r===o)return s;let n=o;for(;t>s;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}(n,i,e)!==e-o;n++);if(1===r){let t=(e+o)/u;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error(\"Cannot find square root\");return n}}let l=(t+o)/a;return function(e,s){if(e.pow(s,i)===e.neg(e.ONE))throw Error(\"Cannot find square root\");let a=r,u=e.pow(e.mul(e.ONE,n),t),c=e.pow(s,l),d=e.pow(s,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,o<<BigInt(a-t-1));u=e.sqr(r),c=e.mul(c,r),d=e.mul(d,u),a=t}return c}}(e)}(e),b=Object.freeze({ORDER:e,BITS:f,BYTES:g,MASK:(0,i.dQ)(f),ZERO:s,ONE:o,create:t=>h(t,e),isValid:t=>{if(\"bigint\"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return s<=t&&t<e},is0:e=>e===s,isOdd:e=>(e&o)===o,neg:t=>h(-t,e),eql:(e,t)=>e===t,sqr:t=>h(t*t,e),add:(t,r)=>h(t+r,e),sub:(t,r)=>h(t-r,e),mul:(t,r)=>h(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<s)throw Error(\"Expected power > 0\");if(r===s)return e.ONE;if(r===o)return t;let n=e.ONE,i=t;for(;r>s;)r&o&&(n=e.mul(n,i)),i=e.sqr(i),r>>=o;return n})(b,e,t),div:(t,r)=>h(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(e=>y(b,e)),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r})(b,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,i.S5)(e,g):(0,i.tL)(e,g),fromBytes:e=>{if(e.length!==g)throw Error(`Fp.fromBytes: expected ${g}, got ${e.length}`);return r?(0,i.ty)(e):(0,i.bytesToNumberBE)(e)}});return Object.freeze(b)}(N,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),a=BigInt(88),l=e*e*e%N,u=l*l*e%N,c=f(u,t,N)*u%N,d=f(c,t,N)*u%N,h=f(d,T,N)*l%N,p=f(h,n,N)*h%N,g=f(p,i,N)*p%N,m=f(g,o,N)*g%N,y=f(m,a,N)*m%N,b=f(y,o,N)*g%N,v=f(b,t,N)*u%N,w=f(v,s,N)*p%N,_=f(w,r,N)*l%N,E=f(_,T,N);if(!L.eql(L.sqr(E),e))throw Error(\"Cannot find square root\");return E}}),j=function(e,t){let r=t=>(function(e){let t=function(e){let t=k(e);return i.FF(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,s=r.BYTES+1,a=2*r.BYTES+1;function l(e){return h(e,n)}let{ProjectivePoint:u,normPrivateKeyToScalar:c,weierstrassEquation:d,isWithinCurveOrder:f}=function(e){let t=/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function(e){let t=k(e);i.FF(t,{a:\"field\",b:\"field\"},{allowedPrivateKeyLengths:\"array\",wrapPrivateKey:\"boolean\",isTorsionFree:\"function\",clearCofactor:\"function\",allowInfinityPoint:\"boolean\",fromBytes:\"function\",toBytes:\"function\"});let{endo:r,Fp:n,a:s}=t;if(r){if(!n.eql(s,n.ZERO))throw Error(\"Endomorphism can only be defined for Koblitz curves that have a=0\");if(\"object\"!=typeof r||\"bigint\"!=typeof r.beta||\"function\"!=typeof r.splitScalar)throw Error(\"Expected endomorphism with beta: bigint and splitScalar: function\")}return Object.freeze({...t})}(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let s=t.toAffine();return i.eV(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),s=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function o(e){let{a:n,b:i}=t,s=r.sqr(e),o=r.mul(s,e);return r.add(r.add(o,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw Error(\"bad generator point: equation left != right\");function a(e){return\"bigint\"==typeof e&&P<e&&e<t.n}function l(e){if(!a(e))throw Error(\"Expected valid bigint: 0 < bigint < curve.n\")}function u(e){let r;let{allowedPrivateKeyLengths:n,nByteLength:s,wrapPrivateKey:o,n:a}=t;if(n&&\"bigint\"!=typeof e){if(i._t(e)&&(e=i.ci(e)),\"string\"!=typeof e||!n.includes(e.length))throw Error(\"Invalid key\");e=e.padStart(2*s,\"0\")}try{r=\"bigint\"==typeof e?e:i.bytesToNumberBE((0,i.ql)(\"private key\",e,s))}catch(t){throw Error(`private key must be ${s} bytes, hex or bigint, not ${typeof e}`)}return o&&(r=h(r,a)),l(r),r}let c=new Map;function d(e){if(!(e instanceof f))throw Error(\"ProjectivePoint expected\")}class f{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error(\"x required\");if(null==t||!r.isValid(t))throw Error(\"y required\");if(null==n||!r.isValid(n))throw Error(\"z required\")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error(\"invalid affine point\");if(e instanceof f)throw Error(\"projective point not allowed\");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?f.ZERO:new f(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(f.fromAffine)}static fromHex(e){let t=f.fromAffine(s((0,i.ql)(\"pointHex\",e)));return t.assertValidity(),t}static fromPrivateKey(e){return f.BASE.multiply(u(e))}_setWindowSize(e){this._WINDOW_SIZE=e,c.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error(\"bad point: ZERO\")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error(\"bad point: x or y not FE\");let i=r.sqr(n),s=o(e);if(!r.eql(i,s))throw Error(\"bad point: equation left != right\");if(!this.isTorsionFree())throw Error(\"bad point: not in prime-order subgroup\")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error(\"Field doesn't support isOdd\")}equals(e){d(e);let{px:t,py:n,pz:i}=this,{px:s,py:o,pz:a}=e,l=r.eql(r.mul(t,a),r.mul(s,i)),u=r.eql(r.mul(n,a),r.mul(o,i));return l&&u}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,O),{px:s,py:o,pz:a}=this,l=r.ZERO,u=r.ZERO,c=r.ZERO,d=r.mul(s,s),h=r.mul(o,o),p=r.mul(a,a),g=r.mul(s,o);return g=r.add(g,g),c=r.mul(s,a),c=r.add(c,c),l=r.mul(e,c),u=r.mul(i,p),u=r.add(l,u),l=r.sub(h,u),u=r.add(h,u),u=r.mul(l,u),l=r.mul(g,l),c=r.mul(i,c),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,c),c=r.add(d,d),d=r.add(c,d),d=r.add(d,p),d=r.mul(d,g),u=r.add(u,d),p=r.mul(o,a),p=r.add(p,p),d=r.mul(p,g),l=r.sub(l,d),c=r.mul(p,h),c=r.add(c,c),new f(l,u,c=r.add(c,c))}add(e){d(e);let{px:n,py:i,pz:s}=this,{px:o,py:a,pz:l}=e,u=r.ZERO,c=r.ZERO,h=r.ZERO,p=t.a,g=r.mul(t.b,O),m=r.mul(n,o),y=r.mul(i,a),b=r.mul(s,l),v=r.add(n,i),w=r.add(o,a);v=r.mul(v,w),w=r.add(m,y),v=r.sub(v,w),w=r.add(n,s);let _=r.add(o,l);return w=r.mul(w,_),_=r.add(m,b),w=r.sub(w,_),_=r.add(i,s),u=r.add(a,l),_=r.mul(_,u),u=r.add(y,b),_=r.sub(_,u),h=r.mul(p,w),u=r.mul(g,b),h=r.add(u,h),u=r.sub(y,h),h=r.add(y,h),c=r.mul(u,h),y=r.add(m,m),y=r.add(y,m),b=r.mul(p,b),w=r.mul(g,w),y=r.add(y,b),b=r.sub(m,b),b=r.mul(p,b),w=r.add(w,b),m=r.mul(y,w),c=r.add(c,m),m=r.mul(_,w),u=r.mul(v,u),u=r.sub(u,m),m=r.mul(v,y),h=r.mul(_,h),new f(u,c,h=r.add(h,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(f.ZERO)}wNAF(e){return g.wNAFCached(this,c,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(f.fromAffine)})}multiplyUnsafe(e){let n=f.ZERO;if(e===P)return n;if(l(e),e===I)return this;let{endo:i}=t;if(!i)return g.unsafeLadder(this,e);let{k1neg:s,k1:o,k2neg:a,k2:u}=i.splitScalar(e),c=n,d=n,h=this;for(;o>P||u>P;)o&I&&(c=c.add(h)),u&I&&(d=d.add(h)),h=h.double(),o>>=I,u>>=I;return s&&(c=c.negate()),a&&(d=d.negate()),d=new f(r.mul(d.px,i.beta),d.py,d.pz),c.add(d)}multiply(e){let n,i;l(e);let{endo:s}=t;if(s){let{k1neg:t,k1:o,k2neg:a,k2:l}=s.splitScalar(e),{p:u,f:c}=this.wNAF(o),{p:d,f:h}=this.wNAF(l);u=g.constTimeNegate(t,u),d=g.constTimeNegate(a,d),d=new f(r.mul(d.px,s.beta),d.py,d.pz),n=u.add(d),i=c.add(h)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return f.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=f.BASE,i=(e,t)=>t!==P&&t!==I&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),s=i(this,t).add(i(e,r));return s.is0()?void 0:s}toAffine(e){let{px:t,py:n,pz:i}=this,s=this.is0();null==e&&(e=s?r.ONE:r.inv(i));let o=r.mul(t,e),a=r.mul(n,e),l=r.mul(i,e);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error(\"invZ was invalid\");return{x:o,y:a}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===I)return!0;if(r)return r(f,this);throw Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===I?this:r?r(f,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(f,this,e)}toHex(e=!0){return i.ci(this.toRawBytes(e))}}f.BASE=new f(t.Gx,t.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);let p=t.nBitLength,g=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>A;)r&x&&(n=n.add(i)),i=i.double(),r>>=x;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),s=[],o=e,a=o;for(let e=0;e<r;e++){a=o,s.push(a);for(let e=1;e<i;e++)a=a.add(o),s.push(a);o=a.double()}return s},wNAF(t,i,s){let{windows:o,windowSize:a}=n(t),l=e.ZERO,u=e.BASE,c=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<o;e++){let t=e*a,n=Number(s&c);s>>=h,n>a&&(n-=d,s+=x);let o=t+Math.abs(n)-1,f=e%2!=0,p=n<0;0===n?u=u.add(r(f,i[t])):l=l.add(r(p,i[o]))}return{p:l,f:u}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,s=t.get(e);return s||(s=this.precomputeWindow(e,i),1!==i&&t.set(e,n(s))),this.wNAF(i,s,r)}}}(f,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:f,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:a}}({...t,toBytes(e,t,n){let s=t.toAffine(),o=r.toBytes(s.x),a=i.eV;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(s.y))},fromBytes(e){let t=e.length,n=e[0],o=e.subarray(1);if(t===s&&(2===n||3===n)){let e;let t=i.bytesToNumberBE(o);if(!(P<t&&t<r.ORDER))throw Error(\"Point is not on curve\");let s=d(t);try{e=r.sqrt(s)}catch(e){throw Error(\"Point is not on curve\"+(e instanceof Error?\": \"+e.message:\"\"))}return(1&n)==1!=((e&I)===I)&&(e=r.neg(e)),{x:t,y:e}}if(t===a&&4===n)return{x:r.fromBytes(o.subarray(0,r.BYTES)),y:r.fromBytes(o.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`)}}),g=e=>i.ci(i.tL(e,t.nByteLength)),m=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class v{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new v(m(e=(0,i.ql)(\"compactSignature\",e,2*r),0,r),m(e,r,2*r))}static fromDER(e){let{r:t,s:r}=C.toSig((0,i.ql)(\"DER\",e));return new v(t,r)}assertValidity(){if(!f(this.r))throw Error(\"r must be 0 < r < CURVE.n\");if(!f(this.s))throw Error(\"s must be 0 < s < CURVE.n\")}addRecoveryBit(e){return new v(this.r,this.s,e)}recoverPublicKey(e){let{r:s,s:o,recovery:a}=this,c=E((0,i.ql)(\"msgHash\",e));if(null==a||![0,1,2,3].includes(a))throw Error(\"recovery id invalid\");let d=2===a||3===a?s+t.n:s;if(d>=r.ORDER)throw Error(\"recovery id 2 or 3 invalid\");let h=(1&a)==0?\"02\":\"03\",f=u.fromHex(h+g(d)),m=p(d,n),y=l(-c*m),b=l(o*m),v=u.BASE.multiplyAndAddUnsafe(f,y,b);if(!v)throw Error(\"point at infinify\");return v.assertValidity(),v}hasHighS(){return this.s>n>>I}normalizeS(){return this.hasHighS()?new v(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return C.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}function w(e){let t=i._t(e),r=\"string\"==typeof e,n=(t||r)&&e.length;return t?n===s||n===a:r?n===2*s||n===2*a:e instanceof u}let _=t.bits2int||function(e){let r=i.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},E=t.bits2int_modN||function(e){return l(_(e))},S=i.dQ(t.nBitLength);function $(e){if(\"bigint\"!=typeof e)throw Error(\"bigint expected\");if(!(P<=e&&e<S))throw Error(`bigint expected < 2^${t.nBitLength}`);return i.tL(e,t.nByteLength)}let N={lowS:t.lowS,prehash:!1},M={lowS:t.lowS,prehash:!1};return u.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(w(e))throw Error(\"first arg must be private key\");if(!w(t))throw Error(\"second arg must be public key\");return u.fromHex(t).multiply(c(e)).toRawBytes(r)},sign:function(e,s,o=N){let{seed:a,k2sig:d}=function(e,s,o=N){if([\"recovered\",\"canonical\"].some(e=>e in o))throw Error(\"sign() legacy options not supported\");let{hash:a,randomBytes:d}=t,{lowS:h,prehash:g,extraEntropy:m}=o;null==h&&(h=!0),e=(0,i.ql)(\"msgHash\",e),g&&(e=(0,i.ql)(\"prehashed msgHash\",a(e)));let y=E(e),b=c(s),w=[$(b),$(y)];if(null!=m&&!1!==m){let e=!0===m?d(r.BYTES):m;w.push((0,i.ql)(\"extraEntropy\",e))}return{seed:i.eV(...w),k2sig:function(e){let t=_(e);if(!f(t))return;let r=p(t,n),i=u.BASE.multiply(t).toAffine(),s=l(i.x);if(s===P)return;let o=l(r*l(y+s*b));if(o===P)return;let a=(i.x===s?0:2)|Number(i.y&I),c=o;if(h&&o>n>>I)c=o>n>>I?l(-o):o,a^=1;return new v(s,c,a)}}}(e,s,o);return i.n$(t.hash.outputLen,t.nByteLength,t.hmac)(a,d)},verify:function(e,r,s,o=M){let a,c;if(r=(0,i.ql)(\"msgHash\",r),s=(0,i.ql)(\"publicKey\",s),\"strict\"in o)throw Error(\"options.strict was renamed to lowS\");let{lowS:d,prehash:h}=o;try{if(\"string\"==typeof e||i._t(e))try{c=v.fromDER(e)}catch(t){if(!(t instanceof C.Err))throw t;c=v.fromCompact(e)}else if(\"object\"==typeof e&&\"bigint\"==typeof e.r&&\"bigint\"==typeof e.s){let{r:t,s:r}=e;c=new v(t,r)}else throw Error(\"PARSE\");a=u.fromHex(s)}catch(e){if(\"PARSE\"===e.message)throw Error(\"signature must be Signature instance, Uint8Array or hex string\");return!1}if(d&&c.hasHighS())return!1;h&&(r=t.hash(r));let{r:f,s:g}=c,m=E(r),y=p(g,n),b=l(m*y),w=l(f*y),_=u.BASE.multiplyAndAddUnsafe(a,b,w)?.toAffine();return!!_&&l(_.x)===f},ProjectivePoint:u,Signature:v,utils:{isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=b(t.n);return function(e,t,r=!1){let n=e.length,s=y(t),a=b(t);if(n<16||n<a||n>1024)throw Error(`expected ${a}-1024 bytes of input, got ${n}`);let l=h(r?(0,i.bytesToNumberBE)(e):(0,i.ty)(e),t-o)+o;return r?(0,i.S5)(l,s):(0,i.tL)(l,s)}(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...r)=>E(t,e,(0,w.eV)(...r)),randomBytes:w.O6});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:L,n:M,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{let t=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),r=-R*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),n=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),i=BigInt(\"0x100000000000000000000000000000000\"),s=D(t*e,M),o=D(-r*e,M),a=h(e-s*t-o*n,M),l=h(-s*r-o*t,M),u=a>i,c=l>i;if(u&&(a=M-a),c&&(l=M-l),a>i||l>i)throw Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:u,k1:a,k2neg:c,k2:l}}}},n.J);BigInt(0),j.ProjectivePoint}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/23-a2a6d2cb6c50ca8e.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23],{29492:function(e,t){\"use strict\";function n(){return\"\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getDeploymentIdQueryOrEmptyString\",{enumerable:!0,get:function(){return n}})},57108:function(){\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var e=/\\((.*)\\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if(\"function\"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4897:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addBasePath\",{enumerable:!0,get:function(){return u}});let r=n(22707),o=n(18157);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,\"\"))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75684:function(e,t){\"use strict\";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement(\"script\");if(r)for(let e in r)\"children\"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"appBootstrap\",{enumerable:!0,get:function(){return n}}),window.next={version:\"14.2.5\",appDir:!0},(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74590:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"callServer\",{enumerable:!0,get:function(){return o}});let r=n(95751);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error(\"Invariant: missing action dispatcher.\");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10353:function(e,t,n){\"use strict\";let r,o;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hydrate\",{enumerable:!0,get:function(){return x}});let u=n(99920),l=n(41452),a=n(57437);n(57108);let i=u._(n(34040)),c=l._(n(2265)),s=n(6671),f=n(36590),d=u._(n(16124)),p=n(74590),h=n(42128),y=n(21427);n(63243);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,h.isNextRouterError)(t[0])||_.apply(window.console,t)},window.addEventListener(\"error\",e=>{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error(\"Unexpected server data: missing bootstrap script.\");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let j=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};\"loading\"===document.readyState?document.addEventListener(\"DOMContentLoaded\",j,!1):j();let O=self.__next_f=self.__next_f||[];O.forEach(P),O.push=P;let S=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),E=(0,s.createFromReadableStream)(S,{callServer:p.callServer});function w(){return(0,c.use)(E)}let T=c.default.Fragment;function M(e){let{children:t}=e;return t}function x(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};\"__next_error__\"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11028:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),n(65820),(0,n(75684).appBootstrap)(()=>{let{hydrate:e}=n(10353);n(95751),n(39275),e()}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65820:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),n(29492);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return encodeURI(e(...n))}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99440:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"actionAsyncStorage\",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(8293);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41012:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"AppRouterAnnouncer\",{enumerable:!0,get:function(){return l}});let r=n(2265),o=n(54887),u=\"next-route-announcer\";function l(e){let{tree:t}=e,[n,l]=(0,r.useState)(null);(0,r.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText=\"position:absolute\";let t=document.createElement(\"div\");return t.ariaLive=\"assertive\",t.id=\"__next-route-announcer__\",t.role=\"alert\",t.style.cssText=\"position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal\",e.attachShadow({mode:\"open\"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(\"\"),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e=\"\";if(document.title)e=document.title;else{let t=document.querySelector(\"h1\");t&&(e=t.innerText||t.textContent||\"\")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77325:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n=\"RSC\",r=\"Next-Action\",o=\"Next-Router-State-Tree\",u=\"Next-Router-Prefetch\",l=\"Next-Url\",a=\"text/x-component\",i=[[n],[o],[u]],c=\"_rsc\",s=\"x-nextjs-postponed\";(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95751:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return I},getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467),a=n(51507),i=n(53174),c=n(68056),s=n(42114),f=n(76130),d=n(50322),p=n(74092),h=n(4897),y=n(41012),_=n(36585),v=n(30315),b=n(91108),g=n(77325),m=n(97599),R=n(49404),P=n(8e4),j=\"undefined\"==typeof window,O=j?null:new Map,S=null;function E(){return S}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(\".txt\")){let{pathname:e}=t,n=e.endsWith(\"/index.txt\")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function x(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,\"\",o)):window.history.replaceState(u,\"\",o),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,couldBeIntercepted:E,assetPrefix:T,missingSlots:C}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:O,location:j?null:window.location,initialHead:r,couldBeIntercepted:E}),[n,g,f,i,r,E]),[I,U,k]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(I),{searchParams:L,pathname:H}=(0,u.useMemo)(()=>{let e=new URL(F,\"undefined\"==typeof window?\"http://n\":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),$=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);S=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let z=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error(\"Cannot prefetch '\"+e+\"' because it cannot be converted to a URL.\")}M(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,\"replace\",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,\"push\",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error(\"fastRefresh can only be used in development mode. Please use refresh instead.\")}}),[U,G]);(0,u.useEffect)(()=>{window.next&&(window.next.router=z)},[z]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener(\"pageshow\",e),()=>{window.removeEventListener(\"pageshow\",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(I);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener(\"popstate\",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener(\"popstate\",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(I),X=(0,u.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(P.PAGE_SEGMENT_KEY)||(o&&(\"c\"===t[2]||\"oc\"===t[2])?n[t[0]]=t[1].split(\"/\"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{appRouterState:(0,s.useUnwrapState)(I),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:$,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:z,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function I(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24804:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"bailoutToClientRendering\",{enumerable:!0,get:function(){return u}});let r=n(55592),o=n(44936);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66513:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ClientPageRoot\",{enumerable:!0,get:function(){return u}});let r=n(57437),o=n(8897);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76130:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(99920),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(42128),i=n(44936),c={error:{fontFamily:'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',height:\"100vh\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\"},text:{fontSize:\"14px\",fontWeight:400,lineHeight:\"28px\",margin:\"0 8px\"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)(\"html\",{id:\"__next_error__\",children:[(0,o.jsx)(\"head\",{}),(0,o.jsxs)(\"body\",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)(\"div\",{style:c.error,children:(0,o.jsxs)(\"div\",{children:[(0,o.jsx)(\"h2\",{style:c.text,children:\"Application error: a \"+(n?\"server\":\"client\")+\"-side exception has occurred (see the \"+(n?\"server logs\":\"browser console\")+\" for more information).\"}),n?(0,o.jsx)(\"p\",{style:c.text,children:\"Digest: \"+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57910:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n=\"DYNAMIC_SERVER_USAGE\";class r extends Error{constructor(e){super(\"Dynamic server usage: \"+e),this.description=e,this.digest=n}}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&\"string\"==typeof e.digest&&e.digest===n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42128:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isNextRouterError\",{enumerable:!0,get:function(){return u}});let r=n(52496),o=n(67909);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39275:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return S}});let r=n(99920),o=n(41452),u=n(57437),l=o._(n(2265)),a=r._(n(54887)),i=n(44467),c=n(41283),s=n(91108),f=n(76130),d=n(16237),p=n(86180),h=n(36585),y=n(16585),_=n(44640),v=n(81784),b=n(35914),g=[\"bottom\",\"height\",\"left\",\"right\",\"top\",\"width\",\"x\",\"y\"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r=\"top\"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r=\"undefined\"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if([\"sticky\",\"fixed\"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error(\"invariant global layout router not mounted\");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function j(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error(\"invariant global layout router not mounted\");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,l.useDeferredValue)(v.rsc,g),R=\"object\"==typeof m&&null!==m&&\"function\"==typeof m.then?(0,l.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],\"refetch\"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}([\"\",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function O(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:g}=e,m=(0,l.useContext)(i.LayoutRouterContext);if(!m)throw Error(\"invariant expected layout router to be mounted\");let{childNodes:R,tree:S,url:E,loading:w}=m,T=R.get(t);T||(T=new Map,R.set(t,T));let M=S[1][t][0],x=(0,_.getSegmentValue)(M),C=[M];return(0,u.jsxs)(u.Fragment,{children:[g,C.map(e=>{let l=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:!!w,loading:null==w?void 0:w[0],loadingStyles:null==w?void 0:w[1],loadingScripts:null==w?void 0:w[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:E,tree:S,childNodes:T,segmentPath:n,cacheKey:g,isActive:x===l})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})]})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16237:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(24286),o=(e,t)=>\"string\"==typeof e?\"string\"==typeof t&&e===t:\"string\"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71169:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(2265),o=n(44467),u=n(68056),l=n(44640),a=n(8e4),i=n(52152),c=n(8005);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if(\"undefined\"==typeof window){let{bailoutToClientRendering:e}=n(24804);e(\"useSearchParams()\")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error(\"invariant expected app router to be mounted\");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e=\"children\");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e=\"children\");let t=h(e);if(!t||0===t.length)return null;let n=\"children\"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52152:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(67909),o=n(52496);class u extends Error{constructor(){super(\"Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams\")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16585:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"NotFoundBoundary\",{enumerable:!0,get:function(){return s}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(52496);n(72301);let i=n(44467);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(\"meta\",{name:\"robots\",content:\"noindex\"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52496:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n=\"NEXT_NOT_FOUND\";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&e.digest===n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43858:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"PromiseQueue\",{enumerable:!0,get:function(){return c}});let r=n(93449),o=n(57614);var u=o._(\"_maxConcurrency\"),l=o._(\"_runningCount\"),a=o._(\"_queue\"),i=o._(\"_processNext\");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]<r._(this,u)[u]||e)&&r._(this,a)[a].length>0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36585:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(67909);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84785:function(e,t){\"use strict\";var n,r;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"RedirectStatusCode\",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]=\"SeeOther\",r[r.TemporaryRedirect=307]=\"TemporaryRedirect\",r[r.PermanentRedirect=308]=\"PermanentRedirect\",(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67909:function(e,t,n){\"use strict\";var r,o;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(58512),l=n(99440),a=n(84785),i=\"NEXT_REDIRECT\";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+\";\"+t+\";\"+e+\";\"+n+\";\";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t=\"replace\");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t=\"replace\");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if(\"object\"!=typeof e||null===e||!(\"digest\"in e)||\"string\"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(\";\",4),u=Number(o);return t===i&&(\"replace\"===n||\"push\"===n)&&\"string\"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(\";\",3)[2]:null}function h(e){if(!d(e))throw Error(\"Not a redirect error\");return e.digest.split(\";\",2)[1]}function y(e){if(!d(e))throw Error(\"Not a redirect error\");return Number(e.digest.split(\";\",4)[3])}(o=r||(r={})).push=\"push\",o.replace=\"replace\",(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61343:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return a}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58512:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(70038);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error(\"`\"+e+\"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39607:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"applyFlightData\",{enumerable:!0,get:function(){return u}});let r=n(13821),o=n(41133);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69684:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"applyRouterStatePatchToTree\",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(8e4),o=n(16237),u=n(74922);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99559:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"clearCacheNodeDataForSegmentPath\",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(81784);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96626:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(82269),o=n(8e4),u=n(16237),l=e=>\"/\"===e[0]?e.slice(1):e,a=e=>\"string\"==typeof e?\"children\"===e?\"\":e:e[1];function i(e){return e.reduce((e,t)=>\"\"===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+\"/\"+t,\"\")||\"/\"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return\"\";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if(\"children\"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return\"\";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:\"\"}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+\"/\"+n}return null}(e,t);return null==n||\"/\"===n?n:i(n.split(\"/\"))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53174:function(e,t){\"use strict\";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:\"\")}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createHrefFromUrl\",{enumerable:!0,get:function(){return n}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50322:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createInitialRouterState\",{enumerable:!0,get:function(){return c}});let r=n(53174),o=n(13821),u=n(96626),l=n(86004),a=n(51507),i=n(74922);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=!p,v={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:_?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let g=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(v,void 0,c,s,h);let m={buildId:n,tree:c,cache:v,prefetchCache:g,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(\"\"+p.pathname+p.search,p.origin),t=[[\"\",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:m.tree,prefetchCache:m.prefetchCache,nextUrl:m.nextUrl})}return m}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81784:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createRouterCacheKey\",{enumerable:!0,get:function(){return o}});let r=n(8e4);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+\"|\"+e[1]+\"|\"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41283:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fetchServerResponse\",{enumerable:!0,get:function(){return s}});let r=n(77325),o=n(95751),u=n(74590),l=n(51507),a=n(54736),{createFromFetch:i}=n(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:\"1\",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]=\"1\"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||\"0\",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(\",\"));try{var h;let t=new URL(e);t.pathname.endsWith(\"/\")?t.pathname+=\"index.txt\":t.pathname+=\".txt\",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:\"same-origin\",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get(\"content-type\")||\"\",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get(\"vary\"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith(\"text/plain\")),!v||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,g]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error(\"Failed to fetch RSC payload for \"+e+\". Falling back to browser navigation.\",t),[e.toString(),void 0,!1,!1]}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41133:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fillCacheWithNewSubTreeData\",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(74213),o=n(13821),u=n(81784);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13821:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fillLazyItemsTillLeafWithHead\",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)===\"auto\"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(81784),o=n(51507);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36416:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleMutable\",{enumerable:!0,get:function(){return u}});let r=n(96626);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split(\"#\",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split(\"#\",1)[0]),hashFragment:a?t.hashFragment&&\"\"!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40774:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleSegmentMismatch\",{enumerable:!0,get:function(){return o}});let r=n(51294);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9863:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"invalidateCacheBelowFlightSegmentPath\",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(81784);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74213:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"invalidateCacheByRouterState\",{enumerable:!0,get:function(){return o}});let r=n(81784);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10139:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isNavigatingToNewRootLayout\",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93060:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,u.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,j=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?l(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==j&&void 0!==c?null!=g?e(j,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&\"pending\"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(8e4),o=n(16237),u=n(81784);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];\"string\"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e<t.length;e+=2){let n=t[e],r=t[e+1],u=a.children;if(null!==u){let e=u.get(n);if(void 0!==e){let t=e.route[0];if((0,o.matchSegment)(r,t)){a=e;continue}}}return}!function e(t,n,r,l){let a=t.children,i=t.node;if(null===a){null!==i&&(function e(t,n,r,l,a){let i=n[1],c=r[1],f=l[1],p=t.parallelRoutes;for(let t in i){let n=i[t],r=c[t],l=f[t],d=p.get(t),h=n[0],y=(0,u.createRouterCacheKey)(h),_=void 0!==d?d.get(y):void 0;void 0!==_&&(void 0!==r&&(0,o.matchSegment)(h,r[0])&&null!=l?e(_,n,r,l,a):s(n,_,null))}let h=t.rsc,y=l[2];null===h?t.rsc=y:d(h)&&h.resolve(y);let _=t.head;d(_)&&_.resolve(a)}(i,t.route,n,r,l),t.node=null);return}let c=n[1],f=r[1];for(let t in n){let n=c[t],r=f[t],u=a.get(t);if(void 0!==u){let t=u.route[0];if((0,o.matchSegment)(n[0],t)&&null!=r)return e(u,n,r,l)}}}(a,n,r,l)}(e,t,r,l,a)}c(e,null)},t=>{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status=\"pending\",n.resolve=t=>{\"pending\"===n.status&&(n.status=\"fulfilled\",n.value=t,e(t))},n.reject=e=>{\"pending\"===n.status&&(n.status=\"rejected\",n.reason=e,t(e))},n.tag=f,n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86004:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(53174),o=n(41283),u=n(51507),l=n(59218);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+\"%\"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number(\"30\"),p=1e3*Number(\"300\");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:\"auto\"===t&&Date.now()<n+p?u.PrefetchCacheEntryStatus.stale:\"full\"===t&&Date.now()<n+p?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.expired}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51129:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fastRefreshReducer\",{enumerable:!0,get:function(){return r}}),n(41283),n(53174),n(69684),n(10139),n(51294),n(36416),n(39607),n(95751),n(40774),n(35914);let r=function(e,t){return e};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30315:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"findHeadInCache\",{enumerable:!0,get:function(){return o}});let r=n(81784);function o(e,t){return function e(t,n,o){if(0===Object.keys(n).length)return[t,o];for(let u in n){let[l,a]=n[u],i=t.parallelRoutes.get(u);if(!i)continue;let c=(0,r.createRouterCacheKey)(l),s=i.get(c);if(!s)continue;let f=e(s,a,o+\"/\"+c);if(f)return f}return null}(e,t,\"\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44640:function(e,t){\"use strict\";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSegmentValue\",{enumerable:!0,get:function(){return n}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35914:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hasInterceptionRouteInCurrentTree\",{enumerable:!0,get:function(){return function e(t){let[n,o]=t;if(Array.isArray(n)&&(\"di\"===n[2]||\"ci\"===n[2])||\"string\"==typeof n&&(0,r.isInterceptionRouteAppPath)(n))return!0;if(o){for(let t in o)if(e(o[t]))return!0}return!1}}});let r=n(82269);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51294:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{handleExternalUrl:function(){return _},navigateReducer:function(){return b}}),n(41283);let r=n(53174),o=n(9863),u=n(69684),l=n(54740),a=n(10139),i=n(51507),c=n(36416),s=n(39607),f=n(59218),d=n(95751),p=n(8e4);n(93060);let h=n(86004),y=n(99559);function _(e,t,n,r){return t.mpaNavigation=!0,t.canonicalUrl=n,t.pendingPush=r,t.scrollableSegments=void 0,(0,c.handleMutable)(e,t)}function v(e){let t=[],[n,r]=e;if(0===Object.keys(r).length)return[[n]];for(let[e,o]of Object.entries(r))for(let r of v(o))\"\"===n?t.push([e,...r]):t.push([n,e,...r]);return t}let b=function(e,t){let{url:n,isExternalUrl:b,navigateType:g,shouldScroll:m}=t,R={},{hash:P}=n,j=(0,r.createHrefFromUrl)(n),O=\"push\"===g;if((0,h.prunePrefetchCache)(e.prefetchCache),R.preserveCustomHistoryState=!1,b)return _(e,R,n.toString(),O);let S=(0,h.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,tree:e.tree,buildId:e.buildId,prefetchCache:e.prefetchCache}),{treeAtTimeOfPrefetch:E,data:w}=S;return f.prefetchQueue.bump(w),w.then(t=>{let[n,f]=t,h=!1;if(S.lastUsedTime||(S.lastUsedTime=Date.now(),h=!0),\"string\"==typeof n)return _(e,R,n,O);if(document.getElementById(\"__next-page-redirect\"))return _(e,R,j,O);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=[\"\",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,j);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,E,r,j)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,j,O);let u=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(S.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,u,t,S):(m=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,g,n,r),S.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=g.rsc,u.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,g,n),R.cache=u):m&&(R.cache=u,g=u),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):j,R.pendingPush=O,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59218:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(77325),o=n(43858),u=n(86004),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75239:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"refreshReducer\",{enumerable:!0,get:function(){return h}});let r=n(41283),o=n(53174),u=n(69684),l=n(10139),a=n(51294),i=n(36416),c=n(13821),s=n(95751),f=n(40774),d=n(35914),p=n(74922);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],\"refetch\"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if(\"string\"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log(\"REFRESH FAILED\"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([\"\"],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6131:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"restoreReducer\",{enumerable:!0,get:function(){return u}});let r=n(53174),o=n(96626);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(93060),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64549:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"serverActionReducer\",{enumerable:!0,get:function(){return g}});let r=n(74590),o=n(77325),u=n(4897),l=n(53174),a=n(51294),i=n(69684),c=n(10139),s=n(36416),f=n(13821),d=n(95751),p=n(35914),h=n(40774),y=n(74922),{createFromFetch:_,encodeReply:v}=n(6671);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch(\"\",{method:\"POST\",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get(\"x-action-redirect\");try{let e=JSON.parse(s.headers.get(\"x-action-revalidated\")||\"[[],0,0]\");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get(\"content-type\")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function g(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if(\"string\"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,l.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log(\"SERVER ACTION APPLY FAILED\"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([\"\"],_,r,g?(0,l.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98289:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"serverPatchReducer\",{enumerable:!0,get:function(){return f}});let r=n(53174),o=n(69684),u=n(10139),l=n(51294),a=n(39607),i=n(36416),c=n(95751),s=n(40774);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,\"string\"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)([\"\",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,_))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74922:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&\"refresh\"!==l&&(t[2]=n,t[3]=\"refresh\"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(39607),o=n(41283),u=n(8e4);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&\"refresh\"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],\"refetch\"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if(\"string\"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51507:function(e,t){\"use strict\";var n,r,o,u;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l=\"refresh\",a=\"navigate\",i=\"restore\",c=\"server-patch\",s=\"prefetch\",f=\"fast-refresh\",d=\"server-action\";function p(e){return e&&(\"object\"==typeof e||\"function\"==typeof e)&&\"function\"==typeof e.then}(o=n||(n={})).AUTO=\"auto\",o.FULL=\"full\",o.TEMPORARY=\"temporary\",(u=r||(r={})).fresh=\"fresh\",u.reusable=\"reusable\",u.expired=\"expired\",u.stale=\"stale\",(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80643:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"reducer\",{enumerable:!0,get:function(){return f}});let r=n(51507),o=n(51294),u=n(98289),l=n(6131),a=n(75239),i=n(59218),c=n(51129),s=n(64549),f=\"undefined\"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error(\"Unknown action\")}};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54740:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"shouldHardNavigate\",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(16237);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8897:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(44936),o=n(62441),u=n(67991);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>(\"string\"==typeof n&&(0,o.trackDynamicDataAccessed)(t,\"searchParams.\"+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>(\"string\"==typeof n&&(0,o.trackDynamicDataAccessed)(t,\"searchParams.\"+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,\"searchParams\"),Reflect.ownKeys(e))}):e:e}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44936:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"staticGenerationAsyncStorage\",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(77685);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85108:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n=\"NEXT_STATIC_GEN_BAILOUT\";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return\"object\"==typeof e&&null!==e&&\"code\"in e&&e.code===n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91108:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"unresolvedThenable\",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42114:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(41452)._(n(2265)),o=n(51507),u=n(21427);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if(\"function\"==typeof r){t[n]=\"fn()\";continue}if(\"object\"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]=\"FlightData\";continue}}t[n]=l(r)}return t}if(\"object\"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if(\"function\"==typeof r){t[n]=\"fn()\";continue}if(\"object\"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty(\"_bundlerConfig\")){t[n]=\"FlightData\";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i=\"undefined\"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error(\"Invariant: Missing ActionQueueContext\");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:\"next-router\"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:\"RENDER_SYNC\"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49404:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hasBasePath\",{enumerable:!0,get:function(){return o}});let r=n(55121);function o(e){return(0,r.pathHasPrefix)(e,\"\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18157:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizePathTrailingSlash\",{enumerable:!0,get:function(){return u}});let r=n(67741),o=n(31465),u=e=>{if(!e.startsWith(\"/\"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return\"\"+(0,r.removeTrailingSlash)(t)+n+u};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16124:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return o}});let r=n(55592);function o(e){let t=\"function\"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97599:function(e,t,n){\"use strict\";function r(e){return e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeBasePath\",{enumerable:!0,get:function(){return r}}),n(49404),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99176:function(e,t){\"use strict\";function n(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,o=e[r];if(0<u(o,t))e[r]=t,e[n]=o,n=r;else break}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length,l=o>>>1;r<l;){var a=2*(r+1)-1,i=e[a],c=a+1,s=e[c];if(0>u(i,n))c<o&&0>u(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(c<o&&0>u(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,\"object\"==typeof performance&&\"function\"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b=\"function\"==typeof setTimeout?setTimeout:null,g=\"function\"==typeof clearTimeout?clearTimeout:null,m=\"undefined\"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,C();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-E<S)}function T(){if(j){var e=t.unstable_now();E=e;var n=!0;try{e:{_=!1,v&&(v=!1,g(O),O=-1),y=!0;var u=h;try{t:{for(R(e),p=r(s);null!==p&&!(p.expirationTime>e&&w());){var a=p.callback;if(\"function\"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),\"function\"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():j=!1}}}if(\"function\"==typeof m)l=function(){m(T)};else if(\"undefined\"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,l=function(){x.postMessage(null)}}else l=function(){b(T,0)};function C(){j||(j=!0,l())}function A(e,n){O=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,u){var l=t.unstable_now();switch(u=\"object\"==typeof u&&null!==u&&\"number\"==typeof(u=u.delay)&&0<u?l+u:l,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=u+a,e={id:d++,callback:o,priorityLevel:e,startTime:u,expirationTime:a,sortIndex:-1},u>l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(v?(g(O),O=-1):v=!0,A(P,u-l))):(e.sortIndex=a,n(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},85689:function(e,t,n){\"use strict\";e.exports=n(99176)},11358:function(e,t){\"use strict\";function n(e){return new URL(e,\"http://n\").pathname}function r(e){return/https?:\\/\\//.test(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return n},isFullStringUrl:function(){return r}})},62441:function(e,t,n){\"use strict\";var r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(2265))&&r.__esModule?r:{default:r},u=n(57910),l=n(85108),a=n(11358),i=\"function\"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`${t}\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used \"${t}\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"${t}\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`${t}\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \\`${t}\\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){v();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>\"string\"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split(\"\\n\").slice(4).filter(e=>!(e.includes(\"node_modules/next/\")||e.includes(\" (<anonymous>)\")||e.includes(\" (node:\"))).join(\"\\n\"),`Dynamic API Usage Debug - ${e}:\n${t}`))}function v(){if(!i)throw Error(\"Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js\")}function b(e){v();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},24286:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSegmentParam\",{enumerable:!0,get:function(){return o}});let r=n(82269);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith(\"[[...\")&&e.endsWith(\"]]\"))?{type:\"optional-catchall\",param:e.slice(5,-2)}:e.startsWith(\"[...\")&&e.endsWith(\"]\")?{type:t?\"catchall-intercepted\":\"catchall\",param:e.slice(4,-1)}:e.startsWith(\"[\")&&e.endsWith(\"]\")?{type:t?\"dynamic-intercepted\":\"dynamic\",param:e.slice(1,-1)}:null}},63243:function(e,t){\"use strict\";var n,r;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"HMR_ACTIONS_SENT_TO_BROWSER\",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE=\"addedPage\",r.REMOVED_PAGE=\"removedPage\",r.RELOAD_PAGE=\"reloadPage\",r.SERVER_COMPONENT_CHANGES=\"serverComponentChanges\",r.MIDDLEWARE_CHANGES=\"middlewareChanges\",r.CLIENT_CHANGES=\"clientChanges\",r.SERVER_ONLY_CHANGES=\"serverOnlyChanges\",r.SYNC=\"sync\",r.BUILT=\"built\",r.BUILDING=\"building\",r.DEV_PAGES_MANIFEST_UPDATE=\"devPagesManifestUpdate\",r.TURBOPACK_MESSAGE=\"turbopack-message\",r.SERVER_ERROR=\"serverError\",r.TURBOPACK_CONNECTED=\"turbopack-connected\"},82269:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(3330),o=[\"(..)(..)\",\"(.)\",\"(..)\",\"(...)\"];function u(e){return void 0!==e.split(\"/\").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split(\"/\"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,r.normalizeAppPath)(t),n){case\"(.)\":u=\"/\"===t?`/${u}`:t+\"/\"+u;break;case\"(..)\":if(\"/\"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split(\"/\").slice(0,-1).concat(u).join(\"/\");break;case\"(...)\":u=\"/\"+u;break;case\"(..)(..)\":let l=t.split(\"/\");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join(\"/\");break;default:throw Error(\"Invariant: unexpected marker\")}return{interceptingRoute:t,interceptedRoute:u}}},67991:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ReflectAdapter\",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return\"function\"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},44467:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(99920)._(n(2265)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},54736:function(e,t){\"use strict\";function n(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return t>>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},36590:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"HeadManagerContext\",{enumerable:!0,get:function(){return r}});let r=n(99920)._(n(2265)).default.createContext({})},68056:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(2265),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},55592:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n=\"BAILOUT_TO_CLIENT_SIDE_RENDERING\";class r extends Error{constructor(e){super(\"Bail out to client-side rendering: \"+e),this.reason=e,this.digest=n}}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&e.digest===n}},78558:function(e,t){\"use strict\";function n(e){return e.startsWith(\"/\")?e:\"/\"+e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ensureLeadingSlash\",{enumerable:!0,get:function(){return n}})},21427:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(41452),o=n(51507),u=n(80643),l=r._(n(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error(\"Invariant: Router state not initialized\");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error(\"Invariant: Router state not initialized\");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},22707:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addPathPrefix\",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if(!e.startsWith(\"/\")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return\"\"+t+n+o+u}},3330:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(78558),o=n(8e4);function u(e){return(0,r.ensureLeadingSlash)(e.split(\"/\").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||\"@\"===t[0]||(\"page\"===t||\"route\"===t)&&n===r.length-1?e:e+\"/\"+t,\"\"))}function l(e){return e.replace(/\\.rsc($|\\?)/,\"$1\")}},86180:function(e,t){\"use strict\";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior=\"auto\",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleSmoothScroll\",{enumerable:!0,get:function(){return n}})},74092:function(e,t){\"use strict\";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isBot\",{enumerable:!0,get:function(){return n}})},31465:function(e,t){\"use strict\";function n(e){let t=e.indexOf(\"#\"),n=e.indexOf(\"?\"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):\"\",hash:t>-1?e.slice(t):\"\"}:{pathname:e,query:\"\",hash:\"\"}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parsePath\",{enumerable:!0,get:function(){return n}})},55121:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"pathHasPrefix\",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if(\"string\"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+\"/\")}},67741:function(e,t){\"use strict\";function n(e){return e.replace(/\\/$/,\"\")||\"/\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeTrailingSlash\",{enumerable:!0,get:function(){return n}})},8e4:function(e,t){\"use strict\";function n(e){return\"(\"===e[0]&&e.endsWith(\")\")}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r=\"__PAGE__\",o=\"__DEFAULT__\"},8005:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(41452)._(n(2265)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},72301:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"warnOnce\",{enumerable:!0,get:function(){return n}});let n=e=>{}},8293:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"actionAsyncStorage\",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66713:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createAsyncLocalStorage\",{enumerable:!0,get:function(){return u}});let n=Error(\"Invariant: AsyncLocalStorage accessed in runtime where it is not available\");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70038:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"requestAsyncStorage\",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77685:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"staticGenerationAsyncStorage\",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34040:function(e,t,n){\"use strict\";var r=n(54887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},54887:function(e,t,n){\"use strict\";!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(84417)},97950:function(e,t,n){\"use strict\";var r=n(54887),o={stream:!0},u=new Map;function l(e){var t=n(e);return\"function\"!=typeof t.then||\"fulfilled\"===t.status?null:(t.then(function(e){t.status=\"fulfilled\",t.value=e},function(e){t.status=\"rejected\",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for(\"react.element\"),d=Symbol.for(\"react.lazy\"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case\"resolved_model\":E(e);break;case\"resolved_module\":w(e)}switch(e.status){case\"fulfilled\":return e.value;case\"pending\":case\"blocked\":case\"cyclic\":throw e;default:throw e.reason}}function m(e,t){for(var n=0;n<e.length;n++)(0,e[n])(t)}function R(e,t,n){switch(e.status){case\"fulfilled\":m(t,e.value);break;case\"pending\":case\"blocked\":case\"cyclic\":e.value=t,e.reason=n;break;case\"rejected\":n&&m(n,e.reason)}}function P(e,t){if(\"pending\"===e.status||\"blocked\"===e.status){var n=e.reason;e.status=\"rejected\",e.reason=t,null!==n&&m(n,t)}}function j(e,t){if(\"pending\"===e.status||\"blocked\"===e.status){var n=e.value,r=e.reason;e.status=\"resolved_module\",e.value=t,null!==n&&(w(e),R(e,n,r))}}b.prototype=Object.create(Promise.prototype),b.prototype.then=function(e,t){switch(this.status){case\"resolved_model\":E(this);break;case\"resolved_module\":w(this)}switch(this.status){case\"fulfilled\":e(this.value);break;case\"pending\":case\"blocked\":case\"cyclic\":e&&(null===this.value&&(this.value=[]),this.value.push(e)),t&&(null===this.reason&&(this.reason=[]),this.reason.push(t));break;default:t(this.reason)}};var O=null,S=null;function E(e){var t=O,n=S;O=e,S=null;var r=e.value;e.status=\"cyclic\",e.value=null,e.reason=null;try{var o=JSON.parse(r,e._response._fromJSON);if(null!==S&&0<S.deps)S.value=o,e.status=\"blocked\",e.value=null,e.reason=null;else{var u=e.value;e.status=\"fulfilled\",e.value=o,null!==u&&m(u,o)}}catch(t){e.status=\"rejected\",e.reason=t}finally{O=t,S=n}}function w(e){try{var t=e.value,r=n(t[0]);if(4===t.length&&\"function\"==typeof r.then){if(\"fulfilled\"===r.status)r=r.value;else throw r.reason}var o=\"*\"===t[2]?r:\"\"===t[2]?r.__esModule?r.default:r:r[t[2]];e.status=\"fulfilled\",e.value=o}catch(t){e.status=\"rejected\",e.reason=t}}function T(e,t){e._chunks.forEach(function(e){\"pending\"===e.status&&P(e,t)})}function M(e,t){var n=e._chunks,r=n.get(t);return r||(r=new b(\"pending\",null,null,e),n.set(t,r)),r}function x(e,t){if(\"resolved_model\"===(e=M(e,t)).status&&E(e),\"fulfilled\"===e.status)return e.value;throw e.reason}function C(){throw Error('Trying to call a function from \"use server\" but the callServer option was not implemented in your router runtime.')}function A(e,t,n,r,o){var u;return(e={_bundlerConfig:e,_moduleLoading:t,_callServer:void 0!==n?n:C,_encodeFormAction:r,_nonce:o,_chunks:new Map,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]})._fromJSON=(u=e,function(e,t){return\"string\"==typeof t?function(e,t,n,r){if(\"$\"===r[0]){if(\"$\"===r)return f;switch(r[1]){case\"$\":return r.slice(1);case\"L\":return{$$typeof:d,_payload:e=M(e,t=parseInt(r.slice(2),16)),_init:g};case\"@\":if(2===r.length)return new Promise(function(){});return M(e,t=parseInt(r.slice(2),16));case\"S\":return Symbol.for(r.slice(2));case\"F\":return t=x(e,t=parseInt(r.slice(2),16)),function(e,t){function n(){var e=Array.prototype.slice.call(arguments),n=t.bound;return n?\"fulfilled\"===n.status?r(t.id,n.value.concat(e)):Promise.resolve(n).then(function(n){return r(t.id,n.concat(e))}):r(t.id,e)}var r=e._callServer;return v.set(n,t),n}(e,t);case\"Q\":return new Map(e=x(e,t=parseInt(r.slice(2),16)));case\"W\":return new Set(e=x(e,t=parseInt(r.slice(2),16)));case\"I\":return 1/0;case\"-\":return\"$-0\"===r?-0:-1/0;case\"N\":return NaN;case\"u\":return;case\"D\":return new Date(Date.parse(r.slice(2)));case\"n\":return BigInt(r.slice(2));default:switch((e=M(e,r=parseInt(r.slice(1),16))).status){case\"resolved_model\":E(e);break;case\"resolved_module\":w(e)}switch(e.status){case\"fulfilled\":return e.value;case\"pending\":case\"blocked\":case\"cyclic\":var o;return r=O,e.then(function(e,t,n,r){if(S){var o=S;r||o.deps++}else o=S={deps:r?0:1,value:null};return function(r){t[n]=r,o.deps--,0===o.deps&&\"blocked\"===e.status&&(r=e.value,e.status=\"fulfilled\",e.value=o.value,null!==r&&m(r,o.value))}}(r,t,n,\"cyclic\"===e.status),(o=r,function(e){return P(o,e)})),null;default:throw e.reason}}}return r}(u,this,e,t):\"object\"==typeof t&&null!==t?e=t[0]===f?{$$typeof:f,type:t[1],key:t[2],ref:null,props:t[3],_owner:null}:t:t}),e}function N(e,t){function r(t){T(e,t)}var c=t.getReader();c.read().then(function t(f){var d=f.value;if(f.done)T(e,Error(\"Connection closed.\"));else{var p=0,h=e._rowState,y=e._rowID,_=e._rowTag,v=e._rowLength;f=e._buffer;for(var g=d.length;p<g;){var m=-1;switch(h){case 0:58===(m=d[p++])?h=1:y=y<<4|(96<m?m-87:m-48);continue;case 1:84===(h=d[p])?(_=h,h=2,p++):64<h&&91>h?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96<m?m-87:m-48);continue;case 3:m=d.indexOf(10,p);break;case 4:(m=p+v)>d.length&&(m=-1)}var O=d.byteOffset+p;if(-1<m){p=new Uint8Array(d.buffer,O,m-p),v=e,O=_;var S=v._stringDecoder;_=\"\";for(var w=0;w<f.length;w++)_+=S.decode(f[w],o);switch(_+=S.decode(p),O){case 73:!function(e,t,r){var o=e._chunks,c=o.get(t);r=JSON.parse(r,e._fromJSON);var s=function(e,t){if(e){var n=e[t[0]];if(e=n[t[2]])n=e.name;else{if(!(e=n[\"*\"]))throw Error('Could not find the module \"'+t[0]+'\" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');n=t[2]}return 4===t.length?[e.id,e.chunks,n,1]:[e.id,e.chunks,n]}return t}(e._bundlerConfig,r);if(r=function(e){for(var t=e[1],r=[],o=0;o<t.length;){var c=t[o++],s=t[o++],f=u.get(c);void 0===f?(i.set(c,s),s=n.e(c),r.push(s),f=u.set.bind(u,c,null),s.then(f,a),u.set(c,s)):null!==f&&r.push(f)}return 4===e.length?0===r.length?l(e[0]):Promise.all(r).then(function(){return l(e[0])}):0<r.length?Promise.all(r):null}(s)){if(c){var f=c;f.status=\"blocked\"}else f=new b(\"blocked\",null,null,e),o.set(t,f);r.then(function(){return j(f,s)},function(e){return P(f,e)})}else c?j(c,s):o.set(t,new b(\"resolved_module\",s,null,e))}(v,y,_);break;case 72:if(y=_[0],v=JSON.parse(_=_.slice(1),v._fromJSON),_=s.current)switch(y){case\"D\":_.prefetchDNS(v);break;case\"C\":\"string\"==typeof v?_.preconnect(v):_.preconnect(v[0],v[1]);break;case\"L\":y=v[0],p=v[1],3===v.length?_.preload(y,p,v[2]):_.preload(y,p);break;case\"m\":\"string\"==typeof v?_.preloadModule(v):_.preloadModule(v[0],v[1]);break;case\"S\":\"string\"==typeof v?_.preinitStyle(v):_.preinitStyle(v[0],0===v[1]?void 0:v[1],3===v.length?v[2]:void 0);break;case\"X\":\"string\"==typeof v?_.preinitScript(v):_.preinitScript(v[0],v[1]);break;case\"M\":\"string\"==typeof v?_.preinitModuleScript(v):_.preinitModuleScript(v[0],v[1])}break;case 69:p=(_=JSON.parse(_)).digest,(_=Error(\"An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.\")).stack=\"Error: \"+_.message,_.digest=p,(O=(p=v._chunks).get(y))?P(O,_):p.set(y,new b(\"rejected\",null,_,v));break;case 84:v._chunks.set(y,new b(\"fulfilled\",_,null,v));break;case 68:case 87:throw Error(\"Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.\");default:(O=(p=v._chunks).get(y))?(v=O,y=_,\"pending\"===v.status&&(_=v.value,p=v.reason,v.status=\"resolved_model\",v.value=y,null!==_&&(E(v),R(v,_,p)))):p.set(y,new b(\"resolved_model\",_,null,v))}p=m,3===h&&p++,v=y=_=h=0,f.length=0}else{d=new Uint8Array(d.buffer,O,d.byteLength-p),f.push(d),v-=d.byteLength;break}}return e._rowState=h,e._rowID=y,e._rowTag=_,e._rowLength=v,c.read().then(t).catch(r)}}).catch(r)}t.createFromFetch=function(e,t){var n=A(null,null,t&&t.callServer?t.callServer:void 0,void 0,void 0);return e.then(function(e){N(n,e.body)},function(e){T(n,e)}),M(n,0)},t.createFromReadableStream=function(e,t){return N(t=A(null,null,t&&t.callServer?t.callServer:void 0,void 0,void 0),e),M(t,0)},t.createServerReference=function(e,t){var n;function r(){var n=Array.prototype.slice.call(arguments);return t(e,n)}return n={id:e,bound:null},v.set(r,n),r},t.encodeReply=function(e){return new Promise(function(t,n){var r,o,u,l;o=1,u=0,l=null,r=JSON.stringify(r=e,function e(r,a){if(null===a)return null;if(\"object\"==typeof a){if(\"function\"==typeof a.then){null===l&&(l=new FormData),u++;var i,c,s=o++;return a.then(function(n){n=JSON.stringify(n,e);var r=l;r.append(\"\"+s,n),0==--u&&t(r)},function(e){n(e)}),\"$@\"+s.toString(16)}if(h(a))return a;if(a instanceof FormData){null===l&&(l=new FormData);var f=l,d=\"\"+(r=o++)+\"_\";return a.forEach(function(e,t){f.append(d+t,e)}),\"$K\"+r.toString(16)}if(a instanceof Map)return a=JSON.stringify(Array.from(a),e),null===l&&(l=new FormData),r=o++,l.append(\"\"+r,a),\"$Q\"+r.toString(16);if(a instanceof Set)return a=JSON.stringify(Array.from(a),e),null===l&&(l=new FormData),r=o++,l.append(\"\"+r,a),\"$W\"+r.toString(16);if(null===(c=a)||\"object\"!=typeof c?null:\"function\"==typeof(c=p&&c[p]||c[\"@@iterator\"])?c:null)return Array.from(a);if((r=y(a))!==_&&(null===r||null!==y(r)))throw Error(\"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.\");return a}if(\"string\"==typeof a)return\"Z\"===a[a.length-1]&&this[r]instanceof Date?\"$D\"+a:a=\"$\"===a[0]?\"$\"+a:a;if(\"boolean\"==typeof a)return a;if(\"number\"==typeof a)return Number.isFinite(i=a)?0===i&&-1/0==1/i?\"$-0\":i:1/0===i?\"$Infinity\":-1/0===i?\"$-Infinity\":\"$NaN\";if(void 0===a)return\"$undefined\";if(\"function\"==typeof a){if(void 0!==(a=v.get(a)))return a=JSON.stringify(a,e),null===l&&(l=new FormData),r=o++,l.set(\"\"+r,a),\"$F\"+r.toString(16);throw Error(\"Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.\")}if(\"symbol\"==typeof a){if(Symbol.for(r=a.description)!==a)throw Error(\"Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for(\"+a.description+\") cannot be found among global symbols.\");return\"$S\"+r}if(\"bigint\"==typeof a)return\"$n\"+a.toString(10);throw Error(\"Type \"+typeof a+\" is not supported as an argument to a Server Function.\")}),null===l?t(r):(l.set(\"0\",r),0===u&&t(l))})}},16703:function(e,t,n){\"use strict\";e.exports=n(97950)},6671:function(e,t,n){\"use strict\";e.exports=n(16703)},30622:function(e,t,n){\"use strict\";var r=n(2265),o=Symbol.for(\"react.element\"),u=Symbol.for(\"react.fragment\"),l=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;function i(e,t,n){var r,u={},i=null,c=null;for(r in void 0!==n&&(i=\"\"+n),void 0!==t.key&&(i=\"\"+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&\"key\"!==r&&\"ref\"!==r&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===u[r]&&(u[r]=t[r]);return{$$typeof:o,type:e,key:i,ref:c,props:u,_owner:a.current}}t.Fragment=u,t.jsx=i,t.jsxs=i},17869:function(e,t){\"use strict\";var n=Symbol.for(\"react.element\"),r=Symbol.for(\"react.portal\"),o=Symbol.for(\"react.fragment\"),u=Symbol.for(\"react.strict_mode\"),l=Symbol.for(\"react.profiler\"),a=Symbol.for(\"react.provider\"),i=Symbol.for(\"react.context\"),c=Symbol.for(\"react.forward_ref\"),s=Symbol.for(\"react.suspense\"),f=Symbol.for(\"react.memo\"),d=Symbol.for(\"react.lazy\"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}function b(){}function g(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},b.prototype=v.prototype;var m=g.prototype=new b;m.constructor=g,y(m,v.prototype),m.isPureReactComponent=!0;var R=Array.isArray,P={current:null},j={current:null},O={transition:null},S={ReactCurrentDispatcher:P,ReactCurrentCache:j,ReactCurrentBatchConfig:O,ReactCurrentOwner:{current:null}},E=Object.prototype.hasOwnProperty,w=S.ReactCurrentOwner;function T(e,t,r){var o,u={},l=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(l=\"\"+t.key),t)E.call(t,o)&&\"key\"!==o&&\"ref\"!==o&&\"__self\"!==o&&\"__source\"!==o&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=r;else if(1<i){for(var c=Array(i),s=0;s<i;s++)c[s]=arguments[s+2];u.children=c}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:n,type:e,key:l,ref:a,props:u,_owner:w.current}}function M(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===n}var x=/\\/+/g;function C(e,t){var n,r;return\"object\"==typeof e&&null!==e&&null!=e.key?(n=\"\"+e.key,r={\"=\":\"=0\",\":\":\"=2\"},\"$\"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function A(){}function N(e,t,o){if(null==e)return e;var u=[],l=0;return!function e(t,o,u,l,a){var i,c,s,f=typeof t;(\"undefined\"===f||\"boolean\"===f)&&(t=null);var h=!1;if(null===t)h=!0;else switch(f){case\"string\":case\"number\":h=!0;break;case\"object\":switch(t.$$typeof){case n:case r:h=!0;break;case d:return e((h=t._init)(t._payload),o,u,l,a)}}if(h)return a=a(t),h=\"\"===l?\".\"+C(t,0):l,R(a)?(u=\"\",null!=h&&(u=h.replace(x,\"$&/\")+\"/\"),e(a,o,u,\"\",function(e){return e})):null!=a&&(M(a)&&(i=a,c=u+(!a.key||t&&t.key===a.key?\"\":(\"\"+a.key).replace(x,\"$&/\")+\"/\")+h,a={$$typeof:n,type:i.type,key:c,ref:i.ref,props:i.props,_owner:i._owner}),o.push(a)),1;h=0;var y=\"\"===l?\".\":l+\":\";if(R(t))for(var _=0;_<t.length;_++)f=y+C(l=t[_],_),h+=e(l,o,u,f,a);else if(\"function\"==typeof(_=null===(s=t)||\"object\"!=typeof s?null:\"function\"==typeof(s=p&&s[p]||s[\"@@iterator\"])?s:null))for(t=_.call(t),_=0;!(l=t.next()).done;)f=y+C(l=l.value,_++),h+=e(l,o,u,f,a);else if(\"object\"===f){if(\"function\"==typeof t.then)return e(function(e){switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason;default:switch(\"string\"==typeof e.status?e.then(A,A):(e.status=\"pending\",e.then(function(t){\"pending\"===e.status&&(e.status=\"fulfilled\",e.value=t)},function(t){\"pending\"===e.status&&(e.status=\"rejected\",e.reason=t)})),e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason}}throw e}(t),o,u,l,a);throw Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===(o=String(t))?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":o)+\"). If you meant to render a collection of children, use an array instead.\")}return h}(e,u,\"\",\"\",function(e){return t.call(o,e,l++)}),u}function D(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function I(){return new WeakMap}function U(){return{s:0,v:void 0,o:null,p:null}}function k(){}var F=\"function\"==typeof reportError?reportError:function(e){console.error(e)};t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!M(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},t.Component=v,t.Fragment=o,t.Profiler=l,t.PureComponent=g,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},t.cache=function(e){return function(){var t=j.current;if(!t)return e.apply(null,arguments);var n=t.getCacheForType(I);void 0===(t=n.get(e))&&(t=U(),n.set(e,t)),n=0;for(var r=arguments.length;n<r;n++){var o=arguments[n];if(\"function\"==typeof o||\"object\"==typeof o&&null!==o){var u=t.o;null===u&&(t.o=u=new WeakMap),void 0===(t=u.get(o))&&(t=U(),u.set(o,t))}else null===(u=t.p)&&(t.p=u=new Map),void 0===(t=u.get(o))&&(t=U(),u.set(o,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var l=e.apply(null,arguments);return(n=t).s=1,n.v=l}catch(e){throw(l=t).s=2,l.v=e,e}}},t.cloneElement=function(e,t,r){if(null==e)throw Error(\"The argument must be a React element, but you passed \"+e+\".\");var o=y({},e.props),u=e.key,l=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,a=w.current),void 0!==t.key&&(u=\"\"+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(c in t)E.call(t,c)&&\"key\"!==c&&\"ref\"!==c&&\"__self\"!==c&&\"__source\"!==c&&(o[c]=void 0===t[c]&&void 0!==i?i[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){i=Array(c);for(var s=0;s<c;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:n,type:e.type,key:u,ref:l,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=M,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition,n=new Set;O.transition={_callbacks:n};var r=O.transition;try{var o=e();\"object\"==typeof o&&null!==o&&\"function\"==typeof o.then&&(n.forEach(function(e){return e(r,o)}),o.then(k,F))}catch(e){F(e)}finally{O.transition=t}},t.unstable_useCacheRefresh=function(){return P.current.useCacheRefresh()},t.use=function(e){return P.current.use(e)},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return P.current.useDeferredValue(e,t)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useOptimistic=function(e,t){return P.current.useOptimistic(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version=\"18.3.0-canary-14898b6a9-20240318\"},2265:function(e,t,n){\"use strict\";e.exports=n(17869)},57437:function(e,t,n){\"use strict\";e.exports=n(30622)},93449:function(e,t,n){\"use strict\";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(\"attempted to use private field on non-instance\");return e}n.r(t),n.d(t,{_:function(){return r},_class_private_field_loose_base:function(){return r}})},57614:function(e,t,n){\"use strict\";n.r(t),n.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var r=0;function o(e){return\"__private_\"+r+++\"_\"+e}},99920:function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}n.r(t),n.d(t,{_:function(){return r},_interop_require_default:function(){return r}})},41452:function(e,t,n){\"use strict\";function r(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(\"default\"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}n.r(t),n.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/26.1d107b0aeb7c14be.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{35026:function(e,t,a){a.d(t,{offchainLookup:function(){return w},offchainLookupSignature:function(){return m}});var r=a(12994),s=a(47499),n=a(48926),o=a(94290);class c extends n.G{constructor({callbackSelector:e,cause:t,data:a,extraData:r,sender:s,urls:n}){super(t.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",n&&[\"  Gateway URL(s):\",...n.map(e=>`    ${(0,o.Gr)(e)}`)],`  Sender: ${s}`,`  Data: ${a}`,`  Callback selector: ${e}`,`  Extra data: ${r}`].flat()}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"OffchainLookupError\"})}}class i extends n.G{constructor({result:e,url:t}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${(0,o.Gr)(t)}`,`Response: ${(0,s.P)(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"OffchainLookupResponseMalformedError\"})}}class u extends n.G{constructor({sender:e,to:t}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"OffchainLookupSenderMismatchError\"})}}var l=a(4456),f=a(71108),d=a(39480),p=a(65937),h=a(53932),y=a(40369);let m=\"0x556f1830\",b={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]};async function w(e,{blockNumber:t,blockTag:a,data:s,to:n}){let{args:o}=(0,f.p)({data:s,abi:[b]}),[i,l,y,m,w]=o,{ccipRead:k}=e,O=k&&\"function\"==typeof k?.request?k.request:g;try{if(!(0,p.E)(n,i))throw new u({sender:i,to:n});let s=await O({data:y,sender:i,urls:l}),{data:o}=await (0,r.R)(e,{blockNumber:t,blockTag:a,data:(0,h.zo)([m,(0,d.E)([{type:\"bytes\"},{type:\"bytes\"}],[s,w])]),to:n});return o}catch(e){throw new c({callbackSelector:m,cause:e,data:s,extraData:w,sender:i,urls:l})}}async function g({data:e,sender:t,urls:a}){let r=Error(\"An unknown error occurred.\");for(let n=0;n<a.length;n++){let o=a[n],c=o.includes(\"{data}\")?\"GET\":\"POST\",u=\"POST\"===c?{data:e,sender:t}:void 0;try{let a;let n=await fetch(o.replace(\"{sender}\",t).replace(\"{data}\",e),{body:JSON.stringify(u),method:c});if(a=n.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?(await n.json()).data:await n.text(),!n.ok){r=new l.Gg({body:u,details:a?.error?(0,s.P)(a.error):n.statusText,headers:n.headers,status:n.status,url:o});continue}if(!(0,y.v)(a)){r=new i({result:a,url:o});continue}return a}catch(e){r=new l.Gg({body:u,details:e.message,url:o})}}throw r}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/318.67461aab1aa569d4.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[318],{11481:function(e,t,s){s.d(t,{ConfigCtrl:function(){return O},zv:function(){return b},uA:function(){return v},ExplorerCtrl:function(){return H},jb:function(){return z},OptionsCtrl:function(){return C},AV:function(){return g},ThemeCtrl:function(){return Y},ToastCtrl:function(){return ee}}),Symbol();let r=Symbol(),o=Object.getPrototypeOf,a=new WeakMap,n=e=>e&&(a.has(e)?a.get(e):o(e)===Object.prototype||o(e)===Array.prototype),l=e=>n(e)&&e[r]||null,i=(e,t=!0)=>{a.set(e,t)},c=e=>\"object\"==typeof e&&null!==e,d=new WeakMap,u=new WeakSet,[p]=((e=Object.is,t=(e,t)=>new Proxy(e,t),s=e=>c(e)&&!u.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason;default:throw e}},o=new WeakMap,a=(e,t,s=r)=>{let n=o.get(e);if((null==n?void 0:n[0])===t)return n[1];let l=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return i(l,!0),o.set(e,[t,l]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(l,t))return;let r=Reflect.get(e,t),o={value:r,enumerable:!0,configurable:!0};if(u.has(r))i(r,!1);else if(r instanceof Promise)delete o.value,o.get=()=>s(r);else if(d.has(r)){let[e,t]=d.get(r);o.value=a(e,t(),s)}Object.defineProperty(l,t,o)}),Object.preventExtensions(l)},n=new WeakMap,p=[1,1],f=r=>{if(!c(r))throw Error(\"object required\");let o=n.get(r);if(o)return o;let i=p[0],h=new Set,m=(e,t=++p[0])=>{i!==t&&(i=t,h.forEach(s=>s(e,t)))},g=p[1],b=(e=++p[1])=>(g===e||h.size||(g=e,v.forEach(([t])=>{let s=t[1](e);s>i&&(i=s)})),i),y=e=>(t,s)=>{let r=[...t];r[1]=[e,...r[1]],m(r,s)},v=new Map,w=(e,t)=>{if(v.has(e))throw Error(\"prop listener already exists\");if(h.size){let s=t[3](y(e));v.set(e,[t,s])}else v.set(e,[t])},C=e=>{var t;let s=v.get(e);s&&(v.delete(e),null==(t=s[1])||t.call(s))},I=e=>{h.add(e),1===h.size&&v.forEach(([e,t],s)=>{if(t)throw Error(\"remove already exists\");let r=e[3](y(s));v.set(s,[e,r])});let t=()=>{h.delete(e),0===h.size&&v.forEach(([e,t],s)=>{t&&(t(),v.set(s,[e]))})};return t},O=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),W={deleteProperty(e,t){let s=Reflect.get(e,t);C(t);let r=Reflect.deleteProperty(e,t);return r&&m([\"delete\",[t],s]),r},set(t,r,o,a){let i=Reflect.has(t,r),p=Reflect.get(t,r,a);if(i&&(e(p,o)||n.has(o)&&e(p,n.get(o))))return!0;C(r),c(o)&&(o=l(o)||o);let h=o;if(o instanceof Promise)o.then(e=>{o.status=\"fulfilled\",o.value=e,m([\"resolve\",[r],e])}).catch(e=>{o.status=\"rejected\",o.reason=e,m([\"reject\",[r],e])});else{!d.has(o)&&s(o)&&(h=f(o));let e=!u.has(h)&&d.get(h);e&&w(r,e)}return Reflect.set(t,r,h,a),m([\"set\",[r],o,p]),!0}},E=t(O,W);n.set(r,E);let j=[O,b,a,I];return d.set(E,j),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);\"value\"in t&&(E[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(O,e,t)}),E})=>[f,d,u,e,t,s,r,o,a,n,p])();function f(e={}){return p(e)}function h(e,t,s){let r;let o=d.get(e);o||console.warn(\"Please use proxy object\");let a=[],n=o[3],l=!1,i=n(e=>{if(a.push(e),s){t(a.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,l&&t(a.splice(0))}))});return l=!0,()=>{l=!1,i()}}let m=f({history:[\"ConnectWallet\"],view:\"ConnectWallet\",data:void 0}),g={state:m,subscribe:e=>h(m,()=>e(m)),push(e,t){e!==m.view&&(m.view=e,t&&(m.data=t),m.history.push(e))},reset(e){m.view=e,m.history=[e]},replace(e){m.history.length>1&&(m.history[m.history.length-1]=e,m.view=e)},goBack(){if(m.history.length>1){m.history.pop();let[e]=m.history.slice(-1);m.view=e}},setData(e){m.data=e}},b={WALLETCONNECT_DEEPLINK_CHOICE:\"WALLETCONNECT_DEEPLINK_CHOICE\",WCM_VERSION:\"WCM_VERSION\",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>\"u\">typeof window&&!!(window.matchMedia(\"(pointer:coarse)\").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>b.isMobile()&&navigator.userAgent.toLowerCase().includes(\"android\"),isIos(){let e=navigator.userAgent.toLowerCase();return b.isMobile()&&(e.includes(\"iphone\")||e.includes(\"ipad\"))},isHttpUrl:e=>e.startsWith(\"http://\")||e.startsWith(\"https://\"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(b.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes(\"://\")||(r=e.replaceAll(\"/\",\"\").replaceAll(\":\",\"\"),r=`${r}://`),r.endsWith(\"/\")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},formatUniversalUrl(e,t,s){if(!b.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith(\"/\")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,\"noreferrer noopener\")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(b.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info(\"Unable to set WalletConnect deep link\")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split(\"?\");localStorage.setItem(b.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:\"Android\"}))}catch{console.info(\"Unable to set WalletConnect android deep link\")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(b.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info(\"Unable to remove WalletConnect deep link\")}},setModalVersionInStorage(){try{\"u\">typeof localStorage&&localStorage.setItem(b.WCM_VERSION,\"2.6.2\")}catch{console.info(\"Unable to set Web3Modal version in storage\")}},getWalletRouterData(){var e;let t=null==(e=g.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing \"Wallet\" view data');return t}},y=f({enabled:\"u\">typeof location&&(location.hostname.includes(\"localhost\")||location.protocol.includes(\"https\")),userSessionId:\"\",events:[],connectedWalletId:void 0}),v={state:y,subscribe:e=>h(y.events,()=>e(function(e,t){let s=d.get(e);s||console.warn(\"Please use proxy object\");let[r,o,a]=s;return a(r,o(),void 0)}(y.events[y.events.length-1]))),initialize(){y.enabled&&\"u\">typeof(null==crypto?void 0:crypto.randomUUID)&&(y.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){y.connectedWalletId=e},click(e){if(y.enabled){let t={type:\"CLICK\",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}},track(e){if(y.enabled){let t={type:\"TRACK\",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}},view(e){if(y.enabled){let t={type:\"VIEW\",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}}},w=f({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),C={state:w,subscribe:e=>h(w,()=>e(w)),setChains(e){w.chains=e},setWalletConnectUri(e){w.walletConnectUri=e},setIsCustomDesktop(e){w.isCustomDesktop=e},setIsCustomMobile(e){w.isCustomMobile=e},setIsDataLoaded(e){w.isDataLoaded=e},setIsUiLoaded(e){w.isUiLoaded=e},setIsAuth(e){w.isAuth=e}},I=f({projectId:\"\",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),O={state:I,subscribe:e=>h(I,()=>e(I)),setConfig(e){var t,s;v.initialize(),C.setChains(e.chains),C.setIsAuth(!!e.enableAuthMode),C.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),C.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),b.setModalVersionInStorage(),Object.assign(I,e)}};var W=Object.defineProperty,E=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,A=(e,t,s)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,k=(e,t)=>{for(var s in t||(t={}))j.call(t,s)&&A(e,s,t[s]);if(E)for(var s of E(t))L.call(t,s)&&A(e,s,t[s]);return e};let M=\"https://explorer-api.walletconnect.com\",U=\"js-2.6.2\";async function D(e,t){let s=k({sdkType:\"wcm\",sdkVersion:U},t),r=new URL(e,M);return r.searchParams.append(\"projectId\",O.state.projectId),Object.entries(s).forEach(([e,t])=>{t&&r.searchParams.append(e,String(t))}),(await fetch(r)).json()}let P={getDesktopListings:async e=>D(\"/w3m/v1/getDesktopListings\",e),getMobileListings:async e=>D(\"/w3m/v1/getMobileListings\",e),getAllListings:async e=>D(\"/w3m/v1/getAllListings\",e),getWalletImageUrl:e=>`${M}/w3m/v1/getWalletImage/${e}?projectId=${O.state.projectId}&sdkType=wcm&sdkVersion=${U}`,getAssetImageUrl:e=>`${M}/w3m/v1/getAssetImage/${e}?projectId=${O.state.projectId}&sdkType=wcm&sdkVersion=${U}`};var S=Object.defineProperty,N=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,R=(e,t,s)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,_=(e,t)=>{for(var s in t||(t={}))T.call(t,s)&&R(e,s,t[s]);if(N)for(var s of N(t))x.call(t,s)&&R(e,s,t[s]);return e};let $=b.isMobile(),V=f({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),H={state:V,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=O.state;if(\"NONE\"===e||\"ALL\"===t&&!e)return V.recomendedWallets;if(b.isArray(e)){let t={recommendedIds:e.join(\",\")},{listings:s}=await P.getAllListings(t),r=Object.values(s);r.sort((t,s)=>e.indexOf(t.id)-e.indexOf(s.id)),V.recomendedWallets=r}else{let{chains:e,isAuth:s}=C.state,r=e?.join(\",\"),o=b.isArray(t),a={page:1,sdks:s?\"auth_v1\":void 0,entries:b.RECOMMENDED_WALLET_AMOUNT,chains:r,version:2,excludedIds:o?t.join(\",\"):void 0},{listings:n}=$?await P.getMobileListings(a):await P.getDesktopListings(a);V.recomendedWallets=Object.values(n)}return V.recomendedWallets},async getWallets(e){let t=_({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=O.state,{recomendedWallets:o}=V;if(\"ALL\"===r)return V.wallets;o.length?t.excludedIds=o.map(e=>e.id).join(\",\"):b.isArray(s)&&(t.excludedIds=s.join(\",\")),b.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(\",\")),C.state.isAuth&&(t.sdks=\"auth_v1\");let{page:a,search:n}=e,{listings:l,total:i}=$?await P.getMobileListings(t):await P.getDesktopListings(t),c=Object.values(l),d=n?\"search\":\"wallets\";return V[d]={listings:[...V[d].listings,...c],total:i,page:a??1},{listings:c,total:i}},getWalletImageUrl:e=>P.getWalletImageUrl(e),getAssetImageUrl:e=>P.getAssetImageUrl(e),resetSearch(){V.search={listings:[],total:0,page:1}}},K=f({open:!1}),z={state:K,subscribe:e=>h(K,()=>e(K)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:r}=C.state;if(b.removeWalletConnectDeepLink(),C.setWalletConnectUri(e?.uri),C.setChains(e?.chains),g.reset(\"ConnectWallet\"),s&&r)K.open=!0,t();else{let e=setInterval(()=>{let s=C.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),K.open=!0,t())},200)}}),close(){K.open=!1}};var B=Object.defineProperty,J=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,G=(e,t,s)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Q=(e,t)=>{for(var s in t||(t={}))q.call(t,s)&&G(e,s,t[s]);if(J)for(var s of J(t))F.call(t,s)&&G(e,s,t[s]);return e};let X=f({themeMode:\"u\">typeof matchMedia&&matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}),Y={state:X,subscribe:e=>h(X,()=>e(X)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&(X.themeMode=t),s&&(X.themeVariables=Q({},s))}},Z=f({open:!1,message:\"\",variant:\"success\"}),ee={state:Z,subscribe:e=>h(Z,()=>e(Z)),openToast(e,t){Z.open=!0,Z.message=e,Z.variant=t},closeToast(){Z.open=!1}}},55318:function(e,t,s){s.d(t,{WalletConnectModal:function(){return o}});var r=s(11481);class o{constructor(e){this.openModal=r.jb.open,this.closeModal=r.jb.close,this.subscribeModal=r.jb.subscribe,this.setTheme=r.ThemeCtrl.setThemeConfig,r.ThemeCtrl.setThemeConfig(e),r.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if(\"u\">typeof window){await s.e(866).then(s.bind(s,80866));let e=document.createElement(\"wcm-modal\");document.body.insertAdjacentElement(\"beforeend\",e),r.OptionsCtrl.setIsUiLoaded(!0)}}}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/385cb88d-d4d0cd34753b4b85.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{75027:function(t,c,n){n.d(c,{U6L:function(){return u},t00:function(){return a}});var r=n(91810);function a(t){return(0,r.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M84.41 106c-15.63.1-27.67 13.8-25.69 29.3 16 124 16 117.4 0 241.4-2.54 19.8 17.33 35 35.79 27.3L361.5 292.9v98.8c0 7.9 8.9 14.2 20 14.3h52c11.1-.1 20-6.4 20-14.3V120.2c-.1-7.8-9-14.1-20-14.2h-52c-11 .1-19.9 6.4-20 14.2v98.9L94.51 108c-3.2-1.3-6.63-2-10.1-2z\"},child:[]}]})(t)}function u(t){return(0,r.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M427.6 106c15.6.1 27.7 13.8 25.7 29.3-16 124-16 117.4 0 241.4 2.5 19.8-17.4 35-35.8 27.3l-267-111.1v98.8c0 7.9-8.9 14.2-20 14.3H78.49c-11.1-.1-20-6.4-20-14.3V120.2c.1-7.8 9-14.1 20-14.2h52.01c11 .1 19.9 6.4 20 14.2v98.9l267-111.1c3.2-1.3 6.6-2 10.1-2z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/3ab9597f-9ca74e94c08af310.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{76437:function(e,t,r){r.d(t,{rB:function(){return sH},rr:function(){return pt},sv:function(){return n$}});var n=r(89005),i=r(68893),a=r(53989),o=r(2265),s=r(63858),l=r(58118),c=r(37786),d=r(3754),h=r(99434),u=r(40739),p=r(18482),m=r(57437),g=r(93925),f=r(20920),y=r(9784),w=r(36393),x=r(86080),v=r(13421),C=r(89649),b=r(13130),_=r(58249),j=r(44785),k=r(9648),E=r(59956),A=r(10506),S=r(20402),T=r(66514),P=r(84573),N=r(82238),R=r(79314),M=r(39422),O=r(92009),I=r(47899),W=r(14340),L=r(61652),F=r(54515),U=r(11853),D=r(25032),Z=r(64728),z=r(52985),$=r(47193),H=r(69992),B=r(94023),q=r.n(B),V=r(4811),G=r(92861),K=r(76218),Y=r(87335),Q=r(57470),X=r(89651),J=r(75514),ee=r(19783),et=r(58789),er=r(85130),en=r(50607),ei=r(22594),ea=r(75752),eo=r(58900),es=r(33009),el=r(12560),ec=r(90196),ed=r(13934),eh=r(44011),eu=r(64954),ep=r(59808),em=r(24609),eg=r(75006),ef=r(24967),ey=r(51834),ew=r(78299),ex=r(26930),ev=r(59488),eC=r(54621),eb=r(27762),e_=r(29765),ej=r(24167),ek=r(5620),eE=r(74634),eA=r(70882),eS=r(22091),eT=r(2825),eP=r(68906),eN=r(84351),eR=r(63722),eM=r(62957),eO=r(49601),eI=r(99442),eW=r(5),eL=r(28781),eF=r(43408),eU=r(28257),eD=r(59226),eZ=r(60943),ez=(e,t,r)=>{if(!t.has(e))throw TypeError(\"Cannot \"+r)},e$=(e,t,r)=>(ez(e,t,\"read from private field\"),r?r.call(e):t.get(e)),eH=(e,t,r)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,r)},eB=(e,t,r,n)=>(ez(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r),eq=(e,t,r)=>(ez(e,t,\"access private method\"),r),eV=class extends Error{constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:\"\"}: ${this.message}${this.cause?` [cause: ${this.cause}]`:\"\"}`}},eG=class extends eV{constructor(e,t,r,n,i){super(r,n,i),this.type=e,this.status=t}},eK=class extends eV{constructor(e,t,r){super(e,t,r),this.type=\"client_error\"}},eY=class extends eK{constructor(){super(\"Request timed out\",void 0,\"client_request_timeout\")}},eQ=class extends eV{constructor(e,t,r){super(e,t,r),this.type=\"connector_error\"}},eX=e=>{if(e instanceof eV)return e;if(!(e instanceof h.F))return eJ(e);if(!e.response)return new eG(\"api_error\",null,e.message,e);let{type:t,message:r,error:n,code:i}=e.data;return new eG(t||\"ApiError\",e.response.status,r||n,e,i)},eJ=e=>e instanceof eV?e:e instanceof Error?new eK(e.message,e):new eK(`Internal error: ${e}`),e0=class extends eK{constructor(){super(\"Method called before `ready`. Ensure you wait until `ready` is true before calling.\")}},e1=class extends eK{constructor(e=\"Embedded wallet error\",t){super(e,t,\"unknown_embedded_wallet_error\")}},e2=class extends eK{constructor(e=\"User must be authenticated\"){super(e,void 0,\"must_be_authenticated\")}},e3=class extends eK{constructor(e){super(\"This application is in development mode and must be upgraded to production to log in new users.\",e,\"max_accounts_reached\")}},e4=\"/api/v1/sessions\",e5=\"/api/v1/sessions/logout\",e6=\"/api/v1/sessions/fork/recover\",e7=\"/api/v1/oauth/init\",e8=\"/api/v1/oauth/link\",e9=\"/api/v1/analytics_events\",te=class{constructor(e){this.meta={token:e}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{let e=await this.api.post(\"/api/v1/custom_jwt_account/authenticate\",{token:this.meta.token});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){throw Error(\"Unimplemented\")}},tt=class{constructor(e,t){this.meta={email:e,captchaToken:t}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.email||!this.meta.emailCode)throw new eK(\"Email and email code must be set prior to calling authenticate.\");try{let e=await this.api.post(\"/api/v1/passwordless/authenticate\",{email:this.meta.email,code:this.meta.emailCode});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.email||!this.meta.emailCode)throw new eK(\"Email and email code must be set prior to calling authenticate.\");try{return await this.api.post(\"/api/v1/passwordless/link\",{email:this.meta.email,code:this.meta.emailCode})}catch(e){throw eX(e)}}async sendCodeEmail(e,t){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(e&&(this.meta.email=e),t&&(this.meta.captchaToken=t),!this.meta.email)throw new eK(\"Email must be set when initialzing authentication.\");try{return await this.api.post(\"/api/v1/passwordless/init\",{email:this.meta.email,token:this.meta.captchaToken})}catch(e){throw eX(e)}}},tr=class extends tt{constructor(e,t,r){super(t,r),this.meta={email:t,captchaToken:r,oldAddress:e}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.email||!this.meta.emailCode||!this.meta.oldAddress)throw new eK(\"Email, email code, and an old email address must be set prior to calling update.\");try{return await this.api.post(\"/api/v1/passwordless/update\",{oldAddress:this.meta.oldAddress,newAddress:this.meta.email,code:this.meta.emailCode})}catch(e){throw eX(e)}}},tn=class{constructor(){this._cache={}}get(e){return this._cache[e]}put(e,t){void 0!==t?this._cache[e]=t:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}},ti=class{get(e){let t=localStorage.getItem(e);return null===t?void 0:JSON.parse(t)}put(e,t){void 0!==t?localStorage.setItem(e,JSON.stringify(t)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map(([e])=>e)}};function ta(){try{let e=\"privy:__session_storage__test\",t=new ti;return t.put(e,\"blobby\"),t.del(e),!0}catch{return!1}}var to=\"u\">typeof window&&window.localStorage?new ti:new tn,ts=e=>e.isApexWallet?\"Apex Wallet\":e.isAvalanche?\"Core Wallet\":e.isBackpack?\"Backpack\":e.isBifrost?\"Bifrost Wallet\":e.isBitKeep?\"BitKeep\":e.isBitski?\"Bitski\":e.isBlockWallet?\"BlockWallet\":e.isBraveWallet?\"Brave Wallet\":e.isClover?\"Clover\":e.isCoin98?\"Coin98 Wallet\":e.isCoinbaseWallet?\"Coinbase Wallet\":e.isDawn?\"Dawn Wallet\":e.isDefiant?\"Defiant\":e.isDesig?\"Desig Wallet\":e.isEnkrypt?\"Enkrypt\":e.isExodus?\"Exodus\":e.isFordefi?\"Fordefi\":e.isFrame?\"Frame\":e.isFrontier?\"Frontier Wallet\":e.isGamestop?\"GameStop Wallet\":e.isHaqqWallet?\"HAQQ Wallet\":e.isHyperPay?\"HyperPay Wallet\":e.isImToken?\"ImToken\":e.isHaloWallet?\"Halo Wallet\":e.isKuCoinWallet?\"KuCoin Wallet\":e.isMathWallet?\"MathWallet\":e.isNovaWallet?\"Nova Wallet\":e.isOkxWallet||e.isOKExWallet?\"OKX Wallet\":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?\"1inch Wallet\":e.isOneKey?\"OneKey Wallet\":e.isOpera?\"Opera\":e.isPhantom?\"Phantom\":e.isPortal?\"Ripio Portal\":e.isRabby?\"Rabby Wallet\":e.isRainbow?\"Rainbow\":e.isSafePal?\"SafePal Wallet\":e.isStatus?\"Status\":e.isSubWallet?\"SubWallet\":e.isTalisman?\"Talisman\":e.isTally||e.isTaho?\"Taho\":e.isTokenPocket?\"TokenPocket\":e.isTokenary?\"Tokenary\":e.isTrust||e.isTrustWallet?\"Trust Wallet\":e.isTTWallet?\"TTWallet\":e.isXDEFI?\"XDEFI Wallet\":e.isZeal?\"Zeal\":e.isZerion?\"Zerion\":e.isMetaMask?\"MetaMask\":void 0,tl=(e,t)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!t)return!0;if(e.isBraveWallet&&!e._events&&!e._state||\"MetaMask\"!==ts(e))return!1;if(e.providers){for(let t of e.providers)if(!tl(t))return!1}return!0},tc=()=>!!(\"phantom\"in window&&window?.phantom?.ethereum?.isPhantom),td=()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers){for(let t of e.ethereum.providers)if(t&&t.isCoinbaseWallet)return!0}return!1},th=(e,t)=>{let r=[],n=[];for(let[i,a]of e.entries())i<t?r.push(a):n.push(a);return[r,n]},tu=e=>!!String(e).toLowerCase().match(/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/),tp=(e,t)=>{let r=e.slice(0),n=[];for(;r.length;)n.push(r.splice(0,t));return n},tm=(e,t=3,r=4)=>{if(!e)return\"\";if(t+r+2+3>=e.length)return e;let n=e.slice(0,2+t),i=e.slice(e.length-r,e.length);return`${n}...${i}`},tg=e=>new Promise(t=>setTimeout(t,e)),tf=(e,t={})=>{let r=t.delayMs||150,n=t.maxAttempts||270;return new Promise(async(i,a)=>{let o=!1,s=0;for(;!o&&s<n;){if(t.abortSignal?.aborted)return;e().then(e=>{o=!0,i(e)},(...e)=>{o=!0,a(...e)}),s+=1,await tg(r)}o||a(Error(\"Exceeded max attempts before resolving function\"))})},ty=(e,t,r={},n={})=>{let i=new URL(t,e);for(let[e,t]of Object.entries(r))void 0!==t&&i.searchParams.set(e,t);let a=Object.entries(n);if(a.length>0){let e=new URLSearchParams;for(let[t,r]of a)e.append(t,r);i.hash=e.toString()}return i.href},tw=e=>e.replace(/([\\u2700-\\u27BF]|[\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2011-\\u26FF]|\\uD83E[\\uDD10-\\uDDFF])/g,\"\"),tx=e=>\"string\"==typeof e?e:\"0x\"+e.toString(16);async function tv(e,t,r,n=3e3){let i=!1,a=window;return new Promise(o=>{a.ethereum?s():(window.addEventListener(\"ethereum#initialized\",s,{once:!0}),setTimeout(()=>{s()},n));function s(){if(i)return;i=!0,window.removeEventListener(\"ethereum#initialized\",s);let n=e.getProviders();console.debug(\"Detected injected providers:\",n.map(e=>e.info));let a=[];for(let e of n)t.includes(\"coinbase_wallet\")&&\"com.coinbase.wallet\"===e.info.rdns||a.push({type:e.info.name.toLowerCase().replace(/\\s/g,\"_\"),eip6963InjectedProvider:e});for(let e of function(){let e=window,t=e.ethereum;if(!t)return[];let r=[];if(t.providers?.length)for(let e of t.providers)e&&r.push(e);return r.push(e.ethereum),r}()){let t=ts(e);if(!n.some(e=>e.info.name===t)){if(tl(e,!0)&&!a.find(e=>\"metamask\"===e.type)){a.push({type:\"metamask\",legacyInjectedProvider:e});continue}if(\"Phantom\"===t&&!a.find(e=>\"phantom\"===e.type)){a.push({type:\"phantom\",legacyInjectedProvider:e});continue}if(\"Coinbase Wallet\"===t&&!a.find(e=>\"coinbase_wallet\"===e.type&&r?.coinbaseWallet?.connectionOptions!==\"smartWalletOnly\")){a.push({type:\"coinbase_wallet\",legacyInjectedProvider:e});continue}a.find(e=>\"unknown_browser_extension\"===e.type)||a.push({type:\"unknown_browser_extension\",legacyInjectedProvider:e})}}o(a)}})}function tC(e){return`eip155:${String(Number(e))}`}var tb=(e,t,r,n)=>{let i=Number(e),a=t.find(e=>e.id===i);if(!a)throw new eQ(`Unsupported chainId ${e}`,4901);return t_(a,r,n)},t_=(e,t,r)=>{let n=e.id,i=Number(e.id),a;if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])a=e.rpcUrls.privyWalletOverride.http[0];else if(t.rpcUrls&&t.rpcUrls[i])a=t.rpcUrls[i];else if(e.rpcUrls.privy?.http[0]){let t=new URL(e.rpcUrls.privy.http[0]);t.searchParams.append(\"privyAppId\",r),a=t.toString()}else a=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!a)throw new eQ(`No RPC url found for ${n}`);return a},tj=(e,t)=>{let r=Number(e),n=t.find(e=>e.id===r);if(!n)throw new eQ(`Unsupported chainId ${e}`,4901);return n.blockExplorers?.default.url},tk=(e,t,r,n)=>{let i=Number(e),a=t.find(e=>e.id===i);if(!a)throw new eQ(`Unsupported chainId ${e}`,4901);return new u.c(a.rpcUrls.privyWalletOverride&&a.rpcUrls.privyWalletOverride.http[0]?a.rpcUrls.privyWalletOverride.http[0]:r.rpcUrls&&r.rpcUrls[i]?r.rpcUrls[i]:a.rpcUrls.privy?.http[0]?{url:a.rpcUrls.privy.http[0],headers:{\"privy-app-id\":n.appId}}:a.rpcUrls.public?.http[0]?a.rpcUrls.public.http[0]:a.rpcUrls.default?.http[0])},tE=e=>{let t={name:\"string\",version:\"string\",chainId:\"uint256\",verifyingContract:\"address\",salt:\"bytes32\"},r=e.types.EIP712Domain??Object.entries(e.domain).map(([e,r])=>{if(null!=r&&\"string\"==typeof e&&e in t)return{name:e,type:t[e]}}).filter(e=>void 0!==e);return{...e,types:{...e.types,EIP712Domain:r}}},tA=e=>{let t;try{t=new URL(e).hostname}catch{return}for(let[e,r]of Object.entries(tS))if(t.includes(r.hostname))return{walletClientType:e,entry:r}},tS={metamask:{id:\"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96\",displayName:\"MetaMask\",hostname:\"metamask.io\",mobile:{native:\"metamask://\",universal:\"https://metamask.app.link\"}},trust:{id:\"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0\",displayName:\"Trust\",hostname:\"trustwallet.com\",mobile:{universal:\"https://link.trustwallet.com\"}},safe:{id:\"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f\",displayName:\"Safe\",hostname:\"safe.global\",mobile:{universal:\"https://app.safe.global/\"}},rainbow:{id:\"1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369\",displayName:\"Rainbow\",hostname:\"rainbow.me\",mobile:{native:\"rainbow://\",universal:\"https://rnbwapp.com\"}},uniswap:{id:\"c03dfee351b6fcc421b4494ea33b9d4b92a984f87aa76d1663bb28705e95034a\",displayName:\"Uniswap\",hostname:\"uniswap.org\",mobile:{universal:\"https://uniswap.org/app\",native:\"uniswap://\"}},zerion:{id:\"ecc4036f814562b41a5268adc86270fba1365471402006302e70169465b7ac18\",displayName:\"Zerion\",hostname:\"zerion.io\",mobile:{native:\"zerion://\",universal:\"https://wallet.zerion.io\"}},argent:{id:\"bc949c5d968ae81310268bf9193f9c9fb7bb4e1283e1284af8f2bd4992535fd6\",displayName:\"Argent\",hostname:\"www.argent.xyz\",mobile:{universal:\"https://www.argent.xyz/app\"}},spot:{id:\"74f8092562bd79675e276d8b2062a83601a4106d30202f2d509195e30e19673d\",displayName:\"Spot\",hostname:\"www.spot-wallet.com\",mobile:{universal:\"https://spot.so\"}},omni:{id:\"afbd95522f4041c71dd4f1a065f971fd32372865b416f95a0b1db759ae33f2a7\",displayName:\"Omni\",hostname:\"omni.app\",mobile:{universal:\"https://links.omni.app\"}},cryptocom:{id:\"f2436c67184f158d1beda5df53298ee84abfc367581e4505134b5bcf5f46697d\",displayName:\"Crypto.com\",hostname:\"crypto.com\",mobile:{universal:\"https://wallet.crypto.com\",native:\"dfw://\"}},blockchain:{id:\"84b43e8ddfcd18e5fcb5d21e7277733f9cccef76f7d92c836d0e481db0c70c04\",displayName:\"Blockchain\",hostname:\"www.blockchain.com\",mobile:{universal:\"https://www.blockchain.com\"}},safepal:{id:\"0b415a746fb9ee99cce155c2ceca0c6f6061b1dbca2d722b3ba16381d0562150\",displayName:\"SafePal\",hostname:\"safepal.com\",mobile:{universal:\"https://link.safepal.io\"}},bitkeep:{id:\"38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662\",displayName:\"BitKeep\",hostname:\"bitkeep.com\",mobile:{universal:\"https://bkapp.vip\"}},zengo:{id:\"9414d5a85c8f4eabc1b5b15ebe0cd399e1a2a9d35643ab0ad22a6e4a32f596f0\",displayName:\"ZenGo\",hostname:\"zengo.com\",mobile:{universal:\"https://get.zengo.com/\"}},\"1inch\":{id:\"c286eebc742a537cd1d6818363e9dc53b21759a1e8e5d9b263d0c03ec7703576\",displayName:\"1inch\",hostname:\"wallet.1inch.io\",mobile:{universal:\"https://wallet.1inch.io/wc/\"}},binance:{id:\"8a0ee50d1f22f6651afcae7eb4253e52a3310b90af5daef78a8c4929a9bb99d4\",displayName:\"Binance\",hostname:\"www.binance.com\",mobile:{universal:\"https://app.binance.com/cedefi\"}},exodus:{id:\"e9ff15be73584489ca4a66f64d32c4537711797e30b6660dbcb71ea72a42b1f4\",displayName:\"Exodus\",hostname:\"exodus.com\",mobile:{universal:\"https://exodus.com/m\"}},mew_wallet:{id:\"f5b4eeb6015d66be3f5940a895cbaa49ef3439e518cd771270e6b553b48f31d2\",displayName:\"MEW wallet\",hostname:\"mewwallet.com\",mobile:{universal:\"https://mewwallet.com\"}},alphawallet:{id:\"138f51c8d00ac7b9ac9d8dc75344d096a7dfe370a568aa167eabc0a21830ed98\",displayName:\"AlphaWallet\",hostname:\"alphawallet.com\",mobile:{universal:\"https://aw.app\"}},keyring_pro:{id:\"47bb07617af518642f3413a201ec5859faa63acb1dd175ca95085d35d38afb83\",displayName:\"KEYRING PRO\",hostname:\"keyring.app\",mobile:{universal:\"https://keyring.app/\"}},mathwallet:{id:\"7674bb4e353bf52886768a3ddc2a4562ce2f4191c80831291218ebd90f5f5e26\",displayName:\"MathWallet\",hostname:\"mathwallet.org\",mobile:{universal:\"https://www.mathwallet.org\"}},unstoppable:{id:\"8308656f4548bb81b3508afe355cfbb7f0cb6253d1cc7f998080601f838ecee3\",displayName:\"Unstoppable\",hostname:\"unstoppabledomains.com\",mobile:{universal:\"https://unstoppabledomains.com/mobile\"}},obvious:{id:\"031f0187049b7f96c6f039d1c9c8138ff7a17fd75d38b34350c7182232cc29aa\",displayName:\"Obvious\",hostname:\"obvious.technology\",mobile:{universal:\"https://wallet.obvious.technology\"}},ambire:{id:\"2c81da3add65899baeac53758a07e652eea46dbb5195b8074772c62a77bbf568\",displayName:\"Ambire\",hostname:\"www.ambire.com\",mobile:{universal:\"https://mobile.ambire.com\"}},internet_money_wallet:{id:\"dd43441a6368ec9046540c46c5fdc58f79926d17ce61a176444568ca7c970dcd\",displayName:\"Internet Money Wallet\",hostname:\"internetmoney.io\",mobile:{universal:\"https://internetmoney.io\"}},coin98:{id:\"2a3c89040ac3b723a1972a33a125b1db11e258a6975d3a61252cd64e6ea5ea01\",displayName:\"Coin98\",hostname:\"coin98.com\",mobile:{universal:\"https://coin98.services\"}},abc_wallet:{id:\"b956da9052132e3dabdcd78feb596d5194c99b7345d8c4bd7a47cabdcb69a25f\",displayName:\"ABC Wallet\",hostname:\"myabcwallet.io\",mobile:{universal:\"https://abcwalletconnect.page.link\"}},arculus_wallet:{id:\"0e4915107da5b3408b38e248f7a710f4529d54cd30e9d12ff0eb886d45c18e92\",displayName:\"Arculus Wallet\",hostname:\"www.getarculus.com\",mobile:{universal:\"https://gw.arculus.co/app\"}},haha:{id:\"719bd888109f5e8dd23419b20e749900ce4d2fc6858cf588395f19c82fd036b3\",displayName:\"HaHa\",hostname:\"www.haha.me\",mobile:{universal:\"https://haha.me\"}},cling_wallet:{id:\"942d0e22a7e6b520b0a03abcafc4dbe156a1fc151876e3c4a842f914277278ef\",displayName:\"Cling Wallet\",hostname:\"clingon.io\",mobile:{universal:\"https://cling.carrieverse.com/apple-app-site-association\"}},broearn:{id:\"8ff6eccefefa7506339201bc33346f92a43118d6ff7d6e71d499d8187a1c56a2\",displayName:\"Broearn\",hostname:\"www.broearn.com\",mobile:{universal:\"https://www.broearn.com/link/wallet/\"}},copiosa:{id:\"07f99a5d9849bb049d74830012b286f8b238e72b0337933ef22b84947409db80\",displayName:\"Copiosa\",hostname:\"copiosa.io\",mobile:{universal:\"https://copiosa.io/action/\"}},burrito_wallet:{id:\"8821748c25de9dbc4f72a691b25a6ddad9d7df12fa23333fd9c8b5fdc14cc819\",displayName:\"Burrito Wallet\",hostname:\"burritowallet.com\",mobile:{universal:\"https://burritowallet.com/wc?uri=\"}},enjin_wallet:{id:\"bdc9433ffdaee55d31737d83b931caa1f17e30666f5b8e03eea794bac960eb4a\",displayName:\"Enjin Wallet\",hostname:\"enjin.io\",mobile:{universal:\"https://deeplink.wallet.enjin.io/\"}},plasma_wallet:{id:\"cbe13eb482c76f1fa401ff4c84d9acd0b8bc9af311ca0620a0b192fb28359b4e\",displayName:\"Plasma Wallet\",hostname:\"plasma-wallet.com\",mobile:{universal:\"https://plasma-wallet.com\"}},avacus:{id:\"94f785c0c8fb8c4f38cd9cd704416430bcaa2137f27e1468782d624bcd155a43\",displayName:\"Avacus\",hostname:\"avacus.cc\",mobile:{universal:\"https://avacus.app.link\"}},bee:{id:\"2cca8c1b0bea04ba37dee4017991d348cdb7b826804ab2bd31073254f345b715\",displayName:\"Bee\",hostname:\"www.beewallet.app\",mobile:{universal:\"https://beewallet.app/wc\"}},pitaka:{id:\"14e5d957c6eb62d3ee8fc6239703ac2d537d7e3552154836ca0beef775f630bc\",displayName:\"Pitaka\",hostname:\"pitaka.io\",mobile:{universal:\"https://app.pitaka.io\"}},pltwallet:{id:\"576c90ceaea34f29ff0104837cf2b2e23d201be43be1433feeb18d375430e1fd\",displayName:\"PLTwallet\",hostname:\"pltwallet.io\",mobile:{universal:\"https://pltwallet.io/\"}},minerva:{id:\"49bb9d698dbdf2c3d4627d66f99dd9fe90bba1eec84b143f56c64a51473c60bd\",displayName:\"Minerva\",hostname:\"minerva.digital\",mobile:{universal:\"https://minerva.digital\"}},kryptogo:{id:\"19418ecfd44963883e4d6abca1adeb2036f3b5ffb9bee0ec61f267a9641f878b\",displayName:\"KryptoGO\",hostname:\"kryptogo.com\",mobile:{universal:\"https://kryptogo.page.link\"}},prema:{id:\"5b8e33346dfb2a532748c247876db8d596734da8977905a27b947ba1e2cf465b\",displayName:\"PREMA\",hostname:\"premanft.com\",mobile:{universal:\"https://premanft.com\"}},slingshot:{id:\"d23de318f0f56038c5edb730a083216ff0cce00c1514e619ab32231cc9ec484b\",displayName:\"Slingshot\",hostname:\"slingshot.finance\",mobile:{universal:\"https://app.slingshot.finance\"}},kriptonio:{id:\"50df7da345f84e5a79aaf617df5167335a4b6751626df2e8a38f07029b3dde7b\",displayName:\"Kriptonio\",hostname:\"kriptonio.com\",mobile:{universal:\"https://app.kriptonio.com/mobile\"}},timeless:{id:\"9751385960bca290c13b443155288f892f62ee920337eda8c5a8874135daaea8\",displayName:\"Timeless\",hostname:\"timelesswallet.xyz\",mobile:{universal:\"https://timelesswallet.xyz\"}},secux:{id:\"6464873279d46030c0b6b005b33da6be5ed57a752be3ef1f857dc10eaf8028aa\",displayName:\"SecuX\",hostname:\"secuxtech.com\",mobile:{universal:\"https://wsweb.secuxtech.com\"}},bitizen:{id:\"41f20106359ff63cf732adf1f7dc1a157176c9b02fd266b50da6dcc1e9b86071\",displayName:\"Bitizen\",hostname:\"bitizen.org\",mobile:{universal:\"https://bitizen.org/wallet\"}},blocto:{id:\"14e7176536cb3706e221daaa3cfd7b88b7da8c7dfb64d1d241044164802c6bdd\",displayName:\"Blocto\",hostname:\"blocto.io\",mobile:{universal:\"https://blocto.app\"}},safemoon:{id:\"a0e04f1086aac204d4ebdd5f985c12ed226cd0006323fd8143715f9324da58d1\",displayName:\"SafeMoon\",hostname:\"safemoon.com\",mobile:{universal:\"https://safemoon.com/wc\"}},okx_wallet:{id:\"971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709\",displayName:\"OKX Wallet\",hostname:\"okx.com\",mobile:{native:\"okex://main\"}},rabby_wallet:{id:\"18388be9ac2d02726dbac9777c96efaac06d744b2f6d580fccdd4127a6d01fd1\",displayName:\"Rabby Wallet\",hostname:\"rabby.io\",mobile:{}}};function tT(e){return{name:e.displayName||\"\",universalLink:e.mobile.universal,deepLink:e.mobile.native}}var tP=\"WALLETCONNECT_DEEPLINK_CHOICE\";function tN(e){return e.startsWith(\"http://\")||e.startsWith(\"https://\")}function tR(e,t){if(tN(e))return tM(e,t);let r=e;r.includes(\"://\")||(r=e.replaceAll(\"/\",\"\").replaceAll(\":\",\"\"),r=`${r}://`),r.endsWith(\"/\")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}}function tM(e,t){if(!tN(e))return tR(e,t);let r=e;r.endsWith(\"/\")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}}function tO(e,t){window.open(e,t,\"noreferrer noopener\")}var tI=class{constructor(e){this.promise=null,this.fn=e}execute(e){return null===this.promise&&(this.promise=(async()=>{try{return await this.fn(e)}finally{this.promise=null}})()),this.promise}},tW=class{constructor(e){this._meta={},this.captchaToken=e,this.startChannelOnce=new tI(this._startChannelOnce.bind(this)),this.pollForReady=new tI(this._pollForReady.bind(this))}get meta(){return this._meta}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.channelToken)throw new eK(\"Auth flow must be initialized first\");try{let e=await this.api.post(\"/api/v1/farcaster/authenticate\",{channel_token:this.meta.channelToken,message:this.message,signature:this.signature,fid:this.fid});if(!e)throw new eK(\"No response from authentication\");return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{return await this.api.post(\"/api/v1/farcaster/link\",{channel_token:this.meta.channelToken,message:this.message,signature:this.signature,fid:this.fid})}catch(e){throw eX(e)}}async _startChannelOnce(){if(!this.api)throw new eK(\"Auth flow has no API instance\");let e=await this.api.post(\"/api/v1/farcaster/init\",{token:this.captchaToken});s.tq&&!s.gn&&e.connect_uri&&tO(e.connect_uri,\"_blank\"),this._meta={connectUri:e.connect_uri,channelToken:e.channel_token}}async initializeFarcasterConnect(){if(!this.api)throw new eK(\"Auth flow has no API instance\");await this.startChannelOnce.execute()}async _pollForReady(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.channelToken)throw new eK(\"Auth flow must be initialized first\");let e=await this.api.get(\"/api/v1/farcaster/status\",{headers:{\"farcaster-channel-token\":this.meta.channelToken}});return\"completed\"===e.state&&(this.message=e.message,this.signature=e.signature,this.fid=e.fid,!0)}},tL=\"https://auth.privy.io\",tF=\"privy:token\",tU=\"privy-token\",tD=\"privy:refresh_token\",tZ=\"privy:id_token\",tz=\"privy-id-token\",t$=\"privy-session\",tH=\"privy:session_transfer_token\",tB=\"privy:caid\",tq=e=>`privy:guest:${e}`,tV=e=>`privy:cross-app:${e}`,tG=\"privy:state_code\",tK=\"privy:code_verifier\",tY=\"privy:headless_oauth\",tQ=e=>`privy:wallet:${e}`,tX=\"privy:connectors\",tJ=\"privy:connections\",t0=1;async function t1(e){let t=new TextEncoder().encode(e);return new Uint8Array(await crypto.subtle.digest(\"SHA-256\",t))}function t2(e){return crypto.getRandomValues(new Uint8Array(e))}var t3=class{constructor(e){this.meta={guestCredential:this.getOrCreateGuestCredential(e)}}getOrCreateGuestCredential(e){let t=tq(e);if(ta()){if(to.get(t))return to.get(t);{let e=p.c(t2(32));return to.put(t,e),e}}return p.c(t2(32))}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{let e=await this.api.post(\"/api/v1/guest/authenticate\",{guest_credential:this.meta.guestCredential});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){throw Error(\"Linking is not supported for the guest flow\")}};function t4(){return p.c(t2(36))}async function t5(e,t=\"S256\"){if(\"S256\"!=t)return e;{let t=await t1(e);return p.c(t)}}function t6(){return!!to.get(tY)}var t7=class{constructor(e){let t=\"boolean\"==typeof e.headless?e.headless:t6();this.meta={...e,headless:t}}addCaptchaToken(e){this.meta.captchaToken=e}isActive(){return!!(this.meta.authorizationCode&&this.meta.stateCode&&this.meta.provider)}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.authorizationCode||!this.meta.stateCode)throw new eK(\"[OAuth AuthFlow] Authorization and state codes code must be set prior to calling authenticate.\");if(\"undefined\"===this.meta.authorizationCode)throw new eK(\"User denied confirmation during OAuth flow\");let e=function(){let e=to.get(tK);if(!e)throw new eK(\"Authentication error.\");return e}();try{let t=await this.api.post(\"/api/v1/oauth/authenticate\",{authorization_code:this.meta.authorizationCode,state_code:this.meta.stateCode,code_verifier:e});return to.del(tK),this.meta.headless&&to.del(tY),{user:t.user,token:t.token,refresh_token:t.refresh_token,identity_token:t.identity_token,is_new_user:t.is_new_user,oauth_tokens:t.oauth_tokens}}catch(t){let e=eX(t);throw e.privyErrorCode?new eK(e.message||\"Invalid code during OAuth flow.\",void 0,e.privyErrorCode):\"User denied confirmation during OAuth flow\"===e.message?new eK(\"Invalid code during oauth flow.\",void 0,\"oauth_user_denied\"):new eK(\"Invalid code during OAuth flow.\",void 0,\"unknown_auth_error\")}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.authorizationCode||!this.meta.stateCode)throw new eK(\"[OAuth AuthFlow] Authorization and state codes code must be set prior to calling link.\");if(\"undefined\"===this.meta.authorizationCode)throw new eK(\"User denied confirmation during OAuth flow\");let e=to.get(tK);if(!e)throw new eK(\"Authentication error.\");try{let t=await this.api.post(e8,{authorization_code:this.meta.authorizationCode,state_code:this.meta.stateCode,code_verifier:e});return to.del(tK),t}catch(e){throw eX(e)}}async getAuthorizationUrl(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.provider)throw new eK(\"Provider must be set when initializing OAuth authentication.\");let e=t4();to.put(tK,e);let t=t4();to.put(tG,t);let r=await t5(e);this.meta.headless&&to.put(tY,!0);try{return await this.api.post(e7,{provider:this.meta.provider,redirect_to:window.location.href,token:this.meta.captchaToken,code_challenge:r,state_code:t})}catch(e){throw eX(e)}}},t8=({style:e,...t})=>(0,m.jsxs)(\"svg\",{version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",x:\"0px\",y:\"0px\",viewBox:\"0 0 24 24\",style:{height:\"24px\",...e},...t,children:[(0,m.jsx)(\"path\",{d:\"M17.0722 11.6888C17.0471 8.90571 19.3263 7.56847 19.429 7.50274C18.1466 5.60938 16.153 5.35154 15.4417 5.3212C13.7461 5.14678 12.1306 6.32982 11.269 6.32982C10.4074 6.32982 9.08004 5.34648 7.67246 5.37429C5.82158 5.40209 4.11595 6.45874 3.16171 8.13218C1.24068 11.4942 2.6708 16.4817 4.54423 19.2143C5.46091 20.549 6.55041 22.0531 7.98554 21.9975C9.36803 21.9419 9.88905 21.095 11.5571 21.095C13.2251 21.095 13.696 21.9975 15.1537 21.9697C16.6389 21.9393 17.5806 20.6046 18.4897 19.2648C19.5392 17.7153 19.9725 16.2137 19.9975 16.1354C19.965 16.1228 17.1022 15.0155 17.0722 11.6888Z\",fill:\"currentColor\"}),(0,m.jsx)(\"path\",{d:\"M14.3295 3.51373C15.0909 2.58347 15.6043 1.28921 15.4641 0C14.3671 0.0455014 13.0396 0.738135 12.2532 1.66838C11.5494 2.48994 10.9307 3.80695 11.0986 5.07089C12.3183 5.16694 13.5681 4.44145 14.3295 3.51373Z\",fill:\"currentColor\"})]}),t9=({style:e,...t})=>(0,m.jsxs)(\"svg\",{version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",x:\"0px\",y:\"0px\",viewBox:\"0 0 71 55\",style:{height:\"24px\",...e},...t,children:[(0,m.jsx)(\"g\",{clipPath:\"url(#clip0)\",children:(0,m.jsx)(\"path\",{d:\"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z\",fill:\"#5865F2\"})}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0\",children:(0,m.jsx)(\"rect\",{width:\"71\",height:\"55\",fill:\"white\"})})})]}),re=({style:e,...t})=>(0,m.jsx)(\"svg\",{version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",x:\"24\",y:\"24\",viewBox:\"0 0 98 96\",style:{height:\"24px\",...e},...t,children:(0,m.jsx)(\"path\",{d:\"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z\",fill:\"currentColor\"})}),rt=({style:e})=>(0,m.jsx)(g.Z,{style:{color:\"var(--privy-color-error)\",...e}}),rr=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"26px\",width:\"26px\",...e},...t,children:[(0,m.jsx)(\"path\",{d:\"M22.56 12.25C22.56 11.47 22.49 10.72 22.36 10H12V14.255H17.92C17.665 15.63 16.89 16.795 15.725 17.575V20.335H19.28C21.36 18.42 22.56 15.6 22.56 12.25Z\",fill:\"#4285F4\"}),(0,m.jsx)(\"path\",{d:\"M12 23C14.97 23 17.46 22.015 19.28 20.335L15.725 17.575C14.74 18.235 13.48 18.625 12 18.625C9.13504 18.625 6.71004 16.69 5.84504 14.09H2.17004V16.94C3.98004 20.535 7.70004 23 12 23Z\",fill:\"#34A853\"}),(0,m.jsx)(\"path\",{d:\"M5.845 14.09C5.625 13.43 5.5 12.725 5.5 12C5.5 11.275 5.625 10.57 5.845 9.91V7.06H2.17C1.4 8.59286 0.999321 10.2846 1 12C1 13.775 1.425 15.455 2.17 16.94L5.845 14.09Z\",fill:\"#FBBC05\"}),(0,m.jsx)(\"path\",{d:\"M12 5.375C13.615 5.375 15.065 5.93 16.205 7.02L19.36 3.865C17.455 2.09 14.965 1 12 1C7.70004 1 3.98004 3.465 2.17004 7.06L5.84504 9.91C6.71004 7.31 9.13504 5.375 12 5.375Z\",fill:\"#EA4335\"})]});function rn(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",width:26,height:26,viewBox:\"0 0 140 140\",x:\"0px\",y:\"0px\",fill:\"none\",...e,children:[(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"b\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#3771c8\"}),(0,m.jsx)(\"stop\",{stopColor:\"#3771c8\",offset:\".128\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#60f\",stopOpacity:\"0\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"a\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#fd5\"}),(0,m.jsx)(\"stop\",{offset:\".1\",stopColor:\"#fd5\"}),(0,m.jsx)(\"stop\",{offset:\".5\",stopColor:\"#ff543e\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#c837ab\"})]}),(0,m.jsx)(\"radialGradient\",{id:\"c\",cx:\"158.429\",cy:\"578.088\",r:\"65\",xlinkHref:\"#a\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"matrix(0 -1.98198 1.8439 0 -1031.402 454.004)\",fx:\"158.429\",fy:\"578.088\"}),(0,m.jsx)(\"radialGradient\",{id:\"d\",cx:\"147.694\",cy:\"473.455\",r:\"65\",xlinkHref:\"#b\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"matrix(.17394 .86872 -3.5818 .71718 1648.348 -458.493)\",fx:\"147.694\",fy:\"473.455\"})]}),(0,m.jsx)(\"path\",{fill:\"url(#c)\",d:\"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z\",transform:\"translate(1.004 1)\"}),(0,m.jsx)(\"path\",{fill:\"url(#d)\",d:\"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z\",transform:\"translate(1.004 1)\"}),(0,m.jsx)(\"path\",{fill:\"#fff\",d:\"M66.004 18c-13.036 0-14.672.057-19.792.29-5.11.234-8.598 1.043-11.65 2.23-3.157 1.226-5.835 2.866-8.503 5.535-2.67 2.668-4.31 5.346-5.54 8.502-1.19 3.053-2 6.542-2.23 11.65C18.06 51.327 18 52.964 18 66s.058 14.667.29 19.787c.235 5.11 1.044 8.598 2.23 11.65 1.227 3.157 2.867 5.835 5.536 8.503 2.667 2.67 5.345 4.314 8.5 5.54 3.054 1.187 6.543 1.996 11.652 2.23 5.12.233 6.755.29 19.79.29 13.037 0 14.668-.057 19.788-.29 5.11-.234 8.602-1.043 11.656-2.23 3.156-1.226 5.83-2.87 8.497-5.54 2.67-2.668 4.31-5.346 5.54-8.502 1.18-3.053 1.99-6.542 2.23-11.65.23-5.12.29-6.752.29-19.788 0-13.036-.06-14.672-.29-19.792-.24-5.11-1.05-8.598-2.23-11.65-1.23-3.157-2.87-5.835-5.54-8.503-2.67-2.67-5.34-4.31-8.5-5.535-3.06-1.187-6.55-1.996-11.66-2.23-5.12-.233-6.75-.29-19.79-.29zm-4.306 8.65c1.278-.002 2.704 0 4.306 0 12.816 0 14.335.046 19.396.276 4.68.214 7.22.996 8.912 1.653 2.24.87 3.837 1.91 5.516 3.59 1.68 1.68 2.72 3.28 3.592 5.52.657 1.69 1.44 4.23 1.653 8.91.23 5.06.28 6.58.28 19.39s-.05 14.33-.28 19.39c-.214 4.68-.996 7.22-1.653 8.91-.87 2.24-1.912 3.835-3.592 5.514-1.68 1.68-3.275 2.72-5.516 3.59-1.69.66-4.232 1.44-8.912 1.654-5.06.23-6.58.28-19.396.28-12.817 0-14.336-.05-19.396-.28-4.68-.216-7.22-.998-8.913-1.655-2.24-.87-3.84-1.91-5.52-3.59-1.68-1.68-2.72-3.276-3.592-5.517-.657-1.69-1.44-4.23-1.653-8.91-.23-5.06-.276-6.58-.276-19.398s.046-14.33.276-19.39c.214-4.68.996-7.22 1.653-8.912.87-2.24 1.912-3.84 3.592-5.52 1.68-1.68 3.28-2.72 5.52-3.592 1.692-.66 4.233-1.44 8.913-1.655 4.428-.2 6.144-.26 15.09-.27zm29.928 7.97c-3.18 0-5.76 2.577-5.76 5.758 0 3.18 2.58 5.76 5.76 5.76 3.18 0 5.76-2.58 5.76-5.76 0-3.18-2.58-5.76-5.76-5.76zm-25.622 6.73c-13.613 0-24.65 11.037-24.65 24.65 0 13.613 11.037 24.645 24.65 24.645C79.617 90.645 90.65 79.613 90.65 66S79.616 41.35 66.003 41.35zm0 8.65c8.836 0 16 7.163 16 16 0 8.836-7.164 16-16 16-8.837 0-16-7.164-16-16 0-8.837 7.163-16 16-16z\"})]})}function ri({style:e,...t}){return(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",viewBox:\"0,0,256,256\",style:{height:\"26px\",width:\"26px\",...e},...t,children:(0,m.jsx)(\"g\",{fill:\"#0077b5\",strokeWidth:\"1\",strokeLinecap:\"butt\",strokeLinejoin:\"miter\",strokeMiterlimit:\"10\",style:{mixBlendMode:\"normal\"},children:(0,m.jsx)(\"g\",{transform:\"scale(5.12,5.12)\",children:(0,m.jsx)(\"path\",{d:\"M41,4h-32c-2.76,0 -5,2.24 -5,5v32c0,2.76 2.24,5 5,5h32c2.76,0 5,-2.24 5,-5v-32c0,-2.76 -2.24,-5 -5,-5zM17,20v19h-6v-19zM11,14.47c0,-1.4 1.2,-2.47 3,-2.47c1.8,0 2.93,1.07 3,2.47c0,1.4 -1.12,2.53 -3,2.53c-1.8,0 -3,-1.13 -3,-2.53zM39,39h-6c0,0 0,-9.26 0,-10c0,-2 -1,-4 -3.5,-4.04h-0.08c-2.42,0 -3.42,2.06 -3.42,4.04c0,0.91 0,10 0,10h-6v-19h6v2.56c0,0 1.93,-2.56 5.81,-2.56c3.97,0 7.19,2.73 7.19,8.26z\"})})})})}function ra(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 496 512\",...e,children:[(0,m.jsx)(\"path\",{fill:\"#1ed760\",d:\"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8Z\"}),(0,m.jsx)(\"path\",{d:\"M406.6 231.1c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3zm-31 76.2c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm-26.9 65.6c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4z\"})]})}function ro(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fillRule:\"evenodd\",clipRule:\"evenodd\",imageRendering:\"optimizeQuality\",shapeRendering:\"geometricPrecision\",textRendering:\"geometricPrecision\",viewBox:\"0 0 293768 333327\",width:24,height:24,...e,children:[(0,m.jsx)(\"path\",{fill:\"#26f4ee\",d:\"M204958 0c5369 45832 32829 78170 77253 81022v43471l-287 27V87593c-44424-2850-69965-30183-75333-76015l-47060-1v192819c6791 86790-60835 89368-86703 56462 30342 18977 79608 6642 73766-68039V0h58365zM78515 319644c-26591-5471-50770-21358-64969-44588-34496-56437-3401-148418 96651-157884v54345l-164 27v-40773C17274 145544 7961 245185 33650 286633c9906 15984 26169 27227 44864 33011z\"}),(0,m.jsx)(\"path\",{fill:\"#fb2c53\",d:\"M218434 11587c3505 29920 15609 55386 35948 70259-27522-10602-43651-34934-47791-70262l11843 3zm63489 82463c3786 804 7734 1348 11844 1611v51530c-25770 2537-48321-5946-74600-21749l4034 88251c0 28460 106 41467-15166 67648-34260 58734-95927 63376-137628 35401 54529 22502 137077-4810 136916-103049v-96320c26279 15803 48830 24286 74600 21748V94050zm-171890 37247c5390-1122 11048-1985 16998-2548v54345c-21666 3569-35427 10222-41862 22528-20267 38754 5827 69491 35017 74111-33931 5638-73721-28750-49999-74111 6434-12304 18180-18959 39846-22528v-51797zm64479-119719h1808-1808z\"}),(0,m.jsx)(\"path\",{d:\"M206590 11578c5369 45832 30910 73164 75333 76015v51528c-25770 2539-48321-5945-74600-21748v96320c206 125717-135035 135283-173673 72939-25688-41449-16376-141089 76383-155862v52323c-21666 3569-33412 10224-39846 22528-39762 76035 98926 121273 89342-1225V11577l47060 1z\",fill:\"#000000\"})]})}var rs=({style:e,...t})=>(0,m.jsx)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"24px\",width:\"24px\",...e},...t,children:(0,m.jsx)(\"path\",{d:\"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156\",fill:\"currentColor\"})}),rl={google:{name:\"Google\",component:rr},discord:{name:\"Discord\",component:t9},github:{name:\"Github\",component:re},linkedin:{name:\"LinkedIn\",component:ri},twitter:{name:\"Twitter\",component:rs},spotify:{name:\"Spotify\",component:ra},instagram:{name:\"Instagram\",component:rn},tiktok:{name:\"Tiktok\",component:ro},apple:{name:\"Apple\",component:t8}},rc=e=>e in rl?rl[e]:{name:\"Unknown\",component:rt};function rd(){let e=new URL(window.location.href);e.searchParams.delete(\"privy_oauth_code\"),e.searchParams.delete(\"privy_oauth_provider\"),e.searchParams.delete(\"privy_oauth_state\"),to.del(tG),window.history.replaceState({},\"\",e)}var rh=class{constructor(e){this.initAuthenticateOnce=new tI(this._initAuthenticateOnce.bind(this)),this.initLinkOnce=new tI(this._initLinkOnce.bind(this)),this.meta={captchaToken:e}}async initAuthenticationFlow(){if(!this.api)throw new eK(\"Auth flow has no API instance\");this.meta.initAuthenticateResponse=await this.initAuthenticateOnce.execute()}async initLinkFlow(){if(!this.api)throw new eK(\"Auth flow has no API instance\");this.meta.initLinkResponse=await this.initLinkOnce.execute()}async authenticate(){let e=await r.e(550).then(r.bind(r,74550));if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!e.browserSupportsWebAuthn())throw new eK(\"WebAuthn is not supported in this browser\");this.meta.initAuthenticateResponse||(this.meta.initAuthenticateResponse=await this.initAuthenticateOnce.execute());try{let t=await e.startAuthentication(this._transformInitAuthenticateOptionsToCamelCase(this.meta.initAuthenticateResponse.options)),r=await this.api.post(\"/api/v1/passkeys/authenticate\",{relying_party:this.meta.initAuthenticateResponse.relying_party,challenge:this.meta.initAuthenticateResponse.options.challenge,authenticator_response:this._transformAuthenticationResponseToSnakeCase(t)});return{user:r.user,token:r.token,refresh_token:r.refresh_token,is_new_user:r.is_new_user}}catch(e){throw\"NotAllowedError\"===e.name?new eK(\"Passkey request timed out or rejected by user.\",void 0,\"passkey_not_allowed\"):eX(e)}}async link(){let e=await r.e(550).then(r.bind(r,74550));if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!e.browserSupportsWebAuthn())throw new eK(\"WebAuthn is not supported in this browser\");this.meta.initLinkResponse||(this.meta.initLinkResponse=await this.initLinkOnce.execute());try{let t=this.meta.initLinkResponse.options,r=await e.startRegistration(this._transformInitLinkOptionsToCamelCase(t));return await this.api.post(\"/api/v1/passkeys/link\",{relying_party:this.meta.initLinkResponse.relying_party,authenticator_response:this._transformRegistrationResponseToSnakeCase(r)})}catch(e){throw\"NotAllowedError\"===e.name?new eK(\"Passkey request timed out or rejected by user.\",void 0,\"passkey_not_allowed\"):eX(e)}}async _initAuthenticateOnce(){if(!this.api)throw new eK(\"Auth flow has no API instance\");return await this.api.post(\"/api/v1/passkeys/authenticate/init\",{token:this.meta.captchaToken})}async _initLinkOnce(){if(!this.api)throw new eK(\"Auth flow has no API instance\");return await this.api.post(\"/api/v1/passkeys/link/init\",{})}_transformInitLinkOptionsToCamelCase(e){return{rp:e.rp,user:{id:e.user.id,name:e.user.name,displayName:e.user.display_name},challenge:e.challenge,pubKeyCredParams:e.pub_key_cred_params.map(e=>({type:e.type,alg:e.alg})),timeout:e.timeout,excludeCredentials:e.exclude_credentials?.map(e=>({id:e.id,type:e.type,transports:e.transports})),authenticatorSelection:{authenticatorAttachment:e.authenticator_selection?.authenticator_attachment,requireResidentKey:e.authenticator_selection?.require_resident_key,residentKey:e.authenticator_selection?.resident_key,userVerification:e.authenticator_selection?.user_verification},attestation:e.attestation,extensions:{appid:e.extensions?.app_id,credProps:e.extensions?.cred_props?.rk,hmacCreateSecret:e.extensions?.hmac_create_secret}}}_transformRegistrationResponseToSnakeCase(e){return{id:e.id,raw_id:e.rawId,response:{client_data_json:e.response.clientDataJSON,attestation_object:e.response.attestationObject,authenticator_data:e.response.authenticatorData},authenticator_attachment:e.authenticatorAttachment,client_extension_results:{app_id:e.clientExtensionResults.appid,cred_props:e.clientExtensionResults.credProps,hmac_create_secret:e.clientExtensionResults.hmacCreateSecret},type:e.type}}_transformInitAuthenticateOptionsToCamelCase(e){return{challenge:e.challenge,allowCredentials:e.allow_credentials?.map(e=>({id:e.id,type:e.type,transports:e.transports}))||[],timeout:e.timeout,extensions:{appid:e.extensions?.app_id,credProps:e.extensions?.cred_props,hmacCreateSecret:e.extensions?.hmac_create_secret},userVerification:e.user_verification}}_transformAuthenticationResponseToSnakeCase(e){return{id:e.id,raw_id:e.rawId,response:{client_data_json:e.response.clientDataJSON,authenticator_data:e.response.authenticatorData,signature:e.response.signature,user_handle:e.response.userHandle},authenticator_attachment:e.authenticatorAttachment,client_extension_results:{app_id:e.clientExtensionResults.appid,cred_props:e.clientExtensionResults.credProps,hmac_create_secret:e.clientExtensionResults.hmacCreateSecret},type:e.type}}},ru=({address:e,chainId:t,nonce:r})=>{let n=window.location.host,i=window.location.origin,a=new Date().toISOString();return`${n} wants you to sign in with your Ethereum account:\n${e}\n\nBy signing, you are proving you own this wallet and logging in. This does not initiate a transaction or cost any fees.\n\nURI: ${i}\nVersion: 1\nChain ID: ${t}\nNonce: ${r}\nIssued At: ${a}\nResources:\n- https://privy.io`},rp=class{constructor(e,t,r){this.getNonceOnce=new tI(this._getNonceOnce.bind(this)),this.wallet=e,this.captchaToken=r,this.client=t}get meta(){return{connectorType:this.wallet.connectorType,walletClientType:this.wallet.walletClientType}}async authenticate(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");try{let{message:e,signature:t}=await this.sign(),r=await this.client.authenticateWithSiweInternal({message:e,signature:t,chainId:this.wallet.chainId,walletClientType:this.wallet.walletClientType,connectorType:this.wallet.connectorType});return{user:r.user,token:r.token,refresh_token:r.refresh_token,identity_token:r.identity_token,is_new_user:r.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");try{let{message:e,signature:t}=await this.sign();return await this.client.linkWithSiweInternal({message:e,signature:t,chainId:this.wallet.chainId,walletClientType:this.wallet.walletClientType,connectorType:this.wallet.connectorType})}catch(e){throw eX(e)}}async sign(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");if(await this.buildSiweMessage(),!this.preparedMessage)throw new eK(\"Could not prepare SIWE message\");let e=await this.wallet.sign(this.preparedMessage);return{message:this.preparedMessage,signature:e}}async _getNonceOnce(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");return await this.client.generateSiweNonce({address:this.wallet.address,captchaToken:this.captchaToken})}async buildSiweMessage(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");let e=this.wallet.address,t=this.wallet.chainId.replace(\"eip155:\",\"\");return this.nonce||(this.nonce=await this.getNonceOnce.execute()),this.preparedMessage=ru({address:e,chainId:t,nonce:this.nonce}),this.preparedMessage}},rm=class{constructor(e,t){this.meta={phoneNumber:e,captchaToken:t}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.phoneNumber||!this.meta.smsCode)throw new eK(\"phone number and sms code must be set prior to calling authenticate.\");try{let e=await this.api.post(\"/api/v1/passwordless_sms/authenticate\",{phoneNumber:this.meta.phoneNumber,code:this.meta.smsCode});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.phoneNumber||!this.meta.smsCode)throw new eK(\"phone number and sms code must be set prior to calling authenticate.\");try{return await this.api.post(\"/api/v1/passwordless_sms/link\",{phoneNumber:this.meta.phoneNumber,code:this.meta.smsCode})}catch(e){throw eX(e)}}async sendSmsCode(e,t){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(e&&(this.meta.phoneNumber=e),t&&(this.meta.captchaToken=t),!this.meta.phoneNumber)throw new eK(\"phone nNumber must be set when initialzing authentication.\");try{return await this.api.post(\"/api/v1/passwordless_sms/init\",{phoneNumber:this.meta.phoneNumber,token:this.meta.captchaToken})}catch(e){throw eX(e)}}},rg=class extends rm{constructor(e,t,r){super(t,r),this.meta={phoneNumber:t,captchaToken:r,oldPhoneNumber:e}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.phoneNumber||!this.meta.smsCode||!this.meta.oldPhoneNumber)throw new eK(\"Phone number, sms code, and an old phone number must be set prior to calling update.\");try{return await this.api.post(\"/api/v1/passwordless_sms/update\",{old_phone_number:this.meta.oldPhoneNumber,new_phone_number:this.meta.phoneNumber,code:this.meta.smsCode})}catch(e){throw eX(e)}}},rf=class{constructor(e){this.meta={captchaToken:e}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{let e=await this.api.post(\"/api/v1/telegram/authenticate\",{captcha_token:this.meta.captchaToken,telegram_auth_result:this.meta.telegramAuthResult,telegram_web_app_data:this.meta.telegramWebAppData});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{return await this.api.post(\"/api/v1/telegram/link\",{telegram_auth_result:this.meta.telegramAuthResult,telegram_web_app_data:this.meta.telegramWebAppData})}catch(e){throw eX(e)}}};function ry(e){let t={detail:\"\",retryable:!1};return e?.privyErrorCode===\"linked_to_another_user\"&&(t.detail=\"This account has already been linked to another user.\"),e?.privyErrorCode===\"disallowed_login_method\"&&(t.detail=\"Login with Telegram not allowed.\"),e?.privyErrorCode===\"invalid_data\"&&(t.retryable=!0,t.detail=\"Something went wrong. Try again.\"),e?.privyErrorCode===\"cannot_link_more_of_type\"&&(t.retryable=!0,t.detail=\"Something went wrong. Try again.\"),e?.privyErrorCode===\"invalid_credentials\"&&(t.retryable=!0,t.detail=\"Something went wrong. Try again.\"),e?.privyErrorCode===\"too_many_requests\"&&(t.detail=\"Too many requests. Please wait before trying again.\"),e?.privyErrorCode===\"too_many_requests\"&&e.message.includes(\"rate limit\")&&(t.detail=\"Request limit reached for Telegram. Please wait a moment and try again.\"),t}function rw(){let e=new URL(window.location.href);e.searchParams.delete(\"id\"),e.searchParams.delete(\"hash\"),e.searchParams.delete(\"auth_date\"),e.searchParams.delete(\"first_name\"),e.searchParams.delete(\"last_name\"),e.searchParams.delete(\"username\"),e.searchParams.delete(\"photo_url\"),window.history.replaceState({},\"\",e)}function rx(e){return e?new Date(1e3*e):null}function rv(e,t){return e.slice().sort((e,t)=>(t.firstVerifiedAt??t.verifiedAt).getTime()-(e.firstVerifiedAt??e.verifiedAt).getTime()).find(e=>e.type===t)}var rC=e=>e?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&!e.imported&&\"ethereum\"===e.chainType)||null,rb=e=>e?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&!e.imported&&\"solana\"===e.chainType)||null,r_=e=>e?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&e.imported&&\"ethereum\"===e.chainType)||null,rj=e=>e.linkedAccounts.filter(e=>\"wallet\"===e.type),rk=(e,t)=>!(rC(e)||rb(e))&&(\"all-users\"===t||\"users-without-wallets\"===t&&!rj(e)?.length);function rE(e){if(!e)return null;let t=function(e){let t=[];for(let r of e){let e=r.type;switch(r.type){case\"wallet\":let n={address:r.address,type:r.type,imported:r.imported,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at),chainType:r.chain_type,chainId:r.chain_id,walletClient:\"privy\"===r.wallet_client_type?\"privy\":\"unknown\",walletClientType:r.wallet_client_type,connectorType:r.connector_type,recoveryMethod:r.recovery_method};t.push(n);break;case\"cross_app\":let i={type:r.type,subject:r.subject,embeddedWallets:r.embedded_wallets,smartWallets:r.smart_wallets,providerApp:{id:r.provider_app_id},verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(i);break;case\"email\":let a={address:r.address,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(a);break;case\"phone\":let o={number:r.phoneNumber,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(o);break;case\"google_oauth\":let s={subject:r.subject,email:r.email,name:r.name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(s);break;case\"spotify_oauth\":let l={subject:r.subject,email:r.email,name:r.name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(l);break;case\"instagram_oauth\":let c={subject:r.subject,username:r.username,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(c);break;case\"twitter_oauth\":let d={subject:r.subject,username:r.username,name:r.name,type:r.type,profilePictureUrl:r.profile_picture_url,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(d);break;case\"discord_oauth\":let h={subject:r.subject,username:r.username,email:r.email,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(h);break;case\"github_oauth\":let u={subject:r.subject,username:r.username,name:r.name,email:r.email,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(u);break;case\"tiktok_oauth\":let p={subject:r.subject,username:r.username,name:r.name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(p);break;case\"linkedin_oauth\":let m={subject:r.subject,name:r.name,email:r.email,vanityName:r.vanity_name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(m);break;case\"apple_oauth\":let g={subject:r.subject,email:r.email,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(g);break;case\"custom_auth\":t.push({type:r.type,customUserId:r.custom_user_id,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)});break;case\"farcaster\":let f={type:r.type,fid:r.fid,ownerAddress:r.owner_address,displayName:r.display_name,username:r.username,bio:r.bio,pfp:r.profile_picture_url,url:r.homepage_url,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at),signerPublicKey:r.signer_public_key};t.push(f);break;case\"passkey\":let y={type:r.type,enrolledInMfa:r.enrolled_in_mfa,credentialId:r.credential_id,authenticatorName:r.authenticator_name,createdWithDevice:r.created_with_device,createdWithOs:r.created_with_os,createdWithBrowser:r.created_with_browser,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(y);break;case\"telegram\":let w={type:r.type,telegramUserId:r.telegram_user_id,firstName:r.first_name,lastName:r.last_name,username:r.username,photoUrl:r.photo_url,verifiedAt:rx(r.first_verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(w);break;default:console.warn(`Unrecognized account type: ${e}. Please consider upgrading the Privy SDK.`)}}return t}(e.linked_accounts),r=rv(t,\"wallet\"),n=rv(t,\"email\"),i=rv(t,\"phone\"),a=rv(t,\"google_oauth\"),o=rv(t,\"twitter_oauth\"),s=rv(t,\"discord_oauth\"),l=rv(t,\"github_oauth\"),c=rv(t,\"spotify_oauth\"),d=rv(t,\"instagram_oauth\"),h=rv(t,\"tiktok_oauth\"),u=rv(t,\"linkedin_oauth\"),p=rv(t,\"apple_oauth\"),m=rv(t,\"farcaster\"),g=rv(t,\"telegram\"),f=e.mfa_methods.map(({type:e,verified_at:t})=>({type:e,verifiedAt:rx(t)}));return{id:e.id,createdAt:rx(e.created_at),linkedAccounts:t,email:n&&{address:n?.address},phone:i&&{number:i?.number},wallet:r&&{address:r.address,chainType:r.chainType,chainId:r.chainId,walletClient:r.walletClient,walletClientType:r.walletClientType,connectorType:r.connectorType,recoveryMethod:r.recoveryMethod,imported:r.imported},google:a&&{subject:a.subject,email:a.email,name:a.name},twitter:o&&{subject:o.subject,username:o.username,name:o.name,profilePictureUrl:o.profilePictureUrl},discord:s&&{subject:s.subject,username:s.username,email:s.email},github:l&&{subject:l.subject,username:l.username,name:l.name,email:l.email},spotify:c&&{subject:c.subject,email:c.email,name:c.name},instagram:d&&{subject:d.subject,username:d.username},tiktok:h&&{subject:h.subject,username:h.username,name:h.name},linkedin:u&&{subject:u.subject,name:u.name,email:u.email,vanityName:u.vanityName},apple:p&&{subject:p.subject,email:p.email},farcaster:m&&{fid:m.fid,ownerAddress:m.ownerAddress,displayName:m.displayName,username:m.username,bio:m.bio,pfp:m.pfp,url:m.url,signerPublicKey:m.signerPublicKey},telegram:g&&{telegramUserId:g.telegramUserId,firstName:g.firstName,lastName:g.lastName,username:g.username,photoUrl:g.photoUrl},mfaMethods:f.map(e=>e.type),hasAcceptedTerms:e.has_accepted_terms??!1,isGuest:e.is_guest}}var rA,rS,rT=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"1024\",height:\"1024\",viewBox:\"0 0 1024 1024\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"1024\",height:\"1024\",fill:\"#0052FF\",rx:100,ry:100}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\",fill:\"white\"})]}),rP=[\"eth_sign\",\"eth_populateTransactionRequest\",\"eth_signTransaction\",\"personal_sign\",\"eth_signTypedData_v4\"],rN=e=>rP.includes(e),rR=class extends eQ{constructor(){super(\"Wallet timeout\"),this.type=\"wallet_error\"}},rM=class extends eQ{constructor(){super(\"User rejected connection\"),this.type=\"wallet_error\"}},rO=e=>{if(e instanceof eQ)return e;if(e?.code&&e?.reason){let t=new rW(e);return e.code===v.jK.ACTION_REJECTED&&(t.details=d.M_.E4001_USER_REJECTED_REQUEST),t}return e?.code?new rW(e):new eQ(\"Unknown connector error\",e)},rI=class extends eV{constructor(e,t,r){super(e),this.type=\"provider_error\",this.code=t,this.data=r}},rW=class extends rI{constructor(e){super(e.message,e.code,e.data);let t=Object.values(d.M_).find(t=>t.eipCode===e.code);this.details=t||d.M_.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes(\"already pending for origin\")?e.message?.includes(\"wallet_requestPermissions\")?this.details=d.M_.E32002_CONNECTION_ALREADY_PENDING:this.details=d.M_.E32002_REQUEST_ALREADY_PENDING:e.message?.includes(\"Already processing\")&&e.message.includes(\"eth_requestAccounts\")&&(this.details=d.M_.E32002_WALLET_LOCKED))}},rL={ERROR_USER_EXISTS:{message:\"User already exists for this address\",detail:\"Try another address!\",retryable:!1},ERROR_TIMED_OUT:{message:\"Wallet request timed out\",detail:\"Please try connecting again.\",retryable:!0},ERROR_WALLET_CONNECTION:{message:\"Could not log in with wallet\",detail:\"Please try connecting again.\",retryable:!0},ERROR_USER_REJECTED_CONNECTION:{message:\"You rejected the request\",detail:\"Please try connecting again.\",retryable:!0},...d.M_},rF=class{constructor(e,t){this.removeListener=(e,t)=>{if(this.walletProvider)try{return this.walletProvider.removeListener(e,t)}catch{console.warn(\"Unable to remove wallet provider listener\")}},this.walletTimeout=(e=new rR,t=this.rpcTimeoutDuration)=>new Promise((r,n)=>setTimeout(()=>{n(e)},t)),this.setWalletProvider=e=>{this.walletProvider&&this._subscriptions.forEach(e=>{this.removeListener(e.eventName,e.listener)}),this.walletProvider=e,this._subscriptions.forEach(e=>{this.walletProvider?.on(e.eventName,e.listener)})},this.walletProvider=e,this.rpcTimeoutDuration=t||12e4,this._subscriptions=[]}on(e,t){if(this.walletProvider)return this.walletProvider.on(e,t);this._subscriptions.push({eventName:e,listener:t})}async request(e){if(!this.walletProvider)throw new eQ(`A wallet request of type ${e.method} was made before setting a wallet provider.`);return Promise.race([this.walletProvider.request(e),this.walletTimeout()]).catch(e=>{throw rO(e)})}},rU=class extends Error{constructor(e,t,r){super(e),this.code=t,this.data=r}},rD=class extends w.Z{constructor(e,t,r,n,i,a=1){super(),this.walletProxy=e,this.address=t,this.chainId=a,this.rpcConfig=r,this.chains=n,this.provider=tk(a,this.chains,r,{appId:i}),this.rpcTimeoutDuration=nC(r,\"privy\"),this.appId=i}async handleSendTransaction(e){if(!e.params||!Array.isArray(e.params))throw new rU(`Invalid params for ${e.method}`,4200);let t=e.params[0];if(!await uK()||!this.address)throw new rU(\"Disconnected\",4900);return(await u6(t)).hash}handleSwitchEthereumChain(e){let t;if(!e.params||!Array.isArray(e.params))throw new rU(`Invalid params for ${e.method}`,4200);if(\"string\"==typeof e.params[0])t=e.params[0];else if(\"chainId\"in e.params[0]&&\"string\"==typeof e.params[0].chainId)t=e.params[0].chainId;else throw new rU(`Invalid params for ${e.method}`,4200);this.chainId=Number(t),this.provider=tk(this.chainId,this.chains,this.rpcConfig,{appId:this.appId}),this.emit(\"chainChanged\",t)}async handlePersonalSign(e){if(!e.params||!Array.isArray(e.params))throw Error(\"Invalid params for personal_sign\");let t=e.params[0],r=e.params[1];return await u4(t,void 0,r)}async handleSignedTypedData(e){if(!e.params||!Array.isArray(e.params))throw Error(\"Invalid params for eth_signTypedData_v4\");let t=\"string\"==typeof e.params[1]?JSON.parse(e.params[1]):e.params[1];return await u5(tE(t))}async handleEstimateGas(e){if(!e.params||!Array.isArray(e.params))throw Error(\"Invalid params for eth_estimateGas\");delete e.params[0].gasPrice,delete e.params[0].maxFeePerGas,delete e.params[0].maxPriorityFeePerGas;let t={...e.params[0],chainId:tx(this.chainId)};try{return await this.provider.send(\"eth_estimateGas\",[t])}catch(e){console.warn(`Gas estimation failed with error: ${e}. Retrying gas estimation by omitting the 'from' address`);try{return delete t.from,await this.provider.send(\"eth_estimateGas\",[t])}catch(t){throw console.warn(`Gas estimation failed with error: ${t} when omitting the 'from' address`),e}}}async request(e){switch(console.debug(\"Embedded1193Provider.request() called with args\",e),e.method){case\"eth_accounts\":case\"eth_requestAccounts\":return this.address?[this.address]:[];case\"eth_chainId\":return tx(this.chainId);case\"eth_estimateGas\":return this.handleEstimateGas(e);case\"eth_sendTransaction\":return this.handleSendTransaction(e);case\"wallet_switchEthereumChain\":return this.handleSwitchEthereumChain(e);case\"personal_sign\":return this.handlePersonalSign(e);case\"eth_signTypedData_v4\":return this.handleSignedTypedData(e)}if(!rN(e.method))return this.provider.send(e.method,e.params);{let t=await uK();if(await u7(),!t||!this.address)throw new rU(\"Disconnected\",4900);try{return(await this.walletProxy.rpc({address:this.address,accessToken:t,request:{method:e.method,params:e.params}})).response.data}catch(e){throw console.error(e),new rU(\"Disconnected\",4900)}}}async connect(){let e=await uK();if(!e||!this.address)return null;try{return(await this.walletProxy.connect({address:this.address,accessToken:e})).address}catch(e){return console.error(e),null}}},rZ=class extends rF{constructor(e){super(e,e.rpcTimeoutDuration)}},rz=class extends rF{constructor(e){super(e,e.rpcTimeoutDuration)}sendAsync(e,t){throw Error(\"sendAsync is no longer supported by EIP-1193. Use the request method instead.\")}},r$=(e,t)=>\"coinbase_wallet\"===t?e.message.includes(\"addEthereumChain\"):4902===e.code||e.message?.includes(\"4902\"),rH=class extends w.Z{constructor(e,t,r,n){super(),this.onAccountsChanged=e=>{0===e.length?this.onDisconnect():this.syncAccounts(e)},this.onChainChanged=e=>{this.wallets.forEach(t=>{t.chainId=tC(e),\"privy\"===this.walletClientType&&to.put(tQ(t.address),e)}),this.emit(\"walletsUpdated\")},this.onDisconnect=()=>{this.connected=!1,this.wallets=[],this.emit(\"walletsUpdated\")},this.onConnect=()=>{this.connected=!0,this.syncAccounts()},this.wallets=[],this.walletClientType=e,this.chains=t,this.defaultChain=r,this.rpcConfig=n,this.rpcTimeoutDuration=nC(n,e),this.connected=!1,this.initialized=!1}buildConnectedWallet(e,t,r,a){let o=async()=>!!this.wallets.find(t=>(0,n.Kn)(t.address)===(0,n.Kn)(e));return{address:(0,n.Kn)(e),chainId:t,meta:r,imported:a,switchChain:async r=>{let i,a;if(!o)throw new eQ(\"Wallet is not currently connected.\");let s=this.wallets.find(t=>n.Kn(t.address)===n.Kn(e))?.chainId;if(!s)throw new eQ(\"Unable to determine current chainId.\");if(\"number\"==typeof r?(i=`0x${r.toString(16)}`,a=r):(i=r,a=Number(r)),s===tC(i))return;let l=this.chains.find(e=>e.id===a);if(!l)throw new eQ(`Unsupported chainId: ${r}`);let c=async()=>{await this.proxyProvider.request({method:\"wallet_switchEthereumChain\",params:[{chainId:i}]})};try{return await c()}catch(e){if(r$(e,this.walletClientType))return await this.proxyProvider.request({method:\"wallet_addEthereumChain\",params:[{chainId:i,chainName:l.name,nativeCurrency:l.nativeCurrency,rpcUrls:[l.rpcUrls.default?.http[0]??\"\"],blockExplorerUrls:[l.blockExplorers?.default.url??\"\"]}]}),c();throw\"rainbow\"===this.walletClientType&&e.message?.includes(\"wallet_switchEthereumChain\")?new eQ(`Rainbow does not support the chainId ${t}`):e}},connectedAt:Date.now(),walletClientType:this.walletClientType,connectorType:this.connectorType,isConnected:o,getEthereumProvider:async()=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return this.proxyProvider},getEthersProvider:async()=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return new i.Q(new rZ(this.proxyProvider))},getWeb3jsProvider:async()=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return new rz(this.proxyProvider)},sign:async e=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return await this.sign(e)},disconnect:()=>{this.disconnect()}}}async syncAccounts(e){let t=e;try{if(void 0===t){let e=await tf(()=>this.proxyProvider.request({method:\"eth_accounts\"}),{maxAttempts:10,delayMs:500});console.debug(`eth_accounts for ${this.walletClientType}:`,e),Array.isArray(e)&&(t=e)}}catch(e){console.warn(\"Wallet did not respond to eth_accounts. Defaulting to prefetched accounts.\",e)}if(!t||!Array.isArray(t)||t.length<=0||!t[0])return;let r=t[0],i=(0,n.Kn)(r),a=[],o;if(\"privy\"===this.walletClientType){let e=to.get(tQ(i));this.chains.find(t=>t.id===Number(e))||(to.del(tQ(i)),e=null),o=e||`0x${this.defaultChain.id.toString(16)}`;try{await this.proxyProvider.request({method:\"wallet_switchEthereumChain\",params:[{chainId:o}]})}catch{console.warn(`Unable to switch embedded wallet to chain ID ${o} on initialization`)}}else try{let e=await tf(()=>this.proxyProvider.request({method:\"eth_chainId\"}),{maxAttempts:10,delayMs:500});if(console.debug(`eth_chainId for ${this.walletClientType}:`,e),\"string\"==typeof e)o=e;else if(\"number\"==typeof e)o=`0x${e.toString(16)}`;else throw Error(\"Invalid chainId returned from provider\")}catch(e){console.warn(\"Failed to get chainId from provider, defaulting to 0x1\",e),o=\"0x1\"}let s=tC(o);if(!a.find(e=>(0,n.Kn)(e.address)===i)){let e={name:this.walletBranding.name,icon:\"string\"==typeof this.walletBranding.icon?this.walletBranding.icon:void 0,id:this.walletBranding.id};a.push(this.buildConnectedWallet((0,n.Kn)(r),s,e,\"embedded_imported\"===this.connectorType))}n_(a,this.wallets)||(this.wallets=a,this.emit(\"walletsUpdated\"))}async getConnectedWallet(){let e=await this.proxyProvider.request({method:\"eth_accounts\"});return this.wallets.sort((e,t)=>t.connectedAt-e.connectedAt).find(t=>e.find(e=>(0,n.Kn)(e)===(0,n.Kn)(t.address)))||null}async isConnected(){let e=await this.proxyProvider.request({method:\"eth_accounts\"});return Array.isArray(e)&&e.length>0}async sign(e){return await this.connect({showPrompt:!1}),new i.Q(new rZ(this.proxyProvider)).getSigner().signMessage(e)}subscribeListeners(){this.proxyProvider.on(\"accountsChanged\",this.onAccountsChanged),this.proxyProvider.on(\"chainChanged\",this.onChainChanged),this.proxyProvider.on(\"disconnect\",this.onDisconnect),this.proxyProvider.on(\"connect\",this.onConnect)}unsubscribeListeners(){this.proxyProvider.removeListener(\"accountsChanged\",this.onAccountsChanged),this.proxyProvider.removeListener(\"chainChanged\",this.onChainChanged),this.proxyProvider.removeListener(\"disconnect\",this.onDisconnect),this.proxyProvider.removeListener(\"connect\",this.onConnect)}},rB=[1,11155111,137,10,8453,84532,42161,7777777,43114,56],rq=(e,t)=>e.makeWeb3Provider({options:t}),rV=class extends rH{constructor(e,t,r,n,i,a){if(super(\"coinbase_wallet\",e,t,r),this.connectorType=\"coinbase_wallet\",this.displayName=\"Coinbase Wallet\",this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),this.subscribeListeners(),this.connectionOptions=n.coinbaseWallet.connectionOptions??\"all\",this.walletClientType=\"smartWalletOnly\"===this.connectionOptions?\"coinbase_smart_wallet\":\"coinbase_wallet\",\"coinbase_smart_wallet\"===this.walletClientType&&(this.displayName=\"Coinbase Smart Wallet\"),!rA){let r=[t.id].concat(e.map(e=>e.id)),n=\"eoaOnly\"!==this.connectionOptions?r.filter(e=>!rB.includes(e)):[];n.length>0&&console.warn(`The following configured chains are not supported by the Coinbase Smart Wallet: ${n.join(\", \")}`),rA=new x.ZP({appName:i,appLogoUrl:a,appChainIds:r})}this.proxyProvider.setWalletProvider(rq(rA,this.connectionOptions))}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return e.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}disconnect(){this.proxyProvider.walletProvider.disconnect(),this.onDisconnect()}get walletBranding(){return{name:this.displayName,icon:rT,id:\"com.coinbase.wallet\"}}async promptConnection(){try{let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");this.connected=!0,await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}},rG=({...e})=>(0,m.jsx)(\"svg\",{width:\"15\",height:\"15\",viewBox:\"0 0 15 15\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...e,children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M2.37126 11.0323C2.37126 12.696 3.90598 13.4421 5.40654 13.4468C8.91753 13.4468 12.8021 11.2897 12.7819 7.67984C12.7673 5.07728 10.3748 2.86167 7.54357 2.88296C4.8495 2.88296 2.21821 4.6411 2.21803 7.03628C2.21803 7.67951 2.58722 8.30178 3.55231 8.37184C2.74763 9.16826 2.37126 10.1225 2.37126 11.0323ZM7.55283 8.68012C8.11562 8.68012 8.57186 8.13217 8.57186 7.45624C8.57186 6.78032 8.11562 6.23237 7.55283 6.23237C6.99003 6.23237 6.53379 6.78032 6.53379 7.45624C6.53379 8.13217 6.99003 8.68012 7.55283 8.68012ZM10.4747 8.68012C11.0375 8.68012 11.4937 8.13217 11.4937 7.45625C11.4937 6.78032 11.0375 6.23237 10.4747 6.23237C9.91186 6.23237 9.45562 6.78032 9.45562 7.45625C9.45562 8.13217 9.91186 8.68012 10.4747 8.68012Z\",fill:e.color||\"var(--privy-color-foreground-3)\"})}),rK=class extends rH{constructor(e,t,r,n,i=!1){super(\"privy\",t,r,n),this.connectorType=\"embedded\",this.proxyProvider=e,i&&(this.connectorType=\"embedded_imported\"),this.subscribeListeners()}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return await this.isConnected()?(await this.proxyProvider.request({method:\"wallet_switchEthereumChain\",params:[tx(e?.chainId||\"0x1\")]}),this.getConnectedWallet()):null}get walletBranding(){return{name:\"Privy Wallet\",icon:rG,id:\"io.privy.wallet\"}}disconnect(){this.connected=!1}async promptConnection(){}},rY=({style:e,...t})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",stroke:\"currentColor\",strokeWidth:1.5,viewBox:\"0 0 24 24\",style:{...e},...t,children:(0,m.jsx)(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9 17.25v1.007a3 3 0 01-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0115 18.257V17.25m6-12V15a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 15V5.25m18 0A2.25 2.25 0 0018.75 3H5.25A2.25 2.25 0 003 5.25m18 0V12a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 12V5.25\"})}),rQ=({style:e,...t})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlSpace:\"preserve\",x:0,y:0,viewBox:\"0 0 318.6 318.6\",width:\"28\",height:\"28\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"style\",{children:\".s1{stroke-linecap:round;stroke-linejoin:round}.s2{fill:#e4761b;stroke:#e4761b}.s3{fill:#f6851b;stroke:#f6851b}\"}),(0,m.jsx)(\"path\",{fill:\"#e2761b\",stroke:\"#e2761b\",className:\"s1\",d:\"m274.1 35.5-99.5 73.9L193 65.8z\"}),(0,m.jsx)(\"path\",{d:\"m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z\",className:\"s1 s2\"}),(0,m.jsx)(\"path\",{d:\"m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z\",className:\"s1 s2\"}),(0,m.jsx)(\"path\",{fill:\"#d7c1b3\",stroke:\"#d7c1b3\",className:\"s1\",d:\"m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z\"}),(0,m.jsx)(\"path\",{fill:\"#233447\",stroke:\"#233447\",className:\"s1\",d:\"m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z\"}),(0,m.jsx)(\"path\",{fill:\"#cd6116\",stroke:\"#cd6116\",className:\"s1\",d:\"m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z\"}),(0,m.jsx)(\"path\",{fill:\"#e4751f\",stroke:\"#e4751f\",className:\"s1\",d:\"m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z\"}),(0,m.jsx)(\"path\",{d:\"m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z\",className:\"s3\"}),(0,m.jsx)(\"path\",{fill:\"#c0ad9e\",stroke:\"#c0ad9e\",className:\"s1\",d:\"m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z\"}),(0,m.jsx)(\"path\",{fill:\"#161616\",stroke:\"#161616\",className:\"s1\",d:\"m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z\"}),(0,m.jsx)(\"path\",{fill:\"#763d16\",stroke:\"#763d16\",className:\"s1\",d:\"m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z\"}),(0,m.jsx)(\"path\",{d:\"m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z\",className:\"s3\"})]}),rX=({style:e,...t})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"108\",height:\"108\",viewBox:\"0 0 108 108\",fill:\"none\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"108\",height:\"108\",rx:\"23\",fill:\"#AB9FF2\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M46.5267 69.9229C42.0054 76.8509 34.4292 85.6182 24.348 85.6182C19.5824 85.6182 15 83.6563 15 75.1342C15 53.4305 44.6326 19.8327 72.1268 19.8327C87.768 19.8327 94 30.6846 94 43.0079C94 58.8258 83.7355 76.9122 73.5321 76.9122C70.2939 76.9122 68.7053 75.1342 68.7053 72.314C68.7053 71.5783 68.8275 70.7812 69.0719 69.9229C65.5893 75.8699 58.8685 81.3878 52.5754 81.3878C47.993 81.3878 45.6713 78.5063 45.6713 74.4598C45.6713 72.9884 45.9768 71.4556 46.5267 69.9229ZM83.6761 42.5794C83.6761 46.1704 81.5575 47.9658 79.1875 47.9658C76.7816 47.9658 74.6989 46.1704 74.6989 42.5794C74.6989 38.9885 76.7816 37.1931 79.1875 37.1931C81.5575 37.1931 83.6761 38.9885 83.6761 42.5794ZM70.2103 42.5795C70.2103 46.1704 68.0916 47.9658 65.7216 47.9658C63.3157 47.9658 61.233 46.1704 61.233 42.5795C61.233 38.9885 63.3157 37.1931 65.7216 37.1931C68.0916 37.1931 70.2103 38.9885 70.2103 42.5795Z\",fill:\"#FFFDF8\"})]}),rJ=class extends rH{constructor(e,t,r,n,i){super(i||\"unknown\",e,t,r),this.connectorType=\"injected\",this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),this.subscribeListeners(),this.providerDetail=n;let a=n.provider;this.proxyProvider.setWalletProvider(a)}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return e.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}get walletBranding(){return{name:this.providerDetail.info.name,icon:this.providerDetail.info.icon,id:this.providerDetail.info.rdns}}disconnect(){console.warn(`Programmatic disconnect with ${this.providerDetail.info.name} is not yet supported.`)}async promptConnection(){try{let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}},r0=class extends rH{constructor(e,t,r,n,i){super(i??\"unknown\",e,t,r),this.connectorType=\"injected\",eH(this,rS,void 0),this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),this.subscribeListeners(),this.proxyProvider.setWalletProvider(n),\"metamask\"===i?eB(this,rS,{name:\"MetaMask\",icon:rQ,id:\"io.metamask\"}):\"phantom\"===i&&eB(this,rS,{name:\"Phantom\",icon:rX,id:\"phantom\"})}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return e.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}get walletBranding(){return e$(this,rS)??{name:\"Browser Extension\",icon:rY,id:\"extension\"}}disconnect(){console.warn(\"Programmatic disconnect with browser wallets is not yet supported.\")}async promptConnection(){try{let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}};rS=new WeakMap;var r1=class extends rJ{disconnect(){console.warn(\"MetaMask does not support programmatic disconnect.\")}async promptConnection(){try{s.tq||await this.proxyProvider.request({method:\"wallet_requestPermissions\",params:[{eth_accounts:{}}]});let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}},r2=class extends rH{constructor(e,t){super(e,[],t,{}),this.connectorType=\"null\",this.proxyProvider=new rF(void 0,12e4),this.connectorType=e}get walletBranding(){return{name:\"Wallet\",id:\"\"}}async initialize(){this.initialized=!0,this.emit(\"initialized\")}async connect(){throw Error(\"connect called for an uninstalled wallet via the NullConnector\")}disconnect(){throw Error(\"disconnect called for an uninstalled wallet via the NullConnector\")}promptConnection(e){throw Error(`promptConnection called for an uninstalled wallet via the NullConnector for ${e}`)}},r3=class extends r2{constructor(e){super(\"phantom\",e)}get walletBranding(){return{name:\"Phantom\",icon:rX,id:\"phantom\"}}};function r4({src:e,...t}){return(0,m.jsx)(\"img\",{src:e,...t,style:{display:\"none\"}})}var r5={appearance:{landingHeader:\"Log in or sign up\",theme:\"light\",accentColor:\"#676FFF\",walletList:[\"detected_wallets\",\"metamask\",\"coinbase_wallet\",\"rainbow\",\"wallet_connect\"]},walletConnectCloudProjectId:\"34357d3c125c2bcf2ce2bc3309d98715\",rpcConfig:{rpcUrls:{},rpcTimeouts:{}},externalWallets:{coinbaseWallet:{connectionOptions:\"all\"}},captchaEnabled:!1,_render:{standalone:!1},fundingMethodConfig:{moonpay:{useSandbox:!1}}},r6=({input:e})=>{if(!e||!e.primary[0])return;let t=[e.primary[0]],r=[];for(let r of(e.primary.length>4&&console.warn(\"You should not specify greater than 4 login methods in `loginMethodsAndOrder.primary`\"),e.primary.slice(1)))t.includes(r)?console.warn(`Duplicated login method: ${r}`):t.push(r);for(let n of e.overflow??[])t.includes(n)||r.includes(n)?console.warn(`Duplicated login method: ${n}`):r.push(n);return{primary:t,overflow:r}},r7=new Set([\"coinbase_wallet\",\"cryptocom\",\"metamask\",\"okx_wallet\",\"phantom\",\"rainbow\",\"uniswap\",\"zerion\",\"wallet_connect\",\"detected_wallets\",\"rabby_wallet\"]),r8=e=>r7.has(e),r9=(e,t,r)=>r.indexOf(e)===t,ne=({input:e,overrides:t})=>t?t.primary.concat(t.overflow??[]).filter(r8).filter(r9):e?e.filter(r8).filter(r9):r5.appearance.walletList,nt={id:1,network:\"homestead\",name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://eth-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://eth-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://mainnet.infura.io/v3\"],webSocket:[\"wss://mainnet.infura.io/ws/v3\"]},default:{http:[\"https://cloudflare-eth.com\"]},public:{http:[\"https://cloudflare-eth.com\"]}},blockExplorers:{etherscan:{name:\"Etherscan\",url:\"https://etherscan.io\"},default:{name:\"Etherscan\",url:\"https://etherscan.io\"}}},nr=[{id:42161,name:\"Arbitrum One\",network:\"arbitrum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://arbitrum-mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://arb-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://arb-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://arbitrum-mainnet.infura.io/v3\"],webSocket:[\"wss://arbitrum-mainnet.infura.io/ws/v3\"]},default:{http:[\"https://arb1.arbitrum.io/rpc\"]},public:{http:[\"https://arb1.arbitrum.io/rpc\"]}},blockExplorers:{etherscan:{name:\"Arbiscan\",url:\"https://arbiscan.io\"},default:{name:\"Arbiscan\",url:\"https://arbiscan.io\"}}},{id:421613,name:\"Arbitrum Goerli\",network:\"arbitrum-goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"AGOR\",decimals:18},rpcUrls:{default:{http:[\"https://goerli-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://goerli.arbiscan.io/\"}},testnet:!0},{id:421614,name:\"Arbitrum Sepolia\",network:\"arbitrum-sepolia\",nativeCurrency:{name:\"Arbitrum Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://arbitrum-sepolia.rpc.privy.systems\"]},default:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]},public:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia-explorer.arbitrum.io\"}},testnet:!0},{id:5,network:\"goerli\",name:\"Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ankr.com/eth_goerli\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.etherscan.io\"}},testnet:!0},{id:11155111,network:\"sepolia\",name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"SEP\",decimals:18},rpcUrls:{privy:{http:[\"https://sepolia.rpc.privy.systems\"]},alchemy:{http:[\"https://eth-sepolia.g.alchemy.com/v2\"],webSocket:[\"wss://eth-sepolia.g.alchemy.com/v2\"]},infura:{http:[\"https://sepolia.infura.io/v3\"],webSocket:[\"wss://sepolia.infura.io/ws/v3\"]},default:{http:[\"https://rpc.sepolia.org\"]},public:{http:[\"https://rpc.sepolia.org\"]}},blockExplorers:{etherscan:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\"},default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\"}},testnet:!0},nt,{id:10,name:\"OP Mainnet\",network:\"optimism\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://optimism-mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://opt-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://opt-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://optimism-mainnet.infura.io/v3\"],webSocket:[\"wss://optimism-mainnet.infura.io/ws/v3\"]},default:{http:[\"https://mainnet.optimism.io\"]},public:{http:[\"https://mainnet.optimism.io\"]}},blockExplorers:{etherscan:{name:\"Etherscan\",url:\"https://optimistic.etherscan.io\"},default:{name:\"Optimism Explorer\",url:\"https://explorer.optimism.io\"}}},{id:420,name:\"Optimism Goerli Testnet\",network:\"optimism-goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.optimism.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli-optimism.etherscan.io\"}},testnet:!0},{id:11155420,name:\"Optimism Sepolia\",network:\"optimism-sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://optimism-sepolia.rpc.privy.systems\"]},default:{http:[\"https://sepolia.optimism.io\"]},public:{http:[\"https://sepolia.optimism.io\"]},infura:{http:[\"https://optimism-sepolia.infura.io/v3\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://optimism-sepolia.blockscout.com\"}},testnet:!0},{id:137,name:\"Polygon Mainnet\",network:\"matic\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{privy:{http:[\"https://polygon-mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://polygon-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://polygon-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://polygon-mainnet.infura.io/v3\"],webSocket:[\"wss://polygon-mainnet.infura.io/ws/v3\"]},default:{http:[\"https://polygon-rpc.com\"]},public:{http:[\"https://polygon-rpc.com\"]}},blockExplorers:{etherscan:{name:\"PolygonScan\",url:\"https://polygonscan.com\"},default:{name:\"PolygonScan\",url:\"https://polygonscan.com\"}}},{id:80001,name:\"Mumbai\",network:\"maticmum\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://matic-mumbai.chainstacklabs.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://mumbai.polygonscan.com\"}},testnet:!0},{id:42220,name:\"Celo Mainnet\",network:\"celo\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"CELO\"},rpcUrls:{default:{http:[\"https://forno.celo.org\"]},infura:{http:[\"https://celo-mainnet.infura.io/v3\"]},public:{http:[\"https://forno.celo.org\"]}},blockExplorers:{default:{name:\"Celo Explorer\",url:\"https://explorer.celo.org/mainnet\"},etherscan:{name:\"CeloScan\",url:\"https://celoscan.io\"}},testnet:!1},{id:44787,name:\"Celo Alfajores Testnet\",network:\"celo-alfajores\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"CELO\"},rpcUrls:{default:{http:[\"https://alfajores-forno.celo-testnet.org\"]},infura:{http:[\"https://celo-alfajores.infura.io/v3\"]},public:{http:[\"https://alfajores-forno.celo-testnet.org\"]}},blockExplorers:{default:{name:\"Celo Explorer\",url:\"https://explorer.celo.org/alfajores\"},etherscan:{name:\"CeloScan\",url:\"https://alfajores.celoscan.io/\"}},testnet:!0},{id:314,name:\"Filecoin - Mainnet\",network:\"filecoin-mainnet\",nativeCurrency:{decimals:18,name:\"filecoin\",symbol:\"FIL\"},rpcUrls:{default:{http:[\"https://api.node.glif.io/rpc/v1\"]},public:{http:[\"https://api.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filfox\",url:\"https://filfox.info/en\"},filscan:{name:\"Filscan\",url:\"https://filscan.io\"},filscout:{name:\"Filscout\",url:\"https://filscout.io/en\"},glif:{name:\"Glif\",url:\"https://explorer.glif.io\"}}},{id:314159,name:\"Filecoin - Calibration testnet\",network:\"filecoin-calibration\",nativeCurrency:{decimals:18,name:\"testnet filecoin\",symbol:\"tFIL\"},rpcUrls:{default:{http:[\"https://api.calibration.node.glif.io/rpc/v1\"]},public:{http:[\"https://api.calibration.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filscan\",url:\"https://calibration.filscan.io\"}}},{id:8453,network:\"base\",name:\"Base\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://base-mainnet.rpc.privy.systems\"]},blast:{http:[\"https://base-mainnet.blastapi.io\"],webSocket:[\"wss://base-mainnet.blastapi.io\"]},default:{http:[\"https://mainnet.base.org\"]},public:{http:[\"https://mainnet.base.org\"]}},blockExplorers:{etherscan:{name:\"Basescan\",url:\"https://basescan.org\"},default:{name:\"Basescan\",url:\"https://basescan.org\"}},testnet:!0},{id:84531,network:\"base-goerli\",name:\"Base Goerli Testnet\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://goerli.basescan.org\"}},testnet:!0},{id:84532,network:\"base-sepolia\",name:\"Base Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://base-sepolia.rpc.privy.systems\"]},default:{http:[\"https://sepolia.base.org\"]},public:{http:[\"https://sepolia.base.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://base-sepolia.blockscout.com\"}},testnet:!0},{id:80085,network:\"berachain-artio\",name:\"Berachain Artio\",nativeCurrency:{name:\"BERA\",symbol:\"BERA\",decimals:18},rpcUrls:{default:{http:[\"https://berachain-artio.rpc.privy.systems\"]},public:{http:[\"https://berachain-artio.rpc.privy.systems\"]}},blockExplorers:{default:{name:\"Beratrail\",url:\"https://artio.beratrail.io\"}},testnet:!0},{id:42,network:\"lukso\",name:\"LUKSO\",nativeCurrency:{name:\"LUKSO\",symbol:\"LYX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.lukso.network\"],webSocket:[\"wss://ws-rpc.mainnet.lukso.network\"]}},blockExplorers:{default:{name:\"LUKSO Mainnet Explorer\",url:\"https://explorer.execution.mainnet.lukso.network\"}}},{id:59144,network:\"linea-mainnet\",name:\"Linea Mainnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.linea.build\"],webSocket:[\"wss://rpc.linea.build\"]},public:{http:[\"https://rpc.linea.build\"],webSocket:[\"wss://rpc.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://lineascan.build\"},etherscan:{name:\"Etherscan\",url:\"https://lineascan.build\"}},testnet:!1},{id:59140,network:\"linea-testnet\",name:\"Linea Goerli Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{infura:{http:[\"https://linea-goerli.infura.io/v3\"],webSocket:[\"wss://linea-goerli.infura.io/ws/v3\"]},default:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]},public:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\"},etherscan:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\"}},testnet:!0},{id:43114,name:\"Avalanche\",network:\"avalanche\",nativeCurrency:{decimals:18,name:\"Avalanche\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax.network/ext/bc/C/rpc\"]},public:{http:[\"https://api.avax.network/ext/bc/C/rpc\"]}},blockExplorers:{etherscan:{name:\"SnowTrace\",url:\"https://snowtrace.io\"},default:{name:\"SnowTrace\",url:\"https://snowtrace.io\"}}},{id:43113,name:\"Avalanche Fuji\",network:\"avalanche-fuji\",nativeCurrency:{decimals:18,name:\"Avalanche Fuji\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax-test.network/ext/bc/C/rpc\"]},public:{http:[\"https://api.avax-test.network/ext/bc/C/rpc\"]}},blockExplorers:{etherscan:{name:\"SnowTrace\",url:\"https://testnet.snowtrace.io\"},default:{name:\"SnowTrace\",url:\"https://testnet.snowtrace.io\"}},testnet:!0},{id:7777777,name:\"Zora\",network:\"zora\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zora.energy\"],webSocket:[\"wss://rpc.zora.energy\"]},public:{http:[\"https://rpc.zora.energy\"],webSocket:[\"wss://rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.zora.energy\"}}},{id:999,name:\"Zora Goerli Testnet\",network:\"zora-testnet\",nativeCurrency:{decimals:18,name:\"Zora Goerli\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet.rpc.zora.energy\"],webSocket:[\"wss://testnet.rpc.zora.energy\"]},public:{http:[\"https://testnet.rpc.zora.energy\"],webSocket:[\"wss://testnet.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://testnet.explorer.zora.energy\"}},testnet:!0},{id:999999999,name:\"Zora Sepolia\",network:\"zora-sepolia\",nativeCurrency:{decimals:18,name:\"Zora Sepolia\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia.rpc.zora.energy\"],webSocket:[\"wss://sepolia.rpc.zora.energy\"]},public:{http:[\"https://sepolia.rpc.zora.energy\"],webSocket:[\"wss://sepolia.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Zora Sepolia Explorer\",url:\"https://sepolia.explorer.zora.energy/\"}},testnet:!0},{id:17e3,name:\"Holesky\",network:\"holesky\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://ethereum-holesky.publicnode.com\"]},public:{http:[\"https://ethereum-holesky.publicnode.com\"]}},blockExplorers:{etherscan:{name:\"EtherScan\",url:\"https://holesky.etherscan.io\"},default:{name:\"EtherScan\",url:\"https://holesky.etherscan.io\"}}},{id:690,name:\"Redstone\",network:\"redstone\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.redstonechain.com\"]},public:{http:[\"https://rpc.redstonechain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.redstone.xyz/\"}}},{id:17069,name:\"Garnet Holesky\",network:\"garnet-holesky\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.garnetchain.com\"]},public:{http:[\"https://rpc.garnetchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.garnetchain.com\"}}},{id:17001,name:\"Redstone Holesky\",network:\"redstone-holesky\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.holesky.redstone.xyz\"]},public:{http:[\"https://rpc.holesky.redstone.xyz\"]}},blockExplorers:{etherscan:{name:\"EtherScan\",url:\"https://explorer.holesky.redstone.xyz\"},default:{name:\"EtherScan\",url:\"https://explorer.holesky.redstone.xyz\"}}}];nr.map(e=>e.id);var nn=\"#FFFFFF\";function ni(e,t){let r=Math.max(0,Math.min(1,e.toHsl().l+t));return(0,b.Z)({...e.toHsl(),l:r})}function na(e,t,r){let n=r?console.warn:()=>{},i,a,o,s,l,c,d,h,u,p,m,g,f,y,w;t?.loginMethods?(i=t.loginMethods.includes(\"email\"),a=t.loginMethods.includes(\"sms\"),s=t.loginMethods.includes(\"wallet\"),l=t.loginMethods.includes(\"google\"),c=t.loginMethods.includes(\"twitter\"),d=t.loginMethods.includes(\"discord\"),u=t.loginMethods.includes(\"spotify\"),p=t.loginMethods.includes(\"instagram\"),h=t.loginMethods.includes(\"tiktok\"),g=t.loginMethods.includes(\"github\"),m=t.loginMethods.includes(\"linkedin\"),f=t.loginMethods.includes(\"apple\"),y=t.loginMethods.includes(\"farcaster\"),w=t.loginMethods.includes(\"telegram\")):(i=e.emailAuth,a=e.smsAuth,s=e.walletAuth,l=e.googleOAuth,c=e.twitterOAuth,d=e.discordOAuth,g=e.githubOAuth,u=e.spotifyOAuth,p=e.instagramOAuth,h=e.tiktokOAuth,m=e.linkedinOAuth,f=e.appleOAuth,y=e.farcasterAuth,w=e.telegramAuth),\"u\">typeof window&&\"function\"!=typeof window.PublicKeyCredential?o=!1:e.passkeyAuth&&(o=!0);let x=[i,a].filter(Boolean),v=[l,c,d,g,u,p,h,m,f,y,w].filter(Boolean),C=[s].filter(Boolean);if(x.length+v.length+C.length===0)throw Error(\"You must enable at least one login method\");let _=t?.appearance?.showWalletLoginFirst!==void 0?t?.appearance?.showWalletLoginFirst:e.showWalletLoginFirst;_&&0===C.length?(n(\"You should only enable `showWalletLoginFirst` when `wallet` logins are also enabled. `showWalletLoginFirst` has been set to false\"),_=!1):_||v.length+x.length!==0||(n(\"You should only disable `showWalletLoginFirst` when `email`, `sms`, or social logins are also enabled. `showWalletLoginFirst` has been set to true\"),_=!0);let j=t?.externalWallets?.walletConnect?.enabled??!0;t?.loginMethods&&t.loginMethodsAndOrder&&n(\"You should only configure one of `loginMethods` or `loginMethodsAndOrder`\");let k=ne({input:t?.appearance?.walletList,overrides:t?.loginMethodsAndOrder}),E=r6({input:t?.loginMethodsAndOrder}),A=t?.intl?.defaultCountry??\"US\",{chains:S,defaultChain:T}=function({additionalChains:e,supportedChains:t,defaultChainFromConfig:r,hasRpcConfigDefined:n}){let i;if(e&&t&&console.warn(\"You should only specify one of `additionalChains` or `supportedChains`. Using `supportedChains`.\"),t){if(0===t.length)throw Error(\"`supportedChains` must contain at least one chain\");t.filter(e=>e.rpcUrls.privyWalletOverride).length>0&&n&&console.warn(\"You have specified at least one `supportedChain` with `privyWalletOverride` but also have `rpcConfig` defined. The `rpcConfig` will be ignored. `rpcConfig` is deprecated and you should use `privyWalletOverride` in a `supportedChain`.\"),i=t.map(e=>e.rpcUrls.privyWalletOverride?e:nr.find(t=>t.id===e.id)??e)}else i=nr.concat(e??[]);let a=t?i[0]:nt,o=r??a;if(!i.find(e=>e.id===o.id))throw Error(\"`defaultChain` must be included in `supportedChains`\");return{chains:i,defaultChain:o}}({additionalChains:t?.additionalChains,supportedChains:t?.supportedChains,defaultChainFromConfig:t?.defaultChain,hasRpcConfigDefined:Object.keys(t?.rpcConfig?.rpcUrls??{}).length>0}),P=!!t?.defaultChain,N=t?.customAuth?.getCustomAccessToken&&t?.customAuth?.enabled!==!1,R,M=!(e.enforceWalletUis??!0);if(R=e.legacyWalletUiConfig??!0?N?t?.embeddedWallets?.noPromptOnSignature??!0:t?.embeddedWallets?.noPromptOnSignature??M:M,t?.embeddedWallets?.waitForTransactionConfirmation===!1&&!0!==R)throw Error(\"Overriding `config.embeddedWallets.waitForTransactionConfirmation` requires that you disable wallet UIs in the dashboard.\");let{requireUserPasswordOnCreate:O,...I}=t?.embeddedWallets??{};return{id:e.id,name:e.name,allowlistConfig:e.allowlistConfig,legacyWalletUiConfig:e.legacyWalletUiConfig,appearance:{logo:t?.appearance?.logo??e.logoUrl,landingHeader:t?.appearance?.landingHeader??r5.appearance.landingHeader,loginMessage:\"string\"==typeof t?.appearance?.loginMessage?t?.appearance?.loginMessage.slice(0,100):t?.appearance?.loginMessage,palette:function({backgroundTheme:e,accentHex:t}){var r;let n;switch(e){case\"light\":n=nn;break;case\"dark\":n=\"#1E1E1D\";break;default:n=e}let i=(0,b.Z)(n),a=(0,b.Z)(t),o=(0,b.Z)(\"#51BA81\"),s=(0,b.Z)(\"#FFB74D\"),l=(0,b.Z)(\"#EC6351\"),c=((r=i.getLuminance())<.8&&r>.2&&console.warn(\"Background color is not light or dark enough, which could lead to accessibility issues.\"),r>.5?\"light\":\"dark\"),d=ni(i,\"light\"===c?-.04:.11),h=ni(i,\"light\"===c?-.88:.87),u=ni(i,\"light\"===c?-.7:.75),p=ni(i,\"light\"===c?-.43:.45).desaturate(\"light\"===c?60:20),m=ni(i,\"light\"===c?-.08:.25).desaturate(\"light\"===c?60:20),g=ni(a,.15),f=ni(a,-.06),y=ni(l,.3),w=ni(s,.3),x=(0,b.Z)(a.getLuminance()>.5?\"#040217\":nn),v=ni(o,-.16),C=ni(o,.4);return{colorScheme:c,background:i.toHslString(),background2:d.toHslString(),foreground:h.toHslString(),foreground2:u.toHslString(),foreground3:p.toHslString(),foreground4:m.toHslString(),accent:a.toHslString(),accentLight:g.toHslString(),accentDark:f.toHslString(),foregroundAccent:x.toHslString(),success:o.toHslString(),successDark:v.toHslString(),successLight:C.toHslString(),error:l.toHslString(),errorLight:y.toHslString(),warn:s.toHslString(),warnLight:w.toHslString()}}({backgroundTheme:t?.appearance?.theme??r5.appearance.theme,accentHex:t?.appearance?.accentColor??e.accentColor??r5.appearance.accentColor}),loginGroupPriority:_?\"web3-first\":\"web2-first\",hideDirectWeb2Inputs:!!t?.appearance?.hideDirectWeb2Inputs,walletList:k},loginMethods:{wallet:s,email:i,sms:a,passkey:o,google:l,twitter:c,discord:d,github:g,spotify:u,instagram:p,tiktok:h,linkedin:m,apple:f,farcaster:y,telegram:w},loginMethodsAndOrder:E,legal:{termsAndConditionsUrl:t?.legal?.termsAndConditionsUrl??e.termsAndConditionsUrl,privacyPolicyUrl:t?.legal?.privacyPolicyUrl??e.privacyPolicyUrl,requireUsersAcceptTerms:e.requireUsersAcceptTerms??!1},walletConnectCloudProjectId:t?.walletConnectCloudProjectId??e.walletConnectCloudProjectId??r5.walletConnectCloudProjectId,rpcConfig:{rpcUrls:t?.rpcConfig?.rpcUrls??r5.rpcConfig.rpcUrls,rpcTimeouts:t?.rpcConfig?.rpcTimeouts??r5.rpcConfig.rpcTimeouts},chains:S,defaultChain:T,intl:{defaultCountry:A},shouldEnforceDefaultChainOnConnect:P,captchaEnabled:e.captchaEnabled??r5.captchaEnabled,captchaSiteKey:e.captchaSiteKey,externalWallets:{coinbaseWallet:{connectionOptions:t?.externalWallets?.coinbaseWallet?.connectionOptions??r5.externalWallets.coinbaseWallet.connectionOptions},walletConnect:{enabled:j}},embeddedWallets:{...e.embeddedWalletConfig,...\"boolean\"==typeof O?{requireUserOwnedRecoveryOnCreate:O}:{},...N?{createOnLogin:\"all-users\",requireUserOwnedRecoveryOnCreate:!1,userOwnedRecoveryOptions:[\"user-passcode\"]}:{},waitForTransactionConfirmation:!0,priceDisplay:{primary:\"fiat-currency\",secondary:\"native-token\"},...I,noPromptOnSignature:R},mfa:{methods:e.mfaMethods??[],noPromptOnMfaRequired:t?.mfa?.noPromptOnMfaRequired??!1},customAuth:N?{enabled:!0,...t.customAuth}:void 0,loginConfig:{twitterOAuthOnMobileEnabled:e.twitterOAuthOnMobileEnabled??!1,telegramAuthConfiguration:e.telegramAuthConfiguration},headless:!!t?.headless,render:{standalone:t?._render?.standalone??r5._render.standalone},fundingConfig:e.fundingConfig,fundingMethodConfig:{...t?.fundingMethodConfig??r5.fundingMethodConfig,moonpay:{...t?.fundingMethodConfig?.moonpay??r5.fundingMethodConfig.moonpay,useSandbox:t?.fundingMethodConfig?.moonpay.useSandbox??t?.fiatOnRamp?.useSandbox??r5.fundingMethodConfig.moonpay.useSandbox}}}}var no=function(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t=0,i;t<e.length;t++)r=Math.imul(r^(i=e.charCodeAt(t)),2654435761),n=Math.imul(n^i,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),4294967296*(2097151&(n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},ns={showWalletLoginFirst:!0,allowlistConfig:{errorTitle:null,errorDetail:null,errorCtaText:null,errorCtaLink:null},walletAuth:!0,emailAuth:!0,smsAuth:!1,googleOAuth:!1,twitterOAuth:!1,discordOAuth:!1,githubOAuth:!1,linkedinOAuth:!1,appleOAuth:!1,termsAndConditionsUrl:null,privacyPolicyUrl:null,embeddedWalletConfig:{createOnLogin:\"off\",requireUserOwnedRecoveryOnCreate:!1,userOwnedRecoveryOptions:[\"user-passcode\"]},fiatOnRampEnabled:!1,captchaEnabled:!1,captchaSiteKey:\"\"},nl=na(ns,void 0,!1),nc=(0,o.createContext)({appConfig:nl,isServerConfigLoaded:!1}),nd=({children:e,legacyCreateEmbeddedWalletFlag:t,client:r,clientConfig:n})=>{let[i,a]=(0,o.useState)(null),s=(0,o.useMemo)(()=>na(i??ns,n,!!i),[i,n]);return(0,o.useEffect)(()=>{if(!i)return;let e=function(e,t){if(!e)return{legacyCreateEmbeddedWalletFlag:t};let{appearance:r,additionalChains:n,supportedChains:i,defaultChain:a,...o}=e;return{...o,...n?{additionalChains:n.map(e=>e.id)}:void 0,...i?{supportedChains:i.map(e=>e.id)}:void 0,...a?{defaultChain:a.id}:void 0,legacyCreateEmbeddedWalletFlag:t}}(n,t),a=no(JSON.stringify(e)).toString(),o=`privy:sent:${i.id}:${a}`;localStorage.getItem(o)||(r.createAnalyticsEvent({eventName:\"sdk_initialize\",payload:e}),localStorage.setItem(o,\"t\"))},[n,t,i]),(0,o.useEffect)(()=>{i||(async()=>{try{let e=await r.getServerConfig();e.customApiUrl&&r.updateApiUrl(e.customApiUrl),a(e)}catch(e){console.warn(\"Error generating app config: \",e)}})()},[]),(0,m.jsx)(nc.Provider,{value:{appConfig:s,isServerConfigLoaded:!!i},children:e})},nh=()=>{let{appConfig:e}=(0,o.useContext)(nc);return e},nu=()=>{let{isServerConfigLoaded:e}=(0,o.useContext)(nc);return e},np=()=>{throw Error(\"You need to wrap your application with the <PrivyProvider> initialized with your app id.\")},nm=(0,o.createContext)({ready:!1,app:nl,currentScreen:null,lastScreen:null,navigate:np,navigateBack:np,resetNavigation:np,setModalData:np,onUserCloseViaDialogOrKeybindRef:void 0}),ng=[\"LANDING\",\"CONNECT_ONLY_LANDING_SCREEN\",null],nf=e=>{let t=nh(),r=e.authenticated,[n,i]=(0,o.useState)(e.initialScreen);(0,o.useEffect)(()=>{r||ng.includes(e.initialScreen)||e.setInitialScreen(null)},[r]);let a=(0,o.useRef)(null);(0,o.useEffect)(()=>{e.open||(a.current=null)},[e.open]),(0,o.useEffect)(()=>{a.current=null},[e.initialScreen]);let s={ready:!!t.id,app:t,data:e.data,setModalData:e.setModalData,currentScreen:e.initialScreen,lastScreen:n,navigate:(t,r=!0)=>{e.setInitialScreen(t),r&&i(e.initialScreen)},navigateBack:()=>{e.setInitialScreen(n)},resetNavigation:()=>{e.setInitialScreen(null),i(null)},onUserCloseViaDialogOrKeybindRef:a};return(0,m.jsxs)(nm.Provider,{value:s,children:[(\"string\"==typeof t.appearance.logo||t.appearance.logo?.type===\"img\")&&(0,m.jsx)(r4,{src:\"string\"==typeof t.appearance.logo?t.appearance.logo:t.appearance.logo.props.src}),e.children]})},ny=()=>(0,o.useContext)(nm),nw=({style:e,...t})=>{let{app:r}=ny();return(0,m.jsxs)(\"svg\",{width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"28\",height:\"28\",rx:\"3\",fill:r?.appearance.palette.colorScheme===\"dark\"?\"#3396ff\":\"#141414\"}),(0,m.jsx)(\"g\",{clipPath:\"url(#clip0_1765_9946)\",children:(0,m.jsx)(\"path\",{d:\"M8.09448 10.3941C11.3558 7.20196 16.6442 7.20196 19.9055 10.3941L20.2982 10.7782C20.3369 10.8157 20.3677 10.8606 20.3887 10.9102C20.4097 10.9599 20.4206 11.0132 20.4206 11.0671C20.4206 11.121 20.4097 11.1744 20.3887 11.224C20.3677 11.2737 20.3369 11.3186 20.2982 11.3561L18.9554 12.6702C18.9158 12.7086 18.8628 12.7301 18.8077 12.7301C18.7526 12.7301 18.6996 12.7086 18.66 12.6702L18.1198 12.1415C15.8448 9.91503 12.1557 9.91503 9.88015 12.1415L9.30167 12.7075C9.26207 12.7459 9.20909 12.7673 9.15395 12.7673C9.0988 12.7673 9.04582 12.7459 9.00622 12.7075L7.66346 11.3934C7.62475 11.3559 7.59397 11.3109 7.57295 11.2613C7.55193 11.2117 7.5411 11.1583 7.5411 11.1044C7.5411 11.0505 7.55193 10.9971 7.57295 10.9475C7.59397 10.8979 7.62475 10.8529 7.66346 10.8154L8.09448 10.3941ZM22.6829 13.1115L23.8776 14.2814C23.9163 14.319 23.9471 14.3639 23.9681 14.4135C23.9892 14.4632 24 14.5165 24 14.5704C24 14.6243 23.9892 14.6777 23.9681 14.7273C23.9471 14.777 23.9163 14.8219 23.8776 14.8594L18.4893 20.1332C18.4102 20.2101 18.3042 20.2531 18.1938 20.2531C18.0835 20.2531 17.9775 20.2101 17.8984 20.1332L14.0743 16.3901C14.0545 16.3708 14.0279 16.36 14.0003 16.36C13.9726 16.36 13.9461 16.3708 13.9263 16.3901L10.1021 20.1332C10.023 20.2101 9.91703 20.2531 9.8067 20.2531C9.69636 20.2531 9.59038 20.2101 9.51124 20.1332L4.12236 14.8594C4.08365 14.8219 4.05287 14.777 4.03185 14.7273C4.01083 14.6777 4 14.6243 4 14.5704C4 14.5165 4.01083 14.4632 4.03185 14.4135C4.05287 14.3639 4.08365 14.319 4.12236 14.2814L5.31767 13.1115C5.39678 13.0348 5.50265 12.9919 5.61285 12.9919C5.72305 12.9919 5.82892 13.0348 5.90803 13.1115L9.73216 16.8546C9.75194 16.874 9.7785 16.8848 9.80616 16.8848C9.83381 16.8848 9.86037 16.874 9.88015 16.8546L13.7043 13.1115C13.7834 13.0346 13.8894 12.9916 13.9997 12.9916C14.1101 12.9916 14.216 13.0346 14.2952 13.1115L18.1198 16.8546C18.1396 16.874 18.1662 16.8848 18.1938 16.8848C18.2215 16.8848 18.2481 16.874 18.2678 16.8546L22.092 13.1115C22.1711 13.0346 22.2771 12.9916 22.3874 12.9916C22.4977 12.9916 22.6037 13.0346 22.6829 13.1115Z\",fill:\"white\"})}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_1765_9946\",children:(0,m.jsx)(\"rect\",{width:\"20\",height:\"12.2531\",fill:\"white\",transform:\"translate(4 8)\"})})})]})},nx=class extends rH{constructor(e,t,r,n,i,a,o,s){super(s||\"unknown\",r,n,t),this.connectorType=\"wallet_connect_v2\",this.privyAppId=a,this.privyAppName=o,this.walletConnectCloudProjectId=e,this.rpcConfig=t,this.shouldEnforceDefaultChainOnConnect=i,this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),s&&(this.walletEntry=tS[s],this.walletClientType=s)}async initialize(){let e=await this.createProvider();if(this.provider=e,this.proxyProvider.setWalletProvider(e),this.subscribeListeners(),e.session){if(this.walletProvider?.session?.peer.metadata.url){let e=tA(this.walletProvider?.session?.peer.metadata.url);this.walletEntry=e?.entry,this.walletClientType=e?.walletClientType||\"unknown\"}this.connected=!0,await this.syncAccounts()}this.initialized=!0,this.emit(\"initialized\");let{WalletConnectModal:t}=await r.e(318).then(r.bind(r,55318));this.modal=new t({projectId:this.walletConnectCloudProjectId,themeVariables:{\"--wcm-z-index\":\"1000000\"}}),this.modal.subscribeModal(e=>{e.open||this.walletProvider?.session||!this.onQrModalClosed||this.onQrModalClosed()})}async connect(e){return e.showPrompt&&await this.promptConnection(),this.getConnectedWallet()}async isConnected(){return!!this.walletProvider?.connected}get walletBranding(){return\"metamask\"===this.walletClientType?{name:\"MetaMask\",icon:rQ,id:\"io.metamask\"}:{name:tw(this.walletProvider?.session?.peer.metadata.name||\"\")||\"WalletConnect\",icon:this.walletProvider?.session?.peer.metadata.icons?.[0]||nw,id:this.walletProvider?.session?.peer.metadata.name.toLowerCase()||\"wallet_connect_v2\"}}async resetConnection(e){this.walletProvider&&this.walletProvider.connected&&(await this.walletProvider.disconnect(),this.walletProvider.signer.session=void 0,this.walletEntry=tS[e],this.walletClientType=e,this.redirectUri=void 0,this.fallbackUniversalRedirectUri=void 0,function(){try{localStorage.removeItem(tP)}catch{}}(),this.onDisconnect())}async promptConnection(){if(this.provider)return new Promise((e,t)=>{this.onQrModalClosed=()=>{t(new rM)},(async()=>{let t=\"\",r=await Promise.race([this.walletProvider?.enable(),this.proxyProvider.walletTimeout()]);if(r?.length&&(t=r[0]),!t||\"\"===t)throw new eQ(\"Unable to retrieve address\");if(this.walletProvider?.session?.peer.metadata.url){let e=tA(this.walletProvider?.session?.peer.metadata.url);this.walletEntry=e?.entry,this.walletClientType=e?.walletClientType||\"unknown\",this.proxyProvider.rpcTimeoutDuration=nC(this.rpcConfig,this.walletClientType)}this.connected=!0,await this.syncAccounts(r),e()})().catch(e=>{if(e){t(rO(e));return}t(new eQ(\"Unknown error during connection\"))}).finally(()=>this.modal?.closeModal())})}disconnect(){this.walletProvider?.disconnect().then(()=>this.onDisconnect()).catch(()=>console.warn(\"Unable to disconnect Wallet Connect provider\"))}get walletProvider(){return this.proxyProvider.walletProvider}setWalletProvider(e){this.proxyProvider.setWalletProvider(e)}async createProvider(){let e={};for(let t of this.chains){let r=tb(t.id,this.chains,this.rpcConfig,this.privyAppId);r&&(e[t.id]=r)}let t=this.shouldEnforceDefaultChainOnConnect?[this.defaultChain.id]:[],r=this.chains.map(e=>e.id),n=await C.Gn.init({projectId:this.walletConnectCloudProjectId,chains:t,optionalChains:r,optionalEvents:C.gy,optionalMethods:C.lI,rpcMap:e,showQrModal:!1,metadata:{description:this.privyAppName,name:this.privyAppName,url:window.location.toString(),icons:[]}});return n.on(\"display_uri\",e=>{if(n.signer.abortPairingAttempt(),s.tq&&this.walletEntry){let{redirect:t,href:r}=function(e,t){let r=tT(t);if(r.deepLink)return tR(r.deepLink,e);if(r.universalLink)return tM(r.universalLink,e);throw new eK(`Unsupported wallet ${t.id}`)}(e,this.walletEntry);(function({href:e,name:t}){try{localStorage.setItem(tP,JSON.stringify({href:e,name:t}))}catch{}})({href:r,name:this.walletEntry.displayName}),this.redirectUri=t;let n=function(e,t){let r=tT(t);if(r.universalLink)return tM(r.universalLink,e)}(e,this.walletEntry);n?.redirect&&(this.fallbackUniversalRedirectUri=n.redirect),tO(t,\"_self\")}else this.modal?.openModal({uri:e,chains:[this.defaultChain.id]})}),n.on(\"connect\",()=>{if(this.modal?.closeModal(),n.session?.peer.metadata.url){let e=tA(n.session?.peer.metadata.url);this.walletEntry=e?.entry,this.walletClientType=e?.walletClientType||\"unknown\"}}),n}async enableProvider(){return this.walletProvider?.connected?Promise.resolve(this.walletProvider.accounts):await this.walletProvider?.enable()}},nv=e=>{let t=localStorage.getItem(\"-walletlink:https://www.walletlink.org:Addresses\")?.split(\" \").filter(e=>y.A7(e)).map(e=>n.Kn(e));return!!t?.length&&!!e?.linkedAccounts.filter(e=>\"wallet\"==e.type&&t.includes(e.address)).length},nC=(e,t)=>e.rpcTimeouts&&e.rpcTimeouts[t]||12e4,nb=class extends w.Z{constructor(e,t,r,n,i,a,o,s,l,c,d){super(),this.getEthereumProvider=()=>{let e=this.wallets[0],t=this.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return e&&t?t.proxyProvider:new rF},this.privyAppId=e,this.walletConnectCloudProjectId=t,this.rpcConfig=r,this.chains=n,this.defaultChain=i,this.walletConnectors=[],this.initialized=!1,this.store=a,this.walletList=o,this.shouldEnforceDefaultChainOnConnect=s,this.externalWalletConfig=l,this.privyAppName=c,this.privyAppLogo=d,this.storedConnections=nS()}get wallets(){let e=new Set,t=this.walletConnectors.flatMap(e=>e.wallets).sort((e,t)=>e.connectedAt&&t.connectedAt?t.connectedAt-e.connectedAt:0).filter(t=>{let r=`${t.address}${t.walletClientType}${t.connectorType}`;return!e.has(r)&&(e.add(r),!0)}),r=t.findIndex(e=>e.address===(this.activeWallet?this.activeWallet:\"unknown\"));return r>=0&&t.unshift(t.splice(r,1)[0]),t}async initialize(){if(this.initialized)return;to.get(tX)&&(to.getKeys().forEach(e=>{e.startsWith(\"walletconnect\")&&to.del(e)}),to.del(tX));let e=tv(this.store,this.walletList,this.externalWalletConfig).then(e=>{e.forEach(({type:e,eip6963InjectedProvider:t,legacyInjectedProvider:r})=>{this.createWalletConnector(\"injected\",e,{eip6963InjectedProvider:t,legacyInjectedProvider:r})})});this.walletList.includes(\"coinbase_wallet\")&&this.createWalletConnector(\"coinbase_wallet\",\"coinbase_wallet\"),!tc()&&this.walletList.includes(\"phantom\")&&this.createWalletConnector(\"phantom\",\"phantom\"),this.externalWalletConfig.walletConnect.enabled&&this.createWalletConnector(\"wallet_connect_v2\",\"unknown\"),await e,this.initialized=!0}findWalletConnector(e,t){return\"wallet_connect_v2\"===e?this.walletConnectors.find(t=>t.connectorType===e)??null:this.walletConnectors.find(r=>r.connectorType===e&&r.walletClientType===t)??null}onInitialized(e){e.wallets.forEach(e=>{let t=this.storedConnections.find(t=>t.address===e.address&&t.connectorType===e.connectorType&&t.walletClientType===e.walletClientType);t&&(e.connectedAt=t.connectedAt)}),this.saveConnectionHistory(),this.emit(\"walletsUpdated\"),this.emit(\"connectorInitialized\")}onWalletsUpdated(e){e.initialized&&(this.saveConnectionHistory(),this.emit(\"walletsUpdated\"))}addEmbeddedWalletConnector(e,t,r,n){let i=this.findWalletConnector(\"embedded\",\"privy\");if(i)i.proxyProvider.walletProxy=e;else{let i=new rK(new rD(e,t,this.rpcConfig,this.chains,n,r.id),this.chains,r,this.rpcConfig);this.addWalletConnector(i)}}addImportedWalletConnector(e,t,r,n){let i=this.findWalletConnector(\"embedded_imported\",\"privy\");if(i)i.proxyProvider.walletProxy=e;else{let i=new rK(new rD(e,t,this.rpcConfig,this.chains,n,r.id),this.chains,r,this.rpcConfig,!0);this.addWalletConnector(i)}}removeEmbeddedWalletConnector(){let e=this.findWalletConnector(\"embedded\",\"privy\");if(e){let t=this.walletConnectors.indexOf(e);this.walletConnectors.splice(t,1),this.saveConnectionHistory(),this.storedConnections=nS(),this.emit(\"walletsUpdated\")}}removeImportedWalletConnector(){let e=this.findWalletConnector(\"embedded_imported\",\"privy\");if(e){let t=this.walletConnectors.indexOf(e);this.walletConnectors.splice(t,1),this.saveConnectionHistory(),this.storedConnections=nS(),this.emit(\"walletsUpdated\")}}async createWalletConnector(e,t,r){let n=this.findWalletConnector(e,t);if(n)return n instanceof nx&&n.resetConnection(t),n;let i=\"injected\"!==e?\"coinbase_wallet\"===e?new rV(this.chains,this.defaultChain,this.rpcConfig,this.externalWalletConfig,this.privyAppName,this.privyAppLogo):\"phantom\"===e?new r3(this.defaultChain):new nx(this.walletConnectCloudProjectId,this.rpcConfig,this.chains,this.defaultChain,this.shouldEnforceDefaultChainOnConnect,this.privyAppId,this.privyAppName,t):\"metamask\"===t&&r?.eip6963InjectedProvider?new r1(this.chains,this.defaultChain,this.rpcConfig,r?.eip6963InjectedProvider,\"metamask\"):\"metamask\"===t&&r?.legacyInjectedProvider?new r0(this.chains,this.defaultChain,this.rpcConfig,r?.legacyInjectedProvider,\"metamask\"):\"phantom\"===t&&r?.legacyInjectedProvider?new r0(this.chains,this.defaultChain,this.rpcConfig,r?.legacyInjectedProvider,\"phantom\"):r?.legacyInjectedProvider&&\"unknown_browser_extension\"===t?new r0(this.chains,this.defaultChain,this.rpcConfig,r?.legacyInjectedProvider):r?.eip6963InjectedProvider?new rJ(this.chains,this.defaultChain,this.rpcConfig,r?.eip6963InjectedProvider,t):void 0;return i&&this.addWalletConnector(i),i||null}addWalletConnector(e){this.walletConnectors.push(e),e.on(\"initialized\",()=>this.onInitialized(e)),e.on(\"walletsUpdated\",()=>this.onWalletsUpdated(e)),e.initialize().catch(e=>{console.debug(\"Failed to initialize connector\",e)})}saveConnectionHistory(){let e=this.wallets.map(e=>({address:e.address,connectorType:e.connectorType,walletClientType:e.walletClientType,connectedAt:e.connectedAt}));to.put(tJ,e)}async activeWalletSign(e){let t=this.wallets,r=t.length>0?t[0]:null;return r?r.sign(e):null}setActiveWallet(e){this.activeWallet=(0,n.Kn)(e),this.emit(\"walletsUpdated\")}};function n_(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n?.address!==i?.address||n?.chainId!==i?.chainId||n?.connectorType!==i?.connectorType||n?.connectedAt!==i?.connectedAt||n?.walletClientType!==i?.walletClientType||n?.isConnected!==i?.isConnected||n?.linked!==i?.linked)return!1}return!0}var nj,nk,nE,nA=e=>e&&\"string\"==typeof e.address&&\"string\"==typeof e.connectorType&&\"string\"==typeof e.walletClientType&&\"number\"==typeof e.connectedAt,nS=()=>{let e=to.get(tJ);return e&&Array.isArray(e)&&e.map(e=>nA(e)).every(Boolean)?e:[]},nT=[e4,e6,e5,e9],nP=class{constructor({appId:e,appClientId:t,client:r,defaults:n}){this.appId=e,this.appClientId=t,this.clientAnalyticsId=r.clientAnalyticsId,this.sdkVersion=\"1.77.0\",this.client=r,this.defaults=n,this.fallbackApiUrl=r.fallbackApiUrl,this.baseFetch=_.Wg.create({baseURL:this.defaults.baseURL,timeout:this.defaults.timeout,retry:3,retryDelay:500,retryStatusCodes:[408,409,425,500,502,503,504],credentials:\"include\",onRequest:async({request:e,options:t})=>{let r=new Headers(t.headers);r.set(\"privy-app-id\",this.appId),this.appClientId&&r.set(\"privy-client-id\",this.appClientId),r.set(\"privy-ca-id\",this.clientAnalyticsId||\"\"),r.set(\"privy-client\",`react-auth:${this.sdkVersion}`);let n=nT.includes(e.toString());if(!r.has(\"authorization\")){let e=await this.client.getAccessToken({disableAutoRefresh:n});null!==e&&r.set(\"authorization\",`Bearer ${e}`)}t.headers=r,t.retryDelay&&(t.retryDelay=3*t.retryDelay)},onRequestError:({error:e})=>{if(e instanceof DOMException&&\"AbortError\"===e.name)throw new eY}})}async get(e,t){try{return await this.baseFetch(e,t)}catch(e){throw eX(e)}}async post(e,t,r){try{return await this.baseFetch(e,{method:\"POST\",...t?{body:t}:{},...r})}catch(e){throw eX(e)}}async delete(e,t){try{return await this.baseFetch(e,{method:\"DELETE\",...t})}catch(e){throw eX(e)}}},nN=e=>({challenge:e.challenge,allowCredentials:e.allow_credentials?.map(e=>({id:e.id,type:e.type,transports:e.transports}))||[],timeout:e.timeout,extensions:{appid:e.extensions?.app_id,credProps:e.extensions?.cred_props,hmacCreateSecret:e.extensions?.hmac_create_secret},userVerification:e.user_verification}),nR=class{static parse(e){try{return new nR(e)}catch{return null}}constructor(e){this.value=e,this._decoded=k.t(e)}get subject(){return this._decoded.sub}get expiration(){return this._decoded.exp}get issuer(){return this._decoded.iss}get audience(){return this._decoded.aud}isExpired(e=0){return Date.now()>=(this.expiration-e)*1e3}},nM=class{constructor(){this.authenticateOnce=new tI(async e=>this._authenticate(e)),this.linkOnce=new tI(async e=>this._link(e)),this.refreshOnce=new tI(this._refresh.bind(this)),this.destroyOnce=new tI(this._destroy.bind(this)),this.forkSessionOnce=new tI(this._forkSession.bind(this))}get token(){try{let e=to.get(tF);return\"string\"==typeof e?new nR(e).value:null}catch(e){return console.error(e),this.destroyLocalState(),null}}get refreshToken(){try{let e=to.get(tD);return\"string\"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}get forkedToken(){try{let e=to.get(tH);return\"string\"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}getProviderAccessToken(e){try{let t=to.get(tV(e));if(\"string\"!=typeof t)return null;{let r=new nR(t);return r.isExpired()?(to.del(tV(e)),null):r.value}}catch(e){return console.error(e),null}}get mightHaveServerCookies(){try{let e=j.Z.get(t$);return void 0!==e&&e.length>0}catch(e){console.error(e)}return!1}hasRefreshCredentials(){return this.mightHaveServerCookies||\"string\"==typeof this.token&&\"string\"==typeof this.refreshToken&&\"deprecated\"!==this.refreshToken}hasRecoveryCredentials(){return\"string\"==typeof this.forkedToken}hasActiveToken(){let e=nR.parse(this.token);return null!==e&&!e.isExpired(30)}authenticate(e){return this.authenticateOnce.execute(e)}link(e){return this.linkOnce.execute(e)}refresh(){return this.refreshOnce.execute()}forkSession(){return this.forkSessionOnce.execute()}destroy(){return this.destroyOnce.execute()}storeProviderAccessToken(e,t){\"string\"==typeof t?to.put(tV(e),t):to.del(tV(e))}async _authenticate(e){try{let t=await e.authenticate(),{user:r,is_new_user:n,oauth_tokens:i}=t;this.handleTokenResponse(t);let a=i?{provider:i.provider,accessToken:i.access_token,accessTokenExpiresInSeconds:i.access_token_expires_in_seconds,refreshToken:i.refresh_token,refreshTokenExpiresInSeconds:i.refresh_token_expires_in_seconds,scopes:i.scopes}:void 0,o=e instanceof tt?\"email\":e instanceof rm?\"sms\":e instanceof rp?\"siwe\":e instanceof t3?\"guest\":e instanceof te?\"custom_auth\":e instanceof t7?e.meta.provider:null;return o&&this.client&&this.client.createAnalyticsEvent({eventName:\"sdk_authenticate\",payload:{method:o,isNewUser:n}}),\"siwe\"===o&&this.client&&this.client.createAnalyticsEvent({eventName:\"sdk_authenticate_siwe\",payload:{connectorType:e.meta.connectorType,walletClientType:e.meta.walletClientType}}),{user:rE(r),isNewUser:n,oAuthTokens:a}}catch(e){throw console.warn(\"Error authenticating session\"),eJ(e)}}async _link(e){try{let t=await e.link(),r=t.oauth_tokens,n=r?{provider:r.provider,accessToken:r.access_token,accessTokenExpiresInSeconds:r.access_token_expires_in_seconds,refreshToken:r.refresh_token,refreshTokenExpiresInSeconds:r.refresh_token_expires_in_seconds,scopes:r.scopes}:void 0;return{user:rE(t),oAuthTokens:n}}catch(e){throw console.warn(\"Error linking account\"),eJ(e)}}async _refresh(){if(!this.api)throw new eK(\"Session has no API instance\");if(!this.client)throw new eK(\"Session has no PrivyClient instance\");await this.client.getAccessToken({disableAutoRefresh:!0});let e=this.token,t=this.refreshToken,r=this.forkedToken;if(this.client.useServerCookies&&!this.mightHaveServerCookies&&this.token&&window.location.origin===this.client.apiUrl)return this.destroyLocalState(),null;try{let n;if(e&&t||this.mightHaveServerCookies){let i={};e&&(i.authorization=`Bearer ${e}`),n=await this.api.post(e4,t?{refresh_token:t}:{},{headers:i}),r&&this.clearForkedToken()}else{if(!r)return null;n=await this.api.post(e6,{refresh_token:r}),this.clearForkedToken()}return this.handleTokenResponse(n),rE(n.user)}catch(e){if(e instanceof eG&&\"missing_or_invalid_token\"===e.privyErrorCode)return console.warn(\"Unable to refresh tokens - token is missing or no longer valid\"),this.destroyLocalState(),null;throw eJ(e)}}handleTokenResponse(e){e.session_update_action?\"set\"===e.session_update_action?(this.storeRefreshToken(e.refresh_token),this.storeToken(e.token),e.identity_token&&this.storeIdentityToken(e.identity_token)):\"clear\"===e.session_update_action?this.destroyLocalState():\"ignore\"===e.session_update_action&&e.token&&(this.storeToken(e.token),e.identity_token&&this.storeIdentityToken(e.identity_token)):(this.storeRefreshToken(e.refresh_token),this.storeToken(e.token),e.identity_token&&this.storeIdentityToken(e.identity_token))}async _destroy(){try{await this.api?.post(e5,{refresh_token:this.refreshToken})}catch{console.warn(\"Error destroying session\")}this.destroyLocalState()}async _forkSession(){if(!this.api)throw new eK(\"Session has no API instance\");let e=this.refreshToken;try{let t=await this.api.post(\"/api/v1/sessions/fork\",{refresh_token:e});return this.storeRefreshToken(t.refresh_token),this.storeToken(t.token),t.new_session_refresh_token}catch(e){throw eJ(e)}}destroyLocalState(){this.storeRefreshToken(null),this.storeToken(null),this.clearIdentityToken(),this.clearForkedToken()}storeToken(e){if(\"string\"==typeof e){let t=to.get(tF);if(to.put(tF,e),!this.client?.useServerCookies){let t=nR.parse(e)?.expiration;j.Z.set(tU,e,{sameSite:\"Strict\",secure:!0,expires:t?new Date(1e3*t):void 0})}t!==e&&this.client?.onStoreToken?.(e)}else to.del(tF),j.Z.remove(tU),this.client?.onDeleteToken?.()}storeRefreshToken(e){\"string\"==typeof e?(to.put(tD,e),this.client?.useServerCookies||j.Z.set(t$,\"t\",{sameSite:\"Strict\",secure:!0,expires:30})):(to.del(tD),j.Z.remove(\"privy-refresh-token\"),j.Z.remove(t$))}storeIdentityToken(e){if(this.client?.useServerCookies)return;to.put(tZ,e);let t=nR.parse(e)?.expiration;j.Z.set(tz,e,{sameSite:\"Strict\",secure:!0,expires:t?new Date(1e3*t):void 0})}clearIdentityToken(){to.del(tZ),j.Z.remove(tz)}clearForkedToken(){to.del(tH)}},nO=class{constructor(e){eH(this,nk),this.apiUrl=e.apiUrl||tL,this.fallbackApiUrl=this.apiUrl,this.useServerCookies=!!e.apiUrl&&e.apiUrl.startsWith(\"https://privy.\"),this.timeout=e.timeout||2e4,this.appId=e.appId,this.appClientId=e.appClientId,this.clientAnalyticsId=eq(this,nk,nE).call(this),nj||(nj=new nM),this.session=nj,this.api=this.generateApi(),this.session.client=this}initializeConnectorManager({walletConnectCloudProjectId:e,rpcConfig:t,chains:r,defaultChain:n,store:i,walletList:a,shouldEnforceDefaultChainOnConnect:o,externalWalletConfig:s,appName:l}){this.connectors||(this.connectors=new nb(this.appId,e,t,r,n,i,a,o,s,l))}sessionHasActiveToken(){return this.session.hasActiveToken()}generateApi(){let e=new nP({appId:this.appId,appClientId:this.appClientId,client:this,defaults:{baseURL:this.apiUrl,timeout:this.timeout}});return this.session.api=e,e}updateApiUrl(e){this.apiUrl=e||this.fallbackApiUrl,this.api=this.generateApi(),e&&(this.useServerCookies=!0)}authenticate(){if(!this.authFlow)throw new eK(\"No auth flow in progress.\");return this.session.authenticate(this.authFlow)}async link(){if(!this.authFlow)throw new eK(\"No auth flow in progress.\");let{oAuthTokens:e}=await this.session.link(this.authFlow);return{user:await this.getAuthenticatedUser(),oAuthTokens:e}}storeProviderAccessToken(e,t){this.session.storeProviderAccessToken(e,t)}getProviderAccessToken(e){return this.session.getProviderAccessToken(e)}async logout(){await this.session.destroy(),this.authFlow=void 0}clearProviderAcccessTokens(e){e.linkedAccounts.filter(e=>\"cross_app\"===e.type).forEach(e=>{this.storeProviderAccessToken(e.providerApp.id,null)})}startAuthFlow(e){return e.api=this.api,this.authFlow=e,this.authFlow}async initMfaSmsVerification(){try{await this.api.post(\"/api/v1/mfa/passwordless_sms/init\",{action:\"verify\"})}catch(e){throw eX(e)}}async initMfaPasskeyVerification(){try{let e=await this.api.post(\"/api/v1/mfa/passkeys/init\",{});return nN(e.options)}catch(e){throw eX(e)}}async acceptTerms(){try{let e=await this.api.post(\"/api/v1/users/me/accept_terms\",{});return rE(e)}catch(e){throw eJ(e)}}async unlinkEmail(e){try{let t=await this.api.post(\"/api/v1/passwordless/unlink\",{address:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkPhone(e){try{let t=await this.api.post(\"/api/v1/passwordless_sms/unlink\",{phoneNumber:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkWallet(e){try{let t=await this.api.post(\"/api/v1/siwe/unlink\",{address:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkOAuth(e,t){try{let r=await this.api.post(\"/api/v1/oauth/unlink\",{provider:e,subject:t});return await this.getAuthenticatedUser()??rE(r)}catch(e){throw eJ(e)}}async unlinkFarcaster(e){try{let t=await this.api.post(\"/api/v1/farcaster/unlink\",{fid:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkTelegram(e){try{let t=await this.api.post(\"/api/v1/telegram/unlink\",{telegram_user_id:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkPasskey(e){try{let t=await this.api.post(\"/api/v1/passkeys/unlink\",{credential_id:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async createAnalyticsEvent({eventName:e,payload:t,timestamp:r,options:n}){if(!(typeof window>\"u\"))try{this.clientAnalyticsId||console.warn(\"No client analytics id set, refusing to send analytics event\"),await this.api.post(e9,{event_name:e,client_id:this.clientAnalyticsId,payload:{...t||{},clientTimestamp:r?r.toISOString():new Date().toISOString()}},{retry:-1,keepalive:n?.keepAlive??!1})}catch{}}async signMoonpayOnRampUrl(e){try{return this.api.post(\"/api/v1/plugins/moonpay_on_ramp/sign\",e)}catch(e){throw eJ(e)}}async initCoinbaseOnRamp(e){try{return this.api.post(\"/api/v1/funding/coinbase_on_ramp/init\",e)}catch(e){throw eJ(e)}}async getCoinbaseOnRampStatus({partnerUserId:e}){try{return this.api.get(`/api/v1/funding/coinbase_on_ramp/status?partnerUserId=${e}`)}catch(e){throw eJ(e)}}async getAuthenticatedUser(){return this.session.hasRefreshCredentials()||this.session.hasRecoveryCredentials()?this.session.refresh():null}async getAccessToken(e){return this.session.hasActiveToken()?nR.parse(this.session.token)?.audience!==this.appId?(await this.logout(),null):this.session.token:!e?.disableAutoRefresh&&this.session.hasRefreshCredentials()?(await this.session.refresh(),this.session.token):null}async getServerConfig(){try{let e={},t=this.session.token;t&&(e.authorization=`Bearer ${t}`);let r=await this.api.get(`/api/v1/apps/${this.appId}`,{baseURL:this.fallbackApiUrl,headers:e}),n=r.telegram_auth_config?{botId:r.telegram_auth_config.bot_id,botName:r.telegram_auth_config.bot_name,linkEnabled:r.telegram_auth_config.link_enabled,seamlessAuthEnabled:r.telegram_auth_config.seamless_auth_enabled}:void 0,i=r.funding_config?{methods:r.funding_config.methods,defaultRecommendedAmount:r.funding_config.default_recommended_amount,defaultRecommendedCurrency:r.funding_config.default_recommended_currency,promptFundingOnWalletCreation:r.funding_config.prompt_funding_on_wallet_creation}:void 0;return{id:r.id,name:r.name,verificationKey:r.verification_key,logoUrl:r.logo_url||void 0,accentColor:r.accent_color||void 0,showWalletLoginFirst:r.show_wallet_login_first,allowlistConfig:{errorTitle:r.allowlist_config.error_title,errorDetail:r.allowlist_config.error_detail,errorCtaText:r.allowlist_config.cta_text,errorCtaLink:r.allowlist_config.cta_link},walletAuth:r.wallet_auth,emailAuth:r.email_auth,smsAuth:r.sms_auth,googleOAuth:r.google_oauth,twitterOAuth:r.twitter_oauth,discordOAuth:r.discord_oauth,githubOAuth:r.github_oauth,spotifyOAuth:r.spotify_oauth,instagramOAuth:r.instagram_oauth,tiktokOAuth:r.tiktok_oauth,linkedinOAuth:r.linkedin_oauth,appleOAuth:r.apple_oauth,farcasterAuth:r.farcaster_auth,passkeyAuth:r.passkey_auth,telegramAuth:r.telegram_auth,termsAndConditionsUrl:r.terms_and_conditions_url,embeddedWalletConfig:{createOnLogin:r.embedded_wallet_config?.create_on_login,userOwnedRecoveryOptions:r.embedded_wallet_config.user_owned_recovery_options,requireUserOwnedRecoveryOnCreate:r.embedded_wallet_config.require_user_owned_recovery_on_create},privacyPolicyUrl:r.privacy_policy_url,requireUsersAcceptTerms:r.require_users_accept_terms,customApiUrl:r.custom_api_url,walletConnectCloudProjectId:r.wallet_connect_cloud_project_id,fiatOnRampEnabled:r.fiat_on_ramp_enabled,captchaEnabled:r.captcha_enabled,captchaSiteKey:r.captcha_site_key,twitterOAuthOnMobileEnabled:r.twitter_oauth_on_mobile_enabled,createdAt:new Date(1e3*r.created_at),updatedAt:new Date(1e3*r.updated_at),mfaMethods:r.mfa_methods,enforceWalletUis:r.enforce_wallet_uis,legacyWalletUiConfig:r.legacy_wallet_ui_config,telegramAuthConfiguration:n,fundingConfig:i}}catch(e){throw eJ(e)}}async getUsdTokenPrice(e){try{return(await this.api.get(`/api/v1/token_price?chainId=${e.id}&tokenSymbol=${e.nativeCurrency.symbol}`)).usd}catch{console.error(`Unable to fetch token price for chain with id ${e.id}`);return}}async requestFarcasterSignerStatus(e){try{return await this.api.post(\"/api/v1/farcaster/signer/status\",{ed25519_public_key:e})}catch(e){throw console.error(\"Unable to fetch Farcaster signer status\"),e}}async forkSession(){return await this.session.forkSession()}async generateSiweNonce({address:e,captchaToken:t}){try{return(await this.api.post(\"/api/v1/siwe/init\",{address:e,token:t})).nonce}catch(e){throw eJ(e)}}async authenticateWithSiweInternal({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i}){return await this.api.post(\"/api/v1/siwe/authenticate\",{message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})}async linkWithSiweInternal({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i}){return await this.api.post(\"/api/v1/siwe/link\",{message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})}async linkWithSiwe({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i}){try{let a=await this.linkWithSiweInternal({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i});return rE(a)}catch(e){throw eJ(e)}}};nk=new WeakSet,nE=function(){if(typeof window>\"u\")return null;try{let e=to.get(tB);if(\"string\"==typeof e&&e.length>0)return e}catch{}let e=(0,f.Z)();try{return to.put(tB,e),e}catch{return e}};var nI=(0,o.createContext)({siteKey:\"\",enabled:!1,appId:void 0,token:void 0,error:void 0,status:\"disabled\",setToken:np,setError:np,setExecuting:np,waitForResult:()=>Promise.resolve(\"\"),ref:{current:null},remove:np,reset:np,execute:np}),nW=class extends eV{constructor(e,t,r){super(e||\"Captcha failed\"),this.type=\"Captcha\",t instanceof Error&&(this.cause=t),this.privyErrorCode=r}},nL=({children:e,id:t,captchaSiteKey:r,captchaEnabled:n})=>{let i=(0,o.useRef)(null),[a,s]=(0,o.useState)(),[l,c]=(0,o.useState)(),[d,h]=(0,o.useState)(!1),u=(0,o.useMemo)(()=>n?d||a||l?!d||a||l?a&&!l?{status:\"success\",token:a}:l?{status:\"error\",error:l}:{status:\"ready\"}:{status:\"loading\"}:{status:\"ready\"}:{status:\"disabled\"},[n,a,l,d]);return(0,m.jsx)(nI.Provider,{value:{...u,ref:i,enabled:n,siteKey:r,appId:t,setToken:s,setError:c,setExecuting:h,remove(){n&&(i.current?.remove(),h(!1),c(void 0),s(void 0))},reset(){n&&(i.current?.reset(),h(!1),c(void 0),s(void 0))},execute(){n&&(h(!0),i.current?.execute())},async waitForResult(){if(!n)return\"\";try{return await function(e,{interval:t=100,timeout:r=5e3}={}){return new Promise((n,i)=>{let a=0,o,s=()=>{if(a>=r){i(\"Max attempts reached without result\");return}if(o=e(),a+=t,null!=o){n(o);return}setTimeout(s,t)};s()})}(()=>i.current?.getResponse(),{interval:200,timeout:2e4})}catch{throw new nW(\"Captcha failed\",null,\"captcha_timeout\")}}},children:e})},nF=()=>(0,o.useContext)(nI),nU=e=>{let{enabled:t,siteKey:r,appId:n,setError:i,setToken:a,setExecuting:s,ref:l}=nF(),[,c]=(0,o.useMemo)(()=>r?.split(\"t:\")||[],[r]);if((0,o.useEffect)(()=>l.current?.remove,[]),!t)return null;if(!c)throw Error(\"Unsupported captcha site key\");return(0,m.jsx)(\"div\",{className:\"hidden h-0 w-0\",children:(0,m.jsx)(E.Nc,{...e,ref:l,siteKey:c,options:{action:n,size:\"invisible\",...e.delayedExecution?{appearance:\"execute\",execution:\"execute\"}:{appearance:\"always\",execution:\"render\"}},onUnsupported:()=>{e.onUnsupported?.(),console.warn(\"Browser does not support Turnstile.\")},onError:()=>{e.onError?.(),i(\"Captcha failed\"),s(!1)},onSuccess:t=>{e.onSuccess?.(t),a(t),s(!1)},onExpire:()=>{e.onExpire?.();try{l.current?.reset(),i(void 0),a(void 0)}catch{i(\"expired_and_failed_reset\")}}})})},nD=(0,o.createContext)({isNewUserThisSession:!1,linkingOrConnectingHint:null,walletConnectionStatus:null,connectors:[],rpcConfig:{rpcUrls:{}},showFiatPrices:!0,chains:[],clientAnalyticsId:null,pendingTransaction:null,appId:\"notAdded\",nativeTokenSymbolForChainId:np,initializeWalletProxy:np,getAuthMeta:np,getAuthFlow:np,closePrivyModal:np,openPrivyModal:np,connectWallet:np,initLoginWithWallet:np,loginWithWallet:np,initLoginWithFarcaster:np,loginWithFarcaster:np,loginWithCode:np,initLoginWithEmail:np,initLoginWithSms:np,initUpdateEmail:np,initUpdatePhone:np,resendEmailCode:np,resendSmsCode:np,initLoginWithHeadlessOAuth:np,loginWithHeadlessOAuth:np,crossAppAuthFlow:np,initLoginWithOAuth:np,recoveryOAuthFlow:np,loginWithOAuth:np,initLoginWithPasskey:np,loginWithPasskey:np,initLinkWithPasskey:np,linkWithPasskey:np,refreshUser:np,loginWithGuestAccountFlow:np,walletProxy:null,createAnalyticsEvent:np,acceptTerms:np,getUsdTokenPrice:np,recoverEmbeddedEthereumWallet:np,getMoonpaySignedUrl:np,initCoinbaseOnRamp:np,getCoinbaseOnRampStatus:np,updateWallets:np,fundWallet:np,setReadyToTrue:np,requestFarcasterSignerStatus:np,initLoginWithTelegram:np,loginWithTelegram:np,generateSiweMessage:np,linkWithSiwe:np,embeddedSolanaWallet:null,createEmbeddedSolanaWallet:np,recoverEmbeddedSolanaWallet:np,solanaSignMessage:np}),nZ=()=>(0,o.useContext)(nD),nz=(0,o.createContext)({ready:!1,authenticated:!1,user:null,walletConnectors:null,connectWallet:np,login:np,connectOrCreateWallet:np,linkEmail:np,linkPhone:np,linkFarcaster:np,linkWallet:np,linkCrossAppAccount:np,linkGoogle:np,linkTwitter:np,linkDiscord:np,linkGithub:np,linkSpotify:np,linkInstagram:np,linkTelegram:np,linkTiktok:np,linkLinkedIn:np,linkApple:np,linkPasskey:np,updateEmail:np,updatePhone:np,logout:np,getAccessToken:np,getEthereumProvider:np,getEthersProvider:np,getWeb3jsProvider:np,unlinkEmail:np,unlinkPhone:np,unlinkWallet:np,unlinkGoogle:np,unlinkTwitter:np,unlinkDiscord:np,unlinkGithub:np,unlinkSpotify:np,unlinkInstagram:np,unlinkTiktok:np,unlinkLinkedIn:np,unlinkApple:np,unlinkCrossAppAccount:np,unlinkFarcaster:np,unlinkTelegram:np,unlinkPasskey:np,setActiveWallet:np,forkSession:np,createWallet:np,importWallet:np,signMessage:np,signTypedData:np,enrollInMfa:np,initEnrollmentWithSms:np,initEnrollmentWithTotp:np,initEnrollmentWithPasskey:np,promptMfa:np,init:np,submitEnrollmentWithSms:np,submitEnrollmentWithTotp:np,submitEnrollmentWithPasskey:np,unenroll:np,submit:np,cancel:np,sendTransaction:np,exportWallet:np,setWalletPassword:np,setWalletRecovery:np,requestFarcasterSignerFromWarpcast:np,getFarcasterSignerPublicKey:np,signFarcasterMessage:np,createGuestAccount:np,initLoginWithEmail:np,initLoginWithSms:np,otpState:{status:\"initial\"},loginWithCode:np,fundWallet:np,initLoginWithHeadlessOAuth:np,loginWithHeadlessOAuth:np,generateSiweMessage:np,linkWithSiwe:np,signMessageWithCrossAppWallet:np,signTypedDataWithCrossAppWallet:np,sendTransactionWithCrossAppWallet:np,isHeadlessOAuthLoading:!1,isModalOpen:!1,mfaMethods:[]}),n$=()=>(0,o.useContext)(nz),nH=e=>{let[t,r]=(0,o.useState)(\"auto\");return(0,o.useEffect)(()=>{let t=new ResizeObserver(e=>{r(e[0]?.contentRect.height??\"auto\")});return e.current&&t.observe(e.current),()=>{e.current&&t.unobserve(e.current)}},[e.current]),t},nB={login:{onComplete:[],onError:[],onOAuthLoginComplete:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]}},nq=(0,o.createContext)(void 0),nV=()=>(0,o.useContext)(nq);function nG(e,t){if(!t)return;let r=nV().current[e];return(0,o.useEffect)(()=>{for(let[n,i]of Object.entries(t))r.hasOwnProperty(n)||console.warn(`Invalid event type \"${n}\" for action \"${e}\"`),r[n]?.push(i);return()=>{for(let[n,i]of Object.entries(t))r.hasOwnProperty(n)||console.warn(`Invalid event type \"${n}\" for action \"${e}\"`),r[n]=r[n]?.filter(e=>e!==i)}},[t])}function nK(e,t,r,...n){for(let i of e.current[t][r])i(...n)}function nY(){let e=nV();return(t,r,...n)=>nK(e,t,r,...n)}var nQ=({success:e,fail:t})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(nX,{className:e?\"success\":t?\"fail\":\"\"}),(0,m.jsx)(nJ,{className:e?\"success\":t?\"fail\":\"\"})]}),nX=A.ZP.span`\n  && {\n    width: 82px;\n    height: 82px;\n    border-width: 4px;\n    border-style: solid;\n    border-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    border-bottom-color: transparent;\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n    animation: rotation 1.2s linear infinite;\n    transition: border-color 800ms;\n  }\n\n  @keyframes rotation {\n    0% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  &&&.success {\n    border-color: var(--privy-color-success);\n    border-bottom-color: var(--privy-color-success);\n  }\n\n  &&&.fail {\n    border-color: var(--privy-color-error);\n    border-bottom-color: var(--privy-color-error);\n  }\n`,nJ=(0,A.ZP)(nX)`\n  && {\n    border-bottom-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    animation: none;\n    opacity: 0.5;\n  }\n`,n0=e=>(0,m.jsx)(n1,{color:e.color||\"var(--privy-color-foreground-3)\"}),n1=(0,A.ZP)(nX)`\n  && {\n    height: 1rem;\n    width: 1rem;\n    margin: 2px 0;\n    border-width: 1.5px;\n\n    /* Override default Loader to match button transitions */\n    transition: border-color 200ms ease;\n  }\n`,n2=A.ZP.button`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  user-select: none;\n\n  & {\n    width: 100%;\n    cursor: pointer;\n    border-radius: var(--privy-border-radius-md);\n\n    font-size: 1rem;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 22px; /* 137.5% */\n    letter-spacing: -0.016px;\n  }\n\n  && {\n    padding: 12px 16px;\n  }\n`,n3=({children:e,loading:t,disabled:r,loadingText:n=\"Loading...\",...i})=>(0,m.jsx)(n7,{disabled:t||r,...i,children:t?(0,m.jsxs)(\"span\",{children:[(0,m.jsx)(n0,{}),n?(0,m.jsx)(\"span\",{children:n}):null]}):e}),n4=({children:e,loading:t,disabled:r,...n})=>(0,m.jsx)(n5,{disabled:r,...n,children:t?(0,m.jsx)(n0,{color:\"var(--privy-color-foreground-accent)\"}):e}),n5=(0,A.ZP)(n2)`\n  position: relative;\n\n  && {\n    background-color: var(--privy-color-accent);\n    color: var(--privy-color-foreground-accent);\n\n    transition: background-color 200ms ease;\n  }\n\n  &:hover {\n    background-color: var(--privy-color-accent-dark);\n  }\n\n  &:active {\n    background-color: var(--privy-color-accent-dark);\n  }\n\n  &:disabled,\n  &:hover:disabled,\n  &:active:disabled {\n    cursor: not-allowed;\n    pointer-events: none;\n    color: var(--privy-color-foreground-accent);\n    background-color: var(--privy-color-accent-dark);\n  }\n`,n6=({children:e,loading:t,disabled:r,loadingText:n=\"Loading...\",...i})=>(0,m.jsx)(n7,{as:\"a\",disabled:t||r,...i,children:t?(0,m.jsxs)(\"span\",{children:[(0,m.jsx)(n0,{}),n?(0,m.jsx)(\"span\",{children:n}):null]}):e}),n7=(0,A.ZP)(n2)`\n  position: relative;\n\n  && {\n    background-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-accent)\"};\n    color: var(--privy-color-foreground-accent);\n\n    transition: background-color 200ms ease;\n  }\n\n  &:hover {\n    background-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-accent-dark)\"};\n  }\n\n  &:active {\n    background-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-accent-dark)\"};\n  }\n\n  &:hover:disabled,\n  &:active:disabled {\n    background-color: var(--privy-color-background-2);\n    color: var(--privy-color-foreground-3);\n    cursor: not-allowed;\n  }\n\n  /* If an anchor tag, :disabled isn't a thing, so manually set state */\n  ${e=>e.disabled?(0,A.iv)`\n          &&&,\n          &&&:hover,\n          &&&:active {\n            background-color: var(--privy-color-background-2);\n            color: var(--privy-color-foreground-3);\n            cursor: not-allowed;\n            pointer-events: none;\n          }\n        `:\"\"}\n\n  > span {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n\n    opacity: 1;\n    animation: fadein 200ms ease;\n  }\n`,n8=({children:e,loading:t,disabled:r,loadingText:n=\"Loading...\",...i})=>(0,m.jsx)(n9,{disabled:t||r,...i,children:t?(0,m.jsxs)(\"span\",{children:[(0,m.jsx)(n0,{}),n?(0,m.jsx)(\"span\",{children:n}):null]}):e}),n9=(0,A.ZP)(n2)`\n  && {\n    border-width: 1px;\n    border-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-foreground-4)\"};\n    color: var(--privy-color-foreground);\n\n    transition: border-color 200ms ease;\n  }\n\n  &:hover,\n  &:active {\n    border-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  }\n\n  &:hover:disabled,\n  &:active:disabled {\n    border-color: var(--privy-color-foreground-accent);\n    color: var(--privy-color-foreground-3);\n    cursor: not-allowed;\n  }\n\n  > span {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n\n    opacity: 1;\n    animation: fadein 200ms ease;\n  }\n`,ie=A.ZP.button`\n  && {\n    padding: 12px 16px;\n    font-weight: 500;\n    text-align: center;\n    color: var(--privy-color-foreground-accent);\n    background-color: var(--privy-color-accent);\n    border-radius: var(--privy-border-radius-sm);\n    min-width: 144px;\n    opacity: ${e=>e.invisible?\"0\":\"1\"};\n    transition: opacity 200ms ease, background-color 200ms ease, color 200ms ease;\n    user-select: none;\n\n    ${e=>e.invisible&&(0,A.iv)`\n        pointer-events: none;\n      `}\n\n    &:hover {\n      background-color: var(--privy-color-accent-dark);\n    }\n    &:active {\n      background-color: var(--privy-color-accent-dark);\n    }\n\n    &:hover:disabled,\n    &:active:disabled {\n      background-color: var(--privy-color-background-2);\n      color: var(--privy-color-foreground-3);\n      cursor: not-allowed;\n    }\n  }\n`,it=(A.ZP.div`\n  /* Set to match height of SoftCtaButton to avoid reflow if conditionally rendered */\n  height: 44px;\n`,({children:e,onClick:t,disabled:r,isSubmitting:n,...i})=>(0,m.jsxs)(ir,{isSubmitting:n,onClick:t,disabled:r,...i,children:[(0,m.jsx)(\"span\",{children:e}),(0,m.jsx)(\"span\",{children:(0,m.jsx)(n0,{})})]})),ir=A.ZP.button`\n  && {\n    color: var(--privy-color-accent);\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 24px;\n    cursor: pointer;\n    border-radius: 0px var(--privy-border-radius-mdlg) var(--privy-border-radius-mdlg) 0px;\n    border: none;\n    transition: color 200ms ease;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n    }\n\n    :hover {\n      color: var(--privy-color-accent-dark);\n    }\n\n    && > :first-child {\n      opacity: ${e=>e.isSubmitting?0:1};\n    }\n\n    && > :last-child {\n      position: absolute;\n      display: flex;\n      top: 50%;\n      left: 50%;\n      transform: translate3d(-50%, -50%, 0);\n\n      /** Will map to the opposite of first span */\n      opacity: ${e=>e.isSubmitting?1:0};\n    }\n\n    :disabled,\n    :hover:disabled {\n      color: var(--privy-color-foreground-3);\n      cursor: not-allowed;\n    }\n  }\n`,ii=A.ZP.span`\n  && {\n    width: 82px;\n    height: 82px;\n    border-width: 4px;\n    border-style: solid;\n    border-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    background-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n  }\n`,ia=({backFn:e})=>(0,m.jsx)(\"div\",{children:(0,m.jsx)(ic,{onClick:e,children:(0,m.jsx)(T.Z,{height:\"16px\",width:\"16px\",strokeWidth:2})})}),io=({infoFn:e})=>(0,m.jsx)(\"div\",{children:(0,m.jsx)(id,{\"aria-label\":\"info\",onClick:e,children:(0,m.jsx)(S.Z,{height:\"22px\",width:\"22px\",strokeWidth:2})})}),is=e=>(0,m.jsx)(\"div\",{children:(0,m.jsx)(ic,{\"aria-label\":\"close modal\",onClick:e.onClose,children:(0,m.jsx)(P.Z,{height:\"16px\",width:\"16px\",strokeWidth:2})})}),il=({backFn:e,infoFn:t,onClose:r,title:n,closeable:i=!0})=>{let{closePrivyModal:a}=nZ(),o=nh();return(0,m.jsxs)(ih,{children:[(0,m.jsxs)(iu,{children:[e&&(0,m.jsx)(ia,{backFn:e}),t&&(0,m.jsx)(io,{infoFn:t})]}),n&&(0,m.jsx)(im,{id:\"privy-dialog-title\",children:n}),(0,m.jsx)(ip,{children:!o.render.standalone&&i&&(0,m.jsx)(is,{onClose:r||(()=>a())})})]})},ic=A.ZP.button`\n  && {\n    cursor: pointer;\n    display: flex;\n    opacity: 0.6;\n\n    background-color: var(--privy-color-background-2);\n    border-radius: var(--privy-border-radius-full);\n    padding: 4px;\n\n    > svg {\n      margin: auto;\n      color: var(--privy-color-foreground);\n    }\n\n    :hover {\n      opacity: 1;\n    }\n  }\n`,id=(0,A.ZP)(ic)`\n  && {\n    background-color: transparent;\n  }\n`,ih=A.ZP.div`\n  padding: 16px 0;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n\n  h2 {\n    font-size: 16px;\n    line-height: 24px;\n    font-weight: 600;\n    color: var(--privy-color-foreground);\n  }\n`,iu=A.ZP.div`\n  flex: 1;\n  align-items: center;\n  display: flex;\n  gap: 8px;\n`,ip=A.ZP.div`\n  flex: 1;\n  display: flex;\n  justify-content: flex-end;\n`,im=A.ZP.div`\n  overflow: hidden;\n  white-space: nowrap;\n  max-width: 100%;\n  text-overflow: ellipsis;\n  text-align: center;\n  color: var(--privy-color-foreground-2);\n`,ig=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n\n  > div {\n    position: relative;\n  }\n\n  > div > span {\n    position: absolute;\n    left: -41px;\n    top: -41px;\n  }\n\n  > div > :last-child {\n    position: absolute;\n    left: -19px;\n    top: -19px;\n  }\n`,iy=A.ZP.div`\n  text-align: left;\n  flex-grow: 1;\n`,iw=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  flex-grow: 1;\n`,ix=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n\n  /* for Internet Explorer, Edge */\n  -ms-overflow-style: none;\n\n  /* for Firefox */\n  scrollbar-width: none;\n\n  /* for Chrome, Safari, and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n`,iv=(0,A.ZP)(ix)`\n  ${e=>\"light\"===e.colorScheme?\"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;\":\"dark\"===e.colorScheme?\"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;\":void 0}\n\n  background-repeat: no-repeat;\n  background-size: 100% 32px, 100% 16px;\n  background-attachment: local, scroll;\n`,iC=(0,A.iv)`\n  && {\n    width: 100%;\n    font-size: 16px;\n    line-height: 24px;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    align-items: center;\n\n    padding: 12px 16px;\n    border: 1px solid var(--privy-color-foreground-4) !important;\n    border-radius: var(--privy-border-radius-mdlg);\n    transition: background-color 200ms ease;\n\n    cursor: pointer;\n\n    &:hover {\n      background-color: var(--privy-color-background-2);\n    }\n\n    &:disabled {\n      cursor: pointer;\n      background-color: var(--privy-color-background-2);\n    }\n\n    svg {\n      height: 24px;\n      max-height: 24px;\n      max-width: 24px;\n    }\n  }\n`,ib=A.ZP.div`\n  text-align: center;\n  font-size: 14px;\n  margin-bottom: 24px;\n`,i_=A.ZP.button`\n  ${iC}\n`,ij=A.ZP.a`\n  ${iC}\n`,ik=A.ZP.div`\n  width: 100%;\n  height: 100%;\n  min-height: inherit;\n  display: flex;\n  flex-direction: column;\n  ${e=>e.if?\"display: none;\":\"\"}\n`,iE=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-bottom: 16px;\n  margin-top: 24px;\n`,iA=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,iS=A.ZP.div`\n  margin-top: 16px;\n  font-size: 13px;\n  text-align: center;\n  color: var(--privy-color-foreground-3);\n\n  && > a {\n    color: var(--privy-color-accent);\n  }\n`;function iT(e){let{legal:{privacyPolicyUrl:t,termsAndConditionsUrl:r,requireUsersAcceptTerms:n}}=e.app;if(n&&!e.alwaysShowImplicitConsent||!r&&!t)return(0,m.jsx)(iS,{});let i=!!(t&&r);return(0,m.jsxs)(iS,{children:[\"By logging in I agree to the\",\" \",r&&(0,m.jsx)(\"a\",{href:r,target:\"_blank\",children:i?\"Terms\":\"Terms of Service\"}),i&&\" & \",t&&(0,m.jsx)(\"a\",{href:t,target:\"_blank\",children:\"Privacy Policy\"})]})}var iP=()=>(0,m.jsxs)(iN,{children:[(0,m.jsx)(rG,{}),(0,m.jsx)(\"a\",{href:\"https://www.privy.io/\",target:\"_blank\",children:\"Protected by Privy\"})]}),iN=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding-top: 8px;\n  padding-bottom: 12px;\n  gap: 2px;\n\n  font-size: 13px;\n\n  && svg {\n    height: 14px;\n    width: 14px;\n    margin-bottom: 2px;\n    opacity: 0.5;\n  }\n\n  && a {\n    color: var(--privy-color-foreground-3);\n    &:hover {\n      text-decoration: underline;\n    }\n  }\n\n  @media all and (display-mode: standalone) {\n    padding-bottom: 30px;\n  }\n`,iR=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding: 0px 0px 30px;\n  @media (max-width: 440px) {\n    padding: 10px 10px 20px;\n  }\n`,iM=A.ZP.div`\n  font-size: 18px;\n  line-height: 30px;\n  text-align: center;\n  font-weight: 600;\n  margin-bottom: 10px;\n`,iO=A.ZP.div`\n  font-size: 0.875rem;\n\n  text-align: center;\n`,iI=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 10px;\n  flex-grow: 1;\n  padding: 20px 0;\n  @media (max-width: 440px) {\n    padding: 10px 10px 20px;\n  }\n`,iW=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 0.75rem;\n  padding: 1rem 0rem 0rem;\n  flex-grow: 1;\n  width: 100%;\n`,iL=A.ZP.div`\n  width: 25px;\n  display: flex;\n  align-items: center;\n  justify-content: flex-start;\n\n  > svg {\n    z-index: 2;\n    height: 25px !important;\n    width: 25px !important;\n    color: var(--privy-color-accent);\n  }\n`,iF=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  font-size: 0.875rem;\n  line-height: 1rem;\n  text-align: left;\n`,iU=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n  padding-top: 20px;\n`,iD=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 1rem;\n  padding: 1rem 0rem 0rem;\n  flex-grow: 1;\n  width: 100%;\n`,iZ=A.ZP.div`\n  display: flex;\n  gap: 5px;\n  width: 100%;\n`,iz=A.ZP.button`\n  && {\n    background-color: transparent;\n    color: var(--privy-color-foreground-3);\n    padding: 0 10px;\n    display: flex;\n    align-items: center;\n\n    > svg {\n      z-index: 2;\n      height: 20px !important;\n      width: 20px !important;\n    }\n  }\n\n  &&:hover {\n    color: var(--privy-color-error);\n  }\n`,i$=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n\n  > svg {\n    z-index: 2;\n    height: 20px !important;\n    width: 20px !important;\n  }\n`,iH=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  font-weight: 400 !important;\n  color: ${e=>e.isAccent?\"var(--privy-color-accent)\":\"var(--privy-color-foreground-3)\"};\n\n  > svg {\n    z-index: 2;\n    height: 18px !important;\n    width: 18px !important;\n    display: flex !important;\n    align-items: flex-end;\n  }\n`,iB=A.ZP.div`\n  width: 100%;\n  display: flex;\n  justify-content: space-between;\n`,iq=A.ZP.p`\n  text-align: left;\n  width: 100%;\n  color: var(--privy-color-foreground-3) !important;\n`,iV=A.ZP.button`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  user-select: none;\n\n  & {\n    width: 100%;\n    cursor: pointer;\n    border-radius: var(--privy-border-radius-md);\n\n    font-size: 0.875rem;\n    line-height: 1rem;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 22px; /* 137.5% */\n    letter-spacing: -0.016px;\n  }\n\n  && {\n    color: ${e=>\"dark\"===e.theme?\"var(--privy-color-foreground-2)\":\"var(--privy-color-accent)\"};\n    background-color: transparent;\n\n    padding: 0.5rem 0px;\n  }\n\n  &:hover {\n    text-decoration: underline;\n  }\n`,iG=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 90px;\n  height: 90px;\n  border-radius: 50%;\n  background-color: ${({status:e})=>\"success\"===e?\"var(--privy-color-success)\":\"var(--privy-color-accent)\"};\n\n  > svg {\n    z-index: 2;\n    height: 50px !important;\n    width: auto !important;\n    color: white;\n  }\n`,iK=A.ZP.div`\n  color: var(--privy-color-error);\n`,iY=({termsAndConditionsUrl:e,privacyPolicyUrl:t,onAccept:r,onDecline:n})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1}),(0,m.jsx)(R.Z,{width:56,height:56,fill:\"var(--privy-color-accent)\",style:{margin:\"auto\"}}),(0,m.jsx)(iM,{style:{marginTop:24},children:\"One last step\"}),(0,m.jsx)(iO,{children:\"By signing up, you agree to our terms and privacy policy.\"}),(0,m.jsxs)(ix,{style:{marginTop:24},children:[e&&(0,m.jsxs)(ij,{target:\"_blank\",href:e,children:[\"View Terms \",(0,m.jsx)(N.Z,{style:{marginLeft:\"auto\"}})]}),t&&(0,m.jsxs)(ij,{target:\"_blank\",href:t,children:[\"View Privacy Policy \",(0,m.jsx)(N.Z,{style:{marginLeft:\"auto\"}})]})]}),(0,m.jsxs)(iQ,{style:{marginTop:24},children:[(0,m.jsx)(n8,{onClick:n,children:\"No thanks\"}),(0,m.jsx)(n3,{onClick:r,children:\"Accept\"})]}),(0,m.jsx)(iP,{})]}),iQ=A.ZP.div`\n  display: flex;\n  gap: 10px;\n`,iX=A.ZP.span`\n  && {\n    width: 82px;\n    height: 82px;\n    border-width: 4px;\n    border-style: solid;\n    border-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    border-bottom-color: transparent;\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n    animation: rotation 1.2s linear infinite;\n    transition: border-color 800ms;\n    border-bottom-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n  }\n`,iJ=({style:e,...t})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:\"1.5\",stroke:\"currentColor\",style:{height:\"1.5rem\",width:\"1.5rem\",...e},...t,children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",d:\"M12 1.5a5.25 5.25 0 00-5.25 5.25v3a3 3 0 00-3 3v6.75a3 3 0 003 3h10.5a3 3 0 003-3v-6.75a3 3 0 00-3-3v-3c0-2.9-2.35-5.25-5.25-5.25zm3.75 8.25v-3a3.75 3.75 0 10-7.5 0v3h7.5z\",clipRule:\"evenodd\"})}),i0=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-bottom: 16px;\n`,i1=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,i2=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: flex-end;\n  margin-top: auto;\n  gap: 16px;\n  flex-grow: 100;\n`,i3=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  flex-grow: 1;\n  width: 100%;\n`,i4=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 100%;\n`,i5=(0,A.ZP)(i3)`\n  padding: 20px 0;\n`,i6=(0,A.ZP)(i3)`\n  gap: 16px;\n`,i7=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n`,i8=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,i9=(A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  height: 100%;\n`,A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  text-align: left;\n  gap: 8px;\n  padding: 16px;\n  margin-top: 16px;\n  margin-bottom: 16px;\n  width: 100%;\n  background: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  && h4 {\n    color: var(--privy-color-foreground-3);\n    font-size: 14px;\n    text-decoration: underline;\n    font-weight: medium;\n  }\n  && p {\n    color: var(--privy-color-foreground-3);\n    font-size: 14px;\n  }\n`),ae=A.ZP.div`\n  height: 16px;\n`,at=A.ZP.div`\n  height: 12px;\n`,ar=A.ZP.div`\n  position: relative;\n`,an=A.ZP.div`\n  height: ${e=>e.height??\"12\"}px;\n`,ai=A.ZP.div`\n  background-color: var(--privy-color-accent);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: 50%;\n  border-color: white;\n  border-width: 2px !important;\n`,aa=({title:e,description:t,children:r,...n})=>(0,m.jsx)(al,{...n,children:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(\"h3\",{children:e}),\"string\"==typeof t?(0,m.jsx)(\"p\",{children:t}):t,r]})}),ao=(0,A.ZP)(aa)`\n  margin-bottom: 24px;\n`,as=({title:e,description:t,icon:r,children:n,...i})=>(0,m.jsxs)(ac,{...i,children:[r||null,(0,m.jsx)(\"h3\",{children:e}),t&&\"string\"==typeof t?(0,m.jsx)(\"p\",{children:t}):t,n]}),al=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  text-align: left;\n  gap: 8px;\n  width: 100%;\n  margin-bottom: 24px;\n\n  && h3 {\n    font-size: 17px;\n    color: var(--privy-color-foreground);\n  }\n\n  /* Sugar assuming children are paragraphs. Otherwise, handling styling on your own */\n  && p {\n    color: var(--privy-color-foreground-2);\n    font-size: 14px;\n  }\n`,ac=(0,A.ZP)(al)`\n  align-items: center;\n  text-align: center;\n  gap: 16px;\n\n  h3 {\n    margin-bottom: 24px;\n  }\n`,ad=Array(6).fill(\"\"),ah=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: center;\n  margin: auto;\n  gap: 16px;\n  flex-grow: 1;\n`,au=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  gap: 8px;\n\n  > div:last-child {\n    display: flex;\n    justify-content: center;\n    gap: 0.5rem;\n    width: 100%;\n    border-radius: var(--privy-border-radius-md);\n\n    > input {\n      border: 1px solid var(--privy-color-foreground-4);\n      background: var(--privy-color-background);\n      border-radius: var(--privy-border-radius-md);\n      padding: 8px 10px;\n      height: 58px;\n      width: 46px;\n      text-align: center;\n      font-size: 18px;\n    }\n\n    > input:focus {\n      border: 1px solid var(--privy-color-accent);\n    }\n\n    > input:invalid {\n      border: 1px solid var(--privy-color-error);\n    }\n\n    > input.success {\n      border: 1px solid var(--privy-color-success);\n    }\n\n    > input.fail {\n      border: 1px solid var(--privy-color-error);\n      animation: shake 180ms;\n      animation-iteration-count: 2;\n    }\n  }\n\n  @keyframes shake {\n    0% {\n      transform: translate(1px, 0px);\n    }\n    33% {\n      transform: translate(-1px, 0px);\n    }\n    67% {\n      transform: translate(-1px, 0px);\n    }\n    100% {\n      transform: translate(1px, 0px);\n    }\n  }\n`,ap=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: ${e=>e.success?\"var(--privy-color-success)\":e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  display: flex;\n  justify-content: flex-end;\n  width: 100%;\n`,am=A.ZP.div`\n  font-size: 13px;\n  color: var(--privy-color-foreground);\n  display: flex;\n  gap: 8px;\n  align-items: center;\n  width: 100%;\n  margin-top: 16px;\n  // Equal opposing size buffer to account for auto margining when the\n  // success/fail text does not show up\n  padding-bottom: 32px;\n`,ag=A.ZP.div`\n  color: var(--privy-color-accent);\n  padding: 2px 0;\n  > button {\n    text-decoration: underline;\n  }\n`,af=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: var(--privy-border-radius-sm);\n  padding: 2px 8px;\n  gap: 4px;\n  background: var(--privy-color-background-2);\n  color: var(--privy-color-foreground-2);\n`,ay=A.ZP.span`\n  font-weight: 500;\n  word-break: break-all;\n`,aw=({icon:e})=>(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(ax,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{}),\"string\"==typeof e?(0,m.jsx)(\"span\",{style:{background:`url('${e}')`,height:\"38px\",width:\"38px\",borderRadius:\"6px\",margin:\"auto\",backgroundSize:\"cover\"}}):e?(0,m.jsx)(e,{style:{width:\"38px\",height:\"38px\"}}):(0,m.jsx)(\"span\",{})]})})}),ax=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n\n  > div {\n    position: relative;\n  }\n\n  > div > span {\n    position: absolute;\n    left: -41px;\n    top: -41px;\n  }\n\n  > div > :last-child {\n    position: absolute;\n    left: -19px;\n    top: -19px;\n  }\n`,av=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,aC=({icon:e,name:t})=>\"string\"==typeof e?(0,m.jsx)(\"img\",{alt:`${t||\"wallet\"} logo`,src:e,style:{height:24,width:24,borderRadius:4}}):e?(0,m.jsx)(e,{}):null,ab=(0,A.F4)`\n  from, to {\n    background: var(--privy-color-foreground-4);\n    color: var(--privy-color-foreground-4);\n  }\n\n  50% {\n    background: var(--privy-color-foreground-accent);\n    color: var(--privy-color-foreground-accent);\n  }\n`,a_=(0,A.iv)`\n  ${e=>e.$isLoading?(0,A.iv)`\n          width: 35%;\n          animation: ${ab} 2s linear infinite;\n          border-radius: var(--privy-border-radius-sm);\n        `:\"\"}\n`,aj=({children:e,color:t,isLoading:r,isPulsing:n,className:i})=>(0,m.jsx)(ak,{$color:t,$isLoading:r,$isPulsing:n,className:i,children:e}),ak=A.ZP.span`\n  padding: 0.125rem 0.5rem;\n  font-size: 0.75rem;\n  font-weight: 500;\n  line-height: 1.125rem; /* 150% */\n  border-radius: var(--privy-border-radius-sm);\n\n  ${e=>{let t,r;\"green\"===e.$color&&(t=\"var(--privy-color-success-dark)\",r=\"var(--privy-color-success-light)\"),\"red\"===e.$color&&(t=\"var(--privy-color-error)\",r=\"var(--privy-color-error-light)\"),\"gray\"===e.$color&&(t=\"var(--privy-color-foreground-2)\",r=\"var(--privy-color-background-2)\");let n=(0,A.F4)`\n      from, to {\n        background-color: ${r};\n      }\n\n      50% {\n        background-color: rgba(${r}, 0.8);\n      }\n    `;return(0,A.iv)`\n      color: ${t};\n      background-color: ${r};\n      ${e.$isPulsing&&(0,A.iv)`\n        animation: ${n} 3s linear infinite;\n      `};\n    `}}\n\n  ${a_}\n`,aE=({...e})=>(0,m.jsxs)(\"svg\",{width:\"146\",height:\"146\",viewBox:\"0 0 146 146\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...e,children:[(0,m.jsx)(\"circle\",{cx:\"73\",cy:\"73\",r:\"73\",fill:\"#0052FF\"}),(0,m.jsx)(\"path\",{d:\"M73.323 123.729C101.617 123.729 124.553 100.832 124.553 72.5875C124.553 44.343 101.617 21.4463 73.323 21.4463C46.4795 21.4463 24.4581 42.0558 22.271 68.2887H89.9859V76.8864H22.271C24.4581 103.119 46.4795 123.729 73.323 123.729Z\",fill:\"white\"})]}),aA={coinbase_wallet:{logo:rT,displayName:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\"},coinbase_smart_wallet:{logo:rT,displayName:\"Coinbase Smart Wallet\",rdns:\"com.coinbase.wallet\"},metamask:{logo:rQ,displayName:\"MetaMask\",rdns:\"io.metamask\"},phantom:{logo:rX,displayName:\"Phantom\"},rainbow:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"120\",height:\"120\",viewBox:\"0 0 120 120\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsx)(\"g\",{clipPath:\"url(#clip0_5_32)\",children:(0,m.jsxs)(\"g\",{clipPath:\"url(#clip1_5_32)\",children:[(0,m.jsx)(\"mask\",{id:\"mask0_5_32\",style:{maskType:\"alpha\"},maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"120\",height:\"120\",children:(0,m.jsx)(\"path\",{d:\"M78.163 0H41.837C29.79 0 23.767 0 17.283 2.04999C10.203 4.62701 4.627 10.203 2.05 17.283C0 23.767 0 29.791 0 41.837V78.163C0 90.21 0 96.232 2.05 102.717C4.627 109.797 10.203 115.373 17.283 117.949C23.767 120 29.79 120 41.837 120H78.163C90.21 120 96.232 120 102.717 117.949C109.797 115.373 115.373 109.797 117.95 102.717C120 96.232 120 90.21 120 78.163V41.837C120 29.791 120 23.767 117.95 17.283C115.373 10.203 109.797 4.62701 102.717 2.04999C96.232 0 90.21 0 78.163 0Z\",fill:\"black\"})}),(0,m.jsx)(\"g\",{mask:\"url(#mask0_5_32)\",children:(0,m.jsx)(\"rect\",{width:\"120\",height:\"120\",fill:\"url(#paint0_linear_5_32)\"})}),(0,m.jsx)(\"path\",{d:\"M20 38H26C56.9279 38 82 63.0721 82 94V100H94C97.3137 100 100 97.3137 100 94C100 53.1309 66.8691 20 26 20C22.6863 20 20 22.6863 20 26V38Z\",fill:\"url(#paint1_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M84 94H100C100 97.3137 97.3137 100 94 100H84V94Z\",fill:\"url(#paint2_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M26 20L26 36H20L20 26C20 22.6863 22.6863 20 26 20Z\",fill:\"url(#paint3_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M20 36H26C58.0325 36 84 61.9675 84 94V100H66V94C66 71.9086 48.0914 54 26 54H20V36Z\",fill:\"url(#paint4_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M68 94H84V100H68V94Z\",fill:\"url(#paint5_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M20 52L20 36L26 36L26 52H20Z\",fill:\"url(#paint6_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M20 62C20 65.3137 22.6863 68 26 68C40.3594 68 52 79.6406 52 94C52 97.3137 54.6863 100 58 100H68V94C68 70.804 49.196 52 26 52H20V62Z\",fill:\"url(#paint7_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M52 94H68V100H58C54.6863 100 52 97.3137 52 94Z\",fill:\"url(#paint8_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M26 68C22.6863 68 20 65.3137 20 62L20 52L26 52L26 68Z\",fill:\"url(#paint9_radial_5_32)\"})]})}),(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"paint0_linear_5_32\",x1:\"60\",y1:\"0\",x2:\"60\",y2:\"120\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#174299\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#001E59\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint1_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(26 94) rotate(-90) scale(74)\",children:[(0,m.jsx)(\"stop\",{offset:\"0.770277\",stopColor:\"#FF4000\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8754C9\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint2_linear_5_32\",x1:\"83\",y1:\"97\",x2:\"100\",y2:\"97\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#FF4000\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8754C9\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint3_linear_5_32\",x1:\"23\",y1:\"20\",x2:\"23\",y2:\"37\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#8754C9\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF4000\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint4_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(26 94) rotate(-90) scale(58)\",children:[(0,m.jsx)(\"stop\",{offset:\"0.723929\",stopColor:\"#FFF700\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF9901\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint5_linear_5_32\",x1:\"68\",y1:\"97\",x2:\"84\",y2:\"97\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#FFF700\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF9901\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint6_linear_5_32\",x1:\"23\",y1:\"52\",x2:\"23\",y2:\"36\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#FFF700\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF9901\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint7_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(26 94) rotate(-90) scale(42)\",children:[(0,m.jsx)(\"stop\",{offset:\"0.59513\",stopColor:\"#00AAFF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#01DA40\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint8_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(51 97) scale(17 45.3333)\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#00AAFF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#01DA40\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint9_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(23 69) rotate(-90) scale(17 322.37)\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#00AAFF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#01DA40\"})]}),(0,m.jsx)(\"clipPath\",{id:\"clip0_5_32\",children:(0,m.jsx)(\"rect\",{width:\"120\",height:\"120\",fill:\"white\"})}),(0,m.jsx)(\"clipPath\",{id:\"clip1_5_32\",children:(0,m.jsx)(\"rect\",{width:\"120\",height:\"120\",fill:\"white\"})})]})]}),displayName:\"Rainbow\",rdns:\"me.rainbow\"},wallet_connect:{logo:nw,displayName:\"WalletConnect\"},zerion:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"176\",height:\"176\",viewBox:\"0 0 176 176\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_1704_1423)\",children:[(0,m.jsx)(\"path\",{d:\"M126.233 176H49.7672C22.287 176 0 153.723 0 126.233V49.7673C0 22.287 22.2769 0 49.7672 0H126.233C153.713 0 176 22.277 176 49.7673V126.233C176 153.723 153.713 176 126.233 176Z\",fill:\"#2461ED\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M100.667 85.6591C83.4133 76.3353 62.4196 64.2443 46.6192 54.3891C41.9573 51.0306 44.3234 43.9023 49.9578 43.9023H128.138C132.499 43.9023 135.416 48.7648 133.231 52.4442C127.977 61.5174 120.308 73.0368 113.901 82.1702C110.462 87.0727 104.858 87.9149 100.667 85.6591ZM75.5031 88.6867C92.1858 97.5795 115.566 111.104 132.178 121.33C137.311 124.498 135.266 132.098 129.271 132.098C119.46 132.098 103.518 132.1 87.6592 132.103C71.9639 132.105 56.3497 132.108 46.8398 132.108C42.0476 132.108 39.5913 127.135 41.6265 123.666C48.5041 111.946 56.2338 100.116 62.6603 91.2834C65.5176 87.3433 71.3325 86.461 75.5031 88.6867Z\",fill:\"white\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_1704_1423\",children:(0,m.jsx)(\"rect\",{width:\"176\",height:\"176\",fill:\"white\"})})})]}),displayName:\"Zerion\",rdns:\"io.zerion.wallet\"},brave_wallet:{logo:({...e})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 436.49 511.97\",height:\"24\",width:\"24\",...e,children:[(0,m.jsx)(\"defs\",{children:(0,m.jsxs)(\"linearGradient\",{id:\"brave-linear-gradient\",x1:\"-18.79\",y1:\"359.73\",x2:\"194.32\",y2:\"359.73\",gradientTransform:\"matrix(2.05, 0, 0, -2.05, 38.49, 992.77)\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#f1562b\"}),(0,m.jsx)(\"stop\",{offset:\"0.3\",stopColor:\"#f1542b\"}),(0,m.jsx)(\"stop\",{offset:\"0.41\",stopColor:\"#f04d2a\"}),(0,m.jsx)(\"stop\",{offset:\"0.49\",stopColor:\"#ef4229\"}),(0,m.jsx)(\"stop\",{offset:\"0.5\",stopColor:\"#ef4029\"}),(0,m.jsx)(\"stop\",{offset:\"0.56\",stopColor:\"#e83e28\"}),(0,m.jsx)(\"stop\",{offset:\"0.67\",stopColor:\"#e13c26\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#df3c26\"})]})}),(0,m.jsx)(\"path\",{style:{fill:\"url(#brave-linear-gradient)\"},d:\"M436.49,165.63,420.7,122.75l11-24.6A8.47,8.47,0,0,0,430,88.78L400.11,58.6a48.16,48.16,0,0,0-50.23-11.66l-8.19,2.89L296.09.43,218.25,0,140.4.61,94.85,50.41l-8.11-2.87A48.33,48.33,0,0,0,36.19,59.3L5.62,90.05a6.73,6.73,0,0,0-1.36,7.47l11.47,25.56L0,165.92,56.47,380.64a89.7,89.7,0,0,0,34.7,50.23l111.68,75.69a24.73,24.73,0,0,0,30.89,0l111.62-75.8A88.86,88.86,0,0,0,380,380.53l46.07-176.14Z\"}),(0,m.jsx)(\"path\",{style:{fill:\"#fff\"},d:\"M231,317.33a65.61,65.61,0,0,0-9.11-3.3h-5.49a66.08,66.08,0,0,0-9.11,3.3l-13.81,5.74-15.6,7.18-25.4,13.24a4.84,4.84,0,0,0-.62,9l22.06,15.49q7,5,13.55,10.76l6.21,5.35,13,11.37,5.89,5.2a10.15,10.15,0,0,0,12.95,0l25.39-22.18,13.6-10.77,22.06-15.79a4.8,4.8,0,0,0-.68-8.93l-25.36-12.8L244.84,323ZM387.4,175.2l.8-2.3a61.26,61.26,0,0,0-.57-9.18,73.51,73.51,0,0,0-8.19-15.44l-14.35-21.06-10.22-13.88-19.23-24a69.65,69.65,0,0,0-5.7-6.67h-.4L321,84.25l-42.27,8.14a33.49,33.49,0,0,1-12.59-1.84l-23.21-7.5-16.61-4.59a70.52,70.52,0,0,0-14.67,0L195,83.1l-23.21,7.54a33.89,33.89,0,0,1-12.59,1.84l-42.22-8-8.54-1.58h-.4a65.79,65.79,0,0,0-5.7,6.67l-19.2,24Q77.81,120.32,73,127.45L58.61,148.51l-6.78,11.31a51,51,0,0,0-1.94,13.35l.8,2.3A34.51,34.51,0,0,0,52,179.81l11.33,13,50.23,53.39a14.31,14.31,0,0,1,2.55,14.34L107.68,280a25.23,25.23,0,0,0-.39,16l1.64,4.52a43.58,43.58,0,0,0,13.39,18.76l7.89,6.43a15,15,0,0,0,14.35,1.72L172.62,314A70.38,70.38,0,0,0,187,304.52l22.46-20.27a9,9,0,0,0,3-6.36,9.08,9.08,0,0,0-2.5-6.56L159.2,237.18a9.83,9.83,0,0,1-3.09-12.45l19.66-36.95a19.21,19.21,0,0,0,1-14.67A22.37,22.37,0,0,0,165.58,163L103.94,139.8c-4.44-1.6-4.2-3.6.51-3.88l36.2-3.59a55.9,55.9,0,0,1,16.9,1.5l31.5,8.8a9.64,9.64,0,0,1,6.74,10.76L183.42,221a34.72,34.72,0,0,0-.61,11.41c.5,1.61,4.73,3.6,9.36,4.73l19.19,4a46.38,46.38,0,0,0,16.86,0l17.26-4c4.64-1,8.82-3.23,9.35-4.85a34.94,34.94,0,0,0-.63-11.4l-12.45-67.59a9.66,9.66,0,0,1,6.74-10.76l31.5-8.83a55.87,55.87,0,0,1,16.9-1.5l36.2,3.37c4.74.44,5,2.2.54,3.88L272,162.79a22.08,22.08,0,0,0-11.16,10.12,19.3,19.3,0,0,0,1,14.67l19.69,36.95A9.84,9.84,0,0,1,278.45,237l-50.66,34.23a9,9,0,0,0,.32,12.78l.15.14,22.49,20.27a71.46,71.46,0,0,0,14.35,9.47l28.06,13.35a14.89,14.89,0,0,0,14.34-1.76l7.9-6.45a43.53,43.53,0,0,0,13.38-18.8l1.65-4.52a25.27,25.27,0,0,0-.39-16l-8.26-19.49a14.4,14.4,0,0,1,2.55-14.35l50.23-53.45,11.3-13a35.8,35.8,0,0,0,1.54-4.24Z\"})]}),displayName:\"Brave Wallet\",rdns:\"com.brave.wallet\"},cryptocom:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"400\",height:\"400\",viewBox:\"0 0 400 400\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M260.543 0C300.7 0 320.773 0 342.39 6.83333C365.99 15.4233 384.577 34.01 393.167 57.61C400 79.2233 400 99.3033 400 139.457V260.543C400 300.7 400 320.773 393.167 342.39C384.577 365.99 365.99 384.577 342.39 393.163C320.773 400 300.7 400 260.543 400H139.457C99.3 400 79.2233 400 57.61 393.163C34.01 384.577 15.4233 365.99 6.83333 342.39C0 320.773 0 300.7 0 260.543V139.457C0 99.3033 0 79.2233 6.83333 57.61C15.4233 34.01 34.01 15.4233 57.61 6.83333C79.2233 0 99.3 0 139.457 0H260.543Z\",fill:\"white\"}),(0,m.jsx)(\"mask\",{id:\"mask0_16909_31415\",style:{maskType:\"luminance\"},maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"400\",height:\"400\",children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M260.543 0C300.7 0 320.773 0 342.39 6.83333C365.99 15.4233 384.577 34.01 393.167 57.61C400 79.2233 400 99.3033 400 139.457V260.543C400 300.7 400 320.773 393.167 342.39C384.577 365.99 365.99 384.577 342.39 393.163C320.773 400 300.7 400 260.543 400H139.457C99.3 400 79.2233 400 57.61 393.163C34.01 384.577 15.4233 365.99 6.83333 342.39C0 320.773 0 300.7 0 260.543V139.457C0 99.3033 0 79.2233 6.83333 57.61C15.4233 34.01 34.01 15.4233 57.61 6.83333C79.2233 0 99.3 0 139.457 0H260.543Z\",fill:\"white\"})}),(0,m.jsxs)(\"g\",{mask:\"url(#mask0_16909_31415)\",children:[(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M199.804 39.8501L59.3756 119.957V280.18L199.804 360.297L340.23 280.18V119.957L199.804 39.8501Z\",fill:\"#FEFEFE\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M199.804 39.8501L59.3756 119.957V280.18L199.804 360.297L340.23 280.18V119.957L199.804 39.8501ZM144.359 109.116H254.873L268.197 164.788H131.538L144.359 109.116ZM176.201 204.291L164.148 173.197H235.711L223.913 204.291L227.339 239.028L199.804 239.154H172.522L176.201 204.291ZM211.354 275.892V264.862L236.093 241.414V204.417L268.451 183.607L305.376 211.066L255.119 297.589H235.203L211.354 275.892ZM94.2395 211.066L131.282 183.857L164.021 204.417V241.414L188.76 264.862V275.892L164.913 297.84H144.734L94.2395 211.066Z\",fill:\"#002D72\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M255.12 297.589H235.202L211.355 275.892V264.862L236.094 241.414V204.417L268.45 183.607L305.377 211.066L255.12 297.589ZM199.803 39.8498V109.117H254.872L268.198 164.789H199.803V173.199H235.712L223.914 204.291L227.338 239.028L199.803 239.153V360.296L340.231 280.181V119.957L199.803 39.8498Z\",fill:\"url(#paint0_linear_16909_31415)\",style:{mixBlendMode:\"multiply\"}}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M188.761 275.892L164.912 297.84H144.734L94.2389 211.066L131.283 183.858L164.022 204.417V241.414L188.761 264.862V275.892ZM172.522 239.153L176.2 204.291L164.149 173.199H199.803V164.789H131.537L144.36 109.117H199.803V39.8498L59.375 119.957V280.181L199.803 360.296V239.153H172.522Z\",fill:\"url(#paint1_linear_16909_31415)\",style:{mixBlendMode:\"multiply\"}})]}),(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"paint0_linear_16909_31415\",x1:\"325.255\",y1:\"325.727\",x2:\"325.255\",y2:\"73.6291\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#002D72\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#002D72\",stopOpacity:\"0.01\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint1_linear_16909_31415\",x1:\"184.827\",y1:\"325.727\",x2:\"184.827\",y2:\"73.6291\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#002D72\",stopOpacity:\"0.01\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#002D72\"})]})]})]}),displayName:\"Crypto.com DeFi Wallet\",rdns:\"com.crypto.wallet\"},uniswap:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"96\",height:\"96\",viewBox:\"0 0 96 96\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"96\",height:\"96\",rx:\"18\",fill:\"#FEF4FF\"}),(0,m.jsxs)(\"g\",{children:[(0,m.jsx)(\"path\",{d:\"M71.9367 18.39C72.0482 16.4526 72.3145 15.1746 72.8497 14.0075C73.0616 13.5456 73.2601 13.1675 73.2907 13.1675C73.3214 13.1675 73.2293 13.5085 73.086 13.9252C72.6969 15.0578 72.633 16.607 72.901 18.4094C73.2413 20.6963 73.4348 21.0263 75.8841 23.4967C77.0329 24.6554 78.3692 26.1168 78.8536 26.7443L79.7343 27.8851L78.8536 27.0698C77.7764 26.0728 75.2992 24.1283 74.7521 23.8503C74.3852 23.6639 74.3306 23.6671 74.1043 23.8894C73.8958 24.0943 73.8519 24.4021 73.8229 25.8572C73.7778 28.125 73.4646 29.5807 72.7087 31.0362C72.2998 31.8234 72.2354 31.6554 72.6053 30.7668C72.8816 30.1034 72.9096 29.8117 72.9076 27.6163C72.9033 23.2052 72.3727 22.1447 69.2607 20.3281C68.4724 19.8678 67.1734 19.2041 66.3742 18.8531C65.575 18.502 64.9401 18.1962 64.9633 18.1734C65.0514 18.0868 68.0863 18.961 69.3077 19.4247C71.1247 20.1145 71.4247 20.2039 71.6454 20.1207C71.7933 20.0649 71.8648 19.6398 71.9367 18.39Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M33.5466 11.9727C32.4688 11.808 32.4233 11.7887 32.9306 11.7119C33.9026 11.5647 36.1979 11.7653 37.7796 12.1358C41.4722 13.0004 44.8322 15.2153 48.4188 19.1488L49.3717 20.1938L50.7348 19.978C56.4773 19.0689 62.3192 19.7914 67.2054 22.0148C68.5495 22.6265 70.6689 23.8441 70.9337 24.157C71.018 24.2568 71.173 24.8987 71.2779 25.5837C71.6408 27.9534 71.4591 29.7699 70.7234 31.1265C70.3229 31.8648 70.3006 32.0988 70.5698 32.7306C70.7847 33.2348 71.3838 33.608 71.9771 33.6072C73.1913 33.6056 74.4983 31.6721 75.1038 28.9818L75.3443 27.9131L75.8209 28.4448C78.4346 31.3619 80.4876 35.34 80.8403 38.1716L80.9321 38.9099L80.4928 38.2387C79.7366 37.0838 78.9769 36.2976 78.0041 35.6635C76.2504 34.5205 74.3961 34.1315 69.4853 33.8766C65.0501 33.6464 62.5399 33.2732 60.0509 32.4737C55.816 31.1137 53.6812 29.3023 48.6508 22.8012C46.4164 19.9135 45.0354 18.3159 43.6616 17.0293C40.5401 14.1058 37.4729 12.5726 33.5466 11.9727Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M35.6404 25.9564C33.4522 22.9889 32.0983 18.4391 32.3914 15.0379L32.482 13.9854L32.9801 14.0749C33.9155 14.243 35.5283 14.8343 36.2835 15.2861C38.3559 16.5259 39.253 18.1582 40.1658 22.3496C40.4332 23.5773 40.7839 24.9666 40.9454 25.437C41.2052 26.194 42.1871 27.9624 42.9854 29.1109C43.5605 29.938 43.1785 30.33 41.9074 30.217C39.9662 30.0444 37.3367 28.2568 35.6404 25.9564Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M69.2799 48.0419C59.0538 43.9862 55.4521 40.4658 55.4521 34.5259C55.4521 33.6517 55.4827 32.9365 55.5199 32.9365C55.5572 32.9365 55.9528 33.225 56.3991 33.5776C58.4728 35.216 60.7949 35.9157 67.2233 36.8395C71.0061 37.3831 73.1349 37.8222 75.0986 38.4637C81.3402 40.5027 85.2018 44.6406 86.1227 50.2766C86.3903 51.9143 86.2334 54.9854 85.7995 56.6039C85.457 57.8824 84.4118 60.1868 84.1346 60.2751C84.0578 60.2996 83.9824 60.0094 83.9626 59.6147C83.8575 57.4983 82.7718 55.438 80.9485 53.8946C78.8754 52.1399 76.0901 50.7428 69.2799 48.0419Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M62.1008 49.7268C61.9727 48.9758 61.7505 48.0167 61.607 47.5954L61.3461 46.8296L61.8307 47.3655C62.5014 48.107 63.0314 49.0559 63.4806 50.3197C63.8234 51.2843 63.862 51.5711 63.8594 53.1386C63.8568 54.6774 63.814 55 63.4974 55.8682C62.9983 57.2373 62.3788 58.208 61.3392 59.2501C59.4712 61.1228 57.0696 62.1596 53.6039 62.5896C53.0015 62.6643 51.2456 62.7902 49.7019 62.8693C45.8118 63.0686 43.2515 63.4803 40.9508 64.276C40.6201 64.3905 40.3247 64.4601 40.2948 64.4305C40.2017 64.3393 41.768 63.4195 43.0618 62.8056C44.8862 61.94 46.7021 61.4676 50.7709 60.8002C52.7809 60.4704 54.8566 60.0704 55.3837 59.9112C60.3612 58.4079 62.9197 54.5286 62.1008 49.7268Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M66.7886 57.9275C65.4299 55.0505 65.1179 52.2726 65.8623 49.6821C65.942 49.4053 66.07 49.1787 66.1471 49.1787C66.224 49.1787 66.5447 49.3495 66.8594 49.5581C67.4855 49.9732 68.7412 50.6725 72.0866 52.4692C76.2612 54.7111 78.6414 56.4472 80.2599 58.4306C81.6775 60.1677 82.5547 62.1459 82.9769 64.5583C83.2159 65.9248 83.0759 69.2128 82.7199 70.5889C81.5975 74.9275 78.9889 78.3356 75.2682 80.3242C74.7231 80.6155 74.2337 80.8547 74.1807 80.8558C74.1278 80.8569 74.3264 80.3594 74.6222 79.7503C75.8738 77.173 76.0163 74.6661 75.07 71.8756C74.4906 70.1671 73.3092 68.0823 70.924 64.5588C68.1507 60.4623 67.4708 59.3721 66.7886 57.9275Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M28.3782 73.4506C32.173 70.2943 36.8948 68.0521 41.1958 67.3639C43.0494 67.0672 46.1372 67.185 47.8537 67.6178C50.605 68.3113 53.0662 69.8648 54.3462 71.7156C55.5971 73.5245 56.1338 75.1008 56.6925 78.6081C56.913 79.9916 57.1527 81.3809 57.2252 81.6954C57.6449 83.5131 58.4614 84.966 59.4733 85.6957C61.0805 86.8544 63.8479 86.9265 66.5704 85.8804C67.0325 85.7028 67.4336 85.5801 67.4618 85.6078C67.5605 85.7044 66.1896 86.6083 65.2225 87.0842C63.9212 87.7245 62.8864 87.972 61.5115 87.972C59.0181 87.972 56.948 86.7226 55.2206 84.175C54.8807 83.6736 54.1167 82.1718 53.5228 80.8378C51.699 76.7403 50.7984 75.4921 48.6809 74.126C46.8381 72.9374 44.4615 72.7245 42.6736 73.588C40.325 74.7223 39.6698 77.6786 41.3518 79.5521C42.0204 80.2967 43.2671 80.939 44.2865 81.0638C46.1936 81.2975 47.8326 79.8684 47.8326 77.9717C47.8326 76.7402 47.352 76.0374 46.1423 75.4996C44.4901 74.7652 42.7141 75.6237 42.7226 77.1526C42.7263 77.8045 43.0145 78.214 43.6779 78.5097C44.1036 78.6994 44.1134 78.7144 43.7664 78.6434C42.2504 78.3337 41.8952 76.5335 43.1141 75.3383C44.5776 73.9036 47.6037 74.5367 48.6428 76.4951C49.0794 77.3177 49.1301 78.956 48.7495 79.9452C47.8976 82.1593 45.4138 83.3237 42.8941 82.6901C41.1787 82.2587 40.4801 81.7915 38.4119 79.6931C34.8179 76.0462 33.4226 75.3396 28.2413 74.5428L27.2484 74.3902L28.3782 73.4506Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M11.5147 8.18128C23.517 22.5305 31.7835 28.4507 32.7022 29.7015C33.4607 30.7343 33.1752 31.6628 31.8758 32.3905C31.1532 32.7951 29.6676 33.205 28.9238 33.205C28.0825 33.205 27.7936 32.8853 27.7936 32.8853C27.3058 32.4296 27.0311 32.5093 24.5261 28.1293C21.0483 22.8137 18.1379 18.4041 18.0585 18.3303C17.8749 18.1596 17.878 18.1653 24.1715 29.2574C25.1883 31.5693 24.3737 32.4179 24.3737 32.7471C24.3737 33.417 24.1882 33.7691 23.3494 34.6907C21.951 36.2274 21.3259 37.954 20.8746 41.5274C20.3687 45.5332 18.9462 48.3629 15.0041 53.2057C12.6965 56.0406 12.3189 56.5602 11.7366 57.7028C11.0032 59.1416 10.8015 59.9475 10.7198 61.7645C10.6334 63.6855 10.8016 64.9265 11.3975 66.7632C11.9191 68.3712 12.4636 69.433 13.8555 71.5567C15.0568 73.3894 15.7484 74.7513 15.7484 75.2841C15.7484 75.708 15.8306 75.7085 17.692 75.2945C22.1466 74.3036 25.7638 72.5609 27.7981 70.4252C29.0571 69.1033 29.3527 68.3733 29.3623 66.5619C29.3686 65.377 29.3263 65.1289 29.0011 64.4473C28.4718 63.3379 27.5083 62.4154 25.3845 60.9853C22.6019 59.1115 21.4133 57.603 21.085 55.5285C20.8157 53.8263 21.1282 52.6253 22.6676 49.4472C24.2609 46.1575 24.6558 44.7557 24.9229 41.4399C25.0954 39.2977 25.3343 38.4528 25.9591 37.7747C26.6108 37.0676 27.1975 36.8281 28.8103 36.611C31.4396 36.2572 33.1139 35.5871 34.4901 34.3379C35.6839 33.2543 36.1835 32.2101 36.2602 30.6382L36.3184 29.4468L35.6512 28.6806C33.2352 25.9057 9.89667 6 9.74799 6C9.71623 6 10.5113 6.98164 11.5147 8.18128ZM17.1047 63.9381C17.6509 62.9852 17.3607 61.7601 16.447 61.1617C15.5836 60.5962 14.2424 60.8625 14.2424 61.5994C14.2424 61.8243 14.3687 61.9879 14.6532 62.1322C15.1322 62.375 15.167 62.648 14.7901 63.2061C14.4084 63.7712 14.4392 64.2681 14.877 64.6057C15.5826 65.15 16.5815 64.8507 17.1047 63.9381Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M37.9777 37.236C36.7433 37.6095 35.5435 38.8981 35.172 40.2493C34.9454 41.0736 35.074 42.5196 35.4134 42.9662C35.9617 43.6874 36.492 43.8774 37.9277 43.8675C40.7388 43.8482 43.1825 42.6606 43.4666 41.176C43.6994 39.9591 42.6262 38.2726 41.1478 37.5321C40.385 37.1502 38.7626 36.9987 37.9777 37.236ZM41.2638 39.7671C41.6973 39.1604 41.5076 38.5047 40.7704 38.0611C39.3664 37.2167 37.2432 37.9155 37.2432 39.222C37.2432 39.8724 38.3504 40.5819 39.3653 40.5819C40.0408 40.5819 40.9652 40.1851 41.2638 39.7671Z\",fill:\"#F50DB4\"})]})]}),displayName:\"Uniswap Wallet\",rdns:\"org.uniswap.app\"},okx_wallet:{displayName:\"OKX Wallet\",rdns:\"com.okex.wallet\",logo:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJDSURBVHgB7Zq9jtpAEMfHlhEgQLiioXEkoAGECwoKxMcTRHmC5E3IoyRPkPAEkI7unJYmTgEFTYwA8a3NTKScLnCHN6c9r1e3P2llWQy7M/s1Gv1twCP0ej37dDq9x+Zut1t3t9vZjDEHIiSRSPg4ZpDL5fxkMvn1cDh8m0wmfugfO53OoFQq/crn8wxfY9EymQyrVCqMfHvScZx1p9ls3pFxXBy/bKlUipGPrVbLuQqAfsCliq3zl0H84zwtjQrOw4Mt1W63P5LvBm2d+Xz+YzqdgkqUy+WgWCy+Mc/nc282m4FqLBYL+3g8fjDxenq72WxANZbLJeA13zDX67UDioL5ybXwafMYu64Ltn3bdDweQ5R97fd7GyhBQMipx4POeEDHIu2LfDdBIGGz+hJ9CQ1ABjoA2egAZPM6AgiCAEQhsi/C4jHyPA/6/f5NG3Ks2+3CYDC4aTccDrn6ojG54MnEvG00GoVmWLIRNZ7wTCwDHYBsdACy0QHIhiuRETxlICWpMMhGZHmqS8qH6JLyGegAZKMDkI0uKf8X4SWlaZo+Pp1bRrwlJU8ZKLIvUjKh0WiQ3sRUbNVq9c5Ebew7KEo2m/1p4jJ4qAmDaqDQBzj5XyiAT4VCQezJigAU+IDU+z8vJFnGWeC+bKQV/5VZ71FV6L7PA3gg3tXrdQ+DgLhC+75Wq3no69P3MC0NFQpx2lL04Ql9gHK1bRDjsSBIvScBnDTk1WrlGIZBorIDEYJj+rhdgnQ67VmWRe0zlplXl81vcyEt0rSoYDUAAAAASUVORK5CYII=\"},rabby_wallet:{logo:e=>(0,m.jsxs)(\"svg\",{width:\"52\",height:\"52\",viewBox:\"0 0 52 52\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...e,children:[(0,m.jsx)(\"rect\",{width:\"52\",height:\"52\",rx:\"26\",fill:\"#7084FF\"}),(0,m.jsx)(\"path\",{d:\"M43.6781 28.2954C45.1053 25.0988 38.0498 16.168 31.3094 12.4472C27.0608 9.56481 22.6337 9.96081 21.737 11.2264C19.7693 14.0039 28.2527 16.3574 33.9263 19.1037C32.7067 19.6348 31.5574 20.5879 30.8816 21.8067C28.7664 19.4915 24.1239 17.4977 18.6765 19.1037C15.0056 20.186 11.9547 22.7374 10.7756 26.5911C10.4891 26.4635 10.1719 26.3925 9.83814 26.3925C8.56192 26.3925 7.52734 27.4298 7.52734 28.7094C7.52734 29.989 8.56192 31.0263 9.83814 31.0263C10.0747 31.0263 10.8143 30.8672 10.8143 30.8672L22.6337 30.953C17.9068 38.4713 14.1713 39.5704 14.1713 40.8729C14.1713 42.1754 17.7455 41.8224 19.0876 41.3369C25.5121 39.0127 32.4123 31.7692 33.5964 29.6841C38.5688 30.3061 42.7476 30.3796 43.6781 28.2954Z\",fill:\"url(#paint0_linear_81034_11443)\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M33.8741 19.076C33.8926 19.084 33.911 19.092 33.9294 19.1001C34.1923 18.9962 34.1498 18.6068 34.0776 18.301C33.9116 17.5981 31.0479 14.7629 28.3588 13.493C24.6934 11.762 21.9946 11.8518 21.5972 12.65C22.3407 14.1849 25.8031 15.6258 29.4193 17.1308C30.9407 17.7639 32.4893 18.4084 33.8741 19.076Z\",fill:\"url(#paint1_linear_81034_11443)\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M29.272 34.5374C28.5323 34.2543 27.697 33.9945 26.7477 33.7587C27.7625 31.9382 27.9754 29.2432 27.0171 27.5392C25.6721 25.1478 23.9838 23.875 20.0605 23.875C17.9027 23.875 12.093 24.6037 11.9899 29.4663C11.9791 29.9743 11.9895 30.44 12.026 30.8685L22.6335 30.9456C21.2017 33.2229 19.8609 34.9113 18.6873 36.1947C20.0979 36.5571 21.2615 36.8612 22.3297 37.1404C23.3394 37.4043 24.2638 37.646 25.2309 37.8934C26.6941 36.8249 28.0698 35.6597 29.272 34.5374Z\",fill:\"url(#paint2_linear_81034_11443)\"}),(0,m.jsx)(\"path\",{d:\"M10.6324 30.3712C11.0658 34.065 13.1596 35.5127 17.4381 35.9411C21.7166 36.3695 24.1708 36.0821 27.4381 36.3801C30.167 36.6291 32.6036 38.0233 33.5075 37.5415C34.321 37.1079 33.8659 35.5412 32.7774 34.5361C31.3663 33.2333 29.4135 32.3274 25.9773 32.006C26.6621 30.1261 26.4702 27.4903 25.4067 26.0562C23.8689 23.9827 21.0305 23.0453 17.4381 23.4549C13.6848 23.8828 10.0885 25.7354 10.6324 30.3712Z\",fill:\"url(#paint3_linear_81034_11443)\"}),(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"paint0_linear_81034_11443\",x1:\"18.249\",y1:\"25.4646\",x2:\"43.3806\",y2:\"32.5728\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"white\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"white\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint1_linear_81034_11443\",x1:\"39.1432\",y1:\"24.9813\",x2:\"20.9691\",y2:\"6.81008\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#8697FF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8697FF\",stopOpacity:\"0\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint2_linear_81034_11443\",x1:\"29.7761\",y1:\"35.1727\",x2:\"12.345\",y2:\"25.1792\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#8697FF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8697FF\",stopOpacity:\"0\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint3_linear_81034_11443\",x1:\"19.7472\",y1:\"25.2716\",x2:\"31.5549\",y2:\"40.2352\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"white\"}),(0,m.jsx)(\"stop\",{offset:\"0.983895\",stopColor:\"#D1D8FF\"})]})]})]}),displayName:\"Rabby Wallet\",rdns:\"io.rabby.wallet\"}},aS=(e,t,r)=>aA[e]?.displayName?\"coinbase_wallet\"===e?aA[r].displayName:aA[e].displayName:\"wallet_connect_v2\"===t&&\"wallet_connect\"===e?\"Wallet Connect\":void 0,aT=(e,t,r)=>aA[e]?.logo?\"coinbase_wallet\"===e?aA[r].logo:aA[e].logo:\"wallet_connect_v2\"===t&&\"wallet_connect\"===e?nw:void 0,aP=(e,t)=>{let r=t?.height||16,n=t?.width||16;return 8453===e?(0,m.jsx)(aE,{height:r,width:n}):(0,m.jsx)(g.Z,{height:r,width:n})};function aN(e){let t=e.toLowerCase();return!!window?.webkit?.messageHandlers?.ReactNativeWebView||!!window?.ReactNativeWebView||[\"fbav\",\"fban\",\"instagram\",\"snapchat\",\"linkedinapp\"].some(e=>t.includes(e))}var aR=(0,o.createContext)({}),aM=({children:e})=>{let t=nh(),[r,n]=(0,o.useState)({});return nG(\"login\",{onComplete:(e,r,i,a,o)=>{o&&\"passkey\"!==o.type&&\"cross_app\"!==o.type&&(\"wallet\"!==o.type||\"privy\"!==o.walletClientType)&&(to.put(aO(t.id),o.type),\"wallet\"===o.type?(to.put(aI(t.id),o.walletClientType),n({accountType:o.type,walletClientType:o.walletClientType})):(to.del(aI(t.id)),n({accountType:o.type})))}}),(0,o.useEffect)(()=>{if(!t.id)return;let e=to.get(aO(t.id)),r=to.get(aI(t.id));e&&n(\"wallet\"===e?{accountType:e,walletClientType:r}:{accountType:e})},[t.id]),(0,m.jsx)(aR.Provider,{value:r,children:e})},aO=e=>`privy:${e}:recent-login-method`,aI=e=>`privy:${e}:recent-login-wallet-client`,aW=()=>(0,o.useContext)(aR),aL=({provider:e,displayName:t,logo:r,connectOnly:n,connector:i})=>{let{navigate:a}=ny(),{connectWallet:o}=nZ(),l=aW(),c=\"wallet_connect_v2\"===i.connectorType?e:i.walletClientType,d=window.matchMedia(\"(display-mode: standalone)\").matches,h;return h=\"phantom\"===i.connectorType?()=>{tc()?(o(i,c),a(n?\"AWAITING_CONNECT_ONLY_CONNECTION\":\"AWAITING_CONNECTION\")):a(s.tq?\"PHANTOM_INTERSTITIAL_SCREEN\":\"INSTALL_PHANTOM_SCREEN\")}:\"coinbase_wallet\"!==i.connectorType||\"eoaOnly\"!==i.connectionOptions||!s.tq||d||td()?()=>{aN(window.navigator.userAgent)&&!event?.isTrusted||(o(i,c),a(n?\"AWAITING_CONNECT_ONLY_CONNECTION\":\"AWAITING_CONNECTION\"))}:()=>{window.location.href=`https://go.cb-w.com/dapp?cb_url=${encodeURI(window.location.href)}`},(0,m.jsxs)(aF,{onClick:h,children:[(0,m.jsx)(aC,{icon:aT(e,i.connectorType,i.walletClientType)??r,name:i.walletClientType}),(0,m.jsx)(\"span\",{children:aS(e,i.connectorType,i.walletClientType)||t||i.walletClientType}),l?.walletClientType===c?(0,m.jsx)(aU,{color:\"gray\",children:\"Recent\"}):(0,m.jsx)(\"span\",{id:\"connect-text\",children:\"Connect\"})]})},aF=(0,A.ZP)(i_)`\n  /* Show \"Connect\" on hover */\n  > #connect-text {\n    font-weight: 500;\n    text-align: right;\n    flex: none;\n    order: 2;\n    flex-grow: 1;\n    color: var(--privy-color-accent);\n    opacity: 0;\n    transition: opacity 0.1s ease-out;\n  }\n\n  :hover > #connect-text {\n    opacity: 1;\n  }\n\n  @media (max-width: 440px) {\n    > #connect-text {\n      display: none;\n    }\n  }\n`,aU=(0,A.ZP)(aj)`\n  margin-left: auto;\n`,aD=[\"coinbase_wallet\"],aZ=[\"metamask\",\"okx_wallet\",\"rainbow\",\"uniswap\",\"zerion\",\"rabby_wallet\",\"cryptocom\"],az=[],a$=[\"phantom\"],aH=({connectOnly:e})=>{let{connectors:t}=nZ(),{app:r}=ny(),n=aB(r.appearance.walletList,t,e,r.appearance.walletList,r.externalWallets.walletConnect.enabled);return(0,m.jsxs)(m.Fragment,{children:[...n]})},aB=(e,t,r,n,i)=>{let a=[],o=[],s=[],l=t.find(e=>\"wallet_connect_v2\"===e.connectorType);for(let c of e)if(\"detected_wallets\"===c)for(let e of t.filter(({connectorType:e,walletClientType:t})=>\"uniswap_wallet_extension\"===t?!n.includes(\"uniswap\"):\"crypto.com_wallet_extension\"===t?!n.includes(\"cryptocom\"):\"injected\"===e&&!n.includes(t))){let{walletClientType:t,walletBranding:n}=e;(\"unknown\"===t?o:a).push((0,m.jsx)(aL,{connectOnly:r,provider:t,logo:n.icon,displayName:n.name,connector:e},`${c}-${t}`))}else if(a$.includes(c)){let e=t.find(e=>\"injected\"===e.connectorType&&e.walletClientType===c||e.connectorType===c);e&&a.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:e},c))}else if(aZ.includes(c)){let e=t.find(e=>\"uniswap\"===c?\"uniswap_wallet_extension\"===e.walletClientType:\"cryptocom\"===c?\"crypto.com_wallet_extension\"===e.walletClientType:\"injected\"===e.connectorType&&e.walletClientType===c);i&&!e&&(e=l),e&&a.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:e},c))}else if(aD.includes(c)){let e=t.find(({connectorType:e})=>e===c);e&&a.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:e},c))}else az.includes(c)?l&&s.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:l},c)):\"wallet_connect\"===c&&l&&s.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:l},c));return[...o,...a,...s]},aq=(e,t)=>{let r=(0,o.useRef)(()=>{});(0,o.useEffect)(()=>{r.current=e}),(0,o.useEffect)(()=>{if(null!==t){let e=setInterval(()=>r.current(),t||0);return()=>clearInterval(e)}},[t])},aV=e=>e?.privyErrorCode===\"linked_to_another_user\"?rL.ERROR_USER_EXISTS:e instanceof rW&&!e.details.default?e.details:e instanceof rR?rL.ERROR_TIMED_OUT:e instanceof rM?rL.ERROR_USER_REJECTED_CONNECTION:rL.ERROR_WALLET_CONNECTION,aG=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,aK=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n\n  > div {\n    position: relative;\n  }\n\n  > div > span {\n    position: absolute;\n    left: -41px;\n    top: -41px;\n  }\n\n  > div > :last-child {\n    position: absolute;\n    left: -19px;\n    top: -19px;\n  }\n`,aY=e=>{let t=e.walletLogo;return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(aK,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:e.success,fail:e.fail}),\"string\"==typeof t?(0,m.jsx)(\"span\",{style:{background:`url('${t}')`,height:\"38px\",width:\"38px\",borderRadius:\"6px\",margin:\"auto\",backgroundSize:\"cover\"}}):(0,m.jsx)(t,{style:{width:\"38px\",height:\"38px\"}})]})})})},aQ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,aX=({name:e,logoUrl:t})=>{let r=`${e??\"Provider app\"} logo`;return\"string\"==typeof t?(0,m.jsx)(\"img\",{src:t,alt:r,style:{width:\"38px\",height:\"38px\",maxHeight:\"90px\",maxWidth:\"180px\",borderRadius:\"8px\"}}):(0,m.jsx)(\"span\",{})},aJ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,a0=()=>(0,m.jsx)(a1,{children:(0,m.jsxs)(a2,{children:[(0,m.jsx)(a3,{}),(0,m.jsx)(a4,{})]})}),a1=A.ZP.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-grow: 1;\n\n  margin: 12px;\n  padding: 16px;\n\n  @media all and (display-mode: standalone) {\n    margin-bottom: 30px;\n  }\n`,a2=A.ZP.div`\n  position: relative;\n  height: 140px;\n  width: 140px;\n\n  opacity: 1;\n  animation: fadein 200ms ease;\n`,a3=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 140px;\n  height: 140px;\n\n  && {\n    border: 4px solid var(--privy-color-accent-light);\n    border-radius: 50%;\n  }\n`,a4=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 140px;\n  height: 140px;\n  animation: spin 1200ms linear infinite;\n\n  && {\n    border: 4px solid;\n    border-color: var(--privy-color-accent) transparent transparent transparent;\n    border-radius: 50%;\n  }\n\n  @keyframes spin {\n    from {\n      transform: rotate(0deg);\n    }\n    to {\n      transform: rotate(360deg);\n    }\n  }\n`,a5=[\"error\",\"invalid_request_arguments\",\"wallet_not_on_device\",\"invalid_recovery_pin\",\"insufficient_funds\",\"missing_or_invalid_mfa\",\"mfa_verification_max_attempts_reached\",\"mfa_timeout\",\"twilio_verification_failed\"],a6=class extends Error{constructor(e,t){super(t),this.type=e}};function a7(e){let t=e.type;return\"string\"==typeof t&&a5.includes(t)}function a8(e){return a7(e)&&\"wallet_not_on_device\"===e.type}function a9(e){return!!(a7(e)&&\"mfa_timeout\"===e.type)}function oe(e){return!!(a7(e)&&\"missing_or_invalid_mfa\"===e.type)}function ot(e){return!!(a7(e)&&e.message.includes(\"code 429\"))}function or(e){let t;return!!(\"string\"==typeof(t=e.type)&&\"client_error\"===t&&\"MFA canceled\"===e.message)}function on({isCreatingWallet:e,skipSplashScreen:t}){return e?\"EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN\":t?\"EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN\":\"EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN\"}function oi({walletAction:e,availableRecoveryMethods:t,legacySetWalletPasswordFlow:r,isResettingPassword:n,showAutomaticRecovery:i}){return i?\"EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN\":r||1===t.length?on({isCreatingWallet:\"create\"===e,skipSplashScreen:n}):\"EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN\"}function oa(e){switch(e){case\"user-passcode\":return\"EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN\";case\"google-drive\":case\"icloud\":return\"EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN\";default:throw Error(\"Recovery method not supported\")}}async function oo({api:e,provider:t}){let r=t4(),n=t4(),i=await t5(r);try{return\"icloud\"===t?{url:(await e.post(\"/api/v1/recovery/oauth/init_icloud\",{client_type:\"web\"})).url}:{url:(await e.post(\"/api/v1/recovery/oauth/init\",{redirect_to:window.location.href,code_challenge:i,state_code:n})).url,codeVerifier:r,stateCode:n,provider:t}}catch(e){throw eX(e)}}async function os({api:e,provider:t,stateCode:r,codeVerifier:n,authorizationCode:i}){if(!i||!r)throw new eK(\"[OAuth AuthFlow] Authorization and state codes code must be set prior to calling authenicate.\");if(\"undefined\"===i)throw new eK(\"User denied confirmation during OAuth flow\");try{return(await e.post(\"/api/v1/recovery/oauth/authenticate\",{authorization_code:i,state_code:r,code_verifier:n,provider:t})).access_token}catch(t){let e=eX(t);throw e.privyErrorCode?new eK(e.message||\"Invalid code during OAuth flow.\",void 0,e.privyErrorCode):\"User denied confirmation during OAuth flow\"===e.message?new eK(\"Invalid code during oauth flow.\",void 0,\"oauth_user_denied\"):new eK(\"Invalid code during OAuth flow.\",void 0,\"unknown_auth_error\")}}var ol=A.ZP.div`\n  height: 44px;\n`,oc=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n`,od=A.ZP.span`\n  color: var(--privy-color-foreground-3);\n  font-size: 0.875rem;\n  font-weight: 400;\n  line-height: 1.375rem; /* 157.143% */\n`;function oh(e){let[t,r]=(0,o.useState)(!1);return t?(0,m.jsxs)(\"div\",{className:\"gap-1.75 flex items-center\",children:[(0,m.jsx)(M.Z,{color:\"var(--privy-color-success)\"}),(0,m.jsx)(\"span\",{children:\"Copied Address\"})]}):(0,m.jsx)(D.Z,{color:\"var(--privy-color-foreground-3)\",onClick:async()=>{await navigator.clipboard.writeText(e.address),r(!0),setTimeout(()=>r(!1),2500)}})}function ou(e){let[t,r]=(0,o.useState)(e.dimensions.width),[n,i]=(0,o.useState)(void 0),a=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(a.current&&void 0===t){let{width:e}=a.current.getBoundingClientRect();r(e)}let e=getComputedStyle(document.documentElement);i({background:e.getPropertyValue(\"--privy-color-background\"),background2:e.getPropertyValue(\"--privy-color-background-2\"),foreground3:e.getPropertyValue(\"--privy-color-foreground-3\"),foregroundAccent:e.getPropertyValue(\"--privy-color-foreground-accent\"),accent:e.getPropertyValue(\"--privy-color-accent\"),accentDark:e.getPropertyValue(\"--privy-color-accent-dark\"),success:e.getPropertyValue(\"--privy-color-success\")})},[]),(0,m.jsx)(\"div\",{ref:a,children:t&&(0,m.jsxs)(ox,{children:[(0,m.jsx)(\"iframe\",{style:{position:\"absolute\",zIndex:1},width:t,height:e.dimensions.height,allow:\"clipboard-write self *\",src:ty(e.origin,`/apps/${e.appId}/embedded-wallets/export`,{client_id:e.appClientId,address:e.wallet.address,width:`${t}px`,caid:e.clientAnalyticsId,phrase_export:!0,...n},{token:e.accessToken})}),(0,m.jsx)(ov,{children:\"Loading...\"}),!e.wallet.imported&&(0,m.jsx)(ov,{children:\"Loading...\"})]})})}var op=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n`,om=A.ZP.span`\n  && a {\n    color: var(--privy-color-accent);\n    text-decoration: underline;\n  }\n`,og=A.ZP.div`\n  background: var(--privy-color-warn-light);\n  display: flex;\n  align-items: start;\n  gap: 0.625rem;\n  padding: 0.75rem;\n  border-radius: 8px;\n  && svg {\n    width: 1.25rem;\n    height: 1.25rem;\n  }\n`,of=A.ZP.div`\n  && > div {\n    border-radius: var(--privy-border-radius-md);\n    border-width: 1px;\n    border-color: var(--privy-color-foreground-4);\n  }\n`,oy=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 0.625rem;\n  && svg {\n    width: 0.875rem;\n    height: 0.875rem;\n    cursor: pointer;\n  }\n`,ow=A.ZP.div`\n  display: flex;\n  margin-top: 1.5rem;\n  margin-bottom: 1rem;\n  padding: 0.75rem 1rem;\n`,ox=A.ZP.div`\n  overflow: visible;\n  position: relative;\n  overflow: none;\n  height: 44px;\n  display: flex;\n  gap: 12px;\n`,ov=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  height: 100%;\n  font-size: 16px;\n  font-weight: 500;\n  border-radius: var(--privy-border-radius-md);\n  background-color: var(--privy-color-background-2);\n  color: var(--privy-color-foreground-3);\n`;function oC(){let{refreshUser:e,createAnalyticsEvent:t,initializeWalletProxy:r}=nZ(),n=(0,o.useRef)(!1);return{createWallet:(0,o.useCallback)(async i=>{let a=await uK();if(!a)throw t({eventName:\"embedded_wallet_creation_failed\",payload:{error:\"Missing access token for user.\"}}),Error(\"An error has occured, please login again.\");try{t({eventName:\"embedded_wallet_creation_started\"});let o=await r(3e4);if(!o)throw Error(\"walletProxy does not exist.\");let s=new Promise((e,t)=>{setTimeout(()=>{t(Error(\"walletProxy.create timed out.\"))},2e4)});if(!await Promise.race([o.create({accessToken:a,recoveryPassword:i}),s]))throw Error(\"walletProxy.create did not send a response.\");let l=await e();if(!l)throw Error(\"Failed to refresh user.\");let c=rC(l);if(!c)throw Error(\"Updated user is missing embedded wallet.\");return t({eventName:\"embedded_wallet_creation_completed\",payload:{walletAddress:c.address}}),n.current=!0,c}catch(e){if(n.current)return;throw t({eventName:\"embedded_wallet_creation_failed\",payload:{error:e.toString()}}),console.warn(e),e}},[])}}var ob=A.ZP.div`\n  height: 44px;\n`,o_=(0,A.iv)`\n  font-size: 14px;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 20px;\n  letter-spacing: -0.008px;\n  text-align: left;\n  transition: color 0.1s ease-in;\n`,oj=A.ZP.span`\n  ${o_}\n  transition: color 0.1s ease-in;\n  color: ${({error:e})=>e?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  text-transform: ${({error:e})=>e?\"\":\"capitalize\"};\n\n  &[aria-hidden='true'] {\n    visibility: hidden;\n  }\n`,ok=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  flex-grow: 1;\n`,oE=(0,A.ZP)(n3)`\n  ${e=>e.hideAnimations&&(0,A.iv)`\n      && {\n        transition: none;\n      }\n    `}\n`,oA=(0,A.iv)`\n  && {\n    width: 100%;\n    border-width: 1px;\n    border-radius: var(--privy-border-radius-md);\n    border-color: var(--privy-color-foreground-3);\n    background: var(--privy-color-background);\n    color: var(--privy-color-foreground);\n\n    padding: 12px;\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 300;\n    line-height: 22px; /* 137.5% */\n  }\n`,oS=A.ZP.input`\n  ${oA}\n\n  &::placeholder {\n    color: var(--privy-color-foreground-3);\n    font-style: italic;\n    font-size: 14px;\n  }\n\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n`,oT=A.ZP.div`\n  ${oA}\n`,oP=A.ZP.div`\n  position: relative;\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: ${({centered:e})=>e?\"center\":\"space-between\"};\n`,oN=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin: 32px 0;\n  gap: 4px;\n\n  & h3 {\n    font-size: 18px;\n    font-style: normal;\n    font-weight: 600;\n    line-height: 24px;\n  }\n\n  & p {\n    max-width: 300px;\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 400;\n    line-height: 20px;\n  }\n`,oR=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n  padding-bottom: 1rem;\n`,oM=A.ZP.div`\n  display: flex;\n  text-align: left;\n  align-items: center;\n\n  gap: 8px;\n  max-width: 300px;\n\n  font-size: 14px;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 20px;\n  letter-spacing: -0.008px;\n\n  margin: 0 8px;\n  color: var(--privy-color-foreground-2);\n\n  > :first-child {\n    min-width: 24px;\n  }\n`,oO=(A.ZP.div`\n  height: var(--privy-height-modal-full);\n\n  @media (max-width: 440px) {\n    height: var(--privy-height-modal-compact);\n  }\n`,(0,A.ZP)(n2)`\n  display: flex;\n  flex: 1;\n  gap: 4px;\n  justify-content: center;\n\n  && {\n    background: var(--privy-color-background);\n    border-radius: var(--privy-border-radius-md);\n    border-color: var(--privy-color-foreground-3);\n    border-width: 1px;\n  }\n`),oI=A.ZP.div`\n  position: absolute;\n  right: 0.5rem;\n\n  display: flex;\n  flex-direction: row;\n  justify-content: space-around;\n  align-items: center;\n`,oW=(0,A.ZP)(Z.Z)`\n  height: 1.25rem;\n  width: 1.25rem;\n  stroke: var(--privy-color-accent);\n  cursor: pointer;\n\n  :active {\n    stroke: var(--privy-color-accent-light);\n  }\n`,oL=(0,A.ZP)($.Z)`\n  height: 1.25rem;\n  width: 1.25rem;\n  stroke: var(--privy-color-accent);\n  cursor: pointer;\n\n  :active {\n    stroke: var(--privy-color-accent-light);\n  }\n`,oF=(0,A.ZP)(z.Z)`\n  height: 1.25rem;\n  width: 1.25rem;\n  stroke: var(--privy-color-accent);\n  cursor: pointer;\n\n  :active {\n    stroke: var(--privy-color-accent-light);\n  }\n`,oU=A.ZP.progress`\n  height: 4px;\n  width: 100%;\n  margin: 8px 0;\n\n  /* border-radius: 9999px; */\n  ::-webkit-progress-bar {\n    border-radius: 8px;\n    background: var(--privy-color-foreground-4);\n  }\n\n  ::-webkit-progress-value {\n    border-radius: 8px;\n    transition: all 0.1s ease-out;\n    background: ${({label:e})=>\"Strong\"===e&&\"#78dca6\"||\"Medium\"===e&&\"var(--privy-color-warn)\"||\"var(--privy-color-error)\"};\n  }\n`,oD=({buttonHideAnimations:e,buttonLoading:t,password:r,onSubmit:n,onBack:i})=>{let[a,s]=(0,o.useState)(!0),[l,c]=(0,o.useState)(!1),[d,h]=(0,o.useState)(\"\"),u=r===d;return(0,o.useEffect)(()=>{d&&!l&&c(!0)},[d]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1,backFn:i}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(U.Z,{height:48,width:48,stroke:\"var(--privy-color-background)\",fill:\"var(--privy-color-accent)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Confirm your password\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Please re-enter your password below to continue.\"})]}),(0,m.jsxs)(oP,{children:[(0,m.jsx)(oS,{value:d,onChange:e=>h(e.target.value),onBlur:()=>c(!0),placeholder:\"confirm your password\",type:a?\"password\":\"text\",style:{paddingRight:\"2.3rem\"}}),(0,m.jsx)(oI,{style:{right:\"0.75rem\"},children:a?(0,m.jsx)(oL,{onClick:()=>s(!1)}):(0,m.jsx)(oF,{onClick:()=>s(!0)})})]}),(0,m.jsx)(oj,{\"aria-hidden\":!l||u,error:!0,children:\"Passwords do not match\"})]}),(0,m.jsx)(oE,{onClick:n,loading:t,disabled:!u,hideAnimations:e,children:\"Continue\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},oZ=({className:e,checked:t,color:r=\"var(--privy-color-accent)\",...n})=>(0,m.jsx)(\"label\",{children:(0,m.jsxs)(oz,{className:e,children:[(0,m.jsx)(oH,{checked:t,...n}),(0,m.jsx)(oB,{color:r,checked:t,children:(0,m.jsx)(o$,{viewBox:\"0 0 24 24\",children:(0,m.jsx)(\"polyline\",{points:\"20 6 9 17 4 12\"})})})]})});A.ZP.label`\n  && {\n    cursor: pointer;\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    padding: 0.75rem 1rem;\n    text-align: left;\n    border-radius: 0.5rem;\n    border: 1px solid var(--privy-color-foreground-4);\n    width: 100%;\n  }\n`;var oz=A.ZP.div`\n  display: inline-block;\n  vertical-align: middle;\n`,o$=A.ZP.svg`\n  fill: none;\n  stroke: white;\n  stroke-width: 3px;\n`,oH=A.ZP.input.attrs({type:\"checkbox\"})`\n  border: 0;\n  clip: rect(0 0 0 0);\n  clippath: inset(50%);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  white-space: nowrap;\n  width: 1px;\n`,oB=A.ZP.div`\n  display: inline-block;\n  width: 18px;\n  height: 18px;\n  transition: all 150ms;\n  cursor: pointer;\n  border-color: ${e=>e.color};\n  border-radius: 3px;\n  background: ${e=>e.checked?e.color:\"var(--privy-color-background)\"};\n\n  && {\n    /* This is necessary to override css reset for border width */\n    border-width: 1px;\n  }\n\n  ${oH}:focus + & {\n    box-shadow: 0 0 0 1px ${e=>e.color};\n  }\n\n  ${o$} {\n    visibility: ${e=>e.checked?\"visible\":\"hidden\"};\n  }\n`,oq=({buttonHideAnimations:e,buttonLoading:t,onSubmit:r,onBack:n,config:i})=>{let[a,s]=(0,o.useState)(!1);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1,backFn:n}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(U.Z,{height:48,width:48,stroke:\"var(--privy-color-background)\",fill:\"var(--privy-color-error)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Confirm you have saved\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Losing access to your password means you will lose access to your account.\"})]}),(0,m.jsx)(oR,{children:(0,m.jsxs)(oM,{style:{color:\"var(--privy-color-error)\",cursor:\"pointer\"},onClick:e=>{e.preventDefault(),s(e=>!e)},children:[(0,m.jsx)(oZ,{color:\"var(--privy-color-error)\",readOnly:!0,checked:a}),(0,m.jsx)(m.Fragment,{children:\"I understand that if I lose my password and device, I will lose access to my account and my assets.\"})]})})]}),(0,m.jsxs)(oV,{children:[\"user\"===i.initiatedBy&&(0,m.jsx)(n8,{onClick:i.onCancel,disabled:t,children:\"Cancel\"}),(0,m.jsx)(oE,{onClick:r,loading:t,hideAnimations:e,disabled:!a,children:\"Set Password\"})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},oV=A.ZP.div`\n  display: flex;\n  gap: 10px;\n`,oG=/[a-z]/,oK=/[A-Z]/,oY=/[0-9]/,oQ=\"!@#$%^&*()\\\\-_+.\",oX=`a-zA-Z0-9${oQ}`,oJ=RegExp(`[${oQ}]`),o0=RegExp(`[${oX}]`),o1=RegExp(`^[${oX}]{6,}$`),o2=(e=\"\")=>[...new Set(e.split(\"\").filter(e=>!o0.test(e)).map(e=>e.replace(\" \",\"SPACE\")))],o3=()=>V.OW(4,G.k),o4=({buttonHideAnimations:e,buttonLoading:t,password:r=\"\",config:n,isResettingPassword:i,onSubmit:a,onClose:s,onBack:l,onPasswordChange:c,onPasswordGenerate:d})=>{let[h,u]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1);(0,o.useEffect)(()=>{r&&!p&&g(!0)},[r]);let f=(0,o.useMemo)(()=>p?6>(r?.length||0)?\"Password must be at least 6 characters\":o1.test(r||\"\")?null:`Invalid characters used ( ${o2(r).join(\" \")} )`:null,[r,p]),y=(0,o.useMemo)(()=>f?{value:0,label:\"Weak\"}:function(e=\"\"){let t=function(e=\"\"){return(.3*function(e){if(e.length<8)return 0;let t=0;return oG.test(e)&&(t+=1),oK.test(e)&&(t+=1),oY.test(e)&&(t+=1),oJ.test(e)&&(t+=1),Math.max(0,Math.min(1,t/3))}(e)+q()(e)/95)/2}(e);return{value:t,label:t>.9?\"Strong\":t>.5?\"Medium\":\"Weak\"}}(r),[r,f]),w=(0,o.useMemo)(()=>!!(!r?.length||f),[f,r]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:s,closeable:\"user\"===n.initiatedBy,backFn:l}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(H.Z,{height:48,width:48,stroke:\"var(--privy-color-accent)\"}),(0,m.jsxs)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:[i?\"Reset\":\"Set\",\" your password\"]}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Select a strong, memorable password to secure your account.\"})]}),(0,m.jsxs)(oP,{children:[(0,m.jsx)(oS,{value:r,onChange:e=>c(e.target.value),placeholder:\"enter or generate a strong password\",type:h?\"password\":\"text\",style:{paddingRight:\"3.8rem\"}}),(0,m.jsxs)(oI,{style:{width:\"3.5rem\"},children:[h?(0,m.jsx)(oL,{onClick:()=>u(!1)}):(0,m.jsx)(oF,{onClick:()=>u(!0)}),(0,m.jsx)(oW,{onClick:d})]})]}),(0,m.jsx)(oU,{value:0===y.value?.01:y.value,label:y.label}),(0,m.jsx)(oj,{error:!!f,children:f||`Password Strength: ${p?y.label:\"--\"}`}),(0,m.jsxs)(o6,{children:[(0,m.jsx)(o5,{children:(0,m.jsxs)(oR,{children:[(0,m.jsxs)(oM,{children:[(0,m.jsx)(W.Z,{width:24,height:24,fill:\"var(--privy-color-accent)\"}),\"This password is used to secure your account.\"]}),(0,m.jsxs)(oM,{children:[(0,m.jsx)(W.Z,{width:24,height:24,fill:\"var(--privy-color-accent)\"}),\"Use it to log in on a new environment, like another browser or device.\"]})]})}),(0,m.jsx)(oE,{onClick:a,loading:t,disabled:w,hideAnimations:e,children:\"Continue\"})]})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},o5=(0,A.ZP)(oR)`\n  flex: 1;\n  padding-top: 1rem;\n`,o6=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n`,o7=({buttonHideAnimations:e,buttonLoading:t,appName:r,password:n,onSubmit:i,onBack:a})=>{let[s,l]=(0,o.useState)(!1),c=(0,o.useCallback)(()=>{l(!0),n&&navigator.clipboard.writeText(n)},[n]),d=(0,o.useCallback)(()=>{let e=document.createElement(\"a\"),t=r.toLowerCase().replace(/[^a-z\\s]/g,\"\").replace(/\\s/g,\"-\"),i=new Blob([o8(r,n)],{type:\"text/plain\"}),a=URL.createObjectURL(i);e.href=a,e.target=\"_blank\",e.download=`${t}-privy-wallet-recovery.txt`,document.body.appendChild(e),e.click(),setTimeout(()=>{e.remove(),URL.revokeObjectURL(a)},5e3)},[n]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:a,closeable:!1}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(U.Z,{height:48,width:48,stroke:\"var(--privy-color-background)\",fill:\"var(--privy-color-accent)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Save your password\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"For your security, this password cannot be reset, so keep it somewhere safe.\"})]}),(0,m.jsx)(oP,{centered:!0,children:(0,m.jsx)(oT,{children:n})}),(0,m.jsxs)(\"div\",{style:{display:\"flex\",margin:\"12px 0\",gap:\"12px\"},children:[(0,m.jsx)(oO,{onClick:c,children:s?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Y.Z,{style:{width:24,height:24},stroke:\"var(--privy-color-accent)\"}),\"Copied\"]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Q.Z,{style:{width:24,height:24},stroke:\"var(--privy-color-accent)\"}),\"Copy\"]})}),(0,m.jsxs)(oO,{onClick:d,children:[(0,m.jsx)(K.Z,{style:{width:24,height:24},stroke:\"var(--privy-color-accent)\"}),\"Download\"]})]})]}),(0,m.jsx)(oE,{onClick:i,loading:t,hideAnimations:e,children:\"Continue\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},o8=(e,t)=>`Your wallet recovery password for ${e} is\n\n${t}\n\nYou will need this password to access your ${e} wallet on a new device. Please keep it somewhere safe.`,o9=({error:e,onClose:t})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1}),(0,m.jsx)(ae,{}),e?(0,m.jsxs)(i6,{children:[(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Something went wrong\",description:e})]}):(0,m.jsxs)(i6,{children:[(0,m.jsx)(W.Z,{fill:\"var(--privy-color-success)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Success\"})]}),(0,m.jsx)(n3,{onClick:t,children:\"Close\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}),se=(e,t)=>{switch(e){case\"creating\":return\"back\"===t?e:\"saving\";case\"saving\":return\"back\"===t?\"creating\":\"confirming\";case\"confirming\":return\"back\"===t?\"saving\":\"finalizing\";case\"finalizing\":return\"back\"===t?\"confirming\":\"done\";default:return e}},st=()=>{let[e,t]=(0,o.useReducer)(se,\"creating\");return{send:t,state:e}},sr=({onSubmit:e,...t})=>{let{lastScreen:r,navigate:n}=ny(),{send:i,state:a}=st(),s=(0,o.useCallback)(async()=>{\"finalizing\"===a&&await e(),i(\"next\")},[a,i,e]);(0,o.useEffect)(()=>{let e;return\"done\"===a&&\"automatic\"===t.config.initiatedBy&&(e=setTimeout(()=>t.onClose?.(),1400)),()=>{e&&clearTimeout(e)}},[a,t.config.initiatedBy,t.onClose]);let l=(0,o.useCallback)(()=>{i(\"back\")},[i]),c=(0,o.useCallback)(()=>{n(\"EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN\")},[r,n]);return\"creating\"===a?(0,m.jsx)(o4,{...t,onSubmit:s,onBack:\"EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN\"===r?c:void 0}):\"saving\"===a?(0,m.jsx)(o7,{...t,onSubmit:s,onBack:l}):\"confirming\"===a?(0,m.jsx)(oD,{...t,onSubmit:s,onBack:l}):\"finalizing\"===a?(0,m.jsx)(oq,{...t,onSubmit:s,onBack:l}):\"done\"===a?(0,m.jsx)(o9,{...t,onSubmit:s}):null},sn=e=>{let t=(0,m.jsx)(U.Z,{height:38,width:38,stroke:\"var(--privy-color-error)\"});if(e instanceof eK)switch(e.privyErrorCode){case\"client_request_timeout\":return{title:\"Timed out\",detail:e.message,ctaText:\"Try again\",icon:t};case\"insufficient_balance\":return{title:\"Insufficient balance\",detail:e.message,ctaText:\"Try again\",icon:t};default:return{title:\"Something went wrong\",detail:\"Try again later\",ctaText:\"Try again\",icon:t}}else{if(e instanceof a6&&\"twilio_verification_failed\"===e.type)return{title:\"Something went wrong\",detail:e.message,ctaText:\"Try again\",icon:(0,m.jsx)(I.Z,{height:38,width:38,stroke:\"var(--privy-color-error)\"})};if(!(e instanceof eV))return e instanceof eG&&422===e.status?{title:\"Something went wrong\",detail:e.message,ctaText:\"Try again\",icon:t}:{title:\"Something went wrong\",detail:\"Try again later\",ctaText:\"Try again\",icon:t};switch(e.privyErrorCode){case\"invalid_captcha\":return{title:\"Something went wrong\",detail:\"Please try again.\",ctaText:\"Try again\",icon:t};case\"disallowed_login_method\":return{title:\"Not allowed\",detail:e.message,ctaText:\"Try another method\",icon:t};case\"allowlist_rejected\":return{title:\"You don't have access to this app\",detail:\"Have you been invited?\",ctaText:\"Try another account\",icon:(0,m.jsx)(iJ,{style:{width:\"38px\",height:\"38px\",strokeWidth:\"1\",stroke:\"var(--privy-color-accent)\",fill:\"var(--privy-color-accent)\"}})};case\"captcha_failure\":return{title:\"Something went wrong\",detail:\"You did not pass CAPTCHA. Please try again.\",ctaText:\"Try again\",icon:(0,m.jsx)(\"span\",{})};case\"captcha_timeout\":return{title:\"Something went wrong\",detail:\"Something went wrong! Please try again later.\",ctaText:\"Try again\",icon:(0,m.jsx)(\"span\",{})};case\"linked_to_another_user\":return{title:\"Authentication failed\",detail:\"This account has already been linked to another user.\",ctaText:\"Try again\",icon:t};case\"not_supported\":return{title:\"This region is not supported\",detail:\"SMS authentication from this region is not available\",ctaText:\"Try another method\",icon:t};case\"too_many_requests\":return{title:\"Request failed\",detail:\"Too many attempts.\",ctaText:\"Try again later\",icon:t};default:return{title:\"Something went wrong\",detail:\"Try again later\",ctaText:\"Try again\",icon:t}}}},si=({error:e,backFn:t,onClick:r})=>{let{reset:n}=nF(),i=sn(e);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:t}),(0,m.jsxs)(sa,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iX,{color:\"var(--privy-color-error)\"}),i.icon]})}),(0,m.jsxs)(so,{children:[(0,m.jsx)(\"h3\",{children:i.title}),(0,m.jsx)(\"p\",{children:i.detail})]}),(0,m.jsx)(n3,{color:\"var(--privy-color-error)\",onClick:()=>{e instanceof eV&&\"invalid_captcha\"===e.privyErrorCode&&n(),r?.()},children:i.ctaText})]})]})},sa=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-bottom: 16px;\n`,so=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,ss=({style:e,color:t,...r})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:\"1.5\",stroke:t||\"currentColor\",style:{height:\"1.5rem\",width:\"1.5rem\",...e},...r,children:(0,m.jsx)(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M4.5 12.75l6 6 9-13.5\"})}),sl=({color:e,...t})=>(0,m.jsx)(\"svg\",{version:\"1.1\",id:\"Layer_1\",xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",x:\"0px\",y:\"0px\",viewBox:\"0 0 115.77 122.88\",xmlSpace:\"preserve\",...t,children:(0,m.jsx)(\"g\",{children:(0,m.jsx)(\"path\",{fill:e||\"currentColor\",className:\"st0\",d:\"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z\"})})}),sc=e=>{let[t,r]=(0,o.useState)(!1);return(0,m.jsxs)(sd,{color:e.color,onClick:()=>{r(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>r(!1),1500)},justCopied:t,children:[t?(0,m.jsx)(ss,{style:{height:\"14px\",width:\"14px\"},strokeWidth:\"2\"}):(0,m.jsx)(sl,{style:{height:\"14px\",width:\"14px\"}}),t?\"Copied\":\"Copy\",\" \",e.itemName?e.itemName:\"to Clipboard\"]})},sd=A.ZP.button`\n  display: flex;\n  align-items: center;\n  gap: 6px;\n\n  && {\n    margin: 8px 2px;\n    font-size: 14px;\n    color: ${e=>e.justCopied?\"var(--privy-color-foreground)\":e.color||\"var(--privy-color-foreground-3)\"};\n    font-weight: ${e=>e.justCopied?\"medium\":\"normal\"};\n    transition: color 350ms ease;\n\n    :focus,\n    :active {\n      background-color: transparent;\n      border: none;\n      outline: none;\n      box-shadow: none;\n    }\n\n    :hover {\n      color: ${e=>e.justCopied?\"var(--privy-color-foreground)\":\"var(--privy-color-foreground-2)\"};\n    }\n\n    :active {\n      color: 'var(--privy-color-foreground)';\n      font-weight: medium;\n    }\n\n    @media (max-width: 440px) {\n      margin: 12px 2px;\n    }\n  }\n\n  svg {\n    width: 14px;\n    height: 14px;\n  }\n`,sh=e=>{let[t,r]=(0,o.useState)(!1);return(0,m.jsx)(su,{color:e.color,href:e.url,target:\"_blank\",rel:\"noreferrer noopener\",onClick:()=>{r(!0),setTimeout(()=>r(!1),1500)},justOpened:t,children:e.text})},su=A.ZP.a`\n  display: flex;\n  align-items: center;\n  gap: 6px;\n\n  && {\n    margin: 8px 2px;\n    font-size: 14px;\n    color: ${e=>e.justOpened?\"var(--privy-color-foreground)\":e.color||\"var(--privy-color-foreground-3)\"};\n    font-weight: ${e=>e.justOpened?\"medium\":\"normal\"};\n    transition: color 350ms ease;\n\n    :focus,\n    :active {\n      background-color: transparent;\n      border: none;\n      outline: none;\n      box-shadow: none;\n    }\n\n    :hover {\n      color: ${e=>e.justOpened?\"var(--privy-color-foreground)\":\"var(--privy-color-foreground-2)\"};\n    }\n\n    :active {\n      color: 'var(--privy-color-foreground)';\n      font-weight: medium;\n    }\n\n    @media (max-width: 440px) {\n      margin: 12px 2px;\n    }\n  }\n\n  svg {\n    width: 14px;\n    height: 14px;\n  }\n`,sp=()=>(0,m.jsx)(\"svg\",{width:\"200\",height:\"200\",viewBox:\"-77 -77 200 200\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"28px\",width:\"28px\"},children:(0,m.jsx)(\"rect\",{width:\"50\",height:\"50\",fill:\"black\",rx:10,ry:10})}),sm=(e,t,r,n,i)=>{for(let a=t;a<t+n;a++)for(let t=r;t<r+i;t++){let r=e?.[t];r&&r[a]&&(r[a]=0)}return e},sg=(e,t)=>{let r=ee.create(e,{errorCorrectionLevel:t}).modules,n=tp(Array.from(r.data),r.size);return n=sm(n,0,0,7,7),n=sm(n,n.length-7,0,7,7),n=sm(n,0,n.length-7,7,7)},sf=({x:e,y:t,cellSize:r,bgColor:n,fgColor:i})=>(0,m.jsx)(m.Fragment,{children:[0,1,2].map(a=>(0,m.jsx)(\"circle\",{r:r*(7-2*a)/2,cx:e+7*r/2,cy:t+7*r/2,fill:a%2!=0?n:i},`finder-${e}-${t}-${a}`))}),sy=({cellSize:e,matrixSize:t,bgColor:r,fgColor:n})=>{let i=[[0,0],[(t-7)*e,0],[0,(t-7)*e]];return(0,m.jsx)(m.Fragment,{children:i.map(([t,i])=>(0,m.jsx)(sf,{x:t,y:i,cellSize:e,bgColor:r,fgColor:n},`finder-${t}-${i}`))})},sw=({matrix:e,cellSize:t,color:r})=>(0,m.jsx)(m.Fragment,{children:e.map((e,n)=>e.map((e,i)=>e?(0,m.jsx)(\"rect\",{height:t-.4,width:t-.4,x:n*t+.1*t,y:i*t+.1*t,rx:.5*t,ry:.5*t,fill:r},`cell-${n}-${i}`):(0,m.jsx)(o.Fragment,{},`circle-${n}-${i}`)))}),sx=({cellSize:e,matrixSize:t,element:r,sizePercentage:n,bgColor:i})=>{if(!r)return(0,m.jsx)(m.Fragment,{});let a=t*(n||.14),o=Math.floor(t/2-a/2),s=Math.floor(t/2+a/2);(s-o)%2!=t%2&&(s+=1);let l=(s-o)*e,c=l-.2*l,d=o*e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(\"rect\",{x:o*e,y:o*e,width:l,height:l,fill:i}),(0,m.jsx)(r,{x:d+.1*l,y:d+.1*l,height:c,width:c})]})},sv=e=>{let t=e.outputSize,r=sg(e.url,e.errorCorrectionLevel),n=t/r.length,i=function(e,{min:t,max:r}){return Math.min(Math.max(e,t),r)}(2*n,{min:.025*t,max:.036*t});return(0,m.jsxs)(\"svg\",{height:e.outputSize,width:e.outputSize,viewBox:`0 0 ${e.outputSize} ${e.outputSize}`,style:{height:\"100%\",width:\"100%\",padding:`${i}px`},children:[(0,m.jsx)(sw,{matrix:r,cellSize:n,color:e.fgColor}),(0,m.jsx)(sy,{cellSize:n,matrixSize:r.length,fgColor:e.fgColor,bgColor:e.bgColor}),(0,m.jsx)(sx,{cellSize:n,element:e.logo?.element,bgColor:e.bgColor,matrixSize:r.length})]})},sC=A.ZP.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: ${e=>`${e.size}px`};\n  width: ${e=>`${e.size}px`};\n  margin: auto;\n  background-color: ${e=>e.bgColor};\n\n  && {\n    border-width: 2px;\n    border-color: ${e=>e.borderColor};\n    border-radius: var(--privy-border-radius-md);\n  }\n`,sb=e=>{let{appearance:t}=nh(),r=e.bgColor||\"#FFFFFF\",n=e.fgColor||\"#000000\",i=e.size||160,a=\"dark\"===t.palette.colorScheme?r:n;return(0,m.jsx)(sC,{size:i,bgColor:r,fgColor:n,borderColor:a,children:(0,m.jsx)(sv,{url:e.url,logo:{element:e.squareLogoElement??sp},outputSize:i,bgColor:r,fgColor:n,errorCorrectionLevel:e.errorCorrectionLevel||\"Q\"})})},s_=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"1000\",height:\"1000\",viewBox:\"0 0 1000 1000\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"24px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"1000\",height:\"1000\",rx:\"200\",fill:\"#855DCD\"}),(0,m.jsx)(\"path\",{d:\"M257.778 155.556H742.222V844.444H671.111V528.889H670.414C662.554 441.677 589.258 373.333 500 373.333C410.742 373.333 337.446 441.677 329.586 528.889H328.889V844.444H257.778V155.556Z\",fill:\"white\"}),(0,m.jsx)(\"path\",{d:\"M128.889 253.333L157.778 351.111H182.222V746.667C169.949 746.667 160 756.616 160 768.889V795.556H155.556C143.283 795.556 133.333 805.505 133.333 817.778V844.444H382.222V817.778C382.222 805.505 372.273 795.556 360 795.556H355.556V768.889C355.556 756.616 345.606 746.667 333.333 746.667H306.667V253.333H128.889Z\",fill:\"white\"}),(0,m.jsx)(\"path\",{d:\"M675.556 746.667C663.283 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.556V817.778C875.556 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.556Z\",fill:\"white\"})]}),sj=\"#8a63d2\",sk=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,sE=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,sA=\"#8a63d2\",sS=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,sT=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`;function sP({title:e}){let{currentScreen:t,navigateBack:r,navigate:n,data:i}=ny(),a;return a=\"FUNDING_MANUAL_TRANSFER_SCREEN\"===t?r:t===i?.funding?.methodScreen?i.funding.comingFromSendTransactionScreen?()=>n(\"EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN\"):void 0:i?.funding?.methodScreen?()=>n(i.funding.methodScreen):void 0,(0,m.jsx)(il,{title:e,backFn:a})}var sN=()=>(0,m.jsx)(sR,{children:(0,m.jsxs)(sM,{children:[(0,m.jsx)(sO,{}),(0,m.jsx)(sI,{})]})}),sR=A.ZP.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-grow: 1;\n\n  @media all and (display-mode: standalone) {\n    margin-bottom: 30px;\n  }\n`,sM=A.ZP.div`\n  position: relative;\n  height: 96px;\n  width: 96px;\n\n  opacity: 1;\n  animation: fadein 200ms ease;\n`,sO=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 96px;\n  height: 96px;\n\n  && {\n    border: 4px solid #f1f2f9;\n    border-radius: 50%;\n  }\n`,sI=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 96px;\n  height: 96px;\n  animation: spin 1200ms linear infinite;\n\n  && {\n    border: 4px solid;\n    border-color: #cbcde1 transparent transparent transparent;\n    border-radius: 50%;\n  }\n\n  @keyframes spin {\n    from {\n      transform: rotate(0deg);\n    }\n    to {\n      transform: rotate(360deg);\n    }\n  }\n`,sW=A.ZP.span`\n  display: flex;\n  flex-direction: column;\n  gap: 0.35rem;\n  width: 100%;\n`,sL=A.ZP.span`\n  display: flex;\n  width: 100%;\n  justify-content: space-between;\n`,sF=A.ZP.span`\n  color: var(--privy-color-foreground);\n  font-size: 0.875rem;\n  font-weight: 500;\n  line-height: 1.375rem; /* 157.143% */\n\n  ${a_}\n`;async function sU(e,t,r,n,i,a){!function(e){for(let t of[\"gasLimit\",\"gasPrice\",\"value\",\"maxPriorityFeePerGas\",\"maxFeePerGas\"]){let r=e[t];if(!(typeof r>\"u\")&&!function(e){let t=\"number\"==typeof e,r=\"bigint\"==typeof e,n=\"string\"==typeof e&&/^-?0x[a-f0-9]+$/i.test(e);return t||r||n}(r))throw Error(`Transaction request property '${t}' must be a valid number, bigint, or hex string representing a quantity`)}if(\"number\"!=typeof e.chainId)throw Error(\"Transaction request property 'chainId' must be a number\")}(n=Object.assign({chainId:t0},n));let o=(await r.rpc({address:t,accessToken:e,requesterAppId:a,request:{method:\"eth_signTransaction\",params:[n]}})).response.data;return await i.sendTransaction(o)}async function sD(e,t,r,n){let i=await n.getBalance(e),a=t.value||0,o=!i.sub((0,en.uq)(a)).sub(r).isNegative();return{balance:i,hasSufficientFunds:o}}function sZ(e){return{to:e.to,from:e.from,contractAddress:e.contractAddress,transactionIndex:e.transactionIndex,root:e.root,logsBloom:e.logsBloom,blockHash:e.blockHash,transactionHash:e.transactionHash,logs:e.logs,blockNumber:e.blockNumber,confirmations:e.confirmations,byzantium:e.byzantium,type:e.type,status:e.status,gasUsed:e.gasUsed.toHexString(),cumulativeGasUsed:e.cumulativeGasUsed.toHexString(),effectiveGasPrice:e.effectiveGasPrice?e.effectiveGasPrice.toHexString():void 0}}var sz=e=>{let{showFiatPrices:t,getUsdTokenPrice:r,chains:n}=nZ(),[i,a]=(0,o.useState)(!0),[s,l]=(0,o.useState)(void 0),[c,d]=(0,o.useState)(void 0);return(0,o.useEffect)(()=>{let i=e.chainId||t0,o=n.find(e=>e.id===Number(i));if(!o)throw new eQ(`Unsupported chain: ${i}`);(async()=>{if(!t){a(!1);return}try{a(!0);let e=await r(o);e?d(e):l(Error(`Unable to fetch token price on chain id ${o.id}`))}catch(e){l(e)}finally{a(!1)}})()},[e.chainId]),{tokenPrice:c,isTokenPriceLoading:i,tokenPriceError:s}},s$=(0,o.createContext)(null);function sH(){let e=(0,o.useContext)(s$);if(null===e)throw Error(\"`useWallets` was called outside the PrivyProvider component\");return e}function sB(e){let t=new RegExp(/^eip155:(?<chainId>\\d+)$/gm).exec(e)?.groups?.chainId;if(t)return parseInt(t);throw Error(\"Chain ID not compatible with CAIP-2 format.\")}var sq=new Intl.NumberFormat(void 0,{style:\"currency\",currency:\"USD\",maximumFractionDigits:2}),sV=e=>sq.format(e),sG=(e,t)=>{let r=sV(t*parseFloat(e));return\"$0.00\"!==r?r:\"<$0.01\"},sK=(e,t)=>{let r=sV(t*parseFloat((0,et.dF)(e)));return\"$0.00\"===r?\"<$0.01\":r},sY=(e,t,r=6,n=!1)=>{let i=parseFloat((0,et.dF)(e)).toFixed(r).replace(/0+$/,\"\").replace(/\\.$/,\"\");return n?`${i} ${t}`:`${\"0\"===i?\"<0.001\":i} ${t}`},sQ=e=>e.map(en.uq).reduce((e,t)=>e.add(t),ei.O$.from(0)).toHexString(),sX=(e,t)=>{let{chains:r}=nZ(),n=`https://etherscan.io/address/${t}`,i=`${tj(e,r)}/address/${t}`;if(!i)return n;try{new URL(i)}catch{return n}return i},sJ=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 4px;\n`;async function s0({api:e,requesterAppId:t,providerAppId:r}){let n=(await e.get(`/api/v1/apps/${t}/cross-app/connections`)).connections.find(e=>e.provider_app_id===r);if(!n)throw new eK(\"Invalid connected app\");return{name:n.provider_app_name,logoUrl:n.provider_app_icon_url||void 0,apiUrl:n.provider_app_custom_api_url,readOnly:n.read_only}}async function s1({api:e,appId:t}){let r=t4(),n=t4(),i=await t5(r);try{let{url:a}=await e.post(e7,{provider:`privy:${t}`,redirect_to:window.location.href,code_challenge:i,state_code:n});return{url:a,stateCode:n,codeVerifier:r}}catch(e){throw eX(e)}}async function s2({api:e,appId:t,stateCode:r,codeVerifier:n,authorizationCode:i}){if(!i||!r)throw new eK(\"[Cross-App AuthFlow] Authorization and state codes code must be set prior to calling authenicate.\");if(\"undefined\"===i)throw new eK(\"User denied confirmation during cross-app auth flow\");try{return(await e.post(e8,{authorization_code:i,state_code:r,code_verifier:n,provider:`privy:${t}`})).oauth_tokens?.access_token}catch(t){let e=eX(t);throw e.privyErrorCode?new eK(e.message||\"Invalid code during cross-app auth flow.\",void 0,e.privyErrorCode):\"User denied confirmation during cross-app auth flow\"===e.message?new eK(\"Invalid code during cross-app auth flow.\",void 0,\"oauth_user_denied\"):new eK(\"Invalid code during cross-app auth flow.\",void 0,\"unknown_auth_error\")}}var s3=async({user:e,address:t,client:r,request:n,requesterAppId:i,reconnect:a})=>{r.createAnalyticsEvent({eventName:\"cross_app_request_started\",payload:{address:t,method:n.method}});let o=e?.linkedAccounts.find(e=>!!(\"cross_app\"===e.type&&e.embeddedWallets.find(e=>e.address===t)));if(!e||!o)throw r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Cannot request a signature with this wallet address\",address:t}}),new eK(\"Cannot request a signature with this wallet address\");let s=r.getProviderAccessToken(o.providerApp.id),l=await s0({api:r.api,requesterAppId:i,providerAppId:o.providerApp.id});if(!s){if(l.readOnly)throw console.error(\"cannot transact against a read-only provider app\"),new eK(\"Cannot transact against a read-only provider app\");await a({appId:o.providerApp.id})&&(s=r.getProviderAccessToken(o.providerApp.id))}if(!s)throw r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Transactions require a valid token\",address:t}}),new eK(\"Transactions require a valid token\");let c=window.open(void 0,void 0,s5({w:400,h:680}));if(!c)throw r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Missing token\",address:t}}),new eK(\"Failed to initialize signature request\");let d=new URL(`${l.apiUrl}/oauth/transact`);return d.searchParams.set(\"token\",s||\"\"),d.searchParams.set(\"request\",s4(n)),c.location=d.href,new Promise((e,i)=>{let a=setTimeout(()=>{d(),i(new eK(\"Request timeout\")),r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Request timeout\",address:t}})},12e4),s=setInterval(()=>{c.closed&&(d(),i(new eK(\"User rejected request\")),r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"User rejected request\",address:t}}))},300),l=a=>{a.data&&(a.data.token?.action===\"set\"&&a.data.token?.value!==void 0?r.storeProviderAccessToken(o.providerApp.id,a.data.token.value):a.data.token?.action===\"clear\"&&r.storeProviderAccessToken(o.providerApp.id,null),\"PRIVY_CROSS_APP_ACTION_RESPONSE\"===a.data.type&&a.data.result&&(d(),e(a.data.result),r.createAnalyticsEvent({eventName:\"cross_app_request_success\",payload:{address:t,method:n.method}})),\"PRIVY_CROSS_APP_ACTION_ERROR\"===a.data.type&&a.data.error&&(d(),i(a.data.error),r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:a.data.error,address:t}})))};window.addEventListener(\"message\",l);let d=()=>{c.close(),clearInterval(s),clearTimeout(a),window.removeEventListener(\"message\",l)}})},s4=e=>JSON.stringify({content:{request:{request:e}},timestamp:Date.now(),callbackUrl:window.origin}),s5=({w:e,h:t})=>{let r=void 0!==window.screenLeft?window.screenLeft:window.screenX,n=void 0!==window.screenTop?window.screenTop:window.screenY,i=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,a=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,o=i/window.screen.availWidth,s=a/window.screen.availHeight;return`toolbar=0,location=0,menubar=0,height=${t},width=${e},popup=1,left=${(i-e)/2/o+r},top=${(a-t)/2/s+n}`},s6=\"sdk_fiat_on_ramp_completed_with_status\",s7={1:\"ethereum\",8453:\"base\",10:\"optimism\",137:\"polygon\",42161:\"arbitrum\"},s8=e=>!!s7[e],s9=({input:e,amount:t,blockchain:r})=>{let n=new URL(\"https://pay.coinbase.com/buy/select-asset\");return n.searchParams.set(\"appId\",e.app_id),n.searchParams.set(\"sessionToken\",e.session_token),n.searchParams.set(\"defaultExperience\",\"buy\"),n.searchParams.set(\"presetCryptoAmount\",t),n.searchParams.set(\"defaultNetwork\",r),n.searchParams.set(\"partnerUserId\",e.partner_user_id),{url:n}},le=Math.floor(160),lt=e=>e?{title:\"You've funded your account!\",body:\"It may take a few minutes for the assets to appear.\",cta:\"Continue\"}:{title:\"In Progress\",body:\"Go back to Coinbase Onramp to finish funding your account.\",cta:\"\"},lr=({isSucccess:e,onClickCta:t})=>{let{title:r,body:n,cta:i}=(0,o.useMemo)(()=>lt(e),[e]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(ls,{children:[(0,m.jsx)(la,{isSucccess:e}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:r}),(0,m.jsx)(lo,{children:n})]})]}),i&&(0,m.jsx)(n3,{onClick:t,children:i})]})},ln=e=>e?\"var(--privy-color-success)\":\"var(--privy-color-foreground-4)\",li=e=>e?W.Z:()=>(0,m.jsx)(ea.Z,{width:\"3rem\",height:\"3rem\",style:{backgroundColor:\"var(--privy-color-foreground-4)\",color:\"var(--privy-color-background)\",borderRadius:\"100%\",padding:\"0.5rem\",margin:\"0.5rem\"}}),la=({isSucccess:e})=>{if(!e){let e=\"var(--privy-color-foreground-4)\";return(0,m.jsxs)(\"div\",{style:{position:\"relative\"},children:[(0,m.jsx)(nX,{color:e,style:{position:\"absolute\"}}),(0,m.jsx)(nJ,{color:e}),(0,m.jsx)(rT,{style:{position:\"absolute\",width:\"2.8rem\",height:\"2.8rem\",top:\"1.2rem\",left:\"1.2rem\"}})]})}let t=li(e),r=ln(e);return(0,m.jsx)(\"div\",{style:{borderColor:r,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:\"100%\",borderWidth:2,padding:\"0.5rem\",marginBottom:\"0.5rem\"},children:t&&(0,m.jsx)(t,{width:\"4rem\",height:\"4rem\",color:r})})},lo=A.ZP.p`\n  font-size: 1rem;\n  color: var(--privy-color-foreground-3);\n  margin-bottom: 1rem;\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n`,ls=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 1.75rem;\n  margin-right: 1.75rem;\n  padding: 2rem 0;\n`,ll=({children:e})=>(0,m.jsxs)(lc,{children:[(0,m.jsx)(U.Z,{width:\"3rem\",color:\"var(--privy-color-error)\"}),e]}),lc=A.ZP.div`\n  display: flex;\n  gap: 0.5rem;\n  background-color: var(--privy-color-error-light);\n\n  align-items: flex-start;\n  text-align: left;\n  padding: 0.5rem 0.75rem;\n\n  font-size: 0.75rem;\n  font-weight: 400;\n  line-height: 1.125rem; /* 150% */\n\n  padding: 0.5rem 0.75rem;\n\n  && {\n    border: 1px solid var(--privy-color-error);\n    border-radius: var(--privy-border-radius-sm);\n  }\n`,ld=({size:e=61,...t})=>(0,m.jsx)(\"svg\",{width:e,height:e,viewBox:\"0 0 61 61\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...t,children:(0,m.jsxs)(\"g\",{id:\"moonpay_symbol_wht 2\",children:[(0,m.jsx)(\"rect\",{x:\"1.3374\",y:\"1\",width:\"59\",height:\"59\",rx:\"11.5\",fill:\"#7715F5\"}),(0,m.jsx)(\"path\",{id:\"Vector\",d:\"M43.8884 23.3258C45.0203 23.3258 46.1268 22.9901 47.068 22.3613C48.0091 21.7324 48.7427 20.8386 49.1759 19.7928C49.6091 18.747 49.7224 17.5962 49.5016 16.4861C49.2807 15.3759 48.7357 14.3561 47.9353 13.5557C47.1349 12.7553 46.1151 12.2102 45.0049 11.9893C43.8947 11.7685 42.7439 11.8819 41.6982 12.3151C40.6524 12.7482 39.7585 13.4818 39.1297 14.423C38.5008 15.3641 38.1651 16.4707 38.1651 17.6026C38.165 18.3542 38.3131 19.0985 38.6007 19.7929C38.8883 20.4873 39.3098 21.1182 39.8413 21.6496C40.3728 22.1811 41.0037 22.6027 41.6981 22.8903C42.3925 23.1778 43.1367 23.3259 43.8884 23.3258ZM26.3395 49.1017C23.5804 49.1017 20.8832 48.2836 18.5891 46.7507C16.295 45.2178 14.5069 43.039 13.4511 40.49C12.3952 37.9409 12.1189 35.1359 12.6572 32.4298C13.1955 29.7237 14.5241 27.238 16.4751 25.287C18.4262 23.336 20.9118 22.0074 23.6179 21.4691C26.324 20.9308 29.129 21.2071 31.6781 22.2629C34.2272 23.3189 36.406 25.1069 37.9389 27.401C39.4717 29.6952 40.2899 32.3923 40.2899 35.1514C40.2899 36.9835 39.9291 38.7975 39.2281 40.49C38.527 42.1826 37.4994 43.7205 36.204 45.0159C34.9086 46.3113 33.3707 47.3389 31.6781 48.04C29.9856 48.741 28.1715 49.1018 26.3395 49.1017Z\",fill:\"white\"})]})}),lh=({style:e,...t})=>(0,m.jsx)(\"svg\",{x:0,y:0,width:\"65\",height:\"64\",viewBox:\"0 0 65 64\",style:{height:\"64px\",width:\"65px\",...e},fill:\"currentColor\",xmlns:\"http://www.w3.org/2000/svg\",...t,children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M3.71369 17.5625V10.375C3.71369 6.44625 6.85845 3.25 10.7238 3.25H17.7953C18.6783 3.25 19.3941 2.52244 19.3941 1.625C19.3941 0.727562 18.6783 0 17.7953 0H10.7238C5.09529 0 0.516113 4.65419 0.516113 10.375V17.5625C0.516113 18.4599 1.23194 19.1875 2.1149 19.1875C2.99787 19.1875 3.71369 18.4599 3.71369 17.5625ZM17.7953 60.7501C18.6783 60.7501 19.3941 61.4777 19.3941 62.3751C19.3941 63.2726 18.6783 64.0001 17.7953 64.0001H10.7238C5.09529 64.0001 0.516113 59.3459 0.516113 53.6251V46.4376C0.516113 45.5402 1.23194 44.8126 2.1149 44.8126C2.99787 44.8126 3.71369 45.5402 3.71369 46.4376V53.6251C3.71369 57.5538 6.85845 60.7501 10.7238 60.7501H17.7953ZM63.4839 46.4376V53.6251C63.4839 59.3459 58.9048 64.0001 53.2763 64.0001H46.2047C45.3217 64.0001 44.6059 63.2726 44.6059 62.3751C44.6059 61.4777 45.3217 60.7501 46.2047 60.7501H53.2763C57.1416 60.7501 60.2864 57.5538 60.2864 53.6251V46.4376C60.2864 45.5402 61.0022 44.8126 61.8851 44.8126C62.7681 44.8126 63.4839 45.5402 63.4839 46.4376ZM63.4839 10.375V17.5625C63.4839 18.4599 62.7681 19.1875 61.8851 19.1875C61.0022 19.1875 60.2864 18.4599 60.2864 17.5625V10.375C60.2864 6.44625 57.1416 3.25 53.2763 3.25H46.2047C45.3217 3.25 44.6059 2.52244 44.6059 1.625C44.6059 0.727562 45.3217 0 46.2047 0H53.2763C58.9048 0 63.4839 4.65419 63.4839 10.375ZM43.0331 47.3022C43.7067 46.6698 43.7483 45.6022 43.1262 44.9176C42.5039 44.233 41.4536 44.1906 40.78 44.823C38.3832 47.0732 35.265 48.3125 31.9997 48.3125C28.7344 48.3125 25.6162 47.0732 23.2194 44.823C22.5457 44.1906 21.4955 44.233 20.8732 44.9176C20.251 45.6022 20.2927 46.6698 20.9663 47.3022C23.9784 50.1301 27.8968 51.6875 31.9997 51.6875C36.1026 51.6875 40.021 50.1301 43.0331 47.3022ZM35.3207 24.1249V36.1249C35.3207 38.5029 33.4173 40.4374 31.0777 40.4374H29.7249C28.8079 40.4374 28.0646 39.6819 28.0646 38.7499C28.0646 37.8179 28.8079 37.0624 29.7249 37.0624H31.0777C31.5863 37.0624 32.0001 36.6419 32.0001 36.1249V24.1249C32.0001 23.1929 32.7434 22.4374 33.6604 22.4374C34.5774 22.4374 35.3207 23.1929 35.3207 24.1249ZM46.7581 28.8437V24.0312C46.7581 23.151 46.056 22.4374 45.19 22.4374C44.324 22.4374 43.622 23.151 43.622 24.0312V28.8437C43.622 29.7239 44.324 30.4374 45.19 30.4374C46.056 30.4374 46.7581 29.7239 46.7581 28.8437ZM17.6109 28.8437C17.6109 29.7239 18.313 30.4374 19.1789 30.4374C20.0449 30.4374 20.747 29.7239 20.747 28.8437V24.0312C20.747 23.151 20.0449 22.4374 19.1789 22.4374C18.313 22.4374 17.6109 23.151 17.6109 24.0312V28.8437Z\"})}),lu=({style:e,...t})=>(0,m.jsxs)(\"svg\",{x:0,y:0,width:\"65\",height:\"64\",viewBox:\"0 0 65 64\",style:{height:\"64px\",width:\"65px\",...e},xmlns:\"http://www.w3.org/2000/svg\",...t,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_113_33841)\",children:[(0,m.jsx)(\"path\",{d:\"M39.1193 0.943398C34.636 -0.174912 29.9185 -0.334713 25.328 0.656273C24.9732 0.732859 24.7477 1.08253 24.8243 1.43729C24.9009 1.79205 25.2506 2.01756 25.6053 1.94097C30.0015 0.991934 34.53 1.14842 38.8375 2.22802C49.1385 4.80983 57.7129 12.5548 60.9786 22.6718C62.2416 26.5843 62.7781 30.7505 62.8855 35.1167C62.8945 35.4795 63.1958 35.7664 63.5586 35.7575C63.9215 35.7485 64.2083 35.4472 64.1994 35.0843C64.0905 30.6582 63.5477 26.3849 62.2536 22.3432C58.8621 11.7515 49.9005 3.63265 39.1193 0.943398Z\"}),(0,m.jsx)(\"path\",{d:\"M21.9931 2.93163C22.343 2.83511 22.5484 2.47325 22.4518 2.12339C22.3553 1.77352 21.9935 1.56815 21.6436 1.66466C16.8429 2.98903 10.0898 7.56519 5.91628 13.6786C5.91465 13.681 5.91304 13.6834 5.91145 13.6858C2.24684 19.2083 -0.0503572 26.1484 0.591012 32.8828C0.591623 32.8892 0.592328 32.8956 0.593127 32.902C0.746837 34.1317 1.00488 35.3591 1.26323 36.5879C1.80735 39.1761 2.35282 41.7706 1.92765 44.4064C1.86986 44.7647 2.11347 45.102 2.47177 45.1598C2.83007 45.2176 3.16738 44.974 3.22518 44.6157C3.66961 41.8605 3.11776 39.173 2.56581 36.4851C2.31054 35.2419 2.05525 33.9987 1.89847 32.7486C1.29525 26.3851 3.46802 19.7466 7.00418 14.416C11.0189 8.5373 17.5201 4.16562 21.9931 2.93163Z\"}),(0,m.jsx)(\"path\",{d:\"M30.6166 4.39985C38.8671 3.89603 47.1159 7.26314 52.6556 13.7139C52.8921 13.9893 52.8605 14.4042 52.5852 14.6406C52.3099 14.8771 51.895 14.8455 51.6585 14.5702C46.3904 8.43576 38.541 5.23144 30.6927 5.71195C30.6899 5.71212 30.6871 5.71227 30.6843 5.71241C20.7592 6.19265 11.4643 12.9257 8.04547 22.3603C7.92183 22.7016 7.54498 22.8779 7.20375 22.7543C6.86253 22.6306 6.68616 22.2538 6.80981 21.9126C10.4114 11.9735 20.1717 4.90702 30.6166 4.39985Z\"}),(0,m.jsx)(\"path\",{d:\"M54.6576 16.5848C54.4553 16.2836 54.047 16.2033 53.7457 16.4057C53.4444 16.608 53.3642 17.0163 53.5665 17.3176C56.6376 21.8904 57.9074 26.8665 58.4094 32.7717C58.4401 33.1333 58.7582 33.4016 59.1199 33.3708C59.4815 33.3401 59.7497 33.022 59.719 32.6604C59.206 26.6261 57.8965 21.4076 54.6576 16.5848Z\"}),(0,m.jsx)(\"path\",{d:\"M59.2796 35.4504C59.6419 35.4277 59.9539 35.703 59.9765 36.0653C60.2242 40.0279 60.2265 44.5112 59.7881 47.8243C59.7405 48.1841 59.4102 48.4372 59.0504 48.3896C58.6906 48.342 58.4376 48.0117 58.4852 47.6519C58.9077 44.4586 58.91 40.0704 58.6648 36.1473C58.6421 35.785 58.9174 35.473 59.2796 35.4504Z\"}),(0,m.jsx)(\"path\",{d:\"M7.05311 25.5432C7.13829 25.1904 6.92135 24.8354 6.56855 24.7502C6.21576 24.665 5.86071 24.882 5.77553 25.2348C5.2932 27.2325 5.0428 29.2847 5.03288 31.3388C5.02266 33.4559 5.41742 35.5225 5.81234 37.5899C6.1354 39.2811 6.45855 40.9728 6.5602 42.6932C6.69373 44.9531 6.21839 47.2163 5.39698 49.3703C5.26766 49.7094 5.43774 50.0891 5.77685 50.2184C6.11596 50.3477 6.4957 50.1777 6.62502 49.8386C7.49325 47.5617 8.01954 45.1092 7.87221 42.6157C7.77126 40.9071 7.44813 39.2252 7.12512 37.5439C6.73099 35.4925 6.33704 33.442 6.34716 31.3451C6.35659 29.3933 6.59455 27.4425 7.05311 25.5432Z\"}),(0,m.jsx)(\"path\",{d:\"M24.2964 10.94C24.4317 11.2768 24.2683 11.6595 23.9315 11.7947C17.1187 14.5307 12.0027 20.7047 10.959 27.9852C10.523 31.0269 10.9941 34.0398 11.465 37.052C11.7303 38.7483 11.9954 40.4443 12.0985 42.1451C12.3221 45.833 11.902 49.8839 9.50192 53.5696C9.30387 53.8737 8.89677 53.9597 8.59264 53.7617C8.28851 53.5636 8.20251 53.1565 8.40056 52.8524C10.5873 49.4944 11.0012 45.7644 10.7867 42.2246C10.6821 40.499 10.4185 38.7833 10.1552 37.0686C9.68265 33.9923 9.21067 30.9195 9.65804 27.7987C10.7724 20.025 16.221 13.4748 23.4417 10.5751C23.7785 10.4399 24.1612 10.6032 24.2964 10.94Z\"}),(0,m.jsx)(\"path\",{d:\"M47.3662 14.6814C41.9915 9.64741 34.2017 7.89046 27.122 9.4433C26.7675 9.52105 26.5432 9.87147 26.6209 10.226C26.6987 10.5805 27.0491 10.8048 27.4036 10.7271C34.1075 9.25665 41.4426 10.934 46.4677 15.6406C50.7033 19.6077 53.1628 25.38 53.8066 31.6779C53.8435 32.0389 54.1661 32.3017 54.5272 32.2648C54.8883 32.2279 55.151 31.9053 55.1141 31.5442C54.4456 25.0047 51.8822 18.9111 47.3662 14.6814Z\"}),(0,m.jsx)(\"path\",{d:\"M54.9766 34.6738C55.3376 34.6368 55.6604 34.8994 55.6975 35.2604C56.3216 41.337 56.0526 47.9003 55.1104 54.2496C55.0571 54.6086 54.7229 54.8565 54.3639 54.8032C54.0049 54.7499 53.7571 54.4157 53.8103 54.0567C54.7394 47.7957 55.001 41.3439 54.39 35.3947C54.353 35.0336 54.6156 34.7109 54.9766 34.6738Z\"}),(0,m.jsx)(\"path\",{d:\"M32.0659 13.3553C21.9959 13.3553 13.814 21.3892 13.814 31.3219C13.814 32.3829 13.9081 33.4225 14.0876 34.4334C14.1511 34.7907 14.4922 35.029 14.8495 34.9655C15.2069 34.9021 15.4451 34.561 15.3817 34.2036C15.2155 33.2677 15.1283 32.305 15.1283 31.3219C15.1283 22.1352 22.7014 14.6696 32.0659 14.6696C36.2978 14.6696 40.1642 16.1949 43.1319 18.7152C43.4086 18.9501 43.8233 18.9163 44.0582 18.6396C44.2931 18.363 44.2593 17.9483 43.9827 17.7134C40.7847 14.9975 36.6188 13.3553 32.0659 13.3553Z\"}),(0,m.jsx)(\"path\",{d:\"M45.455 20.1635C45.717 19.9123 46.133 19.921 46.3842 20.183C49.2843 23.2072 50.2126 27.9605 50.8269 31.9494C51.5188 36.4426 51.6244 40.826 51.6244 42.8585C51.6244 43.2214 51.3302 43.5156 50.9673 43.5156C50.6044 43.5156 50.3101 43.2214 50.3101 42.8585C50.3101 40.8589 50.2055 36.5497 49.5279 32.1494C48.9577 28.4462 48.1356 23.9082 45.4356 21.0927C45.1844 20.8307 45.1931 20.4147 45.455 20.1635Z\"}),(0,m.jsx)(\"path\",{d:\"M51.4576 46.6219C51.4864 46.2601 51.2165 45.9435 50.8547 45.9146C50.493 45.8858 50.1763 46.1557 50.1474 46.5175C49.8247 50.5654 49.403 54.6088 48.5474 58.3439C48.4663 58.6977 48.6874 59.0502 49.0412 59.1312C49.3949 59.2123 49.7474 58.9912 49.8285 58.6374C50.7067 54.8039 51.134 50.6806 51.4576 46.6219Z\"}),(0,m.jsx)(\"path\",{d:\"M15.1454 36.852C15.5015 36.7819 15.847 37.0137 15.9171 37.3698C17.3066 44.4257 16.3467 50.8355 12.6672 56.4502C12.4682 56.7537 12.0609 56.8385 11.7573 56.6396C11.4538 56.4407 11.369 56.0333 11.5679 55.7298C15.0299 50.4469 15.9617 44.3985 14.6276 37.6238C14.5575 37.2677 14.7893 36.9221 15.1454 36.852Z\"}),(0,m.jsx)(\"path\",{d:\"M32.0659 17.631C25.5291 17.631 19.1165 22.691 18.462 29.0504C18.1754 31.8345 18.578 34.5769 18.9807 37.3204C19.3323 39.7159 19.684 42.1124 19.5772 44.5381C19.3328 50.0898 17.7039 54.6726 14.905 58.4471C14.6888 58.7386 14.7499 59.1502 15.0414 59.3663C15.333 59.5825 15.7445 59.5214 15.9607 59.2299C18.9293 55.2266 20.6354 50.386 20.8903 44.5959C20.9966 42.1811 20.6438 39.7923 20.2912 37.4051C19.888 34.6752 19.4851 31.9473 19.7694 29.1849C20.3444 23.5983 26.0946 18.9453 32.0659 18.9453C34.851 18.9453 42.057 20.4534 44.3492 27.9205C45.7856 32.5998 46.1774 38.9326 45.8295 45.0849C45.4816 51.2364 44.3994 57.12 42.9442 60.8928C42.8136 61.2314 42.9822 61.6118 43.3208 61.7424C43.6594 61.873 44.0398 61.7044 44.1704 61.3658C45.6929 57.4186 46.7895 51.386 47.1417 45.1591C47.4938 38.9329 47.1068 32.4249 45.6056 27.5348C43.0612 19.2461 35.0851 17.631 32.0659 17.631Z\"}),(0,m.jsx)(\"path\",{d:\"M21.9529 56.4512C22.2569 56.6494 22.3426 57.0566 22.1444 57.3606C21.7369 57.9854 21.3784 58.6391 21.0199 59.2928C20.6614 59.9465 20.3028 60.6004 19.8953 61.2253C19.697 61.5293 19.2898 61.615 18.9858 61.4167C18.6819 61.2184 18.5962 60.8113 18.7944 60.5073C19.2019 59.8825 19.5604 59.2288 19.9189 58.5751C20.2774 57.9213 20.636 57.2675 21.0435 56.6426C21.2418 56.3386 21.649 56.2529 21.9529 56.4512Z\"}),(0,m.jsx)(\"path\",{d:\"M27.5799 24.4525C27.8816 24.2508 27.9625 23.8426 27.7608 23.541C27.559 23.2393 27.1509 23.1583 26.8492 23.3601C24.247 25.1006 22.6505 27.494 22.6505 31.0002C22.6505 33.088 23.0203 34.7946 23.3997 36.5449C23.9674 39.1641 24.3524 41.7777 24.2832 44.468C24.1992 47.7349 23.56 50.7201 22.3313 53.564C22.1873 53.8971 22.3407 54.2839 22.6739 54.4278C23.0071 54.5718 23.3938 54.4184 23.5378 54.0852C24.8369 51.0784 25.509 47.9266 25.5971 44.5018C25.6689 41.7062 25.2732 38.9892 24.6845 36.267C24.3042 34.509 23.9648 32.9394 23.9648 31.0002C23.9648 27.9961 25.2863 25.9866 27.5799 24.4525Z\"}),(0,m.jsx)(\"path\",{d:\"M30.1447 22.1436C32.8717 21.5877 35.8061 22.2746 37.966 24.0228C41.8241 27.1455 42.3372 32.8403 42.753 37.4549L42.7742 37.69C43.3115 43.6385 42.6964 49.4163 41.4575 55.2186C41.3817 55.5736 41.0326 55.7999 40.6776 55.7241C40.3227 55.6483 40.0964 55.2991 40.1722 54.9442C41.3926 49.2288 41.9873 43.5885 41.4652 37.8082C41.4479 37.6169 41.4307 37.4228 41.4133 37.2264L41.4131 37.2235C41.0438 33.0534 40.5812 27.8304 37.1392 25.0444C35.2926 23.5498 32.7599 22.9518 30.4073 23.4314C30.0517 23.5039 29.7046 23.2744 29.6321 22.9188C29.5596 22.5632 29.7891 22.2161 30.1447 22.1436Z\"}),(0,m.jsx)(\"path\",{d:\"M40.5287 58.4885C40.6183 58.1368 40.4057 57.7791 40.054 57.6896C39.7023 57.6 39.3446 57.8126 39.2551 58.1643C38.8578 59.7247 38.2456 61.1333 37.4695 62.4301C37.2831 62.7415 37.3844 63.145 37.6958 63.3314C38.0072 63.5178 38.4108 63.4165 38.5972 63.1051C39.4336 61.7075 40.0977 60.1816 40.5287 58.4885Z\"}),(0,m.jsx)(\"path\",{d:\"M37.3152 48.9521C37.6756 48.9948 37.9332 49.3215 37.8906 49.682C37.2699 54.9267 35.8688 59.6042 33.6205 63.6613C33.4446 63.9787 33.0446 64.0934 32.7272 63.9175C32.4097 63.7416 32.295 63.3417 32.4709 63.0242C34.6226 59.1416 35.9811 54.6339 36.5854 49.5275C36.6281 49.1671 36.9548 48.9095 37.3152 48.9521Z\"}),(0,m.jsx)(\"path\",{d:\"M37.1798 30.6556C36.7242 28.2212 34.6349 26.3591 32.0985 26.3591C28.6638 26.3591 26.254 29.8212 27.1032 33.0422C28.54 38.7279 28.7759 44.2077 27.8032 49.4855L27.8025 49.4893C26.9584 54.228 25.3374 58.4908 23.1263 62.1031C22.9368 62.4127 23.0342 62.8172 23.3437 63.0067C23.6533 63.1962 24.0578 63.0988 24.2473 62.7893C26.5488 59.0292 28.2249 54.6109 29.0961 49.7218C30.106 44.2403 29.8558 38.5684 28.3765 32.7168L28.3748 32.7099C27.7378 30.3005 29.5133 27.6734 32.0985 27.6734C33.9641 27.6734 35.5393 29.0459 35.8871 30.8929C36.8436 36.4411 37.3418 41.5862 36.9871 46.016C36.9581 46.3778 37.2279 46.6945 37.5897 46.7235C37.9515 46.7525 38.2682 46.4827 38.2972 46.1209C38.6649 41.5294 38.1459 36.2576 37.1815 30.6648C37.1809 30.6617 37.1804 30.6586 37.1798 30.6556Z\"}),(0,m.jsx)(\"path\",{d:\"M30.1376 59.1171C30.4604 59.283 30.5876 59.6792 30.4217 60.002L28.6804 63.3906C28.5145 63.7134 28.1184 63.8406 27.7956 63.6747C27.4728 63.5088 27.3456 63.1127 27.5114 62.7899L29.2527 59.4013C29.4186 59.0785 29.8147 58.9513 30.1376 59.1171Z\"}),(0,m.jsx)(\"path\",{d:\"M32.5872 31.2892C32.5042 30.9359 32.1505 30.7168 31.7972 30.7998C31.4439 30.8828 31.2247 31.2365 31.3077 31.5898C33.5238 41.0232 33.2194 49.3066 30.5201 56.363C30.3905 56.702 30.5602 57.0819 30.8991 57.2115C31.2381 57.3412 31.618 57.1715 31.7477 56.8326C34.5622 49.475 34.8483 40.9141 32.5872 31.2892Z\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_113_33841\",children:(0,m.jsx)(\"rect\",{width:\"64\",height:\"64\",fill:\"white\",transform:\"translate(0.483887)\"})})})]}),lp=({passkeys:e,expanded:t,onUnlink:r,onExpand:n})=>{let[i,a]=(0,o.useState)([]),s=t?e.length:2,l=e=>e.authenticatorName?e.createdWithBrowser?`${e.authenticatorName} on ${e.createdWithBrowser}`:e.authenticatorName:e.createdWithBrowser?e.createdWithOs?`${e.createdWithBrowser} on ${e.createdWithOs}`:`${e.createdWithBrowser}`:\"Unknown device\",c=async e=>{a(t=>t.concat([e])),await r(e),a(t=>t.filter(t=>t!==e))};return(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(l_,{children:\"Your passkeys\"}),(0,m.jsxs)(lx,{children:[e.slice(0,s).map(e=>(0,m.jsxs)(lE,{children:[(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(lj,{children:l(e)}),(0,m.jsxs)(lk,{children:[\"Last used: \",(e.latestVerifiedAt??e.verifiedAt).toLocaleString()]})]}),(0,m.jsx)(lS,{disabled:i.includes(e.credentialId),onClick:()=>c(e.credentialId),children:i.includes(e.credentialId)?(0,m.jsx)(n0,{}):(0,m.jsx)(el.Z,{height:\"1.6em\"})})]},e.credentialId)),e.length>2&&!t&&(0,m.jsx)(lw,{onClick:n,children:\"View all\"})]})]})},lm=()=>(0,m.jsxs)(lx,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(ec.Z,{})}),\"Log in with Touch ID, Face ID, or a security key.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(J.Z,{})}),\"More secure than a password.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(es.Z,{})}),\"Takes seconds to set up and use.\"]})]}),lg=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 180px;\n  height: 90px;\n  border-radius: 50%;\n  svg + svg {\n    margin-left: 12px;\n  }\n  > svg {\n    z-index: 2;\n    color: var(--privy-color-accent) !important;\n    stroke: var(--privy-color-accent) !important;\n    fill: var(--privy-color-accent) !important;\n  }\n`,lf=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: ${e=>e.success?\"var(--privy-color-success)\":e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  display: flex;\n  justify-content: flex-beginngin;\n  width: 100%;\n`,ly=(0,A.iv)`\n  && {\n    width: 100%;\n    font-size: 0.875rem;\n    line-height: 1rem;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    justify-content: center;\n\n    padding: 6px 8px;\n    background-color: var(--privy-color-background);\n    transition: background-color 200ms ease;\n    color: var(--privy-color-accent) !important;\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n`,lw=A.ZP.button`\n  ${ly}\n`,lx=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 0.8rem;\n  padding: 0.5rem 0rem 0rem;\n  flex-grow: 1;\n  width: 100%;\n`,lv=A.ZP.div`\n  font-size: 18px;\n  line-height: 18px;\n  text-align: center;\n  font-weight: 600;\n`,lC=A.ZP.div`\n  font-size: 0.875rem;\n  text-align: center;\n  margin-top: 10px;\n`,lb=A.ZP.div`\n  height: 32px;\n`,l_=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 1em;\n  font-weight: 450;\n  display: flex;\n  justify-content: flex-beginning;\n  width: 100%;\n`,lj=A.ZP.div`\n  font-size: 1em;\n  line-height: 1.3em;\n  font-weight: 500;\n  color: var(--privy-color-foreground-2);\n  padding: 0.2em 0;\n`,lk=A.ZP.div`\n  font-size: 0.875rem;\n  line-height: 1rem;\n  color: #64668b;\n  padding: 0.2em 0;\n`,lE=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 1em;\n  gap: 10px;\n  font-size: 0.875rem;\n  line-height: 1rem;\n  text-align: left;\n  border-radius: 8px;\n  border: 1px solid #e2e3f0 !important;\n  width: 100%;\n  height: 5em;\n`,lA=(0,A.iv)`\n  :focus,\n  :hover,\n  :active {\n    outline: none;\n  }\n  display: flex;\n  width: 2em;\n  height: 2em;\n  justify-content: center;\n  align-items: center;\n  svg {\n    color: var(--privy-color-error);\n  }\n  svg:hover {\n    color: var(--privy-color-foreground-3);\n  }\n`,lS=A.ZP.button`\n  ${lA}\n`,lT=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  padding-top: 24px;\n  padding-bottom: 24px;\n`,lP=A.ZP.div`\n  width: 24px;\n  height: 24px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  svg {\n    border-radius: var(--privy-border-radius-sm);\n  }\n`,lN=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: 8px;\n`,lR=A.ZP.div`\n  display: flex;\n  align-items: baseline;\n  gap: 4px;\n`,lM=A.ZP.div`\n  font-size: 42px !important;\n`,lO=A.ZP.input`\n  font-size: 42px !important;\n  text-align: right;\n  background-color: var(--privy-color-background);\n\n  // HACK: The only way this is centerable is to set a content-based width.\n  // The --funding-input-length is updated via the component.\n  // Note that 'ch' has 98.25% global browser adoption\n  width: calc(1ch * var(--funding-input-length));\n\n  &:focus {\n    outline: none !important;\n    border: none !important;\n    box-shadow: none !important;\n  }\n`,lI=A.ZP.div`\n  cursor: pointer;\n  padding-left: 4px;\n`,lW=A.ZP.div`\n  font-size: 18px;\n`,lL=A.ZP.div`\n  font-size: 12px;\n  color: var(--privy-color-foreground-3);\n  // we need this container to maintain a static height if there's no content\n  height: 20px;\n`,lF=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  line-height: 22px;\n  font-size: 16px;\n  text-align: center;\n  svg {\n    margin-right: 6px;\n    margin: auto;\n  }\n`,lU=(0,A.ZP)(lw)`\n  margin-top: 16px;\n`,lD=(0,A.F4)`\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n`,lZ=(0,A.ZP)(ie)`\n  border-radius: var(--privy-border-radius-md) !important;\n  animation: ${lD} 0.3s ease-in-out;\n`,lz=A.ZP.span`\n  text-align: left;\n  font-size: 0.75rem;\n  font-weight: 500;\n  line-height: 1.125rem; /* 150% */\n\n  color: var(--privy-color-error);\n`,l$=A.ZP.span`\n  color: var(--privy-color-foreground-3);\n  font-size: 0.75rem;\n  font-weight: 500;\n  line-height: 1.125rem; /* 150% */\n`,lH=({address:e,showCopyIcon:t,url:r,className:n})=>r?(0,m.jsx)(\"a\",{title:e,className:n,href:`${r}/address/${e}`,target:\"_blank\",children:tm(e)}):(0,m.jsxs)(\"button\",{title:e,className:n,onClick:()=>navigator.clipboard.writeText(e).catch(console.error),children:[tm(e),t&&(0,m.jsx)(lB,{})]}),lB=(0,A.ZP)(D.Z)`\n  && {\n    display: inline;\n  }\n  stroke-width: 2;\n  height: 0.875rem;\n  width: 0.875rem;\n  margin-left: 0.125rem;\n  color: var(--privy-color-foreground-3);\n`,lq=({errMsg:e,balance:t,address:r,isLoading:n,className:i,title:a,isPulsing:o,statusColor:s=\"green\"})=>{let l;return l=s||(e?\"red\":\"green\"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(lV,{className:i,$state:e?\"error\":void 0,children:[(0,m.jsxs)(oc,{children:[(0,m.jsx)(l$,{children:a||\"Pay with\"}),(0,m.jsx)(lH,{address:r,showCopyIcon:!!e})]}),(0,m.jsx)(aj,{isLoading:n,isPulsing:o,color:l,children:t})]}),e&&(0,m.jsx)(lz,{style:{marginTop:\"0.25rem\"},children:e})]})},lV=A.ZP.div`\n  && {\n    border-width: 1px;\n  }\n\n  text-align: left;\n  border: solid 1px var(--privy-color-foreground-4);\n  border-radius: var(--privy-border-radius-md);\n  padding: 0.5rem 1rem;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n\n  ${e=>\"error\"===e.$state?\"border-color: var(--privy-color-error);\":\"\"}\n`,lG=({...e})=>(0,m.jsx)(rG,{color:\"black\",...e}),lK=e=>{let[t,r]=(0,o.useState)(!1);return(0,m.jsx)(l1,{onClick:()=>{r(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>r(!1),1500)},children:(0,m.jsxs)(l0,{children:[t?(0,m.jsx)(ss,{style:{height:\"16px\",width:\"16px\"},strokeWidth:\"2\"}):(0,m.jsx)(Q.Z,{style:{height:\"16px\",width:\"16px\"}}),t?\"Copied\":\"Copy address\"]})})},lY=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  gap: 8px;\n`,lQ=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  padding: 8px;\n  background-color: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  svg {\n    margin-right: 12px;\n  }\n`,lX=A.ZP.div`\n    line-height: 20px;\n    font-size: 18px\n    text-align: center;\n`,lJ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  background-color: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  svg {\n    margin-right: 6px;\n  }\n  padding: 16px;\n  gap: 8px;\n`,l0=A.ZP.span`\n  display: flex;\n  align-items: center;\n  margin: auto;\n`,l1=A.ZP.button`\n  display: flex;\n  align-items: center;\n  width: 100%;\n\n  && {\n    border-radius: var(--privy-border-radius-md);\n    border: 1px solid var(--privy-color-foreground-4);\n    background-color: white;\n    line-height: 18px;\n    text-align: center;\n    padding: 8px;\n    font-size: 14px;\n    background-color: var(--privy-color-background);\n    color: ${e=>e.justCopied?\"var(--privy-color-foreground-2)\":\"var(--privy-color-foreground-accent-dark)\"};\n    font-weight: ${e=>e.justCopied?\"medium\":\"normal\"};\n    transition: color 350ms ease;\n\n    :active {\n      outline: none;\n      box-shadow: none;\n    }\n\n    :hover {\n      color: ${e=>e.justCopied?\"var(--privy-color-foreground-2)\":\"var(--privy-color-foreground-accent-dark)\"};\n    }\n\n    :active {\n      color: 'var(--privy-color-foreground-accent-dark)';\n      font-weight: medium;\n    }\n  }\n\n  svg {\n    width: 18px;\n    height: 18px;\n  }\n`,l2=({title:e,desc:t,icon:r})=>(0,m.jsxs)(l9,{children:[(0,m.jsx)(ct,{children:r}),(0,m.jsxs)(ce,{children:[(0,m.jsx)(l7,{children:e}),(0,m.jsx)(l8,{children:t})]})]}),l3=({app:e,signedUrl:t,onContinue:r})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(l5,{children:[(0,m.jsx)(ld,{size:\"3.75rem\"}),(0,m.jsxs)(l6,{children:[e?.name,\" uses \",(0,m.jsx)(\"span\",{style:{fontWeight:\"bold\"},children:\"Moonpay\"}),\" to fund your account\"]}),(0,m.jsxs)(cr,{children:[(0,m.jsx)(l2,{icon:(0,m.jsx)(eu.Z,{width:\"1rem\"}),title:\"Purchase assets to fund your account\",desc:(0,m.jsxs)(m.Fragment,{children:[\"Connect a payment method (\",(0,m.jsx)(\"strong\",{children:\"debit card recommended\"}),\") to purchase digital assets.\"]})}),(0,m.jsx)(l2,{icon:(0,m.jsx)(es.Z,{width:\"1rem\"}),title:\"Compliance takes time\",desc:\"Funding a new account may take a few hours. You'll be good to go thereafter.\"}),(0,m.jsx)(l2,{icon:(0,m.jsx)($.Z,{width:\"1rem\"}),title:\"Your data belongs to you\",desc:\"MoonPay does not sell your data and will only use it with your permission.\"})]}),(0,m.jsx)(cn,{className:\"mobile-only\"})]}),(0,m.jsx)(l4,{children:\"By clicking continue, you will be taken to MoonPay in a new tab.\"}),(0,m.jsx)(n6,{disabled:!t,href:t??\"#\",target:\"_blank\",rel:\"noopener noreferrer\",onClick:r,children:\"Continue to Moonpay\"})]}),l4=A.ZP.span`\n  display: inline-block;\n  color: var(--privy-color-foreground-3);\n  text-align: center;\n  font-size: 0.625rem;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 140%; /* 0.875rem */\n  margin-bottom: 0.25rem;\n`,l5=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  padding: 1.5rem 0;\n`,l6=A.ZP.span`\n  color: var(--privy-color-foreground);\n  text-align: center;\n  font-size: 1.125rem;\n  font-weight: 500;\n  line-height: 1.25rem; /* 111.111% */\n  margin: 1.5rem 0;\n  text-align: center;\n  max-width: 19.5rem;\n`,l7=A.ZP.span`\n  color: var(--privy-color-foreground);\n  font-size: 0.875rem;\n  font-weight: 500;\n  line-height: 1.225rem;\n  width: 100%;\n`,l8=A.ZP.span`\n  color: var(--privy-color-foreground-2);\n  font-size: 0.875rem;\n  font-weight: 400;\n  line-height: 1.225rem;\n`,l9=A.ZP.div`\n  display: flex;\n  align-items: flex-start;\n  gap: 0.5rem;\n  align-self: stretch;\n`,ce=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 0.25rem;\n  align-items: flex-start;\n  text-align: left;\n  flex: 1 0 0;\n`,ct=A.ZP.div`\n  padding-top: 2px;\n`,cr=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 1.25rem;\n  margin: 0 0.5rem;\n`,cn=A.ZP.div`\n  margin: 30px 0;\n`,ci=\"moonpay\";function ca(e){return!!e&&(void 0!==e.chain||void 0!==e.amount)}async function co(e,t,r,n,i=!1){let a=r.currencyCode?{}:{defaultCurrencyCode:\"ETH_ETHEREUM\"},o=r.uiConfig||{accentColor:n.accent,theme:n.colorScheme};return e.signMoonpayOnRampUrl({address:t,useSandbox:i,config:{...r,...a,...o}})}async function cs(e,t){return(0,_.Wg)(`https://api.moonpay.com/v1/transactions/ext/${e}`,{query:{apiKey:t?\"pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI\":\"pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL\"}})}var cl=e=>{switch(e){case\"completed\":return{title:\"You've funded your account!\",body:\"It may take a few minutes for the assets to appear.\",cta:\"Continue\"};case\"waitingAuthorization\":return{title:\"Processing payment\",body:\"This may take up to a few hours. You will receive an email when the purchase is complete.\",cta:\"Continue\"};default:return{title:\"In Progress\",body:\"Go back to MoonPay to finish funding your account.\",cta:\"\"}}},cc=({status:e,onClickCta:t})=>{let{title:r,body:n,cta:i}=(0,o.useMemo)(()=>cl(e),[e]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(cm,{children:[(0,m.jsx)(cu,{status:e}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:r}),(0,m.jsx)(cp,{children:n})]})]}),i&&(0,m.jsx)(n3,{onClick:t,children:i})]})},cd=e=>e?({completed:\"var(--privy-color-success)\",failed:\"var(--privy-color-error)\",serviceFailure:\"var(--privy-color-error)\",waitingAuthorization:\"var(--privy-color-accent)\",pending:\"var(--privy-color-foreground-4)\"})[e]:\"var(--privy-color-foreground-4)\",ch=e=>{switch(e){case\"completed\":return W.Z;case\"waitingAuthorization\":return()=>(0,m.jsx)(ea.Z,{width:\"3rem\",height:\"3rem\",style:{backgroundColor:\"var(--privy-color-foreground-4)\",color:\"var(--privy-color-background)\",borderRadius:\"100%\",padding:\"0.5rem\",margin:\"0.5rem\"}});default:return}},cu=({status:e})=>{if(!e||\"pending\"===e){let e=\"var(--privy-color-foreground-4)\";return(0,m.jsxs)(\"div\",{style:{position:\"relative\"},children:[(0,m.jsx)(nX,{color:e,style:{position:\"absolute\"}}),(0,m.jsx)(nJ,{color:e}),(0,m.jsx)(ld,{size:\"3rem\",style:{position:\"absolute\",top:\"1rem\",left:\"1rem\"}})]})}let t=ch(e),r=cd(e);return(0,m.jsx)(\"div\",{style:{borderColor:r,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:\"100%\",borderWidth:2,padding:\"0.5rem\",marginBottom:\"0.5rem\"},children:t&&(0,m.jsx)(t,{width:\"4rem\",height:\"4rem\",color:r})})},cp=A.ZP.p`\n  font-size: 1rem;\n  color: var(--privy-color-foreground-3);\n  margin-bottom: 1rem;\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n`,cm=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 1.75rem;\n  margin-right: 1.75rem;\n  padding: 2rem 0;\n`,cg=A.ZP.span`\n  margin-top: 4px;\n  color: var(--privy-color-foreground);\n  text-align: center;\n\n  font-size: 0.875rem;\n  font-weight: 400;\n  line-height: 1.375rem; /* 157.143% */\n`,cf=()=>{let{enabled:e,token:t}=nF(),{navigate:r,setModalData:n}=ny(),{initLoginWithPasskey:i}=nZ();return(0,m.jsx)(cw,{onClick:async()=>{e&&!t?(n({captchaModalData:{callback:e=>i(e),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSKEY_SYSTEM_DIALOGUE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),r(\"CAPTCHA_SCREEN\")):(await i(),r(\"AWAITING_PASSKEY_SYSTEM_DIALOGUE\"))},children:\"I have a passkey\"})},cy=(0,A.iv)`\n  && {\n    width: 100%;\n    font-size: 0.875rem;\n    line-height: 1rem;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    justify-content: center;\n\n    padding: 6px 8px;\n    background-color: var(--privy-color-background);\n    transition: background-color 200ms ease;\n    color: var(--privy-color-accent) !important;\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n`,cw=A.ZP.button`\n  ${cy}\n`,cx=({onClick:e,text:t})=>(0,m.jsxs)(i_,{onClick:e,children:[(0,m.jsx)(F.Z,{}),(0,m.jsx)(iy,{children:t}),(0,m.jsx)(ep.Z,{})]}),cv=A.ZP.div`\n  border-radius: 50%;\n  height: 68px;\n  width: 68px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--privy-color-accent);\n  color: white;\n  margin: 0 auto 24px auto;\n`,cC=({style:e,...t})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",width:\"17\",height:\"17\",viewBox:\"0 0 17 17\",style:{height:\"1.25rem\",width:\"1.25rem\",...e},...t,children:(0,m.jsx)(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M16.5 8.67993C16.5 9.82986 15.853 10.8287 14.9032 11.3322C15.2188 12.3599 14.97 13.5237 14.1569 14.3368C13.3437 15.1499 12.18 15.3987 11.1523 15.0831C10.6488 16.0329 9.64993 16.6799 8.5 16.6799C7.35007 16.6799 6.35126 16.0329 5.84771 15.0831C4.82003 15.3987 3.65627 15.1499 2.84314 14.3368C2.03001 13.5237 1.78124 12.3599 2.09681 11.3322C1.14699 10.8287 0.5 9.82986 0.5 8.67993C0.5 7.53 1.14699 6.53119 2.0968 6.02764C1.78125 4.99996 2.03003 3.83621 2.84315 3.02309C3.65627 2.20997 4.82002 1.96119 5.8477 2.27675C6.35125 1.32692 7.35007 0.679932 8.5 0.679932C9.64992 0.679932 10.6487 1.32691 11.1523 2.27672C12.18 1.96115 13.3437 2.20993 14.1569 3.02305C14.97 3.83618 15.2188 4.99996 14.9032 6.02764C15.853 6.53119 16.5 7.53 16.5 8.67993ZM12.2659 6.68856C12.5654 6.40238 12.5761 5.92763 12.29 5.62818C12.0038 5.32873 11.529 5.31797 11.2296 5.60416C9.73022 7.03711 8.40877 8.65489 7.3018 10.4211L5.78033 8.89963C5.48744 8.60673 5.01256 8.60673 4.71967 8.89963C4.42678 9.19252 4.42678 9.66739 4.71967 9.96029L6.92031 12.1609C7.08544 12.3261 7.31807 12.4048 7.54957 12.374C7.78106 12.3432 7.98499 12.2064 8.1012 12.0038C9.23027 10.0356 10.6362 8.24613 12.2659 6.68856Z\",fill:\"var(--privy-color-accent)\"})}),cb=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  gap: 4px;\n`,c_=A.ZP.div`\n  &&& {\n    margin-left: 7px; /* TODO: This is a total hack */\n    border-left: 2px solid var(--privy-color-foreground-4);\n    height: 12px;\n  }\n`,cj=({children:e})=>(0,m.jsxs)(ck,{children:[(0,m.jsx)(cC,{style:{width:\"16px\",height:\"16px\"}}),e]}),ck=A.ZP.div`\n  display: flex;\n  justify-content: flex-start;\n  justify-items: center;\n  text-align: left;\n  gap: 8px;\n\n  && {\n    a {\n      text-decoration: underline;\n      color: var(--privy-color-accent);\n    }\n\n    svg {\n      margin-top: auto;\n      margin-bottom: auto;\n    }\n  }\n`,cE=()=>(0,m.jsxs)(cA,{children:[(0,m.jsx)(aa,{title:\"Create a Phantom wallet\",description:\"Follow the instructions below to get started.\"}),(0,m.jsx)(i3,{children:(0,m.jsx)(rX,{style:{width:\"152px\",height:\"152px\"}})}),(0,m.jsxs)(cb,{children:[(0,m.jsx)(cj,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(\"span\",{children:\"Install the \"}),(0,m.jsx)(\"a\",{href:s.vU?\"https://addons.mozilla.org/en-US/firefox/addon/phantom-app/\":\"https://chrome.google.com/webstore/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa?hl=en\",target:\"_blank\",children:\"Phantom browser extension\"})]})}),(0,m.jsx)(c_,{}),(0,m.jsx)(cj,{children:\"Set up your first wallet\"}),(0,m.jsx)(c_,{}),(0,m.jsx)(cj,{children:\"Store your recovery phrase in a safe place!\"})]}),(0,m.jsx)(ie,{onClick:()=>window.location.reload(),children:\"Reload the page to use your wallet\"})]}),cA=(0,A.ZP)(i3)`\n  gap: 30px;\n\n  > :first-child > svg {\n    margin-top: 20px;\n  }\n`,cS={apple_oauth:\"apple\",custom_auth:\"custom\",discord_oauth:\"discord\",email:\"email\",farcaster:\"farcaster\",github_oauth:\"github\",google_oauth:\"google\",instagram_oauth:\"instagram\",linkedin_oauth:\"linkedin\",passkey:\"passkey\",phone:\"sms\",spotify_oauth:\"spotify\",telegram:\"telegram\",tiktok_oauth:\"tiktok\",twitter_oauth:\"twitter\",wallet:\"siwe\",cross_app:\"privy:\",guest:\"guest\"},cT=e=>{let t=cS[e];return\"wallet\"===e||\"phone\"===e?{displayName:e,loginMethod:t}:{displayName:t,loginMethod:t}},cP=()=>{let{app:e}=ny(),t=e?.appearance?.logo,r=`${e?.name} logo`,n={maxHeight:\"90px\",maxWidth:\"180px\"};return t?\"string\"==typeof t?(0,m.jsx)(\"img\",{src:t,alt:r,style:n}):\"svg\"===t.type||\"img\"===t.type?o.cloneElement(t,{alt:r,style:n}):(console.warn(\"`config.appearance.logo` must be a string, or an SVG / IMG element. Nothing will be rendered.\"),null):null},cN=e=>{let{app:t}=ny();return t?.appearance.logo?(0,m.jsx)(cR,{...e,children:(0,m.jsx)(cP,{})}):null},cR=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding: 24px 0;\n  flex-grow: 1;\n  justify-content: center;\n`,cM=(0,o.forwardRef)((e,t)=>{let[r,n]=(0,o.useState)(\"\"),[i,a]=(0,o.useState)(!1),{authenticated:s}=n$(),{initLoginWithEmail:l}=nZ(),{navigate:c,setModalData:d,currentScreen:h}=ny(),{enabled:u,token:p}=nF(),[g,f]=(0,o.useState)(!1),{accountType:y}=aW(),w=tu(r),x=i||!w,v=e=>{a(!0),l(r,e).then(()=>{c(\"AWAITING_PASSWORDLESS_CODE\")}).catch(e=>{d({errorModalData:{error:e,previousScreen:h||\"LANDING\"}}),c(\"ERROR_SCREEN\")}).finally(()=>{a(!1)})},C=()=>{!u||p||s?v(p):(d({captchaModalData:{callback:e=>l(r,e),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSWORDLESS_CODE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),c(\"CAPTCHA_SCREEN\"))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(cO,{children:(0,m.jsxs)(cI,{stacked:e.stacked,children:[(0,m.jsx)(O.Z,{}),(0,m.jsx)(\"input\",{ref:t,id:\"email-input\",type:\"email\",placeholder:\"your@email.com\",onFocus:()=>f(!0),onChange:e=>n(e.target.value),onKeyUp:e=>{\"Enter\"===e.key&&C()},value:r,autoComplete:\"email\"}),\"email\"!==y||g?e.stacked?(0,m.jsx)(\"span\",{}):(0,m.jsx)(it,{isSubmitting:i,onClick:C,disabled:x,children:\"Submit\"}):(0,m.jsx)(aj,{color:\"gray\",children:\"Recent\"})]})}),e.stacked?(0,m.jsx)(n3,{loadingText:null,loading:i,disabled:x,onClick:C,children:\"Submit\"}):null]})}),cO=A.ZP.div`\n  width: 100%;\n`,cI=A.ZP.label`\n  display: block;\n  position: relative;\n  width: 100%;\n\n  > svg {\n    position: absolute;\n    margin: 13px 17px;\n    height: 24px;\n    width: 24px;\n    color: var(--privy-color-foreground-3);\n  }\n\n  && > input {\n    font-size: 16px;\n    line-height: 24px;\n\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n\n    padding: 12px 88px 12px 52px;\n    padding-right: ${e=>e.stacked?\"16px\":\"88px\"};\n    flex-grow: 1;\n    background: var(--privy-color-background);\n    border: 1px solid var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-mdlg);\n    width: 100%;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      padding-right: 78px;\n    }\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n\n    :autofill,\n    :-webkit-autofill {\n      background: var(--privy-color-background);\n    }\n  }\n\n  && > :last-child {\n    right: 16px;\n    position: absolute;\n    top: 50%;\n    transform: translate(0, -50%);\n  }\n\n  && > button:last-child {\n    right: 0px;\n    line-height: 24px;\n    padding: 13px 17px;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n  }\n\n  && > input::placeholder {\n    color: var(--privy-color-foreground-3);\n  }\n`,cW=({isEditable:e,setIsEditable:t})=>{let r=(0,o.useRef)(null);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ik,{if:!e,children:(0,m.jsx)(cM,{ref:r})}),(0,m.jsx)(ik,{if:e,children:(0,m.jsxs)(i_,{onClick:()=>{t(),setTimeout(()=>{r.current?.focus()},0)},children:[(0,m.jsx)(O.Z,{}),\" Continue with Email\"]})})]})},cL=()=>{let[e,t]=(0,o.useState)(!1),{currentScreen:r,navigate:n,setModalData:i}=ny(),{enabled:a,token:s}=nF(),{initLoginWithFarcaster:l}=nZ(),{accountType:c}=aW();return(0,m.jsxs)(i_,{onClick:async()=>{t(!0);try{a&&!s?(i({captchaModalData:{callback:e=>l(e),userIntentRequired:!0,onSuccessNavigateTo:\"AWAITING_FARCASTER_CONNECTION\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),n(\"CAPTCHA_SCREEN\")):(await l(s),n(\"AWAITING_FARCASTER_CONNECTION\"))}catch(e){i({errorModalData:{error:e,previousScreen:r||\"LANDING\"}}),n(\"ERROR_SCREEN\")}finally{t(!1)}},disabled:!1,children:[(0,m.jsx)(s_,{}),\" Farcaster\",e&&(0,m.jsx)(\"span\",{children:(0,m.jsx)(n0,{})}),\"farcaster\"===c&&(0,m.jsx)(cF,{color:\"gray\",children:\"Recent\"})]})},cF=(0,A.ZP)(aj)`\n  margin-left: auto;\n`,cU=(e,t)=>(0,eg.t)(String(e),t),cD=(e,t)=>`+${(0,ef.G)(t)} ${e}`,cZ=e=>`*${e.replaceAll(\"-\",\"\").slice(-4)}`,cz=e=>new ey.R(e),c$=(0,ew.o)().map(e=>({code:e,callCode:(0,ef.G)(e)})),cH=e=>{let t=ex.L(e,em.Z)?.formatInternational();return t?.substring(t.indexOf(\" \")+1)},cB=({value:e,onChange:t})=>(0,m.jsx)(\"select\",{value:e,onChange:t,children:c$.map(e=>(0,m.jsxs)(\"option\",{value:e.code,children:[e.code,\" +\",e.callCode]},e.code))}),cq=(0,o.forwardRef)((e,t)=>{let{app:r}=ny(),[n,i]=(0,o.useState)(!1),{accountType:a}=aW(),[s,l]=(0,o.useState)(\"\"),[c,d]=(0,o.useState)(r?.intl.defaultCountry??\"US\"),h=cU(s,c),u=cz(c),p=cH(c),g=(0,ef.G)(c),f=!h,[y,w]=(0,o.useState)(!1),x=g.length,v=t=>{try{let r=t.replace(/\\D/g,\"\"),n=s.replace(/\\D/g,\"\"),i=r===n?t:u.input(t);l(i),e.onChange&&e.onChange({rawPhoneNumber:i,qualifiedPhoneNumber:cD(t,c),countryCode:c,isValid:cU(t,c)})}catch(e){console.error(\"Error processing phone number:\",e)}},C=()=>{w(!0);let t=cD(s,c);e.onSubmit({rawPhoneNumber:s,qualifiedPhoneNumber:t,countryCode:c,isValid:cU(s,c)}).finally(()=>w(!1))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(cV,{children:(0,m.jsxs)(cG,{callingCodeLength:x,stacked:e.stacked,children:[(0,m.jsx)(cB,{value:c,onChange:t=>{let r=t.target.value;d(r),l(\"\"),e.onChange&&e.onChange({rawPhoneNumber:s,qualifiedPhoneNumber:cD(s,r),countryCode:r,isValid:cU(s,c)})}}),(0,m.jsx)(\"input\",{ref:t,id:\"phone-number-input\",type:\"tel\",placeholder:p,onFocus:()=>i(!0),onChange:e=>{v(e.target.value)},onKeyUp:e=>{\"Enter\"===e.key&&C()},value:s,autoComplete:\"tel\"}),\"phone\"!==a||n||e.hideRecent?e.stacked||e.noIncludeSubmitButton?(0,m.jsx)(\"span\",{}):(0,m.jsx)(it,{isSubmitting:y,onClick:C,disabled:f,children:\"Submit\"}):(0,m.jsx)(aj,{color:\"gray\",children:\"Recent\"})]})}),e.stacked&&!e.noIncludeSubmitButton?(0,m.jsx)(n3,{loading:y,loadingText:null,onClick:C,disabled:f,children:\"Submit\"}):null]})}),cV=A.ZP.div`\n  width: 100%;\n`,cG=A.ZP.label`\n  --country-code-dropdown-width: calc(54px + calc(12 * ${e=>e.callingCodeLength}px));\n  --phone-input-extra-padding-left: calc(12px + calc(3 * ${e=>e.callingCodeLength}px));\n  display: block;\n  position: relative;\n  width: 100%;\n\n  /* Tablet and Up */\n  @media (min-width: 441px) {\n    --country-code-dropdown-width: calc(52px + calc(10 * ${e=>e.callingCodeLength}px));\n  }\n\n  && > select {\n    font-size: 16px;\n    height: 24px;\n    position: absolute;\n    margin: 13px calc(var(--country-code-dropdown-width) / 4);\n    line-height: 24px;\n    width: var(--country-code-dropdown-width);\n    background-color: var(--privy-color-background);\n    background-size: auto;\n    background-position-x: right;\n    cursor: pointer;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      width: var(--country-code-dropdown-width);\n    }\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n\n  && > input {\n    font-size: 16px;\n    line-height: 24px;\n\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n\n    width: calc(100% - var(--country-code-dropdown-width));\n\n    padding: 12px 88px 12px\n      calc(var(--country-code-dropdown-width) + var(--phone-input-extra-padding-left));\n    padding-right: ${e=>e.stacked?\"16px\":\"88px\"};\n    flex-grow: 1;\n    background: var(--privy-color-background);\n    border: 1px solid var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-mdlg);\n    width: 100%;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n\n    :autofill,\n    :-webkit-autofill {\n      background: var(--privy-color-background);\n    }\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      padding-right: 78px;\n    }\n  }\n\n  && > :last-child {\n    right: 16px;\n    position: absolute;\n    top: 50%;\n    transform: translate(0, -50%);\n  }\n\n  && > button:last-child {\n    right: 0px;\n    line-height: 24px;\n    padding: 13px 17px;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n  }\n\n  && > input::placeholder {\n    color: var(--privy-color-foreground-3);\n  }\n`,cK=({isEditable:e,setIsEditable:t})=>{let r=(0,o.useRef)(null),{authenticated:n}=n$(),{navigate:i,setModalData:a,currentScreen:s}=ny(),{initLoginWithSms:l}=nZ(),{enabled:c,token:d}=nF();async function h({qualifiedPhoneNumber:e}){if(!c||d||n)try{await l(e,d),i(\"AWAITING_PASSWORDLESS_CODE\")}catch(e){a({errorModalData:{error:e,previousScreen:s||\"LANDING\"}}),i(\"ERROR_SCREEN\")}else a({captchaModalData:{callback:t=>l(e,t),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSWORDLESS_CODE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),i(\"CAPTCHA_SCREEN\")}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ik,{if:!e,children:(0,m.jsx)(cq,{ref:r,onSubmit:h})}),(0,m.jsx)(ik,{if:e,children:(0,m.jsxs)(i_,{onClick:()=>{t(),setTimeout(()=>{r.current?.focus()},0)},children:[(0,m.jsx)(I.Z,{}),\" Continue with SMS\"]})})]})},cY={apple:{logo:(0,m.jsx)(t8,{}),displayName:\"Apple\"},discord:{logo:(0,m.jsx)(t9,{}),displayName:\"Discord\"},github:{logo:(0,m.jsx)(re,{}),displayName:\"GitHub\"},google:{logo:(0,m.jsx)(rr,{}),displayName:\"Google\"},linkedin:{logo:(0,m.jsx)(ri,{}),displayName:\"LinkedIn\"},spotify:{logo:(0,m.jsx)(ra,{}),displayName:\"Spotify\"},instagram:{logo:(0,m.jsx)(rn,{}),displayName:\"Instagram\"},twitter:{logo:(0,m.jsx)(rs,{}),displayName:\"Twitter\"},tiktok:{logo:(0,m.jsx)(ro,{}),displayName:\"TikTok\"}},cQ=({provider:e})=>{let{enabled:t,token:r}=nF(),{navigate:n,setModalData:i}=ny(),[a,s]=(0,o.useState)(!1),{initLoginWithOAuth:l}=nZ(),{accountType:c}=aW(),d=c?cT(c):null,{displayName:h,logo:u}=cY[e];return(0,m.jsxs)(i_,{onClick:()=>{s(!0),t&&!r?(i({captchaModalData:{callback:t=>l(e,t),userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:\"ERROR_SCREEN\"}}),n(\"CAPTCHA_SCREEN\")):l(e)},disabled:a,children:[u,\" \",h,d?.loginMethod===e&&(0,m.jsx)(cX,{color:\"gray\",children:\"Recent\"})]})},cX=(0,A.ZP)(aj)`\n  margin-left: auto;\n`;function cJ(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",viewBox:\"0 0 240 240\",...e,children:[(0,m.jsx)(\"defs\",{children:(0,m.jsxs)(\"linearGradient\",{x1:\"120\",y1:\"240\",x2:\"120\",gradientUnits:\"userSpaceOnUse\",id:\"telegram-linear-gradient\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#1d93d2\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#38b0e3\"})]})}),(0,m.jsx)(\"title\",{children:\"Telegram_logo\"}),(0,m.jsx)(\"circle\",{cx:\"120\",cy:\"120\",r:\"120\",fill:\"url(#telegram-linear-gradient)\"}),(0,m.jsx)(\"path\",{d:\"M81.229,128.772l14.237,39.406s1.78,3.687,3.686,3.687,30.255-29.492,30.255-29.492l31.525-60.89L81.737,118.6Z\",fill:\"#c8daea\"}),(0,m.jsx)(\"path\",{d:\"M100.106,138.878l-2.733,29.046s-1.144,8.9,7.754,0,17.415-15.763,17.415-15.763\",fill:\"#a9c6d8\"}),(0,m.jsx)(\"path\",{d:\"M81.486,130.178,52.2,120.636s-3.5-1.42-2.373-4.64c.232-.664.7-1.229,2.1-2.2,6.489-4.523,120.106-45.36,120.106-45.36s3.208-1.081,5.1-.362a2.766,2.766,0,0,1,1.885,2.055,9.357,9.357,0,0,1,.254,2.585c-.009.752-.1,1.449-.169,2.542-.692,11.165-21.4,94.493-21.4,94.493s-1.239,4.876-5.678,5.043A8.13,8.13,0,0,1,146.1,172.5c-8.711-7.493-38.819-27.727-45.472-32.177a1.27,1.27,0,0,1-.546-.9c-.093-.469.417-1.05.417-1.05s52.426-46.6,53.821-51.492c.108-.379-.3-.566-.848-.4-3.482,1.281-63.844,39.4-70.506,43.607A3.21,3.21,0,0,1,81.486,130.178Z\",fill:\"#fff\"})]})}var c0=()=>{let{enabled:e,token:t}=nF(),{navigate:r,setModalData:n}=ny(),[i,a]=(0,o.useState)(!1),{initLoginWithTelegram:s}=nZ(),{accountType:l}=aW();async function c(e){try{await s(e),r(\"TELEGRAM_AUTH_SCREEN\")}catch(e){console.error(e),a(!1)}}async function d(){if(a(!0),e&&!t){n({captchaModalData:{callback:c,userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:\"ERROR_SCREEN\"}}),r(\"CAPTCHA_SCREEN\");return}await c()}return(0,m.jsxs)(i_,{onClick:d,disabled:i,children:[(0,m.jsx)(cJ,{}),\"Telegram\",\"telegram\"===l&&(0,m.jsx)(c1,{color:\"gray\",children:\"Recent\"})]})},c1=(0,A.ZP)(aj)`\n  margin-left: auto;\n`,c2=({onClick:e,text:t,icon:r})=>(0,m.jsxs)(i_,{onClick:e,children:[r,(0,m.jsx)(iy,{children:t}),(0,m.jsx)(ep.Z,{})]}),c3=({connectOnly:e})=>{let{closePrivyModal:t,connectors:r}=nZ(),{app:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),{appearance:{palette:{colorScheme:a}}}=nh(),{accountType:l,walletClientType:c}=aW(),d=l?cT(l):null,h=n.loginMethodsAndOrder?.primary??[],u=n.loginMethodsAndOrder?.overflow??[],p=[...h,...u],g=n.loginMethods.passkey,f=[];c&&p.includes(c)?f.push(c):l&&p.includes(d?.loginMethod)&&f.push(d?.loginMethod);let[y,w]=(0,o.useState)(\"default\"),[x,v]=(0,o.useState)(\"phone\"===l?\"sms\":\"email\");(0,o.useEffect)(()=>{\"phone\"===l&&v(\"sms\");let e=p.indexOf(\"sms\"),t=p.indexOf(\"email\");e>-1&&e<t&&v(\"sms\")},[l,h,u]);let C=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{w(\"default\")},150)};i.current=C;let b=t=>\"email\"===t?(0,m.jsx)(cW,{isEditable:\"email\"===x,setIsEditable:()=>{v(\"email\")}},t):\"sms\"===t?(0,m.jsx)(cK,{isEditable:\"sms\"===x,setIsEditable:()=>{v(\"sms\")}},t):\"apple\"===t?(0,m.jsx)(cQ,{provider:\"apple\"},t):\"discord\"===t?(0,m.jsx)(cQ,{provider:\"discord\"},t):\"farcaster\"===t?(0,m.jsx)(cL,{},t):\"github\"===t?(0,m.jsx)(cQ,{provider:\"github\"},t):\"google\"===t?(0,m.jsx)(cQ,{provider:\"google\"},t):\"linkedin\"===t?(0,m.jsx)(cQ,{provider:\"linkedin\"},t):\"tiktok\"===t?(0,m.jsx)(cQ,{provider:\"tiktok\"},t):\"twitter\"===t&&(!s.tq||n?.loginConfig.twitterOAuthOnMobileEnabled)?(0,m.jsx)(cQ,{provider:\"twitter\"},t):\"telegram\"===t?(0,m.jsx)(c0,{},t):aB([t],r,e,p,n.externalWallets.walletConnect.enabled),_=f.flatMap(b),j=h.filter(e=>e!==c&&e!==d?.loginMethod).flatMap(b),k=u.filter(e=>e!==c&&e!==d?.loginMethod).flatMap(b),[E,A]=th([..._,...j,...k],c4({primary:j.length+_.length,overflow:k.length}));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:n.appearance.landingHeader,onClose:C,backFn:\"default\"===y?void 0:()=>{w(\"default\")}}),\"default\"===y&&(0,m.jsx)(c5,{}),\"default\"===y&&(\"string\"==typeof n.appearance.loginMessage?(0,m.jsx)(ib,{children:n.appearance.loginMessage}):n.appearance.loginMessage),(0,m.jsx)(iw,{style:{overflow:\"hidden\"},children:(0,m.jsxs)(iv,{colorScheme:a,style:{maxHeight:400,overflowY:\"scroll\",padding:2},children:[\"default\"===y&&(0,m.jsxs)(m.Fragment,{children:[...E,A.length>0&&(0,m.jsx)(c2,{text:\"More options\",icon:(0,m.jsx)(X.Z,{}),onClick:()=>w(\"overflow\")})]}),\"overflow\"===y&&(0,m.jsxs)(m.Fragment,{children:[...A]}),g&&\"default\"===y&&(0,m.jsx)(cf,{})]})}),n&&(0,m.jsx)(iT,{app:n}),(0,m.jsx)(iP,{})]})},c4=({primary:e,overflow:t})=>e<5?e:5===e&&0===t?5:4,c5=(0,A.ZP)(cN)`\n  margin-bottom: 16px;\n`,c6=({...e})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"25\",height:\"25\",viewBox:\"0 0 25 25\",fill:\"none\",...e,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_2856_1743)\",children:[(0,m.jsx)(\"path\",{d:\"M22.1673 8.24075V16.3642C22.1673 17.3256 21.3421 18.105 20.3241 18.105H17.0028M22.1673 8.24075C22.1673 7.27936 21.3421 6.5 20.3241 6.5H11.5302M22.1673 8.24075V8.42852C22.1673 9.03302 21.8352 9.59423 21.2901 9.91105L15.1463 13.4818C14.5539 13.8261 13.8067 13.8261 13.2143 13.4818L10.1621 11.5401\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),(0,m.jsx)(\"path\",{d:\"M3.12913 6.64816C0.508085 12.9507 3.49251 20.1847 9.79504 22.8057L11.5068 23.5176C12.4522 23.9108 13.7783 23.2222 14.1714 22.2768L14.6054 21.2333C14.7687 20.8406 14.6438 20.3871 14.3024 20.1334L11.2872 17.8927C10.9878 17.6702 10.5843 17.6488 10.2632 17.8384L9.11575 18.5156C8.78274 18.7121 8.3597 18.6844 8.07552 18.4221C5.94293 16.4542 4.77629 13.6264 4.90096 10.7273C4.91757 10.3409 5.19796 10.023 5.57269 9.92753L6.86381 9.59869C7.22522 9.50664 7.49627 9.20696 7.55169 8.83815L8.10986 5.12321C8.17306 4.70259 7.94188 4.29293 7.54915 4.1296L6.50564 3.69564C5.56026 3.30248 4.23416 3.99103 3.84101 4.9364L3.12913 6.64816Z\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_2856_1743\",children:(0,m.jsx)(\"rect\",{x:\"0.5\",y:\"0.5\",width:\"24\",height:\"24\",rx:\"6\",fill:\"white\"})})})]}),c7=({connectOnly:e})=>{let{closePrivyModal:t,connectors:r}=nZ(),{data:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),a=nh(),{accountType:l,walletClientType:c}=aW(),d=l?cT(l):null,h=n?.login,{email:u,sms:p,google:g,twitter:f,discord:y,github:w,spotify:x,instagram:v,tiktok:C,linkedin:b,apple:_,wallet:j,farcaster:k,telegram:E}=(0,o.useMemo)(()=>h?.loginMethods?(0,ev.W)(h.loginMethods,!0):null,[h])??a.loginMethods,{passkey:A}=a.loginMethods,S=[u&&\"email\",p&&\"sms\",g&&\"google\",f&&\"twitter\",y&&\"discord\",w&&\"github\",x&&\"spotify\",v&&\"instagram\",C&&\"tiktok\",b&&\"linkedin\",_&&\"apple\",k&&\"farcaster\",E&&\"telegram\"].filter(e=>!!e),T=S.length>0,P=(0,o.useMemo)(()=>j&&!T?\"web3-first\":j&&a?.appearance.loginGroupPriority||\"web2-first\",[j,T,a?.appearance.loginGroupPriority]),N=a?.appearance.hideDirectWeb2Inputs,[R,M]=(0,o.useState)(\"default\"),[O,I]=(0,o.useState)(dr({accountType:l,sms:p,email:u}));(0,o.useEffect)(()=>{I(dr({accountType:l,sms:p,email:u}))},[u,p,l]);let W=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{M(\"default\")},150)};i.current=W;let L=[];c&&j?L.push(c):d?.loginMethod&&S.includes(d.loginMethod)&&L.push(d.loginMethod);let F=t=>\"email\"===t?(0,m.jsx)(cW,{isEditable:\"email\"===O,setIsEditable:()=>{I(\"email\")}},t):\"sms\"===t?(0,m.jsx)(cK,{isEditable:\"sms\"===O,setIsEditable:()=>{I(\"sms\")}},t):\"apple\"===t?(0,m.jsx)(cQ,{provider:\"apple\"},t):\"discord\"===t?(0,m.jsx)(cQ,{provider:\"discord\"},t):\"farcaster\"===t?(0,m.jsx)(cL,{},t):\"github\"===t?(0,m.jsx)(cQ,{provider:\"github\"},t):\"google\"===t?(0,m.jsx)(cQ,{provider:\"google\"},t):\"linkedin\"===t?(0,m.jsx)(cQ,{provider:\"linkedin\"},t):\"tiktok\"===t?(0,m.jsx)(cQ,{provider:\"tiktok\"},t):\"twitter\"===t&&(!s.tq||a?.loginConfig.twitterOAuthOnMobileEnabled)?(0,m.jsx)(cQ,{provider:\"twitter\"},t):\"telegram\"===t?(0,m.jsx)(c0,{},t):aB([t],r,e,[],a.externalWallets.walletConnect.enabled),U=aB(a.appearance.walletList.filter(e=>e!==c),r,e,[...a.appearance.walletList,c],a.externalWallets.walletConnect.enabled),D=S.filter(e=>e!==d?.loginMethod).flatMap(F),Z=L.flatMap(F);\"web3-first\"===P&&\"default\"===R?U.unshift(...Z):\"web2-first\"===P&&D.unshift(...Z);let z=S.filter(e=>\"email\"!==e&&\"sms\"!==e),$=c9({priority:P,email:u,sms:p,social:z}),H=de({priority:P,email:u,sms:p,social:z}),B=dt({priority:P}),q=(0,m.jsx)(cx,{text:B,onClick:()=>M(\"web3-overflow\")}),V=(0,m.jsx)(c2,{text:$,icon:H,onClick:()=>M(\"web2-overflow\")}),G=N?0:1;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:a.appearance.landingHeader,onClose:W,backFn:\"default\"===R?void 0:()=>{M(\"default\")}}),\"default\"===R&&(0,m.jsx)(c8,{}),\"default\"===R&&(\"string\"==typeof a.appearance.loginMessage?(0,m.jsx)(ib,{children:a.appearance.loginMessage}):a.appearance.loginMessage),(0,m.jsx)(iw,{style:{overflow:\"hidden\",padding:2},children:(0,m.jsxs)(ix,{children:[\"default\"===R&&\"web2-first\"===P&&(0,m.jsxs)(m.Fragment,{children:[...D.length>4?D.slice(0,3):D,D.length>4&&V,j&&q]}),\"default\"===R&&\"web3-first\"===P&&(0,m.jsxs)(m.Fragment,{children:[j&&(0,m.jsxs)(m.Fragment,{children:[...U.length>4?U.slice(0,3):U,U.length>4&&q]}),D.length>G&&V,D.length===G&&D[0]]}),\"web2-overflow\"===R&&(0,m.jsxs)(m.Fragment,{children:[...\"web3-first\"===P?D:D.slice(3)]}),...\"web3-overflow\"===R?U:[],A&&\"default\"===R&&(0,m.jsx)(cf,{})]})}),a&&(0,m.jsx)(iT,{app:a}),(0,m.jsx)(iP,{})]})},c8=(0,A.ZP)(cN)`\n  margin-bottom: 16px;\n`,c9=({priority:e,email:t,sms:r,social:n})=>\"web2-first\"===e?\"Other socials\":t&&r&&n.length>0||t&&n.length>0?\"Log in with email or socials\":r&&n.length>0?\"Log in with sms or socials\":t&&r?\"Continue with email or sms\":t?\"Continue with email\":r?\"Continue with sms\":\"Log in with a social account\",de=({priority:e,email:t,sms:r,social:n})=>\"web2-first\"===e||n.length>0?(0,m.jsx)(X.Z,{}):t&&r?(0,m.jsx)(c6,{}):t?(0,m.jsx)(O.Z,{}):r?(0,m.jsx)(I.Z,{}):null,dt=({priority:e})=>\"web2-first\"===e?\"Continue with a wallet\":\"Other wallets\",dr=({accountType:e,sms:t,email:r})=>\"email\"===e&&r?\"email\":\"phone\"===e&&t||t&&!r?\"sms\":\"email\",dn=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"164\",height:\"164\",viewBox:\"0 0 164 164\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"26px\",width:\"26px\",...e},...t,children:[(0,m.jsx)(\"circle\",{cx:\"82\",cy:\"82\",r:\"80\",stroke:\"#EC6351\",\"stroke-width\":\"4\",\"stroke-linecap\":\"round\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M81.9999 100.788C93.3288 100.788 102.513 91.6043 102.513 80.2754C102.513 68.9465 93.3288 59.7626 81.9999 59.7626C70.671 59.7626 61.4871 68.9465 61.4871 80.2754C61.4871 91.6043 70.671 100.788 81.9999 100.788ZM88.3236 71.8304C88.9093 71.2446 89.8591 71.2446 90.4449 71.8304C91.0307 72.4161 91.0307 73.3659 90.4449 73.9517L84.121 80.2756L90.445 86.5996C91.0308 87.1854 91.0308 88.1351 90.445 88.7209C89.8592 89.3067 88.9095 89.3067 88.3237 88.7209L81.9997 82.3969L75.6756 88.7209C75.0899 89.3067 74.1401 89.3067 73.5543 88.7209C72.9685 88.1351 72.9685 87.1854 73.5543 86.5996L79.8783 80.2756L73.5544 73.9517C72.9686 73.3659 72.9686 72.4161 73.5544 71.8304C74.1402 71.2446 75.09 71.2446 75.6758 71.8304L81.9997 78.1543L88.3236 71.8304Z\",fill:\"#EC6351\"})]});function di(){let{promptMfa:e,init:t,submit:r,cancel:n,mfaMethods:i}=(0,o.useContext)(nz);return{promptMfa:e,init:t,submit:r,cancel:n,mfaMethods:i}}function da(){let{initEnrollmentWithSms:e,initEnrollmentWithTotp:t,initEnrollmentWithPasskey:r,submitEnrollmentWithSms:n,submitEnrollmentWithTotp:i,submitEnrollmentWithPasskey:a,unenroll:s,enrollInMfa:l}=(0,o.useContext)(nz);return{initEnrollmentWithSms:e,initEnrollmentWithTotp:t,initEnrollmentWithPasskey:r,submitEnrollmentWithSms:n,submitEnrollmentWithTotp:i,submitEnrollmentWithPasskey:a,unenrollWithSms:()=>s(\"sms\"),unenrollWithTotp:()=>s(\"totp\"),unenrollWithPasskey:()=>s(\"passkey\"),showMfaEnrollmentModal:()=>l(!0),closeMfaEnrollmentModal:()=>l(!1)}}var ds=e=>(0,m.jsxs)(dl,{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",width:\"88\",height:\"89\",viewBox:\"0 0 88 89\",...e,children:[(0,m.jsx)(\"rect\",{y:\"0.666016\",width:\"88\",height:\"88\",rx:\"44\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M45.2463 20.9106C44.5473 20.2486 43.4527 20.2486 42.7537 20.9106C37.8798 25.5263 31.3034 28.3546 24.0625 28.3546C23.9473 28.3546 23.8323 28.3539 23.7174 28.3525C22.9263 28.3427 22.2202 28.8471 21.9731 29.5987C20.9761 32.6311 20.4375 35.8693 20.4375 39.2297C20.4375 53.5896 30.259 65.651 43.5482 69.0714C43.8446 69.1477 44.1554 69.1477 44.4518 69.0714C57.741 65.651 67.5625 53.5896 67.5625 39.2297C67.5625 35.8693 67.0239 32.6311 66.0269 29.5987C65.7798 28.8471 65.0737 28.3427 64.2826 28.3525C64.1677 28.3539 64.0527 28.3546 63.9375 28.3546C56.6966 28.3546 50.1202 25.5263 45.2463 20.9106ZM52.7249 40.2829C53.3067 39.4683 53.1181 38.3363 52.3035 37.7545C51.4889 37.1726 50.3569 37.3613 49.7751 38.1759L41.9562 49.1223L38.0316 45.1977C37.3238 44.4899 36.1762 44.4899 35.4684 45.1977C34.7605 45.9056 34.7605 47.0532 35.4684 47.761L40.9059 53.1985C41.2826 53.5752 41.806 53.7671 42.337 53.7232C42.868 53.6792 43.3527 53.4039 43.6624 52.9704L52.7249 40.2829Z\"})]}),dl=A.ZP.svg`\n  height: 90px;\n  width: 90px;\n\n  > rect {\n    ${e=>\"success\"===e.color?\"fill: var(--privy-color-success);\":\"fill: var(--privy-color-accent);\"}\n  }\n\n  > path {\n    fill: white;\n  }\n`,dc=({showIntro:e,userMfaMethods:t,appMfaMethods:r,userHasAuthSms:n,isTotpLoading:i,isPasskeyLoading:a,error:o,onClose:s,onBackToIntro:l,handleSelectMethod:c,setRemovingMfaMethod:d})=>{let h=t.reduce((e,t)=>({...e,[t]:!0}),{}),u=r.reduce((e,t)=>({...e,[t]:!0}),{});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e?l:void 0,onClose:s},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ek.Z,{})})}),(0,m.jsx)(iM,{children:\"Choose a verification method\"}),t.length>0?(0,m.jsx)(iO,{children:\"To add or delete verification methods, verification is required.\"}):(0,m.jsx)(iO,{children:\"How would you like to verify your identity? You can change this later.\"}),o&&(0,m.jsx)(iK,{style:{marginTop:\"1.25rem\"},children:o.message}),(0,m.jsxs)(iD,{children:[(u.totp||h.totp)&&(0,m.jsxs)(iZ,{children:[(0,m.jsx)(i_,{style:{justifyContent:\"center\"},disabled:h.totp||i,onClick:()=>c(\"totp\"),children:i?(0,m.jsx)(nX,{style:{height:24,width:24,borderWidth:2},color:\"var(--privy-color-foreground-3)\"}):(0,m.jsxs)(iB,{children:[(0,m.jsxs)(i$,{children:[(0,m.jsx)(eE.Z,{}),\"Authenticator App\"]}),h.totp?(0,m.jsxs)(iH,{children:[(0,m.jsx)(M.Z,{}),\"Added\"]}):(0,m.jsx)(iH,{children:\"Recommended\"})]})}),h.totp&&(0,m.jsx)(iz,{onClick:()=>d(\"totp\"),children:(0,m.jsx)(el.Z,{})})]},\"totp\"),(u.sms||h.sms)&&(0,m.jsxs)(iZ,{children:[(0,m.jsx)(i_,{disabled:h.sms||n,onClick:()=>c(\"sms\"),children:(0,m.jsxs)(iB,{children:[(0,m.jsxs)(i$,{children:[(0,m.jsx)(I.Z,{}),\"SMS\"]}),h.sms&&(0,m.jsxs)(iH,{children:[(0,m.jsx)(M.Z,{}),\"Added\"]}),n&&(0,m.jsx)(iH,{children:\"Disabled\"})]})}),h.sms&&(0,m.jsx)(iz,{onClick:()=>d(\"sms\"),children:(0,m.jsx)(el.Z,{})})]},\"sms\"),(u.passkey||h.passkey)&&(0,m.jsxs)(iZ,{children:[(0,m.jsx)(i_,{style:{justifyContent:\"center\"},onClick:()=>c(\"passkey\"),disabled:h.passkey||a,children:a?(0,m.jsx)(nX,{style:{height:24,width:24,borderWidth:2},color:\"var(--privy-color-foreground-3)\"}):(0,m.jsxs)(iB,{children:[(0,m.jsxs)(i$,{children:[(0,m.jsx)(eA.Z,{}),\"Passkey\"]}),h.passkey?(0,m.jsxs)(iH,{children:[(0,m.jsx)(M.Z,{}),\"Added\"]}):(0,m.jsx)(iH,{isAccent:!0,children:(0,m.jsx)(ep.Z,{})})]})}),h.passkey&&(0,m.jsx)(iz,{onClick:()=>d(\"passkey\"),children:(0,m.jsx)(el.Z,{})})]},\"passkey\")]}),(0,m.jsx)(iN,{})]})},dd=({onComplete:e,onClose:t,onReset:r})=>{let{user:n}=n$(),{data:i}=ny(),{initLinkWithPasskey:a,linkWithPasskey:s}=nZ(),{initEnrollmentWithPasskey:l,submitEnrollmentWithPasskey:c}=da(),[d,h]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),[g,f]=(0,o.useState)(!1),[y,w]=(0,o.useState)(null),x=(0,o.useMemo)(()=>n?.linkedAccounts.filter(e=>\"passkey\"===e.type)??[],[n]),v=()=>{i?.mfaEnrollmentFlow?.onSuccess(),e()},C=async e=>{h(!0);try{await l(),await c({credentialIds:e}),f(!0)}catch(e){w(e)}finally{h(!1)}},b=async()=>{p(!0),w(null);try{await a();let e=(await s())?.linkedAccounts.filter(e=>\"passkey\"===e.type).map(e=>e.credentialId)??[];await C(e)}catch(e){w(e)}finally{p(!1)}};return 0===x.length||u?(0,m.jsx)(dh,{onReset:r,onClose:t,onClick:b,isCreating:u}):g?(0,m.jsx)(dp,{onClick:v,onClose:v}):y?(0,m.jsx)(si,{error:y,backFn:()=>w(null),onClick:()=>w(null)}):(0,m.jsx)(du,{passkeys:x,isSubmitting:d,isCreating:u,onReset:r,onClose:t,onSubmitEnrollment:()=>C(x.map(e=>e.credentialId)),onAddPasskey:b})},dh=({onReset:e,onClose:t,onClick:r,isCreating:n})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e,onClose:t},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsxs)(lg,{children:[(0,m.jsx)(lh,{}),(0,m.jsx)(lu,{})]})}),(0,m.jsx)(iM,{children:\"Set up passkey verification\"}),(0,m.jsxs)(iW,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eT.Z,{})}),\"Verify with Touch ID, Face ID, PIN, or hardware key\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(es.Z,{})}),\"Takes seconds to set up and use\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eS.Z,{})}),\"Use your passkey to verify transactions and login to your account\"]})]}),(0,m.jsx)(n3,{style:{marginTop:\"2.25rem\"},onClick:r,loading:n,children:\"Add a new passkey\"}),(0,m.jsx)(iN,{})]}),du=({onReset:e,onClose:t,onAddPasskey:r,onSubmitEnrollment:n,passkeys:i,isSubmitting:a,isCreating:s})=>{let[l,c]=(0,o.useState)(!1),d=l?i.length:i.length>3?2:3;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:l?()=>c(!1):e,onClose:t},\"header\"),!l&&(0,m.jsx)(iR,{children:(0,m.jsxs)(lg,{children:[(0,m.jsx)(lh,{}),(0,m.jsx)(lu,{})]})}),(0,m.jsx)(iM,{children:\"Enable your passkeys for verification\"}),(0,m.jsxs)(iW,{children:[i.slice(0,d).map(e=>(0,m.jsxs)(dm,{children:[(0,m.jsx)(dg,{children:dy(e)}),(0,m.jsxs)(df,{children:[\"Last used: \",e.latestVerifiedAt?.toLocaleString()]})]},e.credentialId)),!l&&i.length>3&&(0,m.jsx)(dw,{onClick:()=>c(!0),children:\"View All\"})]}),(0,m.jsx)(n3,{style:{marginTop:\"1.5rem\"},onClick:n,loading:a,children:\"Enable passkeys\"}),i.length<5&&(0,m.jsx)(dw,{style:{marginTop:\"0.5rem\"},onClick:r,disabled:s,children:s?(0,m.jsx)(nX,{style:{height:\"1rem\",width:\"1rem\",borderWidth:2}}):\"Add new passkey\"}),(0,m.jsx)(iN,{})]})},dp=({onClick:e,onClose:t})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:t},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(iM,{children:\"Passkey verification added\"}),(0,m.jsx)(iO,{children:\"From now on, you'll use the passkey whenever you use your Privy wallet.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:e,children:\"Done\"})}),(0,m.jsx)(iN,{})]}),dm=A.ZP.div`\n  && {\n    padding: 0.75rem 1rem;\n    text-align: left;\n    border-radius: 0.5rem;\n    border: 1px solid var(--privy-color-foreground-4);\n    width: 100%;\n  }\n`,dg=A.ZP.div`\n  font-size: 0.875rem;\n  line-height: 1.375rem;\n  font-weight: 500;\n\n  color: var(--privy-color-foreground-1);\n`,df=A.ZP.div`\n  font-size: 0.75rem;\n  font-weight: 400;\n  line-height: 1.125rem;\n\n  color: var(--privy-color-foreground-2);\n`,dy=e=>e.authenticatorName?e.createdWithBrowser?`${e.authenticatorName} on ${e.createdWithBrowser}`:e.authenticatorName:e.createdWithBrowser?e.createdWithOs?`${e.createdWithBrowser} on ${e.createdWithOs}`:`${e.createdWithBrowser}`:\"Unknown device\",dw=A.ZP.button`\n  && {\n    width: 100%;\n    font-size: 0.875rem;\n    line-height: 1rem;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    justify-content: center;\n\n    padding: 0.75rem 1rem;\n    background-color: var(--privy-color-background);\n    transition: background-color 200ms ease;\n    color: var(--privy-color-accent);\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n`,dx=Array(6).fill(\"\");function dv(e){return/^[0-9]{1}$/.test(e)}function dC(e){return 6===e.length&&e.every(dv)}var db=({onChange:e,disabled:t,errorReasonOverride:r,success:n})=>{let[i,a]=(0,o.useState)(dx),[l,c]=(0,o.useState)(null),[d,h]=(0,o.useState)(null),u=async t=>{t.preventDefault();let r=t.currentTarget.value.replace(/\\s+/g,\"\");if(\"\"===r)return;let n=i.reduce((e,t)=>e+Number(dv(t)),0),o=r.split(\"\"),s=!o.every(dv),l=o.length+n>6;if(s){c(\"Passcode can only be numbers\"),h(1);return}if(l){c(\"Passcode must be exactly 6 numbers\"),h(1);return}c(null),h(null);let d=Number(t.currentTarget.name?.charAt(4)),u=[...r||[\"\"]].slice(0,6-d),p=[...i.slice(0,d),...u,...i.slice(d+u.length)];a(p);let m=Math.min(Math.max(d+u.length,0),5);if(document.querySelector(`input[name=pin-${m}]`)?.focus(),dC(p))try{await e(p.join(\"\")),document.querySelector(`input[name=pin-${m}]`)?.blur()}catch(e){h(1),c(e.message)}else try{await e(null)}catch(e){h(1),c(e.message)}},p=t=>{1===d&&(c(null),h(null));let r=[...i.slice(0,t),\"\",...i.slice(t+1)];a(r),t>0&&document.querySelector(`input[name=pin-${t-1}]`)?.focus(),dC(r)?e(r.join(\"\")):e(null)},g=n?\"success\":r||l?\"fail\":\"\";return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(d_,{children:[(0,m.jsx)(\"div\",{children:i.map((e,r)=>(0,m.jsx)(\"input\",{name:`pin-${r}`,type:\"text\",value:i[r],onChange:u,onKeyUp:e=>{\"Backspace\"===e.key&&p(r)},inputMode:\"numeric\",autoFocus:0===r,pattern:\"[0-9]\",className:g,autoComplete:s.tq?\"one-time-code\":\"off\",disabled:t},r))}),(0,m.jsx)(\"div\",{children:(0,m.jsx)(dj,{fail:!!r||!!l,children:r||l})})]})})},d_=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  gap: 8px;\n\n  @media (max-width: 440px) {\n    margin-top: 8px;\n    margin-bottom: 8px;\n  }\n\n  > div:nth-child(1) {\n    display: flex;\n    justify-content: center;\n    gap: 0.5rem;\n    width: 100%;\n    border-radius: var(--privy-border-radius-md);\n\n    > input {\n      border: 1px solid var(--privy-color-foreground-4);\n      background: var(--privy-color-background);\n      border-radius: var(--privy-border-radius-md);\n      padding: 8px 10px;\n      height: 58px;\n      width: 46px;\n      text-align: center;\n      font-size: 18px;\n    }\n\n    > input:disabled {\n      /* Use light-theme-bg-2 instead of disabled-bg for consistency with\n      the callout bubble */\n      background: var(--privy-color-background-2);\n    }\n\n    > input:focus {\n      border: 1px solid var(--privy-color-accent);\n    }\n\n    > input:invalid {\n      border: 1px solid var(--privy-color-error);\n    }\n\n    > input.success {\n      border: 1px solid var(--privy-color-success);\n    }\n\n    > input.fail {\n      border: 1px solid var(--privy-color-error);\n      animation: shake 180ms;\n      animation-iteration-count: 2;\n    }\n  }\n\n  @keyframes shake {\n    0% {\n      transform: translate(1px, 0px);\n    }\n    33% {\n      transform: translate(-1px, 0px);\n    }\n    67% {\n      transform: translate(-1px, 0px);\n    }\n    100% {\n      transform: translate(1px, 0px);\n    }\n  }\n`,dj=A.ZP.div`\n  line-height: 20px;\n  font-size: 13px;\n  display: flex;\n  justify-content: flex-start;\n  width: 100%;\n\n  color: ${e=>e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n`,dk=({onComplete:e,onReset:t,onClose:r})=>{let[n,i]=(0,o.useState)(\"\"),[a,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(null),[d,h]=(0,o.useState)(\"enroll\"),{initEnrollmentWithSms:u,submitEnrollmentWithSms:p}=da(),{app:g,data:f}=ny();function y(){f?.mfaEnrollmentFlow?.onSuccess(),e()}async function w({qualifiedPhoneNumber:e}){try{await u({phoneNumber:e}),i(e),h(\"verify\")}catch(e){c(e)}}async function x(e){try{if(!e)return;await p({phoneNumber:n,mfaCode:e}),s(!0)}catch(e){throw ot(e)?Error(\"You have exceeded the maximum number of attempts. Please close this window and try again in 10 seconds.\"):oe(e)?Error(\"The code you entered is not valid\"):a9(e)?Error(\"You have exceeded the time limit for code entry. Please try again in 30 seconds.\"):or(e)?Error(\"Verification canceled\"):Error(\"Unknown error\")}}return l?(0,m.jsx)(si,{error:l,backFn:()=>c(null),onClick:()=>c(null)}):\"enroll\"===d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:t,onClose:r},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Set up SMS verification\"}),(0,m.jsx)(iO,{children:\"We'll text a verification code to this mobile device whenever you use your Privy wallet.\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(cq,{onSubmit:w,hideRecent:!0}),(0,m.jsxs)(iq,{children:[\"By providing your mobile number, you agree to receive text messages from \",g?.name,\". Some carrier charges may apply\"]})]}),(0,m.jsx)(iN,{})]}):a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:y},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(iM,{children:\"SMS verification added\"}),(0,m.jsx)(iO,{children:\"From now on, you'll enter the verification code sent to your mobile device whenever you use your Privy wallet.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:y,children:\"Done\"})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:function(){\"verify\"===d?h(\"enroll\"):t()},onClose:r},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter enrollment code\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(db,{onChange:x}),(0,m.jsxs)(iO,{children:[\"To continue, enter the 6-digit code sent to \",(0,m.jsx)(\"strong\",{children:cZ(n)})]})]}),(0,m.jsx)(iN,{})]})},dE=({size:e,authUrl:t})=>(0,m.jsx)(sb,{url:t,squareLogoElement:ek.Z,size:e,fgColor:\"#1F1F1F\"}),dA=({onComplete:e,onClose:t,onReset:r,totpInfo:n})=>{let[i,a]=(0,o.useState)(\"enroll\"),[s,l]=(0,o.useState)(!1),{submitEnrollmentWithTotp:c}=da(),{data:d}=ny();function h(){d?.mfaEnrollmentFlow?.onSuccess(),e()}async function u(e){try{if(!e)return;await c({mfaCode:e}),l(!0)}catch(e){throw ot(e)?Error(\"You have exceeded the maximum number of attempts. Please close this window and try again in 10 seconds.\"):oe(e)?Error(\"The code you entered is not valid\"):a9(e)?Error(\"You have exceeded the time limit for code entry. Please try again in 30 seconds.\"):or(e)?Error(\"Verification canceled\"):Error(\"Unknown error\")}}return\"enroll\"===i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:r,onClose:t},\"header\"),(0,m.jsx)(iM,{children:\"Scan QR code\"}),(0,m.jsx)(iO,{children:\"Open your authenticator app and scan the QR code to continue.\"}),(0,m.jsx)(i5,{children:(0,m.jsx)(dE,{authUrl:n.authUrl,size:200})}),(0,m.jsxs)(iU,{children:[(0,m.jsx)(i3,{children:(0,m.jsx)(sc,{itemName:\"secret\",text:n.secret})}),(0,m.jsx)(n3,{onClick:function(){a(\"verify\")},children:\"Continue\"})]}),(0,m.jsx)(iN,{})]}):s?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:h},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(iM,{children:\"Authenticator app verification added\"}),(0,m.jsx)(iO,{children:\"From now on, you'll enter the verification code generated by your authenticator app whenever you use your Privy wallet.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:h,children:\"Done\"})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:function(){\"verify\"===i?a(\"enroll\"):r()},onClose:t},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eC.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter enrollment code\"}),(0,m.jsx)(iI,{children:(0,m.jsx)(db,{onChange:u})}),(0,m.jsxs)(iO,{children:[\"To continue, enter the 6-digit code generated from your \",(0,m.jsx)(\"strong\",{children:\"authenticator app\"})]}),(0,m.jsx)(iN,{})]})},dS=({label:e,children:t,valueStyles:r})=>(0,m.jsxs)(dT,{children:[(0,m.jsx)(\"div\",{children:e}),(0,m.jsx)(dP,{style:{...r},children:t})]}),dT=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  width: 100%;\n\n  > :first-child {\n    color: var(--privy-color-foreground-3);\n    text-align: left;\n  }\n\n  > :last-child {\n    color: var(--privy-color-foreground-2);\n    text-align: right;\n  }\n`,dP=A.ZP.div`\n  font-size: 14px;\n  line-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: var(--privy-border-radius-full);\n  background-color: var(--privy-color-background-2);\n  padding: 4px 8px;\n`,dN=({weiQuantities:e,tokenPrice:t,tokenSymbol:r})=>{let n=sQ(e),i=t?sK(n,t):void 0,a=sY(n,r);return(0,m.jsx)(dM,{children:i||a})},dR=({weiQuantities:e,tokenPrice:t,tokenSymbol:r})=>{let n=sQ(e),i=t?sK(n,t):void 0,a=sY(n,r);return(0,m.jsx)(dM,{children:i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(dO,{children:\"USD\"}),\"<$0.01\"===i?(0,m.jsxs)(dW,{children:[(0,m.jsx)(dI,{children:\"<\"}),\"$0.01\"]}):i]}):a})},dM=A.ZP.span`\n  font-size: 14px;\n  line-height: 140%;\n  display: flex;\n  gap: 4px;\n  align-items: center;\n`,dO=A.ZP.span`\n  font-size: 12px;\n  line-height: 12px;\n  color: var(--privy-color-foreground-3);\n`,dI=A.ZP.span`\n  font-size: 10px;\n`,dW=A.ZP.span`\n  display: flex;\n  align-items: center;\n`,dL=({gas:e,tokenPrice:t,tokenSymbol:r})=>(0,m.jsxs)(i7,{style:{paddingBottom:\"12px\"},children:[(0,m.jsxs)(dU,{children:[(0,m.jsx)(dZ,{children:\"Est. Fees\"}),(0,m.jsx)(\"div\",{children:(0,m.jsx)(dR,{weiQuantities:[e],tokenPrice:t,tokenSymbol:r})})]}),t&&(0,m.jsx)(dD,{children:`${sY(e,r)}`})]}),dF=({transactionData:e,gas:t,tokenPrice:r,tokenSymbol:n})=>{let i=(0,en.uq)(e.value||0).add((0,en.uq)(t)).toHexString();return(0,m.jsxs)(i7,{children:[(0,m.jsxs)(dU,{children:[(0,m.jsx)(dZ,{children:\"Total (including fees)\"}),(0,m.jsx)(\"div\",{children:(0,m.jsx)(dR,{weiQuantities:[e.value||0,t],tokenPrice:r,tokenSymbol:n})})]}),r&&(0,m.jsx)(dD,{children:sY(i,n)})]})},dU=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  align-items: center;\n  padding-top: 4px;\n`,dD=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  height: 12px;\n\n  font-size: 12px;\n  line-height: 12px;\n  color: var(--privy-color-foreground-3);\n  font-weight: 400;\n`,dZ=A.ZP.div`\n  font-size: 14px;\n  line-height: 22.4px;\n  font-weight: 400;\n`,dz=(0,o.createContext)(void 0),d$=(0,o.createContext)(void 0),dH=({defaultValue:e,children:t})=>{let[r,n]=(0,o.useState)(e||null);return(0,m.jsx)(dz.Provider,{value:{activePanel:r,togglePanel:e=>{n(r===e?null:e)}},children:(0,m.jsx)(dK,{children:t})})},dB=({value:e,children:t})=>{let{activePanel:r,togglePanel:n}=(0,o.useContext)(dz),i=r===e;return(0,m.jsx)(d$.Provider,{value:{onToggle:()=>n(e),value:e},children:(0,m.jsx)(dJ,{isActive:i,\"data-open\":i,children:t})})},dq=({children:e})=>{let{activePanel:t}=(0,o.useContext)(dz),{onToggle:r,value:n}=(0,o.useContext)(d$),i=t===n;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(dY,{onClick:r,\"data-open\":i,children:[(0,m.jsx)(dX,{children:e}),(0,m.jsx)(d2,{isactive:i,children:(0,m.jsx)(eP.Z,{height:\"16px\",width:\"16px\",strokeWidth:\"2\"})})]}),(0,m.jsx)(dQ,{})]})},dV=({children:e})=>{let{activePanel:t}=(0,o.useContext)(dz),{value:r}=(0,o.useContext)(d$);return(0,m.jsx)(d0,{\"data-open\":t===r,children:(0,m.jsx)(d1,{children:e})})},dG=({children:e})=>{let{activePanel:t}=(0,o.useContext)(dz),{value:r}=(0,o.useContext)(d$);return(0,m.jsx)(d1,{children:\"function\"==typeof e?e({isActive:t===r}):e})},dK=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  gap: 8px;\n`,dY=A.ZP.div`\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n  cursor: pointer;\n  padding-bottom: 8px;\n`,dQ=A.ZP.div`\n  width: 100%;\n\n  && {\n    border-top: 1px solid;\n    border-color: var(--privy-color-foreground-4);\n  }\n  padding-bottom: 12px;\n`,dX=A.ZP.div`\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 19.6px;\n  width: 100%;\n  padding-right: 8px;\n`,dJ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  overflow: hidden;\n  padding: 12px;\n\n  && {\n    border: 1px solid;\n    border-color: var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-md);\n  }\n`,d0=A.ZP.div`\n  position: relative;\n  overflow: hidden;\n  transition: max-height 25ms ease-out;\n\n  &[data-open='true'] {\n    max-height: 700px;\n  }\n\n  &[data-open='false'] {\n    max-height: 0;\n  }\n`,d1=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  flex: 1 1 auto;\n  min-height: 1px;\n`,d2=A.ZP.div`\n  transform: ${e=>e.isactive?\"rotate(180deg)\":\"rotate(0deg)\"};\n`,d3=({walletAddress:e,chainId:t=t0})=>(0,m.jsx)(d4,{href:sX(t,e),target:\"_blank\",children:tm(e)}),d4=A.ZP.a`\n  &:hover {\n    text-decoration: underline;\n  }\n`,d5=({from:e,to:t,txn:r,transactionInfo:n,tokenPrice:i,gas:a,tokenSymbol:o})=>{let s=r?.value||0,l=nh();return(0,m.jsx)(dH,{...l.render.standalone?{defaultValue:\"details\"}:{},children:(0,m.jsxs)(dB,{value:\"details\",children:[(0,m.jsx)(dq,{children:(0,m.jsxs)(d6,{children:[(0,m.jsx)(\"div\",{children:n?.title||n?.actionDescription||\"Details\"}),(0,m.jsx)(d7,{children:(0,m.jsx)(dN,{weiQuantities:[s],tokenPrice:i,tokenSymbol:o})})]})}),(0,m.jsxs)(dV,{children:[(0,m.jsx)(dS,{label:\"From\",children:(0,m.jsx)(d3,{walletAddress:e,chainId:r.chainId||t0})}),(0,m.jsx)(dS,{label:\"To\",children:(0,m.jsx)(d3,{walletAddress:t,chainId:r.chainId||t0})}),n&&n.action&&(0,m.jsx)(dS,{label:\"Action\",children:n.action}),a&&(0,m.jsx)(dL,{transactionData:r,gas:a,tokenPrice:i,tokenSymbol:o})]}),(0,m.jsx)(dG,{children:({isActive:e})=>(0,m.jsx)(dF,{transactionData:r,displayFee:e,gas:a||\"0x0\",tokenPrice:i,tokenSymbol:o})})]})})},d6=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n`,d7=A.ZP.div`\n  flex-shrink: 0;\n  padding-left: 8px;\n`,d8=A.ZP.img`\n  && {\n    height: ${e=>\"sm\"===e.size?\"65px\":\"140px\"};\n    width: ${e=>\"sm\"===e.size?\"65px\":\"140px\"};\n    border-radius: 16px;\n    margin-bottom: 12px;\n  }\n`,d9=({pendingTransaction:e})=>{let{getAccessToken:t}=n$(),{wallets:r}=sH(),{walletProxy:n,rpcConfig:i,chains:a,appId:s,nativeTokenSymbolForChainId:d}=nZ(),[h,u]=(0,o.useState)(null),[p,g]=(0,o.useState)(e),{tokenPrice:f}=sz(p),y=d(e.chainId)||\"ETH\",w=(0,o.useMemo)(()=>r.find(e=>\"privy\"===e.walletClientType),[r]);return(0,o.useEffect)(()=>{(async function(){if(!await t()||!n||!w)return p;let e=tk(p.chainId,a,i,{appId:s}),r=await (0,l.vT)(w.address,p,e),{totalGasEstimate:o}=await (0,c.gM)(r,e);return u(o.toHexString()),r})().then(g).catch(console.error)},[n]),w?(0,m.jsx)(he,{children:(0,m.jsx)(d5,{from:w.address,to:p.to,txn:p,gas:h??void 0,tokenPrice:f,tokenSymbol:y})}):null},he=A.ZP.div`\n  width: 100%;\n  padding: 1rem 0;\n`,ht=({hasBlockingError:e,error:t,onClose:r,onBack:n,handleSubmit:i,account:a,submitSuccess:o})=>{let{pendingTransaction:s}=nZ();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:r},\"header\"),(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:o,fail:!!t}),t?(0,m.jsx)(U.Z,{style:{width:\"38px\",height:\"38px\"}}):(0,m.jsx)(lh,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsx)(iM,{style:{marginTop:\"1rem\"},children:\"Verifying with passkey\"}),(0,m.jsxs)(iW,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eT.Z,{})}),\"Approve this action using your touch, face, PIN, or hardware key.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eN.Z,{})}),\"You last added a passkey on\",\" \",a?.firstVerifiedAt?.toLocaleDateString(void 0,{month:\"short\",day:\"numeric\",year:\"numeric\"}),\".\"]})]}),s&&(0,m.jsx)(iI,{children:(0,m.jsx)(d9,{pendingTransaction:s})}),t&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(iK,{style:{marginTop:\"1.25rem\"},children:t.message}),(0,m.jsx)(n3,{disabled:e,onClick:i,style:{marginTop:\"1.25rem\"},children:\"Try again\"})]}),n&&(0,m.jsx)(iV,{style:{marginTop:\"1rem\"},onClick:n,children:\"Choose another method\"}),(0,m.jsx)(iN,{})]})},hr=({open:e,onClose:t})=>{let{user:r}=n$(),[n,i]=(0,o.useState)(null),{init:a,cancel:s,submit:l}=di(),[c,d]=(0,o.useState)(!1),[h,u]=(0,o.useState)(!1),[p,g]=(0,o.useState)(null),[f,y]=(0,o.useState)(null);(0,o.useEffect)(()=>{e&&r?.mfaMethods&&r.mfaMethods.length>0?v(r.mfaMethods[0]):i(null)},[r?.mfaMethods,e]);let w=e=>a7(e)&&\"mfa_verification_max_attempts_reached\"===e.type?(d(!0),Error(\"You have exceeded the maximum number of attempts. Please close this window and try again in 10 seconds.\")):oe(e)?(d(!1),Error(\"The code you entered is not valid\")):a9(e)?(d(!0),Error(\"You have exceeded the time limit for code entry. Please try again in 30 seconds.\")):(console.error(e),d(!1),Error(\"Something went wrong.\"));async function x(e){y(null);try{if(!e||!n)return;await l(n,e),u(!0),d(!1),t()}catch(e){throw w(e)}}async function v(e){if(\"passkey\"===e){try{i(e);let r=await a(e);if(!r)throw Error(\"something went wrong\");g(r),await l(e,r),u(!0),d(!1),t()}catch(e){y(w(e))}return}try{i(e),await a(e)}catch(e){console.error(e)}}let C=()=>{i(null),y(null),s(),t()};if(!e||!r)return null;if(\"passkey\"===n){let e=r.linkedAccounts.filter(e=>\"passkey\"===e.type&&e.enrolledInMfa).sort((e,t)=>t.firstVerifiedAt.valueOf()-e.firstVerifiedAt.valueOf())[0];return(0,m.jsx)(ht,{account:e,selectedMethod:n,submitSuccess:h,hasBlockingError:c,error:f,onClose:C,onBack:()=>{i(null),y(null)},handleSubmit:()=>x(p).catch(y)})}return n?(0,m.jsx)(hn,{submitSuccess:h,hasBlockingError:c,handleSubmitCode:x,selectedMethod:n,onClose:C,onBack:r.mfaMethods.length>1?()=>i(null):void 0}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:C},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eT.Z,{})})}),(0,m.jsx)(iM,{children:\"Verify your identity\"}),(0,m.jsx)(iO,{children:\"Choose a verification method\"}),(0,m.jsxs)(iD,{children:[r.mfaMethods.includes(\"totp\")&&(0,m.jsxs)(i_,{onClick:()=>v(\"totp\"),children:[(0,m.jsx)(eE.Z,{}),\"Authenticator App\"]},\"totp\"),r.mfaMethods.includes(\"sms\")&&(0,m.jsxs)(i_,{onClick:()=>v(\"sms\"),children:[(0,m.jsx)(I.Z,{}),\"SMS\"]},\"sms\"),r.mfaMethods.includes(\"passkey\")&&(0,m.jsxs)(i_,{onClick:()=>v(\"passkey\"),children:[(0,m.jsx)(eA.Z,{}),\"Passkey\"]},\"passkey\")]}),(0,m.jsx)(iN,{})]})},hn=({selectedMethod:e,submitSuccess:t,hasBlockingError:r,onClose:n,onBack:i,handleSubmitCode:a})=>{let{app:o}=ny(),{pendingTransaction:s}=nZ();switch(e){case\"sms\":return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter verification code\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(db,{success:t,disabled:r,onChange:a}),(0,m.jsxs)(iO,{children:[\"To continue, please enter the 6-digit code sent to your \",(0,m.jsx)(\"strong\",{children:\"mobile device\"})]}),s&&(0,m.jsx)(d9,{pendingTransaction:s})]}),i&&(0,m.jsx)(iV,{theme:o?.appearance.palette.colorScheme,onClick:i,children:\"Choose another method\"}),(0,m.jsx)(n8,{onClick:n,children:\"Not now\"}),(0,m.jsx)(iN,{})]});case\"totp\":return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eC.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter verification code\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(db,{success:t,disabled:r,onChange:a}),(0,m.jsxs)(iO,{children:[\"To continue, please enter the 6-digit code generated from your\",\" \",(0,m.jsx)(\"strong\",{children:\"authenticator app\"})]}),s&&(0,m.jsx)(d9,{pendingTransaction:s})]}),i&&(0,m.jsx)(iV,{theme:o?.appearance.palette.colorScheme,onClick:i,children:\"Choose another method\"}),(0,m.jsx)(n8,{onClick:n,children:\"Not now\"}),(0,m.jsx)(iN,{})]});default:return null}},hi=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,ha=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`;A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 180px;\n  height: 90px;\n  border-radius: 50%;\n  svg + svg {\n    margin-left: 12px;\n  }\n  > svg {\n    z-index: 2;\n    color: var(--privy-color-accent) !important;\n    stroke: var(--privy-color-accent) !important;\n    fill: var(--privy-color-accent) !important;\n  }\n`;var ho=(e,t)=>{let r=encodeURIComponent(new URL(window.location.href).href.replace(/\\/$/g,\"\")+`?privy_token=${e}&privy_connector=injected&privy_wallet_client=phantom`);if(!tc()&&s.tq)return`${t?\"phantom://\":\"https://phantom.app/ul/\"}browse/${r}?ref=${r}`},hs=(0,A.ZP)(i3)`\n  margin: 16px auto;\n`,hl=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin: 20px 0;\n  gap: 4px;\n\n  & h3 {\n    font-size: 18px;\n    font-style: normal;\n    font-weight: 600;\n    line-height: 24px;\n  }\n\n  & p {\n    max-width: 300px;\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 400;\n    line-height: 20px;\n  }\n`,hc=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n`,hd=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: var(--privy-color-error);\n  text-align: left;\n  margin-top: 0.5rem;\n`,hh=(0,A.ZP)(n3)`\n  ${e=>e.hideAnimations&&(0,A.iv)`\n      && {\n        // Remove animations because the recoverWallet task on the iframe partially\n        // blocks the renderer, so the animation stutters and doesn't look good\n        transition: none;\n      }\n    `}\n`,hu=e=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 21 20\",...e,children:[(0,m.jsx)(\"path\",{fill:\"url(#icloud-gradient)\",d:\"M12.34 7.315a4.26 4.26 0 0 0-3.707 2.18 2.336 2.336 0 0 0-1.02-.236 2.336 2.336 0 0 0-2.3 1.963 3.217 3.217 0 0 0 1.244 6.181c.135-.001.27-.01.404-.029h8.943c.047.004.094.006.141.007.045-.001.09-.004.135-.007h.214v-.016a2.99 2.99 0 0 0 1.887-.988c.487-.55.757-1.261.757-1.998v-.006a3.017 3.017 0 0 0-.69-1.915 2.992 2.992 0 0 0-1.748-1.034 4.26 4.26 0 0 0-4.26-4.102Z\"}),(0,m.jsx)(\"defs\",{children:(0,m.jsxs)(\"linearGradient\",{id:\"icloud-gradient\",x1:19.086,x2:3.333,y1:14.38,y2:14.163,gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#3E82F4\"}),(0,m.jsx)(\"stop\",{offset:1,stopColor:\"#93DCF7\"})]})})]}),hp=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"16\",height:\"14\",style:e,viewBox:\"0 0 16 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...t,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_2115_829)\",children:[(0,m.jsx)(\"path\",{d:\"M2.34709 12.9404L2.3471 12.9404L2.34565 12.938L1.64031 11.7448L1.64004 11.7444L0.651257 10.0677C0.640723 10.0496 0.630746 10.0314 0.621325 10.0129H4.16461L2.39424 13.0139C2.3775 12.9901 2.36178 12.9656 2.34709 12.9404Z\",fill:\"#0066DA\",stroke:\"#6366F1\"}),(0,m.jsx)(\"path\",{d:\"M8 4.48713L5.47995 0.215332C5.23253 0.358922 5.02176 0.556358 4.87514 0.80764L0.219931 8.70508C0.076007 8.95094 0.000191627 9.22937 0 9.51277H5.04009L8 4.48713Z\",fill:\"#00AC47\"}),(0,m.jsx)(\"path\",{d:\"M13.48 13.7847C13.7274 13.6411 13.9382 13.4437 14.0848 13.1924L14.3781 12.6988L15.7801 10.3206C15.9267 10.0693 16.0001 9.79114 16.0001 9.51294H10.9596L12.0321 11.577L13.48 13.7847Z\",fill:\"#EA4335\"}),(0,m.jsx)(\"path\",{d:\"M8.00003 4.48718L10.5201 0.215385C10.2726 0.0717949 9.98857 0 9.69533 0H6.30472C6.01148 0 5.7274 0.0807692 5.47998 0.215385L8.00003 4.48718Z\",fill:\"#00832D\"}),(0,m.jsx)(\"path\",{d:\"M10.9599 9.51294H5.04007L2.52002 13.7847C2.76744 13.9283 3.05152 14.0001 3.34476 14.0001H12.6552C12.9484 14.0001 13.2325 13.9194 13.4799 13.7847L10.9599 9.51294Z\",fill:\"#2684FC\"}),(0,m.jsx)(\"path\",{d:\"M13.4525 4.75636L11.1249 0.80764C10.9782 0.556358 10.7675 0.358922 10.52 0.215332L8 4.48713L10.9599 9.51277H15.9908C15.9908 9.23456 15.9175 8.95636 15.7709 8.70508L13.4525 4.75636Z\",fill:\"#FFBA00\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_2115_829\",children:(0,m.jsx)(\"rect\",{width:\"16\",height:\"14\",fill:\"white\"})})})]}),hm=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  padding-top: 24px;\n  padding-bottom: 24px;\n`,hg=A.ZP.div`\n  padding-bottom: 24px;\n`,hf={\"google-drive\":{name:\"Google Drive\",component:hp},icloud:{name:\"iCloud\",component:hu}},hy=A.ZP.div`\n  width: 24px;\n  height: 24px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n`,hw={\"google-drive\":\"Google Drive\",icloud:\"iCloud\",\"user-passcode\":\"password\",privy:\"Privy\"},hx=({onClose:e})=>(0,m.jsxs)(hg,{children:[(0,m.jsx)(as,{title:\"Why do I need to secure my account?\",icon:(0,m.jsx)(S.Z,{width:48}),description:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(\"p\",{children:\"Your app uses cryptography to secure your account. App secrets are split and encrypted so only you can access them.\"}),(0,m.jsx)(\"p\",{children:\"To use this app on new devices, secure account secrets using a password, your Google or your Apple account. It’s important you don’t lose access to the method you choose.\"})]})}),(0,m.jsx)(n3,{onClick:e,children:\"Select backup method\"})]}),hv=A.ZP.div`\n  && {\n    border-width: 4px;\n  }\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 1rem;\n  aspect-ratio: 1;\n  border-style: solid;\n  border-color: ${e=>e.$color??\"var(--privy-color-accent)\"};\n  border-radius: 50%;\n`,hC=A.ZP.span`\n  color: var(--privy-color-foreground);\n  font-size: 1.125rem;\n  font-weight: 600;\n  line-height: 1.875rem; /* 166.667% */\n  text-align: center;\n`,hb=[\"FUNDING_METHOD_SELECTION_SCREEN\",\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\",\"FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN\",\"FUNDING_MANUAL_TRANSFER_SCREEN\",\"MOONPAY_PROMPT_SCREEN\",\"MOONPAY_STATUS_SCREEN\"],h_={FUNDING_METHOD_SELECTION_SCREEN:null,FUNDING_TRANSFER_FROM_WALLET_SCREEN:\"external\",FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN:\"external\",FUNDING_MANUAL_TRANSFER_SCREEN:\"manual\",MOONPAY_PROMPT_SCREEN:\"moonpay\",MOONPAY_STATUS_SCREEN:\"moonpay\"},hj={moonpay:\"MOONPAY_PROMPT_SCREEN\",\"coinbase-onramp\":\"COINBASE_ONRAMP_STATUS_SCREEN\",external:\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\"};function hk({fundingMethods:e}){if(0===e.length)throw Error(\"Wallet funding is not enabled\");return 1===e.length?hj[e[0]]:\"FUNDING_METHOD_SELECTION_SCREEN\"}var hE=({img:e,submitError:t,prepareError:r,onClose:n,action:i,amount:a,title:o,subtitle:s,total:l,to:c,network:d,hasFunds:h,fee:u,from:p,cta:g,chain:f,isSubmitting:y,isPreparing:w,isTokenPriceLoading:x,isTokenContractInfoLoading:v,symbol:C,balance:b,onClick:_,spender:j})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n}),e&&(0,m.jsx)(hP,{children:e}),(0,m.jsx)(hC,{style:{marginTop:e?\"1.5rem\":0},children:o}),(0,m.jsx)(cg,{children:s}),(0,m.jsxs)(sW,{style:{marginTop:\"2rem\"},children:[l&&(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Total\"}),(0,m.jsx)(sF,{$isLoading:w||x,children:l})]}),i&&\"transaction\"!==i&&(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Action\"}),(0,m.jsx)(sF,{children:i})]}),a?(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Amount\"}),(0,m.jsxs)(sF,{$isLoading:v,children:[hT(a),\" \",C]})]}):null,j?(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Spender\"}),(0,m.jsx)(sF,{children:(0,m.jsx)(lH,{address:j,url:f?.blockExplorers?.default?.url,showCopyIcon:!1})})]}):null,c&&(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"To\"}),(0,m.jsx)(sF,{children:(0,m.jsx)(lH,{address:c,url:f?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Network\"}),(0,m.jsx)(sF,{children:d})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Estimated fee\"}),(0,m.jsx)(sF,{$isLoading:w||x,children:u})]})]}),(0,m.jsx)(iy,{}),t?(0,m.jsx)(lz,{style:{marginTop:\"2rem\"},children:t.message}):r?(0,m.jsx)(lz,{style:{marginTop:\"2rem\"},children:hS}):null,(0,m.jsx)(hA,{$useSmallMargins:!!(r||t),address:p,balance:b,isLoading:w||x,errMsg:w||r||t||h?void 0:`Add funds on ${f?.name} to complete transaction.`}),(0,m.jsx)(n4,{style:{marginTop:\"1rem\"},loading:y,onClick:_,children:g}),(0,m.jsx)(iP,{})]}),hA=(0,A.ZP)(lq)`\n  ${e=>e.$useSmallMargins?\"margin-top: 0.5rem;\":\"margin-top: 2rem;\"}\n`,hS=\"There was an error preparing your transaction. Your transaction request will likely fail.\",hT=e=>e.toLocaleString(),hP=A.ZP.div`\n  display: flex;\n  width: 100%;\n  justify-content: center;\n  max-height: 40px;\n\n  > img {\n    object-fit: contain;\n    border-radius: var(--privy-border-radius-sm);\n  }\n`,hN=new Set([v.jK.CALL_EXCEPTION,v.jK.NONCE_EXPIRED,v.jK.REPLACEMENT_UNDERPRICED,v.jK.TRANSACTION_REPLACED]),hR=e=>{let t;return e.code&&-32e3!==e.code&&hN.has(e.code)&&(t=e.transactionHash),t},hM=e=>\"SERVER_ERROR\"===e.code?e.error?.message??e.reason??e.message??\"unknown error\":e.error?.code===\"SERVER_ERROR\"?e.error?.error?.message??e.reason??e.message??\"unknown error\":e.reason??e.message??\"unknown error\",hO=e=>({errorCode:e.code?e.code?.toString().charAt(0)+e.code?.toString().slice(1).replace(\"_\",\" \").toLowerCase():\"Something went wrong.\",transactionHash:hR(e),errorMessage:hM(e)}),hI=()=>(0,m.jsxs)(hD,{children:[(0,m.jsx)(hz,{}),(0,m.jsx)(hZ,{})]}),hW=({transactionError:e,chainId:t,onClose:r,onRetry:n})=>{let{chains:i}=nZ(),[a,s]=(0,o.useState)(!1),{errorCode:l,transactionHash:c,errorMessage:d}=hO(e),h=i.find(e=>e.id===t)?.blockExplorers?.default.url??\"https://etherscan.io\";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:r}),(0,m.jsxs)(hL,{children:[(0,m.jsx)(hI,{}),(0,m.jsx)(hF,{children:l}),(0,m.jsx)(hU,{children:\"Please try again.\"}),(0,m.jsxs)(hB,{children:[(0,m.jsx)(hH,{children:\"Error message\"}),(0,m.jsx)(hV,{clickable:!1,children:d})]}),c&&(0,m.jsxs)(hB,{children:[(0,m.jsx)(hH,{children:\"Transaction hash\"}),(0,m.jsxs)(hq,{children:[\"Copy this hash to view details about the transaction on a\",\" \",(0,m.jsx)(\"u\",{children:(0,m.jsx)(\"a\",{href:h,children:\"block explorer\"})}),\".\"]}),(0,m.jsxs)(hV,{clickable:!0,onClick:async()=>{await navigator.clipboard.writeText(c),s(!0)},children:[c,(0,m.jsx)(hY,{clicked:a})]})]}),(0,m.jsx)(h$,{onClick:()=>n({resetNonce:!!c}),children:\"Retry transaction\"})]}),(0,m.jsx)(iN,{})]})},hL=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n`,hF=A.ZP.span`\n  color: var(--privy-color-foreground);\n  text-align: center;\n  font-size: 1.125rem;\n  font-weight: 500;\n  line-height: 1.25rem; /* 111.111% */\n  text-align: center;\n  margin: 10px;\n`,hU=A.ZP.span`\n  margin-top: 4px;\n  margin-bottom: 10px;\n  color: var(--privy-color-foreground-3);\n  text-align: center;\n\n  font-size: 0.875rem;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 20px; /* 142.857% */\n  letter-spacing: -0.008px;\n`,hD=A.ZP.div`\n  position: relative;\n  width: 60px;\n  height: 60px;\n  margin: 10px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n`,hZ=(0,A.ZP)(eI.Z)`\n  position: absolute;\n  width: 35px;\n  height: 35px;\n  color: var(--privy-color-error);\n`,hz=A.ZP.div`\n  position: absolute;\n  width: 60px;\n  height: 60px;\n  border-radius: 50%;\n  background-color: var(--privy-color-error);\n  opacity: 0.1;\n`,h$=(0,A.ZP)(n3)`\n  && {\n    margin-top: 24px;\n  }\n  transition: color 350ms ease, background-color 350ms ease;\n`,hH=A.ZP.span`\n  width: 100%;\n  text-align: left;\n  font-size: 0.825rem;\n  color: var(--privy-color-foreground);\n  padding: 4px;\n`,hB=A.ZP.div`\n  width: 100%;\n  margin: 5px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n`,hq=A.ZP.text`\n  position: relative;\n  width: 100%;\n  padding: 5px;\n  font-size: 0.8rem;\n  color: var(--privy-color-foreground-3);\n  text-align: left;\n  word-wrap: break-word;\n`,hV=A.ZP.span`\n  position: relative;\n  width: 100%;\n  background-color: var(--privy-color-background-2);\n  padding: 8px 12px;\n  border-radius: 10px;\n  margin-top: 5px;\n  font-size: 14px;\n  color: var(--privy-color-foreground-3);\n  text-align: left;\n  word-wrap: break-word;\n  ${e=>e.clickable&&`cursor: pointer;\n  transition: background-color 0.3s;\n  padding-right: 45px;\n\n  &:hover {\n    background-color: var(--privy-color-foreground-4);\n  }`}\n`,hG=(0,A.ZP)(eO.Z)`\n  position: absolute;\n  top: 13px;\n  right: 13px;\n  width: 24px;\n  height: 24px;\n`,hK=(0,A.ZP)(Y.Z)`\n  position: absolute;\n  top: 13px;\n  right: 13px;\n  width: 24px;\n  height: 24px;\n`,hY=({clicked:e})=>e?(0,m.jsx)(hK,{}):(0,m.jsx)(hG,{}),hQ=(e,t)=>{if(e.gasUsed&&e.effectiveGasPrice)try{let r=ei.O$.from(e.gasUsed),n=ei.O$.from(e.effectiveGasPrice),i=r.mul(n);if(t){let e=ei.O$.from(t);i=i.add(e)}return i.toString()}catch{return}},hX=({txn:e,receipt:t,transactionInfo:r,onClose:n,tokenPrice:i,tokenSymbol:a,l1GasEstimate:o,receiptHeader:s,receiptDescription:l})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n}),(0,m.jsx)(aa,{title:s??\"Transaction complete!\",description:l??\"You're all set.\"}),(0,m.jsx)(d5,{tokenPrice:i,from:t.from,to:t.to,gas:hQ(t,o),txn:e,transactionInfo:r,tokenSymbol:a}),(0,m.jsx)(iy,{}),(0,m.jsx)(hJ,{loading:!1,onClick:n,children:\"All Done\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}),hJ=(0,A.ZP)(n3)`\n  && {\n    margin-top: 24px;\n  }\n  transition: color 350ms ease, background-color 350ms ease;\n`,h0=(e,t)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e/Math.pow(10,t)),h1=[{inputs:[],name:\"decimals\",outputs:[{internalType:\"uint8\",name:\"\",type:\"uint8\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"}],h2=async({address:e,chain:t,amount:r,rpcConfig:n,privyAppId:i})=>{if(!r)return{value:\"\",symbol:\"\"};try{let a=(0,eW.v)({chain:t,transport:(0,eL.d)(t_(t,n,i))}),[o,s]=await Promise.all([a.readContract({abi:h1,address:e,functionName:\"symbol\"}),a.readContract({abi:h1,address:e,functionName:\"decimals\"})]);return{value:h0(parseFloat(r.toString()),s),symbol:o}}catch(e){return console.log(e),{value:r.toString(),symbol:\"\"}}},h3=e=>{let t=h5(e);if(t)return{action:\"approve\",isErc20Ish:!0,functionName:t.functionName,spender:t.args[0],amount:t.args[1]};let r=h7(e);return r?{action:\"transfer\",isErc20Ish:!0,functionName:r.functionName,amount:r.args[1]}:{action:\"transaction\",isErc20Ish:!1}},h4=[{constant:!1,inputs:[{name:\"spender\",type:\"address\"},{name:\"value\",type:\"uint256\"}],name:\"approve\",outputs:[{name:\"\",type:\"bool\"}],payable:!1,stateMutability:\"nonpayable\",type:\"function\"}],h5=e=>{try{return(0,eF.p)({abi:h4,data:e})}catch{return null}},h6=[{constant:!1,inputs:[{name:\"to\",type:\"address\"},{name:\"value\",type:\"uint256\"}],name:\"transfer\",outputs:[{name:\"\",type:\"bool\"}],payable:!1,stateMutability:\"nonpayable\",type:\"function\"}],h7=e=>{try{return(0,eF.p)({abi:h6,data:e})}catch{return null}},h8=(e,t)=>{let[r,n]=(0,o.useState)(null),{getAccessToken:i,user:a}=n$(),{walletProxy:s}=nZ(),d=rC(a),h=async()=>{if(!await i()||!s||!d)return null;let r=[],n=await (0,l.vT)(d.address,e,t).catch(t=>(r.push(t),e)),{totalGasEstimate:a,l1ExecutionFeeEstimate:o}=await (0,c.gM)(n,t).catch(e=>(r.push(e),{totalGasEstimate:null,l1ExecutionFeeEstimate:null})),{balance:h,hasSufficientFunds:u}=await sD(d.address,n,a??ei.O$.from(0),t).catch(e=>(r.push(e),{balance:null,hasSufficientFunds:!1}));return{tx:n,totalGasEstimate:a,l1ExecutionFeeEstimate:o,balance:h,hasFunds:u,errors:r}};return(0,o.useEffect)(()=>{r&&n(null),h().then(n)},[e]),r},h9=new rW(new rI(\"There was an issue preparing your transaction\",d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode)),ue=e=>{if(!(0,y.A7)(e))return e;try{return(0,eU.ZN)(e)}catch{return e}},ut=e=>JSON.stringify(e,null,2),ur=({data:e})=>{let t=e=>\"object\"==typeof e&&null!==e?(0,m.jsx)(ua,{children:Object.entries(e).map(([e,r])=>(0,m.jsxs)(\"li\",{children:[(0,m.jsxs)(\"strong\",{children:[e,\":\"]}),\" \",t(r)]},e))}):(0,m.jsx)(\"span\",{children:String(e)});return(0,m.jsx)(\"div\",{children:t(e)})},un=e=>{let{types:t,primaryType:r,...n}=e.typedData;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ui,{children:(0,m.jsx)(ur,{data:n})}),(0,m.jsx)(sc,{text:ut(e.typedData),itemName:\"full payload to clipboard\"}),\" \"]})},ui=A.ZP.div`\n  margin-top: 1.5rem;\n  background-color: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  padding: 12px;\n  text-align: left;\n  max-height: 310px;\n  overflow: scroll;\n  white-space: pre-wrap;\n  width: 100%;\n\n  // hide the scrollbars\n  -ms-overflow-style: none; /* Internet Explorer 10+ */\n  scrollbar-width: none; /* Firefox */\n\n  &::-webkit-scrollbar {\n    display: none; /* Safari and Chrome */\n  }\n}\n`,ua=A.ZP.ul`\n  margin-left: 12px !important;\n  white-space: nowrap;\n\n  &:first-child {\n    margin-left: 0 !important;\n  }\n\n  strong {\n    font-weight: 500 !important;\n  }\n}\n`,uo=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: ${e=>e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  display: flex;\n  justify-content: flex-start;\n  width: 100%;\n  margin-top: 16px;\n  margin-bottom: 4px;\n`,us=A.ZP.span`\n  display: flex;\n  align-items: center;\n  gap: 8px;\n`,ul=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n`,uc=A.ZP.div`\n  flex-grow: 1;\n`,ud=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,uh=(0,o.forwardRef)((e,t)=>{let[r,n]=(0,o.useState)(\"\"),[i,a]=(0,o.useState)(!1),{authenticated:s,user:l}=n$(),{initUpdateEmail:c}=nZ(),{navigate:d,setModalData:h,currentScreen:u}=ny(),{enabled:p,token:g}=nF(),f=tu(r),y=i||!f,w=async e=>{if(!l?.email)throw Error(\"User is required to have an email address to update it.\");a(!0);try{await c(l.email.address,r,e),d(\"AWAITING_PASSWORDLESS_CODE\")}catch(e){h({errorModalData:{error:e,previousScreen:u||\"LANDING\"}})}a(!1)},x=()=>{!p||g||s?w(g):(h({captchaModalData:{callback:e=>{if(!l?.email)throw Error(\"User is required to have an email address to update it.\");return c(l.email.address,r,e)},userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSWORDLESS_CODE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),d(\"CAPTCHA_SCREEN\"))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(uu,{children:(0,m.jsxs)(up,{children:[(0,m.jsx)(O.Z,{}),(0,m.jsx)(\"input\",{ref:t,id:\"email-input\",type:\"email\",placeholder:\"your@email.com\",onChange:e=>n(e.target.value),onKeyUp:e=>{\"Enter\"===e.key&&x()},value:r,autoComplete:\"email\"}),e.stacked?null:(0,m.jsx)(it,{isSubmitting:i,onClick:x,disabled:y,children:\"Submit\"})]})}),e.stacked?(0,m.jsx)(n3,{loadingText:null,loading:i,disabled:y,onClick:x,children:\"Submit\"}):null]})}),uu=A.ZP.div`\n  width: 100%;\n`,up=A.ZP.label`\n  display: block;\n  position: relative;\n  width: 100%;\n  background-color: var(--privy-color-background);\n  transition: background-color 200ms ease;\n\n  > svg {\n    position: absolute;\n    margin: 13px 17px;\n    height: 24px;\n    width: 24px;\n    color: var(--privy-color-foreground-3);\n  }\n\n  && > input {\n    font-size: 16px;\n    line-height: 24px;\n\n    padding: 12px 88px 12px 52px;\n    flex-grow: 1;\n    background: var(--privy-color-background);\n    border: 1px solid var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-mdlg);\n    width: 100%;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      padding-right: 78px;\n    }\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n\n    :autofill,\n    :-webkit-autofill {\n      background: var(--privy-color-background);\n    }\n  }\n\n  && > button {\n    right: 0;\n    line-height: 24px;\n    position: absolute;\n    padding: 13px 17px;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n  }\n\n  && > input::placeholder {\n    color: var(--privy-color-foreground-3);\n  }\n`,um=({style:e,...t})=>(0,m.jsx)(\"svg\",{width:\"40\",height:\"40\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"38px\",width:\"38px\",...e},...t,children:(0,m.jsx)(\"path\",{d:\"M20 13.6V20M20 26.4H20.016M36 20C36 28.8365 28.8366 36 20 36C11.1635 36 4.00001 28.8365 4.00001 20C4.00001 11.1634 11.1635 3.99999 20 3.99999C28.8366 3.99999 36 11.1634 36 20Z\",stroke:\"currentColor\",strokeWidth:\"3.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),ug=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-top: 8px;\n  padding-bottom: 32px;\n`,uf=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 72px;\n  aspect-ratio: 1;\n  color: var(--privy-color-error);\n  background-color: var(--privy-color-error-light);\n  border-radius: 50%;\n`,uy=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,uw=`\n  *,\n  ::before,\n  ::after {\n    box-sizing: border-box;\n    border-width: 0;\n    border-style: solid;\n  }\n\n  line-height: 1.15;\n  -webkit-text-size-adjust: 100%;\n  -moz-tab-size: 4;\n  tab-size: 4;\n  font-feature-settings: normal;\n\n  margin: 0;\n  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n    'Apple Color Emoji', 'Segoe UI Emoji';\n\n  hr {\n    height: 0;\n    color: inherit;\n    border-top-width: 1px;\n  }\n\n  abbr:where([title]) {\n    text-decoration: underline dotted;\n  }\n\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n    font-size: inherit;\n    font-weight: inherit;\n    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n    'Apple Color Emoji', 'Segoe UI Emoji';\n    display: inline;\n  }\n\n  a {\n    color: inherit;\n    text-decoration: inherit;\n  }\n\n  b,\n  strong {\n    font-weight: bolder;\n  }\n\n  code,\n  kbd,\n  samp,\n  pre {\n    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;\n    font-size: 1em;\n  }\n\n  small {\n    font-size: 80%;\n  }\n\n  sub,\n  sup {\n    font-size: 75%;\n    line-height: 0;\n    position: relative;\n    vertical-align: baseline;\n  }\n\n  sub {\n    bottom: -0.25em;\n  }\n\n  sup {\n    top: -0.5em;\n  }\n\n  table {\n    text-indent: 0;\n    border-color: inherit;\n    border-collapse: collapse;\n  }\n\n  button,\n  input,\n  optgroup,\n  select,\n  textarea {\n    font-family: inherit;\n    font-size: 100%;\n    font-weight: inherit;\n    line-height: inherit;\n    color: inherit;\n    margin: 0;\n    padding: 0;\n  }\n\n  button,\n  select {\n    text-transform: none;\n  }\n\n  button,\n  [type='button'],\n  [type='reset'],\n  [type='submit'] {\n    -webkit-appearance: button;\n    background-color: transparent;\n    background-image: none;\n  }\n\n  ::-moz-focus-inner {\n    border-style: none;\n    padding: 0;\n  }\n\n  :-moz-focusring {\n    outline: 1px dotted ButtonText;\n  }\n\n  :-moz-ui-invalid {\n    box-shadow: none;\n  }\n\n  legend {\n    padding: 0;\n  }\n\n  progress {\n    vertical-align: baseline;\n  }\n\n  ::-webkit-inner-spin-button,\n  ::-webkit-outer-spin-button {\n    height: auto;\n  }\n\n  [type='search'] {\n    -webkit-appearance: textfield;\n    outline-offset: -2px;\n  }\n\n  ::-webkit-search-decoration {\n    -webkit-appearance: none;\n  }\n\n  ::-webkit-file-upload-button {\n    -webkit-appearance: button;\n    font: inherit;\n  }\n\n  summary {\n    display: list-item;\n  }\n\n  blockquote,\n  dl,\n  dd,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  hr,\n  figure,\n  p,\n  pre {\n    margin: 0;\n  }\n\n  fieldset {\n    margin: 0;\n    padding: 0;\n  }\n\n  legend {\n    padding: 0;\n  }\n\n  ol,\n  ul,\n  menu {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n  }\n\n  textarea {\n    resize: vertical;\n  }\n\n  input::placeholder,\n  textarea::placeholder {\n    opacity: 1;\n    color: #9ca3af;\n  }\n\n  button,\n  [role='button'] {\n    cursor: pointer;\n  }\n\n  :disabled {\n    cursor: default;\n  }\n\n  img,\n  svg,\n  video,\n  canvas,\n  audio,\n  iframe,\n  embed,\n  object {\n    display: block;\n  }\n\n  img,\n  video {\n    max-width: 100%;\n    height: auto;\n  }\n\n  [hidden] {\n    display: none;\n  }\n`,ux=(0,A.vJ)`\n  :root {\n     // Borders\n     --privy-border-radius-sm: 6px;\n     --privy-border-radius-md: 12px;\n     --privy-border-radius-mdlg: 16px;\n     --privy-border-radius-lg: 24px;\n     --privy-border-radius-full: 9999px;\n\n     // Colors\n     --privy-color-background: ${e=>e.theme.background};\n     --privy-color-background-2: ${e=>e.theme.background2};\n\n     --privy-color-foreground: ${e=>e.theme.foreground};\n     --privy-color-foreground-2: ${e=>e.theme.foreground2};\n     --privy-color-foreground-3: ${e=>e.theme.foreground3};\n     --privy-color-foreground-4: ${e=>e.theme.foreground4};\n     --privy-color-foreground-accent: ${e=>e.theme.foregroundAccent};\n\n     --privy-color-accent: ${e=>e.theme.accent};\n     --privy-color-accent-light: ${e=>e.theme.accentLight};\n     --privy-color-accent-dark: ${e=>e.theme.accentDark};\n\n     --privy-color-success: ${e=>e.theme.success};\n     --privy-color-success-dark: ${e=>e.theme.successDark};\n     --privy-color-success-light: ${e=>e.theme.successLight};\n     --privy-color-error: ${e=>e.theme.error};\n     --privy-color-error-light: ${e=>e.theme.errorLight};\n     --privy-color-warn: ${e=>e.theme.warn};\n     --privy-color-warn-light: ${e=>e.theme.warnLight};\n\n     // Space\n     --privy-height-modal-full: 620px;\n     --privy-height-modal-compact: 480px;\n  };\n`,uv=A.ZP.div`\n  // css normalize only the privy application to avoid conflicts\n  // with consuming application\n  ${uw}\n\n  // Privy styles\n  color: var(--privy-color-foreground-2);\n\n  h3 {\n    font-size: 16px;\n    line-height: 24px;\n    font-weight: 500;\n    color: var(--privy-color-foreground-2);\n  }\n\n  h4 {\n    font-size: 14px;\n    line-height: 20px;\n    font-weight: 500;\n    color: var(--privy-color-foreground);\n  }\n\n  p {\n    font-size: 13px;\n    line-height: 20px;\n    color: var(--privy-color-foreground-2);\n  }\n\n  button:focus,\n  input:focus,\n  optgroup:focus,\n  select:focus,\n  textarea:focus {\n    outline: none;\n    border-color: var(--privy-color-accent-light);\n    box-shadow: 0 0 0 1px var(--privy-color-accent-light);\n  }\n\n  .mobile-only {\n    @media (min-width: 441px) {\n      display: none;\n    }\n  }\n\n  /* Animations */\n\n  @keyframes fadein {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 1;\n    }\n  }\n`,uC=({children:e,open:t,onClick:r,...n})=>(0,m.jsx)(eD.u,{show:t,as:o.Fragment,children:(0,m.jsxs)(eZ.V,{onClose:r,...n,as:u_,children:[(0,m.jsx)(eD.u.Child,{as:o.Fragment,enterFrom:\"entering\",leaveTo:\"leaving\",children:(0,m.jsx)(ub,{id:\"privy-dialog-backdrop\",\"aria-hidden\":\"true\"})}),(0,m.jsx)(uj,{children:(0,m.jsx)(eD.u.Child,{as:o.Fragment,enterFrom:\"entering\",leaveTo:\"leaving\",children:(0,m.jsx)(eZ.V.Panel,{as:uk,children:e})})})]})}),ub=A.ZP.div`\n  position: fixed;\n  inset: 0;\n\n  transition: backdrop-filter 100ms ease;\n  backdrop-filter: blur(3px);\n  -webkit-backdrop-filter: blur(3px);\n\n  &.entering,\n  &.leaving {\n    backdrop-filter: unset;\n    -webkit-backdrop-filter: unset;\n  }\n`,u_=A.ZP.div`\n  position: relative;\n  z-index: 999999;\n`,uj=A.ZP.div`\n  position: fixed;\n  inset: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100vw;\n  min-height: 100vh;\n`,uk=A.ZP.div`\n  // reset some default dialog styles\n  padding: 0;\n  background: transparent;\n  border: none;\n  width: 100%;\n  pointer-events: auto;\n\n  outline: none;\n  display: block;\n\n  /*\n   * Normally it is bad to mix media queries like this We are doing\n   * this here specifically for animations to avoid weird jank.\n   */\n  /* Mobile animation is a bottom drawer */\n  @media (max-width: 440px) {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n    transition: transform 200ms ease-in;\n    position: fixed;\n    bottom: 0;\n\n    &.entering,\n    &.leaving {\n      opacity: 0;\n      transform: translate3d(0, 100%, 0);\n      transition: transform 150ms ease-in 0ms, opacity 0ms ease 150ms;\n    }\n  }\n\n  /* Tablet/Desktop animation is a fade in */\n  @media (min-width: 441px) {\n    opacity: 1;\n    transition: opacity 100ms ease-in;\n\n    &.entering,\n    &.leaving {\n      opacity: 0;\n      transition-delay: 5ms;\n    }\n\n    margin: auto;\n    width: 360px;\n    box-shadow: 0px 8px 36px rgba(55, 65, 81, 0.15);\n    border-radius: var(--privy-border-radius-lg);\n  }\n`,uE=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 100%;\n`,uA={LANDING:()=>{let{app:e}=ny();return e.loginMethodsAndOrder&&e.loginMethodsAndOrder.primary.length>0?(0,m.jsx)(c3,{connectOnly:!1}):(0,m.jsx)(c7,{connectOnly:!1})},CONNECT_OR_CREATE:()=>{let{app:e}=ny();return e.loginMethodsAndOrder&&e.loginMethodsAndOrder.primary.length>0?(0,m.jsx)(c3,{connectOnly:!0}):(0,m.jsx)(c7,{connectOnly:!0})},AWAITING_PASSWORDLESS_CODE:()=>{let{app:e,navigate:t,lastScreen:r,navigateBack:n,setModalData:i,onUserCloseViaDialogOrKeybindRef:a}=ny(),{closePrivyModal:l,resendEmailCode:c,resendSmsCode:d,getAuthMeta:h,loginWithCode:u,updateWallets:p,createAnalyticsEvent:g}=nZ(),{authenticated:f,logout:y,user:w}=n$(),[x,v]=(0,o.useState)(ad),[C,b]=(0,o.useState)(!1),[_,j]=(0,o.useState)(null),[k,E]=(0,o.useState)(null),[A,S]=(0,o.useState)(0);a.current=()=>null;let T=h()?.email?0:1;(0,o.useEffect)(()=>{if(A){let e=setTimeout(()=>{S(A-1)},1e3);return()=>clearTimeout(e)}},[A]),(0,o.useEffect)(()=>{if(f&&C&&w){if(e?.legal.requireUsersAcceptTerms&&!w.hasAcceptedTerms){let e=setTimeout(()=>{t(\"AFFIRMATIVE_CONSENT_SCREEN\")},900);return()=>clearTimeout(e)}if(rk(w,e?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{i({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"AwaitingPasswordlessCodeScreen\"}}),y()},callAuthOnSuccessOnClose:!0}}),t(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},900);return()=>clearTimeout(e)}{p();let e=setTimeout(()=>l({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return()=>clearTimeout(e)}}},[f,C,w]),(0,o.useEffect)(()=>{if(_&&0===k){let e=setTimeout(()=>{v(ad),j(null),document.querySelector(\"input[name=code-0]\")?.focus()},1400);return()=>clearTimeout(e)}},[_]);let P=e=>{e.preventDefault();let n=e.currentTarget.value.replace(\" \",\"\");if(\"\"===n)return;if(isNaN(Number(n))){j(\"Code should be numeric\"),E(1);return}j(null),E(null);let a=Number(e.currentTarget.name?.charAt(5)),o=[...n||[\"\"]].slice(0,6-a),s=[...x.slice(0,a),...o,...x.slice(a+o.length)];v(s);let l=Math.min(Math.max(a+o.length,0),5);isNaN(Number(e.currentTarget.value))||document.querySelector(`input[name=code-${l}]`)?.focus(),s.every(e=>e&&!isNaN(+e))&&(document.querySelector(`input[name=code-${l}]`)?.blur(),u(s.join(\"\")).then(()=>b(!0)).catch(e=>{if(e?.status===422)j(\"Invalid or expired verification code\");else if(e instanceof eG&&\"cannot_link_more_of_type\"===e.privyErrorCode)j(e.message);else if(e instanceof eG&&\"max_accounts_reached\"===e.privyErrorCode){console.error(new e3(e).toString()),t(\"USER_LIMIT_REACHED_SCREEN\");return}else if(e instanceof eG&&\"user_does_not_exist\"===e.privyErrorCode){t(\"ACCOUNT_NOT_FOUND_SCREEN\");return}else if(e instanceof eG&&\"linked_to_another_user\"===e.privyErrorCode){i({errorModalData:{error:e,previousScreen:r??\"AWAITING_PASSWORDLESS_CODE\"}}),t(\"ERROR_SCREEN\",!1);return}else j(\"Issue verifying code\");E(0)}))},N=e=>{1===k&&(j(null),E(null)),v([...x.slice(0,e),\"\",...x.slice(e+1)]),e>0&&document.querySelector(`input[name=code-${e-1}]`)?.focus()},R=0==T?(0,m.jsx)(O.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"}):(0,m.jsx)(I.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"40px\",width:\"40px\"}),W=0==T?(0,m.jsxs)(\"p\",{children:[\"Please check \",(0,m.jsx)(ay,{children:h()?.email}),\" for an email from privy.io and enter your code below.\"]}):(0,m.jsxs)(\"p\",{children:[\"Please check \",(0,m.jsx)(ay,{children:h()?.phoneNumber}),\" for a message from \",e?.name||\"Privy\",\" and enter your code below.\"]});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>n()},\"header\"),(0,m.jsxs)(ah,{children:[(0,m.jsx)(as,{title:\"Enter confirmation code\",description:W,icon:R}),(0,m.jsxs)(i4,{children:[(0,m.jsxs)(au,{children:[(0,m.jsx)(ap,{fail:!!_,success:C,children:(0,m.jsx)(\"span\",{children:_||(C?\"Success!\":\"\")})}),(0,m.jsx)(\"div\",{children:x.map((e,t)=>(0,m.jsx)(\"input\",{name:`code-${t}`,type:\"text\",value:x[t],onChange:P,onKeyUp:e=>{\"Backspace\"===e.key&&N(t)},inputMode:\"numeric\",autoFocus:0===t,pattern:\"[0-9]\",className:`${C?\"success\":\"\"} ${_?\"fail\":\"\"}`,autoComplete:s.tq?\"one-time-code\":\"off\"},t))})]}),(0,m.jsxs)(am,{children:[(0,m.jsxs)(\"span\",{children:[\"Didn't get \",0==T?\"an email\":\"a message\",\"?\"]}),A?(0,m.jsxs)(af,{children:[(0,m.jsx)(M.Z,{color:\"var(--privy-color-foreground)\",strokeWidth:1.33,height:\"12px\",width:\"12px\"}),(0,m.jsx)(\"span\",{children:\"Code sent\"})]}):(0,m.jsx)(ag,{children:(0,m.jsx)(\"button\",{onClick:async()=>{S(30),0==T?await c():await d()},children:\"Resend code\"})})]})]})]}),(0,m.jsx)(iP,{})]})},AWAITING_CONNECTION:()=>{let[e,t]=(0,o.useState)(!1),[r,n]=(0,o.useState)(!1),[i,a]=(0,o.useState)(void 0),{authenticated:l,logout:c}=n$(),{app:d,navigate:h,navigateBack:u,lastScreen:p,currentScreen:g,setModalData:f}=ny(),{getAuthFlow:y,walletConnectionStatus:w,closePrivyModal:x,initLoginWithWallet:v,loginWithWallet:C,updateWallets:b,createAnalyticsEvent:_}=nZ(),{walletConnectors:j}=n$(),[k,E]=(0,o.useState)(0),{user:A}=n$(),[S]=(0,o.useState)(A?.linkedAccounts.length||0),[T,P]=(0,o.useState)(\"\"),[N,R]=(0,o.useState)(\"\"),[M,O]=(0,o.useState)(!1),{hasTabbedAway:I}=function(){let[e,t]=(0,o.useState)(!1),r=(0,o.useCallback)(()=>{document.hidden&&t(!0)},[]);return(0,o.useEffect)(()=>(document.addEventListener(\"visibilitychange\",r),()=>document.removeEventListener(\"visibilitychange\",r)),[r]),{hasTabbedAway:e,reset:()=>t(!1)}}(),{enabled:W,token:L}=nF(),F=s.tq&&w?.connector?.connectorType===\"wallet_connect_v2\"||s.tq&&w?.connector?.connectorType===\"coinbase_wallet\"||s.tq&&w?.connector?.connectorType===\"injected\"&&w?.connector?.walletClientType===\"phantom\",U=w?.status===\"connected\",D=w?.status===\"switching_to_supported_chain\";(0,o.useEffect)(()=>{let e=y(),t=e instanceof rp?e:void 0;if(U&&!t&&(!W||L||l?v(w.connectedWallet,L).then(()=>{O(!0)}):(f({captchaModalData:{callback:e=>v(w.connectedWallet,e).then(()=>{O(!0)}),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_CONNECTION\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),h(\"CAPTCHA_SCREEN\",!1))),t&&F&&U&&!t.preparedMessage){t.buildSiweMessage();return}!t||F||!U||r||(async()=>{n(!0),a(void 0);try{w?.connector?.connectorType===\"wallet_connect_v2\"&&w?.connector?.walletClientType===\"metamask\"&&await tg(2500),await z()}catch(e){console.warn(\"Auto-prompted signature failed\",e)}finally{n(!1)}})()},[k,U,M]),(0,o.useEffect)(()=>{if(A&&e){if(d?.legal.requireUsersAcceptTerms&&!A.hasAcceptedTerms){let e=setTimeout(()=>{h(\"AFFIRMATIVE_CONSENT_SCREEN\")},900);return()=>clearTimeout(e)}if(rk(A,d?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{f({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),_({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"ConnectionStatusScreen\"}}),c()},callAuthOnSuccessOnClose:!0}}),h(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},900);return()=>clearTimeout(e)}b();let e=setTimeout(()=>x({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return()=>clearTimeout(e)}},[A,e]);let Z=e=>{if(e?.privyErrorCode===\"allowlist_rejected\"){h(\"ALLOWLIST_REJECTION_SCREEN\");return}if(e?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(e).toString()),h(\"USER_LIMIT_REACHED_SCREEN\");return}if(e?.privyErrorCode===\"user_does_not_exist\"){h(\"ACCOUNT_NOT_FOUND_SCREEN\");return}a(aV(e))};async function z(){try{await C(),t(!0)}catch(e){Z(e)}finally{n(!1)}}(0,o.useEffect)(()=>{w?.connectError&&Z(w?.connectError)},[w]),aq(()=>{let e=\"wallet_connect_v2\"===$&&w?.connector instanceof nx?w.connector.redirectUri:void 0;e&&P(e);let t=\"wallet_connect_v2\"===$&&w?.connector instanceof nx?w.connector.fallbackUniversalRedirectUri:void 0;t&&R(t)},w?.connector instanceof nx&&!T?500:null);let $=w?.connector?.connectorType||\"injected\",H=w?.connector?.walletClientType||\"unknown\",B=aA[H]?.displayName||w?.connector?.walletBranding.name||\"Browser Extension\",q=aA[H]?.logo||w?.connector?.walletBranding.icon||(e=>(0,m.jsx)(rY,{...e})),V=\"Browser Extension\"===B?B.toLowerCase():B,G;G=e?`Successfully connected with ${V}`:i?i.message:D?\"Switching networks\":U?r&&F?\"Signing\":\"Sign to verify\":`Waiting for ${V}`;let K=\"Don’t see your wallet? Check your other browser windows.\";e?K=S===(A?.linkedAccounts.length||0)?\"Wallet was already linked.\":\"You’re good to go!\":k>=2&&i?K=\"Unable to connect wallet\":i?K=i.detail:D?K=\"Switch your wallet to the requested network.\":U&&F?K=\"Sign the message in your wallet to verify it belongs to you.\":\"metamask\"===H&&s.tq?K=\"Click continue to open and connect MetaMask.\":\"metamask\"===H?K=\"For the best experience, connect only one wallet at a time.\":\"wallet_connect\"===$?K=\"Open your mobile wallet app to continue\":\"coinbase_wallet\"===$&&(td()||(K=nv(A)?\"Continue with the Coinbase app. Not the right wallet? Reset your connection below.\":\"Open the Coinbase app on your phone to continue.\"));let Y=j?.walletConnectors?.find(e=>\"coinbase_wallet\"===e.walletClientType),Q=\"coinbase_wallet\"===H&&(nv(A)||i===rL.ERROR_USER_EXISTS);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:p&&g!==p?u:void 0}),(0,m.jsxs)(aG,{children:[(0,m.jsx)(aY,{walletLogo:q,success:e,fail:!!i}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:G}),(0,m.jsx)(\"p\",{children:K}),U||!T||I?null:(0,m.jsxs)(\"p\",{children:[\"Still here?\",\" \",(0,m.jsx)(\"a\",{href:T,target:\"_blank\",style:{textDecoration:\"underline\"},children:\"Try connecting again\"}),N&&(0,m.jsxs)(m.Fragment,{children:[\" \",\"or\",\" \",(0,m.jsx)(\"a\",{href:N,target:\"_blank\",style:{textDecoration:\"underline\"},children:\"use this different link\"})]})]})]}),Q?(0,m.jsx)(n3,{onClick:()=>Y&&Y?.disconnect(),disabled:e,children:\"Use a different wallet\"}):i==rL.ERROR_USER_EXISTS&&g!==p?(0,m.jsx)(n3,{onClick:u,children:\"Use a different wallet\"}):U&&!e&&F?(0,m.jsx)(n3,{onClick:()=>{n(!0),z()},disabled:r,children:r?\"Signing\":\"Sign with your wallet\"}):!e&&i?.retryable&&k<2?(0,m.jsx)(n3,{onClick:()=>{E(k+1),a(void 0),U?(n(!0),z()):w?.connectRetry()},disabled:!e&&(!i?.retryable||k>=2),children:\"Retry\"}):e||i?null:(0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Connecting\"})]}),(0,m.jsx)(iN,{})]})},AWAITING_CONNECT_ONLY_CONNECTION:()=>{let{navigateBack:e,navigate:t,lastScreen:r,currentScreen:n,data:i}=ny(),{walletConnectionStatus:a,closePrivyModal:l}=nZ(),[c,d]=(0,o.useState)(void 0),[h,u]=(0,o.useState)(0),p=a?.status===\"connected\",g=a?.status===\"switching_to_supported_chain\";(0,o.useEffect)(()=>{if(p){let e;if(i?.externalConnectWallet?.onCompleteNavigateTo){let r=i.externalConnectWallet.onCompleteNavigateTo;e=setTimeout(()=>{t(r)},1400)}else e=setTimeout(l,1400);return()=>clearTimeout(e)}},[p]);let f=e=>{d(aV(e))};(0,o.useEffect)(()=>{a?.connectError&&f(a?.connectError)},[a]);let y=a?.connector?.connectorType||\"injected\",w=a?.connector?.walletClientType||\"unknown\",x=aA[w]?.displayName||a?.connector?.walletBranding.name||\"Browser Extension\",v=aA[w]?.logo||a?.connector?.walletBranding.icon||(e=>(0,m.jsx)(rY,{...e})),C=\"Browser Extension\"===x?x.toLowerCase():x,b;b=p?`Successfully connected with ${C}`:c?c.message:g?\"Switching networks\":`Waiting for ${C}`;let _=\"Don’t see your wallet? Check your other browser windows.\";return p?_=\"You’re good to go!\":h>=2&&c?_=\"Unable to connect wallet\":c?_=c.detail:g?_=\"Switch your wallet to the requested network.\":\"metamask\"===w&&s.tq?_=\"Click to continue to open and connect MetaMask.\":\"metamask\"===w?_=\"For the best experience, connect only one wallet at a time.\":\"wallet_connect_v2\"===y?_=\"Open your mobile wallet app to continue\":\"coinbase_wallet\"===y&&(_=\"Open the Coinbase app on your phone to continue.\"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:n===r?void 0:e}),(0,m.jsxs)(aQ,{children:[(0,m.jsx)(aY,{walletLogo:v,success:p,fail:!!c}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:b}),(0,m.jsx)(\"p\",{children:_})]}),c==rL.ERROR_USER_EXISTS?(0,m.jsx)(n3,{onClick:e,children:\"Use a different wallet\"}):!p&&c?.retryable&&h<2?(0,m.jsx)(n3,{onClick:()=>{u(h+1),d(void 0),a?.connectRetry()},disabled:!p&&(!c?.retryable||h>=2),children:\"Retry\"}):!p&&c&&h>=2?(0,m.jsx)(n3,{onClick:e,children:\"Use a different wallet\"}):null]}),(0,m.jsx)(iN,{})]})},AWAITING_FARCASTER_CONNECTION:()=>{let{authenticated:e,logout:t,ready:r,user:n}=n$(),{lastScreen:i,navigate:a,navigateBack:l,setModalData:c,app:d}=ny(),{getAuthFlow:h,loginWithFarcaster:u,closePrivyModal:p,createAnalyticsEvent:g}=nZ(),[f,y]=(0,o.useState)(void 0),[w,x]=(0,o.useState)(!1),[v,C]=(0,o.useState)(!1),b=(0,o.useRef)([]),_=h(),j=_?.meta.connectUri;return(0,o.useEffect)(()=>{let e=Date.now(),t=setInterval(async()=>{let r=await _.pollForReady.execute(),n=Date.now()-e;if(r){clearInterval(t),x(!0);try{await u(),C(!0)}catch(t){let e={retryable:!1,message:\"Authentication failed\"};if(t?.privyErrorCode===\"allowlist_rejected\"){a(\"ALLOWLIST_REJECTION_SCREEN\");return}if(t?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(t).toString()),a(\"USER_LIMIT_REACHED_SCREEN\");return}if(t?.privyErrorCode===\"user_does_not_exist\"){a(\"ACCOUNT_NOT_FOUND_SCREEN\");return}t?.privyErrorCode===\"linked_to_another_user\"?e.detail=\"This account has already been linked to another user.\":t?.privyErrorCode===\"invalid_credentials\"?(e.retryable=!0,e.detail=\"Something went wrong. Try again.\"):t?.privyErrorCode===\"too_many_requests\"&&(e.detail=\"Too many requests. Please wait before trying again.\");y(e)}}else n>12e4&&(clearInterval(t),y({retryable:!0,message:\"Authentication failed\",detail:\"The request timed out. Try again.\"}))},2e3);return()=>{clearInterval(t),b.current.forEach(e=>clearTimeout(e))}},[]),(0,o.useEffect)(()=>{if(r&&e&&v&&n){if(d?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{a(\"AFFIRMATIVE_CONSENT_SCREEN\")},1400);return()=>clearTimeout(e)}v&&(rk(n,d?.embeddedWallets.createOnLogin)?b.current.push(setTimeout(()=>{c({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"FarcasterConnectStatusScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),a(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},1400)):b.current.push(setTimeout(()=>p({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400)))}},[v,r,e,n]),s.tq||w?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:i?l:void 0,onClose:p},\"header\"),(0,m.jsx)(ae,{}),s.gn?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sE,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:v,fail:!!f}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:f?f.message:\"Sign in with Farcaster\"}),(0,m.jsx)(iO,{children:f?f.detail:\"To sign in with Farcaster, please open the Warpcast app.\"})]}),j&&(0,m.jsx)(n3,{onClick:e=>{e.preventDefault(),window.location.href=j},children:\"Open Warpcast app\"})]})}):(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sk,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:v,fail:!!f}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:f?f.message:\"Signing in with Farcaster\"}),(0,m.jsx)(iO,{children:f?f.detail:\"This should only take a moment\"}),(0,m.jsx)(i3,{children:j&&s.tq&&(0,m.jsx)(sh,{text:\"Take me to Warpcast\",url:j,color:sj})})]})]})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:i?l:void 0,onClose:p},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(sk,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iM,{children:\"Sign in with Farcaster\"}),(0,m.jsx)(iO,{children:\"Scan with your phone's camera to continue.\"}),(0,m.jsx)(i5,{children:j?(0,m.jsx)(sb,{url:j,size:275,squareLogoElement:s_}):(0,m.jsx)(nX,{})}),(0,m.jsxs)(i3,{children:[(0,m.jsx)(iO,{children:\"Or copy this link and paste it into a phone browser to open the Warpcast app.\"}),j&&(0,m.jsx)(sc,{text:j,itemName:\"link\",color:sj})]})]})}),(0,m.jsx)(iN,{})]})},AWAITING_FARCASTER_SIGNER:()=>{let{lastScreen:e,navigateBack:t,data:r,app:n}=ny(),{requestFarcasterSignerStatus:i,closePrivyModal:a}=nZ(),[l,c]=(0,o.useState)(void 0),[d,h]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),g=(0,o.useRef)([]),f=r?.farcasterSigner;(0,o.useEffect)(()=>{let e=Date.now(),t=setInterval(async()=>{if(!f?.public_key){clearInterval(t),c({retryable:!0,message:\"Connect failed\",detail:\"Something went wrong. Please try again.\"});return}\"approved\"===f.status&&(clearInterval(t),h(!1),p(!0),g.current.push(setTimeout(()=>a({shouldCallAuthOnSuccess:!1,isSuccess:!0}),1400)));let r=await i(f?.public_key),n=Date.now()-e;\"approved\"===r.status?(clearInterval(t),h(!1),p(!0),g.current.push(setTimeout(()=>a({shouldCallAuthOnSuccess:!1,isSuccess:!0}),1400))):n>3e5?(clearInterval(t),c({retryable:!0,message:\"Connect failed\",detail:\"The request timed out. Try again.\"})):\"revoked\"===r.status&&(clearInterval(t),c({retryable:!0,message:\"Request rejected\",detail:\"The request was rejected. Please try again.\"}))},2e3);return()=>{clearInterval(t),g.current.forEach(e=>clearTimeout(e))}},[]);let y=f?.status===\"pending_approval\"?f.signer_approval_url:void 0;return s.tq||d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e?t:void 0,onClose:a},\"header\"),(0,m.jsx)(ae,{}),s.gn?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sT,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:u,fail:!!l}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:l?l.message:\"Add a signer to Farcaster\"}),(0,m.jsx)(iO,{children:l?l.detail:\"This will allow \"+n.name+\" to add casts, likes, follows, and more on your behalf.\"})]}),y&&(0,m.jsx)(n3,{onClick:e=>{e.preventDefault(),window.location.href=y},children:\"Open Warpcast app\"})]})}):(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sS,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:u,fail:!!l}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:l?l.message:\"Requesting signer from Farcaster\"}),(0,m.jsx)(iO,{children:l?l.detail:\"This should only take a moment\"}),(0,m.jsx)(i3,{children:y&&s.tq&&(0,m.jsx)(sh,{text:\"Take me to Warpcast\",url:y,color:sA})})]})]})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e?t:void 0,onClose:a},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(sS,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iM,{children:\"Add a signer to Farcaster\"}),(0,m.jsxs)(iO,{children:[\"This will allow \",n.name,\" to add casts, likes, follows, and more on your behalf.\"]}),(0,m.jsx)(i5,{children:f?.status===\"pending_approval\"?(0,m.jsx)(sb,{url:f.signer_approval_url,size:275,squareLogoElement:s_}):(0,m.jsx)(nX,{})}),(0,m.jsxs)(i3,{children:[(0,m.jsx)(iO,{children:\"Or copy this link and paste it into a phone browser to open the Warpcast app.\"}),f?.status===\"pending_approval\"&&(0,m.jsx)(sc,{text:f.signer_approval_url,itemName:\"link\",color:sA})]})]})}),(0,m.jsx)(iN,{})]})},AWAITING_PASSKEY_SYSTEM_DIALOGUE:()=>{let{lastScreen:e,currentScreen:t,navigateBack:r}=ny(),{loginWithPasskey:n,closePrivyModal:i}=nZ(),[a,s]=(0,o.useState)(\"loading\"),[l,c]=(0,o.useState)(null),d=(0,o.useRef)([]),h=e=>{d.current=[e,...d.current]};(0,o.useEffect)(()=>()=>{d.current.forEach(e=>clearTimeout(e)),d.current=[]},[]);let u=async()=>{s(\"loading\");try{await n(),s(\"success\")}catch(e){c(e),s(\"error\")}};return(0,o.useEffect)(()=>{\"success\"===a&&h(setTimeout(()=>{i({shouldCallAuthOnSuccess:!0,isSuccess:!0})},1400))},[a]),(0,o.useEffect)(()=>{u()},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e&&t!==e?r:void 0}),(0,m.jsxs)(ha,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:\"success\"===a,fail:\"error\"===a}),(0,m.jsx)(lu,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:(()=>{switch(a){case\"loading\":return\"Waiting for passkey\";case\"success\":return\"Success\";case\"error\":return\"Something went wrong\"}})()}),(0,m.jsx)(\"p\",{style:{whiteSpace:\"pre-wrap\"},children:(()=>{switch(a){case\"loading\":return`Please follow prompts to verify your passkey.\nYou will have to sign up with another method first to register a passkey for your account.`;case\"success\":return\"You've successfully logged in with your passkey.\";case\"error\":if(l instanceof eV){if(\"cannot_link_more_of_type\"===l.privyErrorCode)return\"Cannot link more passkeys to account.\";if(\"passkey_not_allowed\"===l.privyErrorCode)return`Passkey request timed out or rejected by user.\nYou will have to sign up with another method first to register a passkey for your account.`}return`An unknown error occurred.\nYou will have to sign up with another method first to register a passkey for your account.`}})()})]}),(()=>{switch(a){case\"loading\":case\"success\":return(0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Continue\"});case\"error\":return(0,m.jsx)(n3,{onClick:u,disabled:!1,children:\"Retry\"})}})()]}),(0,m.jsx)(iN,{})]})},PHANTOM_INTERSTITIAL_SCREEN:()=>{let{forkSession:e,ready:t,authenticated:r}=n$(),[n,i]=(0,o.useState)(\"\"),[a,s]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&r&&e().then(i)},[t,r]);let l=ho(n,!a),c={title:\"Redirecting to Phantom Mobile Wallet\",description:\"We'll take you to the Phantom Mobile Wallet app to continue your login experience.\",footnote:\"\"};return t&&(c.description=\"For the best experience, we'll automatically log you into the Phantom Mobile Wallet in-app browser.\",c.footnote=\"Once you're done, you can always return here and refresh to view your updated account.\"),a&&(c.title=\"Still here?\",c.description=\"You may need to install the Phantom mobile app.\",c.footnote=\"Once you're done, you can return here or connect via Phantom's in-app browser.\"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(ao,{title:c.title,description:c.description}),(0,m.jsxs)(i2,{children:[(0,m.jsx)(hs,{children:(0,m.jsx)(rX,{style:{width:\"72px\",height:\"72px\"}})}),(0,m.jsx)(n6,{href:l,onClick:()=>{setTimeout(()=>s(!0),1e3)},loading:t&&!l,children:a?\"Go to App Store\":\"Continue\"}),c.footnote?(0,m.jsx)(\"p\",{children:c.footnote}):null]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},LOGIN_FAILED_SCREEN:()=>{let{closePrivyModal:e}=nZ(),{navigate:t}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(dn,{style:{width:\"160px\",height:\"160px\",margin:\"0 auto 20px\"}}),(0,m.jsx)(ao,{title:\"Could not connect with wallet\",description:\"Please check that Phantom multichain is enabled and try again.\",style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\"}}),(0,m.jsxs)(i2,{children:[(0,m.jsx)(n3,{onClick:()=>t(\"LANDING\"),children:\"Try again\"}),(0,m.jsx)(n8,{onClick:()=>e(),children:\"Cancel\"})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},AWAITING_OAUTH_SCREEN:()=>{let{authenticated:e,logout:t,ready:r,user:n}=n$(),{app:i,setModalData:a,navigate:s,resetNavigation:l}=ny(),{getAuthMeta:c,initLoginWithOAuth:d,loginWithOAuth:h,updateWallets:u,setReadyToTrue:p,closePrivyModal:g,createAnalyticsEvent:f}=nZ(),[y,w]=(0,o.useState)(!1),[x,v]=(0,o.useState)(void 0),C=c()?.provider||\"google\",{name:b,component:_}=rc(C),j=nY();(0,o.useEffect)(()=>{h(C).then(e=>{w(!0),p(!0),e&&j(\"login\",\"onOAuthLoginComplete\",e)}).catch(e=>{if(p(!1),e?.privyErrorCode===\"allowlist_rejected\"){v(void 0),l(),s(\"ALLOWLIST_REJECTION_SCREEN\");return}if(e?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(e).toString()),v(void 0),l(),s(\"USER_LIMIT_REACHED_SCREEN\");return}if(e?.privyErrorCode===\"user_does_not_exist\"){v(void 0),l(),s(\"ACCOUNT_NOT_FOUND_SCREEN\");return}let{retryable:t,detail:r}=function(e,t){let r={detail:\"\",retryable:!1},n=t.charAt(0).toUpperCase()+t.slice(1);if(e?.privyErrorCode===\"linked_to_another_user\"&&(r.detail=\"This account has already been linked to another user.\"),e?.privyErrorCode===\"invalid_credentials\"&&(r.retryable=!0,r.detail=\"Something went wrong. Try again.\"),\"oauth_user_denied\"===e.privyErrorCode&&(r.detail=`Retry and check ${n} to finish connecting your account.`,r.retryable=!0),e?.privyErrorCode===\"too_many_requests\"&&(r.detail=\"Too many requests. Please wait before trying again.\"),e?.privyErrorCode===\"too_many_requests\"&&e.message.includes(\"provider rate limit\")){let e=rc(t).name;r.detail=`Request limit reached for ${e}. Please wait a moment and try again.`}if(e?.privyErrorCode===\"oauth_account_suspended\"){let e=rc(t).name;r.detail=`Your ${e} account is suspended. Please try another login method.`}return e?.privyErrorCode===\"cannot_link_more_of_type\"&&(r.detail=\"You cannot authorize more than one account for this user.\"),e?.privyErrorCode===\"oauth_unexpected\"&&t.startsWith(\"privy:\")&&(r.detail=\"Something went wrong. Please try again.\"),r}(e,C);v({retryable:t,detail:r,message:\"Authentication failed\"})}).finally(()=>{rd()})},[b,C]),(0,o.useEffect)(()=>{if(r&&e&&y&&n){if(i?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{s(\"AFFIRMATIVE_CONSENT_SCREEN\")},1400);return()=>clearTimeout(e)}if(rk(n,i?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{a({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),f({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,provider:C,screen:\"OAuthStatusScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),s(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},1400);return()=>clearTimeout(e)}{let e=setTimeout(()=>g({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return u(),()=>clearTimeout(e)}}},[r,e,y,n]);let k=y?`Successfully connected with ${b}`:x?x.message:`Verifying connection to ${b}`,E=\"\";return E=y?\"You’re good to go!\":x?x.detail:\"Just a few moments more\",(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsx)(ae,{}),(0,m.jsxs)(hi,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:y,fail:!!x}),(0,m.jsx)(_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:k}),(0,m.jsx)(\"p\",{children:E})]}),x&&x?.retryable?(0,m.jsx)(ie,{onClick:()=>{rd(),d(C),v(void 0)},disabled:!y&&!x?.retryable,children:\"Retry\"}):null]}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]})},CROSS_APP_AUTH_SCREEN:()=>{let{data:e,onUserCloseViaDialogOrKeybindRef:t}=ny(),{crossAppAuthFlow:r,updateWallets:n,closePrivyModal:i}=nZ(),[a,s]=(0,o.useState)({}),l={id:e?.crossAppAuth?.appId??\"\",name:e?.crossAppAuth?.name??\"app\",logoUrl:e?.crossAppAuth?.logoUrl},c=new eK(`There was an issue connecting your ${l.name} account. Please try again.`),d=new tI(async t=>{if(!e?.crossAppAuth?.popup){s({error:c});return}try{let n=await r({appId:t,popup:e.crossAppAuth.popup});s({data:n})}catch(t){t instanceof eK?s({error:t}):(t instanceof eG&&e?.crossAppAuth?.popup&&e.crossAppAuth.popup.close(),s({error:c}))}}),h=()=>{a.data&&(n(),e?.crossAppAuth?.onSuccess(a.data),i({shouldCallAuthOnSuccess:!0,isSuccess:!0})),e?.crossAppAuth?.onError(a.error??new eK(\"User canceled flow\")),i({shouldCallAuthOnSuccess:!1,isSuccess:!1})};t.current=h,(0,o.useEffect)(()=>{l.id.length&&d.execute(l.id)},[l.id]),(0,o.useEffect)(()=>{if(!a.data)return;let e=setTimeout(h,1400);return()=>clearTimeout(e)},[a.data]);let{title:u,subtitle:p}=(0,o.useMemo)(()=>a.data?{title:`Successfully connected with ${l.name}`,subtitle:\"You're good to go!\"}:a.error?{title:\"Authentication failed\",subtitle:a.error.message}:{title:`Connecting to ${l.name}`,subtitle:`Please check the pop-up from ${l.name} to continue`},[a,l.name]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:h}),(0,m.jsx)(ae,{}),(0,m.jsxs)(aJ,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:!!a.data,fail:!!a.error}),(0,m.jsx)(aX,{name:l.name,logoUrl:l.logoUrl})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:u}),(0,m.jsx)(\"p\",{children:p})]})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]})},ALLOWLIST_REJECTION_SCREEN:()=>{let{navigate:e,app:t}=ny(),r=t?.allowlistConfig.errorTitle||\"You don't have access to this app\",n=t?.allowlistConfig.errorDetail||\"Have you been invited?\",i=t?.allowlistConfig.errorCtaText||\"Try another account\";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsxs)(i0,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iX,{}),(0,m.jsx)(iJ,{style:{width:\"38px\",height:\"38px\",strokeWidth:\"1\",stroke:\"var(--privy-color-accent)\",fill:\"var(--privy-color-accent)\"}})]})}),(0,m.jsxs)(i1,{children:[\"string\"==typeof r?(0,m.jsx)(\"h3\",{children:r}):(0,m.jsx)(m.Fragment,{children:r}),\"string\"==typeof n?(0,m.jsx)(\"p\",{children:n}):(0,m.jsx)(m.Fragment,{children:n})]}),t?.allowlistConfig.errorCtaLink?(0,m.jsx)(n3,{as:\"a\",href:t.allowlistConfig.errorCtaLink,children:i}):(0,m.jsx)(n3,{onClick:()=>{e(\"LANDING\")},children:i})]})]})},ACCOUNT_NOT_FOUND_SCREEN:()=>{let{navigate:e,app:t}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsxs)(iE,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(ii,{color:\"var(--privy-color-warn-light)\"}),(0,m.jsx)(S.Z,{height:38,width:38,strokeWidth:2,stroke:\"var(--privy-color-warn)\"})]})}),(0,m.jsxs)(iA,{children:[(0,m.jsx)(\"h3\",{children:\"Account not found\"}),(0,m.jsxs)(\"p\",{children:[\"Please try logging in again or go to \",t.name,\" to create an account.\"]})]}),(0,m.jsx)(iy,{}),(0,m.jsx)(n3,{onClick:()=>e(\"LANDING\"),children:\"Try logging in again\"})]})]})},USER_LIMIT_REACHED_SCREEN:()=>{let{navigate:e}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsxs)(ug,{children:[(0,m.jsx)(uf,{children:(0,m.jsx)(um,{})}),(0,m.jsxs)(uy,{children:[(0,m.jsx)(\"h3\",{children:\"Unable to sign in\"}),(0,m.jsx)(\"p\",{children:\"This application has reached its user limit and cannot sign in new users.\"})]}),(0,m.jsx)(n3,{onClick:()=>{e(\"LANDING\")},children:\"Go back\"})]}),(0,m.jsx)(iP,{})]})},INSTALL_PHANTOM_SCREEN:()=>{let{navigateBack:e}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(cE,{}),(0,m.jsx)(at,{}),(0,m.jsxs)(iN,{children:[(0,m.jsx)(\"span\",{children:\"Still not sure? \"}),(0,m.jsx)(\"a\",{target:\"_blank\",href:\"https://ethereum.org/en/wallets/\",children:\"Learn more\"})]})]})},LINK_EMAIL_SCREEN:()=>{let{app:e}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Connect your email\",description:`Add your email to your ${e?.name} account`,icon:(0,m.jsx)(O.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(cM,{stacked:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},LINK_PHONE_SCREEN:()=>{let{app:e,currentScreen:t,data:r,navigate:n,setModalData:i}=ny(),{initLoginWithSms:a}=nZ();async function o({qualifiedPhoneNumber:e}){try{await a(e),n(\"AWAITING_PASSWORDLESS_CODE\")}catch(e){i({errorModalData:{error:e,previousScreen:r?.errorModalData?.previousScreen||t||\"LINK_PHONE_SCREEN\"}}),n(\"ERROR_SCREEN\")}}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Connect your phone\",description:`Add your number to your ${e?.name} account`,icon:(0,m.jsx)(I.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"40px\",width:\"40px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(cq,{stacked:!0,onSubmit:o,hideRecent:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},LINK_WALLET_SCREEN:()=>{let{linkingOrConnectingHint:e}=nZ(),{app:t}=ny(),r=e?`Link the wallet with address ${tm(e)} ${t?.name?`to ${t.name}.`:\".\"}`:`Link a wallet to your ${t?.name} account`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ao,{title:\"Link your wallet\",description:r}),(0,m.jsx)(ix,{children:(0,m.jsx)(aH,{connectOnly:!1})}),(0,m.jsx)(iP,{})]})},LINK_PASSKEY_SCREEN:()=>{let{user:e,unlinkPasskey:t}=n$(),{linkWithPasskey:r,closePrivyModal:n}=nZ(),i=e?.linkedAccounts.filter(e=>\"passkey\"===e.type),[a,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(\"\"),[d,h]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{0===i.length&&p(!1)},[i.length]);let g=async e=>(s(!0),await t(e).then(()=>h(!0)).catch(e=>{if(e instanceof eV&&\"missing_or_invalid_mfa\"===e.privyErrorCode){c(\"Cannot unlink a passkey enrolled in MFA\");return}c(\"Unknown error occurred.\")}).finally(()=>{s(!1)}));return d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:()=>n()},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(lv,{children:\"Passkey added\"}),(0,m.jsx)(lC,{children:\"From now on, you can use your passkey to log in.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:()=>n(),children:\"Done\"})}),(0,m.jsx)(iN,{})]}):u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>p(!1),onClose:()=>n()},\"header\"),(0,m.jsx)(lp,{passkeys:i,expanded:u,onUnlink:g,onExpand:()=>p(!0)}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:()=>n()},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsxs)(lg,{children:[(0,m.jsx)(lh,{}),(0,m.jsx)(lu,{})]})}),(0,m.jsx)(lv,{children:\"Secure your account with a passkey\"}),(0,m.jsx)(lb,{}),0===i.length?(0,m.jsx)(lm,{}):(0,m.jsx)(lp,{passkeys:i,expanded:u,onUnlink:g,onExpand:()=>p(!0)}),(0,m.jsxs)(iU,{style:{marginTop:\"12px\"},children:[l&&(0,m.jsx)(lf,{fail:!0,children:l}),(0,m.jsx)(n3,{onClick:()=>{s(!0),r().then(()=>h(!0)).catch(e=>{if(e instanceof eV){if(\"cannot_link_more_of_type\"===e.privyErrorCode){c(\"Cannot link more passkeys to account.\");return}if(\"passkey_not_allowed\"===e.privyErrorCode){c(\"Passkey request timed out or rejected by user.\");return}}c(\"Unknown error occurred.\")}).finally(()=>{s(!1)})},loading:a,children:\"Add new passkey\"})]}),(0,m.jsx)(iN,{})]})},UPDATE_EMAIL_SCREEN:()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Update your email\",description:\"Add the email address you'd like to use going forward. We'll send you a confirmation code\",icon:(0,m.jsx)(O.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(uh,{stacked:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}),UPDATE_PHONE_SCREEN:()=>{let{currentScreen:e,data:t,navigate:r,setModalData:n}=ny(),{user:i}=n$(),{initUpdatePhone:a}=nZ();async function o({qualifiedPhoneNumber:o}){try{if(!i?.phone?.number)throw Error(\"User is required to have an phone number to update it.\");await a(i?.phone?.number,o),r(\"AWAITING_PASSWORDLESS_CODE\")}catch(i){n({errorModalData:{error:i,previousScreen:t?.errorModalData?.previousScreen||e||\"LINK_PHONE_SCREEN\"}}),r(\"ERROR_SCREEN\")}}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Update your phone number\",description:\"Add the phone number you'd like to use going forward. We'll send you a confirmation code\",icon:(0,m.jsx)(I.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(cq,{stacked:!0,onSubmit:o,hideRecent:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},CONNECT_ONLY_LANDING_SCREEN:()=>{let{app:e}=ny(),{linkingOrConnectingHint:t}=nZ(),r=t?`Connect the wallet with address ${tm(t)} ${e?.name?`to ${e.name}.`:\".\"}`:`Connect a wallet to ${e?.name}`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(aa,{title:\"Connect your wallet\",description:r}),(0,m.jsx)(ix,{children:(0,m.jsx)(aH,{connectOnly:!0})}),e&&(0,m.jsx)(iT,{app:e,alwaysShowImplicitConsent:!0}),(0,m.jsx)(iP,{})]})},CONNECT_ONLY_AUTHENTICATED_SCREEN:()=>{let{app:e}=ny(),{linkingOrConnectingHint:t}=nZ(),r=t?`Connect the wallet with address ${tm(t)} ${e?.name?`to ${e.name}.`:\".\"}`:`Connect a wallet to ${e?.name}`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ao,{title:\"Connect your wallet\",description:r}),(0,m.jsx)(ix,{children:(0,m.jsx)(aH,{connectOnly:!0})}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN:()=>{let{app:e,setModalData:t,navigate:r,data:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),[a,s]=(0,o.useState)(\"\"),{embeddedWallets:l}=nh(),{authenticated:c}=n$(),{closePrivyModal:d}=nZ(),{onSuccess:h,onFailure:u,callAuthOnSuccessOnClose:p}=n.createWallet,g=e?.embeddedWallets.requireUserOwnedRecoveryOnCreate===!0,{createWallet:f}=oC(),[y,w]=(0,o.useState)(null),x=new tI(async()=>{try{let e=await f();if(!e)return;w(e),r(\"EMBEDDED_WALLET_CREATED_SCREEN\")}catch(e){s(e.message)}});return(0,o.useEffect)(()=>{if(!c){r(\"LANDING\"),u(Error(\"User must be authenticated before creating a Privy wallet\"));return}if(g)return t({...n,recoverySelection:{...n?.recoverySelection,isInAccountCreateFlow:!0}}),r(oi({walletAction:\"create\",showAutomaticRecovery:!1,availableRecoveryMethods:l.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:!1,isResettingPassword:!1}));x.execute()},[g,c]),i.current=()=>null,a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1}),(0,m.jsxs)(i6,{children:[(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Something went wrong\",description:a})]}),(0,m.jsx)(n3,{onClick:()=>{y?(h(y),d({shouldCallAuthOnSuccess:p})):(u(new e1(\"User wallet creation failed\")),d({shouldCallAuthOnSuccess:!1}))},children:\"Close\"}),(0,m.jsx)(ob,{})]}):(0,m.jsx)(a0,{})},EMBEDDED_WALLET_CREATED_SCREEN:()=>{let{user:e}=n$(),{closePrivyModal:t,isNewUserThisSession:r,updateWallets:n}=nZ(),{app:i,data:a,onUserCloseViaDialogOrKeybindRef:s}=ny(),{onSuccess:l,onFailure:c,callAuthOnSuccessOnClose:d}=a.createWallet,h=()=>{let r=rC(e);r?(n(),l(r)):c(Error(\"Failed to create wallet\")),t({shouldCallAuthOnSuccess:d})};return(0,o.useEffect)(()=>{let e=setTimeout(h,2500);return()=>clearTimeout(e)},[]),s.current=h,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:h}),(0,m.jsx)(ae,{}),(0,m.jsxs)(i6,{children:[(0,m.jsx)(W.Z,{fill:\"var(--privy-color-accent)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:r?`Welcome${i?.name?` to ${i?.name}`:\"\"}`:\"All set!\",description:r?\"You’ve successfully created an account.\":\"Your account is secured.\"})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_CONNECTING_SCREEN:()=>{let{authenticated:e,user:t,getAccessToken:r}=n$(),{closePrivyModal:n,createAnalyticsEvent:i,walletProxy:a}=nZ(),{navigate:s,data:l,setModalData:c,onUserCloseViaDialogOrKeybindRef:d}=ny(),h=(0,o.useMemo)(()=>Date.now(),[]),[u,p]=(0,o.useState)(!1),{onCompleteNavigateTo:g,onFailure:f,shouldForceMFA:y,address:w}=l?.connectWallet,x=e=>{u||(p(!0),f(\"string\"==typeof e?Error(e):e))};(0,o.useEffect)(()=>{let o=w?t?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&e.address===w):rC(t),d;return e&&o?a?((async()=>{let e=await r();if(!e)return x(\"User must be authenticated and have a Privy wallet before it can be connected\");try{await a.connect({accessToken:e,address:o.address}),y&&await a.verifyMfa({accessToken:e});let t=(Date.now()-h)/1e3;\"EMBEDDED_WALLET_KEY_EXPORT_SCREEN\"===g&&t<1?d=setTimeout(()=>{s(g,!1)},(1-t)*1e3):s(g,!1)}catch(e){if(a8(e)&&\"privy\"===o.recoveryMethod){let e=await r();if(!e)return x(\"User must be authenticated and have a Privy wallet before it can be recovered\");try{i({eventName:\"embedded_wallet_pinless_recovery_started\",payload:{walletAddress:o.address}}),(await a?.recover({address:o.address,accessToken:e,recoveryMethod:o.recoveryMethod}))?.address||x(Error(\"Unable to recover wallet\")),g?s(g):n({shouldCallAuthOnSuccess:!1}),i({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:o.address}}),s(g)}catch{x(\"An error has occurred, please try again.\")}}else a8(e)&&\"privy\"!==o.recoveryMethod?(c({...l,recoverWallet:{privyWallet:o,onCompleteNavigateTo:g,onFailure:f},recoveryOAuthStatus:{provider:o.recoveryMethod,action:\"recover\",isInAccountCreateFlow:!1}}),s(oa(o.recoveryMethod))):x(e)}})(),()=>clearTimeout(d)):void 0:x(\"User must be authenticated and have a Privy wallet before it can be connected\")},[e,t,a]);let v=()=>{x(\"User exited before wallet could be connected\"),n({shouldCallAuthOnSuccess:!1})};return d.current=v,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:v}),u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(i6,{children:[(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Something went wrong\",description:\"We’re on it. Please try again later.\"})]}),(0,m.jsx)(n3,{onClick:()=>n({shouldCallAuthOnSuccess:!1}),children:\"Close\"})]}):(0,m.jsx)(a0,{}),(0,m.jsx)(ol,{})]})},EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN:()=>{let[e,t]=(0,o.useState)(!0),{authenticated:r,getAccessToken:n}=n$(),{walletProxy:i,closePrivyModal:a,createAnalyticsEvent:s}=nZ(),{navigate:l,data:c,onUserCloseViaDialogOrKeybindRef:d}=ny(),[h,u]=(0,o.useState)(void 0),[p,g]=(0,o.useState)(\"\"),[f,y]=(0,o.useState)(!1),{privyWallet:w,onCompleteNavigateTo:x,onSuccess:v,onFailure:C}=c.recoverWallet,b=(e=\"User exited before their wallet could be recovered\")=>{a({shouldCallAuthOnSuccess:!1}),C(\"string\"==typeof e?new e1(e):e)};d.current=b,(0,o.useEffect)(()=>{if(!r||!w)return b(\"User must be authenticated and have a Privy wallet before it can be recovered\")},[r]);let _=e=>{e&&u(e)};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b}),(0,m.jsx)(ae,{}),(0,m.jsxs)(hc,{children:[(0,m.jsxs)(hl,{children:[(0,m.jsx)(eT.Z,{height:48,width:48,stroke:\"var(--privy-color-accent)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Enter your password\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Please provision your account on this new device. To continue, enter your recovery password.\"})]}),(0,m.jsxs)(\"div\",{children:[(0,m.jsxs)(oP,{children:[(0,m.jsx)(oS,{type:e?\"password\":\"text\",onChange:e=>_(e.target.value),disabled:f,style:{paddingRight:\"2.3rem\"}}),(0,m.jsx)(oI,{style:{right:\"0.75rem\"},children:e?(0,m.jsx)(oL,{onClick:()=>t(!1)}):(0,m.jsx)(oF,{onClick:()=>t(!0)})})]}),!!p&&(0,m.jsx)(hd,{children:p})]}),(0,m.jsxs)(\"div\",{children:[(0,m.jsxs)(i9,{children:[(0,m.jsx)(\"h4\",{children:\"Why is this necessary?\"}),(0,m.jsx)(\"p\",{children:\"You previously set a password for this wallet. This helps ensure only you can access it\"})]}),(0,m.jsx)(hh,{loading:f||!i,disabled:!h,onClick:async()=>{y(!0);let e=await n();if(!e||!w||null===h)return b(\"User must be authenticated and have a Privy wallet before it can be recovered\");try{s({eventName:\"embedded_wallet_recovery_started\",payload:{walletAddress:w.address}}),await i?.recover({address:w.address,accessToken:e,recoveryPin:h,recoveryMethod:w.recoveryMethod}),g(\"\"),x?l(x):a({shouldCallAuthOnSuccess:!1}),v?.(w),s({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:w.address}})}catch(e){a7(e)&&(\"invalid_recovery_pin\"===e.type||\"invalid_request_arguments\"===e.type)?g(\"Invalid recovery password, please try again.\"):g(\"An error has occurred, please try again.\")}finally{y(!1)}},warn:!1,hideAnimations:!w&&f,children:\"Recover your account\"})]})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN:()=>{let[e,t]=(0,o.useState)(!1),{navigate:r,lastScreen:n,navigateBack:i,setModalData:a,data:s,onUserCloseViaDialogOrKeybindRef:l}=ny(),{user:c}=n$(),{embeddedWallets:d}=nh(),{closePrivyModal:h}=nZ(),u=rC(c),p=null===u,{isInAccountCreateFlow:g,isResettingPassword:f}=s.recoverySelection,y=u&&\"privy\"!==u.recoveryMethod,w=y?(0,m.jsxs)(\"span\",{children:[\"Your account is currently secured using\",\" \",(0,m.jsx)(\"strong\",{children:hw[u?.recoveryMethod||\"user-passcode\"]}),\".\"]}):\"Select a method for logging in on new devices and recovering your account.\";function x(e){a({recoveryOAuthStatus:{provider:e,action:p?\"create-wallet\":\"set-recovery\",isInAccountCreateFlow:g}}),r(\"EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN\")}function v(){s?.setWalletPassword?.onFailure(Error(\"User exited set recovery flow\")),h({shouldCallAuthOnSuccess:s?.setWalletPassword?.callAuthOnSuccessOnClose??!1})}return l.current=v,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:v,backFn:e?()=>t(!1):n?i:void 0,infoFn:n||e?void 0:()=>t(!0)},\"header\"),e?(0,m.jsx)(hx,{onClose:()=>t(!1)}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(as,{title:y?\"Update backup method\":\"Secure your account\",icon:(0,m.jsx)(eR.Z,{width:48}),description:w}),(0,m.jsx)(hm,{children:d.userOwnedRecoveryOptions.filter(e=>![\"icloud\",\"google-drive\"].includes(u?.recoveryMethod||\"\")||e!==u?.recoveryMethod).sort().map(e=>{switch(e){case\"google-drive\":return(0,m.jsxs)(i_,{onClick:()=>x(\"google-drive\"),children:[(0,m.jsx)(hy,{children:(0,m.jsx)(hp,{style:{width:18}})}),\"Back up to Google Drive\"]},e);case\"icloud\":return(0,m.jsxs)(i_,{onClick:()=>x(\"icloud\"),children:[(0,m.jsx)(hy,{children:(0,m.jsx)(hu,{style:{width:24}})}),\"Back up to Apple iCloud\"]},e);case\"user-passcode\":return(0,m.jsxs)(i_,{onClick:()=>{r(on({isCreatingWallet:p,skipSplashScreen:!0}))},children:[(0,m.jsx)(hy,{children:(0,m.jsx)(eM.Z,{style:{width:18}})}),f?\"Reset your\":\"Set a\",\" password\"]},e);default:return null}})})]}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN:()=>{let{user:e,getAccessToken:t}=n$(),r=rC(e),{walletProxy:n,refreshUser:i,closePrivyModal:a}=nZ(),s=nh(),l=ny(),[c,d]=(0,o.useState)(!1),[h,u]=(0,o.useState)(null),[p,g]=(0,o.useState)(null);function f(){if(!c){if(p){l.data?.setWalletPassword?.onFailure(p),a();return}if(!h){l.data?.setWalletPassword?.onFailure(Error(\"User exited set recovery flow\")),a();return}}}async function y(){d(!0);try{let e=await t();if(!e||!n||!r)return;if(!(await n.setRecovery({recoveryMethod:\"privy\",address:r.address,accessToken:e})).address)throw Error(\"Unable to set recovery on wallet\");let o=await i();if(!o)throw Error(\"Unable to set recovery on wallet\");let s=rC(o);if(!s)throw Error(\"Unabled to set recovery on wallet\");u(!!o),setTimeout(()=>{l.data?.setWalletPassword?.onSuccess(s),a()},1400)}catch(e){g(e)}finally{d(!1)}}l.onUserCloseViaDialogOrKeybindRef.current=f;let w=!!(c||h);return p?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:f},\"header\"),(0,m.jsx)(hv,{$color:\"var(--privy-color-error)\",style:{alignSelf:\"center\"},children:(0,m.jsx)(U.Z,{height:38,width:38,stroke:\"var(--privy-color-error)\"})}),(0,m.jsx)(hC,{style:{marginTop:\"0.5rem\"},children:\"Something went wrong\"}),(0,m.jsx)(iy,{style:{minHeight:\"2rem\"}}),(0,m.jsx)(n4,{onClick:()=>g(null),children:\"Try again\"}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:f},\"header\"),(0,m.jsx)(eR.Z,{style:{width:\"3rem\",height:\"3rem\",alignSelf:\"center\"}}),(0,m.jsx)(hC,{style:{marginTop:\"0.5rem\"},children:\"Automatically secure your account\"}),(0,m.jsx)(cg,{style:{marginTop:\"1rem\"},children:\"When you log into a new device, you’ll only need to authenticate to access your account. Never get logged out if you forget your password.\"}),(0,m.jsx)(iy,{style:{minHeight:\"2rem\"}}),(0,m.jsx)(n4,{loading:c,disabled:w,onClick:()=>y(),children:h?\"Success\":\"Confirm\"}),(0,m.jsx)(n2,{disabled:w,onClick:()=>{let e=oi({walletAction:\"update\",availableRecoveryMethods:s.embeddedWallets.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:!1,isResettingPassword:r?.recoveryMethod===\"user-passcode\",showAutomaticRecovery:!1});l.navigate(e)},style:{marginTop:\"0.5rem\"},children:\"More recovery options\"}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN:()=>{let{logout:e}=n$(),{navigate:t,setModalData:r,data:n}=ny(),{recoveryOAuthFlow:i,closePrivyModal:a,createAnalyticsEvent:s}=nZ(),[l,c]=(0,o.useState)(!1),{provider:d,action:h,isInAccountCreateFlow:u}=n?.recoveryOAuthStatus,[p,g]=(0,o.useState)(void 0),[f,y]=(0,o.useState)(\"create-wallet\"===h);if(\"user-passcode\"===d)throw Error(\"RecoveryOAuthScreen should never be called with a wallet that specifies recoveryMethod: `user-passcode`\");let w=hf[d].name,x=hf[d].component,v=n?.recoverWallet?.onCompleteNavigateTo,C=new tI(async(e=\"create-wallet\")=>(y(!0),new Promise((t,r)=>{setTimeout(async()=>{try{let r=window.open();await i(d,e,r),c(!0),t()}catch{g({message:`${\"recover\"===e?\"Recovery\":\"Back up\"} with ${w} unsuccessful`,detail:\"recover\"===h?`Please verify that you are selecting the ${w} account associated with your backup.`:\"\",retryable:!0}),r()}},0)})));(0,o.useEffect)(()=>{\"recover\"!==h&&C.execute(u?\"create-wallet\":\"set-recovery\")},[]),(0,o.useEffect)(()=>{if(!l)return;let n=setTimeout(()=>{u?(r({createWallet:{onSuccess:()=>{},onFailure:t=>{s({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:t,screen:\"RecoveryOAuthScreen\"}}),e()},callAuthOnSuccessOnClose:!0}}),t(\"EMBEDDED_WALLET_CREATED_SCREEN\")):a({shouldCallAuthOnSuccess:!1})},1400);return()=>clearTimeout(n)},[l]);let b=(0,o.useCallback)(async()=>{await C.execute(\"recover\"),v?t(v):c(!0)},[]),_=\"google-drive\"===d?\"Google Drive\":\"Apple iCloud\",j=l&&`Successfully ${\"recover\"===h?\"recovered\":\"backed up\"} with ${_}.`||p&&p.message||`${\"recover\"===h?\"Recovering\":\"Backing up\"} with ${_}...`,k=p?p.detail:\"\";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),f?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(hm,{children:[(0,m.jsx)(as,{title:j,icon:(0,m.jsx)(x,{style:{width:\"38px\",height:\"38px\"}}),description:k}),p&&p?.retryable?(0,m.jsx)(n3,{onClick:()=>{rd(),g(void 0),\"create-wallet\"===h?C.execute(\"create-wallet\"):b()},disabled:!l&&!p?.retryable,children:\"Try again\"}):null]})}):(0,m.jsxs)(hm,{children:[(0,m.jsx)(as,{title:\"Confirm it's really you\",icon:(0,m.jsx)(x,{style:{height:42,width:48}}),description:`To confirm your identity, please log in to ${_} where your account is backed up.`}),(0,m.jsxs)(n3,{onClick:b,children:[\"Confirm with \",_]})]}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_KEY_EXPORT_SCREEN:()=>{let[e,t]=(0,o.useState)(null),{authenticated:r,user:n,getAccessToken:i}=n$(),{closePrivyModal:a,createAnalyticsEvent:s,clientAnalyticsId:l}=nZ(),{data:c,onUserCloseViaDialogOrKeybindRef:d}=ny(),h=rC(n),{onFailure:u,onSuccess:p,origin:g,appId:f,appClientId:y}=c.keyExport,w=e=>{a({shouldCallAuthOnSuccess:!1}),u(\"string\"==typeof e?Error(e):e)},x=()=>{a({shouldCallAuthOnSuccess:!1}),p(),s({eventName:\"embedded_wallet_key_export_completed\",payload:{walletAddress:h?.address}})};return(0,o.useEffect)(()=>{if(!r||!h)return w(\"User must be authenticated before exporting their wallet\");i().then(t,w)},[r,n]),d.current=x,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:x}),(0,m.jsxs)(op,{children:[(0,m.jsx)(as,{title:\"Transfer wallet\",description:(0,m.jsxs)(om,{children:[\"Either copy your private key or seed phrase to transfer your wallet.\",\" \",(0,m.jsx)(\"a\",{href:\"https://privy-io.notion.site/Transferring-your-account-9dab9e16c6034a7ab1ff7fa479b02828\",target:\"blank\",rel:\"noopener noreferrer\",children:\"Learn more\"})]})}),(0,m.jsxs)(og,{children:[(0,m.jsx)(U.Z,{color:\"var(--privy-color-warn)\"}),(0,m.jsx)(\"p\",{children:\"Never share your private key or seed phrase with anyone.\"})]}),(0,m.jsx)(of,{children:(0,m.jsx)(ow,{children:(0,m.jsxs)(oc,{children:[(0,m.jsx)(od,{children:\"Your wallet\"}),(0,m.jsxs)(oy,{children:[tm(h?.address,4,4),(0,m.jsx)(oh,{address:h?.address??\"\"})]})]})})}),(0,m.jsx)(\"div\",{style:{width:\"100%\"},children:e&&!!h&&(0,m.jsx)(ou,{origin:g,appId:f,appClientId:y,accessToken:e,clientAnalyticsId:l,wallet:h,dimensions:{height:\"44px\"}})})]}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_SIGN_REQUEST_SCREEN:()=>{let{authenticated:e}=n$(),{initializeWalletProxy:t,closePrivyModal:r}=nZ(),{navigate:n,data:i,onUserCloseViaDialogOrKeybindRef:a}=ny(),[s,l]=(0,o.useState)(!0),[c,h]=(0,o.useState)(\"\"),[u,p]=(0,o.useState)(),[g,f]=(0,o.useState)(null),[y,w]=(0,o.useState)(!1),x=null!==g;(0,o.useEffect)(()=>{e||n(\"LANDING\")},[e]),(0,o.useEffect)(()=>{t(3e4).then(e=>{l(!1),e||(h(\"An error has occurred, please try again.\"),p(new rW(new rI(c,d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))))})},[]);let{method:v,data:C,confirmAndSign:b,onSuccess:_,onFailure:j,uiOptions:k}=i.signMessage,E={title:k.title||\"Sign message\",description:k.description||\"Signing this message will not cost you any fees.\",buttonText:k.buttonText||\"Sign and continue\"},A=e=>{e?_(e):j(u||new rW(new rI(\"The user rejected the request.\",d.M_.E4001_USER_REJECTED_REQUEST.eipCode))),r({shouldCallAuthOnSuccess:!1}),setTimeout(()=>{f(null),h(\"\"),p(void 0)},200)};return a.current=()=>{A(g)},(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:()=>A(g)}),(0,m.jsx)(ae,{}),k.iconUrl&&\"string\"==typeof k.iconUrl?(0,m.jsx)(ul,{children:(0,m.jsx)(d8,{size:\"sm\",src:k.iconUrl,alt:\"app image\"})}):null,(0,m.jsx)(hC,{children:E.title}),(0,m.jsx)(cg,{children:E.description}),\"personal_sign\"===v&&(0,m.jsx)(ui,{children:ue(C)}),\"eth_signTypedData_v4\"===v&&(0,m.jsx)(un,{typedData:C}),\"solana_signMessage\"===v&&(0,m.jsx)(ui,{children:C}),(0,m.jsx)(uc,{}),(0,m.jsx)(uo,{fail:!0,children:c}),(0,m.jsx)(n4,{disabled:y||x||s,loading:y,onClick:async()=>{w(!0),h(\"\");try{let e=await b();f(e),w(!1),setTimeout(()=>{A(e)},1400)}catch(e){console.error(e),h(\"An error has occurred, please try again.\"),p(new rW(new rI(c,d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))),w(!1)}},children:y?\"Signing...\":x?(0,m.jsxs)(us,{children:[(0,m.jsx)(ss,{style:{height:\"0.9rem\",width:\"0.9rem\"},strokeWidth:2}),\" \",(0,m.jsx)(\"span\",{children:\"Success\"})]}):E.buttonText}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN:()=>{let{data:e,onUserCloseViaDialogOrKeybindRef:t,setModalData:r,navigate:i}=ny(),{rpcConfig:a,chains:s,closePrivyModal:l,walletProxy:c}=nZ(),{getAccessToken:h,user:u}=n$(),{wallets:p}=sH(),g=nh(),[f,y]=(0,o.useState)(e?.sendTransaction?.transactionRequest),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)(!1),[b,_]=(0,o.useState)(null),[j,k]=(0,o.useState)(null);if(!f||!e?.sendTransaction)return(0,m.jsx)(si,{error:Error(\"Invalid transaction request\"),onClick:()=>{e?.sendTransaction?.onFailure(h9),l({shouldCallAuthOnSuccess:!1})}});let E=(0,o.useMemo)(()=>f.from?p.find(e=>(0,n.Kn)(e.address)===(0,n.Kn)(f.from)):rC(u),[f.from]),A=(0,o.useMemo)(()=>s.find(e=>Number(e.id)===Number(f.chainId)),[f.chainId]),S=A?.nativeCurrency.symbol??\"ETH\",{action:T,amount:P,spender:N,isErc20Ish:R}=(0,o.useMemo)(()=>h3(f.data),[f.data]);(0,o.useEffect)(()=>{f.to&&A&&R&&h2({amount:P,address:f.to,chain:A,rpcConfig:g.rpcConfig,privyAppId:g.id}).then(x).catch(console.error)},[f.to,P,A]);let{tokenPrice:M,isTokenPriceLoading:O}=sz(f),I=(0,o.useMemo)(()=>tk(Number(f.chainId),s,a,{appId:g.id}),[f.chainId,a]),W=h8(f,I),L=()=>{if(!v)return b?e?.sendTransaction?.onSuccess(b.response):j||W?.errors[0]?e?.sendTransaction?.onFailure(j??W?.errors[0]??h9):e?.sendTransaction?.onFailure(new rW(new rI(\"The user rejected the request\",d.M_.E4001_USER_REJECTED_REQUEST.eipCode))),l({shouldCallAuthOnSuccess:!1})};t.current=L;let F=async()=>{C(!0);try{let t=await h();if(v||!t||!E||!c)return;let r=await sU(t,E.address,c,W?.tx??f,I,e.sendTransaction?.requesterAppId),n=await r.wait();_({receipt:sZ(n),response:r})}catch(e){console.warn({transaction:W?.tx??f,error:e}),k(e)}finally{C(!1)}},U=async()=>{if(!rC(u))return;if(!g.fundingConfig||0===g.fundingConfig.methods.length||!e.funding)throw Error(\"Funding wallet is not enabled\");let t=hk({fundingMethods:g.fundingConfig?.methods});r({...e,funding:{...e?.funding,methodScreen:t}}),i(t)},D=\"fiat-currency\"===g.embeddedWallets.priceDisplay.primary,Z=(0,en.uq)(W?.tx.value??0).add((0,en.uq)(W?.totalGasEstimate?.toBigInt()??0)).toHexString(),z=sY(Z,S),$=D&&M?sK(Z,M):void 0,H=sY(W?.totalGasEstimate?.toString()??0,S),B=D&&M?sK(W?.totalGasEstimate?.toString()??0,M):void 0,q=sY(W?.balance?.toString()??0,S,void 0,!0),V=D&&M?sK(W?.balance?.toString()??0,M):void 0,G=e.sendTransaction?.uiOptions?.transactionInfo?.title||(\"approve\"===T?\"Confirm address\":`Approve ${T}`),K=e.sendTransaction?.uiOptions?.description||`${g.name} wants your permission to approve the following transaction.`,Y=e.sendTransaction?.uiOptions?.transactionInfo?.contractInfo?.imgUrl?(0,m.jsx)(\"img\",{src:e.sendTransaction.uiOptions.transactionInfo.contractInfo.imgUrl,alt:e.sendTransaction.uiOptions.transactionInfo.contractInfo.imgAltText}):null,Q=W&&!W.errors[0]&&!W.hasFunds&&g.fundingConfig&&g.fundingConfig.methods.length>0,X=Q?\"Add funds\":e.sendTransaction?.uiOptions?.buttonText||\"Approve\";return b?.receipt?(0,m.jsx)(hX,{txn:W?.tx??f,onClose:L,receipt:b.receipt,transactionInfo:e.sendTransaction?.uiOptions.transactionInfo,tokenPrice:M,tokenSymbol:S,l1GasEstimate:W?.l1ExecutionFeeEstimate?.toString(),receiptHeader:e.sendTransaction?.uiOptions.successHeader,receiptDescription:e.sendTransaction?.uiOptions.successDescription}):j?(0,m.jsx)(hW,{transactionError:j,chainId:W?.tx.chainId??f.chainId,onClose:L,onRetry:({resetNonce:e})=>{k(null);let t={...W?.tx??f};e&&(t.nonce=void 0),y(t)}}):(0,m.jsx)(hE,{isSubmitting:v,submitError:j,isPreparing:!W,isTokenPriceLoading:O,isTokenContractInfoLoading:!w,prepareError:W?.errors[0],symbol:w?.symbol,chain:A,img:Y,title:G,subtitle:K,spender:N,total:f.value?$??z:void 0,fee:B??H,to:f.to,network:g.chains.find(e=>e.id===f.chainId)?.name??\"\",from:E?.address??\"\",cta:X,hasFunds:W?.hasFunds,action:T,balance:V??q,amount:w?.value??P,onClose:L,onClick:Q?U:F})},FUNDING_METHOD_SELECTION_SCREEN:()=>{let{wallets:e}=sH(),{app:t,navigate:r,data:i,setModalData:a}=ny(),s=i?.funding,l=(0,o.useRef)(null),[c,d]=(0,o.useState)(!1);(0,o.useEffect)(()=>{l.current&&l.current.style.setProperty(\"--funding-input-length\",Math.max(s.amount.length,1).toString())},[s.amount]);let h=t.fundingConfig?.methods.slice()??[],{tokenPrice:u}=sz({chainId:s.chain.id}),p=u?sG(s.amount,u):void 0,g=e.find(e=>(0,n.Kn)(e.address)===(0,n.Kn)(s.address)),f=g&&\"privy\"!==g.walletClientType?aS(g.walletClientType,g.connectorType,g.walletClientType):t.name,y=parseFloat(s.amount),w=!isNaN(y)&&y>0;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsxs)(\"h3\",{children:[\"Add funds to your\",\" \",f?.toLowerCase().endsWith(\"wallet\")?f:f+\" wallet\"]}),(0,m.jsx)(i7,{style:{marginTop:\"32px\"},children:(0,m.jsxs)(lN,{children:[(0,m.jsxs)(lR,{onClick:()=>l.current?.focus(),children:[(0,m.jsx)(lO,{ref:l,value:s.amount,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{let t=e.target.value;/^[0-9.]*$/.test(t)&&t.split(\".\").length-1<=1&&a({...i,funding:{...s,amount:t}})}}),(0,m.jsx)(lW,{children:s.chain.nativeCurrency.symbol}),!c&&(0,m.jsx)(lI,{children:(0,m.jsx)(eo.Z,{width:12,height:12})})]}),(0,m.jsx)(lL,{children:p&&w?p:\"\"})]})}),(0,m.jsxs)(lT,{children:[s.errorMessage&&(0,m.jsx)(ll,{children:s.errorMessage}),h.sort().map(e=>{switch(e){case\"moonpay\":return(0,m.jsxs)(i_,{disabled:!w,onClick:()=>{r(\"MOONPAY_PROMPT_SCREEN\")},children:[(0,m.jsx)(lP,{children:(0,m.jsx)(ld,{style:{width:24}})}),\"Moonpay\"]},e);case\"coinbase-onramp\":return s8(Number(s.chain.id))?(0,m.jsxs)(i_,{disabled:!w,onClick:()=>{r(\"COINBASE_ONRAMP_STATUS_SCREEN\")},children:[(0,m.jsx)(lP,{children:(0,m.jsx)(rT,{style:{width:24}})}),\"Coinbase Onramp\"]},e):null;case\"external\":return(0,m.jsxs)(i_,{disabled:!w,onClick:()=>{r(\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\")},children:[(0,m.jsx)(lP,{children:(0,m.jsx)(F.Z,{style:{width:24}})}),\"Transfer from wallet\"]},e)}}),(0,m.jsx)(lU,{disabled:!w,onClick:()=>r(\"FUNDING_MANUAL_TRANSFER_SCREEN\"),children:\"Send funds manually\"})]}),(0,m.jsx)(iP,{})]})},MOONPAY_PROMPT_SCREEN:()=>{let{app:e,data:t,navigate:r,setModalData:n}=ny(),{createAnalyticsEvent:i,getMoonpaySignedUrl:a}=nZ(),[s,l]=(0,o.useState)(null),c=t?.funding;return(0,o.useEffect)(()=>{!s&&c&&r();async function r(){if(!e.fundingConfig)return;let{signedUrl:r,externalTransactionId:i}=await a(c.address,{...e.fundingMethodConfig.moonpay,...c.moonpayConfigOverride,currencyCode:c.moonpayConfigOverride?.currencyCode??function(e){switch(e){case\"eip155:42161\":return\"ETH_ARBITRUM\";case\"eip155:43114\":return\"AVAX_CCHAIN\";case\"eip155:8453\":return\"ETH_BASE\";case\"eip155:42220\":return\"CELO_CELO\";case\"eip155:137\":return\"MATIC_POLYGON\";case\"eip155:1\":return\"ETH_ETHEREUM\";default:return console.warn(`Chain ${e} not supported by Moonpay, defaulting to Ethereum mainnet`),\"ETH_ETHEREUM\"}}(`eip155:${c.chain.id}`),quoteCurrencyAmount:c.moonpayConfigOverride?.quoteCurrencyAmount??parseFloat(c.amount)});l(r),n({moonpayStatus:{externalTransactionId:i},funding:t?.funding})}},[s,c]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(l3,{app:e,signedUrl:s,onContinue:()=>{i({eventName:\"sdk_fiat_on_ramp_started\",payload:{provider:ci}}),r(\"MOONPAY_STATUS_SCREEN\")}}),(0,m.jsx)(iP,{})]})},MOONPAY_STATUS_SCREEN:()=>{let{app:e,data:t}=ny(),{closePrivyModal:r}=nZ(),{externalTransactionId:n}=t?.moonpayStatus,i=function(e,t=!1){let[r,n]=(0,o.useState)(null),{createAnalyticsEvent:i}=nZ(),{data:a,navigate:s,setModalData:l}=ny(),c=a?.funding,d=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let r=setInterval(async()=>{if(e)try{let[a]=await cs(e,t),o=\"waitingAuthorization\"===a.status&&\"credit_debit_card\"===a.paymentMethod?\"pending\":a.status;if([\"failed\",\"completed\",\"awaitingAuthorization\"].includes(o)&&(i({eventName:s6,payload:{status:o,provider:ci,paymentMethod:a.paymentMethod,cardPaymentType:a.cardPaymentType,currency:a.currency?.code,baseCurrencyAmount:a.baseCurrencyAmount,quoteCurrencyAmount:a.quoteCurrencyAmount,feeAmount:a.feeAmount,extraFeeAmount:a.extraFeeAmount,networkFeeAmount:a.networkFeeAmount}}),clearInterval(r)),\"failed\"===o||\"serviceFailure\"===o){l({funding:{...c,errorMessage:\"Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet.\"}}),s(\"FUNDING_METHOD_SELECTION_SCREEN\");return}n(o)}catch(e){e.response?.status!==404&&(d.current+=1),d.current>=3&&(i({eventName:s6,payload:{status:\"serviceFailure\",provider:ci}}),clearInterval(r),l({funding:{...c,errorMessage:\"Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet.\"}}),s(\"FUNDING_METHOD_SELECTION_SCREEN\"))}},3e3);return()=>clearInterval(r)},[e,d]),r}(n||null,e.fundingMethodConfig.moonpay.useSandbox??!1);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:\"Fund account\"},\"header\"),(0,m.jsx)(cc,{status:i,onClickCta:r}),(0,m.jsx)(iP,{})]})},COINBASE_ONRAMP_STATUS_SCREEN:()=>{let{data:e,setModalData:t,navigate:r}=ny(),{closePrivyModal:n,createAnalyticsEvent:i,initCoinbaseOnRamp:a,getCoinbaseOnRampStatus:s}=nZ(),l=e?.funding,[c,d]=(0,o.useState)(!1),[h,u]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(c)return;d(!0);let e=async()=>{try{i({eventName:\"sdk_fiat_on_ramp_started\",payload:{provider:\"coinbase-onramp\"}});let e=window.open(void 0,void 0,s5({w:440,h:680})),t=function(e){let t=s7[e];if(!t)throw new eK(`Unsupported chainId: ${e} for Coinbase Onramp`);return t}(l.chain.id),r=await a({addresses:[{address:l.address,blockchains:[t]}]}),{url:n}=s9({input:r,amount:l.amount,blockchain:t});if(!e)throw Error(\"Unable to initiate Coinbase Onramp flow.\");e.location=n.toString();let o=0,c=!1;for(;o<le;){o++;let{status:t}=await s({partnerUserId:r.partner_user_id});if(\"success\"===t){c=!0;break}if(\"failure\"===t)throw Error(\"There was an error completing Coinbase Onramp flow.\");if(e.closed)throw Error(\"User exited Coinbase Onramp flow before transaction response.\");await new Promise(e=>setTimeout(e,1500))}if(!c)throw Error(\"Timed out waiting for transaction response from Coinbase Onramp.\");i({eventName:s6,payload:{status:\"success\",provider:\"coinbase-onramp\"}}),u(!0)}catch(e){console.error(e),i({eventName:s6,payload:{status:\"failure\",provider:\"coinbase-onramp\",error:e.message}}),t({funding:{...l,errorMessage:\"Something went wrong adding funds from Coinbase Onramp. Please try again or use another method to fund your wallet.\"}}),r(\"FUNDING_METHOD_SELECTION_SCREEN\")}finally{d(!1)}},n=setTimeout(()=>void e(),500);return()=>clearTimeout(n)},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:\"Fund account\"},\"header\"),(0,m.jsx)(lr,{isSucccess:h,onClickCta:n}),(0,m.jsx)(iP,{})]})},FUNDING_TRANSFER_FROM_WALLET_SCREEN:()=>{let{connectors:e}=nZ(),{app:t,setModalData:r,data:n,navigate:i}=ny(),[a,s]=(0,o.useState)(\"default\"),l=aB(t.appearance.walletList,e,!0,t.appearance.walletList,t.externalWallets.walletConnect.enabled),c=(0,m.jsx)(cx,{text:\"More wallets\",onClick:()=>s(\"overflow\")});return(0,o.useEffect)(()=>{r({...n,externalConnectWallet:{onCompleteNavigateTo:\"FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN\"}})},[]),\"overflow\"===a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>s(\"default\")},\"header\"),(0,m.jsxs)(ix,{children:[(0,m.jsx)(cg,{style:{color:\"var(--privy-color-foreground-3)\",textAlign:\"left\"},children:\"More wallets\"}),l]}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(as,{title:\"Transfer from wallet\",description:\"Connect a wallet to deposit funds or send funds manually to your wallet address.\"}),(0,m.jsxs)(ix,{children:[...l.length>3?l.slice(0,2):l,l.length>3&&c,(0,m.jsx)(cw,{onClick:()=>i(\"FUNDING_MANUAL_TRANSFER_SCREEN\"),children:\"Send funds manually\"})]}),(0,m.jsx)(iP,{})]})},FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN:()=>{let{chains:e,rpcConfig:t,appId:r,closePrivyModal:n}=nZ(),{navigate:i,setModalData:a,app:s,data:d}=ny(),[h,u]=(0,o.useState)(null),[p,g]=(0,o.useState)(null),[f,y]=(0,o.useState)(null),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)(!1),b=d?.funding&&(0,et.vz)(d.funding.amount,\"ether\").toHexString(),_=d?.funding&&d.funding.chain.id,{wallets:j}=sH(),{tokenPrice:k,isTokenPriceLoading:E}=sz({chainId:h?.chainId&&sB(h.chainId)?sB(h.chainId):void 0}),A=async e=>{for(let t of e)_&&sB(t.chainId)!==_&&await t.switchChain(_)},S=new tI(async()=>{let n=j[0];if(!n){console.error(\"Connected wallet wasn't found.\"),i(\"ERROR_SCREEN\",!1);return}if(u(n),!_){console.error(`Chain ID not found for input ${d?.funding?.chain.id}.`),i(\"ERROR_SCREEN\",!1);return}let a=d?.funding?.address;if(!a){console.error(\"Address to fund not found.\"),i(\"ERROR_SCREEN\",!1);return}g(a);let o=tk(_,e,t,{appId:r}),s={from:n.address,to:p||void 0,value:b,chainId:_},h=await (0,l.vT)(n.address,s,o),{totalGasEstimate:m}=await (0,c.gM)(h,o),{balance:f,hasSufficientFunds:w}=await sD(n.address,h,m,o);if(x({gas:m.toHexString(),balance:f.toHexString()}),!w){y(new eK(`Wallet ${tm(n.address)} does not have enough funds.`,void 0,\"insufficient_balance\"));return}await A([n]);try{let e=await (await n.getEthersProvider()).getSigner(),{wait:t}=await e.sendTransaction(h);await t(1),C(!0)}catch(e){y(e)}});(0,o.useEffect)(()=>{S.execute()},[]),(0,o.useEffect)(()=>{f&&(a({funding:d?.funding,sendTransaction:d?.sendTransaction,errorModalData:{error:f,previousScreen:\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\"}}),i(\"ERROR_SCREEN\",!1))},[f]);let T=h?aS(h.walletClientType,h.connectorType,h.walletClientType)||\"wallet\":null,P=!h||!w||E||!d?.funding||!b,N=P?void 0:sQ([w.gas,b]),R=N&&k?sK(N,k):void 0,M=N?sY(N,\"ETH\"):void 0,O=w&&k?sK(w.gas,k):void 0,I=w?sY(w.gas,\"ETH\"):void 0;return(0,o.useEffect)(()=>{if(!v)return;let e=setTimeout(n,2500);return()=>clearTimeout(e)},[v]),P?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(sN,{}),(0,m.jsx)(\"div\",{style:{marginTop:\"1rem\"}}),(0,m.jsx)(iP,{})]}):v?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(ae,{}),(0,m.jsxs)(i6,{children:[(0,m.jsx)(er.Z,{color:\"var(--privy-color-success)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Success!\",description:`You\\u2019ve successfully added ${(0,et.bM)(b,\"ether\")} ETH to your ${s.name} wallet. It may take a minute before the funds are available to use.`})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(sN,{}),(0,m.jsx)(i3,{style:{marginTop:\"16px\"},children:(0,m.jsx)(aC,{icon:aT(h.walletClientType,h.connectorType,h.walletClientType),name:h.walletClientType})}),(0,m.jsx)(as,{style:{marginTop:\"8px\",marginBottom:\"12px\"},title:`Confirming with ${T}`}),w&&p&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sW,{children:[(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Total\"}),(0,m.jsx)(sF,{children:R||M})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"To\"}),(0,m.jsx)(sF,{children:tm(p)})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Network\"}),(0,m.jsx)(sF,{children:(0,m.jsxs)(sJ,{children:[aP(d.funding.chain.id),\" \",d.funding.chain.name]})})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Estimated fee\"}),(0,m.jsx)(sF,{children:O||I})]})]})}),(0,m.jsx)(an,{height:24}),(0,m.jsx)(iP,{})]})},FUNDING_MANUAL_TRANSFER_SCREEN:()=>{let{wallets:e}=sH(),{app:t,data:r,setModalData:n,navigate:i,lastScreen:a}=ny(),{chains:s,rpcConfig:l,appId:c,closePrivyModal:d}=nZ(),[h,u]=(0,o.useState)(\"default\"),[p,g]=(0,o.useState)(void 0),f=r?.funding,{tokenPrice:y}=sz({chainId:f.chain.id}),w=y?sG(f.amount,y):void 0,x=e.find(e=>tm(e.address)===tm(f.address)),v=x&&\"privy\"!==x.walletClientType?aS(x.walletClientType,x.connectorType,x.walletClientType):t.name;if(!f)return n({errorModalData:{error:Error(\"Couldn't find funding config\"),previousScreen:a||\"FUNDING_METHOD_SELECTION_SCREEN\"},funding:r?.funding,sendTransaction:r?.sendTransaction}),i(\"ERROR_SCREEN\"),(0,m.jsx)(m.Fragment,{});(0,o.useEffect)(()=>{let e=tk(f.chain.id,s,l,{appId:c});function t(){e.getBalance(f.address).then(e=>g(parseFloat((0,et.bM)(e,\"ether\")))).catch(()=>g(void 0))}let r=setInterval(t,2e3);return t(),()=>clearInterval(r)},[]);let C=(0,o.useMemo)(()=>void 0!==p&&p>=parseFloat(f.amount),[p,f.amount]),b=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(lq,{title:\"Your wallet\",errMsg:void 0,isLoading:!f||void 0===p,isPulsing:!C,balance:`${void 0!==p?p.toPrecision(2):\"\"} ETH`,address:f.address,statusColor:C?\"green\":\"gray\"}),C&&(0,m.jsx)(lZ,{onClick:()=>d(),children:\"Close\"})]});return\"qr-code\"===h?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>u(\"default\")}),(0,m.jsxs)(i7,{style:{gap:\"24px\",marginBottom:\"24px\"},children:[(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iM,{children:\"Scan QR code\"}),(0,m.jsxs)(iO,{children:[\"Scan this code using your mobile wallet to send funds to your \",v,\" \",\"wallet.\"]})]}),(0,m.jsx)(sb,{url:f.address,size:200,squareLogoElement:lG}),b]}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(as,{title:\"Send funds\",description:\"Send funds directly to your wallet by copying your wallet address or scanning a QR code.\"}),(0,m.jsxs)(i7,{style:{gap:\"16px\"},children:[(0,m.jsxs)(lQ,{children:[(0,m.jsx)(ed.Z,{height:\"20px\",width:\"20px\",color:\"var(--privy-color-accent-light)\"}),(0,m.jsxs)(lX,{children:[\"Make sure to send on \",f.chain.name,\".\"]})]}),(0,m.jsxs)(lJ,{children:[(0,m.jsx)(an,{height:16}),(0,m.jsxs)(lN,{children:[(0,m.jsxs)(lR,{children:[(0,m.jsx)(lM,{children:f.amount}),(0,m.jsx)(lW,{children:f.chain.nativeCurrency.symbol})]}),(0,m.jsx)(lL,{children:w?`${w} USD`:\"...\"}),(0,m.jsxs)(lF,{children:[aP(f.chain.id),f.chain.name]})]}),(0,m.jsx)(an,{height:8}),(0,m.jsxs)(lY,{children:[(0,m.jsx)(lK,{text:f.address}),(0,m.jsx)(l1,{onClick:()=>u(\"qr-code\"),children:(0,m.jsxs)(l0,{children:[(0,m.jsx)(eh.Z,{height:\"16px\",width:\"16px\"}),\"Scan code\"]})})]})]}),b]}),(0,m.jsx)(an,{height:16}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN:()=>{let{closePrivyModal:e}=nZ(),{data:t,setModalData:r,navigate:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),{onSuccess:a,onFailure:o}=t.setWalletPassword,s=()=>{o(new e1(\"Exited before password was added to wallet\")),e({shouldCallAuthOnSuccess:!1})};return i.current=s,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:s}),(0,m.jsx)(ae,{}),(0,m.jsxs)(i6,{children:[(0,m.jsxs)(ar,{children:[(0,m.jsx)(X.Z,{stroke:\"var(--privy-color-accent)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(ai,{style:{width:24,height:24,position:\"absolute\",bottom:0,right:0},children:(0,m.jsx)(J.Z,{width:\"12px\",height:\"12px\",fill:\"white\"})})]}),(0,m.jsxs)(as,{title:\"Secure Your Account\",children:[\"Please set a password to secure your account.\",(0,m.jsx)(\"p\",{children:\"Losing access to this password and this device will make your account inaccessible.\"})]})]}),(0,m.jsx)(n3,{onClick:()=>{r({createWallet:{onFailure:o,onSuccess:a,callAuthOnSuccessOnClose:!1,addPasswordToExistingWallet:!0}}),n(\"EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN\")},children:\"Add password\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN:()=>{let[e,t]=(0,o.useState)(null),[r,n]=(0,o.useState)(!1),[i,a]=(0,o.useState)(null),[s,l]=(0,o.useState)(\"\"),{authenticated:c,getAccessToken:d,user:h}=n$(),{walletProxy:u,refreshUser:p,closePrivyModal:g,createAnalyticsEvent:f}=nZ(),{app:y,navigate:w,data:x,onUserCloseViaDialogOrKeybindRef:v}=ny(),{onSuccess:C,onFailure:b}=x.createWallet,_=rC(h),j=e?.recoveryMethod===\"user-passcode\",k=_?.recoveryMethod===\"user-passcode\";(0,o.useEffect)(()=>{c||(w(\"LANDING\"),b(new e2(\"User must be authenticated before setting a password on a Privy wallet\")))},[c]);let E=()=>{if(i){b(i),g({shouldCallAuthOnSuccess:!1});return}if(!j){b(new e1(\"Exited before password was added to wallet\")),g({shouldCallAuthOnSuccess:!1});return}C(e),g({shouldCallAuthOnSuccess:!1})};v.current=E;let A=async()=>{let e=await d();if(e&&_?.address&&s&&u)try{if(f({eventName:\"embedded_wallet_set_recovery_started\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k}}),!(await u.setRecovery({accessToken:e,address:_.address,recoveryPassword:s,recoveryMethod:\"user-passcode\"})).address){a(new e1(\"Error setting password on privy wallet\")),f({eventName:\"embedded_wallet_set_recovery_failed\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k,reason:\"error setting password\"}});return}let r=await p(),n=rC(r);if(!n){a(new e1(\"Error setting password on privy wallet\")),f({eventName:\"embedded_wallet_set_recovery_failed\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k,reason:\"wallet disconnected\"}});return}t(n),f({eventName:\"embedded_wallet_set_recovery_completed\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k}})}catch(e){console.warn(e),a(e instanceof Error?e:Error(\"Error setting password on privy wallet\")),f({eventName:\"embedded_wallet_set_password_failed\",payload:{walletAddress:_.address,reason:e}})}},S=async()=>{j?(C(e),g({shouldCallAuthOnSuccess:!1})):(n(!0),a(null),await A(),n(!1))};return(0,m.jsx)(sr,{appName:y?.name||\"privy\",config:{initiatedBy:\"user\",onCancel:E},error:i?\"An error has occurred, please try again.\":void 0,buttonLoading:r,buttonHideAnimations:!1,password:s,isResettingPassword:k,onPasswordGenerate:()=>l(o3()),onPasswordChange:l,onSubmit:S,onClose:E})},EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN:()=>{let{app:e,navigate:t,data:r,onUserCloseViaDialogOrKeybindRef:n}=ny(),[i,a]=(0,o.useState)(\"\"),[s,l]=(0,o.useState)(!1),[c,d]=(0,o.useState)(),[h,u]=(0,o.useState)(null),{authenticated:p}=n$(),{closePrivyModal:g,isNewUserThisSession:f,initializeWalletProxy:y}=nZ(),{onSuccess:w,onFailure:x,callAuthOnSuccessOnClose:v}=r.createWallet,{createWallet:C}=oC(),[b,_]=(0,o.useState)(null),j=new tI(async()=>{try{let e=await C(c);if(!e)return;_(e),f?t(\"EMBEDDED_WALLET_CREATED_SCREEN\"):(w(e),g({shouldCallAuthOnSuccess:v}))}catch(e){a(e.message)}});(0,o.useEffect)(()=>{h||y(3e4).then(e=>u(e))},[h]),(0,o.useEffect)(()=>{if(!p){t(\"LANDING\"),x(Error(\"User must be authenticated before creating a Privy wallet\"));return}},[p]),n.current=()=>null;let k=async()=>(l(!0),j.execute().then(()=>new Promise(e=>setTimeout(e,250))).finally(()=>l(!1)));return(0,m.jsx)(sr,{config:{initiatedBy:\"automatic\"},appName:e?.name||\"privy\",loading:!h,buttonLoading:s,buttonHideAnimations:!b&&s,isResettingPassword:!1,error:i,password:c||\"\",onClose:()=>{b&&b?.recoveryMethod!==\"user-passcode\"?(x(new e1(\"User created a wallet but failed to set a password for it\")),g({shouldCallAuthOnSuccess:!1})):b?(w(b),g({shouldCallAuthOnSuccess:v})):(x(new e1(\"User wallet creation failed\")),g({shouldCallAuthOnSuccess:!1}))},onPasswordChange:d,onPasswordGenerate:()=>d(o3()),onSubmit:k})},MFA_ENROLLMENT_FLOW_SCREEN:()=>{let{user:e,enrollInMfa:t}=n$(),[r,n]=(0,o.useState)(null),{unenrollWithSms:i,unenrollWithTotp:a,unenrollWithPasskey:s}=da(),{app:l,ready:c,data:d,onUserCloseViaDialogOrKeybindRef:h}=ny(),{closePrivyModal:u}=nZ(),{promptMfa:p}=di(),{initEnrollmentWithTotp:g}=da(),[f,y]=(0,o.useState)(!1),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)(null),b=()=>{u({shouldCallAuthOnSuccess:!0}),t(!1),setTimeout(()=>{n(null),x(null)},500)},{initEnrollmentWithPasskey:_,submitEnrollmentWithPasskey:j}=da(),[k,E]=(0,o.useState)(!1),[A,S]=(0,o.useState)(null);h.current=b;let T=e?.mfaMethods.includes(\"sms\"),P=!!e?.phone,N=e?.mfaMethods.includes(\"totp\"),R=e?.mfaMethods.includes(\"passkey\"),M=T||N||R,O=e?.linkedAccounts.filter(e=>\"passkey\"===e.type).map(e=>e.credentialId)??[];function I(){n(null),x(null)}async function W(){E(!0);try{await _(),await j({credentialIds:O})}catch(e){S(e)}finally{E(!1)}}async function L(e){if(await p().catch(S),\"totp\"===e){x(e),C(null),g().then(e=>{C(e)}).catch(()=>{C(null),I()});return}if(\"passkey\"===e&&1===O.length)return await W();x(e)}if((0,o.useEffect)(()=>{M&&y(!0)},[M]),!c||!e||!l)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(ds,{})}),(0,m.jsx)(iI,{children:(0,m.jsx)(nX,{})}),(0,m.jsx)(iN,{})]});async function F(){n(null);try{await i()}catch{n(null)}}async function U(){n(null);try{await a()}catch{n(null)}}async function D(){n(null);try{await p(),await s()}catch{n(null)}}if(\"sms\"===r)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:I,onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Remove SMS verification?\"}),(0,m.jsxs)(iO,{children:[\"MFA adds an extra layer of security to your \",l?.name,\" account. Make sure you have other methods to secure your account.\"]}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{warn:!0,onClick:F,children:\"Remove SMS for MFA\"})}),(0,m.jsx)(iN,{})]});if(\"totp\"===r)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:I,onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eC.Z,{})})}),(0,m.jsx)(iM,{children:\"Remove Authenticator App verification?\"}),(0,m.jsxs)(iO,{children:[\"MFA adds an extra layer of security to your \",l?.name,\" account. Make sure you have other methods to secure your account.\"]}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{warn:!0,onClick:U,children:\"Remove Authenticator App for MFA\"})}),(0,m.jsx)(iN,{})]});if(\"passkey\"===r)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:I,onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ej.Z,{})})}),(0,m.jsx)(iM,{children:\"Are you sure you want to remove passkey verification?\"}),(0,m.jsx)(iO,{children:\"This will disable any passkeys you have set up for verification. You’ll still be able to login with your passkeys if you’ve set up passkey login.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{warn:!0,onClick:D,children:\"Yes, remove\"})}),(0,m.jsx)(iN,{})]});if(0===d.mfaEnrollmentFlow.mfaMethods.length&&!M)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ek.Z,{})})}),(0,m.jsx)(iM,{children:\"Add more security\"}),(0,m.jsxs)(iO,{children:[l?.name,\" does not have any verification methods enabled.\"]}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:b,children:\"Close\"})}),(0,m.jsx)(iN,{})]});let Z=!M&&!f;return Z?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ek.Z,{})})}),(0,m.jsx)(iM,{children:\"Transaction Protection\"}),(0,m.jsx)(iO,{children:\"Set up transaction protection to add an extra layer of security to your account\"}),(0,m.jsxs)(iW,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(ec.Z,{})}),\"Enable 2-Step verification for your \",l?.name,\" wallet.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eb.Z,{})}),\"You'll be prompted to authenticate to complete transactions.\"]})]}),(0,m.jsxs)(iU,{children:[(0,m.jsx)(n3,{onClick:()=>y(!0),children:\"Continue\"}),(0,m.jsx)(n8,{onClick:b,children:\"Not now\"})]}),(0,m.jsx)(iN,{})]}):\"sms\"===w?(0,m.jsx)(dk,{onComplete:b,onReset:I,onClose:b}):\"totp\"===w&&v?(0,m.jsx)(dA,{onComplete:b,onClose:b,onReset:I,totpInfo:v}):\"passkey\"===w?(0,m.jsx)(dd,{onComplete:b,onReset:I,onClose:b}):(0,m.jsx)(dc,{showIntro:Z,userMfaMethods:e.mfaMethods,appMfaMethods:l.mfa.methods,userHasAuthSms:P,onBackToIntro:function(){y(!1)},handleSelectMethod:L,isTotpLoading:\"totp\"===w&&!v,isPasskeyLoading:k,error:A,onClose:b,setRemovingMfaMethod:n})},CAPTCHA_SCREEN:()=>{let{lastScreen:e,currentScreen:t,data:r,navigateBack:n,navigate:i,setModalData:a}=ny(),{status:s,token:l,waitForResult:c,reset:d,execute:h}=nF(),u=(0,o.useRef)([]),p=e=>{u.current=[e,...u.current]},[g,f]=(0,o.useState)(!0);(0,o.useEffect)(()=>(p(setTimeout(f,1e3,!1)),()=>{u.current.forEach(e=>clearTimeout(e)),u.current=[]}),[]);let[y,w]=(0,o.useState)(\"\"),[x,v]=(0,o.useState)(\"Checking that you are a human...\"),[C,b]=(0,o.useState)((0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Continue\"})),[_,j]=(0,o.useState)(!1),[k,E]=(0,o.useState)(3),A=r?.captchaModalData,S=async t=>{try{await A?.callback(t),A?.onSuccessNavigateTo&&i(A?.onSuccessNavigateTo,!1)}catch(t){if(t instanceof nW)return;a({errorModalData:{error:t,previousScreen:e||\"LANDING\"}}),i(A?.onErrorNavigateTo||\"ERROR_SCREEN\",!1)}};(0,o.useEffect)(()=>{\"success\"===s?p(setTimeout(async()=>{let e=await c();!e||A?.userIntentRequired||S(e)},1e3)):\"ready\"===s&&p(setTimeout(()=>{\"ready\"===s&&h()},500))},[s]),(0,o.useEffect)(()=>{if(!g)switch(s){case\"success\":w(\"Success!\"),v(\"CAPTCHA passed successfully.\"),b((0,m.jsx)(n3,{onClick:()=>{j(!0),S(l)},disabled:!A?.userIntentRequired,loading:_,children:A?.userIntentRequired?\"Continue\":\"Continuing...\"}));break;case\"loading\":w(\"\"),v(\"Checking that you are a human...\"),b((0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Continue\"}));break;case\"error\":w(\"Something went wrong\"),k<=0?(v(\"If you use an adblocker or VPN, try disabling and re-attempting.\"),b(null)):(v(\"You did not pass CAPTCHA. Please try again.\"),b((0,m.jsx)(n3,{onClick:T,children:\"Retry\"})))}},[s,g,_]);let T=async()=>{if(k<=0)return;E(e=>e-1),d(),h();let e=await c();!e||A?.userIntentRequired||S(e)};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e&&t!==e?n:void 0}),(0,m.jsxs)(av,{children:[\"success\"===s?(0,m.jsx)(W.Z,{fill:\"var(--privy-color-success)\",width:\"64px\",height:\"64px\"}):\"error\"===s?(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}):(0,m.jsx)(aw,{}),(0,m.jsxs)(i8,{children:[y?(0,m.jsx)(\"h3\",{children:y}):null,(0,m.jsx)(\"p\",{children:x})]}),C]}),(0,m.jsx)(iN,{})]})},ERROR_SCREEN:()=>{let{navigate:e,navigateBack:t,data:r,lastScreen:n,currentScreen:i}=ny(),a=r?.errorModalData?.previousScreen||(n===i?void 0:n);return(0,m.jsx)(si,{error:r?.errorModalData?.error||Error(),backFn:()=>a?e(a,!1):t(),onClick:()=>e(a||\"LANDING\",!1)})},IN_APP_BROWSER_LOGIN_NOT_POSSIBLE:()=>{let{closePrivyModal:e}=nZ();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(cv,{children:(0,m.jsx)(N.Z,{style:{width:32,height:32}})}),(0,m.jsx)(ao,{title:\"Could not log in with provider\",description:\"It looks like you're using an in-app browser.  To log in, please try again using an external browser.\",style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\"}}),(0,m.jsx)(i2,{children:(0,m.jsx)(n3,{onClick:()=>e(),children:\"Close\"})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},AFFIRMATIVE_CONSENT_SCREEN:()=>{let{user:e,logout:t}=n$(),{app:r,onUserCloseViaDialogOrKeybindRef:n,setModalData:i,navigate:a}=ny(),{acceptTerms:o,closePrivyModal:s,createAnalyticsEvent:l}=nZ(),c=e=>{e?.preventDefault(),s({shouldCallAuthOnSuccess:!1}),t()};n.current=c;let d=async n=>{n.preventDefault(),await o(),e&&rk(e,r?.embeddedWallets?.createOnLogin)?(i({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),l({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"AffirmativeConsentScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),a(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")):s()};return(0,m.jsx)(iY,{termsAndConditionsUrl:r?.legal.termsAndConditionsUrl,privacyPolicyUrl:r?.legal.privacyPolicyUrl,onAccept:d,onDecline:c})},TELEGRAM_AUTH_SCREEN:()=>{let{authenticated:e,logout:t,ready:r,user:n}=n$(),{app:i,setModalData:a,navigate:s,resetNavigation:l}=ny(),{initLoginWithTelegram:c,loginWithTelegram:d,updateWallets:h,setReadyToTrue:u,closePrivyModal:p,createAnalyticsEvent:g}=nZ(),[f,y]=(0,o.useState)(!1),[w,x]=(0,o.useState)(void 0);async function v(){try{await d(),y(!0),u(!0)}catch(r){if(r?.privyErrorCode===\"allowlist_rejected\"){x(void 0),l(),s(\"ALLOWLIST_REJECTION_SCREEN\");return}if(r?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(r).toString()),x(void 0),l(),s(\"USER_LIMIT_REACHED_SCREEN\");return}if(r?.privyErrorCode===\"user_does_not_exist\"){x(void 0),l(),s(\"ACCOUNT_NOT_FOUND_SCREEN\");return}let{retryable:e,detail:t}=ry(r);x({retryable:e,detail:t,message:\"Authentication failed\"})}}(0,o.useEffect)(()=>{v()},[]),(0,o.useEffect)(()=>{if(!(r&&e&&f&&n))return;if(i?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{s(\"AFFIRMATIVE_CONSENT_SCREEN\")},1400);return()=>clearTimeout(e)}if(rk(n,i?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{a({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,provider:\"telegram\",screen:\"TelegramAuthScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),s(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},1400);return()=>clearTimeout(e)}h();let o=setTimeout(()=>p({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return()=>clearTimeout(o)},[r,e,f,n]);let C=f?\"Successfully connected with Telegram\":w?w.message:\"Verifying connection to Telegram\",b=\"\";return b=f?\"You’re good to go!\":w?w.detail:\"Just a few moments more\",(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ud,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:f,fail:!!w}),(0,m.jsx)(cJ,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:C}),(0,m.jsx)(\"p\",{children:b})]}),w&&w?.retryable?(0,m.jsx)(ie,{onClick:()=>{c().then(async()=>v()).catch(e=>{let{retryable:t,detail:r}=ry(e);x({retryable:t,detail:r,message:\"Authentication failed\"})}),x(void 0)},disabled:!f&&!w?.retryable,children:\"Retry\"}):null]}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]})}},uS=[\"LANDING\",\"AWAITING_CONNECTION\"],uT=({isMfaVerifying:e,onMfaVerificationComplete:t})=>{let{ready:r,isModalOpen:n}=n$(),{headless:i}=nh(),{ready:a,currentScreen:s}=ny(),{status:l,execute:c,reset:d,enabled:h}=nF(),u=n&&s&&uS.includes(s)&&!i&&\"ready\"===l;if((0,o.useEffect)(()=>{u&&c()},[u]),(0,o.useEffect)(()=>{!n&&h&&d()},[n,h]),(!r||!a)&&\"AWAITING_OAUTH_SCREEN\"!==s&&\"CROSS_APP_AUTH_SCREEN\"!==s&&\"TELEGRAM_AUTH_SCREEN\"!==s)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsx)(ae,{}),(0,m.jsx)(uE,{children:(0,m.jsx)(nX,{})}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]});if(!s&&e)return(0,m.jsx)(hr,{open:e,onClose:t});if(!s)return null;let p=uA[s];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ik,{if:!!e,children:(0,m.jsx)(p,{})}),(0,m.jsx)(ik,{if:!e,children:(0,m.jsx)(hr,{open:e,onClose:t})})]})},uP=({isMfaVerifying:e,onMfaVerificationComplete:t})=>{let r=(0,o.useRef)(null),n=nH(r);return(0,m.jsx)(uO,{style:{height:n},id:\"privy-modal-content\",children:(0,m.jsx)(\"div\",{ref:r,children:(0,m.jsx)(uT,{isMfaVerifying:e,onMfaVerificationComplete:t})})})},uN=()=>{let{closePrivyModal:e}=nZ(),{onUserCloseViaDialogOrKeybindRef:t}=ny();return{gracefulClosePrivyModal:(0,o.useCallback)(()=>{if(!t?.current)return e({shouldCallAuthOnSuccess:!1});t.current()},[e])}},uR=({open:e})=>{let{app:t}=ny(),{gracefulClosePrivyModal:r}=uN(),[n,i]=(0,o.useState)(!1);nG(\"configureMfa\",{onMfaRequired:()=>{t?.mfa.noPromptOnMfaRequired||i(!0)}});let a=e||n;return t.render.standalone?(0,m.jsx)(uv,{children:(0,m.jsx)(uM,{id:\"privy-modal-content\",children:(0,m.jsx)(uT,{isMfaVerifying:n,onMfaVerificationComplete:()=>i(!1)})})}):(0,m.jsx)(uC,{open:a,id:\"privy-dialog\",\"aria-label\":\"log in or sign up\",\"aria-labelledby\":\"privy-dialog-title\",onClick:()=>r(),children:(0,m.jsx)(uv,{children:(0,m.jsx)(uP,{isMfaVerifying:n,onMfaVerificationComplete:()=>i(!1)})})})},uM=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  text-align: center;\n  font-size: 14px;\n  line-height: 20px;\n  width: 100%;\n  background: var(--privy-color-background);\n  padding: 0 16px;\n`,uO=(0,A.ZP)(uM)`\n  transition: height 150ms ease-out;\n  overflow: hidden;\n\n  // Ensure the modal gets pinned to the top if it ever gets too tall\n  max-height: calc(100svh - 48px);\n\n  border-radius: var(--privy-border-radius-lg) var(--privy-border-radius-lg) 0 0;\n  box-shadow: 0px 0px 36px rgba(55, 65, 81, 0.15);\n\n  @media (min-width: 441px) {\n    box-shadow: 0px 8px 36px rgba(55, 65, 81, 0.15);\n    border-radius: var(--privy-border-radius-lg);\n  }\n`;function uI(e){let t=(0,o.useRef)(null),r=(0,o.useRef)();return(0,o.useEffect)(()=>{r.current?.remove(),r.current=function({botUsername:e,scriptHost:t}){let r=document.createElement(\"script\"),{origin:n}=new URL(t);return r.async=!0,r.src=`${n}/js/telegram-login.js`,r.setAttribute(\"data-telegram-login\",e),r.setAttribute(\"data-request-access\",\"write\"),r.setAttribute(\"data-lang\",\"en\"),r}(e),t.current?.after(r.current)},[e]),(0,m.jsx)(\"div\",{ref:t,hidden:!0})}async function uW(e,t,r,n,i,a=!1){let o=a,s=async s=>{if(o&&t&&t.length>0){s===(a?0:1)?i(\"configureMfa\",\"onMfaRequired\",t):n.current?.reject(new a6(\"missing_or_invalid_mfa\",\"MFA verification failed, retry.\"));let o=await new Promise((e,t)=>{r.current={resolve:e,reject:t},setTimeout(()=>{let e=new a6(\"mfa_timeout\",\"Timed out waiting for MFA code\");n.current?.reject(e),t(e)},3e5)});return await e(o)}return await e()},l=null;for(let e=0;e<4;e++)try{l=await s(e),n.current?.resolve(void 0);break}catch(e){if(\"missing_or_invalid_mfa\"===e.type)o=!0;else throw n.current?.resolve(void 0),e}if(null===l){let e=new a6(\"mfa_verification_max_attempts_reached\",\"Max MFA verification attempts reached\");throw n.current?.reject(e),e}return l}var uL=(uY=0,()=>`id-${uY++}`);function uF(e){return void 0!==e.error}var uU=new class{constructor(){this.callbacks={}}enqueue(e,t){this.callbacks[e]=t}dequeue(e,t){let r=this.callbacks[t];if(!r)throw Error(`cannot dequeue ${e} event: no event found for id ${t}`);switch(delete this.callbacks[t],e){case\"privy:iframe:ready\":case\"privy:wallet:create\":case\"privy:wallet:import\":case\"privy:wallet:connect\":case\"privy:wallet:recover\":case\"privy:wallet:rpc\":case\"privy:wallet:set-recovery\":case\"privy:mfa:verify\":case\"privy:mfa:init-enrollment\":case\"privy:mfa:submit-enrollment\":case\"privy:mfa:unenroll\":case\"privy:mfa:clear\":case\"privy:farcaster:init-signer\":case\"privy:farcaster:sign\":case\"privy:solana-wallet:create\":case\"privy:solana-wallet:connect\":case\"privy:solana-wallet:recover\":case\"privy:solana-wallet:rpc\":return r;default:throw Error(`invalid wallet event type ${e}`)}}},uD=new Map,uZ=(e,t)=>\"bigint\"==typeof t?t.toString():t,uz=(e,t)=>`${e}${JSON.stringify(t,uZ)}`;function u$(e,t,r,n){let i=r.contentWindow;if(!i)throw Error(\"iframe not initialized\");let a=uz(e,t);if(\"privy:wallet:create\"===e){let e=uD.get(a);if(e)return e}let o=new Promise((r,a)=>{let o=uL();uU.enqueue(o,{resolve:r,reject:a}),i.postMessage({id:o,event:e,data:t},n)}).finally(()=>{uD.delete(a)});return uD.set(a,o),o}function uH(e){let t=(0,o.useRef)(null),r=(0,o.useRef)(e.mfaMethods),n=nY(),[i,a]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{r.current=e.mfaMethods},[e.mfaMethods]),(0,o.useEffect)(()=>{if(!i)return;let a=t.current;if(!a)return;function o(t){var r;t&&t.origin===e.origin&&\"string\"==typeof(r=t.data).event&&/^privy:.+/.test(r.event)&&function(e){switch(e.event){case\"privy:iframe:ready\":let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data);case\"privy:wallet:create\":let r=uU.dequeue(e.event,e.id);return uF(e)?r.reject(new a6(e.error.type,e.error.message)):r.resolve(e.data);case\"privy:wallet:import\":let n=uU.dequeue(e.event,e.id);return uF(e)?n.reject(new a6(e.error.type,e.error.message)):n.resolve(e.data);case\"privy:wallet:connect\":let i=uU.dequeue(e.event,e.id);return uF(e)?i.reject(new a6(e.error.type,e.error.message)):i.resolve(e.data);case\"privy:wallet:recover\":let a=uU.dequeue(e.event,e.id);return uF(e)?a.reject(new a6(e.error.type,e.error.message)):a.resolve(e.data);case\"privy:wallet:rpc\":let o=uU.dequeue(e.event,e.id);return uF(e)?o.reject(new a6(e.error.type,e.error.message)):o.resolve(e.data);case\"privy:wallet:set-recovery\":let s=uU.dequeue(e.event,e.id);return uF(e)?s.reject(new a6(e.error.type,e.error.message)):s.resolve(e.data);case\"privy:mfa:verify\":let l=uU.dequeue(e.event,e.id);return uF(e)?l.reject(new a6(e.error.type,e.error.message)):l.resolve(e.data);case\"privy:mfa:init-enrollment\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:mfa:submit-enrollment\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:mfa:unenroll\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:mfa:clear\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:farcaster:init-signer\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:farcaster:sign\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:solana-wallet:create\":let c=uU.dequeue(e.event,e.id);return uF(e)?c.reject(new a6(e.error.type,e.error.message)):c.resolve(e.data);case\"privy:solana-wallet:connect\":let d=uU.dequeue(e.event,e.id);return uF(e)?d.reject(new a6(e.error.type,e.error.message)):d.resolve(e.data);case\"privy:solana-wallet:recover\":let h=uU.dequeue(e.event,e.id);return uF(e)?h.reject(new a6(e.error.type,e.error.message)):h.resolve(e.data);case\"privy:solana-wallet:rpc\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}default:console.warn(\"Unsupported wallet proxy method:\",e)}}(t.data)}let s={create:t=>u$(\"privy:wallet:create\",t,a,e.origin),import:t=>u$(\"privy:wallet:import\",t,a,e.origin),connect:t=>u$(\"privy:wallet:connect\",t,a,e.origin),recover:t=>uW(r=>u$(\"privy:wallet:recover\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n,!t.recoveryMethod||\"privy\"===t.recoveryMethod),rpc:t=>uW(r=>u$(\"privy:wallet:rpc\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),createSolana:t=>u$(\"privy:solana-wallet:create\",t,a,e.origin),connectSolana:t=>u$(\"privy:solana-wallet:connect\",t,a,e.origin),recoverSolana:t=>u$(\"privy:solana-wallet:recover\",t,a,e.origin),rpcSolana:t=>u$(\"privy:solana-wallet:rpc\",t,a,e.origin),setRecovery:t=>uW(r=>u$(\"privy:wallet:set-recovery\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),verifyMfa:t=>uW(r=>u$(\"privy:mfa:verify\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n,!0),initEnrollMfa:t=>uW(r=>u$(\"privy:mfa:init-enrollment\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),submitEnrollMfa:t=>uW(r=>u$(\"privy:mfa:submit-enrollment\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),unenrollMfa:t=>uW(r=>u$(\"privy:mfa:unenroll\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n,!0),clearMfa:t=>u$(\"privy:mfa:clear\",t,a,e.origin),initFarcasterSigner:t=>u$(\"privy:farcaster:init-signer\",t,a,e.origin),signFarcasterMessage:t=>u$(\"privy:farcaster:sign\",t,a,e.origin)};window.addEventListener(\"message\",o);let l=new AbortController;return tf(()=>u$(\"privy:iframe:ready\",{},a,e.origin),{abortSignal:l.signal}).then(()=>e.onLoad(s),(...t)=>{console.warn(\"Privy iframe failed to load: \",...t),e.onLoadFailed()}),()=>{window.removeEventListener(\"message\",o),l.abort()}},[i]),(0,m.jsx)(\"iframe\",{ref:t,width:\"0\",height:\"0\",style:{display:\"none\",height:\"0px\",width:\"0px\"},onLoad:()=>a(!0),src:ty(e.origin,`/apps/${e.appId}/embedded-wallets`,{caid:e.clientAnalyticsId,client_id:e.appClientId})})}var uB=class{constructor(e,t){this.walletProxy=e,this.address=t}async handleSignMessage(e){if(!e.params||\"string\"!=typeof e.params.message)throw Error(\"Message must be provided as a string for Solana signMessage RPC\");return await u9({message:e.params.message})}async request(e){if(console.debug(\"EmbeddedSolanaProvider.request() called with args\",e),!await uK())throw Error(\"User must be authenticated to use embedded Solana wallet\");if(!await u8())throw new eK(\"Unable to connect to Solana embedded wallet\");if(\"signMessage\"===e.method)return await this.handleSignMessage(e);throw Error(\"Embedded Solana provider does not yet support this RPC method.\")}};async function uq({url:e,popup:t}){return t.location=e,new Promise((e,r)=>{let n=setTimeout(()=>{r(new eK(\"Authorization request timed out after 2 minutes.\")),i()},12e4);function i(){t?.close(),window.removeEventListener(\"message\",s)}let a,o=setInterval(()=>{t?.closed&&!a&&(i(),clearInterval(o),clearTimeout(n),r(new eK(\"User rejected request\")))},300);function s(t){t.data&&(\"PRIVY_OAUTH_RESPONSE\"===t.data.type&&t.data.stateCode&&t.data.authorizationCode&&(clearTimeout(n),e(t.data),i()),\"PRIVY_OAUTH_ERROR\"===t.data.type&&(clearTimeout(n),r(new eK(t.data.error)),i()),\"PRIVY_OAUTH_USE_BROADCAST_CHANNEL\"===t.data.type&&((a=new BroadcastChannel(\"popup-privy-oauth\")).onmessage=s))}window.addEventListener(\"message\",s)})}async function uV({url:e,popup:t,provider:r}){return t.location=e,new Promise((e,r)=>{function n(){t?.close(),window.removeEventListener(\"message\",i)}function i(t){t.data&&(\"PRIVY_OAUTH_RESPONSE\"===t.data.type&&t.data.stateCode&&t.data.authorizationCode&&(e(t.data),n()),\"https://cdn.apple-cloudkit.com\"===t.origin&&t.data.ckSession&&(e({type:\"PRIVY_OAUTH_RESPONSE\",ckWebAuthToken:t.data.ckSession}),n()),\"PRIVY_OAUTH_ERROR\"===t.data.type&&(r(t.data.error),n()))}window.addEventListener(\"message\",i)})}var uG=e=>({id:e.id,raw_id:e.rawId,response:{client_data_json:e.response.clientDataJSON,authenticator_data:e.response.authenticatorData,signature:e.response.signature,user_handle:e.response.userHandle},authenticator_attachment:e.authenticatorAttachment,client_extension_results:{app_id:e.clientExtensionResults.appid,cred_props:e.clientExtensionResults.credProps,hmac_create_secret:e.clientExtensionResults.hmacCreateSecret},type:e.type});function uK(){return uQ?uQ.getAccessToken():Promise.resolve(to.get(tF)||null)}var uY,uQ,uX,uJ,u0,u1,u2,u3,u4=(e,t,r)=>uX(e,t,r),u5=(e,t)=>uJ(e,t),u6=(e,t)=>u0(e,t),u7=()=>u1(),u8=()=>u2(),u9=({message:e})=>u3({message:e}),pe=()=>{let e=new URLSearchParams(window.location.search).get(\"privy_token\");if(!e)return;to.put(tH,e);let t=new URL(window.location.href);t.searchParams.delete(\"privy_token\"),window.history.pushState({},\"\",t)},pt=({config:e,...t})=>{var r;if(!(\"string\"==typeof(r=t.appId)&&25===r.length))throw new eK(\"Cannot initialize the Privy provider with an invalid Privy app ID\");uQ||(uQ=new nO({appId:t.appId,appClientId:t.clientId,apiUrl:t.apiUrl}));let n=Object.assign({},e);return void 0!==t.createPrivyWalletOnLogin&&n.embeddedWallets?.createOnLogin===void 0&&(n.embeddedWallets||(n.embeddedWallets={}),n.embeddedWallets.createOnLogin=t.createPrivyWalletOnLogin?\"users-without-wallets\":\"off\"),void 0!==t.createPrivyWalletOnLogin&&e?.embeddedWallets?.createOnLogin&&console.warn(\"Both `createPrivyWalletOnLogin` and `config.embeddedWallets.createOnLogin` are set. `createPrivyWalletOnLogin` is deprecated and should be removed.\"),(0,m.jsx)(nd,{client:uQ,clientConfig:n,legacyCreateEmbeddedWalletFlag:t.createPrivyWalletOnLogin,children:(0,m.jsx)(pr,{...t,client:uQ})})},pr=e=>{let t=e.client,[h,u]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),[f,y]=(0,o.useState)(!1),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)([]),[b,_]=(0,o.useState)(null),j=(0,o.useRef)(v),[k,E]=(0,o.useState)(!1),[A,S]=(0,o.useState)(null),[T,P]=(0,o.useState)(!1),[N,R]=(0,o.useState)({status:\"disconnected\",connectedWallet:null,connectError:null,connector:null,connectRetry:np}),[M,O]=(0,o.useState)({status:\"initial\"}),[I,W]=(0,o.useState)(null),[L,F]=(0,o.useState)(null),U=nh(),D=nu(),[Z,z]=(0,o.useState)(!0),[$,H]=(0,o.useState)({}),[B,q]=(0,o.useState)(null),[V,G]=(0,o.useState)(null),[K,Y]=(0,o.useState)(!1),[Q,X]=(0,o.useState)(!1),J=(0,o.useRef)(null),ee=(0,o.useRef)(null),et=(0,o.useRef)(nB),[er,en]=(0,o.useState)(!1);t.onStoreToken=e=>{e&&nK(et,\"accessToken\",\"onAccessTokenGranted\",e)},t.onDeleteToken=()=>{x(null),y(!1),nK(et,\"accessToken\",\"onAccessTokenRemoved\")};let ei=(0,o.useRef)(null),ea=(0,o.useRef)(null),eo=e=>{S(e),setTimeout(()=>{u(!0)},15),t.createAnalyticsEvent({eventName:\"modal_open\",payload:{initialScreen:e}})},es=e=>{\"off\"!==U.embeddedWallets.createOnLogin&&z(!0),eo(e)};(0,o.useEffect)(()=>{let e=rb(w);e&&L&&_({address:e.address,connectedAt:Date.now(),walletClientType:\"privy\",connectorType:\"embedded\",meta:{name:\"Privy Wallet\",icon:rG,id:\"io.privy.solana.wallet\"},getProvider:async()=>new uB(L,e.address)})},[L,w]),(0,o.useEffect)(()=>{if(!w){t.connectors?.removeEmbeddedWalletConnector();return}let r=rC(w),n=r_(w);if(r||t.connectors?.removeEmbeddedWalletConnector(),n||t.connectors?.removeImportedWalletConnector(),!t.connectors){console.debug(\"Failed to add embedded wallet connector: Client connectors not initialized\");return}if(!L){console.debug(\"Failed to add embedded wallet connector: Wallet proxy not initialized\");return}r&&t.connectors.addEmbeddedWalletConnector(L,r.address,U.defaultChain,e.appId),n&&t.connectors.addImportedWalletConnector(L,n.address,U.defaultChain,e.appId)},[L,w]),(0,o.useEffect)(()=>{L&&V?.(L)},[L]),(0,o.useEffect)(()=>{(async()=>{if(!U.customAuth?.enabled)return;z(!0);let{getCustomAccessToken:e,isLoading:r}=U.customAuth;if(!(!p||r))try{let r=await e();if(!r&&f){await eP.logout();return}if(!r||f)return;t.startAuthFlow(new te(r));let{user:n,isNewUser:i}=await t.authenticate();if(!n){await eP.logout();return}x(n||null),E(i||!1),y(!0),X(!0)}catch(e){console.warn(e),f&&await eP.logout()}})()},[U.customAuth?.enabled,U.customAuth?.getCustomAccessToken,U.customAuth?.isLoading,p,f]),(0,o.useEffect)(()=>{Q&&L&&w&&rk(w,U.embeddedWallets.createOnLogin)&&(X(!1),ev(w,3e4).catch(console.error))},[Q&&L&&w]),(0,o.useEffect)(()=>{async function e(){let e,r=el(),n=ec();pe();let i=(0,a.M)();t.initializeConnectorManager({walletConnectCloudProjectId:U.walletConnectCloudProjectId,rpcConfig:U.rpcConfig,chains:U.chains,defaultChain:U.defaultChain,store:i,walletList:U.appearance.walletList,shouldEnforceDefaultChainOnConnect:U.shouldEnforceDefaultChainOnConnect,externalWalletConfig:U.externalWallets,appName:U.name??\"Privy\"}),t.connectors?.on(\"connectorInitialized\",()=>{e&&clearTimeout(e);let r=t.connectors.walletConnectors.length,n=t.connectors.walletConnectors.reduce((e,t)=>e+(t.initialized?1:0),0);n===r?en(!0):e=setTimeout(()=>{console.debug({message:\"Unable to initialize all expected connectors before timeout\",initialized:n,expected:r}),en(!0)},1500)}),t.connectors?.initialize().then(()=>{ep()});let o=await t.getAuthenticatedUser(),s=!!o;if(U.customAuth?.enabled||(y(!!o),o&&nK(et,\"login\",\"onComplete\",o,!1,!0,null,null),x(o)),r){ea.current=s?\"link\":\"login\";return}if(n&&!s){ea.current=\"login\",es(\"TELEGRAM_AUTH_SCREEN\");return}eN.setReadyToTrue(!!o)}!p&&D&&e()},[t,B,p,D]),(0,o.useEffect)(()=>{if(p){if(!w||!w.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType)){Y(!0);return}Y(!!v.find(e=>\"privy\"===e.walletClientType))}},[p,w,v]);let el=()=>{let e=function(){let e=new URLSearchParams(window.location.search),t=e.get(\"privy_oauth_code\"),r=e.get(\"privy_oauth_state\"),n=e.get(\"privy_oauth_provider\");if(!t||!r||!n)return{inProgress:!1};let i=!1;try{i=!!window.opener.location.origin}catch{}return{inProgress:!0,authorizationCode:t,stateCode:r,provider:n,headless:t6(),popupFlow:null!==window.opener&&i}}();if(e.inProgress&&e.popupFlow){if(window.opener.location.origin!==window.location.origin){window.opener.postMessage({type:\"PRIVY_OAUTH_ERROR\",error:\"Origins between parent and child windows do not match.\"});return}if(\"error\"===e.authorizationCode){window.opener.postMessage({type:\"PRIVY_OAUTH_ERROR\",error:\"Something went wrong. Try again.\"});return}window.opener.postMessage({type:\"PRIVY_OAUTH_RESPONSE\",stateCode:e.stateCode,authorizationCode:e.authorizationCode});return}return e.inProgress&&e.provider.startsWith(\"privy:\")&&!e.popupFlow&&(new BroadcastChannel(\"popup-privy-oauth\").postMessage({type:\"PRIVY_OAUTH_RESPONSE\",stateCode:e.stateCode,authorizationCode:e.authorizationCode}),window.close()),!!e.inProgress&&!e.headless&&(t.startAuthFlow(new t7(e)),es(\"AWAITING_OAUTH_SCREEN\"),!0)},ec=()=>{let e;let r=(e=function(){let e=new URLSearchParams(window.location.search),t=Number(e.get(\"id\")||\"\"),r=e.get(\"hash\"),n=Number(e.get(\"auth_date\")||\"\"),i=e.get(\"first_name\"),a=e.get(\"last_name\")||void 0,o=e.get(\"username\")||void 0,s=e.get(\"photo_url\")||void 0;if(!(!t||!i||!n||!r))return{id:t,first_name:i,last_name:a,username:o,photo_url:s,auth_date:n,hash:r}}())?(rw(),{...e,flowType:\"login-url\"}):(e=function(){let e=window.location.hash;if(!e||!e.startsWith(\"#tgWebAppData\"))return;let t=new URLSearchParams(decodeURIComponent(e.replace(\"#tgWebAppData=\",\"\"))),r=t.get(\"query_id\"),n=t.get(\"user\"),i=Number(t.get(\"auth_date\")||\"\"),a=t.get(\"hash\");if(!(!r||!n||!i||!a))return{query_id:r,user:n,auth_date:i,hash:a}}())?(rw(),{...e,flowType:\"web-app\"}):void 0;if(!r||!U.loginMethods.telegram||!U.loginConfig.telegramAuthConfiguration?.seamlessAuthEnabled)return;let n=new rf;return t.startAuthFlow(n),\"login-url\"===r.flowType&&(n.meta.telegramWebAppData=void 0,n.meta.telegramAuthResult={id:r.id,first_name:r.first_name,last_name:r.last_name,auth_date:r.auth_date,username:r.username,photo_url:r.photo_url,hash:r.hash}),\"web-app\"===r.flowType&&(n.meta.telegramAuthResult=void 0,n.meta.telegramWebAppData={query_id:r.query_id,user:r.user,auth_date:r.auth_date,hash:r.hash}),!0},ed=async(e,r,n,i)=>{eh(await t.connectors?.createWalletConnector(e,r)||null,r,n,i)};async function eh(e,t,r,n){if(!e)return R({status:\"disconnected\",connectedWallet:null,connectError:new eQ(\"Unable to connect to wallet.\"),connector:null,connectRetry:np}),n?.(null,r);R({status:\"disconnected\",connectedWallet:null,connectError:null,connector:e,connectRetry:np}),e instanceof nx&&t&&await e.resetConnection(t),R({connector:e,status:\"connecting\",connectedWallet:null,connectError:null,connectRetry:()=>eh(e,t,r,n)});try{let t=await e.connect({showPrompt:!0});if(U.shouldEnforceDefaultChainOnConnect&&!U.chains.find(e=>e.id===Number(t?.chainId.replace(\"eip155:\",\"\")))&&!(t?.connectorType===\"wallet_connect_v2\"&&t?.walletClientType===\"metamask\")){R(t=>({...t,connector:e,status:\"switching_to_supported_chain\",connectedWallet:null,connectError:null,connectRetry:np}));try{await t?.switchChain(U.defaultChain.id),t&&(t.chainId=tC(tx(U.defaultChain.id)))}catch{console.warn(`Unable to switch to default chain: ${U.defaultChain.id}`)}}return R(e=>({...e,status:\"connected\",connectedWallet:t,connectError:null,connectRetry:np})),t&&nK(et,\"connectWallet\",\"onSuccess\",t),n?.(t,r)}catch(e){return e instanceof eV?(console.warn(e.cause?e.cause:e.message),nK(et,\"connectWallet\",\"onError\",e.privyErrorCode||\"generic_connect_wallet_error\")):(console.warn(e),nK(et,\"connectWallet\",\"onError\",\"unknown_connect_wallet_error\")),R(t=>({...t,status:\"disconnected\",connectedWallet:null,connectError:e})),n?.(null,r)}}let eu=async(e,r)=>{if(null===e)return;let n=new rp(e,t,r);t.startAuthFlow(n)},ep=()=>{let e=new URLSearchParams(window.location.search),r=e.get(\"privy_connector\"),n=e.get(\"privy_wallet_client\");if(!r||!n)return;if(\"phantom\"!==n||tc()||es(\"LOGIN_FAILED_SCREEN\"),!t.connectors)throw new eK(\"Connector not initialized\");eo(\"AWAITING_CONNECTION\");let i=new URL(window.location.href);i.searchParams.delete(\"privy_connector\"),i.searchParams.delete(\"privy_wallet_client\"),window.history.pushState({},\"\",i),ed(r,n,void 0,eu)};(0,o.useEffect)(()=>{p&&f&&null===w&&t.getAuthenticatedUser().then(x)},[p,f,w,t]);let em=e=>{if(!f)throw nK(et,\"linkAccount\",\"onError\",\"must_be_authenticated\",{linkMethod:e}),new eK(\"User must be authenticated before linking an account.\")},eg=()=>{em(\"siwe\"),ei.current=\"siwe\",ea.current=\"link\",eo(\"LINK_WALLET_SCREEN\")},ef=e=>{if(!f||!w)return!1;if(\"privy\"===e.walletClientType)return!0;for(let t of w.linkedAccounts)if(\"wallet\"===t.type&&t.address===e.address&&\"privy\"!==t.walletClientType)return!0;return!1},ey=async e=>{if(!t.connectors)throw new eK(\"Connector not initialized\");let r=t.connectors.findWalletConnector(e.connectorType,e.walletClientType)||null;(R(t=>({...t,connector:r,status:\"connected\",connectedWallet:e,connectError:null,connectRetry:np})),U.captchaEnabled&&!f)?(H({captchaModalData:{callback:t=>eu(e,t),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_CONNECTION\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),es(\"CAPTCHA_SCREEN\")):(await eu(e),es(\"AWAITING_CONNECTION\"))},ew=async(e,r)=>{let{signedUrl:n,externalTransactionId:i}=await co(t,e,r??{},U.appearance.palette,U.fundingMethodConfig?.moonpay.useSandbox??!1);return{signedUrl:n,externalTransactionId:i}},ex=()=>{C(e=>{let r=t.connectors?.wallets.map(e=>({...e,linked:ef(e),loginOrLink:async()=>{if(!await e.isConnected())throw new eK(\"Wallet is not connected\");if(\"embedded\"===e.connectorType&&\"privy\"===e.walletClientType)throw new eK(\"Cannot link or login with embedded wallet\");ey(e)},fund:async t=>{await eN.fundWallet(e.address,t)},unlink:async()=>{if(!f)throw new eK(\"User is not authenticated.\");if(\"embedded\"===e.connectorType&&\"privy\"===e.walletClientType)throw new eK(\"Cannot unlink an embedded wallet\");x(await t.unlinkWallet(e.address))}}))||[];return n_(e,r)?e:r})};(0,o.useEffect)(()=>{ex()},[w?.linkedAccounts,f,p]),(0,o.useEffect)(()=>{if(p){if(!t.connectors)throw new eK(\"Connector not initialized\");ex(),t.connectors.on(\"walletsUpdated\",ex)}},[p]),(0,o.useEffect)(()=>{if(!v[0])return;let e=v[0],t=j.current.find(t=>t.address===e.address),r;if(r=\"privy\"===e.walletClientType?w?.linkedAccounts.find(t=>\"wallet\"===t.type&&t.address===e.address&&\"privy\"===t.walletClientType):w?.linkedAccounts.find(t=>\"wallet\"===t.type&&t.address===e.address&&\"privy\"!==t.walletClientType),!t&&r){let e=Object.assign({},w);e.wallet=r&&{address:r.address,chainType:r.chainType,chainId:r.chainId,walletClient:r.walletClient,walletClientType:r.walletClientType,connectorType:r.connectorType,imported:r.imported},x(e)}j.current=v},[v]);let ev=async(e,t)=>{if(rC(e))throw nK(et,\"createWallet\",\"onError\",\"embedded_wallet_already_exists\"),Error(\"Only one Privy wallet per user is currently allowed\");let[r,n]=await Promise.all([eN.initializeWalletProxy(t),uK()]);if(!r&&U.customAuth?.enabled)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to connect to wallet proxy\");if(!r||!n||U.embeddedWallets?.requireUserOwnedRecoveryOnCreate)return new Promise((e,t)=>{z(!0),H({createWallet:{onSuccess:t=>{nK(et,\"createWallet\",\"onSuccess\",t),e(t)},onFailure:e=>{nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),t(e)},callAuthOnSuccessOnClose:!1}}),eo(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")});{await r.create({accessToken:n});let e=rC(await eN.refreshUser());if(!e)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to create wallet\");return nK(et,\"createWallet\",\"onSuccess\",e),e}},eC=e=>{if(!U.chains.map(e=>e.id).includes(e))throw new eQ(`Chain ID ${e} is not supported. It must be added to the config.supportedChains property of the PrivyProvider.`,\"unsupported_chain_id\")},eb=(r,i,a)=>new Promise(async(o,s)=>{let{requesterAppId:h}=i||{};if(!f||!w){nK(et,\"sendTransaction\",\"onError\",\"must_be_authenticated\"),s(Error(\"User must be authenticated before signing with a Privy wallet\"));return}let u=r.from,p=u?w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&n.Kn(e.address)===n.Kn(u)):rC(w);if(!p){nK(et,\"sendTransaction\",\"onError\",\"embedded_wallet_not_found\"),s(Error(\"Must have a Privy wallet before signing\"));return}z(!0);let m=t.connectors?.findWalletConnector(\"embedded\",\"privy\")?.proxyProvider,g=r.chainId?Number(r.chainId):m.chainId;eC(g);let y=Object.assign({},r,{chainId:g}),x=async()=>{let t=await uK();if(!t||!L){nK(et,\"sendTransaction\",\"onError\",\"embedded_wallet_not_found\"),s(Error(\"Must have valid access token and Privy wallet to send transaction\"));return}try{if(!await eN.recoverEmbeddedEthereumWallet()){nK(et,\"sendTransaction\",\"onError\",\"unknown_connect_wallet_error\"),s(Error(\"Unable to connect to wallet\"));return}let r=tk(y.chainId,U.chains,U.rpcConfig,{appId:e.appId}),n=await (0,l.vT)(p.address,y,r);if(U.embeddedWallets.noPromptOnSignature){let{totalGasEstimate:e}=await (0,c.gM)(n,r),{hasSufficientFunds:t}=await sD(p.address,n,e,r);if(!t)throw new rW(new rI(\"Wallet has insufficient funds for this transaction.\",d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))}let i=await sU(t,p.address,L,n,r,h);nK(et,\"sendTransaction\",\"onSuccess\",i),o(i)}catch(e){nK(et,\"sendTransaction\",\"onError\",\"transaction_failure\"),s(e)}};if(U.embeddedWallets.noPromptOnSignature)i&&console.warn(\"uiOptions defined with `noPromptOnSignature` set to true in app config\"),x();else{let e=eA({address:p.address,fundWalletConfig:a,chainIdOverride:y.chainId,comingFromSendTransactionScreen:!0});H({connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN\",onFailure:e=>{nK(et,\"sendTransaction\",\"onError\",\"unknown_connect_wallet_error\"),s(e)}},sendTransaction:{transactionRequest:y,onSuccess:e=>{nK(et,\"sendTransaction\",\"onSuccess\",e),o(e)},onFailure:e=>{nK(et,\"sendTransaction\",\"onError\",\"transaction_failure\"),s(e)},uiOptions:i||{},fundWalletConfig:a,requesterAppId:h},funding:e}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}});function e_(){return new Promise(async(e,t)=>{let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");try{await L.verifyMfa({accessToken:r}),e()}catch(e){t(e)}})}let ej=e=>e?.linkedAccounts.filter(e=>null!==e.latestVerifiedAt&&!(\"wallet\"===e.type&&\"privy\"===e.walletClientType)).sort((e,t)=>t.latestVerifiedAt.getTime()-e.latestVerifiedAt.getTime())[0],ek=e=>{let t=w?.linkedAccounts.filter(t=>t.type===e).length??0,{displayName:r,loginMethod:n}=cT(e);if(\"passkey\"===e&&t>=5||\"passkey\"!==e&&t>=1)throw nK(et,\"linkAccount\",\"onError\",\"cannot_link_more_of_type\",{linkMethod:n}),new eK(`User already has an account of type ${r} linked.`)},eE=()=>{if(!U.loginConfig.telegramAuthConfiguration?.linkEnabled)throw nK(et,\"linkAccount\",\"onError\",\"cannot_link_more_of_type\",{linkMethod:\"telegram\"}),new eK(\"User can't link an account because Telegram linking is disabled.\")},eA=({address:e,fundWalletConfig:t,methodScreen:r,chainIdOverride:n=null,comingFromSendTransactionScreen:i=!1})=>{if(!U.fundingConfig||0===U.fundingConfig.methods.length)return;let a=ca(t)&&t.amount?t.amount:U.fundingConfig.defaultRecommendedAmount,o=ca(t)&&t.chain?t.chain.id:sB(U.fundingConfig.defaultRecommendedCurrency.chain),s=ca(t)&&t.chain?t.chain:U.chains.find(e=>e.id===o);if(n&&U.chains.find(e=>e.id===n)&&(s=U.chains.find(e=>e.id===n)),!s)throw new eK(\"Funding chain is not in PrivyProvider chains list\");return{address:e,amount:a,chain:s,methodScreen:r,comingFromSendTransactionScreen:i,...t&&void 0!==t.config&&void 0!==t.provider?{moonpayConfigOverride:t.config}:{}}};async function eS({showAutomaticRecovery:e=!1,legacySetWalletPasswordFlow:t=!1}){S(null);let r=t?\"setWalletPassword\":\"setWalletRecovery\";if(!f||!w)throw nK(et,r,\"onError\",\"must_be_authenticated\"),Error(\"User must be authenticated before adding recovery method to Privy wallet\");let n=rC(w);if(!n||!L)throw nK(et,r,\"onError\",\"embedded_wallet_not_found\"),Error(\"Must have a Privy wallet to add a recovery method\");if(rb(w))throw Error(\"Cannot set user-controlled recovery for user with Solana.\");try{await e_()}catch(e){throw nK(et,r,\"onError\",\"missing_or_invalid_mfa\"),e}return new Promise((i,a)=>{z(!0);let o={onSuccess:e=>{nK(et,r,\"onSuccess\",\"user-passcode\",e),i(e)},onFailure:e=>{nK(et,r,\"onError\",\"user_exited_set_password_flow\"),a(e)},callAuthOnSuccessOnClose:!1},s=\"user-passcode\"===n.recoveryMethod;H({setWalletPassword:o,createWallet:o,connectWallet:{onCompleteNavigateTo:oi({walletAction:\"update\",availableRecoveryMethods:U.embeddedWallets.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:t,isResettingPassword:s,showAutomaticRecovery:e}),shouldForceMFA:!1,onFailure:e=>{nK(et,r,\"onError\",\"unknown_connect_wallet_error\"),a(e)}},recoverySelection:{isInAccountCreateFlow:!1,isResettingPassword:s}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")})}async function eT({appId:e}){em(`privy:${e}`),ei.current=`privy:${e}`,ea.current=\"link\";let r=window.open(void 0,void 0,s5({w:440,h:680}));return t.createAnalyticsEvent({eventName:\"cross_app_auth_started\",payload:{appId:e}}),new Promise(async(n,i)=>{let{name:a,logoUrl:o}=await s0({api:t.api,providerAppId:e,requesterAppId:U.id});H({crossAppAuth:{appId:e,name:a,logoUrl:o,popup:r,onSuccess:n,onError:i}}),es(\"CROSS_APP_AUTH_SCREEN\")})}let eP={ready:p,authenticated:f,user:w,walletConnectors:t.connectors||null,connectWallet:e=>{e&&\"suggestedAddress\"in e&&e.suggestedAddress&&W((0,n.Kn)(e.suggestedAddress)),eo(f?\"CONNECT_ONLY_AUTHENTICATED_SCREEN\":\"CONNECT_ONLY_LANDING_SCREEN\")},importWallet:async({privateKey:e})=>{em(\"siwe\");let[t,r]=await Promise.all([eN.initializeWalletProxy(15e3),uK()]);if(t&&r){await t.import({privateKey:e,accessToken:r});let n=r_(await eN.refreshUser());if(!n)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to import wallet\");return nK(et,\"createWallet\",\"onSuccess\",n),n}throw new eK(\"User is not authenticated\")},linkWallet:eg,linkCrossAppAccount:eT,linkEmail:()=>{em(\"email\"),ek(\"email\"),ei.current=\"email\",ea.current=\"link\",eo(\"LINK_EMAIL_SCREEN\")},linkPhone:()=>{em(\"sms\"),ek(\"phone\"),ei.current=\"sms\",ea.current=\"link\",eo(\"LINK_PHONE_SCREEN\")},linkGoogle:async()=>{em(\"google\"),ek(\"google_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"google\")},linkTwitter:async()=>{em(\"twitter\"),ek(\"twitter_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"twitter\")},linkDiscord:async()=>{em(\"discord\"),ek(\"discord_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"discord\")},linkGithub:async()=>{em(\"github\"),ek(\"github_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"github\")},linkSpotify:async()=>{em(\"spotify\"),ek(\"spotify_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"spotify\")},linkInstagram:async()=>{em(\"instagram\"),ek(\"instagram_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"instagram\")},linkTiktok:async()=>{em(\"tiktok\"),ek(\"tiktok_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"tiktok\")},linkLinkedIn:async()=>{em(\"linkedin\"),ek(\"linkedin_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"linkedin\")},linkApple:async()=>{em(\"apple\"),ek(\"apple_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"apple\")},linkPasskey:async()=>{em(\"passkey\"),ek(\"passkey\"),await eN.initLinkWithPasskey(),eo(\"LINK_PASSKEY_SCREEN\")},linkTelegram:async()=>{em(\"telegram\"),ek(\"telegram\"),eE(),ea.current=\"link\",ei.current=\"telegram\",await eN.initLoginWithTelegram(),eo(\"TELEGRAM_AUTH_SCREEN\")},linkFarcaster:async()=>{em(\"farcaster\"),ek(\"farcaster\"),await eN.initLoginWithFarcaster(),ea.current=\"link\",ei.current=\"farcaster\",eo(\"AWAITING_FARCASTER_CONNECTION\")},updateEmail:()=>{if(em(\"email\"),!w?.email)throw new eK(\"User does not have an email linked to their account.\");ea.current=\"link\",ei.current=\"email\",eo(\"UPDATE_EMAIL_SCREEN\")},updatePhone:()=>{if(em(\"sms\"),!w?.phone)throw new eK(\"User does not have a phone number linked to their account.\");ea.current=\"link\",ei.current=\"sms\",eo(\"UPDATE_PHONE_SCREEN\")},login:async e=>{e&&\"target\"in e&&e&&(e=void 0);let t=\"Attempted to log in, but user is already logged in. Use a `link` helper instead.\";if(!p){let e=await new Promise(e=>{q(t=>e.bind(t))});if(q(null),e){console.warn(t);return}}if(w&&!w.isGuest){console.warn(t);return}ea.current=\"login\",H({login:e}),es(\"LANDING\")},connectOrCreateWallet:async()=>{if(p||(await new Promise(e=>{q(()=>e)}),q(null)),f){console.warn(\"User must be unauthenticated to `connectOrCreateWallet`\");return}if(v[0]){console.warn(\"User must have no connected wallets to `connectOrCreateWallet`\");return}es(\"CONNECT_OR_CREATE\")},logout:async()=>{if(w&&t.clearProviderAcccessTokens(w),S(null),await t.logout(),w&&L)try{await L.clearMfa({userId:w.id})}catch{}x(null),y(!1),nK(et,\"logout\",\"onSuccess\"),ea.current=null,ei.current=null,u(!1),to.del(tB),to.del(tq(U.id))},getAccessToken:()=>t.getAccessToken(),getEthereumProvider:()=>{if(!w||!w.wallet)return new rF;let e=v.find(e=>w.wallet&&e.address===w.wallet.address),r=t.connectors?.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return e&&r?r.proxyProvider:new rF},getEthersProvider:()=>{if(!w||!w.wallet)return new i.Q(new rZ(new rF));let e=v.find(e=>w.wallet&&e.address===w.wallet.address),r=t.connectors?.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return new i.Q(new rZ(e&&r?r.proxyProvider:new rF))},getWeb3jsProvider:()=>{if(!w||!w.wallet)return new rz(new rF);let e=v.find(e=>w.wallet&&e.address===w.wallet.address),r=t.connectors?.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return new rz(e&&r?r.proxyProvider:new rF)},unlinkWallet:async e=>{let r=await t.unlinkWallet(e);return x(r),r},unlinkEmail:async e=>{let r=await t.unlinkEmail(e);return x(r),r},unlinkPhone:async e=>{let r=await t.unlinkPhone(e);return x(r),r},unlinkGoogle:async e=>{let r=await t.unlinkOAuth(\"google\",e);return x(r),r},unlinkTwitter:async e=>{let r=await t.unlinkOAuth(\"twitter\",e);return x(r),r},unlinkDiscord:async e=>{let r=await t.unlinkOAuth(\"discord\",e);return x(r),r},unlinkGithub:async e=>{let r=await t.unlinkOAuth(\"github\",e);return x(r),r},unlinkSpotify:async e=>{let r=await t.unlinkOAuth(\"spotify\",e);return x(r),r},unlinkInstagram:async e=>{let r=await t.unlinkOAuth(\"instagram\",e);return x(r),r},unlinkTiktok:async e=>{let r=await t.unlinkOAuth(\"tiktok\",e);return x(r),r},unlinkLinkedIn:async e=>{let r=await t.unlinkOAuth(\"linkedin\",e);return x(r),r},unlinkApple:async e=>{let r=await t.unlinkOAuth(\"apple\",e);return x(r),r},unlinkFarcaster:async e=>{let r=await t.unlinkFarcaster(e);return x(r),r},unlinkTelegram:async e=>{let r=await t.unlinkTelegram(e);return x(r),r},unlinkPasskey:async e=>{let r=await t.unlinkPasskey(e);return x(r),r},unlinkCrossAppAccount:async({subject:e})=>{let r=w?.linkedAccounts.find(t=>\"cross_app\"===t.type&&t.subject===e)?.providerApp;if(!r)throw new eK(\"Invalid subject\");t.storeProviderAccessToken(r.id,null);let n=await t.unlinkOAuth(`privy:${r.id}`,e);return x(n),n},setActiveWallet:async e=>{let t=v.find(t=>(0,n.Kn)(t.address)===(0,n.Kn)(e)),r=w?.linkedAccounts.find(t=>\"wallet\"===t.type&&n.Kn(t.address)===n.Kn(e));if(t&&await t.isConnected()){if(t.linked){let e=Object.assign({},w);e.wallet=r&&{address:r.address,chainType:r.chainType,chainId:r.chainId,walletClient:r.walletClient,walletClientType:r.walletClientType,connectorType:r.connectorType,imported:r.imported},x(e)}else t.loginOrLink()}else W(e),eg()},forkSession:()=>t.forkSession(),createWallet:async()=>{if(!f||!w)throw nK(et,\"createWallet\",\"onError\",\"must_be_authenticated\"),Error(\"User must be authenticated before creating a Privy wallet\");return ev(w,15e3)},setWalletRecovery:async e=>eS({legacySetWalletPasswordFlow:!1,showAutomaticRecovery:e?.showAutomaticRecovery??!1}),setWalletPassword:async()=>eS({legacySetWalletPasswordFlow:!0,showAutomaticRecovery:!1}),signMessage:(e,r,i)=>new Promise(async(a,o)=>{let{requesterAppId:s}=r||{};if(!f||!w){nK(et,\"signMessage\",\"onError\",\"must_be_authenticated\"),o(Error(\"User must be authenticated before signing with a Privy wallet\"));return}let l=i?w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&n.Kn(e.address)===n.Kn(i)):rC(w);if(!l){nK(et,\"signMessage\",\"onError\",\"embedded_wallet_not_found\"),o(Error(\"Must have a Privy wallet before signing\"));return}if(\"string\"!=typeof e||e.length<1){nK(et,\"signMessage\",\"onError\",\"invalid_message\"),o(Error(\"Message must be a non-empty string\"));return}z(!0);let c=async()=>{if(!f)throw Error(\"User must be authenticated before signing with a Privy wallet\");let r=await uK();if(!L||!r||!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_message_started\",payload:{walletAddress:l.address,requesterAppId:s}});let{response:n}=await L.rpc({accessToken:r,address:l.address,requesterAppId:s,request:{method:\"personal_sign\",params:[e,l.address]}}),i=n.data;return t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_message_completed\",payload:{walletAddress:l.address,requesterAppId:s}}),i};if(U.embeddedWallets.noPromptOnSignature){r&&console.warn(\"uiOptions defined with `noPromptOnSignature` set to true in app config\");try{let e=await c();nK(et,\"signMessage\",\"onSuccess\",e),a(e)}catch(e){nK(et,\"signMessage\",\"onError\",\"unable_to_sign\"),o(e??new rW(\"Unable to sign message\"))}}else H({signMessage:{method:\"personal_sign\",data:e,confirmAndSign:c,onSuccess:e=>{nK(et,\"signMessage\",\"onSuccess\",e),a(e)},onFailure:e=>{nK(et,\"signMessage\",\"onError\",\"unable_to_sign\"),o(e)},uiOptions:r||{}},connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_SIGN_REQUEST_SCREEN\",onFailure:e=>{nK(et,\"signMessage\",\"onError\",\"unknown_connect_wallet_error\"),o(e)},address:l.address}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}),signTypedData:(e,r)=>new Promise(async(n,i)=>{let{requesterAppId:a}=r||{};if(!f||!w){nK(et,\"signTypedData\",\"onError\",\"must_be_authenticated\"),i(Error(\"User must be authenticated before signing with a Privy wallet\"));return}let o=rC(w);if(!o){nK(et,\"signTypedData\",\"onError\",\"embedded_wallet_not_found\"),i(Error(\"Must have a Privy wallet before signing\"));return}z(!0);let s=tE(e),l=async()=>{if(!f)throw Error(\"User must be authenticated before signing with a Privy wallet\");let e=await uK();if(!L||!e||!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_typed_data_started\",payload:{walletAddress:o.address,requesterAppId:a}});let{response:r}=await L.rpc({accessToken:e,address:o.address,requesterAppId:a,request:{method:\"eth_signTypedData_v4\",params:[o.address,s]}}),n=r.data;return t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_typed_data_completed\",payload:{walletAddress:o.address,requesterAppId:a}}),n};if(U.embeddedWallets.noPromptOnSignature||U.legacyWalletUiConfig){r&&console.warn(\"uiOptions defined with `noPromptOnSignature` set to true in app config\");try{let e=await l();nK(et,\"signTypedData\",\"onSuccess\",e),n(e)}catch(e){nK(et,\"signTypedData\",\"onError\",\"unable_to_sign\"),i(e??new rW(\"Unable to sign message\"))}}else H({signMessage:{method:\"eth_signTypedData_v4\",data:s,confirmAndSign:l,onSuccess:e=>{nK(et,\"signTypedData\",\"onSuccess\",e),n(e)},onFailure:e=>{nK(et,\"signTypedData\",\"onError\",\"unable_to_sign\"),i(e)},uiOptions:r||{}},connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_SIGN_REQUEST_SCREEN\",onFailure:e=>{nK(et,\"signMessage\",\"onError\",\"unknown_connect_wallet_error\"),i(e)}}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}),sendTransaction:async(e,t,r)=>sZ(await (await eb(e,t,r)).wait()),exportWallet:()=>new Promise(async(r,n)=>{if(!f||!w){n(Error(\"User must be authenticated before exporting their Privy wallet\"));return}if(!rC(w)){n(Error(\"Must have a Privy wallet before exporting\"));return}if(z(!0),H($),!await uK()||!L){n(Error(\"Must have valid access token to enroll in MFA\"));return}if(!L){n(Error(\"Must have a Privy wallet before exporting\"));return}H({keyExport:{appId:e.appId,appClientId:e.clientId,origin:t.apiUrl,onSuccess:r,onFailure:n},connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_KEY_EXPORT_SCREEN\",onFailure:n,shouldForceMFA:!0}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}),promptMfa:e_,async init(e){switch(e){case\"sms\":await t.initMfaSmsVerification();return;case\"passkey\":return await t.initMfaPasskeyVerification();case\"totp\":return;default:throw Error(`Unsupported MFA method: ${e}`)}},async submit(e,t){switch(e){case\"totp\":case\"sms\":if(\"string\"!=typeof t)throw new eK(\"Invalid MFA code\");J.current?.resolve({mfaMethod:e,mfaCode:t,relyingParty:window.origin}),await new Promise((e,t)=>{ee.current={resolve:e,reject:t}});break;case\"passkey\":if(\"string\"==typeof t)throw new eK(\"Invalid authenticator response\");let n=uG(await (await r.e(550).then(r.bind(r,74550))).startAuthentication(t));J.current?.resolve({mfaMethod:e,mfaCode:n,relyingParty:window.origin}),await new Promise((e,t)=>{ee.current={resolve:e,reject:t}});break;default:throw J.current?.reject(new eK(\"Unsupported MFA method\")),new eK(`Unsupported MFA method: ${e}`)}},cancel(){J.current?.reject(new eK(\"MFA canceled\"))},async initEnrollmentWithSms(e){let t=await uK();if(!t||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.initEnrollMfa({method:\"sms\",accessToken:t,phoneNumber:e.phoneNumber})},enrollInMfa:e=>new Promise((t,r)=>{if(!e){eN.closePrivyModal(),t();return}U.mfa.noPromptOnMfaRequired&&console.warn(\"[Privy Warning] Triggering the 'showMfaEnrollmentModal' function when 'noPromptOnMfaRequired' is set to true is unexpected. If this is intentional, ensure that you are building custom UIs for MFA verification.\"),H({mfaEnrollmentFlow:{mfaMethods:U.mfa.methods,onSuccess:t,onFailure:r}}),eo(\"MFA_ENROLLMENT_FLOW_SCREEN\")}),async initEnrollmentWithTotp(){let e=await uK();if(!e||!L)throw Error(\"Must have valid access token to enroll in MFA\");let t=await L.initEnrollMfa({method:\"totp\",accessToken:e});return{secret:t.secret,authUrl:t.authUrl}},async submitEnrollmentWithSms(e){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.submitEnrollMfa({method:\"sms\",accessToken:r,phoneNumber:e.phoneNumber,code:e.mfaCode}),x(await t.getAuthenticatedUser())},async submitEnrollmentWithTotp(e){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.submitEnrollMfa({method:\"totp\",accessToken:r,code:e.mfaCode}),x(await t.getAuthenticatedUser())},async initEnrollmentWithPasskey(){},async submitEnrollmentWithPasskey({credentialIds:e}){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.submitEnrollMfa({method:\"passkey\",accessToken:r,credentialIds:e}),x(await t.getAuthenticatedUser())},async unenroll(e){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to remove MFA\");\"passkey\"===e?await L.submitEnrollMfa({method:\"passkey\",accessToken:r,credentialIds:[]}):await L.unenrollMfa({method:e,accessToken:r}),x(await t.getAuthenticatedUser())},requestFarcasterSignerFromWarpcast:async()=>{let e=await uK(),r=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!e)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!r)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");if(!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");let n=await L.initFarcasterSigner({address:r.address,hdWalletIndex:null,accessToken:e,mfaCode:null,mfaMethod:null,relyingParty:window.origin});\"approved\"===n.status&&x(await t.getAuthenticatedUser()||w||null),H({farcasterSigner:n}),eo(\"AWAITING_FARCASTER_SIGNER\")},getFarcasterSignerPublicKey:async()=>{let e,t=await uK(),r=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!t)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!r)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");if(!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");if(!w.farcaster?.signerPublicKey)throw Error(\"Must have a Farcaster signer public key to sign\");return e=w.farcaster.signerPublicKey.slice(2),Uint8Array.from(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},signFarcasterMessage:async e=>{let t=await uK(),n=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!t)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!n)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");if(!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");if(!w.farcaster?.signerPublicKey)throw Error(\"Must have a Farcaster signer public key to sign\");let i=await r.e(550).then(r.bind(r,74550)),a=await L.signFarcasterMessage({address:n.address,hdWalletIndex:null,accessToken:t,mfaCode:null,mfaMethod:null,payload:{hash:i.bufferToBase64URLString(e)},fid:BigInt(w.farcaster.fid),relyingParty:window.origin});return new Uint8Array(i.base64URLStringToBuffer(a.signature))},createGuestAccount:async()=>{if(w&&!w.isGuest)throw Error(\"User cannot already be authenticated to create a guest account\");return w?.isGuest?w:eN.loginWithGuestAccountFlow()},isHeadlessOAuthLoading:T,loginWithCode:e=>eN.loginWithCode(e),initLoginWithEmail:e=>eN.initLoginWithEmail(e),initLoginWithSms:e=>eN.initLoginWithSms(e),otpState:M,fundWallet:(e,t)=>eN.fundWallet(e,t),initLoginWithHeadlessOAuth:(e,t)=>eN.initLoginWithHeadlessOAuth(e,t),loginWithHeadlessOAuth:e=>eN.loginWithHeadlessOAuth(e),generateSiweMessage:({address:e,chainId:t})=>eN.generateSiweMessage({address:e,chainId:t}),linkWithSiwe:({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})=>(em(\"siwe\"),eN.linkWithSiwe({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})),signMessageWithCrossAppWallet:(e,{address:r})=>s3({user:w,client:t,address:r,requesterAppId:U.id,request:{method:\"personal_sign\",params:[e,r]},reconnect:eT}),signTypedDataWithCrossAppWallet(e,{address:r}){let n=tE(e);return s3({user:w,client:t,address:r,requesterAppId:U.id,request:{method:\"eth_signTypedData_v4\",params:[r,n]},reconnect:eT})},sendTransactionWithCrossAppWallet:(e,{address:r})=>s3({user:w,client:t,address:r,requesterAppId:U.id,request:{method:\"eth_sendTransaction\",params:[e]},reconnect:eT}),isModalOpen:h,mfaMethods:U.mfa.methods};uX=eP.signMessage,uJ=eP.signTypedData,u0=async(...e)=>{let t=await eb(...e);return U.embeddedWallets.waitForTransactionConfirmation&&await t.wait(),t};let eN={isNewUserThisSession:k,linkingOrConnectingHint:I,pendingTransaction:null,walletConnectionStatus:N,connectors:t.connectors?.walletConnectors??[],rpcConfig:U.rpcConfig,chains:U.chains,appId:e.appId,showFiatPrices:\"native-token\"!==U.embeddedWallets.priceDisplay.primary,clientAnalyticsId:t.clientAnalyticsId,nativeTokenSymbolForChainId:e=>U.chains.find(t=>t.id===Number(e))?.nativeCurrency.symbol,initializeWalletProxy:async e=>{if(L)return L;let t=new Promise(e=>{G(()=>t=>e(t))}),r=new Promise(t=>setTimeout(()=>t(null),e)),n=await Promise.race([t,r]);return G(null),n},getAuthFlow:()=>t.authFlow,getAuthMeta:()=>t.authFlow?.meta,closePrivyModal:async(r={shouldCallAuthOnSuccess:!0,isSuccess:!1})=>{let n=p&&f&&w,i;if(n&&ei.current&&(i=ej(w)),\"login\"===ea.current?r.shouldCallAuthOnSuccess&&n&&ei.current?(nK(et,\"login\",\"onComplete\",w,k,!1,ei.current,i??null),e.onSuccess?.(w,k)):nK(et,\"login\",\"onError\",\"exited_auth_flow\"):\"link\"===ea.current&&i&&(r.isSuccess&&n&&ei.current?nK(et,\"linkAccount\",\"onSuccess\",w,ei.current,i):ei.current&&nK(et,\"linkAccount\",\"onError\",\"exited_link_flow\",{linkMethod:ei.current})),A&&hb.includes(A)&&$.funding){let t=h_[A]??null,r=tk($.funding.chain.id,U.chains,U.rpcConfig,{appId:e.appId}),n;try{n=(await r.getBalance($.funding.address)).toBigInt()}catch{console.error(\"Unable to pull wallet balance\")}nK(et,\"fundWallet\",\"onUserExited\",{address:$.funding.address,chain:$.funding.chain,fundingMethod:t,balance:n})}W(null),ea.current=null,ei.current=null,E(!1),u(!1),setTimeout(()=>{t.authFlow=void 0},200),t.createAnalyticsEvent({eventName:\"modal_closed\"})},solanaSignMessage:async({message:e})=>new Promise(async(r,n)=>{let i=async()=>{let r=await t.getAccessToken();if(!r)throw Error(\"User must be authenticated to use their embedded wallet.\");if(!b)throw Error(\"User must have an embedded Solana wallet to sign messages for Solana.\");let n=eN.walletProxy??await eN.initializeWalletProxy(15e3);if(!n)throw Error(\"Failed to initialize embedded wallet proxy.\");let{response:i}=await n.rpcSolana({accessToken:r,publicKey:b.address,request:{method:\"signMessage\",params:{message:e}}});return i.data.signature};if(U.embeddedWallets.noPromptOnSignature)try{let e=await i();r({signature:e})}catch(e){n(e)}else H({signMessage:{method:\"solana_signMessage\",data:e,confirmAndSign:i,onSuccess:e=>{r({signature:e})},onFailure:e=>{n(e)},uiOptions:{}}}),es(\"EMBEDDED_WALLET_SIGN_REQUEST_SCREEN\")}),openPrivyModal:eo,connectWallet:eh,initLoginWithWallet:async(e,t)=>{ei.current=\"siwe\",eu(e,t)},loginWithWallet:async()=>{let e,r;if(!p)throw new e0;if(!(t.authFlow instanceof rp))throw new eK(\"Must initialize SIWE flow first.\");if(f)try{({user:e}=await t.link()),ei.current=\"siwe\"}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"siwe\"}),e}else try{({user:e,isNewUser:r}=await t.authenticate()),ei.current=\"siwe\"}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"generic_connect_wallet_error\"),e}x(e||w||null),E(r||!1),y(!0)},initLoginWithFarcaster:async e=>{let r=new tW(e);t.startAuthFlow(r);try{ei.current=\"farcaster\",await r.initializeFarcasterConnect()}catch(e){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"unknown_auth_error\",{linkMethod:\"farcaster\"}),e}},loginWithFarcaster:async()=>{let e,r;if(!p)throw new e0;if(!(t.authFlow instanceof tW))throw new eK(\"Must initialize Farcaster flow first.\");if(f)try{({user:e}=await t.link()),ei.current=\"farcaster\"}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"farcaster\"}),e}else try{({user:e,isNewUser:r}=await t.authenticate()),ei.current=\"farcaster\"}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}x(e||null),E(r||!1),y(!0)},async loginWithGuestAccountFlow(){let e=new t3(this.appId);t.startAuthFlow(e);try{ea.current=\"login\",ei.current=\"guest\";let{user:e,isNewUser:r}=await t.authenticate();if(r=r||!1,!e)throw new eK(\"Unable to authenticate guest account\");if(rk(e,U.embeddedWallets.createOnLogin))try{await ev(e,15e3),e=await eN.refreshUser()}catch{x(e),console.warn(\"Unable to create embedded wallet for guest account\")}else x(e);return E(r),y(!0),nK(et,\"login\",\"onComplete\",e,r,!1,\"guest\",null),e}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}},async crossAppAuthFlow({appId:e,popup:r}){let n=`privy:${e}`;ei.current=n;let{url:i,stateCode:a,codeVerifier:o}=await s1({api:t.api,appId:e});if(!i)throw t.createAnalyticsEvent({eventName:\"cross_app_auth_error\",payload:{error:\"Unable to open cross-app auth popup\",appId:e}}),new eK(\"No authorization URL returned for cross-app auth.\");try{let s=await uq({url:i,popup:r,provider:n}),l=s.stateCode,c=s.authorizationCode;if(l!==a)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:n,storedStateCode:a??\"\",returnedStateCode:l??\"\"}}),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\");let d=await s2({api:uQ.api,appId:e,codeVerifier:o,stateCode:l,authorizationCode:c});d&&t.storeProviderAccessToken(e,d);let h=await eN.refreshUser();if(!h)throw new eK(\"Unable to update user\");return t.createAnalyticsEvent({eventName:\"cross_app_auth_completed\",payload:{appId:e}}),h}catch(e){throw t.createAnalyticsEvent({eventName:\"cross_app_auth_error\",payload:{error:e.toString(),provider:n}}),e}},async initLoginWithOAuth(e,r){if(ei.current=e,ta()){if(\"google\"===e&&aN(window.navigator.userAgent)){es(\"IN_APP_BROWSER_LOGIN_NOT_POSSIBLE\");return}}else{es(\"IN_APP_BROWSER_LOGIN_NOT_POSSIBLE\");return}\"twitter\"===e&&window.opener&&window.opener.postMessage({type:\"PRIVY_OAUTH_USE_BROADCAST_CHANNEL\"},\"*\"),to.del(tY);let n=new t7({provider:e});r&&n.addCaptchaToken(r),t.startAuthFlow(n);let i=await t.authFlow.getAuthorizationUrl();i&&i.url&&(\"twitter\"===e&&s.Dt&&(i.url=i.url.replace(\"x.com\",\"twitter.com\")),window.location.assign(i.url))},async initLoginWithTelegram(e){if(!p)throw new e0;ei.current=\"telegram\";let r=new rf(e);t.startAuthFlow(r),r.meta.telegramWebAppData=void 0,r.meta.telegramAuthResult=await new Promise((e,t)=>U.loginConfig.telegramAuthConfiguration?window.Telegram?void window.Telegram.Login.auth({bot_id:U.loginConfig.telegramAuthConfiguration.botId,request_access:!0},r=>r?e(r):t(new eK(\"Telegram auth failed or was canceled by the client\"))):t(new eK(\"Telegram was not initialized\")):t(new eK(\"Telegram Auth configuration is not loaded\")))},async loginWithTelegram(){let e,r;if(!(t.authFlow instanceof rf))throw new eK(\"Must initialize Telegram flow before calling loginWithTelegram\");if(f)try{({user:e}=await t.link()),ei.current=\"telegram\"}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"telegram\"}),e}else try{let n=await t.authenticate();e=n.user,r=n.isNewUser,ei.current=\"telegram\"}catch(e){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"telegram\"}),e}x(e),E(r||!1),y(!0)},async recoveryOAuthFlow(e,r,n){let i,a;function o(r){if(!r)throw t.createAnalyticsEvent({eventName:\"recovery_oauth_error\",payload:{error:\"Unable to open recovery OAuth popup\",provider:e}}),new eK(\"Recovery OAuth failed\")}switch(e){case\"google-drive\":{let r,s,{url:l,codeVerifier:c,stateCode:d}=await oo({api:uQ.api,provider:e});o(l);try{let i=await uV({url:l,popup:n,provider:e});if(r=i.stateCode,s=i.authorizationCode,r!==d)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:e,storedStateCode:d??\"\",returnedStateCode:r??\"\"}}),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\")}catch(r){throw t.createAnalyticsEvent({eventName:\"recovery_oauth_error\",payload:{error:r.toString(),provider:e}}),new eK(\"Recovery OAuth failed\")}[i,a]=await Promise.all([uK(),os({api:uQ.api,provider:e,codeVerifier:c,stateCode:r,authorizationCode:s})]);break}case\"icloud\":{let{url:t}=await oo({api:uQ.api,provider:e});o(t);let{ckWebAuthToken:r}=await uV({url:t,popup:n,provider:e});a=r,i=await uK()}}if(!L)throw new eK(\"Cannot connect to wallet proxy\");if(!i)throw new eK(\"Unable to authorize user\");switch(r){case\"recover\":let s=$.recoverWallet?.privyWallet?.address;if(!s)throw new eK(\"Recovery OAuth failed\");t.createAnalyticsEvent({eventName:\"embedded_wallet_recovery_started\",payload:{walletAddress:s,recoveryMethod:e}}),await L.recover({address:s,accessToken:i,recoveryAccessToken:a,recoveryMethod:e}),t.createAnalyticsEvent({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:s,recoveryMethod:e}});break;case\"create-wallet\":t.createAnalyticsEvent({eventName:\"embedded_wallet_creation_started\"}),await L.create({accessToken:i,recoveryAccessToken:a,recoveryMethod:e});let l=rC(await eN.refreshUser());if(!l)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to create wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_creation_completed\",payload:{walletAddress:l.address}}),nK(et,\"createWallet\",\"onSuccess\",l);break;case\"set-recovery\":let c=rC(w);if(!c)throw nK(et,\"setWalletRecovery\",\"onError\",\"embedded_wallet_not_found\"),Error(\"Embedded wallet not found\");t.createAnalyticsEvent({eventName:\"embedded_wallet_set_recovery_started\",payload:{walletAddress:c.address,existingRecoveryMethod:c.recoveryMethod,targetRecoveryMethod:e}}),await L.setRecovery({address:c.address,accessToken:i,recoveryAccessToken:a,recoveryMethod:e});let d=rC(await eN.refreshUser());if(!d)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to set recovery on wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_set_recovery_completed\",payload:{walletAddress:c.address,existingRecoveryMethod:c.recoveryMethod,targetRecoveryMethod:e}}),nK(et,\"setWalletRecovery\",\"onSuccess\",e,d);break;default:throw new eK(\"Unsupported recovery action\")}},async loginWithOAuth(e){let r,n,i;if(!(t.authFlow instanceof t7))throw new eK(\"Must initialize OAuth flow before calling loginWithOAuth\");let a=to.get(tG),o=t.authFlow.meta.stateCode;if(a!==o)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:e,storedStateCode:a??\"\",returnedStateCode:o??\"\"}}),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\");if(f)try{let n=await t.link();r=n.user,i=n.oAuthTokens,ei.current=e}catch(t){throw nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e}),t}else try{let a=await t.authenticate();r=a.user,n=a.isNewUser,i=a.oAuthTokens,ei.current=e}catch(t){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",t.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e}),t}return x(r),E(n||!1),y(!0),i&&r&&nK(et,\"oAuthAuthorization\",\"onOAuthTokenGrant\",i,{user:r}),i},async initLoginWithPasskey(e){let r=new rh(e);t.startAuthFlow(r),ea.current=\"login\";try{ei.current=\"passkey\",await r.initAuthenticationFlow()}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}},async loginWithPasskey(){let e,r;if(!p)throw new e0;if(!(t.authFlow instanceof rh))throw new eK(\"Must initialize Passkey flow first.\");if(\"passkey\"!==ei.current)throw new eK(\"Must init login with Passkey flow first.\");try{ei.current=\"passkey\",{user:e,isNewUser:r}=await t.authenticate()}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}x(e),E(r||!1),y(!0)},async initLinkWithPasskey(e){let r=new rh(e);t.startAuthFlow(r),ea.current=\"link\",ei.current=\"passkey\";try{await r.initLinkFlow()}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"unknown_auth_error\",{linkMethod:\"passkey\"}),e}},async linkWithPasskey(){let e;if(!p)throw new e0;if(!(t.authFlow instanceof rh))throw new eK(\"Must initialize Passkey flow first.\");if(\"passkey\"!==ei.current)throw new eK(\"Must init login with Passkey flow first.\");try{ei.current=\"passkey\",{user:e}=await t.link()}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"passkey\"}),e}return x(e||w||null),e},async initLoginWithHeadlessOAuth(e,r){if(ta()){if(\"google\"===e&&aN(window.navigator.userAgent))throw Error(\"It looks like you're using an in-app browser.  To log in, please try again using an external browser.\")}else throw Error(\"It looks like you're using an in-app browser.  To log in, please try again using an external browser.\");let n=new t7({provider:e,headless:!0});r&&n.addCaptchaToken(r);let i=await t.startAuthFlow(n).getAuthorizationUrl();i?.url&&window.location.assign(i.url)},async loginWithHeadlessOAuth(e){let r,n;P(!0),t.startAuthFlow(new t7(e));let i=to.get(tG),a=e.stateCode;if(i!==a)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:e.provider,storedStateCode:i??\"\",returnedStateCode:a??\"\"}}),P(!1),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\");if(f)try{({user:r}=await t.link()),ei.current=e.provider}catch(t){throw nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e.provider}),t}else try{({user:r,isNewUser:n}=await t.authenticate()),ei.current=e.provider}catch(t){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",t.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e.provider}),t}return x(r),E(n||!1),y(!0),P(!1),r??void 0},initLoginWithEmail:async(e,r)=>{let n=new tt(e,r);t.startAuthFlow(n);try{ei.current=\"email\",await n.sendCodeEmail()}catch(e){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"email\"}),e}},initUpdateEmail:async(e,r,n)=>{let i=new tr(e,r,n);t.startAuthFlow(i),await i.sendCodeEmail()},initUpdatePhone:async(e,r,n)=>{let i=new rg(e,r,n);t.startAuthFlow(i),await i.sendSmsCode()},initLoginWithSms:async(e,r)=>{O({status:\"sending-code\"});let n=new rm(e,r);t.startAuthFlow(n);try{ei.current=\"sms\",await n.sendSmsCode(),O({status:\"awaiting-code-input\"})}catch(e){throw O({status:\"error\",error:e}),\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"sms\"}),e}},resendEmailCode:async()=>{await t.authFlow?.sendCodeEmail()},resendSmsCode:async()=>{await t.authFlow?.sendSmsCode()},loginWithCode:async e=>{let r,n;if(O({status:\"submitting-code\"}),!p){let e=new e0;throw O({status:\"error\",error:e}),e}if(t.authFlow instanceof tt)t.authFlow.meta.emailCode=e.trim();else if(t.authFlow instanceof rm)t.authFlow.meta.smsCode=e.trim();else{let e=new eK(\"Must initialize a passwordless code flow first\");throw O({status:\"error\",error:e}),e}if(await uK(),\"link\"===ea.current)try{({user:r}=await t.link())}catch(e){throw O({status:\"error\",error:e}),nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:ei.current}),e}else try{({user:r,isNewUser:n}=await t.authenticate())}catch(e){throw O({status:\"error\",error:e}),nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}x(r||w||null),E(n||!1),y(!0),O({status:\"done\"})},generateSiweMessage:async({address:e,chainId:r,captchaToken:n})=>{ea.current=\"link\",ei.current=\"siwe\";let i=await t.generateSiweNonce({address:e,captchaToken:n});return ru({address:e,chainId:r.replace(\"eip155:\",\"\"),nonce:i})},linkWithSiwe:async({message:e,signature:r,chainId:n,walletClientType:i,connectorType:a})=>{let o;try{if(\"link\"!==ea.current||\"siwe\"!==ei.current)throw new eK(\"Must ensure no other auth flow is in progress other than the SIWE signature flow.\");o=await t.linkWithSiwe({message:e,signature:r,chainId:n,walletClientType:i,connectorType:a}),o=await eN.refreshUser()??o;let s=ej(o);s&&nK(et,\"linkAccount\",\"onSuccess\",o,\"siwe\",s)}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"siwe\"}),ea.current=null,ei.current=null,e}x(o||w||null),ea.current=null,ei.current=null},refreshUser:async()=>{let e=await t.getAuthenticatedUser();return x(e),e},walletProxy:L,createAnalyticsEvent:({eventName:e,payload:r,timestamp:n})=>t.createAnalyticsEvent({eventName:e,payload:r,timestamp:n}),acceptTerms:async()=>{let e=await t.acceptTerms();return x(e),e},getUsdTokenPrice:e=>t.getUsdTokenPrice(e),recoverEmbeddedEthereumWallet:async()=>new Promise(async(e,r)=>{let n=rC(w)||r_(w),i=await uK();if(!i||!L||!n){r(Error(\"Must have valid access token and Privy wallet to recover wallet\"));return}z(!0);try{await L.connect({accessToken:i,address:n.address}),e(!0)}catch(a){a8(a)&&\"privy\"===n.recoveryMethod?(t.createAnalyticsEvent({eventName:\"embedded_wallet_pinless_recovery_started\",payload:{walletAddress:n.address}}),(await L.recover({address:n.address,accessToken:i,recoveryMethod:n.recoveryMethod})).address||r(Error(\"Unable to recover wallet\")),t.createAnalyticsEvent({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:n.address}}),e(!0)):a8(a)&&\"privy\"!==n.recoveryMethod?(H({recoverWallet:{privyWallet:n,onFailure:r,onSuccess:()=>e(!0)},recoveryOAuthStatus:{provider:n.recoveryMethod,action:\"recover\"}}),eo(oa(n.recoveryMethod))):r(a)}}),embeddedSolanaWallet:b,createEmbeddedSolanaWallet:async()=>{z(!0);let e=await uK(),r=rb(w),n=rC(w);if(!w||!e)throw new eK(\"User must be logged in to create a Solana wallet\");if(r)throw new eK(\"User already has an embedded Solana wallet.\");if(n){if(\"privy\"===n.recoveryMethod)await eN.recoverEmbeddedEthereumWallet();else throw new eK(\"Cannot create an embedded Solana wallet for a user with an existing Ethereum wallet with user-controlled recovery.\")}let i=await eN.initializeWalletProxy(15e3);if(!i)throw new eK(\"Unable to initialize wallet proxy\");t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_creation_started\"});try{await i.createSolana({accessToken:e,ethereumAddress:n?.address});let r=await eN.refreshUser(),a=rb(r);if(!a)throw new eK(\"Could not get Solana wallet for user\");return t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_creation_completed\",payload:{walletAddress:a.address}}),a}catch(e){throw t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_creation_failed\"}),new eK(\"Failed to create Solana embedded wallet with error \",e)}},recoverEmbeddedSolanaWallet:async()=>new Promise(async(e,r)=>{let n=rb(w),i=await uK();if(!i||!L||!n){r(Error(\"Must have valid access token and Privy wallet to recover wallet\"));return}z(!0);try{await L.connectSolana({accessToken:i,publicKey:n.address}),e(!0)}catch(a){a8(a)&&\"privy\"===n.recoveryMethod?(t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_pinless_recovery_started\",payload:{walletAddress:n.address}}),(await L.recoverSolana({publicKey:n.address,accessToken:i})).publicKey||r(Error(\"Unable to recover wallet\")),t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_recovery_completed\",payload:{walletAddress:n.address}}),e(!0)):r(a)}}),getMoonpaySignedUrl:ew,initCoinbaseOnRamp:t.initCoinbaseOnRamp.bind(t),getCoinbaseOnRampStatus:t.getCoinbaseOnRampStatus.bind(t),setReadyToTrue:e=>{g(!0),B?.(e)},updateWallets:()=>ex(),fundWallet:async(e,t)=>{if(!U.fundingConfig||0===U.fundingConfig.methods.length)throw Error(\"Wallet funding is not enabled\");let r=hk({fundingMethods:U.fundingConfig.methods});H({funding:eA({address:e,fundWalletConfig:t,methodScreen:r})}),eo(r)},requestFarcasterSignerStatus:async e=>{let r=await uK(),n=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!r)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!n)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");let i=await t.requestFarcasterSignerStatus(e);return\"approved\"===i.status&&x(await t.getAuthenticatedUser()||w||null),i}};u1=eN.recoverEmbeddedEthereumWallet,u2=eN.recoverEmbeddedSolanaWallet,u3=eN.solanaSignMessage;let eR=(0,o.useMemo)(()=>({wallets:v,ready:K&&er}),[v,K,er]);return(0,m.jsx)(nz.Provider,{value:eP,children:(0,m.jsx)(nq.Provider,{value:et,children:(0,m.jsx)(s$.Provider,{value:eR,children:(0,m.jsx)(nL,{...U,children:(0,m.jsxs)(nD.Provider,{value:eN,children:[(0,m.jsx)(aM,{children:(0,m.jsxs)(nf,{data:$,setModalData:H,setInitialScreen:S,initialScreen:A,authenticated:f,open:h,children:[e.children,!U.headless&&U.captchaEnabled&&p&&!f&&(0,m.jsx)(nU,{delayedExecution:!1}),(0,m.jsx)(ux,{theme:{...U.appearance.palette||{}}}),!U.render.standalone&&(0,m.jsx)(uR,{open:h})]})}),Z&&D?(0,m.jsx)(uH,{appId:e.appId,appClientId:e.clientId,clientAnalyticsId:t.clientAnalyticsId,origin:t.apiUrl,mfaMethods:w?.mfaMethods,mfaPromise:J,mfaSubmitPromise:ee,onLoad:F,onLoadFailed:()=>null}):null,U.loginMethods.telegram&&U.loginConfig.telegramAuthConfiguration&&(0,m.jsx)(ik,{if:!0,children:(0,m.jsx)(uI,{scriptHost:e.apiUrl||tL,botUsername:U.loginConfig.telegramAuthConfiguration.botName})})]})})})})})}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/3d47b92a-88f28c2ab0026672.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[614],{28196:function(t,a,n){n.d(a,{In4:function(){return u}});var h=n(91810);function u(t){return(0,h.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"path\",attr:{d:\"M12.71 2.29a1 1 0 0 0-1.42 0l-9 9a1 1 0 0 0 0 1.42A1 1 0 0 0 3 13h1v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7h1a1 1 0 0 0 1-1 1 1 0 0 0-.29-.71zM6 20v-9.59l6-6 6 6V20z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/53c13509-fd73beeb7afe2e31.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[240],{63872:function(c,t,s){s.d(t,{P$5:function(){return n},d1A:function(){return r}});var l=s(91810);function n(c){return(0,l.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z\"},child:[]}]})(c)}function r(c){return(0,l.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160H352c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96h32V64c0-12.9 7.8-24.6 19.8-29.6zM164 282.7L204 336l-31.2 41.6C154.7 401.8 126.2 416 96 416H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H96c10.1 0 19.6-4.7 25.6-12.8L164 282.7zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V416H352c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H96c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8h32V320c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z\"},child:[]}]})(c)}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/550.78062c8e0f31c7e4.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[550],{74550:function(e,t,r){function n(e){let t=new Uint8Array(e),r=\"\";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\\+/g,\"-\").replace(/\\//g,\"_\").replace(/=/g,\"\")}function a(e){let t=e.replace(/-/g,\"+\").replace(/_/g,\"/\"),r=(4-t.length%4)%4,n=atob(t.padEnd(t.length+r,\"=\")),a=new ArrayBuffer(n.length),o=new Uint8Array(a);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return a}function o(){return window?.PublicKeyCredential!==void 0&&\"function\"==typeof window.PublicKeyCredential}function i(e){let{id:t}=e;return{...e,id:a(t),transports:e.transports}}function s(e){return\"localhost\"===e||/^([a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}$/i.test(e)}r.r(t),r.d(t,{WebAuthnAbortService:function(){return u},WebAuthnError:function(){return l},base64URLStringToBuffer:function(){return a},browserSupportsWebAuthn:function(){return o},browserSupportsWebAuthnAutofill:function(){return E},bufferToBase64URLString:function(){return n},platformAuthenticatorIsAvailable:function(){return A},startAuthentication:function(){return w},startRegistration:function(){return f}});class l extends Error{constructor({message:e,code:t,cause:r,name:n}){super(e,{cause:r}),this.name=n??r.name,this.code=t}}class c{createNewAbortSignal(){if(this.controller){let e=Error(\"Cancelling existing WebAuthn API call for new one\");e.name=\"AbortError\",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(\"Manually cancelling existing WebAuthn API call\");e.name=\"AbortError\",this.controller.abort(e),this.controller=void 0}}}let u=new c,d=[\"cross-platform\",\"platform\"];function h(e){if(!(!e||0>d.indexOf(e)))return e}async function f(e){var t;let r,c,d,f,E;if(!o())throw Error(\"WebAuthn is not supported in this browser\");let w={publicKey:{...e,challenge:a(e.challenge),user:{...e.user,id:(t=e.user.id,new TextEncoder().encode(t))},excludeCredentials:e.excludeCredentials?.map(i)}};w.signal=u.createNewAbortSignal();try{r=await navigator.credentials.create(w)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error(\"options was missing required publicKey property\");if(\"AbortError\"===e.name){if(t.signal instanceof AbortSignal)return new l({message:\"Registration ceremony was sent an abort signal\",code:\"ERROR_CEREMONY_ABORTED\",cause:e})}else if(\"ConstraintError\"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new l({message:\"Discoverable credentials were required but no available authenticator supported it\",code:\"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT\",cause:e});if(r.authenticatorSelection?.userVerification===\"required\")return new l({message:\"User verification was required but no available authenticator supported it\",code:\"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT\",cause:e})}else if(\"InvalidStateError\"===e.name)return new l({message:\"The authenticator was previously registered\",code:\"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED\",cause:e});else if(\"NotAllowedError\"===e.name)return new l({message:e.message,code:\"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY\",cause:e});else if(\"NotSupportedError\"===e.name)return new l(0===r.pubKeyCredParams.filter(e=>\"public-key\"===e.type).length?{message:'No entry in pubKeyCredParams was of type \"public-key\"',code:\"ERROR_MALFORMED_PUBKEYCREDPARAMS\",cause:e}:{message:\"No available authenticator supported any of the specified pubKeyCredParams algorithms\",code:\"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG\",cause:e});else if(\"SecurityError\"===e.name){let t=window.location.hostname;if(!s(t))return new l({message:`${window.location.hostname} is an invalid domain`,code:\"ERROR_INVALID_DOMAIN\",cause:e});if(r.rp.id!==t)return new l({message:`The RP ID \"${r.rp.id}\" is invalid for this domain`,code:\"ERROR_INVALID_RP_ID\",cause:e})}else if(\"TypeError\"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new l({message:\"User ID was not between 1 and 64 characters\",code:\"ERROR_INVALID_USER_ID_LENGTH\",cause:e})}else if(\"UnknownError\"===e.name)return new l({message:\"The authenticator was unable to process the specified options, or could not create a new credential\",code:\"ERROR_AUTHENTICATOR_GENERAL_ERROR\",cause:e});return e}({error:e,options:w})}if(!r)throw Error(\"Registration was not completed\");let{id:A,rawId:g,response:p,type:b}=r;if(\"function\"==typeof p.getTransports&&(d=p.getTransports()),\"function\"==typeof p.getPublicKeyAlgorithm)try{f=p.getPublicKeyAlgorithm()}catch(e){R(\"getPublicKeyAlgorithm()\",e)}if(\"function\"==typeof p.getPublicKey)try{let e=p.getPublicKey();null!==e&&(E=n(e))}catch(e){R(\"getPublicKey()\",e)}if(\"function\"==typeof p.getAuthenticatorData)try{c=n(p.getAuthenticatorData())}catch(e){R(\"getAuthenticatorData()\",e)}return{id:A,rawId:n(g),response:{attestationObject:n(p.attestationObject),clientDataJSON:n(p.clientDataJSON),transports:d,publicKeyAlgorithm:f,publicKey:E,authenticatorData:c},type:b,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:h(r.authenticatorAttachment)}}function R(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.\n`,t)}function E(){let e=window.PublicKeyCredential;return void 0===e.isConditionalMediationAvailable?new Promise(e=>e(!1)):e.isConditionalMediationAvailable()}async function w(e,t=!1){let r,c,d;if(!o())throw Error(\"WebAuthn is not supported in this browser\");e.allowCredentials?.length!==0&&(r=e.allowCredentials?.map(i));let f={...e,challenge:a(e.challenge),allowCredentials:r},R={};if(t){if(!await E())throw Error(\"Browser does not support WebAuthn autofill\");if(document.querySelectorAll(\"input[autocomplete$='webauthn']\").length<1)throw Error('No <input> with \"webauthn\" as the only or last value in its `autocomplete` attribute was detected');R.mediation=\"conditional\",f.allowCredentials=[]}R.publicKey=f,R.signal=u.createNewAbortSignal();try{c=await navigator.credentials.get(R)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error(\"options was missing required publicKey property\");if(\"AbortError\"===e.name){if(t.signal instanceof AbortSignal)return new l({message:\"Authentication ceremony was sent an abort signal\",code:\"ERROR_CEREMONY_ABORTED\",cause:e})}else if(\"NotAllowedError\"===e.name)return new l({message:e.message,code:\"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY\",cause:e});else if(\"SecurityError\"===e.name){let t=window.location.hostname;if(!s(t))return new l({message:`${window.location.hostname} is an invalid domain`,code:\"ERROR_INVALID_DOMAIN\",cause:e});if(r.rpId!==t)return new l({message:`The RP ID \"${r.rpId}\" is invalid for this domain`,code:\"ERROR_INVALID_RP_ID\",cause:e})}else if(\"UnknownError\"===e.name)return new l({message:\"The authenticator was unable to process the specified options, or could not create a new assertion signature\",code:\"ERROR_AUTHENTICATOR_GENERAL_ERROR\",cause:e});return e}({error:e,options:R})}if(!c)throw Error(\"Authentication was not completed\");let{id:w,rawId:A,response:g,type:p}=c;if(g.userHandle){var b;b=g.userHandle,d=new TextDecoder(\"utf-8\").decode(b)}return{id:w,rawId:n(A),response:{authenticatorData:n(g.authenticatorData),clientDataJSON:n(g.clientDataJSON),signature:n(g.signature),userHandle:d},type:p,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:h(c.authenticatorAttachment)}}function A(){return o()?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable():new Promise(e=>e(!1))}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/5ab80550-22a236d451c69b50.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{50499:function(t,e,r){let i,n;r.d(e,{$0m:function(){return J},AWt:function(){return il},Au2:function(){return im},B95:function(){return nh},Bvr:function(){return iL},BwD:function(){return ti},D6H:function(){return iG},DJo:function(){return r4},DQe:function(){return x},DaH:function(){return Q},DdM:function(){return i6},E0T:function(){return tn},E12:function(){return iH},EJd:function(){return nr},ENt:function(){return iI},Ggh:function(){return nd},GqV:function(){return tt},H1S:function(){return W},H4H:function(){return ni},HIp:function(){return iw},HhN:function(){return ts},IPd:function(){return V},Ih8:function(){return i$},IkP:function(){return ii},JTI:function(){return no},KCv:function(){return Y},L5o:function(){return iV},Llj:function(){return iS},M_r:function(){return iX},Maj:function(){return ij},NmC:function(){return r5},O6B:function(){return nv},ONw:function(){return nc},PMr:function(){return nt},Q01:function(){return ne},Q8x:function(){return iN},UGU:function(){return q},WGe:function(){return ib},X_B:function(){return K},Y31:function(){return is},YmJ:function(){return iA},Z26:function(){return i9},Z42:function(){return $},_HE:function(){return iB},alS:function(){return nf},b$m:function(){return z},bW6:function(){return tu},c4l:function(){return r7},cOS:function(){return iC},eGA:function(){return to},gn4:function(){return tr},gpE:function(){return iz},guN:function(){return O},h1R:function(){return i3},hA9:function(){return ih},hFY:function(){return X},hHR:function(){return nn},heJ:function(){return iF},iPz:function(){return te},ing:function(){return i7},jUY:function(){return j},jdp:function(){return ig},jvJ:function(){return i1},kCb:function(){return iJ},m$A:function(){return iv},naP:function(){return i5},nfW:function(){return ns},o8e:function(){return iW},ouN:function(){return iu},p8o:function(){return nu},peR:function(){return iM},qJM:function(){return io},qt8:function(){return iY},rFo:function(){return na},rVF:function(){return ip},rjm:function(){return iy},uwg:function(){return nm},vBi:function(){return iE},wvx:function(){return r9},xWS:function(){return i2}});var o,s,u,f,h,a,l,c,d,p,m,g=r(52159),v=r(54574),A=r(25527),y=r(70053),b=r(61179),w=r(23518),M=r(67878),E=r(24861),S=r(67929),I=r(89414),N=r(39613),B=r(57711),C=r(25566),_=r(9109).Buffer;function x(t){let[e,r]=t.split(\":\");return{namespace:e,reference:r}}function O(t,e=[]){let r=[];return Object.keys(t).forEach(i=>{if(e.length&&!e.includes(i))return;let n=t[i];r.push(...n.accounts)}),r}function R(t,e){return t.includes(\":\")?[t]:e.chains||[]}var k=Object.defineProperty,P=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(t,e,r)=>e in t?k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))U.call(e,r)&&D(t,r,e[r]);if(P)for(var r of P(e))T.call(e,r)&&D(t,r,e[r]);return t};let L={reactNative:\"react-native\",node:\"node\",browser:\"browser\",unknown:\"unknown\"};function q(){return\"u\">typeof C&&\"u\">typeof C.versions&&\"u\">typeof C.versions.node}function z(){return!(0,A.getDocument)()&&!!(0,A.getNavigator)()&&\"ReactNative\"===navigator.product}function j(){return!q()&&!!(0,A.getNavigator)()&&!!(0,A.getDocument)()}function H(){return z()?L.reactNative:q()?L.node:j()?L.browser:L.unknown}function K(){var t;try{return z()&&\"u\">typeof r.g&&\"u\">typeof(null==r.g?void 0:r.g.Application)?null==(t=r.g.Application)?void 0:t.applicationId:void 0}catch{return}}function Q(){return(0,y.D)()||{name:\"\",description:\"\",url:\"\",icons:[\"\"]}}function J({protocol:t,version:e,relayUrl:i,sdkVersion:n,auth:o,projectId:s,useOnCloseEvent:u,bundleId:f}){var h,a;let l;let c=i.split(\"?\"),d=function(t,e,i){let n=function(){if(H()===L.reactNative&&\"u\">typeof r.g&&\"u\">typeof(null==r.g?void 0:r.g.Platform)){let{OS:t,Version:e}=r.g.Platform;return[t,e].join(\"-\")}let t=(0,g.qY)();if(null===t)return\"unknown\";let e=t.os?t.os.replace(\" \",\"\").toLowerCase():\"unknown\";return\"browser\"===t.type?[e,t.name,t.version].join(\"-\"):[e,t.version].join(\"-\")}(),o=function(){var t;let e=H();return e===L.browser?[e,(null==(t=(0,A.getLocation)())?void 0:t.host)||\"unknown\"].join(\":\"):e}();return[[t,e].join(\"-\"),[\"js\",i].join(\"-\"),n,o].join(\"/\")}(t,e,n),p=(h=c[1]||\"\",a={auth:o,ua:d,projectId:s,useOnCloseEvent:u||void 0,origin:f||void 0},l=F(F({},l=b.parse(h)),a),h=b.stringify(l));return c[0]+\"?\"+p}function G(t,e){return t.filter(t=>e.includes(t)).length===t.length}function Y(t){return Object.fromEntries(t.entries())}function V(t){return new Map(Object.entries(t))}function W(t=v.FIVE_MINUTES,e){let r,i,n;let o=(0,v.toMiliseconds)(t||v.FIVE_MINUTES);return{resolve:t=>{n&&r&&(clearTimeout(n),r(t))},reject:t=>{n&&i&&(clearTimeout(n),i(t))},done:()=>new Promise((t,s)=>{n=setTimeout(()=>{s(Error(e))},o),r=t,i=s})}}function X(t,e,r){return new Promise(async(i,n)=>{let o=setTimeout(()=>n(Error(r)),e);try{let e=await t;i(e)}catch(t){n(t)}clearTimeout(o)})}function Z(t,e){if(\"string\"==typeof e&&e.startsWith(`${t}:`))return e;if(\"topic\"===t.toLowerCase()){if(\"string\"!=typeof e)throw Error('Value must be \"string\" for expirer target type: topic');return`topic:${e}`}if(\"id\"===t.toLowerCase()){if(\"number\"!=typeof e)throw Error('Value must be \"number\" for expirer target type: id');return`id:${e}`}throw Error(`Unknown expirer target type: ${t}`)}function $(t){return Z(\"topic\",t)}function tt(t){return Z(\"id\",t)}function te(t){let[e,r]=t.split(\":\"),i={id:void 0,topic:void 0};if(\"topic\"===e&&\"string\"==typeof r)i.topic=r;else if(\"id\"===e&&Number.isInteger(Number(r)))i.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);return i}function tr(t,e){return(0,v.fromMiliseconds)((e||Date.now())+(0,v.toMiliseconds)(t))}function ti(t){return Date.now()>=(0,v.toMiliseconds)(t)}function tn(t,e){return`${t}${e?`:${e}`:\"\"}`}function to(t=[],e=[]){return[...new Set([...t,...e])]}async function ts({id:t,topic:e,wcDeepLink:i}){try{if(!i)return;let n=\"string\"==typeof i?JSON.parse(i):i,o=n?.href;if(\"string\"!=typeof o)return;o.endsWith(\"/\")&&(o=o.slice(0,-1));let s=`${o}/wc?requestId=${t}&sessionTopic=${e}`,u=H();u===L.browser?s.startsWith(\"https://\")||s.startsWith(\"http://\")?window.open(s,\"_blank\",\"noreferrer noopener\"):window.open(s,\"_self\",\"noreferrer noopener\"):u===L.reactNative&&\"u\">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(s)}catch(t){console.error(t)}}async function tu(t,e){try{return await t.getItem(e)||(j()?localStorage.getItem(e):void 0)}catch(t){console.error(t)}}var tf=\"u\">typeof globalThis?globalThis:\"u\">typeof window?window:\"u\">typeof r.g?r.g:\"u\">typeof self?self:{},th={exports:{}};!function(){var t=\"input is invalid type\",e=\"object\"==typeof window,r=e?window:{};r.JS_SHA3_NO_WINDOW&&(e=!1);var i=!e&&\"object\"==typeof self;!r.JS_SHA3_NO_NODE_JS&&\"object\"==typeof C&&C.versions&&C.versions.node?r=tf:i&&(r=self);var n=!r.JS_SHA3_NO_COMMON_JS&&th.exports,o=!r.JS_SHA3_NO_ARRAY_BUFFER&&\"u\">typeof ArrayBuffer,s=\"0123456789abcdef\".split(\"\"),u=[4,1024,262144,67108864],f=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=[224,256,384,512],l=[128,256],c=[\"hex\",\"buffer\",\"arrayBuffer\",\"array\",\"digest\"],d={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return\"[object Array]\"===Object.prototype.toString.call(t)}),o&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return\"object\"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var p=function(t,e,r){return function(i){return new x(t,e,t).update(i)[r]()}},m=function(t,e,r){return function(i,n){return new x(t,e,n).update(i)[r]()}},g=function(t,e,r){return function(e,i,n,o){return w[\"cshake\"+t].update(e,i,n,o)[r]()}},v=function(t,e,r){return function(e,i,n,o){return w[\"kmac\"+t].update(e,i,n,o)[r]()}},A=function(t,e,r,i){for(var n=0;n<c.length;++n){var o=c[n];t[o]=e(r,i,o)}return t},y=function(t,e){var r=p(t,e,\"hex\");return r.create=function(){return new x(t,e,t)},r.update=function(t){return r.create().update(t)},A(r,p,t,e)},b=[{name:\"keccak\",padding:[1,256,65536,16777216],bits:a,createMethod:y},{name:\"sha3\",padding:[6,1536,393216,100663296],bits:a,createMethod:y},{name:\"shake\",padding:[31,7936,2031616,520093696],bits:l,createMethod:function(t,e){var r=m(t,e,\"hex\");return r.create=function(r){return new x(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},A(r,m,t,e)}},{name:\"cshake\",padding:u,bits:l,createMethod:function(t,e){var r=d[t],i=g(t,e,\"hex\");return i.create=function(i,n,o){return n||o?new x(t,e,i).bytepad([n,o],r):w[\"shake\"+t].create(i)},i.update=function(t,e,r,n){return i.create(e,r,n).update(t)},A(i,g,t,e)}},{name:\"kmac\",padding:u,bits:l,createMethod:function(t,e){var r=d[t],i=v(t,e,\"hex\");return i.create=function(i,n,o){return new O(t,e,n).bytepad([\"KMAC\",o],r).bytepad([i],r)},i.update=function(t,e,r,n){return i.create(t,r,n).update(e)},A(i,v,t,e)}}],w={},M=[],E=0;E<b.length;++E)for(var S=b[E],I=S.bits,N=0;N<I.length;++N){var B=S.name+\"_\"+I[N];if(M.push(B),w[B]=S.createMethod(I[N],S.padding),\"sha3\"!==S.name){var _=S.name+I[N];M.push(_),w[_]=w[B]}}function x(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function O(t,e,r){x.call(this,t,e,r)}x.prototype.update=function(e){if(this.finalized)throw Error(\"finalize already called\");var r,i=typeof e;if(\"string\"!==i){if(\"object\"===i){if(null===e)throw Error(t);if(o&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!o||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}for(var n,s,u=this.blocks,h=this.byteCount,a=e.length,l=this.blockCount,c=0,d=this.s;c<a;){if(this.reset)for(this.reset=!1,u[0]=this.block,n=1;n<l+1;++n)u[n]=0;if(r)for(n=this.start;c<a&&n<h;++c)u[n>>2]|=e[c]<<f[3&n++];else for(n=this.start;c<a&&n<h;++c)(s=e.charCodeAt(c))<128?u[n>>2]|=s<<f[3&n++]:(s<2048?u[n>>2]|=(192|s>>6)<<f[3&n++]:(s<55296||s>=57344?u[n>>2]|=(224|s>>12)<<f[3&n++]:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++c)),u[n>>2]|=(240|s>>18)<<f[3&n++],u[n>>2]|=(128|s>>12&63)<<f[3&n++]),u[n>>2]|=(128|s>>6&63)<<f[3&n++]),u[n>>2]|=(128|63&s)<<f[3&n++]);if(this.lastByteIndex=n,n>=h){for(this.start=n-h,this.block=u[l],n=0;n<l;++n)d[n]^=u[n];R(d),this.reset=!0}else this.start=n}return this},x.prototype.encode=function(t,e){var r=255&t,i=1,n=[r];for(t>>=8,r=255&t;r>0;)n.unshift(r),t>>=8,r=255&t,++i;return e?n.push(i):n.unshift(i),this.update(n),n.length},x.prototype.encodeString=function(e){var r,i=typeof e;if(\"string\"!==i){if(\"object\"===i){if(null===e)throw Error(t);if(o&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!o||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}var n=0,s=e.length;if(r)n=s;else for(var u=0;u<e.length;++u){var f=e.charCodeAt(u);f<128?n+=1:f<2048?n+=2:f<55296||f>=57344?n+=3:(f=65536+((1023&f)<<10|1023&e.charCodeAt(++u)),n+=4)}return n+=this.encode(8*n),this.update(e),n},x.prototype.bytepad=function(t,e){for(var r=this.encode(e),i=0;i<t.length;++i)r+=this.encodeString(t[i]);var n=e-r%e,o=[];return o.length=n,this.update(o),this},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,i=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)i[e]^=t[e];R(i)}},x.prototype.toString=x.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,u=0,f=\"\";u<i;){for(o=0;o<e&&u<i;++o,++u)f+=s[(t=r[o])>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];u%e==0&&(R(r),o=0)}return n&&(f+=s[(t=r[o])>>4&15]+s[15&t],n>1&&(f+=s[t>>12&15]+s[t>>8&15]),n>2&&(f+=s[t>>20&15]+s[t>>16&15])),f},x.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,u=this.outputBits>>3;t=new ArrayBuffer(n?i+1<<2:u);for(var f=new Uint32Array(t);s<i;){for(o=0;o<e&&s<i;++o,++s)f[s]=r[o];s%e==0&&R(r)}return n&&(f[o]=r[o],t=t.slice(0,u)),t},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.digest=x.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,i=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,u=0,f=[];u<n;){for(s=0;s<r&&u<n;++s,++u)t=u<<2,e=i[s],f[t]=255&e,f[t+1]=e>>8&255,f[t+2]=e>>16&255,f[t+3]=e>>24&255;u%r==0&&R(i)}return o&&(t=u<<2,e=i[s],f[t]=255&e,o>1&&(f[t+1]=e>>8&255),o>2&&(f[t+2]=e>>16&255)),f},O.prototype=new x,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),x.prototype.finalize.call(this)};var R=function(t){var e,r,i,n,o,s,u,f,a,l,c,d,p,m,g,v,A,y,b,w,M,E,S,I,N,B,C,_,x,O,R,k,P,U,T,D,F,L,q,z,j,H,K,Q,J,G,Y,V,W,X,Z,$,tt,te,tr,ti,tn,to,ts,tu,tf,th,ta;for(i=0;i<48;i+=2)n=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],f=t[4]^t[14]^t[24]^t[34]^t[44],a=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|u>>>31),r=p^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=n^(f<<1|a>>>31),r=o^(a<<1|f>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|c>>>31),r=u^(c<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=f^(d<<1|p>>>31),r=a^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(n<<1|o>>>31),r=c^(o<<1|n>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,Y=t[10]<<4|t[11]>>>28,_=t[20]<<3|t[21]>>>29,x=t[21]<<3|t[20]>>>29,tu=t[31]<<9|t[30]>>>23,tf=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,T=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,A=t[12]<<12|t[13]>>>20,V=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,th=t[42]<<2|t[43]>>>30,ta=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,F=t[15]<<6|t[14]>>>26,y=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,k=t[45]<<29|t[44]>>>3,P=t[44]<<29|t[45]>>>3,I=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,ti=t[17]<<23|t[16]>>>9,tn=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,q=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,Q=t[8]<<27|t[9]>>>5,J=t[9]<<27|t[8]>>>5,B=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,to=t[29]<<7|t[28]>>>25,ts=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,j=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&y,t[1]=g^~A&b,t[10]=I^~B&_,t[11]=N^~C&x,t[20]=U^~D&L,t[21]=T^~F&q,t[30]=Q^~G&V,t[31]=J^~Y&W,t[40]=te^~ti&to,t[41]=tr^~tn&ts,t[2]=v^~y&w,t[3]=A^~b&M,t[12]=B^~_&O,t[13]=C^~x&R,t[22]=D^~L&z,t[23]=F^~q&j,t[32]=G^~V&X,t[33]=Y^~W&Z,t[42]=ti^~to&tu,t[43]=tn^~ts&tf,t[4]=y^~w&E,t[5]=b^~M&S,t[14]=_^~O&k,t[15]=x^~R&P,t[24]=L^~z&H,t[25]=q^~j&K,t[34]=V^~X&$,t[35]=W^~Z&tt,t[44]=to^~tu&th,t[45]=ts^~tf&ta,t[6]=w^~E&m,t[7]=M^~S&g,t[16]=O^~k&I,t[17]=R^~P&N,t[26]=z^~H&U,t[27]=j^~K&T,t[36]=X^~$&Q,t[37]=Z^~tt&J,t[46]=tu^~th&te,t[47]=tf^~ta&tr,t[8]=E^~m&v,t[9]=S^~g&A,t[18]=k^~I&B,t[19]=P^~N&C,t[28]=H^~U&D,t[29]=K^~T&F,t[38]=$^~Q&G,t[39]=tt^~J&Y,t[48]=th^~te&ti,t[49]=ta^~tr&tn,t[0]^=h[i],t[1]^=h[i+1]};if(n)th.exports=w;else for(E=0;E<M.length;++E)r[M[E]]=w[M[E]]}();var ta=th.exports;let tl=!1,tc=!1,td={debug:1,default:2,info:2,warning:3,error:4,off:5},tp=td.default,tm=null,tg=function(){try{let t=[];if([\"NFD\",\"NFC\",\"NFKD\",\"NFKC\"].forEach(e=>{try{if(\"test\"!==\"test\".normalize(e))throw Error(\"bad normalize\")}catch{t.push(e)}}),t.length)throw Error(\"missing \"+t.join(\", \"));if(String.fromCharCode(233).normalize(\"NFD\")!==String.fromCharCode(101,769))throw Error(\"broken implementation\")}catch(t){return t.message}return null}();(s=l||(l={})).DEBUG=\"DEBUG\",s.INFO=\"INFO\",s.WARNING=\"WARNING\",s.ERROR=\"ERROR\",s.OFF=\"OFF\",(u=c||(c={})).UNKNOWN_ERROR=\"UNKNOWN_ERROR\",u.NOT_IMPLEMENTED=\"NOT_IMPLEMENTED\",u.UNSUPPORTED_OPERATION=\"UNSUPPORTED_OPERATION\",u.NETWORK_ERROR=\"NETWORK_ERROR\",u.SERVER_ERROR=\"SERVER_ERROR\",u.TIMEOUT=\"TIMEOUT\",u.BUFFER_OVERRUN=\"BUFFER_OVERRUN\",u.NUMERIC_FAULT=\"NUMERIC_FAULT\",u.MISSING_NEW=\"MISSING_NEW\",u.INVALID_ARGUMENT=\"INVALID_ARGUMENT\",u.MISSING_ARGUMENT=\"MISSING_ARGUMENT\",u.UNEXPECTED_ARGUMENT=\"UNEXPECTED_ARGUMENT\",u.CALL_EXCEPTION=\"CALL_EXCEPTION\",u.INSUFFICIENT_FUNDS=\"INSUFFICIENT_FUNDS\",u.NONCE_EXPIRED=\"NONCE_EXPIRED\",u.REPLACEMENT_UNDERPRICED=\"REPLACEMENT_UNDERPRICED\",u.UNPREDICTABLE_GAS_LIMIT=\"UNPREDICTABLE_GAS_LIMIT\",u.TRANSACTION_REPLACED=\"TRANSACTION_REPLACED\",u.ACTION_REJECTED=\"ACTION_REJECTED\";let tv=\"0123456789abcdef\";class tA{constructor(t){Object.defineProperty(this,\"version\",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==td[r]&&this.throwArgumentError(\"invalid log level name\",\"logLevel\",t),tp>td[r]||console.log.apply(console,e)}debug(...t){this._log(tA.levels.DEBUG,t)}info(...t){this._log(tA.levels.INFO,t)}warn(...t){this._log(tA.levels.WARNING,t)}makeError(t,e,r){if(tc)return this.makeError(\"censored error\",e,{});e||(e=tA.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r=\"\";for(let t=0;t<e.length;t++)r+=tv[e[t]>>4]+tv[15&e[t]];i.push(t+\"=Uint8Array(0x\"+r+\")\")}else i.push(t+\"=\"+JSON.stringify(e))}catch{i.push(t+\"=\"+JSON.stringify(r[t].toString()))}}),i.push(`code=${e}`),i.push(`version=${this.version}`);let n=t,o=\"\";switch(e){case c.NUMERIC_FAULT:{o=\"NUMERIC_FAULT\";let e=t;switch(e){case\"overflow\":case\"underflow\":case\"division-by-zero\":o+=\"-\"+e;break;case\"negative-power\":case\"negative-width\":o+=\"-unsupported\";break;case\"unbound-bitwise-result\":o+=\"-unbound-result\"}break}case c.CALL_EXCEPTION:case c.INSUFFICIENT_FUNDS:case c.MISSING_NEW:case c.NONCE_EXPIRED:case c.REPLACEMENT_UNDERPRICED:case c.TRANSACTION_REPLACED:case c.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=\" [ See: https://links.ethers.org/v5-errors-\"+o+\" ]\"),i.length&&(t+=\" (\"+i.join(\", \")+\")\");let s=Error(t);return s.reason=n,s.code=e,Object.keys(r).forEach(function(t){s[t]=r[t]}),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,tA.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,i){t||this.throwError(e,r,i)}assertArgument(t,e,r,i){t||this.throwArgumentError(e,r,i)}checkNormalize(t){tg&&this.throwError(\"platform missing String.prototype.normalize\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"String.prototype.normalize\",form:tg})}checkSafeUint53(t,e){\"number\"==typeof t&&(null==e&&(e=\"value not safe\"),(t<0||t>=9007199254740991)&&this.throwError(e,tA.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"out-of-safe-range\",value:t}),t%1&&this.throwError(e,tA.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"non-integer\",value:t}))}checkArgumentCount(t,e,r){r=r?\": \"+r:\"\",t<e&&this.throwError(\"missing argument\"+r,tA.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError(\"too many arguments\"+r,tA.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError(\"missing new\",tA.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError(\"cannot instantiate abstract class \"+JSON.stringify(e.name)+\" directly; use a sub-class\",tA.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:\"new\"}):(t===Object||null==t)&&this.throwError(\"missing new\",tA.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return tm||(tm=new tA(\"logger/5.7.0\")),tm}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError(\"cannot permanently disable censorship\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"}),tl){if(!t)return;this.globalLogger().throwError(\"error censorship permanent\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"})}tc=!!t,tl=!!e}static setLogLevel(t){let e=td[t.toLowerCase()];if(null==e){tA.globalLogger().warn(\"invalid log level - \"+t);return}tp=e}static from(t){return new tA(t)}}tA.errors=c,tA.levels=l;let ty=new tA(\"bytes/5.7.0\");function tb(t){return!!t.toHexString}function tw(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return tw(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function tM(t){return\"number\"==typeof t&&t==t&&t%1==0}function tE(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if(\"string\"==typeof t||!tM(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!tM(r)||r<0||r>=256)return!1}return!0}function tS(t,e){if(e||(e={}),\"number\"==typeof t){ty.checkSafeUint53(t,\"invalid arrayify value\");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),tw(new Uint8Array(e))}if(e.allowMissingPrefix&&\"string\"==typeof t&&\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),tb(t)&&(t=t.toHexString()),tI(t)){let r=t.substring(2);r.length%2&&(\"left\"===e.hexPad?r=\"0\"+r:\"right\"===e.hexPad?r+=\"0\":ty.throwArgumentError(\"hex data is odd-length\",\"value\",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return tw(new Uint8Array(i))}return tE(t)?tw(new Uint8Array(t)):ty.throwArgumentError(\"invalid arrayify value\",\"value\",t)}function tI(t,e){return!(\"string\"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}let tN=\"0123456789abcdef\";function tB(t,e){if(e||(e={}),\"number\"==typeof t){ty.checkSafeUint53(t,\"invalid hexlify value\");let e=\"\";for(;t;)e=tN[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e=\"0\"+e),\"0x\"+e):\"0x00\"}if(\"bigint\"==typeof t)return(t=t.toString(16)).length%2?\"0x0\"+t:\"0x\"+t;if(e.allowMissingPrefix&&\"string\"==typeof t&&\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),tb(t))return t.toHexString();if(tI(t))return t.length%2&&(\"left\"===e.hexPad?t=\"0x0\"+t.substring(2):\"right\"===e.hexPad?t+=\"0\":ty.throwArgumentError(\"hex data is odd-length\",\"value\",t)),t.toLowerCase();if(tE(t)){let e=\"0x\";for(let r=0;r<t.length;r++){let i=t[r];e+=tN[(240&i)>>4]+tN[15&i]}return e}return ty.throwArgumentError(\"invalid hexlify value\",\"value\",t)}function tC(t,e,r){return\"string\"!=typeof t?t=tB(t):(!tI(t)||t.length%2)&&ty.throwArgumentError(\"invalid hexData\",\"value\",t),e=2+2*e,null!=r?\"0x\"+t.substring(e,2+2*r):\"0x\"+t.substring(e)}function t_(t,e){for(\"string\"!=typeof t?t=tB(t):tI(t)||ty.throwArgumentError(\"invalid hex string\",\"value\",t),t.length>2*e+2&&ty.throwArgumentError(\"value out of range\",\"value\",arguments[1]);t.length<2*e+2;)t=\"0x0\"+t.substring(2);return t}function tx(t){let e={r:\"0x\",s:\"0x\",_vs:\"0x\",recoveryParam:0,v:0,yParityAndS:\"0x\",compact:\"0x\"};if(tI(t)&&!(t.length%2)||tE(t)){let r=tS(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=tB(r.slice(0,32)),e.s=tB(r.slice(32,64))):65===r.length?(e.r=tB(r.slice(0,32)),e.s=tB(r.slice(32,64)),e.v=r[64]):ty.throwArgumentError(\"invalid signature string\",\"signature\",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:ty.throwArgumentError(\"signature invalid v byte\",\"signature\",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=tB(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=tS(t)).length>e&&ty.throwArgumentError(\"value out of range\",\"value\",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),tw(r)}(tS(e._vs),32);e._vs=tB(r);let i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&ty.throwArgumentError(\"signature recoveryParam mismatch _vs\",\"signature\",t),r[0]&=127;let n=tB(r);null==e.s?e.s=n:e.s!==n&&ty.throwArgumentError(\"signature v mismatch _vs\",\"signature\",t)}if(null==e.recoveryParam)null==e.v?ty.throwArgumentError(\"signature missing v and recoveryParam\",\"signature\",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&ty.throwArgumentError(\"signature recoveryParam mismatch v\",\"signature\",t)}null!=e.r&&tI(e.r)?e.r=t_(e.r,32):ty.throwArgumentError(\"signature missing or invalid r\",\"signature\",t),null!=e.s&&tI(e.s)?e.s=t_(e.s,32):ty.throwArgumentError(\"signature missing or invalid s\",\"signature\",t);let r=tS(e.s);r[0]>=128&&ty.throwArgumentError(\"signature s out of range\",\"signature\",t),e.recoveryParam&&(r[0]|=128);let i=tB(r);e._vs&&(tI(e._vs)||ty.throwArgumentError(\"signature invalid _vs\",\"signature\",t),e._vs=t_(e._vs,32)),null==e._vs?e._vs=i:e._vs!==i&&ty.throwArgumentError(\"signature _vs mismatch v and s\",\"signature\",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function tO(t){return\"0x\"+ta.keccak_256(tS(t))}var tR={exports:{}},tk=function(t){var e=t.default;if(\"function\"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,\"__esModule\",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}(Object.freeze({__proto__:null,default:{}}));!function(t,e){function r(t,e){if(!t)throw Error(e||\"Assertion failed\")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function n(t,e,r){if(n.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&((\"le\"===e||\"be\"===e)&&(r=e,e=10),this._init(t||0,e||10,r||\"be\"))}\"object\"==typeof t?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;try{a=\"u\">typeof window&&\"u\">typeof window.Buffer?window.Buffer:tk.Buffer}catch{}function o(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void r(!1,\"Invalid character in \"+t)}function s(t,e,r){var i=o(t,r);return r-1>=e&&(i|=o(t,r-1)<<4),i}function u(t,e,i,n){for(var o=0,s=0,u=Math.min(t.length,i),f=e;f<u;f++){var h=t.charCodeAt(f)-48;o*=n,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<n,\"Invalid character\"),o+=s}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(n.isBN=function(t){return t instanceof n||null!==t&&\"object\"==typeof t&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,e){return t.cmp(e)>0?t:e},n.min=function(t,e){return 0>t.cmp(e)?t:e},n.prototype._init=function(t,e,i){if(\"number\"==typeof t)return this._initNumber(t,e,i);if(\"object\"==typeof t)return this._initArray(t,e,i);\"hex\"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;\"-\"===(t=t.toString().replace(/\\s+/g,\"\"))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),\"le\"===i&&this._initArray(this.toArray(),e,i)))},n.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),\"le\"===i&&this._initArray(this.toArray(),e,i)},n.prototype._initArray=function(t,e,i){if(r(\"number\"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,s,u=0;if(\"be\"===i)for(n=t.length-1,o=0;n>=0;n-=3)s=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if(\"le\"===i)for(n=0,o=0;n<t.length;n+=3)s=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},n.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o=0,u=0;if(\"be\"===r)for(i=t.length-1;i>=e;i-=2)n=s(t,e,i)<<o,this.words[u]|=67108863&n,o>=18?(o-=18,u+=1,this.words[u]|=n>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=s(t,e,i)<<o,this.words[u]|=67108863&n,o>=18?(o-=18,u+=1,this.words[u]|=n>>>26):o+=8;this._strip()},n.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=e)i++;i--,n=n/e|0;for(var o=t.length-r,s=o%i,f=Math.min(o,o-s)+r,h=0,a=r;a<f;a+=i)h=u(t,a,a+i,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var l=1;for(h=u(t,a,t.length,e),a=0;a<s;a++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},n.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},n.prototype._move=function(t){f(t,this)},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},\"u\">typeof Symbol&&\"function\"==typeof Symbol.for)try{n.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=h}catch{n.prototype.inspect=h}else n.prototype.inspect=h;function h(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var a,l=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var i=t.length+e.length|0;r.length=i,i=i-1|0;var n=0|t.words[0],o=0|e.words[0],s=n*o,u=67108863&s,f=s/67108864|0;r.words[0]=u;for(var h=1;h<i;h++){for(var a=f>>>26,l=67108863&f,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var p=h-d|0;a+=(s=(n=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&s}r.words[h]=0|l,f=0|a}return 0!==f?r.words[h]=0|f:r.length--,r._strip()}n.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||\"hex\"===t){i=\"\";for(var i,n=0,o=0,s=0;s<this.length;s++){var u=this.words[s],f=((u<<n|o)&16777215).toString(16);o=u>>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),i=0!==o||s!==this.length-1?l[6-f.length]+f+i:f+i}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i=\"0\"+i;return 0!==this.negative&&(i=\"-\"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],a=d[t];i=\"\";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(a).toString(t);i=(p=p.idivn(a)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i=\"0\"+i);i.length%e!=0;)i=\"0\"+i;return 0!==this.negative&&(i=\"-\"+i),i}r(!1,\"Base should be between 2 and 36\")},n.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-t:t},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),n.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},n.prototype.toArrayLike=function(t,e,i){this._strip();var n=this.byteLength(),o=i||Math.max(1,n);r(n<=o,\"byte array longer than desired length\"),r(o>0,\"Requested array length <= 0\");var s=t.allocUnsafe?t.allocUnsafe(o):new t(o);return this[\"_toArrayLike\"+(\"le\"===e?\"LE\":\"BE\")](s,n),s},n.prototype._toArrayLikeLE=function(t,e){for(var r=0,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<t.length)for(t[r++]=i;r<t.length;)t[r++]=0},n.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(t[r--]=i;r>=0;)t[r--]=0},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},n.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},n.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return 0!==this.negative},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},n.prototype.ior=function(t){return r((this.negative|t.negative)==0),this.iuor(t)},n.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},n.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},n.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},n.prototype.iand=function(t){return r((this.negative|t.negative)==0),this.iuand(t)},n.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},n.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},n.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},n.prototype.ixor=function(t){return r((this.negative|t.negative)==0),this.iuxor(t)},n.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},n.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},n.prototype.inotn=function(t){r(\"number\"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,e){r(\"number\"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),e?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this._strip()},n.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e,r,i,n=0,o=0;o<i.length;o++)e=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<r.length;o++)e=(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},n.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},n.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<e.length;s++)o=(i=(0|e.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var i,n,o,s=t.words,u=e.words,f=r.words,h=0,a=0|s[0],l=8191&a,c=a>>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,A=g>>>13,y=0|s[3],b=8191&y,w=y>>>13,M=0|s[4],E=8191&M,S=M>>>13,I=0|s[5],N=8191&I,B=I>>>13,C=0|s[6],_=8191&C,x=C>>>13,O=0|s[7],R=8191&O,k=O>>>13,P=0|s[8],U=8191&P,T=P>>>13,D=0|s[9],F=8191&D,L=D>>>13,q=0|u[0],z=8191&q,j=q>>>13,H=0|u[1],K=8191&H,Q=H>>>13,J=0|u[2],G=8191&J,Y=J>>>13,V=0|u[3],W=8191&V,X=V>>>13,Z=0|u[4],$=8191&Z,tt=Z>>>13,te=0|u[5],tr=8191&te,ti=te>>>13,tn=0|u[6],to=8191&tn,ts=tn>>>13,tu=0|u[7],tf=8191&tu,th=tu>>>13,ta=0|u[8],tl=8191&ta,tc=ta>>>13,td=0|u[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19,i=Math.imul(l,z),n=(n=Math.imul(l,j))+Math.imul(c,z)|0,o=Math.imul(c,j);var tg=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tg>>>26)|0,tg&=67108863,i=Math.imul(p,z),n=(n=Math.imul(p,j))+Math.imul(m,z)|0,o=Math.imul(m,j),i=i+Math.imul(l,K)|0,n=(n=n+Math.imul(l,Q)|0)+Math.imul(c,K)|0,o=o+Math.imul(c,Q)|0;var tv=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tv>>>26)|0,tv&=67108863,i=Math.imul(v,z),n=(n=Math.imul(v,j))+Math.imul(A,z)|0,o=Math.imul(A,j),i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,Q)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Q)|0,i=i+Math.imul(l,G)|0,n=(n=n+Math.imul(l,Y)|0)+Math.imul(c,G)|0,o=o+Math.imul(c,Y)|0;var tA=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tA>>>26)|0,tA&=67108863,i=Math.imul(b,z),n=(n=Math.imul(b,j))+Math.imul(w,z)|0,o=Math.imul(w,j),i=i+Math.imul(v,K)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Q)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0,i=i+Math.imul(l,W)|0,n=(n=n+Math.imul(l,X)|0)+Math.imul(c,W)|0,o=o+Math.imul(c,X)|0;var ty=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(ty>>>26)|0,ty&=67108863,i=Math.imul(E,z),n=(n=Math.imul(E,j))+Math.imul(S,z)|0,o=Math.imul(S,j),i=i+Math.imul(b,K)|0,n=(n=n+Math.imul(b,Q)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Q)|0,i=i+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,i=i+Math.imul(p,W)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0,i=i+Math.imul(l,$)|0,n=(n=n+Math.imul(l,tt)|0)+Math.imul(c,$)|0,o=o+Math.imul(c,tt)|0;var tb=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tb>>>26)|0,tb&=67108863,i=Math.imul(N,z),n=(n=Math.imul(N,j))+Math.imul(B,z)|0,o=Math.imul(B,j),i=i+Math.imul(E,K)|0,n=(n=n+Math.imul(E,Q)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,Q)|0,i=i+Math.imul(b,G)|0,n=(n=n+Math.imul(b,Y)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,Y)|0,i=i+Math.imul(v,W)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,X)|0,i=i+Math.imul(p,$)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,tt)|0,i=i+Math.imul(l,tr)|0,n=(n=n+Math.imul(l,ti)|0)+Math.imul(c,tr)|0,o=o+Math.imul(c,ti)|0;var tw=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tw>>>26)|0,tw&=67108863,i=Math.imul(_,z),n=(n=Math.imul(_,j))+Math.imul(x,z)|0,o=Math.imul(x,j),i=i+Math.imul(N,K)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Q)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,Y)|0,i=i+Math.imul(b,W)|0,n=(n=n+Math.imul(b,X)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,X)|0,i=i+Math.imul(v,$)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(p,tr)|0,n=(n=n+Math.imul(p,ti)|0)+Math.imul(m,tr)|0,o=o+Math.imul(m,ti)|0,i=i+Math.imul(l,to)|0,n=(n=n+Math.imul(l,ts)|0)+Math.imul(c,to)|0,o=o+Math.imul(c,ts)|0;var tM=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tM>>>26)|0,tM&=67108863,i=Math.imul(R,z),n=(n=Math.imul(R,j))+Math.imul(k,z)|0,o=Math.imul(k,j),i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,Q)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Q)|0,i=i+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,i=i+Math.imul(E,W)|0,n=(n=n+Math.imul(E,X)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,X)|0,i=i+Math.imul(b,$)|0,n=(n=n+Math.imul(b,tt)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(v,tr)|0,n=(n=n+Math.imul(v,ti)|0)+Math.imul(A,tr)|0,o=o+Math.imul(A,ti)|0,i=i+Math.imul(p,to)|0,n=(n=n+Math.imul(p,ts)|0)+Math.imul(m,to)|0,o=o+Math.imul(m,ts)|0,i=i+Math.imul(l,tf)|0,n=(n=n+Math.imul(l,th)|0)+Math.imul(c,tf)|0,o=o+Math.imul(c,th)|0;var tE=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tE>>>26)|0,tE&=67108863,i=Math.imul(U,z),n=(n=Math.imul(U,j))+Math.imul(T,z)|0,o=Math.imul(T,j),i=i+Math.imul(R,K)|0,n=(n=n+Math.imul(R,Q)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,Q)|0,i=i+Math.imul(_,G)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,Y)|0,i=i+Math.imul(N,W)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,X)|0,i=i+Math.imul(E,$)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,i=i+Math.imul(b,tr)|0,n=(n=n+Math.imul(b,ti)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,ti)|0,i=i+Math.imul(v,to)|0,n=(n=n+Math.imul(v,ts)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ts)|0,i=i+Math.imul(p,tf)|0,n=(n=n+Math.imul(p,th)|0)+Math.imul(m,tf)|0,o=o+Math.imul(m,th)|0,i=i+Math.imul(l,tl)|0,n=(n=n+Math.imul(l,tc)|0)+Math.imul(c,tl)|0,o=o+Math.imul(c,tc)|0;var tS=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tS>>>26)|0,tS&=67108863,i=Math.imul(F,z),n=(n=Math.imul(F,j))+Math.imul(L,z)|0,o=Math.imul(L,j),i=i+Math.imul(U,K)|0,n=(n=n+Math.imul(U,Q)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Q)|0,i=i+Math.imul(R,G)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,i=i+Math.imul(_,W)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,X)|0,i=i+Math.imul(N,$)|0,n=(n=n+Math.imul(N,tt)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,tt)|0,i=i+Math.imul(E,tr)|0,n=(n=n+Math.imul(E,ti)|0)+Math.imul(S,tr)|0,o=o+Math.imul(S,ti)|0,i=i+Math.imul(b,to)|0,n=(n=n+Math.imul(b,ts)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ts)|0,i=i+Math.imul(v,tf)|0,n=(n=n+Math.imul(v,th)|0)+Math.imul(A,tf)|0,o=o+Math.imul(A,th)|0,i=i+Math.imul(p,tl)|0,n=(n=n+Math.imul(p,tc)|0)+Math.imul(m,tl)|0,o=o+Math.imul(m,tc)|0,i=i+Math.imul(l,tp)|0,n=(n=n+Math.imul(l,tm)|0)+Math.imul(c,tp)|0,o=o+Math.imul(c,tm)|0;var tI=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tI>>>26)|0,tI&=67108863,i=Math.imul(F,K),n=(n=Math.imul(F,Q))+Math.imul(L,K)|0,o=Math.imul(L,Q),i=i+Math.imul(U,G)|0,n=(n=n+Math.imul(U,Y)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Y)|0,i=i+Math.imul(R,W)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,X)|0,i=i+Math.imul(_,$)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,tt)|0,i=i+Math.imul(N,tr)|0,n=(n=n+Math.imul(N,ti)|0)+Math.imul(B,tr)|0,o=o+Math.imul(B,ti)|0,i=i+Math.imul(E,to)|0,n=(n=n+Math.imul(E,ts)|0)+Math.imul(S,to)|0,o=o+Math.imul(S,ts)|0,i=i+Math.imul(b,tf)|0,n=(n=n+Math.imul(b,th)|0)+Math.imul(w,tf)|0,o=o+Math.imul(w,th)|0,i=i+Math.imul(v,tl)|0,n=(n=n+Math.imul(v,tc)|0)+Math.imul(A,tl)|0,o=o+Math.imul(A,tc)|0,i=i+Math.imul(p,tp)|0,n=(n=n+Math.imul(p,tm)|0)+Math.imul(m,tp)|0,o=o+Math.imul(m,tm)|0;var tN=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tN>>>26)|0,tN&=67108863,i=Math.imul(F,G),n=(n=Math.imul(F,Y))+Math.imul(L,G)|0,o=Math.imul(L,Y),i=i+Math.imul(U,W)|0,n=(n=n+Math.imul(U,X)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,X)|0,i=i+Math.imul(R,$)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,tr)|0,n=(n=n+Math.imul(_,ti)|0)+Math.imul(x,tr)|0,o=o+Math.imul(x,ti)|0,i=i+Math.imul(N,to)|0,n=(n=n+Math.imul(N,ts)|0)+Math.imul(B,to)|0,o=o+Math.imul(B,ts)|0,i=i+Math.imul(E,tf)|0,n=(n=n+Math.imul(E,th)|0)+Math.imul(S,tf)|0,o=o+Math.imul(S,th)|0,i=i+Math.imul(b,tl)|0,n=(n=n+Math.imul(b,tc)|0)+Math.imul(w,tl)|0,o=o+Math.imul(w,tc)|0,i=i+Math.imul(v,tp)|0,n=(n=n+Math.imul(v,tm)|0)+Math.imul(A,tp)|0,o=o+Math.imul(A,tm)|0;var tB=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tB>>>26)|0,tB&=67108863,i=Math.imul(F,W),n=(n=Math.imul(F,X))+Math.imul(L,W)|0,o=Math.imul(L,X),i=i+Math.imul(U,$)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,i=i+Math.imul(R,tr)|0,n=(n=n+Math.imul(R,ti)|0)+Math.imul(k,tr)|0,o=o+Math.imul(k,ti)|0,i=i+Math.imul(_,to)|0,n=(n=n+Math.imul(_,ts)|0)+Math.imul(x,to)|0,o=o+Math.imul(x,ts)|0,i=i+Math.imul(N,tf)|0,n=(n=n+Math.imul(N,th)|0)+Math.imul(B,tf)|0,o=o+Math.imul(B,th)|0,i=i+Math.imul(E,tl)|0,n=(n=n+Math.imul(E,tc)|0)+Math.imul(S,tl)|0,o=o+Math.imul(S,tc)|0,i=i+Math.imul(b,tp)|0,n=(n=n+Math.imul(b,tm)|0)+Math.imul(w,tp)|0,o=o+Math.imul(w,tm)|0;var tC=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tC>>>26)|0,tC&=67108863,i=Math.imul(F,$),n=(n=Math.imul(F,tt))+Math.imul(L,$)|0,o=Math.imul(L,tt),i=i+Math.imul(U,tr)|0,n=(n=n+Math.imul(U,ti)|0)+Math.imul(T,tr)|0,o=o+Math.imul(T,ti)|0,i=i+Math.imul(R,to)|0,n=(n=n+Math.imul(R,ts)|0)+Math.imul(k,to)|0,o=o+Math.imul(k,ts)|0,i=i+Math.imul(_,tf)|0,n=(n=n+Math.imul(_,th)|0)+Math.imul(x,tf)|0,o=o+Math.imul(x,th)|0,i=i+Math.imul(N,tl)|0,n=(n=n+Math.imul(N,tc)|0)+Math.imul(B,tl)|0,o=o+Math.imul(B,tc)|0,i=i+Math.imul(E,tp)|0,n=(n=n+Math.imul(E,tm)|0)+Math.imul(S,tp)|0,o=o+Math.imul(S,tm)|0;var t_=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(t_>>>26)|0,t_&=67108863,i=Math.imul(F,tr),n=(n=Math.imul(F,ti))+Math.imul(L,tr)|0,o=Math.imul(L,ti),i=i+Math.imul(U,to)|0,n=(n=n+Math.imul(U,ts)|0)+Math.imul(T,to)|0,o=o+Math.imul(T,ts)|0,i=i+Math.imul(R,tf)|0,n=(n=n+Math.imul(R,th)|0)+Math.imul(k,tf)|0,o=o+Math.imul(k,th)|0,i=i+Math.imul(_,tl)|0,n=(n=n+Math.imul(_,tc)|0)+Math.imul(x,tl)|0,o=o+Math.imul(x,tc)|0,i=i+Math.imul(N,tp)|0,n=(n=n+Math.imul(N,tm)|0)+Math.imul(B,tp)|0,o=o+Math.imul(B,tm)|0;var tx=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tx>>>26)|0,tx&=67108863,i=Math.imul(F,to),n=(n=Math.imul(F,ts))+Math.imul(L,to)|0,o=Math.imul(L,ts),i=i+Math.imul(U,tf)|0,n=(n=n+Math.imul(U,th)|0)+Math.imul(T,tf)|0,o=o+Math.imul(T,th)|0,i=i+Math.imul(R,tl)|0,n=(n=n+Math.imul(R,tc)|0)+Math.imul(k,tl)|0,o=o+Math.imul(k,tc)|0,i=i+Math.imul(_,tp)|0,n=(n=n+Math.imul(_,tm)|0)+Math.imul(x,tp)|0,o=o+Math.imul(x,tm)|0;var tO=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tO>>>26)|0,tO&=67108863,i=Math.imul(F,tf),n=(n=Math.imul(F,th))+Math.imul(L,tf)|0,o=Math.imul(L,th),i=i+Math.imul(U,tl)|0,n=(n=n+Math.imul(U,tc)|0)+Math.imul(T,tl)|0,o=o+Math.imul(T,tc)|0,i=i+Math.imul(R,tp)|0,n=(n=n+Math.imul(R,tm)|0)+Math.imul(k,tp)|0,o=o+Math.imul(k,tm)|0;var tR=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tR>>>26)|0,tR&=67108863,i=Math.imul(F,tl),n=(n=Math.imul(F,tc))+Math.imul(L,tl)|0,o=Math.imul(L,tc),i=i+Math.imul(U,tp)|0,n=(n=n+Math.imul(U,tm)|0)+Math.imul(T,tp)|0,o=o+Math.imul(T,tm)|0;var tk=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tk>>>26)|0,tk&=67108863,i=Math.imul(F,tp),n=(n=Math.imul(F,tm))+Math.imul(L,tp)|0,o=Math.imul(L,tm);var tP=(h+i|0)+((8191&n)<<13)|0;return h=(o+(n>>>13)|0)+(tP>>>26)|0,tP&=67108863,f[0]=tg,f[1]=tv,f[2]=tA,f[3]=ty,f[4]=tb,f[5]=tw,f[6]=tM,f[7]=tE,f[8]=tS,f[9]=tI,f[10]=tN,f[11]=tB,f[12]=tC,f[13]=t_,f[14]=tx,f[15]=tO,f[16]=tR,f[17]=tk,f[18]=tP,0!==h&&(f[19]=h,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var u=67108863&i,f=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=f;h++){var a=o-h,l=(0|t.words[a])*(0|e.words[h]),c=67108863&l;s=s+(l/67108864|0)|0,u=67108863&(c=c+u|0),n+=(s=s+(c>>>26)|0)>>>26,s&=67108863}r.words[o]=u,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r._strip()}Math.imul||(m=p),n.prototype.mulTo=function(t,e){var r,i=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):i<63?p(this,t,e):g(this,t,e)},n.prototype.mul=function(t){var e=new n(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},n.prototype.mulf=function(t){var e=new n(null);return e.words=Array(this.length+t.length),g(this,t,e)},n.prototype.imul=function(t){return this.clone().mulTo(t,this)},n.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r(\"number\"==typeof t),r(t<67108864);for(var i=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(67108863&o)+(67108863&i);i>>=26,i+=(o/67108864|0)+(s>>>26),this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),e?this.ineg():this},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=t.words[i]>>>n&1}return e}(t);if(0===e.length)return new n(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var o=r.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(r=r.mul(o));return r},n.prototype.iushln=function(t){r(\"number\"==typeof t&&t>=0);var e,i=t%26,n=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,f=(0|this.words[e])-u<<i;this.words[e]=f|s,s=u>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this._strip()},n.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},n.prototype.iushrn=function(t,e,i){r(\"number\"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o;if(n-=s,n=Math.max(0,n),i){for(var f=0;f<s;f++)i.words[f]=this.words[f];i.length=s}if(0!==s){if(this.length>s)for(this.length-=s,f=0;f<this.length;f++)this.words[f]=this.words[f+s];else this.words[0]=0,this.length=1}var h=0;for(f=this.length-1;f>=0&&(0!==h||f>=n);f--){var a=0|this.words[f];this.words[f]=h<<26-o|a>>>o,h=a&u}return i&&0!==h&&(i.words[i.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){r(\"number\"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i)&&!!(this.words[i]&1<<e)},n.prototype.imaskn=function(t){r(\"number\"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return(r(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=i)?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return r(\"number\"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},n.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},n.prototype.isubn=function(t){if(r(\"number\"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,e,i){var n,o=t.length+i;this._expand(o);var s,u=0;for(n=0;n<t.length;n++){s=(0|this.words[n+i])+u;var f=(0|t.words[n])*e;s-=67108863&f,u=(s>>26)-(f/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)u=(s=(0|this.words[n+i])+u)>>26,this.words[n+i]=67108863&s;if(0===u)return this._strip();for(r(-1===u),u=0,n=0;n<this.length;n++)u=(s=-(0|this.words[n])+u)>>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},n.prototype._wordDiv=function(t,e){var r=this.length-t.length,i=this.clone(),o=t,s=0|o.words[o.length-1];0!=(r=26-this._countBits(s))&&(o=o.ushln(r),i.iushln(r),s=0|o.words[o.length-1]);var u,f=i.length-o.length;if(\"mod\"!==e){(u=new n(null)).length=f+1,u.words=Array(u.length);for(var h=0;h<u.length;h++)u.words[h]=0}var a=i.clone()._ishlnsubmul(o,1,f);0===a.negative&&(i=a,u&&(u.words[f]=1));for(var l=f-1;l>=0;l--){var c=(0|i.words[o.length+l])*67108864+(0|i.words[o.length+l-1]);for(c=Math.min(c/s|0,67108863),i._ishlnsubmul(o,c,l);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,l),i.isZero()||(i.negative^=1);u&&(u.words[l]=c)}return u&&u._strip(),i._strip(),\"div\"!==e&&0!==r&&i.iushrn(r),{div:u||null,mod:i}},n.prototype.divmod=function(t,e,i){var o,s,u;return(r(!t.isZero()),this.isZero())?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),\"mod\"!==e&&(o=u.div.neg()),\"div\"!==e&&(s=u.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),\"mod\"!==e&&(o=u.div.neg()),{div:o,mod:u.mod}):this.negative&t.negative?(u=this.neg().divmod(t.neg(),e),\"div\"!==e&&(s=u.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new n(0),mod:this}:1===t.length?\"div\"===e?{div:this.divn(t.words[0]),mod:null}:\"mod\"===e?{div:null,mod:new n(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modrn(t.words[0]))}:this._wordDiv(t,e)},n.prototype.div=function(t){return this.divmod(t,\"div\",!1).div},n.prototype.mod=function(t){return this.divmod(t,\"mod\",!1).mod},n.prototype.umod=function(t){return this.divmod(t,\"mod\",!0).mod},n.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),n=t.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},n.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var i=67108864%t,n=0,o=this.length-1;o>=0;o--)n=(i*n+(0|this.words[o]))%t;return e?-n:n},n.prototype.modn=function(t){return this.modrn(t)},n.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*i;this.words[n]=o/t|0,i=o%t}return this._strip(),e?this.ineg():this},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new n(1),s=new n(0),u=new n(0),f=new n(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var a=i.clone(),l=e.clone();!e.isZero();){for(var c=0,d=1;!(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(a),s.isub(l)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;!(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(u.isOdd()||f.isOdd())&&(u.iadd(a),f.isub(l)),u.iushrn(1),f.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(u),s.isub(f)):(i.isub(e),u.isub(o),f.isub(s))}return{a:u,b:f,gcd:i.iushln(h)}},n.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,i=this,o=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var s=new n(1),u=new n(0),f=o.clone();i.cmpn(1)>0&&o.cmpn(1)>0;){for(var h=0,a=1;!(i.words[0]&a)&&h<26;++h,a<<=1);if(h>0)for(i.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var l=0,c=1;!(o.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(o.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(f),u.iushrn(1);i.cmp(o)>=0?(i.isub(o),s.isub(u)):(o.isub(i),u.isub(s))}return 0>(e=0===i.cmpn(1)?s:u).cmpn(0)&&e.iadd(t),e},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var o=e;e=r,r=o}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return(1&this.words[0])==0},n.prototype.isOdd=function(){return(1&this.words[0])==1},n.prototype.andln=function(t){return this.words[0]&t},n.prototype.bincn=function(t){r(\"number\"==typeof t);var e=t%26,i=(t-e)/26,n=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var o=n,s=i;0!==o&&s<this.length;s++){var u=0|this.words[s];u+=o,o=u>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,\"Number is too big\");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},n.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},n.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},n.prototype.gtn=function(t){return 1===this.cmpn(t)},n.prototype.gt=function(t){return 1===this.cmp(t)},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return -1===this.cmpn(t)},n.prototype.lt=function(t){return -1===this.cmp(t)},n.prototype.lten=function(t){return 0>=this.cmpn(t)},n.prototype.lte=function(t){return 0>=this.cmp(t)},n.prototype.eqn=function(t){return 0===this.cmpn(t)},n.prototype.eq=function(t){return 0===this.cmp(t)},n.red=function(t){return new E(t)},n.prototype.toRed=function(t){return r(!this.red,\"Already a number in reduction context\"),r(0===this.negative,\"red works only with positives\"),t.convertTo(this)._forceRed(t)},n.prototype.fromRed=function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},n.prototype._forceRed=function(t){return this.red=t,this},n.prototype.forceRed=function(t){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(t)},n.prototype.redAdd=function(t){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,t)},n.prototype.redIAdd=function(t){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,t)},n.prototype.redSub=function(t){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,t)},n.prototype.redISub=function(t){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,t)},n.prototype.redShl=function(t){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,t)},n.prototype.redMul=function(t){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.mul(this,t)},n.prototype.redIMul=function(t){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.imul(this,t)},n.prototype.redSqr=function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(t){return r(this.red&&!t.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){A.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function b(){A.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function w(){A.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function M(){A.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function E(t){if(\"string\"==typeof t){var e=n._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),\"modulus must be greater than 1\"),this.m=t,this.prime=null}function S(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new n(null);return t.words=Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},i(y,A),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var n=t.words[9];for(e.words[e.length++]=4194303&n,i=10;i<t.length;i++){var o=0|t.words[i];t.words[i-10]=(4194303&o)<<4|n>>>22,n=o}n>>>=22,t.words[i-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var i=0|t.words[r];e+=977*i,t.words[r]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,A),i(w,A),i(M,A),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=(0|t.words[r])*19+e,n=67108863&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},n._prime=function(t){var e;if(v[t])return v[t];if(\"k256\"===t)e=new y;else if(\"p224\"===t)e=new b;else if(\"p192\"===t)e=new w;else if(\"p25519\"===t)e=new M;else throw Error(\"Unknown prime \"+t);return v[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,\"red works only with positives\"),r(t.red,\"red works only with red numbers\")},E.prototype._verify2=function(t,e){r((t.negative|e.negative)==0,\"red works only with positives\"),r(t.red&&t.red===e.red,\"red works only with red numbers\")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new n(1)).iushrn(2);return this.pow(t,i)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var u=new n(1).toRed(this),f=u.redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new n(2*a*a).toRed(this);0!==this.pow(a,h).cmp(f);)a.redIAdd(f);for(var l=this.pow(a,o),c=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(u);){for(var m=d,g=0;0!==m.cmp(u);g++)m=m.redSqr();r(g<p);var v=this.pow(l,new n(1).iushln(p-g-1));c=c.redMul(v),l=v.redSqr(),d=d.redMul(l),p=g}return c},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new n(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new n(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var o=r[0],s=0,u=0,f=e.bitLength()%26;for(0===f&&(f=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],a=f-1;a>=0;a--){var l=h>>a&1;if(o!==r[0]&&(o=this.sqr(o)),0===l&&0===s){u=0;continue}s<<=1,s|=l,4!=++u&&(0!==i||0!==a)||(o=this.mul(o,r[s]),u=0,s=0)}f=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},n.mont=function(t){return new S(t)},i(S,E),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new n(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):0>o.cmpn(0)&&(s=o.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(tR,tf);var tP=tR.exports;let tU=\"bignumber/5.7.0\";var tT=tP.BN;let tD=new tA(tU),tF={},tL=!1;class tq{constructor(t,e){t!==tF&&tD.throwError(\"cannot call constructor directly; use BigNumber.from\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"new (BigNumber)\"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return tj(tH(this).fromTwos(t))}toTwos(t){return tj(tH(this).toTwos(t))}abs(){return\"-\"===this._hex[0]?tq.from(this._hex.substring(1)):this}add(t){return tj(tH(this).add(tH(t)))}sub(t){return tj(tH(this).sub(tH(t)))}div(t){return tq.from(t).isZero()&&tK(\"division-by-zero\",\"div\"),tj(tH(this).div(tH(t)))}mul(t){return tj(tH(this).mul(tH(t)))}mod(t){let e=tH(t);return e.isNeg()&&tK(\"division-by-zero\",\"mod\"),tj(tH(this).umod(e))}pow(t){let e=tH(t);return e.isNeg()&&tK(\"negative-power\",\"pow\"),tj(tH(this).pow(e))}and(t){let e=tH(t);return(this.isNegative()||e.isNeg())&&tK(\"unbound-bitwise-result\",\"and\"),tj(tH(this).and(e))}or(t){let e=tH(t);return(this.isNegative()||e.isNeg())&&tK(\"unbound-bitwise-result\",\"or\"),tj(tH(this).or(e))}xor(t){let e=tH(t);return(this.isNegative()||e.isNeg())&&tK(\"unbound-bitwise-result\",\"xor\"),tj(tH(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&tK(\"negative-width\",\"mask\"),tj(tH(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&tK(\"negative-width\",\"shl\"),tj(tH(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&tK(\"negative-width\",\"shr\"),tj(tH(this).shrn(t))}eq(t){return tH(this).eq(tH(t))}lt(t){return tH(this).lt(tH(t))}lte(t){return tH(this).lte(tH(t))}gt(t){return tH(this).gt(tH(t))}gte(t){return tH(this).gte(tH(t))}isNegative(){return\"-\"===this._hex[0]}isZero(){return tH(this).isZero()}toNumber(){try{return tH(this).toNumber()}catch{tK(\"overflow\",\"toNumber\",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return tD.throwError(\"this platform does not support BigInt\",tA.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?tL||(tL=!0,tD.warn(\"BigNumber.toString does not accept any parameters; base-10 is assumed\")):16===arguments[0]?tD.throwError(\"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()\",tA.errors.UNEXPECTED_ARGUMENT,{}):tD.throwError(\"BigNumber.toString does not accept parameters\",tA.errors.UNEXPECTED_ARGUMENT,{})),tH(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:\"BigNumber\",hex:this.toHexString()}}static from(t){if(t instanceof tq)return t;if(\"string\"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new tq(tF,tz(t)):t.match(/^-?[0-9]+$/)?new tq(tF,tz(new tT(t))):tD.throwArgumentError(\"invalid BigNumber string\",\"value\",t);if(\"number\"==typeof t)return t%1&&tK(\"underflow\",\"BigNumber.from\",t),(t>=9007199254740991||t<=-9007199254740991)&&tK(\"overflow\",\"BigNumber.from\",t),tq.from(String(t));if(\"bigint\"==typeof t)return tq.from(t.toString());if(tE(t))return tq.from(tB(t));if(t){if(t.toHexString){let e=t.toHexString();if(\"string\"==typeof e)return tq.from(e)}else{let e=t._hex;if(null==e&&\"BigNumber\"===t.type&&(e=t.hex),\"string\"==typeof e&&(tI(e)||\"-\"===e[0]&&tI(e.substring(1))))return tq.from(e)}}return tD.throwArgumentError(\"invalid BigNumber value\",\"value\",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function tz(t){if(\"string\"!=typeof t)return tz(t.toString(16));if(\"-\"===t[0])return\"-\"===(t=t.substring(1))[0]&&tD.throwArgumentError(\"invalid hex\",\"value\",t),\"0x00\"===(t=tz(t))?t:\"-\"+t;if(\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),\"0x\"===t)return\"0x00\";for(t.length%2&&(t=\"0x0\"+t.substring(2));t.length>4&&\"0x00\"===t.substring(0,4);)t=\"0x\"+t.substring(4);return t}function tj(t){return tq.from(tz(t))}function tH(t){let e=tq.from(t).toHexString();return\"-\"===e[0]?new tT(\"-\"+e.substring(3),16):new tT(e.substring(2),16)}function tK(t,e,r){let i={fault:t,operation:e};return null!=r&&(i.value=r),tD.throwError(t,tA.errors.NUMERIC_FAULT,i)}let tQ=new tA(tU),tJ={},tG=tq.from(0),tY=tq.from(-1);function tV(t,e,r,i){let n={fault:e,operation:r};return void 0!==i&&(n.value=i),tQ.throwError(t,tA.errors.NUMERIC_FAULT,n)}let tW=\"0\";for(;tW.length<256;)tW+=tW;function tX(t){if(\"number\"!=typeof t)try{t=tq.from(t).toNumber()}catch{}return\"number\"==typeof t&&t>=0&&t<=256&&!(t%1)?\"1\"+tW.substring(0,t):tQ.throwArgumentError(\"invalid decimal size\",\"decimals\",t)}function tZ(t,e){null==e&&(e=0);let r=tX(e),i=(t=tq.from(t)).lt(tG);i&&(t=t.mul(tY));let n=t.mod(r).toString();for(;n.length<r.length-1;)n=\"0\"+n;n=n.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=t.div(r).toString();return t=1===r.length?o:o+\".\"+n,i&&(t=\"-\"+t),t}function t$(t,e){null==e&&(e=0);let r=tX(e);\"string\"==typeof t&&t.match(/^-?[0-9.]+$/)||tQ.throwArgumentError(\"invalid decimal value\",\"value\",t);let i=\"-\"===t.substring(0,1);i&&(t=t.substring(1)),\".\"===t&&tQ.throwArgumentError(\"missing value\",\"value\",t);let n=t.split(\".\");n.length>2&&tQ.throwArgumentError(\"too many decimal points\",\"value\",t);let o=n[0],s=n[1];for(o||(o=\"0\"),s||(s=\"0\");\"0\"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&tV(\"fractional component exceeds decimals\",\"underflow\",\"parseFixed\"),\"\"===s&&(s=\"0\");s.length<r.length-1;)s+=\"0\";let u=tq.from(o),f=tq.from(s),h=u.mul(r).add(f);return i&&(h=h.mul(tY)),h}class t0{constructor(t,e,r,i){t!==tJ&&tQ.throwError(\"cannot use FixedFormat constructor; use FixedFormat.from\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.signed=e,this.width=r,this.decimals=i,this.name=(e?\"\":\"u\")+\"fixed\"+String(r)+\"x\"+String(i),this._multiplier=tX(i),Object.freeze(this)}static from(t){if(t instanceof t0)return t;\"number\"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,i=18;if(\"string\"==typeof t){if(\"fixed\"!==t){if(\"ufixed\"===t)e=!1;else{let n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);n||tQ.throwArgumentError(\"invalid fixed format\",\"format\",t),e=\"u\"!==n[1],r=parseInt(n[2]),i=parseInt(n[3])}}}else if(t){let n=(e,r,i)=>null==t[e]?i:(typeof t[e]!==r&&tQ.throwArgumentError(\"invalid fixed format (\"+e+\" not \"+r+\")\",\"format.\"+e,t[e]),t[e]);e=n(\"signed\",\"boolean\",e),r=n(\"width\",\"number\",r),i=n(\"decimals\",\"number\",i)}return r%8&&tQ.throwArgumentError(\"invalid fixed format width (not byte aligned)\",\"format.width\",r),i>80&&tQ.throwArgumentError(\"invalid fixed format (decimals too large)\",\"format.decimals\",i),new t0(tJ,e,r,i)}}class t1{constructor(t,e,r,i){t!==tJ&&tQ.throwError(\"cannot use FixedNumber constructor; use FixedNumber.from\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.format=i,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&tQ.throwArgumentError(\"incompatible format; use fixedNumber.toFormat\",\"other\",t)}addUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let t=this.toString().split(\".\");1===t.length&&t.push(\"0\");let e=t1.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(t2.toFormat(e.format))),e}ceiling(){let t=this.toString().split(\".\");1===t.length&&t.push(\"0\");let e=t1.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(t2.toFormat(e.format))),e}round(t){null==t&&(t=0);let e=this.toString().split(\".\");if(1===e.length&&e.push(\"0\"),(t<0||t>80||t%1)&&tQ.throwArgumentError(\"invalid decimal count\",\"decimals\",t),e[1].length<=t)return this;let r=t1.from(\"1\"+tW.substring(0,t),this.format),i=t3.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return\"0.0\"===this._value||\"0\"===this._value}isNegative(){return\"-\"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&tQ.throwArgumentError(\"invalid byte width\",\"width\",t),t_(tq.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return t1.fromString(this._value,t)}static fromValue(t,e,r){var i;return null!=r||null==e||null!=(i=e)&&(tq.isBigNumber(i)||\"number\"==typeof i&&i%1==0||\"string\"==typeof i&&i.match(/^-?[0-9]+$/)||tI(i)||\"bigint\"==typeof i||tE(i))||(r=e,e=null),null==e&&(e=0),null==r&&(r=\"fixed\"),t1.fromString(tZ(t,e),t0.from(r))}static fromString(t,e){null==e&&(e=\"fixed\");let r=t0.from(e),i=t$(t,r.decimals);!r.signed&&i.lt(tG)&&tV(\"unsigned value cannot be negative\",\"overflow\",\"value\",t);let n=null;return new t1(tJ,r.signed?i.toTwos(r.width).toHexString():t_(i.toHexString(),r.width/8),tZ(i,r.decimals),r)}static fromBytes(t,e){null==e&&(e=\"fixed\");let r=t0.from(e);if(tS(t).length>r.width/8)throw Error(\"overflow\");let i=tq.from(t);return r.signed&&(i=i.fromTwos(r.width)),new t1(tJ,i.toTwos((r.signed?0:1)+r.width).toHexString(),tZ(i,r.decimals),r)}static from(t,e){if(\"string\"==typeof t)return t1.fromString(t,e);if(tE(t))return t1.fromBytes(t,e);try{return t1.fromValue(t,0,e)}catch(t){if(t.code!==tA.errors.INVALID_ARGUMENT)throw t}return tQ.throwArgumentError(\"invalid FixedNumber value\",\"value\",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}let t2=t1.from(1),t3=t1.from(\"0.5\"),t6=new tA(\"strings/5.7.0\");function t8(t,e,r,i,n){if(t===p.BAD_PREFIX||t===p.UNEXPECTED_CONTINUE){let t=0;for(let i=e+1;i<r.length&&r[i]>>6==2;i++)t++;return t}return t===p.OVERRUN?r.length-e-1:0}function t4(t,e=d.current){e!=d.current&&(t6.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if((64512&i)==55296){e++;let n=t.charCodeAt(e);if(e>=t.length||(64512&n)!=56320)throw Error(\"invalid utf-8 string\");let o=65536+((1023&i)<<10)+(1023&n);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return tS(r)}function t5(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,i={};return t.split(\",\").forEach(t=>{let n=t.split(\":\");i[r+=parseInt(n[0],16)]=e(n[1])}),i}function t7(t){let e=0;return t.split(\",\").map(t=>{let r=t.split(\"-\");return 1===r.length?r[1]=\"0\":\"\"===r[1]&&(r[1]=\"1\"),{l:e+parseInt(r[0],16),h:e=parseInt(r[1],16)}})}(f=d||(d={})).current=\"\",f.NFC=\"NFC\",f.NFD=\"NFD\",f.NFKC=\"NFKC\",f.NFKD=\"NFKD\",(h=p||(p={})).UNEXPECTED_CONTINUE=\"unexpected continuation byte\",h.BAD_PREFIX=\"bad codepoint prefix\",h.OVERRUN=\"string overrun\",h.MISSING_CONTINUE=\"missing continuation byte\",h.OUT_OF_RANGE=\"out of UTF-8 range\",h.UTF16_SURROGATE=\"UTF-16 surrogate\",h.OVERLONG=\"overlong representation\",Object.freeze({error:function(t,e,r,i,n){return t6.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,\"bytes\",r)},ignore:t8,replace:function(t,e,r,i,n){return t===p.OVERLONG?(i.push(n),0):(i.push(65533),t8(t,e,r))}}),t7(\"221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d\"),\"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff\".split(\",\").map(t=>parseInt(t,16)),t5(\"b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3\"),t5(\"179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7\"),t5(\"df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D\",function(t){if(t.length%4!=0)throw Error(\"bad data\");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}),t7(\"80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001\");let t9=\"hash/5.7.0\";function et(t,e){null==e&&(e=1);let r=[],i=r.forEach,n=function(t,e){i.call(t,function(t){e>0&&Array.isArray(t)?n(t,e-1):r.push(t)})};return n(t,e),r}function ee(t,e){let r=Array(t);for(let i=0,n=-1;i<t;i++)r[i]=n+=1+e();return r}function er(t,e){let r=ee(t(),t),i=t(),n=ee(i,t),o=function(t,e){let r=Array(t);for(let i=0;i<t;i++)r[i]=1+e();return r}(i,t);for(let t=0;t<i;t++)for(let e=0;e<o[t];e++)r.push(n[t]+e);return e?r.map(t=>e[t]):r}function ei(t,e,r){let i=Array(t).fill(void 0).map(()=>[]);for(let n=0;n<e;n++)(function(t,e){let r=Array(t);for(let n=0,o=0;n<t;n++){var i;r[n]=o+=1&(i=e())?~i>>1:i>>1}return r})(t,r).forEach((t,e)=>i[e].push(t));return i}let en=(o=function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let i=r(),n=1,o=[0,1];for(let t=1;t<i;t++)o.push(n+=r());let s=r(),u=e;e+=s;let f=0,h=0;function a(){return 0==f&&(h=h<<8|t[e++],f=8),h>>--f&1}let l=0;for(let t=0;t<31;t++)l=l<<1|a();let c=[],d=0,p=2147483648;for(;;){let t=Math.floor(((l-d+1)*n-1)/p),e=0,r=i;for(;r-e>1;){let i=e+r>>>1;t<o[i]?r=i:e=i}if(0==e)break;c.push(e);let s=d+Math.floor(p*o[e]/n),u=d+Math.floor(p*o[e+1]/n)-1;for(;!((s^u)&1073741824);)l=l<<1&2147483647|a(),s=s<<1&2147483647,u=u<<1&2147483647|1;for(;s&~u&536870912;)l=1073741824&l|l<<1&1073741823|a(),s=s<<1^1073741824,u=(1073741824^u)<<1|1073741824|1;d=s,p=1+u-s}let m=i-4;return c.map(e=>{switch(e-m){case 3:return m+65792+(t[u++]<<16|t[u++]<<8|t[u++]);case 2:return m+256+(t[u++]<<8|t[u++]);case 1:return m+t[u++];default:return e-1}})}(function(t){t=atob(t);let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return tS(e)}(\"AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==\")),n=0,()=>o[n++]);er(en),er(en),function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(function(t,e){let r=1+e(),i=e(),n=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return et(ei(n.length,1+t,e).map((t,e)=>{let o=t[0],s=t.slice(1);return Array(n[e]).fill(void 0).map((t,e)=>{let n=e*i;return[o+e*r,s.map(t=>t+n)]})}))}(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(ei(1+t(),1+r,t).map(t=>[t[0],t.slice(1)]))}(function(t){let e={};for(let r=0;r<t.length;r++){let i=t[r];e[i[0]]=i[1]}})(et(e))}(en),i=er(en).sort((t,e)=>t-e),function t(){let e=[];for(;;){let r=er(en,i);if(0==r.length)break;e.push({set:new Set(r),node:t()})}e.sort((t,e)=>e.set.size-t.set.size);let r=en();return{branches:e,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}(),new tA(t9),new Uint8Array(32).fill(0);let eo=`\u0019Ethereum Signed Message:\n`;function es(t){return\"string\"==typeof t&&(t=t4(t)),tO(function(t){let e=t.map(t=>tS(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),tw(r)}([t4(eo),t4(String(t.length)),t]))}new tA(\"rlp/5.7.0\");let eu=new tA(\"address/5.7.0\");function ef(t){tI(t,20)||eu.throwArgumentError(\"invalid address\",\"address\",t);let e=(t=t.toLowerCase()).substring(2).split(\"\"),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let i=tS(tO(r));for(let t=0;t<40;t+=2)i[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&i[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return\"0x\"+e.join(\"\")}let eh={};for(let t=0;t<10;t++)eh[String(t)]=String(t);for(let t=0;t<26;t++)eh[String.fromCharCode(65+t)]=String(10+t);let ea=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function el(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}new tA(\"properties/5.7.0\"),new tA(t9),new Uint8Array(32).fill(0),tq.from(-1);let ec=tq.from(0),ed=tq.from(1);tq.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),t_(ed.toHexString(),32),t_(ec.toHexString(),32);var ep={},em={};function eg(t,e){if(!t)throw Error(e||\"Assertion failed\")}eg.equal=function(t,e,r){if(t!=e)throw Error(r||\"Assertion failed: \"+t+\" != \"+e)};var ev={exports:{}};\"function\"==typeof Object.create?ev.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ev.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};var eA=ev.exports;function ey(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function eb(t){return 1===t.length?\"0\"+t:t}function ew(t){return 7===t.length?\"0\"+t:6===t.length?\"00\"+t:5===t.length?\"000\"+t:4===t.length?\"0000\"+t:3===t.length?\"00000\"+t:2===t.length?\"000000\"+t:1===t.length?\"0000000\"+t:t}em.inherits=eA,em.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(\"string\"==typeof t){if(e){if(\"hex\"===e)for((t=t.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(t=\"0\"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var i=0,n=0;n<t.length;n++){var o,s,u=t.charCodeAt(n);u<128?r[i++]=u:(u<2048?r[i++]=u>>6|192:((o=t,s=n,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length||(64512&o.charCodeAt(s+1))!=56320)?r[i++]=u>>12|224:(u=65536+((1023&u)<<10)+(1023&t.charCodeAt(++n)),r[i++]=u>>18|240,r[i++]=u>>12&63|128),r[i++]=u>>6&63|128),r[i++]=63&u|128)}}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r},em.toHex=function(t){for(var e=\"\",r=0;r<t.length;r++)e+=eb(t[r].toString(16));return e},em.htonl=ey,em.toHex32=function(t,e){for(var r=\"\",i=0;i<t.length;i++){var n=t[i];\"little\"===e&&(n=ey(n)),r+=ew(n.toString(16))}return r},em.zero2=eb,em.zero8=ew,em.join32=function(t,e,r,i){var n,o=r-e;eg(o%4==0);for(var s=Array(o/4),u=0,f=e;u<s.length;u++,f+=4)n=\"big\"===i?t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]:t[f+3]<<24|t[f+2]<<16|t[f+1]<<8|t[f],s[u]=n>>>0;return s},em.split32=function(t,e){for(var r=Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var o=t[i];\"big\"===e?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},em.rotr32=function(t,e){return t>>>e|t<<32-e},em.rotl32=function(t,e){return t<<e|t>>>32-e},em.sum32=function(t,e){return t+e>>>0},em.sum32_3=function(t,e,r){return t+e+r>>>0},em.sum32_4=function(t,e,r,i){return t+e+r+i>>>0},em.sum32_5=function(t,e,r,i,n){return t+e+r+i+n>>>0},em.sum64=function(t,e,r,i){var n=t[e],o=i+t[e+1]>>>0;t[e]=(o<i?1:0)+r+n>>>0,t[e+1]=o},em.sum64_hi=function(t,e,r,i){return(e+i>>>0<e?1:0)+t+r>>>0},em.sum64_lo=function(t,e,r,i){return e+i>>>0},em.sum64_4_hi=function(t,e,r,i,n,o,s,u){var f,h=e;return t+r+n+s+(0+((h=h+i>>>0)<e?1:0)+((h=h+o>>>0)<o?1:0)+((h=h+u>>>0)<u?1:0))>>>0},em.sum64_4_lo=function(t,e,r,i,n,o,s,u){return e+i+o+u>>>0},em.sum64_5_hi=function(t,e,r,i,n,o,s,u,f,h){var a,l=e;return t+r+n+s+f+(0+((l=l+i>>>0)<e?1:0)+((l=l+o>>>0)<o?1:0)+((l=l+u>>>0)<u?1:0)+((l=l+h>>>0)<h?1:0))>>>0},em.sum64_5_lo=function(t,e,r,i,n,o,s,u,f,h){return e+i+o+u+h>>>0},em.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},em.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},em.shr64_hi=function(t,e,r){return t>>>r},em.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var eM={};function eE(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}eM.BlockHash=eE,eE.prototype.update=function(t,e){if(t=em.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=em.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},eE.prototype.digest=function(t){return this.update(this._pad()),eg(null===this.pending),this._digest(t)},eE.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,i=Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(t<<=3,\"big\"===this.endian){for(var o=8;o<this.padLength;o++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=t>>>24&255,i[n++]=t>>>16&255,i[n++]=t>>>8&255,i[n++]=255&t}else for(i[n++]=255&t,i[n++]=t>>>8&255,i[n++]=t>>>16&255,i[n++]=t>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o<this.padLength;o++)i[n++]=0;return i};var eS={},eI={},eN=em.rotr32;function eB(t,e,r){return t&e^t&r^e&r}eI.ft_1=function(t,e,r,i){return 0===t?e&r^~e&i:1===t||3===t?e^r^i:2===t?eB(e,r,i):void 0},eI.ch32=function(t,e,r){return t&e^~t&r},eI.maj32=eB,eI.p32=function(t,e,r){return t^e^r},eI.s0_256=function(t){return eN(t,2)^eN(t,13)^eN(t,22)},eI.s1_256=function(t){return eN(t,6)^eN(t,11)^eN(t,25)},eI.g0_256=function(t){return eN(t,7)^eN(t,18)^t>>>3},eI.g1_256=function(t){return eN(t,17)^eN(t,19)^t>>>10};var eC=em.rotl32,e_=em.sum32,ex=em.sum32_5,eO=eI.ft_1,eR=eM.BlockHash,ek=[1518500249,1859775393,2400959708,3395469782];function eP(){if(!(this instanceof eP))return new eP;eR.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}em.inherits(eP,eR),eP.blockSize=512,eP.outSize=160,eP.hmacStrength=80,eP.padLength=64,eP.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=eC(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],f=this.h[4];for(i=0;i<r.length;i++){var h=~~(i/20),a=ex(eC(n,5),eO(h,o,s,u),f,r[i],ek[h]);f=u,u=s,s=eC(o,30),o=n,n=a}this.h[0]=e_(this.h[0],n),this.h[1]=e_(this.h[1],o),this.h[2]=e_(this.h[2],s),this.h[3]=e_(this.h[3],u),this.h[4]=e_(this.h[4],f)},eP.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"big\"):em.split32(this.h,\"big\")};var eU=em.sum32,eT=em.sum32_4,eD=em.sum32_5,eF=eI.ch32,eL=eI.maj32,eq=eI.s0_256,ez=eI.s1_256,ej=eI.g0_256,eH=eI.g1_256,eK=eM.BlockHash,eQ=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function eJ(){if(!(this instanceof eJ))return new eJ;eK.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=eQ,this.W=Array(64)}function eG(){if(!(this instanceof eG))return new eG;eJ.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}em.inherits(eJ,eK),eJ.blockSize=512,eJ.outSize=256,eJ.hmacStrength=192,eJ.padLength=64,eJ.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=eT(eH(r[i-2]),r[i-7],ej(r[i-15]),r[i-16]);var n=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],f=this.h[4],h=this.h[5],a=this.h[6],l=this.h[7];for(eg(this.k.length===r.length),i=0;i<r.length;i++){var c=eD(l,ez(f),eF(f,h,a),this.k[i],r[i]),d=eU(eq(n),eL(n,o,s));l=a,a=h,h=f,f=eU(u,c),u=s,s=o,o=n,n=eU(c,d)}this.h[0]=eU(this.h[0],n),this.h[1]=eU(this.h[1],o),this.h[2]=eU(this.h[2],s),this.h[3]=eU(this.h[3],u),this.h[4]=eU(this.h[4],f),this.h[5]=eU(this.h[5],h),this.h[6]=eU(this.h[6],a),this.h[7]=eU(this.h[7],l)},eJ.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"big\"):em.split32(this.h,\"big\")},em.inherits(eG,eJ),eG.blockSize=512,eG.outSize=224,eG.hmacStrength=192,eG.padLength=64,eG.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h.slice(0,7),\"big\"):em.split32(this.h.slice(0,7),\"big\")};var eY=em.rotr64_hi,eV=em.rotr64_lo,eW=em.shr64_hi,eX=em.shr64_lo,eZ=em.sum64,e$=em.sum64_hi,e0=em.sum64_lo,e1=em.sum64_4_hi,e2=em.sum64_4_lo,e3=em.sum64_5_hi,e6=em.sum64_5_lo,e8=eM.BlockHash,e4=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function e5(){if(!(this instanceof e5))return new e5;e8.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=e4,this.W=Array(160)}function e7(){if(!(this instanceof e7))return new e7;e5.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}em.inherits(e5,e8),e5.blockSize=1024,e5.outSize=512,e5.hmacStrength=192,e5.padLength=128,e5.prototype._prepareBlock=function(t,e){for(var r=this.W,i=0;i<32;i++)r[i]=t[e+i];for(;i<r.length;i+=2){var n=function(t,e){var r=eY(t,e,19)^eY(e,t,29)^eW(t,e,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),o=function(t,e){var r=eV(t,e,19)^eV(e,t,29)^eX(t,e,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),s=r[i-14],u=r[i-13],f=function(t,e){var r=eY(t,e,1)^eY(t,e,8)^eW(t,e,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),h=function(t,e){var r=eV(t,e,1)^eV(t,e,8)^eX(t,e,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),a=r[i-32],l=r[i-31];r[i]=e1(n,o,s,u,f,h,a,l),r[i+1]=e2(n,o,s,u,f,h,a,l)}},e5.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],f=this.h[5],h=this.h[6],a=this.h[7],l=this.h[8],c=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],A=this.h[15];eg(this.k.length===r.length);for(var y=0;y<r.length;y+=2){var b=v,w=A,M=function(t,e){var r=eY(t,e,14)^eY(t,e,18)^eY(e,t,9);return r<0&&(r+=4294967296),r}(l,c),E=function(t,e){var r=eV(t,e,14)^eV(t,e,18)^eV(e,t,9);return r<0&&(r+=4294967296),r}(l,c),S=function(t,e,r,i,n){var o=t&r^~t&n;return o<0&&(o+=4294967296),o}(l,0,d,0,m),I=function(t,e,r,i,n,o){var s=e&i^~e&o;return s<0&&(s+=4294967296),s}(0,c,0,p,0,g),N=this.k[y],B=this.k[y+1],C=r[y],_=r[y+1],x=e3(b,w,M,E,S,I,N,B,C,_),O=e6(b,w,M,E,S,I,N,B,C,_);b=function(t,e){var r=eY(t,e,28)^eY(e,t,2)^eY(e,t,7);return r<0&&(r+=4294967296),r}(i,n);var R=e$(b,w=function(t,e){var r=eV(t,e,28)^eV(e,t,2)^eV(e,t,7);return r<0&&(r+=4294967296),r}(i,n),M=function(t,e,r,i,n){var o=t&r^t&n^r&n;return o<0&&(o+=4294967296),o}(i,0,o,0,u),E=function(t,e,r,i,n,o){var s=e&i^e&o^i&o;return s<0&&(s+=4294967296),s}(0,n,0,s,0,f)),k=e0(b,w,M,E);v=m,A=g,m=d,g=p,d=l,p=c,l=e$(h,a,x,O),c=e0(a,a,x,O),h=u,a=f,u=o,f=s,o=i,s=n,i=e$(x,O,R,k),n=e0(x,O,R,k)}eZ(this.h,0,i,n),eZ(this.h,2,o,s),eZ(this.h,4,u,f),eZ(this.h,6,h,a),eZ(this.h,8,l,c),eZ(this.h,10,d,p),eZ(this.h,12,m,g),eZ(this.h,14,v,A)},e5.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"big\"):em.split32(this.h,\"big\")},em.inherits(e7,e5),e7.blockSize=1024,e7.outSize=384,e7.hmacStrength=192,e7.padLength=128,e7.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h.slice(0,12),\"big\"):em.split32(this.h.slice(0,12),\"big\")},eS.sha1=eP,eS.sha224=eG,eS.sha256=eJ,eS.sha384=e7,eS.sha512=e5;var e9={},rt=em.rotl32,re=em.sum32,rr=em.sum32_3,ri=em.sum32_4,rn=eM.BlockHash;function ro(){if(!(this instanceof ro))return new ro;rn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}function rs(t,e,r,i){return t<=15?e^r^i:t<=31?e&r|~e&i:t<=47?(e|~r)^i:t<=63?e&i|r&~i:e^(r|~i)}em.inherits(ro,rn),e9.ripemd160=ro,ro.blockSize=512,ro.outSize=160,ro.hmacStrength=192,ro.padLength=64,ro.prototype._update=function(t,e){for(var r=this.h[0],i=this.h[1],n=this.h[2],o=this.h[3],s=this.h[4],u=r,f=i,h=n,a=o,l=s,c=0;c<80;c++){var d,p,m=re(rt(ri(r,rs(c,i,n,o),t[ru[c]+e],(d=c)<=15?0:d<=31?1518500249:d<=47?1859775393:d<=63?2400959708:2840853838),rh[c]),s);r=s,s=o,o=rt(n,10),n=i,i=m,m=re(rt(ri(u,rs(79-c,f,h,a),t[rf[c]+e],(p=c)<=15?1352829926:p<=31?1548603684:p<=47?1836072691:p<=63?2053994217:0),ra[c]),l),u=l,l=a,a=rt(h,10),h=f,f=m}m=rr(this.h[1],n,a),this.h[1]=rr(this.h[2],o,l),this.h[2]=rr(this.h[3],s,u),this.h[3]=rr(this.h[4],r,f),this.h[4]=rr(this.h[0],i,h),this.h[0]=m},ro.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"little\"):em.split32(this.h,\"little\")};var ru=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rf=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],rh=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ra=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function rl(t,e,r){if(!(this instanceof rl))return new rl(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(em.toArray(e,r))}function rc(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(t,e??r.path)}},r.exports),r.exports}rl.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),eg(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=new this.Hash().update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=new this.Hash().update(t)},rl.prototype.update=function(t,e){return this.inner.update(t,e),this},rl.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},ep.utils=em,ep.common=eM,ep.sha=eS,ep.ripemd=e9,ep.hmac=rl,ep.sha1=ep.sha.sha1,ep.sha256=ep.sha.sha256,ep.sha224=ep.sha.sha224,ep.sha384=ep.sha.sha384,ep.sha512=ep.sha.sha512,ep.ripemd160=ep.ripemd.ripemd160;var rd=rp;function rp(t,e){if(!t)throw Error(e||\"Assertion failed\")}rp.equal=function(t,e,r){if(t!=e)throw Error(r||\"Assertion failed: \"+t+\" != \"+e)};var rm=rc(function(t,e){function r(t){return 1===t.length?\"0\"+t:t}function i(t){for(var e=\"\",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(\"string\"!=typeof t){for(var i=0;i<t.length;i++)r[i]=0|t[i];return r}if(\"hex\"===e){(t=t.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(t=\"0\"+t);for(var i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var i=0;i<t.length;i++){var n=t.charCodeAt(i),o=n>>8,s=255&n;o?r.push(o,s):r.push(s)}return r},e.zero2=r,e.toHex=i,e.encode=function(t,e){return\"hex\"===e?i(t):t}}),rg=rc(function(t,e){e.assert=rd,e.toArray=rm.toArray,e.zero2=rm.zero2,e.toHex=rm.toHex,e.encode=rm.encode,e.getNAF=function(t,e,r){var i=Array(Math.max(t.bitLength(),r)+1);i.fill(0);for(var n=1<<e+1,o=t.clone(),s=0;s<i.length;s++){var u,f=o.andln(n-1);o.isOdd()?(u=f>(n>>1)-1?(n>>1)-f:f,o.isubn(u)):u=0,i[s]=u,o.iushrn(1)}return i},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var i,n=0,o=0;t.cmpn(-n)>0||e.cmpn(-o)>0;){var s,u,f=t.andln(3)+n&3,h=e.andln(3)+o&3;3===f&&(f=-1),3===h&&(h=-1),s=1&f?(3==(i=t.andln(7)+n&7)||5===i)&&2===h?-f:f:0,r[0].push(s),u=1&h?(3==(i=e.andln(7)+o&7)||5===i)&&2===f?-h:h:0,r[1].push(u),2*n===s+1&&(n=1-n),2*o===u+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var i=\"_\"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},e.parseBytes=function(t){return\"string\"==typeof t?e.toArray(t,\"hex\"):t},e.intFromLE=function(t){return new tP(t,\"hex\",\"le\")}}),rv=rg.getNAF,rA=rg.getJSF,ry=rg.assert;function rb(t,e){this.type=t,this.p=new tP(e.p,16),this.red=e.prime?tP.red(e.prime):tP.mont(this.p),this.zero=new tP(0).toRed(this.red),this.one=new tP(1).toRed(this.red),this.two=new tP(2).toRed(this.red),this.n=e.n&&new tP(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function rw(t,e){this.curve=t,this.type=e,this.precomputed=null}rb.prototype.point=function(){throw Error(\"Not implemented\")},rb.prototype.validate=function(){throw Error(\"Not implemented\")},rb.prototype._fixedNafMul=function(t,e){ry(t.precomputed);var r=t._getDoubles(),i=rv(e,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;var o,s,u=[];for(o=0;o<i.length;o+=r.step){s=0;for(var f=o+r.step-1;f>=o;f--)s=(s<<1)+i[f];u.push(s)}for(var h=this.jpoint(null,null,null),a=this.jpoint(null,null,null),l=n;l>0;l--){for(o=0;o<u.length;o++)(s=u[o])===l?a=a.mixedAdd(r.points[o]):s===-l&&(a=a.mixedAdd(r.points[o].neg()));h=h.add(a)}return h.toP()},rb.prototype._wnafMul=function(t,e){var r=4,i=t._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=rv(e,r,this._bitLength),s=this.jpoint(null,null,null),u=o.length-1;u>=0;u--){for(var f=0;u>=0&&0===o[u];u--)f++;if(u>=0&&f++,s=s.dblp(f),u<0)break;var h=o[u];ry(0!==h),s=\"affine\"===t.type?h>0?s.mixedAdd(n[h-1>>1]):s.mixedAdd(n[-h-1>>1].neg()):h>0?s.add(n[h-1>>1]):s.add(n[-h-1>>1].neg())}return\"affine\"===t.type?s.toP():s},rb.prototype._wnafMulAdd=function(t,e,r,i,n){var o,s,u,f=this._wnafT1,h=this._wnafT2,a=this._wnafT3,l=0;for(o=0;o<i;o++){var c=(u=e[o])._getNAFPoints(t);f[o]=c.wnd,h[o]=c.points}for(o=i-1;o>=1;o-=2){var d=o-1,p=o;if(1!==f[d]||1!==f[p]){a[d]=rv(r[d],f[d],this._bitLength),a[p]=rv(r[p],f[p],this._bitLength),l=Math.max(a[d].length,l),l=Math.max(a[p].length,l);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=rA(r[d],r[p]);for(l=Math.max(v[0].length,l),a[d]=Array(l),a[p]=Array(l),s=0;s<l;s++){var A=0|v[0][s],y=0|v[1][s];a[d][s]=g[(A+1)*3+(y+1)],a[p][s]=0,h[d]=m}}var b=this.jpoint(null,null,null),w=this._wnafT4;for(o=l;o>=0;o--){for(var M=0;o>=0;){var E=!0;for(s=0;s<i;s++)w[s]=0|a[s][o],0!==w[s]&&(E=!1);if(!E)break;M++,o--}if(o>=0&&M++,b=b.dblp(M),o<0)break;for(s=0;s<i;s++){var S=w[s];0!==S&&(S>0?u=h[s][S-1>>1]:S<0&&(u=h[s][-S-1>>1].neg()),b=\"affine\"===u.type?b.mixedAdd(u):b.add(u))}}for(o=0;o<i;o++)h[o]=null;return n?b:b.toP()},rb.BasePoint=rw,rw.prototype.eq=function(){throw Error(\"Not implemented\")},rw.prototype.validate=function(){return this.curve.validate(this)},rb.prototype.decodePoint=function(t,e){t=rg.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?ry(t[t.length-1]%2==0):7===t[0]&&ry(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error(\"Unknown point format\")},rw.prototype.encodeCompressed=function(t){return this.encode(t,!0)},rw.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray(\"be\",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray(\"be\",e))},rw.prototype.encode=function(t,e){return rg.encode(this._encode(e),t)},rw.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},rw.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},rw.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<e;n+=t){for(var o=0;o<t;o++)i=i.dbl();r.push(i)}return{step:t,points:r}},rw.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)e[n]=e[n-1].add(i);return{wnd:t,points:e}},rw.prototype._getBeta=function(){return null},rw.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var rM=rc(function(t){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),rE=rg.assert;function rS(t){rb.call(this,\"short\",t),this.a=new tP(t.a,16).toRed(this.red),this.b=new tP(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function rI(t,e,r,i){rb.BasePoint.call(this,t,\"affine\"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new tP(e,16),this.y=new tP(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function rN(t,e,r,i){rb.BasePoint.call(this,t,\"jacobian\"),null===e&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new tP(0)):(this.x=new tP(e,16),this.y=new tP(r,16),this.z=new tP(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}rM(rS,rb),rS.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||1!==this.p.modn(3))){if(t.beta)e=new tP(t.beta,16).toRed(this.red);else{var e,r,i,n=this._getEndoRoots(this.p);e=(e=0>n[0].cmp(n[1])?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new tP(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],rE(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return i=t.basis?t.basis.map(function(t){return{a:new tP(t.a,16),b:new tP(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:i}}},rS.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:tP.mont(t),r=new tP(2).toRed(e).redInvm(),i=r.redNeg(),n=new tP(3).toRed(e).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},rS.prototype._getEndoBasis=function(t){for(var e,r,i,n,o,s,u,f,h,a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,c=this.n.clone(),d=new tP(1),p=new tP(0),m=new tP(0),g=new tP(1),v=0;0!==l.cmpn(0);){var A=c.div(l);f=c.sub(A.mul(l)),h=m.sub(A.mul(d));var y=g.sub(A.mul(p));if(!i&&0>f.cmp(a))e=u.neg(),r=d,i=f.neg(),n=h;else if(i&&2==++v)break;u=f,c=l,l=f,m=d,d=h,g=p,p=y}o=f.neg(),s=h;var b=i.sqr().add(n.sqr());return o.sqr().add(s.sqr()).cmp(b)>=0&&(o=e,s=r),i.negative&&(i=i.neg(),n=n.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:n},{a:o,b:s}]},rS.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],i=e[1],n=i.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=n.mul(r.a),u=o.mul(i.a),f=n.mul(r.b),h=o.mul(i.b);return{k1:t.sub(s).sub(u),k2:f.add(h).neg()}},rS.prototype.pointFromX=function(t,e){(t=new tP(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error(\"invalid point\");var n=i.fromRed().isOdd();return(e&&!n||!e&&n)&&(i=i.redNeg()),this.point(t,i)},rS.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,i=this.a.redMul(e),n=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},rS.prototype._endoWnafMulAdd=function(t,e,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),u=t[o],f=u._getBeta();s.k1.negative&&(s.k1.ineg(),u=u.neg(!0)),s.k2.negative&&(s.k2.ineg(),f=f.neg(!0)),i[2*o]=u,i[2*o+1]=f,n[2*o]=s.k1,n[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,i,n,2*o,r),a=0;a<2*o;a++)i[a]=null,n[a]=null;return h},rM(rI,rb.BasePoint),rS.prototype.point=function(t,e,r){return new rI(this,t,e,r)},rS.prototype.pointFromJSON=function(t,e){return rI.fromJSON(this,t,e)},rI.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,i=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},rI.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},rI.fromJSON=function(t,e,r){\"string\"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;function n(e){return t.point(e[0],e[1],r)}var o=e[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},rI.prototype.inspect=function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\">\"},rI.prototype.isInfinity=function(){return this.inf},rI.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t)||0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},rI.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),i=t.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},rI.prototype.getX=function(){return this.x.fromRed()},rI.prototype.getY=function(){return this.y.fromRed()},rI.prototype.mul=function(t){return t=new tP(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},rI.prototype.mulAdd=function(t,e,r){var i=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},rI.prototype.jmulAdd=function(t,e,r){var i=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},rI.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},rI.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return e},rI.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},rM(rN,rb.BasePoint),rS.prototype.jpoint=function(t,e,r){return new rN(this,t,e,r)},rN.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(r,i)},rN.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},rN.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(e),n=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),u=i.redSub(n),f=o.redSub(s);if(0===u.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=u.redSqr(),a=h.redMul(u),l=i.redMul(h),c=f.redSqr().redIAdd(a).redISub(l).redISub(l),d=f.redMul(l.redISub(c)).redISub(o.redMul(a)),p=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(c,d,p)},rN.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,i=t.x.redMul(e),n=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(i),u=n.redSub(o);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),h=f.redMul(s),a=r.redMul(f),l=u.redSqr().redIAdd(h).redISub(a).redISub(a),c=u.redMul(a.redISub(l)).redISub(n.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(l,c,d)},rN.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var i=this.curve.a,n=this.curve.tinv,o=this.x,s=this.y,u=this.z,f=u.redSqr().redSqr(),h=s.redAdd(s);for(e=0;e<t;e++){var a=o.redSqr(),l=h.redSqr(),c=l.redSqr(),d=a.redAdd(a).redIAdd(a).redIAdd(i.redMul(f)),p=o.redMul(l),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=d.redMul(g);v=v.redIAdd(v).redISub(c);var A=h.redMul(u);e+1<t&&(f=f.redMul(c)),o=m,u=A,h=v}return this.curve.jpoint(o,h.redMul(n),u)},rN.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},rN.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var u=i.redAdd(i).redIAdd(i),f=u.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),t=f,e=u.redMul(s.redISub(f)).redISub(h),r=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),l=this.y.redSqr(),c=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(a).redISub(c);d=d.redIAdd(d);var p=a.redAdd(a).redIAdd(a),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},rN.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var u=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),f=u.redSqr().redISub(s).redISub(s);t=f;var h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),e=u.redMul(s.redISub(f)).redISub(h),r=this.y.redAdd(this.y)}else{var a=this.z.redSqr(),l=this.y.redSqr(),c=this.x.redMul(l),d=this.x.redSub(a).redMul(this.x.redAdd(a));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(a);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},rN.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(n)),f=e.redAdd(e),h=(f=f.redIAdd(f)).redMul(s),a=u.redSqr().redISub(h.redAdd(h)),l=h.redISub(a),c=s.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=u.redMul(l).redISub(c),p=r.redAdd(r).redMul(i);return this.curve.jpoint(a,d,p)},rN.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),i=e.redSqr(),n=t.redAdd(t).redIAdd(t),o=n.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(i),u=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),f=i.redIAdd(i);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=n.redIAdd(s).redSqr().redISub(o).redISub(u).redISub(f),a=e.redMul(h);a=(a=a.redIAdd(a)).redIAdd(a);var l=this.x.redMul(u).redISub(a);l=(l=l.redIAdd(l)).redIAdd(l);var c=this.y.redMul(h.redMul(f.redISub(h)).redISub(s.redMul(u)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(u);return this.curve.jpoint(l,c,d)},rN.prototype.mul=function(t,e){return t=new tP(t,e),this.curve._wnafMul(this,t)},rN.prototype.eq=function(t){if(\"affine\"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var i=e.redMul(this.z),n=r.redMul(t.z);return 0===this.y.redMul(n).redISub(t.y.redMul(i)).cmpn(0)},rN.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},rN.prototype.inspect=function(){return this.isInfinity()?\"<EC JPoint Infinity>\":\"<EC JPoint x: \"+this.x.toString(16,2)+\" y: \"+this.y.toString(16,2)+\" z: \"+this.z.toString(16,2)+\">\"},rN.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var rB=rc(function(t,e){e.base=rb,e.short=rS,e.mont=null,e.edwards=null}),rC=rc(function(t,e){var r,i=rg.assert;function n(t){\"short\"===t.type?this.curve=new rB.short(t):\"edwards\"===t.type?this.curve=new rB.edwards(t):this.curve=new rB.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),\"Invalid curve\"),i(this.g.mul(this.n).isInfinity(),\"Invalid curve, G*N != O\")}function o(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var i=new n(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:i}),i}})}e.PresetCurve=n,o(\"p192\",{type:\"short\",prime:\"p192\",p:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc\",b:\"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1\",n:\"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831\",hash:ep.sha256,gRed:!1,g:[\"188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012\",\"07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811\"]}),o(\"p224\",{type:\"short\",prime:\"p224\",p:\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe\",b:\"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4\",n:\"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d\",hash:ep.sha256,gRed:!1,g:[\"b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21\",\"bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34\"]}),o(\"p256\",{type:\"short\",prime:null,p:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff\",a:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc\",b:\"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b\",n:\"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551\",hash:ep.sha256,gRed:!1,g:[\"6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296\",\"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5\"]}),o(\"p384\",{type:\"short\",prime:null,p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff\",a:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc\",b:\"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef\",n:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973\",hash:ep.sha384,gRed:!1,g:[\"aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7\",\"3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f\"]}),o(\"p521\",{type:\"short\",prime:null,p:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\",a:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc\",b:\"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00\",n:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409\",hash:ep.sha512,gRed:!1,g:[\"000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66\",\"00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650\"]}),o(\"curve25519\",{type:\"mont\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"76d06\",b:\"1\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:ep.sha256,gRed:!1,g:[\"9\"]}),o(\"ed25519\",{type:\"edwards\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"-1\",c:\"1\",d:\"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:ep.sha256,gRed:!1,g:[\"216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\",\"6666666666666666666666666666666666666666666666666666666666666658\"]});try{r=null.crash()}catch{r=void 0}o(\"secp256k1\",{type:\"short\",prime:\"k256\",p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\",a:\"0\",b:\"7\",n:\"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141\",h:\"1\",hash:ep.sha256,beta:\"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\",lambda:\"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72\",basis:[{a:\"3086d221a7d46bcde86c90e49284eb15\",b:\"-e4437ed6010e88286f547fa90abfe4c3\"},{a:\"114ca50f7a8e2f3f657c1108d9d44cfd8\",b:\"3086d221a7d46bcde86c90e49284eb15\"}],gRed:!1,g:[\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\",r]})});function r_(t){if(!(this instanceof r_))return new r_(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=rm.toArray(t.entropy,t.entropyEnc||\"hex\"),r=rm.toArray(t.nonce,t.nonceEnc||\"hex\"),i=rm.toArray(t.pers,t.persEnc||\"hex\");rd(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._init(e,r,i)}r_.prototype._init=function(t,e,r){var i=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},r_.prototype._hmac=function(){return new ep.hmac(this.hash,this.K)},r_.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r_.prototype.reseed=function(t,e,r,i){\"string\"!=typeof e&&(i=r,r=e,e=null),t=rm.toArray(t,e),r=rm.toArray(r,i),rd(t.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._update(t.concat(r||[])),this._reseed=1},r_.prototype.generate=function(t,e,r,i){if(this._reseed>this.reseedInterval)throw Error(\"Reseed is required\");\"string\"!=typeof e&&(i=r,r=e,e=null),r&&(r=rm.toArray(r,i||\"hex\"),this._update(r));for(var n=[];n.length<t;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var o=n.slice(0,t);return this._update(r),this._reseed++,rm.encode(o,e)};var rx=rg.assert;function rO(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}rO.fromPublic=function(t,e,r){return e instanceof rO?e:new rO(t,{pub:e,pubEnc:r})},rO.fromPrivate=function(t,e,r){return e instanceof rO?e:new rO(t,{priv:e,privEnc:r})},rO.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:\"Invalid public key\"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:\"Public key * N != O\"}:{result:!1,reason:\"Public key is not a point\"}},rO.prototype.getPublic=function(t,e){return\"string\"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},rO.prototype.getPrivate=function(t){return\"hex\"===t?this.priv.toString(16,2):this.priv},rO.prototype._importPrivate=function(t,e){this.priv=new tP(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},rO.prototype._importPublic=function(t,e){if(t.x||t.y){\"mont\"===this.ec.curve.type?rx(t.x,\"Need x coordinate\"):(\"short\"===this.ec.curve.type||\"edwards\"===this.ec.curve.type)&&rx(t.x&&t.y,\"Need both x and y coordinate\"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},rO.prototype.derive=function(t){return t.validate()||rx(t.validate(),\"public point not validated\"),t.mul(this.priv).getX()},rO.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},rO.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},rO.prototype.inspect=function(){return\"<Key priv: \"+(this.priv&&this.priv.toString(16,2))+\" pub: \"+(this.pub&&this.pub.inspect())+\" >\"};var rR=rg.assert;function rk(t,e){if(t instanceof rk)return t;this._importDER(t,e)||(rR(t.r&&t.s,\"Signature without r or s\"),this.r=new tP(t.r,16),this.s=new tP(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function rP(){this.place=0}function rU(t,e){var r=t[e.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,o=0,s=e.place;o<i;o++,s++)n<<=8,n|=t[s],n>>>=0;return!(n<=127)&&(e.place=s,n)}function rT(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function rD(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}rk.prototype._importDER=function(t,e){t=rg.toArray(t,e);var r=new rP;if(48!==t[r.place++])return!1;var i=rU(t,r);if(!1===i||i+r.place!==t.length||2!==t[r.place++])return!1;var n=rU(t,r);if(!1===n)return!1;var o=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var s=rU(t,r);if(!1===s||t.length!==s+r.place)return!1;var u=t.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new tP(o),this.s=new tP(u),this.recoveryParam=null,!0},rk.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=rT(e),r=rT(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];rD(i,e.length),(i=i.concat(e)).push(2),rD(i,r.length);var n=i.concat(r),o=[48];return rD(o,n.length),o=o.concat(n),rg.encode(o,t)};var rF=function(){throw Error(\"unsupported\")},rL=rg.assert;function rq(t){if(!(this instanceof rq))return new rq(t);\"string\"==typeof t&&(rL(Object.prototype.hasOwnProperty.call(rC,t),\"Unknown curve \"+t),t=rC[t]),t instanceof rC.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}rq.prototype.keyPair=function(t){return new rO(this,t)},rq.prototype.keyFromPrivate=function(t,e){return rO.fromPrivate(this,t,e)},rq.prototype.keyFromPublic=function(t,e){return rO.fromPublic(this,t,e)},rq.prototype.genKeyPair=function(t){t||(t={});for(var e=new r_({hash:this.hash,pers:t.pers,persEnc:t.persEnc||\"utf8\",entropy:t.entropy||rF(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||\"utf8\",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new tP(2));;){var n=new tP(e.generate(r));if(!(n.cmp(i)>0))return n.iaddn(1),this.keyFromPrivate(n)}},rq.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},rq.prototype.sign=function(t,e,r,i){\"object\"==typeof r&&(i=r,r=null),i||(i={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new tP(t,16));for(var n=this.n.byteLength(),o=e.getPrivate().toArray(\"be\",n),s=t.toArray(\"be\",n),u=new r_({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||\"utf8\"}),f=this.n.sub(new tP(1)),h=0;;h++){var a=i.k?i.k(h):new tP(u.generate(this.n.byteLength()));if(!(0>=(a=this._truncateToN(a,!0)).cmpn(1)||a.cmp(f)>=0)){var l=this.g.mul(a);if(!l.isInfinity()){var c=l.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=a.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(l.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return i.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new rk({r:d,s:p,recoveryParam:m})}}}}}},rq.prototype.verify=function(t,e,r,i){t=this._truncateToN(new tP(t,16)),r=this.keyFromPublic(r,i);var n=(e=new rk(e,\"hex\")).r,o=e.s;if(0>n.cmpn(1)||n.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),f=u.mul(t).umod(this.n),h=u.mul(n).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(f,r.getPublic(),h)).isInfinity()&&s.eqXToP(n):!(s=this.g.mulAdd(f,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(n)},rq.prototype.recoverPubKey=function(t,e,r,i){rL((3&r)===r,\"The recovery param is more than two bits\"),e=new rk(e,i);var n=this.n,o=new tP(t),s=e.r,u=e.s,f=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error(\"Unable to find sencond key candinate\");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var a=e.r.invm(n),l=n.sub(o).mul(a).umod(n),c=u.mul(a).umod(n);return this.g.mulAdd(l,s,c)},rq.prototype.getKeyRecoveryParam=function(t,e,r,i){if(null!==(e=new rk(e,i)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch{continue}if(n.eq(r))return o}throw Error(\"Unable to find valid recovery factor\")};var rz=rc(function(t,e){e.version=\"6.5.4\",e.utils=rg,e.rand=function(){throw Error(\"unsupported\")},e.curve=rB,e.curves=rC,e.ec=rq,e.eddsa=null}).ec;let rj=new tA(\"signing-key/5.7.0\"),rH=null;function rK(){return rH||(rH=new rz(\"secp256k1\")),rH}class rQ{constructor(t){el(this,\"curve\",\"secp256k1\"),el(this,\"privateKey\",tB(t)),32!==function(t){if(\"string\"!=typeof t)t=tB(t);else if(!tI(t)||t.length%2)return null;return(t.length-2)/2}(this.privateKey)&&rj.throwArgumentError(\"invalid private key\",\"privateKey\",\"[[ REDACTED ]]\");let e=rK().keyFromPrivate(tS(this.privateKey));el(this,\"publicKey\",\"0x\"+e.getPublic(!1,\"hex\")),el(this,\"compressedPublicKey\",\"0x\"+e.getPublic(!0,\"hex\")),el(this,\"_isSigningKey\",!0)}_addPoint(t){let e=rK().keyFromPublic(tS(this.publicKey)),r=rK().keyFromPublic(tS(t));return\"0x\"+e.pub.add(r.pub).encodeCompressed(\"hex\")}signDigest(t){let e=rK().keyFromPrivate(tS(this.privateKey)),r=tS(t);32!==r.length&&rj.throwArgumentError(\"bad digest length\",\"digest\",t);let i=e.sign(r,{canonical:!0});return tx({recoveryParam:i.recoveryParam,r:t_(\"0x\"+i.r.toString(16),32),s:t_(\"0x\"+i.s.toString(16),32)})}computeSharedSecret(t){let e=rK().keyFromPrivate(tS(this.privateKey)),r=rK().keyFromPublic(tS(rJ(t)));return t_(\"0x\"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function rJ(t,e){let r=tS(t);if(32===r.length){let t=new rQ(r);return e?\"0x\"+rK().keyFromPrivate(r).getPublic(!0,\"hex\"):t.publicKey}return 33===r.length?e?tB(r):\"0x\"+rK().keyFromPublic(r).getPublic(!1,\"hex\"):65===r.length?e?\"0x\"+rK().keyFromPublic(r).getPublic(!0,\"hex\"):tB(r):rj.throwArgumentError(\"invalid public or private key\",\"key\",\"[REDACTED]\")}async function rG(t,e,r,i,n,o){switch(r.t){case\"eip191\":var s;return s=r.s,(function(t){let e=null;if(\"string\"!=typeof t&&eu.throwArgumentError(\"invalid address\",\"address\",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),e=ef(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&eu.throwArgumentError(\"bad address checksum\",\"address\",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+\"00\").split(\"\").map(t=>eh[t]).join(\"\");for(;e.length>=ea;){let t=e.substring(0,ea);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r=\"0\"+r;return r}(t)&&eu.throwArgumentError(\"bad icap checksum\",\"address\",t),e=new tT(t.substring(4),36).toString(16);e.length<40;)e=\"0\"+e;e=ef(\"0x\"+e)}else eu.throwArgumentError(\"invalid address\",\"address\",t);return e})(tC(tO(tC(rJ(function(t,e){let r=tx(e),i={r:tS(r.r),s:tS(r.s)};return\"0x\"+rK().recoverPubKey(tS(t),i,r.recoveryParam).encode(\"hex\",!1)}(tS(es(e)),s)),1)),12)).toLowerCase()===t.toLowerCase();case\"eip1271\":return await rY(t,e,r.s,i,n,o);default:throw Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function rY(t,e,r,i,n,o){try{let s=\"0x1626ba7e\",u=r.substring(2),f=es(e).substring(2),h=await fetch(`${o||\"https://rpc.walletconnect.com/v1\"}/?chainId=${i}&projectId=${n}`,{method:\"POST\",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:\"2.0\",method:\"eth_call\",params:[{to:t,data:s+f+\"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041\"+u},\"latest\"]})}),{result:a}=await h.json();return!!a&&a.slice(0,s.length).toLowerCase()===s.toLowerCase()}catch(t){return console.error(\"isValidEip1271Signature: \",t),!1}}new tA(\"transactions/5.7.0\"),(a=m||(m={}))[a.legacy=0]=\"legacy\",a[a.eip2930=1]=\"eip2930\",a[a.eip1559=2]=\"eip1559\";var rV=Object.defineProperty,rW=Object.defineProperties,rX=Object.getOwnPropertyDescriptors,rZ=Object.getOwnPropertySymbols,r$=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable,r1=(t,e,r)=>e in t?rV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,r2=(t,e)=>{for(var r in e||(e={}))r$.call(e,r)&&r1(t,r,e[r]);if(rZ)for(var r of rZ(e))r0.call(e,r)&&r1(t,r,e[r]);return t},r3=(t,e)=>rW(t,rX(e));let r6=t=>t?.split(\":\"),r8=t=>{let e=t&&r6(t);if(e)return t.includes(\"did:pkh:\")?e[3]:e[1]},r4=t=>{let e=t&&r6(t);if(e)return e[2]+\":\"+e[3]},r5=t=>{let e=t&&r6(t);if(e)return e.pop()};async function r7(t){let{cacao:e,projectId:r}=t,{s:i,p:n}=e,o=r9(n,n.iss),s=r5(n.iss);return await rG(s,o,i,r8(n.iss),r)}let r9=(t,e)=>{let r=`${t.domain} wants you to sign in with your Ethereum account:`,i=r5(e);if(!t.aud&&!t.uri)throw Error(\"Either `aud` or `uri` is required to construct the message\");let n=t.statement||void 0,o=`URI: ${t.aud||t.uri}`,s=`Version: ${t.version}`,u=`Chain ID: ${r8(e)}`,f=`Nonce: ${t.nonce}`,h=`Issued At: ${t.iat}`,a=t.exp?`Expiration Time: ${t.exp}`:void 0,l=t.nbf?`Not Before: ${t.nbf}`:void 0,c=t.requestId?`Request ID: ${t.requestId}`:void 0,d=t.resources?`Resources:${t.resources.map(t=>`\n- ${t}`).join(\"\")}`:void 0,p=ih(t.resources);return p&&(n=function(t=\"\",e){it(e);let r=\"I further authorize the stated URI to perform the following actions on my behalf: \";if(t.includes(r))return t;let i=[],n=0;Object.keys(e.att).forEach(t=>{let r=Object.keys(e.att[t]).map(t=>({ability:t.split(\"/\")[0],action:t.split(\"/\")[1]}));r.sort((t,e)=>t.action.localeCompare(e.action));let o={};r.forEach(t=>{o[t.ability]||(o[t.ability]=[]),o[t.ability].push(t.action)});let s=Object.keys(o).map(e=>(n++,`(${n}) '${e}': '${o[e].join(\"', '\")}' for '${t}'.`));i.push(s.join(\", \").replace(\".,\",\".\"))});let o=i.join(\" \"),s=`${r}${o}`;return`${t?t+\" \":\"\"}${s}`}(n,ir(p))),[r,i,\"\",n,\"\",o,s,u,f,h,a,l,c,d].filter(t=>null!=t).join(`\n`)};function it(t){if(!t)throw Error(\"No recap provided, value is undefined\");if(!t.att)throw Error(\"No `att` property found\");let e=Object.keys(t.att);if(!(null!=e&&e.length))throw Error(\"No resources found in `att` property\");e.forEach(e=>{let r=t.att[e];if(Array.isArray(r)||\"object\"!=typeof r)throw Error(`Resource must be an object: ${e}`);if(!Object.keys(r).length)throw Error(`Resource object is empty: ${e}`);Object.keys(r).forEach(t=>{let e=r[t];if(!Array.isArray(e))throw Error(`Ability limits ${t} must be an array of objects, found: ${e}`);if(!e.length)throw Error(`Value of ${t} is empty array, must be an array with objects`);e.forEach(e=>{if(\"object\"!=typeof e)throw Error(`Ability limits (${t}) must be an array of objects, found: ${e}`)})})})}function ie(t){return it(t),`urn:recap:${_.from(JSON.stringify(t)).toString(\"base64\").replace(/=/g,\"\")}`}function ir(t){var e;let r=(e=t.replace(\"urn:recap:\",\"\"),JSON.parse(_.from(e,\"base64\").toString(\"utf-8\")));return it(r),r}function ii(t,e,r){return ie(function(t,e,r,i={}){return r?.sort((t,e)=>t.localeCompare(e)),{att:{[t]:function(t,e,r={}){return Object.assign({},...(e=e?.sort((t,e)=>t.localeCompare(e))).map(e=>({[`${t}/${e}`]:[r]})))}(e,r,i)}}}(t,e,r))}function io(t,e){return ie(function(t,e){it(t),it(e);let r=Object.keys(t.att).concat(Object.keys(e.att)).sort((t,e)=>t.localeCompare(e)),i={att:{}};return r.forEach(r=>{var n,o;Object.keys((null==(n=t.att)?void 0:n[r])||{}).concat(Object.keys((null==(o=e.att)?void 0:o[r])||{})).sort((t,e)=>t.localeCompare(e)).forEach(n=>{var o,s;i.att[r]=r3(r2({},i.att[r]),{[n]:(null==(o=t.att[r])?void 0:o[n])||(null==(s=e.att[r])?void 0:s[n])})})}),i}(ir(t),ir(e)))}function is(t){var e;let r=ir(t);it(r);let i=null==(e=r.att)?void 0:e.eip155;return i?Object.keys(i).map(t=>t.split(\"/\")[1]):[]}function iu(t){let e=ir(t);it(e);let r=[];return Object.values(e.att).forEach(t=>{Object.values(t).forEach(t=>{var e;null!=(e=t?.[0])&&e.chains&&r.push(t[0].chains)})}),[...new Set(r.flat())]}function ih(t){if(!t)return;let e=t?.[t.length-1];return e&&e.includes(\"urn:recap:\")?e:void 0}let ia=\"base10\",il=\"base16\",ic=\"base64pad\",id=\"utf8\",ip=1;function im(){let t=I.Au();return{privateKey:(0,N.BB)(t.secretKey,il),publicKey:(0,N.BB)(t.publicKey,il)}}function ig(){let t=(0,E.randomBytes)(32);return(0,N.BB)(t,il)}function iv(t,e){let r=I.gi((0,N.mL)(t,il),(0,N.mL)(e,il),!0),i=new M.t(S.mE,r).expand(32);return(0,N.BB)(i,il)}function iA(t){let e=(0,S.vp)((0,N.mL)(t,il));return(0,N.BB)(e,il)}function iy(t){let e=(0,S.vp)((0,N.mL)(t,id));return(0,N.BB)(e,il)}function ib(t){return Number((0,N.BB)(t,ia))}function iw(t){var e;let r=(e=\"u\">typeof t.type?t.type:0,(0,N.mL)(`${e}`,ia));if(ib(r)===ip&&typeof t.senderPublicKey>\"u\")throw Error(\"Missing sender public key for type 1 envelope\");let i=\"u\">typeof t.senderPublicKey?(0,N.mL)(t.senderPublicKey,il):void 0,n=\"u\">typeof t.iv?(0,N.mL)(t.iv,il):(0,E.randomBytes)(12);return function(t){if(ib(t.type)===ip){if(typeof t.senderPublicKey>\"u\")throw Error(\"Missing sender public key for type 1 envelope\");return(0,N.BB)((0,N.zo)([t.type,t.senderPublicKey,t.iv,t.sealed]),ic)}return(0,N.BB)((0,N.zo)([t.type,t.iv,t.sealed]),ic)}({type:r,sealed:new w.OK((0,N.mL)(t.symKey,il)).seal(n,(0,N.mL)(t.message,id)),iv:n,senderPublicKey:i})}function iM(t){let e=new w.OK((0,N.mL)(t.symKey,il)),{sealed:r,iv:i}=iE(t.encoded),n=e.open(i,r);if(null===n)throw Error(\"Failed to decrypt\");return(0,N.BB)(n,id)}function iE(t){let e=(0,N.mL)(t,ic),r=e.slice(0,1);if(ib(r)===ip){let t=e.slice(1,33),i=e.slice(33,45);return{type:r,sealed:e.slice(45),iv:i,senderPublicKey:t}}let i=e.slice(1,13);return{type:r,sealed:e.slice(13),iv:i}}function iS(t,e){let r=iE(t);return iI({type:ib(r.type),senderPublicKey:\"u\">typeof r.senderPublicKey?(0,N.BB)(r.senderPublicKey,il):void 0,receiverPublicKey:e?.receiverPublicKey})}function iI(t){let e=t?.type||0;if(e===ip){if(typeof t?.senderPublicKey>\"u\")throw Error(\"missing sender public key\");if(typeof t?.receiverPublicKey>\"u\")throw Error(\"missing receiver public key\")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function iN(t){return t.type===ip&&\"string\"==typeof t.senderPublicKey&&\"string\"==typeof t.receiverPublicKey}function iB(t){return t?.relay||{protocol:\"irn\"}}function iC(t){let e=B.iO[t];if(typeof e>\"u\")throw Error(`Relay Protocol not supported: ${t}`);return e}var i_=Object.defineProperty,ix=Object.defineProperties,iO=Object.getOwnPropertyDescriptors,iR=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,iP=Object.prototype.propertyIsEnumerable,iU=(t,e,r)=>e in t?i_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,iT=(t,e)=>{for(var r in e||(e={}))ik.call(e,r)&&iU(t,r,e[r]);if(iR)for(var r of iR(e))iP.call(e,r)&&iU(t,r,e[r]);return t},iD=(t,e)=>ix(t,iO(e));function iF(t){var e;let r=(t=(t=t.includes(\"wc://\")?t.replace(\"wc://\",\"\"):t).includes(\"wc:\")?t.replace(\"wc:\",\"\"):t).indexOf(\":\"),i=-1!==t.indexOf(\"?\")?t.indexOf(\"?\"):void 0,n=t.substring(0,r),o=t.substring(r+1,i).split(\"@\"),s=\"u\">typeof i?t.substring(i):\"\",u=b.parse(s),f=\"string\"==typeof u.methods?u.methods.split(\",\"):void 0;return{protocol:n,topic:(e=o[0]).startsWith(\"//\")?e.substring(2):e,version:parseInt(o[1],10),symKey:u.symKey,relay:function(t,e=\"-\"){let r={},i=\"relay\"+e;return Object.keys(t).forEach(e=>{if(e.startsWith(i)){let n=e.replace(i,\"\"),o=t[e];r[n]=o}}),r}(u),methods:f,expiryTimestamp:u.expiryTimestamp?parseInt(u.expiryTimestamp,10):void 0}}function iL(t){return`${t.protocol}:${t.topic}@${t.version}?`+b.stringify(iT(iD(iT({symKey:t.symKey},function(t,e=\"-\"){let r={};return Object.keys(t).forEach(i=>{t[i]&&(r[\"relay\"+e+i]=t[i])}),r}(t.relay)),{expiryTimestamp:t.expiryTimestamp}),t.methods?{methods:t.methods.join(\",\")}:{}))}function iq(t){let e=[];return t.forEach(t=>{let[r,i]=t.split(\":\");e.push(`${r}:${i}`)}),e}function iz(t){return t.includes(\":\")}function ij(t){return iz(t)?t.split(\":\")[0]:t}function iH(t,e){let r=function(t){let e={};return t?.forEach(t=>{let[r,i]=t.split(\":\");e[r]||(e[r]={accounts:[],chains:[],events:[]}),e[r].accounts.push(t),e[r].chains.push(`${r}:${i}`)}),e}(e=e.map(t=>t.replace(\"did:pkh:\",\"\")));for(let[e,i]of Object.entries(r))i.methods?i.methods=to(i.methods,t):i.methods=t,i.events=[\"chainChanged\",\"accountsChanged\"];return r}Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let iK={INVALID_METHOD:{message:\"Invalid method.\",code:1001},INVALID_EVENT:{message:\"Invalid event.\",code:1002},INVALID_UPDATE_REQUEST:{message:\"Invalid update request.\",code:1003},INVALID_EXTEND_REQUEST:{message:\"Invalid extend request.\",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:\"Invalid session settle request.\",code:1005},UNAUTHORIZED_METHOD:{message:\"Unauthorized method.\",code:3001},UNAUTHORIZED_EVENT:{message:\"Unauthorized event.\",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:\"Unauthorized update request.\",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:\"Unauthorized extend request.\",code:3004},USER_REJECTED:{message:\"User rejected.\",code:5e3},USER_REJECTED_CHAINS:{message:\"User rejected chains.\",code:5001},USER_REJECTED_METHODS:{message:\"User rejected methods.\",code:5002},USER_REJECTED_EVENTS:{message:\"User rejected events.\",code:5003},UNSUPPORTED_CHAINS:{message:\"Unsupported chains.\",code:5100},UNSUPPORTED_METHODS:{message:\"Unsupported methods.\",code:5101},UNSUPPORTED_EVENTS:{message:\"Unsupported events.\",code:5102},UNSUPPORTED_ACCOUNTS:{message:\"Unsupported accounts.\",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:\"Unsupported namespace key.\",code:5104},USER_DISCONNECTED:{message:\"User disconnected.\",code:6e3},SESSION_SETTLEMENT_FAILED:{message:\"Session settlement failed.\",code:7e3},WC_METHOD_UNSUPPORTED:{message:\"Unsupported wc_ method.\",code:10001}},iQ={NOT_INITIALIZED:{message:\"Not initialized.\",code:1},NO_MATCHING_KEY:{message:\"No matching key.\",code:2},RESTORE_WILL_OVERRIDE:{message:\"Restore will override.\",code:3},RESUBSCRIBED:{message:\"Resubscribed.\",code:4},MISSING_OR_INVALID:{message:\"Missing or invalid.\",code:5},EXPIRED:{message:\"Expired.\",code:6},UNKNOWN_TYPE:{message:\"Unknown type.\",code:7},MISMATCHED_TOPIC:{message:\"Mismatched topic.\",code:8},NON_CONFORMING_NAMESPACES:{message:\"Non conforming namespaces.\",code:9}};function iJ(t,e){let{message:r,code:i}=iQ[t];return{message:e?`${r} ${e}`:r,code:i}}function iG(t,e){let{message:r,code:i}=iK[t];return{message:e?`${r} ${e}`:r,code:i}}function iY(t,e){return!!Array.isArray(t)&&(!(\"u\">typeof e)||!t.length||t.every(e))}function iV(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function iW(t){return typeof t>\"u\"}function iX(t,e){return!!(e&&iW(t))||\"string\"==typeof t&&!!t.trim().length}function iZ(t,e){return!!(e&&iW(t))||\"number\"==typeof t&&!isNaN(t)}function i$(t,e){let{requiredNamespaces:r}=e,i=Object.keys(t.namespaces),n=Object.keys(r),o=!0;return!!G(n,i)&&(i.forEach(e=>{let{accounts:i,methods:n,events:s}=t.namespaces[e],u=iq(i),f=r[e];G(R(e,f),u)&&G(f.methods,n)&&G(f.events,s)||(o=!1)}),o)}function i0(t){return!!(iX(t,!1)&&t.includes(\":\"))&&2===t.split(\":\").length}function i1(t){if(iX(t,!1))try{return\"u\">typeof new URL(t)}catch{}return!1}function i2(t){var e;return null==(e=t?.proposer)?void 0:e.publicKey}function i3(t){return t?.topic}function i6(t,e){let r=null;return iX(t?.publicKey,!1)||(r=iJ(\"MISSING_OR_INVALID\",`${e} controller public key should be a string`)),r}function i8(t){let e=!0;return iY(t)?t.length&&(e=t.every(t=>iX(t,!1))):e=!1,e}function i4(t,e){let r=null;return Object.values(t).forEach(t=>{var i;let n;if(r)return;let o=(i=`${e}, namespace`,n=null,i8(t?.methods)?i8(t?.events)||(n=iG(\"UNSUPPORTED_EVENTS\",`${i}, events should be an array of strings or empty array for no events`)):n=iG(\"UNSUPPORTED_METHODS\",`${i}, methods should be an array of strings or empty array for no methods`),n);o&&(r=o)}),r}function i5(t,e,r){let i=null;if(t&&iV(t)){let n;let o=i4(t,e);o&&(i=o);let s=(n=null,Object.entries(t).forEach(([t,i])=>{var o,s;let u;if(n)return;let f=(o=R(t,i),s=`${e} ${r}`,u=null,iY(o)&&o.length?o.forEach(t=>{u||i0(t)||(u=iG(\"UNSUPPORTED_CHAINS\",`${s}, chain ${t} should be a string and conform to \"namespace:chainId\" format`))}):i0(t)||(u=iG(\"UNSUPPORTED_CHAINS\",`${s}, chains must be defined as \"namespace:chainId\" e.g. \"eip155:1\": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: [\"eip155:1\", \"eip155:5\"] }`)),u);f&&(n=f)}),n);s&&(i=s)}else i=iJ(\"MISSING_OR_INVALID\",`${e}, ${r} should be an object with data`);return i}function i7(t,e){let r=null;if(t&&iV(t)){let i;let n=i4(t,e);n&&(r=n);let o=(i=null,Object.values(t).forEach(t=>{var r,n;let o;if(i)return;let s=(r=t?.accounts,n=`${e} namespace`,o=null,iY(r)?r.forEach(t=>{o||function(t){if(iX(t,!1)&&t.includes(\":\")){let e=t.split(\":\");if(3===e.length){let t=e[0]+\":\"+e[1];return!!e[2]&&i0(t)}}return!1}(t)||(o=iG(\"UNSUPPORTED_ACCOUNTS\",`${n}, account ${t} should be a string and conform to \"namespace:chainId:address\" format`))}):o=iG(\"UNSUPPORTED_ACCOUNTS\",`${n}, accounts should be an array of strings conforming to \"namespace:chainId:address\" format`),o);s&&(i=s)}),i);o&&(r=o)}else r=iJ(\"MISSING_OR_INVALID\",`${e}, namespaces should be an object with data`);return r}function i9(t){return iX(t.protocol,!0)}function nt(t,e){let r=!1;return e&&!t?r=!0:t&&iY(t)&&t.length&&t.forEach(t=>{r=i9(t)}),r}function ne(t){return\"number\"==typeof t}function nr(t){return\"u\">typeof t}function ni(t){return!(!t||\"object\"!=typeof t||!t.code||!iZ(t.code,!1)||!t.message||!iX(t.message,!1))}function nn(t){return!(iW(t)||!iX(t.method,!1))}function no(t){return!(iW(t)||iW(t.result)&&iW(t.error)||!iZ(t.id,!1)||!iX(t.jsonrpc,!1))}function ns(t){return!(iW(t)||!iX(t.name,!1))}function nu(t,e){return!(!i0(e)||!(function(t){let e=[];return Object.values(t).forEach(t=>{e.push(...iq(t.accounts))}),e})(t).includes(e))}function nf(t,e,r){return!!iX(r,!1)&&(function(t,e){let r=[];return Object.values(t).forEach(t=>{iq(t.accounts).includes(e)&&r.push(...t.methods)}),r})(t,e).includes(r)}function nh(t,e,r){return!!iX(r,!1)&&(function(t,e){let r=[];return Object.values(t).forEach(t=>{iq(t.accounts).includes(e)&&r.push(...t.events)}),r})(t,e).includes(r)}function na(t,e,r){let i=null,n=function(t){let e={};return Object.keys(t).forEach(r=>{var i;r.includes(\":\")?e[r]=t[r]:null==(i=t[r].chains)||i.forEach(i=>{e[i]={methods:t[r].methods,events:t[r].events}})}),e}(t),o=function(t){let e={};return Object.keys(t).forEach(r=>{if(r.includes(\":\"))e[r]=t[r];else{let i=iq(t[r].accounts);i?.forEach(i=>{e[i]={accounts:t[r].accounts.filter(t=>t.includes(`${i}:`)),methods:t[r].methods,events:t[r].events}})}}),e}(e),s=Object.keys(n),u=Object.keys(o),f=nl(Object.keys(t)),h=nl(Object.keys(e)),a=f.filter(t=>!h.includes(t));return a.length&&(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces keys don't satisfy requiredNamespaces.\n      Required: ${a.toString()}\n      Received: ${Object.keys(e).toString()}`)),G(s,u)||(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces chains don't satisfy required namespaces.\n      Required: ${s.toString()}\n      Approved: ${u.toString()}`)),Object.keys(e).forEach(t=>{if(!t.includes(\":\")||i)return;let n=iq(e[t].accounts);n.includes(t)||(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces accounts don't satisfy namespace accounts for ${t}\n        Required: ${t}\n        Approved: ${n.toString()}`))}),s.forEach(t=>{i||(G(n[t].methods,o[t].methods)?G(n[t].events,o[t].events)||(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces events don't satisfy namespace events for ${t}`)):i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces methods don't satisfy namespace methods for ${t}`))}),i}function nl(t){return[...new Set(t.map(t=>t.includes(\":\")?t.split(\":\")[0]:t))]}function nc(t,e){return iZ(t,!1)&&t<=e.max&&t>=e.min}function nd(){let t=H();return new Promise(e=>{switch(t){case L.browser:e(j()&&navigator?.onLine);break;case L.reactNative:e(np());break;case L.node:default:e(!0)}})}async function np(){if(z()&&\"u\">typeof r.g&&null!=r.g&&r.g.NetInfo){let t=await (null==r.g?void 0:r.g.NetInfo.fetch());return t?.isConnected}return!0}function nm(t){switch(H()){case L.browser:!z()&&j()&&(window.addEventListener(\"online\",()=>t(!0)),window.addEventListener(\"offline\",()=>t(!1)));break;case L.reactNative:z()&&\"u\">typeof r.g&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener(e=>t(e?.isConnected));case L.node:}}let ng={};class nv{static get(t){return ng[t]}static set(t,e){ng[t]=e}static delete(t){delete ng[t]}}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/5e22fd23-a888f1085fc13e55.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[452],{69824:function(t,c,n){n.d(c,{Vmf:function(){return a}});var u=n(91810);function a(t){return(0,u.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/795d4814-3c1aeb3c4a7db891.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51],{16356:function(t,h,a){a.d(h,{Dk$:function(){return v},FH3:function(){return l}});var n=a(91810);function l(t){return(0,n.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"path\",attr:{fill:\"none\",d:\"M0 0h24v24H0z\"},child:[]},{tag:\"path\",attr:{fill:\"none\",d:\"M0 0h24v24H0V0z\"},child:[]},{tag:\"path\",attr:{d:\"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z\"},child:[]}]})(t)}function v(t){return(0,n.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"path\",attr:{fill:\"none\",d:\"M0 0h24v24H0z\"},child:[]},{tag:\"path\",attr:{d:\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 7h7v2H7V7zm3 8H7v-2h3v2zm-3-3v-2h7v2H7zm12 3h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/866.ab29f905adb91a5f.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[866],{80866:function(e,t,r){let i;r.r(t),r.d(t,{WcmModal:function(){return ih},WcmQrCode:function(){return rw}});/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let o=window,l=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,a=Symbol(),n=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==a)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(l&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=n.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&n.set(t,e))}return e}toString(){return this.cssText}}let c=e=>new s(\"string\"==typeof e?e:e+\"\",void 0,a),d=(e,...t)=>new s(1===e.length?e[0]:t.reduce((t,r,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(\"number\"==typeof e)return e;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+e+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(r)+e[i+1],e[0]),e,a),h=(e,t)=>{l?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{let r=document.createElement(\"style\"),i=o.litNonce;void 0!==i&&r.setAttribute(\"nonce\",i),r.textContent=t.cssText,e.appendChild(r)})},m=l?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=\"\";for(let r of e.cssRules)t+=r.cssText;return c(t)})(e):e,p=window,u=p.trustedTypes,w=u?u.emptyScript:\"\",g=p.reactiveElementPolyfillSupport,v={toAttribute(e,t){switch(t){case Boolean:e=e?w:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},f=(e,t)=>t!==e&&(t==t||e==e),b={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:f},y=\"finalized\";class x extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,r)=>{let i=this._$Ep(r,t);void 0!==i&&(this._$Ev.set(i,r),e.push(i))}),e}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let r=\"symbol\"==typeof e?Symbol():\"__\"+e,i=this.getPropertyDescriptor(e,r,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(i){let o=this[e];this[t]=i,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||b}static finalize(){if(this.hasOwnProperty(y))return!1;this[y]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty(\"properties\")){let e=this.properties;for(let t of[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)])this.createProperty(t,e[t])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(m(r));else void 0!==e&&t.push(m(e));return t}static _$Ep(e,t){let r=t.attribute;return!1===r?void 0:\"string\"==typeof r?r:\"string\"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=b){var i;let o=this.constructor._$Ep(e,r);if(void 0!==o&&!0===r.reflect){let l=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:v).toAttribute(t,r.type);this._$El=e,null==l?this.removeAttribute(o):this.setAttribute(o,l),this._$El=null}}_$AK(e,t){var r;let i=this.constructor,o=i._$Ev.get(e);if(void 0!==o&&this._$El!==o){let e=i.getPropertyOptions(o),l=\"function\"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:v;this._$El=o,this[o]=l.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let i=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||f)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}x[y]=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:\"open\"},null==g||g({ReactiveElement:x}),(null!==(ef=p.reactiveElementVersions)&&void 0!==ef?ef:p.reactiveElementVersions=[]).push(\"1.6.3\");let $=window,C=$.trustedTypes,A=C?C.createPolicy(\"lit-html\",{createHTML:e=>e}):void 0,_=\"$lit$\",O=`lit$${(Math.random()+\"\").slice(9)}$`,E=\"?\"+O,k=`<${E}>`,I=document,T=()=>I.createComment(\"\"),P=e=>null===e||\"object\"!=typeof e&&\"function\"!=typeof e,M=Array.isArray,S=e=>M(e)||\"function\"==typeof(null==e?void 0:e[Symbol.iterator]),R=\"[ \t\\n\\f\\r]\",L=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,W=/-->/g,j=/>/g,D=RegExp(`>|${R}(?:([^\\\\s\"'>=/]+)(${R}*=${R}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),N=/'/g,U=/\"/g,z=/^(?:script|style|textarea|title)$/i,H=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Z=H(1),B=H(2),V=Symbol.for(\"lit-noChange\"),q=Symbol.for(\"lit-nothing\"),F=new WeakMap,K=I.createTreeWalker(I,129,null,!1);function Q(e,t){if(!Array.isArray(e)||!e.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==A?A.createHTML(t):t}let Y=(e,t)=>{let r=e.length-1,i=[],o,l=2===t?\"<svg>\":\"\",a=L;for(let t=0;t<r;t++){let r=e[t],n,s,c=-1,d=0;for(;d<r.length&&(a.lastIndex=d,null!==(s=a.exec(r)));)d=a.lastIndex,a===L?\"!--\"===s[1]?a=W:void 0!==s[1]?a=j:void 0!==s[2]?(z.test(s[2])&&(o=RegExp(\"</\"+s[2],\"g\")),a=D):void 0!==s[3]&&(a=D):a===D?\">\"===s[0]?(a=null!=o?o:L,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?D:'\"'===s[3]?U:N):a===U||a===N?a=D:a===W||a===j?a=L:(a=D,o=void 0);let h=a===D&&e[t+1].startsWith(\"/>\")?\" \":\"\";l+=a===L?r+k:c>=0?(i.push(n),r.slice(0,c)+_+r.slice(c)+O+h):r+O+(-2===c?(i.push(void 0),t):h)}return[Q(e,l+(e[r]||\"<?>\")+(2===t?\"</svg>\":\"\")),i]};class G{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,l=0,a=e.length-1,n=this.parts,[s,c]=Y(e,t);if(this.el=G.createElement(s,r),K.currentNode=this.el.content,2===t){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=K.nextNode())&&n.length<a;){if(1===i.nodeType){if(i.hasAttributes()){let e=[];for(let t of i.getAttributeNames())if(t.endsWith(_)||t.startsWith(O)){let r=c[l++];if(e.push(t),void 0!==r){let e=i.getAttribute(r.toLowerCase()+_).split(O),t=/([.?@])?(.*)/.exec(r);n.push({type:1,index:o,name:t[2],strings:e,ctor:\".\"===t[1]?er:\"?\"===t[1]?eo:\"@\"===t[1]?el:et})}else n.push({type:6,index:o})}for(let t of e)i.removeAttribute(t)}if(z.test(i.tagName)){let e=i.textContent.split(O),t=e.length-1;if(t>0){i.textContent=C?C.emptyScript:\"\";for(let r=0;r<t;r++)i.append(e[r],T()),K.nextNode(),n.push({type:2,index:++o});i.append(e[t],T())}}}else if(8===i.nodeType){if(i.data===E)n.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(O,e+1));)n.push({type:7,index:o}),e+=O.length-1}}o++}}static createElement(e,t){let r=I.createElement(\"template\");return r.innerHTML=e,r}}function X(e,t,r=e,i){var o,l,a;if(t===V)return t;let n=void 0!==i?null===(o=r._$Co)||void 0===o?void 0:o[i]:r._$Cl,s=P(t)?void 0:t._$litDirective$;return(null==n?void 0:n.constructor)!==s&&(null===(l=null==n?void 0:n._$AO)||void 0===l||l.call(n,!1),void 0===s?n=void 0:(n=new s(e))._$AT(e,r,i),void 0!==i?(null!==(a=r._$Co)&&void 0!==a?a:r._$Co=[])[i]=n:r._$Cl=n),void 0!==n&&(t=X(e,n._$AS(e,t.values),n,i)),t}class J{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:r},parts:i}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:I).importNode(r,!0);K.currentNode=o;let l=K.nextNode(),a=0,n=0,s=i[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new ee(l,l.nextSibling,this,e):1===s.type?t=new s.ctor(l,s.name,s.strings,this,e):6===s.type&&(t=new ea(l,this,e)),this._$AV.push(t),s=i[++n]}a!==(null==s?void 0:s.index)&&(l=K.nextNode(),a++)}return K.currentNode=I,o}v(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ee{constructor(e,t,r,i){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cp=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){P(e=X(this,e,t))?e===q||null==e||\"\"===e?(this._$AH!==q&&this._$AR(),this._$AH=q):e!==this._$AH&&e!==V&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):S(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==q&&P(this._$AH)?this._$AA.nextSibling.data=e:this.$(I.createTextNode(e)),this._$AH=e}g(e){var t;let{values:r,_$litType$:i}=e,o=\"number\"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=G.createElement(Q(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(r);else{let e=new J(o,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=F.get(e.strings);return void 0===t&&F.set(e.strings,t=new G(e)),t}T(e){M(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,i=0;for(let o of e)i===t.length?t.push(r=new ee(this.k(T()),this.k(T()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class et{constructor(e,t,r,i,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||\"\"!==r[0]||\"\"!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,i){let o=this.strings,l=!1;if(void 0===o)(l=!P(e=X(this,e,t,0))||e!==this._$AH&&e!==V)&&(this._$AH=e);else{let i,a;let n=e;for(e=o[0],i=0;i<o.length-1;i++)(a=X(this,n[r+i],t,i))===V&&(a=this._$AH[i]),l||(l=!P(a)||a!==this._$AH[i]),a===q?e=q:e!==q&&(e+=(null!=a?a:\"\")+o[i+1]),this._$AH[i]=a}l&&!i&&this.j(e)}j(e){e===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:\"\")}}class er extends et{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===q?void 0:e}}let ei=C?C.emptyScript:\"\";class eo extends et{constructor(){super(...arguments),this.type=4}j(e){e&&e!==q?this.element.setAttribute(this.name,ei):this.element.removeAttribute(this.name)}}class el extends et{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var r;if((e=null!==(r=X(this,e,t,0))&&void 0!==r?r:q)===V)return;let i=this._$AH,o=e===q&&i!==q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,l=e!==q&&(i===q||o);o&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;\"function\"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class ea{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){X(this,e)}}let en=$.litHtmlPolyfillSupport;null==en||en(G,ee),(null!==(eb=$.litHtmlVersions)&&void 0!==eb?eb:$.litHtmlVersions=[]).push(\"2.8.0\");let es=(e,t,r)=>{var i,o;let l=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:t,a=l._$litPart$;if(void 0===a){let e=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;l._$litPart$=a=new ee(t.insertBefore(T(),e),e,void 0,null!=r?r:{})}return a._$AI(e),a};class ec extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=es(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return V}}ec.finalized=!0,ec._$litElement$=!0,null===(ey=globalThis.litElementHydrateSupport)||void 0===ey||ey.call(globalThis,{LitElement:ec});let ed=globalThis.litElementPolyfillSupport;null==ed||ed({LitElement:ec}),(null!==(ex=globalThis.litElementVersions)&&void 0!==ex?ex:globalThis.litElementVersions=[]).push(\"3.3.3\");/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let eh=e=>t=>\"function\"==typeof t?(customElements.define(e,t),t):((e,t)=>{let{kind:r,elements:i}=t;return{kind:r,elements:i,finisher(t){customElements.define(e,t)}}})(e,t),em=(e,t)=>\"method\"!==t.kind||!t.descriptor||\"value\"in t.descriptor?{kind:\"field\",key:Symbol(),placement:\"own\",descriptor:{},originalKey:t.key,initializer(){\"function\"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}}:{...t,finisher(r){r.createProperty(t.key,e)}},ep=(e,t,r)=>{t.constructor.createProperty(r,e)};function eu(e){return(t,r)=>void 0!==r?ep(e,t,r):em(e,t)}/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function ew(e){return eu({...e,state:!0})}null!=(null===(e$=window.HTMLSlotElement)||void 0===e$?void 0:e$.prototype.assignedElements)||((e,t)=>e.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE));class eg{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let ev=(i=class extends eg{constructor(e){var t;if(super(e),1!==e.type||\"class\"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(e){return\" \"+Object.keys(e).filter(t=>e[t]).join(\" \")+\" \"}update(e,[t]){var r,i;if(void 0===this.it){for(let i in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(\" \").split(/\\s/).filter(e=>\"\"!==e))),t)!t[i]||(null===(r=this.nt)||void 0===r?void 0:r.has(i))||this.it.add(i);return this.render(t)}let o=e.element.classList;for(let e in this.it.forEach(e=>{e in t||(o.remove(e),this.it.delete(e))}),t){let r=!!t[e];r===this.it.has(e)||(null===(i=this.nt)||void 0===i?void 0:i.has(e))||(r?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return V}},(...e)=>({_$litDirective$:i,values:e}));var ef,eb,ey,ex,e$,eC=r(11481);let eA={duration:.3,delay:0,endDelay:0,repeat:0,easing:\"ease\"},e_={ms:e=>1e3*e,s:e=>e/1e3},eO=()=>{},eE=e=>e;function ek(e,t=!0){if(e&&\"finished\"!==e.playState)try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(e){}}let eI=e=>e(),eT=(e,t,r=eA.duration)=>new Proxy({animations:e.map(eI).filter(Boolean),duration:r,options:t},eM),eP=e=>e.animations[0],eM={get:(e,t)=>{let r=eP(e);switch(t){case\"duration\":return e.duration;case\"currentTime\":return e_.s((null==r?void 0:r[t])||0);case\"playbackRate\":case\"playState\":return null==r?void 0:r[t];case\"finished\":return e.finished||(e.finished=Promise.all(e.animations.map(eS)).catch(eO)),e.finished;case\"stop\":return()=>{e.animations.forEach(e=>ek(e))};case\"forEachNative\":return t=>{e.animations.forEach(r=>t(r,e))};default:return void 0===(null==r?void 0:r[t])?void 0:()=>e.animations.forEach(e=>e[t]())}},set:(e,t,r)=>{switch(t){case\"currentTime\":r=e_.ms(r);case\"playbackRate\":for(let i=0;i<e.animations.length;i++)e.animations[i][t]=r;return!0}return!1}},eS=e=>e.finished,eR=e=>\"object\"==typeof e&&!!e.createAnimation,eL=e=>\"number\"==typeof e,eW=e=>Array.isArray(e)&&!eL(e[0]),ej=(e,t,r)=>-r*e+r*t+e,eD=(e,t,r)=>t-e==0?1:(r-e)/(t-e);function eN(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let o=eD(0,t,i);e.push(ej(r,1,o))}}let eU=(e,t,r)=>{let i=t-e;return((r-e)%i+i)%i+e},ez=(e,t,r)=>Math.min(Math.max(r,e),t),eH=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eZ(e,t,r,i){if(e===t&&r===i)return eE;let o=t=>(function(e,t,r,i,o){let l,a;let n=0;do(l=eH(a=t+(r-t)/2,i,o)-e)>0?r=a:t=a;while(Math.abs(l)>1e-7&&++n<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:eH(o(e),t,i)}let eB=(e,t=\"end\")=>r=>{let i=(r=\"end\"===t?Math.min(r,.999):Math.max(r,.001))*e;return ez(0,1,(\"end\"===t?Math.floor(i):Math.ceil(i))/e)},eV=e=>\"function\"==typeof e,eq=e=>Array.isArray(e)&&eL(e[0]),eF={ease:eZ(.25,.1,.25,1),\"ease-in\":eZ(.42,0,1,1),\"ease-in-out\":eZ(.42,0,.58,1),\"ease-out\":eZ(0,0,.58,1)},eK=/\\((.*?)\\)/;function eQ(e){if(eV(e))return e;if(eq(e))return eZ(...e);let t=eF[e];if(t)return t;if(e.startsWith(\"steps\")){let t=eK.exec(e);if(t){let e=t[1].split(\",\");return eB(parseFloat(e[0]),e[1].trim())}}return eE}class eY{constructor(e,t=[0,1],{easing:r,duration:i=eA.duration,delay:o=eA.delay,endDelay:l=eA.endDelay,repeat:a=eA.repeat,offset:n,direction:s=\"normal\",autoplay:c=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=eE,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState=\"idle\",this.finished=new Promise((e,t)=>{this.resolve=e,this.reject=t}),eR(r=r||eA.easing)){let e=r.createAnimation(t);r=e.easing,t=e.keyframes||t,i=e.duration||i}this.repeat=a,this.easing=eW(r)?eE:eQ(r),this.updateDuration(i);let d=function(e,t=function(e){let t=[0];return eN(t,e-1),t}(e.length),r=eE){let i=e.length,o=i-t.length;return o>0&&eN(t,o),o=>{var l;let a=0;for(;a<i-2&&!(o<t[a+1]);a++);let n=ez(0,1,eD(t[a],t[a+1],o));return n=(l=a,eW(r)?r[eU(0,r.length,l)]:r)(n),ej(e[a],e[a+1],n)}}(t,n,eW(r)?r.map(eQ):eE);this.tick=t=>{var r;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-o,0),\"finished\"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);let a=i/this.duration,n=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&n--;let h=n%2;(\"reverse\"===s||\"alternate\"===s&&h||\"alternate-reverse\"===s&&!h)&&(c=1-c);let m=i>=this.totalDuration?1:Math.min(c,1),p=d(this.easing(m));e(p),void 0===this.pauseTime&&(\"finished\"===this.playState||i>=this.totalDuration+l)?(this.playState=\"finished\",null===(r=this.resolve)||void 0===r||r.call(this,p)):\"idle\"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},c&&this.play()}play(){let e=performance.now();this.playState=\"running\",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState=\"paused\",this.pauseTime=this.t}finish(){this.playState=\"finished\",this.tick(0)}stop(){var e;this.playState=\"idle\",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}var eG=function(){};class eX{setAnimation(e){this.animation=e,null==e||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}let eJ=new WeakMap;function e0(e){return eJ.has(e)||eJ.set(e,{transforms:[],values:new Map}),eJ.get(e)}let e1=[\"\",\"X\",\"Y\",\"Z\"],e2={x:\"translateX\",y:\"translateY\",z:\"translateZ\"},e5={syntax:\"<angle>\",initialValue:\"0deg\",toDefaultUnit:e=>e+\"deg\"},e3={translate:{syntax:\"<length-percentage>\",initialValue:\"0px\",toDefaultUnit:e=>e+\"px\"},rotate:e5,scale:{syntax:\"<number>\",initialValue:1,toDefaultUnit:eE},skew:e5},e4=new Map,e7=e=>`--motion-${e}`,e6=[\"x\",\"y\",\"z\"];[\"translate\",\"scale\",\"rotate\",\"skew\"].forEach(e=>{e1.forEach(t=>{e6.push(e+t),e4.set(e7(e+t),e3[e])})});let e8=(e,t)=>e6.indexOf(e)-e6.indexOf(t),e9=new Set(e6),te=e=>e9.has(e),tt=(e,t)=>{var r;e2[t]&&(t=e2[t]);let{transforms:i}=e0(e);r=t,-1===i.indexOf(r)&&i.push(r),e.style.transform=tr(i)},tr=e=>e.sort(e8).reduce(ti,\"\").trim(),ti=(e,t)=>`${e} ${t}(var(${e7(t)}))`,to=e=>e.startsWith(\"--\"),tl=new Set,ta=(e,t)=>document.createElement(\"div\").animate(e,t),tn={cssRegisterProperty:()=>\"undefined\"!=typeof CSS&&Object.hasOwnProperty.call(CSS,\"registerProperty\"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"),partialKeyframes:()=>{try{ta({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!ta({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{ta({opacity:0},{easing:\"linear(0, 1)\"})}catch(e){return!1}return!0}},ts={},tc={};for(let e in tn)tc[e]=()=>(void 0===ts[e]&&(ts[e]=tn[e]()),ts[e]);let td=(e,t)=>{let r=\"\",i=Math.round(t/.015);for(let t=0;t<i;t++)r+=e(eD(0,i-1,t))+\", \";return r.substring(0,r.length-2)},th=(e,t)=>eV(e)?tc.linearEasing()?`linear(${td(e,t)})`:eA.easing:eq(e)?tm(e):e,tm=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,tp=e=>Array.isArray(e)?e:[e];function tu(e){return e2[e]&&(e=e2[e]),te(e)?e7(e):e}let tw={get:(e,t)=>{let r=to(t=tu(t))?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&0!==r){let e=e4.get(t);e&&(r=e.initialValue)}return r},set:(e,t,r)=>{to(t=tu(t))?e.style.setProperty(t,r):e.style[t]=r}},tg=e=>\"string\"==typeof e,tv=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e),tf=function(e,t,r={}){var i,o,l;\"string\"==typeof(i=e)?i=document.querySelectorAll(i):i instanceof Element&&(i=[i]);let a=(e=Array.from(i||[])).length;eG(!!a,\"No valid element provided.\"),eG(!!t,\"No keyframes defined.\");let n=[];for(let i=0;i<a;i++){let s=e[i];for(let e in t){let c=tv(r,e);c.delay=(o=c.delay,l=i,eV(o)?o(l,a):o);let d=function(e,t,r,i={},o){var l;let a;let n=window.__MOTION_DEV_TOOLS_RECORD,s=!1!==i.record&&n,{duration:c=eA.duration,delay:d=eA.delay,endDelay:h=eA.endDelay,repeat:m=eA.repeat,easing:p=eA.easing,persist:u=!1,direction:w,offset:g,allowWebkitAcceleration:v=!1,autoplay:f=!0}=i,b=e0(e),y=te(t),x=tc.waapi();y&&tt(e,t);let $=tu(t),C=((l=b.values).has($)||l.set($,new eX),l.get($)),A=e4.get($);return ek(C.animation,!(eR(p)&&C.generator)&&!1!==i.record),()=>{let l=()=>{var t,r;return null!==(r=null!==(t=tw.get(e,$))&&void 0!==t?t:null==A?void 0:A.initialValue)&&void 0!==r?r:0},b=function(e,t){for(let r=0;r<e.length;r++)null===e[r]&&(e[r]=r?e[r-1]:t());return e}(tp(r),l),_=function(e,t){var r;let i=(null==t?void 0:t.toDefaultUnit)||eE,o=e[e.length-1];if(tg(o)){let e=(null===(r=o.match(/(-?[\\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||\"\";e&&(i=t=>t+e)}return i}(b,A);if(eR(p)){let e=p.createAnimation(b,\"opacity\"!==t,l,$,C);p=e.easing,b=e.keyframes||b,c=e.duration||c}if(to($)&&(tc.cssRegisterProperty()?function(e){if(!tl.has(e)){tl.add(e);try{let{syntax:t,initialValue:r}=e4.has(e)?e4.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch(e){}}}($):x=!1),y&&!tc.linearEasing()&&(eV(p)||eW(p)&&p.some(eV))&&(x=!1),x){A&&(b=b.map(e=>eL(e)?A.toDefaultUnit(e):e)),1===b.length&&(!tc.partialKeyframes()||s)&&b.unshift(l());let t={delay:e_.ms(d),duration:e_.ms(c),endDelay:e_.ms(h),easing:eW(p)?void 0:th(p,c),direction:w,iterations:m+1,fill:\"both\"};(a=e.animate({[$]:b,offset:g,easing:eW(p)?p.map(e=>th(e,c)):void 0},t)).finished||(a.finished=new Promise((e,t)=>{a.onfinish=e,a.oncancel=t}));let r=b[b.length-1];a.finished.then(()=>{u||(tw.set(e,$,r),a.cancel())}).catch(eO),v||(a.playbackRate=1.000001)}else if(o&&y)1===(b=b.map(e=>\"string\"==typeof e?parseFloat(e):e)).length&&b.unshift(parseFloat(l())),a=new o(t=>{tw.set(e,$,_?_(t):t)},b,Object.assign(Object.assign({},i),{duration:c,easing:p}));else{let t=b[b.length-1];tw.set(e,$,A&&eL(t)?A.toDefaultUnit(t):t)}return s&&n(e,t,b,{duration:c,delay:d,easing:p,repeat:m,offset:g},\"motion-one\"),C.setAnimation(a),a&&!f&&a.pause(),a}}(s,e,t[e],c,eY);n.push(d)}}return eT(n,r,r.duration)};function tb(e,t,r){return(eV(e)?function(e,t={}){return eT([()=>{let r=new eY(e,[0,1],t);return r.finished.catch(()=>{}),r}],t,t.duration)}:tf)(e,t,r)}/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let ty=e=>null!=e?e:q;var tx=r(19783),t$=Object.defineProperty,tC=Object.getOwnPropertySymbols,tA=Object.prototype.hasOwnProperty,t_=Object.prototype.propertyIsEnumerable,tO=(e,t,r)=>t in e?t$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tE=(e,t)=>{for(var r in t||(t={}))tA.call(t,r)&&tO(e,r,t[r]);if(tC)for(var r of tC(t))t_.call(t,r)&&tO(e,r,t[r]);return e};function tk(){return{\"--wcm-accent-color\":\"#3396FF\",\"--wcm-accent-fill-color\":\"#FFFFFF\",\"--wcm-z-index\":\"89\",\"--wcm-background-color\":\"#3396FF\",\"--wcm-background-border-radius\":\"8px\",\"--wcm-container-border-radius\":\"30px\",\"--wcm-wallet-icon-border-radius\":\"15px\",\"--wcm-wallet-icon-large-border-radius\":\"30px\",\"--wcm-wallet-icon-small-border-radius\":\"7px\",\"--wcm-input-border-radius\":\"28px\",\"--wcm-button-border-radius\":\"10px\",\"--wcm-notification-border-radius\":\"36px\",\"--wcm-secondary-button-border-radius\":\"28px\",\"--wcm-icon-button-border-radius\":\"50%\",\"--wcm-button-hover-highlight-border-radius\":\"10px\",\"--wcm-text-big-bold-size\":\"20px\",\"--wcm-text-big-bold-weight\":\"600\",\"--wcm-text-big-bold-line-height\":\"24px\",\"--wcm-text-big-bold-letter-spacing\":\"-0.03em\",\"--wcm-text-big-bold-text-transform\":\"none\",\"--wcm-text-xsmall-bold-size\":\"10px\",\"--wcm-text-xsmall-bold-weight\":\"700\",\"--wcm-text-xsmall-bold-line-height\":\"12px\",\"--wcm-text-xsmall-bold-letter-spacing\":\"0.02em\",\"--wcm-text-xsmall-bold-text-transform\":\"uppercase\",\"--wcm-text-xsmall-regular-size\":\"12px\",\"--wcm-text-xsmall-regular-weight\":\"600\",\"--wcm-text-xsmall-regular-line-height\":\"14px\",\"--wcm-text-xsmall-regular-letter-spacing\":\"-0.03em\",\"--wcm-text-xsmall-regular-text-transform\":\"none\",\"--wcm-text-small-thin-size\":\"14px\",\"--wcm-text-small-thin-weight\":\"500\",\"--wcm-text-small-thin-line-height\":\"16px\",\"--wcm-text-small-thin-letter-spacing\":\"-0.03em\",\"--wcm-text-small-thin-text-transform\":\"none\",\"--wcm-text-small-regular-size\":\"14px\",\"--wcm-text-small-regular-weight\":\"600\",\"--wcm-text-small-regular-line-height\":\"16px\",\"--wcm-text-small-regular-letter-spacing\":\"-0.03em\",\"--wcm-text-small-regular-text-transform\":\"none\",\"--wcm-text-medium-regular-size\":\"16px\",\"--wcm-text-medium-regular-weight\":\"600\",\"--wcm-text-medium-regular-line-height\":\"20px\",\"--wcm-text-medium-regular-letter-spacing\":\"-0.03em\",\"--wcm-text-medium-regular-text-transform\":\"none\",\"--wcm-font-family\":\"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif\",\"--wcm-font-feature-settings\":\"'tnum' on, 'lnum' on, 'case' on\",\"--wcm-success-color\":\"rgb(38,181,98)\",\"--wcm-error-color\":\"rgb(242, 90, 103)\",\"--wcm-overlay-background-color\":\"rgba(0, 0, 0, 0.3)\",\"--wcm-overlay-backdrop-filter\":\"none\"}}let tI={getPreset:e=>tk()[e],setTheme(){let e=document.querySelector(\":root\"),{themeVariables:t}=eC.ThemeCtrl.state;e&&Object.entries(tE(tE(tE({},function(){var e;let t={light:{foreground:{1:\"rgb(20,20,20)\",2:\"rgb(121,134,134)\",3:\"rgb(158,169,169)\"},background:{1:\"rgb(255,255,255)\",2:\"rgb(241,243,243)\",3:\"rgb(228,231,231)\"},overlay:\"rgba(0,0,0,0.1)\"},dark:{foreground:{1:\"rgb(228,231,231)\",2:\"rgb(148,158,158)\",3:\"rgb(110,119,119)\"},background:{1:\"rgb(20,20,20)\",2:\"rgb(39,42,42)\",3:\"rgb(59,64,64)\"},overlay:\"rgba(255,255,255,0.1)\"}}[null!=(e=eC.ThemeCtrl.state.themeMode)?e:\"dark\"];return{\"--wcm-color-fg-1\":t.foreground[1],\"--wcm-color-fg-2\":t.foreground[2],\"--wcm-color-fg-3\":t.foreground[3],\"--wcm-color-bg-1\":t.background[1],\"--wcm-color-bg-2\":t.background[2],\"--wcm-color-bg-3\":t.background[3],\"--wcm-color-overlay\":t.overlay}}()),tk()),t)).forEach(([t,r])=>e.style.setProperty(t,r))},globalCss:d`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},tT=d`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var tP=Object.defineProperty,tM=Object.getOwnPropertyDescriptor,tS=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?tM(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tP(t,r,l),l};let tR=class extends ec{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant=\"default\"}render(){let e={\"wcm-icon-left\":void 0!==this.iconLeft,\"wcm-icon-right\":void 0!==this.iconRight,\"wcm-ghost\":\"ghost\"===this.variant,\"wcm-outline\":\"outline\"===this.variant},t=\"inverse\";return\"ghost\"===this.variant&&(t=\"secondary\"),\"outline\"===this.variant&&(t=\"accent\"),Z`<button class=\"${ev(e)}\" ?disabled=\"${this.disabled}\" @click=\"${this.onClick}\">${this.iconLeft}<wcm-text variant=\"small-regular\" color=\"${t}\"><slot></slot></wcm-text>${this.iconRight}</button>`}};tR.styles=[tI.globalCss,tT],tS([eu({type:Boolean})],tR.prototype,\"disabled\",2),tS([eu()],tR.prototype,\"iconLeft\",2),tS([eu()],tR.prototype,\"iconRight\",2),tS([eu()],tR.prototype,\"onClick\",2),tS([eu()],tR.prototype,\"variant\",2),tR=tS([eh(\"wcm-button\")],tR);let tL=d`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var tW=Object.defineProperty,tj=Object.getOwnPropertyDescriptor,tD=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?tj(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tW(t,r,l),l};let tN=class extends ec{constructor(){super(...arguments),this.disabled=!1,this.variant=\"primary\"}render(){let e={\"wcm-secondary\":\"secondary\"===this.variant};return Z`<button ?disabled=\"${this.disabled}\" class=\"${ev(e)}\"><slot></slot></button>`}};tN.styles=[tI.globalCss,tL],tD([eu({type:Boolean})],tN.prototype,\"disabled\",2),tD([eu()],tN.prototype,\"variant\",2),tN=tD([eh(\"wcm-button-big\")],tN);let tU=d`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var tz=Object.defineProperty,tH=Object.getOwnPropertyDescriptor;let tZ=class extends ec{render(){return Z`<div><slot></slot></div>`}};tZ.styles=[tI.globalCss,tU],tZ=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tH(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tz(t,r,l),l})([eh(\"wcm-info-footer\")],tZ);let tB={CROSS_ICON:B`<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><path d=\"M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z\" fill=\"#fff\"/></svg>`,WALLET_CONNECT_LOGO:B`<svg width=\"178\" height=\"29\" viewBox=\"0 0 178 29\" id=\"wcm-wc-logo\"><path d=\"M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z\" fill=\"#fff\"/></svg>`,WALLET_CONNECT_ICON:B`<svg width=\"28\" height=\"20\" viewBox=\"0 0 28 20\"><g clip-path=\"url(#a)\"><path d=\"M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z\" fill=\"#000000\"/></g><defs><clipPath id=\"a\"><path fill=\"#ffffff\" d=\"M0 0h28v20H0z\"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:B`<svg width=\"96\" height=\"96\" fill=\"none\"><path fill=\"#fff\" d=\"M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z\"/><path stroke=\"#000\" d=\"M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z\"/></svg>`,BACK_ICON:B`<svg width=\"10\" height=\"18\" viewBox=\"0 0 10 18\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z\" fill=\"#fff\"/></svg>`,COPY_ICON:B`<svg width=\"24\" height=\"24\" fill=\"none\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z\" clip-rule=\"evenodd\"/></svg>`,RETRY_ICON:B`<svg width=\"15\" height=\"16\" viewBox=\"0 0 15 16\"><path d=\"M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z\" fill=\"#fff\"/></svg>`,DESKTOP_ICON:B`<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z\" fill=\"#fff\"/><path d=\"M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z\" fill=\"#fff\"/></svg>`,MOBILE_ICON:B`<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z\" fill=\"#fff\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z\" fill=\"#fff\"/></svg>`,ARROW_DOWN_ICON:B`<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><path d=\"M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z\" fill=\"#fff\"/></svg>`,ARROW_UP_RIGHT_ICON:B`<svg width=\"15\" height=\"14\" fill=\"none\"><path d=\"M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z\" fill=\"#fff\"/></svg>`,ARROW_RIGHT_ICON:B`<svg width=\"6\" height=\"14\" viewBox=\"0 0 6 14\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z\" fill=\"#fff\"/></svg>`,QRCODE_ICON:B`<svg width=\"25\" height=\"24\" viewBox=\"0 0 25 24\"><path d=\"M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z\" fill=\"#fff\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z\" fill=\"#fff\"/><path d=\"M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z\" fill=\"#fff\"/></svg>`,SCAN_ICON:B`<svg width=\"16\" height=\"16\" fill=\"none\"><path fill=\"#fff\" d=\"M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z\"/></svg>`,CHECKMARK_ICON:B`<svg width=\"13\" height=\"12\" viewBox=\"0 0 13 12\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z\" fill=\"#fff\"/></svg>`,SEARCH_ICON:B`<svg width=\"20\" height=\"21\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z\" fill=\"#949E9E\"/></svg>`,WALLET_PLACEHOLDER:B`<svg width=\"60\" height=\"60\" fill=\"none\" viewBox=\"0 0 60 60\"><g clip-path=\"url(#q)\"><path id=\"wallet-placeholder-fill\" fill=\"#fff\" d=\"M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z\"/><path id=\"wallet-placeholder-dash\" stroke=\"#000\" stroke-dasharray=\"4 4\" stroke-width=\"1.5\" d=\"M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z\"/><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z\" clip-rule=\"evenodd\"/><path fill=\"#9EA9A9\" fill-rule=\"evenodd\" d=\"M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z\" clip-rule=\"evenodd\"/></g><defs><clipPath id=\"q\"><path fill=\"#fff\" d=\"M0 0h60v60H0z\"/></clipPath></defs></svg>`,GLOBE_ICON:B`<svg width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z\" clip-rule=\"evenodd\"/></svg>`},tV=d`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var tq=Object.defineProperty,tF=Object.getOwnPropertyDescriptor;let tK=class extends ec{render(){return Z`<div class=\"wcm-toolbar-placeholder\"></div><div class=\"wcm-toolbar\">${tB.WALLET_CONNECT_LOGO} <button @click=\"${eC.jb.close}\">${tB.CROSS_ICON}</button></div>`}};tK.styles=[tI.globalCss,tV],tK=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tF(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tq(t,r,l),l})([eh(\"wcm-modal-backcard\")],tK);let tQ=d`main{padding:20px;padding-top:0;width:100%}`;var tY=Object.defineProperty,tG=Object.getOwnPropertyDescriptor;let tX=class extends ec{render(){return Z`<main><slot></slot></main>`}};tX.styles=[tI.globalCss,tQ],tX=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tG(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tY(t,r,l),l})([eh(\"wcm-modal-content\")],tX);let tJ=d`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var t0=Object.defineProperty,t1=Object.getOwnPropertyDescriptor;let t2=class extends ec{render(){return Z`<footer><slot></slot></footer>`}};t2.styles=[tI.globalCss,tJ],t2=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?t1(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&t0(t,r,l),l})([eh(\"wcm-modal-footer\")],t2);let t5=d`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var t3=Object.defineProperty,t4=Object.getOwnPropertyDescriptor,t7=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?t4(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&t3(t,r,l),l};let t6=class extends ec{constructor(){super(...arguments),this.title=\"\",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return Z`<button class=\"wcm-back-btn\" @click=\"${eC.AV.goBack}\">${tB.BACK_ICON}</button>`}actionBtnTemplate(){return Z`<button class=\"wcm-action-btn\" @click=\"${this.onAction}\">${this.actionIcon}</button>`}render(){let e={\"wcm-border\":this.border},t=eC.AV.state.history.length>1,r=this.title?Z`<wcm-text variant=\"big-bold\">${this.title}</wcm-text>`:Z`<slot></slot>`;return Z`<header class=\"${ev(e)}\">${t?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}</header>`}};t6.styles=[tI.globalCss,t5],t7([eu()],t6.prototype,\"title\",2),t7([eu()],t6.prototype,\"onAction\",2),t7([eu()],t6.prototype,\"actionIcon\",2),t7([eu({type:Boolean})],t6.prototype,\"border\",2),t6=t7([eh(\"wcm-modal-header\")],t6);let t8={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:\"WCM_RECENT_WALLET_DATA\",EXPLORER_WALLET_URL:\"https://explorer.walletconnect.com/?type=wallet\",getShadowRootElement(e,t){let r=e.renderRoot.querySelector(t);if(!r)throw Error(`${t} not found`);return r},getWalletIcon({id:e,image_id:t}){let{walletImages:r}=eC.ConfigCtrl.state;return null!=r&&r[e]?r[e]:t?eC.ExplorerCtrl.getWalletImageUrl(t):\"\"},getWalletName:(e,t=!1)=>t&&e.length>8?`${e.substring(0,8)}..`:e,isMobileAnimation:()=>window.innerWidth<=t8.MOBILE_BREAKPOINT,preloadImage:async e=>Promise.race([new Promise((t,r)=>{let i=new Image;i.onload=t,i.onerror=r,i.crossOrigin=\"anonymous\",i.src=e}),eC.zv.wait(3e3)]),getErrorMessage:e=>e instanceof Error?e.message:\"Unknown Error\",debounce(e,t=500){let r;return(...i)=>{r&&clearTimeout(r),r=setTimeout(function(){e(...i)},t)}},handleMobileLinking(e){let t;let{walletConnectUri:r}=eC.OptionsCtrl.state,{mobile:i,name:o}=e,l=i?.native,a=i?.universal;t8.setRecentWallet(e),r&&(t=\"\",l?t=eC.zv.formatUniversalUrl(l,r,o):a&&(t=eC.zv.formatNativeUrl(a,r,o)),eC.zv.openHref(t,\"_self\"))},handleAndroidLinking(){let{walletConnectUri:e}=eC.OptionsCtrl.state;e&&(eC.zv.setWalletConnectAndroidDeepLink(e),eC.zv.openHref(e,\"_self\"))},async handleUriCopy(){let{walletConnectUri:e}=eC.OptionsCtrl.state;if(e)try{await navigator.clipboard.writeText(e),eC.ToastCtrl.openToast(\"Link copied\",\"success\")}catch{eC.ToastCtrl.openToast(\"Failed to copy\",\"error\")}},getCustomImageUrls(){let{walletImages:e}=eC.ConfigCtrl.state;return Object.values(Object.values(e??{}))},truncate:(e,t=8)=>e.length<=t?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`,setRecentWallet(e){try{localStorage.setItem(t8.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info(\"Unable to set recent wallet\")}},getRecentWallet(){try{let e=localStorage.getItem(t8.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info(\"Unable to get recent wallet\")}},caseSafeIncludes:(e,t)=>e.toUpperCase().includes(t.toUpperCase()),openWalletExplorerUrl(){eC.zv.openHref(t8.EXPLORER_WALLET_URL,\"_blank\")},getCachedRouterWalletPlatforms(){let{desktop:e,mobile:t}=eC.zv.getWalletRouterData(),r=!!e?.native,i=!!e?.universal;return{isDesktop:r,isMobile:!!t?.native||!!t?.universal,isWeb:i}},goToConnectingView(e){eC.AV.setData({Wallet:e});let t=eC.zv.isMobile(),{isDesktop:r,isWeb:i,isMobile:o}=t8.getCachedRouterWalletPlatforms();t?o?eC.AV.push(\"MobileConnecting\"):i?eC.AV.push(\"WebConnecting\"):eC.AV.push(\"InstallWallet\"):r?eC.AV.push(\"DesktopConnecting\"):i?eC.AV.push(\"WebConnecting\"):o?eC.AV.push(\"MobileQrcodeConnecting\"):eC.AV.push(\"InstallWallet\")}},t9=d`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var re=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,rr=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rt(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&re(t,r,l),l};let ri=class extends ec{constructor(){super(),this.view=eC.AV.state.view,this.prevView=eC.AV.state.view,this.unsubscribe=void 0,this.oldHeight=\"0px\",this.resizeObserver=void 0,this.unsubscribe=eC.AV.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e.contentRect.height}px`;\"0px\"!==this.oldHeight&&tb(this.routerEl,{height:[this.oldHeight,t]},{duration:.2}),this.oldHeight=t}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,t;null==(e=this.unsubscribe)||e.call(this),null==(t=this.resizeObserver)||t.disconnect()}get routerEl(){return t8.getShadowRootElement(this,\".wcm-router\")}get contentEl(){return t8.getShadowRootElement(this,\".wcm-content\")}viewTemplate(){switch(this.view){case\"ConnectWallet\":return Z`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case\"DesktopConnecting\":return Z`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case\"MobileConnecting\":return Z`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case\"WebConnecting\":return Z`<wcm-web-connecting-view></wcm-web-connecting-view>`;case\"MobileQrcodeConnecting\":return Z`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case\"WalletExplorer\":return Z`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case\"Qrcode\":return Z`<wcm-qrcode-view></wcm-qrcode-view>`;case\"InstallWallet\":return Z`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return Z`<div>Not Found</div>`}}async onChangeRoute(){await tb(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=eC.AV.state.view,tb(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return Z`<div class=\"wcm-router\"><div class=\"wcm-content\">${this.viewTemplate()}</div></div>`}};ri.styles=[tI.globalCss,t9],rr([ew()],ri.prototype,\"view\",2),rr([ew()],ri.prototype,\"prevView\",2),ri=rr([eh(\"wcm-modal-router\")],ri);let ro=d`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var rl=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,rn=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?ra(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rl(t,r,l),l};let rs=class extends ec{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=eC.ToastCtrl.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>eC.ToastCtrl.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;null==(e=this.unsubscribe)||e.call(this),clearTimeout(this.timeout),eC.ToastCtrl.closeToast()}render(){let{message:e,variant:t}=eC.ToastCtrl.state;return this.open?Z`<div class=\"${ev({\"wcm-success\":\"success\"===t,\"wcm-error\":\"error\"===t})}\">${\"success\"===t?tB.CHECKMARK_ICON:null} ${\"error\"===t?tB.CROSS_ICON:null}<wcm-text variant=\"small-regular\">${e}</wcm-text></div>`:null}};function rc(e,t,r){return e!==t&&(e-t<0?t-e:e-t)<=r+.1}rs.styles=[tI.globalCss,ro],rn([ew()],rs.prototype,\"open\",2),rs=rn([eh(\"wcm-modal-toast\")],rs);let rd={generate(e,t,r){let i=\"#141414\",o=[],l=function(e,t){let r=Array.prototype.slice.call(tx.create(e,{errorCorrectionLevel:\"Q\"}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((e,t,r)=>(r%i==0?e.push([t]):e[e.length-1].push(t))&&e,[])}(e,0),a=t/l.length,n=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];n.forEach(({x:e,y:t})=>{let r=(l.length-7)*a*e,s=(l.length-7)*a*t;for(let e=0;e<n.length;e+=1){let t=a*(7-2*e);o.push(B`<rect fill=\"${e%2==0?i:\"#ffffff\"}\" height=\"${t}\" rx=\"${.45*t}\" ry=\"${.45*t}\" width=\"${t}\" x=\"${r+a*e}\" y=\"${s+a*e}\">`)}});let s=Math.floor((r+25)/a),c=l.length/2-s/2,d=l.length/2+s/2-1,h=[];l.forEach((e,t)=>{e.forEach((e,r)=>{!l[t][r]||t<7&&r<7||t>l.length-8&&r<7||t<7&&r>l.length-8||t>c&&t<d&&r>c&&r<d||h.push([t*a+a/2,r*a+a/2])})});let m={};return h.forEach(([e,t])=>{m[e]?m[e].push(t):m[e]=[t]}),Object.entries(m).map(([e,t])=>{let r=t.filter(e=>t.every(t=>!rc(e,t,a)));return[Number(e),r]}).forEach(([e,t])=>{t.forEach(t=>{o.push(B`<circle cx=\"${e}\" cy=\"${t}\" fill=\"${i}\" r=\"${a/2.5}\">`)})}),Object.entries(m).filter(([e,t])=>t.length>1).map(([e,t])=>{let r=t.filter(e=>t.some(t=>rc(e,t,a)));return[Number(e),r]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let r=[];for(let e of t){let t=r.find(t=>t.some(t=>rc(e,t,a)));t?t.push(e):r.push([e])}return[e,r.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,r])=>{o.push(B`<line x1=\"${e}\" x2=\"${e}\" y1=\"${t}\" y2=\"${r}\" stroke=\"${i}\" stroke-width=\"${a/1.25}\" stroke-linecap=\"round\">`)})}),o}},rh=d`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var rm=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,ru=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rp(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rm(t,r,l),l};let rw=class extends ec{constructor(){super(...arguments),this.uri=\"\",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){let e=\"light\"===eC.ThemeCtrl.state.themeMode?this.size:this.size-36;return B`<svg height=\"${e}\" width=\"${e}\">${rd.generate(this.uri,e,e/4)}</svg>`}render(){let e={\"wcm-dark\":\"dark\"===eC.ThemeCtrl.state.themeMode};return Z`<div style=\"${`width: ${this.size}px`}\" class=\"${ev(e)}\">${this.walletId||this.imageUrl?Z`<wcm-wallet-image walletId=\"${ty(this.walletId)}\" imageId=\"${ty(this.imageId)}\" imageUrl=\"${ty(this.imageUrl)}\"></wcm-wallet-image>`:tB.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};rw.styles=[tI.globalCss,rh],ru([eu()],rw.prototype,\"uri\",2),ru([eu({type:Number})],rw.prototype,\"size\",2),ru([eu()],rw.prototype,\"imageId\",2),ru([eu()],rw.prototype,\"walletId\",2),ru([eu()],rw.prototype,\"imageUrl\",2),rw=ru([eh(\"wcm-qrcode\")],rw);let rg=d`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var rv=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,rb=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rf(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rv(t,r,l),l};let ry=class extends ec{constructor(){super(...arguments),this.onChange=()=>null}render(){return Z`<input type=\"text\" @input=\"${this.onChange}\" placeholder=\"Search wallets\"> ${tB.SEARCH_ICON}`}};ry.styles=[tI.globalCss,rg],rb([eu()],ry.prototype,\"onChange\",2),ry=rb([eh(\"wcm-search-input\")],ry);let rx=d`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var r$=Object.defineProperty,rC=Object.getOwnPropertyDescriptor;let rA=class extends ec{render(){return Z`<svg viewBox=\"0 0 50 50\" width=\"24\" height=\"24\"><circle cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\" stroke=\"#fff\"/></svg>`}};rA.styles=[tI.globalCss,rx],rA=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?rC(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&r$(t,r,l),l})([eh(\"wcm-spinner\")],rA);let r_=d`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var rO=Object.defineProperty,rE=Object.getOwnPropertyDescriptor,rk=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rE(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rO(t,r,l),l};let rI=class extends ec{constructor(){super(...arguments),this.variant=\"medium-regular\",this.color=\"primary\"}render(){let e={\"wcm-big-bold\":\"big-bold\"===this.variant,\"wcm-medium-regular\":\"medium-regular\"===this.variant,\"wcm-small-regular\":\"small-regular\"===this.variant,\"wcm-small-thin\":\"small-thin\"===this.variant,\"wcm-xsmall-regular\":\"xsmall-regular\"===this.variant,\"wcm-xsmall-bold\":\"xsmall-bold\"===this.variant,\"wcm-color-primary\":\"primary\"===this.color,\"wcm-color-secondary\":\"secondary\"===this.color,\"wcm-color-tertiary\":\"tertiary\"===this.color,\"wcm-color-inverse\":\"inverse\"===this.color,\"wcm-color-accnt\":\"accent\"===this.color,\"wcm-color-error\":\"error\"===this.color};return Z`<span><slot class=\"${ev(e)}\"></slot></span>`}};rI.styles=[tI.globalCss,r_],rk([eu()],rI.prototype,\"variant\",2),rk([eu()],rI.prototype,\"color\",2),rI=rk([eh(\"wcm-text\")],rI);let rT=d`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var rP=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,rS=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rM(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rP(t,r,l),l};let rR=class extends ec{constructor(){super(...arguments),this.onClick=()=>null,this.name=\"\",this.walletId=\"\",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?Z`<wcm-text class=\"wcm-sublabel\" variant=\"xsmall-bold\" color=\"tertiary\">RECENT</wcm-text>`:this.installed?Z`<wcm-text class=\"wcm-sublabel\" variant=\"xsmall-bold\" color=\"tertiary\">INSTALLED</wcm-text>`:null}handleClick(){eC.uA.click({name:\"WALLET_BUTTON\",walletId:this.walletId}),this.onClick()}render(){var e;return Z`<button @click=\"${this.handleClick.bind(this)}\"><div><wcm-wallet-image walletId=\"${this.walletId}\" imageId=\"${ty(this.imageId)}\"></wcm-wallet-image><wcm-text variant=\"xsmall-regular\">${null!=(e=this.label)?e:t8.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};rR.styles=[tI.globalCss,rT],rS([eu()],rR.prototype,\"onClick\",2),rS([eu()],rR.prototype,\"name\",2),rS([eu()],rR.prototype,\"walletId\",2),rS([eu()],rR.prototype,\"label\",2),rS([eu()],rR.prototype,\"imageId\",2),rS([eu({type:Boolean})],rR.prototype,\"installed\",2),rS([eu({type:Boolean})],rR.prototype,\"recent\",2),rR=rS([eh(\"wcm-wallet-button\")],rR);let rL=d`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var rW=Object.defineProperty,rj=Object.getOwnPropertyDescriptor,rD=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rj(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rW(t,r,l),l};let rN=class extends ec{constructor(){super(...arguments),this.walletId=\"\",this.imageId=void 0,this.imageUrl=void 0}render(){var e;let t=null!=(e=this.imageUrl)&&e.length?this.imageUrl:t8.getWalletIcon({id:this.walletId,image_id:this.imageId});return Z`${t.length?Z`<div><img crossorigin=\"anonymous\" src=\"${t}\" alt=\"${this.id}\"></div>`:tB.WALLET_PLACEHOLDER}`}};rN.styles=[tI.globalCss,rL],rD([eu()],rN.prototype,\"walletId\",2),rD([eu()],rN.prototype,\"imageId\",2),rD([eu()],rN.prototype,\"imageUrl\",2),rN=rD([eh(\"wcm-wallet-image\")],rN);var rU=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,rH=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rz(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rU(t,r,l),l};let rZ=class extends ec{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map(async e=>t8.preloadImage(e)))}catch{console.info(\"Unsuccessful attempt at preloading some images\",e)}}async preloadListings(){if(eC.ConfigCtrl.state.enableExplorer){await eC.ExplorerCtrl.getRecomendedWallets(),eC.OptionsCtrl.setIsDataLoaded(!0);let{recomendedWallets:e}=eC.ExplorerCtrl.state,t=e.map(e=>t8.getWalletIcon(e));await this.loadImages(t)}else eC.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){let e=t8.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),eC.ToastCtrl.openToast(\"Failed preloading\",\"error\")}}};rH([ew()],rZ.prototype,\"preload\",2),rZ=rH([eh(\"wcm-explorer-context\")],rZ);var rB=Object.defineProperty,rV=Object.getOwnPropertyDescriptor;let rq=class extends ec{constructor(){super(),this.unsubscribeTheme=void 0,tI.setTheme(),this.unsubscribeTheme=eC.ThemeCtrl.subscribe(tI.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};rq=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?rV(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rB(t,r,l),l})([eh(\"wcm-theme-context\")],rq);let rF=d`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var rK=Object.defineProperty,rQ=Object.getOwnPropertyDescriptor;let rY=class extends ec{onGoToQrcode(){eC.AV.push(\"Qrcode\")}render(){let{recomendedWallets:e}=eC.ExplorerCtrl.state,t=[...e,...e],r=2*eC.zv.RECOMMENDED_WALLET_AMOUNT;return Z`<wcm-modal-header title=\"Connect your wallet\" .onAction=\"${this.onGoToQrcode}\" .actionIcon=\"${tB.QRCODE_ICON}\"></wcm-modal-header><wcm-modal-content><div class=\"wcm-title\">${tB.MOBILE_ICON}<wcm-text variant=\"small-regular\" color=\"accent\">WalletConnect</wcm-text></div><div class=\"wcm-slider\"><div class=\"wcm-track\">${[...Array(r)].map((e,r)=>{let i=t[r%t.length];return i?Z`<wcm-wallet-image walletId=\"${i.id}\" imageId=\"${i.image_id}\"></wcm-wallet-image>`:tB.WALLET_PLACEHOLDER})}</div><wcm-button-big @click=\"${t8.handleAndroidLinking}\"><wcm-text variant=\"medium-regular\" color=\"inverse\">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};rY.styles=[tI.globalCss,rF],rY=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?rQ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rK(t,r,l),l})([eh(\"wcm-android-wallet-selection\")],rY);let rG=d`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var rX=Object.defineProperty,rJ=Object.getOwnPropertyDescriptor,r0=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rJ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rX(t,r,l),l};let r1=class extends ec{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=\"\"}svgLoaderTemplate(){var e,t;let r=null!=(t=null==(e=eC.ThemeCtrl.state.themeVariables)?void 0:e[\"--wcm-wallet-icon-large-border-radius\"])?t:tI.getPreset(\"--wcm-wallet-icon-large-border-radius\"),i=0,o=317-1.57*(i=(r.includes(\"%\")?.88*parseInt(r,10):parseInt(r,10))*1.17),l=425-1.8*i;return Z`<svg viewBox=\"0 0 110 110\" width=\"110\" height=\"110\"><rect id=\"wcm-loader\" x=\"2\" y=\"2\" width=\"106\" height=\"106\" rx=\"${i}\"/><use xlink:href=\"#wcm-loader\" stroke-dasharray=\"106 ${o}\" stroke-dashoffset=\"${l}\"></use></svg>`}render(){let e={\"wcm-error\":this.isError,\"wcm-stale\":this.isStale};return Z`<div class=\"${ev(e)}\">${this.svgLoaderTemplate()}<wcm-wallet-image walletId=\"${ty(this.walletId)}\" imageId=\"${ty(this.imageId)}\"></wcm-wallet-image></div><wcm-text variant=\"medium-regular\" color=\"${this.isError?\"error\":\"primary\"}\">${this.isError?\"Connection declined\":this.label}</wcm-text>`}};r1.styles=[tI.globalCss,rG],r0([eu()],r1.prototype,\"walletId\",2),r0([eu()],r1.prototype,\"imageId\",2),r0([eu({type:Boolean})],r1.prototype,\"isError\",2),r0([eu({type:Boolean})],r1.prototype,\"isStale\",2),r0([eu()],r1.prototype,\"label\",2),r1=r0([eh(\"wcm-connector-waiting\")],r1);let r2={manualWallets(){var e,t;let{mobileWallets:r,desktopWallets:i}=eC.ConfigCtrl.state,o=null==(e=r2.recentWallet())?void 0:e.id,l=eC.zv.isMobile()?r:i,a=l?.filter(e=>o!==e.id);return null!=(t=eC.zv.isMobile()?a?.map(({id:e,name:t,links:r})=>({id:e,name:t,mobile:r,links:r})):a?.map(({id:e,name:t,links:r})=>({id:e,name:t,desktop:r,links:r})))?t:[]},recentWallet:()=>t8.getRecentWallet(),recomendedWallets(e=!1){var t;let r=e||null==(t=r2.recentWallet())?void 0:t.id,{recomendedWallets:i}=eC.ExplorerCtrl.state;return i.filter(e=>r!==e.id)}},r5={onConnecting(e){t8.goToConnectingView(e)},manualWalletsTemplate(){return r2.manualWallets().map(e=>Z`<wcm-wallet-button walletId=\"${e.id}\" name=\"${e.name}\" .onClick=\"${()=>this.onConnecting(e)}\"></wcm-wallet-button>`)},recomendedWalletsTemplate(e=!1){return r2.recomendedWallets(e).map(e=>Z`<wcm-wallet-button name=\"${e.name}\" walletId=\"${e.id}\" imageId=\"${e.image_id}\" .onClick=\"${()=>this.onConnecting(e)}\"></wcm-wallet-button>`)},recentWalletTemplate(){let e=r2.recentWallet();if(e)return Z`<wcm-wallet-button name=\"${e.name}\" walletId=\"${e.id}\" imageId=\"${ty(e.image_id)}\" .recent=\"${!0}\" .onClick=\"${()=>this.onConnecting(e)}\"></wcm-wallet-button>`}},r3=d`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var r4=Object.defineProperty,r7=Object.getOwnPropertyDescriptor;let r6=class extends ec{render(){let{explorerExcludedWalletIds:e,enableExplorer:t}=eC.ConfigCtrl.state,r=r5.manualWalletsTemplate(),i=r5.recomendedWalletsTemplate(),o=[r5.recentWalletTemplate(),...r,...i],l=(o=o.filter(Boolean)).length>4||\"ALL\"!==e&&t,a=[],n=!!(a=l?o.slice(0,3):o).length;return Z`<wcm-modal-header .border=\"${!0}\" title=\"Connect your wallet\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><div class=\"wcm-mobile-title\"><div class=\"wcm-subtitle\">${tB.MOBILE_ICON}<wcm-text variant=\"small-regular\" color=\"accent\">Mobile</wcm-text></div><div class=\"wcm-subtitle\">${tB.SCAN_ICON}<wcm-text variant=\"small-regular\" color=\"secondary\">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${n?Z`<wcm-modal-footer><div class=\"wcm-desktop-title\">${tB.DESKTOP_ICON}<wcm-text variant=\"small-regular\" color=\"accent\">Desktop</wcm-text></div><div class=\"wcm-grid\">${a} ${l?Z`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};r6.styles=[tI.globalCss,r3],r6=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?r7(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&r4(t,r,l),l})([eh(\"wcm-desktop-wallet-selection\")],r6);let r8=d`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var r9=Object.defineProperty,ie=Object.getOwnPropertyDescriptor;let it=class extends ec{render(){let{termsOfServiceUrl:e,privacyPolicyUrl:t}=eC.ConfigCtrl.state;return e??t?Z`<div><wcm-text variant=\"small-regular\" color=\"secondary\">By connecting your wallet to this app, you agree to the app's ${e?Z`<a href=\"${e}\" target=\"_blank\" rel=\"noopener noreferrer\">Terms of Service</a>`:null} ${e&&t?\"and\":null} ${t?Z`<a href=\"${t}\" target=\"_blank\" rel=\"noopener noreferrer\">Privacy Policy</a>`:null}</wcm-text></div>`:null}};it.styles=[tI.globalCss,r8],it=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?ie(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&r9(t,r,l),l})([eh(\"wcm-legal-notice\")],it);let ir=d`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var ii=Object.defineProperty,io=Object.getOwnPropertyDescriptor;let il=class extends ec{onQrcode(){eC.AV.push(\"Qrcode\")}render(){let{explorerExcludedWalletIds:e,enableExplorer:t}=eC.ConfigCtrl.state,r=r5.manualWalletsTemplate(),i=r5.recomendedWalletsTemplate(),o=[r5.recentWalletTemplate(),...r,...i],l=(o=o.filter(Boolean)).length>8||\"ALL\"!==e&&t,a=[],n=!!(a=l?o.slice(0,7):o).length;return Z`<wcm-modal-header title=\"Connect your wallet\" .onAction=\"${this.onQrcode}\" .actionIcon=\"${tB.QRCODE_ICON}\"></wcm-modal-header>${n?Z`<wcm-modal-content><div>${a} ${l?Z`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};il.styles=[tI.globalCss,ir],il=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?io(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&ii(t,r,l),l})([eh(\"wcm-mobile-wallet-selection\")],il);let ia=d`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var is=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,id=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?ic(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&is(t,r,l),l};let ih=class extends ec{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=eC.jb.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return t8.getShadowRootElement(this,\".wcm-overlay\")}get containerEl(){return t8.getShadowRootElement(this,\".wcm-container\")}toggleBodyScroll(e){if(document.querySelector(\"body\")){if(e){let e=document.getElementById(\"wcm-styles\");e?.remove()}else document.head.insertAdjacentHTML(\"beforeend\",'<style id=\"wcm-styles\">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>')}}onCloseModal(e){e.target===e.currentTarget&&eC.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{let e=t8.isMobileAnimation()?{y:[\"50vh\",\"0vh\"]}:{scale:[.98,1]};await Promise.all([tb(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,tb(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();let e=t8.isMobileAnimation()?{y:[\"0vh\",\"50vh\"]}:{scale:[1,.98]};await Promise.all([tb(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,tb(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute(\"style\"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener(\"keydown\",e=>{var t;\"Escape\"===e.key?eC.jb.close():\"Tab\"===e.key&&(null!=(t=e.target)&&t.tagName.includes(\"wcm-\")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){let e={\"wcm-overlay\":!0,\"wcm-active\":this.active};return Z`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id=\"wcm-modal\" class=\"${ev(e)}\" @click=\"${this.onCloseModal}\" role=\"alertdialog\" aria-modal=\"true\"><div class=\"wcm-container\" tabindex=\"0\">${this.open?Z`<wcm-modal-backcard></wcm-modal-backcard><div class=\"wcm-card\"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};ih.styles=[tI.globalCss,ia],id([ew()],ih.prototype,\"open\",2),id([ew()],ih.prototype,\"active\",2),ih=id([eh(\"wcm-modal\")],ih);let im=d`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var ip=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,iw=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iu(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&ip(t,r,l),l};let ig=class extends ec{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){eC.zv.isMobile()?eC.AV.replace(\"MobileConnecting\"):eC.AV.replace(\"MobileQrcodeConnecting\")}onDesktop(){eC.AV.replace(\"DesktopConnecting\")}onWeb(){eC.AV.replace(\"WebConnecting\")}render(){return Z`<div>${this.isRetry?Z`<slot></slot>`:null} ${this.isMobile?Z`<wcm-button .onClick=\"${this.onMobile}\" .iconLeft=\"${tB.MOBILE_ICON}\" variant=\"outline\">Mobile</wcm-button>`:null} ${this.isDesktop?Z`<wcm-button .onClick=\"${this.onDesktop}\" .iconLeft=\"${tB.DESKTOP_ICON}\" variant=\"outline\">Desktop</wcm-button>`:null} ${this.isWeb?Z`<wcm-button .onClick=\"${this.onWeb}\" .iconLeft=\"${tB.GLOBE_ICON}\" variant=\"outline\">Web</wcm-button>`:null}</div>`}};ig.styles=[tI.globalCss,im],iw([eu({type:Boolean})],ig.prototype,\"isMobile\",2),iw([eu({type:Boolean})],ig.prototype,\"isDesktop\",2),iw([eu({type:Boolean})],ig.prototype,\"isWeb\",2),iw([eu({type:Boolean})],ig.prototype,\"isRetry\",2),ig=iw([eh(\"wcm-platform-selection\")],ig);let iv=d`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var ib=Object.defineProperty,iy=Object.getOwnPropertyDescriptor;let ix=class extends ec{onClick(){eC.AV.push(\"WalletExplorer\")}render(){let{recomendedWallets:e}=eC.ExplorerCtrl.state,t=[...e,...r2.manualWallets()].reverse().slice(0,4);return Z`<button @click=\"${this.onClick}\"><div class=\"wcm-icons\">${t.map(e=>{let t=t8.getWalletIcon(e);if(t)return Z`<img crossorigin=\"anonymous\" src=\"${t}\">`;let r=t8.getWalletIcon({id:e.id});return r?Z`<img crossorigin=\"anonymous\" src=\"${r}\">`:tB.WALLET_PLACEHOLDER})} ${[...Array(4-t.length)].map(()=>tB.WALLET_PLACEHOLDER)}</div><wcm-text variant=\"xsmall-regular\">View All</wcm-text></button>`}};ix.styles=[tI.globalCss,iv],ix=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?iy(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&ib(t,r,l),l})([eh(\"wcm-view-all-wallets-button\")],ix);let i$=d`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var iC=Object.defineProperty,iA=Object.getOwnPropertyDescriptor,i_=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iA(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iC(t,r,l),l};let iO=class extends ec{constructor(){super(),this.walletId=\"\",this.imageId=\"\",this.uri=\"\",setTimeout(()=>{let{walletConnectUri:e}=eC.OptionsCtrl.state;this.uri=e},0)}get overlayEl(){return t8.getShadowRootElement(this,\".wcm-qr-container\")}render(){return Z`<div class=\"wcm-qr-container\">${this.uri?Z`<wcm-qrcode size=\"${this.overlayEl.offsetWidth}\" uri=\"${this.uri}\" walletId=\"${ty(this.walletId)}\" imageId=\"${ty(this.imageId)}\"></wcm-qrcode>`:Z`<wcm-spinner></wcm-spinner>`}</div>`}};iO.styles=[tI.globalCss,i$],i_([eu()],iO.prototype,\"walletId\",2),i_([eu()],iO.prototype,\"imageId\",2),i_([ew()],iO.prototype,\"uri\",2),iO=i_([eh(\"wcm-walletconnect-qr\")],iO);var iE=Object.defineProperty,ik=Object.getOwnPropertyDescriptor;let iI=class extends ec{viewTemplate(){return eC.zv.isAndroid()?Z`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:eC.zv.isMobile()?Z`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:Z`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return Z`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};iI.styles=[tI.globalCss],iI=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?ik(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iE(t,r,l),l})([eh(\"wcm-connect-wallet-view\")],iI);let iT=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var iP=Object.defineProperty,iM=Object.getOwnPropertyDescriptor,iS=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iM(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iP(t,r,l),l};let iR=class extends ec{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){let{desktop:t,name:r}=eC.zv.getWalletRouterData(),i=t?.native;if(i){let t=eC.zv.formatNativeUrl(i,e,r);eC.zv.openHref(t,\"_self\")}}openDesktopApp(){let{walletConnectUri:e}=eC.OptionsCtrl.state,t=eC.zv.getWalletRouterData();t8.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:t,image_id:r}=eC.zv.getWalletRouterData(),{isMobile:i,isWeb:o}=t8.getCachedRouterWalletPlatforms();return Z`<wcm-modal-header title=\"${e}\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"${`Continue in ${e}...`}\" .isError=\"${this.isError}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`Connection can continue loading if ${e} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile=\"${i}\" .isWeb=\"${o}\" .isRetry=\"${!0}\"><wcm-button .onClick=\"${this.openDesktopApp.bind(this)}\" .iconRight=\"${tB.RETRY_ICON}\">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};iR.styles=[tI.globalCss,iT],iS([ew()],iR.prototype,\"isError\",2),iR=iS([eh(\"wcm-desktop-connecting-view\")],iR);let iL=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var iW=Object.defineProperty,ij=Object.getOwnPropertyDescriptor;let iD=class extends ec{onInstall(e){e&&eC.zv.openHref(e,\"_blank\")}render(){let{name:e,id:t,image_id:r,homepage:i}=eC.zv.getWalletRouterData();return Z`<wcm-modal-header title=\"${e}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"Not Detected\" .isStale=\"${!0}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}</wcm-text><wcm-button .onClick=\"${()=>this.onInstall(i)}\" .iconLeft=\"${tB.ARROW_DOWN_ICON}\">Download</wcm-button></wcm-info-footer>`}};iD.styles=[tI.globalCss,iL],iD=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?ij(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iW(t,r,l),l})([eh(\"wcm-install-wallet-view\")],iD);let iN=d`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var iU=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,iH=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iz(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iU(t,r,l),l};let iZ=class extends ec{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,t=!1){let{mobile:r,name:i}=eC.zv.getWalletRouterData(),o=r?.native,l=r?.universal;if(o&&!t){let t=eC.zv.formatNativeUrl(o,e,i);eC.zv.openHref(t,\"_self\")}else if(l){let t=eC.zv.formatUniversalUrl(l,e,i);eC.zv.openHref(t,\"_self\")}}openMobileApp(e=!1){let{walletConnectUri:t}=eC.OptionsCtrl.state,r=eC.zv.getWalletRouterData();t8.setRecentWallet(r),t&&this.onFormatAndRedirect(t,e)}onGoToAppStore(e){e&&eC.zv.openHref(e,\"_blank\")}render(){let{name:e,id:t,image_id:r,app:i,mobile:o}=eC.zv.getWalletRouterData(),{isWeb:l}=t8.getCachedRouterWalletPlatforms(),a=i?.ios,n=o?.universal;return Z`<wcm-modal-header title=\"${e}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"Tap 'Open' to continue…\" .isError=\"${this.isError}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class=\"wcm-note\"><wcm-platform-selection .isWeb=\"${l}\" .isRetry=\"${!0}\"><wcm-button .onClick=\"${()=>this.openMobileApp(!1)}\" .iconRight=\"${tB.RETRY_ICON}\">Retry</wcm-button></wcm-platform-selection>${n?Z`<wcm-text color=\"secondary\" variant=\"small-thin\">Still doesn't work? <span tabindex=\"0\" @click=\"${()=>this.openMobileApp(!0)}\">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class=\"wcm-app-store\"><div><wcm-wallet-image walletId=\"${t}\" imageId=\"${ty(r)}\"></wcm-wallet-image><wcm-text>${`Get ${e}`}</wcm-text></div><wcm-button .iconRight=\"${tB.ARROW_RIGHT_ICON}\" .onClick=\"${()=>this.onGoToAppStore(a)}\" variant=\"ghost\">App Store</wcm-button></wcm-info-footer>`}};iZ.styles=[tI.globalCss,iN],iH([ew()],iZ.prototype,\"isError\",2),iZ=iH([eh(\"wcm-mobile-connecting-view\")],iZ);let iB=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var iV=Object.defineProperty,iq=Object.getOwnPropertyDescriptor;let iF=class extends ec{render(){let{name:e,id:t,image_id:r}=eC.zv.getWalletRouterData(),{isDesktop:i,isWeb:o}=t8.getCachedRouterWalletPlatforms();return Z`<wcm-modal-header title=\"${e}\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId=\"${t}\" imageId=\"${ty(r)}\"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`Scan this QR Code with your phone's camera or inside ${e} app`}</wcm-text><wcm-platform-selection .isDesktop=\"${i}\" .isWeb=\"${o}\"></wcm-platform-selection></wcm-info-footer>`}};iF.styles=[tI.globalCss,iB],iF=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?iq(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iV(t,r,l),l})([eh(\"wcm-mobile-qr-connecting-view\")],iF);var iK=Object.defineProperty,iQ=Object.getOwnPropertyDescriptor;let iY=class extends ec{render(){return Z`<wcm-modal-header title=\"Scan the code\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};iY.styles=[tI.globalCss],iY=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?iQ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iK(t,r,l),l})([eh(\"wcm-qrcode-view\")],iY);let iG=d`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var iX=Object.defineProperty,iJ=Object.getOwnPropertyDescriptor,i0=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iJ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iX(t,r,l),l};let i1=class extends ec{constructor(){super(...arguments),this.loading=!eC.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!eC.ExplorerCtrl.state.wallets.listings.length,this.search=\"\",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=t8.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,eC.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search=\"\",this.endReached=this.isLastPage(),eC.ExplorerCtrl.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return t8.getShadowRootElement(this,\".wcm-placeholder-block\")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:e,search:t}=eC.ExplorerCtrl.state,{listings:r,total:i}=this.search?t:e;return i<=40||r.length>=i}async fetchWallets(){var e;let{wallets:t,search:r}=eC.ExplorerCtrl.state,{listings:i,total:o,page:l}=this.search?r:t;if(!this.endReached&&(this.firstFetch||o>40&&i.length<o))try{this.loading=!0;let t=null==(e=eC.OptionsCtrl.state.chains)?void 0:e.join(\",\"),{listings:r}=await eC.ExplorerCtrl.getWallets({page:this.firstFetch?1:l+1,entries:40,search:this.search,version:2,chains:t}),i=r.map(e=>t8.getWalletIcon(e));await Promise.all([...i.map(async e=>t8.preloadImage(e)),eC.zv.wait(300)]),this.endReached=this.isLastPage()}catch(e){console.error(e),eC.ToastCtrl.openToast(t8.getErrorMessage(e),\"error\")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){eC.zv.isAndroid()?t8.handleMobileLinking(e):t8.goToConnectingView(e)}onSearchChange(e){let{value:t}=e.target;this.searchDebounce(t)}render(){let{wallets:e,search:t}=eC.ExplorerCtrl.state,{listings:r}=this.search?t:e,i=this.loading&&!r.length,o=this.search.length>=3,l=r5.manualWalletsTemplate(),a=r5.recomendedWalletsTemplate(!0);o&&(l=l.filter(({values:e})=>t8.caseSafeIncludes(e[0],this.search)),a=a.filter(({values:e})=>t8.caseSafeIncludes(e[0],this.search)));let n=!this.loading&&!r.length&&!a.length,s={\"wcm-loading\":i,\"wcm-end-reached\":this.endReached||!this.loading,\"wcm-empty\":n};return Z`<wcm-modal-header><wcm-search-input .onChange=\"${this.onSearchChange.bind(this)}\"></wcm-search-input></wcm-modal-header><wcm-modal-content class=\"${ev(s)}\"><div class=\"wcm-grid\">${i?null:l} ${i?null:a} ${i?null:r.map(e=>Z`${e?Z`<wcm-wallet-button imageId=\"${e.image_id}\" name=\"${e.name}\" walletId=\"${e.id}\" .onClick=\"${()=>this.onConnect(e)}\"></wcm-wallet-button>`:null}`)}</div><div class=\"wcm-placeholder-block\">${n?Z`<wcm-text variant=\"big-bold\" color=\"secondary\">No results found</wcm-text>`:null} ${!n&&this.loading?Z`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};i1.styles=[tI.globalCss,iG],i0([ew()],i1.prototype,\"loading\",2),i0([ew()],i1.prototype,\"firstFetch\",2),i0([ew()],i1.prototype,\"search\",2),i0([ew()],i1.prototype,\"endReached\",2),i1=i0([eh(\"wcm-wallet-explorer-view\")],i1);let i2=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var i5=Object.defineProperty,i3=Object.getOwnPropertyDescriptor,i4=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?i3(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&i5(t,r,l),l};let i7=class extends ec{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){let{desktop:t,name:r}=eC.zv.getWalletRouterData(),i=t?.universal;if(i){let t=eC.zv.formatUniversalUrl(i,e,r);eC.zv.openHref(t,\"_blank\")}}openWebWallet(){let{walletConnectUri:e}=eC.OptionsCtrl.state,t=eC.zv.getWalletRouterData();t8.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:t,image_id:r}=eC.zv.getWalletRouterData(),{isMobile:i,isDesktop:o}=t8.getCachedRouterWalletPlatforms(),l=eC.zv.isMobile();return Z`<wcm-modal-header title=\"${e}\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"${`Continue in ${e}...`}\" .isError=\"${this.isError}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile=\"${i}\" .isDesktop=\"${!l&&o}\" .isRetry=\"${!0}\"><wcm-button .onClick=\"${this.openWebWallet.bind(this)}\" .iconRight=\"${tB.RETRY_ICON}\">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};i7.styles=[tI.globalCss,i2],i4([ew()],i7.prototype,\"isError\",2),i7=i4([eh(\"wcm-web-connecting-view\")],i7)}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/app/_not-found/page-55d3376e1599fe3a.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{67589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/_not-found/page\",function(){return n(35457)}])},35457:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return s}}),n(99920);let i=n(57437);n(2265);let o={fontFamily:'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',height:\"100vh\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\"},l={display:\"inline-block\"},r={display:\"inline-block\",margin:\"0 20px 0 0\",padding:\"0 23px 0 0\",fontSize:24,fontWeight:500,verticalAlign:\"top\",lineHeight:\"49px\"},d={fontSize:14,fontWeight:400,lineHeight:\"49px\",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(\"title\",{children:\"404: This page could not be found.\"}),(0,i.jsx)(\"div\",{style:o,children:(0,i.jsxs)(\"div\",{children:[(0,i.jsx)(\"style\",{dangerouslySetInnerHTML:{__html:\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}),(0,i.jsx)(\"h1\",{className:\"next-error-h1\",style:r,children:\"404\"}),(0,i.jsx)(\"div\",{style:l,children:(0,i.jsx)(\"h2\",{style:d,children:\"This page could not be found.\"})})]})})]})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,23,744],function(){return e(e.s=67589)}),_N_E=e.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/app/layout-696be0f0413601fb.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{35883:function(){},46601:function(){},52361:function(){},94616:function(){},81592:function(e,t,n){Promise.resolve().then(n.t.bind(n,75326,23)),Promise.resolve().then(n.bind(n,27776)),Promise.resolve().then(n.t.bind(n,53054,23)),Promise.resolve().then(n.bind(n,29635)),Promise.resolve().then(n.bind(n,61559)),Promise.resolve().then(n.bind(n,90037))},29635:function(e,t,n){\"use strict\";n.d(t,{default:function(){return l}});var r=n(57437),o=n(76437);n(27776);let i={id:80002,network:\"Polygon Amoy Testnet\",name:\"Amoy\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ankr.com/polygon_amoy\"]},public:{http:[\"https://rpc.ankr.com/polygon_amoy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://amoy.polygonscan.com/\"}}},a={appId:\"clz007cw406bz3iq8dwolge41\",config:{logo:\"https://your.logo.url\",loginMethods:[\"wallet\"],appearance:{walletList:[\"metamask\",\"detected_wallets\",\"rainbow\"],theme:\"dark\"},defaultChain:i,supportedChains:[i],embeddedWallets:{createOnLogin:\"users-without-wallets\"}}};var l=e=>{let{children:t}=e;return(0,r.jsx)(o.rr,{...a,children:t})}},99782:function(e,t,n){\"use strict\";n.d(t,{SK:function(){return l}});let r=(0,n(66862).oM)({name:\"musicPlayer\",initialState:{uri:\"/audio/chin-tapak-dum-dum.mp3\",isPlaying:!0,index:0,coverImage:\"\",title:\"\",artist:\"\"},reducers:{setUri:(e,t)=>{e.uri=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIndex:(e,t)=>{e.index=t.payload},setMusicPlayer:(e,t)=>({...e,...t.payload})}}),{setUri:o,setIsPlaying:i,setIndex:a,setMusicPlayer:l}=r.actions;t.ZP=r.reducer},61559:function(e,t,n){\"use strict\";n.d(t,{default:function(){return s}});var r=n(57437),o=n(11444),i=n(66862),a=n(99782);let l=(0,i.xC)({reducer:{musicPlayer:a.ZP}});function s(e){let{children:t}=e;return(0,r.jsx)(o.zt,{store:l,children:t})}},90037:function(e,t,n){\"use strict\";n.d(t,{ThemeProvider:function(){return i}});var r=n(57437);n(2265);var o=n(79512);function i(e){let{children:t,...n}=e;return(0,r.jsx)(o.f,{...n,children:t})}},53054:function(){},75326:function(e){e.exports={style:{fontFamily:\"'__Inter_d65c78', '__Inter_Fallback_d65c78'\",fontStyle:\"normal\"},className:\"__className_d65c78\"}}},function(e){e.O(0,[370,269,764,202,971,23,744],function(){return e(e.s=81592)}),_N_E=e.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/app/page-bbd1448002907ff3.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{35883:function(){},46601:function(){},24654:function(){},52361:function(){},94616:function(){},84285:function(e,t,a){Promise.resolve().then(a.bind(a,94484))},94484:function(e,t,a){\"use strict\";a.r(t),a.d(t,{default:function(){return ta}});var n=a(57437),i=a(98094),s=a(24841),r=a(75027),l=a(63872),o=a(2265);let d=()=>\"https://picsum.photos/200/300?random=\".concat(Math.floor(1e3*Math.random()));d(),d(),d(),d(),d();let c=[{name:\"Relaxation Sounds\",description:\"Soothing sounds to help you relax and unwind.\",creator:\"John Doe\",image:d(),tracks:[{title:\"Peaceful Ambience\",artist:\"Ownsound\",soundUri:\"/audio/sample-9s.mp3\",cover:d()},{title:\"Rainy Day Meditation\",artist:\"Ownsound\",soundUri:\"/audio/sample-1s.mp3\",cover:d()},{title:\"Forest Soundscape\",artist:\"Ownsound\",soundUri:\"/audio/sample-9s.mp3\",cover:d()},{title:\"Ocean Waves\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-4s.mp3\",cover:d()}]},{name:\"Nature Sounds\",description:\"Immerse yourself in the sounds of nature.\",creator:\"Jane Smith\",image:d(),tracks:[{title:\"Mountain Stream\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-7s.mp3\",cover:d()},{title:\"Birdsong\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-5s.mp3\",cover:d()},{title:\"Night Crickets\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-2s.mp3\",cover:d()},{title:\"Morning Dew\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-3s.mp3\",cover:d()}]},{name:\"Instrumental Calm\",description:\"Relaxing instrumental tracks to help you focus.\",creator:\"Alex Johnson\",image:d(),tracks:[{title:\"Calm Piano\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-8s.mp3\",cover:d()},{title:\"Evening Serenity\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-6s.mp3\",cover:d()},{title:\"Gentle Guitar\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-10s.mp3\",cover:d()},{title:\"Soft Strings\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-11s.mp3\",cover:d()}]}];function p(e){let{url:t}=e,a=(0,o.useRef)(null),[d,c]=(0,o.useState)(!1),[p,u]=(0,o.useState)(0),[m,y]=(0,o.useState)(0);(0,o.useEffect)(()=>{if(t){let e=a.current;u(0),c(!1),a.current.play(),c(!0);let t=()=>{y(e.duration)},n=()=>{u(e.currentTime)},i=()=>{c(!1),u(0)};return e&&(e.addEventListener(\"loadedmetadata\",t),e.addEventListener(\"timeupdate\",n),e.addEventListener(\"ended\",i)),()=>{e&&(e.removeEventListener(\"loadedmetadata\",t),e.removeEventListener(\"timeupdate\",n),e.removeEventListener(\"ended\",i))}}},[t]);let x=e=>{if(isNaN(e))return\"00:00\";let t=Math.floor(e%60);return\"\".concat(Math.floor(e/60),\":\").concat(t<10?\"0\"+t:t)};return console.log(t),(0,n.jsxs)(\"div\",{className:\"px-4 py-2 w-full flex items-center justify-between gap-3\",children:[(0,n.jsx)(\"audio\",{ref:a,src:t},t),(0,n.jsx)(\"div\",{className:\"controls flex items-center gap-2\",children:(0,n.jsx)(\"button\",{onClick:()=>{let e=a.current;d?e.pause():e.play(),c(!d)},className:\"bg-primary text-white rounded-full p-1.5 flex items-center justify-center\",children:d?(0,n.jsx)(s.Z,{className:\"w-3 h-3\"}):(0,n.jsx)(i.Z,{className:\"w-3 h-3\"})})}),(0,n.jsxs)(\"div\",{className:\"flex-1 flex items-center gap-2\",children:[(0,n.jsx)(\"span\",{className:\"text-sm\",children:x(p)}),(0,n.jsx)(\"input\",{type:\"range\",min:\"0\",max:\"100\",value:p/m*100||0,onChange:e=>{let t=a.current,n=e.target.value/100*m;t.currentTime=n},className:\"flex-1 range accent-primary\"}),(0,n.jsx)(\"span\",{className:\"text-sm\",children:x(m)})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-2\",children:[(0,n.jsx)(l.d1A,{className:\"cursor-pointer\"}),(0,n.jsx)(r.U6L,{className:\"cursor-pointer\"}),(0,n.jsx)(r.t00,{className:\"cursor-pointer\"}),(0,n.jsx)(l.P$5,{className:\"cursor-pointer\"})]})]})}var u=a(3274),m=e=>{let{noWidth:t=!1}=e;return t?(0,n.jsx)(u.Z,{className:\"animate-spin text-primary\"}):(0,n.jsx)(u.Z,{className:\"animate-spin text-primary w-40\"})},y=a(71322),x=a(41505),h=a(44839),f=a(96164);function g(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,f.m6)((0,h.W)(t))}let v=e=>{let{className:t,...a}=e;return(0,n.jsx)(x.eh,{className:g(\"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\",t),...a})},b=x.s_,w=e=>{let{withHandle:t,className:a,...i}=e;return(0,n.jsx)(x.OT,{className:g(\"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90\",a),...i,children:t&&(0,n.jsx)(\"div\",{className:\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\",children:(0,n.jsx)(y.Z,{className:\"h-2.5 w-2.5\"})})})};var j=a(76437),N=a(89896);function T(e,t,a){if(e.length<=t+a)return e;let n=e.slice(0,t),i=e.slice(-a);return\"\".concat(n,\".........\").concat(i)}var k=a(21246),E=a(87592),S=a(22468),P=a(28165);let C=k.fC,R=k.xz;k.ZA,k.Uv,k.Tr,k.Ee,o.forwardRef((e,t)=>{let{className:a,inset:i,children:s,...r}=e;return(0,n.jsxs)(k.fF,{ref:t,className:g(\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",i&&\"pl-8\",a),...r,children:[s,(0,n.jsx)(E.Z,{className:\"ml-auto h-4 w-4\"})]})}).displayName=k.fF.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(k.tu,{ref:t,className:g(\"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",a),...i})}).displayName=k.tu.displayName;let M=o.forwardRef((e,t)=>{let{className:a,sideOffset:i=4,...s}=e;return(0,n.jsx)(k.Uv,{children:(0,n.jsx)(k.VY,{ref:t,sideOffset:i,className:g(\"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",a),...s})})});M.displayName=k.VY.displayName;let F=o.forwardRef((e,t)=>{let{className:a,inset:i,...s}=e;return(0,n.jsx)(k.ck,{ref:t,className:g(\"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",i&&\"pl-8\",a),...s})});F.displayName=k.ck.displayName,o.forwardRef((e,t)=>{let{className:a,children:i,checked:s,...r}=e;return(0,n.jsxs)(k.oC,{ref:t,className:g(\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",a),checked:s,...r,children:[(0,n.jsx)(\"span\",{className:\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\",children:(0,n.jsx)(k.wU,{children:(0,n.jsx)(S.Z,{className:\"h-4 w-4\"})})}),i]})}).displayName=k.oC.displayName,o.forwardRef((e,t)=>{let{className:a,children:i,...s}=e;return(0,n.jsxs)(k.Rk,{ref:t,className:g(\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",a),...s,children:[(0,n.jsx)(\"span\",{className:\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\",children:(0,n.jsx)(k.wU,{children:(0,n.jsx)(P.Z,{className:\"h-2 w-2 fill-current\"})})}),i]})}).displayName=k.Rk.displayName,o.forwardRef((e,t)=>{let{className:a,inset:i,...s}=e;return(0,n.jsx)(k.__,{ref:t,className:g(\"px-2 py-1.5 text-sm font-semibold\",i&&\"pl-8\",a),...s})}).displayName=k.__.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(k.Z0,{ref:t,className:g(\"-mx-1 my-1 h-px bg-muted\",a),...i})}).displayName=k.Z0.displayName;var I=a(66648),A=a(71538),D=a(12218);let B=(0,D.j)(\"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",{variants:{variant:{default:\"bg-primary text-primary-foreground hover:bg-primary/90\",destructive:\"bg-destructive text-destructive-foreground hover:bg-destructive/90\",outline:\"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",secondary:\"bg-secondary text-secondary-foreground hover:bg-secondary/80\",ghost:\"hover:bg-accent hover:text-accent-foreground\",link:\"text-primary underline-offset-4 hover:underline\"},size:{default:\"h-10 px-4 py-2\",sm:\"h-9 rounded-md px-3\",lg:\"h-11 rounded-md px-8\",icon:\"h-10 w-10\"}},defaultVariants:{variant:\"default\",size:\"default\"}}),L=o.forwardRef((e,t)=>{let{className:a,variant:i,size:s,asChild:r=!1,...l}=e,o=r?A.g7:\"button\";return(0,n.jsx)(o,{className:g(B({variant:i,size:s,className:a})),ref:t,...l})});L.displayName=\"Button\";var Z=a(38296),O=a(92699),z=a(79512);function U(){let{setTheme:e}=(0,z.F)();return(0,n.jsxs)(C,{children:[(0,n.jsx)(R,{asChild:!0,children:(0,n.jsxs)(L,{variant:\"outline\",size:\"icon\",children:[(0,n.jsx)(Z.Z,{className:\"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0\"}),(0,n.jsx)(O.Z,{className:\"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100\"}),(0,n.jsx)(\"span\",{className:\"sr-only\",children:\"Toggle theme\"})]})}),(0,n.jsxs)(M,{align:\"end\",children:[(0,n.jsx)(F,{onClick:()=>e(\"light\"),children:\"Light\"}),(0,n.jsx)(F,{onClick:()=>e(\"dark\"),children:\"Dark\"}),(0,n.jsx)(F,{onClick:()=>e(\"system\"),children:\"System\"})]})]})}var H=e=>{let{w0:t}=e,{login:a,authenticated:i,logout:s}=(0,j.sv)();return(0,n.jsx)(\"div\",{className:\"p-6\",children:i?(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3\",children:[(0,n.jsxs)(C,{className:\"w-full\",children:[(0,n.jsx)(R,{className:\"w-full bg-primary rounded-md\",children:(0,n.jsxs)(\"div\",{className:\"py-2 flex items-center justify-between px-4 w-full\",children:[(0,n.jsx)(\"div\",{children:(0,n.jsx)(I.default,{src:\"/icons/connect-wallet.svg\",width:20,height:20,alt:\"wallet\"})}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3\",children:[(0,n.jsx)(\"p\",{className:\"text-white\",children:(null==t?void 0:t.address)&&T(t.address,4,4)}),(0,n.jsx)(I.default,{src:\"/icons/down-arrow.svg\",width:10,height:10})]})]})}),(0,n.jsx)(M,{className:\"min-w-[18rem]\",children:(0,n.jsx)(F,{children:(0,n.jsxs)(\"div\",{className:\"flex items-center justify-between w-full\",onClick:s,children:[(0,n.jsx)(\"p\",{children:\"Logout\"}),(0,n.jsx)(N.Z,{className:\"w-4\"})]})})})]}),(0,n.jsx)(U,{})]}):(0,n.jsx)(L,{className:\"w-full\",onClick:a,children:\"Connect Wallet\"})})};let V=(0,D.j)(\"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",{variants:{variant:{default:\"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",secondary:\"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",destructive:\"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",outline:\"text-foreground\"}},defaultVariants:{variant:\"default\"}});function G(e){let{className:t,variant:a,...i}=e;return(0,n.jsx)(\"div\",{className:g(V({variant:a}),t),...i})}var _=a(14504),W=a(95137),Y=a(98141),q=a(34446),X=a(52022),K=a(28196),J=a(3003),$=a(18422),Q=a(38364);let ee=(0,D.j)(\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"),et=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(Q.f,{ref:t,className:g(ee(),a),...i})});et.displayName=Q.f.displayName;let ea=o.forwardRef((e,t)=>{let{className:a,type:i,...s}=e;return(0,n.jsx)(\"input\",{type:i,className:g(\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",a),ref:t,...s})});ea.displayName=\"Input\";var en=e=>{let{items:t,renderItem:a,containerId:i}=e,s=(0,o.useRef)(null),[r,l]=(0,o.useState)(!1),[d,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=()=>{if(s.current){let{scrollLeft:e,scrollWidth:t,clientWidth:a}=s.current;l(e>0),c(e+a<t)}};return e(),s.current&&s.current.addEventListener(\"scroll\",e),window.addEventListener(\"resize\",e),()=>{s.current&&s.current.removeEventListener(\"scroll\",e),window.removeEventListener(\"resize\",e)}},[]),(0,n.jsxs)(\"div\",{className:\"relative\",children:[r&&(0,n.jsx)(\"button\",{className:\"absolute left-0 top-20 transform bg-primary rounded-full z-10 text-white w-6 h-6 flex items-center justify-center drop-shadow-md\",onClick:()=>{s.current.scrollBy({left:-200,behavior:\"smooth\"})},children:(0,n.jsx)(W.Z,{className:\"w-3\"})}),d&&(0,n.jsx)(\"button\",{className:\"absolute right-0 top-20 transform bg-primary rounded-full z-10 text-white w-6 h-6 flex items-center justify-center drop-shadow-md\",onClick:()=>{s.current.scrollBy({left:200,behavior:\"smooth\"})},children:(0,n.jsx)(W.Z,{className:\"w-3 rotate-180\"})}),(0,n.jsx)(\"div\",{className:\"px-4\",children:(0,n.jsx)(\"div\",{id:i,ref:s,className:\"flex space-x-4 overflow-x-auto scrollbar-hide py-2\",children:t.map((e,t)=>(0,n.jsx)(\"div\",{className:\"space-y-2 flex-shrink-0\",children:a(e)},t))})})]})},ei=a(20920),es=a(6538);let er=es.fC,el=es.xz,eo=es.h_,ed=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.aV,{className:g(\"fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",a),...i,ref:t})});ed.displayName=es.aV.displayName;let ec=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsxs)(eo,{children:[(0,n.jsx)(ed,{}),(0,n.jsx)(es.VY,{ref:t,className:g(\"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",a),...i})]})});ec.displayName=es.VY.displayName;let ep=e=>{let{className:t,...a}=e;return(0,n.jsx)(\"div\",{className:g(\"flex flex-col space-y-2 text-center sm:text-left\",t),...a})};ep.displayName=\"AlertDialogHeader\";let eu=e=>{let{className:t,...a}=e;return(0,n.jsx)(\"div\",{className:g(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",t),...a})};eu.displayName=\"AlertDialogFooter\";let em=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.Dx,{ref:t,className:g(\"text-lg font-semibold\",a),...i})});em.displayName=es.Dx.displayName;let ey=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.dk,{ref:t,className:g(\"text-sm text-muted-foreground\",a),...i})});ey.displayName=es.dk.displayName;let ex=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.aU,{ref:t,className:g(B(),a),...i})});ex.displayName=es.aU.displayName;let eh=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.$j,{ref:t,className:g(B({variant:\"outline\"}),\"mt-2 sm:mt-0\",a),...i})});eh.displayName=es.$j.displayName;let ef=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(\"textarea\",{className:g(\"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",a),ref:t,...i})});ef.displayName=\"Textarea\";var eg=a(9646);let ev=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(eg.fC,{className:g(\"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",a),...i,ref:t,children:(0,n.jsx)(eg.bU,{className:g(\"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\")})})});ev.displayName=eg.fC.displayName;var eb=a(16356),ew=a(22584),ej=a(38401),eN=a(38472);let eT=\"0xaD4b216C20Ac6a06D67d03c8176C047BB81CB7A0\",ek=[{inputs:[{internalType:\"address\",name:\"musicxTokenAddress\",type:\"address\"},{internalType:\"address\",name:\"protocolFeeAddress\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"spender\",type:\"address\"},{indexed:!0,internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"Approval\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"operator\",type:\"address\"},{indexed:!1,internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"ApprovalForAll\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"creator\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"CreatorPayoutWithdrawn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"newCreator\",type:\"address\"}],name:\"FullRoyaltyBought\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"creator\",type:\"address\"}],name:\"NFTMinted\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"buyer\",type:\"address\"}],name:\"NFTPurchased\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"renter\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"duration\",type:\"uint256\"}],name:\"NFTRented\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!1,internalType:\"uint256\",name:\"rentBaseAmount\",type:\"uint256\"},{indexed:!1,internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"}],name:\"RentInfoSet\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"creator\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"RoyaltyPaid\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"from\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!0,internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"Transfer\",type:\"event\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"approve\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"balanceOf\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{internalType:\"bool\",name:\"_fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"_fullRoyaltyBuyoutPrice\",type:\"uint256\"}],name:\"buyFullRoyalty\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"buyNFT\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"}],internalType:\"struct OwnSound.CreateNFTParams\",name:\"params\",type:\"tuple\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],name:\"createNFT\",outputs:[{internalType:\"uint256\",name:\"newTokenId\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"\",type:\"address\"}],name:\"creatorPayouts\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getAllTokensInfo\",outputs:[{components:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"metadata\",type:\"tuple\"},{internalType:\"address\",name:\"creator\",type:\"address\"}],internalType:\"struct OwnSound.TokenInfo[]\",name:\"\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],name:\"getApproved\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"getNFTMetadata\",outputs:[{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],name:\"getNFTMetadataByRandomNumber\",outputs:[{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"getRentInfo\",outputs:[{components:[{internalType:\"bool\",name:\"purchased\",type:\"bool\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"address\",name:\"renter\",type:\"address\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentEndTime\",type:\"uint256\"}],internalType:\"struct OwnSound.OwnershipInfo\",name:\"\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getRentableTokens\",outputs:[{components:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"metadata\",type:\"tuple\"},{internalType:\"uint256\",name:\"rentBaseAmount\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"address\",name:\"currentOwner\",type:\"address\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"}],internalType:\"struct OwnSound.RentableTokenInfo[]\",name:\"\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"buyer\",type:\"address\"}],name:\"getWalletPurchasedNFTs\",outputs:[{internalType:\"uint256[]\",name:\"\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_wallet\",type:\"address\"}],name:\"getWalletTokensWithMetadata\",outputs:[{components:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"metadata\",type:\"tuple\"},{components:[{internalType:\"bool\",name:\"purchased\",type:\"bool\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"address\",name:\"renter\",type:\"address\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentEndTime\",type:\"uint256\"}],internalType:\"struct OwnSound.OwnershipInfo\",name:\"ownershipInfo\",type:\"tuple\"}],internalType:\"struct OwnSound.WalletTokenInfo[]\",name:\"\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"\",type:\"address\"},{internalType:\"address\",name:\"\",type:\"address\"}],name:\"isApprovedForAll\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],name:\"nftMetadata\",outputs:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"ownerOf\",outputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"},{internalType:\"address\",name:\"\",type:\"address\"}],name:\"ownershipInfo\",outputs:[{internalType:\"bool\",name:\"purchased\",type:\"bool\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"address\",name:\"renter\",type:\"address\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentEndTime\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],name:\"randomNumberToTokenId\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"rentNFT\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"safeTransferFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"safeTransferFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"operator\",type:\"address\"},{internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"setApprovalForAll\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"}],name:\"setRentInfo\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes4\",name:\"interfaceId\",type:\"bytes4\"}],name:\"supportsInterface\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"tokenURI\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"transferFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"withdrawCreatorPayout\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"}],eE=\"0x9b344Cc9f7Bfa905cc6eBCF87AbC03338785b70B\",eS=[{inputs:[{internalType:\"address\",name:\"initialOwner\",type:\"address\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[],name:\"ECDSAInvalidSignature\",type:\"error\"},{inputs:[{internalType:\"uint256\",name:\"length\",type:\"uint256\"}],name:\"ECDSAInvalidSignatureLength\",type:\"error\"},{inputs:[{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"ECDSAInvalidSignatureS\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"allowance\",type:\"uint256\"},{internalType:\"uint256\",name:\"needed\",type:\"uint256\"}],name:\"ERC20InsufficientAllowance\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"sender\",type:\"address\"},{internalType:\"uint256\",name:\"balance\",type:\"uint256\"},{internalType:\"uint256\",name:\"needed\",type:\"uint256\"}],name:\"ERC20InsufficientBalance\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"approver\",type:\"address\"}],name:\"ERC20InvalidApprover\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"receiver\",type:\"address\"}],name:\"ERC20InvalidReceiver\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"sender\",type:\"address\"}],name:\"ERC20InvalidSender\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"}],name:\"ERC20InvalidSpender\",type:\"error\"},{inputs:[{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"}],name:\"ERC2612ExpiredSignature\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"signer\",type:\"address\"},{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"ERC2612InvalidSigner\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"},{internalType:\"uint256\",name:\"currentNonce\",type:\"uint256\"}],name:\"InvalidAccountNonce\",type:\"error\"},{inputs:[],name:\"InvalidShortString\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"OwnableInvalidOwner\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"OwnableUnauthorizedAccount\",type:\"error\"},{inputs:[{internalType:\"string\",name:\"str\",type:\"string\"}],name:\"StringTooLong\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"spender\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Approval\",type:\"event\"},{anonymous:!1,inputs:[],name:\"EIP712DomainChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"previousOwner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"OwnershipTransferred\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"from\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Transfer\",type:\"event\"},{inputs:[],name:\"DOMAIN_SEPARATOR\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"}],name:\"allowance\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"approve\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"burn\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"burnFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"decimals\",outputs:[{internalType:\"uint8\",name:\"\",type:\"uint8\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{internalType:\"bytes1\",name:\"fields\",type:\"bytes1\"},{internalType:\"string\",name:\"name\",type:\"string\"},{internalType:\"string\",name:\"version\",type:\"string\"},{internalType:\"uint256\",name:\"chainId\",type:\"uint256\"},{internalType:\"address\",name:\"verifyingContract\",type:\"address\"},{internalType:\"bytes32\",name:\"salt\",type:\"bytes32\"},{internalType:\"uint256[]\",name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"mint\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"nonces\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"owner\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"permit\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"renounceOwnership\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"totalSupply\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transfer\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transferFrom\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"transferOwnership\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"}];var eP=a(22554),eC=a(27776),eR=a(85068);let eM=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsxs)(eR.fC,{ref:t,className:g(\"relative flex w-full touch-none select-none items-center\",a),...i,children:[(0,n.jsx)(eR.fQ,{className:\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\",children:(0,n.jsx)(eR.e6,{className:\"absolute h-full bg-primary\"})}),(0,n.jsx)(eR.bU,{className:\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"})]})});eM.displayName=eR.fC.displayName;var eF=e=>{let{getSongs:t}=e,[a,i]=(0,o.useState)(!1),[s,r]=(0,o.useState)(!1),[l,d]=(0,o.useState)(!1),[c,p]=(0,o.useState)(\"\"),{wallets:u}=(0,j.rB)(),y=u[0],[x,h]=(0,o.useState)(null),[f,g]=(0,o.useState)(1),[v,b]=(0,o.useState)(!1),[w,N]=(0,o.useState)(null),[T,k]=(0,o.useState)(\"\"),[E,S]=(0,o.useState)(\"\"),[P,C]=(0,o.useState)(\"\"),[R,M]=(0,o.useState)(\"\"),[F,A]=(0,o.useState)(\"\"),[D,B]=(0,o.useState)(0),[Z,O]=(0,o.useState)(\"\"),[z,U]=(0,o.useState)(!1),[H,V]=(0,o.useState)(!1),[G,_]=(0,o.useState)({songName:\"\",songDescription:\"\",basePrice:\"\",royaltyPrice:\"\",royaltyPercentage:\"\",isRentingAllowed:!1}),W=async e=>{let t=e.target.files[0];if(t){i(!0);try{let e=new FormData;Object.keys(G).forEach(t=>{e.append(t,G[t])}),e.append(\"musicFile\",t),e.append(\"userAddress\",y.address);let a=await eN.Z.post(\"/api/endpoint\",e,{headers:{\"Content-Type\":\"multipart/form-data\"}});console.log(\"Response:\",a.data),console.log(\"Response:\",a.data.value),p(a.data.value),h(t),k(t.name)}catch(e){eC.A.error(\"Error uploading file\"),console.error(\"Error uploading file:\",e)}finally{i(!1)}}},Y=async e=>{let t=e.target.files[0];if(t){r(!0);try{let e=new FormData;e.append(\"file\",t),e.append(\"upload_preset\",\"fi0lxkc1\"),e.append(\"api_key\",\"697773597345229\");let a=await fetch(\"https://api.cloudinary.com/v1_1/da9h8exvs/image/upload\",{method:\"POST\",body:e});if(!a.ok){let e=await a.json();throw Error(\"Upload failed: \".concat(e.error.message))}let n=await a.json();N(n.secure_url)}catch(e){console.error(\"Error uploading image:\",e)}finally{r(!1)}}},q=async()=>{1===f&&T&&x&&g(2)},X=async()=>{O(\"\"),U(!0),console.log(c);try{let e=await (null==y?void 0:y.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let a=await e.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.createNFT({basePrice:R,fullRoyaltyAllowed:H,fullRoyaltyBuyoutPrice:F,title:E,description:P,coverImage:w,mp3FileLocationId:c,isRentingAllowed:v,supply:100,royaltyPercentage:D},c);await i.wait(1),console.log(i),U(!1),d(!1),await t(y.address),eC.A.success(\"Successfully published the song\")}catch(e){U(!1),console.error(\"Error creating NFT:\",e),O(\"Failed to create NFT. Please try again.\")}};return(0,n.jsxs)(er,{open:l,onOpenChange:e=>d(e),children:[(0,n.jsx)(el,{children:(0,n.jsx)(L,{variant:\"outline\",className:\"w-full h-full\",children:\"Publish Audio\"})}),(0,n.jsxs)(ec,{children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{children:1===f?\"Upload Music\":\"Song Details\"}),(0,n.jsx)(ey,{children:1===f?\"Upload your music file and proceed to enter the song details.\":\"Enter the details of your song and finalize your submission.\"})]}),(0,n.jsxs)(\"div\",{className:\"space-y-3\",children:[1===f&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(\"div\",{className:\"relative h-24 w-full border border-muted-foreground border-dashed rounded-md flex items-center justify-center gap-2 cursor-pointer transition-transform duration-300 ease-in-out transform hover:scale-105\",children:[(0,n.jsx)(\"input\",{type:\"file\",accept:\"audio/*\",className:\"absolute inset-0 opacity-0 cursor-pointer\",onChange:W,disabled:a}),a?(0,n.jsxs)(\"div\",{className:\"flex items-center gap-2\",children:[(0,n.jsx)(\"div\",{className:\"buffering\"}),(0,n.jsx)(m,{})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ew.Z,{className:\"text-muted-foreground w-8 h-8\"}),(0,n.jsx)(\"p\",{className:\"text-muted-foreground\",children:T?\"Selected File: \".concat(T):\"Upload Music File\"})]})]})}),2===f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{className:\"flex gap-3 items-center\",children:[(0,n.jsx)(\"div\",{className:\"w-24 h-24 bg-muted rounded-md overflow-hidden relative\",children:w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(\"img\",{src:w,alt:\"Uploaded\",className:\"w-full h-full object-cover\"}),(0,n.jsx)(\"button\",{onClick:()=>{N(null)},className:\"absolute z-[99999999999] bottom-1 right-1 bg-red-600 text-white rounded-full p-1 transition-opacity\",children:(0,n.jsx)(eb.FH3,{})})]}):(0,n.jsx)(\"div\",{className:\"relative h-full w-full flex items-center justify-center\",children:s?(0,n.jsxs)(\"div\",{className:\"flex flex-col items-center\",children:[(0,n.jsx)(\"div\",{className:\"buffering\"}),(0,n.jsx)(m,{})]}):(0,n.jsxs)(\"div\",{className:\"relative h-full w-full flex items-center justify-center\",children:[(0,n.jsx)(\"div\",{children:(0,n.jsx)(ew.Z,{className:\"text-muted-foreground\"})}),(0,n.jsx)(\"label\",{className:\"absolute cursor-pointer flex items-center justify-center w-full h-full text-muted\",children:(0,n.jsx)(\"input\",{type:\"file\",accept:\"image/*\",className:\"hidden\",onChange:Y})})]})})}),\" \",(0,n.jsxs)(\"div\",{className:\"h-16 flex flex-col justify-between\",children:[(0,n.jsx)(et,{children:\"Song Name\"}),(0,n.jsx)(ea,{placeholder:\"Enter song name\",value:E,onChange:e=>S(e.target.value)})]})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Song Description\"}),(0,n.jsx)(ef,{placeholder:\"Enter song description\",className:\"mt-2.5\",value:P,onChange:e=>C(e.target.value)})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center justify-between\",children:[(0,n.jsxs)(\"div\",{className:\"flex items-center space-x-2 pt-2\",children:[(0,n.jsx)(et,{htmlFor:\"isRentingAllowed\",children:\"Renting Allowed?\"}),(0,n.jsx)(ev,{id:\"isRentingAllowed\",onCheckedChange:e=>b(e)})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center space-x-2 pt-2\",children:[(0,n.jsx)(et,{htmlFor:\"full-royalty\",children:\"Full Royalty Allowed?\"}),(0,n.jsx)(ev,{id:\"full-royalty\",onCheckedChange:e=>V(e)})]})]}),(0,n.jsxs)(\"div\",{className:\"grid grid-cols-2 gap-4\",children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Base Price\"}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 w-full mt-2.5\",children:[(0,n.jsx)(ea,{placeholder:\"Enter Base Price\",type:\"number\",value:R,onChange:e=>M(e.target.value)}),(0,n.jsx)(I.default,{src:\"/icons/token-coin.svg\",width:20,height:20,alt:\"coin\"})]})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Royalty Price\"}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 w-full mt-2.5\",children:[(0,n.jsx)(ea,{placeholder:\"Enter Royalty Price\",type:\"number\",value:F,onChange:e=>A(e.target.value)}),(0,n.jsx)(I.default,{src:\"/icons/token-coin.svg\",width:20,height:20,alt:\"coin\"})]})]})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Royalty Percentage\"}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 w-full mt-2.5\",children:[(0,n.jsx)(eM,{defaultValue:[0],max:20,step:5,className:\"\",onValueChange:e=>B(e)}),(0,n.jsxs)(\"div\",{className:\"flex text-muted-foreground\",children:[D,(0,n.jsx)(ej.Z,{className:\"text-muted-foreground w-4\"})]})]})]}),Z&&(0,n.jsx)(\"div\",{className:\"text-red-500 text-sm mt-2\",children:Z})]})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{children:\"Cancel\"}),1===f&&(0,n.jsx)(L,{onClick:q,disabled:!T,children:\"Next\"}),2===f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L,{variant:\"outline\",onClick:()=>{2===f&&g(1)},children:\"Back\"}),(0,n.jsx)(L,{onClick:X,disabled:!E||!P||z,children:z?\"Uploading...\":\"Upload\"})]})]})]})]})},eI=a(43393),eA=a.n(eI),eD=JSON.parse('{\"nm\":\"Comp 1\",\"mn\":\"\",\"layers\":[{\"ty\":3,\"nm\":\"Null 1\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":1,\"k\":[{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[250,245,0],\"t\":0,\"ti\":[0,0,0],\"to\":[0,1.667,0]},{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[250,255,0],\"t\":60,\"ti\":[0,1.667,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.167,\"y\":0.167},\"i\":{\"x\":0.833,\"y\":0.833},\"s\":[250,245,0],\"t\":120}],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":0,\"ix\":11}},\"ef\":[],\"ind\":1},{\"ty\":4,\"nm\":\"face\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[250,250,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":1,\"k\":[{\"o\":{\"x\":0.748,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[0,0,0],\"t\":30,\"ti\":[0,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.178,\"y\":0},\"i\":{\"x\":0.352,\"y\":1},\"s\":[8,0,0],\"t\":45,\"ti\":[0,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.077,\"y\":0},\"i\":{\"x\":0.491,\"y\":1},\"s\":[-8,0,0],\"t\":60,\"ti\":[-1.333,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.491,\"y\":1},\"s\":[3,0,0],\"t\":73,\"ti\":[0.5,0,0],\"to\":[1.333,0,0]},{\"o\":{\"x\":0.167,\"y\":0.167},\"i\":{\"x\":0.833,\"y\":0.833},\"s\":[0,0,0],\"t\":84}],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":100,\"ix\":11}},\"ef\":[],\"shapes\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":1,\"it\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0.964,0],[0.926,1.269],[-2.109,1.537],[-12.421,0],[-9.638,-6.507],[1.46,-2.163],[2.164,1.463],[9.78,0],[8.382,-6.108]],\"o\":[[-1.46,0],[-1.537,-2.109],[10.009,-7.294],[11.67,0],[2.163,1.46],[-1.458,2.163],[-8.071,-5.448],[-10.408,0],[-0.84,0.612]],\"v\":[[-30.712,9.847],[-34.536,7.904],[-33.499,1.302],[0.788,-9.847],[33.361,0.099],[34.633,6.66],[28.073,7.932],[0.788,-0.396],[-27.934,8.941]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[250,273.902],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 2\",\"ix\":2,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,-5.22],[5.22,0],[0,5.22],[-5.22,0]],\"o\":[[0,5.22],[-5.22,0],[0,-5.22],[5.22,0]],\"v\":[[9.451,0],[0,9.451],[-9.451,0],[0,-9.451]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[212.197,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 2\",\"ix\":2,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,-5.22],[5.22,0],[0,5.22],[-5.22,0]],\"o\":[[0,5.22],[-5.22,0],[0,-5.22],[5.22,0]],\"v\":[[9.451,0],[0,9.451],[-9.451,0],[0,-9.451]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]}],\"ind\":2,\"parent\":1},{\"ty\":4,\"nm\":\"magnification glass\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":0,\"k\":[27,24,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":100,\"ix\":11}},\"ef\":[],\"shapes\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":3,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[14.17,-15.84],[0.87,-0.89],[25.14,0],[0,49.35],[-49.35,0],[0,-49.35]],\"o\":[[-0.82,0.93],[-16.27,16.75],[-49.35,0],[0,-49.35],[49.35,0],[0,22.88]],\"v\":[[39.949,35.36],[37.419,38.08],[-26.751,65.25],[-116.251,-24.25],[-26.751,-113.75],[62.749,-24.25]]},\"ix\":2}},{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 2\",\"ix\":2,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,0],[0,25.41],[60.93,0],[0,-60.93],[-60.93,0],[-19.48,17.2]],\"o\":[[14.48,-18.69],[0,-60.93],[-60.93,0],[0,60.93],[27.96,0],[0,0]],\"v\":[[60.639,43.3],[83.749,-24.25],[-26.751,-134.75],[-137.251,-24.25],[-26.751,86.25],[46.269,58.61]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]}],\"ind\":3,\"parent\":1}],\"ddd\":0,\"h\":500,\"w\":500,\"meta\":{\"a\":\"\",\"k\":\"\",\"d\":\"\",\"g\":\"LottieFiles AE 3.2.2\",\"tc\":\"#000000\"},\"v\":\"4.8.0\",\"fr\":60,\"op\":121,\"ip\":0,\"assets\":[]}'),eB=a(40472),eL=a(11444),eZ=a(99782),eO=e=>{let{song:t}=e,a=(0,eL.I0)(),[i,s,r]=t;console.log(i.toString());let l=async(e,t)=>{let n=Number(t[12].toString());try{a((0,eZ.SK)({uri:\"/api/hashsong/\".concat(n),isPlaying:!0,index:0,coverImage:t[5],title:t[3],artist:t[4]}))}catch(e){console.error(\"Error playing song:\",e),eC.A.error(\"Failed to play song. Please try again.\")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{className:\"relative flex\",children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:s[5],className:\"aspect-square rounded-md w-full h-full object-cover\",alt:s[3]})}),(0,n.jsx)(\"div\",{className:\"w-10 h-10 cursor-pointer bg-primary z-10 -bottom-3 -right-2 absolute rounded-full flex items-center justify-center text-white\",onClick:()=>{l(\"bafybeic5zcykf7fpg7c2zuf76p2gddegxlt64hbfp76qqs7l4l6yx3nraa\",s)},children:(0,n.jsx)(eB.Z,{})})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:s[3],children:s[3]}),(0,n.jsx)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:s[4]})]})]})},ez=e=>{let{playlist:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:t.image,className:\"aspect-square rounded-md w-full h-full object-cover\",alt:t.name})}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:t.name,children:t.name}),(0,n.jsx)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:t.creator})]})]})},eU=()=>{let{authenticated:e,ready:t}=(0,j.sv)(),{wallets:a}=(0,j.rB)(),i=a[0],[s,r]=(0,o.useState)([]),[l,d]=(0,o.useState)(!0),[p,u]=(0,o.useState)(!1),y=async e=>{if(!e){toast.error(\"Address is not provided\"),u(!0),d(!1);return}try{let t=await (null==i?void 0:i.getEthersProvider());if(!t)throw console.error(\"Provider is not available:\",t),Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw console.error(\"Signer is not available:\",a),Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),s=await n.getWalletTokensWithMetadata(e);console.log(s),r(s),d(!1)}catch(e){console.error(\"Error fetching songs:\",e),u(!0),d(!1)}};(0,o.useEffect)(()=>{t&&e&&(null==i?void 0:i.address)!==void 0&&(console.log(\"Wallet Address: \",i.address),y(i.address))},[i,t,e]);let x={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}};return(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:[(0,n.jsxs)(Y.E.div,{className:\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\",variants:x,children:[\"GM Ser!\",(0,n.jsx)(eF,{getSongs:y,w0:i})]}),(0,n.jsxs)(Y.E.div,{className:\"flex w-full gap-3 items-center\",variants:x,children:[(0,n.jsxs)(Y.E.div,{className:\"w-24 h-24 relative\",children:[(0,n.jsx)(\"img\",{src:\"/nft.avif\",className:\"rounded-lg\"}),(0,n.jsx)(Y.E.div,{className:\"w-6 h-6 flex items-center justify-center absolute bg-muted z-10 -bottom-2 -right-2 rounded-full cursor-pointer drop-shadow\",whileHover:{scale:1.1},whileTap:{scale:.9},children:(0,n.jsx)($.Z,{className:\"w-3\"})})]}),(0,n.jsxs)(Y.E.div,{className:\"flex flex-col gap-3\",variants:x,children:[(0,n.jsx)(et,{children:\"Username\"}),(0,n.jsx)(ea,{placeholder:\"Change username\",className:\"max-w-xs\"})]})]}),(0,n.jsx)(Y.E.div,{className:\"scroll-m-20 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\",variants:x,children:\"Your NFS's\"}),(0,n.jsx)(q.M,{children:l?(0,n.jsx)(Y.E.div,{className:\"grid place-items-center min-h-32\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:(0,n.jsx)(m,{})}):p?(0,n.jsx)(Y.E.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:\"Error loading songs\"}):0===s.length?(0,n.jsxs)(Y.E.div,{className:\"w-full h-32 flex items-center justify-center\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,n.jsx)(\"div\",{className:\"w-20 h-20\",children:(0,n.jsx)(eA(),{animationData:eD})}),(0,n.jsx)(\"p\",{className:\"text-muted-foreground\",children:\"No NFS's found!\"})]}):(0,n.jsx)(Y.E.div,{variants:x,children:(0,n.jsx)(en,{items:s,renderItem:e=>(0,n.jsx)(eO,{song:e}),containerId:\"scrollContainer-\".concat((0,ei.Z)())})})}),(0,n.jsx)(Y.E.div,{className:\"scroll-m-20 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\",variants:x,children:\"Your Playlist\"}),(0,n.jsx)(Y.E.div,{variants:x,children:(0,n.jsx)(en,{items:c,renderItem:e=>(0,n.jsx)(ez,{playlist:e}),containerId:\"scrollContainer-\".concat((0,ei.Z)())})})]})},eH=e=>{let{track:t,setSelectedLayout:a}=e;return(0,n.jsxs)(\"div\",{className:\"p-3 hover:bg-muted rounded-lg cursor-pointer\",onClick:()=>a(\"view-song/\".concat(t.id)),children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:t.cover,className:\"aspect-square rounded-md w-full h-full object-cover\",alt:t.title})}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:t.title,children:t.title}),(0,n.jsx)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:t.artist})]})]})},eV=e=>{let{playlist:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:t.image,className:\"aspect-square rounded-md w-full h-full object-cover\",alt:t.name})}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:t.name,children:t.name}),(0,n.jsxs)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:[t.tracks.length,\" songs\"]})]})]})},eG=e=>{let{setSelectedLayout:t,w0:a}=e,{authenticated:i,ready:s}=(0,j.sv)(),[r,l]=(0,o.useState)(\"\"),[d,p]=(0,o.useState)([]),[u,y]=(0,o.useState)(!0),[x,h]=(0,o.useState)(!0),f=async()=>{try{y(!0);let e=await (null==a?void 0:a.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,t),i=(await n.getAllTokensInfo()).map(e=>({id:e[0].toNumber(),title:e[1][3],artist:e[1][4],cover:e[1][5],price:e[1][0].toNumber(),owner:e[2]})).reverse();p(i)}catch(e){console.log(e)}finally{y(!1)}},g=async()=>{h(!0),setTimeout(()=>{h(!1)},1e3)};(0,o.useEffect)(()=>{s&&i&&(null==a?void 0:a.address)!==void 0&&(f(),g())},[a,s,i]);let v=(e,t)=>e.filter(e=>{let a=e.title||\"\",n=e.artist||\"\";return a.toLowerCase().includes(t.toLowerCase())||n.toLowerCase().includes(t.toLowerCase())}),b=v(d,r),w=v(c,r),N={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}};return(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide mt-2\",initial:\"hidden\",animate:\"visible\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},children:[(0,n.jsxs)(Y.E.div,{className:\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 sticky top-0 z-[50] bg-background w-full flex items-center justify-between\",variants:N,children:[\"Explore\",(0,n.jsx)(Y.E.div,{className:\"w-auto p-1\",whileHover:{scale:1.05},whileTap:{scale:.95},children:(0,n.jsx)(ea,{type:\"text\",placeholder:\"Search...\",value:r,onChange:e=>{l(e.target.value)}})})]}),(0,n.jsx)(Y.E.div,{variants:N,children:u?(0,n.jsx)(\"div\",{className:\"text-center h-32 grid place-items-center\",children:(0,n.jsx)(m,{})}):b.length>0?(0,n.jsx)(en,{items:b,renderItem:e=>(0,n.jsx)(eH,{track:e,setSelectedLayout:t}),containerId:\"scrollContainer-\".concat((0,ei.Z)())}):(0,n.jsx)(\"div\",{className:\"text-center\",children:\"No tracks found\"})}),(0,n.jsxs)(Y.E.div,{variants:N,children:[(0,n.jsx)(Y.E.div,{className:\"scroll-m-20 mb-5 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\",variants:N,children:\"Popular Playlists\"}),x?(0,n.jsx)(\"div\",{className:\"text-center h-32 grid place-items-center\",children:(0,n.jsx)(m,{})}):w.length>0?(0,n.jsx)(en,{items:w,renderItem:e=>(0,n.jsx)(eV,{playlist:e,setSelectedLayout:t}),containerId:\"scrollContainer-\".concat((0,ei.Z)())}):(0,n.jsx)(\"div\",{className:\"text-center\",children:\"No playlists found\"})]})]})};function e_(){return(0,n.jsxs)(er,{children:[(0,n.jsx)(el,{asChild:!0,children:(0,n.jsx)(L,{variant:\"outline\",className:\"dark:text-white\",children:\"Need MCX ?\"})}),(0,n.jsxs)(ec,{children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{children:\"Need some MusicX(MCX) Token?\"}),(0,n.jsx)(ey,{className:\"dark:text-white text-black\",children:\"Follow @0xabhii and DM your Polygon Amoy Wallet Address to receive 20 MusicX tokens!\"})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{children:\"Cancel\"}),(0,n.jsx)(ex,{onClick:()=>window.open(\"https://x.com/0xabhii\",\"_blank\"),children:\"Continue \"})]})]})]})}var eW=a(69824),eY=a(58789);function eq(e){let{metadata:t,songId:a,isowner:i}=e,[s,r]=(0,o.useState)(a),[l,d]=(0,o.useState)(\"\"),[c,p]=(0,o.useState)(\"\"),{authenticated:u,ready:m}=(0,j.sv)(),{wallets:y}=(0,j.rB)(),x=y[0],h=async()=>{try{let e=await (null==x?void 0:x.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let a=new eP.CH(eT,ek,t),n=await a.setRentInfo(s,l,c,{gasLimit:7e5});await n.wait(),console.log(\"Rent set successfully:\",n),eC.A.success(\"Rent set successfully!\")}catch(e){eC.A.error(\"Failed to set rent. Please try again.\"),console.error(\"Error setting rent:\",e)}},f=async()=>{try{let e=await (null==x?void 0:x.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let a=new eP.CH(eT,ek,t);if(i){let e=await a.rentNFT(s,{value:l,gasLimit:7e5});await e.wait(),console.log(\"NFT rentInfo updated successfully:\",e),eC.A.success(\"NFT rentInfo updated successfully!\")}else{let e=await a.rentNFT(s,{gasLimit:7e5});await e.wait(),console.log(\"NFT rented successfully:\",e),eC.A.success(\"NFT rented successfully!\")}}catch(e){eC.A.error(\"Failed to rent NFT. Please try again.\"),console.error(\"Error renting NFT:\",e)}};return(0,n.jsxs)(er,{children:[(0,n.jsx)(el,{asChild:!0,children:(0,n.jsx)(Y.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:\"mt-6 border dark:text-white text-black font-semibold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:-translate-y-1 hover:shadow-xl\",children:i?\"Set Rent\":\"Rent\"})}),(0,n.jsxs)(ec,{children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{children:i?\"Set Rent for \".concat(t.name):\"Rent \".concat(t.name)}),(0,n.jsx)(ey,{children:i?\"Set the rental parameters for your NFT. This action can be modified later.\":\"Rent this NFT for the specified duration.\"}),(0,n.jsxs)(\"div\",{className:\"space-y-4 mt-4\",children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"tokenId\",className:\"block text-sm font-medium text-gray-700\",children:\"Token ID\"}),(0,n.jsx)(ea,{id:\"tokenId\",value:s,onChange:e=>r(e.target.value),placeholder:\"Token ID\",className:\"mt-1\",readOnly:!0})]}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentPrice\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Price (in wei)\"}),(0,n.jsx)(ea,{id:\"rentPrice\",value:l,onChange:e=>d(e.target.value),placeholder:\"Rent Price\",className:\"mt-1\"})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentDuration\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Duration (in seconds)\"}),(0,n.jsx)(ea,{id:\"rentDuration\",value:c,onChange:e=>p(e.target.value),placeholder:\"Rent Duration\",className:\"mt-1\"})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentPrice\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Price\"}),(0,n.jsx)(ea,{id:\"rentPrice\",value:t.rentPrice||\"Not set\",className:\"mt-1\",readOnly:!0})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentDuration\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Duration\"}),(0,n.jsx)(ea,{id:\"rentDuration\",value:t.rentDuration||\"Not set\",className:\"mt-1\",readOnly:!0})]})]})]})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{children:\"Cancel\"}),(0,n.jsx)(ex,{onClick:i?h:f,children:i?\"Set Rent\":\"Rent Now\"})]})]})]})}var eX=e=>{let{selectedLayout:t,setSelectedLayout:a,getMusicXTokenBalance:i}=e,{authenticated:s,ready:r}=(0,j.sv)(),{wallets:l}=(0,j.rB)(),[d,c]=(0,o.useState)(!0),[p,u]=(0,o.useState)(!1),[y,x]=(0,o.useState)(!1),[h,f]=(0,o.useState)(!1),g=l[0],[v,b]=(0,o.useState)(null),w=t.split(\"view-song/\")[1],N=async e=>{try{c(!0);let t=await (null==g?void 0:g.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.getNFTMetadata(e);console.log(i);let s={id:i[0].toNumber(),isListed:i[1],price:i[0].toNumber(),name:i[3],description:i[4],imageUrl:i[5],audioUrl:i[6],isRentable:i[7],rentPrice:i[8].toNumber(),royaltyPercentage:i[9].toNumber(),creator:i[10],totalRents:i[11].toNumber(),createdAt:new Date().toLocaleDateString()};console.log(s);let r=await n.getRentableTokens();if(0===r.length){console.log(\"No rentable tokens\"),b({...s,rentPrice:0});return}console.log(r);let l=r[0][1],o={songName:l[3],songSymbol:l[4],imageUrl:l[5],isRentable:l[8],rentPrice:l[9].toString(),rentDuration:l[10],ownerAddress:l[11],rentStartTime:l[13]};console.log(o);let d=eY.fi(s.price.toString());console.log(d.toString()),b({...s,rentPrice:o.rentPrice})}catch(e){console.error(\"Error fetching song details:\",e),eC.A.error(\"Failed to fetch song details\")}finally{c(!1)}},T=async e=>{try{let t=await (null==g?void 0:g.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.ownershipInfo(e,g.address);console.log(i),f(i[0])}catch(e){console.error(\"Error fetching ownership info:\",e),eC.A.error(\"Failed to fetch ownership information\")}};console.log(w),(0,o.useEffect)(()=>{r&&s&&(null==g?void 0:g.address)!==void 0&&(T(w),N(w))},[w,r,s,null==g?void 0:g.address]);let k=async e=>{try{x(!0);let t=await (null==g?void 0:g.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=new eP.CH(eE,eS,a);if((await i.allowance(await a.getAddress(),eT)).lt(eY.fi(v.price.toString()))){u(!0);let e=await i.approve(eT,eY.fi(v.price.toString()),{gasLimit:3e5});await e.wait(1),u(!1)}let s=await n.buyNFT(e,{gasLimit:3e5});await s.wait(1),await N(e),eC.A.success(\"NFT purchased successfully!\")}catch(e){console.error(\"Error buying NFT:\",e),e.message.includes(\"ERC20: insufficient allowance\")||e.message.includes(\"user denied transaction signature\")?eC.A.error(\"You need to approve the contract to spend your tokens. Click the 'Approve' button to continue.\"):eC.A.error(\"Failed to purchase NFT. Please try again later.\")}finally{x(!1)}};return d?(0,n.jsx)(\"div\",{className:\"text-center mt-80 w-full grid place-items-center\",children:(0,n.jsx)(m,{})}):v?(0,n.jsxs)(\"div\",{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",children:[(0,n.jsxs)(Y.E.div,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.5},className:\"scroll-m-20 border-b pb-4 pt-2 text-3xl font-semibold tracking-tight sticky top-0 z-[50] bg-background w-full flex items-center gap-4\",children:[(0,n.jsx)(\"div\",{className:\"hover:bg-muted text-foreground p-1.5 cursor-pointer rounded-full\",onClick:()=>a(\"explore\"),children:(0,n.jsx)(eW.Vmf,{size:24,className:\"-rotate-90\"})}),\"Song Details\"]}),(0,n.jsxs)(\"div\",{className:\"flex flex-col md:flex-row gap-8 px-4 md:px-8\",children:[(0,n.jsx)(Y.E.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},className:\"w-full md:w-1/3\",children:(0,n.jsx)(\"img\",{src:v.imageUrl,alt:v.name,className:\"w-full h-auto rounded-lg shadow-lg hover:shadow-2xl transition-shadow duration-300\"})}),(0,n.jsxs)(Y.E.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},className:\"w-full md:w-2/3 space-y-4\",children:[(0,n.jsx)(\"h2\",{className:\"text-4xl font-bold text-primary\",children:v.name}),(0,n.jsxs)(\"p\",{className:\"text-xl text-muted-foreground\",children:[\"Creator: \",v.creator]}),(0,n.jsx)(\"p\",{className:\"text-muted-foreground\",children:v.description}),(0,n.jsxs)(\"div\",{className:\"grid grid-cols-2 gap-4 mt-6\",children:[(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Price\"}),(0,n.jsxs)(\"p\",{className:\"text-2xl font-semibold text-green-400\",children:[v.price,\" MSX\"]})]}),(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Royalty\"}),(0,n.jsxs)(\"p\",{className:\"text-2xl font-semibold text-yellow-400\",children:[v.royaltyPercentage,\"%\"]})]}),(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Rentable\"}),(0,n.jsx)(\"p\",{className:\"text-xl font-semibold text-blue-400\",children:v.isRentable?\"Yes\":\"No\"})]}),(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Rent Price\"}),(0,n.jsxs)(\"p\",{className:\"text-xl font-semibold text-pink-400\",children:[v.rentPrice,\" MSX\"]})]})]}),(0,n.jsxs)(\"p\",{className:\"text-muted-foreground mt-4\",children:[\"Created on: \",v.createdAt]}),console.log(w),v.creator!==g.address?(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3\",children:[v.isRentable&&(0,n.jsx)(eq,{metadata:v,songId:w,isowner:h}),!h&&v.isListed&&(0,n.jsx)(Y.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:\"mt-6 bg-primary hover:bg-purple-700 text-white font-semibold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:-translate-y-1 hover:shadow-xl\",onClick:()=>k(w),disabled:y||p,children:y?\"Purchasing...\":p?\"Approving...\":\"Purchase Now\"})]}):(0,n.jsx)(\"p\",{className:\"text-red-500\",children:\"You cannot purchase your own song. You are the creator of this\"})]})]})]}):(0,n.jsx)(\"div\",{className:\"text-center mt-8\",children:\"No song details available.\"})},eK=a(45282),eJ=a(80847),e$=()=>{let[e,t]=(0,o.useState)(\"https://images.tv9hindi.com/wp-content/uploads/2024/08/chin-tapak-dum-dum-1.png\"),[a,i]=(0,o.useState)(16/9),s=(0,eK.c)(0),r=(0,eK.c)(0),l=(0,eJ.H)(r,[-500,500],[5,-5]),d=(0,eJ.H)(s,[-500,500],[-5,5]);return(0,o.useEffect)(()=>{{let t=new window.Image;t.onload=()=>{i(t.width/t.height)},t.src=e}},[e]),(0,n.jsx)(\"div\",{className:\"w-full h-screen px-10 flex items-center justify-center overflow-hidden -mt-20\",onMouseMove:function(e){let t=e.currentTarget.getBoundingClientRect();s.set(e.clientX-t.left-t.width/2),r.set(e.clientY-t.top-t.height/2)},children:(0,n.jsxs)(Y.E.div,{className:\"w-full h-full flex flex-col items-center justify-center\",style:{rotateX:l,rotateY:d,perspective:1e3},initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},transition:{duration:1.5},children:[(0,n.jsxs)(Y.E.div,{className:\"relative\",whileHover:{scale:1.05},transition:{type:\"spring\",stiffness:300,damping:20},children:[(0,n.jsx)(Y.E.div,{className:\"absolute inset-0 bg-purple-500 rounded-full opacity-30 blur-xl\",animate:{scale:[1,1.2,1],rotate:[0,180,360]},transition:{duration:10,repeat:1/0,ease:\"linear\"}}),(0,n.jsx)(\"div\",{style:{width:\"min(80vw, \".concat(60*a,\"vh)\"),height:\"min(\".concat(80/a,\"vw, 60vh)\"),position:\"relative\"},children:(0,n.jsx)(\"img\",{src:e,alt:\"Home Page Image\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"},className:\"rounded-full shadow-2xl z-10 relative\"})}),(0,n.jsx)(Y.E.div,{className:\"absolute inset-0 rounded-full\",style:{background:\"linear-gradient(45deg, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%)\",zIndex:20},animate:{rotate:360},transition:{duration:20,repeat:1/0,ease:\"linear\"}})]}),(0,n.jsx)(Y.E.h1,{className:\"mt-8 text-4xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-600\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.8}})]})})},eQ=a(74697),e0=()=>{let[e,t]=(0,o.useState)([]),[a,i]=(0,o.useState)(!1),[s,r]=(0,o.useState)(\"\"),[l,d]=(0,o.useState)([]),[c,p]=(0,o.useState)(!1),[m,y]=(0,o.useState)(null),{authenticated:x,ready:h}=(0,j.sv)(),{wallets:f}=(0,j.rB)(),g=f[0],v=async a=>{a.preventDefault(),p(!0),y(null);try{let a=e.map(e=>e.id),{data:n}=await eN.Z.post(\"/api/playlist\",{playName:s,playArray:a,rentalAdd:g.address});console.log(\"Playlist created:\",n),eC.A.success(\"Playlist created successfully!\"),i(!1),r(\"\"),t([])}catch(e){var n,l;console.error(\"Error creating playlist:\",e),y((null===(l=e.response)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:n.message)||\"Failed to create playlist. Please try again.\"),eC.A.error(\"Failed to create playlist. Please try again.\")}finally{p(!1)}},b=async()=>{try{let e=await (null==g?void 0:g.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let a=new eP.CH(eT,ek,t),n=await a.getWalletPurchasedNFTs(g.address);console.log(n);let i=n.map(e=>a.nftMetadata(e)),s=(await Promise.all(i)).map((e,t)=>({id:t,title:e[3],description:e[4],image:e[5]}));d(s)}catch(e){console.error(\"Error fetching purchased songs:\",e)}};(0,o.useEffect)(()=>{h&&x&&(null==g?void 0:g.address)!==void 0&&b()},[h,x,null==g?void 0:g.address]);let w=e=>{t(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])};return(0,n.jsxs)(er,{open:a,onOpenChange:e=>i(e),children:[(0,n.jsx)(el,{asChild:!0,children:(0,n.jsx)(Y.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:\"bg-primary hover:bg-primary/70 text-white font-bold py-2 px-4 rounded-full shadow-lg\",children:\"Create Playlist\"})}),(0,n.jsxs)(ec,{className:\"max-w-md bg-gradient-to-br from-gray-50 to-gray-100\",children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{className:\"text-2xl font-bold text-gray-800\",children:\"Create New Playlist\"}),(0,n.jsx)(ey,{className:\"text-gray-600\",children:\"Craft your perfect playlist by adding a name and selecting your favorite tracks.\"}),(0,n.jsxs)(\"div\",{className:\"mt-6 space-y-6\",children:[(0,n.jsxs)(\"div\",{className:\"space-y-2\",children:[(0,n.jsx)(\"label\",{htmlFor:\"playlist-name\",className:\"text-sm font-medium text-gray-700\",children:\"Playlist Name\"}),(0,n.jsx)(ea,{id:\"playlist-name\",placeholder:\"Enter playlist name\",value:s,onChange:e=>r(e.target.value),className:\"border-gray-300 focus:ring-purple-500 focus:border-purple-500\"})]}),m&&(0,n.jsx)(\"div\",{className:\"text-red-500 text-sm mt-2\",children:m}),(0,n.jsxs)(\"div\",{className:\"space-y-2\",children:[(0,n.jsx)(\"h4\",{className:\"text-sm font-medium text-gray-700\",children:\"Select Audio Tracks:\"}),(0,n.jsx)(\"div\",{className:\"max-h-48 overflow-y-auto overflow-x-hidden border border-gray-200 rounded-md bg-white\",children:l.map(t=>(0,n.jsxs)(Y.E.div,{className:\"flex items-center p-3 cursor-pointer \".concat(e.some(e=>e.id===t.id)?\"bg-purple-100\":\"hover:bg-gray-50\"),onClick:()=>w(t),whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,n.jsx)(\"img\",{src:t.image,alt:t.title,className:\"w-12 h-12 object-cover rounded-md mr-3\"}),(0,n.jsxs)(\"div\",{className:\"flex-grow\",children:[(0,n.jsx)(\"h3\",{className:\"text-sm font-medium text-gray-800\",children:t.title}),(0,n.jsx)(\"p\",{className:\"text-xs text-gray-500\",children:t.description})]}),e.some(e=>e.id===t.id)&&(0,n.jsx)(S.Z,{className:\"h-5 w-5 text-purple-500 ml-2\"})]},t.id))})]}),(0,n.jsx)(q.M,{children:e.length>0&&(0,n.jsxs)(Y.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:\"space-y-2 max-h-24 overflow-y-auto\",children:[(0,n.jsx)(\"h4\",{className:\"text-sm font-medium text-gray-700\",children:\"Selected Tracks:\"}),(0,n.jsx)(\"div\",{className:\"flex flex-wrap gap-2\",children:e.map(e=>(0,n.jsxs)(Y.E.div,{className:\"bg-purple-100 text-purple-800 text-sm font-medium px-3 py-1 rounded-full flex items-center\",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},children:[e.title,(0,n.jsx)(eQ.Z,{className:\"h-4 w-4 ml-2 cursor-pointer text-purple-600 hover:text-purple-800\",onClick:t=>{t.stopPropagation(),w(e)}})]},e.id))})]})})]})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{className:\"bg-gray-200 text-gray-800 hover:bg-gray-300\",children:\"Cancel\"}),(0,n.jsx)(ex,{className:\"bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600\",disabled:!s||0===e.length,onClick:v,children:c?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.Z,{className:\"animate-spin text-white w-20\"})}):\"Create Playlist\"})]})]})]})},e2=a(40933),e1=a(51077),e5=a(97334),e6=a.n(e5);let e3=e=>{let{song:t,isPlaying:a,onPlay:i}=e;return(0,n.jsxs)(Y.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:\"bg-white rounded-lg shadow-md overflow-hidden flex items-center p-4 mb-4 hover:shadow-lg transition-shadow duration-300\",children:[(0,n.jsx)(\"img\",{src:t.imageUrl,alt:t.name,className:\"w-16 h-16 rounded-md object-cover mr-4\"}),(0,n.jsxs)(\"div\",{className:\"flex-grow\",children:[(0,n.jsx)(\"h3\",{className:\"text-lg font-semibold mb-1\",children:t.name}),(0,n.jsx)(\"p\",{className:\"text-sm text-gray-600 line-clamp-1\",children:t.description})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center space-x-4\",children:[(0,n.jsxs)(\"div\",{className:\"text-right\",children:[(0,n.jsxs)(\"p\",{className:\"text-sm text-gray-500 flex items-center\",children:[(0,n.jsx)(e2.Z,{className:\"w-4 h-4 mr-1\"}),\" \",t.rentDuration.toString(),\" \",\"days\"]}),(0,n.jsxs)(\"p\",{className:\"text-sm text-gray-500 flex items-center\",children:[(0,n.jsx)(e1.Z,{className:\"w-4 h-4 mr-1\"}),\" \",eY.dF(t.price),\" MSX\"]})]}),(0,n.jsx)(L,{onClick:()=>i(t.cid,t),size:\"sm\",variant:a?\"default\":\"outline\",className:\"min-w-[40px]\",children:a?(0,n.jsx)(s.Z,{className:\"h-4 w-4\"}):(0,n.jsx)(eB.Z,{className:\"h-4 w-4\"})})]})]})};var e4=()=>{let{ready:e,authenticated:t}=(0,j.sv)(),{wallets:a}=(0,j.rB)(),i=a[0],[s,r]=(0,o.useState)(null),[l,d]=(0,o.useState)([]),[c,p]=(0,o.useState)(null),u=async e=>{try{let t=await (null==i?void 0:i.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),s=e.map(async e=>{let t=await n.getNFTMetadata(e);return{tokenId:e,price:t[0],name:t[3],description:t[4],imageUrl:t[5],rentPrice:t[8],rentDuration:t[9],owner:t[10],cid:t[12].toString()}}),r=await Promise.all(s);d(r)}catch(e){console.error(\"Error fetching metadata:\",e)}},m=async()=>{try{let{data:e}=await eN.Z.get(\"/api/getPlaylist/\".concat(i.address));if(console.log(\"Playlist data:\",e),r(e),e.playlistame&&e.playlistame.length>0){let t=e.playlistame[0],a=e.Randomsalt;console.log(\"Sending to backend:\",{playlistName:t,random:a});try{let e=await eN.Z.post(\"/api/getSound\",e6().stringify({random:a,playName:t}),{headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"}});if(console.log(\"Response from getSound:\",e.data),e.data.playlistData){let t=e.data.playlistData.split(\",\").map(Number);await u(t)}}catch(e){console.error(\"Error sending data:\",e)}}else console.log(\"No playlists found\")}catch(e){console.error(\"Error fetching playlist:\",e)}},y=(0,eL.I0)(),x=(e,t)=>{console.log(e);let a=Number(e);console.log(a),console.log(t),y((0,eZ.SK)({uri:\"/api/hashsong/\".concat(a),isPlaying:!0,index:0,coverImage:t.imageUrl,title:t.name,artist:t.description}))};return((0,o.useEffect)(()=>{e&&t&&(null==i?void 0:i.address)!==void 0&&m()},[i,e,t]),e&&t&&(null==i?void 0:i.address)!==void 0)?(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:[(0,n.jsx)(Y.E.div,{className:\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\",variants:{hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}},children:s&&s.playlistame&&s.playlistame.length>0?s.playlistame[0]:\"Your Playlist\"}),(0,n.jsx)(\"div\",{className:\"container mx-auto px-4 py-8 max-w-3xl\",children:(0,n.jsx)(Y.E.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},children:s&&s.playlistame&&s.playlistame.length>0?(0,n.jsx)(\"div\",{children:l.length>0?(0,n.jsx)(\"div\",{className:\"space-y-4\",children:l.map(e=>(0,n.jsx)(e3,{song:e,isPlaying:c===e.tokenId,onPlay:x},e.tokenId))}):(0,n.jsx)(\"p\",{className:\"text-xl text-center text-gray-600\",children:\"No tracks in this playlist yet.\"})}):(0,n.jsxs)(\"div\",{className:\"text-center\",children:[(0,n.jsx)(\"h2\",{className:\"text-3xl font-bold mb-4\",children:\"No Playlists Yet\"}),(0,n.jsx)(\"p\",{className:\"text-xl text-gray-600 mb-4\",children:\"Create your first playlist to get started!\"}),(0,n.jsx)(\"p\",{className:\"mb-8 max-w-md mx-auto text-gray-500\",children:\"Note: you can only create playlist when you have at least one track purchased.\"}),(0,n.jsx)(e0,{})]})})})]}):(0,n.jsx)(\"div\",{children:\"Loading...\"})},e8=()=>{let[e,t]=(0,o.useState)([]),[a,i]=(0,o.useState)(!0),[r,l]=(0,o.useState)(null),[d,c]=(0,o.useState)({}),{authenticated:p,ready:m}=(0,j.sv)(),{wallets:y}=(0,j.rB)(),x=y[0],h=(0,eL.I0)(),f=async()=>{try{let e=await (null==x?void 0:x.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let a=await e.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.getWalletPurchasedNFTs(x.address),s=i.map(e=>n.nftMetadata(e)),r=(await Promise.all(s)).map((e,t)=>({id:i[t].toString(),tokenId:e[2],title:e[3],description:e[4],image:e[5],price:e[0],rentPrice:e[8],rentDuration:e[9],owner:e[10],cid:e[12].toString()}));t(r)}catch(e){console.error(\"Error fetching purchased songs:\",e),eC.A.error(\"Failed to fetch purchased songs. Please try again.\")}finally{i(!1)}};(0,o.useEffect)(()=>{m&&p&&(null==x?void 0:x.address)&&f()},[m,p,null==x?void 0:x.address]);let g=e=>{let t=Number(e.cid);console.log(t),h((0,eZ.SK)({uri:\"/api/hashsong/\".concat(t),isPlaying:!0,index:0,coverImage:e.image,title:e.title,artist:e.description})),l(r===e.id?null:e.id)};return m&&p&&(null==x?void 0:x.address)?(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:[(0,n.jsx)(Y.E.div,{className:\"mt-10 scroll-m-20 mb-6 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\",variants:{hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}},children:\"Your Purchased Songs\"}),a?(0,n.jsx)(\"div\",{className:\"flex justify-center items-center h-64\",children:(0,n.jsx)(u.Z,{className:\"animate-spin text-purple-500 w-8 h-8\"})}):e.length>0?(0,n.jsx)(\"div\",{className:\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 p-6\",children:e.map(e=>(0,n.jsxs)(Y.E.div,{className:\"bg-white rounded-xl border overflow-hidden hover:shadow-xl transition-all duration-300\",whileHover:{y:-5,scale:1.02},children:[(0,n.jsxs)(\"div\",{className:\"aspect-w-1 aspect-h-1 relative\",children:[!d[e.id]&&(0,n.jsx)(\"div\",{className:\"absolute inset-0 flex items-center justify-center bg-gray-100\",children:(0,n.jsx)(u.Z,{className:\"animate-spin text-purple-500 w-10 h-10\"})}),console.log(e),(0,n.jsx)(\"img\",{src:e.image,alt:e.title,className:\"w-full h-full object-cover aspect-square transition-opacity duration-300 \".concat(d[e.id]?\"opacity-100\":\"opacity-0\"),onLoad:()=>c(t=>({...t,[e.id]:!0})),onError:t=>{console.error(\"Image load error:\",t),t.target.onerror=null,t.target.src=\"/path/to/default-image.jpg\",c(t=>({...t,[e.id]:!0}))}})]}),(0,n.jsxs)(\"div\",{className:\"p-3\",children:[(0,n.jsx)(\"h3\",{className:\"text-xl font-bold text-gray-800 mb-1 truncate\",children:e.title}),(0,n.jsx)(\"p\",{className:\"text-gray-600 text-sm mb-4 line-clamp-2\",children:e.description}),(0,n.jsxs)(\"div\",{className:\"flex items-center justify-between\",children:[(0,n.jsx)(\"span\",{className:\"text-sm text-purple-600 font-medium\",children:T(e.owner,4,4)||\"Unknown Artist\"}),(0,n.jsx)(L,{onClick:()=>g(e),size:\"sm\",variant:r===e.id?\"default\":\"outline\",className:\"rounded-full hover:bg-purple-100 hover:text-black transition-colors\",children:r===e.id?(0,n.jsx)(s.Z,{className:\"h-5 w-5 text-white\"}):(0,n.jsx)(eB.Z,{className:\"h-5 w-5 text-purple-700\"})})]})]})]},e.id))}):(0,n.jsxs)(\"div\",{className:\"text-center text-gray-600\",children:[(0,n.jsx)(_.Z,{className:\"mx-auto text-gray-400 w-16 h-16 mb-4\"}),(0,n.jsx)(\"p\",{className:\"text-xl\",children:\"You haven't purchased any songs yet.\"})]})]}):(0,n.jsx)(\"div\",{className:\"flex justify-center items-center h-64\",children:(0,n.jsx)(u.Z,{className:\"animate-spin text-purple-500 w-8 h-8\"})})};function e9(e){let{w0:t,selectedMode:a,setSelectedMode:i,selectedLayout:s,setSelectedLayout:r}=e,{authenticated:l,ready:d}=(0,j.sv)(),p=(0,eL.I0)(),[u,y]=(0,o.useState)(0),x=(0,eL.v9)(e=>e.musicPlayer),[h,f]=(0,o.useState)(0),[g,N]=(0,o.useState)(!0),[T,k]=(0,o.useState)([]),E=async e=>{N(!0);try{let a=await (null==t?void 0:t.getEthersProvider());if(!a)throw Error(\"Provider is not available\");let n=await a.getSigner();if(!n)throw Error(\"Signer is not available\");let i=new eP.CH(eE,eS,n),s=await i.balanceOf(e);f(s.toString())}catch(e){console.error(\"Error fetching MusicX balance:\",e),f(0)}finally{N(!1)}},S=async()=>{try{let e=await (null==t?void 0:t.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let a=await e.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a);console.log(\"hdbs\");let i=await n.getWalletPurchasedNFTs(t.address),s=i.map(e=>n.nftMetadata(e));console.log(s);let r=(await Promise.all(s)).map((e,t)=>({id:i[t].toString(),title:e[3],description:e[4],image:e[5],cid:e[12].toString()}));k(r)}catch(e){console.error(\"Error fetching purchased songs:\",e)}};(0,o.useEffect)(()=>{d&&l&&(null==t?void 0:t.address)!==void 0&&(console.log(\"Wallet Address: \",t.address),E(t.address),S())},[t,d,l,a]);let P=e=>{let{title:t,artist:a,soundUri:n,cover:i}=e;p((0,eZ.SK)({uri:n,isPlaying:!0,index:0,coverImage:i,title:t,artist:a}))},C=[{name:\"Home\",icon:K.In4},{name:\"Explore\",icon:J.Mam},{name:\"Profile\",icon:X.Z},{name:\"Playlist\",icon:eb.Dk$},{name:\"My Songs\",icon:_.Z}],R=e=>{r(e.toLowerCase())};return(0,n.jsxs)(v,{direction:\"horizontal\",children:[(0,n.jsxs)(b,{defaultSize:50,children:[(0,n.jsxs)(Y.E.div,{className:\"w-full p-6 dark:bg-muted/10 bg-muted border-b flex items-center justify-between\",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:[(0,n.jsx)(Y.E.div,{className:\"flex items-center gap-3\",initial:{x:-20,opacity:0},animate:{x:0,opacity:1},transition:{delay:.2},children:(0,n.jsx)(\"p\",{className:\"\",children:\"OwnSound\"})}),(0,n.jsx)(q.M,{mode:\"wait\",children:g?(0,n.jsx)(Y.E.div,{className:\"grid items-center justify-end\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},children:(0,n.jsx)(\"div\",{className:\"flex\",children:(0,n.jsx)(m,{noWidth:!0})})},\"loader\"):h<=0?(0,n.jsx)(Y.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},children:(0,n.jsx)(e_,{})},\"contact\"):(0,n.jsxs)(Y.E.div,{className:\"flex items-center gap-2 font-semibold text-primary\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},children:[(0,n.jsx)(Y.E.p,{className:\"text-primary\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:\"0\"===h?\"0\":h.slice(0,-18)}),(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.4,type:\"spring\",stiffness:200},children:(0,n.jsx)(I.default,{src:\"/icons/token-coin.svg\",width:25,height:25,alt:\"coin\"})})]},\"balance\")})]}),(0,n.jsx)(Y.E.div,{className:\"flex flex-col space-y-6 p-4 mt-4\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,staggerChildren:.1},children:C.map((e,t)=>{let a=e.icon;return(0,n.jsxs)(Y.E.div,{className:\"flex items-center space-x-2 cursor-pointer transition-transform transform \".concat(s===e.name.toLowerCase()?\"text-primary\":\"text-muted-foreground\"),onClick:()=>R(e.name),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6+.1*t},whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,n.jsx)(a,{className:\"h-6 w-6\"}),(0,n.jsx)(\"span\",{children:e.name})]},e.name)})})]}),(0,n.jsx)(w,{}),(0,n.jsx)(b,{defaultSize:120,children:(0,n.jsxs)(\"div\",{className:\"p-6\",children:[\"home\"===s&&(0,n.jsx)(\"div\",{className:\"mt-10\",children:(0,n.jsx)(e$,{})}),\"song\"===s&&(0,n.jsx)(\"div\",{className:\"h-full flex items-center justify-center mt-10\",children:(0,n.jsx)(\"img\",{src:x.coverImage||\"/nft.avif\",width:600,height:600,className:\"rounded-lg drop-shadow-md aspect-square\"})}),\"profile\"===s&&(0,n.jsx)(eU,{}),\"explore\"===s&&(0,n.jsx)(eG,{setSelectedLayout:r,w0:t}),s.includes(\"view-song\")&&(0,n.jsx)(eX,{selectedLayout:s,setSelectedLayout:r,getMusicXTokenBalance:E}),\"playlist\"===s&&(0,n.jsx)(e4,{selectedLayout:s,setSelectedLayout:r}),\"my songs\"===s&&(0,n.jsx)(e8,{selectedLayout:s,setSelectedLayout:r})]})}),(0,n.jsx)(w,{}),(0,n.jsx)(b,{defaultSize:50,children:(0,n.jsx)(v,{direction:\"vertical\",children:(0,n.jsxs)(b,{defaultSize:75,children:[(0,n.jsx)(H,{w0:t}),(0,n.jsxs)(\"div\",{className:\"p-6 flex items-center gap-4\",children:[(0,n.jsx)(G,{className:\"songs\"===a?\"bg-primary text-white cursor-pointer\":\"bg-transparent text-foreground hover:bg-muted cursor-pointer\",onClick:()=>i(\"songs\"),children:\"Songs\"}),(0,n.jsx)(G,{className:\"playlists\"===a?\"bg-primary text-white cursor-pointer\":\"bg-transparent text-foreground hover:bg-muted cursor-pointer\",onClick:()=>i(\"playlists\"),children:\"Playlists\"})]}),(0,n.jsx)(\"div\",{className:\"h-[85vh] overflow-y-auto scrollbar-hide\",children:\"playlists\"===a?(0,n.jsx)(e7,{playlists:c,clickedIdx:u,handleSelectedMusicPlay:P,setClickedIdx:y}):(0,n.jsx)(te,{purchasedSongs:T,clickedIdx:u,handleSelectedMusicPlay:P,setClickedIdx:y})})]})})})]})}let e7=e=>{let{playlists:t,clickedIdx:a,setClickedIdx:r,handleSelectedMusicPlay:l}=e,[d,c]=(0,o.useState)(null),p=e=>{c(e)},u={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},m={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}};return(0,n.jsx)(Y.E.div,{className:\"px-6\",variants:u,initial:\"hidden\",animate:\"visible\",children:(0,n.jsx)(q.M,{mode:\"wait\",children:d?(0,n.jsxs)(Y.E.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{type:\"spring\",stiffness:300,damping:30},className:\"space-y-4\",children:[(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 mb-6\",children:[(0,n.jsx)(Y.E.div,{whileHover:{scale:1.1},whileTap:{scale:.9},children:(0,n.jsx)(W.Z,{className:\"w-4 h-4 cursor-pointer\",onClick:()=>c(null)})}),(0,n.jsx)(Y.E.h2,{className:\"text-xl font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:d.name})]}),(0,n.jsx)(Y.E.div,{variants:u,initial:\"hidden\",animate:\"visible\",className:\"space-y-4\",children:d.tracks.map((e,t)=>(0,n.jsxs)(Y.E.div,{variants:m,whileHover:{scale:1.02},className:\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border\",children:[(0,n.jsxs)(\"div\",{className:\"w-full flex items-center gap-4\",children:[(0,n.jsx)(Y.E.img,{src:e.cover,alt:e.title,className:\"w-12 h-12 rounded-md\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{className:\"font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:e.title}),(0,n.jsx)(Y.E.p,{className:\"text-sm text-gray-500\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:e.artist})]})]}),(0,n.jsx)(\"div\",{className:\"grid place-items-center\",children:(0,n.jsx)(Y.E.div,{className:\"rounded-full p-1.5 bg-primary cursor-pointer\",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>{l(t),r(t)},children:(0,n.jsx)(q.M,{mode:\"wait\",children:a===t?(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(s.Z,{className:\"w-3 h-3 text-white\"})},\"pause\"):(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(i.Z,{className:\"w-3 h-3 text-white\"})},\"play\")})})})]},t))})]},\"playlist\"):(0,n.jsx)(Y.E.div,{variants:u,className:\"space-y-4\",children:t.map((e,t)=>(0,n.jsx)(Y.E.div,{variants:m,whileHover:{scale:1.02},className:\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border cursor-pointer\",onClick:()=>p(e),children:(0,n.jsxs)(\"div\",{className:\"w-full flex items-center gap-4\",children:[(0,n.jsx)(Y.E.img,{src:e.image,alt:\"cover\",className:\"w-12 h-12 rounded-md\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{className:\"font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:e.name}),(0,n.jsxs)(Y.E.p,{className:\"text-sm text-gray-500\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:[e.tracks.length,\" songs\"]})]})]})},t))},\"playlists\")})})},te=e=>{let{purchasedSongs:t,clickedIdx:a,setClickedIdx:r,handleSelectedMusicPlay:l}=e;console.log(t);let o={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}};return(0,n.jsx)(Y.E.div,{className:\"px-6 space-y-4\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:t.length>0?t.map((e,t)=>(0,n.jsxs)(Y.E.div,{variants:o,whileHover:{scale:1.02},className:\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border\",children:[(0,n.jsxs)(\"div\",{className:\"w-full flex items-center gap-4\",children:[(0,n.jsx)(Y.E.img,{src:e.image,alt:e.title,className:\"w-12 h-12 rounded-md object-cover\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{className:\"font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:e.title}),(0,n.jsx)(Y.E.p,{className:\"text-sm text-gray-500\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:e.description})]})]}),(0,n.jsx)(\"div\",{className:\"grid place-items-center\",children:(0,n.jsx)(Y.E.div,{className:\"rounded-full p-1.5 bg-primary cursor-pointer\",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>{l({title:e.title,artist:e.description,soundUri:\"/api/hashsong/\".concat(Number(e.cid)),cover:e.image}),r(t)},children:(0,n.jsx)(q.M,{mode:\"wait\",children:a===t?(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(s.Z,{className:\"w-3 h-3 text-white\"})},\"pause\"):(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(i.Z,{className:\"w-3 h-3 text-white\"})},\"play\")})})})]},e.id)):(0,n.jsx)(Y.E.div,{variants:o,className:\"text-center text-gray-500 py-8\",children:\"No purchased songs found.\"})})};var tt=a(87138),ta=()=>{let e=(0,eL.v9)(e=>e.musicPlayer),[t,a]=(0,o.useState)(\"home\"),[i,s]=(0,o.useState)(\"songs\"),{ready:r,authenticated:l,login:d}=(0,j.sv)(),{wallets:c}=(0,j.rB)(),u=c[0];return r?l?(0,n.jsxs)(\"div\",{className:\"h-screen\",children:[(0,n.jsx)(e9,{w0:u,musicPlayer:e,selectedMode:i,setSelectedMode:s,selectedLayout:t,setSelectedLayout:a}),(0,n.jsxs)(Y.E.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:\"spring\",stiffness:300,damping:30},className:\"fixed w-full bottom-0 border-t p-4 bg-background backdrop-blur-xl grid grid-cols-3\",children:[(0,n.jsx)(q.M,{children:(0,n.jsxs)(Y.E.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},className:\"flex gap-3 items-center z-50\",children:[(0,n.jsx)(Y.E.img,{src:e.coverImage||\"/nft.avif\",alt:\"cover\",className:\"w-12 h-12 rounded-md\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},className:\"font-semibold\",children:e.title||\"Yo! Click on music to play\"}),(0,n.jsx)(Y.E.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:\"text-sm\",children:e.artist||\"Follow Qoneqt on instagram\"})]})]})}),(0,n.jsx)(Y.E.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.1},className:\"w-[36rem] h-full\",children:(0,n.jsx)(\"div\",{children:(0,n.jsx)(p,{url:e.uri,musicPlayer:e})})}),(0,n.jsx)(\"div\",{})]})]}):(0,n.jsxs)(\"div\",{className:\"relative flex min-h-screen flex-col items-center justify-center p-3.5\",children:[(0,n.jsxs)(\"main\",{className:\"flex flex-col items-center gap-y-9\",children:[(0,n.jsxs)(\"div\",{className:\"max-w-lg space-y-3.5 text-center\",children:[(0,n.jsx)(\"h1\",{className:\"text-5xl font-semibold tracking-tight md:text-7xl\",children:\"OwnSound\"}),(0,n.jsx)(\"p\",{className:\"md:text-balance text-muted-foreground md:text-xl\",children:\"Encrypted Melodies Unlimited Possibilities. Leveraging MusicX, Polygon, Inco & The Graph.\"})]}),(0,n.jsx)(\"div\",{className:\"flex items-center gap-3.5\",children:(0,n.jsx)(L,{onClick:d,children:\"Connect Wallet\"})})]}),(0,n.jsxs)(\"footer\",{className:\"absolute bottom-3.5 mx-auto flex items-center gap-[0.5ch] text-center text-muted-foreground\",children:[(0,n.jsx)(\"span\",{children:\"Powered by\"}),(0,n.jsx)(tt.default,{href:\"https://qoneqt.com/\",target:\"_blank\",className:\"group flex items-center text-primary font-semibold gap-[0.5ch] underline-offset-4 hover:underline\",children:\"Qoneqt.\"})]})]}):(0,n.jsx)(\"div\",{className:\"w-full grid items-center justify-center min-h-screen\",children:(0,n.jsx)(m,{})})}},99782:function(e,t,a){\"use strict\";a.d(t,{SK:function(){return l}});let n=(0,a(66862).oM)({name:\"musicPlayer\",initialState:{uri:\"/audio/chin-tapak-dum-dum.mp3\",isPlaying:!0,index:0,coverImage:\"\",title:\"\",artist:\"\"},reducers:{setUri:(e,t)=>{e.uri=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIndex:(e,t)=>{e.index=t.payload},setMusicPlayer:(e,t)=>({...e,...t.payload})}}),{setUri:i,setIsPlaying:s,setIndex:r,setMusicPlayer:l}=n.actions;t.ZP=n.reducer}},function(e){e.O(0,[269,764,51,452,505,240,994,614,705,202,112,971,23,744],function(){return e(e.s=84285)}),_N_E=e.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/dc112a36-9245e58b51327391.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{71451:function(module,exports,__webpack_require__){\"undefined\"!=typeof navigator&&function(t,e){module.exports=e()}(0,function(){\"use strict\";var svgNS=\"http://www.w3.org/2000/svg\",locationHref=\"\",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,s,r=t.length;for(i=0;i<r;i+=1)for(var a in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,a)&&(e.prototype[a]=s[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,s=0,r=[];switch(t){case\"int16\":case\"uint8c\":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)r.push(i);return r}function e(e,i){return\"float32\"===e?new Float32Array(i):\"int16\"===e?new Int16Array(i):\"uint8c\"===e?new Uint8ClampedArray(i):t(e,i)}return\"function\"==typeof Uint8ClampedArray&&\"function\"==typeof Float32Array?e:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1=\"\",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=[\"abs\",\"acos\",\"acosh\",\"asin\",\"asinh\",\"atan\",\"atanh\",\"atan2\",\"ceil\",\"cbrt\",\"expm1\",\"clz32\",\"cos\",\"cosh\",\"exp\",\"floor\",\"fround\",\"hypot\",\"imul\",\"log\",\"log1p\",\"log2\",\"log10\",\"max\",\"min\",\"pow\",\"random\",\"round\",\"sign\",\"sin\",\"sinh\",\"sqrt\",\"tan\",\"tanh\",\"trunc\",\"E\",\"LN10\",\"LN2\",\"LOG10E\",\"LOG2E\",\"PI\",\"SQRT1_2\",\"SQRT2\"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if(\"object\"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position=\"absolute\",t.style.top=0,t.style.left=0,t.style.display=\"block\",t.style.transformOrigin=\"0 0\",t.style.webkitTransformOrigin=\"0 0\",t.style.backfaceVisibility=\"visible\",t.style.webkitBackfaceVisibility=\"visible\",t.style.transformStyle=\"preserve-3d\",t.style.webkitTransformStyle=\"preserve-3d\",t.style.mozTransformStyle=\"preserve-3d\"}function BMEnterFrameEvent(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type=\"renderFrameError\",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type=\"configError\",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return t+=1,idPrefix$1+\"__lottie_element_\"+t}}();function HSVtoRGB(t,e,i){var s,r,a,n,o,h,l,p;switch(n=Math.floor(6*t),o=6*t-n,h=i*(1-e),l=i*(1-o*e),p=i*(1-(1-o)*e),n%6){case 0:s=i,r=p,a=h;break;case 1:s=l,r=i,a=h;break;case 2:s=h,r=i,a=p;break;case 3:s=h,r=l,a=i;break;case 4:s=p,r=h,a=i;break;case 5:s=i,r=h,a=l}return[s,r,a]}function RGBtoHSV(t,e,i){var s,r=Math.max(t,e,i),a=Math.min(t,e,i),n=r-a,o=0===r?0:n/r,h=r/255;switch(r){case a:s=0;break;case t:s=(e-i+n*(e<i?6:0))/(6*n);break;case e:s=(i-t+2*n)/(6*n);break;case i:s=(t-e+4*n)/(6*n)}return[s,o,h]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?\"0\"+e:e;return function(t,e,s){return t<0&&(t=0),e<0&&(e=0),s<0&&(s=0),\"#\"+i[t]+i[e]+i[s]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var dataManager=function(){var t,e,i=1,s=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function n(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob([\"var _workerSelf = self; self.onmessage = \",e.toString()],{type:\"text/javascript\"});return new Worker(URL.createObjectURL(i))}return t=e,r}function o(){e||((e=n(function(t){function e(){function t(e,i){var n,o,h,l,p,f,c=e.length;for(o=0;o<c;o+=1)if(\"ks\"in(n=e[o])&&!n.completed){if(n.completed=!0,n.hasMask){var u=n.masksProperties;for(h=0,l=u.length;h<l;h+=1)if(u[h].pt.k.i)a(u[h].pt.k);else for(p=0,f=u[h].pt.k.length;p<f;p+=1)u[h].pt.k[p].s&&a(u[h].pt.k[p].s[0]),u[h].pt.k[p].e&&a(u[h].pt.k[p].e[0])}0===n.ty?(n.layers=s(n.refId,i),t(n.layers,i)):4===n.ty?r(n.shapes):5===n.ty&&m(n)}}function e(e,i){if(e){var r=0,a=e.length;for(r=0;r<a;r+=1)1===e[r].t&&(e[r].data.layers=s(e[r].data.refId,i),t(e[r].data.layers,i))}}function i(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}function s(t,e){var s=i(t,e);return s?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function r(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if(\"sh\"===t[e].ty){if(t[e].ks.k.i)a(t[e].ks.k);else for(i=0,s=t[e].ks.k.length;i<s;i+=1)t[e].ks.k[i].s&&a(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&a(t[e].ks.k[i].e[0])}else\"gr\"===t[e].ty&&r(t[e].it)}function a(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split(\".\"):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),h=function(){var t=[4,7,99];return function(e){if(e.chars&&!n(t,e.v)){var i,s=e.chars.length;for(i=0;i<s;i+=1){var a=e.chars[i];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[i].t||(a.data.shapes.push({ty:\"no\"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:\"tr\"})))}}}}(),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;\"number\"==typeof e.a&&(e.a={a:0,k:e.a}),\"number\"==typeof e.p&&(e.p={a:0,k:e.p}),\"number\"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var i,s,r,a=t.length;for(i=0;i<a;i+=1)if(\"gr\"===t[i].ty)e(t[i].it);else if(\"fl\"===t[i].ty||\"st\"===t[i].ty){if(t[i].c.k&&t[i].c.k[0].i)for(s=0,r=t[i].c.k.length;s<r;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),f=function(){var t=[4,4,18];function e(t){var i,s,r;for(i=t.length-1;i>=0;i-=1)if(\"sh\"===t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(s=0,r=t[i].ks.k.length;s<r;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed)}else\"gr\"===t[i].ty&&e(t[i].it)}function i(t){var i,s,r,a,n,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=0,a=l.length;r<a;r+=1)if(l[r].pt.k.i)l[r].pt.k.c=l[r].cl;else for(n=0,o=l[r].pt.k.length;n<o;n+=1)l[r].pt.k[n].s&&(l[r].pt.k[n].s[0].c=l[r].cl),l[r].pt.k[n].e&&(l[r].pt.k[n].e[0].c=l[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}();function c(i){i.__complete||(p(i),o(i),h(i),l(i),f(i),t(i.layers,i.assets),e(i.chars,i.assets),i.__complete=!0)}function m(t){0===t.t.a.length&&t.t.p}var u={};return u.completeData=c,u.checkColors=p,u.checkChars=h,u.checkPathProperties=l,u.checkShapes=f,u.completeLayers=t,u}if(a.dataManager||(a.dataManager=e()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader(\"content-type\");return e&&\"json\"===t.responseType&&-1!==e.indexOf(\"json\")||t.response&&\"object\"===_typeof$5(t.response)?t.response:t.response&&\"string\"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,r){var a,n=new XMLHttpRequest;try{n.responseType=\"json\"}catch(t){}n.onreadystatechange=function(){if(4===n.readyState){if(200===n.status)s(a=t(n));else try{a=t(n),s(a)}catch(t){r&&r(t)}}};try{n.open(\"GET\",e,!0)}catch(t){n.open(\"GET\",i+\"/\"+e,!0)}n.send()}}}()),\"loadAnimation\"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:\"success\"})},function(){a.postMessage({id:t.data.id,status:\"error\"})});else if(\"complete\"===t.data.type){var i=t.data.animation;a.dataManager.completeData(i),a.postMessage({id:t.data.id,payload:i,status:\"success\"})}else\"loadData\"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.postMessage({id:t.data.id,payload:e,status:\"success\"})},function(){a.postMessage({id:t.data.id,status:\"error\"})})})).onmessage=function(t){var e=t.data,i=e.id,r=s[i];s[i]=null,\"success\"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function h(t,e){var r=\"processId_\"+(i+=1);return s[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,s){o();var r=h(i,s);e.postMessage({type:\"loadAnimation\",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,s){o();var r=h(i,s);e.postMessage({type:\"loadData\",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,s){o();var r=h(i,s);e.postMessage({type:\"complete\",animation:t,id:r})}}}(),ImagePreloader=function(){var t=function(){var t=createTag(\"canvas\");t.width=1,t.height=1;var e=t.getContext(\"2d\");return e.fillStyle=\"rgba(0,0,0,0)\",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s=\"\";if(t.e)s=t.p;else if(e){var r=t.p;-1!==r.indexOf(\"images/\")&&(r=r.split(\"/\")[1]),s=e+r}else s=i+(t.u?t.u:\"\")+t.p;return s}function r(t){var e=0,i=setInterval((function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function a(e){var i=s(e,this.assetsPath,this.path),r=createNS(\"image\");isSafari?this.testImageLoaded(r):r.addEventListener(\"load\",this._imageLoaded,!1),r.addEventListener(\"error\",(function(){a.img=t,this._imageLoaded()}).bind(this),!1),r.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var a={img:r,assetData:e};return a}function n(e){var i=s(e,this.assetsPath,this.path),r=createTag(\"img\");r.crossOrigin=\"anonymous\",r.addEventListener(\"load\",this._imageLoaded,!1),r.addEventListener(\"error\",(function(){a.img=t,this._imageLoaded()}).bind(this),!1),r.src=i;var a={img:r,assetData:e};return a}function o(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return dataManager.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function h(t,e){this.imagesLoadedCb=e;var i,s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&\"seq\"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))}function l(t){this.path=t||\"\"}function p(t){this.assetsPath=t||\"\"}function f(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function c(){this.imagesLoadedCb=null,this.images.length=0}function m(){return this.totalImages===this.loadedAssets}function u(){return this.totalFootages===this.loadedFootagesCount}function d(t,e){\"svg\"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function g(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=o.bind(this),this.assetsPath=\"\",this.path=\"\",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return g.prototype={loadAssets:h,setAssetsPath:p,setPath:l,loadedImages:m,loadedFootages:u,destroy:c,getAsset:f,createImgData:n,createImageData:a,imageLoaded:e,footageLoaded:i,setCacheType:d},g}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),(function(){this.removeEventListener(t,e)}).bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split(\"\\r\\n\"),s={},r=0,a=0;a<i.length;a+=1)2===(e=i[a].split(\":\")).length&&(s[e[0]]=e[1].trim(),r+=1);if(0===r)throw Error();return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var r=e[s],a={time:r.tm,duration:r.dr};try{a.payload=JSON.parse(e[s].cm)}catch(i){try{a.payload=t(e[s].cm)}catch(t){a.payload={name:e[s].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return\"canvas\";for(var t in renderers)if(renderers[t])return t;return\"\"}function _typeof$4(t){return(_typeof$4=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name=\"\",this.path=\"\",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath=\"\",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent(\"drawnFrame\",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=\"svg\";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,\"\"===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!(\"autoplay\"in t)||t.autoplay,this.name=t.name?t.name:\"\",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,\"autoloadSegments\")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf(\"\\\\\")?this.path=t.path.substr(0,t.path.lastIndexOf(\"\\\\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf(\"/\")+1),this.fileName=t.path.substr(t.path.lastIndexOf(\"/\")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(\".json\")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger(\"data_failed\")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&\"object\"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem(\"data-animation-path\")?s.getNamedItem(\"data-animation-path\").value:s.getNamedItem(\"data-bm-path\")?s.getNamedItem(\"data-bm-path\").value:s.getNamedItem(\"bm-path\")?s.getNamedItem(\"bm-path\").value:\"\",i.animType=s.getNamedItem(\"data-anim-type\")?s.getNamedItem(\"data-anim-type\").value:s.getNamedItem(\"data-bm-type\")?s.getNamedItem(\"data-bm-type\").value:s.getNamedItem(\"bm-type\")?s.getNamedItem(\"bm-type\").value:s.getNamedItem(\"data-bm-renderer\")?s.getNamedItem(\"data-bm-renderer\").value:s.getNamedItem(\"bm-renderer\")?s.getNamedItem(\"bm-renderer\").value:getRegisteredRenderer()||\"canvas\";var r=s.getNamedItem(\"data-anim-loop\")?s.getNamedItem(\"data-anim-loop\").value:s.getNamedItem(\"data-bm-loop\")?s.getNamedItem(\"data-bm-loop\").value:s.getNamedItem(\"bm-loop\")?s.getNamedItem(\"bm-loop\").value:\"\";\"false\"===r?i.loop=!1:\"true\"===r?i.loop=!0:\"\"!==r&&(i.loop=parseInt(r,10));var a=s.getNamedItem(\"data-anim-autoplay\")?s.getNamedItem(\"data-anim-autoplay\").value:s.getNamedItem(\"data-bm-autoplay\")?s.getNamedItem(\"data-bm-autoplay\").value:!s.getNamedItem(\"bm-autoplay\")||s.getNamedItem(\"bm-autoplay\").value;i.autoplay=\"false\"!==a,i.name=s.getNamedItem(\"data-name\")?s.getNamedItem(\"data-name\").value:s.getNamedItem(\"data-bm-name\")?s.getNamedItem(\"data-bm-name\").value:s.getNamedItem(\"bm-name\")?s.getNamedItem(\"bm-name\").value:\"\",\"false\"===(s.getNamedItem(\"data-anim-prerender\")?s.getNamedItem(\"data-anim-prerender\").value:s.getNamedItem(\"data-bm-prerender\")?s.getNamedItem(\"data-bm-prerender\").value:s.getNamedItem(\"bm-prerender\")?s.getNamedItem(\"bm-prerender\").value:\"\")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger(\"destroy\")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,r=s.length,a=t.layers,n=a.length;for(i=0;i<n;i+=1)for(e=0;e<r;){if(s[e].id===a[i].id){s[e]=a[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(e=0,r=t.assets.length;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments){this.trigger(\"data_ready\"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+\"_\"+this.segmentPos+\".json\";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger(\"data_failed\")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger(\"loaded_images\"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger(\"config_ready\"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||\"canvas\"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger(\"DOMLoaded\")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i=\"number\"==typeof t?t:void 0,s=\"number\"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger(\"enterFrame\"),this.renderFrame(),this.trigger(\"drawnFrame\")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){(!t||this.name===t)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger(\"_play\"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger(\"_active\")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1!==this.isPaused||(this.isPaused=!0,this.trigger(\"_pause\"),this._idle=!0,this.trigger(\"_idle\"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){if(isNaN(Number(t))){var s=this.getMarkerData(t);s&&this.goToAndStop(s.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger(\"loopComplete\"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger(\"loopComplete\"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger(\"complete\"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger(\"segmentStart\")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),\"object\"===_typeof$4(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){(!t||this.name===t)&&this.renderer&&(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(\"destroy\"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e=\"\";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf(\"images/\")&&(i=i.split(\"/\")[1]),e=this.assetsPath+i}else e=this.path+(t.u?t.u:\"\")+t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case\"enterFrame\":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case\"drawnFrame\":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case\"loopComplete\":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case\"complete\":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case\"segmentStart\":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case\"destroy\":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}\"enterFrame\"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),\"loopComplete\"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),\"complete\"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),\"segmentStart\"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),\"destroy\"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent(\"error\",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent(\"error\",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,s=0,r=0,a=!0,n=!1;function o(t){for(var i=0,r=t.target;i<s;)e[i].animation!==r||(e.splice(i,1),i-=1,s-=1,r.isPaused||f()),i+=1}function h(t,i){if(!t)return null;for(var r=0;r<s;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var a=new AnimationItem;return c(a,t),a.setData(t,i),a}function l(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s}function p(){r+=1,w()}function f(){r-=1}function c(t,i){t.addEventListener(\"destroy\",o),t.addEventListener(\"_active\",p),t.addEventListener(\"_idle\",f),e.push({elem:i,animation:t}),s+=1}function m(t){var e=new AnimationItem;return c(e,null),e.setParams(t),e}function u(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setSpeed(t,i)}function d(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setDirection(t,i)}function g(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)}function y(t){var o,h=t-i;for(o=0;o<s;o+=1)e[o].animation.advanceTime(h);i=t,r&&!n?window.requestAnimationFrame(y):a=!0}function v(t){i=t,window.requestAnimationFrame(y)}function b(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)}function x(t,i,r){var a;for(a=0;a<s;a+=1)e[a].animation.goToAndStop(t,i,r)}function _(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)}function k(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)}function C(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)}function P(t,e,i){var s,r=[].concat([].slice.call(document.getElementsByClassName(\"lottie\")),[].slice.call(document.getElementsByClassName(\"bodymovin\"))),a=r.length;for(s=0;s<a;s+=1)i&&r[s].setAttribute(\"data-bm-type\",i),h(r[s],t);if(e&&0===a){i||(i=\"svg\");var n=document.getElementsByTagName(\"body\")[0];n.innerText=\"\";var o=createTag(\"div\");o.style.width=\"100%\",o.style.height=\"100%\",o.setAttribute(\"data-bm-type\",i),n.appendChild(o),h(o,t)}}function A(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()}function w(){!n&&r&&a&&(window.requestAnimationFrame(v),a=!1)}function S(){n=!0}function D(){n=!1,w()}function T(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setVolume(t,i)}function M(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)}function E(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)}return t.registerAnimation=h,t.loadAnimation=m,t.setSpeed=u,t.setDirection=d,t.play=g,t.pause=b,t.stop=_,t.togglePause=k,t.searchAnimations=P,t.resize=A,t.goToAndStop=x,t.destroy=C,t.freeze=S,t.unfreeze=D,t.setVolume=T,t.mute=M,t.unmute=E,t.getRegisteredAnimations=l,t}(),BezierFactory=function(){var t={};t.getBezierEasing=i;var e={};function i(t,i,s,r,a){var n=a||(\"bez_\"+t+\"_\"+i+\"_\"+s+\"_\"+r).replace(/\\./g,\"p\");if(e[n])return e[n];var o=new y([t,i,s,r]);return e[n]=o,o}var s=4,r=.001,a=1e-7,n=10,o=11,h=.1,l=\"function\"==typeof Float32Array;function p(t,e){return 1-3*e+3*t}function f(t,e){return 3*e-6*t}function c(t){return 3*t}function m(t,e,i){return((p(e,i)*t+f(e,i))*t+c(e))*t}function u(t,e,i){return 3*p(e,i)*t*t+2*f(e,i)*t+c(e)}function d(t,e,i,s,r){var o,h,l=0;do(o=m(h=e+(i-e)/2,s,r)-t)>0?i=h:e=h;while(Math.abs(o)>a&&++l<n);return h}function g(t,e,i,r){for(var a=0;a<s;++a){var n=u(e,i,r);if(0===n)break;var o=m(e,i,r)-t;e-=o/n}return e}function y(t){this._p=t,this._mSampleValues=l?new Float32Array(o):Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],r=this._p[3];return(this._precomputed||this._precompute(),e===i&&s===r)?t:0===t?0:1===t?1:m(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,(t!==e||i!==s)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<o;++i)this._mSampleValues[i]=m(i*h,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,a=0,n=1,l=o-1;n!==l&&s[n]<=t;++n)a+=h;var p=a+(t-s[--n])/(s[n+1]-s[n])*h,f=u(p,e,i);return f>=r?g(t,p,e,i):0===f?p:d(t,a,a+h,e,i)}},t}(),pooling=function(){return{double:function(t){return t.concat(createSizedArray(t.length))}}}(),poolFactory=function(){return function(t,e,i){var s=0,r=t,a=createSizedArray(r);return{newElement:function(){var t;return s?(s-=1,t=a[s]):t=e(),t},release:function(t){s===r&&(a=pooling.double(a),r*=2),i&&i(t),a[s]=t,s+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray(\"float32\",getDefaultCurveSegments()),lengths:createTypedArray(\"float32\",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0})}();function bezFunction(){var t=Math;function e(t,e,i,s,r,a){var n=t*s+e*r+i*a-r*s-a*t-i*e;return n>-.001&&n<.001}function i(i,s,r,a,n,o,h,l,p){if(0===r&&0===o&&0===p)return e(i,s,a,n,h,l);var f,c=t.sqrt(t.pow(a-i,2)+t.pow(n-s,2)+t.pow(o-r,2)),m=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-r,2)),u=t.sqrt(t.pow(h-a,2)+t.pow(l-n,2)+t.pow(p-o,2));return(f=c>m?c>u?c-m-u:u-m-c:u>m?u-m-c:m-c-u)>-.0001&&f<1e-4}var s=function(){return function(t,e,i,s){var r,a,n,o,h,l,p=getDefaultCurveSegments(),f=0,c=[],m=[],u=bezierLengthPool.newElement();for(r=0,n=i.length;r<p;r+=1){for(a=0,h=r/(p-1),l=0;a<n;a+=1)o=bmPow(1-h,3)*t[a]+3*bmPow(1-h,2)*h*i[a]+3*(1-h)*bmPow(h,2)*s[a]+bmPow(h,3)*e[a],c[a]=o,null!==m[a]&&(l+=bmPow(c[a]-m[a],2)),m[a]=c[a];l&&(f+=l=bmSqrt(l)),u.percents[r]=h,u.lengths[r]=f}return u.addedLength=f,u}}();function r(t){var e,i=segmentsLengthPool.newElement(),r=t.c,a=t.v,n=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=s(a[e],a[e+1],n[e],o[e+1]),p+=l[e].addedLength;return r&&h&&(l[e]=s(a[e],a[0],n[e],o[0]),p+=l[e].addedLength),i.totalLength=p,i}function a(t){this.segmentLength=0,this.points=Array(t)}function n(t,e){this.partialLength=t,this.point=e}var o=function(){var t={};return function(i,s,r,o){var h=(i[0]+\"_\"+i[1]+\"_\"+s[0]+\"_\"+s[1]+\"_\"+r[0]+\"_\"+r[1]+\"_\"+o[0]+\"_\"+o[1]).replace(/\\./g,\"p\");if(!t[h]){var l,p,f,c,m,u,d,g=getDefaultCurveSegments(),y=0,v=null;2===i.length&&(i[0]!==s[0]||i[1]!==s[1])&&e(i[0],i[1],s[0],s[1],i[0]+r[0],i[1]+r[1])&&e(i[0],i[1],s[0],s[1],s[0]+o[0],s[1]+o[1])&&(g=2);var b=new a(g);for(l=0,f=r.length;l<g;l+=1){for(p=0,d=createSizedArray(f),m=l/(g-1),u=0;p<f;p+=1)c=bmPow(1-m,3)*i[p]+3*bmPow(1-m,2)*m*(i[p]+r[p])+3*(1-m)*bmPow(m,2)*(s[p]+o[p])+bmPow(m,3)*s[p],d[p]=c,null!==v&&(u+=bmPow(d[p]-v[p],2));y+=u=bmSqrt(u),b.points[l]=new n(u,d),v=d}b.segmentLength=y,t[h]=b}return t[h]}}();function h(t,e){var i=e.percents,s=e.lengths,r=i.length,a=bmFloor((r-1)*t),n=t*e.addedLength,o=0;if(a===r-1||0===a||n===s[a])return i[a];for(var h=s[a]>n?-1:1,l=!0;l;)if(s[a]<=n&&s[a+1]>n?(o=(n-s[a])/(s[a+1]-s[a]),l=!1):a+=h,a<0||a>=r-1){if(a===r-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}function l(e,i,s,r,a,n){var o=h(a,n),l=1-o;return[t.round((l*l*l*e[0]+(o*l*l+l*o*l+l*l*o)*s[0]+(o*o*l+l*o*o+o*l*o)*r[0]+o*o*o*i[0])*1e3)/1e3,t.round((l*l*l*e[1]+(o*l*l+l*o*l+l*l*o)*s[1]+(o*o*l+l*o*o+o*l*o)*r[1]+o*o*o*i[1])*1e3)/1e3]}var p=createTypedArray(\"float32\",8);return{getSegmentsLength:r,getNewSegment:function(e,i,s,r,a,n,o){a<0?a=0:a>1&&(a=1);var l,f=h(a,o),c=h(n=n>1?1:n,o),m=e.length,u=1-f,d=1-c,g=u*u*u,y=f*u*u*3,v=f*f*u*3,b=f*f*f,x=u*u*d,_=f*u*d+u*f*d+u*u*c,k=f*f*d+u*f*c+f*u*c,C=f*f*c,P=u*d*d,A=f*d*d+u*c*d+u*d*c,w=f*c*d+u*c*c+f*d*c,S=f*c*c,D=d*d*d,T=c*d*d+d*c*d+d*d*c,M=c*c*d+d*c*c+c*d*c,E=c*c*c;for(l=0;l<m;l+=1)p[4*l]=t.round((g*e[l]+y*s[l]+v*r[l]+b*i[l])*1e3)/1e3,p[4*l+1]=t.round((x*e[l]+_*s[l]+k*r[l]+C*i[l])*1e3)/1e3,p[4*l+2]=t.round((P*e[l]+A*s[l]+w*r[l]+S*i[l])*1e3)/1e3,p[4*l+3]=t.round((D*e[l]+T*s[l]+M*r[l]+E*i[l])*1e3)/1e3;return p},getPointInSegment:l,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,s,r,a,n,o=this.offsetTime;\"multidimensional\"===this.propType&&(g=createTypedArray(\"float32\",this.pv.length));for(var h=e.lastIndex,l=h,p=this.keyframes.length-1,f=!0;f;){if(y=this.keyframes[l],v=this.keyframes[l+1],l===p-1&&t>=v.t-o){y.h&&(y=v),h=0;break}if(v.t-o>t){h=l;break}l<p-1?l+=1:(h=0,f=!1)}b=this.keyframesMetadata[l]||{};var c=v.t-o,m=y.t-o;if(y.to){b.bezierData||(b.bezierData=bez.buildBezierData(y.s,v.s||y.e,y.to,y.ti));var u=b.bezierData;if(t>=c||t<m){var d=t>=c?u.points.length-1:0;for(x=0,_=u.points[d].point.length;x<_;x+=1)g[x]=u.points[d].point[x]}else{b.__fnct?A=b.__fnct:(A=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,b.__fnct=A),k=A((t-m)/(c-m));var g,y,v,b,x,_,k,C,P,A,w,S,D=u.segmentLength*k,T=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastAddedLength:0;for(P=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastPoint:0,f=!0,C=u.points.length;f;){if(T+=u.points[P].partialLength,0===D||0===k||P===u.points.length-1){for(x=0,_=u.points[P].point.length;x<_;x+=1)g[x]=u.points[P].point[x];break}if(D>=T&&D<T+u.points[P+1].partialLength){for(x=0,S=(D-T)/u.points[P+1].partialLength,_=u.points[P].point.length;x<_;x+=1)g[x]=u.points[P].point[x]+(u.points[P+1].point[x]-u.points[P].point[x])*S;break}P<C-1?P+=1:f=!1}e._lastPoint=P,e._lastAddedLength=T-u.points[P].partialLength,e._lastKeyframeIndex=l}}else if(p=y.s.length,w=v.s||y.e,this.sh&&1!==y.h)t>=c?(g[0]=w[0],g[1]=w[1],g[2]=w[2]):t<=m?(g[0]=y.s[0],g[1]=y.s[1],g[2]=y.s[2]):quaternionToEuler(g,slerp(createQuaternion(y.s),createQuaternion(w),(t-m)/(c-m)));else for(l=0;l<p;l+=1)1!==y.h&&(t>=c?k=1:t<m?k=0:(y.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[l]?A=b.__fnct[l]:(i=void 0===y.o.x[l]?y.o.x[0]:y.o.x[l],s=void 0===y.o.y[l]?y.o.y[0]:y.o.y[l],r=void 0===y.i.x[l]?y.i.x[0]:y.i.x[l],a=void 0===y.i.y[l]?y.i.y[0]:y.i.y[l],A=BezierFactory.getBezierEasing(i,s,r,a).get,b.__fnct[l]=A)):b.__fnct?A=b.__fnct:(i=y.o.x,s=y.o.y,r=y.i.x,a=y.i.y,A=BezierFactory.getBezierEasing(i,s,r,a).get,y.keyframeMetadata=A),k=A((t-m)/(c-m)))),w=v.s||y.e,n=1===y.h?y.s[l]:y.s[l]+(w[l]-y.s[l])*k,\"multidimensional\"===this.propType?g[l]=n:g=n;return e.lastIndex=h,g}function slerp(t,e,i){var s,r,a,n,o,h=[],l=t[0],p=t[1],f=t[2],c=t[3],m=e[0],u=e[1],d=e[2],g=e[3];return(r=l*m+p*u+f*d+c*g)<0&&(r=-r,m=-m,u=-u,d=-d,g=-g),1-r>1e-6?(a=Math.sin(s=Math.acos(r)),n=Math.sin((1-i)*s)/a,o=Math.sin(i*s)/a):(n=1-i,o=i),h[0]=n*l+o*m,h[1]=n*p+o*u,h[2]=n*f+o*d,h[3]=n*c+o*g,h}function quaternionToEuler(t,e){var i=e[0],s=e[1],r=e[2],a=e[3],n=Math.atan2(2*s*a-2*i*r,1-2*s*s-2*r*r),o=Math.asin(2*i*s+2*r*a),h=Math.atan2(2*i*a-2*s*r,1-2*i*i-2*r*r);t[0]=n/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,s=t[2]*degToRads,r=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2),p=r*a*n-o*h*l;return[o*h*n+r*a*l,o*a*n+r*h*l,r*h*n-o*a*l,p]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(\"unidimensional\"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,s){this.propType=\"unidimensional\",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,s){this.propType=\"multidimensional\",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,a=e.k.length;for(r=0,this.v=createTypedArray(\"float32\",a),this.pv=createTypedArray(\"float32\",a),this.vel=createTypedArray(\"float32\",a);r<a;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,s){this.propType=\"unidimensional\",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,s){this.propType=\"multidimensional\";var r,a,n,o,h,l=e.k.length;for(r=0;r<l-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(a=e.k[r].s,n=e.k[r+1].s,o=e.k[r].to,h=e.k[r].ti,(2===a.length&&!(a[0]===n[0]&&a[1]===n[1])&&bez.pointOnLine2D(a[0],a[1],n[0],n[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],n[0],n[1],n[0]+h[0],n[1]+h[1])||3===a.length&&!(a[0]===n[0]&&a[1]===n[1]&&a[2]===n[2])&&bez.pointOnLine3D(a[0],a[1],a[2],n[0],n[1],n[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],n[0],n[1],n[2],n[0]+h[0],n[1]+h[1],n[2]+h[2]))&&(e.k[r].to=null,e.k[r].ti=null),a[0]===n[0]&&a[1]===n[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===a.length||a[2]===n[2]&&0===o[2]&&0===h[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=e.k[0].s.length;for(r=0,this.v=createTypedArray(\"float32\",p),this.pv=createTypedArray(\"float32\",p);r<p;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray(\"float32\",p)},this.addEffect=addEffect}var PropertyFactory=function(){return{getProp:function(t,e,i,s,r){var a;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length){if(\"number\"==typeof e.k[0])a=new MultiDimensionalProperty(t,e,s,r);else switch(i){case 0:a=new KeyframedValueProperty(t,e,s,r);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,s,r)}}else a=new ValueProperty(t,e,s,r);return a.effectsSequence.length&&r.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){return poolFactory(8,function(){return createTypedArray(\"float32\",2)})}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,s,r){var a;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case\"v\":a=this.v;break;case\"i\":a=this.i;break;case\"o\":a=this.o;break;default:a=[]}a[s]&&(!a[s]||r)||(a[s]=pointPool.newElement()),a[s][0]=t,a[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,r,a,n,o){this.setXYAt(t,e,\"v\",n,o),this.setXYAt(i,s,\"o\",n,o),this.setXYAt(r,a,\"i\",n,o)},ShapePath.prototype.reverse=function(){var t,e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,s=this.o,r=this.i,a=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],s[0][0],s[0][1],0,!1),a=1);var n=this._length-1,o=this._length;for(t=a;t<o;t+=1)e.setTripleAt(i[n][0],i[n][1],r[n][0],r[n][1],s[n][0],s[n][1],t,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function t(t){var i,s=e.newElement(),r=void 0===t._length?t.v.length:t._length;for(s.setLength(r),s.c=t.c,i=0;i<r;i+=1)s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return s}var e=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1});return e.clone=t,e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:r,release:a},e=0,i=4,s=createSizedArray(4);function r(){var t;return e?(e-=1,t=s[e]):t=new ShapeCollection,t}function a(t){var r,a=t._length;for(r=0;r<a;r+=1)shapePool.release(t.shapes[r]);t._length=0,e===i&&(s=pooling.double(s),i*=2),s[e]=t,e+=1}return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var s=i.lastIndex,r=this.keyframes;if(t<r[0].t-this.offsetTime)a=r[0].s[0],o=!0,s=0;else if(t>=r[r.length-1].t-this.offsetTime)a=r[r.length-1].s?r[r.length-1].s[0]:r[r.length-2].e[0],o=!0;else{for(var a,n,o,h,l,p,f,c,m,u,d,g,y,v=s,b=r.length-1,x=!0;x&&(u=r[v],!((d=r[v+1]).t-this.offsetTime>t));)v<b-1?v+=1:x=!1;g=this.keyframesMetadata[v]||{},o=1===u.h,s=v,o||(t>=d.t-this.offsetTime?c=1:t<u.t-this.offsetTime?c=0:(g.__fnct?y=g.__fnct:(y=BezierFactory.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,g.__fnct=y),c=y((t-(u.t-this.offsetTime))/(d.t-this.offsetTime-(u.t-this.offsetTime)))),n=d.s?d.s[0]:u.e[0]),a=u.s[0]}for(h=0,p=e._length,f=a.i[0].length,i.lastIndex=s;h<p;h+=1)for(l=0;l<f;l+=1)m=o?a.i[h][l]:a.i[h][l]+(n.i[h][l]-a.i[h][l])*c,e.i[h][l]=m,m=o?a.o[h][l]:a.o[h][l]+(n.o[h][l]-a.o[h][l])*c,e.o[h][l]=m,m=o?a.v[h][l]:a.v[h][l]+(n.v[h][l]-a.v[h][l])*c,e.v[h][l]=m}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>s&&e>s)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function r(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0}function a(t){r(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var t,e,i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t,e,i){this.propType=\"shape\",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,a){this.propType=\"shape\",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=n,o.prototype.setVValue=a,o.prototype.addEffect=h,l.prototype.getValue=n,l.prototype.interpolateShape=e,l.prototype.setVValue=a,l.prototype.addEffect=h;var p=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,a=3!==this.d,n=this.v;n.v[0][0]=e,n.v[0][1]=i-r,n.v[1][0]=a?e+s:e-s,n.v[1][1]=i,n.v[2][0]=e,n.v[2][1]=i+r,n.v[3][0]=a?e-s:e+s,n.v[3][1]=i,n.i[0][0]=a?e-s*t:e+s*t,n.i[0][1]=i-r,n.i[1][0]=a?e+s:e-s,n.i[1][1]=i-r*t,n.i[2][0]=a?e+s*t:e-s*t,n.i[2][1]=i+r,n.i[3][0]=a?e-s:e+s,n.i[3][1]=i+r*t,n.o[0][0]=a?e+s*t:e-s*t,n.o[0][1]=i-r,n.o[1][0]=a?e+s:e-s,n.o[1][1]=i+r*t,n.o[2][0]=a?e-s*t:e+s*t,n.o[2][1]=i+r,n.o[3][0]=a?e-s:e+s,n.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),f=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,r=2*Math.floor(this.pt.v),a=2*Math.PI/r,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,f=2*Math.PI*o/(2*r),c=2*Math.PI*h/(2*r),m=-Math.PI/2;m+=this.r.v;var u=3===this.data.d?-1:1;for(t=0,this.v._length=0;t<r;t+=1){e=n?o:h,i=n?l:p,s=n?f:c;var d=e*Math.cos(m),g=e*Math.sin(m),y=0===d&&0===g?0:g/Math.sqrt(d*d+g*g),v=0===d&&0===g?0:-d/Math.sqrt(d*d+g*g);d+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(d,g,d-y*s*i*u,g-v*s*i*u,d+y*s*i*u,g+v*s*i*u,t,!0),n=!n,m+=a*u}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,r=this.os.v,a=2*Math.PI*s/(4*e),n=-(.5*Math.PI),o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(n),l=s*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),f=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*r*o,l-f*a*r*o,h+p*a*r*o,l+f*a*r*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=bmMin(i,s,this.r.v),a=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+r,t+i,e-s+a,0,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-a,t+i,e+s-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+s,t+i-r,e+s,t+i-a,e+s,2,!0),this.v.setTripleAt(t-i+r,e+s,t-i+a,e+s,t-i+r,e+s,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-r,t-i,e+s-a,4,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+a,t-i,e-s+r,5,!0),this.v.setTripleAt(t-i+r,e-s,t-i+r,e-s,t-i+a,e-s,6,!0),this.v.setTripleAt(t+i-r,e-s,t+i-a,e-s,t+i-r,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+a,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+a,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+a,t+i,e-s+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-s,t+i-r,e-s,t+i-a,e-s,1,!0),this.v.setTripleAt(t-i+r,e-s,t-i+a,e-s,t-i+r,e-s,2,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+r,t-i,e-s+a,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-a,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i+r,e+s,t-i+r,e+s,t-i+a,e+s,5,!0),this.v.setTripleAt(t+i-r,e+s,t+i-a,e+s,t+i-r,e+s,6,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-r,t+i,e+s-a,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+a,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-a,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-a,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],t),t}();function m(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new f(t,e)),s.k&&t.addDynamicProperty(s),s}function u(){return o}function d(){return l}var g={};return g.getShapeProp=m,g.getConstructorFunction=u,g.getKeyframedConstructorFunction=d,g}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function n(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(i(t),i(e))}function f(s,r){var a=t(r),n=e(r);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function c(t,e,i){return(i||0===i||(i=1),1===t&&1===e&&1===i)?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function m(t,e,i,s,r,a,n,o,h,l,p,f,c,m,u,d){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=f,this.props[12]=c,this.props[13]=m,this.props[14]=u,this.props[15]=d,this}function u(t,e,i){return(i=i||0,0!==t||0!==e||0!==i)?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function d(t,e,i,s,r,a,n,o,h,l,p,f,c,m,u,d){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===r&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===f)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*a+g[15]*m,g[14]=g[14]*p+g[15]*u,g[15]*=d,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],_=g[4],k=g[5],C=g[6],P=g[7],A=g[8],w=g[9],S=g[10],D=g[11],T=g[12],M=g[13],E=g[14],F=g[15];return g[0]=y*t+v*r+b*h+x*c,g[1]=y*e+v*a+b*l+x*m,g[2]=y*i+v*n+b*p+x*u,g[3]=y*s+v*o+b*f+x*d,g[4]=_*t+k*r+C*h+P*c,g[5]=_*e+k*a+C*l+P*m,g[6]=_*i+k*n+C*p+P*u,g[7]=_*s+k*o+C*f+P*d,g[8]=A*t+w*r+S*h+D*c,g[9]=A*e+w*a+S*l+D*m,g[10]=A*i+w*n+S*p+D*u,g[11]=A*s+w*o+S*f+D*d,g[12]=T*t+M*r+E*h+F*c,g[13]=T*e+M*a+E*l+F*m,g[14]=T*i+M*n+E*p+F*u,g[15]=T*s+M*o+E*f+F*d,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function _(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function k(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function C(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function P(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function A(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,r=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=r,o.props[12]=a,o.props[13]=n,o}function w(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function S(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=w(t[e]);return s}function D(t,e,i){var s=createTypedArray(\"float32\",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var r=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];s[0]=t[0]*r+t[1]*n+h,s[1]=t[0]*a+t[1]*o+l,s[2]=e[0]*r+e[1]*n+h,s[3]=e[0]*a+e[1]*o+l,s[4]=i[0]*r+i[1]*n+h,s[5]=i[0]*a+i[1]*o+l}return s}function T(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+\",\"+e;var i=this.props;return Math.round((t*i[0]+e*i[4]+i[12])*100)/100+\",\"+Math.round((t*i[1]+e*i[5]+i[13])*100)/100}function E(){for(var t=0,e=this.props,i=\"matrix3d(\",r=1e4;t<16;)i+=s(e[t]*r)/r+(15===t?\")\":\",\"),t+=1;return i}function F(t){var e=1e4;return t<1e-6&&t>0||t>-.000001&&t<0?s(t*e)/e:t}function I(){var t=this.props;return\"matrix(\"+F(t[0])+\",\"+F(t[1])+\",\"+F(t[4])+\",\"+F(t[5])+\",\"+F(t[12])+\",\"+F(t[13])+\")\"}return function(){this.reset=r,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=c,this.setTransform=m,this.translate=u,this.transform=d,this.multiply=g,this.applyToPoint=_,this.applyToX=k,this.applyToY=C,this.applyToZ=P,this.applyToPointArray=T,this.applyToTriplePoints=D,this.applyToPointStringified=M,this.toCSS=E,this.to2dCSS=I,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=S,this.inversePoint=w,this.getInverseMatrix=A,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray(\"float32\",16),this.reset()}}();function _typeof$3(t){return(_typeof$3=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var lottie={},standalone=\"__[STANDALONE]__\",animationData=\"__[ANIMATIONDATA]__\",renderer=\"\";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(\"string\"==typeof t)switch(t){case\"high\":setDefaultCurveSegments(200);break;default:case\"medium\":setDefaultCurveSegments(50);break;case\"low\":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return\"undefined\"!=typeof navigator}function installPlugin(t,e){\"expressions\"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case\"propertyFactory\":return PropertyFactory;case\"shapePropertyFactory\":return ShapePropertyFactory;case\"matrix\":return Matrix;default:return null}}function checkReady(){\"complete\"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split(\"&\"),i=0;i<e.length;i+=1){var s=e[i].split(\"=\");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version=\"5.12.2\";var queryString=\"\";if(standalone){var scripts=document.getElementsByTagName(\"script\"),index=scripts.length-1,myScript=scripts[index]||{src:\"\"};queryString=myScript.src?myScript.src.replace(/^[^\\?]+\\??/,\"\"):\"\",renderer=getQueryVariable(\"renderer\")}var readyStateCheckInterval=setInterval(checkReady,100);try{\"object\"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var t={},e={};function i(t,i){e[t]||(e[t]=i)}function s(t,i,s){return new e[t](i,s)}return t.registerModifier=i,t.getModifier=s,t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,s,r){var a,n,o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var h=[],l=o.length;for(a=0;a<l;a+=1)(n=o[a]).e*r<s||n.s*r>s+i||h.push([n.s*r<=s?0:(n.s*r-s)/i,n.e*r>=s+i?1:(n.e*r-s)/i]);return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){if(this._mdf||t){var e=this.o.v%360/360;if(e<0&&(e+=1),(a=this.s.v>1?1+e:this.s.v<0?0+e:this.s.v+e)>(n=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var i=a;a=n,n=i}a=1e-4*Math.round(1e4*a),n=1e-4*Math.round(1e4*n),this.sValue=a,this.eValue=n}else a=this.sValue,n=this.eValue;var s=this.shapes.length,r=0;if(n===a)for(h=0;h<s;h+=1)this.shapes[h].localShapeCollection.releaseShapes(),this.shapes[h].shape._mdf=!0,this.shapes[h].shape.paths=this.shapes[h].localShapeCollection,this._mdf&&(this.shapes[h].pathsData.length=0);else if(1===n&&0===a||0===n&&1===a){if(this._mdf)for(h=0;h<s;h+=1)this.shapes[h].pathsData.length=0,this.shapes[h].shape._mdf=!0}else{var a,n,o,h,l,p,f,c,m,u,d,g,y=[];for(h=0;h<s;h+=1)if((u=this.shapes[h]).shape._mdf||this._mdf||t||2===this.m){if(p=(o=u.shape.paths)._length,m=0,!u.shape._mdf&&u.pathsData.length)m=u.totalShapeLength;else{for(l=0,f=this.releasePathsData(u.pathsData);l<p;l+=1)c=bez.getSegmentsLength(o.shapes[l]),f.push(c),m+=c.totalLength;u.totalShapeLength=m,u.pathsData=f}r+=m,u.shape._mdf=!0}else u.shape.paths=u.localShapeCollection;var v=a,b=n,x=0;for(h=s-1;h>=0;h-=1)if((u=this.shapes[h]).shape._mdf){for((d=u.localShapeCollection).releaseShapes(),2===this.m&&s>1?(g=this.calculateShapeEdges(a,n,u.totalShapeLength,x,r),x+=u.totalShapeLength):g=[[v,b]],p=g.length,l=0;l<p;l+=1){v=g[l][0],b=g[l][1],y.length=0,b<=1?y.push({s:u.totalShapeLength*v,e:u.totalShapeLength*b}):v>=1?y.push({s:u.totalShapeLength*(v-1),e:u.totalShapeLength*(b-1)}):(y.push({s:u.totalShapeLength*v,e:u.totalShapeLength}),y.push({s:0,e:u.totalShapeLength*(b-1)}));var _=this.addShapes(u,y[0]);if(y[0].s!==y[0].e){if(y.length>1){if(u.shape.paths.shapes[u.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,d),_=this.addShapes(u,y[1],k)}else this.addPaths(_,d),_=this.addShapes(u,y[1])}this.addPaths(_,d)}}u.shape.paths=d}}},TrimModifier.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,s,r,a,n){r.setXYAt(e[0],e[1],\"o\",a),r.setXYAt(i[0],i[1],\"i\",a+1),n&&r.setXYAt(t[0],t[1],\"v\",a),r.setXYAt(s[0],s[1],\"v\",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],\"o\",i),e.setXYAt(t[2],t[6],\"i\",i+1),s&&e.setXYAt(t[0],t[4],\"v\",i),e.setXYAt(t[3],t[7],\"v\",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var s,r,a,n,o,h,l,p,f=t.pathsData,c=t.shape.paths.shapes,m=t.shape.paths._length,u=0,d=[],g=!0;for(i?(o=i._length,p=i._length):(i=shapePool.newElement(),o=0,p=0),d.push(i),s=0;s<m;s+=1){for(r=1,h=f[s].lengths,i.c=c[s].c,a=c[s].c?h.length:h.length+1;r<a;r+=1)if(u+(n=h[r-1]).addedLength<e.s)u+=n.addedLength,i.c=!1;else if(u>e.e){i.c=!1;break}else e.s<=u&&e.e>=u+n.addedLength?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[r],c[s].v[r],i,o,g),g=!1):(l=bez.getNewSegment(c[s].v[r-1],c[s].v[r],c[s].o[r-1],c[s].i[r],(e.s-u)/n.addedLength,(e.e-u)/n.addedLength,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),u+=n.addedLength,o+=1;if(c[s].c&&h.length){if(n=h[r-1],u<=e.e){var y=h[r-1].addedLength;e.s<=u&&e.e>=u+y?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=bez.getNewSegment(c[s].v[r-1],c[s].v[0],c[s].o[r-1],c[s].i[0],(e.s-u)/y,(e.e-u)/y,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;u+=n.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],\"i\",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],\"o\",i._length-1)),u>e.e)break;s<m-1&&(i=shapePool.newElement(),g=!0,d.push(i),o=0)}return d},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i,s,r,a,n,o,h=e/100,l=[0,0],p=t._length,f=0;for(f=0;f<p;f+=1)l[0]+=t.v[f][0],l[1]+=t.v[f][1];l[0]/=p,l[1]/=p;var c=shapePool.newElement();for(f=0,c.c=t.c;f<p;f+=1)i=t.v[f][0]+(l[0]-t.v[f][0])*h,s=t.v[f][1]+(l[1]-t.v[f][1])*h,r=t.o[f][0]+-((l[0]-t.o[f][0])*h),a=t.o[f][1]+-((l[1]-t.o[f][1])*h),n=t.i[f][0]+-((l[0]-t.i[f][0])*h),o=t.i[f][1]+-((l[1]-t.i[f][1])*h),c.setTripleAt(i,s,r,a,n,o,f);return c},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],r=[];var s,r,a=this.px,n=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(s[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),r[0]=a.getValueAtTime(a.keyframes[0].t/i,0),r[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(s[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),r[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),r[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[a.pv,n.pv],r[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),r[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else s=r=t;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function s(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function a(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function n(t,e,i){if(this.elem=t,this.frameId=-1,this.propType=\"transform\",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var s,r=e.or.k.length;for(s=0;s<r;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return n.prototype={applyToMatrix:e,getValue:i,precalculateMatrix:s,autoOrient:r},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=a,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new n(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return 1e-5>=Math.abs(t)}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var r=-e/(2*t);if(0===s)return[r];var a=Math.sqrt(s)/(2*t);return[r-a,r+a]}function polynomialCoefficients(t,e,i,s){return[-t+3*e-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,s,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),r&&pointEqual(i,s)&&(i=lerpPoint(t,s,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],s[0]),n=polynomialCoefficients(t[1],e[1],i[1],s[1]);this.a=[a[0],n[0]],this.b=[a[1],n[1]],this.c=[a[2],n[2]],this.d=[a[3],n[3]],this.points=[t,e,i,s]}function extrema(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var r=s;s=i,i=r}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n<a.length;n+=1)if(a[n]>0&&a[n]<1){var o=t.point(a[n])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function intersectData(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,s,r,a){if(boxIntersect(t,e)){if(i>=a||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s){r.push([t.t,e.t]);return}var n=splitData(t),o=splitData(e);intersectsImpl(n[0],o[0],i+1,s,r,a),intersectsImpl(n[0],o[1],i+1,s,r,a),intersectsImpl(n[1],o[0],i+1,s,r,a),intersectsImpl(n[1],o[1],i+1,s,r,a)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,s){var r=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],o=[s[0],s[1],1],h=crossProduct(crossProduct(r,a),crossProduct(n,o));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,s,r,a,n){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*r,p=e[1]-Math.sin(i)*s*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],s=-(.5*Math.PI);return[Math.cos(s)*i[0]-Math.sin(s)*i[1],Math.sin(s)*i[0]+Math.cos(s)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,s=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[s]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,s,r,a,n){var o=getProjectingAngle(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],f=2===a?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===a?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;setPoint(t,e.v[i%e._length],o,n,s,c/((r+1)*2),f/((r+1)*2),a)}function zigZagSegment(t,e,i,s,r,a){for(var n=0;n<s;n+=1){var o=(n+1)/(s+1),h=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);setPoint(t,e.point(o),l,a,i,h/((s+1)*2),h/((s+1)*2),r),a=-a}return a}function linearOffset(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,i),polarOffset(e,s,i)]}function offsetSegment(t,e){i=(h=linearOffset(t.points[0],t.points[1],e))[0],s=h[1],r=(h=linearOffset(t.points[1],t.points[2],e))[0],a=h[1],n=(h=linearOffset(t.points[2],t.points[3],e))[0],o=h[1];var i,s,r,a,n,o,h,l=lineIntersection(i,s,r,a);null===l&&(l=s);var p=lineIntersection(n,o,r,a);return null===p&&(p=n),new PolynomialBezier(i,l,p,o)}function joinLines(t,e,i,s,r){var a=e.points[3],n=i.points[0];if(3===s||pointEqual(a,n))return a;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),n,polarOffset(n,o+Math.PI/2,100)),p=l?pointDistance(l,a):pointDistance(a,n)/2,f=polarOffset(a,o,2*p*roundCorner);return t.setXYAt(f[0],f[1],\"o\",t.length()-1),f=polarOffset(n,h,2*p*roundCorner),t.setTripleAt(n[0],n[1],n[0],n[1],f[0],f[1],t.length()),n}var c=pointEqual(a,e.points[2])?e.points[0]:e.points[2],m=pointEqual(n,i.points[1])?i.points[3]:i.points[1],u=lineIntersection(c,a,n,m);return u&&pointDistance(u,a)<r?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):a}function getIntersection(t,e){var i=t.intersections(e);return(i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length)?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),s=e.slice(),r=getIntersection(t[t.length-1],e[0]);return(r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],s[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1])))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,s]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,s,r,a,n=t.inflectionPoints();if(0===n.length)return[offsetSegment(t,e)];if(1===n.length||floatEqual(n[1],1))return i=(r=t.split(n[0]))[0],s=r[1],[offsetSegment(i,e),offsetSegment(s,e)];i=(r=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return a=(r=r[1].split(o))[0],s=r[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(s,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(\" \"):[],i=\"normal\",s=\"normal\",r=e.length,a=0;a<r;a+=1)switch(e[a].toLowerCase()){case\"italic\":s=\"italic\";break;case\"bold\":i=\"700\";break;case\"black\":i=\"900\";break;case\"medium\":i=\"500\";break;case\"regular\":case\"normal\":i=\"400\";break;case\"light\":case\"thin\":i=\"200\"}return{style:s,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,s,r,a){var n=a?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),h=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*n*r,s.p.v[1]*n*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*n*r),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(a?1/o:o,a?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,\"gr\"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,\"gr\"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e=!1;if(this._mdf||t){var i,s,r,a,n,o,h,l,p=Math.ceil(this.c.v);if(this._groups.length<p){for(;this._groups.length<p;){var f={it:this.cloneElements(this._elements),ty:\"gr\"};f.it.push({a:{a:0,ix:1,k:[0,0]},nm:\"Transform\",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:\"tr\"}),this.arr.splice(0,0,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),e=!0}for(r=0,n=0;r<=this._groups.length-1;r+=1){if(o=n<p,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var c=this.elemsData[r].it,m=c[c.length-1];0!==m.transform.op.v?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}n+=1}this._currentCopies=p;var u=this.o.v,d=u%1,g=u>0?Math.floor(u):Math.ceil(u),y=this.pMatrix.props,v=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(u>0){for(;x<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),x+=d)}else if(u<0){for(;x>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),x-=d)}for(r=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,n=this._currentCopies;n;){if(l=(s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===a||r!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),h=0;h<l;h+=1)s[h]=this.matrix.props[h];this.matrix.reset()}else for(this.matrix.reset(),h=0;h<l;h+=1)s[h]=this.matrix.props[h];x+=1,n-=1,r+=a}}else for(n=this._currentCopies,r=0,a=1;n;)s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,n-=1,r+=a;return e},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,s,r,a,n,o,h,l,p,f,c,m,u,d=shapePool.newElement();d.c=t.c;var g=t._length,y=0;for(i=0;i<g;i+=1)s=t.v[i],a=t.o[i],r=t.i[i],s[0]===a[0]&&s[1]===a[1]&&s[0]===r[0]&&s[1]===r[1]?0!==i&&i!==g-1||t.c?(n=0===i?t.v[g-1]:t.v[i-1],h=(o=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(o/2,e)/o:0,l=m=s[0]+(n[0]-s[0])*h,p=u=s[1]-(s[1]-n[1])*h,f=l-(l-s[0])*roundCorner,c=p-(p-s[1])*roundCorner,d.setTripleAt(l,p,f,c,m,u,y),y+=1,n=i===g-1?t.v[0]:t.v[i+1],h=(o=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(o/2,e)/o:0,l=f=s[0]+(n[0]-s[0])*h,p=c=s[1]+(n[1]-s[1])*h,m=l-(l-s[0])*roundCorner,u=p-(p-s[1])*roundCorner,d.setTripleAt(l,p,f,c,m,u,y)):d.setTripleAt(s[0],s[1],a[0],a[1],r[0],r[1],y):d.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1;return d},RoundCornersModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return floatZero(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),s=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),a=lerpPoint(i,s,t),n=lerpPoint(r,a,t);return[new PolynomialBezier(this.points[0],e,r,n,!0),new PolynomialBezier(n,a,s,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,s,i),s},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,s){var r=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(r-=1),0===r)return a;var n=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,s,n);for(var h=0;h<r;h+=1)n=zigZagSegment(a,o,e,i,s,-n),o=h!==r-1||t.c?PolynomialBezier.shapeSegment(t,(h+1)%r):null,zigZagCorner(a,t,h+1,e,i,s,n);return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h,l,p));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,s){var r,a,n,o=shapePool.newElement();o.c=t.c;var h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)n=PolynomialBezier.shapeSegment(t,r),l.push(offsetSegmentSplit(n,e));if(!t.c)for(r=h-1;r>=0;r-=1)n=PolynomialBezier.shapeSegmentInverted(t,r),l.push(offsetSegmentSplit(n,e));l=pruneIntersections(l);var p=null,f=null;for(r=0;r<l.length;r+=1){var c=l[r];for(f&&(p=joinLines(o,f,c[0],i,s)),f=c[c.length-1],a=0;a<c.length;a+=1)n=c[a],p&&pointEqual(n.points[0],p)?o.setXYAt(n.points[1][0],n.points[1][1],\"o\",o.length()-1):o.setTripleAt(n.points[0][0],n.points[0][1],n.points[1][0],n.points[1][1],n.points[0][0],n.points[0][1],o.length()),o.setTripleAt(n.points[3][0],n.points[3][1],n.points[3][0],n.points[3][1],n.points[2][0],n.points[2][1],o.length()),p=n.points[3]}return l.length&&joinLines(o,f,l[0][0],i,s),o},OffsetPathModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h,p,l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var s=127988,r=917631,a=917601,n=917626,o=65039,h=8205,l=127462,p=127487,f=[\"d83cdffb\",\"d83cdffc\",\"d83cdffd\",\"d83cdffe\",\"d83cdfff\"];function c(t){var e,i=t.split(\",\"),s=i.length,r=[];for(e=0;e<s;e+=1)\"sans-serif\"!==i[e]&&\"monospace\"!==i[e]&&r.push(i[e]);return r.join(\",\")}function m(t,e){var i=createTag(\"span\");i.setAttribute(\"aria-hidden\",!0),i.style.fontFamily=e;var s=createTag(\"span\");s.innerText=\"giItT1WQy@!-/#\",i.style.position=\"absolute\",i.style.left=\"-10000px\",i.style.top=\"-10000px\",i.style.fontSize=\"300px\",i.style.fontVariant=\"normal\",i.style.fontStyle=\"normal\",i.style.fontWeight=\"normal\",i.style.letterSpacing=\"0\",i.appendChild(s),document.body.appendChild(i);var r=s.offsetWidth;return s.style.fontFamily=c(t)+\", \"+e,{node:s,w:r,parent:i}}function u(){var e,i,s,r=this.fonts.length,a=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?a-=1:\"n\"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,s=this.fonts[e].monoCase.w,i.offsetWidth!==s?(a-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,s=this.fonts[e].sansCase.w,i.offsetWidth!==s&&(a-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==a&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function d(t,e){var i,s=document.body&&e?\"svg\":\"canvas\",r=getFontProperties(t);if(\"svg\"===s){var a=createNS(\"text\");a.style.fontSize=\"100px\",a.setAttribute(\"font-family\",t.fFamily),a.setAttribute(\"font-style\",r.style),a.setAttribute(\"font-weight\",r.weight),a.textContent=\"1\",t.fClass?(a.style.fontFamily=\"inherit\",a.setAttribute(\"class\",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),i=a}else{var n=new OffscreenCanvas(500,500).getContext(\"2d\");n.font=r.style+\" \"+r.weight+\" 100px \"+t.fFamily,i=n}return{measureText:function(t){return\"svg\"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function g(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}if(!document.body){this.isLoaded=!0,t.list.forEach(function(t){t.helper=d(t),t.cache={}}),this.fonts=t.list;return}var i=t.list,s=i.length,r=s;for(a=0;a<s;a+=1){var a,n,o,h=!0;if(i[a].loaded=!1,i[a].monoCase=m(i[a].fFamily,\"monospace\"),i[a].sansCase=m(i[a].fFamily,\"sans-serif\"),i[a].fPath){if(\"p\"===i[a].fOrigin||3===i[a].origin){if((n=document.querySelectorAll('style[f-forigin=\"p\"][f-family=\"'+i[a].fFamily+'\"], style[f-origin=\"3\"][f-family=\"'+i[a].fFamily+'\"]')).length>0&&(h=!1),h){var l=createTag(\"style\");l.setAttribute(\"f-forigin\",i[a].fOrigin),l.setAttribute(\"f-origin\",i[a].origin),l.setAttribute(\"f-family\",i[a].fFamily),l.type=\"text/css\",l.innerText=\"@font-face {font-family: \"+i[a].fFamily+\"; font-style: normal; src: url('\"+i[a].fPath+\"');}\",e.appendChild(l)}}else if(\"g\"===i[a].fOrigin||1===i[a].origin){for(o=0,n=document.querySelectorAll('link[f-forigin=\"g\"], link[f-origin=\"1\"]');o<n.length;o+=1)-1!==n[o].href.indexOf(i[a].fPath)&&(h=!1);if(h){var p=createTag(\"link\");p.setAttribute(\"f-forigin\",i[a].fOrigin),p.setAttribute(\"f-origin\",i[a].origin),p.type=\"text/css\",p.rel=\"stylesheet\",p.href=i[a].fPath,document.body.appendChild(p)}}else if(\"t\"===i[a].fOrigin||2===i[a].origin){for(o=0,n=document.querySelectorAll('script[f-forigin=\"t\"], script[f-origin=\"2\"]');o<n.length;o+=1)i[a].fPath===n[o].src&&(h=!1);if(h){var f=createTag(\"link\");f.setAttribute(\"f-forigin\",i[a].fOrigin),f.setAttribute(\"f-origin\",i[a].origin),f.setAttribute(\"rel\",\"stylesheet\"),f.setAttribute(\"href\",i[a].fPath),e.appendChild(f)}}}else i[a].loaded=!0,r-=1;i[a].helper=d(i[a],e),i[a].cache={},this.fonts.push(i[a])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function y(t){if(t){this.chars||(this.chars=[]);var e,i,s,r=t.length,a=this.chars.length;for(e=0;e<r;e+=1){for(i=0,s=!1;i<a;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),a+=1)}}}function v(t,i,s){for(var r=0,a=this.chars.length;r<a;){if(this.chars[r].ch===t&&this.chars[r].style===i&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return(\"string\"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn(\"Missing character from exported characters list: \",t,i,s)),e}function b(t,e,i){var s=this.getFontByName(e),r=t;if(!s.cache[r]){var a=s.helper;if(\" \"===t){var n=a.measureText(\"|\"+t+\"|\"),o=a.measureText(\"||\");s.cache[r]=(n-o)/100}else s.cache[r]=a.measureText(t)/100}return s.cache[r]*i}function x(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function _(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=(i-55296)*1024+s-56320+65536)}return e}function k(t,e){var i=t.toString(16)+e.toString(16);return -1!==f.indexOf(i)}function C(t){return t===h}function P(t){return t===o}function A(t){var e=_(t);return e>=l&&e<=p}function w(t){return A(t.substr(0,2))&&A(t.substr(2,2))}function S(t){return -1!==i.indexOf(t)}function D(t,e){var i=_(t.substr(e,2));if(i!==s)return!1;var o=0;for(e+=2;o<5;){if((i=_(t.substr(e,2)))<a||i>n)return!1;o+=1,e+=2}return _(t.substr(e,2))===r}function T(){this.isLoaded=!0}var M=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};M.isModifier=k,M.isZeroWidthJoiner=C,M.isFlagEmoji=w,M.isRegionalCode=A,M.isCombinedCharacter=S,M.isRegionalFlag=D,M.isVariationSelector=P,M.BLACK_FLAG_CODE_POINT=s;var E={addChars:y,addFonts:g,getCharData:v,getFontByName:x,measureText:b,checkLoadedFonts:u,setIsLoaded:T};return M.prototype=E,M}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var t={0:\"source-over\",1:\"multiply\",2:\"screen\",3:\"overlay\",4:\"darken\",5:\"lighten\",6:\"color-dodge\",7:\"color-burn\",8:\"hard-light\",9:\"soft-light\",10:\"difference\",11:\"exclusion\",12:\"hue\",13:\"saturation\",14:\"color\",15:\"luminosity\"};return function(e){return t[e]||\"\"}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,s,r=t.ef||[];this.effectElements=[];var a=r.length;for(i=0;i<a;i+=1)s=new GroupEffect(r[i],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s,r=this.data.ef.length,a=this.data.ef;for(i=0;i<r;i+=1){switch(s=null,a[i].ty){case 0:s=new SliderEffect(a[i],e,this);break;case 1:s=new AngleEffect(a[i],e,this);break;case 2:s=new ColorEffect(a[i],e,this);break;case 3:s=new PointEffect(a[i],e,this);break;case 4:case 7:s=new CheckboxEffect(a[i],e,this);break;case 10:s=new LayerIndexEffect(a[i],e,this);break;case 11:s=new MaskIndexEffect(a[i],e,this);break;case 5:s=new EffectsManager(a[i],e,this);break;default:s=new NoValueEffect(a[i],e,this)}s&&this.effectElements.push(s)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(\"n\"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t(\"layer\"),i=t(\"effects\"),s=t(\"shape\"),r=t(\"text\"),a=t(\"comp\");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var n=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(n),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style[\"mix-blend-mode\"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&\"transform\"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t(\"footage\");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)!this.elements[e]&&(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw Error(\"You're using a 3d camera. Try the html renderer.\")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,s=t.length,r=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,r=this.layers,a=0,n=r.length;a<n;)r[a].ind==e&&(s[a]&&!0!==s[a]?(i.push(s[a]),s[a].setAsParent(),void 0!==r[a].parent?this.buildElementParenting(t,r[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift();if(\"number\"==typeof e)i=this.elements[e];else{var i,s,r=this.elements.length;for(s=0;s<r;s+=1)if(this.elements[s].data.nm===e){i=this.elements[s];break}}return 0===t.length?i:i.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:\"transformEFfect\"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath=\"\";var a=this.masksProperties,n=0,o=[],h=createElementID(),l=\"clipPath\",p=\"clip-path\";for(f=0;f<r;f+=1)if((\"a\"!==a[f].mode&&\"n\"!==a[f].mode||a[f].inv||100!==a[f].o.k||a[f].o.x)&&(l=\"mask\",p=\"mask\"),(\"s\"===a[f].mode||\"i\"===a[f].mode)&&0===n?((d=createNS(\"rect\")).setAttribute(\"fill\",\"#ffffff\"),d.setAttribute(\"width\",this.element.comp.data.w||0),d.setAttribute(\"height\",this.element.comp.data.h||0),o.push(d)):d=null,c=createNS(\"path\"),\"n\"===a[f].mode)this.viewData[f]={op:PropertyFactory.getProp(this.element,a[f].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[f],3),elem:c,lastPath:\"\"},s.appendChild(c);else{if(n+=1,c.setAttribute(\"fill\",\"s\"===a[f].mode?\"#000000\":\"#ffffff\"),c.setAttribute(\"clip-rule\",\"nonzero\"),0!==a[f].x.k?(l=\"mask\",p=\"mask\",v=PropertyFactory.getProp(this.element,a[f].x,0,null,this.element),b=createElementID(),(g=createNS(\"filter\")).setAttribute(\"id\",b),(y=createNS(\"feMorphology\")).setAttribute(\"operator\",\"erode\"),y.setAttribute(\"in\",\"SourceGraphic\"),y.setAttribute(\"radius\",\"0\"),g.appendChild(y),s.appendChild(g),c.setAttribute(\"stroke\",\"s\"===a[f].mode?\"#000000\":\"#ffffff\")):(y=null,v=null),this.storedData[f]={elem:c,x:v,expan:y,lastPath:\"\",lastOperator:\"\",filterId:b,lastRadius:0},\"i\"===a[f].mode){u=o.length;var f,c,m,u,d,g,y,v,b,x=createNS(\"g\");for(m=0;m<u;m+=1)x.appendChild(o[m]);var _=createNS(\"mask\");_.setAttribute(\"mask-type\",\"alpha\"),_.setAttribute(\"id\",h+\"_\"+n),_.appendChild(c),s.appendChild(_),x.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+h+\"_\"+n+\")\"),o.length=0,o.push(x)}else o.push(c);a[f].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[f]={elem:c,lastPath:\"\",op:PropertyFactory.getProp(this.element,a[f].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[f],3),invRect:d},this.viewData[f].prop.k||this.drawPath(a[f],this.viewData[f].prop.v,this.viewData[f])}for(f=0,this.maskElement=createNS(l),r=o.length;f<r;f+=1)this.maskElement.appendChild(o[f]);n>0&&(this.maskElement.setAttribute(\"id\",h),this.element.maskedElement.setAttribute(p,\"url(\"+getLocationHref()+\"#\"+h+\")\"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e,i,s=[];s.push(this.finalTransform);for(var r=!0,a=this.comp;r;)a.finalTransform?(a.data.hasMask&&s.splice(0,0,a.finalTransform),a=a.comp):r=!1;var n=s.length;for(e=0;e<n;e+=1)i=s[e].mat.applyToPointArray(0,0,0),t=[t[0]-i[0],t[1]-i[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute(\"fill-opacity\",this.viewData[e].op.v),\"n\"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute(\"transform\",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?(\"erode\"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator=\"erode\",this.storedData[e].elem.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+this.storedData[e].filterId+\")\")),r.setAttribute(\"radius\",-this.storedData[e].x.v)):(\"dilate\"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator=\"dilate\",this.storedData[e].elem.setAttribute(\"filter\",null)),this.storedData[e].elem.setAttribute(\"stroke-width\",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){return\"M0,0 \"+(\" h\"+this.globalData.compSize.w+\" v\"+this.globalData.compSize.h+\" h-\"+this.globalData.compSize.w+\" v-\"+this.globalData.compSize.h)+\" \"},MaskElement.prototype.drawPath=function(t,e,i){var s,r,a=\" M\"+e.v[0][0]+\",\"+e.v[0][1];for(s=1,r=e._length;s<r;s+=1)a+=\" C\"+e.o[s-1][0]+\",\"+e.o[s-1][1]+\" \"+e.i[s][0]+\",\"+e.i[s][1]+\" \"+e.v[s][0]+\",\"+e.v[s][1];if(e.c&&r>1&&(a+=\" C\"+e.o[s-1][0]+\",\"+e.o[s-1][1]+\" \"+e.i[0][0]+\",\"+e.i[0][1]+\" \"+e.v[0][0]+\",\"+e.v[0][1]),i.lastPath!==a){var n=\"\";i.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),i.elem.setAttribute(\"d\",n)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};function e(t,e){var i=createNS(\"filter\");return i.setAttribute(\"id\",t),!0!==e&&(i.setAttribute(\"filterUnits\",\"objectBoundingBox\"),i.setAttribute(\"x\",\"0%\"),i.setAttribute(\"y\",\"0%\"),i.setAttribute(\"width\",\"100%\"),i.setAttribute(\"height\",\"100%\")),i}function i(){var t=createNS(\"feColorMatrix\");return t.setAttribute(\"type\",\"matrix\"),t.setAttribute(\"color-interpolation-filters\",\"sRGB\"),t.setAttribute(\"values\",\"0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1\"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=i,t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:\"undefined\"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\\/\\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix=\"filter_result_\";function SVGEffects(t){var e,i,s=\"SourceGraphic\",r=t.data.ef?t.data.ef.length:0,a=createElementID(),n=filtersFactory.createFilter(a,!0),o=0;for(e=0,this.filters=[];e<r;e+=1){i=null;var h=t.data.ef[e].ty;registeredEffects$1[h]&&(i=new registeredEffects$1[h].effect(n,t.effectsManager.effectElements[e],t,idPrefix+o,s),s=idPrefix+o,registeredEffects$1[h].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+a+\")\")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS(\"g\")},createContainerElements:function(){this.matteElement=createNS(\"g\"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS(\"g\");e.setAttribute(\"id\",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS(\"clipPath\"),s=createNS(\"path\");s.setAttribute(\"d\",\"M0,0 L\"+this.data.w+\",0 L\"+this.data.w+\",\"+this.data.h+\" L0,\"+this.data.h+\"z\");var r=createElementID();if(i.setAttribute(\"id\",r),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS(\"g\");a.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+r+\")\"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+r+\")\")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute(\"transform\",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute(\"opacity\",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,r,a=this.layerId+\"_\"+t;if(1===t||3===t){var n=createNS(\"mask\");n.setAttribute(\"id\",a),n.setAttribute(\"mask-type\",3===t?\"luminance\":\"alpha\"),(s=createNS(\"use\")).setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",\"#\"+this.layerId),n.appendChild(s),this.globalData.defs.appendChild(n),featureSupport.maskType||1!==t||(n.setAttribute(\"mask-type\",\"luminance\"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS(\"g\")).appendChild(s),n.appendChild(r),r.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+e+\")\"))}else if(2===t){var o=createNS(\"mask\");o.setAttribute(\"id\",a),o.setAttribute(\"mask-type\",\"alpha\");var h=createNS(\"g\");o.appendChild(h),e=createElementID(),i=filtersFactory.createFilter(e);var l=createNS(\"feComponentTransfer\");l.setAttribute(\"in\",\"SourceGraphic\"),i.appendChild(l);var p=createNS(\"feFuncA\");p.setAttribute(\"type\",\"table\"),p.setAttribute(\"tableValues\",\"1.0 0.0\"),l.appendChild(p),this.globalData.defs.appendChild(i);var f=createNS(\"rect\");f.setAttribute(\"width\",this.comp.data.w),f.setAttribute(\"height\",this.comp.data.h),f.setAttribute(\"x\",\"0\"),f.setAttribute(\"y\",\"0\"),f.setAttribute(\"fill\",\"#ffffff\"),f.setAttribute(\"opacity\",\"0\"),h.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+e+\")\"),h.appendChild(f),(s=createNS(\"use\")).setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",\"#\"+this.layerId),h.appendChild(s),featureSupport.maskType||(o.setAttribute(\"mask-type\",\"luminance\"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS(\"g\"),h.appendChild(f),r.appendChild(this.layerElement),h.appendChild(r)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+t+\")\")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display=\"none\",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display=\"block\"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS(\"image\"),this.innerElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.innerElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.innerElem.setAttribute(\"preserveAspectRatio\",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t){i[s].pos=e;return}i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:\"butt\",2:\"round\",3:\"square\"},lineJoinEnum={1:\"miter\",2:\"round\",3:\"bevel\"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr=\"\",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,r=t.length;s<r;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d=\"\",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS(\"path\"),this.msElem=null}function DashProperty(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr=\"\",this.dashArray=createTypedArray(\"float32\",e.length?e.length-1:0),this.dashoffset=createTypedArray(\"float32\",1),this.initDynamicPropertyContainer(s);var r,a,n=e.length||0;for(r=0;r<n;r+=1)a=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=a.k||this.k,this.dataProps[r]={n:e[r].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},\"svg\",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray(\"uint8c\",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray(\"float32\",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},\"svg\",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS(\"g\")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d=\"\",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for(\"svg\"===this.renderer&&(this.dashStr=\"\"),e=0;e<i;e+=1)\"o\"!==this.dataProps[e].n?\"svg\"===this.renderer?this.dashStr+=\" \"+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i,s,r,a=createElementID(),n=createNS(1===e.t?\"linearGradient\":\"radialGradient\");n.setAttribute(\"id\",a),n.setAttribute(\"spreadMethod\",\"pad\"),n.setAttribute(\"gradientUnits\",\"userSpaceOnUse\");var o=[];for(s=0,r=4*e.g.p;s<r;s+=4)i=createNS(\"stop\"),n.appendChild(i),o.push(i);t.setAttribute(\"gf\"===e.ty?\"fill\":\"stroke\",\"url(\"+getLocationHref()+\"#\"+a+\")\"),this.gf=n,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,r,a=createNS(\"mask\"),n=createNS(\"path\");a.appendChild(n);var o=createElementID(),h=createElementID();a.setAttribute(\"id\",h);var l=createNS(1===t.t?\"linearGradient\":\"radialGradient\");l.setAttribute(\"id\",o),l.setAttribute(\"spreadMethod\",\"pad\"),l.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(s=4*t.g.p;s<r;s+=2)(i=createNS(\"stop\")).setAttribute(\"stop-color\",\"rgb(255,255,255)\"),l.appendChild(i),p.push(i);n.setAttribute(\"gf\"===t.ty?\"fill\":\"stroke\",\"url(\"+getLocationHref()+\"#\"+o+\")\"),\"gs\"===t.ty&&(n.setAttribute(\"stroke-linecap\",lineCapEnum[t.lc||2]),n.setAttribute(\"stroke-linejoin\",lineJoinEnum[t.lj||2]),1===t.lj&&n.setAttribute(\"stroke-miterlimit\",t.ml)),this.of=l,this.ms=a,this.ost=p,this.maskId=h,e.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,s){if(0===e)return\"\";var r,a=t.o,n=t.i,o=t.v,h=\" M\"+s.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<e;r+=1)h+=\" C\"+s.applyToPointStringified(a[r-1][0],a[r-1][1])+\" \"+s.applyToPointStringified(n[r][0],n[r][1])+\" \"+s.applyToPointStringified(o[r][0],o[r][1]);return i&&e&&(h+=\" C\"+s.applyToPointStringified(a[r-1][0],a[r-1][1])+\" \"+s.applyToPointStringified(n[0][0],n[0][1])+\" \"+s.applyToPointStringified(o[0][0],o[0][1])+\"z\"),h},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute(\"opacity\",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute(\"transform\",e.transform.mProps.v.to2dCSS())}function s(){}function r(i,s,r){var a,n,o,h,l,p,f,c,m,u,d=s.styles.length,g=s.lvl;for(p=0;p<d;p+=1){if(h=s.sh._mdf||r,s.styles[p].lvl<g){for(c=e.reset(),m=g-s.styles[p].lvl,u=s.transformers.length-1;!h&&m>0;)h=s.transformers[u].mProps._mdf||h,m-=1,u-=1;if(h)for(m=g-s.styles[p].lvl,u=s.transformers.length-1;m>0;)c.multiply(s.transformers[u].mProps.v),m-=1,u-=1}else c=t;if(n=(f=s.sh.paths)._length,h){for(a=0,o=\"\";a<n;a+=1)(l=f.shapes[a])&&l._length&&(o+=buildShapeString(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?\"\":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function a(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute(\"fill\",\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i)&&s.pElem.setAttribute(\"fill-opacity\",e.o.v)}function n(t,e,i){o(t,e,i),h(t,e,i)}function o(t,e,i){var s,r,a,n,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,f=e.e.v;if(e.o._mdf||i){var c=\"gf\"===t.ty?\"fill-opacity\":\"stroke-opacity\";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var m=1===t.t?\"x1\":\"cx\",u=\"x1\"===m?\"y1\":\"cy\";h.setAttribute(m,p[0]),h.setAttribute(u,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(m,p[0]),e.of.setAttribute(u,p[1]))}if(e.g._cmdf||i){s=e.cst;var d=e.g.c;for(r=0,a=s.length;r<a;r+=1)(n=s[r]).setAttribute(\"offset\",d[4*r]+\"%\"),n.setAttribute(\"stop-color\",\"rgb(\"+d[4*r+1]+\",\"+d[4*r+2]+\",\"+d[4*r+3]+\")\")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=0,a=(s=e.g._collapsable?e.cst:e.ost).length;r<a;r+=1)n=s[r],e.g._collapsable||n.setAttribute(\"offset\",g[2*r]+\"%\"),n.setAttribute(\"stop-opacity\",g[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute(\"x2\",f[0]),h.setAttribute(\"y2\",f[1]),l&&!e.g._collapsable&&(e.of.setAttribute(\"x2\",f[0]),e.of.setAttribute(\"y2\",f[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)),h.setAttribute(\"r\",o),l&&!e.g._collapsable&&e.of.setAttribute(\"r\",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)));var y=Math.atan2(f[1]-p[1],f[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,x=Math.cos(y+e.a.v)*b+p[0],_=Math.sin(y+e.a.v)*b+p[1];h.setAttribute(\"fx\",x),h.setAttribute(\"fy\",_),l&&!e.g._collapsable&&(e.of.setAttribute(\"fx\",x),e.of.setAttribute(\"fy\",_))}}function h(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(s.pElem.setAttribute(\"stroke-dasharray\",r.dashStr),s.pElem.setAttribute(\"stroke-dashoffset\",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute(\"stroke\",\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i)&&s.pElem.setAttribute(\"stroke-opacity\",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute(\"stroke-width\",e.w.v),s.msElem&&s.msElem.setAttribute(\"stroke-width\",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case\"fl\":return a;case\"gf\":return o;case\"gs\":return n;case\"st\":return h;case\"sh\":case\"el\":case\"rc\":case\"sr\":return r;case\"tr\":return i;case\"no\":return s;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,s,r,a){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=r,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv=\"\",this.v=\"\",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:\"\",fStyle:\"\",fWeight:\"\",fc:\"\",j:\"\",justifyOffset:\"\",l:[],lh:0,lineWidths:[],ls:\"\",of:\"\",s:\"\",sc:\"\",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,s,r=this.shapes.length,a=this.stylesList.length,n=[],o=!1;for(i=0;i<a;i+=1){for(t=0,s=this.stylesList[i],o=!1,n.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,s=new SVGStyleData(t,e),r=s.pElem;return\"st\"===t.ty?i=new SVGStrokeStyleData(this,t,s):\"fl\"===t.ty?i=new SVGFillStyleData(this,t,s):\"gf\"===t.ty||\"gs\"===t.ty?(i=new(\"gf\"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+i.maskId+\")\"))):\"no\"===t.ty&&(i=new SVGNoStyleData(this,t,s)),(\"st\"===t.ty||\"gs\"===t.ty)&&(r.setAttribute(\"stroke-linecap\",lineCapEnum[t.lc||2]),r.setAttribute(\"stroke-linejoin\",lineJoinEnum[t.lj||2]),r.setAttribute(\"fill-opacity\",\"0\"),1===t.lj&&r.setAttribute(\"stroke-miterlimit\",t.ml)),2===t.r&&r.setAttribute(\"fill-rule\",\"evenodd\"),t.ln&&r.setAttribute(\"id\",t.ln),t.cl&&r.setAttribute(\"class\",t.cl),t.bm&&(r.style[\"mix-blend-mode\"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute(\"id\",t.ln),t.cl&&e.gr.setAttribute(\"class\",t.cl),t.bm&&(e.gr.style[\"mix-blend-mode\"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),s=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var s=4;\"rc\"===t.ty?s=5:\"el\"===t.ty?s=6:\"sr\"===t.ty&&(s=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,s,r,a,n){var o,h,l,p,f,c,m=[].concat(a),u=t.length-1,d=[],g=[];for(o=u;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=n,\"fl\"===t[o].ty||\"st\"===t[o].ty||\"gf\"===t[o].ty||\"gs\"===t[o].ty||\"no\"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),d.push(e[o].style);else if(\"gr\"===t[o].ty){if(c)for(h=0,l=e[o].it.length;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,r+1,m,n),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else\"tr\"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,m.push(p)):\"sh\"===t[o].ty||\"rc\"===t[o].ty||\"el\"===t[o].ty||\"sr\"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],m,r)),this.setElementStyles(e[o])):\"tm\"===t[o].ty||\"rd\"===t[o].ty||\"ms\"===t[o].ty||\"pb\"===t[o].ty||\"zz\"===t[o].ty||\"op\"===t[o].ty?(c?(f=e[o]).closed=!1:((f=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=f,this.shapeModifiers.push(f)),g.push(f)):\"rp\"===t[o].ty&&(c?(f=e[o]).closed=!0:(f=ShapeModifiers.getModifier(t[o].ty),e[o]=f,f.init(this,t,o,e),this.shapeModifiers.push(f),n=!1),g.push(f));this.addProcessedElement(t[o],o+1)}for(o=0,u=d.length;o<u;o+=1)d[o].closed=!0;for(o=0,u=g.length;o<u;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute(\"d\",this.stylesList[t].d),this.stylesList[t].d=\"M0 0\"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute(\"d\",this.stylesList[t].d||\"M0 0\"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,s,r,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,n=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,n=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,n=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,n=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e,i=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(e=0;e<r;e+=1)a=s!==this.keysIndex?this.effectsSequence[e](a,a.t):this.effectsSequence[e](this.currentData,a.t);i!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&i!==s-1&&!(t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,s=[],r=0,a=t.length,n=!1,o=!1,h=\"\";r<a;)n=o,o=!1,e=t.charCodeAt(r),h=t.charAt(r),FontManager.isCombinedCharacter(e)?n=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,r)?h=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(h=t.substr(r,2),n=!0):h=FontManager.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),FontManager.isVariationSelector(e)&&(n=!0)):FontManager.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(s[s.length-1]+=h,n=!1):s.push(h),r+=h.length;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,s=[],r=0,a=i.m.g,n=0,o=0,h=0,l=[],p=0,f=0,c=e.getFontByName(t.f),m=0,u=getFontProperties(c);t.fWeight=u.weight,t.fStyle=u.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),y=t.finalText.length,t.finalLineHeight=t.lh;var d=t.tr/1e3*t.finalSize;if(t.sz)for(var g,y,v,b,x,_,k,C,P,A,w=!0,S=t.sz[0],D=t.sz[1];w;){A=this.buildFinalText(t.t),P=0,p=0,y=A.length,d=t.tr/1e3*t.finalSize;var T=-1;for(g=0;g<y;g+=1)C=A[g].charCodeAt(0),v=!1,\" \"===A[g]?T=g:(13===C||3===C)&&(p=0,v=!0,P+=t.finalLineHeight||1.2*t.finalSize),e.chars?(k=e.getCharData(A[g],c.fStyle,c.fFamily),m=v?0:k.w*t.finalSize/100):m=e.measureText(A[g],t.f,t.finalSize),p+m>S&&\" \"!==A[g]?(-1===T?y+=1:g=T,P+=t.finalLineHeight||1.2*t.finalSize,A.splice(g,T===g?1:0,\"\\r\"),T=-1,p=0):p+=m+d;P+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&D<P?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=A,y=t.finalText.length,w=!1)}p=-d,m=0;var M=0;for(g=0;g<y;g+=1)if(v=!1,13===(C=(I=t.finalText[g]).charCodeAt(0))||3===C?(M=0,l.push(p),f=p>f?p:f,p=-2*d,b=\"\",v=!0,h+=1):b=I,e.chars?(k=e.getCharData(I,c.fStyle,e.getFontByName(t.f).fFamily),m=v?0:k.w*t.finalSize/100):m=e.measureText(b,t.f,t.finalSize),\" \"===I?M+=m+d:(p+=m+d+M,M=0),s.push({l:m,an:m,add:n,n:v,anIndexes:[],val:b,line:h,animatorJustifyOffset:0}),2==a){if(n+=m,\"\"===b||\" \"===b||g===y-1){for((\"\"===b||\" \"===b)&&(n-=m);o<=g;)s[o].an=n,s[o].ind=r,s[o].extra=m,o+=1;r+=1,n=0}}else if(3==a){if(n+=m,\"\"===b||g===y-1){for(\"\"===b&&(n-=m);o<=g;)s[o].an=n,s[o].ind=r,s[o].extra=m,o+=1;n=0,r+=1}}else s[r].ind=r,s[r].extra=0,r+=1;if(t.l=s,f=p>f?p:f,l.push(p),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=f,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=l;var E=i.a;_=E.length;var F=[];for(x=0;x<_;x+=1){for((L=E[x]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),V=0,R=L.s.b,g=0;g<y;g+=1)(B=s[g]).anIndexes[x]=V,(1==R&&\"\"!==B.val||2==R&&\"\"!==B.val&&\" \"!==B.val||3==R&&(B.n||\" \"==B.val||g==y-1)||4==R&&(B.n||g==y-1))&&(1===L.s.rn&&F.push(V),V+=1);i.a[x].s.totalChars=V;var I,L,B,R,V,z,O=-1;if(1===L.s.rn)for(g=0;g<y;g+=1)O!=(B=s[g]).anIndexes[x]&&(O=B.anIndexes[x],z=F.splice(Math.floor(Math.random()*F.length),1)[0]),B.anIndexes[x]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=c.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),\"e\"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,a=0,n=1,o=1;this.ne.v>0?r=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(r,a,n,o).get,l=0,p=this.finalS,f=this.finalE,c=this.data.sh;if(2===c)l=h(l=f===p?s>=f?1:0:t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(3===c)l=h(l=f===p?s>=f?0:1:1-t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(4===c)f===p?l=0:(l=t(0,e(.5/(f-p)+(s-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(f===p)l=0;else{var m=f-p,u=-m/2+(s=e(t(0,s+.5-p),f-p)),d=m/2;l=Math.sqrt(1-u*u/(d*d))}l=h(l)}else 6===c?l=h(l=f===p?0:(1+Math.cos(Math.PI+2*Math.PI*(s=e(t(0,s+.5-p),f-p))/(f-p)))/2):(s>=i(p)&&(l=s-p<0?t(0,e(e(f,1)-(p-s),1)):t(0,e(f-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l<y?l=0:(l=(l-y)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,r=this.e.v/e+i;if(s>r){var a=s;s=r,r=a}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(t,e,i){return new s(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var s={propType:!1},r=PropertyFactory.getProp,a=e.a;this.a={r:a.r?r(t,a.r,0,degToRads,i):s,rx:a.rx?r(t,a.rx,0,degToRads,i):s,ry:a.ry?r(t,a.ry,0,degToRads,i):s,sk:a.sk?r(t,a.sk,0,degToRads,i):s,sa:a.sa?r(t,a.sa,0,degToRads,i):s,s:a.s?r(t,a.s,1,.01,i):s,a:a.a?r(t,a.a,1,0,i):s,o:a.o?r(t,a.o,0,.01,i):s,p:a.p?r(t,a.p,1,0,i):s,sw:a.sw?r(t,a.sw,0,0,i):s,sc:a.sc?r(t,a.sc,1,0,i):s,fc:a.fc?r(t,a.fc,1,0,i):s,fh:a.fh?r(t,a.fh,0,0,i):s,fs:a.fs?r(t,a.fs,0,.01,i):s,fb:a.fb?r(t,a.fb,0,.01,i):s,t:a.t?r(t,a.t,0,0,i):s},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&\"m\"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,r,a,n,o,h,l,p,f,c,m,u,d,g,y,v,b,x=this._moreOptions.alignment.v,_=this._animatorsData,k=this._textData,C=this.mHelper,P=this._renderType,A=this.renderedLetters.length,w=t.l;if(this._hasMaskedPath){if(W=this._pathData.m,!this._pathData.n||this._pathData._mdf){var S,D,T,M,E,F,I,L,B,R,V,z,O,N,G,j,q,W,Y,H=W.v;for(this._pathData.r.v&&(H=H.reverse()),E={tLength:0,segments:[]},M=H._length-1,j=0,T=0;T<M;T+=1)Y=bez.buildBezierData(H.v[T],H.v[T+1],[H.o[T][0]-H.v[T][0],H.o[T][1]-H.v[T][1]],[H.i[T+1][0]-H.v[T+1][0],H.i[T+1][1]-H.v[T+1][1]]),E.tLength+=Y.segmentLength,E.segments.push(Y),j+=Y.segmentLength;T=M,W.v.c&&(Y=bez.buildBezierData(H.v[T],H.v[0],[H.o[T][0]-H.v[T][0],H.o[T][1]-H.v[T][1]],[H.i[0][0]-H.v[0][0],H.i[0][1]-H.v[0][1]]),E.tLength+=Y.segmentLength,E.segments.push(Y),j+=Y.segmentLength),this._pathData.pi=E}if(E=this._pathData.pi,F=this._pathData.f.v,V=0,R=1,L=0,B=!0,N=E.segments,F<0&&W.v.c)for(E.tLength<Math.abs(F)&&(F=-Math.abs(F)%E.tLength),V=N.length-1,R=(O=N[V].points).length-1;F<0;)F+=O[R].partialLength,(R-=1)<0&&(V-=1,R=(O=N[V].points).length-1);z=(O=N[V].points)[R-1],G=(I=O[R]).partialLength}M=w.length,S=0,D=0;var X=1.2*t.finalSize*.714,J=!0;a=_.length;var K=-1,Z=F,U=V,Q=R,$=-1,tt=\"\",te=this.defaultPropsArray;if(2===t.j||1===t.j){var ti=0,ts=0,tr=2===t.j?-.5:-1,ta=0,tn=!0;for(T=0;T<M;T+=1)if(w[T].n){for(ti&&(ti+=ts);ta<T;)w[ta].animatorJustifyOffset=ti,ta+=1;ti=0,tn=!0}else{for(r=0;r<a;r+=1)(i=_[r].a).t.propType&&(tn&&2===t.j&&(ts+=i.t.v*tr),(o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?ti+=i.t.v*o[0]*tr:ti+=i.t.v*o*tr);tn=!1}for(ti&&(ti+=ts);ta<T;)w[ta].animatorJustifyOffset=ti,ta+=1}for(T=0;T<M;T+=1){if(C.reset(),f=1,w[T].n)S=0,D+=t.yOffset+(J?1:0),F=Z,J=!1,this._hasMaskedPath&&(V=U,R=Q,z=(O=N[V].points)[R-1],G=(I=O[R]).partialLength,L=0),tt=\"\",v=\"\",g=\"\",b=\"\",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==w[T].line){switch(t.j){case 1:F+=j-t.lineWidths[w[T].line];break;case 2:F+=(j-t.lineWidths[w[T].line])/2}$=w[T].line}K!==w[T].ind&&(w[K]&&(F+=w[K].extra),F+=w[T].an/2,K=w[T].ind),F+=x[0]*w[T].an*.005;var to=0;for(r=0;r<a;r+=1)(i=_[r].a).p.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?to+=i.p.v[0]*o[0]:to+=i.p.v[0]*o),i.a.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?to+=i.a.v[0]*o[0]:to+=i.a.v[0]*o);for(B=!0,this._pathData.a.v&&(F=.5*w[0].an+(j-this._pathData.f.v-.5*w[0].an-.5*w[w.length-1].an)*K/(M-1)+this._pathData.f.v);B;)L+G>=F+to||!O?(q=(F+to-L)/I.partialLength,l=z.point[0]+(I.point[0]-z.point[0])*q,p=z.point[1]+(I.point[1]-z.point[1])*q,C.translate(-x[0]*w[T].an*.005,-(x[1]*X*.01)),B=!1):O&&(L+=I.partialLength,(R+=1)>=O.length&&(R=0,N[V+=1]?O=N[V].points:W.v.c?(R=0,O=N[V=0].points):(L-=I.partialLength,O=null)),O&&(z=I,G=(I=O[R]).partialLength));h=w[T].an/2-w[T].add,C.translate(-h,0,0)}else h=w[T].an/2-w[T].add,C.translate(-h,0,0),C.translate(-x[0]*w[T].an*.005,-x[1]*X*.01,0);for(r=0;r<a;r+=1)(i=_[r].a).t.propType&&(o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars),(0!==S||0!==t.j)&&(this._hasMaskedPath?o.length?F+=i.t.v*o[0]:F+=i.t.v*o:o.length?S+=i.t.v*o[0]:S+=i.t.v*o));for(t.strokeWidthAnim&&(m=t.sw||0),t.strokeColorAnim&&(c=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(u=[t.fc[0],t.fc[1],t.fc[2]]),r=0;r<a;r+=1)(i=_[r].a).a.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?C.translate(-i.a.v[0]*o[0],-i.a.v[1]*o[1],i.a.v[2]*o[2]):C.translate(-i.a.v[0]*o,-i.a.v[1]*o,i.a.v[2]*o));for(r=0;r<a;r+=1)(i=_[r].a).s.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?C.scale(1+(i.s.v[0]-1)*o[0],1+(i.s.v[1]-1)*o[1],1):C.scale(1+(i.s.v[0]-1)*o,1+(i.s.v[1]-1)*o,1));for(r=0;r<a;r+=1){if(i=_[r].a,o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars),i.sk.propType&&(o.length?C.skewFromAxis(-i.sk.v*o[0],i.sa.v*o[1]):C.skewFromAxis(-i.sk.v*o,i.sa.v*o)),i.r.propType&&(o.length?C.rotateZ(-i.r.v*o[2]):C.rotateZ(-i.r.v*o)),i.ry.propType&&(o.length?C.rotateY(i.ry.v*o[1]):C.rotateY(i.ry.v*o)),i.rx.propType&&(o.length?C.rotateX(i.rx.v*o[0]):C.rotateX(i.rx.v*o)),i.o.propType&&(o.length?f+=(i.o.v*o[0]-f)*o[0]:f+=(i.o.v*o-f)*o),t.strokeWidthAnim&&i.sw.propType&&(o.length?m+=i.sw.v*o[0]:m+=i.sw.v*o),t.strokeColorAnim&&i.sc.propType)for(d=0;d<3;d+=1)o.length?c[d]+=(i.sc.v[d]-c[d])*o[0]:c[d]+=(i.sc.v[d]-c[d])*o;if(t.fillColorAnim&&t.fc){if(i.fc.propType)for(d=0;d<3;d+=1)o.length?u[d]+=(i.fc.v[d]-u[d])*o[0]:u[d]+=(i.fc.v[d]-u[d])*o;i.fh.propType&&(u=o.length?addHueToRGB(u,i.fh.v*o[0]):addHueToRGB(u,i.fh.v*o)),i.fs.propType&&(u=o.length?addSaturationToRGB(u,i.fs.v*o[0]):addSaturationToRGB(u,i.fs.v*o)),i.fb.propType&&(u=o.length?addBrightnessToRGB(u,i.fb.v*o[0]):addBrightnessToRGB(u,i.fb.v*o))}}for(r=0;r<a;r+=1)(i=_[r].a).p.propType&&(o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars),this._hasMaskedPath?o.length?C.translate(0,i.p.v[1]*o[0],-i.p.v[2]*o[1]):C.translate(0,i.p.v[1]*o,-i.p.v[2]*o):o.length?C.translate(i.p.v[0]*o[0],i.p.v[1]*o[1],-i.p.v[2]*o[2]):C.translate(i.p.v[0]*o,i.p.v[1]*o,-i.p.v[2]*o));if(t.strokeWidthAnim&&(g=m<0?0:m),t.strokeColorAnim&&(y=\"rgb(\"+Math.round(255*c[0])+\",\"+Math.round(255*c[1])+\",\"+Math.round(255*c[2])+\")\"),t.fillColorAnim&&t.fc&&(v=\"rgb(\"+Math.round(255*u[0])+\",\"+Math.round(255*u[1])+\",\"+Math.round(255*u[2])+\")\"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,x[1]*X*.01+D,0),this._pathData.p.v){var th=180*Math.atan((I.point[1]-z.point[1])/(I.point[0]-z.point[0]))/Math.PI;I.point[0]<z.point[0]&&(th+=180),C.rotate(-th*Math.PI/180)}C.translate(l,p,0),F-=x[0]*w[T].an*.005,w[T+1]&&K!==w[T+1].ind&&(F+=w[T].an/2+.001*t.tr*t.finalSize)}else{switch(C.translate(S,D,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(w[T].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[T].line]),0,0);break;case 2:C.translate(w[T].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[T].line])/2,0,0)}C.translate(0,-t.ls),C.translate(h,0,0),C.translate(x[0]*w[T].an*.005,x[1]*X*.01,0),S+=w[T].l+.001*t.tr*t.finalSize}\"html\"===P?tt=C.toCSS():\"svg\"===P?tt=C.to2dCSS():te=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],b=f}A<=T?(n=new LetterProps(b,g,y,v,tt,te),this.renderedLetters.push(n),A+=1,this.lettersChangedFlag=!0):(n=this.renderedLetters[T],this.lettersChangedFlag=n.update(b,g,y,v,tt,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,s,r=e.length,a=\"\";for(i=0;i<r;i+=1)\"sh\"===e[i].ty&&(a+=buildShapeString(s=e[i].ks.k,s.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,r,0)},ITextElement.prototype.buildColor=function(t){return\"rgb(\"+Math.round(255*t[0])+\",\"+Math.round(255*t[1])+\",\"+Math.round(255*t[2])+\")\"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType=\"svg\",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS(\"svg\");var i=\"\";if(e&&e.title){var s=createNS(\"title\"),r=createElementID();s.setAttribute(\"id\",r),s.textContent=e.title,this.svgElement.appendChild(s),i+=r}if(e&&e.description){var a=createNS(\"desc\"),n=createElementID();a.setAttribute(\"id\",n),a.textContent=e.description,this.svgElement.appendChild(a),i+=\" \"+n}i&&this.svgElement.setAttribute(\"aria-labelledby\",i);var o=createNS(\"defs\");this.svgElement.appendChild(o);var h=createNS(\"g\");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:e&&e.contentVisibility||\"visible\",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||\"\",id:e&&e.id||\"\",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"100%\",height:e&&e.filterSize&&e.filterSize.height||\"100%\",x:e&&e.filterSize&&e.filterSize.x||\"0%\",y:e&&e.filterSize&&e.filterSize.y||\"0%\"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType=\"svg\"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS(\"text\"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],r=\"\";e<i;)\"\\r\"===t[e]||\"\\x03\"===t[e]?(s.push(r),r=\"\"):r+=t[e],e+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t?t.l.length:0),t.fc?this.layerElement.setAttribute(\"fill\",this.buildColor(t.fc)):this.layerElement.setAttribute(\"fill\",\"rgba(0,0,0,0)\"),t.sc&&(this.layerElement.setAttribute(\"stroke\",this.buildColor(t.sc)),this.layerElement.setAttribute(\"stroke-width\",t.sw)),this.layerElement.setAttribute(\"font-size\",t.finalSize);var e=this.globalData.fontManager.getFontByName(t.f);if(e.fClass)this.layerElement.setAttribute(\"class\",e.fClass);else{this.layerElement.setAttribute(\"font-family\",e.fFamily);var i=t.fWeight,s=t.fStyle;this.layerElement.setAttribute(\"font-style\",s),this.layerElement.setAttribute(\"font-weight\",i)}this.layerElement.setAttribute(\"aria-label\",t.t);var r=t.l||[],a=!!this.globalData.fontManager.chars;g=r.length;var n=this.mHelper,o=\"\",h=this.data.singleShape,l=0,p=0,f=!0,c=.001*t.tr*t.finalSize;if(!h||a||t.sz){var m=this.textSpans.length;for(d=0;d<g;d+=1){if(this.textSpans[d]||(this.textSpans[d]={span:null,childSpan:null,glyph:null}),!a||!h||0===d){if(y=m>d?this.textSpans[d].span:createNS(a?\"g\":\"text\"),m<=d){if(y.setAttribute(\"stroke-linecap\",\"butt\"),y.setAttribute(\"stroke-linejoin\",\"round\"),y.setAttribute(\"stroke-miterlimit\",\"4\"),this.textSpans[d].span=y,a){var u=createNS(\"g\");y.appendChild(u),this.textSpans[d].childSpan=u}this.textSpans[d].span=y,this.layerElement.appendChild(y)}y.style.display=\"inherit\"}if(n.reset(),h&&(r[d].n&&(l=-c,p+=t.yOffset+(f?1:0),f=!1),this.applyTextPropertiesToMatrix(t,n,r[d].line,l,p),l+=(r[d].l||0)+c),a){if(1===(v=this.globalData.fontManager.getCharData(t.finalText[d],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)b=new SVGCompElement(v.data,this.globalData,this);else{var d,g,y,v,b,x=emptyShapeData;v.data&&v.data.shapes&&(x=this.buildShapeData(v.data,t.finalSize)),b=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[d].glyph){var _=this.textSpans[d].glyph;this.textSpans[d].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[d].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[d].childSpan.appendChild(b.layerElement),1===v.t&&this.textSpans[d].childSpan.setAttribute(\"transform\",\"scale(\"+t.finalSize/100+\",\"+t.finalSize/100+\")\")}else h&&y.setAttribute(\"transform\",\"translate(\"+n.props[12]+\",\"+n.props[13]+\")\"),y.textContent=r[d].val,y.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\")}h&&y&&y.setAttribute(\"d\",o)}else{var k=this.textContainer,C=\"start\";switch(t.j){case 1:C=\"end\";break;case 2:C=\"middle\";break;default:C=\"start\"}k.setAttribute(\"text-anchor\",C),k.setAttribute(\"letter-spacing\",c);var P=this.buildTextContents(t.finalText);for(d=0,g=P.length,p=t.ps?t.ps[1]+t.ascent:0;d<g;d+=1)(y=this.textSpans[d].span||createNS(\"tspan\")).textContent=P[d],y.setAttribute(\"x\",0),y.setAttribute(\"y\",p),y.style.display=\"inherit\",k.appendChild(y),this.textSpans[d]||(this.textSpans[d]={span:null,glyph:null}),this.textSpans[d].span=y,p+=t.finalLineHeight;this.layerElement.appendChild(k)}for(;d<this.textSpans.length;)this.textSpans[d].span.style.display=\"none\",d+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(t=0,this.renderedFrame=this.comp.renderedFrame;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,i,s,r,a=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(t=0,e=n.length;t<e;t+=1)!n[t].n&&(i=a[t],s=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&s.setAttribute(\"transform\",i.m),i._mdf.o&&s.setAttribute(\"opacity\",i.o),i._mdf.sw&&s.setAttribute(\"stroke-width\",i.sw),i._mdf.sc&&s.setAttribute(\"stroke\",i.sc),i._mdf.fc&&s.setAttribute(\"fill\",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS(\"rect\");t.setAttribute(\"width\",this.data.sw),t.setAttribute(\"height\",this.data.sh),t.setAttribute(\"fill\",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),this.svgElement.setAttribute(\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute(\"viewBox\",this.renderConfig.viewBoxSize):this.svgElement.setAttribute(\"viewBox\",\"0 0 \"+t.w+\" \"+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute(\"width\",t.w),this.svgElement.setAttribute(\"height\",t.h),this.svgElement.style.width=\"100%\",this.svgElement.style.height=\"100%\",this.svgElement.style.transform=\"translate3d(0,0,0)\",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute(\"width\",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute(\"height\",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute(\"id\",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute(\"focusable\",this.renderConfig.focusable),this.svgElement.setAttribute(\"preserveAspectRatio\",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS(\"clipPath\"),s=createNS(\"rect\");s.setAttribute(\"width\",t.w),s.setAttribute(\"height\",t.h),s.setAttribute(\"x\",0),s.setAttribute(\"y\",0);var r=createElementID();i.setAttribute(\"id\",r),i.appendChild(s),this.layerElement.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+r+\")\"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return -1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s=\"tp\"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var r=e[s].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(s),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s=\"tp\"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i,s=t.getBaseElement();if(s){for(var r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(s,i):this.layerElement.appendChild(s)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display=\"none\"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display=\"block\"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e,i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=s-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,s=\"_\";for(e=0;e<i;e+=1)s+=t[e].transform.key+\"_\";var r=this.sequences[s];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i=0,s=t.transforms.length,r=e;i<s&&!e;){if(t.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=r},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,\"_\"+this.transform_key_count}};var lumaLoader=function(){var t=\"__lottie_element_luma_buffer\",e=null,i=null,s=null;function r(){var e=createNS(\"svg\"),i=createNS(\"filter\"),s=createNS(\"feColorMatrix\");return i.setAttribute(\"id\",t),s.setAttribute(\"type\",\"matrix\"),s.setAttribute(\"color-interpolation-filters\",\"sRGB\"),s.setAttribute(\"values\",\"0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0\"),i.appendChild(s),e.appendChild(i),e.setAttribute(\"id\",t+\"_svg\"),featureSupport.svgLumaHidden&&(e.style.display=\"none\"),e}function a(){e||(s=r(),document.body.appendChild(s),(i=(e=createTag(\"canvas\")).getContext(\"2d\")).filter=\"url(#\"+t+\")\",i.fillStyle=\"rgba(0,0,0,0)\",i.fillRect(0,0,1,1))}function n(s){return e||a(),e.width=s.width,e.height=s.height,i.filter=\"url(#\"+t+\")\",e}return{load:a,get:n}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag(\"canvas\");return i.width=t,i.height=e,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas}}(),registeredEffects={};function CVEffects(t){var e,i,s=t.data.ef?t.data.ef.length:0;for(e=0,this.filters=[];e<s;e+=1){i=null;var r=t.data.ef[e].ty;registeredEffects[r]&&(i=new registeredEffects[r].effect(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,s=this.masksProperties.length,r=!1;for(i=0;i<s;i+=1)\"n\"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,i=this.masksProperties.length;for(e.beginPath(),s=0;s<i;s+=1)if(\"n\"!==this.masksProperties[s].mode){this.masksProperties[s].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),n=this.viewData[s].v,r=t.applyToPointArray(n.v[0][0],n.v[0][1],0),e.moveTo(r[0],r[1]);var s,r,a,n,o,h=n._length;for(o=1;o<h;o+=1)a=t.applyToTriplePoints(n.o[o-1],n.i[o],n.v[o]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=t.applyToTriplePoints(n.o[o-1],n.i[0],n.v[0]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),e.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:\"source-in\",2:\"source-out\",3:\"source-in\",4:\"source-out\"};function CVShapeData(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,a,n=4;\"rc\"===e.ty?n=5:\"el\"===e.ty?n=6:\"sr\"===e.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,n,t);var o=i.length;for(r=0;r<o;r+=1)i[r].closed||(a={transforms:s.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(a),i[r].elements.push(a))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType=\"canvas\",this.values={fill:\"rgba(0,0,0,0)\",stroke:\"rgba(0,0,0,0)\",sWidth:0,fValue:\"\"},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray(\"float32\",16),this.fillStyle=\"\",this.strokeStyle=\"\",this.lineWidth=\"\",this.lineCap=\"\",this.lineJoin=\"\",this.miterLimit=\"\",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t<e;t+=1){var i=new CanvasContext;this.stack[t]=i}this._length=e,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle=\"\",this.appliedFillStyle=\"\",this.currentStrokeStyle=\"\",this.appliedStrokeStyle=\"\",this.currentLineWidth=\"\",this.appliedLineWidth=\"\",this.currentLineCap=\"\",this.appliedLineCap=\"\",this.currentLineJoin=\"\",this.appliedLineJoin=\"\",this.appliedMiterLimit=\"\",this.currentMiterLimit=\"\"}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:e&&e.contentVisibility||\"visible\",className:e&&e.className||\"\",id:e&&e.id||\"\",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType=\"canvas\",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS(\"g\"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType=\"svg\",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var s=PropertyFactory.getProp;if(this.pe=s(this,t.pe,0,0,this),t.ks.p.s?(this.px=s(this,t.ks.p.x,1,0,this),this.py=s(this,t.ks.p.y,1,0,this),this.pz=s(this,t.ks.p.z,1,0,this)):this.p=s(this,t.ks.p,1,0,this),t.ks.a&&(this.a=s(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,a=t.ks.or.k.length;for(r=0;r<a;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=s(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=s(this,t.ks.rx,0,degToRads,this),this.ry=s(this,t.ks.ry,0,degToRads,this),this.rz=s(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||\"\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"400%\",height:e&&e.filterSize&&e.filterSize.height||\"400%\",x:e&&e.filterSize&&e.filterSize.x||\"-100%\",y:e&&e.filterSize&&e.filterSize.y||\"-100%\"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=\"html\"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||\"\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"400%\",height:e&&e.filterSize&&e.filterSize.height||\"400%\",x:e&&e.filterSize&&e.filterSize.x||\"-100%\",y:e&&e.filterSize&&e.filterSize.y||\"-100%\"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=\"html\"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext(\"2d\");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext(\"2d\");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById(\"tp\"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext(\"2d\").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation=\"destination-over\",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation=\"source-over\"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},s={};if(\"fl\"===t.ty||\"st\"===t.ty?(s.c=PropertyFactory.getProp(this,t.c,1,255,this),s.c.k||(i.co=\"rgb(\"+bmFloor(s.c.v[0])+\",\"+bmFloor(s.c.v[1])+\",\"+bmFloor(s.c.v[2])+\")\")):(\"gf\"===t.ty||\"gs\"===t.ty)&&(s.s=PropertyFactory.getProp(this,t.s,1,null,this),s.e=PropertyFactory.getProp(this,t.e,1,null,this),s.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,t.g,this)),s.o=PropertyFactory.getProp(this,t.o,0,.01,this),\"st\"===t.ty||\"gs\"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),s.w=PropertyFactory.getProp(this,t.w,0,null,this),s.w.k||(i.wi=s.w.v),t.d){var r=new DashProperty(this,t.d,\"canvas\",this);s.d=r,s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0])}}else i.r=2===t.r?\"evenodd\":\"nonzero\";return this.stylesList.push(i),s.style=i,s},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,s,r){var a,n,o,h,l,p,f=t.length-1,c=[],m=[],u=[].concat(r);for(a=f;a>=0;a-=1){if((h=this.searchProcessedElement(t[a]))?e[a]=i[h-1]:t[a]._shouldRender=s,\"fl\"===t[a].ty||\"st\"===t[a].ty||\"gf\"===t[a].ty||\"gs\"===t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],u),c.push(e[a].style);else if(\"gr\"===t[a].ty){if(h)for(n=0,o=e[a].it.length;n<o;n+=1)e[a].prevViewData[n]=e[a].it[n];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,s,u)}else\"tr\"===t[a].ty?(h||(p=this.createTransformElement(t[a]),e[a]=p),u.push(e[a]),this.addTransformToStyleList(e[a])):\"sh\"===t[a].ty||\"rc\"===t[a].ty||\"el\"===t[a].ty||\"sr\"===t[a].ty?h||(e[a]=this.createShapeElement(t[a])):\"tm\"===t[a].ty||\"rd\"===t[a].ty||\"pb\"===t[a].ty||\"zz\"===t[a].ty||\"op\"===t[a].ty?(h?(l=e[a]).closed=!1:((l=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=l,this.shapeModifiers.push(l)),m.push(l)):\"rp\"===t[a].ty&&(h?(l=e[a]).closed=!0:(l=ShapeModifiers.getModifier(t[a].ty),e[a]=l,l.init(this,t,a,e),this.shapeModifiers.push(l),s=!1),m.push(l));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),f=m.length,a=0;a<f;a+=1)m[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,s,r,a,n,o,h,l=this.stylesList.length,p=this.globalData.renderer,f=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(!((\"st\"===(o=(h=this.stylesList[t]).type)||\"gs\"===o)&&0===h.wi||!h.data._shouldRender||0===h.coOp||0===this.globalData.currentGlobalAlpha)){for(p.save(),a=h.elements,\"st\"===o||\"gs\"===o?(p.ctxStrokeStyle(\"st\"===o?h.co:h.grd),p.ctxLineWidth(h.wi),p.ctxLineCap(h.lc),p.ctxLineJoin(h.lj),p.ctxMiterLimit(h.ml||0)):p.ctxFillStyle(\"fl\"===o?h.co:h.grd),p.ctxOpacity(h.coOp),\"st\"!==o&&\"gs\"!==o&&f.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),i=a.length,e=0;e<i;e+=1){for((\"st\"===o||\"gs\"===o)&&(f.beginPath(),h.da&&(f.setLineDash(h.da),f.lineDashOffset=h.do)),r=(n=a[e].trNodes).length,s=0;s<r;s+=1)\"m\"===n[s].t?f.moveTo(n[s].p[0],n[s].p[1]):\"c\"===n[s].t?f.bezierCurveTo(n[s].pts[0],n[s].pts[1],n[s].pts[2],n[s].pts[3],n[s].pts[4],n[s].pts[5]):f.closePath();(\"st\"===o||\"gs\"===o)&&(p.ctxStroke(),h.da&&f.setLineDash(this.dashResetter))}\"st\"!==o&&\"gs\"!==o&&this.globalData.renderer.ctxFill(h.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,s){var r,a,n=e.length-1;for(a=t,r=n;r>=0;r-=1)\"tr\"===e[r].ty?(a=i[r].transform,this.renderShapeTransform(t,a)):\"sh\"===e[r].ty||\"el\"===e[r].ty||\"rc\"===e[r].ty||\"sr\"===e[r].ty?this.renderPath(e[r],i[r]):\"fl\"===e[r].ty?this.renderFill(e[r],i[r],a):\"st\"===e[r].ty?this.renderStroke(e[r],i[r],a):\"gf\"===e[r].ty||\"gs\"===e[r].ty?this.renderGradientFill(e[r],i[r],a):\"gr\"===e[r].ty?this.renderShape(a,e[r].it,i[r].it):e[r].ty;s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,s,r,a=t.trNodes,n=e.paths,o=n._length;a.length=0;var h=t.transforms.finalTransform;for(r=0;r<o;r+=1){var l=n.shapes[r];if(l&&l.v){for(i=1,s=l._length;i<s;i+=1)1===i&&a.push({t:\"m\",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),a.push({t:\"c\",pts:h.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===s&&a.push({t:\"m\",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&s&&(a.push({t:\"c\",pts:h.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),a.push({t:\"z\"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,s=e.styledShapes.length;for(i=0;i<s;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co=\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var r,a,n=this.globalData.canvasContext,o=e.s.v,h=e.e.v;if(1===t.t)r=n.createLinearGradient(o[0],o[1],h[0],h[1]);else{var l=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),p=Math.atan2(h[1]-o[1],h[0]-o[0]),f=e.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var c=l*f,m=Math.cos(p+e.a.v)*c+o[0],u=Math.sin(p+e.a.v)*c+o[1];r=n.createRadialGradient(m,u,0,o[0],o[1],l)}var d=t.g.p,g=e.g.c,y=1;for(a=0;a<d;a+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*a+1]),r.addColorStop(g[4*a]/100,\"rgba(\"+g[4*a+1]+\",\"+g[4*a+2]+\",\"+g[4*a+3]+\",\"+y+\")\");s.grd=r}s.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co=\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag(\"canvas\").getContext(\"2d\"),CVTextElement.prototype.buildNewText=function(){var t,e,i,s,r,a,n,o,h,l,p,f,c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var m=!1;c.fc?(m=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill=\"rgba(0,0,0,0)\",this.fill=m;var u=!1;c.sc&&(u=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var d=this.globalData.fontManager.getFontByName(c.f),g=c.l,y=this.mHelper;this.stroke=u,this.values.fValue=c.finalSize+\"px \"+this.globalData.fontManager.getFontByName(c.f).fFamily,e=c.finalText.length;var v=this.data.singleShape,b=.001*c.tr*c.finalSize,x=0,_=0,k=!0,C=0;for(t=0;t<e;t+=1){s=(i=this.globalData.fontManager.getCharData(c.finalText[t],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily))&&i.data||{},y.reset(),v&&g[t].n&&(x=-b,_+=c.yOffset+(k?1:0),k=!1),h=(n=s.shapes?s.shapes[0].it:[]).length,y.scale(c.finalSize/100,c.finalSize/100),v&&this.applyTextPropertiesToMatrix(c,y,g[t].line,x,_),p=createSizedArray(h-1);var P=0;for(o=0;o<h;o+=1)if(\"sh\"===n[o].ty){for(r=1,a=n[o].ks.k.i.length,l=n[o].ks.k,f=[];r<a;r+=1)1===r&&f.push(y.applyToX(l.v[0][0],l.v[0][1],0),y.applyToY(l.v[0][0],l.v[0][1],0)),f.push(y.applyToX(l.o[r-1][0],l.o[r-1][1],0),y.applyToY(l.o[r-1][0],l.o[r-1][1],0),y.applyToX(l.i[r][0],l.i[r][1],0),y.applyToY(l.i[r][0],l.i[r][1],0),y.applyToX(l.v[r][0],l.v[r][1],0),y.applyToY(l.v[r][0],l.v[r][1],0));f.push(y.applyToX(l.o[r-1][0],l.o[r-1][1],0),y.applyToY(l.o[r-1][0],l.o[r-1][1],0),y.applyToX(l.i[0][0],l.i[0][1],0),y.applyToY(l.i[0][0],l.i[0][1],0),y.applyToX(l.v[0][0],l.v[0][1],0),y.applyToY(l.v[0][0],l.v[0][1],0)),p[P]=f,P+=1}v&&(x+=g[t].l+b),this.textSpans[C]?this.textSpans[C].elem=p:this.textSpans[C]={elem:p},C+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap(\"butt\"),this.globalData.renderer.ctxLineJoin(\"miter\"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,e,i,s,r,a,n,o,h,l=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;e=p.length;var f=null,c=null,m=null,u=this.globalData.renderer;for(t=0;t<e;t+=1)if(!p[t].n){if((n=l[t])&&(u.save(),u.ctxTransform(n.p),u.ctxOpacity(n.o)),this.fill){for(n&&n.fc?f!==n.fc&&(u.ctxFillStyle(n.fc),f=n.fc):f!==this.values.fill&&(f=this.values.fill,u.ctxFillStyle(this.values.fill)),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(a=(h=o[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<a;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),u.ctxFill()}if(this.stroke){for(n&&n.sw?m!==n.sw&&(m=n.sw,u.ctxLineWidth(n.sw)):m!==this.values.sWidth&&(m=this.values.sWidth,u.ctxLineWidth(this.values.sWidth)),n&&n.sc?c!==n.sc&&(c=n.sc,u.ctxStrokeStyle(n.sc)):c!==this.values.stroke&&(c=this.values.stroke,u.ctxStrokeStyle(this.values.stroke)),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(a=(h=o[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<a;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),u.ctxStroke()}n&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t,e,i=createTag(\"canvas\");i.width=this.assetData.w,i.height=this.assetData.h;var s=i.getContext(\"2d\"),r=this.img.width,a=this.img.height,n=r/a,o=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>o&&\"xMidYMid slice\"===h||n<o&&\"xMidYMid slice\"!==h?t=(e=a)*o:e=(t=r)/o,s.drawImage(this.img,(r-t)/2,(a-e)/2,t,e,0,0,this.assetData.w,this.assetData.h),this.img=i}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,s){this.canvasContext.fillRect(t,e,i,s)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode=\"source-over\"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag(\"canvas\");var e=this.animationItem.container.style;e.width=\"100%\",e.height=\"100%\";var i=\"0px 0px 0px\";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e[\"-webkit-transform\"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext(\"2d\"),this.renderConfig.className&&this.animationItem.container.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute(\"id\",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){if(this.reset(),t?(i=t,s=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=s):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,s=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf(\"meet\")||-1!==this.renderConfig.preserveAspectRatio.indexOf(\"slice\")){var i,s,r,a,n=this.renderConfig.preserveAspectRatio.split(\" \"),o=n[1]||\"meet\",h=n[0]||\"xMidYMid\",l=h.substr(0,4),p=h.substr(4);r=i/s,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&\"meet\"===o||a<r&&\"slice\"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),\"xMid\"===l&&(a<r&&\"meet\"===o||a>r&&\"slice\"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:\"xMax\"===l&&(a<r&&\"meet\"===o||a>r&&\"slice\"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,\"YMid\"===p&&(a>r&&\"meet\"===o||a<r&&\"slice\"===o)?this.transformCanvas.ty=(s-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:\"YMax\"===p&&(a>r&&\"meet\"===o||a<r&&\"slice\"===o)?this.transformCanvas.ty=(s-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else\"none\"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,s=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display=\"none\"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display=\"block\"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],s=i.transform,r=this.cTr.props;for(e=0;e<16;e+=1)r[e]=s[e];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(s[0],s[1],s[4],s[5],s[12],s[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e,i=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var s=this.stack[this.cArrPos];for(e=0;e<16;e+=1)s.transform[e]=i[e];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=s.opacity,r.fillStyle=s.fillStyle,r.strokeStyle=s.strokeStyle,r.lineWidth=s.lineWidth,r.lineCap=s.lineCap,r.lineJoin=s.lineJoin,r.miterLimit=s.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,s){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,s)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||\"div\"),this.data.hasMask?(this.svgElement=createNS(\"svg\"),this.layerElement=createNS(\"g\"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS(\"rect\")).setAttribute(\"width\",this.data.sw),t.setAttribute(\"height\",this.data.sh),t.setAttribute(\"fill\",this.data.sc),this.svgElement.setAttribute(\"width\",this.data.sw),this.svgElement.setAttribute(\"height\",this.data.sh)):((t=createTag(\"div\")).style.width=this.data.sw+\"px\",t.style.height=this.data.sh+\"px\",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS(\"svg\");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute(\"width\",e.w),t.setAttribute(\"height\",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,s,r,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)s=this.getTransformedPoint(h,o.v[i]),r=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[i+1]),n=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(s,r,a,n,e);o.c&&(s=this.getTransformedPoint(h,o.v[i]),r=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(s,r,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,s,r){this.getBoundsOfCurve(t,e,i,s);var a=this.shapeBoundingBox;r.x=bmMin(a.left,r.x),r.xMax=bmMax(a.right,r.xMax),r.y=bmMin(a.top,r.y),r.yMax=bmMax(a.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,s){for(var r,a,n,o,h,l,p,f=[[t[0],s[0]],[t[1],s[1]]],c=0;c<2;++c)a=6*t[c]-12*e[c]+6*i[c],r=-3*t[c]+9*e[c]-9*i[c]+3*s[c],n=3*e[c]-3*t[c],a|=0,n|=0,0==(r|=0)&&0===a||(0===r?(o=-n/a)>0&&o<1&&f[c].push(this.calculateF(o,t,e,i,s,c)):(h=a*a-4*n*r)>=0&&((l=(-a+bmSqrt(h))/(2*r))>0&&l<1&&f[c].push(this.calculateF(l,t,e,i,s,c)),(p=(-a-bmSqrt(h))/(2*r))>0&&p<1&&f[c].push(this.calculateF(p,t,e,i,s,c))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1])},HShapeElement.prototype.calculateF=function(t,e,i,s,r,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*s[a]+bmPow(t,3)*r[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var s=0;s<t.keyframes.length;s+=1){var r=t.keyframes[s].s;r>i&&(i=r)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,!this.currentBoxContains(t)){var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute(\"width\",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute(\"height\",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute(\"viewBox\",this.currentBBox.x+\" \"+this.currentBBox.y+\" \"+this.currentBBox.w+\" \"+this.currentBBox.h);var s=this.shapeCont.style,r=\"translate(\"+this.currentBBox.x+\"px,\"+this.currentBBox.y+\"px)\";s.transform=r,s.webkitTransform=r}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType=\"svg\",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute(\"width\",this.compW),this.svgElement.setAttribute(\"height\",this.compH);var t=createNS(\"g\");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType=\"html\",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):\"rgba(0,0,0,0)\";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+\"px\");var s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars){if(e.fontSize=t.finalSize+\"px\",e.lineHeight=t.finalSize+\"px\",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var r=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=r}}var n=t.l;f=n.length;var o=this.mHelper,h=\"\",l=0;for(p=0;p<f;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[l]?c=this.textPaths[l]:((c=createNS(\"path\")).setAttribute(\"stroke-linecap\",lineCapEnum[1]),c.setAttribute(\"stroke-linejoin\",lineJoinEnum[2]),c.setAttribute(\"stroke-miterlimit\",\"4\")),this.isMasked||(this.textSpans[l]?u=(m=this.textSpans[l]).children[0]:((m=createTag(\"div\")).style.lineHeight=0,(u=createNS(\"svg\")).appendChild(c),styleDiv(m)))):this.isMasked?c=this.textPaths[l]?this.textPaths[l]:createNS(\"text\"):this.textSpans[l]?(m=this.textSpans[l],c=this.textPaths[l]):(styleDiv(m=createTag(\"span\")),styleDiv(c=createTag(\"span\")),m.appendChild(c)),this.globalData.fontManager.chars){var p,f,c,m,u,d,g,y=this.globalData.fontManager.getCharData(t.finalText[p],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=y?y.data:null,o.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,o.scale(t.finalSize/100,t.finalSize/100),h=this.createPathShape(o,d),c.setAttribute(\"d\",h)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(m),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute(\"width\",v.width+2),u.setAttribute(\"height\",v.height+2),u.setAttribute(\"viewBox\",v.x-1+\" \"+(v.y-1)+\" \"+(v.width+2)+\" \"+(v.height+2));var b=u.style,x=\"translate(\"+(v.x-1)+\"px,\"+(v.y-1)+\"px)\";b.transform=x,b.webkitTransform=x,n[p].yOffset=v.y-1}else u.setAttribute(\"width\",1),u.setAttribute(\"height\",1);m.appendChild(u)}}else if(c.textContent=n[p].val,c.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(m);var _=c.style,k=\"translate3d(0,\"+-t.finalSize/1.2+\"px,0)\";_.transform=k,_.webkitTransform=k}this.isMasked?this.textSpans[l]=c:this.textSpans[l]=m,this.textSpans[l].style.display=\"block\",this.textPaths[l]=c,l+=1}for(;l<this.textSpans.length;)this.textSpans[l].style.display=\"none\",l+=1},HTextElement.prototype.renderInnerContent=function(){if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute(\"viewBox\",-this.finalTransform.mProp.p.v[0]+\" \"+-this.finalTransform.mProp.p.v[1]+\" \"+this.compW+\" \"+this.compH),t=this.svgElement.style;var t,e,i,s,r,a,n=\"translate(\"+-this.finalTransform.mProp.p.v[0]+\"px,\"+-this.finalTransform.mProp.p.v[1]+\"px)\";t.transform=n,t.webkitTransform=n}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var o=0,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(e=0,i=l.length;e<i;e+=1)l[e].n?o+=1:(r=this.textSpans[e],a=this.textPaths[e],s=h[o],o+=1,s._mdf.m&&(this.isMasked?r.setAttribute(\"transform\",s.m):(r.style.webkitTransform=s.m,r.style.transform=s.m)),r.style.opacity=s.o,s.sw&&s._mdf.sw&&a.setAttribute(\"stroke-width\",s.sw),s.sc&&s._mdf.sc&&a.setAttribute(\"stroke\",s.sc),s.fc&&s._mdf.fc&&(a.setAttribute(\"fill\",s.fc),a.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute(\"width\",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute(\"height\",p.height));var f=1;if(this.currentBBox.w!==p.width+2*f||this.currentBBox.h!==p.height+2*f||this.currentBBox.x!==p.x-f||this.currentBBox.y!==p.y-f){this.currentBBox.w=p.width+2*f,this.currentBBox.h=p.height+2*f,this.currentBBox.x=p.x-f,this.currentBBox.y=p.y-f,this.svgElement.setAttribute(\"viewBox\",this.currentBBox.x+\" \"+this.currentBBox.y+\" \"+this.currentBBox.w+\" \"+this.currentBBox.h),t=this.svgElement.style;var c=\"translate(\"+this.currentBBox.x+\"px,\"+this.currentBBox.y+\"px)\";t.transform=c,t.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,s,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)if(\"3d\"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,s=e.container.style;var a=this.pe.v+\"px\",n=\"0px 0px 0px\",o=\"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)\";i.perspective=a,i.webkitPerspective=a,s.transformOrigin=n,s.mozTransformOrigin=n,s.webkitTransformOrigin=n,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(i=0,s=this.hierarchy.length;i<s;i+=1)t=this.hierarchy[i].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=s=this.hierarchy.length-1;i>=0;i-=1){var e=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i,s,r,a=Math.sqrt(Math.pow((r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]])[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),n=[r[0]/a,r[1]/a,r[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),h=Math.atan2(n[1],o),l=Math.atan2(n[0],-n[2]);this.mat.rotateY(l).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){for(i=0,s=this.comp.threeDElements.length;i<s;i+=1)if(\"3d\"===(f=this.comp.threeDElements[i]).type){if(p){var f,c,m,u=this.mat.toCSS();(m=f.container.style).transform=u,m.webkitTransform=u}this.pe._mdf&&((c=f.perspectiveElem.style).perspective=this.pe.v+\"px\",c.webkitPerspective=this.pe.v+\"px\")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS(\"image\"),this.imageElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.imageElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.imageElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute(\"width\",this.assetData.w),this.baseElement.setAttribute(\"height\",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin=\"anonymous\",e.src=t,this.data.ln&&this.baseElement.setAttribute(\"id\",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var s=this.layers[e];if(s.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var r,a,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement&&(a=this.elements[n],r=(this.layers[n].ddd?this.getThreeDContainerByPos(n):a.getBaseElement())||r),n+=1;r?s.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):s.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,s,r=createTag(\"div\");styleDiv(r);var a=createTag(\"div\");if(styleDiv(a),\"3d\"===e){(i=r.style).width=this.globalData.compSize.w+\"px\",i.height=this.globalData.compSize.h+\"px\";var n=\"50% 50%\";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n;var o=\"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)\";(s=a.style).transform=o,s.webkitTransform=o}r.appendChild(a);var h={container:a,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,s=\"\";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?\"3d\"!==s&&(s=\"3d\",e=this.createThreeDContainer(t,\"3d\")):\"2d\"!==s&&(s=\"2d\",e=this.createThreeDContainer(t,\"2d\")),e.endPos=Math.max(e.endPos,t);for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,s=this.threeDElements.length;i<s;){if(e<=this.threeDElements[i].endPos){for(var r,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag(\"div\"),i=this.animationItem.wrapper,s=e.style;s.width=t.w+\"px\",s.height=t.h+\"px\",this.resizerElem=e,styleDiv(e),s.transformStyle=\"flat\",s.mozTransformStyle=\"flat\",s.webkitTransformStyle=\"flat\",this.renderConfig.className&&e.setAttribute(\"class\",this.renderConfig.className),i.appendChild(e),s.overflow=\"hidden\";var r=createNS(\"svg\");r.setAttribute(\"width\",\"1\"),r.setAttribute(\"height\",\"1\"),styleDiv(r),this.resizerElem.appendChild(r);var a=createNS(\"defs\");r.appendChild(a),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,s,r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,n=r/a;this.globalData.compSize.w/this.globalData.compSize.h>n?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,s=(a-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,s=0);var o=this.resizerElem.style;o.webkitTransform=\"matrix3d(\"+t+\",0,0,0,0,\"+e+\",0,0,0,0,1,0,\"+i+\",\"+s+\",0,1)\",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display=\"none\"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display=\"block\"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,s=this.threeDElements.length;for(t=0;t<s;t+=1){var r=this.threeDElements[t].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+\"px\",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,s=createTag(\"div\");for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e],s,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute(\"width\",this.data.w),this.svgElement.setAttribute(\"height\",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,s=0;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(){return function(t){function e(e){for(var i=0,s=t.layers.length;i<s;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,\"_name\",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}}();function _typeof$2(t){return(_typeof$2=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function seedRandom(t,e){var i,s=this,r=256,a=6,n=52,o=\"random\",h=e.pow(r,a),l=e.pow(2,n),p=2*l,f=r-1;function c(i,s,n){var f=[],c=g(d((s=!0===s?{entropy:!0}:s||{}).entropy?[i,v(t)]:null===i?y():i,3),f),b=new m(f),x=function(){for(var t=b.g(a),e=h,i=0;t<l;)t=(t+i)*r,e*=r,i=b.g(1);for(;t>=p;)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,g(v(b.S),t),(s.pass||n||function(t,i,s,r){return(r&&(r.S&&u(r,b),t.state=function(){return u(b,{})}),s)?(e[o]=t,i):t})(x,c,\"global\"in s?s.global:this==e,s.state)}function m(t){var e,i=t.length,s=this,a=0,n=s.i=s.j=0,o=s.S=[];for(i||(t=[i++]);a<r;)o[a]=a++;for(a=0;a<r;a++)o[a]=o[n=f&n+t[a%i]+(e=o[a])],o[n]=e;s.g=function(t){for(var e,i=0,a=s.i,n=s.j,o=s.S;t--;)e=o[a=f&a+1],i=i*r+o[f&(o[a]=o[n=f&n+e])+(o[n]=e)];return s.i=a,s.j=n,i}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function d(t,e){var i,s=[],r=_typeof$2(t);if(e&&\"object\"==r)for(i in t)try{s.push(d(t[i],e-1))}catch(t){}return s.length?s:\"string\"==r?t:t+\"\\0\"}function g(t,e){for(var i,s=t+\"\",r=0;r<s.length;)e[f&r]=f&(i^=19*e[f&r])+s.charCodeAt(r++);return v(e)}function y(){try{if(i)return v(i.randomBytes(r));var e=new Uint8Array(r);return(s.crypto||s.msCrypto).getRandomValues(e),v(e)}catch(e){var a=s.navigator,n=a&&a.plugins;return[+new Date,s,n,s.screen,v(t)]}}function v(t){return String.fromCharCode.apply(0,t)}e[\"seed\"+o]=c,g(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:\"shape\"};function _typeof$1(t){return(_typeof$1=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return\"number\"===t||e instanceof Number||\"boolean\"===t||\"string\"===t}function $bm_neg(t){var e=_typeof$1(t);if(\"number\"===e||t instanceof Number||\"boolean\"===e)return-t;if($bm_isInstanceOfArray(t)){var i,s=t.length,r=[];for(i=0;i<s;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,\"easeIn\").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,\"easeOut\").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,\"easeInOut\").get;function sum(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e)||\"string\"===i||\"string\"===s)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,a=t.length,n=e.length,o=[];r<a||r<n;)(\"number\"==typeof t[r]||t[r]instanceof Number)&&(\"number\"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]+e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e))return\"string\"===i&&(t=parseInt(t,10)),\"string\"===s&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,a=t.length,n=e.length,o=[];r<a||r<n;)(\"number\"==typeof t[r]||t[r]instanceof Number)&&(\"number\"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]-e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i,s,r,a=_typeof$1(t),n=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=0,i=createTypedArray(\"float32\",r=t.length);s<r;s+=1)i[s]=t[s]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=0,i=createTypedArray(\"float32\",r=e.length);s<r;s+=1)i[s]=t*e[s];return i}return 0}function div(t,e){var i,s,r,a=_typeof$1(t),n=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=0,i=createTypedArray(\"float32\",r=t.length);s<r;s+=1)i[s]=t[s]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=0,i=createTypedArray(\"float32\",r=e.length);s<r;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return\"string\"==typeof t&&(t=parseInt(t,10)),\"string\"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var s=i;i=e,e=s}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(\"number\"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,s=Math.min(t.length,e.length),r=0;for(i=0;i<s;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,s=t[0],r=t[1],a=t[2],n=Math.max(s,r,a),o=Math.min(s,r,a),h=(n+o)/2;if(n===o)e=0,i=0;else{var l=n-o;switch(i=h>.5?l/(2-n-o):l/(n+o),n){case s:e=(r-a)/l+(r<a?6:0);break;case r:e=(a-s)/l+2;break;case a:e=(s-r)/l+4}e/=6}return[e,i,h,t[3]]}function hue2rgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,s,r=t[0],a=t[1],n=t[2];if(0===a)e=n,s=n,i=n;else{var o=n<.5?n*(1+a):n+a-n*a,h=2*n-o;e=hue2rgb(h,o,r+1/3),i=hue2rgb(h,o,r),s=hue2rgb(h,o,r-1/3)}return[e,i,s,t[3]]}function linear(t,e,i,s,r){if((void 0===s||void 0===r)&&(s=e,r=i,e=0,i=1),i<e){var a,n=i;i=e,e=n}if(t<=e)return s;if(t>=i)return r;var o=i===e?0:(t-e)/(i-e);if(!s.length)return s+(r-s)*o;var h=s.length,l=createTypedArray(\"float32\",h);for(a=0;a<h;a+=1)l[a]=s[a]+(r[a]-s[a])*o;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,s=e.length;t||(t=createTypedArray(\"float32\",s));var r=createTypedArray(\"float32\",s),a=BMMath.random();for(i=0;i<s;i+=1)r[i]=t[i]+a*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,s){var r,a,n,o=t.length,h=shapePool.newElement();h.setPathData(!!s,o);var l=[0,0];for(r=0;r<o;r+=1)a=e&&e[r]?e[r]:l,n=i&&i[r]?i[r]:l,h.setTripleAt(t[r][0],t[r][1],n[0]+t[r][0],n[1]+t[r][1],a[0]+t[r][0],a[1]+t[r][1],r,!0);return h}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var transform,$bm_transform,content,effect,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,time,velocity,value,text,textIndex,textTotal,selectorValue,parent,val=data.x,needsVelocity=/velocity(?![\\w\\d])/.test(val),_needsRandom=-1!==val.indexOf(\"random\"),elemType=elem.data.ty,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,\"value\",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,expression_function=eval(\"[function _expression_function(){\"+val+\";scoped_bm_rt=$bm_rt}]\")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=(function(t,e){var i,s,r=this.pv.length?this.pv.length:1,a=createTypedArray(\"float32\",r);t=5;var n=Math.floor(time*t);for(i=0,s=0;i<n;){for(s=0;s<r;s+=1)a[s]+=-e+2*e*BMMath.random();i+=1}var o=time*t,h=o-Math.floor(o),l=createTypedArray(\"float32\",r);if(r>1){for(s=0;s<r;s+=1)l[s]=this.pv[s]+a[s]+(-e+2*e*BMMath.random())*h;return l}return this.pv+a[0]+(-e+2*e*BMMath.random())*h}).bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loop_in=loopIn=thisProperty.loopIn.bind(thisProperty)),thisProperty.loopOut&&(loop_out=loopOut=thisProperty.loopOut.bind(thisProperty)),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],s=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,s,0]}function easeOut(t,e,i,s,r){return applyEase(easeOutBez,t,e,i,s,r)}function easeIn(t,e,i,s,r){return applyEase(easeInBez,t,e,i,s,r)}function ease(t,e,i,s,r){return applyEase(easeInOutBez,t,e,i,s,r)}function applyEase(t,e,i,s,r,a){void 0===r?(r=i,a=s):e=(e-i)/(s-i),e>1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(r)){var o,h=r.length,l=createTypedArray(\"float32\",h);for(o=0;o<h;o+=1)l[o]=(a[o]-r[o])*n+r[o];return l}return(a-r)*n+r}function nearestKey(t){var e,i,s,r=data.k.length;if(data.k.length&&\"number\"!=typeof data.k[0]){if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,s=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,s=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}}-1===i&&(i=e+1,s=data.k[e].t)}}else i=0,s=0;var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(t){if(!data.k.length||\"number\"==typeof data.k[0])throw Error(\"The property has no keyframe at index \"+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var e,i,s,r=Object.prototype.hasOwnProperty.call(data.k[t],\"s\")?data.k[t].s:data.k[t-1].e;for(i=0,s=r.length;i<s;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return\"string\"==typeof value?void 0===e?value.substring(t):value.substring(t,e):\"\"}function substr(t,e){return\"string\"==typeof value?void 0===e?value.substr(t):value.substr(t,e):\"\"}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return(value=t,this.frameExpressionId===elem.globalData.frameId&&\"textSelector\"!==this.propType)?value:(\"textSelector\"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),!transform&&($bm_transform=transform=elem.layerInterface(\"ADBE Transform Group\"),transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer(\"ADBE Root Vectors Group\")),effect||(effect=thisLayer(4)),(hasParent=!!(elem.hierarchy&&elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={};function e(t){var e=0,i=[];function s(){e+=1}function r(){0==(e-=1)&&n()}function a(t){-1===i.indexOf(t)&&i.push(t)}function n(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=s,t.renderer.globalData.popExpression=r,t.renderer.globalData.registerExpressionProperty=a}return t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,\"maskPath\",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,\"maskOpacity\",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,s=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)s[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return s[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,\"velocity\",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(s){if(!t.numKeys)return 0;var r=\"\";r=\"s\"in e.keyframes[s-1]?e.keyframes[s-1].s:\"e\"in e.keyframes[s-2]?e.keyframes[s-2].e:e.keyframes[s-2].s;var a=\"unidimensional\"===i?new Number(r):Object.assign({},r);return a.time=e.keyframes[s-1].t/e.elem.comp.globalData.frameRate,a.value=\"unidimensional\"===i?r[0]:r,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function s(e){e&&\"pv\"in e||(e=t);var s=1/e.mult,r=e.pv*s,a=new Number(r);return a.value=r,i(a,e,\"unidimensional\"),function(){return e.k&&e.getValue(),r=e.v*s,a.value!==r&&((a=new Number(r)).value=r,i(a,e,\"unidimensional\")),a}}function r(t){t&&\"pv\"in t||(t=e);var s=1/t.mult,r=t.data&&t.data.l||t.pv.length,a=createTypedArray(\"float32\",r),n=createTypedArray(\"float32\",r);return a.value=n,i(a,t,\"multidimensional\"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)n[e]=t.v[e]*s,a[e]=n[e];return a}}function a(){return t}return function(t){return t?\"unidimensional\"===t.propType?s(t):r(t):a}}(),TransformExpressionInterface=function(){return function(t){var e,i,s,r;function a(t){switch(t){case\"scale\":case\"Scale\":case\"ADBE Scale\":case 6:return a.scale;case\"rotation\":case\"Rotation\":case\"ADBE Rotation\":case\"ADBE Rotate Z\":case 10:return a.rotation;case\"ADBE Rotate X\":return a.xRotation;case\"ADBE Rotate Y\":return a.yRotation;case\"position\":case\"Position\":case\"ADBE Position\":case 2:return a.position;case\"ADBE Position_0\":return a.xPosition;case\"ADBE Position_1\":return a.yPosition;case\"ADBE Position_2\":return a.zPosition;case\"anchorPoint\":case\"AnchorPoint\":case\"Anchor Point\":case\"ADBE AnchorPoint\":case 1:return a.anchorPoint;case\"opacity\":case\"Opacity\":case 11:return a.opacity;default:return null}}return Object.defineProperty(a,\"rotation\",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(a,\"zRotation\",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(a,\"xRotation\",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(a,\"yRotation\",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(a,\"scale\",{get:ExpressionPropertyInterface(t.s)}),t.p?r=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(a,\"position\",{get:function(){return t.p?r():[e(),i(),s?s():0]}}),Object.defineProperty(a,\"xPosition\",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(a,\"yPosition\",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(a,\"zPosition\",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(a,\"anchorPoint\",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(a,\"opacity\",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(a,\"skew\",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(a,\"skewAxis\",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(a,\"orientation\",{get:ExpressionPropertyInterface(t.or)}),a}}(),LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function s(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(l){function p(t){c.mask=new MaskManagerInterface(t,l)}function f(t){c.effect=t}function c(t){switch(t){case\"ADBE Root Vectors Group\":case\"Contents\":case 2:return c.shapeInterface;case 1:case 6:case\"Transform\":case\"transform\":case\"ADBE Transform Group\":return m;case 4:case\"ADBE Effect Parade\":case\"effects\":case\"Effects\":return c.effect;case\"ADBE Text Properties\":return c.textInterface;default:return null}}c.getMatrix=t,c.invertPoint=n,c.applyPoint=a,c.toWorld=i,c.toWorldVec=e,c.fromWorld=r,c.fromWorldVec=s,c.toComp=i,c.fromComp=o,c.sampleImage=h,c.sourceRectAtTime=l.sourceRectAtTime.bind(l),c._elem=l;var m,u=getDescriptor(m=TransformExpressionInterface(l.finalTransform.mProp),\"anchorPoint\");return Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(m,\"rotation\"),scale:getDescriptor(m,\"scale\"),position:getDescriptor(m,\"position\"),opacity:getDescriptor(m,\"opacity\"),anchorPoint:u,anchor_point:u,transform:{get:function(){return m}},active:{get:function(){return l.isInRange}}}),c.startTime=l.data.st,c.index=l.data.ind,c.source=l.data.refId,c.height=0===l.data.ty?l.data.h:100,c.width=0===l.data.ty?l.data.w:100,c.inPoint=l.data.ip/l.comp.globalData.frameRate,c.outPoint=l.data.op/l.comp.globalData.frameRate,c._name=l.data.nm,c.registerMaskInterface=p,c.registerEffectsInterface=f,c}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}}}(),EffectsExpressionInterface=function(){function t(i,s,r,a){function n(t){for(var e=i.ef,s=0,r=e.length;s<r;){if(t===e[s].nm||t===e[s].mn||t===e[s].ix){if(5===e[s].ty)return l[s];return l[s]()}s+=1}throw Error()}var o,h=propertyGroupFactory(n,r),l=[],p=i.ef.length;for(o=0;o<p;o+=1)5===i.ef[o].ty?l.push(t(i.ef[o],s.effectElements[o],s.effectElements[o].propertyGroup,a)):l.push(e(s.effectElements[o],i.ef[o].ty,a,h));return\"ADBE Color Control\"===i.mn&&Object.defineProperty(n,\"color\",{get:function(){return l[0]()}}),Object.defineProperties(n,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:h}}),n.enabled=0!==i.en,n.active=n.enabled,n}function e(t,e,i,s){var r=ExpressionPropertyInterface(t.p);function a(){return 10===e?i.comp.compInterface(t.p.v):r()}return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface(\"\",s)),a}return{createEffectsInterface:function(e,i){if(e.effectsManager){var s,r=[],a=e.data.ef,n=e.effectsManager.effectElements.length;for(s=0;s<n;s+=1)r.push(t(a[s],e.effectsManager.effectElements[s],i,e));var o=e.data.ef||[],h=function(t){for(s=0,n=o.length;s<n;){if(t===o[s].nm||t===o[s].mn||t===o[s].ix)return r[s];s+=1}return null};return Object.defineProperty(h,\"numProperties\",{get:function(){return o.length}}),h}return null}}}(),ShapePathInterface=function(){return function(t,e,i){var s=e.sh;function r(t){return\"Shape\"===t||\"shape\"===t||\"Path\"===t||\"path\"===t||\"ADBE Vector Shape\"===t||2===t?r.path:null}var a=propertyGroupFactory(r,i);return s.setGroupProperty(PropertyInterface(\"Path\",a)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),ShapeExpressionInterface=function(){function t(t,e,h){var u,d=[],g=t?t.length:0;for(u=0;u<g;u+=1)\"gr\"===t[u].ty?d.push(i(t[u],e[u],h)):\"fl\"===t[u].ty?d.push(s(t[u],e[u],h)):\"st\"===t[u].ty?d.push(n(t[u],e[u],h)):\"tm\"===t[u].ty?d.push(o(t[u],e[u],h)):\"tr\"===t[u].ty||(\"el\"===t[u].ty?d.push(l(t[u],e[u],h)):\"sr\"===t[u].ty?d.push(p(t[u],e[u],h)):\"sh\"===t[u].ty?d.push(ShapePathInterface(t[u],e[u],h)):\"rc\"===t[u].ty?d.push(f(t[u],e[u],h)):\"rd\"===t[u].ty?d.push(c(t[u],e[u],h)):\"rp\"===t[u].ty?d.push(m(t[u],e[u],h)):\"gf\"===t[u].ty?d.push(r(t[u],e[u],h)):d.push(a(t[u],e[u],h)));return d}function e(e,i,s){var r,a=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return\"number\"==typeof t?r[t-1]:null};a.propertyGroup=propertyGroupFactory(a,s),r=t(e.it,i.it,a.propertyGroup),a.numProperties=r.length;var n=h(e.it[e.it.length-1],i.it[i.it.length-1],a.propertyGroup);return a.transform=n,a.propertyIndex=e.cix,a._name=e.nm,a}function i(t,i,s){var r=function(t){switch(t){case\"ADBE Vectors Group\":case\"Contents\":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,s);var a=e(t,i,r.propertyGroup),n=h(t.it[t.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=a,r.transform=n,Object.defineProperty(r,\"_name\",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}function s(t,e,i){function s(t){return\"Color\"===t||\"color\"===t?s.color:\"Opacity\"===t||\"opacity\"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface(\"Color\",i)),e.o.setGroupProperty(PropertyInterface(\"Opacity\",i)),s}function r(t,e,i){function s(t){return\"Start Point\"===t||\"start point\"===t?s.startPoint:\"End Point\"===t||\"end point\"===t?s.endPoint:\"Opacity\"===t||\"opacity\"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return\"a\"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface(\"Start Point\",i)),e.e.setGroupProperty(PropertyInterface(\"End Point\",i)),e.o.setGroupProperty(PropertyInterface(\"Opacity\",i)),s}function a(){return function(){return null}}function n(t,e,i){var s,r=propertyGroupFactory(l,i),a=propertyGroupFactory(h,r);function n(i){Object.defineProperty(h,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,h={};for(s=0;s<o;s+=1)n(s),e.d.dataProps[s].p.setGroupProperty(a);function l(t){return\"Color\"===t||\"color\"===t?l.color:\"Opacity\"===t||\"opacity\"===t?l.opacity:\"Stroke Width\"===t||\"stroke width\"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface(\"Color\",r)),e.o.setGroupProperty(PropertyInterface(\"Opacity\",r)),e.w.setGroupProperty(PropertyInterface(\"Stroke Width\",r)),l}function o(t,e,i){function s(e){return e===t.e.ix||\"End\"===e||\"end\"===e?s.end:e===t.s.ix?s.start:e===t.o.ix?s.offset:null}var r=propertyGroupFactory(s,i);return s.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface(\"Start\",r)),e.e.setGroupProperty(PropertyInterface(\"End\",r)),e.o.setGroupProperty(PropertyInterface(\"Offset\",r)),s.propertyIndex=t.ix,s.propertyGroup=i,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function h(t,e,i){function s(e){return t.a.ix===e||\"Anchor Point\"===e?s.anchorPoint:t.o.ix===e||\"Opacity\"===e?s.opacity:t.p.ix===e||\"Position\"===e?s.position:t.r.ix===e||\"Rotation\"===e||\"ADBE Vector Rotation\"===e?s.rotation:t.s.ix===e||\"Scale\"===e?s.scale:t.sk&&t.sk.ix===e||\"Skew\"===e?s.skew:t.sa&&t.sa.ix===e||\"Skew Axis\"===e?s.skewAxis:null}var r=propertyGroupFactory(s,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface(\"Opacity\",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface(\"Position\",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface(\"Anchor Point\",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface(\"Scale\",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface(\"Rotation\",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface(\"Skew\",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface(\"Skew Angle\",r))),e.transform.op.setGroupProperty(PropertyInterface(\"Opacity\",r)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),s.ty=\"tr\",s.mn=t.mn,s.propertyGroup=i,s}function l(t,e,i){function s(e){return t.p.ix===e?s.position:t.s.ix===e?s.size:null}var r=propertyGroupFactory(s,i);s.propertyIndex=t.ix;var a=\"tm\"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface(\"Size\",r)),a.p.setGroupProperty(PropertyInterface(\"Position\",r)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),s.mn=t.mn,s}function p(t,e,i){function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.rotation:t.pt.ix===e?s.points:t.or.ix===e||\"ADBE Vector Star Outer Radius\"===e?s.outerRadius:t.os.ix===e?s.outerRoundness:t.ir&&(t.ir.ix===e||\"ADBE Vector Star Inner Radius\"===e)?s.innerRadius:t.is&&t.is.ix===e?s.innerRoundness:null}var r=propertyGroupFactory(s,i),a=\"tm\"===e.sh.ty?e.sh.prop:e.sh;return s.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface(\"Outer Radius\",r)),a.os.setGroupProperty(PropertyInterface(\"Outer Roundness\",r)),a.pt.setGroupProperty(PropertyInterface(\"Points\",r)),a.p.setGroupProperty(PropertyInterface(\"Position\",r)),a.r.setGroupProperty(PropertyInterface(\"Rotation\",r)),t.ir&&(a.ir.setGroupProperty(PropertyInterface(\"Inner Radius\",r)),a.is.setGroupProperty(PropertyInterface(\"Inner Roundness\",r))),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),s.mn=t.mn,s}function f(t,e,i){function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.roundness:t.s.ix===e||\"Size\"===e||\"ADBE Vector Rect Size\"===e?s.size:null}var r=propertyGroupFactory(s,i),a=\"tm\"===e.sh.ty?e.sh.prop:e.sh;return s.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface(\"Position\",r)),a.s.setGroupProperty(PropertyInterface(\"Size\",r)),a.r.setGroupProperty(PropertyInterface(\"Rotation\",r)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),s.mn=t.mn,s}function c(t,e,i){function s(e){return t.r.ix===e||\"Round Corners 1\"===e?s.radius:null}var r=propertyGroupFactory(s,i),a=e;return s.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface(\"Radius\",r)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),s.mn=t.mn,s}function m(t,e,i){function s(e){return t.c.ix===e||\"Copies\"===e?s.copies:t.o.ix===e||\"Offset\"===e?s.offset:null}var r=propertyGroupFactory(s,i),a=e;return s.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface(\"Copies\",r)),a.o.setGroupProperty(PropertyInterface(\"Offset\",r)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),s.mn=t.mn,s}return function(e,i,s){var r;function a(t){if(\"number\"==typeof t)return 0===(t=void 0===t?1:t)?s:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}function n(){return s}return a.propertyGroup=propertyGroupFactory(a,n),r=t(e,i,a.propertyGroup),a.numProperties=r.length,a._name=\"Contents\",a}}(),TextExpressionInterface=function(){return function(t){var e;function i(t){return\"ADBE Text Document\"===t?i.sourceText:null}return Object.defineProperty(i,\"sourceText\",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,\"style\",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i}}();function _typeof(t){return(_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var FootageInterface=function(){var t=function(t){var e=\"\",i=t.getFootageData();function s(t){if(i[t])return(e=t,i=i[t],\"object\"===_typeof(i))?s:i;var r=t.indexOf(e);return -1!==r?(i=i[parseInt(t.substr(r+e.length),10)],\"object\"===_typeof(i))?s:i:\"\"}return function(){return e=\"\",i=t.getFootageData(),s}},e=function(e){function i(t){return\"Outline\"===t?i.outlineInterface():null}return i._name=\"Outline\",i.outlineInterface=t(e),i};return function(t){function i(t){return\"Data\"===t?i.dataInterface:null}return i._name=\"Data\",i.dataInterface=e(t),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=function(){return{searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e,i=-.01,s=this.getValueAtTime(t),r=this.getValueAtTime(t+i),a=0;if(s.length){for(e=0;e<s.length;e+=1)a+=Math.pow(r[e]-s[e],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,s=-.001,r=this.getValueAtTime(t),a=this.getValueAtTime(t+s);if(r.length)for(i=0,e=createTypedArray(\"float32\",r.length);i<r.length;i+=1)e[i]=(a[i]-r[i])/s;else e=(a-r)/s;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}}}();function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():\"\";var s,r,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?(s=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip),r=p-s):((!e||e>l.length-1)&&(e=l.length-1),s=p-(r=l[l.length-1-e].t)),\"pingpong\"===t){if(Math.floor((h-r)/s)%2!=0)return this.getValueAtTime((s-(h-r)%s+r)/this.comp.globalData.frameRate,0)}else if(\"offset\"===t){var f=this.getValueAtTime(r/this.comp.globalData.frameRate,0),c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),m=this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0),u=Math.floor((h-r)/s);if(this.pv.length){for(a=0,n=(o=Array(f.length)).length;a<n;a+=1)o[a]=(c[a]-f[a])*u+m[a];return o}return(c-f)*u+m}else if(\"continue\"===t){var d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=0,n=(o=Array(d.length)).length;a<n;a+=1)o[a]=d[a]+(d[a]-g[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return d+(h-p)/.001*(d-g)}return this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():\"\";var s,r,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(i?(s=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p),r=p+s):((!e||e>l.length-1)&&(e=l.length-1),s=(r=l[e].t)-p),\"pingpong\"===t){if(Math.floor((p-h)/s)%2==0)return this.getValueAtTime(((p-h)%s+p)/this.comp.globalData.frameRate,0)}else if(\"offset\"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(r/this.comp.globalData.frameRate,0),m=this.getValueAtTime((s-(p-h)%s+p)/this.comp.globalData.frameRate,0),u=Math.floor((p-h)/s)+1;if(this.pv.length){for(a=0,n=(o=Array(f.length)).length;a<n;a+=1)o[a]=m[a]-(c[a]-f[a])*u;return o}return m-(c-f)*u}else if(\"continue\"===t){var d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=0,n=(o=Array(d.length)).length;a<n;a+=1)o[a]=d[a]+(d[a]-g[a])*(p-h)/.001;return o}return d+(d-g)*(p-h)/.001}return this.getValueAtTime((s-((p-h)%s+p))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k||(t=.5*(t||.4),(e=Math.floor(e||5))<=1))return this.pv;var i,s,r=this.comp.renderedFrame/this.comp.globalData.frameRate,a=r-t,n=r+t,o=e>1?(n-a)/(e-1):1,h=0,l=0;for(i=this.pv.length?createTypedArray(\"float32\",this.pv.length):0;h<e;){if(s=this.getValueAtTime(a+h*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=s[l];else i+=s;h+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function s(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var s=this.s.getValueAtTime(t);e.scale(s[0]*this.s.mult,s[1]*this.s.mult,s[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var n=this.r.getValueAtTime(t);e.rotate(-n*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),h=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var f=this.px.getValueAtTime(t),c=this.py.getValueAtTime(t);if(this.data.p.z){var m=this.pz.getValueAtTime(t);e.translate(f*this.px.mult,c*this.py.mult,-m*this.pz.mult)}else e.translate(f*this.px.mult,c*this.py.mult,0)}else{var u=this.p.getValueAtTime(t);e.translate(u[0]*this.p.mult,u[1]*this.p.mult,-u[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var n=a(t,e,i);return n.dynamicProperties.length?n.getValueAtTime=s.bind(n):n.getValueAtTime=r.bind(n),n.setGroupProperty=expressionHelpers.setGroupProperty,n};var n=PropertyFactory.getProp;function o(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}PropertyFactory.getProp=function(s,r,a,o,h){var l=n(s,r,a,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=i,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===r.a?r.k.length:0,l.propertyIndex=r.ix;var p=0;return 0!==a&&(p=createTypedArray(\"float32\",1===r.a?r.k[0].s.length:r.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(s,r,l),l.k&&h.addDynamicProperty(l),l};var h=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(t,e){this.k&&this.getValue();var i,s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));var r=s._length,a=s[t],n=s.v,o=createSizedArray(r);for(i=0;i<r;i+=1)\"i\"===t||\"o\"===t?o[i]=[a[i][0]-n[i][0],a[i][1]-n[i][1]]:o[i]=[a[i][0],a[i][1]];return o},points:function(t){return this.vertices(\"v\",t)},inTangents:function(t){return this.vertices(\"i\",t)},outTangents:function(t){return this.vertices(\"o\",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i,s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(s));for(var r=this._segmentsLength,a=r.lengths,n=r.totalLength*t,o=0,h=a.length,l=0;o<h;){if(l+a[o].addedLength>n){var p=o,f=s.c&&o===h-1?0:o+1,c=(n-l)/a[o].addedLength;i=bez.getPointInSegment(s.v[p],s.v[f],s.o[p],s.i[f],c,a[o]);break}l+=a[o].addedLength,o+=1}return i||(i=s.c?[s.v[0][0],s.v[0][1]]:[s.v[s._length-1][0],s.v[s._length-1][1]]),i},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),a=r[0]-s[0],n=r[1]-s[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0===o?[0,0]:\"tangent\"===i?[a/o,n/o]:[-n/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,\"tangent\")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,\"normal\")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],h),extendPrototype([p],l),l.prototype.getValueAtTime=o,l.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,s,r){var a=f(t,e,i,s,r);return a.propertyIndex=e.ix,a.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,a):4===i&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,s,r=createNS(\"feMerge\");for(r.setAttribute(\"result\",t),s=0;s<e.length;s+=1)(i=createNS(\"feMergeNode\")).setAttribute(\"in\",e[s]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue=\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0\";function SVGTintFilter(t,e,i,s,r){this.filterManager=e;var a=createNS(\"feColorMatrix\");a.setAttribute(\"type\",\"matrix\"),a.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),a.setAttribute(\"values\",linearFilterValue+\" 1 0\"),this.linearFilter=a,a.setAttribute(\"result\",s+\"_tint_1\"),t.appendChild(a),(a=createNS(\"feColorMatrix\")).setAttribute(\"type\",\"matrix\"),a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),a.setAttribute(\"result\",s+\"_tint_2\"),t.appendChild(a),this.matrixFilter=a;var n=this.createMergeNode(s,[r,s+\"_tint_1\",s+\"_tint_2\"]);t.appendChild(n)}function SVGFillFilter(t,e,i,s){this.filterManager=e;var r=createNS(\"feColorMatrix\");r.setAttribute(\"type\",\"matrix\"),r.setAttribute(\"color-interpolation-filters\",\"sRGB\"),r.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),r.setAttribute(\"result\",s),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,s){this.filterManager=e;var r=createNS(\"feColorMatrix\");r.setAttribute(\"type\",\"matrix\"),r.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),r.setAttribute(\"values\",\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\"),t.appendChild(r);var a=createNS(\"feComponentTransfer\");a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"result\",s),this.matrixFilter=a;var n=createNS(\"feFuncR\");n.setAttribute(\"type\",\"table\"),a.appendChild(n),this.feFuncR=n;var o=createNS(\"feFuncG\");o.setAttribute(\"type\",\"table\"),a.appendChild(o),this.feFuncG=o;var h=createNS(\"feFuncB\");h.setAttribute(\"type\",\"table\"),a.appendChild(h),this.feFuncB=h,t.appendChild(a)}function SVGProLevelsFilter(t,e,i,s){this.filterManager=e;var r=this.filterManager.effectElements,a=createNS(\"feComponentTransfer\");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc(\"feFuncR\",a)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc(\"feFuncG\",a)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc(\"feFuncB\",a)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc(\"feFuncA\",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),t.appendChild(a)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((a=createNS(\"feComponentTransfer\")).setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"result\",s),t.appendChild(a),this.feFuncRComposed=this.createFeFunc(\"feFuncR\",a),this.feFuncGComposed=this.createFeFunc(\"feFuncG\",a),this.feFuncBComposed=this.createFeFunc(\"feFuncB\",a))}function SVGDropShadowEffect(t,e,i,s,r){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute(\"x\",n.x||a.x),t.setAttribute(\"y\",n.y||a.y),t.setAttribute(\"width\",n.width||a.width),t.setAttribute(\"height\",n.height||a.height),this.filterManager=e;var o=createNS(\"feGaussianBlur\");o.setAttribute(\"in\",\"SourceAlpha\"),o.setAttribute(\"result\",s+\"_drop_shadow_1\"),o.setAttribute(\"stdDeviation\",\"0\"),this.feGaussianBlur=o,t.appendChild(o);var h=createNS(\"feOffset\");h.setAttribute(\"dx\",\"25\"),h.setAttribute(\"dy\",\"0\"),h.setAttribute(\"in\",s+\"_drop_shadow_1\"),h.setAttribute(\"result\",s+\"_drop_shadow_2\"),this.feOffset=h,t.appendChild(h);var l=createNS(\"feFlood\");l.setAttribute(\"flood-color\",\"#00ff00\"),l.setAttribute(\"flood-opacity\",\"1\"),l.setAttribute(\"result\",s+\"_drop_shadow_3\"),this.feFlood=l,t.appendChild(l);var p=createNS(\"feComposite\");p.setAttribute(\"in\",s+\"_drop_shadow_3\"),p.setAttribute(\"in2\",s+\"_drop_shadow_2\"),p.setAttribute(\"operator\",\"in\"),p.setAttribute(\"result\",s+\"_drop_shadow_4\"),t.appendChild(p);var f=this.createMergeNode(s,[s+\"_drop_shadow_4\",r]);t.appendChild(f)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute(\"values\",linearFilterValue+\" \"+s+\" 0\"),this.matrixFilter.setAttribute(\"values\",i[0]-e[0]+\" 0 0 0 \"+e[0]+\" \"+(i[1]-e[1])+\" 0 0 0 \"+e[1]+\" \"+(i[2]-e[2])+\" 0 0 0 \"+e[2]+\" 0 0 0 1 0\")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute(\"values\",\"0 0 0 0 \"+e[0]+\" 0 0 0 0 \"+e[1]+\" 0 0 0 0 \"+e[2]+\" 0 0 0 \"+i+\" 0\")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS(\"g\")).setAttribute(\"fill\",\"none\"),e.setAttribute(\"stroke-linecap\",\"round\"),e.setAttribute(\"stroke-dashoffset\",1);i<s;i+=1)t=createNS(\"path\"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS(\"mask\"),n=createElementID();a.setAttribute(\"id\",n),a.setAttribute(\"mask-type\",\"alpha\"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var o=createNS(\"g\");for(o.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+n+\")\");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute(\"stroke\",\"#fff\")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute(\"mask\"),e.setAttribute(\"stroke\",\"#fff\")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e=this.paths.length;for(i=0;i<e;i+=1)if(-1!==this.paths[i].m&&(s=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,(t||this.filterManager._mdf||s.prop._mdf)&&r.setAttribute(\"d\",s.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||s.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var i,s,r,a,n,o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),h=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();a=\"0 0 0 \"+l*o+\" \";var p=Math.floor(l*(h-o)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(n=0;n<p;n+=1)a+=\"1 \"+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+\" \";a+=\"0 \"+10*l+\" 0 0\"}else a=\"1 \"+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute(\"stroke-dasharray\",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute(\"stroke-width\",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute(\"opacity\",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute(\"stroke\",\"rgb(\"+bmFloor(255*f[0])+\",\"+bmFloor(255*f[1])+\",\"+bmFloor(255*f[2])+\")\")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,r=s[0]+\" \"+i[0]+\" \"+e[0],a=s[1]+\" \"+i[1]+\" \"+e[1],n=s[2]+\" \"+i[2]+\" \"+e[2];this.feFuncR.setAttribute(\"tableValues\",r),this.feFuncG.setAttribute(\"tableValues\",a),this.feFuncB.setAttribute(\"tableValues\",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute(\"type\",\"table\"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,s,r){for(var a,n,o=0,h=256,l=Math.min(t,e),p=Math.max(t,e),f=Array.call(null,{length:256}),c=0,m=r-s,u=e-t;o<=256;)n=(a=o/256)<=l?u<0?r:s:a>=p?u<0?s:r:s+m*Math.pow((a-t)/u,1/i),f[c]=n,c+=1,o+=256/(h-1);return f.join(\" \")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute(\"tableValues\",e),this.feFuncGComposed.setAttribute(\"tableValues\",e),this.feFuncBComposed.setAttribute(\"tableValues\",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute(\"tableValues\",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute(\"tableValues\",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute(\"tableValues\",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute(\"tableValues\",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute(\"stdDeviation\",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute(\"flood-color\",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute(\"flood-opacity\",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(s),a=i*Math.sin(s);this.feOffset.setAttribute(\"dx\",r),this.feOffset.setAttribute(\"dy\",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS(\"g\"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,s){t.setAttribute(\"x\",\"-100%\"),t.setAttribute(\"y\",\"-100%\"),t.setAttribute(\"width\",\"300%\"),t.setAttribute(\"height\",\"300%\"),this.filterManager=e;var r=createNS(\"feGaussianBlur\");r.setAttribute(\"result\",s),t.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i,s=t.layerElement.parentNode;if(s){for(var r=s.children,a=0,n=r.length;a<n&&r[a]!==t.layerElement;)a+=1;a<=n-2&&(i=r[a+1]);var o=createNS(\"use\");o.setAttribute(\"href\",\"#\"+e),i?s.insertBefore(o,i):s.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),s=createNS(\"mask\");s.setAttribute(\"id\",e.layerId),s.setAttribute(\"mask-type\",\"alpha\"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(s);var a=createNS(\"symbol\");a.setAttribute(\"id\",i),this.replaceInParent(e,i),a.appendChild(e.layerElement),r.appendChild(a);var n=createNS(\"use\");n.setAttribute(\"href\",\"#\"+i),s.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,s=e.length;i<s;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,i=this.filterManager.effectElements[0].p.v*e,s=this.filterManager.effectElements[1].p.v,r=3==s?0:i,a=2==s?0:i;this.feGaussianBlur.setAttribute(\"stdDeviation\",r+\" \"+a);var n=1==this.filterManager.effectElements[2].p.v?\"wrap\":\"duplicate\";this.feGaussianBlur.setAttribute(\"edgeMode\",n)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,s=e[1].p.v,r=1===e[2].p.v,a=e[3].p.v,n=r?a:e[4].p.v,o=e[5].p.v,h=e[6].p.v,l=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*n,.01*a,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-o*degToRads,(h+90)*degToRads),this.matrix.translate(s[0],s[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer(\"canvas\",CanvasRenderer),registerRenderer(\"html\",HybridRenderer),registerRenderer(\"svg\",SVGRenderer),ShapeModifiers.registerModifier(\"tm\",TrimModifier),ShapeModifiers.registerModifier(\"pb\",PuckerAndBloatModifier),ShapeModifiers.registerModifier(\"rp\",RepeaterModifier),ShapeModifiers.registerModifier(\"rd\",RoundCornersModifier),ShapeModifiers.registerModifier(\"zz\",ZigZagModifier),ShapeModifiers.registerModifier(\"op\",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/e34aaff9-73cdc0c2aa38fff5.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[994],{3003:function(a,t,h){h.d(t,{Mam:function(){return n}});var m=h(91810);function n(a){return(0,m.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"g\",attr:{id:\"Globe\"},child:[{tag:\"path\",attr:{d:\"M14.645,2.428a8.1,8.1,0,0,0-1.61-.3,9.332,9.332,0,0,0-3.6.28l-.07.02a9.928,9.928,0,0,0,.01,19.15,9.091,9.091,0,0,0,2.36.34,1.274,1.274,0,0,0,.27.02,9.65,9.65,0,0,0,2.63-.36,9.931,9.931,0,0,0,.01-19.15Zm-.27.96a8.943,8.943,0,0,1,5.84,5.11h-4.26a13.778,13.778,0,0,0-2.74-5.35A8.254,8.254,0,0,1,14.375,3.388Zm-2.37-.09a12.78,12.78,0,0,1,2.91,5.2H9.075A12.545,12.545,0,0,1,12.005,3.3Zm3.16,6.2a13.193,13.193,0,0,1,0,5.01H8.845a12.185,12.185,0,0,1-.25-2.5,12.353,12.353,0,0,1,.25-2.51Zm-5.6-6.09.07-.02a9.152,9.152,0,0,1,1.16-.23A13.618,13.618,0,0,0,8.045,8.5H3.8A9,9,0,0,1,9.565,3.408Zm-6.5,8.6a8.71,8.71,0,0,1,.37-2.51h4.39a13.95,13.95,0,0,0-.23,2.51,13.757,13.757,0,0,0,.23,2.5H3.435A8.591,8.591,0,0,1,3.065,12.008Zm6.57,8.61a8.9,8.9,0,0,1-5.84-5.11h4.24a13.632,13.632,0,0,0,2.77,5.35A8.1,8.1,0,0,1,9.635,20.618Zm-.56-5.11h5.84a12.638,12.638,0,0,1-2.91,5.21A12.872,12.872,0,0,1,9.075,15.508Zm5.3,5.11a11.551,11.551,0,0,1-1.17.24,13.8,13.8,0,0,0,2.75-5.35h4.26A8.924,8.924,0,0,1,14.375,20.618Zm1.8-6.11a13.611,13.611,0,0,0,0-5.01h4.39a8.379,8.379,0,0,1,.37,2.51,8.687,8.687,0,0,1-.36,2.5Z\"},child:[]}]}]})(a)}}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/fd9d1056-819464016f7ad85c.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{84417:function(e,t,n){var r,l=n(2265),a=n(85689),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){var t=\"https://react.dev/errors/\"+e;if(1<arguments.length){t+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n])}return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var u=Object.assign,s=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=s.ReactCurrentDispatcher,f={pending:!1,data:null,method:null,action:null},d=[],p=-1;function m(e){return{current:e}}function h(e){0>p||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for(\"react.element\"),v=Symbol.for(\"react.portal\"),b=Symbol.for(\"react.fragment\"),k=Symbol.for(\"react.strict_mode\"),w=Symbol.for(\"react.profiler\"),S=Symbol.for(\"react.provider\"),C=Symbol.for(\"react.consumer\"),E=Symbol.for(\"react.context\"),x=Symbol.for(\"react.forward_ref\"),z=Symbol.for(\"react.suspense\"),P=Symbol.for(\"react.suspense_list\"),N=Symbol.for(\"react.memo\"),_=Symbol.for(\"react.lazy\"),L=Symbol.for(\"react.scope\");Symbol.for(\"react.debug_trace_mode\");var T=Symbol.for(\"react.offscreen\"),F=Symbol.for(\"react.legacy_hidden\"),M=Symbol.for(\"react.cache\");Symbol.for(\"react.tracing_marker\");var O=Symbol.iterator;function R(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=O&&e[O]||e[\"@@iterator\"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),B={$$typeof:E,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null};function V(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=s3(e=s2(e),t);else switch(t){case\"svg\":t=1;break;case\"math\":t=2;break;default:t=0}}h(D),g(D,t)}function Q(){h(D),h(A),h(I)}function $(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=s3(t,e.type);t!==n&&(g(A,e),g(D,n))}function j(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),B._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=a.log,er=a.unstable_setDisableYieldValue,el=null,ea=null;function eo(e){if(\"function\"==typeof en&&er(e),ea&&\"function\"==typeof ea.setStrictMode)try{ea.setStrictMode(el,e)}catch(e){}}var ei=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eu(e)/es|0)|0},eu=Math.log,es=Math.LN2,ec=128,ef=4194304;function ed(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ep(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=ed(n):0!=(e&=a)&&(r=ed(e)):0!=(n&=~l)?r=ed(n):0!==e&&(r=ed(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function em(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function eh(){var e=ec;return 0==(4194176&(ec<<=1))&&(ec=128),e}function eg(){var e=ef;return 0==(62914560&(ef<<=1))&&(ef=4194304),e}function ey(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ev(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ei(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ei(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ek=0;function ew(e){return 2<(e&=-e)?8<e?0!=(134217727&e)?32:268435456:8:2}var eS=Object.prototype.hasOwnProperty,eC=Math.random().toString(36).slice(2),eE=\"__reactFiber$\"+eC,ex=\"__reactProps$\"+eC,ez=\"__reactContainer$\"+eC,eP=\"__reactEvents$\"+eC,eN=\"__reactListeners$\"+eC,e_=\"__reactHandles$\"+eC,eL=\"__reactResources$\"+eC,eT=\"__reactMarker$\"+eC;function eF(e){delete e[eE],delete e[ex],delete e[eP],delete e[eN],delete e[e_]}function eM(e){var t=e[eE];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ez]||n[eE]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[eE])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function eO(e){if(e=e[eE]||e[ez]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function eR(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function eD(e){return e[ex]||null}function eA(e){var t=e[eL];return t||(t=e[eL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function eI(e){e[eT]=!0}var eU=new Set,eB={};function eV(e,t){eQ(e,t),eQ(e+\"Capture\",t)}function eQ(e,t){for(eB[e]=t,e=0;e<t.length;e++)eU.add(t[e])}var e$=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),ej=RegExp(\"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"),eW={},eH={};function eq(e,t,n){if(eS.call(eH,t)||!eS.call(eW,t)&&(ej.test(t)?eH[t]=!0:(eW[t]=!0,!1))){if(null===n)e.removeAttribute(t);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":e.removeAttribute(t);return;case\"boolean\":var r=t.toLowerCase().slice(0,5);if(\"data-\"!==r&&\"aria-\"!==r){e.removeAttribute(t);return}}e.setAttribute(t,\"\"+n)}}}function eK(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":e.removeAttribute(t);return}e.setAttribute(t,\"\"+n)}}function eY(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":e.removeAttribute(n);return}e.setAttributeNS(t,n,\"\"+r)}}function eX(e){if(void 0===iY)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);iY=t&&t[1]||\"\"}return\"\\n\"+iY+e}var eG=!1;function eZ(e,t){if(!e||eG)return\"\";eG=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&\"function\"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&\"string\"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,\"name\");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});try{var a=r.DetermineComponentFrameRoot(),o=a[0],i=a[1];if(o&&i){var u=o.split(\"\\n\"),s=i.split(\"\\n\");for(l=r=0;r<u.length&&!u[r].includes(\"DetermineComponentFrameRoot\");)r++;for(;l<s.length&&!s[l].includes(\"DetermineComponentFrameRoot\");)l++;if(r===u.length||l===s.length)for(r=u.length-1,l=s.length-1;1<=r&&0<=l&&u[r]!==s[l];)l--;for(;1<=r&&0<=l;r--,l--)if(u[r]!==s[l]){if(1!==r||1!==l)do if(r--,l--,0>l||u[r]!==s[l]){var c=\"\\n\"+u[r].replace(\" at new \",\" at \");return e.displayName&&c.includes(\"<anonymous>\")&&(c=c.replace(\"<anonymous>\",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eG=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:\"\")?eX(n):\"\"}function eJ(e){try{var t=\"\";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return eX(e.type);case 16:return eX(\"Lazy\");case 13:return eX(\"Suspense\");case 19:return eX(\"SuspenseList\");case 0:case 2:case 15:return e=eZ(e.type,!1);case 11:return e=eZ(e.type.render,!1);case 1:return e=eZ(e.type,!0);default:return\"\"}}(e),e=e.return;while(e);return t}catch(e){return\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}}var e0=Symbol.for(\"react.client.reference\");function e1(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function e2(e){var t=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===t||\"radio\"===t)}function e3(e){e._valueTracker||(e._valueTracker=function(e){var t=e2(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&\"function\"==typeof n.get&&\"function\"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=e2(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e6(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e8=/[\\n\"\\\\]/g;function e5(e){return e.replace(e8,function(e){return\"\\\\\"+e.charCodeAt(0).toString(16)+\" \"})}function e7(e,t,n,r,l,a,o,i){e.name=\"\",null!=o&&\"function\"!=typeof o&&\"symbol\"!=typeof o&&\"boolean\"!=typeof o?e.type=o:e.removeAttribute(\"type\"),null!=t?\"number\"===o?(0===t&&\"\"===e.value||e.value!=t)&&(e.value=\"\"+e1(t)):e.value!==\"\"+e1(t)&&(e.value=\"\"+e1(t)):\"submit\"!==o&&\"reset\"!==o||e.removeAttribute(\"value\"),null!=t?te(e,o,e1(t)):null!=n?te(e,o,e1(n)):null!=r&&e.removeAttribute(\"value\"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&\"function\"!=typeof l&&\"symbol\"!=typeof l),null!=i&&\"function\"!=typeof i&&\"symbol\"!=typeof i&&\"boolean\"!=typeof i?e.name=\"\"+e1(i):e.removeAttribute(\"name\")}function e9(e,t,n,r,l,a,o,i){if(null!=a&&\"function\"!=typeof a&&\"symbol\"!=typeof a&&\"boolean\"!=typeof a&&(e.type=a),null!=t||null!=n){if(!(\"submit\"!==a&&\"reset\"!==a||null!=t))return;n=null!=n?\"\"+e1(n):\"\",t=null!=t?\"\"+e1(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r=\"function\"!=typeof(r=null!=r?r:l)&&\"symbol\"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&\"function\"!=typeof o&&\"symbol\"!=typeof o&&\"boolean\"!=typeof o&&(e.name=o)}function te(e,t,n){\"number\"===t&&e6(e.ownerDocument)===e||e.defaultValue===\"\"+n||(e.defaultValue=\"\"+n)}var tt=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t[\"$\"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(l=0,n=\"\"+e1(n),t=null;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function tr(e,t,n){if(null!=t&&((t=\"\"+e1(t))!==e.value&&(e.value=t),null==n)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=null!=n?\"\"+e1(n):\"\"}function tl(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(tt(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=\"\"),t=n}n=e1(t),e.defaultValue=n,(r=e.textContent)===n&&\"\"!==r&&null!==r&&(e.value=r)}function ta(e,t){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=t;else{for((iX=iX||document.createElement(\"div\")).innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=iX.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var to=ta;\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(to=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return ta(e,t)})});var ti=to;function tu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ts=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \"));function tc(e,t,n){var r=0===t.indexOf(\"--\");null==n||\"boolean\"==typeof n||\"\"===n?r?e.setProperty(t,\"\"):\"float\"===t?e.cssFloat=\"\":e[t]=\"\":r?e.setProperty(t,n):\"number\"!=typeof n||0===n||ts.has(t)?\"float\"===t?e.cssFloat=n:e[t]=(\"\"+n).trim():e[t]=n+\"px\"}function tf(e,t,n){if(null!=t&&\"object\"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf(\"--\")?e.setProperty(r,\"\"):\"float\"===r?e.cssFloat=\"\":e[r]=\"\");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&tc(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&tc(e,a,t[a])}function td(e){if(-1===e.indexOf(\"-\"))return!1;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var tp=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),tm=null;function th(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tg=null,ty=null;function tv(e){var t=eO(e);if(t&&(e=t.stateNode)){var n=eD(e);switch(e=t.stateNode,t.type){case\"input\":if(e7(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\"'+e5(\"\"+t)+'\"][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=eD(r);if(!l)throw Error(i(90));e7(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&e4(r)}break;case\"textarea\":tr(e,n.value,n.defaultValue);break;case\"select\":null!=(t=n.value)&&tn(e,!!n.multiple,t,!1)}}}function tb(e){tg?ty?ty.push(e):ty=[e]:tg=e}function tk(){if(tg){var e=tg,t=ty;if(ty=tg=null,tv(e),t)for(e=0;e<t.length;e++)tv(t[e])}}function tw(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function tS(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function tC(e){if(tw(e)!==e)throw Error(i(188))}function tE(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=tw(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){n=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return tC(l),e;if(a===r)return tC(l),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=l,r=a;else{for(var o=!1,u=l.child;u;){if(u===n){o=!0,n=l,r=a;break}if(u===r){o=!0,r=l,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=l;break}if(u===r){o=!0,r=a,n=l;break}u=u.sibling}if(!o)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?function e(t){var n=t.tag;if(5===n||26===n||27===n||6===n)return t;for(t=t.child;null!==t;){if(null!==(n=e(t)))return n;t=t.sibling}return null}(e):null}var tx={},tz=m(tx),tP=m(!1),tN=tx;function t_(e,t){var n=e.type.contextTypes;if(!n)return tx;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function tL(e){return null!=(e=e.childContextTypes)}function tT(){h(tP),h(tz)}function tF(e,t,n){if(tz.current!==tx)throw Error(i(168));g(tz,t),g(tP,n)}function tM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,\"function\"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in t))throw Error(i(108,function(e){var t=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(t.displayName||\"Context\")+\".Consumer\";case 10:return(t._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=t.render).displayName||e.name||\"\",t.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 26:case 27:case 5:return t;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return function e(t){if(null==t)return null;if(\"function\"==typeof t)return t.$$typeof===e0?null:t.displayName||t.name||null;if(\"string\"==typeof t)return t;switch(t){case b:return\"Fragment\";case v:return\"Portal\";case w:return\"Profiler\";case k:return\"StrictMode\";case z:return\"Suspense\";case P:return\"SuspenseList\";case M:return\"Cache\"}if(\"object\"==typeof t)switch(t.$$typeof){case S:return(t._context.displayName||\"Context\")+\".Provider\";case E:return(t.displayName||\"Context\")+\".Consumer\";case x:var n=t.render;return(t=t.displayName)||(t=\"\"!==(t=n.displayName||n.name||\"\")?\"ForwardRef(\"+t+\")\":\"ForwardRef\"),t;case N:return null!==(n=t.displayName||null)?n:e(t.type)||\"Memo\";case _:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===k?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"==typeof t)return t.displayName||t.name||null;if(\"string\"==typeof t)return t}return null}(e)||\"Unknown\",l));return u({},n,r)}function tO(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tx,tN=tz.current,g(tz,e),g(tP,tP.current),!0}function tR(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=tM(e,t,tN),r.__reactInternalMemoizedMergedChildContext=e,h(tP),h(tz),g(tz,e)):h(tP),g(tP,n)}var tD=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},tA=[],tI=0,tU=null,tB=0,tV=[],tQ=0,t$=null,tj=1,tW=\"\";function tH(e,t){tA[tI++]=tB,tA[tI++]=tU,tU=e,tB=t}function tq(e,t,n){tV[tQ++]=tj,tV[tQ++]=tW,tV[tQ++]=t$,t$=e;var r=tj;e=tW;var l=32-ei(r)-1;r&=~(1<<l),n+=1;var a=32-ei(t)+l;if(30<a){var o=l-l%5;a=(r&(1<<o)-1).toString(32),r>>=o,l-=o,tj=1<<32-ei(t)+l|n<<l|r,tW=a+e}else tj=1<<a|n<<l|r,tW=e}function tK(e){null!==e.return&&(tH(e,1),tq(e,1,0))}function tY(e){for(;e===tU;)tU=tA[--tI],tA[tI]=null,tB=tA[--tI],tA[tI]=null;for(;e===t$;)t$=tV[--tQ],tV[tQ]=null,tW=tV[--tQ],tV[tQ]=null,tj=tV[--tQ],tV[tQ]=null}var tX=null,tG=null,tZ=!1,tJ=null,t0=!1;function t1(e,t){var n=iS(5,null,null,0);n.elementType=\"DELETED\",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function t2(e,t){t.flags=-4097&t.flags|2}function t3(e,t){return null!==(t=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(\"INPUT\"!==e.nodeName||\"hidden\"!==e.type))break}else if(r){if(!e[eT])switch(t){case\"meta\":if(!e.hasAttribute(\"itemprop\"))break;return e;case\"link\":if(\"stylesheet\"===(l=e.getAttribute(\"rel\"))&&e.hasAttribute(\"data-precedence\")||l!==n.rel||e.getAttribute(\"href\")!==(null==n.href?null:n.href)||e.getAttribute(\"crossorigin\")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute(\"title\")!==(null==n.title?null:n.title))break;return e;case\"style\":if(e.hasAttribute(\"data-precedence\"))break;return e;case\"script\":if(((l=e.getAttribute(\"src\"))!==(null==n.src?null:n.src)||e.getAttribute(\"type\")!==(null==n.type?null:n.type)||e.getAttribute(\"crossorigin\")!==(null==n.crossOrigin?null:n.crossOrigin))&&l&&e.hasAttribute(\"async\")&&!e.hasAttribute(\"itemprop\"))break;return e;default:return e}}else{if(\"input\"!==t||\"hidden\"!==e.type)return e;var l=null==n.name?null:\"\"+n.name;if(\"hidden\"===n.type&&e.getAttribute(\"name\")===l)return e}if(null===(e=ca(e)))break}return null}(t,e.type,e.pendingProps,t0))&&(e.stateNode=t,tX=e,tG=cl(t.firstChild),t0=!1,!0)}function t4(e,t){return null!==(t=function(e,t,n){if(\"\"===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||\"INPUT\"!==e.nodeName||\"hidden\"!==e.type)&&!n||null===(e=ca(e)))return null;return e}(t,e.pendingProps,t0))&&(e.stateNode=t,tX=e,tG=null,!0)}function t6(e,t){e:{var n=t;for(t=t0;8!==n.nodeType;)if(!t||null===(n=ca(n))){t=null;break e}t=n}return null!==t&&(n=null!==t$?{id:tj,overflow:tW}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:536870912},(n=iS(18,null,null,0)).stateNode=t,n.return=e,e.child=n,tX=e,tG=null,!0)}function t8(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function t5(){throw Error(i(418))}function t7(e){for(tX=e.return;tX;)switch(tX.tag){case 3:case 27:t0=!0;return;case 5:case 13:t0=!1;return;default:tX=tX.return}}function t9(e){if(e!==tX)return!1;if(!tZ)return t7(e),tZ=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!(\"form\"!==(t=e.type)&&\"button\"!==t)||s4(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&(n=tG)){if(t8(e))ne(),t5();else for(;n;)t1(e,n),n=ca(n)}if(t7(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(n=0,e=e.nextSibling;e;){if(8===e.nodeType){if(\"/$\"===(t=e.data)){if(0===n){tG=ca(e);break e}n--}else\"$\"!==t&&\"$!\"!==t&&\"$?\"!==t||n++}e=e.nextSibling}tG=null}}else tG=tX?ca(e.stateNode):null;return!0}function ne(){for(var e=tG;e;)e=ca(e)}function nt(){tG=tX=null,tZ=!1}function nn(e){null===tJ?tJ=[e]:tJ.push(e)}var nr=[],nl=0,na=0;function no(){for(var e=nl,t=na=nl=0;t<e;){var n=nr[t];nr[t++]=null;var r=nr[t];nr[t++]=null;var l=nr[t];nr[t++]=null;var a=nr[t];if(nr[t++]=null,null!==r&&null!==l){var o=r.pending;null===o?l.next=l:(l.next=o.next,o.next=l),r.pending=l}0!==a&&nc(n,l,a)}}function ni(e,t,n,r){nr[nl++]=e,nr[nl++]=t,nr[nl++]=n,nr[nl++]=r,na|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function nu(e,t,n,r){return ni(e,t,n,r),nf(e)}function ns(e,t){return ni(e,null,null,t),nf(e)}function nc(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var l=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(l=!0)),e=a,a=a.return;l&&null!==t&&3===e.tag&&(a=e.stateNode,l=31-ei(n),null===(e=(a=a.hiddenUpdates)[l])?a[l]=[t]:e.push(t),t.lane=536870912|n)}function nf(e){ik();for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var nd=null,np=null,nm=!1,nh=!1,ng=!1,ny=0;function nv(e){e!==np&&null===e.next&&(null===np?nd=np=e:np=np.next=e),nh=!0,nm||(nm=!0,nC(nw))}function nb(e){if(!ng&&nh){var t=null;ng=!0;do for(var n=!1,r=nd;null!==r;){if(!e||0===r.tag){var l=oS,a=ep(r,r===ok?l:0);if(0!=(3&a))try{if(n=!0,l=r,0!=(6&ob))throw Error(i(327));if(!id()){var o=il(l,a);if(0!==l.tag&&2===o){var u=a,s=em(l,u);0!==s&&(a=s,o=oJ(l,u,s))}if(1===o)throw u=oN,o5(l,0),o3(l,a,0),nv(l),u;6===o?o3(l,a,oF):(l.finishedWork=l.current.alternate,l.finishedLanes=a,is(l,oO,oU,oR,oF))}nv(l)}catch(e){null===t?t=[e]:t.push(e)}}r=r.next}while(n);if(ng=!1,null!==t){if(1<t.length){if(\"function\"==typeof AggregateError)throw AggregateError(t);for(e=1;e<t.length;e++)nC(nk.bind(null,t[e]))}throw t[0]}}}function nk(e){throw e}function nw(){nh=nm=!1;for(var e=Y(),t=null,n=nd;null!==n;){var r=n.next;if(0!==ny&&function(){var e=window.event;return e&&\"popstate\"===e.type?e!==s6&&(s6=e,!0):(s6=null,!1)}()){var l=n,a=ny;l.pendingLanes|=2,l.entangledLanes|=2,l.entanglements[1]|=a}0===(l=nS(n,e))?(n.next=null,null===t?nd=r:t.next=r,null===r&&(np=t)):(t=n,0!=(3&l)&&(nh=!0)),n=r}ny=0,nb(!1)}function nS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ei(a),i=1<<o,u=l[o];-1===u?(0==(i&n)||0!=(i&r))&&(l[o]=function(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(i,t)):u<=t&&(e.expiredLanes|=i),a&=~i}if(t=ok,n=oS,n=ep(e,e===t?n:0),r=e.callbackNode,0===n||e===t&&2===oC||null!==e.cancelPendingCommit)return null!==r&&null!==r&&H(r),e.callbackNode=null,e.callbackPriority=0;if(0!=(3&n))return null!==r&&null!==r&&H(r),e.callbackPriority=2,e.callbackNode=null,2;if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&H(r),ew(n)){case 2:n=G;break;case 8:n=Z;break;case 32:default:n=J;break;case 268435456:n=et}return n=W(n,r=oZ.bind(null,e)),e.callbackPriority=t,e.callbackNode=n,t}function nC(e){s9(function(){0!=(6&ob)?W(G,e):e()})}function nE(){return 0===ny&&(ny=eh()),ny}var nx=null,nz=0,nP=0,nN=null;function n_(){if(null!==nx&&0==--nz){null!==nN&&(nN.status=\"fulfilled\");var e=nx;nx=null,nP=0,nN=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var nL=!1;function nT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nM(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nO(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&ob)){var l=r.pending;return null===l?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=nf(e),nc(e,null,n),t}return ni(e,r,t,n),nf(e)}function nR(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194176&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eb(e,n)}}function nD(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var nA=!1;function nI(){if(nA){var e=nN;if(null!==e)throw e}}function nU(e,t,n,r){nA=!1;var l=e.updateQueue;nL=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(null!==i){l.shared.pending=null;var s=i,c=s.next;s.next=null,null===o?a=c:o.next=c,o=s;var f=e.alternate;null!==f&&(i=(f=f.updateQueue).lastBaseUpdate)!==o&&(null===i?f.firstBaseUpdate=c:i.next=c,f.lastBaseUpdate=s)}if(null!==a){var d=l.baseState;for(o=0,f=c=s=null,i=a;;){var p=-536870913&i.lane,m=p!==i.lane;if(m?(oS&p)===p:(r&p)===p){0!==p&&p===nP&&(nA=!0),null!==f&&(f=f.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var h=e,g=i;switch(p=t,g.tag){case 1:if(\"function\"==typeof(h=g.payload)){d=h.call(n,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p=\"function\"==typeof(h=g.payload)?h.call(n,d,p):h))break e;d=u({},d,p);break e;case 2:nL=!0}}null!==(p=i.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=l.callbacks)?l.callbacks=[p]:m.push(p))}else m={lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(c=f=m,s=d):f=f.next=m,o|=p;if(null===(i=i.next)){if(null===(i=l.shared.pending))break;i=(m=i).next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}null===f&&(s=d),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=f,null===a&&(l.shared.lanes=0),o_|=o,e.lanes=o,e.memoizedState=d}}function nB(e,t){if(\"function\"!=typeof e)throw Error(i(191,e));e.call(t)}function nV(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)nB(n[e],t)}function nQ(e,t){if(tD(e,t))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!eS.call(t,l)||!tD(e[l],t[l]))return!1}return!0}var n$=Error(i(460)),nj=Error(i(474)),nW={then:function(){}};function nH(e){return\"fulfilled\"===(e=e.status)||\"rejected\"===e}function nq(){}function nK(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(nq,nq),t=n),t.status){case\"fulfilled\":return t.value;case\"rejected\":if((e=t.reason)===n$)throw Error(i(483));throw e;default:if(\"string\"==typeof t.status)t.then(nq,nq);else{if(null!==(e=ok)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status=\"pending\",e.then(function(e){if(\"pending\"===t.status){var n=t;n.status=\"fulfilled\",n.value=e}},function(e){if(\"pending\"===t.status){var n=t;n.status=\"rejected\",n.reason=e}})}switch(t.status){case\"fulfilled\":return t.value;case\"rejected\":if((e=t.reason)===n$)throw Error(i(483));throw e}throw nY=t,n$}}var nY=null;function nX(){if(null===nY)throw Error(i(459));var e=nY;return nY=null,e}var nG=null,nZ=0;function nJ(e){var t=nZ;return nZ+=1,null===nG&&(nG=[]),nK(nG,e,t)}function n0(e,t,n,r){var l=r.ref;e=null!==l&&\"function\"!=typeof l&&\"object\"!=typeof l?function(e,t,n,r){function l(e){var t=o.refs;null===e?delete t[a]:t[a]=e}if(!(e=n._owner)){if(\"string\"!=typeof r)throw Error(i(284));throw Error(i(290,r))}if(1!==e.tag)throw Error(i(309));var a=\"\"+r,o=e.stateNode;if(!o)throw Error(i(147,a));return null!==t&&null!==t.ref&&\"function\"==typeof t.ref&&t.ref._stringRef===a?t.ref:(l._stringRef=a,l)}(e,t,r,l):l,n.ref=e}function n1(e,t){throw Error(i(31,\"[object Object]\"===(e=Object.prototype.toString.call(t))?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function n2(e){return(0,e._init)(e._payload)}function n3(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=iE(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function u(e,t,n,r){return null===t||6!==t.tag?(t=i_(n,e.mode,r)).return=e:(t=l(t,n)).return=e,t}function s(e,t,n,r){var a=n.type;return a===b?f(e,t,n.props.children,r,n.key):(r=null!==t&&(t.elementType===a||\"object\"==typeof a&&null!==a&&a.$$typeof===_&&n2(a)===t.type)?l(t,n.props):iz(n.type,n.key,n.props,null,e.mode,r),n0(e,t,r,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=iL(n,e.mode,r)).return=e:(t=l(t,n.children||[])).return=e,t}function f(e,t,n,r,a){return null===t||7!==t.tag?(t=iP(n,e.mode,r,a)).return=e:(t=l(t,n)).return=e,t}function d(e,t,n){if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return(t=i_(\"\"+t,e.mode,n)).return=e,t;if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case y:return n=iz(t.type,t.key,t.props,null,e.mode,n),n0(e,null,n,t),n.return=e,n;case v:return(t=iL(t,e.mode,n)).return=e,t;case _:return d(e,(0,t._init)(t._payload),n)}if(tt(t)||R(t))return(t=iP(t,e.mode,n,null)).return=e,t;if(\"function\"==typeof t.then)return d(e,nJ(t),n);if(t.$$typeof===E)return d(e,ai(e,t,n),n);n1(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return null!==l?null:u(e,t,\"\"+n,r);if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===l?s(e,t,n,r):null;case v:return n.key===l?c(e,t,n,r):null;case _:return p(e,t,(l=n._init)(n._payload),r)}if(tt(n)||R(n))return null!==l?null:f(e,t,n,r,null);if(\"function\"==typeof n.then)return p(e,t,nJ(n),r);if(n.$$typeof===E)return p(e,t,ai(e,n,r),r);n1(e,n)}return null}function m(e,t,n,r,l){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r)return u(t,e=e.get(n)||null,\"\"+r,l);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case y:return s(t,e=e.get(null===r.key?n:r.key)||null,r,l);case v:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l);case _:return m(e,t,n,(0,r._init)(r._payload),l)}if(tt(r)||R(r))return f(t,e=e.get(n)||null,r,l,null);if(\"function\"==typeof r.then)return m(e,t,n,nJ(r),l);if(r.$$typeof===E)return m(e,t,n,ai(t,r,l),l);n1(t,r)}return null}return function(u,s,c,f){return nZ=0,u=function u(s,c,f,h){if(\"object\"==typeof f&&null!==f&&f.type===b&&null===f.key&&(f=f.props.children),\"object\"==typeof f&&null!==f){switch(f.$$typeof){case y:e:{for(var g=f.key,k=c;null!==k;){if(k.key===g){if((g=f.type)===b){if(7===k.tag){n(s,k.sibling),(c=l(k,f.props.children)).return=s,s=c;break e}}else if(k.elementType===g||\"object\"==typeof g&&null!==g&&g.$$typeof===_&&n2(g)===k.type){n(s,k.sibling),c=l(k,f.props),n0(s,k,c,f),c.return=s,s=c;break e}n(s,k);break}t(s,k),k=k.sibling}f.type===b?((c=iP(f.props.children,s.mode,h,f.key)).return=s,s=c):(h=iz(f.type,f.key,f.props,null,s.mode,h),n0(s,c,h,f),h.return=s,s=h)}return o(s);case v:e:{for(k=f.key;null!==c;){if(c.key===k){if(4===c.tag&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(s,c.sibling),(c=l(c,f.children||[])).return=s,s=c;break e}n(s,c);break}t(s,c),c=c.sibling}(c=iL(f,s.mode,h)).return=s,s=c}return o(s);case _:return u(s,c,(k=f._init)(f._payload),h)}if(tt(f))return function(l,o,i,u){for(var s=null,c=null,f=o,h=o=0,g=null;null!==f&&h<i.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tZ&&tH(l,h),s;if(null===f){for(;h<i.length;h++)null!==(f=d(l,i[h],u))&&(o=a(f,o,h),null===c?s=f:c.sibling=f,c=f);return tZ&&tH(l,h),s}for(f=r(l,f);h<i.length;h++)null!==(g=m(f,l,h,i[h],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),o=a(g,o,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(l,e)}),tZ&&tH(l,h),s}(s,c,f,h);if(R(f))return function(l,o,u,s){var c=R(u);if(\"function\"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,h=o,g=o=0,y=null,v=u.next();null!==h&&!v.done;g++,v=u.next()){h.index>g?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tZ&&tH(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tZ&&tH(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tZ&&tH(l,g),c}(s,c,f,h);if(\"function\"==typeof f.then)return u(s,c,nJ(f),h);if(f.$$typeof===E)return u(s,c,ai(s,f,h),h);n1(s,f)}return\"string\"==typeof f&&\"\"!==f||\"number\"==typeof f?(f=\"\"+f,null!==c&&6===c.tag?(n(s,c.sibling),(c=l(c,f)).return=s):(n(s,c),(c=i_(f,s.mode,h)).return=s),o(s=c)):n(s,c)}(u,s,c,f),nG=null,u}}var n4=n3(!0),n6=n3(!1),n8=m(null),n5=m(0);function n7(e,t){g(n5,e=oz),g(n8,t),oz=e|t.baseLanes}function n9(){g(n5,oz),g(n8,n8.current)}function re(){oz=n5.current,h(n8),h(n5)}var rt=m(null),rn=null;function rr(e){var t=e.alternate;g(ri,1&ri.current),g(rt,e),null===rn&&(null===t||null!==n8.current?rn=e:null!==t.memoizedState&&(rn=e))}function rl(e){if(22===e.tag){if(g(ri,ri.current),g(rt,e),null===rn){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rn=e)}}else ra(e)}function ra(){g(ri,ri.current),g(rt,rt.current)}function ro(e){h(rt),rn===e&&(rn=null),h(ri)}var ri=m(0);function ru(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||\"$?\"===n.data||\"$!\"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=s.ReactCurrentDispatcher,rc=s.ReactCurrentBatchConfig,rf=0,rd=null,rp=null,rm=null,rh=!1,rg=!1,ry=!1,rv=0,rb=0,rk=null,rw=0;function rS(){throw Error(i(321))}function rC(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tD(e[n],t[n]))return!1;return!0}function rE(e,t,n,r,l,a){return rf=a,rd=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rs.current=null===e||null===e.memoizedState?lg:ly,ry=!1,e=n(r,l),ry=!1,rg&&(e=rz(t,n,r,l)),rx(),e}function rx(){rs.current=lh;var e=null!==rp&&null!==rp.next;if(rf=0,rm=rp=rd=null,rh=!1,rb=0,rk=null,e)throw Error(i(300))}function rz(e,t,n,r){rd=e;var l=0;do{if(rg&&(rk=null),rb=0,rg=!1,25<=l)throw Error(i(301));l+=1,rm=rp=null,e.updateQueue=null,rs.current=lv;var a=t(n,r)}while(rg);return a}function rP(){var e=rs.current.useState()[0];return\"function\"==typeof e.then?rM(e):e}function rN(){var e=0!==rv;return rv=0,e}function r_(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rL(e){if(rh){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}rh=!1}rf=0,rm=rp=rd=null,rg=!1,rb=rv=0,rk=null}function rT(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rm?rd.memoizedState=rm=e:rm=rm.next=e,rm}function rF(){if(null===rp){var e=rd.alternate;e=null!==e?e.memoizedState:null}else e=rp.next;var t=null===rm?rd.memoizedState:rm.next;if(null!==t)rm=t,rp=e;else{if(null===e){if(null===rd.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(rp=e).memoizedState,baseState:rp.baseState,baseQueue:rp.baseQueue,queue:rp.queue,next:null},null===rm?rd.memoizedState=rm=e:rm=rm.next=e}return rm}function rM(e){var t=rb;return rb+=1,null===rk&&(rk=[]),e=nK(rk,e,t),null===rd.alternate&&(null===rm?null===rd.memoizedState:null===rm.next)&&(rs.current=lg),e}function rO(e){if(null!==e&&\"object\"==typeof e){if(\"function\"==typeof e.then)return rM(e);if(e.$$typeof===E)return ao(e)}throw Error(i(438,String(e)))}function rR(e,t){return\"function\"==typeof t?t(e):t}function rD(e){return rA(rF(),rp,e)}function rA(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var l=e.baseQueue,a=r.pending;if(null!==a){if(null!==l){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,r.pending=null}if(a=e.baseState,null===l)e.memoizedState=a;else{t=l.next;var u=o=null,s=null,c=t,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(oS&d)===d:(rf&d)===d){var p=c.revertLane;if(0===p)null!==s&&(s=s.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===nP&&(f=!0);else if((rf&p)===p){c=c.next,p===nP&&(f=!0);continue}else d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=d,o=a):s=s.next=d,rd.lanes|=p,o_|=p;d=c.action,ry&&n(a,d),a=c.hasEagerState?c.eagerState:n(a,d)}else p={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=p,o=a):s=s.next=p,rd.lanes|=d,o_|=d;c=c.next}while(null!==c&&c!==t);if(null===s?o=a:s.next=u,!tD(a,e.memoizedState)&&(lR=!0,f&&null!==(n=nN)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=s,r.lastRenderedState=a}return null===l&&(r.lanes=0),[e.memoizedState,r.dispatch]}function rI(e){var t=rF(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tD(a,t.memoizedState)||(lR=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function rU(e,t,n){var r=rd,l=rF(),a=tZ;if(a){if(void 0===n)throw Error(i(407));n=n()}else n=t();var o=!tD((rp||l).memoizedState,n);if(o&&(l.memoizedState=n,lR=!0),l=l.queue,r4(rQ.bind(null,r,l,e),[e]),l.getSnapshot!==t||o||null!==rm&&1&rm.memoizedState.tag){if(r.flags|=2048,rJ(9,rV.bind(null,r,l,n,t),{destroy:void 0},null),null===ok)throw Error(i(349));a||0!=(60&rf)||rB(r,t,n)}return n}function rB(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rd.updateQueue)?(t=iG(),rd.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function rV(e,t,n,r){t.value=n,t.getSnapshot=r,r$(t)&&rj(e)}function rQ(e,t,n){return n(function(){r$(t)&&rj(e)})}function r$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tD(e,n)}catch(e){return!0}}function rj(e){var t=ns(e,2);null!==t&&oG(t,e,2)}function rW(e){var t=rT();if(\"function\"==typeof e){var n=e;e=n(),ry&&(eo(!0),n(),eo(!1))}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rR,lastRenderedState:e},t}function rH(e,t,n,r){return e.baseState=n,rA(e,rp,\"function\"==typeof r?r:rR)}function rq(e,t,n,r){if(ld(e))throw Error(i(485));null===(e=t.pending)?((e={payload:r,next:null}).next=t.pending=e,rK(t,n,r)):t.pending=e.next={payload:r,next:e.next}}function rK(e,t,n){var r=e.action,l=e.state,a=rc.transition,o={_callbacks:new Set};rc.transition=o;try{var i=r(l,n);null!==i&&\"object\"==typeof i&&\"function\"==typeof i.then?(av(o,i),i.then(function(n){e.state=n,rY(e,t)},function(){return rY(e,t)}),t(i)):(t(i),e.state=i,rY(e,t))}catch(n){t({then:function(){},status:\"rejected\",reason:n}),rY(e,t)}finally{rc.transition=a}}function rY(e,t){var n=e.pending;if(null!==n){var r=n.next;r===n?e.pending=null:(r=r.next,n.next=r,rK(e,t,r.payload))}}function rX(e,t){return t}function rG(e,t,n){e=\"object\"==typeof(e=rA(e,t,rX)[0])&&null!==e&&\"function\"==typeof e.then?rM(e):e;var r=(t=rF()).queue,l=r.dispatch;return n!==t.memoizedState&&(rd.flags|=2048,rJ(9,rZ.bind(null,r,n),{destroy:void 0},null)),[e,l]}function rZ(e,t){e.action=t}function rJ(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=rd.updateQueue)?(t=iG(),rd.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function r0(){return rF().memoizedState}function r1(e,t,n,r){var l=rT();rd.flags|=e,l.memoizedState=rJ(1|t,n,{destroy:void 0},void 0===r?null:r)}function r2(e,t,n,r){var l=rF();r=void 0===r?null:r;var a=l.memoizedState.inst;null!==rp&&null!==r&&rC(r,rp.memoizedState.deps)?l.memoizedState=rJ(t,n,a,r):(rd.flags|=e,l.memoizedState=rJ(1|t,n,a,r))}function r3(e,t){r1(8390656,8,e,t)}function r4(e,t){r2(2048,8,e,t)}function r6(e,t){return r2(4,2,e,t)}function r8(e,t){return r2(4,4,e,t)}function r5(e,t){return\"function\"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function r7(e,t,n){n=null!=n?n.concat([e]):null,r2(4,4,r5.bind(null,t,e),n)}function r9(){}function le(e,t){var n=rF();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&rC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lt(e,t){var n=rF();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&rC(t,r[1])?r[0]:(r=e(),ry&&(eo(!0),e(),eo(!1)),n.memoizedState=[r,t],r)}function ln(e,t,n){return tD(n,t)?n:null!==n8.current?(e.memoizedState=n,tD(n,t)||(lR=!0),n):0==(42&rf)?(lR=!0,e.memoizedState=n):(0===oF&&(oF=0==(536870912&oS)||tZ?eh():536870912),null!==(e=rt.current)&&(e.flags|=32),e=oF,rd.lanes|=e,o_|=e,t)}function lr(e,t,n,r,l){var a=ek;ek=0!==a&&8>a?a:8;var o=rc.transition,i={_callbacks:new Set};rc.transition=i,lf(e,!1,t,n);try{var u=l();if(null!==u&&\"object\"==typeof u&&\"function\"==typeof u.then){av(i,u);var s,c,f=(s=[],c={status:\"pending\",value:null,reason:null,then:function(e){s.push(e)}},u.then(function(){c.status=\"fulfilled\",c.value=r;for(var e=0;e<s.length;e++)(0,s[e])(r)},function(e){for(c.status=\"rejected\",c.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),c);lc(e,t,f)}else lc(e,t,r)}catch(n){lc(e,t,{then:function(){},status:\"rejected\",reason:n})}finally{ek=a,rc.transition=o}}function ll(e,t,n,r){if(5!==e.tag)throw Error(i(476));if(null===e.memoizedState){var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rR,lastRenderedState:f},a=l;l={memoizedState:f,baseState:f,baseQueue:null,queue:l,next:null},e.memoizedState=l;var o=e.alternate;null!==o&&(o.memoizedState=l)}else a=e.memoizedState.queue;lr(e,a,t,f,function(){return n(r)})}function la(){var e=ao(B);return null!==e?e:f}function lo(){return rF().memoizedState}function li(){return rF().memoizedState}function lu(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=oX(t),r=nO(t,e=nM(n),n);null!==r&&(oG(r,t,n),nR(r,t,n)),t={cache:ap()},e.payload=t;return}t=t.return}}function ls(e,t,n){var r=oX(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ld(e)?lp(t,n):null!==(n=nu(e,t,n,r))&&(oG(n,e,r),lm(n,t,r))}function lc(e,t,n){var r=oX(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ld(e))lp(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tD(i,o)){ni(e,t,l,0),null===ok&&no();return}}catch(e){}finally{}null!==(n=nu(e,t,l,r))&&(oG(n,e,r),lm(n,t,r))}}function lf(e,t,n,r){if(ag(),r={lane:2,revertLane:nE(),action:r,hasEagerState:!1,eagerState:null,next:null},ld(e)){if(t)throw Error(i(479))}else null!==(t=nu(e,n,r,2))&&oG(t,e,2)}function ld(e){var t=e.alternate;return e===rd||null!==t&&t===rd}function lp(e,t){rg=rh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if(0!=(4194176&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eb(e,n)}}iG=function(){return{lastEffect:null,events:null,stores:null}};var lh={readContext:ao,use:rO,useCallback:rS,useContext:rS,useEffect:rS,useImperativeHandle:rS,useInsertionEffect:rS,useLayoutEffect:rS,useMemo:rS,useReducer:rS,useRef:rS,useState:rS,useDebugValue:rS,useDeferredValue:rS,useTransition:rS,useSyncExternalStore:rS,useId:rS};lh.useCacheRefresh=rS,lh.useHostTransitionStatus=rS,lh.useFormState=rS,lh.useOptimistic=rS;var lg={readContext:ao,use:rO,useCallback:function(e,t){return rT().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:r3,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,r1(4194308,4,r5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return r1(4194308,4,e,t)},useInsertionEffect:function(e,t){r1(4,2,e,t)},useMemo:function(e,t){var n=rT();t=void 0===t?null:t;var r=e();return ry&&(eo(!0),e(),eo(!1)),n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rT();if(void 0!==n){var l=n(t);ry&&(eo(!0),n(t),eo(!1))}else l=t;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=ls.bind(null,rd,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rT().memoizedState=e},useState:function(e){var t=(e=rW(e)).queue,n=lc.bind(null,rd,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r9,useDeferredValue:function(e){return rT().memoizedState=e,e},useTransition:function(){var e=rW(!1);return e=lr.bind(null,rd,e.queue,!0,!1),rT().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=rd,l=rT();if(tZ){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===ok)throw Error(i(349));0!=(60&oS)||rB(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,r3(rQ.bind(null,r,a,e),[e]),r.flags|=2048,rJ(9,rV.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rT(),t=ok.identifierPrefix;if(tZ){var n=tW,r=tj;t=\":\"+t+\"R\"+(n=(r&~(1<<32-ei(r)-1)).toString(32)+n),0<(n=rv++)&&(t+=\"H\"+n.toString(32)),t+=\":\"}else t=\":\"+t+\"r\"+(n=rw++).toString(32)+\":\";return e.memoizedState=t},useCacheRefresh:function(){return rT().memoizedState=lu.bind(null,rd)}};lg.useHostTransitionStatus=la,lg.useFormState=function(e,t){if(tZ){var n=ok.formState;if(null!==n){e:{if(tZ){if(tG){t:{for(var r=tG,l=t0;8!==r.nodeType;)if(!l||null===(r=ca(r))){r=null;break t}r=\"F!\"===(l=r.data)||\"F\"===l?r:null}if(r){tG=ca(r),r=\"F!\"===r.data;break e}}t5()}r=!1}r&&(t=n[0])}}return(n=rT()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rX,lastRenderedState:t},n.queue=r,n=lc.bind(null,rd,r),r.dispatch=n,r=rT(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,n=rq.bind(null,rd,l,n),l.dispatch=n,r.memoizedState=e,[t,n]},lg.useOptimistic=function(e){var t=rT();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lf.bind(null,rd,!0,n),n.dispatch=t,[e,t]};var ly={readContext:ao,use:rO,useCallback:le,useContext:ao,useEffect:r4,useImperativeHandle:r7,useInsertionEffect:r6,useLayoutEffect:r8,useMemo:lt,useReducer:rD,useRef:r0,useState:function(){return rD(rR)},useDebugValue:r9,useDeferredValue:function(e){return ln(rF(),rp.memoizedState,e)},useTransition:function(){var e=rD(rR)[0],t=rF().memoizedState;return[\"boolean\"==typeof e?e:rM(e),t]},useSyncExternalStore:rU,useId:lo};ly.useCacheRefresh=li,ly.useHostTransitionStatus=la,ly.useFormState=function(e){return rG(rF(),rp,e)},ly.useOptimistic=function(e,t){return rH(rF(),rp,e,t)};var lv={readContext:ao,use:rO,useCallback:le,useContext:ao,useEffect:r4,useImperativeHandle:r7,useInsertionEffect:r6,useLayoutEffect:r8,useMemo:lt,useReducer:rI,useRef:r0,useState:function(){return rI(rR)},useDebugValue:r9,useDeferredValue:function(e){var t=rF();return null===rp?(t.memoizedState=e,e):ln(t,rp.memoizedState,e)},useTransition:function(){var e=rI(rR)[0],t=rF().memoizedState;return[\"boolean\"==typeof e?e:rM(e),t]},useSyncExternalStore:rU,useId:lo};function lb(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function lk(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}lv.useCacheRefresh=li,lv.useHostTransitionStatus=la,lv.useFormState=function(e){var t=rF(),n=rp;if(null!==n)return rG(t,n,e);t=t.memoizedState;var r=(n=rF()).queue.dispatch;return n.memoizedState=e,[t,r]},lv.useOptimistic=function(e,t){var n=rF();return null!==rp?rH(n,rp,e,t):(n.baseState=e,[e,n.queue.dispatch])};var lw={isMounted:function(e){return!!(e=e._reactInternals)&&tw(e)===e},enqueueSetState:function(e,t,n){var r=oX(e=e._reactInternals),l=nM(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=nO(e,l,r))&&(oG(t,e,r),nR(t,e,r))},enqueueReplaceState:function(e,t,n){var r=oX(e=e._reactInternals),l=nM(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=nO(e,l,r))&&(oG(t,e,r),nR(t,e,r))},enqueueForceUpdate:function(e,t){var n=oX(e=e._reactInternals),r=nM(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=nO(e,r,n))&&(oG(t,e,n),nR(t,e,n))}};function lS(e,t,n,r,l,a,o){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nQ(n,r)||!nQ(l,a)}function lC(e,t,n){var r=!1,l=tx,a=t.contextType;return\"object\"==typeof a&&null!==a?a=ao(a):(l=tL(t)?tN:tz.current,a=(r=null!=(r=t.contextTypes))?t_(e,l):tx),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=lw,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function lE(e,t,n,r){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lw.enqueueReplaceState(t,t.state,null)}function lx(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},nT(e);var a=t.contextType;\"object\"==typeof a&&null!==a?l.context=ao(a):(a=tL(t)?tN:tz.current,l.context=t_(e,a)),l.state=e.memoizedState,\"function\"==typeof(a=t.getDerivedStateFromProps)&&(lk(e,t,a,n),l.state=e.memoizedState),\"function\"==typeof t.getDerivedStateFromProps||\"function\"==typeof l.getSnapshotBeforeUpdate||\"function\"!=typeof l.UNSAFE_componentWillMount&&\"function\"!=typeof l.componentWillMount||(t=l.state,\"function\"==typeof l.componentWillMount&&l.componentWillMount(),\"function\"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&lw.enqueueReplaceState(l,l.state,null),nU(e,n,l,r),nI(),l.state=e.memoizedState),\"function\"==typeof l.componentDidMount&&(e.flags|=4194308)}var lz=new WeakMap;function lP(e,t){if(\"object\"==typeof e&&null!==e){var n=lz.get(e);\"string\"!=typeof n&&(n=eJ(t),lz.set(e,n))}else n=eJ(t);return{value:e,source:t,stack:n,digest:null}}function lN(e,t,n){return\"string\"==typeof n&&lz.set(e,n),{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function l_(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lL(e,t,n){(n=nM(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oB||(oB=!0,oV=r),l_(e,t)},n}function lT(e,t,n){(n=nM(n)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){l_(e,t)}}var a=e.stateNode;return null!==a&&\"function\"==typeof a.componentDidCatch&&(n.callback=function(){l_(e,t),\"function\"!=typeof r&&(null===oQ?oQ=new Set([this]):oQ.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:\"\"})}),n}function lF(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nM(2)).tag=2,nO(n,t,2))),n.lanes|=2):(e.flags|=65536,e.lanes=l),e}var lM=s.ReactCurrentOwner,lO=Error(i(461)),lR=!1;function lD(e,t,n,r){t.child=null===e?n6(t,null,n,r):n4(t,e.child,n,r)}function lA(e,t,n,r,l){n=n.render;var a=t.ref;return(aa(t,l),r=rE(e,t,n,r,a,l),n=rN(),null===e||lR)?(tZ&&n&&tK(t),t.flags|=1,lD(e,t,r,l),t.child):(r_(e,t,l),l6(e,t,l))}function lI(e,t,n,r,l){if(null===e){var a=n.type;return\"function\"!=typeof a||iC(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=iz(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,lU(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nQ)(o,r)&&e.ref===t.ref)return l6(e,t,l)}return t.flags|=1,(e=iE(a,r)).ref=t.ref,e.return=t,t.child=e}function lU(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nQ(a,r)&&e.ref===t.ref){if(lR=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,l6(e,t,l);0!=(131072&e.flags)&&(lR=!0)}}return l$(e,t,n,r,l)}function lB(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lQ(e,t),\"hidden\"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lV(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&aw(t,null),n9(),rl(t);else{if(0==(536870912&n))return t.lanes=t.childLanes=536870912,lV(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&aw(t,null!==o?o.cachePool:null),null!==o?n7(t,o):n9(),rl(t)}}else null!==o?(aw(t,o.cachePool),n7(t,o),ra(t),t.memoizedState=null):(null!==e&&aw(t,null),n9(),ra(t));return lD(e,t,l,n),t.child}function lV(e,t,n){var r=ak();return r=null===r?null:{parent:ad._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&aw(t,null),n9(),rl(t),null}function lQ(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function l$(e,t,n,r,l){var a=tL(n)?tN:tz.current;return(a=t_(t,a),aa(t,l),n=rE(e,t,n,r,a,l),r=rN(),null===e||lR)?(tZ&&r&&tK(t),t.flags|=1,lD(e,t,n,l),t.child):(r_(e,t,l),l6(e,t,l))}function lj(e,t,n,r,l,a){return(aa(t,a),n=rz(t,r,n,l),rx(),r=rN(),null===e||lR)?(tZ&&r&&tK(t),t.flags|=1,lD(e,t,n,a),t.child):(r_(e,t,a),l6(e,t,a))}function lW(e,t,n,r,l){if(tL(n)){var a=!0;tO(t)}else a=!1;if(aa(t,l),null===t.stateNode)l4(e,t),lC(t,n,r),lx(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s=\"object\"==typeof s&&null!==s?ao(s):t_(t,s=tL(n)?tN:tz.current);var c=n.getDerivedStateFromProps,f=\"function\"==typeof c||\"function\"==typeof o.getSnapshotBeforeUpdate;f||\"function\"!=typeof o.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&lE(t,o,r,s),nL=!1;var d=t.memoizedState;o.state=d,nU(t,r,o,l),nI(),u=t.memoizedState,i!==r||d!==u||tP.current||nL?(\"function\"==typeof c&&(lk(t,n,c,r),u=t.memoizedState),(i=nL||lS(t,n,i,r,d,u,s))?(f||\"function\"!=typeof o.UNSAFE_componentWillMount&&\"function\"!=typeof o.componentWillMount||(\"function\"==typeof o.componentWillMount&&o.componentWillMount(),\"function\"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),\"function\"==typeof o.componentDidMount&&(t.flags|=4194308)):(\"function\"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):(\"function\"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,nF(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:lb(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u=\"object\"==typeof(u=n.contextType)&&null!==u?ao(u):t_(t,u=tL(n)?tN:tz.current);var p=n.getDerivedStateFromProps;(c=\"function\"==typeof p||\"function\"==typeof o.getSnapshotBeforeUpdate)||\"function\"!=typeof o.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&lE(t,o,r,u),nL=!1,d=t.memoizedState,o.state=d,nU(t,r,o,l),nI();var m=t.memoizedState;i!==f||d!==m||tP.current||nL?(\"function\"==typeof p&&(lk(t,n,p,r),m=t.memoizedState),(s=nL||lS(t,n,s,r,d,m,u)||!1)?(c||\"function\"!=typeof o.UNSAFE_componentWillUpdate&&\"function\"!=typeof o.componentWillUpdate||(\"function\"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),\"function\"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),\"function\"==typeof o.componentDidUpdate&&(t.flags|=4),\"function\"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):(\"function\"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),\"function\"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):(\"function\"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),\"function\"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return lH(e,t,n,r,a,l)}function lH(e,t,n,r,l,a){lQ(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tR(t,n,!1),l6(e,t,a);r=t.stateNode,lM.current=t;var i=o&&\"function\"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=n4(t,e.child,null,a),t.child=n4(t,null,i,a)):lD(e,t,i,a),t.memoizedState=r.state,l&&tR(t,n,!0),t.child}function lq(e){var t=e.stateNode;t.pendingContext?tF(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tF(e,t.context,!1),V(e,t.containerInfo)}function lK(e,t,n,r,l){return nt(),nn(l),t.flags|=256,lD(e,t,n,r),t.child}var lY={dehydrated:null,treeContext:null,retryLane:0};function lX(e){return{baseLanes:e,cachePool:aS()}}function lG(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=oF),e}function lZ(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&ri.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(tZ){if(a?rr(t):ra(t),tZ){var u=o=tG;if(u){if(!t6(t,u)){t8(t)&&t5(),tG=ca(u);var s=tX;tG&&t6(t,tG)?t1(s,u):(t2(tX,t),tZ=!1,tX=t,tG=o)}}else t8(t)&&t5(),t2(tX,t),tZ=!1,tX=t,tG=o}if(null!==(o=t.memoizedState)&&null!==(o=o.dehydrated))return 0==(1&t.mode)?t.lanes=2:\"$!\"===o.data?t.lanes=16:t.lanes=536870912,null;ro(t)}return(o=l.children,l=l.fallback,a)?(ra(t),a=t.mode,u=t.child,o={mode:\"hidden\",children:o},0==(1&a)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=iN(o,a,0,null),l=iP(l,a,n,null),u.return=t,l.return=t,u.sibling=l,t.child=u,(a=t.child).memoizedState=lX(n),a.childLanes=lG(e,r,n),t.memoizedState=lY,l):(rr(t),lJ(t,o))}if(null!==(u=e.memoizedState)&&null!==(s=u.dehydrated))return function(e,t,n,r,l,a,o,u){if(n)return 256&t.flags?(rr(t),t.flags&=-257,l0(e,t,u,a=lN(Error(i(422))))):null!==t.memoizedState?(ra(t),t.child=e.child,t.flags|=128,null):(ra(t),a=l.fallback,o=t.mode,l=iN({mode:\"visible\",children:l.children},o,0,null),a=iP(a,o,u,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,0!=(1&t.mode)&&n4(t,e.child,null,u),(o=t.child).memoizedState=lX(u),o.childLanes=lG(e,r,u),t.memoizedState=lY,a);if(rr(t),0==(1&t.mode))return l0(e,t,u,null);if(\"$!\"===a.data){if(a=a.nextSibling&&a.nextSibling.dataset)var s=a.dgst;return a=s,(r=Error(i(419))).digest=a,l0(e,t,u,a=lN(r,a,void 0))}if(r=0!=(u&e.childLanes),lR||r){if(null!==(r=ok)){if(0!=(42&(l=u&-u)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==o.retryLane)throw o.retryLane=l,ns(e,l),oG(r,e,l),lO}return\"$?\"!==a.data&&ir(),l0(e,t,u,null)}return\"$?\"===a.data?(t.flags|=128,t.child=e.child,t=iv.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,tG=cl(a.nextSibling),tX=t,tZ=!0,tJ=null,t0=!1,null!==e&&(tV[tQ++]=tj,tV[tQ++]=tW,tV[tQ++]=t$,tj=e.id,tW=e.overflow,t$=t),t=lJ(t,l.children),t.flags|=4096,t)}(e,t,o,r,l,s,u,n);if(a){ra(t),a=l.fallback,o=t.mode,s=(u=e.child).sibling;var c={mode:\"hidden\",children:l.children};return 0==(1&o)&&t.child!==u?((l=t.child).childLanes=0,l.pendingProps=c,t.deletions=null):(l=iE(u,c)).subtreeFlags=31457280&u.subtreeFlags,null!==s?a=iE(s,a):(a=iP(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lX(n):(null!==(u=o.cachePool)?(s=ad._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=aS(),o={baseLanes:o.baseLanes|n,cachePool:u}),a.memoizedState=o,a.childLanes=lG(e,r,n),t.memoizedState=lY,l}return rr(t),e=(r=e.child).sibling,r=iE(r,{mode:\"visible\",children:l.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lJ(e,t){return(t=iN({mode:\"visible\",children:t},e.mode,0,null)).return=e,e.child=t}function l0(e,t,n,r){return null!==r&&nn(r),n4(t,e.child,null,n),e=lJ(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function l1(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ar(e.return,t,n)}function l2(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function l3(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(lD(e,t,r.children,n),0!=(2&(r=ri.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&l1(e,n,t);else if(19===e.tag)l1(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(g(ri,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case\"forwards\":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===ru(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),l2(t,!1,l,n,a);break;case\"backwards\":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===ru(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}l2(t,!0,n,null,a);break;case\"together\":l2(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function l4(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function l6(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),o_|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=iE(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=iE(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var l8=m(null),l5=null,l7=null,l9=null;function ae(){l9=l7=l5=null}function at(e,t,n){g(l8,t._currentValue),t._currentValue=n}function an(e){e._currentValue=l8.current,h(l8)}function ar(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function al(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=nM(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),ar(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),ar(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function aa(e,t){l5=e,l9=l7=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lR=!0),e.firstContext=null)}function ao(e){return au(l5,e)}function ai(e,t,n){return null===l5&&aa(e,n),au(e,t)}function au(e,t){var n=t._currentValue;if(l9!==t){if(t={context:t,memoizedValue:n,next:null},null===l7){if(null===e)throw Error(i(308));l7=t,e.dependencies={lanes:0,firstContext:t}}else l7=l7.next=t}return n}var as=\"undefined\"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ac=a.unstable_scheduleCallback,af=a.unstable_NormalPriority,ad={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ap(){return{controller:new as,data:new Map,refCount:0}}function am(e){e.refCount--,0===e.refCount&&ac(af,function(){e.controller.abort()})}var ah=s.ReactCurrentBatchConfig;function ag(){var e=ah.transition;return null!==e&&e._callbacks.add(ay),e}function ay(e,t){!function(e,t){if(null===nx){var n=nx=[];nz=0,nP=nE(),nN={status:\"pending\",value:void 0,then:function(e){n.push(e)}}}nz++,t.then(n_,n_)}(0,t)}function av(e,t){e._callbacks.forEach(function(n){return n(e,t)})}var ab=m(null);function ak(){var e=ab.current;return null!==e?e:ok.pooledCache}function aw(e,t){null===t?g(ab,ab.current):g(ab,t.pool)}function aS(){var e=ak();return null===e?null:{parent:ad._currentValue,pool:e}}function aC(e){e.flags|=4}function aE(e,t){if(\"stylesheet\"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&oS)&&!(t=\"stylesheet\"!==t.type||0!=(3&t.state.loading))){if(o9())e.flags|=8192;else throw nY=nW,nj}}function ax(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?eg():536870912,e.lanes|=t)}function az(e,t){if(!tZ)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function aP(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aN(e,t){switch(tY(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tT();break;case 3:an(ad),Q(),h(tP),h(tz);break;case 26:case 27:case 5:j(t);break;case 4:Q();break;case 13:ro(t);break;case 19:h(ri);break;case 10:an(t.type._context);break;case 22:case 23:ro(t),re(),null!==e&&h(ab);break;case 24:an(ad)}}function a_(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var aL=!1,aT=null,aF=!1,aM=null,aO={onError:function(e){aL=!0,aT=e}};function aR(e,t,n,r,l,a,o,i,u){aL=!1,aT=null,a_.apply(aO,arguments)}var aD=!1,aA=!1,aI=\"function\"==typeof WeakSet?WeakSet:Set,aU=null;function aB(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}\"function\"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){im(e,t,n)}}function aV(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if(\"function\"==typeof r)try{r()}catch(n){im(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if(\"function\"==typeof n)try{n(null)}catch(n){im(e,t,n)}else n.current=null}}function aQ(e,t,n){try{n()}catch(n){im(e,t,n)}}var a$=!1;function aj(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,aQ(t,n,o))}l=l.next}while(l!==r)}}function aW(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function aH(e,t){try{aW(t,e)}catch(t){im(e,e.return,t)}}function aq(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{nV(t,n)}catch(t){im(e,e.return,t)}}}function aK(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case\"button\":case\"input\":case\"select\":case\"textarea\":n.autoFocus&&r.focus();break;case\"img\":n.src&&(r.src=n.src)}}catch(t){im(e,e.return,t)}}function aY(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:a9(e,n),4&r&&aH(n,5);break;case 1:if(a9(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){im(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:lb(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){im(n,n.return,e)}}}64&r&&aq(n),512&r&&aB(n,n.return);break;case 3:if(a9(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{nV(r,e)}catch(e){im(n,n.return,e)}}break;case 26:a9(e,n),512&r&&aB(n,n.return);break;case 27:case 5:a9(e,n),null===t&&4&r&&aK(n),512&r&&aB(n,n.return);break;case 12:default:a9(e,n);break;case 13:a9(e,n),4&r&&a3(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||aD)){t=null!==t&&null!==t.memoizedState||aA;var a=aD,o=aA;aD=l,(aA=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),aH(o,4);break;case 1:if(e(a,o,r),\"function\"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){im(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l<u.length;l++)nB(u[l],a)}r&&64&i&&aq(o),aB(o,o.return);break;case 26:case 27:case 5:e(a,o,r),r&&null===l&&4&i&&aK(o),aB(o,o.return);break;case 12:default:e(a,o,r);break;case 13:e(a,o,r),r&&4&i&&a3(a,o);break;case 22:null===o.memoizedState&&e(a,o,r),aB(o,o.return)}n=n.sibling}}(e,n,0!=(8772&n.subtreeFlags)):a9(e,n),aD=a,aA=o}}else a9(e,n);512&r&&(\"manual\"===n.memoizedProps.mode?aB(n,n.return):aV(n,n.return))}}function aX(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function aG(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||aX(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function aZ(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(aZ(e,t,n),e=e.sibling;null!==e;)aZ(e,t,n),e=e.sibling}var aJ=null,a0=!1;function a1(e,t,n){for(n=n.child;null!==n;)a2(e,t,n),n=n.sibling}function a2(e,t,n){if(ea&&\"function\"==typeof ea.onCommitFiberUnmount)try{ea.onCommitFiberUnmount(el,n)}catch(e){}switch(n.tag){case 26:aA||aV(n,t),a1(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:aA||aV(n,t);var r=aJ,l=a0;for(aJ=n.stateNode,a1(e,t,n),e=(n=n.stateNode).attributes;e.length;)n.removeAttributeNode(e[0]);eF(n),aJ=r,a0=l;break;case 5:aA||aV(n,t);case 6:r=aJ,l=a0,aJ=null,a1(e,t,n),aJ=r,a0=l,null!==aJ&&(a0?(e=aJ,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):aJ.removeChild(n.stateNode));break;case 18:null!==aJ&&(a0?(e=aJ,n=n.stateNode,8===e.nodeType?ct(e.parentNode,n):1===e.nodeType&&ct(e,n),uL(e)):ct(aJ,n.stateNode));break;case 4:r=aJ,l=a0,aJ=n.stateNode.containerInfo,a0=!0,a1(e,t,n),aJ=r,a0=l;break;case 0:case 11:case 14:case 15:if(!aA&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l.tag,o=l.inst,i=o.destroy;void 0!==i&&(0!=(2&a)?(o.destroy=void 0,aQ(n,t,i)):0!=(4&a)&&(o.destroy=void 0,aQ(n,t,i))),l=l.next}while(l!==r)}a1(e,t,n);break;case 1:if(!aA&&(aV(n,t),\"function\"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){im(n,t,e)}a1(e,t,n);break;case 21:default:a1(e,t,n);break;case 22:aV(n,t),1&n.mode?(aA=(r=aA)||null!==n.memoizedState,a1(e,t,n),aA=r):a1(e,t,n)}}function a3(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{uL(e)}catch(e){im(t,t.return,e)}}function a4(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new aI),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new aI),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){var r=ib.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function a6(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];try{var a=t,o=a;e:for(;null!==o;){switch(o.tag){case 27:case 5:aJ=o.stateNode,a0=!1;break e;case 3:case 4:aJ=o.stateNode.containerInfo,a0=!0;break e}o=o.return}if(null===aJ)throw Error(i(160));a2(e,a,l),aJ=null,a0=!1;var u=l.alternate;null!==u&&(u.return=null),l.return=null}catch(e){im(l,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)a5(t,e),t=t.sibling}var a8=null;function a5(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a6(t,e),a7(e),4&r){try{aj(3,e,e.return),aW(3,e)}catch(t){im(e,e.return,t)}try{aj(5,e,e.return)}catch(t){im(e,e.return,t)}}break;case 1:a6(t,e),a7(e),512&r&&null!==n&&aV(n,n.return),64&r&&aD&&null!==(e=e.updateQueue)&&null!==(n=e.callbacks)&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===r?n:r.concat(n));break;case 26:var l=a8;if(a6(t,e),a7(e),512&r&&null!==n&&aV(n,n.return),4&r){if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n){if(null===r){if(null===e.stateNode){e:{n=e.type,r=e.memoizedProps,t=l.ownerDocument||l;t:switch(n){case\"title\":(!(l=t.getElementsByTagName(\"title\")[0])||l[eT]||l[eE]||\"http://www.w3.org/2000/svg\"===l.namespaceURI||l.hasAttribute(\"itemprop\"))&&(l=t.createElement(n),t.head.insertBefore(l,t.querySelector(\"head > title\"))),sG(l,n,r),l[eE]=e,eI(l),n=l;break e;case\"link\":var a=cE(\"link\",\"href\",t).get(n+(r.href||\"\"));if(a){for(var o=0;o<a.length;o++)if((l=a[o]).getAttribute(\"href\")===(null==r.href?null:r.href)&&l.getAttribute(\"rel\")===(null==r.rel?null:r.rel)&&l.getAttribute(\"title\")===(null==r.title?null:r.title)&&l.getAttribute(\"crossorigin\")===(null==r.crossOrigin?null:r.crossOrigin)){a.splice(o,1);break t}}sG(l=t.createElement(n),n,r),t.head.appendChild(l);break;case\"meta\":if(a=cE(\"meta\",\"content\",t).get(n+(r.content||\"\"))){for(o=0;o<a.length;o++)if((l=a[o]).getAttribute(\"content\")===(null==r.content?null:\"\"+r.content)&&l.getAttribute(\"name\")===(null==r.name?null:r.name)&&l.getAttribute(\"property\")===(null==r.property?null:r.property)&&l.getAttribute(\"http-equiv\")===(null==r.httpEquiv?null:r.httpEquiv)&&l.getAttribute(\"charset\")===(null==r.charSet?null:r.charSet)){a.splice(o,1);break t}}sG(l=t.createElement(n),n,r),t.head.appendChild(l);break;default:throw Error(i(468,n))}l[eE]=e,eI(l),n=l}e.stateNode=n}else cx(l,e.type,e.stateNode)}else e.stateNode=cb(l,r,e.memoizedProps)}else if(t!==r)null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?cx(l,e.type,e.stateNode):cb(l,r,e.memoizedProps);else if(null===r&&null!==e.stateNode){e.updateQueue=null;try{var u=e.stateNode,s=e.memoizedProps;sZ(u,e.type,n.memoizedProps,s),u[ex]=s}catch(t){im(e,e.return,t)}}}break;case 27:if(4&r&&null===e.alternate){for(l=e.stateNode,a=e.memoizedProps,o=l.firstChild;o;){var c=o.nextSibling,f=o.nodeName;o[eT]||\"HEAD\"===f||\"BODY\"===f||\"SCRIPT\"===f||\"STYLE\"===f||\"LINK\"===f&&\"stylesheet\"===o.rel.toLowerCase()||l.removeChild(o),o=c}for(o=e.type,c=l.attributes;c.length;)l.removeAttributeNode(c[0]);sG(l,o,a),l[eE]=e,l[ex]=a}case 5:if(a6(t,e),a7(e),512&r&&null!==n&&aV(n,n.return),32&e.flags){t=e.stateNode;try{tu(t,\"\")}catch(t){im(e,e.return,t)}}if(4&r&&null!=(r=e.stateNode)){t=e.memoizedProps,n=null!==n?n.memoizedProps:t,l=e.type,e.updateQueue=null;try{sZ(r,l,n,t),r[ex]=t}catch(t){im(e,e.return,t)}}break;case 6:if(a6(t,e),a7(e),4&r){if(null===e.stateNode)throw Error(i(162));n=e.stateNode,r=e.memoizedProps;try{n.nodeValue=r}catch(t){im(e,e.return,t)}}break;case 3:if(cC=null,l=a8,a8=cf(t.containerInfo),a6(t,e),a8=l,a7(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{uL(t.containerInfo)}catch(t){im(e,e.return,t)}break;case 4:n=a8,a8=cf(e.stateNode.containerInfo),a6(t,e),a7(e),a8=n;break;case 13:a6(t,e),a7(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(oA=Y()),4&r&&null!==(n=e.updateQueue)&&(e.updateQueue=null,a4(e,n));break;case 22:if(512&r&&null!==n&&aV(n,n.return),u=null!==e.memoizedState,s=null!==n&&null!==n.memoizedState,1&e.mode){var d=aD,p=aA;aD=d||u,aA=p||s,a6(t,e),aA=p,aD=d}else a6(t,e);if(a7(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=u?-2&t._visibility:1|t._visibility,u&&(t=aD||aA,null===n||s||t||0!=(1&e.mode)&&function e(t){for(t=t.child;null!==t;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:aj(4,n,n.return),e(n);break;case 1:aV(n,n.return);var r=n.stateNode;if(\"function\"==typeof r.componentWillUnmount){var l=n.return;try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){im(n,l,e)}}e(n);break;case 26:case 27:case 5:aV(n,n.return),e(n);break;case 22:aV(n,n.return),null===n.memoizedState&&e(n);break;default:e(n)}t=t.sibling}}(e)),null===e.memoizedProps||\"manual\"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){n=t;try{l=t.stateNode,u?(a=l.style,\"function\"==typeof a.setProperty?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\"):(o=t.stateNode,f=null!=(c=t.memoizedProps.style)&&c.hasOwnProperty(\"display\")?c.display:null,o.style.display=null==f||\"boolean\"==typeof f?\"\":(\"\"+f).trim())}catch(t){im(e,e.return,t)}}}else if(6===t.tag){if(null===n)try{t.stateNode.nodeValue=u?\"\":t.memoizedProps}catch(t){im(e,e.return,t)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(n=e.updateQueue)&&null!==(r=n.retryQueue)&&(n.retryQueue=null,a4(e,r));break;case 19:a6(t,e),a7(e),4&r&&null!==(n=e.updateQueue)&&(e.updateQueue=null,a4(e,n));break;case 21:break;default:a6(t,e),a7(e)}}function a7(e){var t=e.flags;if(2&t){try{if(27!==e.tag){t:{for(var n=e.return;null!==n;){if(aX(n)){var r=n;break t}n=n.return}throw Error(i(160))}switch(r.tag){case 27:var l=r.stateNode,a=aG(e);aZ(e,a,l);break;case 5:var o=r.stateNode;32&r.flags&&(tu(o,\"\"),r.flags&=-33);var u=aG(e);aZ(e,u,o);break;case 3:case 4:var s=r.stateNode.containerInfo,c=aG(e);!function e(t,n,r){var l=t.tag;if(5===l||6===l)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=sK));else if(4!==l&&27!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,c,s);break;default:throw Error(i(161))}}}catch(t){im(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function a9(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)aY(e,t.alternate,t),t=t.sibling}function oe(e,t){try{aW(t,e)}catch(t){im(e,e.return,t)}}function ot(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&am(n))}function on(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&am(e))}function or(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ol(e,t,n,r),t=t.sibling}function ol(e,t,n,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:or(e,t,n,r),2048&l&&oe(t,9);break;case 3:or(e,t,n,r),2048&l&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&am(e)));break;case 23:break;case 22:var a=t.stateNode;null!==t.memoizedState?4&a._visibility?or(e,t,n,r):1&t.mode?oa(e,t):(a._visibility|=4,or(e,t,n,r)):4&a._visibility?or(e,t,n,r):(a._visibility|=4,function e(t,n,r,l,a){for(a=a&&0!=(10256&n.subtreeFlags),n=n.child;null!==n;){var o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(t,o,r,l,a),oe(o,8);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?4&u._visibility?e(t,o,r,l,a):1&o.mode?oa(t,o):(u._visibility|=4,e(t,o,r,l,a)):(u._visibility|=4,e(t,o,r,l,a)),a&&2048&i&&ot(o.alternate,o);break;case 24:e(t,o,r,l,a),a&&2048&i&&on(o.alternate,o);break;default:e(t,o,r,l,a)}n=n.sibling}}(e,t,n,r,0!=(10256&t.subtreeFlags))),2048&l&&ot(t.alternate,t);break;case 24:or(e,t,n,r),2048&l&&on(t.alternate,t);break;default:or(e,t,n,r)}}function oa(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=t,r=n.flags;switch(n.tag){case 22:oa(e,n),2048&r&&ot(n.alternate,n);break;case 24:oa(e,n),2048&r&&on(n.alternate,n);break;default:oa(e,n)}t=t.sibling}}var oo=8192;function oi(e){if(e.subtreeFlags&oo)for(e=e.child;null!==e;)ou(e),e=e.sibling}function ou(e){switch(e.tag){case 26:oi(e),e.flags&oo&&null!==e.memoizedState&&function(e,t,n){if(null===cz)throw Error(i(475));var r=cz;if(\"stylesheet\"===t.type&&(\"string\"!=typeof n.media||!1!==matchMedia(n.media).matches)&&0==(4&t.state.loading)){if(null===t.instance){var l=cm(n.href),a=e.querySelector(ch(l));if(a){null!==(e=a._p)&&\"object\"==typeof e&&\"function\"==typeof e.then&&(r.count++,r=cN.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,eI(a);return}a=e.ownerDocument||e,n=cg(n),(l=cs.get(l))&&cw(n,l),eI(a=a.createElement(\"link\"));var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sG(a,\"link\",n),t.instance=a}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0==(3&t.state.loading)&&(r.count++,t=cN.bind(r),e.addEventListener(\"load\",t),e.addEventListener(\"error\",t))}}(a8,e.memoizedState,e.memoizedProps);break;case 5:default:oi(e);break;case 3:case 4:var t=a8;a8=cf(e.stateNode.containerInfo),oi(e),a8=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=oo,oo=16777216,oi(e),oo=t):oi(e))}}function os(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(null!==e)}}function oc(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];aU=r,od(r,e)}os(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)of(e),e=e.sibling}function of(e){switch(e.tag){case 0:case 11:case 15:oc(e),2048&e.flags&&aj(9,e,e.return);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,function e(t){var n=t.deletions;if(0!=(16&t.flags)){if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];aU=l,od(l,t)}os(t)}for(t=t.child;null!==t;){switch((n=t).tag){case 0:case 11:case 15:aj(8,n,n.return),e(n);break;case 22:4&(r=n.stateNode)._visibility&&(r._visibility&=-5,e(n));break;default:e(n)}t=t.sibling}}(e)):oc(e);break;default:oc(e)}}function od(e,t){for(;null!==aU;){var n=aU;switch(n.tag){case 0:case 11:case 15:aj(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:am(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,aU=r;else for(n=e;null!==aU;){var l=(r=aU).sibling,a=r.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&eF(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(r),r===n){aU=null;break}if(null!==l){l.return=a,aU=l;break}aU=a}}}var op={getCacheSignal:function(){return ao(ad).controller.signal},getCacheForType:function(e){var t=ao(ad),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},om=\"function\"==typeof WeakMap?WeakMap:Map,oh=s.ReactCurrentDispatcher,og=s.ReactCurrentCache,oy=s.ReactCurrentOwner,ov=s.ReactCurrentBatchConfig,ob=0,ok=null,ow=null,oS=0,oC=0,oE=null,ox=!1,oz=0,oP=0,oN=null,o_=0,oL=0,oT=0,oF=0,oM=null,oO=null,oR=!1,oD=!1,oA=0,oI=1/0,oU=null,oB=!1,oV=null,oQ=null,o$=!1,oj=null,oW=0,oH=0,oq=null,oK=0,oY=null;function oX(e){return 0==(1&e.mode)?2:0!=(2&ob)&&0!==oS?oS&-oS:null!==ag()?0!==(e=nP)?e:nE():0!==(e=ek)?e:e=void 0===(e=window.event)?32:uU(e.type)}function oG(e,t,n){(e===ok&&2===oC||null!==e.cancelPendingCommit)&&(o5(e,0),o3(e,oS,oF)),o2(e,n),(0==(2&ob)||e!==ok)&&(e===ok&&(0==(2&ob)&&(oL|=n),4===oP&&o3(e,oS,oF)),nv(e),2===n&&0===ob&&0==(1&t.mode)&&(oI=Y()+500,nb(!0)))}function oZ(e,t){if(0!=(6&ob))throw Error(i(327));var n=e.callbackNode;if(id()&&e.callbackNode!==n)return null;var r=ep(e,e===ok?oS:0);if(0===r)return null;var l=0==(60&r)&&0==(r&e.expiredLanes)&&!t;if(0!==(t=l?function(e,t){var n=ob;ob|=2;var r=ie(),l=it();(ok!==e||oS!==t)&&(oU=null,oI=Y()+500,o5(e,t));e:for(;;)try{if(0!==oC&&null!==ow){t=ow;var a=oE;t:switch(oC){case 1:case 6:oC=0,oE=null,ii(e,t,a);break;case 2:if(nH(a)){oC=0,oE=null,io(t);break}t=function(){2===oC&&ok===e&&(oC=7),nv(e)},a.then(t,t);break e;case 3:oC=7;break e;case 4:oC=5;break e;case 7:nH(a)?(oC=0,oE=null,io(t)):(oC=0,oE=null,ii(e,t,a));break;case 5:switch(ow.tag){case 5:case 26:case 27:t=ow,oC=0,oE=null;var o=t.sibling;if(null!==o)ow=o;else{var u=t.return;null!==u?(ow=u,iu(u)):ow=null}break t}oC=0,oE=null,ii(e,t,a);break;case 8:o8(),oP=6;break e;default:throw Error(i(462))}}!function(){for(;null!==ow&&!q();)ia(ow)}();break}catch(t){o7(e,t)}return(ae(),oh.current=r,og.current=l,ob=n,null!==ow)?0:(ok=null,oS=0,no(),oP)}(e,r):il(e,r)))for(var a=l;;){if(6===t)o3(e,r,0);else{if(l=e.current.alternate,a&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var l=n[r],a=l.getSnapshot;l=l.value;try{if(!tD(a(),l))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)){t=il(e,r),a=!1;continue}if(2===t){var o=em(e,a=r);0!==o&&(r=o,t=oJ(e,a,o))}if(1===t)throw n=oN,o5(e,0),o3(e,r,0),nv(e),n;e.finishedWork=l,e.finishedLanes=r;e:{switch(a=e,t){case 0:case 1:throw Error(i(345));case 4:if((4194176&r)===r){o3(a,r,oF);break e}break;case 2:case 3:case 5:break;default:throw Error(i(329))}if((62914560&r)===r&&10<(t=oA+300-Y())){if(o3(a,r,oF),0!==ep(a,0))break e;a.timeoutHandle=s8(o1.bind(null,a,l,oO,oU,oR,r,oF),t);break e}o1(a,l,oO,oU,oR,r,oF)}}break}return nv(e),nS(e,Y()),e=e.callbackNode===n?oZ.bind(null,e):null}function oJ(e,t,n){var r=oM,l=e.current.memoizedState.isDehydrated;if(l&&(o5(e,n).flags|=256),2!==(n=il(e,n))){if(ox&&!l)return e.errorRecoveryDisabledLanes|=t,oL|=t,4;e=oO,oO=r,null!==e&&o0(e)}return n}function o0(e){null===oO?oO=e:oO.push.apply(oO,e)}function o1(e,t,n,r,l,a,o){if(0==(42&a)&&(cz={stylesheets:null,count:0,unsuspend:cP},ou(t),null!==(t=function(){if(null===cz)throw Error(i(475));var e=cz;return e.stylesheets&&0===e.count&&cL(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&cL(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}()))){e.cancelPendingCommit=t(is.bind(null,e,n,r,l)),o3(e,a,o);return}is(e,n,r,l,o)}function o2(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0),2&ob?oR=!0:4&ob&&(oD=!0),ik()}function o3(e,t,n){t&=~oT,t&=~oL,e.suspendedLanes|=t,e.pingedLanes&=~t;for(var r=e.expirationTimes,l=t;0<l;){var a=31-ei(l),o=1<<a;r[a]=-1,l&=~o}0!==n&&ev(e,n,t)}function o4(e,t){var n=ob;ob|=1;try{return e(t)}finally{0===(ob=n)&&(oI=Y()+500,nb(!0))}}function o6(e){null!==oj&&0===oj.tag&&0==(6&ob)&&id();var t=ob;ob|=1;var n=ov.transition,r=ek;try{if(ov.transition=null,ek=2,e)return e()}finally{ek=r,ov.transition=n,0==(6&(ob=t))&&nb(!1)}}function o8(){if(null!==ow){if(0===oC)var e=ow.return;else e=ow,ae(),rL(e),nG=null,nZ=0,e=ow;for(;null!==e;)aN(e.alternate,e),e=e.return;ow=null}}function o5(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,s5(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),o8(),ok=e,ow=n=iE(e.current,null),oS=t,oC=0,oE=null,ox=!1,oP=0,oN=null,oF=oT=oL=o_=0,oO=oM=null,oR=!1,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var l=31-ei(r),a=1<<l;t|=e[l],r&=~a}return oz=t,no(),n}function o7(e,t){rd=null,rs.current=lh,oy.current=null,t===n$?(t=nX(),oC=o9()&&0==(134217727&o_)&&0==(134217727&oL)?2:3):t===nj?(t=nX(),oC=4):oC=t===lO?8:null!==t&&\"object\"==typeof t&&\"function\"==typeof t.then?6:1,oE=t,null===ow&&(oP=1,oN=t)}function o9(){var e=rt.current;return null===e||((4194176&oS)===oS?null===rn:((62914560&oS)===oS||0!=(536870912&oS))&&e===rn)}function ie(){var e=oh.current;return oh.current=lh,null===e?lh:e}function it(){var e=og.current;return og.current=op,e}function ir(){oP=4,0==(134217727&o_)&&0==(134217727&oL)||null===ok||o3(ok,oS,oF)}function il(e,t){var n=ob;ob|=2;var r=ie(),l=it();(ok!==e||oS!==t)&&(oU=null,o5(e,t)),t=!1;e:for(;;)try{if(0!==oC&&null!==ow){var a=ow,o=oE;switch(oC){case 8:o8(),oP=6;break e;case 3:case 2:t||null!==rt.current||(t=!0);default:oC=0,oE=null,ii(e,a,o)}}!function(){for(;null!==ow;)ia(ow)}();break}catch(t){o7(e,t)}if(t&&e.shellSuspendCounter++,ae(),ob=n,oh.current=r,og.current=l,null!==ow)throw Error(i(261));return ok=null,oS=0,no(),oP}function ia(e){var t=iZ(e.alternate,e,oz);e.memoizedProps=e.pendingProps,null===t?iu(e):ow=t,oy.current=null}function io(e){var t=e.alternate;switch(e.tag){case 2:e.tag=0;case 15:case 0:var n=e.type,r=e.pendingProps;r=e.elementType===n?r:lb(n,r);var l=tL(n)?tN:tz.current;l=t_(e,l),t=lj(t,e,r,n,l,oS);break;case 11:n=e.type.render,r=e.pendingProps,r=e.elementType===n?r:lb(n,r),t=lj(t,e,r,n,e.ref,oS);break;case 5:rL(e);default:aN(t,e),e=ow=ix(e,oz),t=iZ(t,e,oz)}e.memoizedProps=e.pendingProps,null===t?iu(e):ow=t,oy.current=null}function ii(e,t,n){ae(),rL(t),nG=null,nZ=0;var r=t.return;try{if(function(e,t,n,r,l){if(n.flags|=32768,null!==r&&\"object\"==typeof r&&\"function\"==typeof r.then){var a=n.tag;if(0!=(1&n.mode)||0!==a&&11!==a&&15!==a||((a=n.alternate)?(n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.lanes=a.lanes):(n.updateQueue=null,n.memoizedState=null)),null!==(a=rt.current)){switch(a.tag){case 13:return 1&n.mode&&(null===rn?ir():null===a.alternate&&0===oP&&(oP=3)),a.flags&=-257,lF(a,t,n,e,l),r===nW?a.flags|=16384:(null===(t=a.updateQueue)?a.updateQueue=new Set([r]):t.add(r),1&a.mode&&ih(e,r,l)),!1;case 22:if(1&a.mode)return a.flags|=65536,r===nW?a.flags|=16384:(null===(t=a.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),ih(e,r,l)),!1}throw Error(i(435,a.tag))}if(1===e.tag)return ih(e,r,l),ir(),!1;r=Error(i(426))}if(tZ&&1&n.mode&&null!==(a=rt.current))return 0==(65536&a.flags)&&(a.flags|=256),lF(a,t,n,e,l),nn(lP(r,n)),!1;if(e=r=lP(r,n),4!==oP&&(oP=2),null===oM?oM=[e]:oM.push(e),null===t)return!0;e=t;do{switch(e.tag){case 3:return e.flags|=65536,l&=-l,e.lanes|=l,l=lL(e,r,l),nD(e,l),!1;case 1:if(t=r,n=e.type,a=e.stateNode,0==(128&e.flags)&&(\"function\"==typeof n.getDerivedStateFromError||null!==a&&\"function\"==typeof a.componentDidCatch&&(null===oQ||!oQ.has(a))))return e.flags|=65536,l&=-l,e.lanes|=l,l=lT(e,t,l),nD(e,l),!1}e=e.return}while(null!==e);return!1}(e,r,t,n,oS)){oP=1,oN=n,ow=null;return}}catch(e){if(null!==r)throw ow=r,e;oP=1,oN=n,ow=null;return}if(32768&t.flags)e:{e=t;do{if(null!==(t=function(e,t){switch(tY(t),t.tag){case 1:return tL(t.type)&&tT(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return an(ad),Q(),h(tP),h(tz),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return j(t),null;case 13:if(ro(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));nt()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return h(ri),null;case 4:return Q(),null;case 10:return an(t.type._context),null;case 22:case 23:return ro(t),re(),null!==e&&h(ab),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return an(ad),null;default:return null}}(e.alternate,e))){t.flags&=32767,ow=t;break e}null!==(e=e.return)&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),ow=e}while(null!==e);oP=6,ow=null}else iu(t)}function iu(e){var t=e;do{e=t.return;var n=function(e,t,n){var r=t.pendingProps;switch(tY(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return aP(t),null;case 1:case 17:return tL(t.type)&&tT(),aP(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),an(ad),Q(),h(tP),h(tz),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(t9(t)?aC(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==tJ&&(o0(tJ),tJ=null))),aP(t),null;case 26:if(n=t.memoizedState,null===e)aC(t),null!==n?(aP(t),aE(t,n)):(aP(t),t.flags&=-16777217);else{var l=e.memoizedState;n!==l&&aC(t),null!==n?(aP(t),n===l?t.flags&=-16777217:aE(t,n)):(e.memoizedProps!==r&&aC(t),aP(t),t.flags&=-16777217)}return null;case 27:if(j(t),n=I.current,l=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return aP(t),null}e=D.current,t9(t)?co(t.stateNode,t.type,t.memoizedProps,e,t):(e=cu(l,r,n),t.stateNode=e,aC(t))}return aP(t),null;case 5:if(j(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return aP(t),null}if(e=D.current,t9(t))co(t.stateNode,t.type,t.memoizedProps,e,t);else{switch(l=s1(I.current),e){case 1:e=l.createElementNS(\"http://www.w3.org/2000/svg\",n);break;case 2:e=l.createElementNS(\"http://www.w3.org/1998/Math/MathML\",n);break;default:switch(n){case\"svg\":e=l.createElementNS(\"http://www.w3.org/2000/svg\",n);break;case\"math\":e=l.createElementNS(\"http://www.w3.org/1998/Math/MathML\",n);break;case\"script\":(e=l.createElement(\"div\")).innerHTML=\"<script></script>\",e=e.removeChild(e.firstChild);break;case\"select\":e=\"string\"==typeof r.is?l.createElement(\"select\",{is:r.is}):l.createElement(\"select\"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=\"string\"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eE]=t,e[ex]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sG(e,n,r),n){case\"button\":case\"input\":case\"select\":case\"textarea\":e=!!r.autoFocus;break;case\"img\":e=!0;break;default:e=!1}e&&aC(t)}}return aP(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if(\"string\"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t9(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[eE]=t,(r=e.nodeValue!==n)&&null!==(l=tX))switch(l.tag){case 3:if(l=0!=(1&l.mode),sq(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sq(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&aC(t)}else(e=s1(e).createTextNode(r))[eE]=t,t.stateNode=e}return aP(t),null;case 13:if(ro(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tZ&&null!==tG&&0!=(1&t.mode)&&0==(128&t.flags))ne(),nt(),t.flags|=384,l=!1;else if(l=t9(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eE]=t}else nt(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aP(t),l=!1}else null!==tJ&&(o0(tJ),tJ=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ax(t,t.updateQueue),aP(t),null;case 4:return Q(),null===e&&sA(t.stateNode.containerInfo),aP(t),null;case 10:return an(t.type._context),aP(t),null;case 19:if(h(ri),null===(l=t.memoizedState))return aP(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)az(l,!1);else{if(0!==oP||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ru(e))){for(t.flags|=128,az(l,!1),e=a.updateQueue,t.updateQueue=e,ax(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ix(n,e),n=n.sibling;return g(ri,1&ri.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oI&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ru(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ax(t,e),az(l,!0),null===l.tail&&\"hidden\"===l.tailMode&&!a.alternate&&!tZ)return aP(t),null}else 2*Y()-l.renderingStartTime>oI&&536870912!==n&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=ri.current,g(ri,r?1&e|2:1&e),t;return aP(t),null;case 22:case 23:return ro(t),re(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(aP(t),6&t.subtreeFlags&&(t.flags|=8192)):aP(t),null!==(n=t.updateQueue)&&ax(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(ab),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(ad),aP(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oz);if(null!==n){ow=n;return}if(null!==(t=t.sibling)){ow=t;return}ow=t=e}while(null!==t);0===oP&&(oP=5)}function is(e,t,n,r,l){var a=ek,o=ov.transition;try{ov.transition=null,ek=2,function(e,t,n,r,l,a){do id();while(null!==oj);if(0!=(6&ob))throw Error(i(327));var o,u=e.finishedWork,s=e.finishedLanes;if(null!==u){if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0<r;){var o=31-ei(r),i=1<<o;t[o]=0,l[o]=-1;var u=a[o];if(null!==u)for(a[o]=null,o=0;o<u.length;o++){var s=u[o];null!==s&&(s.lane&=-536870913)}r&=~i}0!==n&&ev(e,n,0)}(e,c|=na,a),oD=!1,e===ok&&(ow=ok=null,oS=0),0==(10256&u.subtreeFlags)&&0==(10256&u.flags)||o$||(o$=!0,oH=c,oq=n,o=function(){return id(),null},W(J,o)),n=0!=(15990&u.flags),0!=(15990&u.subtreeFlags)||n){n=ov.transition,ov.transition=null,a=ek,ek=2;var f=ob;ob|=4,oy.current=null,function(e,t){if(sJ=uF,ss(e=su())){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var l,a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var u=0,s=-1,c=-1,f=0,d=0,p=e,m=null;t:for(;;){for(;p!==n||0!==a&&3!==p.nodeType||(s=u+a),p!==o||0!==r&&3!==p.nodeType||(c=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(l=p.firstChild);)m=p,p=l;for(;;){if(p===e)break t;if(m===n&&++f===a&&(s=u),m===o&&++d===r&&(c=u),null!==(l=p.nextSibling))break;m=(p=m).parentNode}p=l}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(s0={focusedElem:e,selectionRange:n},uF=!1,aU=t;null!==aU;)if(e=(t=aU).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,aU=e;else for(;null!==aU;){t=aU;try{var h=t.alternate,g=t.flags;switch(t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&g)&&null!==h){var y=h.memoizedProps,v=h.memoizedState,b=t.stateNode,k=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:lb(t.type,y),v);b.__reactInternalSnapshotBeforeUpdate=k}break;case 3:0!=(1024&g)&&cn(t.stateNode.containerInfo);break;default:if(0!=(1024&g))throw Error(i(163))}}catch(e){im(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,aU=e;break}aU=t.return}h=a$,a$=!1}(e,u),a5(u,e),function(e){var t=su(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):\"contains\"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&ss(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),\"selectionStart\"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var l=n.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=si(n,a);var o=si(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(s0),uF=!!sJ,s0=sJ=null,e.current=u,aY(e,u.alternate,u),K(),ob=f,ek=a,ov.transition=n}else e.current=u;if(o$?(o$=!1,oj=e,oW=s):ic(e,c),0===(c=e.pendingLanes)&&(oQ=null),function(e){if(ea&&\"function\"==typeof ea.onCommitFiberRoot)try{ea.onCommitFiberRoot(el,e,void 0,128==(128&e.current.flags))}catch(e){}}(u.stateNode,l),nv(e),null!==t)for(l=e.onRecoverableError,u=0;u<t.length;u++)n={digest:(c=t[u]).digest,componentStack:c.stack},l(c.value,n);if(oB)throw oB=!1,e=oV,oV=null,e;0!=(3&oW)&&0!==e.tag&&id(),c=e.pendingLanes,r||oD||0!=(4194218&s)&&0!=(42&c)?e===oY?oK++:(oK=0,oY=e):oK=0,nb(!1)}}(e,t,n,r,a,l)}finally{ov.transition=o,ek=a}return null}function ic(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,am(t))}function id(){if(null!==oj){var e=oj,t=oH;oH=0;var n=ew(oW),r=32>n?32:n;n=ov.transition;var l=ek;try{if(ov.transition=null,ek=r,null===oj)var a=!1;else{r=oq,oq=null;var o=oj,u=oW;if(oj=null,oW=0,0!=(6&ob))throw Error(i(331));var s=ob;if(ob|=4,of(o.current),ol(o,o.current,u,r),ob=s,nb(!1),ea&&\"function\"==typeof ea.onPostCommitFiberRoot)try{ea.onPostCommitFiberRoot(el,o)}catch(e){}a=!0}return a}finally{ek=l,ov.transition=n,ic(e,t)}}return!1}function ip(e,t,n){t=lL(e,t=lP(n,t),2),null!==(e=nO(e,t,2))&&(o2(e,2),nv(e))}function im(e,t,n){if(3===e.tag)ip(e,e,n);else for(;null!==t;){if(3===t.tag){ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if(\"function\"==typeof t.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===oQ||!oQ.has(r))){e=lT(t,e=lP(n,e),2),null!==(t=nO(t,e,2))&&(o2(t,2),nv(t));break}}t=t.return}}function ih(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new om;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ox=!0,l.add(n),e=ig.bind(null,e,t,n),t.then(e,e))}function ig(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,2&ob?oR=!0:4&ob&&(oD=!0),ik(),ok===e&&(oS&n)===n&&(4===oP||3===oP&&(62914560&oS)===oS&&300>Y()-oA?0==(2&ob)&&o5(e,0):oT|=n),nv(e)}function iy(e,t){0===t&&(t=0==(1&e.mode)?2:eg()),null!==(e=ns(e,t))&&(o2(e,t),nv(e))}function iv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iy(e,n)}function ib(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iy(e,n)}function ik(){if(50<oK)throw oK=0,oY=null,2&ob&&null!==ok&&(ok.errorRecoveryDisabledLanes|=oS),Error(i(185))}function iw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function iS(e,t,n,r){return new iw(e,t,n,r)}function iC(e){return!(!(e=e.prototype)||!e.isReactComponent)}function iE(e,t){var n=e.alternate;return null===n?((n=iS(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ix(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iz(e,t,n,r,l,a){var o=2;if(r=e,\"function\"==typeof e)iC(e)&&(o=1);else if(\"string\"==typeof e)o=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case\"meta\":case\"title\":return!0;case\"style\":if(\"string\"!=typeof t.precedence||\"string\"!=typeof t.href||\"\"===t.href)break;return!0;case\"link\":if(\"string\"!=typeof t.rel||\"string\"!=typeof t.href||\"\"===t.href||t.onLoad||t.onError)break;if(\"stylesheet\"===t.rel)return e=t.disabled,\"string\"==typeof t.precedence&&null==e;return!0;case\"script\":if(!0===t.async&&!t.onLoad&&!t.onError&&\"string\"==typeof t.src&&t.src)return!0}return!1}(e,n,D.current)?\"html\"===e||\"head\"===e||\"body\"===e?27:5:26;else e:switch(e){case b:return iP(n.children,l,a,t);case k:o=8,0!=(1&(l|=8))&&(l|=16);break;case w:return(e=iS(12,n,t,2|l)).elementType=w,e.lanes=a,e;case z:return(e=iS(13,n,t,l)).elementType=z,e.lanes=a,e;case P:return(e=iS(19,n,t,l)).elementType=P,e.lanes=a,e;case T:return iN(n,l,a,t);case F:case L:case M:return(e=iS(24,n,t,l)).elementType=M,e.lanes=a,e;default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case S:o=10;break e;case E:o=9;break e;case C:case x:o=11;break e;case N:o=14;break e;case _:o=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,\"\"))}return(t=iS(o,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function iP(e,t,n,r){return(e=iS(7,e,r,t)).lanes=n,e}function iN(e,t,n,r){(e=iS(22,e,r,t)).elementType=T,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=ns(e,2);null!==t&&(l._pendingVisibility|=2,oG(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=ns(e,2);null!==t&&(l._pendingVisibility&=-3,oG(t,e,2))}}};return e.stateNode=l,e}function i_(e,t,n){return(e=iS(6,e,null,t)).lanes=n,e}function iL(e,t,n){return(t=iS(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iT(e,t,n,r,l,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ey(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ey(0),this.hiddenUpdates=ey(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function iF(e,t,n,r,l,a,o,i,u,s,c){return e=new iT(e,t,n,i,u,c),1===t?(t=1,!0===a&&(t|=24)):t=0,a=iS(3,null,null,t),e.current=a,a.stateNode=e,t=ap(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},nT(a),e}function iM(e){if(!e)return tx;e=e._reactInternals;e:{if(tw(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tL(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tL(n))return tM(e,n,t)}return t}function iO(e,t,n,r,l,a,o,i,u,s,c){return(e=iF(n,r,!0,e,l,a,o,i,u,s,c)).context=iM(null),(l=nM(r=oX(n=e.current))).callback=null!=t?t:null,nO(n,l,r),e.current.lanes=r,o2(e,r),nv(e),e}function iR(e,t,n,r){var l=t.current,a=oX(l);return n=iM(n),null===t.context?t.context=n:t.pendingContext=n,(t=nM(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=nO(l,t,a))&&(oG(e,l,a),nR(e,l,a)),a}function iD(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function iA(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function iI(e,t){iA(e,t),(e=e.alternate)&&iA(e,t)}function iU(e){if(13===e.tag){var t=ns(e,67108864);null!==t&&oG(t,e,67108864),iI(e,67108864)}}iZ=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||tP.current)lR=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return lR=!1,function(e,t,n){switch(t.tag){case 3:lq(t),at(t,ad,e.memoizedState.cache),nt();break;case 27:case 5:$(t);break;case 1:tL(t.type)&&tO(t);break;case 4:V(t,t.stateNode.containerInfo);break;case 10:at(t,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return rr(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return lZ(e,t,n);return rr(t),null!==(e=l6(e,t,n))?e.sibling:null}rr(t);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return l3(e,t,n);t.flags|=128}var l=t.memoizedState;if(null!==l&&(l.rendering=null,l.tail=null,l.lastEffect=null),g(ri,ri.current),!r)return null;break;case 22:case 23:return t.lanes=0,lB(e,t,n);case 24:at(t,ad,e.memoizedState.cache)}return l6(e,t,n)}(e,t,n);lR=0!=(131072&e.flags)}}else lR=!1,tZ&&0!=(1048576&t.flags)&&tq(t,tB,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;l4(e,t),e=t.pendingProps;var l=t_(t,tz.current);aa(t,n),l=rE(null,t,r,e,l,n);var a=rN();return t.flags|=1,\"object\"==typeof l&&null!==l&&\"function\"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tL(r)?(a=!0,tO(t)):a=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,nT(t),l.updater=lw,t.stateNode=l,l._reactInternals=t,lx(t,r,e,n),t=lH(null,t,r,!0,a,n)):(t.tag=0,tZ&&a&&tK(t),lD(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(l4(e,t),e=t.pendingProps,r=(l=r._init)(r._payload),t.type=r,l=t.tag=function(e){if(\"function\"==typeof e)return iC(e)?1:0;if(null!=e){if((e=e.$$typeof)===x)return 11;if(e===N)return 14}return 2}(r),e=lb(r,e),l){case 0:t=l$(null,t,r,e,n);break e;case 1:t=lW(null,t,r,e,n);break e;case 11:t=lA(null,t,r,e,n);break e;case 14:t=lI(null,t,r,lb(r.type,e),n);break e}throw Error(i(306,r,\"\"))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),l$(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),lW(e,t,r,l,n);case 3:e:{if(lq(t),null===e)throw Error(i(387));l=t.pendingProps,r=(a=t.memoizedState).element,nF(e,t),nU(t,l,null,n);var o=t.memoizedState;if(at(t,ad,l=o.cache),l!==a.cache&&al(t,ad,n),nI(),l=o.element,a.isDehydrated){if(a={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){r=lP(Error(i(423)),t),t=lK(e,t,l,n,r);break e}if(l!==r){r=lP(Error(i(424)),t),t=lK(e,t,l,n,r);break e}for(tG=cl(t.stateNode.containerInfo.firstChild),tX=t,tZ=!0,tJ=null,t0=!0,n=n6(t,null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(nt(),l===r){t=l6(e,t,n);break e}lD(e,t,l,n)}t=t.child}return t;case 26:return lQ(e,t),n=t.memoizedState=function(e,t,n){if(!(t=(t=I.current)?cf(t):null))throw Error(i(446));switch(e){case\"meta\":case\"title\":return null;case\"style\":return\"string\"==typeof n.precedence&&\"string\"==typeof n.href?(n=cm(n.href),(e=(t=eA(t).hoistableStyles).get(n))||(e={type:\"style\",instance:null,count:0,state:null},t.set(n,e)),e):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(\"stylesheet\"===n.rel&&\"string\"==typeof n.href&&\"string\"==typeof n.precedence){e=cm(n.href);var r,l,a,o,u=eA(t).hoistableStyles,s=u.get(e);return s||(t=t.ownerDocument||t,s={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),cs.has(e)||(r=t,l=e,a={rel:\"preload\",as:\"style\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},o=s.state,cs.set(l,a),r.querySelector(ch(l))||(r.querySelector('link[rel=\"preload\"][as=\"style\"]['+l+\"]\")?o.loading=1:(l=r.createElement(\"link\"),o.preload=l,l.addEventListener(\"load\",function(){return o.loading|=1}),l.addEventListener(\"error\",function(){return o.loading|=2}),sG(l,\"link\",a),eI(l),r.head.appendChild(l))))),s}return null;case\"script\":return\"string\"==typeof n.src&&!0===n.async?(n=cy(n.src),(e=(t=eA(t).hoistableScripts).get(n))||(e={type:\"script\",instance:null,count:0,state:null},t.set(n,e)),e):{type:\"void\",instance:null,count:0,state:null};default:throw Error(i(444,e))}}(t.type,null===e?null:e.memoizedProps,t.pendingProps),null!==e||tZ||null!==n||(n=t.type,e=t.pendingProps,(r=s1(I.current).createElement(n))[eE]=t,r[ex]=e,sG(r,n,e),eI(r),t.stateNode=r),null;case 27:return $(t),null===e&&tZ&&(r=t.stateNode=cu(t.type,t.pendingProps,I.current),tX=t,t0=!0,tG=cl(r.firstChild)),r=t.pendingProps.children,null!==e||tZ?lD(e,t,r,n):t.child=n4(t,null,r,n),lQ(e,t),t.child;case 5:return null===e&&tZ&&((l=r=tG)?t3(t,l)||(t8(t)&&t5(),tG=ca(l),a=tX,tG&&t3(t,tG)?t1(a,l):(t2(tX,t),tZ=!1,tX=t,tG=r)):(t8(t)&&t5(),t2(tX,t),tZ=!1,tX=t,tG=r)),$(t),l=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,s4(l,a)?r=null:null!==o&&s4(l,o)&&(t.flags|=32),null!==t.memoizedState&&(l=rE(e,t,rP,null,null,n),B._currentValue=l,lR&&null!==e&&e.memoizedState.memoizedState!==l&&al(t,B,n)),lQ(e,t),lD(e,t,r,n),t.child;case 6:return null===e&&tZ&&((r=\"\"!==t.pendingProps,(e=n=tG)&&r)?t4(t,e)||(t8(t)&&t5(),tG=ca(e),r=tX,tG&&t4(t,tG)?t1(r,e):(t2(tX,t),tZ=!1,tX=t,tG=n)):(t8(t)&&t5(),t2(tX,t),tZ=!1,tX=t,tG=n)),null;case 13:return lZ(e,t,n);case 4:return V(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=n4(t,null,r,n):lD(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),lA(e,t,r,l,n);case 7:return lD(e,t,t.pendingProps,n),t.child;case 8:case 12:return lD(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,a=t.memoizedProps,at(t,r,o=l.value),null!==a){if(tD(a.value,o)){if(a.children===l.children&&!tP.current){t=l6(e,t,n);break e}}else al(t,r,n)}lD(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,aa(t,n),r=r(l=ao(l)),t.flags|=1,lD(e,t,r,n),t.child;case 14:return l=lb(r=t.type,t.pendingProps),l=lb(r.type,l),lI(e,t,r,l,n);case 15:return lU(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),l4(e,t),t.tag=1,tL(r)?(e=!0,tO(t)):e=!1,aa(t,n),lC(t,r,l),lx(t,r,l,n),lH(null,t,r,!0,e,n);case 19:return l3(e,t,n);case 22:return lB(e,t,n);case 24:return aa(t,n),r=ao(ad),null===e?(null===(l=ak())&&(l=ok,a=ap(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:r,cache:l},nT(t),at(t,ad,l)):(0!=(e.lanes&n)&&(nF(e,t),nU(t,null,null,n),nI()),l=e.memoizedState,a=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=l),at(t,ad,r)):(at(t,ad,r=a.cache),r!==l.cache&&al(t,ad,n))),lD(e,t,t.pendingProps.children,n),t.child}throw Error(i(156,t.tag))};var iB=!1;function iV(e,t,n){if(iB)return e(t,n);iB=!0;try{return o4(e,t,n)}finally{iB=!1,(null!==tg||null!==ty)&&(o6(),tk())}}function iQ(e,t){var n=e.stateNode;if(null===n)return null;var r=eD(n);if(null===r)return null;switch(n=r[t],t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&\"function\"!=typeof n)throw Error(i(231,t,typeof n));return n}var i$=!1;if(e$)try{var ij={};Object.defineProperty(ij,\"passive\",{get:function(){i$=!0}}),window.addEventListener(\"test\",ij,ij),window.removeEventListener(\"test\",ij,ij)}catch(e){i$=!1}function iW(e){var t=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function iH(){return!0}function iq(){return!1}function iK(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?iH:iq,this.isPropagationStopped=iq,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=iH)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=iH)},persist:function(){},isPersistent:iH}),t}var iY,iX,iG,iZ,iJ,i0,i1,i2={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},i3=iK(i2),i4=u({},i2,{view:0,detail:0}),i6=iK(i4),i8=u({},i4,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ui,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==i1&&(i1&&\"mousemove\"===e.type?(iJ=e.screenX-i1.screenX,i0=e.screenY-i1.screenY):i0=iJ=0,i1=e),iJ)},movementY:function(e){return\"movementY\"in e?e.movementY:i0}}),i5=iK(i8),i7=iK(u({},i8,{dataTransfer:0})),i9=iK(u({},i4,{relatedTarget:0})),ue=iK(u({},i2,{animationName:0,elapsedTime:0,pseudoElement:0})),ut=iK(u({},i2,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}})),un=iK(u({},i2,{data:0})),ur={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},ul={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},ua={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function uo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ua[e])&&!!t[e]}function ui(){return uo}var uu=iK(u({},i4,{key:function(e){if(e.key){var t=ur[e.key]||e.key;if(\"Unidentified\"!==t)return t}return\"keypress\"===e.type?13===(e=iW(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?ul[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ui,charCode:function(e){return\"keypress\"===e.type?iW(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?iW(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}})),us=iK(u({},i8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),uc=iK(u({},i4,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ui})),uf=iK(u({},i2,{propertyName:0,elapsedTime:0,pseudoElement:0})),ud=iK(u({},i8,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),up=!1,um=null,uh=null,ug=null,uy=new Map,uv=new Map,ub=[],uk=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \");function uw(e,t){switch(e){case\"focusin\":case\"focusout\":um=null;break;case\"dragenter\":case\"dragleave\":uh=null;break;case\"mouseover\":case\"mouseout\":ug=null;break;case\"pointerover\":case\"pointerout\":uy.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":uv.delete(t.pointerId)}}function uS(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==t&&null!==(t=eO(t))&&iU(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l)),e}function uC(e){var t=eM(e.target);if(null!==t){var n=tw(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=tS(n))){e.blockedOn=t,function(e,t){var n=ek;try{return ek=e,t()}finally{ek=n}}(e.priority,function(){if(13===n.tag){var e=oX(n),t=ns(n,e);null!==t&&oG(t,n,e),iI(n,e)}});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function uE(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uD(e.nativeEvent);if(null!==n)return null!==(t=eO(n))&&iU(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tm=r,n.target.dispatchEvent(r),tm=null,t.shift()}return!0}function ux(e,t,n){uE(e)&&n.delete(t)}function uz(){up=!1,null!==um&&uE(um)&&(um=null),null!==uh&&uE(uh)&&(uh=null),null!==ug&&uE(ug)&&(ug=null),uy.forEach(ux),uv.forEach(ux)}function uP(e,t){e.blockedOn===t&&(e.blockedOn=null,up||(up=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,uz)))}var uN=null;function u_(e){uN!==e&&(uN=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){uN===e&&(uN=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],l=e[t+2];if(\"function\"!=typeof r){if(null===uI(r||n))continue;break}var a=eO(n);null!==a&&(e.splice(t,3),t-=3,ll(a,{pending:!0,data:l,method:n.method,action:r},r,l))}}))}function uL(e){function t(t){return uP(t,e)}null!==um&&uP(um,e),null!==uh&&uP(uh,e),null!==ug&&uP(ug,e),uy.forEach(t),uv.forEach(t);for(var n=0;n<ub.length;n++){var r=ub[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ub.length&&null===(n=ub[0]).blockedOn;)uC(n),null===n.blockedOn&&ub.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var l=n[r],a=n[r+1],o=eD(l);if(\"function\"==typeof a)o||u_(n);else if(o){var i=null;if(a&&a.hasAttribute(\"formAction\")){if(l=a,o=eD(a))i=o.formAction;else if(null!==uI(l))continue}else i=o.action;\"function\"==typeof i?n[r+1]=i:(n.splice(r,3),r-=3),u_(n)}}}var uT=s.ReactCurrentBatchConfig,uF=!0;function uM(e,t,n,r){var l=ek,a=uT.transition;uT.transition=null;try{ek=2,uR(e,t,n,r)}finally{ek=l,uT.transition=a}}function uO(e,t,n,r){var l=ek,a=uT.transition;uT.transition=null;try{ek=8,uR(e,t,n,r)}finally{ek=l,uT.transition=a}}function uR(e,t,n,r){if(uF){var l=uD(r);if(null===l)sU(e,t,r,uA,n),uw(e,r);else if(function(e,t,n,r,l){switch(t){case\"focusin\":return um=uS(um,e,t,n,r,l),!0;case\"dragenter\":return uh=uS(uh,e,t,n,r,l),!0;case\"mouseover\":return ug=uS(ug,e,t,n,r,l),!0;case\"pointerover\":var a=l.pointerId;return uy.set(a,uS(uy.get(a)||null,e,t,n,r,l)),!0;case\"gotpointercapture\":return a=l.pointerId,uv.set(a,uS(uv.get(a)||null,e,t,n,r,l)),!0}return!1}(l,e,t,n,r))r.stopPropagation();else if(uw(e,r),4&t&&-1<uk.indexOf(e)){for(;null!==l;){var a=eO(l);if(null!==a&&function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ed(t.pendingLanes);0!==n&&(function(e,t){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-ei(t);e.entanglements[1]|=n,t&=~n}}(t,n),nv(t),0==(6&ob)&&(oI=Y()+500,nb(!1)))}break;case 13:o6(function(){var t=ns(e,2);null!==t&&oG(t,e,2)}),iI(e,2)}}(a),null===(a=uD(r))&&sU(e,t,r,uA,n),a===l)break;l=a}null!==l&&r.stopPropagation()}else sU(e,t,r,null,n)}}function uD(e){return uI(e=th(e))}var uA=null;function uI(e){if(uA=null,null!==(e=eM(e))){var t=tw(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=tS(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uA=e,null}function uU(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 2;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 8;case\"message\":switch(X()){case G:return 2;case Z:return 8;case J:case ee:return 32;case et:return 268435456;default:return 32}default:return 32}}var uB=null,uV=null,uQ=null;function u$(){if(uQ)return uQ;var e,t,n=uV,r=n.length,l=\"value\"in uB?uB.value:uB.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return uQ=l.slice(e,1<t?1-t:void 0)}var uj=[9,13,27,32],uW=e$&&\"CompositionEvent\"in window,uH=null;e$&&\"documentMode\"in document&&(uH=document.documentMode);var uq=e$&&\"TextEvent\"in window&&!uH,uK=e$&&(!uW||uH&&8<uH&&11>=uH),uY=!1;function uX(e,t){switch(e){case\"keyup\":return -1!==uj.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function uG(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}var uZ=!1,uJ={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===t?!!uJ[e.type]:\"textarea\"===t}function u1(e,t,n,r){tb(r),0<(t=sV(t,\"onChange\")).length&&(n=new i3(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var u2=null,u3=null;function u4(e){sM(e,0)}function u6(e){if(e4(eR(e)))return e}function u8(e,t){if(\"change\"===e)return t}var u5=!1;if(e$){if(e$){var u7=\"oninput\"in document;if(!u7){var u9=document.createElement(\"div\");u9.setAttribute(\"oninput\",\"return;\"),u7=\"function\"==typeof u9.oninput}r=u7}else r=!1;u5=r&&(!document.documentMode||9<document.documentMode)}function se(){u2&&(u2.detachEvent(\"onpropertychange\",st),u3=u2=null)}function st(e){if(\"value\"===e.propertyName&&u6(u3)){var t=[];u1(t,u3,e,th(e)),iV(u4,t)}}function sn(e,t,n){\"focusin\"===e?(se(),u2=t,u3=n,u2.attachEvent(\"onpropertychange\",st)):\"focusout\"===e&&se()}function sr(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return u6(u3)}function sl(e,t){if(\"click\"===e)return u6(t)}function sa(e,t){if(\"input\"===e||\"change\"===e)return u6(t)}function so(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function si(e,t){var n,r=so(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=so(r)}}function su(){for(var e=window,t=e6();t instanceof e.HTMLIFrameElement;){try{var n=\"string\"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e6(e.document)}return t}function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}var sc=e$&&\"documentMode\"in document&&11>=document.documentMode,sf=null,sd=null,sp=null,sm=!1;function sh(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sm||null==sf||sf!==e6(r)||(r=\"selectionStart\"in(r=sf)&&ss(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sp&&nQ(sp,r)||(sp=r,0<(r=sV(sd,\"onSelect\")).length&&(t=new i3(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=sf)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var sy={animationend:sg(\"Animation\",\"AnimationEnd\"),animationiteration:sg(\"Animation\",\"AnimationIteration\"),animationstart:sg(\"Animation\",\"AnimationStart\"),transitionend:sg(\"Transition\",\"TransitionEnd\")},sv={},sb={};function sk(e){if(sv[e])return sv[e];if(!sy[e])return e;var t,n=sy[e];for(t in n)if(n.hasOwnProperty(t)&&t in sb)return sv[e]=n[t];return e}e$&&(sb=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete sy.animationend.animation,delete sy.animationiteration.animation,delete sy.animationstart.animation),\"TransitionEvent\"in window||delete sy.transitionend.transition);var sw=sk(\"animationend\"),sS=sk(\"animationiteration\"),sC=sk(\"animationstart\"),sE=sk(\"transitionend\"),sx=new Map,sz=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel\".split(\" \");function sP(e,t){sx.set(e,t),eV(t,[e])}for(var sN=0;sN<sz.length;sN++){var s_=sz[sN];sP(s_.toLowerCase(),\"on\"+(s_[0].toUpperCase()+s_.slice(1)))}sP(sw,\"onAnimationEnd\"),sP(sS,\"onAnimationIteration\"),sP(sC,\"onAnimationStart\"),sP(\"dblclick\",\"onDoubleClick\"),sP(\"focusin\",\"onFocus\"),sP(\"focusout\",\"onBlur\"),sP(sE,\"onTransitionEnd\"),eQ(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),eQ(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),eQ(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),eQ(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),eV(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),eV(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),eV(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),eV(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),eV(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),eV(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var sL=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),sT=new Set(\"cancel close invalid load scroll scrollend toggle\".split(\" \").concat(sL));function sF(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=n,function(e,t,n,r,l,a,o,u,s){if(aR.apply(this,arguments),aL){if(aL){var c=aT;aL=!1,aT=null}else throw Error(i(198));aF||(aF=!0,aM=c)}}(r,t,void 0,e),e.currentTarget=null}function sM(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==a&&l.isPropagationStopped())break e;sF(l,i,s),a=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==a&&l.isPropagationStopped())break e;sF(l,i,s),a=u}}}if(aF)throw e=aM,aF=!1,aM=null,e}function sO(e,t){var n=t[eP];void 0===n&&(n=t[eP]=new Set);var r=e+\"__bubble\";n.has(r)||(sI(t,e,2,!1),n.add(r))}function sR(e,t,n){var r=0;t&&(r|=4),sI(n,e,r,t)}var sD=\"_reactListening\"+Math.random().toString(36).slice(2);function sA(e){if(!e[sD]){e[sD]=!0,eU.forEach(function(t){\"selectionchange\"!==t&&(sT.has(t)||sR(t,!1,e),sR(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[sD]||(t[sD]=!0,sR(\"selectionchange\",!1,t))}}function sI(e,t,n,r){switch(uU(t)){case 2:var l=uM;break;case 8:l=uO;break;default:l=uR}n=l.bind(null,t,n,e),l=void 0,i$&&(\"touchstart\"===t||\"touchmove\"===t||\"wheel\"===t)&&(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function sU(e,t,n,r,l){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===l||8===i.nodeType&&i.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===l||8===u.nodeType&&u.parentNode===l))return;o=o.return}for(;null!==i;){if(null===(o=eM(i)))return;if(5===(u=o.tag)||6===u||26===u||27===u){r=a=o;continue e}i=i.parentNode}}r=r.return}iV(function(){var r=a,l=th(n),o=[];e:{var i=sx.get(e);if(void 0!==i){var u=i3,s=e;switch(e){case\"keypress\":if(0===iW(n))break e;case\"keydown\":case\"keyup\":u=uu;break;case\"focusin\":s=\"focus\",u=i9;break;case\"focusout\":s=\"blur\",u=i9;break;case\"beforeblur\":case\"afterblur\":u=i9;break;case\"click\":if(2===n.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":u=i5;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":u=i7;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":u=uc;break;case sw:case sS:case sC:u=ue;break;case sE:u=uf;break;case\"scroll\":case\"scrollend\":u=i6;break;case\"wheel\":u=ud;break;case\"copy\":case\"cut\":case\"paste\":u=ut;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":u=us}var c=0!=(4&t),f=!c&&(\"scroll\"===e||\"scrollend\"===e),d=c?null!==i?i+\"Capture\":null:i;c=[];for(var p,m=r;null!==m;){var h=m;if(p=h.stateNode,5!==(h=h.tag)&&26!==h&&27!==h||null===p||null===d||null!=(h=iQ(m,d))&&c.push(sB(m,h,p)),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,l),o.push({event:i,listeners:c}))}}if(0==(7&t)){if(i=\"mouseover\"===e||\"pointerover\"===e,u=\"mouseout\"===e||\"pointerout\"===e,!(i&&n!==tm&&(s=n.relatedTarget||n.fromElement)&&(eM(s)||s[ez]))&&(u||i)&&(i=l.window===l?l:(i=l.ownerDocument)?i.defaultView||i.parentWindow:window,u?(s=n.relatedTarget||n.toElement,u=r,null!==(s=s?eM(s):null)&&(f=tw(s),c=s.tag,s!==f||5!==c&&27!==c&&6!==c)&&(s=null)):(u=null,s=r),u!==s)){if(c=i5,h=\"onMouseLeave\",d=\"onMouseEnter\",m=\"mouse\",(\"pointerout\"===e||\"pointerover\"===e)&&(c=us,h=\"onPointerLeave\",d=\"onPointerEnter\",m=\"pointer\"),f=null==u?i:eR(u),p=null==s?i:eR(s),(i=new c(h,m+\"leave\",u,n,l)).target=f,i.relatedTarget=p,h=null,eM(l)===r&&((c=new c(d,m+\"enter\",s,n,l)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)t:{for(c=u,d=s,m=0,p=c;p;p=sQ(p))m++;for(p=0,h=d;h;h=sQ(h))p++;for(;0<m-p;)c=sQ(c),m--;for(;0<p-m;)d=sQ(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break t;c=sQ(c),d=sQ(d)}c=null}else c=null;null!==u&&s$(o,i,u,c,!1),null!==s&&null!==f&&s$(o,f,s,c,!0)}e:{if(\"select\"===(u=(i=r?eR(r):window).nodeName&&i.nodeName.toLowerCase())||\"input\"===u&&\"file\"===i.type)var g,y=u8;else if(u0(i)){if(u5)y=sa;else{y=sr;var v=sn}}else(u=i.nodeName)&&\"input\"===u.toLowerCase()&&(\"checkbox\"===i.type||\"radio\"===i.type)&&(y=sl);if(y&&(y=y(e,r))){u1(o,y,n,l);break e}v&&v(e,i,r),\"focusout\"===e&&r&&\"number\"===i.type&&null!=r.memoizedProps.value&&te(i,\"number\",i.value)}switch(v=r?eR(r):window,e){case\"focusin\":(u0(v)||\"true\"===v.contentEditable)&&(sf=v,sd=r,sp=null);break;case\"focusout\":sp=sd=sf=null;break;case\"mousedown\":sm=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":sm=!1,sh(o,n,l);break;case\"selectionchange\":if(sc)break;case\"keydown\":case\"keyup\":sh(o,n,l)}if(uW)t:{switch(e){case\"compositionstart\":var b=\"onCompositionStart\";break t;case\"compositionend\":b=\"onCompositionEnd\";break t;case\"compositionupdate\":b=\"onCompositionUpdate\";break t}b=void 0}else uZ?uX(e,n)&&(b=\"onCompositionEnd\"):\"keydown\"===e&&229===n.keyCode&&(b=\"onCompositionStart\");b&&(uK&&\"ko\"!==n.locale&&(uZ||\"onCompositionStart\"!==b?\"onCompositionEnd\"===b&&uZ&&(g=u$()):(uV=\"value\"in(uB=l)?uB.value:uB.textContent,uZ=!0)),0<(v=sV(r,b)).length&&(b=new un(b,e,null,n,l),o.push({event:b,listeners:v}),g?b.data=g:null!==(g=uG(n))&&(b.data=g))),(g=uq?function(e,t){switch(e){case\"compositionend\":return uG(t);case\"keypress\":if(32!==t.which)return null;return uY=!0,\" \";case\"textInput\":return\" \"===(e=t.data)&&uY?null:e;default:return null}}(e,n):function(e,t){if(uZ)return\"compositionend\"===e||!uW&&uX(e,t)?(e=u$(),uQ=uV=uB=null,uZ=!1,e):null;switch(e){case\"paste\":default:return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return uK&&\"ko\"!==t.locale?null:t.data}}(e,n))&&0<(b=sV(r,\"onBeforeInput\")).length&&(v=new un(\"onBeforeInput\",\"beforeinput\",null,n,l),o.push({event:v,listeners:b}),v.data=g),function(e,t,n,r,l){if(\"submit\"===t&&n&&n.stateNode===l){var a=eD(l).action,o=r.submitter;if(o&&null!=(t=(t=eD(o))?t.formAction:o.getAttribute(\"formAction\"))&&(a=t,o=null),\"function\"==typeof a){var i=new i3(\"action\",\"action\",null,r,l);e.push({event:i,listeners:[{instance:null,listener:function(){if(!r.defaultPrevented){if(i.preventDefault(),o){var e=o.ownerDocument.createElement(\"input\");e.name=o.name,e.value=o.value,o.parentNode.insertBefore(e,o);var t=new FormData(l);e.parentNode.removeChild(e)}else t=new FormData(l);ll(n,{pending:!0,data:t,method:l.method,action:a},a,t)}},currentTarget:l}]})}}}(o,e,r,n,l)}sM(o,t)})}function sB(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sV(e,t){for(var n=t+\"Capture\",r=[];null!==e;){var l=e,a=l.stateNode;5!==(l=l.tag)&&26!==l&&27!==l||null===a||(null!=(l=iQ(e,n))&&r.unshift(sB(e,l,a)),null!=(l=iQ(e,t))&&r.push(sB(e,l,a))),e=e.return}return r}function sQ(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag);return e||null}function s$(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(i=i.tag,null!==u&&u===r)break;5!==i&&26!==i&&27!==i||null===s||(u=s,l?null!=(s=iQ(n,a))&&o.unshift(sB(n,s,u)):l||null!=(s=iQ(n,a))&&o.push(sB(n,s,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var sj=/\\r\\n?/g,sW=/\\u0000|\\uFFFD/g;function sH(e){return(\"string\"==typeof e?e:\"\"+e).replace(sj,\"\\n\").replace(sW,\"\")}function sq(e,t,n){if(t=sH(t),sH(e)!==t&&n)throw Error(i(425))}function sK(){}function sY(e,t,n,r,l,a){switch(n){case\"children\":\"string\"==typeof r?\"body\"===t||\"textarea\"===t&&\"\"===r||tu(e,r):\"number\"==typeof r&&\"body\"!==t&&tu(e,\"\"+r);break;case\"className\":eK(e,\"class\",r);break;case\"tabIndex\":eK(e,\"tabindex\",r);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":eK(e,n,r);break;case\"style\":tf(e,r,a);break;case\"src\":case\"href\":if(null==r||\"function\"==typeof r||\"symbol\"==typeof r||\"boolean\"==typeof r){e.removeAttribute(n);break}e.setAttribute(n,\"\"+r);break;case\"action\":case\"formAction\":if(\"function\"==typeof r){e.setAttribute(n,\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\");break}if(\"function\"==typeof a&&(\"formAction\"===n?(\"input\"!==t&&sY(e,t,\"name\",l.name,l,null),sY(e,t,\"formEncType\",l.formEncType,l,null),sY(e,t,\"formMethod\",l.formMethod,l,null),sY(e,t,\"formTarget\",l.formTarget,l,null)):(sY(e,t,\"encType\",l.encType,l,null),sY(e,t,\"method\",l.method,l,null),sY(e,t,\"target\",l.target,l,null))),null==r||\"symbol\"==typeof r||\"boolean\"==typeof r){e.removeAttribute(n);break}e.setAttribute(n,\"\"+r);break;case\"onClick\":null!=r&&(e.onclick=sK);break;case\"onScroll\":null!=r&&sO(\"scroll\",e);break;case\"onScrollEnd\":null!=r&&sO(\"scrollend\",e);break;case\"dangerouslySetInnerHTML\":if(null!=r){if(\"object\"!=typeof r||!(\"__html\"in r))throw Error(i(61));if(null!=(r=r.__html)){if(null!=l.children)throw Error(i(60));ti(e,r)}}break;case\"multiple\":e.multiple=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r;break;case\"muted\":e.muted=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r;break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":case\"autoFocus\":break;case\"xlinkHref\":if(null==r||\"function\"==typeof r||\"boolean\"==typeof r||\"symbol\"==typeof r){e.removeAttribute(\"xlink:href\");break}e.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",\"\"+r);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,\"\"+r):e.removeAttribute(n);break;case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,\"\"):e.removeAttribute(n);break;case\"capture\":case\"download\":!0===r?e.setAttribute(n,\"\"):!1!==r&&null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case\"cols\":case\"rows\":case\"size\":case\"span\":null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case\"rowSpan\":case\"start\":null==r||\"function\"==typeof r||\"symbol\"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case\"xlinkActuate\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",r);break;case\"xlinkArcrole\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",r);break;case\"xlinkRole\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:role\",r);break;case\"xlinkShow\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:show\",r);break;case\"xlinkTitle\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:title\",r);break;case\"xlinkType\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:type\",r);break;case\"xmlBase\":eY(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",r);break;case\"xmlLang\":eY(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",r);break;case\"xmlSpace\":eY(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",r);break;case\"is\":eq(e,\"is\",r);break;default:2<n.length&&(\"o\"===n[0]||\"O\"===n[0])&&(\"n\"===n[1]||\"N\"===n[1])||eq(e,l=tp.get(n)||n,r)}}function sX(e,t,n,r,l,a){switch(n){case\"style\":tf(e,r,a);break;case\"dangerouslySetInnerHTML\":if(null!=r){if(\"object\"!=typeof r||!(\"__html\"in r))throw Error(i(61));if(null!=(t=r.__html)){if(null!=l.children)throw Error(i(60));ti(e,t)}}break;case\"children\":\"string\"==typeof r?tu(e,r):\"number\"==typeof r&&tu(e,\"\"+r);break;case\"onScroll\":null!=r&&sO(\"scroll\",e);break;case\"onScrollEnd\":null!=r&&sO(\"scrollend\",e);break;case\"onClick\":null!=r&&(e.onclick=sK);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;default:eB.hasOwnProperty(n)||(\"boolean\"==typeof r&&(r=\"\"+r),eq(e,n,r))}}function sG(e,t,n){switch(t){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":sO(\"invalid\",e);var r=null,l=null,a=null,o=null,u=null,s=null;for(f in n)if(n.hasOwnProperty(f)){var c=n[f];if(null!=c)switch(f){case\"name\":r=c;break;case\"type\":l=c;break;case\"checked\":u=c;break;case\"defaultChecked\":s=c;break;case\"value\":a=c;break;case\"defaultValue\":o=c;break;case\"children\":case\"dangerouslySetInnerHTML\":if(null!=c)throw Error(i(137,t));break;default:sY(e,t,f,c,n,null)}}e9(e,a,o,u,s,l,r,!1),e3(e);return;case\"select\":sO(\"invalid\",e);var f=l=a=null;for(r in n)if(n.hasOwnProperty(r)&&null!=(o=n[r]))switch(r){case\"value\":a=o;break;case\"defaultValue\":l=o;break;case\"multiple\":f=o;default:sY(e,t,r,o,n,null)}t=a,n=l,e.multiple=!!f,null!=t?tn(e,!!f,t,!1):null!=n&&tn(e,!!f,n,!0);return;case\"textarea\":for(l in sO(\"invalid\",e),a=r=f=null,n)if(n.hasOwnProperty(l)&&null!=(o=n[l]))switch(l){case\"value\":f=o;break;case\"defaultValue\":r=o;break;case\"children\":a=o;break;case\"dangerouslySetInnerHTML\":if(null!=o)throw Error(i(91));break;default:sY(e,t,l,o,n,null)}tl(e,f,r,a),e3(e);return;case\"option\":for(o in n)n.hasOwnProperty(o)&&null!=(f=n[o])&&(\"selected\"===o?e.selected=f&&\"function\"!=typeof f&&\"symbol\"!=typeof f:sY(e,t,o,f,n,null));return;case\"dialog\":sO(\"cancel\",e),sO(\"close\",e);break;case\"iframe\":case\"object\":sO(\"load\",e);break;case\"video\":case\"audio\":for(f=0;f<sL.length;f++)sO(sL[f],e);break;case\"image\":sO(\"error\",e),sO(\"load\",e);break;case\"details\":sO(\"toggle\",e);break;case\"embed\":case\"source\":case\"img\":case\"link\":sO(\"error\",e),sO(\"load\",e);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(u in n)if(n.hasOwnProperty(u)&&null!=(f=n[u]))switch(u){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(137,t));default:sY(e,t,u,f,n,null)}return;default:if(td(t)){for(s in n)n.hasOwnProperty(s)&&null!=(f=n[s])&&sX(e,t,s,f,n,null);return}}for(a in n)n.hasOwnProperty(a)&&null!=(f=n[a])&&sY(e,t,a,f,n,null)}function sZ(e,t,n,r){switch(t){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var l=null,a=null,o=null,u=null,s=null,c=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&null!=d)switch(m){case\"checked\":case\"value\":break;case\"defaultValue\":s=d;default:r.hasOwnProperty(m)||sY(e,t,m,null,r,d)}}for(var p in r){var m=r[p];if(d=n[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case\"type\":a=m;break;case\"name\":l=m;break;case\"checked\":c=m;break;case\"defaultChecked\":f=m;break;case\"value\":o=m;break;case\"defaultValue\":u=m;break;case\"children\":case\"dangerouslySetInnerHTML\":if(null!=m)throw Error(i(137,t));break;default:m!==d&&sY(e,t,p,m,r,d)}}e7(e,o,u,s,c,f,a,l);return;case\"select\":for(a in m=o=u=p=null,n)if(s=n[a],n.hasOwnProperty(a)&&null!=s)switch(a){case\"value\":break;case\"multiple\":m=s;default:r.hasOwnProperty(a)||sY(e,t,a,null,r,s)}for(l in r)if(a=r[l],s=n[l],r.hasOwnProperty(l)&&(null!=a||null!=s))switch(l){case\"value\":p=a;break;case\"defaultValue\":u=a;break;case\"multiple\":o=a;default:a!==s&&sY(e,t,l,a,r,s)}t=u,n=o,r=m,null!=p?tn(e,!!n,p,!1):!!r!=!!n&&(null!=t?tn(e,!!n,t,!0):tn(e,!!n,n?[]:\"\",!1));return;case\"textarea\":for(u in m=p=null,n)if(l=n[u],n.hasOwnProperty(u)&&null!=l&&!r.hasOwnProperty(u))switch(u){case\"value\":case\"children\":break;default:sY(e,t,u,null,r,l)}for(o in r)if(l=r[o],a=n[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case\"value\":p=l;break;case\"defaultValue\":m=l;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(null!=l)throw Error(i(91));break;default:l!==a&&sY(e,t,o,l,r,a)}tr(e,p,m);return;case\"option\":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&(\"selected\"===h?e.selected=!1:sY(e,t,h,null,r,p));for(s in r)p=r[s],m=n[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)&&(\"selected\"===s?e.selected=p&&\"function\"!=typeof p&&\"symbol\"!=typeof p:sY(e,t,s,p,r,m));return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&sY(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":if(null!=p)throw Error(i(137,t));break;default:sY(e,t,c,p,r,m)}return;default:if(td(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&sX(e,t,y,null,r,p);for(f in r)p=r[f],m=n[f],r.hasOwnProperty(f)&&p!==m&&(null!=p||null!=m)&&sX(e,t,f,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&sY(e,t,v,null,r,p);for(d in r)p=r[d],m=n[d],r.hasOwnProperty(d)&&p!==m&&(null!=p||null!=m)&&sY(e,t,d,p,r,m)}var sJ=null,s0=null;function s1(e){return 9===e.nodeType?e:e.ownerDocument}function s2(e){switch(e){case\"http://www.w3.org/2000/svg\":return 1;case\"http://www.w3.org/1998/Math/MathML\":return 2;default:return 0}}function s3(e,t){if(0===e)switch(t){case\"svg\":return 1;case\"math\":return 2;default:return 0}return 1===e&&\"foreignObject\"===t?0:e}function s4(e,t){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof t.children||\"number\"==typeof t.children||\"object\"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var s6=null,s8=\"function\"==typeof setTimeout?setTimeout:void 0,s5=\"function\"==typeof clearTimeout?clearTimeout:void 0,s7=\"function\"==typeof Promise?Promise:void 0,s9=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==s7?function(e){return s7.resolve(null).then(e).catch(ce)}:s8;function ce(e){setTimeout(function(){throw e})}function ct(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&8===l.nodeType){if(\"/$\"===(n=l.data)){if(0===r){e.removeChild(l),uL(t);return}r--}else\"$\"!==n&&\"$?\"!==n&&\"$!\"!==n||r++}n=l}while(n);uL(t)}function cn(e){var t=e.nodeType;if(9===t)cr(e);else if(1===t)switch(e.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":cr(e);break;default:e.textContent=\"\"}}function cr(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":cr(n),eF(n);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(\"stylesheet\"===n.rel.toLowerCase())continue}e.removeChild(n)}}function cl(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if(\"$\"===(t=e.data)||\"$!\"===t||\"$?\"===t||\"F!\"===t||\"F\"===t)break;if(\"/$\"===t)return null}}return e}function ca(e){return cl(e.nextSibling)}function co(e,t,n,r,l){switch(e[eE]=l,e[ex]=n,r=0!=(1&l.mode),t){case\"dialog\":sO(\"cancel\",e),sO(\"close\",e);break;case\"iframe\":case\"object\":case\"embed\":sO(\"load\",e);break;case\"video\":case\"audio\":for(l=0;l<sL.length;l++)sO(sL[l],e);break;case\"source\":sO(\"error\",e);break;case\"img\":case\"image\":case\"link\":sO(\"error\",e),sO(\"load\",e);break;case\"details\":sO(\"toggle\",e);break;case\"input\":sO(\"invalid\",e),e9(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),e3(e);break;case\"select\":sO(\"invalid\",e);break;case\"textarea\":sO(\"invalid\",e),tl(e,n.value,n.defaultValue,n.children),e3(e)}\"string\"!=typeof(l=n.children)&&\"number\"!=typeof l||e.textContent===\"\"+l||(!0!==n.suppressHydrationWarning&&sq(e.textContent,l,r),r||\"body\"===t||(e.textContent=l)),null!=n.onScroll&&sO(\"scroll\",e),null!=n.onScrollEnd&&sO(\"scrollend\",e),null!=n.onClick&&(e.onclick=sK)}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(\"$\"===n||\"$!\"===n||\"$?\"===n){if(0===t)return e;t--}else\"/$\"===n&&t++}e=e.previousSibling}return null}function cu(e,t,n){switch(t=s1(n),e){case\"html\":if(!(e=t.documentElement))throw Error(i(452));return e;case\"head\":if(!(e=t.head))throw Error(i(453));return e;case\"body\":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}var cs=new Map,cc=new Set;function cf(e){return\"function\"==typeof e.getRootNode?e.getRootNode():e.ownerDocument}var cd={prefetchDNS:function(e){cp(\"dns-prefetch\",e,null)},preconnect:function(e,t){cp(\"preconnect\",e,t)},preload:function(e,t,n){var r=document;if(e&&t&&r){var l='link[rel=\"preload\"][as=\"'+e5(t)+'\"]';\"image\"===t&&n&&n.imageSrcSet?(l+='[imagesrcset=\"'+e5(n.imageSrcSet)+'\"]',\"string\"==typeof n.imageSizes&&(l+='[imagesizes=\"'+e5(n.imageSizes)+'\"]')):l+='[href=\"'+e5(e)+'\"]';var a=l;switch(t){case\"style\":a=cm(e);break;case\"script\":a=cy(e)}cs.has(a)||(e=u({rel:\"preload\",href:\"image\"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),cs.set(a,e),null!==r.querySelector(l)||\"style\"===t&&r.querySelector(ch(a))||\"script\"===t&&r.querySelector(cv(a))||(sG(t=r.createElement(\"link\"),\"link\",e),eI(t),r.head.appendChild(t)))}},preloadModule:function(e,t){var n=document;if(e){var r=t&&\"string\"==typeof t.as?t.as:\"script\",l='link[rel=\"modulepreload\"][as=\"'+e5(r)+'\"][href=\"'+e5(e)+'\"]',a=l;switch(r){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":a=cy(e)}if(!cs.has(a)&&(e=u({rel:\"modulepreload\",href:e},t),cs.set(a,e),null===n.querySelector(l))){switch(r){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(n.querySelector(cv(a)))return}sG(r=n.createElement(\"link\"),\"link\",e),eI(r),n.head.appendChild(r)}}},preinitStyle:function(e,t,n){var r=document;if(e){var l=eA(r).hoistableStyles,a=cm(e);t=t||\"default\";var o=l.get(a);if(!o){var i={loading:0,preload:null};if(o=r.querySelector(ch(a)))i.loading=5;else{e=u({rel:\"stylesheet\",href:e,\"data-precedence\":t},n),(n=cs.get(a))&&cw(e,n);var s=o=r.createElement(\"link\");eI(s),sG(s,\"link\",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener(\"load\",function(){i.loading|=1}),s.addEventListener(\"error\",function(){i.loading|=2}),i.loading|=4,ck(o,t,r)}o={type:\"stylesheet\",instance:o,count:1,state:i},l.set(a,o)}}},preinitScript:function(e,t){var n=document;if(e){var r=eA(n).hoistableScripts,l=cy(e),a=r.get(l);a||((a=n.querySelector(cv(l)))||(e=u({src:e,async:!0},t),(t=cs.get(l))&&cS(e,t),eI(a=n.createElement(\"script\")),sG(a,\"link\",e),n.head.appendChild(a)),a={type:\"script\",instance:a,count:1,state:null},r.set(l,a))}},preinitModuleScript:function(e,t){var n=document;if(e){var r=eA(n).hoistableScripts,l=cy(e),a=r.get(l);a||((a=n.querySelector(cv(l)))||(e=u({src:e,async:!0,type:\"module\"},t),(t=cs.get(l))&&cS(e,t),eI(a=n.createElement(\"script\")),sG(a,\"link\",e),n.head.appendChild(a)),a={type:\"script\",instance:a,count:1,state:null},r.set(l,a))}}};function cp(e,t,n){var r=document;if(\"string\"==typeof t&&t){var l=e5(t);l='link[rel=\"'+e+'\"][href=\"'+l+'\"]',\"string\"==typeof n&&(l+='[crossorigin=\"'+n+'\"]'),cc.has(l)||(cc.add(l),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(l)&&(sG(t=r.createElement(\"link\"),\"link\",e),eI(t),r.head.appendChild(t)))}}function cm(e){return'href=\"'+e5(e)+'\"'}function ch(e){return'link[rel=\"stylesheet\"]['+e+\"]\"}function cg(e){return u({},e,{\"data-precedence\":e.precedence,precedence:null})}function cy(e){return'[src=\"'+e5(e)+'\"]'}function cv(e){return\"script[async]\"+e}function cb(e,t,n){if(t.count++,null===t.instance)switch(t.type){case\"style\":var r=e.querySelector('style[data-href~=\"'+e5(n.href)+'\"]');if(r)return t.instance=r,eI(r),r;var l=u({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return eI(r=(e.ownerDocument||e).createElement(\"style\")),sG(r,\"style\",l),ck(r,n.precedence,e),t.instance=r;case\"stylesheet\":l=cm(n.href);var a=e.querySelector(ch(l));if(a)return t.state.loading|=4,t.instance=a,eI(a),a;r=cg(n),(l=cs.get(l))&&cw(r,l),eI(a=(e.ownerDocument||e).createElement(\"link\"));var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sG(a,\"link\",r),t.state.loading|=4,ck(a,n.precedence,e),t.instance=a;case\"script\":if(a=cy(n.src),l=e.querySelector(cv(a)))return t.instance=l,eI(l),l;return r=n,(l=cs.get(a))&&cS(r=u({},n),l),eI(l=(e=e.ownerDocument||e).createElement(\"script\")),sG(l,\"link\",r),e.head.appendChild(l),t.instance=l;case\"void\":return null;default:throw Error(i(443,t.type))}else\"stylesheet\"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,ck(r,n.precedence,e));return t.instance}function ck(e,t,n){for(var r=n.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o<r.length;o++){var i=r[o];if(i.dataset.precedence===t)a=i;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function cw(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function cS(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var cC=null;function cE(e,t,n){if(null===cC){var r=new Map,l=cC=new Map;l.set(n,r)}else(r=(l=cC).get(n))||(r=new Map,l.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[eT]||a[eE]||\"link\"===e&&\"stylesheet\"===a.getAttribute(\"rel\"))&&\"http://www.w3.org/2000/svg\"!==a.namespaceURI){var o=a.getAttribute(t)||\"\";o=e+o;var i=r.get(o);i?i.push(a):r.set(o,[a])}}return r}function cx(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,\"title\"===t?e.querySelector(\"head > title\"):null)}var cz=null;function cP(){}function cN(){if(this.count--,0===this.count){if(this.stylesheets)cL(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var c_=null;function cL(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,c_=new Map,t.forEach(cT,e),c_=null,cN.call(e))}function cT(e,t){if(!(4&t.state.loading)){var n=c_.get(e);if(n)var r=n.get(null);else{n=new Map,c_.set(e,n);for(var l=e.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),a=0;a<l.length;a++){var o=l[a];(\"link\"===o.nodeName||\"not all\"!==o.getAttribute(\"media\"))&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}o=(l=t.instance).getAttribute(\"data-precedence\"),(a=n.get(o)||r)===r&&n.set(null,l),n.set(o,l),this.count++,r=cN.bind(this),l.addEventListener(\"load\",r),l.addEventListener(\"error\",r),a?a.parentNode.insertBefore(l,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(l,e.firstChild),t.state.loading|=4}}var cF=o.Dispatcher;\"undefined\"!=typeof document&&(cF.current=cd);var cM=\"function\"==typeof reportError?reportError:function(e){console.error(e)};function cO(e){this._internalRoot=e}function cR(e){this._internalRoot=e}function cD(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function cA(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function cI(){}function cU(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a;if(\"function\"==typeof l){var i=l;l=function(){var e=iD(o);i.call(e)}}iR(t,o,e,l)}else o=function(e,t,n,r,l){if(l){if(\"function\"==typeof r){var a=r;r=function(){var e=iD(o);a.call(e)}}var o=iO(t,r,e,0,null,!1,!1,\"\",cI,null,null);return e._reactRootContainer=o,e[ez]=o.current,sA(8===e.nodeType?e.parentNode:e),o6(),o}if(cn(e),\"function\"==typeof r){var i=r;r=function(){var e=iD(u);i.call(e)}}var u=iF(e,0,!1,null,null,!1,!1,\"\",cI,null,null);return e._reactRootContainer=u,e[ez]=u.current,sA(8===e.nodeType?e.parentNode:e),o6(function(){iR(t,u,n,r)}),u}(n,t,e,l,r);return iD(o)}function cB(e,t){return\"font\"===e?\"\":\"string\"==typeof t?\"use-credentials\"===t?t:\"\":void 0}cR.prototype.render=cO.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));iR(e,t,null,null)},cR.prototype.unmount=cO.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;o6(function(){iR(null,e,null,null)}),t[ez]=null}},cR.prototype.unstable_scheduleHydration=function(e){if(e){var t=ek;e={blockedOn:null,target:e,priority:t};for(var n=0;n<ub.length&&0!==t&&t<ub[n].priority;n++);ub.splice(n,0,e),0===n&&uC(e)}};var cV=o.Dispatcher;o.Events=[eO,eR,eD,tb,tk,o4];var cQ={findFiberByHostInstance:eM,bundleType:0,version:\"18.3.0-canary-14898b6a9-20240318\",rendererPackageName:\"react-dom\"},c$={bundleType:cQ.bundleType,version:cQ.version,rendererPackageName:cQ.rendererPackageName,rendererConfig:cQ.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tE(e))?null:e.stateNode},findFiberByHostInstance:cQ.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.0-canary-14898b6a9-20240318\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cj=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cj.isDisabled&&cj.supportsFiber)try{el=cj.inject(c$),ea=cj}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!cD(t))throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:v,key:null==r?null:\"\"+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!cD(e))throw Error(i(299));var n=!1,r=\"\",l=cM,a=null;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&(a=t.unstable_transitionCallbacks)),t=iF(e,1,!1,null,null,n,!1,r,l,a,null),e[ez]=t.current,cF.current=cd,sA(8===e.nodeType?e.parentNode:e),new cO(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if(\"function\"==typeof e.render)throw Error(i(188));throw Error(i(268,e=Object.keys(e).join(\",\")))}return e=null===(e=tE(t))?null:e.stateNode},t.flushSync=function(e){return o6(e)},t.hydrate=function(e,t,n){if(!cA(t))throw Error(i(299));return cU(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!cD(e))throw Error(i(299));var r=!1,l=\"\",a=cM,o=null,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&(o=n.unstable_transitionCallbacks),void 0!==n.formState&&(u=n.formState)),t=iO(t,null,e,1,null!=n?n:null,r,!1,l,a,o,u),e[ez]=t.current,cF.current=cd,sA(e),new cR(t)},t.preconnect=function(e,t){var n=cV.current;n&&\"string\"==typeof e&&(t=t?\"string\"==typeof(t=t.crossOrigin)?\"use-credentials\"===t?t:\"\":void 0:null,n.preconnect(e,t))},t.prefetchDNS=function(e){var t=cV.current;t&&\"string\"==typeof e&&t.prefetchDNS(e)},t.preinit=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e&&t&&\"string\"==typeof t.as){var r=t.as,l=cB(r,t.crossOrigin),a=\"string\"==typeof t.integrity?t.integrity:void 0,o=\"string\"==typeof t.fetchPriority?t.fetchPriority:void 0;\"style\"===r?n.preinitStyle(e,\"string\"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:o}):\"script\"===r&&n.preinitScript(e,{crossOrigin:l,integrity:a,fetchPriority:o,nonce:\"string\"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e){if(\"object\"==typeof t&&null!==t){if(null==t.as||\"script\"===t.as){var r=cB(t.as,t.crossOrigin);n.preinitModuleScript(e,{crossOrigin:r,integrity:\"string\"==typeof t.integrity?t.integrity:void 0,nonce:\"string\"==typeof t.nonce?t.nonce:void 0})}}else null==t&&n.preinitModuleScript(e)}},t.preload=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e&&\"object\"==typeof t&&null!==t&&\"string\"==typeof t.as){var r=t.as,l=cB(r,t.crossOrigin);n.preload(e,r,{crossOrigin:l,integrity:\"string\"==typeof t.integrity?t.integrity:void 0,nonce:\"string\"==typeof t.nonce?t.nonce:void 0,type:\"string\"==typeof t.type?t.type:void 0,fetchPriority:\"string\"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:\"string\"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:\"string\"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:\"string\"==typeof t.imageSizes?t.imageSizes:void 0})}},t.preloadModule=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e){if(t){var r=cB(t.as,t.crossOrigin);n.preloadModule(e,{as:\"string\"==typeof t.as&&\"script\"!==t.as?t.as:void 0,crossOrigin:r,integrity:\"string\"==typeof t.integrity?t.integrity:void 0})}else n.preloadModule(e)}},t.render=function(e,t,n){if(!cA(t))throw Error(i(299));return cU(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!cA(e))throw Error(i(299));return!!e._reactRootContainer&&(o6(function(){cU(null,null,e,!1,function(){e._reactRootContainer=null,e[ez]=null})}),!0)},t.unstable_batchedUpdates=o4,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cA(n))throw Error(i(299));if(null==e||void 0===e._reactInternals)throw Error(i(38));return cU(e,t,n,!1,r)},t.useFormState=function(e,t,n){return c.current.useFormState(e,t,n)},t.useFormStatus=function(){return c.current.useHostTransitionStatus()},t.version=\"18.3.0-canary-14898b6a9-20240318\"}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/framework-00a8ba1a63cfdc9e.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{64448:function(e,n,t){/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var r,l,a,u,o,i,s=t(67294),c=t(63840);function f(e){for(var n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,t=1;t<arguments.length;t++)n+=\"&args[]=\"+encodeURIComponent(arguments[t]);return\"Minified React error #\"+e+\"; visit \"+n+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var d=new Set,p={};function m(e,n){h(e,n),h(e+\"Capture\",n)}function h(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var g=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),v=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,b={},k={};function w(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}var S={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){S[e]=new w(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var n=e[0];S[n]=new w(n,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){S[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){S[e]=new w(e,2,!1,e,null,!1,!1)}),\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){S[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){S[e]=new w(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){S[e]=new w(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){S[e]=new w(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){S[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function _(e,n,t,r){var l,a=S.hasOwnProperty(n)?S[n]:null;(null!==a?0!==a.type:r||!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])&&(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case\"function\":case\"symbol\":return!0;case\"boolean\":if(r)return!1;if(null!==t)return!t.acceptsBooleans;return\"data-\"!==(e=e.toLowerCase().slice(0,5))&&\"aria-\"!==e;default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,a,r)&&(t=null),r||null===a?(l=n,(!!v.call(k,l)||!v.call(b,l)&&(y.test(l)?k[l]=!0:(b[l]=!0,!1)))&&(null===t?e.removeAttribute(n):e.setAttribute(n,\"\"+t))):a.mustUseProperty?e[a.propertyName]=null===t?3!==a.type&&\"\":t:(n=a.attributeName,r=a.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(a=a.type)||4===a&&!0===t?\"\":\"\"+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)});var C=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for(\"react.element\"),N=Symbol.for(\"react.portal\"),z=Symbol.for(\"react.fragment\"),T=Symbol.for(\"react.strict_mode\"),L=Symbol.for(\"react.profiler\"),R=Symbol.for(\"react.provider\"),M=Symbol.for(\"react.context\"),F=Symbol.for(\"react.forward_ref\"),O=Symbol.for(\"react.suspense\"),D=Symbol.for(\"react.suspense_list\"),I=Symbol.for(\"react.memo\"),U=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\"),Symbol.for(\"react.debug_trace_mode\");var V=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.cache\"),Symbol.for(\"react.tracing_marker\");var $=Symbol.iterator;function A(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=$&&e[$]||e[\"@@iterator\"])?e:null}var j,B=Object.assign;function H(e){if(void 0===j)try{throw Error()}catch(e){var n=e.stack.trim().match(/\\n( *(at )?)/);j=n&&n[1]||\"\"}return\"\\n\"+j+e}var W=!1;function Q(e,n){if(!e||W)return\"\";W=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n){if(n=function(){throw Error()},Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&\"string\"==typeof n.stack){for(var l=n.stack.split(\"\\n\"),a=r.stack.split(\"\\n\"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do if(u--,0>--o||l[u]!==a[o]){var i=\"\\n\"+l[u].replace(\" at new \",\" at \");return e.displayName&&i.includes(\"<anonymous>\")&&(i=i.replace(\"<anonymous>\",e.displayName)),i}while(1<=u&&0<=o);break}}}finally{W=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:\"\")?H(e):\"\"}function q(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function K(e){var n=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===n||\"radio\"===n)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var n=K(e)?\"checked\":\"value\",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=\"\"+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&\"function\"==typeof t.get&&\"function\"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function X(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r=\"\";return e&&(r=K(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==t&&(n.setValue(e),!0)}function G(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Z(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function J(e,n){var t=null==n.defaultValue?\"\":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=q(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:\"checkbox\"===n.type||\"radio\"===n.type?null!=n.checked:null!=n.value}}function ee(e,n){null!=(n=n.checked)&&_(e,\"checked\",n,!1)}function en(e,n){ee(e,n);var t=q(n.value),r=n.type;if(null!=t)\"number\"===r?(0===t&&\"\"===e.value||e.value!=t)&&(e.value=\"\"+t):e.value!==\"\"+t&&(e.value=\"\"+t);else if(\"submit\"===r||\"reset\"===r){e.removeAttribute(\"value\");return}n.hasOwnProperty(\"value\")?er(e,n.type,t):n.hasOwnProperty(\"defaultValue\")&&er(e,n.type,q(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function et(e,n,t){if(n.hasOwnProperty(\"value\")||n.hasOwnProperty(\"defaultValue\")){var r=n.type;if(!(\"submit\"!==r&&\"reset\"!==r||void 0!==n.value&&null!==n.value))return;n=\"\"+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}\"\"!==(t=e.name)&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,\"\"!==t&&(e.name=t)}function er(e,n,t){(\"number\"!==n||G(e.ownerDocument)!==e)&&(null==t?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+t&&(e.defaultValue=\"\"+t))}var el=Array.isArray;function ea(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n[\"$\"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty(\"$\"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(l=0,t=\"\"+q(t),n=null;l<e.length;l++){if(e[l].value===t){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function eu(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(f(91));return B({},n,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function eo(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(f(92));if(el(t)){if(1<t.length)throw Error(f(93));t=t[0]}n=t}null==n&&(n=\"\"),t=n}e._wrapperState={initialValue:q(t)}}function ei(e,n){var t=q(n.value),r=q(n.defaultValue);null!=t&&((t=\"\"+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=\"\"+r)}function es(e){var n=e.textContent;n===e._wrapperState.initialValue&&\"\"!==n&&null!==n&&(e.value=n)}function ec(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function ef(e,n){return null==e||\"http://www.w3.org/1999/xhtml\"===e?ec(n):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===n?\"http://www.w3.org/1999/xhtml\":e}var ed,ep,em=(ed=function(e,n){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=n;else{for((ep=ep||document.createElement(\"div\")).innerHTML=\"<svg>\"+n.valueOf().toString()+\"</svg>\",n=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction(function(){return ed(e,n,t,r)})}:ed);function eh(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType){t.nodeValue=n;return}}e.textContent=n}var eg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ev=[\"Webkit\",\"ms\",\"Moz\",\"O\"];function ey(e,n,t){return null==n||\"boolean\"==typeof n||\"\"===n?\"\":t||\"number\"!=typeof n||0===n||eg.hasOwnProperty(e)&&eg[e]?(\"\"+n).trim():n+\"px\"}function eb(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf(\"--\"),l=ey(t,n[t],r);\"float\"===t&&(t=\"cssFloat\"),r?e.setProperty(t,l):e[t]=l}}Object.keys(eg).forEach(function(e){ev.forEach(function(n){eg[n=n+e.charAt(0).toUpperCase()+e.substring(1)]=eg[e]})});var ek=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ew(e,n){if(n){if(ek[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(f(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(f(60));if(\"object\"!=typeof n.dangerouslySetInnerHTML||!(\"__html\"in n.dangerouslySetInnerHTML))throw Error(f(61))}if(null!=n.style&&\"object\"!=typeof n.style)throw Error(f(62))}}function eS(e,n){if(-1===e.indexOf(\"-\"))return\"string\"==typeof n.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var ex=null;function eE(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var e_=null,eC=null,eP=null;function eN(e){if(e=rD(e)){if(\"function\"!=typeof e_)throw Error(f(280));var n=e.stateNode;n&&(n=rU(n),e_(e.stateNode,e.type,n))}}function ez(e){eC?eP?eP.push(e):eP=[e]:eC=e}function eT(){if(eC){var e=eC,n=eP;if(eP=eC=null,eN(e),n)for(e=0;e<n.length;e++)eN(n[e])}}function eL(e,n){return e(n)}function eR(){}var eM=!1;function eF(e,n,t){if(eM)return e(n,t);eM=!0;try{return eL(e,n,t)}finally{eM=!1,(null!==eC||null!==eP)&&(eR(),eT())}}function eO(e,n){var t=e.stateNode;if(null===t)return null;var r=rU(t);if(null===r)return null;switch(t=r[n],n){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break;default:e=!1}if(e)return null;if(t&&\"function\"!=typeof t)throw Error(f(231,n,typeof t));return t}var eD=!1;if(g)try{var eI={};Object.defineProperty(eI,\"passive\",{get:function(){eD=!0}}),window.addEventListener(\"test\",eI,eI),window.removeEventListener(\"test\",eI,eI)}catch(e){eD=!1}function eU(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var eV=!1,e$=null,eA=!1,ej=null,eB={onError:function(e){eV=!0,e$=e}};function eH(e,n,t,r,l,a,u,o,i){eV=!1,e$=null,eU.apply(eB,arguments)}function eW(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function eQ(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function eq(e){if(eW(e)!==e)throw Error(f(188))}function eK(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=eW(e)))throw Error(f(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return eq(l),e;if(a===r)return eq(l),n;a=a.sibling}throw Error(f(188))}if(t.return!==r.return)t=l,r=a;else{for(var u=!1,o=l.child;o;){if(o===t){u=!0,t=l,r=a;break}if(o===r){u=!0,r=l,t=a;break}o=o.sibling}if(!u){for(o=a.child;o;){if(o===t){u=!0,t=a,r=l;break}if(o===r){u=!0,r=a,t=l;break}o=o.sibling}if(!u)throw Error(f(189))}}if(t.alternate!==r)throw Error(f(190))}if(3!==t.tag)throw Error(f(188));return t.stateNode.current===t?e:n}(e))?function e(n){if(5===n.tag||6===n.tag)return n;for(n=n.child;null!==n;){var t=e(n);if(null!==t)return t;n=n.sibling}return null}(e):null}var eY=c.unstable_scheduleCallback,eX=c.unstable_cancelCallback,eG=c.unstable_shouldYield,eZ=c.unstable_requestPaint,eJ=c.unstable_now,e0=c.unstable_getCurrentPriorityLevel,e1=c.unstable_ImmediatePriority,e2=c.unstable_UserBlockingPriority,e3=c.unstable_NormalPriority,e4=c.unstable_LowPriority,e8=c.unstable_IdlePriority,e6=null,e5=null,e9=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(e7(e)/ne|0)|0},e7=Math.log,ne=Math.LN2,nn=64,nt=4194304;function nr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=nr(o):0!=(a&=u)&&(r=nr(a))}else 0!=(u=t&~l)?r=nr(u):0!==a&&(r=nr(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-e9(n)),r|=e[t],n&=~l;return r}function na(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function nu(){var e=nn;return 0==(4194240&(nn<<=1))&&(nn=64),e}function no(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function ni(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-e9(n)]=t}function ns(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-e9(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var nc=0;function nf(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var nd,np,nm,nh,ng,nv=!1,ny=[],nb=null,nk=null,nw=null,nS=new Map,nx=new Map,nE=[],n_=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");function nC(e,n){switch(e){case\"focusin\":case\"focusout\":nb=null;break;case\"dragenter\":case\"dragleave\":nk=null;break;case\"mouseover\":case\"mouseout\":nw=null;break;case\"pointerover\":case\"pointerout\":nS.delete(n.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":nx.delete(n.pointerId)}}function nP(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&null!==(n=rD(n))&&np(n)):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l)),e}function nN(e){var n=rO(e.target);if(null!==n){var t=eW(n);if(null!==t){if(13===(n=t.tag)){if(null!==(n=eQ(t))){e.blockedOn=n,ng(e.priority,function(){nm(t)});return}}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===t.tag?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nz(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=n$(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=rD(t))&&np(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);ex=r,t.target.dispatchEvent(r),ex=null,n.shift()}return!0}function nT(e,n,t){nz(e)&&t.delete(n)}function nL(){nv=!1,null!==nb&&nz(nb)&&(nb=null),null!==nk&&nz(nk)&&(nk=null),null!==nw&&nz(nw)&&(nw=null),nS.forEach(nT),nx.forEach(nT)}function nR(e,n){e.blockedOn===n&&(e.blockedOn=null,nv||(nv=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,nL)))}function nM(e){function n(n){return nR(n,e)}if(0<ny.length){nR(ny[0],e);for(var t=1;t<ny.length;t++){var r=ny[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==nb&&nR(nb,e),null!==nk&&nR(nk,e),null!==nw&&nR(nw,e),nS.forEach(n),nx.forEach(n),t=0;t<nE.length;t++)(r=nE[t]).blockedOn===e&&(r.blockedOn=null);for(;0<nE.length&&null===(t=nE[0]).blockedOn;)nN(t),null===t.blockedOn&&nE.shift()}var nF=C.ReactCurrentBatchConfig,nO=!0;function nD(e,n,t,r){var l=nc,a=nF.transition;nF.transition=null;try{nc=1,nU(e,n,t,r)}finally{nc=l,nF.transition=a}}function nI(e,n,t,r){var l=nc,a=nF.transition;nF.transition=null;try{nc=4,nU(e,n,t,r)}finally{nc=l,nF.transition=a}}function nU(e,n,t,r){if(nO){var l=n$(e,n,t,r);if(null===l)ro(e,n,r,nV,t),nC(e,r);else if(function(e,n,t,r,l){switch(n){case\"focusin\":return nb=nP(nb,e,n,t,r,l),!0;case\"dragenter\":return nk=nP(nk,e,n,t,r,l),!0;case\"mouseover\":return nw=nP(nw,e,n,t,r,l),!0;case\"pointerover\":var a=l.pointerId;return nS.set(a,nP(nS.get(a)||null,e,n,t,r,l)),!0;case\"gotpointercapture\":return a=l.pointerId,nx.set(a,nP(nx.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(nC(e,r),4&n&&-1<n_.indexOf(e)){for(;null!==l;){var a=rD(l);if(null!==a&&nd(a),null===(a=n$(e,n,t,r))&&ro(e,n,r,nV,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else ro(e,n,r,null,t)}}var nV=null;function n$(e,n,t,r){if(nV=null,null!==(e=rO(e=eE(r)))){if(null===(n=eW(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=eQ(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}return nV=e,null}function nA(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 1;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 4;case\"message\":switch(e0()){case e1:return 1;case e2:return 4;case e3:case e4:return 16;case e8:return 536870912;default:return 16}default:return 16}}var nj=null,nB=null,nH=null;function nW(){if(nH)return nH;var e,n,t=nB,r=t.length,l=\"value\"in nj?nj.value:nj.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return nH=l.slice(e,1<n?1-n:void 0)}function nQ(e){var n=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function nq(){return!0}function nK(){return!1}function nY(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?nq:nK,this.isPropagationStopped=nK,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nq)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nq)},persist:function(){},isPersistent:nq}),n}var nX,nG,nZ,nJ={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},n0=nY(nJ),n1=B({},nJ,{view:0,detail:0}),n2=nY(n1),n3=B({},n1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tl,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==nZ&&(nZ&&\"mousemove\"===e.type?(nX=e.screenX-nZ.screenX,nG=e.screenY-nZ.screenY):nG=nX=0,nZ=e),nX)},movementY:function(e){return\"movementY\"in e?e.movementY:nG}}),n4=nY(n3),n8=nY(B({},n3,{dataTransfer:0})),n6=nY(B({},n1,{relatedTarget:0})),n5=nY(B({},nJ,{animationName:0,elapsedTime:0,pseudoElement:0})),n9=nY(B({},nJ,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}})),n7=nY(B({},nJ,{data:0})),te={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},tn={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},tt={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function tr(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=tt[e])&&!!n[e]}function tl(){return tr}var ta=nY(B({},n1,{key:function(e){if(e.key){var n=te[e.key]||e.key;if(\"Unidentified\"!==n)return n}return\"keypress\"===e.type?13===(e=nQ(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?tn[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tl,charCode:function(e){return\"keypress\"===e.type?nQ(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?nQ(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}})),tu=nY(B({},n3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),to=nY(B({},n1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tl})),ti=nY(B({},nJ,{propertyName:0,elapsedTime:0,pseudoElement:0})),ts=nY(B({},n3,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),tc=[9,13,27,32],tf=g&&\"CompositionEvent\"in window,td=null;g&&\"documentMode\"in document&&(td=document.documentMode);var tp=g&&\"TextEvent\"in window&&!td,tm=g&&(!tf||td&&8<td&&11>=td),th=!1;function tg(e,n){switch(e){case\"keyup\":return -1!==tc.indexOf(n.keyCode);case\"keydown\":return 229!==n.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function tv(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}var ty=!1,tb={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tk(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===n?!!tb[e.type]:\"textarea\"===n}function tw(e,n,t,r){ez(r),0<(n=rs(n,\"onChange\")).length&&(t=new n0(\"onChange\",\"change\",null,t,r),e.push({event:t,listeners:n}))}var tS=null,tx=null;function tE(e){rn(e,0)}function t_(e){if(X(rI(e)))return e}function tC(e,n){if(\"change\"===e)return n}var tP=!1;if(g){if(g){var tN=\"oninput\"in document;if(!tN){var tz=document.createElement(\"div\");tz.setAttribute(\"oninput\",\"return;\"),tN=\"function\"==typeof tz.oninput}r=tN}else r=!1;tP=r&&(!document.documentMode||9<document.documentMode)}function tT(){tS&&(tS.detachEvent(\"onpropertychange\",tL),tx=tS=null)}function tL(e){if(\"value\"===e.propertyName&&t_(tx)){var n=[];tw(n,tx,e,eE(e)),eF(tE,n)}}function tR(e,n,t){\"focusin\"===e?(tT(),tS=n,tx=t,tS.attachEvent(\"onpropertychange\",tL)):\"focusout\"===e&&tT()}function tM(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return t_(tx)}function tF(e,n){if(\"click\"===e)return t_(n)}function tO(e,n){if(\"input\"===e||\"change\"===e)return t_(n)}var tD=\"function\"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function tI(e,n){if(tD(e,n))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!v.call(n,l)||!tD(e[l],n[l]))return!1}return!0}function tU(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tV(e,n){var t,r=tU(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tU(r)}}function t$(){for(var e=window,n=G();n instanceof e.HTMLIFrameElement;){try{var t=\"string\"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=G(e.document)}return n}function tA(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(\"input\"===n&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===n||\"true\"===e.contentEditable)}var tj=g&&\"documentMode\"in document&&11>=document.documentMode,tB=null,tH=null,tW=null,tQ=!1;function tq(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tQ||null==tB||tB!==G(r)||(r=\"selectionStart\"in(r=tB)&&tA(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tW&&tI(tW,r)||(tW=r,0<(r=rs(tH,\"onSelect\")).length&&(n=new n0(\"onSelect\",\"select\",null,n,t),e.push({event:n,listeners:r}),n.target=tB)))}function tK(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t[\"Webkit\"+e]=\"webkit\"+n,t[\"Moz\"+e]=\"moz\"+n,t}var tY={animationend:tK(\"Animation\",\"AnimationEnd\"),animationiteration:tK(\"Animation\",\"AnimationIteration\"),animationstart:tK(\"Animation\",\"AnimationStart\"),transitionend:tK(\"Transition\",\"TransitionEnd\")},tX={},tG={};function tZ(e){if(tX[e])return tX[e];if(!tY[e])return e;var n,t=tY[e];for(n in t)if(t.hasOwnProperty(n)&&n in tG)return tX[e]=t[n];return e}g&&(tG=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete tY.animationend.animation,delete tY.animationiteration.animation,delete tY.animationstart.animation),\"TransitionEvent\"in window||delete tY.transitionend.transition);var tJ=tZ(\"animationend\"),t0=tZ(\"animationiteration\"),t1=tZ(\"animationstart\"),t2=tZ(\"transitionend\"),t3=new Map,t4=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");function t8(e,n){t3.set(e,n),m(n,[e])}for(var t6=0;t6<t4.length;t6++){var t5=t4[t6];t8(t5.toLowerCase(),\"on\"+(t5[0].toUpperCase()+t5.slice(1)))}t8(tJ,\"onAnimationEnd\"),t8(t0,\"onAnimationIteration\"),t8(t1,\"onAnimationStart\"),t8(\"dblclick\",\"onDoubleClick\"),t8(\"focusin\",\"onFocus\"),t8(\"focusout\",\"onBlur\"),t8(t2,\"onTransitionEnd\"),h(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),h(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),h(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),h(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),m(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),m(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),m(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),m(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),m(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),m(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var t9=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),t7=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(t9));function re(e,n,t){var r=e.type||\"unknown-event\";e.currentTarget=t,function(e,n,t,r,l,a,u,o,i){if(eH.apply(this,arguments),eV){if(eV){var s=e$;eV=!1,e$=null}else throw Error(f(198));eA||(eA=!0,ej=s)}}(r,n,void 0,e),e.currentTarget=null}function rn(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;re(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;re(l,o,s),a=i}}}if(eA)throw e=ej,eA=!1,ej=null,e}function rt(e,n){var t=n[rR];void 0===t&&(t=n[rR]=new Set);var r=e+\"__bubble\";t.has(r)||(ru(n,e,2,!1),t.add(r))}function rr(e,n,t){var r=0;n&&(r|=4),ru(t,e,r,n)}var rl=\"_reactListening\"+Math.random().toString(36).slice(2);function ra(e){if(!e[rl]){e[rl]=!0,d.forEach(function(n){\"selectionchange\"!==n&&(t7.has(n)||rr(n,!1,e),rr(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[rl]||(n[rl]=!0,rr(\"selectionchange\",!1,n))}}function ru(e,n,t,r){switch(nA(n)){case 1:var l=nD;break;case 4:l=nI;break;default:l=nU}t=l.bind(null,n,t,e),l=void 0,eD&&(\"touchstart\"===n||\"touchmove\"===n||\"wheel\"===n)&&(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function ro(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=rO(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}eF(function(){var r=a,l=eE(t),u=[];e:{var o=t3.get(e);if(void 0!==o){var i=n0,s=e;switch(e){case\"keypress\":if(0===nQ(t))break e;case\"keydown\":case\"keyup\":i=ta;break;case\"focusin\":s=\"focus\",i=n6;break;case\"focusout\":s=\"blur\",i=n6;break;case\"beforeblur\":case\"afterblur\":i=n6;break;case\"click\":if(2===t.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":i=n4;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":i=n8;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":i=to;break;case tJ:case t0:case t1:i=n5;break;case t2:i=ti;break;case\"scroll\":i=n2;break;case\"wheel\":i=ts;break;case\"copy\":case\"cut\":case\"paste\":i=n9;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":i=tu}var c=0!=(4&n),f=!c&&\"scroll\"===e,d=c?null!==o?o+\"Capture\":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=eO(m,d))&&c.push(ri(m,h,p))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(o=\"mouseover\"===e||\"pointerover\"===e,i=\"mouseout\"===e||\"pointerout\"===e,!(o&&t!==ex&&(s=t.relatedTarget||t.fromElement)&&(rO(s)||s[rL]))&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(s=t.relatedTarget||t.toElement,i=r,null!==(s=s?rO(s):null)&&(f=eW(s),s!==f||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=n4,h=\"onMouseLeave\",d=\"onMouseEnter\",m=\"mouse\",(\"pointerout\"===e||\"pointerover\"===e)&&(c=tu,h=\"onPointerLeave\",d=\"onPointerEnter\",m=\"pointer\"),f=null==i?o:rI(i),p=null==s?o:rI(s),(o=new c(h,m+\"leave\",i,t,l)).target=f,o.relatedTarget=p,h=null,rO(l)===r&&((c=new c(d,m+\"enter\",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)n:{for(c=i,d=s,m=0,p=c;p;p=rc(p))m++;for(p=0,h=d;h;h=rc(h))p++;for(;0<m-p;)c=rc(c),m--;for(;0<p-m;)d=rc(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break n;c=rc(c),d=rc(d)}c=null}else c=null;null!==i&&rf(u,o,i,c,!1),null!==s&&null!==f&&rf(u,f,s,c,!0)}e:{if(\"select\"===(i=(o=r?rI(r):window).nodeName&&o.nodeName.toLowerCase())||\"input\"===i&&\"file\"===o.type)var g,v=tC;else if(tk(o)){if(tP)v=tO;else{v=tM;var y=tR}}else(i=o.nodeName)&&\"input\"===i.toLowerCase()&&(\"checkbox\"===o.type||\"radio\"===o.type)&&(v=tF);if(v&&(v=v(e,r))){tw(u,v,t,l);break e}y&&y(e,o,r),\"focusout\"===e&&(y=o._wrapperState)&&y.controlled&&\"number\"===o.type&&er(o,\"number\",o.value)}switch(y=r?rI(r):window,e){case\"focusin\":(tk(y)||\"true\"===y.contentEditable)&&(tB=y,tH=r,tW=null);break;case\"focusout\":tW=tH=tB=null;break;case\"mousedown\":tQ=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":tQ=!1,tq(u,t,l);break;case\"selectionchange\":if(tj)break;case\"keydown\":case\"keyup\":tq(u,t,l)}if(tf)n:{switch(e){case\"compositionstart\":var b=\"onCompositionStart\";break n;case\"compositionend\":b=\"onCompositionEnd\";break n;case\"compositionupdate\":b=\"onCompositionUpdate\";break n}b=void 0}else ty?tg(e,t)&&(b=\"onCompositionEnd\"):\"keydown\"===e&&229===t.keyCode&&(b=\"onCompositionStart\");b&&(tm&&\"ko\"!==t.locale&&(ty||\"onCompositionStart\"!==b?\"onCompositionEnd\"===b&&ty&&(g=nW()):(nB=\"value\"in(nj=l)?nj.value:nj.textContent,ty=!0)),0<(y=rs(r,b)).length&&(b=new n7(b,e,null,t,l),u.push({event:b,listeners:y}),g?b.data=g:null!==(g=tv(t))&&(b.data=g))),(g=tp?function(e,n){switch(e){case\"compositionend\":return tv(n);case\"keypress\":if(32!==n.which)return null;return th=!0,\" \";case\"textInput\":return\" \"===(e=n.data)&&th?null:e;default:return null}}(e,t):function(e,n){if(ty)return\"compositionend\"===e||!tf&&tg(e,n)?(e=nW(),nH=nB=nj=null,ty=!1,e):null;switch(e){case\"paste\":default:return null;case\"keypress\":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case\"compositionend\":return tm&&\"ko\"!==n.locale?null:n.data}}(e,t))&&0<(r=rs(r,\"onBeforeInput\")).length&&(l=new n7(\"onBeforeInput\",\"beforeinput\",null,t,l),u.push({event:l,listeners:r}),l.data=g)}rn(u,n)})}function ri(e,n,t){return{instance:e,listener:n,currentTarget:t}}function rs(e,n){for(var t=n+\"Capture\",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=eO(e,t))&&r.unshift(ri(e,a,l)),null!=(a=eO(e,n))&&r.push(ri(e,a,l))),e=e.return}return r}function rc(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rf(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=eO(t,a))&&u.unshift(ri(t,i,o)):l||null!=(i=eO(t,a))&&u.push(ri(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}var rd=/\\r\\n?/g,rp=/\\u0000|\\uFFFD/g;function rm(e){return(\"string\"==typeof e?e:\"\"+e).replace(rd,\"\\n\").replace(rp,\"\")}function rh(e,n,t){if(n=rm(n),rm(e)!==n&&t)throw Error(f(425))}function rg(){}var rv=null,ry=null;function rb(e,n){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof n.children||\"number\"==typeof n.children||\"object\"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var rk=\"function\"==typeof setTimeout?setTimeout:void 0,rw=\"function\"==typeof clearTimeout?clearTimeout:void 0,rS=\"function\"==typeof Promise?Promise:void 0,rx=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==rS?function(e){return rS.resolve(null).then(e).catch(rE)}:rk;function rE(e){setTimeout(function(){throw e})}function r_(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType){if(\"/$\"===(t=l.data)){if(0===r){e.removeChild(l),nM(n);return}r--}else\"$\"!==t&&\"$?\"!==t&&\"$!\"!==t||r++}t=l}while(t);nM(n)}function rC(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if(\"$\"===(n=e.data)||\"$!\"===n||\"$?\"===n)break;if(\"/$\"===n)return null}}return e}function rP(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if(\"$\"===t||\"$!\"===t||\"$?\"===t){if(0===n)return e;n--}else\"/$\"===t&&n++}e=e.previousSibling}return null}var rN=Math.random().toString(36).slice(2),rz=\"__reactFiber$\"+rN,rT=\"__reactProps$\"+rN,rL=\"__reactContainer$\"+rN,rR=\"__reactEvents$\"+rN,rM=\"__reactListeners$\"+rN,rF=\"__reactHandles$\"+rN;function rO(e){var n=e[rz];if(n)return n;for(var t=e.parentNode;t;){if(n=t[rL]||t[rz]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=rP(e);null!==e;){if(t=e[rz])return t;e=rP(e)}return n}t=(e=t).parentNode}return null}function rD(e){return(e=e[rz]||e[rL])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function rI(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(f(33))}function rU(e){return e[rT]||null}var rV=[],r$=-1;function rA(e){return{current:e}}function rj(e){0>r$||(e.current=rV[r$],rV[r$]=null,r$--)}function rB(e,n){rV[++r$]=e.current,e.current=n}var rH={},rW=rA(rH),rQ=rA(!1),rq=rH;function rK(e,n){var t=e.type.contextTypes;if(!t)return rH;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function rY(e){return null!=(e=e.childContextTypes)}function rX(){rj(rQ),rj(rW)}function rG(e,n,t){if(rW.current!==rH)throw Error(f(168));rB(rW,n),rB(rQ,t)}function rZ(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,\"function\"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(f(108,function(e){var n=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(n.displayName||\"Context\")+\".Consumer\";case 10:return(n._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=n.render).displayName||e.name||\"\",n.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return n;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return function e(n){if(null==n)return null;if(\"function\"==typeof n)return n.displayName||n.name||null;if(\"string\"==typeof n)return n;switch(n){case z:return\"Fragment\";case N:return\"Portal\";case L:return\"Profiler\";case T:return\"StrictMode\";case O:return\"Suspense\";case D:return\"SuspenseList\"}if(\"object\"==typeof n)switch(n.$$typeof){case M:return(n.displayName||\"Context\")+\".Consumer\";case R:return(n._context.displayName||\"Context\")+\".Provider\";case F:var t=n.render;return(n=n.displayName)||(n=\"\"!==(n=t.displayName||t.name||\"\")?\"ForwardRef(\"+n+\")\":\"ForwardRef\"),n;case I:return null!==(t=n.displayName||null)?t:e(n.type)||\"Memo\";case U:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(n);case 8:return n===T?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"==typeof n)return n.displayName||n.name||null;if(\"string\"==typeof n)return n}return null}(e)||\"Unknown\",l));return B({},t,r)}function rJ(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rH,rq=rW.current,rB(rW,e),rB(rQ,rQ.current),!0}function r0(e,n,t){var r=e.stateNode;if(!r)throw Error(f(169));t?(e=rZ(e,n,rq),r.__reactInternalMemoizedMergedChildContext=e,rj(rQ),rj(rW),rB(rW,e)):rj(rQ),rB(rQ,t)}var r1=null,r2=!1,r3=!1;function r4(e){null===r1?r1=[e]:r1.push(e)}function r8(){if(!r3&&null!==r1){r3=!0;var e=0,n=nc;try{var t=r1;for(nc=1;e<t.length;e++){var r=t[e];do r=r(!0);while(null!==r)}r1=null,r2=!1}catch(n){throw null!==r1&&(r1=r1.slice(e+1)),eY(e1,r8),n}finally{nc=n,r3=!1}}return null}var r6=[],r5=0,r9=null,r7=0,le=[],ln=0,lt=null,lr=1,ll=\"\";function la(e,n){r6[r5++]=r7,r6[r5++]=r9,r9=e,r7=n}function lu(e,n,t){le[ln++]=lr,le[ln++]=ll,le[ln++]=lt,lt=e;var r=lr;e=ll;var l=32-e9(r)-1;r&=~(1<<l),t+=1;var a=32-e9(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,lr=1<<32-e9(n)+l|t<<l|r,ll=a+e}else lr=1<<a|t<<l|r,ll=e}function lo(e){null!==e.return&&(la(e,1),lu(e,1,0))}function li(e){for(;e===r9;)r9=r6[--r5],r6[r5]=null,r7=r6[--r5],r6[r5]=null;for(;e===lt;)lt=le[--ln],le[ln]=null,ll=le[--ln],le[ln]=null,lr=le[--ln],le[ln]=null}var ls=null,lc=null,lf=!1,ld=null;function lp(e,n){var t=oQ(5,null,null,0);t.elementType=\"DELETED\",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function lm(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,ls=e,lc=rC(n.firstChild),!0);case 6:return null!==(n=\"\"===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,ls=e,lc=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==lt?{id:lr,overflow:ll}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=oQ(18,null,null,0)).stateNode=n,t.return=e,e.child=t,ls=e,lc=null,!0);default:return!1}}function lh(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lg(e){if(lf){var n=lc;if(n){var t=n;if(!lm(e,n)){if(lh(e))throw Error(f(418));n=rC(t.nextSibling);var r=ls;n&&lm(e,n)?lp(r,t):(e.flags=-4097&e.flags|2,lf=!1,ls=e)}}else{if(lh(e))throw Error(f(418));e.flags=-4097&e.flags|2,lf=!1,ls=e}}}function lv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ls=e}function ly(e){if(e!==ls)return!1;if(!lf)return lv(e),lf=!0,!1;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n=\"head\"!==(n=e.type)&&\"body\"!==n&&!rb(e.type,e.memoizedProps)),n&&(n=lc)){if(lh(e))throw lb(),Error(f(418));for(;n;)lp(e,n),n=rC(n.nextSibling)}if(lv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(f(317));e:{for(n=0,e=e.nextSibling;e;){if(8===e.nodeType){var n,t=e.data;if(\"/$\"===t){if(0===n){lc=rC(e.nextSibling);break e}n--}else\"$\"!==t&&\"$!\"!==t&&\"$?\"!==t||n++}e=e.nextSibling}lc=null}}else lc=ls?rC(e.stateNode.nextSibling):null;return!0}function lb(){for(var e=lc;e;)e=rC(e.nextSibling)}function lk(){lc=ls=null,lf=!1}function lw(e){null===ld?ld=[e]:ld.push(e)}var lS=C.ReactCurrentBatchConfig;function lx(e,n,t){if(null!==(e=t.ref)&&\"function\"!=typeof e&&\"object\"!=typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(f(309));var r=t.stateNode}if(!r)throw Error(f(147,e));var l=r,a=\"\"+e;return null!==n&&null!==n.ref&&\"function\"==typeof n.ref&&n.ref._stringRef===a?n.ref:((n=function(e){var n=l.refs;null===e?delete n[a]:n[a]=e})._stringRef=a,n)}if(\"string\"!=typeof e)throw Error(f(284));if(!t._owner)throw Error(f(290,e))}return e}function lE(e,n){throw Error(f(31,\"[object Object]\"===(e=Object.prototype.toString.call(n))?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}function l_(e){return(0,e._init)(e._payload)}function lC(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function l(e,n){return(e=oK(e,n)).index=0,e.sibling=null,e}function a(n,t,r){return(n.index=r,e)?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function u(n){return e&&null===n.alternate&&(n.flags|=2),n}function o(e,n,t,r){return null===n||6!==n.tag?(n=oZ(t,e.mode,r)).return=e:(n=l(n,t)).return=e,n}function i(e,n,t,r){var a=t.type;return a===z?c(e,n,t.props.children,r,t.key):(null!==n&&(n.elementType===a||\"object\"==typeof a&&null!==a&&a.$$typeof===U&&l_(a)===n.type)?(r=l(n,t.props)).ref=lx(e,n,t):(r=oY(t.type,t.key,t.props,null,e.mode,r)).ref=lx(e,n,t),r.return=e,r)}function s(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?(n=oJ(t,e.mode,r)).return=e:(n=l(n,t.children||[])).return=e,n}function c(e,n,t,r,a){return null===n||7!==n.tag?(n=oX(t,e.mode,r,a)).return=e:(n=l(n,t)).return=e,n}function d(e,n,t){if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return(n=oZ(\"\"+n,e.mode,t)).return=e,n;if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case P:return(t=oY(n.type,n.key,n.props,null,e.mode,t)).ref=lx(e,null,n),t.return=e,t;case N:return(n=oJ(n,e.mode,t)).return=e,n;case U:return d(e,(0,n._init)(n._payload),t)}if(el(n)||A(n))return(n=oX(n,e.mode,t,null)).return=e,n;lE(e,n)}return null}function p(e,n,t,r){var l=null!==n?n.key:null;if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return null!==l?null:o(e,n,\"\"+t,r);if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case P:return t.key===l?i(e,n,t,r):null;case N:return t.key===l?s(e,n,t,r):null;case U:return p(e,n,(l=t._init)(t._payload),r)}if(el(t)||A(t))return null!==l?null:c(e,n,t,r,null);lE(e,t)}return null}function m(e,n,t,r,l){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r)return o(n,e=e.get(t)||null,\"\"+r,l);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case P:return i(n,e=e.get(null===r.key?t:r.key)||null,r,l);case N:return s(n,e=e.get(null===r.key?t:r.key)||null,r,l);case U:return m(e,n,t,(0,r._init)(r._payload),l)}if(el(r)||A(r))return c(n,e=e.get(t)||null,r,l,null);lE(n,r)}return null}return function o(i,s,c,h){if(\"object\"==typeof c&&null!==c&&c.type===z&&null===c.key&&(c=c.props.children),\"object\"==typeof c&&null!==c){switch(c.$$typeof){case P:e:{for(var g=c.key,v=s;null!==v;){if(v.key===g){if((g=c.type)===z){if(7===v.tag){t(i,v.sibling),(s=l(v,c.props.children)).return=i,i=s;break e}}else if(v.elementType===g||\"object\"==typeof g&&null!==g&&g.$$typeof===U&&l_(g)===v.type){t(i,v.sibling),(s=l(v,c.props)).ref=lx(i,v,c),s.return=i,i=s;break e}t(i,v);break}n(i,v),v=v.sibling}c.type===z?((s=oX(c.props.children,i.mode,h,c.key)).return=i,i=s):((h=oY(c.type,c.key,c.props,null,i.mode,h)).ref=lx(i,s,c),h.return=i,i=h)}return u(i);case N:e:{for(v=c.key;null!==s;){if(s.key===v){if(4===s.tag&&s.stateNode.containerInfo===c.containerInfo&&s.stateNode.implementation===c.implementation){t(i,s.sibling),(s=l(s,c.children||[])).return=i,i=s;break e}t(i,s);break}n(i,s),s=s.sibling}(s=oJ(c,i.mode,h)).return=i,i=s}return u(i);case U:return o(i,s,(v=c._init)(c._payload),h)}if(el(c))return function(l,u,o,i){for(var s=null,c=null,f=u,h=u=0,g=null;null!==f&&h<o.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),u=a(v,u,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===o.length)return t(l,f),lf&&la(l,h),s;if(null===f){for(;h<o.length;h++)null!==(f=d(l,o[h],i))&&(u=a(f,u,h),null===c?s=f:c.sibling=f,c=f);return lf&&la(l,h),s}for(f=r(l,f);h<o.length;h++)null!==(g=m(f,l,h,o[h],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),u=a(g,u,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return n(l,e)}),lf&&la(l,h),s}(i,s,c,h);if(A(c))return function(l,u,o,i){var s=A(o);if(\"function\"!=typeof s)throw Error(f(150));if(null==(o=s.call(o)))throw Error(f(151));for(var c=s=null,h=u,g=u=0,v=null,y=o.next();null!==h&&!y.done;g++,y=o.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,i);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),u=a(b,u,g),null===c?s=b:c.sibling=b,c=b,h=v}if(y.done)return t(l,h),lf&&la(l,g),s;if(null===h){for(;!y.done;g++,y=o.next())null!==(y=d(l,y.value,i))&&(u=a(y,u,g),null===c?s=y:c.sibling=y,c=y);return lf&&la(l,g),s}for(h=r(l,h);!y.done;g++,y=o.next())null!==(y=m(h,l,g,y.value,i))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),u=a(y,u,g),null===c?s=y:c.sibling=y,c=y);return e&&h.forEach(function(e){return n(l,e)}),lf&&la(l,g),s}(i,s,c,h);lE(i,c)}return\"string\"==typeof c&&\"\"!==c||\"number\"==typeof c?(c=\"\"+c,null!==s&&6===s.tag?(t(i,s.sibling),(s=l(s,c)).return=i):(t(i,s),(s=oZ(c,i.mode,h)).return=i),u(i=s)):t(i,s)}}var lP=lC(!0),lN=lC(!1),lz=rA(null),lT=null,lL=null,lR=null;function lM(){lR=lL=lT=null}function lF(e){var n=lz.current;rj(lz),e._currentValue=n}function lO(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function lD(e,n){lT=e,lR=lL=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(ua=!0),e.firstContext=null)}function lI(e){var n=e._currentValue;if(lR!==e){if(e={context:e,memoizedValue:n,next:null},null===lL){if(null===lT)throw Error(f(308));lL=e,lT.dependencies={lanes:0,firstContext:e}}else lL=lL.next=e}return n}var lU=null;function lV(e){null===lU?lU=[e]:lU.push(e)}function l$(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,lV(n)):(t.next=l.next,l.next=t),n.interleaved=t,lA(e,r)}function lA(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}var lj=!1;function lB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lH(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lW(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function lQ(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&u2)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,lA(e,t)}return null===(l=r.interleaved)?(n.next=n,lV(r)):(n.next=l.next,l.next=n),r.interleaved=n,lA(e,t)}function lq(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ns(e,t)}}function lK(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=t;return}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function lY(e,n,t,r){var l=e.updateQueue;lj=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if(\"function\"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d=\"function\"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=B({},f,d);break e;case 2:lj=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do u|=l.lane,l=l.next;while(l!==n)}else null===a&&(l.shared.lanes=0);oe|=u,e.lanes=u,e.memoizedState=f}}function lX(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(null!==l){if(r.callback=null,r=t,\"function\"!=typeof l)throw Error(f(191,l));l.call(r)}}}var lG={},lZ=rA(lG),lJ=rA(lG),l0=rA(lG);function l1(e){if(e===lG)throw Error(f(174));return e}function l2(e,n){switch(rB(l0,n),rB(lJ,e),rB(lZ,lG),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ef(null,\"\");break;default:n=ef(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}rj(lZ),rB(lZ,n)}function l3(){rj(lZ),rj(lJ),rj(l0)}function l4(e){l1(l0.current);var n=l1(lZ.current),t=ef(n,e.type);n!==t&&(rB(lJ,e),rB(lZ,t))}function l8(e){lJ.current===e&&(rj(lZ),rj(lJ))}var l6=rA(0);function l5(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||\"$?\"===t.data||\"$!\"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var l9=[];function l7(){for(var e=0;e<l9.length;e++)l9[e]._workInProgressVersionPrimary=null;l9.length=0}var ae=C.ReactCurrentDispatcher,an=C.ReactCurrentBatchConfig,at=0,ar=null,al=null,aa=null,au=!1,ao=!1,ai=0,as=0;function ac(){throw Error(f(321))}function af(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!tD(e[t],n[t]))return!1;return!0}function ad(e,n,t,r,l,a){if(at=a,ar=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,ae.current=null===e||null===e.memoizedState?aY:aX,e=t(r,l),ao){a=0;do{if(ao=!1,ai=0,25<=a)throw Error(f(301));a+=1,aa=al=null,n.updateQueue=null,ae.current=aG,e=t(r,l)}while(ao)}if(ae.current=aK,n=null!==al&&null!==al.next,at=0,aa=al=ar=null,au=!1,n)throw Error(f(300));return e}function ap(){var e=0!==ai;return ai=0,e}function am(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aa?ar.memoizedState=aa=e:aa=aa.next=e,aa}function ah(){if(null===al){var e=ar.alternate;e=null!==e?e.memoizedState:null}else e=al.next;var n=null===aa?ar.memoizedState:aa.next;if(null!==n)aa=n,al=e;else{if(null===e)throw Error(f(310));e={memoizedState:(al=e).memoizedState,baseState:al.baseState,baseQueue:al.baseQueue,queue:al.queue,next:null},null===aa?ar.memoizedState=aa=e:aa=aa.next=e}return aa}function ag(e,n){return\"function\"==typeof n?n(e):n}function av(e){var n=ah(),t=n.queue;if(null===t)throw Error(f(311));t.lastRenderedReducer=e;var r=al,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var o=u=null,i=null,s=a;do{var c=s.lane;if((at&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===i?(o=i=d,u=r):i=i.next=d,ar.lanes|=c,oe|=c}s=s.next}while(null!==s&&s!==a);null===i?u=r:i.next=o,tD(r,n.memoizedState)||(ua=!0),n.memoizedState=r,n.baseState=u,n.baseQueue=i,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do a=l.lane,ar.lanes|=a,oe|=a,l=l.next;while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function ay(e){var n=ah(),t=n.queue;if(null===t)throw Error(f(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var u=l=l.next;do a=e(a,u.action),u=u.next;while(u!==l);tD(a,n.memoizedState)||(ua=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function ab(){}function ak(e,n){var t=ar,r=ah(),l=n(),a=!tD(r.memoizedState,l);if(a&&(r.memoizedState=l,ua=!0),r=r.queue,aR(ax.bind(null,t,r,e),[e]),r.getSnapshot!==n||a||null!==aa&&1&aa.memoizedState.tag){if(t.flags|=2048,aP(9,aS.bind(null,t,r,l,n),void 0,null),null===u3)throw Error(f(349));0!=(30&at)||aw(t,n,l)}return l}function aw(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=ar.updateQueue)?(n={lastEffect:null,stores:null},ar.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function aS(e,n,t,r){n.value=t,n.getSnapshot=r,aE(n)&&a_(e)}function ax(e,n,t){return t(function(){aE(n)&&a_(e)})}function aE(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!tD(e,t)}catch(e){return!0}}function a_(e){var n=lA(e,1);null!==n&&ok(n,e,1,-1)}function aC(e){var n=am();return\"function\"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ag,lastRenderedState:e},n.queue=e,e=e.dispatch=aH.bind(null,ar,e),[n.memoizedState,e]}function aP(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=ar.updateQueue)?(n={lastEffect:null,stores:null},ar.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function aN(){return ah().memoizedState}function az(e,n,t,r){var l=am();ar.flags|=e,l.memoizedState=aP(1|n,t,void 0,void 0===r?null:r)}function aT(e,n,t,r){var l=ah();r=void 0===r?null:r;var a=void 0;if(null!==al){var u=al.memoizedState;if(a=u.destroy,null!==r&&af(r,u.deps)){l.memoizedState=aP(n,t,a,r);return}}ar.flags|=e,l.memoizedState=aP(1|n,t,a,r)}function aL(e,n){return az(8390656,8,e,n)}function aR(e,n){return aT(2048,8,e,n)}function aM(e,n){return aT(4,2,e,n)}function aF(e,n){return aT(4,4,e,n)}function aO(e,n){return\"function\"==typeof n?(n(e=e()),function(){n(null)}):null!=n?(e=e(),n.current=e,function(){n.current=null}):void 0}function aD(e,n,t){return t=null!=t?t.concat([e]):null,aT(4,4,aO.bind(null,n,e),t)}function aI(){}function aU(e,n){var t=ah();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&af(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function aV(e,n){var t=ah();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&af(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function a$(e,n,t){return 0==(21&at)?(e.baseState&&(e.baseState=!1,ua=!0),e.memoizedState=t):(tD(t,n)||(t=nu(),ar.lanes|=t,oe|=t,e.baseState=!0),n)}function aA(e,n){var t=nc;nc=0!==t&&4>t?t:4,e(!0);var r=an.transition;an.transition={};try{e(!1),n()}finally{nc=t,an.transition=r}}function aj(){return ah().memoizedState}function aB(e,n,t){var r=ob(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},aW(e)?aQ(n,t):null!==(t=l$(e,n,t,r))&&(ok(t,e,r,oy()),aq(t,n,r))}function aH(e,n,t){var r=ob(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(aW(e))aQ(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,tD(o,u)){var i=n.interleaved;null===i?(l.next=l,lV(n)):(l.next=i.next,i.next=l),n.interleaved=l;return}}catch(e){}finally{}null!==(t=l$(e,n,l,r))&&(ok(t,e,r,l=oy()),aq(t,n,r))}}function aW(e){var n=e.alternate;return e===ar||null!==n&&n===ar}function aQ(e,n){ao=au=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function aq(e,n,t){if(0!=(4194240&t)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ns(e,t)}}var aK={readContext:lI,useCallback:ac,useContext:ac,useEffect:ac,useImperativeHandle:ac,useInsertionEffect:ac,useLayoutEffect:ac,useMemo:ac,useReducer:ac,useRef:ac,useState:ac,useDebugValue:ac,useDeferredValue:ac,useTransition:ac,useMutableSource:ac,useSyncExternalStore:ac,useId:ac,unstable_isNewReconciler:!1},aY={readContext:lI,useCallback:function(e,n){return am().memoizedState=[e,void 0===n?null:n],e},useContext:lI,useEffect:aL,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,az(4194308,4,aO.bind(null,n,e),t)},useLayoutEffect:function(e,n){return az(4194308,4,e,n)},useInsertionEffect:function(e,n){return az(4,2,e,n)},useMemo:function(e,n){var t=am();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=am();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=aB.bind(null,ar,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},am().memoizedState=e},useState:aC,useDebugValue:aI,useDeferredValue:function(e){return am().memoizedState=e},useTransition:function(){var e=aC(!1),n=e[0];return e=aA.bind(null,e[1]),am().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=ar,l=am();if(lf){if(void 0===t)throw Error(f(407));t=t()}else{if(t=n(),null===u3)throw Error(f(349));0!=(30&at)||aw(r,n,t)}l.memoizedState=t;var a={value:t,getSnapshot:n};return l.queue=a,aL(ax.bind(null,r,a,e),[e]),r.flags|=2048,aP(9,aS.bind(null,r,a,t,n),void 0,null),t},useId:function(){var e=am(),n=u3.identifierPrefix;if(lf){var t=ll,r=lr;n=\":\"+n+\"R\"+(t=(r&~(1<<32-e9(r)-1)).toString(32)+t),0<(t=ai++)&&(n+=\"H\"+t.toString(32)),n+=\":\"}else n=\":\"+n+\"r\"+(t=as++).toString(32)+\":\";return e.memoizedState=n},unstable_isNewReconciler:!1},aX={readContext:lI,useCallback:aU,useContext:lI,useEffect:aR,useImperativeHandle:aD,useInsertionEffect:aM,useLayoutEffect:aF,useMemo:aV,useReducer:av,useRef:aN,useState:function(){return av(ag)},useDebugValue:aI,useDeferredValue:function(e){return a$(ah(),al.memoizedState,e)},useTransition:function(){return[av(ag)[0],ah().memoizedState]},useMutableSource:ab,useSyncExternalStore:ak,useId:aj,unstable_isNewReconciler:!1},aG={readContext:lI,useCallback:aU,useContext:lI,useEffect:aR,useImperativeHandle:aD,useInsertionEffect:aM,useLayoutEffect:aF,useMemo:aV,useReducer:ay,useRef:aN,useState:function(){return ay(ag)},useDebugValue:aI,useDeferredValue:function(e){var n=ah();return null===al?n.memoizedState=e:a$(n,al.memoizedState,e)},useTransition:function(){return[ay(ag)[0],ah().memoizedState]},useMutableSource:ab,useSyncExternalStore:ak,useId:aj,unstable_isNewReconciler:!1};function aZ(e,n){if(e&&e.defaultProps)for(var t in n=B({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}function aJ(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:B({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var a0={isMounted:function(e){return!!(e=e._reactInternals)&&eW(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=oy(),l=ob(e),a=lW(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=lQ(e,a,l))&&(ok(n,e,l,r),lq(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=oy(),l=ob(e),a=lW(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=lQ(e,a,l))&&(ok(n,e,l,r),lq(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=oy(),r=ob(e),l=lW(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=lQ(e,l,r))&&(ok(n,e,r,t),lq(n,e,r))}};function a1(e,n,t,r,l,a,u){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!n.prototype||!n.prototype.isPureReactComponent||!tI(t,r)||!tI(l,a)}function a2(e,n,t){var r=!1,l=rH,a=n.contextType;return\"object\"==typeof a&&null!==a?a=lI(a):(l=rY(n)?rq:rW.current,a=(r=null!=(r=n.contextTypes))?rK(e,l):rH),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=a0,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function a3(e,n,t,r){e=n.state,\"function\"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),\"function\"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&a0.enqueueReplaceState(n,n.state,null)}function a4(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},lB(e);var a=n.contextType;\"object\"==typeof a&&null!==a?l.context=lI(a):(a=rY(n)?rq:rW.current,l.context=rK(e,a)),l.state=e.memoizedState,\"function\"==typeof(a=n.getDerivedStateFromProps)&&(aJ(e,n,a,t),l.state=e.memoizedState),\"function\"==typeof n.getDerivedStateFromProps||\"function\"==typeof l.getSnapshotBeforeUpdate||\"function\"!=typeof l.UNSAFE_componentWillMount&&\"function\"!=typeof l.componentWillMount||(n=l.state,\"function\"==typeof l.componentWillMount&&l.componentWillMount(),\"function\"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&a0.enqueueReplaceState(l,l.state,null),lY(e,t,l,r),l.state=e.memoizedState),\"function\"==typeof l.componentDidMount&&(e.flags|=4194308)}function a8(e,n){try{var t=\"\",r=n;do t+=function(e){switch(e.tag){case 5:return H(e.type);case 16:return H(\"Lazy\");case 13:return H(\"Suspense\");case 19:return H(\"SuspenseList\");case 0:case 2:case 15:return e=Q(e.type,!1);case 11:return e=Q(e.type.render,!1);case 1:return e=Q(e.type,!0);default:return\"\"}}(r),r=r.return;while(r);var l=t}catch(e){l=\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}return{value:e,source:n,stack:l,digest:null}}function a6(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function a5(e,n){try{console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var a9=\"function\"==typeof WeakMap?WeakMap:Map;function a7(e,n,t){(t=lW(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){oi||(oi=!0,os=r),a5(e,n)},t}function ue(e,n,t){(t=lW(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){a5(e,n)}}var a=e.stateNode;return null!==a&&\"function\"==typeof a.componentDidCatch&&(t.callback=function(){a5(e,n),\"function\"!=typeof r&&(null===oc?oc=new Set([this]):oc.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:\"\"})}),t}function un(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new a9;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=oA.bind(null,e,n,t),n.then(e,e))}function ut(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function ur(e,n,t,r,l){return 0==(1&e.mode)?e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=lW(-1,1)).tag=2,lQ(t,n,1))),t.lanes|=1):(e.flags|=65536,e.lanes=l),e}var ul=C.ReactCurrentOwner,ua=!1;function uu(e,n,t,r){n.child=null===e?lN(n,null,t,r):lP(n,e.child,t,r)}function uo(e,n,t,r,l){t=t.render;var a=n.ref;return(lD(n,l),r=ad(e,n,t,r,a,l),t=ap(),null===e||ua)?(lf&&t&&lo(n),n.flags|=1,uu(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,uC(e,n,l))}function ui(e,n,t,r,l){if(null===e){var a=t.type;return\"function\"!=typeof a||oq(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=oY(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,us(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:tI)(u,r)&&e.ref===n.ref)return uC(e,n,l)}return n.flags|=1,(e=oK(a,r)).ref=n.ref,e.return=n,n.child=e}function us(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tI(a,r)&&e.ref===n.ref){if(ua=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,uC(e,n,l);0!=(131072&e.flags)&&(ua=!0)}}return ud(e,n,t,r,l)}function uc(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if(\"hidden\"===r.mode){if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},rB(u5,u6),u6|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,rB(u5,u6),u6|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,rB(u5,u6),u6|=r}}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,rB(u5,u6),u6|=r;return uu(e,n,l,t),n.child}function uf(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function ud(e,n,t,r,l){var a=rY(t)?rq:rW.current;return(a=rK(n,a),lD(n,l),t=ad(e,n,t,r,a,l),r=ap(),null===e||ua)?(lf&&r&&lo(n),n.flags|=1,uu(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,uC(e,n,l))}function up(e,n,t,r,l){if(rY(t)){var a=!0;rJ(n)}else a=!1;if(lD(n,l),null===n.stateNode)u_(e,n),a2(n,t,r),a4(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;s=\"object\"==typeof s&&null!==s?lI(s):rK(n,s=rY(t)?rq:rW.current);var c=t.getDerivedStateFromProps,f=\"function\"==typeof c||\"function\"==typeof u.getSnapshotBeforeUpdate;f||\"function\"!=typeof u.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&a3(n,u,r,s),lj=!1;var d=n.memoizedState;u.state=d,lY(n,r,u,l),i=n.memoizedState,o!==r||d!==i||rQ.current||lj?(\"function\"==typeof c&&(aJ(n,t,c,r),i=n.memoizedState),(o=lj||a1(n,t,o,r,d,i,s))?(f||\"function\"!=typeof u.UNSAFE_componentWillMount&&\"function\"!=typeof u.componentWillMount||(\"function\"==typeof u.componentWillMount&&u.componentWillMount(),\"function\"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),\"function\"==typeof u.componentDidMount&&(n.flags|=4194308)):(\"function\"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):(\"function\"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,lH(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:aZ(n.type,o),u.props=s,f=n.pendingProps,d=u.context,i=\"object\"==typeof(i=t.contextType)&&null!==i?lI(i):rK(n,i=rY(t)?rq:rW.current);var p=t.getDerivedStateFromProps;(c=\"function\"==typeof p||\"function\"==typeof u.getSnapshotBeforeUpdate)||\"function\"!=typeof u.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&a3(n,u,r,i),lj=!1,d=n.memoizedState,u.state=d,lY(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||rQ.current||lj?(\"function\"==typeof p&&(aJ(n,t,p,r),m=n.memoizedState),(s=lj||a1(n,t,s,r,d,m,i)||!1)?(c||\"function\"!=typeof u.UNSAFE_componentWillUpdate&&\"function\"!=typeof u.componentWillUpdate||(\"function\"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),\"function\"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),\"function\"==typeof u.componentDidUpdate&&(n.flags|=4),\"function\"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):(\"function\"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),\"function\"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):(\"function\"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),\"function\"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return um(e,n,t,r,a,l)}function um(e,n,t,r,l,a){uf(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&r0(n,t,!1),uC(e,n,a);r=n.stateNode,ul.current=n;var o=u&&\"function\"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=lP(n,e.child,null,a),n.child=lP(n,null,o,a)):uu(e,n,o,a),n.memoizedState=r.state,l&&r0(n,t,!0),n.child}function uh(e){var n=e.stateNode;n.pendingContext?rG(e,n.pendingContext,n.pendingContext!==n.context):n.context&&rG(e,n.context,!1),l2(e,n.containerInfo)}function ug(e,n,t,r,l){return lk(),lw(l),n.flags|=256,uu(e,n,t,r),n.child}var uv={dehydrated:null,treeContext:null,retryLane:0};function uy(e){return{baseLanes:e,cachePool:null,transitions:null}}function ub(e,n,t){var r,l=n.pendingProps,a=l6.current,u=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(u=!0,n.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),rB(l6,1&a),null===e)return(lg(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&n.mode)?n.lanes=1:\"$!\"===e.data?n.lanes=8:n.lanes=1073741824,null):(o=l.children,e=l.fallback,u?(l=n.mode,u=n.child,o={mode:\"hidden\",children:o},0==(1&l)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=oG(o,l,0,null),e=oX(e,l,t,null),u.return=n,e.return=n,u.sibling=e,n.child=u,n.child.memoizedState=uy(t),n.memoizedState=uv,e):uk(n,o));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,n,t,r,l,a,u){if(t)return 256&n.flags?(n.flags&=-257,uw(e,n,u,r=a6(Error(f(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,l=n.mode,r=oG({mode:\"visible\",children:r.children},l,0,null),a=oX(a,l,u,null),a.flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&lP(n,e.child,null,u),n.child.memoizedState=uy(u),n.memoizedState=uv,a);if(0==(1&n.mode))return uw(e,n,u,null);if(\"$!\"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var o=r.dgst;return r=o,uw(e,n,u,r=a6(a=Error(f(419)),r,void 0))}if(o=0!=(u&e.childLanes),ua||o){if(null!==(r=u3)){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==a.retryLane&&(a.retryLane=l,lA(e,l),ok(r,e,l,-1))}return oM(),uw(e,n,u,r=a6(Error(f(421))))}return\"$?\"===l.data?(n.flags|=128,n.child=e.child,n=oB.bind(null,e),l._reactRetry=n,null):(e=a.treeContext,lc=rC(l.nextSibling),ls=n,lf=!0,ld=null,null!==e&&(le[ln++]=lr,le[ln++]=ll,le[ln++]=lt,lr=e.id,ll=e.overflow,lt=n),n=uk(n,r.children),n.flags|=4096,n)}(e,n,o,l,r,a,t);if(u){u=l.fallback,o=n.mode,r=(a=e.child).sibling;var i={mode:\"hidden\",children:l.children};return 0==(1&o)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=i,n.deletions=null):(l=oK(a,i)).subtreeFlags=14680064&a.subtreeFlags,null!==r?u=oK(r,u):(u=oX(u,o,t,null),u.flags|=2),u.return=n,l.return=n,l.sibling=u,n.child=l,l=u,u=n.child,o=null===(o=e.child.memoizedState)?uy(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},u.memoizedState=o,u.childLanes=e.childLanes&~t,n.memoizedState=uv,l}return e=(u=e.child).sibling,l=oK(u,{mode:\"visible\",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function uk(e,n){return(n=oG({mode:\"visible\",children:n},e.mode,0,null)).return=e,e.child=n}function uw(e,n,t,r){return null!==r&&lw(r),lP(n,e.child,null,t),e=uk(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function uS(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),lO(e.return,n,t)}function ux(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function uE(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(uu(e,n,r.children,t),0!=(2&(r=l6.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&uS(e,t,n);else if(19===e.tag)uS(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rB(l6,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case\"forwards\":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===l5(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ux(n,!1,l,t,a);break;case\"backwards\":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===l5(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ux(n,!0,t,null,a);break;case\"together\":ux(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function u_(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function uC(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),oe|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(f(153));if(null!==n.child){for(t=oK(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=oK(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function uP(e,n){if(!lf)switch(e.tailMode){case\"hidden\":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case\"collapsed\":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uN(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}l=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},a=function(){},u=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,l1(lZ.current);var a,u=null;switch(t){case\"input\":l=Z(e,l),r=Z(e,r),u=[];break;case\"select\":l=B({},l,{value:void 0}),r=B({},r,{value:void 0}),u=[];break;case\"textarea\":l=eu(e,l),r=eu(e,r),u=[];break;default:\"function\"!=typeof l.onClick&&\"function\"==typeof r.onClick&&(e.onclick=rg)}for(s in ew(t,r),t=null,l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&null!=l[s]){if(\"style\"===s){var o=l[s];for(a in o)o.hasOwnProperty(a)&&(t||(t={}),t[a]=\"\")}else\"dangerouslySetInnerHTML\"!==s&&\"children\"!==s&&\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&\"autoFocus\"!==s&&(p.hasOwnProperty(s)?u||(u=[]):(u=u||[]).push(s,null))}for(s in r){var i=r[s];if(o=null!=l?l[s]:void 0,r.hasOwnProperty(s)&&i!==o&&(null!=i||null!=o)){if(\"style\"===s){if(o){for(a in o)!o.hasOwnProperty(a)||i&&i.hasOwnProperty(a)||(t||(t={}),t[a]=\"\");for(a in i)i.hasOwnProperty(a)&&o[a]!==i[a]&&(t||(t={}),t[a]=i[a])}else t||(u||(u=[]),u.push(s,t)),t=i}else\"dangerouslySetInnerHTML\"===s?(i=i?i.__html:void 0,o=o?o.__html:void 0,null!=i&&o!==i&&(u=u||[]).push(s,i)):\"children\"===s?\"string\"!=typeof i&&\"number\"!=typeof i||(u=u||[]).push(s,\"\"+i):\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&(p.hasOwnProperty(s)?(null!=i&&\"onScroll\"===s&&rt(\"scroll\",e),u||o===i||(u=[])):(u=u||[]).push(s,i))}}t&&(u=u||[]).push(\"style\",t);var s=u;(n.updateQueue=s)&&(n.flags|=4)}},o=function(e,n,t,r){t!==r&&(n.flags|=4)};var uz=!1,uT=!1,uL=\"function\"==typeof WeakSet?WeakSet:Set,uR=null;function uM(e,n){var t=e.ref;if(null!==t){if(\"function\"==typeof t)try{t(null)}catch(t){o$(e,n,t)}else t.current=null}}function uF(e,n,t){try{t()}catch(t){o$(e,n,t)}}var uO=!1;function uD(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&uF(n,t,a)}l=l.next}while(l!==r)}}function uI(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function uU(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,\"function\"==typeof n?n(e):n.current=e}}function uV(e){return 5===e.tag||3===e.tag||4===e.tag}function u$(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||uV(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var uA=null,uj=!1;function uB(e,n,t){for(t=t.child;null!==t;)uH(e,n,t),t=t.sibling}function uH(e,n,t){if(e5&&\"function\"==typeof e5.onCommitFiberUnmount)try{e5.onCommitFiberUnmount(e6,t)}catch(e){}switch(t.tag){case 5:uT||uM(t,n);case 6:var r=uA,l=uj;uA=null,uB(e,n,t),uA=r,uj=l,null!==uA&&(uj?(e=uA,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):uA.removeChild(t.stateNode));break;case 18:null!==uA&&(uj?(e=uA,t=t.stateNode,8===e.nodeType?r_(e.parentNode,t):1===e.nodeType&&r_(e,t),nM(e)):r_(uA,t.stateNode));break;case 4:r=uA,l=uj,uA=t.stateNode.containerInfo,uj=!0,uB(e,n,t),uA=r,uj=l;break;case 0:case 11:case 14:case 15:if(!uT&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)?uF(t,n,u):0!=(4&a)&&uF(t,n,u)),l=l.next}while(l!==r)}uB(e,n,t);break;case 1:if(!uT&&(uM(t,n),\"function\"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){o$(t,n,e)}uB(e,n,t);break;case 21:default:uB(e,n,t);break;case 22:1&t.mode?(uT=(r=uT)||null!==t.memoizedState,uB(e,n,t),uT=r):uB(e,n,t)}}function uW(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new uL),n.forEach(function(n){var r=oH.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function uQ(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var l=t[r];try{var a=n,u=a;e:for(;null!==u;){switch(u.tag){case 5:uA=u.stateNode,uj=!1;break e;case 3:case 4:uA=u.stateNode.containerInfo,uj=!0;break e}u=u.return}if(null===uA)throw Error(f(160));uH(e,a,l),uA=null,uj=!1;var o=l.alternate;null!==o&&(o.return=null),l.return=null}catch(e){o$(l,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)uq(n,e),n=n.sibling}function uq(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(uQ(n,e),uK(e),4&r){try{uD(3,e,e.return),uI(3,e)}catch(n){o$(e,e.return,n)}try{uD(5,e,e.return)}catch(n){o$(e,e.return,n)}}break;case 1:uQ(n,e),uK(e),512&r&&null!==t&&uM(t,t.return);break;case 5:if(uQ(n,e),uK(e),512&r&&null!==t&&uM(t,t.return),32&e.flags){var l=e.stateNode;try{eh(l,\"\")}catch(n){o$(e,e.return,n)}}if(4&r&&null!=(l=e.stateNode)){var a=e.memoizedProps,u=null!==t?t.memoizedProps:a,o=e.type,i=e.updateQueue;if(e.updateQueue=null,null!==i)try{\"input\"===o&&\"radio\"===a.type&&null!=a.name&&ee(l,a),eS(o,u);var s=eS(o,a);for(u=0;u<i.length;u+=2){var c=i[u],d=i[u+1];\"style\"===c?eb(l,d):\"dangerouslySetInnerHTML\"===c?em(l,d):\"children\"===c?eh(l,d):_(l,c,d,s)}switch(o){case\"input\":en(l,a);break;case\"textarea\":ei(l,a);break;case\"select\":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ea(l,!!a.multiple,m,!1):!!a.multiple!==p&&(null!=a.defaultValue?ea(l,!!a.multiple,a.defaultValue,!0):ea(l,!!a.multiple,a.multiple?[]:\"\",!1))}l[rT]=a}catch(n){o$(e,e.return,n)}}break;case 6:if(uQ(n,e),uK(e),4&r){if(null===e.stateNode)throw Error(f(162));l=e.stateNode,a=e.memoizedProps;try{l.nodeValue=a}catch(n){o$(e,e.return,n)}}break;case 3:if(uQ(n,e),uK(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{nM(n.containerInfo)}catch(n){o$(e,e.return,n)}break;case 4:default:uQ(n,e),uK(e);break;case 13:uQ(n,e),uK(e),8192&(l=e.child).flags&&(a=null!==l.memoizedState,l.stateNode.isHidden=a,a&&(null===l.alternate||null===l.alternate.memoizedState)&&(oa=eJ())),4&r&&uW(e);break;case 22:if(c=null!==t&&null!==t.memoizedState,1&e.mode?(uT=(s=uT)||c,uQ(n,e),uT=s):uQ(n,e),uK(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!c&&0!=(1&e.mode))for(uR=e,c=e.child;null!==c;){for(d=uR=c;null!==uR;){switch(m=(p=uR).child,p.tag){case 0:case 11:case 14:case 15:uD(4,p,p.return);break;case 1:uM(p,p.return);var h=p.stateNode;if(\"function\"==typeof h.componentWillUnmount){r=p,t=p.return;try{n=r,h.props=n.memoizedProps,h.state=n.memoizedState,h.componentWillUnmount()}catch(e){o$(r,t,e)}}break;case 5:uM(p,p.return);break;case 22:if(null!==p.memoizedState){uX(d);continue}}null!==m?(m.return=p,uR=m):uX(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{l=d.stateNode,s?(a=l.style,\"function\"==typeof a.setProperty?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\"):(o=d.stateNode,u=null!=(i=d.memoizedProps.style)&&i.hasOwnProperty(\"display\")?i.display:null,o.style.display=ey(\"display\",u))}catch(n){o$(e,e.return,n)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=s?\"\":d.memoizedProps}catch(n){o$(e,e.return,n)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:uQ(n,e),uK(e),4&r&&uW(e);case 21:}}function uK(e){var n=e.flags;if(2&n){try{e:{for(var t=e.return;null!==t;){if(uV(t)){var r=t;break e}t=t.return}throw Error(f(160))}switch(r.tag){case 5:var l=r.stateNode;32&r.flags&&(eh(l,\"\"),r.flags&=-33);var a=u$(e);!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?r.insertBefore(n,t):r.appendChild(n);else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,a,l);break;case 3:case 4:var u=r.stateNode.containerInfo,o=u$(e);!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(n,t):r.insertBefore(n,t):(8===r.nodeType?(t=r.parentNode).insertBefore(n,r):(t=r).appendChild(n),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=rg));else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,o,u);break;default:throw Error(f(161))}}catch(n){o$(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function uY(e){for(;null!==uR;){var n=uR;if(0!=(8772&n.flags)){var t=n.alternate;try{if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:uT||uI(5,n);break;case 1:var r=n.stateNode;if(4&n.flags&&!uT){if(null===t)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:aZ(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var a=n.updateQueue;null!==a&&lX(n,a,r);break;case 3:var u=n.updateQueue;if(null!==u){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}lX(n,u,t)}break;case 5:var o=n.stateNode;if(null===t&&4&n.flags){t=o;var i=n.memoizedProps;switch(n.type){case\"button\":case\"input\":case\"select\":case\"textarea\":i.autoFocus&&t.focus();break;case\"img\":i.src&&(t.src=i.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===n.memoizedState){var s=n.alternate;if(null!==s){var c=s.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&nM(d)}}}break;default:throw Error(f(163))}uT||512&n.flags&&uU(n)}catch(e){o$(n,n.return,e)}}if(n===e){uR=null;break}if(null!==(t=n.sibling)){t.return=n.return,uR=t;break}uR=n.return}}function uX(e){for(;null!==uR;){var n=uR;if(n===e){uR=null;break}var t=n.sibling;if(null!==t){t.return=n.return,uR=t;break}uR=n.return}}function uG(e){for(;null!==uR;){var n=uR;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{uI(4,n)}catch(e){o$(n,t,e)}break;case 1:var r=n.stateNode;if(\"function\"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){o$(n,l,e)}}var a=n.return;try{uU(n)}catch(e){o$(n,a,e)}break;case 5:var u=n.return;try{uU(n)}catch(e){o$(n,u,e)}}}catch(e){o$(n,n.return,e)}if(n===e){uR=null;break}var o=n.sibling;if(null!==o){o.return=n.return,uR=o;break}uR=n.return}}var uZ=Math.ceil,uJ=C.ReactCurrentDispatcher,u0=C.ReactCurrentOwner,u1=C.ReactCurrentBatchConfig,u2=0,u3=null,u4=null,u8=0,u6=0,u5=rA(0),u9=0,u7=null,oe=0,on=0,ot=0,or=null,ol=null,oa=0,ou=1/0,oo=null,oi=!1,os=null,oc=null,of=!1,od=null,op=0,om=0,oh=null,og=-1,ov=0;function oy(){return 0!=(6&u2)?eJ():-1!==og?og:og=eJ()}function ob(e){return 0==(1&e.mode)?1:0!=(2&u2)&&0!==u8?u8&-u8:null!==lS.transition?(0===ov&&(ov=nu()),ov):0!==(e=nc)?e:e=void 0===(e=window.event)?16:nA(e.type)}function ok(e,n,t,r){if(50<om)throw om=0,oh=null,Error(f(185));ni(e,t,r),(0==(2&u2)||e!==u3)&&(e===u3&&(0==(2&u2)&&(on|=t),4===u9&&o_(e,u8)),ow(e,r),1===t&&0===u2&&0==(1&n.mode)&&(ou=eJ()+500,r2&&r8()))}function ow(e,n){var t,r=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-e9(a),o=1<<u,i=l[u];-1===i?(0==(o&t)||0!=(o&r))&&(l[u]=function(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return -1}}(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var l=nl(e,e===u3?u8:0);if(0===l)null!==r&&eX(r),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(null!=r&&eX(r),1===n)0===e.tag?(t=oC.bind(null,e),r2=!0,r4(t)):r4(oC.bind(null,e)),rx(function(){0==(6&u2)&&r8()}),r=null;else{switch(nf(l)){case 1:r=e1;break;case 4:r=e2;break;case 16:default:r=e3;break;case 536870912:r=e8}r=eY(r,oS.bind(null,e))}e.callbackPriority=n,e.callbackNode=r}}function oS(e,n){if(og=-1,ov=0,0!=(6&u2))throw Error(f(327));var t=e.callbackNode;if(oU()&&e.callbackNode!==t)return null;var r=nl(e,e===u3?u8:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||n)n=oF(e,r);else{n=r;var l=u2;u2|=2;var a=oR();for((u3!==e||u8!==n)&&(oo=null,ou=eJ()+500,oT(e,n));;)try{!function(){for(;null!==u4&&!eG();)oO(u4)}();break}catch(n){oL(e,n)}lM(),uJ.current=a,u2=l,null!==u4?n=0:(u3=null,u8=0,n=u9)}if(0!==n){if(2===n&&0!==(l=na(e))&&(r=l,n=ox(e,l)),1===n)throw t=u7,oT(e,0),o_(e,r),ow(e,eJ()),t;if(6===n)o_(e,r);else{if(l=e.current.alternate,0==(30&r)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!tD(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(l)&&(2===(n=oF(e,r))&&0!==(a=na(e))&&(r=a,n=ox(e,a)),1===n))throw t=u7,oT(e,0),o_(e,r),ow(e,eJ()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(f(345));case 2:case 5:oI(e,ol,oo);break;case 3:if(o_(e,r),(130023424&r)===r&&10<(n=oa+500-eJ())){if(0!==nl(e,0))break;if(((l=e.suspendedLanes)&r)!==r){oy(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rk(oI.bind(null,e,ol,oo),n);break}oI(e,ol,oo);break;case 4:if(o_(e,r),(4194240&r)===r)break;for(l=-1,n=e.eventTimes;0<r;){var u=31-e9(r);a=1<<u,(u=n[u])>l&&(l=u),r&=~a}if(r=l,10<(r=(120>(r=eJ()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uZ(r/1960))-r)){e.timeoutHandle=rk(oI.bind(null,e,ol,oo),r);break}oI(e,ol,oo);break;default:throw Error(f(329))}}}return ow(e,eJ()),e.callbackNode===t?oS.bind(null,e):null}function ox(e,n){var t=or;return e.current.memoizedState.isDehydrated&&(oT(e,n).flags|=256),2!==(e=oF(e,n))&&(n=ol,ol=t,null!==n&&oE(n)),e}function oE(e){null===ol?ol=e:ol.push.apply(ol,e)}function o_(e,n){for(n&=~ot,n&=~on,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-e9(n),r=1<<t;e[t]=-1,n&=~r}}function oC(e){if(0!=(6&u2))throw Error(f(327));oU();var n=nl(e,0);if(0==(1&n))return ow(e,eJ()),null;var t=oF(e,n);if(0!==e.tag&&2===t){var r=na(e);0!==r&&(n=r,t=ox(e,r))}if(1===t)throw t=u7,oT(e,0),o_(e,n),ow(e,eJ()),t;if(6===t)throw Error(f(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,oI(e,ol,oo),ow(e,eJ()),null}function oP(e,n){var t=u2;u2|=1;try{return e(n)}finally{0===(u2=t)&&(ou=eJ()+500,r2&&r8())}}function oN(e){null!==od&&0===od.tag&&0==(6&u2)&&oU();var n=u2;u2|=1;var t=u1.transition,r=nc;try{if(u1.transition=null,nc=1,e)return e()}finally{nc=r,u1.transition=t,0==(6&(u2=n))&&r8()}}function oz(){u6=u5.current,rj(u5)}function oT(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,rw(t)),null!==u4)for(t=u4.return;null!==t;){var r=t;switch(li(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&rX();break;case 3:l3(),rj(rQ),rj(rW),l7();break;case 5:l8(r);break;case 4:l3();break;case 13:case 19:rj(l6);break;case 10:lF(r.type._context);break;case 22:case 23:oz()}t=t.return}if(u3=e,u4=e=oK(e.current,null),u8=u6=n,u9=0,u7=null,ot=on=oe=0,ol=or=null,null!==lU){for(n=0;n<lU.length;n++)if(null!==(r=(t=lU[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}lU=null}return e}function oL(e,n){for(;;){var t=u4;try{if(lM(),ae.current=aK,au){for(var r=ar.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}au=!1}if(at=0,aa=al=ar=null,ao=!1,ai=0,u0.current=null,null===t||null===t.return){u9=1,u7=n,u4=null;break}e:{var a=e,u=t.return,o=t,i=n;if(n=u8,o.flags|=32768,null!==i&&\"object\"==typeof i&&\"function\"==typeof i.then){var s=i,c=o,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=ut(u);if(null!==m){m.flags&=-257,ur(m,u,o,a,n),1&m.mode&&un(a,s,n),n=m,i=s;var h=n.updateQueue;if(null===h){var g=new Set;g.add(i),n.updateQueue=g}else h.add(i);break e}if(0==(1&n)){un(a,s,n),oM();break e}i=Error(f(426))}else if(lf&&1&o.mode){var v=ut(u);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ur(v,u,o,a,n),lw(a8(i,o));break e}}a=i=a8(i,o),4!==u9&&(u9=2),null===or?or=[a]:or.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,n&=-n,a.lanes|=n;var y=a7(a,i,n);lK(a,y);break e;case 1:o=i;var b=a.type,k=a.stateNode;if(0==(128&a.flags)&&(\"function\"==typeof b.getDerivedStateFromError||null!==k&&\"function\"==typeof k.componentDidCatch&&(null===oc||!oc.has(k)))){a.flags|=65536,n&=-n,a.lanes|=n;var w=ue(a,o,n);lK(a,w);break e}}a=a.return}while(null!==a)}oD(t)}catch(e){n=e,u4===t&&null!==t&&(u4=t=t.return);continue}break}}function oR(){var e=uJ.current;return uJ.current=aK,null===e?aK:e}function oM(){(0===u9||3===u9||2===u9)&&(u9=4),null===u3||0==(268435455&oe)&&0==(268435455&on)||o_(u3,u8)}function oF(e,n){var t=u2;u2|=2;var r=oR();for((u3!==e||u8!==n)&&(oo=null,oT(e,n));;)try{!function(){for(;null!==u4;)oO(u4)}();break}catch(n){oL(e,n)}if(lM(),u2=t,uJ.current=r,null!==u4)throw Error(f(261));return u3=null,u8=0,u9}function oO(e){var n=i(e.alternate,e,u6);e.memoizedProps=e.pendingProps,null===n?oD(e):u4=n,u0.current=null}function oD(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=function(e,n,t){var r=n.pendingProps;switch(li(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return uN(n),null;case 1:case 17:return rY(n.type)&&rX(),uN(n),null;case 3:return r=n.stateNode,l3(),rj(rQ),rj(rW),l7(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&(ly(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==ld&&(oE(ld),ld=null))),a(e,n),uN(n),null;case 5:l8(n);var i=l1(l0.current);if(t=n.type,null!==e&&null!=n.stateNode)u(e,n,t,r,i),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(f(166));return uN(n),null}if(e=l1(lZ.current),ly(n)){r=n.stateNode,t=n.type;var s=n.memoizedProps;switch(r[rz]=n,r[rT]=s,e=0!=(1&n.mode),t){case\"dialog\":rt(\"cancel\",r),rt(\"close\",r);break;case\"iframe\":case\"object\":case\"embed\":rt(\"load\",r);break;case\"video\":case\"audio\":for(i=0;i<t9.length;i++)rt(t9[i],r);break;case\"source\":rt(\"error\",r);break;case\"img\":case\"image\":case\"link\":rt(\"error\",r),rt(\"load\",r);break;case\"details\":rt(\"toggle\",r);break;case\"input\":J(r,s),rt(\"invalid\",r);break;case\"select\":r._wrapperState={wasMultiple:!!s.multiple},rt(\"invalid\",r);break;case\"textarea\":eo(r,s),rt(\"invalid\",r)}for(var c in ew(t,s),i=null,s)if(s.hasOwnProperty(c)){var d=s[c];\"children\"===c?\"string\"==typeof d?r.textContent!==d&&(!0!==s.suppressHydrationWarning&&rh(r.textContent,d,e),i=[\"children\",d]):\"number\"==typeof d&&r.textContent!==\"\"+d&&(!0!==s.suppressHydrationWarning&&rh(r.textContent,d,e),i=[\"children\",\"\"+d]):p.hasOwnProperty(c)&&null!=d&&\"onScroll\"===c&&rt(\"scroll\",r)}switch(t){case\"input\":Y(r),et(r,s,!0);break;case\"textarea\":Y(r),es(r);break;case\"select\":case\"option\":break;default:\"function\"==typeof s.onClick&&(r.onclick=rg)}r=i,n.updateQueue=r,null!==r&&(n.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,\"http://www.w3.org/1999/xhtml\"===e&&(e=ec(t)),\"http://www.w3.org/1999/xhtml\"===e?\"script\"===t?((e=c.createElement(\"div\")).innerHTML=\"<script></script>\",e=e.removeChild(e.firstChild)):\"string\"==typeof r.is?e=c.createElement(t,{is:r.is}):(e=c.createElement(t),\"select\"===t&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,t),e[rz]=n,e[rT]=r,l(e,n,!1,!1),n.stateNode=e;e:{switch(c=eS(t,r),t){case\"dialog\":rt(\"cancel\",e),rt(\"close\",e),i=r;break;case\"iframe\":case\"object\":case\"embed\":rt(\"load\",e),i=r;break;case\"video\":case\"audio\":for(i=0;i<t9.length;i++)rt(t9[i],e);i=r;break;case\"source\":rt(\"error\",e),i=r;break;case\"img\":case\"image\":case\"link\":rt(\"error\",e),rt(\"load\",e),i=r;break;case\"details\":rt(\"toggle\",e),i=r;break;case\"input\":J(e,r),i=Z(e,r),rt(\"invalid\",e);break;case\"option\":default:i=r;break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),rt(\"invalid\",e);break;case\"textarea\":eo(e,r),i=eu(e,r),rt(\"invalid\",e)}for(s in ew(t,i),d=i)if(d.hasOwnProperty(s)){var m=d[s];\"style\"===s?eb(e,m):\"dangerouslySetInnerHTML\"===s?null!=(m=m?m.__html:void 0)&&em(e,m):\"children\"===s?\"string\"==typeof m?(\"textarea\"!==t||\"\"!==m)&&eh(e,m):\"number\"==typeof m&&eh(e,\"\"+m):\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&\"autoFocus\"!==s&&(p.hasOwnProperty(s)?null!=m&&\"onScroll\"===s&&rt(\"scroll\",e):null!=m&&_(e,s,m,c))}switch(t){case\"input\":Y(e),et(e,r,!1);break;case\"textarea\":Y(e),es(e);break;case\"option\":null!=r.value&&e.setAttribute(\"value\",\"\"+q(r.value));break;case\"select\":e.multiple=!!r.multiple,null!=(s=r.value)?ea(e,!!r.multiple,s,!1):null!=r.defaultValue&&ea(e,!!r.multiple,r.defaultValue,!0);break;default:\"function\"==typeof i.onClick&&(e.onclick=rg)}switch(t){case\"button\":case\"input\":case\"select\":case\"textarea\":r=!!r.autoFocus;break e;case\"img\":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return uN(n),null;case 6:if(e&&null!=n.stateNode)o(e,n,e.memoizedProps,r);else{if(\"string\"!=typeof r&&null===n.stateNode)throw Error(f(166));if(t=l1(l0.current),l1(lZ.current),ly(n)){if(r=n.stateNode,t=n.memoizedProps,r[rz]=n,(s=r.nodeValue!==t)&&null!==(e=ls))switch(e.tag){case 3:rh(r.nodeValue,t,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rh(r.nodeValue,t,0!=(1&e.mode))}s&&(n.flags|=4)}else(r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[rz]=n,n.stateNode=r}return uN(n),null;case 13:if(rj(l6),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(lf&&null!==lc&&0!=(1&n.mode)&&0==(128&n.flags))lb(),lk(),n.flags|=98560,s=!1;else if(s=ly(n),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(f(318));if(!(s=null!==(s=n.memoizedState)?s.dehydrated:null))throw Error(f(317));s[rz]=n}else lk(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;uN(n),s=!1}else null!==ld&&(oE(ld),ld=null),s=!0;if(!s)return 65536&n.flags?n:null}if(0!=(128&n.flags))return n.lanes=t,n;return(r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&l6.current)?0===u9&&(u9=3):oM())),null!==n.updateQueue&&(n.flags|=4),uN(n),null;case 4:return l3(),a(e,n),null===e&&ra(n.stateNode.containerInfo),uN(n),null;case 10:return lF(n.type._context),uN(n),null;case 19:if(rj(l6),null===(s=n.memoizedState))return uN(n),null;if(r=0!=(128&n.flags),null===(c=s.rendering)){if(r)uP(s,!1);else{if(0!==u9||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(c=l5(e))){for(n.flags|=128,uP(s,!1),null!==(r=c.updateQueue)&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;null!==t;)s=t,e=r,s.flags&=14680066,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return rB(l6,1&l6.current|2),n.child}e=e.sibling}null!==s.tail&&eJ()>ou&&(n.flags|=128,r=!0,uP(s,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=l5(c))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),uP(s,!0),null===s.tail&&\"hidden\"===s.tailMode&&!c.alternate&&!lf)return uN(n),null}else 2*eJ()-s.renderingStartTime>ou&&1073741824!==t&&(n.flags|=128,r=!0,uP(s,!1),n.lanes=4194304)}s.isBackwards?(c.sibling=n.child,n.child=c):(null!==(t=s.last)?t.sibling=c:n.child=c,s.last=c)}if(null!==s.tail)return n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=eJ(),n.sibling=null,t=l6.current,rB(l6,r?1&t|2:1&t),n;return uN(n),null;case 22:case 23:return oz(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&u6)&&(uN(n),6&n.subtreeFlags&&(n.flags|=8192)):uN(n),null;case 24:case 25:return null}throw Error(f(156,n.tag))}(t,n,u6))){u4=t;return}}else{if(null!==(t=function(e,n){switch(li(n),n.tag){case 1:return rY(n.type)&&rX(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return l3(),rj(rQ),rj(rW),l7(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return l8(n),null;case 13:if(rj(l6),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(f(340));lk()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return rj(l6),null;case 4:return l3(),null;case 10:return lF(n.type._context),null;case 22:case 23:return oz(),null;default:return null}}(t,n))){t.flags&=32767,u4=t;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{u9=6,u4=null;return}}if(null!==(n=n.sibling)){u4=n;return}u4=n=e}while(null!==n);0===u9&&(u9=5)}function oI(e,n,t){var r=nc,l=u1.transition;try{u1.transition=null,nc=1,function(e,n,t,r){do oU();while(null!==od);if(0!=(6&u2))throw Error(f(327));t=e.finishedWork;var l=e.finishedLanes;if(null!==t){if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0;var a=t.lanes|t.childLanes;if(function(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-e9(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,a),e===u3&&(u4=u3=null,u8=0),0==(2064&t.subtreeFlags)&&0==(2064&t.flags)||of||(of=!0,u=e3,o=function(){return oU(),null},eY(u,o)),a=0!=(15990&t.flags),0!=(15990&t.subtreeFlags)||a){a=u1.transition,u1.transition=null;var u,o,i,s,c,d=nc;nc=1;var p=u2;u2|=4,u0.current=null,function(e,n){if(rv=nO,tA(e=t$())){if(\"selectionStart\"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l,a=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(e){t=null;break e}var o=0,i=-1,s=-1,c=0,d=0,p=e,m=null;n:for(;;){for(;p!==t||0!==a&&3!==p.nodeType||(i=o+a),p!==u||0!==r&&3!==p.nodeType||(s=o+r),3===p.nodeType&&(o+=p.nodeValue.length),null!==(l=p.firstChild);)m=p,p=l;for(;;){if(p===e)break n;if(m===t&&++c===a&&(i=o),m===u&&++d===r&&(s=o),null!==(l=p.nextSibling))break;m=(p=m).parentNode}p=l}t=-1===i||-1===s?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ry={focusedElem:e,selectionRange:t},nO=!1,uR=n;null!==uR;)if(e=(n=uR).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,uR=e;else for(;null!==uR;){n=uR;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:aZ(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent=\"\":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(f(163))}}catch(e){o$(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,uR=e;break}uR=n.return}h=uO,uO=!1}(e,t),uq(t,e),function(e){var n=t$(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&function e(n,t){return!!n&&!!t&&(n===t||(!n||3!==n.nodeType)&&(t&&3===t.nodeType?e(n,t.parentNode):\"contains\"in n?n.contains(t):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(t))))}(t.ownerDocument.documentElement,t)){if(null!==r&&tA(t)){if(n=r.start,void 0===(e=r.end)&&(e=n),\"selectionStart\"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=tV(t,a);var u=tV(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(ry),nO=!!rv,ry=rv=null,e.current=t,i=t,s=e,c=l,uR=i,function e(n,t,r){for(var l=0!=(1&n.mode);null!==uR;){var a=uR,u=a.child;if(22===a.tag&&l){var o=null!==a.memoizedState||uz;if(!o){var i=a.alternate,s=null!==i&&null!==i.memoizedState||uT;i=uz;var c=uT;if(uz=o,(uT=s)&&!c)for(uR=a;null!==uR;)s=(o=uR).child,22===o.tag&&null!==o.memoizedState?uG(a):null!==s?(s.return=o,uR=s):uG(a);for(;null!==u;)uR=u,e(u,t,r),u=u.sibling;uR=a,uz=i,uT=c}uY(n,t,r)}else 0!=(8772&a.subtreeFlags)&&null!==u?(u.return=a,uR=u):uY(n,t,r)}}(i,s,c),eZ(),u2=p,nc=d,u1.transition=a}else e.current=t;if(of&&(of=!1,od=e,op=l),0===(a=e.pendingLanes)&&(oc=null),function(e){if(e5&&\"function\"==typeof e5.onCommitFiberRoot)try{e5.onCommitFiberRoot(e6,e,void 0,128==(128&e.current.flags))}catch(e){}}(t.stateNode,r),ow(e,eJ()),null!==n)for(r=e.onRecoverableError,t=0;t<n.length;t++)r((l=n[t]).value,{componentStack:l.stack,digest:l.digest});if(oi)throw oi=!1,e=os,os=null,e;0!=(1&op)&&0!==e.tag&&oU(),0!=(1&(a=e.pendingLanes))?e===oh?om++:(om=0,oh=e):om=0,r8()}}(e,n,t,r)}finally{u1.transition=l,nc=r}return null}function oU(){if(null!==od){var e=nf(op),n=u1.transition,t=nc;try{if(u1.transition=null,nc=16>e?16:e,null===od)var r=!1;else{if(e=od,od=null,op=0,0!=(6&u2))throw Error(f(331));var l=u2;for(u2|=4,uR=e.current;null!==uR;){var a=uR,u=a.child;if(0!=(16&uR.flags)){var o=a.deletions;if(null!==o){for(var i=0;i<o.length;i++){var s=o[i];for(uR=s;null!==uR;){var c=uR;switch(c.tag){case 0:case 11:case 15:uD(8,c,a)}var d=c.child;if(null!==d)d.return=c,uR=d;else for(;null!==uR;){var p=(c=uR).sibling,m=c.return;if(!function e(n){var t=n.alternate;null!==t&&(n.alternate=null,e(t)),n.child=null,n.deletions=null,n.sibling=null,5===n.tag&&null!==(t=n.stateNode)&&(delete t[rz],delete t[rT],delete t[rR],delete t[rM],delete t[rF]),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}(c),c===s){uR=null;break}if(null!==p){p.return=m,uR=p;break}uR=m}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}uR=a}}if(0!=(2064&a.subtreeFlags)&&null!==u)u.return=a,uR=u;else for(;null!==uR;){if(a=uR,0!=(2048&a.flags))switch(a.tag){case 0:case 11:case 15:uD(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,uR=y;break}uR=a.return}}var b=e.current;for(uR=b;null!==uR;){var k=(u=uR).child;if(0!=(2064&u.subtreeFlags)&&null!==k)k.return=u,uR=k;else for(u=b;null!==uR;){if(o=uR,0!=(2048&o.flags))try{switch(o.tag){case 0:case 11:case 15:uI(9,o)}}catch(e){o$(o,o.return,e)}if(o===u){uR=null;break}var w=o.sibling;if(null!==w){w.return=o.return,uR=w;break}uR=o.return}}if(u2=l,r8(),e5&&\"function\"==typeof e5.onPostCommitFiberRoot)try{e5.onPostCommitFiberRoot(e6,e)}catch(e){}r=!0}return r}finally{nc=t,u1.transition=n}}return!1}function oV(e,n,t){n=a7(e,n=a8(t,n),1),e=lQ(e,n,1),n=oy(),null!==e&&(ni(e,1,n),ow(e,n))}function o$(e,n,t){if(3===e.tag)oV(e,e,t);else for(;null!==n;){if(3===n.tag){oV(n,e,t);break}if(1===n.tag){var r=n.stateNode;if(\"function\"==typeof n.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===oc||!oc.has(r))){e=ue(n,e=a8(t,e),1),n=lQ(n,e,1),e=oy(),null!==n&&(ni(n,1,e),ow(n,e));break}}n=n.return}}function oA(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=oy(),e.pingedLanes|=e.suspendedLanes&t,u3===e&&(u8&t)===t&&(4===u9||3===u9&&(130023424&u8)===u8&&500>eJ()-oa?oT(e,0):ot|=t),ow(e,n)}function oj(e,n){0===n&&(0==(1&e.mode)?n=1:(n=nt,0==(130023424&(nt<<=1))&&(nt=4194304)));var t=oy();null!==(e=lA(e,n))&&(ni(e,n,t),ow(e,t))}function oB(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),oj(e,t)}function oH(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(f(314))}null!==r&&r.delete(n),oj(e,t)}function oW(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oQ(e,n,t,r){return new oW(e,n,t,r)}function oq(e){return!(!(e=e.prototype)||!e.isReactComponent)}function oK(e,n){var t=e.alternate;return null===t?((t=oQ(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function oY(e,n,t,r,l,a){var u=2;if(r=e,\"function\"==typeof e)oq(e)&&(u=1);else if(\"string\"==typeof e)u=5;else e:switch(e){case z:return oX(t.children,l,a,n);case T:u=8,l|=8;break;case L:return(e=oQ(12,t,n,2|l)).elementType=L,e.lanes=a,e;case O:return(e=oQ(13,t,n,l)).elementType=O,e.lanes=a,e;case D:return(e=oQ(19,t,n,l)).elementType=D,e.lanes=a,e;case V:return oG(t,l,a,n);default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case R:u=10;break e;case M:u=9;break e;case F:u=11;break e;case I:u=14;break e;case U:u=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,\"\"))}return(n=oQ(u,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function oX(e,n,t,r){return(e=oQ(7,e,r,n)).lanes=t,e}function oG(e,n,t,r){return(e=oQ(22,e,r,n)).elementType=V,e.lanes=t,e.stateNode={isHidden:!1},e}function oZ(e,n,t){return(e=oQ(6,e,null,n)).lanes=t,e}function oJ(e,n,t){return(n=oQ(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function o0(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function o1(e,n,t,r,l,a,u,o,i){return e=new o0(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=oQ(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},lB(a),e}function o2(e){if(!e)return rH;e=e._reactInternals;e:{if(eW(e)!==e||1!==e.tag)throw Error(f(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(rY(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(f(171))}if(1===e.tag){var t=e.type;if(rY(t))return rZ(e,t,n)}return n}function o3(e,n,t,r,l,a,u,o,i){return(e=o1(t,r,!0,e,l,a,u,o,i)).context=o2(null),t=e.current,(a=lW(r=oy(),l=ob(t))).callback=null!=n?n:null,lQ(t,a,l),e.current.lanes=l,ni(e,l,r),ow(e,r),e}function o4(e,n,t,r){var l=n.current,a=oy(),u=ob(l);return t=o2(t),null===n.context?n.context=t:n.pendingContext=t,(n=lW(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=lQ(l,n,u))&&(ok(e,l,u,a),lq(e,l,u)),u}function o8(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function o6(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function o5(e,n){o6(e,n),(e=e.alternate)&&o6(e,n)}i=function(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps||rQ.current)ua=!0;else{if(0==(e.lanes&t)&&0==(128&n.flags))return ua=!1,function(e,n,t){switch(n.tag){case 3:uh(n),lk();break;case 5:l4(n);break;case 1:rY(n.type)&&rJ(n);break;case 4:l2(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;rB(lz,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState)){if(null!==r.dehydrated)return rB(l6,1&l6.current),n.flags|=128,null;if(0!=(t&n.child.childLanes))return ub(e,n,t);return rB(l6,1&l6.current),null!==(e=uC(e,n,t))?e.sibling:null}rB(l6,1&l6.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return uE(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),rB(l6,l6.current),!r)return null;break;case 22:case 23:return n.lanes=0,uc(e,n,t)}return uC(e,n,t)}(e,n,t);ua=0!=(131072&e.flags)}}else ua=!1,lf&&0!=(1048576&n.flags)&&lu(n,r7,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;u_(e,n),e=n.pendingProps;var l=rK(n,rW.current);lD(n,t),l=ad(null,n,r,e,l,t);var a=ap();return n.flags|=1,\"object\"==typeof l&&null!==l&&\"function\"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,rY(r)?(a=!0,rJ(n)):a=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,lB(n),l.updater=a0,n.stateNode=l,l._reactInternals=n,a4(n,r,e,t),n=um(null,n,r,!0,a,t)):(n.tag=0,lf&&a&&lo(n),uu(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(u_(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=function(e){if(\"function\"==typeof e)return oq(e)?1:0;if(null!=e){if((e=e.$$typeof)===F)return 11;if(e===I)return 14}return 2}(r),e=aZ(r,e),l){case 0:n=ud(null,n,r,e,t);break e;case 1:n=up(null,n,r,e,t);break e;case 11:n=uo(null,n,r,e,t);break e;case 14:n=ui(null,n,r,aZ(r.type,e),t);break e}throw Error(f(306,r,\"\"))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),ud(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),up(e,n,r,l,t);case 3:e:{if(uh(n),null===e)throw Error(f(387));r=n.pendingProps,l=(a=n.memoizedState).element,lH(e,n),lY(n,r,null,t);var u=n.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){l=a8(Error(f(423)),n),n=ug(e,n,r,t,l);break e}if(r!==l){l=a8(Error(f(424)),n),n=ug(e,n,r,t,l);break e}for(lc=rC(n.stateNode.containerInfo.firstChild),ls=n,lf=!0,ld=null,t=lN(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(lk(),r===l){n=uC(e,n,t);break e}uu(e,n,r,t)}n=n.child}return n;case 5:return l4(n),null===e&&lg(n),r=n.type,l=n.pendingProps,a=null!==e?e.memoizedProps:null,u=l.children,rb(r,l)?u=null:null!==a&&rb(r,a)&&(n.flags|=32),uf(e,n),uu(e,n,u,t),n.child;case 6:return null===e&&lg(n),null;case 13:return ub(e,n,t);case 4:return l2(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=lP(n,null,r,t):uu(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),uo(e,n,r,l,t);case 7:return uu(e,n,n.pendingProps,t),n.child;case 8:case 12:return uu(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,a=n.memoizedProps,u=l.value,rB(lz,r._currentValue),r._currentValue=u,null!==a){if(tD(a.value,u)){if(a.children===l.children&&!rQ.current){n=uC(e,n,t);break e}}else for(null!==(a=n.child)&&(a.return=n);null!==a;){var o=a.dependencies;if(null!==o){u=a.child;for(var i=o.firstContext;null!==i;){if(i.context===r){if(1===a.tag){(i=lW(-1,t&-t)).tag=2;var s=a.updateQueue;if(null!==s){var c=(s=s.shared).pending;null===c?i.next=i:(i.next=c.next,c.next=i),s.pending=i}}a.lanes|=t,null!==(i=a.alternate)&&(i.lanes|=t),lO(a.return,t,n),o.lanes|=t;break}i=i.next}}else if(10===a.tag)u=a.type===n.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(f(341));u.lanes|=t,null!==(o=u.alternate)&&(o.lanes|=t),lO(u,t,n),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===n){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}}uu(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,lD(n,t),r=r(l=lI(l)),n.flags|=1,uu(e,n,r,t),n.child;case 14:return l=aZ(r=n.type,n.pendingProps),l=aZ(r.type,l),ui(e,n,r,l,t);case 15:return us(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),u_(e,n),n.tag=1,rY(r)?(e=!0,rJ(n)):e=!1,lD(n,t),a2(n,r,l),a4(n,r,l,t),um(null,n,r,!0,e,t);case 19:return uE(e,n,t);case 22:return uc(e,n,t)}throw Error(f(156,n.tag))};var o9=\"function\"==typeof reportError?reportError:function(e){console.error(e)};function o7(e){this._internalRoot=e}function ie(e){this._internalRoot=e}function it(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ir(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function il(){}function ia(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if(\"function\"==typeof l){var o=l;l=function(){var e=o8(u);o.call(e)}}o4(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if(\"function\"==typeof r){var a=r;r=function(){var e=o8(u);a.call(e)}}var u=o3(n,r,e,0,null,!1,!1,\"\",il);return e._reactRootContainer=u,e[rL]=u.current,ra(8===e.nodeType?e.parentNode:e),oN(),u}for(;l=e.lastChild;)e.removeChild(l);if(\"function\"==typeof r){var o=r;r=function(){var e=o8(i);o.call(e)}}var i=o1(e,0,!1,null,null,!1,!1,\"\",il);return e._reactRootContainer=i,e[rL]=i.current,ra(8===e.nodeType?e.parentNode:e),oN(function(){o4(n,i,t,r)}),i}(t,n,e,l,r);return o8(u)}ie.prototype.render=o7.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(f(409));o4(e,n,null,null)},ie.prototype.unmount=o7.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;oN(function(){o4(null,e,null,null)}),n[rL]=null}},ie.prototype.unstable_scheduleHydration=function(e){if(e){var n=nh();e={blockedOn:null,target:e,priority:n};for(var t=0;t<nE.length&&0!==n&&n<nE[t].priority;t++);nE.splice(t,0,e),0===t&&nN(e)}},nd=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=nr(n.pendingLanes);0!==t&&(ns(n,1|t),ow(n,eJ()),0==(6&u2)&&(ou=eJ()+500,r8()))}break;case 13:oN(function(){var n=lA(e,1);null!==n&&ok(n,e,1,oy())}),o5(e,1)}},np=function(e){if(13===e.tag){var n=lA(e,134217728);null!==n&&ok(n,e,134217728,oy()),o5(e,134217728)}},nm=function(e){if(13===e.tag){var n=ob(e),t=lA(e,n);null!==t&&ok(t,e,n,oy()),o5(e,n)}},nh=function(){return nc},ng=function(e,n){var t=nc;try{return nc=e,n()}finally{nc=t}},e_=function(e,n,t){switch(n){case\"input\":if(en(e,t),n=t.name,\"radio\"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+n)+'][type=\"radio\"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=rU(r);if(!l)throw Error(f(90));X(r),en(r,l)}}}break;case\"textarea\":ei(e,t);break;case\"select\":null!=(n=t.value)&&ea(e,!!t.multiple,n,!1)}},eL=oP,eR=oN;var iu={findFiberByHostInstance:rO,bundleType:0,version:\"18.3.1\",rendererPackageName:\"react-dom\"},io={bundleType:iu.bundleType,version:iu.version,rendererPackageName:iu.rendererPackageName,rendererConfig:iu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=eK(e))?null:e.stateNode},findFiberByHostInstance:iu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.1-next-f1338f8080-20240426\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ii.isDisabled&&ii.supportsFiber)try{e6=ii.inject(io),e5=ii}catch(e){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[rD,rI,rU,ez,eT,oP]},n.createPortal=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!it(n))throw Error(f(200));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:N,key:null==r?null:\"\"+r,children:e,containerInfo:n,implementation:t}}(e,n,null,t)},n.createRoot=function(e,n){if(!it(e))throw Error(f(299));var t=!1,r=\"\",l=o9;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),n=o1(e,1,!1,null,null,t,!1,r,l),e[rL]=n.current,ra(8===e.nodeType?e.parentNode:e),new o7(n)},n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if(\"function\"==typeof e.render)throw Error(f(188));throw Error(f(268,e=Object.keys(e).join(\",\")))}return e=null===(e=eK(n))?null:e.stateNode},n.flushSync=function(e){return oN(e)},n.hydrate=function(e,n,t){if(!ir(n))throw Error(f(200));return ia(null,e,n,!0,t)},n.hydrateRoot=function(e,n,t){if(!it(e))throw Error(f(405));var r=null!=t&&t.hydratedSources||null,l=!1,a=\"\",u=o9;if(null!=t&&(!0===t.unstable_strictMode&&(l=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(u=t.onRecoverableError)),n=o3(n,null,e,1,null!=t?t:null,l,!1,a,u),e[rL]=n.current,ra(e),r)for(e=0;e<r.length;e++)l=(l=(t=r[e])._getVersion)(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new ie(n)},n.render=function(e,n,t){if(!ir(n))throw Error(f(200));return ia(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!ir(e))throw Error(f(40));return!!e._reactRootContainer&&(oN(function(){ia(null,null,e,!1,function(){e._reactRootContainer=null,e[rL]=null})}),!0)},n.unstable_batchedUpdates=oP,n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!ir(t))throw Error(f(200));if(null==e||void 0===e._reactInternals)throw Error(f(38));return ia(e,n,t,!1,r)},n.version=\"18.3.1-next-f1338f8080-20240426\"},20745:function(e,n,t){var r=t(73935);n.createRoot=r.createRoot,n.hydrateRoot=r.hydrateRoot},73935:function(e,n,t){!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(64448)},75251:function(e,n,t){/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var r=t(67294),l=Symbol.for(\"react.element\"),a=Symbol.for(\"react.fragment\"),u=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,a={},s=null,c=null;for(r in void 0!==t&&(s=\"\"+t),void 0!==n.key&&(s=\"\"+n.key),void 0!==n.ref&&(c=n.ref),n)u.call(n,r)&&!i.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:o.current}}n.Fragment=a,n.jsx=s,n.jsxs=s},72408:function(e,n){/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var t=Symbol.for(\"react.element\"),r=Symbol.for(\"react.portal\"),l=Symbol.for(\"react.fragment\"),a=Symbol.for(\"react.strict_mode\"),u=Symbol.for(\"react.profiler\"),o=Symbol.for(\"react.provider\"),i=Symbol.for(\"react.context\"),s=Symbol.for(\"react.forward_ref\"),c=Symbol.for(\"react.suspense\"),f=Symbol.for(\"react.memo\"),d=Symbol.for(\"react.lazy\"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}function y(){}function b(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,n,\"setState\")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},y.prototype=v.prototype;var k=b.prototype=new y;k.constructor=b,h(k,v.prototype),k.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,n,r){var l,a={},u=null,o=null;if(null!=n)for(l in void 0!==n.ref&&(o=n.ref),void 0!==n.key&&(u=\"\"+n.key),n)S.call(n,l)&&!E.hasOwnProperty(l)&&(a[l]=n[l]);var i=arguments.length-2;if(1===i)a.children=r;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(l in i=e.defaultProps)void 0===a[l]&&(a[l]=i[l]);return{$$typeof:t,type:e,key:u,ref:o,props:a,_owner:x.current}}function C(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===t}var P=/\\/+/g;function N(e,n){var t,r;return\"object\"==typeof e&&null!==e&&null!=e.key?(t=\"\"+e.key,r={\"=\":\"=0\",\":\":\"=2\"},\"$\"+t.replace(/[=:]/g,function(e){return r[e]})):n.toString(36)}function z(e,n,l){if(null==e)return e;var a=[],u=0;return!function e(n,l,a,u,o){var i,s,c,f=typeof n;(\"undefined\"===f||\"boolean\"===f)&&(n=null);var d=!1;if(null===n)d=!0;else switch(f){case\"string\":case\"number\":d=!0;break;case\"object\":switch(n.$$typeof){case t:case r:d=!0}}if(d)return o=o(d=n),n=\"\"===u?\".\"+N(d,0):u,w(o)?(a=\"\",null!=n&&(a=n.replace(P,\"$&/\")+\"/\"),e(o,l,a,\"\",function(e){return e})):null!=o&&(C(o)&&(i=o,s=a+(!o.key||d&&d.key===o.key?\"\":(\"\"+o.key).replace(P,\"$&/\")+\"/\")+n,o={$$typeof:t,type:i.type,key:s,ref:i.ref,props:i.props,_owner:i._owner}),l.push(o)),1;if(d=0,u=\"\"===u?\".\":u+\":\",w(n))for(var m=0;m<n.length;m++){var h=u+N(f=n[m],m);d+=e(f,l,a,h,o)}else if(\"function\"==typeof(h=null===(c=n)||\"object\"!=typeof c?null:\"function\"==typeof(c=p&&c[p]||c[\"@@iterator\"])?c:null))for(n=h.call(n),m=0;!(f=n.next()).done;)h=u+N(f=f.value,m++),d+=e(f,l,a,h,o);else if(\"object\"===f)throw Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===(l=String(n))?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":l)+\"). If you meant to render a collection of children, use an array instead.\");return d}(e,a,\"\",\"\",function(e){return n.call(l,e,u++)}),a}function T(e){if(-1===e._status){var n=e._result;(n=n()).then(function(n){(0===e._status||-1===e._status)&&(e._status=1,e._result=n)},function(n){(0===e._status||-1===e._status)&&(e._status=2,e._result=n)}),-1===e._status&&(e._status=0,e._result=n)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},R={transition:null};function M(){throw Error(\"act(...) is not supported in production builds of React.\")}n.Children={map:z,forEach:function(e,n,t){z(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return z(e,function(){n++}),n},toArray:function(e){return z(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},n.Component=v,n.Fragment=l,n.Profiler=u,n.PureComponent=b,n.StrictMode=a,n.Suspense=c,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:R,ReactCurrentOwner:x},n.act=M,n.cloneElement=function(e,n,r){if(null==e)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+e+\".\");var l=h({},e.props),a=e.key,u=e.ref,o=e._owner;if(null!=n){if(void 0!==n.ref&&(u=n.ref,o=x.current),void 0!==n.key&&(a=\"\"+n.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in n)S.call(n,s)&&!E.hasOwnProperty(s)&&(l[s]=void 0===n[s]&&void 0!==i?i[s]:n[s])}var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){i=Array(s);for(var c=0;c<s;c++)i[c]=arguments[c+2];l.children=i}return{$$typeof:t,type:e.type,key:a,ref:u,props:l,_owner:o}},n.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},n.createElement=_,n.createFactory=function(e){var n=_.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:s,render:e}},n.isValidElement=C,n.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},n.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},n.startTransition=function(e){var n=R.transition;R.transition={};try{e()}finally{R.transition=n}},n.unstable_act=M,n.useCallback=function(e,n){return L.current.useCallback(e,n)},n.useContext=function(e){return L.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return L.current.useDeferredValue(e)},n.useEffect=function(e,n){return L.current.useEffect(e,n)},n.useId=function(){return L.current.useId()},n.useImperativeHandle=function(e,n,t){return L.current.useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return L.current.useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return L.current.useLayoutEffect(e,n)},n.useMemo=function(e,n){return L.current.useMemo(e,n)},n.useReducer=function(e,n,t){return L.current.useReducer(e,n,t)},n.useRef=function(e){return L.current.useRef(e)},n.useState=function(e){return L.current.useState(e)},n.useSyncExternalStore=function(e,n,t){return L.current.useSyncExternalStore(e,n,t)},n.useTransition=function(){return L.current.useTransition()},n.version=\"18.3.1\"},67294:function(e,n,t){e.exports=t(72408)},85893:function(e,n,t){e.exports=t(75251)},60053:function(e,n){/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */function t(e,n){var t=e.length;for(e.push(n);0<t;){var r=t-1>>>1,l=e[r];if(0<a(l,n))e[r]=n,e[t]=l,t=r;else break}}function r(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;for(var r=0,l=e.length,u=l>>>1;r<u;){var o=2*(r+1)-1,i=e[o],s=o+1,c=e[s];if(0>a(i,t))s<l&&0>a(c,i)?(e[r]=c,e[s]=t,r=s):(e[r]=i,e[o]=t,r=o);else if(s<l&&0>a(c,t))e[r]=c,e[s]=t,r=s;else break}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if(\"object\"==typeof performance&&\"function\"==typeof performance.now){var u,o=performance;n.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();n.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,v=!1,y=\"function\"==typeof setTimeout?setTimeout:null,b=\"function\"==typeof clearTimeout?clearTimeout:null,k=\"undefined\"!=typeof setImmediate?setImmediate:null;function w(e){for(var n=r(f);null!==n;){if(null===n.callback)l(f);else if(n.startTime<=e)l(f),n.sortIndex=n.expirationTime,t(c,n);else break;n=r(f)}}function S(e){if(v=!1,w(e),!g){if(null!==r(c))g=!0,M(x);else{var n=r(f);null!==n&&F(S,n.startTime-e)}}}function x(e,t){g=!1,v&&(v=!1,b(C),C=-1),h=!0;var a=m;try{for(w(t),p=r(c);null!==p&&(!(p.expirationTime>t)||e&&!z());){var u=p.callback;if(\"function\"==typeof u){p.callback=null,m=p.priorityLevel;var o=u(p.expirationTime<=t);t=n.unstable_now(),\"function\"==typeof o?p.callback=o:p===r(c)&&l(c),w(t)}else l(c);p=r(c)}if(null!==p)var i=!0;else{var s=r(f);null!==s&&F(S,s.startTime-t),i=!1}return i}finally{p=null,m=a,h=!1}}\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,_=null,C=-1,P=5,N=-1;function z(){return!(n.unstable_now()-N<P)}function T(){if(null!==_){var e=n.unstable_now();N=e;var t=!0;try{t=_(!0,e)}finally{t?u():(E=!1,_=null)}}else E=!1}if(\"function\"==typeof k)u=function(){k(T)};else if(\"undefined\"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=T,u=function(){R.postMessage(null)}}else u=function(){y(T,0)};function M(e){_=e,E||(E=!0,u())}function F(e,t){C=y(function(){e(n.unstable_now())},t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){g||h||(g=!0,M(x))},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return m},n.unstable_getFirstCallbackNode=function(){return r(c)},n.unstable_next=function(e){switch(m){case 1:case 2:case 3:var n=3;break;default:n=m}var t=m;m=n;try{return e()}finally{m=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=m;m=e;try{return n()}finally{m=t}},n.unstable_scheduleCallback=function(e,l,a){var u=n.unstable_now();switch(a=\"object\"==typeof a&&null!==a&&\"number\"==typeof(a=a.delay)&&0<a?u+a:u,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:d++,callback:l,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>u?(e.sortIndex=a,t(f,e),null===r(c)&&e===r(f)&&(v?(b(C),C=-1):v=!0,F(S,a-u))):(e.sortIndex=o,t(c,e),g||h||(g=!0,M(x))),e},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(e){var n=m;return function(){var t=m;m=n;try{return e.apply(this,arguments)}finally{m=t}}}},63840:function(e,n,t){e.exports=t(60053)}}]);"
  },
  {
    "path": "client/out/_next/static/chunks/main-0fb83ae612d5aa4d.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{84878:function(e,t){\"use strict\";function r(){return\"\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getDeploymentIdQueryOrEmptyString\",{enumerable:!0,get:function(){return r}})},40037:function(){\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var e=/\\((.*)\\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if(\"function\"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(e),t)})},6220:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addBasePath\",{enumerable:!0,get:function(){return a}});let n=r(70679),o=r(51297);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,\"\"))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38109:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addLocale\",{enumerable:!0,get:function(){return n}}),r(51297);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3782:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION:function(){return n},FLIGHT_PARAMETERS:function(){return l},NEXT_DID_POSTPONE_HEADER:function(){return c},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return s},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return u},RSC_HEADER:function(){return r}});let r=\"RSC\",n=\"Next-Action\",o=\"Next-Router-State-Tree\",a=\"Next-Router-Prefetch\",i=\"Next-Url\",u=\"text/x-component\",l=[[r],[o],[a]],s=\"_rsc\",c=\"x-nextjs-postponed\";(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66937:function(e,t){\"use strict\";let r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addMessageListener:function(){return o},connectHMR:function(){return u},sendMessage:function(){return a}});let n=[];function o(e){n.push(e)}function a(e){if(r&&r.readyState===r.OPEN)return r.send(e)}let i=0;function u(e){!function t(){let o;function a(){if(r.onerror=null,r.onclose=null,r.close(),++i>25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return\"http:\"===t?\"ws\":\"wss\"}(e.assetPrefix||\"\"),c=e.assetPrefix.replace(/^\\/+/,\"\"),f=s+\"://\"+u+\":\"+l+(c?\"/\"+c:\"\");c.startsWith(\"http\")&&(f=s+\"://\"+c.split(\"://\",2)[1]),(r=new window.WebSocket(\"\"+f+e.path)).onopen=function(){i=0,window.console.log(\"[HMR] connected\")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(t)}}()}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27448:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"detectDomainLocale\",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71447:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hasBasePath\",{enumerable:!0,get:function(){return o}});let n=r(37459);function o(e){return(0,n.pathHasPrefix)(e,\"\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6166:function(e,t){\"use strict\";let r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return n},default:function(){return i},isEqualNode:function(){return a}});let n={acceptCharset:\"accept-charset\",className:\"class\",htmlFor:\"for\",httpEquiv:\"http-equiv\",noModule:\"noModule\"};function o(e){let{type:t,props:r}=e,o=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||\"children\"===e||\"dangerouslySetInnerHTML\"===e||void 0===r[e])continue;let a=n[e]||e.toLowerCase();\"script\"===t&&(\"async\"===a||\"defer\"===a||\"noModule\"===a)?o[a]=!!r[e]:o.setAttribute(a,r[e])}let{children:a,dangerouslySetInnerHTML:i}=r;return i?o.innerHTML=i.__html||\"\":a&&(o.textContent=\"string\"==typeof a?a:Array.isArray(a)?a.join(\"\"):\"\"),o}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute(\"nonce\");if(r&&!e.getAttribute(\"nonce\")){let n=t.cloneNode(!0);return n.setAttribute(\"nonce\",\"\"),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if(\"link\"===e.type&&e.props[\"data-optimized-fonts\"]){if(document.querySelector('style[data-href=\"'+e.props[\"data-href\"]+'\"]'))return;e.props.href=e.props[\"data-href\"],e.props[\"data-href\"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o=\"\";if(n){let{children:e}=n.props;o=\"string\"==typeof e?e:Array.isArray(e)?e.join(\"\"):\"\"}o!==document.title&&(document.title=o),[\"meta\",\"base\",\"link\",\"style\",\"script\"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName(\"head\")[0],n=r.querySelector(\"meta[name=next-head-count]\"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t<i;t++,r=(null==r?void 0:r.previousElementSibling)||null){var l;(null==r?void 0:null==(l=r.tagName)?void 0:l.toLowerCase())===e&&u.push(r)}let s=t.map(o).filter(e=>{for(let t=0,r=u.length;t<r;t++)if(a(u[t],e))return u.splice(t,1),!1;return!0});u.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51844:function(e,t,r){\"use strict\";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,\"__esModule\",{value:!0});let m=r(61757);Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return z},hydrate:function(){return ef},initialize:function(){return Y},router:function(){return n},version:function(){return G}});let _=r(38754),g=r(85893);r(40037);let y=_._(r(67294)),v=_._(r(20745)),b=r(32201),P=_._(r(88483)),E=r(54494),S=r(31079),O=r(21979),R=r(61979),j=r(34723),w=r(84350),T=r(21201),x=_._(r(6166)),A=_._(r(41503)),C=_._(r(55708)),M=r(95454),I=r(26036),N=r(80676),L=r(29146),D=r(15287),k=r(71447),U=r(55716),F=r(38863),B=r(77353),H=_._(r(11889)),W=_._(r(74529)),q=_._(r(5223)),G=\"14.2.5\",z=(0,P.default)(),V=e=>[].slice.call(e),X=!1;class $ extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search,1)||o.props&&o.props.__N_SSG&&(location.search,1))&&n.replace(n.pathname+\"?\"+String((0,R.assign)((0,R.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function Y(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById(\"__NEXT_DATA__\").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||\"\";if(self.__next_set_public_path__(\"\"+t+\"/_next/\"),(0,j.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,w.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(90069);e(o.scriptLoader)}i=new A.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,x.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById(\"__next\"),{assetPrefix:t}}function K(e,t){return(0,g.jsx)(e,{...t})}function Q(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,F.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)($,{fn:e=>Z({App:f,err:e}).catch(e=>console.error(\"Error rendering page: \",e)),children:(0,g.jsx)(U.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(B.SearchParamsContext.Provider,{value:(0,F.adaptForSearchParams)(n),children:(0,g.jsx)(F.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(B.PathParamsContext.Provider,{value:(0,F.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,g.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(L.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let J=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(Q,{children:K(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error(\"A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred\"),i.loadPage(\"/_error\").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(83387))).then(n=>Promise.resolve().then(()=>m._(r(52239))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=J(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,w.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:\"navigationStart\",beforeRender:\"beforeRender\",afterRender:\"afterRender\",afterHydrate:\"afterHydrate\",routeChange:\"routeChange\"},er={hydration:\"Next.js-hydration\",beforeHydration:\"Next.js-before-hydration\",routeChangeToRender:\"Next.js-route-change-to-render\",render:\"Next.js-render\"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){w.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,\"mark\").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!w.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,\"mark\");e.length&&(performance.getEntriesByName(et.beforeRender,\"mark\").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,C.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l=\"initial\"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error(\"Cancel rendering route\");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=new Set(V(document.querySelectorAll(\"style[data-n-href]\")).map(e=>e.getAttribute(\"data-n-href\"))),t=document.querySelector(\"noscript[data-n-css]\"),r=null==t?void 0:t.getAttribute(\"data-n-css\");l.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement(\"style\");e.setAttribute(\"data-n-href\",n),e.setAttribute(\"media\",\"x\"),r&&e.setAttribute(\"nonce\",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(document.querySelectorAll(\"style[data-n-href]\")),r=t.map(e=>e.getAttribute(\"data-n-href\"));for(let n=0;n<r.length;++n)e.has(r[n])?t[n].removeAttribute(\"media\"):t[n].setAttribute(\"media\",\"x\");let n=document.querySelector(\"noscript[data-n-css]\");n&&l.forEach(e=>{let{href:t}=e,r=document.querySelector('style[data-n-href=\"'+t+'\"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll(\"link[data-n-p]\")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(Q,{children:[K(r,f),(0,g.jsx)(T.Portal,{type:\"next-route-announcer\",children:(0,g.jsx)(M.RouteAnnouncer,{})})]})]});return!function(e,t){w.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=v.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await Z(e);return}try{await es(e)}catch(r){let t=(0,N.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint(\"/_app\");if(\"error\"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+\"-\"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:\"mark\"===l||\"measure\"===l?\"custom\":\"web-vital\"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if(\"error\"in n)throw n.error;p=n.component}catch(e){t=(0,N.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,I.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:J,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25178:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(5975);let n=r(51844);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51297:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizePathTrailingSlash\",{enumerable:!0,get:function(){return a}});let n=r(5608),o=r(37070),a=e=>{if(!e.startsWith(\"/\"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return\"\"+(0,n.removeTrailingSlash)(t)+r+a};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11889:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return o}});let n=r(87633);function o(e){let t=\"function\"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41503:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return d}});let n=r(38754),o=r(6220),a=r(4574),i=n._(r(54967)),u=r(38109),l=r(21979),s=r(95909),c=r(5608),f=r(49586);r(15875);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if(\"/\"!==m[0])throw Error('Route name should start with a \"/\", got \"'+m+'\"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),\".json\");return(0,o.addBasePath)(\"/_next/data/\"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if(\"component\"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55708:function(e,t,r){\"use strict\";let n;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return u}});let o=[\"CLS\",\"FCP\",\"FID\",\"INP\",\"LCP\",\"TTFB\"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(78018)),t[\"on\"+e](i)}catch(t){console.warn(\"Failed to track \"+e+\" web-vital\",t)}};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21201:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"Portal\",{enumerable:!0,get:function(){return a}});let n=r(67294),o=r(73935),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15287:function(e,t,r){\"use strict\";function n(e){return e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeBasePath\",{enumerable:!0,get:function(){return n}}),r(71447),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32979:function(e,t,r){\"use strict\";function n(e,t){return e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeLocale\",{enumerable:!0,get:function(){return n}}),r(37070),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40460:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r=\"undefined\"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n=\"undefined\"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69975:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"resolveHref\",{enumerable:!0,get:function(){return f}});let n=r(61979),o=r(28547),a=r(71576),i=r(84350),u=r(51297),l=r(92712),s=r(21939),c=r(4574);function f(e,t,r){let f;let d=\"string\"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\\/\\//),h=p?d.slice(p[0].length):d;if((h.split(\"?\",1)[0]||\"\").match(/(\\/\\/|\\\\)/)){console.error(\"Invalid href '\"+d+\"' passed to next/router in page: '\"+e.pathname+\"'. Repeated forward-slashes (//) or backslashes \\\\ are not valid in the href.\");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:\"\")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith(\"#\")?e.asPath:e.pathname,\"http://n\")}catch(e){f=new URL(\"/\",\"http://n\")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t=\"\";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95454:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(38754),o=r(85893),a=n._(r(67294)),i=r(26036),u={border:0,clip:\"rect(0 0 0 0)\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",padding:0,position:\"absolute\",top:0,width:\"1px\",whiteSpace:\"nowrap\",wordWrap:\"normal\"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(\"\"),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector(\"h1\");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)(\"p\",{\"aria-live\":\"assertive\",id:\"__next-route-announcer__\",role:\"alert\",style:u,children:t})},s=l;(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49586:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return p},isAssetError:function(){return s},markAssetError:function(){return l}}),r(38754),r(54967);let n=r(16953),o=r(40460),a=r(84878);function i(e,t,r){let n,o=t.get(e);if(o)return\"future\"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol(\"ASSET_LOAD_ERROR\");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=function(e){try{return e=document.createElement(\"link\"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports(\"prefetch\")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error(\"Failed to load client build manifest\")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error(\"Failed to lookup route: \"+t));let o=r[t].map(t=>e+\"/_next/\"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(\".js\")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(\".css\")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^=\"'+e+'\"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement(\"script\")).onload=r,t.onerror=()=>n(l(Error(\"Failed to load script: \"+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:\"same-origin\"}).then(t=>{if(!t.ok)throw Error(\"Failed to load stylesheet: \"+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&\"resolve\"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error(\"Route did not complete loading: \"+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return\"error\"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r=\"script\",new Promise((e,o)=>{if(document.querySelector('\\n      link[rel=\"prefetch\"][href^=\"'+t+'\"],\\n      link[rel=\"preload\"][href^=\"'+t+'\"],\\n      script[src^=\"'+t+'\"]'))return e();n=document.createElement(\"link\"),r&&(n.as=r),n.rel=\"prefetch\",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error(\"Failed to prefetch: \"+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26036:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return m},default:function(){return p},makePublicRouterInstance:function(){return _},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(38754),o=n._(r(67294)),a=n._(r(34595)),i=r(54494),u=n._(r(80676)),l=n._(r(8395)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=[\"pathname\",\"route\",\"query\",\"asPath\",\"components\",\"isFallback\",\"basePath\",\"locale\",\"locales\",\"defaultLocale\",\"isReady\",\"isPreview\",\"isLocaleDomain\",\"domainLocales\"],f=[\"push\",\"replace\",\"reload\",\"back\",\"prefetch\",\"beforePopState\"];function d(){if(!s.router)throw Error('No router instance found.\\nYou should only use \"next/router\" on the client side of your app.\\n');return s.router}Object.defineProperty(s,\"events\",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return d()[e](...r)}}),[\"routeChangeStart\",\"beforeHistoryChange\",\"routeChangeComplete\",\"routeChangeError\",\"hashChangeStart\",\"hashChangeComplete\"].forEach(e=>{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=\"on\"+e.charAt(0).toUpperCase()+e.substring(1);if(s[o])try{s[o](...r)}catch(e){console.error(\"Error when running the Router event: \"+o),console.error((0,u.default)(e)?e.message+\"\\n\"+e.stack:e+\"\")}})})});let p=s;function h(){let e=o.default.useContext(i.RouterContext);if(!e)throw Error(\"NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted\");return e}function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.router=new a.default(...t),s.readyCallbacks.forEach(e=>e()),s.readyCallbacks=[],s.router}function _(e){let t={};for(let r of c){if(\"object\"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return e[r](...n)}}),t}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90069:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return g}});let n=r(38754),o=r(61757),a=r(85893),i=n._(r(73935)),u=o._(r(67294)),l=r(32201),s=r(6166),c=r(40460),f=new Map,d=new Set,p=[\"onLoad\",\"onReady\",\"dangerouslySetInnerHTML\",\"children\",\"onError\",\"strategy\",\"stylesheets\"],h=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:\"style\"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement(\"link\");r.type=\"text/css\",r.rel=\"stylesheet\",r.href=e,t.appendChild(r)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i=\"\",strategy:u=\"afterInteractive\",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement(\"script\"),y=new Promise((e,t)=>{g.addEventListener(\"load\",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener(\"error\",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||\"\",_()):i?(g.textContent=\"string\"==typeof i?i:Array.isArray(i)?i.join(\"\"):\"\",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}\"worker\"===u&&g.setAttribute(\"type\",\"text/partytown\"),g.setAttribute(\"data-nscript\",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t=\"afterInteractive\"}=e;\"lazyOnload\"===t?window.addEventListener(\"load\",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript=\"beforeInteractive\"]'),...document.querySelectorAll('[data-nscript=\"beforePageRender\"]')].forEach(e=>{let t=e.id||e.getAttribute(\"src\");d.add(t)})}function y(e){let{id:t,src:r=\"\",onLoad:n=()=>{},onReady:o=null,strategy:s=\"afterInteractive\",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:v,nonce:b}=(0,u.useContext)(l.HeadManagerContext),P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&(\"afterInteractive\"===s?m(e):\"lazyOnload\"===s&&(\"complete\"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener(\"load\",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),(\"beforeInteractive\"===s||\"worker\"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),v){if(p&&p.forEach(e=>{i.default.preinit(e,{as:\"style\"})}),\"beforeInteractive\"===s)return r?(i.default.preload(r,h.integrity?{as:\"script\",integrity:h.integrity,nonce:b}:{as:\"script\",nonce:b}),(0,a.jsx)(\"script\",{nonce:b,dangerouslySetInnerHTML:{__html:\"(self.__next_s=self.__next_s||[]).push(\"+JSON.stringify([r,{...h,id:t}])+\")\"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)(\"script\",{nonce:b,dangerouslySetInnerHTML:{__html:\"(self.__next_s=self.__next_s||[]).push(\"+JSON.stringify([0,{...h,id:t}])+\")\"}}));\"afterInteractive\"===s&&r&&i.default.preload(r,h.integrity?{as:\"script\",integrity:h.integrity,nonce:b}:{as:\"script\",nonce:b})}return null}Object.defineProperty(y,\"__nextScript\",{value:!0});let v=y;(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5223:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return o}});let n=r(66937);function o(e){if(\"ended\"!==e.state.state)throw Error(\"Expected span to be ended\");(0,n.sendMessage)(JSON.stringify({event:\"span-end\",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74529:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return i}});let n=r(38754)._(r(88483));class o{end(e){if(\"ended\"===this.state.state)throw Error(\"Span has already ended\");this.state={state:\"ended\",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:\"inprogress\"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on(\"spanend\",e),()=>{this._emitter.off(\"spanend\",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit(\"spanend\",e)}}}let i=new a;(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16953:function(e,t){\"use strict\";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy(\"nextjs\",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"__unsafeCreateTrustedScriptURL\",{enumerable:!0,get:function(){return n}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5975:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(84878),self.__next_set_public_path__=e=>{r.p=e},(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8395:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return a}}),r(38754);let n=r(85893);r(67294);let o=r(26036);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52239:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return l}});let n=r(38754),o=r(85893),a=n._(r(67294)),i=r(84350);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83387:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return c}});let n=r(38754),o=r(85893),a=n._(r(67294)),i=n._(r(37219)),u={400:\"Bad Request\",404:\"This page could not be found\",405:\"Method Not Allowed\",500:\"Internal Server Error\"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={error:{fontFamily:'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',height:\"100vh\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\"},desc:{lineHeight:\"48px\"},h1:{display:\"inline-block\",margin:\"0 20px 0 0\",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:\"top\"},h2:{fontSize:14,fontWeight:400,lineHeight:\"28px\"},wrap:{display:\"inline-block\"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||\"An unexpected error has occurred\";return(0,o.jsxs)(\"div\",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)(\"title\",{children:e?e+\": \"+r:\"Application error: a client-side exception has occurred\"})}),(0,o.jsxs)(\"div\",{style:s.desc,children:[(0,o.jsx)(\"style\",{dangerouslySetInnerHTML:{__html:\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\"+(t?\"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\":\"\")}}),e?(0,o.jsx)(\"h1\",{className:\"next-error-h1\",style:s.h1,children:e}):null,(0,o.jsx)(\"div\",{style:s.wrap,children:(0,o.jsxs)(\"h2\",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:\"Application error: a client-side exception has occurred (see the browser console for more information)\"}),\".\"]})})]})]})}}c.displayName=\"ErrorPage\",c.getInitialProps=l,c.origGetInitialProps=l,(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49686:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"AmpStateContext\",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext({})},92241:function(e,t){\"use strict\";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isInAmpMode\",{enumerable:!0,get:function(){return r}})},55716:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(38754)._(r(67294)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},8331:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"BloomFilter\",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),1540483477),t^=t>>>13,t=Math.imul(t,1540483477);return t>>>0}(\"\"+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},15875:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return v},APP_CLIENT_INTERNALS:function(){return K},APP_PATHS_MANIFEST:function(){return _},APP_PATH_ROUTES_MANIFEST:function(){return g},AUTOMATIC_FONT_OPTIMIZATION_MANIFEST:function(){return I},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return k},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return U},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return $},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return et},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return Z},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return L},DEFAULT_RUNTIME_WEBPACK:function(){return er},DEFAULT_SANS_SERIF_FONT:function(){return es},DEFAULT_SERIF_FONT:function(){return el},DEV_CLIENT_PAGES_MANIFEST:function(){return x},DEV_MIDDLEWARE_MANIFEST:function(){return C},EDGE_RUNTIME_WEBPACK:function(){return en},EDGE_UNSUPPORTED_NODE_APIS:function(){return eh},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return b},GOOGLE_FONT_PROVIDER:function(){return ei},IMAGES_MANIFEST:function(){return w},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return X},INTERNAL_HEADERS:function(){return a},MIDDLEWARE_BUILD_MANIFEST:function(){return z},MIDDLEWARE_MANIFEST:function(){return A},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return E},OPTIMIZED_FONT_PROVIDERS:function(){return eu},PAGES_MANIFEST:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return f},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return R},REACT_LOADABLE_MANIFEST:function(){return M},ROUTES_MANIFEST:function(){return j},RSC_MODULE_TYPES:function(){return ep},SERVER_DIRECTORY:function(){return N},SERVER_FILES_MANIFEST:function(){return T},SERVER_PROPS_ID:function(){return ea},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return eo},STATIC_STATUS_PAGES:function(){return ec},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return P},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ef},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ed},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l}});let n=r(38754)._(r(14083)),o={client:\"client\",server:\"server\",edgeServer:\"edge-server\"},a=[\"x-invoke-error\",\"x-invoke-output\",\"x-invoke-path\",\"x-invoke-query\",\"x-invoke-status\",\"x-middleware-invoke\"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u=\"/_not-found\",l=\"\"+u+\"/page\",s=\"phase-export\",c=\"phase-production-build\",f=\"phase-production-server\",d=\"phase-development-server\",p=\"phase-test\",h=\"phase-info\",m=\"pages-manifest.json\",_=\"app-paths-manifest.json\",g=\"app-path-routes-manifest.json\",y=\"build-manifest.json\",v=\"app-build-manifest.json\",b=\"functions-config-manifest.json\",P=\"subresource-integrity-manifest\",E=\"next-font-manifest\",S=\"export-marker.json\",O=\"export-detail.json\",R=\"prerender-manifest.json\",j=\"routes-manifest.json\",w=\"images-manifest.json\",T=\"required-server-files.json\",x=\"_devPagesManifest.json\",A=\"middleware-manifest.json\",C=\"_devMiddlewareManifest.json\",M=\"react-loadable-manifest.json\",I=\"font-manifest.json\",N=\"server\",L=[\"next.config.js\",\"next.config.mjs\"],D=\"BUILD_ID\",k=[\"/_document\",\"/_app\",\"/_error\"],U=\"public\",F=\"static\",B=\"__NEXT_DROP_CLIENT_FILE__\",H=\"__NEXT_BUILTIN_DOCUMENT__\",W=\"__barrel_optimize__\",q=\"client-reference-manifest\",G=\"server-reference-manifest\",z=\"middleware-build-manifest\",V=\"middleware-react-loadable-manifest\",X=\"interception-route-rewrite-manifest\",$=\"main\",Y=\"\"+$+\"-app\",K=\"app-pages-internals\",Q=\"react-refresh\",J=\"amp\",Z=\"webpack\",ee=\"polyfills\",et=Symbol(ee),er=\"webpack-runtime\",en=\"edge-runtime-webpack\",eo=\"__N_SSG\",ea=\"__N_SSP\",ei=\"https://fonts.googleapis.com/\",eu=[{url:ei,preconnect:\"https://fonts.gstatic.com\"},{url:\"https://use.typekit.net\",preconnect:\"https://use.typekit.net\"}],el={name:\"Times New Roman\",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},es={name:\"Arial\",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ec=[\"/500\"],ef=1,ed=6e3,ep={client:\"client\",server:\"server\"},eh=[\"clearImmediate\",\"setImmediate\",\"BroadcastChannel\",\"ByteLengthQueuingStrategy\",\"CompressionStream\",\"CountQueuingStrategy\",\"DecompressionStream\",\"DomException\",\"MessageChannel\",\"MessageEvent\",\"MessagePort\",\"ReadableByteStreamController\",\"ReadableStreamBYOBRequest\",\"ReadableStreamDefaultController\",\"TransformStreamDefaultController\",\"WritableStreamDefaultController\"],em=new Set([$,Q,J,Y]);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60491:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"escapeStringRegexp\",{enumerable:!0,get:function(){return o}});let r=/[|\\\\{}()[\\]^$+*?.-]/,n=/[|\\\\{}()[\\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,\"\\\\$&\"):e}},32201:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"HeadManagerContext\",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext({})},37219:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return f}});let n=r(38754),o=r(61757),a=r(85893),i=o._(r(67294)),u=n._(r(8457)),l=r(49686),s=r(32201),c=r(92241);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)(\"meta\",{charSet:\"utf-8\"})];return e||t.push((0,a.jsx)(\"meta\",{name:\"viewport\",content:\"width=device-width\"})),t}function d(e,t){return\"string\"==typeof t||\"number\"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>\"string\"==typeof t||\"number\"==typeof t?e:e.concat(t),[])):e.concat(t)}r(42723);let p=[\"name\",\"httpEquiv\",\"charSet\",\"itemProp\"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&\"number\"!=typeof o.key&&o.key.indexOf(\"$\")>0){i=!0;let t=o.key.slice(o.key.indexOf(\"$\")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case\"title\":case\"base\":t.has(o.type)?a=!1:t.add(o.type);break;case\"meta\":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t)){if(\"charSet\"===t)r.has(t)?a=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;(\"name\"!==t||!i)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}}return a}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&\"link\"===e.type&&e.props.href&&[\"https://fonts.googleapis.com/css\",\"https://use.typekit.net/\"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t[\"data-href\"]=t.href,t.href=void 0,t[\"data-optimized-fonts\"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77353:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(67294),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},75934:function(e,t){\"use strict\";function r(e,t){let r;let n=e.split(\"/\");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join(\"/\")||\"/\",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizeLocalePath\",{enumerable:!0,get:function(){return r}})},29146:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ImageConfigContext\",{enumerable:!0,get:function(){return a}});let n=r(38754)._(r(67294)),o=r(76252),a=n.default.createContext(o.imageConfigDefault)},76252:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=[\"default\",\"imgix\",\"cloudinary\",\"akamai\",\"custom\"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",loaderFile:\"\",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:[\"image/webp\"],dangerouslyAllowSVG:!1,contentSecurityPolicy:\"script-src 'none'; frame-src 'none'; sandbox;\",contentDispositionType:\"inline\",remotePatterns:[],unoptimized:!1}},21728:function(e,t){\"use strict\";function r(e){return Object.prototype.toString.call(e)}function n(e){if(\"[object Object]\"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty(\"isPrototypeOf\")}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},87633:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r=\"BAILOUT_TO_CLIENT_SIDE_RENDERING\";class n extends Error{constructor(e){super(\"Bail out to client-side rendering: \"+e),this.reason=e,this.digest=r}}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&e.digest===r}},88483:function(e,t){\"use strict\";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return r}})},14083:function(e){\"use strict\";e.exports=[\"chrome 64\",\"edge 79\",\"firefox 67\",\"opera 51\",\"safari 12\"]},39312:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"denormalizePagePath\",{enumerable:!0,get:function(){return a}});let n=r(21939),o=r(32491);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith(\"/index/\")&&!(0,n.isDynamicRoute)(t)?t.slice(6):\"/index\"!==t?t:\"/\"}},49952:function(e,t){\"use strict\";function r(e){return e.startsWith(\"/\")?e:\"/\"+e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ensureLeadingSlash\",{enumerable:!0,get:function(){return r}})},32491:function(e,t){\"use strict\";function r(e){return e.replace(/\\\\/g,\"/\")}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizePathSep\",{enumerable:!0,get:function(){return r}})},54494:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"RouterContext\",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext(null)},38863:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(61757),o=r(85893),a=n._(r(67294)),i=r(77353),u=r(21939),l=r(92085),s=r(40001);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},fastRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,\"http://f\")}catch(e){return\"/\"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},34595:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return X},matchesMiddleware:function(){return D}});let n=r(38754),o=r(61757),a=r(5608),i=r(49586),u=r(90069),l=o._(r(80676)),s=r(39312),c=r(75934),f=n._(r(88483)),d=r(84350),p=r(21979),h=r(95909),m=n._(r(78192)),_=r(88272),g=r(40001),y=r(28547);r(27448);let v=r(37070),b=r(38109),P=r(32979),E=r(15287),S=r(6220),O=r(71447),R=r(69975),j=r(79423),w=r(28995),T=r(95701),x=r(69574),A=r(92712),C=r(41147),M=r(71576),I=r(4574),N=r(31079);function L(){return Object.assign(Error(\"Route Cancelled\"),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,v.parsePath)(e.asPath),n=(0,O.hasBasePath)(r)?(0,E.removeBasePath)(r):r,o=(0,S.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function k(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function U(e,t,r){let[n,o]=(0,R.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=k(n),o=o?k(o):o;let l=i?n:(0,S.addBasePath)(n),s=r?k((0,R.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,S.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return\"/404\"===r||\"/_error\"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get(\"x-nextjs-rewrite\"),u=o||t.headers.get(\"x-nextjs-matched-path\"),l=t.headers.get(\"x-matched-path\");if(!l||u||l.includes(\"__next_data_catchall\")||l.includes(\"/_error\")||l.includes(\"/404\")||(u=l),u){if(u.startsWith(\"/\")){let t=(0,h.parseRelativeUrl)(u),l=(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(n=>{let[a,{__rewrites:i}]=n,u=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(u)||!o&&a.includes((0,c.normalizeLocalePath)((0,E.removeBasePath)(u),r.router.locales).pathname)){let r=(0,w.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0});u=(0,S.addBasePath)(r.pathname),t.pathname=u}{let e=(0,m.default)(u,a,i,t.query,e=>F(e,a),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,u=t.pathname,Object.assign(t.query,e.parsedAs.query))}let f=a.includes(s)?s:F((0,c.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,p.isDynamicRoute)(f)){let e=(0,_.getRouteMatcher)((0,g.getRouteRegex)(f))(u);Object.assign(t.query,e||{})}return{type:\"rewrite\",parsedAs:t,resolvedHref:f}})}let t=(0,v.parsePath)(e);return Promise.resolve({type:\"redirect-external\",destination:\"\"+(0,T.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:\"\"})+t.query+t.hash})}let s=t.headers.get(\"x-nextjs-redirect\");if(s){if(s.startsWith(\"/\")){let e=(0,v.parsePath)(s),t=(0,T.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:\"\"});return Promise.resolve({type:\"redirect-internal\",newAs:\"\"+t+e.query+e.hash,newUrl:\"\"+t+e.query+e.hash})}return Promise.resolve({type:\"redirect-external\",destination:s})}return Promise.resolve({type:\"next\"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol(\"SSG_DATA_NOT_FOUND\");function W(e){try{return JSON.parse(e)}catch(e){return null}}function q(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:\"same-origin\",method:n.method||\"GET\",headers:Object.assign({},n.headers,{\"x-nextjs-data\":\"1\"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:\"prefetch\"}:{},n&&o?{\"x-middleware-prefetch\":\"1\"}:{}),method:null!=(s=null==e?void 0:e.method)?s:\"GET\"}).then(r=>r.ok&&(null==e?void 0:e.method)===\"HEAD\"?{dataHref:t,response:r,text:\"\",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=W(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let u=Error(\"Failed to load static props\");throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?W(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&\"no-cache\"!==e.response.headers.get(\"x-middleware-cache\")||delete r[f],e)).catch(e=>{throw c||delete r[f],(\"Failed to fetch\"===e.message||\"NetworkError when attempting to fetch resource.\"===e.message||\"Load failed\"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>(r[f]=Promise.resolve(e),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:\"HEAD\"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function z(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error(\"Invariant: attempted to hard navigate to the same URL \"+t+\" \"+location.href);window.location.href=t}let V=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: \"'+t+'\"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class X{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change(\"pushState\",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change(\"replaceState\",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,\"http://n\").pathname),f=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,\"http://n\").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split(\"/\");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join(\"/\");if(r&&(null==(u=this._bfl_d)?void 0:u.contains(r))){s=!0;break}}}if(l||s){if(n)return!0;return z({url:(0,S.addBasePath)((0,b.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,R,j,w,T,C,N;let k,B;if(!(0,A.isLocalURL)(t))return z({url:t,router:this}),!1;let W=1===n._h;W||n.shallow||await this._bfl(r,void 0,n.locale);let q=W||n._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(r).pathname,G={...this.state},V=!0!==this.isReady;this.isReady=!0;let $=this.isSsr;if(W||(this.isSsr=!1),W&&this.clc)return!1;let Y=G.locale;d.ST&&performance.mark(\"routeChange\");let{shallow:K=!1,scroll:Q=!0}=n,J={shallow:K};this._inFlightRoute&&this.clc&&($||X.events.emit(\"routeChangeError\",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,O.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n.locale,this.defaultLocale));let Z=(0,P.removeLocale)((0,O.hasBasePath)(r)?(0,E.removeBasePath)(r):r,G.locale);this._inFlightRoute=r;let ee=Y!==G.locale;if(!W&&this.onlyAHashChange(Z)&&!ee){G.asPath=Z,X.events.emit(\"hashChangeStart\",r,J),this.changeState(e,t,r,{...n,scroll:!1}),Q&&this.scrollToHash(Z);try{await this.set(G,this.components[G.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&X.events.emit(\"routeChangeError\",e,Z,J),e}return X.events.emit(\"hashChangeComplete\",r,J),!0}let et=(0,h.parseRelativeUrl)(t),{pathname:er,query:en}=et;try{[k,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return z({url:r,router:this}),!1}this.urlIsNew(Z)||ee||(e=\"replaceState\");let eo=r;er=er?(0,a.removeTrailingSlash)((0,E.removeBasePath)(er)):er;let ea=(0,a.removeTrailingSlash)(er),ei=r.startsWith(\"/\")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[er])?void 0:s.__appRouter)return z({url:r,router:this}),new Promise(()=>{});let eu=!!(ei&&ea!==ei&&(!(0,p.isDynamicRoute)(ea)||!(0,_.getRouteMatcher)((0,g.getRouteRegex)(ea))(ei))),el=!n.shallow&&await D({asPath:r,locale:G.locale,router:this});if(W&&el&&(q=!1),q&&\"/_error\"!==er){if(n._shouldResolveHref=!0,r.startsWith(\"/\")){let e=(0,m.default)((0,S.addBasePath)((0,b.addLocale)(Z,G.locale),!0),k,B,en,e=>F(e,k),this.locales);if(e.externalDest)return z({url:r,router:this}),!0;el||(eo=e.asPath),e.matchedPage&&e.resolvedHref&&(er=e.resolvedHref,et.pathname=(0,S.addBasePath)(er),el||(t=(0,y.formatWithValidation)(et)))}else et.pathname=F(er,k),et.pathname===er||(er=et.pathname,et.pathname=(0,S.addBasePath)(er),el||(t=(0,y.formatWithValidation)(et)))}if(!(0,A.isLocalURL)(r))return z({url:r,router:this}),!1;eo=(0,P.removeLocale)((0,E.removeBasePath)(eo),G.locale),ea=(0,a.removeTrailingSlash)(er);let es=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,h.parseRelativeUrl)(eo),n=e.pathname,o=(0,g.getRouteRegex)(ea);es=(0,_.getRouteMatcher)(o)(n);let a=ea===n,i=a?(0,I.interpolateAs)(ea,n,en):{};if(es&&(!a||i.result))a?r=(0,y.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,M.omit)(en,i.params)})):Object.assign(en,es);else{let e=Object.keys(o.groups).filter(e=>!en[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?\"The provided `href` (\"+t+\") value is missing query values (\"+e.join(\", \")+\") to be interpolated properly. \":\"The provided `as` value (\"+n+\") is incompatible with the `href` value (\"+ea+\"). \")+\"Read more: https://nextjs.org/docs/messages/\"+(a?\"href-interpolation-failed\":\"incompatible-href-as\"))}}W||X.events.emit(\"routeChangeStart\",r,J);let ec=\"/404\"===this.pathname||\"/_error\"===this.pathname;try{let a=await this.getRouteInfo({route:ea,pathname:er,query:en,as:r,resolvedAs:eo,routeProps:J,locale:G.locale,isPreview:G.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:W&&!this.isFallback,isMiddlewareRewrite:eu});if(W||n.shallow||await this._bfl(r,\"resolvedAs\"in a?a.resolvedAs:void 0,G.locale),\"route\"in a&&el){ea=er=a.route||ea,J.shallow||(en=Object.assign({},a.query||{},en));let e=(0,O.hasBasePath)(et.pathname)?(0,E.removeBasePath)(et.pathname):et.pathname;if(es&&er!==e&&Object.keys(es).forEach(e=>{es&&en[e]===es[e]&&delete en[e]}),(0,p.isDynamicRoute)(er)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,G.locale),!0);(0,O.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,g.getRouteRegex)(er),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(en,n)}}if(\"type\"in a){if(\"redirect-internal\"===a.type)return this.change(e,a.newUrl,a.newAs,n);return z({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith(\"/\")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,k);let{url:o,as:a}=U(this,t,t);return this.change(e,o,a,n)}return z({url:t,router:this}),new Promise(()=>{})}if(G.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent(\"/404\"),e=\"/404\"}catch(t){e=\"/_error\"}if(a=await this.getRouteInfo({route:e,pathname:e,query:en,as:r,resolvedAs:eo,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isNotFound:!0}),\"type\"in a)throw Error(\"Unexpected middleware effect on /404\")}}W&&\"/_error\"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(R=a.props)?void 0:R.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&G.route===(null!=(j=a.route)?j:ea),d=null!=(w=n.scroll)?w:!W&&!s,m=null!=o?o:d?{x:0,y:0}:null,y={...G,route:ea,pathname:er,query:en,asPath:Z,isFallback:!1};if(W&&ec){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:r,resolvedAs:eo,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isQueryUpdating:W&&!this.isFallback}),\"type\"in a)throw Error(\"Unexpected middleware effect on \"+this.pathname);\"/_error\"===this.pathname&&(null==(C=self.__NEXT_DATA__.props)?void 0:null==(T=C.pageProps)?void 0:T.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,m)}catch(e){throw(0,l.default)(e)&&e.cancelled&&X.events.emit(\"routeChangeError\",e,Z,J),e}return!0}if(X.events.emit(\"beforeHistoryChange\",r,J),this.changeState(e,t,r,n),!(W&&!m&&!V&&!ee&&(0,x.compareRouterStates)(y,this.state))){try{await this.set(y,a,m)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw W||X.events.emit(\"routeChangeError\",a.error,Z,J),a.error;W||X.events.emit(\"routeChangeComplete\",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),(\"pushState\"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key=\"pushState\"!==e?this._key:G()},\"\",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw X.events.emit(\"routeChangeError\",e,n,o),z({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent(\"/_error\"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error(\"Error in error page `getInitialProps`: \",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+\"\"),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,g=t;try{var v,b,P,S;let e=this.components[g];if(u.shallow&&e&&this.route===g)return e;let t=V({route:g,router:this});f&&(e=void 0);let l=!e||\"initial\"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?\"/404\":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},R=h&&!m?null:await B({fetchData:()=>q(O),asPath:_?\"/404\":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(R&&(\"/_error\"===r||\"/404\"===r)&&(R.effect=void 0),h&&(R?R.json=self.__NEXT_DATA__.props:R={json:self.__NEXT_DATA__.props}),t(),(null==R?void 0:null==(v=R.effect)?void 0:v.type)===\"redirect-internal\"||(null==R?void 0:null==(b=R.effect)?void 0:b.type)===\"redirect-external\")return R.effect;if((null==R?void 0:null==(P=R.effect)?void 0:P.type)===\"rewrite\"){let t=(0,a.removeTrailingSlash)(R.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(g=t,r=R.effect.resolvedHref,n={...n,...R.effect.parsedAs.query},i=(0,E.removeBasePath)((0,c.normalizeLocalePath)(R.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],u.shallow&&e&&this.route===g&&!f))return{...e,route:g}}if((0,j.isAPIRoute)(g))return z({url:o,router:this}),new Promise(()=>{});let w=l||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==R?void 0:null==(S=R.response)?void 0:S.headers.get(\"x-middleware-skip\"),x=w.__N_SSG||w.__N_SSP;T&&(null==R?void 0:R.dataHref)&&delete this.sdc[R.dataHref];let{props:A,cacheKey:C}=await this._getData(async()=>{if(x){if((null==R?void 0:R.json)&&!T)return{cacheKey:R.cacheKey,props:R.json};let e=(null==R?void 0:R.dataHref)?R.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await q({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(w.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return w.__N_SSP&&O.dataHref&&C&&delete this.sdc[C],this.isPreview||!w.__N_SSG||h||q(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),A.pageProps=Object.assign({},A.pageProps),w.props=A,w.route=g,w.query=n,w.resolvedAs=i,this.components[g]=w,w}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components[\"/_app\"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split(\"#\",2),[n,o]=e.split(\"#\",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=\"\"]=e.split(\"#\",2);(0,N.handleSmoothScroll)(()=>{if(\"\"===t||\"top\"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,C.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:u,query:l}=n,s=u,c=await this.pageLoader.getPageList(),f=t,d=void 0!==r.locale?r.locale||void 0:this.locale,O=await D({asPath:t,locale:d,router:this});if(t.startsWith(\"/\")){let r;({__rewrites:r}=await (0,i.getClientBuildManifest)());let o=(0,m.default)((0,S.addBasePath)((0,b.addLocale)(t,this.locale),!0),c,r,n.query,e=>F(e,c),this.locales);if(o.externalDest)return;O||(f=(0,P.removeLocale)((0,E.removeBasePath)(o.asPath),this.locale)),o.matchedPage&&o.resolvedHref&&(u=o.resolvedHref,n.pathname=u,O||(e=(0,y.formatWithValidation)(n)))}n.pathname=F(n.pathname,c),(0,p.isDynamicRoute)(n.pathname)&&(u=n.pathname,n.pathname=u,Object.assign(l,(0,_.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,v.parsePath)(t).pathname)||{}),O||(e=(0,y.formatWithValidation)(n)));let R=await B({fetchData:()=>q({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:f,locale:d}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==R?void 0:R.effect.type)===\"rewrite\"&&(n.pathname=R.effect.resolvedHref,u=R.effect.resolvedHref,l={...l,...R.effect.parsedAs.query},f=R.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(n)),(null==R?void 0:R.effect.type)===\"redirect-external\")return;let j=(0,a.removeTrailingSlash)(u);await this._bfl(t,f,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(j).then(t=>!!t&&q({dataHref:(null==R?void 0:R.json)?null==R?void 0:R.dataHref:this.pageLoader.getDataHref({href:e,asPath:f,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?\"loadPage\":\"prefetch\"](j)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error(\"Loading initial props cancelled\");throw e.cancelled=!0,e}return e})}_getFlightData(e){return q({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components[\"/_app\"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:g,defaultLocale:v,domainLocales:b,isPreview:P}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState(\"replaceState\",(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,S.addBasePath)(this.asPath)||l!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change(\"replaceState\",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let E=(0,a.removeTrailingSlash)(e);this.components={},\"/_error\"!==e&&(this.components[E]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components[\"/_app\"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(8331),t={numItems:3,errorRate:1e-4,numBits:58,numHashes:14,bitArray:[1,1,0,1,0,1,1,0,1,1,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,1,1,1,0,1,1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,1,1]},n={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=X.events,this.pageLoader=i;let O=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=\"\",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||(O||self.location.search,0)),this.state={route:E,pathname:e,query:t,asPath:O?e:n,isPreview:!!P,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith(\"//\")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState(\"replaceState\",a?o:(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),o,r),a))}window.addEventListener(\"popstate\",this.onPopState)}}X.events=(0,f.default)()},92528:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addLocale\",{enumerable:!0,get:function(){return a}});let n=r(70679),o=r(37459);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,\"/api\")||(0,o.pathHasPrefix)(i,\"/\"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,\"/\"+t)}},70679:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addPathPrefix\",{enumerable:!0,get:function(){return o}});let n=r(37070);function o(e,t){if(!e.startsWith(\"/\")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return\"\"+t+r+o+a}},35999:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addPathSuffix\",{enumerable:!0,get:function(){return o}});let n=r(37070);function o(e,t){if(!e.startsWith(\"/\")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return\"\"+r+t+o+a}},33e3:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(49952),o=r(74565);function a(e){return(0,n.ensureLeadingSlash)(e.split(\"/\").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||\"@\"===t[0]||(\"page\"===t||\"route\"===t)&&r===n.length-1?e:e+\"/\"+t,\"\"))}function i(e){return e.replace(/\\.rsc($|\\?)/,\"$1\")}},92085:function(e,t){\"use strict\";function r(e){return new URL(e,\"http://n\").searchParams}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"asPathToSearchParams\",{enumerable:!0,get:function(){return r}})},69574:function(e,t){\"use strict\";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if(\"query\"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"compareRouterStates\",{enumerable:!0,get:function(){return r}})},95701:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"formatNextPathnameInfo\",{enumerable:!0,get:function(){return u}});let n=r(5608),o=r(70679),a=r(35999),i=r(92528);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,\"/_next/data/\"+e.buildId),\"/\"===e.pathname?\"index.json\":\".json\")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith(\"/\")?t:(0,a.addPathSuffix)(t,\"/\"):(0,n.removeTrailingSlash)(t)}},28547:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(61757)._(r(61979)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||\"\",i=e.pathname||\"\",u=e.hash||\"\",l=e.query||\"\",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,\":\")+\"@\":\"\",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(\":\")?\"[\"+r+\"]\":r),e.port&&(s+=\":\"+e.port)),l&&\"object\"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&\"?\"+l||\"\";return a&&!a.endsWith(\":\")&&(a+=\":\"),e.slashes||(!a||o.test(a))&&!1!==s?(s=\"//\"+(s||\"\"),i&&\"/\"!==i[0]&&(i=\"/\"+i)):s||(s=\"\"),u&&\"#\"!==u[0]&&(u=\"#\"+u),c&&\"?\"!==c[0]&&(c=\"?\"+c),\"\"+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace(\"#\",\"%23\"))+u}let i=[\"auth\",\"hash\",\"host\",\"hostname\",\"href\",\"path\",\"pathname\",\"port\",\"protocol\",\"query\",\"search\",\"slashes\"];function u(e){return a(e)}},54967:function(e,t){\"use strict\";function r(e,t){return void 0===t&&(t=\"\"),(\"/\"===e?\"/index\":/^\\/index(\\/|$)/.test(e)?\"/index\"+e:e)+t}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return r}})},28995:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getNextPathnameInfo\",{enumerable:!0,get:function(){return i}});let n=r(75934),o=r(58668),a=r(37459);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:\"/\"!==e?e.endsWith(\"/\"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith(\"/_next/data/\")&&c.pathname.endsWith(\".json\")){let e=c.pathname.replace(/^\\/_next\\/data\\//,\"\").replace(/\\.json$/,\"\").split(\"/\"),r=e[0];c.buildId=r,f=\"index\"!==e[1]?\"/\"+e.slice(1).join(\"/\"):\"/\",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},31079:function(e,t){\"use strict\";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior=\"auto\",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleSmoothScroll\",{enumerable:!0,get:function(){return r}})},21939:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(92186),o=r(21979)},4574:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"interpolateAs\",{enumerable:!0,get:function(){return a}});let n=r(88272),o=r(40001);function a(e,t,r){let a=\"\",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):\"\")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||\"\",{repeat:r,optional:n}=u[e],o=\"[\"+(r?\"...\":\"\")+e+\"]\";return n&&(o=(t?\"\":\"/\")+\"[\"+o+\"]\"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join(\"/\"):encodeURIComponent(t))||\"/\")})||(a=\"\"),{params:s,result:a}}},41147:function(e,t){\"use strict\";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isBot\",{enumerable:!0,get:function(){return r}})},21979:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isDynamicRoute\",{enumerable:!0,get:function(){return a}});let n=r(92407),o=/\\/\\[[^/]+?\\](?=\\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},92712:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isLocalURL\",{enumerable:!0,get:function(){return a}});let n=r(84350),o=r(71447);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},71576:function(e,t){\"use strict\";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"omit\",{enumerable:!0,get:function(){return r}})},37070:function(e,t){\"use strict\";function r(e){let t=e.indexOf(\"#\"),r=e.indexOf(\"?\"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):\"\",hash:t>-1?e.slice(t):\"\"}:{pathname:e,query:\"\",hash:\"\"}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parsePath\",{enumerable:!0,get:function(){return r}})},95909:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parseRelativeUrl\",{enumerable:!0,get:function(){return a}});let n=r(84350),o=r(61979);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(\".\")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error(\"invariant: invalid relative URL, router received \"+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},82104:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parseUrl\",{enumerable:!0,get:function(){return a}});let n=r(61979),o=r(95909);function a(e){if(e.startsWith(\"/\"))return(0,o.parseRelativeUrl)(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:t.search}}},37459:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"pathHasPrefix\",{enumerable:!0,get:function(){return o}});let n=r(37070);function o(e,t){if(\"string\"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+\"/\")}},33926:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getPathMatch\",{enumerable:!0,get:function(){return o}});let n=r(74329);function o(e,t){let r=[],o=(0,n.pathToRegexp)(e,r,{delimiter:\"/\",sensitive:\"boolean\"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),a=(0,n.regexpToFunction)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,r);return(e,n)=>{if(\"string\"!=typeof e)return!1;let o=a(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)\"number\"==typeof e.name&&delete o.params[e.name];return{...n,...o.params}}}},74061:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{compileNonPath:function(){return f},matchHas:function(){return c},prepareDestination:function(){return d}});let n=r(74329),o=r(60491),a=r(82104),i=r(92407),u=r(3782),l=r(11730);function s(e){return e.replace(/__ESC_COLON_/gi,\":\")}function c(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=[]);let o={},a=r=>{let n;let a=r.key;switch(r.type){case\"header\":a=a.toLowerCase(),n=e.headers[a];break;case\"cookie\":n=\"cookies\"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case\"query\":n=t[a];break;case\"host\":{let{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(\":\",1)[0].toLowerCase()}}if(!r.value&&n)return o[function(e){let t=\"\";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(a)]=n,!0;if(n){let e=RegExp(\"^\"+r.value+\"$\"),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{o[e]=t.groups[e]}):\"host\"===r.type&&t[0]&&(o.host=t[0])),!0}return!1};return!!r.every(e=>a(e))&&!n.some(e=>a(e))&&o}function f(e,t){if(!e.includes(\":\"))return e;for(let r of Object.keys(t))e.includes(\":\"+r)&&(e=e.replace(RegExp(\":\"+r+\"\\\\*\",\"g\"),\":\"+r+\"--ESCAPED_PARAM_ASTERISKS\").replace(RegExp(\":\"+r+\"\\\\?\",\"g\"),\":\"+r+\"--ESCAPED_PARAM_QUESTION\").replace(RegExp(\":\"+r+\"\\\\+\",\"g\"),\":\"+r+\"--ESCAPED_PARAM_PLUS\").replace(RegExp(\":\"+r+\"(?!\\\\w)\",\"g\"),\"--ESCAPED_PARAM_COLON\"+r));return e=e.replace(/(:|\\*|\\?|\\+|\\(|\\)|\\{|\\})/g,\"\\\\$1\").replace(/--ESCAPED_PARAM_PLUS/g,\"+\").replace(/--ESCAPED_PARAM_COLON/g,\":\").replace(/--ESCAPED_PARAM_QUESTION/g,\"?\").replace(/--ESCAPED_PARAM_ASTERISKS/g,\"*\"),(0,n.compile)(\"/\"+e,{validate:!1})(t).slice(1)}function d(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq,delete r.__nextInferredLocaleFromDefault,delete r[u.NEXT_RSC_UNION_QUERY];let l=e.destination;for(let t of Object.keys({...e.params,...r}))l=l.replace(RegExp(\":\"+(0,o.escapeStringRegexp)(t),\"g\"),\"__ESC_COLON_\"+t);let c=(0,a.parseUrl)(l),d=c.query,p=s(\"\"+c.pathname+(c.hash||\"\")),h=s(c.hostname||\"\"),m=[],_=[];(0,n.pathToRegexp)(p,m),(0,n.pathToRegexp)(h,_);let g=[];m.forEach(e=>g.push(e.name)),_.forEach(e=>g.push(e.name));let y=(0,n.compile)(p,{validate:!1}),v=(0,n.compile)(h,{validate:!1});for(let[t,r]of Object.entries(d))Array.isArray(r)?d[t]=r.map(t=>f(s(t),e.params)):\"string\"==typeof r&&(d[t]=f(s(r),e.params));let b=Object.keys(e.params).filter(e=>\"nextInternalLocale\"!==e);if(e.appendParamsToQuery&&!b.some(e=>g.includes(e)))for(let t of b)t in d||(d[t]=e.params[t]);if((0,i.isInterceptionRouteAppPath)(p))for(let t of p.split(\"/\")){let r=i.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){e.params[\"0\"]=r;break}}try{let[r,n]=(t=y(e.params)).split(\"#\",2);c.hostname=v(e.params),c.pathname=r,c.hash=(n?\"#\":\"\")+(n||\"\"),delete c.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Error(\"To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match\");throw e}return c.query={...r,...c.query},{newUrl:t,destQuery:d,parsedDestination:c}}},61979:function(e,t){\"use strict\";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return\"string\"!=typeof e&&(\"number\"!=typeof e||isNaN(e))&&\"boolean\"!=typeof e?\"\":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},58668:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removePathPrefix\",{enumerable:!0,get:function(){return o}});let n=r(37459);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith(\"/\")?r:\"/\"+r}},5608:function(e,t){\"use strict\";function r(e){return e.replace(/\\/$/,\"\")||\"/\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeTrailingSlash\",{enumerable:!0,get:function(){return r}})},78192:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return s}});let n=r(33926),o=r(74061),a=r(5608),i=r(75934),u=r(15287),l=r(95909);function s(e,t,r,s,c,f){let d,p=!1,h=!1,m=(0,l.parseRelativeUrl)(e),_=(0,a.removeTrailingSlash)((0,i.normalizeLocalePath)((0,u.removeBasePath)(m.pathname),f).pathname),g=r=>{let l=(0,n.getPathMatch)(r.source+\"\",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,o.matchHas)({headers:{host:document.location.hostname,\"user-agent\":navigator.userAgent},cookies:document.cookie.split(\"; \").reduce((e,t)=>{let[r,...n]=t.split(\"=\");return e[r]=n.join(\"=\"),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return h=!0,!0;let n=(0,o.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:s});if(m=n.parsedDestination,e=n.newUrl,Object.assign(s,n.parsedDestination.query),_=(0,a.removeTrailingSlash)((0,i.normalizeLocalePath)((0,u.removeBasePath)(e),f).pathname),t.includes(_))return p=!0,d=_,!0;if((d=c(_))!==e&&t.includes(d))return p=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)g(r.beforeFiles[e]);if(!(p=t.includes(_))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(g(r.afterFiles[e])){y=!0;break}}if(y||(d=c(_),y=p=t.includes(d)),!y){for(let e=0;e<r.fallback.length;e++)if(g(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:p,resolvedHref:d,externalDest:h}}},88272:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getRouteMatcher\",{enumerable:!0,get:function(){return o}});let n=r(84350);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError(\"failed to decode param\")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf(\"/\")?n.split(\"/\").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},40001:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l}});let n=r(92407),o=r(60491),a=r(5608);function i(e){let t=e.startsWith(\"[\")&&e.endsWith(\"]\");t&&(e=e.slice(1,-1));let r=e.startsWith(\"...\");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split(\"/\"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},\"/\"+(0,o.escapeStringRegexp)(t)+\"([^/]+?)\"}if(!a)return\"/\"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?\"(?:/(.+?))?\":\"/(.+?)\":\"/([^/]+?)\"}}).join(\"\"),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp(\"^\"+t+\"(?:/)?$\"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\\W/g,\"\");u&&(f=\"\"+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=\"\"+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):\"\";return c?s?\"(?:/\"+p+\"(?<\"+f+\">.+?))?\":\"/\"+p+\"(?<\"+f+\">.+?)\":\"/\"+p+\"(?<\"+f+\">[^/]+?)\"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split(\"/\"),u=(r=0,()=>{let e=\"\",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?\"nxtI\":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?\"nxtP\":void 0}):\"/\"+(0,o.escapeStringRegexp)(e)}).join(\"\"),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:\"^\"+r.namedParameterizedRoute+\"(?:/)?$\",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if(\"/\"===r)return{namedRegex:\"^/\"+(n?\".*\":\"\")+\"$\"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:\"^\"+o+(n?\"(?:(/.*)?)\":\"\")+\"$\"}}},92186:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSortedRoutes\",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split(\"/\").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e=\"/\");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf(\"[]\"),1),null!==this.restSlugName&&t.splice(t.indexOf(\"[...]\"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf(\"[[...]]\"),1);let r=t.map(t=>this.children.get(t)._smoosh(\"\"+e+t+\"/\")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get(\"[]\")._smoosh(e+\"[\"+this.slugName+\"]/\")),!this.placeholder){let t=\"/\"===e?\"/\":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route (\"'+t+'\" and \"'+t+\"[[...\"+this.optionalRestSlugName+']]\").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get(\"[...]\")._smoosh(e+\"[...\"+this.restSlugName+\"]/\")),null!==this.optionalRestSlugName&&r.push(...this.children.get(\"[[...]]\")._smoosh(e+\"[[...\"+this.optionalRestSlugName+\"]]/\")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error(\"Catch-all must be the last part of the URL.\");let o=e[0];if(o.startsWith(\"[\")&&o.endsWith(\"]\")){let r=o.slice(1,-1),i=!1;if(r.startsWith(\"[\")&&r.endsWith(\"]\")&&(r=r.slice(1,-1),i=!0),r.startsWith(\"...\")&&(r=r.substring(3),n=!0),r.startsWith(\"[\")||r.endsWith(\"]\"))throw Error(\"Segment names may not start or end with extra brackets ('\"+r+\"').\");if(r.startsWith(\".\"))throw Error(\"Segment names may not start with erroneous periods ('\"+r+\"').\");function a(e,r){if(null!==e&&e!==r)throw Error(\"You cannot use different slug names for the same dynamic path ('\"+e+\"' !== '\"+r+\"').\");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name \"'+r+'\" repeat within a single dynamic path');if(e.replace(/\\W/g,\"\")===o.replace(/\\W/g,\"\"))throw Error('You cannot have the slug names \"'+e+'\" and \"'+r+'\" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level (\"[...'+this.restSlugName+']\" and \"'+e[0]+'\" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o=\"[[...]]\"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level (\"[[...'+this.optionalRestSlugName+']]\" and \"'+e[0]+'\").');a(this.restSlugName,r),this.restSlugName=r,o=\"[...]\"}}else{if(i)throw Error('Optional route parameters are not yet supported (\"'+e[0]+'\").');a(this.slugName,r),this.slugName=r,o=\"[]\"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},34723:function(e,t){\"use strict\";let r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},74565:function(e,t){\"use strict\";function r(e){return\"(\"===e[0]&&e.endsWith(\")\")}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return r}});let n=\"__PAGE__\",o=\"__DEFAULT__\"},8457:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return i}});let n=r(67294),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},84350:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return _},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=[\"CLS\",\"FCP\",\"FID\",\"INP\",\"LCP\",\"TTFB\"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\\d+\\-.]*?:/,a=e=>o.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+\"//\"+t+(r?\":\"+r:\"\")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return\"string\"==typeof e?e:e.displayName||e.name||\"Unknown\"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split(\"?\");return t[0].replace(/\\\\/g,\"/\").replace(/\\/\\/+/g,\"/\")+(t[1]?\"?\"+t.slice(1).join(\"?\"):\"\")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('\"'+l(e)+'.getInitialProps()\" should resolve to an object. But found \"'+n+'\" instead.');return n}let d=\"undefined\"!=typeof performance,p=d&&[\"mark\",\"measure\",\"getEntriesByName\"].every(e=>\"function\"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code=\"ENOENT\",this.name=\"PageNotFoundError\",this.message=\"Cannot find module for page: \"+e}}class g extends Error{constructor(e,t){super(),this.message=\"Failed to load static file for page: \"+e+\" \"+t}}class y extends Error{constructor(){super(),this.code=\"ENOENT\",this.message=\"Cannot find the middleware module\"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},42723:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"warnOnce\",{enumerable:!0,get:function(){return r}});let r=e=>{}},20738:function(e){var t,r,n,o,a;\"undefined\"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=\"//\"),/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */(t={}).parse=function(e,t){if(\"string\"!=typeof e)throw TypeError(\"argument str must be a string\");for(var n={},a=e.split(o),i=(t||{}).decode||r,u=0;u<a.length;u++){var l=a[u],s=l.indexOf(\"=\");if(!(s<0)){var c=l.substr(0,s).trim(),f=l.substr(++s,l.length).trim();'\"'==f[0]&&(f=f.slice(1,-1)),void 0==n[c]&&(n[c]=function(e,t){try{return t(e)}catch(t){return e}}(f,i))}}return n},t.serialize=function(e,t,r){var o=r||{},i=o.encode||n;if(\"function\"!=typeof i)throw TypeError(\"option encode is invalid\");if(!a.test(e))throw TypeError(\"argument name is invalid\");var u=i(t);if(u&&!a.test(u))throw TypeError(\"argument val is invalid\");var l=e+\"=\"+u;if(null!=o.maxAge){var s=o.maxAge-0;if(isNaN(s)||!isFinite(s))throw TypeError(\"option maxAge is invalid\");l+=\"; Max-Age=\"+Math.floor(s)}if(o.domain){if(!a.test(o.domain))throw TypeError(\"option domain is invalid\");l+=\"; Domain=\"+o.domain}if(o.path){if(!a.test(o.path))throw TypeError(\"option path is invalid\");l+=\"; Path=\"+o.path}if(o.expires){if(\"function\"!=typeof o.expires.toUTCString)throw TypeError(\"option expires is invalid\");l+=\"; Expires=\"+o.expires.toUTCString()}if(o.httpOnly&&(l+=\"; HttpOnly\"),o.secure&&(l+=\"; Secure\"),o.sameSite)switch(\"string\"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case\"strict\":l+=\"; SameSite=Strict\";break;case\"lax\":l+=\"; SameSite=Lax\";break;case\"none\":l+=\"; SameSite=None\";break;default:throw TypeError(\"option sameSite is invalid\")}return l},r=decodeURIComponent,n=encodeURIComponent,o=/; */,a=/^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/,e.exports=t},74329:function(e,t){\"use strict\";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(\"*\"===n||\"+\"===n||\"?\"===n){t.push({type:\"MODIFIER\",index:r,value:e[r++]});continue}if(\"\\\\\"===n){t.push({type:\"ESCAPED_CHAR\",index:r++,value:e[r++]});continue}if(\"{\"===n){t.push({type:\"OPEN\",index:r,value:e[r++]});continue}if(\"}\"===n){t.push({type:\"CLOSE\",index:r,value:e[r++]});continue}if(\":\"===n){for(var o=\"\",a=r+1;a<e.length;){var i=e.charCodeAt(a);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){o+=e[a++];continue}break}if(!o)throw TypeError(\"Missing parameter name at \"+r);t.push({type:\"NAME\",index:r,value:o}),r=a;continue}if(\"(\"===n){var u=1,l=\"\",a=r+1;if(\"?\"===e[a])throw TypeError('Pattern cannot start with \"?\" at '+a);for(;a<e.length;){if(\"\\\\\"===e[a]){l+=e[a++]+e[a++];continue}if(\")\"===e[a]){if(0==--u){a++;break}}else if(\"(\"===e[a]&&(u++,\"?\"!==e[a+1]))throw TypeError(\"Capturing groups are not allowed at \"+a);l+=e[a++]}if(u)throw TypeError(\"Unbalanced pattern at \"+r);if(!l)throw TypeError(\"Missing pattern at \"+r);t.push({type:\"PATTERN\",index:r,value:l}),r=a;continue}t.push({type:\"CHAR\",index:r,value:e[r++]})}return t.push({type:\"END\",index:r,value:\"\"}),t}(e),n=t.prefixes,o=void 0===n?\"./\":n,i=\"[^\"+a(t.delimiter||\"/#?\")+\"]+?\",u=[],l=0,s=0,c=\"\",f=function(e){if(s<r.length&&r[s].type===e)return r[s++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var n=r[s];throw TypeError(\"Unexpected \"+n.type+\" at \"+n.index+\", expected \"+e)},p=function(){for(var e,t=\"\";e=f(\"CHAR\")||f(\"ESCAPED_CHAR\");)t+=e;return t};s<r.length;){var h=f(\"CHAR\"),m=f(\"NAME\"),_=f(\"PATTERN\");if(m||_){var g=h||\"\";-1===o.indexOf(g)&&(c+=g,g=\"\"),c&&(u.push(c),c=\"\"),u.push({name:m||l++,prefix:g,suffix:\"\",pattern:_||i,modifier:f(\"MODIFIER\")||\"\"});continue}var y=h||f(\"ESCAPED_CHAR\");if(y){c+=y;continue}if(c&&(u.push(c),c=\"\"),f(\"OPEN\")){var g=p(),v=f(\"NAME\")||\"\",b=f(\"PATTERN\")||\"\",P=p();d(\"CLOSE\"),u.push({name:v||(b?l++:\"\"),pattern:v&&!b?i:b,prefix:g,suffix:P,modifier:f(\"MODIFIER\")||\"\"});continue}d(\"END\")}return u}function n(e,t){void 0===t&&(t={});var r=i(t),n=t.encode,o=void 0===n?function(e){return e}:n,a=t.validate,u=void 0===a||a,l=e.map(function(e){if(\"object\"==typeof e)return RegExp(\"^(?:\"+e.pattern+\")$\",r)});return function(t){for(var r=\"\",n=0;n<e.length;n++){var a=e[n];if(\"string\"==typeof a){r+=a;continue}var i=t?t[a.name]:void 0,s=\"?\"===a.modifier||\"*\"===a.modifier,c=\"*\"===a.modifier||\"+\"===a.modifier;if(Array.isArray(i)){if(!c)throw TypeError('Expected \"'+a.name+'\" to not repeat, but got an array');if(0===i.length){if(s)continue;throw TypeError('Expected \"'+a.name+'\" to not be empty')}for(var f=0;f<i.length;f++){var d=o(i[f],a);if(u&&!l[n].test(d))throw TypeError('Expected all \"'+a.name+'\" to match \"'+a.pattern+'\", but got \"'+d+'\"');r+=a.prefix+d+a.suffix}continue}if(\"string\"==typeof i||\"number\"==typeof i){var d=o(String(i),a);if(u&&!l[n].test(d))throw TypeError('Expected \"'+a.name+'\" to match \"'+a.pattern+'\", but got \"'+d+'\"');r+=a.prefix+d+a.suffix;continue}if(!s){var p=c?\"an array\":\"a string\";throw TypeError('Expected \"'+a.name+'\" to be '+p)}}return r}}function o(e,t,r){void 0===r&&(r={});var n=r.decode,o=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],i=n.index,u=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];\"*\"===r.modifier||\"+\"===r.modifier?u[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return o(e,r)}):u[r.name]=o(n[e],r)}}(l);return{path:a,index:i,params:u}}}function a(e){return e.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g,\"\\\\$1\")}function i(e){return e&&e.sensitive?\"\":\"i\"}function u(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,u=r.start,l=r.end,s=r.encode,c=void 0===s?function(e){return e}:s,f=\"[\"+a(r.endsWith||\"\")+\"]|$\",d=\"[\"+a(r.delimiter||\"/#?\")+\"]\",p=void 0===u||u?\"^\":\"\",h=0;h<e.length;h++){var m=e[h];if(\"string\"==typeof m)p+=a(c(m));else{var _=a(c(m.prefix)),g=a(c(m.suffix));if(m.pattern){if(t&&t.push(m),_||g){if(\"+\"===m.modifier||\"*\"===m.modifier){var y=\"*\"===m.modifier?\"?\":\"\";p+=\"(?:\"+_+\"((?:\"+m.pattern+\")(?:\"+g+_+\"(?:\"+m.pattern+\"))*)\"+g+\")\"+y}else p+=\"(?:\"+_+\"(\"+m.pattern+\")\"+g+\")\"+m.modifier}else p+=\"(\"+m.pattern+\")\"+m.modifier}else p+=\"(?:\"+_+g+\")\"+m.modifier}}if(void 0===l||l)o||(p+=d+\"?\"),p+=r.endsWith?\"(?=\"+f+\")\":\"$\";else{var v=e[e.length-1],b=\"string\"==typeof v?d.indexOf(v[v.length-1])>-1:void 0===v;o||(p+=\"(?:\"+d+\"(?=\"+f+\"))?\"),b||(p+=\"(?=\"+d+\"|\"+f+\")\")}return new RegExp(p,i(r))}function l(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\\((?!\\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:\"\",suffix:\"\",modifier:\"\",pattern:\"\"});return e}(e,t):Array.isArray(e)?RegExp(\"(?:\"+e.map(function(e){return l(e,t,n).source}).join(\"|\")+\")\",i(n)):u(r(e,n),t,n)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.parse=r,t.compile=function(e,t){return n(r(e,t),t)},t.tokensToFunction=n,t.match=function(e,t){var r=[];return o(l(e,r,t),r,t)},t.regexpToFunction=o,t.tokensToRegexp=u,t.pathToRegexp=l},78018:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,v,b,P,E,S,O,R,j,w,T,x,A,C,M,I,N,L,D,k,U,F,B,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},void 0!==t&&(t.ab=\"//\"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return b},getFID:function(){return A},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return b},onFID:function(){return A},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener(\"pageshow\",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n=\"navigate\";return l>=0?n=\"back-forward-cache\":r&&(n=document.prerendering||f()>0?\"prerender\":r.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){\"pagehide\"!==n.type&&\"hidden\"!==document.visibilityState||(e(n),t&&(removeEventListener(\"visibilitychange\",r,!0),removeEventListener(\"pagehide\",r,!0)))};addEventListener(\"visibilitychange\",r,!0),addEventListener(\"pagehide\",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?\"poor\":u>r[0]?\"needs-improvement\":\"good\",e(t))}},_=-1,g=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},v=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},b=function(e,t){t=t||{};var r,n=[1800,3e3],o=v(),a=d(\"FCP\"),i=function(e){e.forEach(function(e){\"first-contentful-paint\"===e.name&&(l&&l.disconnect(),e.startTime<o.firstHiddenTime&&(a.value=e.startTime-f(),a.entries.push(e),r(!0)))})},u=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName(\"first-contentful-paint\")[0],l=u?null:p(\"paint\",i);(u||l)&&(r=m(e,a,n,t.reportAllChanges),u&&i([u]),s(function(o){r=m(e,a=d(\"FCP\"),n,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-o.timeStamp,r(!0)})})}))},P=!1,E=-1,S=function(e,t){t=t||{};var r=[.1,.25];P||(b(function(e){E=e.value}),P=!0);var n,o=function(t){E>-1&&e(t)},a=d(\"CLS\",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p(\"layout-shift\",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d(\"CLS\",0),r,t.reportAllChanges)}))},O={passive:!0,capture:!0},R=new Date,j=function(e,t){n||(n=t,o=e,a=new Date,x(removeEventListener),w())},w=function(){if(o>=0&&o<a-R){var e={entryType:\"first-input\",name:n.type,target:n.target,cancelable:n.cancelable,startTime:n.timeStamp,processingStart:n.timeStamp+o};i.forEach(function(t){t(e)}),i=[]}},T=function(e){if(e.cancelable){var t,r,n,o=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?(t=function(){j(o,e),n()},r=function(){n()},n=function(){removeEventListener(\"pointerup\",t,O),removeEventListener(\"pointercancel\",r,O)},addEventListener(\"pointerup\",t,O),addEventListener(\"pointercancel\",r,O)):j(o,e)}},x=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach(function(t){return e(t,T,O)})},A=function(e,t){t=t||{};var r,a=[100,300],u=v(),l=d(\"FID\"),c=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),r(!0))},f=function(e){e.forEach(c)},_=p(\"first-input\",f);r=m(e,l,a,t.reportAllChanges),_&&h(function(){f(_.takeRecords()),_.disconnect()},!0),_&&s(function(){r=m(e,l=d(\"FID\"),a,t.reportAllChanges),i=[],o=-1,n=null,x(addEventListener),i.push(c),w()})},C=0,M=1/0,I=0,N=function(e){e.forEach(function(e){e.interactionId&&(M=Math.min(M,e.interactionId),C=(I=Math.max(I,e.interactionId))?(I-M)/7+1:0)})},L=function(){return u?C:performance.interactionCount||0},D=function(){\"interactionCount\"in performance||u||(u=p(\"event\",N,{type:\"event\",buffered:!0,durationThreshold:0}))},k=0,U=function(){return L()-k},F=[],B={},H=function(e){var t=F[F.length-1],r=B[e.interactionId];if(r||F.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};B[n.id]=n,F.push(n)}F.sort(function(e,t){return t.latency-e.latency}),F.splice(10).forEach(function(e){delete B[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d(\"INP\"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),\"first-input\"!==e.entryType||F.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(F.length-1,Math.floor(U()/50)),F[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p(\"event\",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:\"first-input\",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&U()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){F=[],k=L(),n=m(e,o=d(\"INP\"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=v(),a=d(\"LCP\"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();n<o.firstHiddenTime&&(a.value=n,a.entries=[t],r())}},u=p(\"largest-contentful-paint\",i);if(u){r=m(e,a,n,t.reportAllChanges);var l=function(){q[a.id]||(i(u.takeRecords()),u.disconnect(),q[a.id]=!0,r(!0))};[\"keydown\",\"click\"].forEach(function(e){addEventListener(e,l,{once:!0,capture:!0})}),h(l,!0),s(function(o){r=m(e,a=d(\"LCP\"),n,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-o.timeStamp,q[a.id]=!0,r(!0)})})})}},z=function e(t){document.prerendering?addEventListener(\"prerenderingchange\",function(){return e(t)},!0):\"complete\"!==document.readyState?addEventListener(\"load\",function(){return e(t)},!0):setTimeout(t,0)},V=function(e,t){t=t||{};var r=[800,1800],n=d(\"TTFB\"),o=m(e,n,r,t.reportAllChanges);z(function(){var a=c();if(a){if(n.value=Math.max(a.responseStart-f(),0),n.value<0||n.value>performance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d(\"TTFB\",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},79423:function(e,t){\"use strict\";function r(e){return\"/api\"===e||!!(null==e?void 0:e.startsWith(\"/api/\"))}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isAPIRoute\",{enumerable:!0,get:function(){return r}})},80676:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(21728);function o(e){return\"object\"==typeof e&&null!==e&&\"name\"in e&&\"message\"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+\"\")}},11730:function(e,t,r){\"use strict\";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(20738);return n(Array.isArray(t)?t.join(\"; \"):t)}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getCookieParser\",{enumerable:!0,get:function(){return n}})},92407:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(33e3),o=[\"(..)(..)\",\"(.)\",\"(..)\",\"(...)\"];function a(e){return void 0!==e.split(\"/\").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split(\"/\"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,n.normalizeAppPath)(t),r){case\"(.)\":a=\"/\"===t?`/${a}`:t+\"/\"+a;break;case\"(..)\":if(\"/\"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split(\"/\").slice(0,-1).concat(a).join(\"/\");break;case\"(...)\":a=\"/\"+a;break;case\"(..)(..)\":let i=t.split(\"/\");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join(\"/\");break;default:throw Error(\"Invariant: unexpected marker\")}return{interceptingRoute:t,interceptedRoute:a}}},38754:function(e,t,r){\"use strict\";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},61757:function(e,t,r){\"use strict\";function n(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(\"default\"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=25178)}),_N_E=e.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/main-app-0e53d5b0820fa726.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{3389:function(e,n,t){Promise.resolve().then(t.t.bind(t,95751,23)),Promise.resolve().then(t.t.bind(t,66513,23)),Promise.resolve().then(t.t.bind(t,76130,23)),Promise.resolve().then(t.t.bind(t,39275,23)),Promise.resolve().then(t.t.bind(t,16585,23)),Promise.resolve().then(t.t.bind(t,61343,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[971,23],function(){return n(11028),n(3389)}),_N_E=e.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/pages/_app-037b5d058bd9a820.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{41597:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/_app\",function(){return u(52239)}])}},function(n){var _=function(_){return n(n.s=_)};n.O(0,[774,179],function(){return _(41597),_(26036)}),_N_E=n.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/pages/_error-6ae619510b1539d6.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{81981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/_error\",function(){return u(83387)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=81981)}),_N_E=n.O()}]);"
  },
  {
    "path": "client/out/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js",
    "content": "!function(){var t=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r(\"object\"==typeof globalThis&&globalThis)||r(\"object\"==typeof window&&window)||r(\"object\"==typeof self&&self)||r(\"object\"==typeof t&&t)||Function(\"return this\")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s=u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a,c={f:s},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p=\"\".split,d=o(function(){return!Object(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"==h(t)?p.call(t,\"\"):Object(t)}:Object,v=function(t){if(null==t)throw TypeError(\"Can't call method on \"+t);return t},g=function(t){return d(v(t))},y=function(t){return\"object\"==typeof t?null!==t:\"function\"==typeof t},m=function(t,e){if(!y(t))return t;var r,n;if(e&&\"function\"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if(\"function\"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&\"function\"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError(\"Can't convert object to primitive value\")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},S=n.document,E=y(S)&&y(S.createElement),x=function(t){return E?S.createElement(t):{}},A=!i&&!o(function(){return 7!=Object.defineProperty(x(\"div\"),\"a\",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,R={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),A)try{return O(t,e)}catch(t){}if(w(t,e))return f(!c.f.call(t,e),t[e])}},j=function(t){if(!y(t))throw TypeError(String(t)+\" is not an object\");return t},P=Object.defineProperty,I={f:i?P:function(t,e,r){if(j(t),e=m(e,!0),j(r),A)try{return P(t,e,r)}catch(t){}if(\"get\"in r||\"set\"in r)throw TypeError(\"Accessors not supported\");return\"value\"in r&&(t[e]=r.value),t}},T=i?function(t,e,r){return I.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},k=function(t,e){try{T(n,t,e)}catch(r){n[t]=e}return e},L=\"__core-js_shared__\",U=n[L]||k(L,{}),M=Function.toString;\"function\"!=typeof U.inspectSource&&(U.inspectSource=function(t){return M.call(t)});var _,N,C,F=U.inspectSource,B=n.WeakMap,D=\"function\"==typeof B&&/native code/.test(F(B)),q=!1,z=e(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.6.5\",mode:\"global\",copyright:\"© 2020 Denis Pushkarev (zloirock.ru)\"})}),W=0,K=Math.random(),G=function(t){return\"Symbol(\"+String(void 0===t?\"\":t)+\")_\"+(++W+K).toString(36)},$=z(\"keys\"),V=function(t){return $[t]||($[t]=G(t))},H={};if(D){var X=new(0,n.WeakMap),Y=X.get,J=X.has,Q=X.set;_=function(t,e){return Q.call(X,t,e),e},N=function(t){return Y.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var Z=V(\"state\");H[Z]=!0,_=function(t,e){return T(t,Z,e),e},N=function(t){return w(t,Z)?t[Z]:{}},C=function(t){return w(t,Z)}}var tt,et={set:_,get:N,has:C,enforce:function(t){return C(t)?N(t):_(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=N(e)).type!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required\");return r}}},rt=e(function(t){var e=et.get,r=et.enforce,o=String(String).split(\"String\");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;\"function\"==typeof i&&(\"string\"!=typeof e||w(i,\"name\")||T(i,\"name\",e),r(i).source=o.join(\"string\"==typeof e?e:\"\")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:T(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,\"toString\",function(){return\"function\"==typeof this&&e(this).source||F(this)})}),nt=n,ot=function(t){return\"function\"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(nt[t])||ot(n[t]):nt[t]&&nt[t][e]||n[t]&&n[t][e]},at=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ct=Math.min,ft=function(t){return t>0?ct(st(t),9007199254740991):0},lt=Math.max,ht=Math.min,pt=function(t,e){var r=st(t);return r<0?lt(r+e,0):ht(r,e)},dt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=pt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vt={includes:dt(!0),indexOf:dt(!1)},gt=vt.indexOf,yt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(H,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},mt=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],bt=mt.concat(\"length\",\"prototype\"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,bt)}},St={f:Object.getOwnPropertySymbols},Et=it(\"Reflect\",\"ownKeys\")||function(t){var e=wt.f(j(t)),r=St.f;return r?e.concat(r(t)):e},xt=function(t,e){for(var r=Et(e),n=I.f,o=R.f,i=0;i<r.length;i++){var a=r[i];w(t,a)||n(t,a,o(e,a))}},At=/#|\\.prototype\\./,Ot=function(t,e){var r=jt[Rt(t)];return r==It||r!=Pt&&(\"function\"==typeof e?o(e):!!e)},Rt=Ot.normalize=function(t){return String(t).replace(At,\".\").toLowerCase()},jt=Ot.data={},Pt=Ot.NATIVE=\"N\",It=Ot.POLYFILL=\"P\",Tt=Ot,kt=R.f,Lt=function(t,e){var r,o,i,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?n:f?n[s]||k(s,{}):(n[s]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(u=kt(r,o))&&u.value:r[o],!Tt(c?o:s+(f?\".\":\"#\")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;xt(a,i)}(t.sham||i&&i.sham)&&T(a,\"sham\",!0),rt(r,o,a,t)}},Ut=function(t){return Object(v(t))},Mt=Math.min,_t=[].copyWithin||function(t,e){var r=Ut(this),n=ft(r.length),o=pt(t,n),i=pt(e,n),a=arguments.length>2?arguments[2]:void 0,u=Mt((void 0===a?n:pt(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Nt=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Ct=Nt&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,Ft=z(\"wks\"),Bt=n.Symbol,Dt=Ct?Bt:Bt&&Bt.withoutSetter||G,qt=function(t){return w(Ft,t)||(Ft[t]=Nt&&w(Bt,t)?Bt[t]:Dt(\"Symbol.\"+t)),Ft[t]},zt=Object.keys||function(t){return yt(t,mt)},Wt=i?Object.defineProperties:function(t,e){j(t);for(var r,n=zt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Kt=it(\"document\",\"documentElement\"),Gt=\"prototype\",$t=\"script\",Vt=V(\"IE_PROTO\"),Ht=function(){},Xt=function(t){return\"<\"+$t+\">\"+t+\"</\"+$t+\">\"},Yt=function(){try{tt=document.domain&&new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,r;Yt=tt?function(t){t.write(Xt(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):(e=x(\"iframe\"),r=\"java\"+$t+\":\",e.style.display=\"none\",Kt.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xt(\"document.F=Object\")),t.close(),t.F);for(var n=mt.length;n--;)delete Yt[Gt][mt[n]];return Yt()};H[Vt]=!0;var Jt=Object.create||function(t,e){var r;return null!==t?(Ht[Gt]=j(t),r=new Ht,Ht[Gt]=null,r[Vt]=t):r=Yt(),void 0===e?r:Wt(r,e)},Qt=qt(\"unscopables\"),Zt=Array.prototype;null==Zt[Qt]&&I.f(Zt,Qt,{configurable:!0,value:Jt(null)});var te=function(t){Zt[Qt][t]=!0};Lt({target:\"Array\",proto:!0},{copyWithin:_t}),te(\"copyWithin\");var ee=function(t){if(\"function\"!=typeof t)throw TypeError(String(t)+\" is not a function\");return t},re=function(t,e,r){if(ee(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},ne=Function.call,oe=function(t,e,r){return re(ne,n[t].prototype[e],r)};oe(\"Array\",\"copyWithin\"),Lt({target:\"Array\",proto:!0},{fill:function(t){for(var e=Ut(this),r=ft(e.length),n=arguments.length,o=pt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:pt(i,r);a>o;)e[o++]=t;return e}}),te(\"fill\"),oe(\"Array\",\"fill\");var ie=Array.isArray||function(t){return\"Array\"==h(t)},ae=qt(\"species\"),ue=function(t,e){var r;return ie(t)&&(\"function\"!=typeof(r=t.constructor)||r!==Array&&!ie(r.prototype)?y(r)&&null===(r=r[ae])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},se=[].push,ce=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,s,c,f){for(var l,h,p=Ut(u),v=d(p),g=re(s,c,3),y=ft(v.length),m=0,b=f||ue,w=e?b(u,y):r?b(u,0):void 0;y>m;m++)if((a||m in v)&&(h=g(l=v[m],m,p),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:se.call(w,l)}else if(o)return!1;return i?-1:n||o?o:w}},fe={forEach:ce(0),map:ce(1),filter:ce(2),some:ce(3),every:ce(4),find:ce(5),findIndex:ce(6)},le=Object.defineProperty,he={},pe=function(t){throw t},de=function(t,e){if(w(he,t))return he[t];e||(e={});var r=[][t],n=!!w(e,\"ACCESSORS\")&&e.ACCESSORS,a=w(e,0)?e[0]:pe,u=w(e,1)?e[1]:void 0;return he[t]=!!r&&!o(function(){if(n&&!i)return!0;var t={length:-1};n?le(t,1,{enumerable:!0,get:pe}):t[1]=1,r.call(t,a,u)})},ve=fe.find,ge=\"find\",ye=!0,me=de(ge);ge in[]&&Array(1)[ge](function(){ye=!1}),Lt({target:\"Array\",proto:!0,forced:ye||!me},{find:function(t){return ve(this,t,arguments.length>1?arguments[1]:void 0)}}),te(ge),oe(\"Array\",\"find\");var be=fe.findIndex,we=\"findIndex\",Se=!0,Ee=de(we);we in[]&&Array(1)[we](function(){Se=!1}),Lt({target:\"Array\",proto:!0,forced:Se||!Ee},{findIndex:function(t){return be(this,t,arguments.length>1?arguments[1]:void 0)}}),te(we),oe(\"Array\",\"findIndex\");var xe=function(t,e,r,n,o,i,a,u){for(var s,c=o,f=0,l=!!a&&re(a,u,3);f<n;){if(f in r){if(s=l?l(r[f],f,e):r[f],i>0&&ie(s))c=xe(t,e,s,ft(s.length),c,i-1)-1;else{if(c>=9007199254740991)throw TypeError(\"Exceed the acceptable array length\");t[c]=s}c++}f++}return c},Ae=xe;Lt({target:\"Array\",proto:!0},{flatMap:function(t){var e,r=Ut(this),n=ft(r.length);return ee(t),(e=ue(r,0)).length=Ae(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),te(\"flatMap\"),oe(\"Array\",\"flatMap\"),Lt({target:\"Array\",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Ut(this),r=ft(e.length),n=ue(e,0);return n.length=Ae(n,e,e,r,0,void 0===t?1:st(t)),n}}),te(\"flat\"),oe(\"Array\",\"flat\");var Oe,Re,je,Pe=function(t){return function(e,r){var n,o,i=String(v(e)),a=st(r),u=i.length;return a<0||a>=u?t?\"\":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Ie={codeAt:Pe(!1),charAt:Pe(!0)},Te=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),ke=V(\"IE_PROTO\"),Le=Object.prototype,Ue=Te?Object.getPrototypeOf:function(t){return t=Ut(t),w(t,ke)?t[ke]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Le:null},Me=qt(\"iterator\"),_e=!1;[].keys&&(\"next\"in(je=[].keys())?(Re=Ue(Ue(je)))!==Object.prototype&&(Oe=Re):_e=!0),null==Oe&&(Oe={}),w(Oe,Me)||T(Oe,Me,function(){return this});var Ne={IteratorPrototype:Oe,BUGGY_SAFARI_ITERATORS:_e},Ce=I.f,Fe=qt(\"toStringTag\"),Be=function(t,e,r){t&&!w(t=r?t:t.prototype,Fe)&&Ce(t,Fe,{configurable:!0,value:e})},De={},qe=Ne.IteratorPrototype,ze=function(){return this},We=function(t,e,r){var n=e+\" Iterator\";return t.prototype=Jt(qe,{next:f(1,r)}),Be(t,n,!1),De[n]=ze,t},Ke=function(t){if(!y(t)&&null!==t)throw TypeError(\"Can't set \"+String(t)+\" as a prototype\");return t},Ge=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),Ke(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),$e=Ne.IteratorPrototype,Ve=Ne.BUGGY_SAFARI_ITERATORS,He=qt(\"iterator\"),Xe=\"keys\",Ye=\"values\",Je=\"entries\",Qe=function(){return this},Ze=function(t,e,r,n,o,i,a){We(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!Ve&&t in p)return p[t];switch(t){case Xe:case Ye:case Je:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+\" Iterator\",h=!1,p=t.prototype,d=p[He]||p[\"@@iterator\"]||o&&p[o],v=!Ve&&d||f(o),g=\"Array\"==e&&p.entries||d;if(g&&(u=Ue(g.call(new t)),$e!==Object.prototype&&u.next&&(Ue(u)!==$e&&(Ge?Ge(u,$e):\"function\"!=typeof u[He]&&T(u,He,Qe)),Be(u,l,!0))),o==Ye&&d&&d.name!==Ye&&(h=!0,v=function(){return d.call(this)}),p[He]!==v&&T(p,He,v),De[e]=v,o)if(s={values:f(Ye),keys:i?v:f(Xe),entries:f(Je)},a)for(c in s)(Ve||h||!(c in p))&&rt(p,c,s[c]);else Lt({target:e,proto:!0,forced:Ve||h},s);return s},tr=Ie.charAt,er=\"String Iterator\",rr=et.set,nr=et.getterFor(er);Ze(String,\"String\",function(t){rr(this,{type:er,string:String(t),index:0})},function(){var t,e=nr(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=tr(r,n),e.index+=t.length,{value:t,done:!1})});var or=function(t,e,r,n){try{return n?e(j(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&j(o.call(t)),e}},ir=qt(\"iterator\"),ar=Array.prototype,ur=function(t){return void 0!==t&&(De.Array===t||ar[ir]===t)},sr=function(t,e,r){var n=m(e);n in t?I.f(t,n,f(0,r)):t[n]=r},cr={};cr[qt(\"toStringTag\")]=\"z\";var fr=\"[object z]\"===String(cr),lr=qt(\"toStringTag\"),hr=\"Arguments\"==h(function(){return arguments}()),pr=fr?h:function(t){var e,r,n;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),lr))?r:hr?h(e):\"Object\"==(n=h(e))&&\"function\"==typeof e.callee?\"Arguments\":n},dr=qt(\"iterator\"),vr=function(t){if(null!=t)return t[dr]||t[\"@@iterator\"]||De[pr(t)]},gr=function(t){var e,r,n,o,i,a,u=Ut(t),s=\"function\"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=vr(u),p=0;if(l&&(f=re(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&ur(h))for(r=new s(e=ft(u.length));e>p;p++)a=l?f(u[p],p):u[p],sr(r,p,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;p++)a=l?or(o,f,[n.value,p],!0):n.value,sr(r,p,a);return r.length=p,r},yr=qt(\"iterator\"),mr=!1;try{var br=0,wr={next:function(){return{done:!!br++}},return:function(){mr=!0}};wr[yr]=function(){return this},Array.from(wr,function(){throw 2})}catch(t){}var Sr=function(t,e){if(!e&&!mr)return!1;var r=!1;try{var n={};n[yr]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Er=!Sr(function(t){Array.from(t)});Lt({target:\"Array\",stat:!0,forced:Er},{from:gr});var xr=vt.includes,Ar=de(\"indexOf\",{ACCESSORS:!0,1:0});Lt({target:\"Array\",proto:!0,forced:!Ar},{includes:function(t){return xr(this,t,arguments.length>1?arguments[1]:void 0)}}),te(\"includes\"),oe(\"Array\",\"includes\");var Or=\"Array Iterator\",Rr=et.set,jr=et.getterFor(Or),Pr=Ze(Array,\"Array\",function(t,e){Rr(this,{type:Or,target:g(t),index:0,kind:e})},function(){var t=jr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):\"keys\"==r?{value:n,done:!1}:\"values\"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},\"values\");De.Arguments=De.Array,te(\"keys\"),te(\"values\"),te(\"entries\"),oe(\"Array\",\"values\");var Ir=o(function(){function t(){}return!(Array.of.call(t)instanceof t)});Lt({target:\"Array\",stat:!0,forced:Ir},{of:function(){for(var t=0,e=arguments.length,r=new(\"function\"==typeof this?this:Array)(e);e>t;)sr(r,t,arguments[t++]);return r.length=e,r}});var Tr=qt(\"hasInstance\"),kr=Function.prototype;Tr in kr||I.f(kr,Tr,{value:function(t){if(\"function\"!=typeof this||!y(t))return!1;if(!y(this.prototype))return t instanceof this;for(;t=Ue(t);)if(this.prototype===t)return!0;return!1}}),qt(\"hasInstance\");var Lr=Function.prototype,Ur=Lr.toString,Mr=/^\\s*function ([^ (]*)/,_r=\"name\";i&&!(_r in Lr)&&(0,I.f)(Lr,_r,{configurable:!0,get:function(){try{return Ur.call(this).match(Mr)[1]}catch(t){return\"\"}}});var Nr=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),Cr=e(function(t){var e=I.f,r=G(\"meta\"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:\"O\"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!w(t,r)){if(!o(t))return\"F\";if(!e)return\"E\";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!w(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Nr&&a.REQUIRED&&o(t)&&!w(t,r)&&i(t),t}};H[r]=!0}),Fr=e(function(t){var e=function(t,e){this.stopped=t,this.result=e},r=t.exports=function(t,r,n,o,i){var a,u,s,c,f,l,h,p=re(r,n,o?2:1);if(i)a=t;else{if(\"function\"!=typeof(u=vr(t)))throw TypeError(\"Target is not iterable\");if(ur(u)){for(s=0,c=ft(t.length);c>s;s++)if((f=o?p(j(h=t[s])[0],h[1]):p(t[s]))&&f instanceof e)return f;return new e(!1)}a=u.call(t)}for(l=a.next;!(h=l.call(a)).done;)if(\"object\"==typeof(f=or(a,p,h.value,o))&&f&&f instanceof e)return f;return new e(!1)};r.stop=function(t){return new e(!0,t)}}),Br=function(t,e,r){if(!(t instanceof e))throw TypeError(\"Incorrect \"+(r?r+\" \":\"\")+\"invocation\");return t},Dr=function(t,e,r){var n,o;return Ge&&\"function\"==typeof(n=e.constructor)&&n!==r&&y(o=n.prototype)&&o!==r.prototype&&Ge(t,o),t},qr=function(t,e,r){var i=-1!==t.indexOf(\"Map\"),a=-1!==t.indexOf(\"Weak\"),u=i?\"set\":\"add\",s=n[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=c[t];rt(c,t,\"add\"==t?function(t){return e.call(this,0===t?0:t),this}:\"delete\"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:\"get\"==t?function(t){return a&&!y(t)?void 0:e.call(this,0===t?0:t)}:\"has\"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(Tt(t,\"function\"!=typeof s||!(a||c.forEach&&!o(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,i,u),Cr.REQUIRED=!0;else if(Tt(t,!0)){var p=new f,d=p[u](a?{}:-0,1)!=p,v=o(function(){p.has(1)}),g=Sr(function(t){new s(t)}),m=!a&&o(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(e,r){Br(e,f,t);var n=Dr(new s,e,f);return null!=r&&Fr(r,n[u],n,i),n})).prototype=c,c.constructor=f),(v||m)&&(h(\"delete\"),h(\"has\"),i&&h(\"get\")),(m||d)&&h(u),a&&c.clear&&delete c.clear}return l[t]=f,Lt({global:!0,forced:f!=s},l),Be(f,t),a||r.setStrong(f,t,i),f},zr=function(t,e,r){for(var n in e)rt(t,n,e[n],r);return t},Wr=qt(\"species\"),Kr=function(t){var e=it(t);i&&e&&!e[Wr]&&(0,I.f)(e,Wr,{configurable:!0,get:function(){return this}})},Gr=I.f,$r=Cr.fastKey,Vr=et.set,Hr=et.getterFor,Xr={getConstructor:function(t,e,r,n){var o=t(function(t,a){Br(t,o,e),Vr(t,{type:e,index:Jt(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=a&&Fr(a,t[n],t,r)}),a=Hr(e),u=function(t,e,r){var n,o,u=a(t),c=s(t,e);return c?c.value=r:(u.last=c={index:o=$r(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=c),n&&(n.next=c),i?u.size++:t.size++,\"F\"!==o&&(u.index[o]=c)),t},s=function(t,e){var r,n=a(t),o=$r(e);if(\"F\"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return zr(o.prototype,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,i?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=s(e,t);if(n){var o=n.next,u=n.previous;delete r.index[n.index],n.removed=!0,u&&(u.next=o),o&&(o.previous=u),r.first==n&&(r.first=o),r.last==n&&(r.last=u),i?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=re(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),zr(o.prototype,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&Gr(o.prototype,\"size\",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+\" Iterator\",o=Hr(e),i=Hr(n);Ze(t,e,function(t,e){Vr(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?\"keys\"==e?{value:r.key,done:!1}:\"values\"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?\"entries\":\"values\",!r,!0),Kr(e)}},Yr=qr(\"Map\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xr);fr||rt(Object.prototype,\"toString\",fr?{}.toString:function(){return\"[object \"+pr(this)+\"]\"},{unsafe:!0});var Jr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qr=qt(\"iterator\"),Zr=qt(\"toStringTag\"),tn=Pr.values;for(var en in Jr){var rn=n[en],nn=rn&&rn.prototype;if(nn){if(nn[Qr]!==tn)try{T(nn,Qr,tn)}catch(t){nn[Qr]=tn}if(nn[Zr]||T(nn,Zr,en),Jr[en])for(var on in Pr)if(nn[on]!==Pr[on])try{T(nn,on,Pr[on])}catch(t){nn[on]=Pr[on]}}}var an=function(t){var e,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return ee(this),(e=void 0!==a)&&ee(a),null==t?new this:(r=[],e?(n=0,o=re(a,i>2?arguments[2]:void 0,2),Fr(t,function(t){r.push(o(t,n++))})):Fr(t,r.push,r),new this(r))};Lt({target:\"Map\",stat:!0},{from:an});var un=function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)};Lt({target:\"Map\",stat:!0},{of:un});var sn=function(){for(var t,e=j(this),r=ee(e.delete),n=!0,o=0,i=arguments.length;o<i;o++)t=r.call(e,arguments[o]),n=n&&t;return!!n};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}});var cn=function(t){var e=vr(t);if(\"function\"!=typeof e)throw TypeError(String(t)+\" is not iterable\");return j(e.call(t))},fn=function(t){return Map.prototype.entries.call(t)};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return!Fr(r,function(t,r){if(!n(r,t,e))return Fr.stop()},void 0,!0,!0).stopped}});var ln=qt(\"species\"),hn=function(t,e){var r,n=j(t).constructor;return void 0===n||null==(r=j(n)[ln])?e:ee(r)};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Map\"))),i=ee(o.set);return Fr(r,function(t,r){n(r,t,e)&&i.call(o,t,r)},void 0,!0,!0),o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop(r)},void 0,!0,!0).result}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{findKey:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop(t)},void 0,!0,!0).result}}),Lt({target:\"Map\",stat:!0},{groupBy:function(t,e){var r=new this;ee(e);var n=ee(r.has),o=ee(r.get),i=ee(r.set);return Fr(t,function(t){var a=e(t);n.call(r,a)?o.call(r,a).push(t):i.call(r,a,[t])}),r}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{includes:function(t){return Fr(fn(j(this)),function(e,r){if((n=r)===(o=t)||n!=n&&o!=o)return Fr.stop();var n,o},void 0,!0,!0).stopped}}),Lt({target:\"Map\",stat:!0},{keyBy:function(t,e){var r=new this;ee(e);var n=ee(r.set);return Fr(t,function(t){n.call(r,e(t),t)}),r}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{keyOf:function(t){return Fr(fn(j(this)),function(e,r){if(r===t)return Fr.stop(e)},void 0,!0,!0).result}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{mapKeys:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Map\"))),i=ee(o.set);return Fr(r,function(t,r){i.call(o,n(r,t,e),r)},void 0,!0,!0),o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{mapValues:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Map\"))),i=ee(o.set);return Fr(r,function(t,r){i.call(o,t,n(r,t,e))},void 0,!0,!0),o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{merge:function(t){for(var e=j(this),r=ee(e.set),n=0;n<arguments.length;)Fr(arguments[n++],r,e,!0);return e}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=fn(e),n=arguments.length<2,o=n?void 0:arguments[1];if(ee(t),Fr(r,function(r,i){n?(n=!1,o=i):o=t(o,i,r,e)},void 0,!0,!0),n)throw TypeError(\"Reduce of empty map with no initial value\");return o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop()},void 0,!0,!0).stopped}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{update:function(t,e){var r=j(this),n=arguments.length;ee(e);var o=r.has(t);if(!o&&n<3)throw TypeError(\"Updating absent value\");var i=o?r.get(t):ee(n>2?arguments[2]:void 0)(t,r);return r.set(t,e(i,t,r)),r}});var pn=function(t,e){var r,n=j(this),o=arguments.length>2?arguments[2]:void 0;if(\"function\"!=typeof e&&\"function\"!=typeof o)throw TypeError(\"At least one callback required\");return n.has(t)?(r=n.get(t),\"function\"==typeof e&&(r=e(r),n.set(t,r))):\"function\"==typeof o&&(r=o(),n.set(t,r)),r};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{upsert:pn}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{updateOrInsert:pn});var dn=\"\\t\\n\\v\\f\\r                　\\u2028\\u2029\\ufeff\",vn=\"[\"+dn+\"]\",gn=RegExp(\"^\"+vn+vn+\"*\"),yn=RegExp(vn+vn+\"*$\"),mn=function(t){return function(e){var r=String(v(e));return 1&t&&(r=r.replace(gn,\"\")),2&t&&(r=r.replace(yn,\"\")),r}},bn={start:mn(1),end:mn(2),trim:mn(3)},wn=wt.f,Sn=R.f,En=I.f,xn=bn.trim,An=\"Number\",On=n[An],Rn=On.prototype,jn=h(Jt(Rn))==An,Pn=function(t){var e,r,n,o,i,a,u,s,c=m(t,!1);if(\"string\"==typeof c&&c.length>2)if(43===(e=(c=xn(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;u<a;u++)if((s=i.charCodeAt(u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(Tt(An,!On(\" 0o1\")||!On(\"0b1\")||On(\"+0x1\"))){for(var In,Tn=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Tn&&(jn?o(function(){Rn.valueOf.call(r)}):h(r)!=An)?Dr(new On(Pn(e)),r,Tn):Pn(e)},kn=i?wn(On):\"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger\".split(\",\"),Ln=0;kn.length>Ln;Ln++)w(On,In=kn[Ln])&&!w(Tn,In)&&En(Tn,In,Sn(On,In));Tn.prototype=Rn,Rn.constructor=Tn,rt(n,An,Tn)}Lt({target:\"Number\",stat:!0},{EPSILON:Math.pow(2,-52)});var Un=n.isFinite;Lt({target:\"Number\",stat:!0},{isFinite:Number.isFinite||function(t){return\"number\"==typeof t&&Un(t)}});var Mn=Math.floor,_n=function(t){return!y(t)&&isFinite(t)&&Mn(t)===t};Lt({target:\"Number\",stat:!0},{isInteger:_n}),Lt({target:\"Number\",stat:!0},{isNaN:function(t){return t!=t}});var Nn=Math.abs;Lt({target:\"Number\",stat:!0},{isSafeInteger:function(t){return _n(t)&&Nn(t)<=9007199254740991}}),Lt({target:\"Number\",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Lt({target:\"Number\",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991});var Cn=bn.trim,Fn=n.parseFloat,Bn=1/Fn(dn+\"-0\")!=-Infinity?function(t){var e=Cn(String(t)),r=Fn(e);return 0===r&&\"-\"==e.charAt(0)?-0:r}:Fn;Lt({target:\"Number\",stat:!0,forced:Number.parseFloat!=Bn},{parseFloat:Bn});var Dn=bn.trim,qn=n.parseInt,zn=/^[+-]?0[Xx]/,Wn=8!==qn(dn+\"08\")||22!==qn(dn+\"0x16\")?function(t,e){var r=Dn(String(t));return qn(r,e>>>0||(zn.test(r)?16:10))}:qn;Lt({target:\"Number\",stat:!0,forced:Number.parseInt!=Wn},{parseInt:Wn});var Kn=c.f,Gn=function(t){return function(e){for(var r,n=g(e),o=zt(n),a=o.length,u=0,s=[];a>u;)r=o[u++],i&&!Kn.call(n,r)||s.push(t?[r,n[r]]:n[r]);return s}},$n={entries:Gn(!0),values:Gn(!1)},Vn=$n.entries;Lt({target:\"Object\",stat:!0},{entries:function(t){return Vn(t)}}),Lt({target:\"Object\",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=g(t),o=R.f,i=Et(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&sr(a,e,r);return a}});var Hn=o(function(){zt(1)});Lt({target:\"Object\",stat:!0,forced:Hn},{keys:function(t){return zt(Ut(t))}});var Xn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Lt({target:\"Object\",stat:!0},{is:Xn});var Yn=$n.values;Lt({target:\"Object\",stat:!0},{values:function(t){return Yn(t)}});var Jn=it(\"Reflect\",\"apply\"),Qn=Function.apply,Zn=!o(function(){Jn(function(){})});Lt({target:\"Reflect\",stat:!0,forced:Zn},{apply:function(t,e,r){return ee(t),j(r),Jn?Jn(t,e,r):Qn.call(t,e,r)}});var to=[].slice,eo={},ro=Function.bind||function(t){var e=ee(this),r=to.call(arguments,1),n=function(){var o=r.concat(to.call(arguments));return this instanceof n?function(t,e,r){if(!(e in eo)){for(var n=[],o=0;o<e;o++)n[o]=\"a[\"+o+\"]\";eo[e]=Function(\"C,a\",\"return new C(\"+n.join(\",\")+\")\")}return eo[e](t,r)}(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(n.prototype=e.prototype),n},no=it(\"Reflect\",\"construct\"),oo=o(function(){function t(){}return!(no(function(){},[],t)instanceof t)}),io=!o(function(){no(function(){})}),ao=oo||io;Lt({target:\"Reflect\",stat:!0,forced:ao,sham:ao},{construct:function(t,e){ee(t),j(e);var r=arguments.length<3?t:ee(arguments[2]);if(io&&!oo)return no(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(ro.apply(t,n))}var o=r.prototype,i=Jt(y(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return y(a)?a:i}});var uo=o(function(){Reflect.defineProperty(I.f({},1,{value:1}),1,{value:2})});Lt({target:\"Reflect\",stat:!0,forced:uo,sham:!i},{defineProperty:function(t,e,r){j(t);var n=m(e,!0);j(r);try{return I.f(t,n,r),!0}catch(t){return!1}}});var so=R.f;Lt({target:\"Reflect\",stat:!0},{deleteProperty:function(t,e){var r=so(j(t),e);return!(r&&!r.configurable)&&delete t[e]}}),Lt({target:\"Reflect\",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return j(e)===i?e[r]:(n=R.f(e,r))?w(n,\"value\")?n.value:void 0===n.get?void 0:n.get.call(i):y(o=Ue(e))?t(o,r,i):void 0}}),Lt({target:\"Reflect\",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return R.f(j(t),e)}}),Lt({target:\"Reflect\",stat:!0,sham:!Te},{getPrototypeOf:function(t){return Ue(j(t))}}),Lt({target:\"Reflect\",stat:!0},{has:function(t,e){return e in t}});var co=Object.isExtensible;Lt({target:\"Reflect\",stat:!0},{isExtensible:function(t){return j(t),!co||co(t)}}),Lt({target:\"Reflect\",stat:!0},{ownKeys:Et}),Lt({target:\"Reflect\",stat:!0,sham:!Nr},{preventExtensions:function(t){j(t);try{var e=it(\"Object\",\"preventExtensions\");return e&&e(t),!0}catch(t){return!1}}});var fo=o(function(){var t=I.f({},\"a\",{configurable:!0});return!1!==Reflect.set(Ue(t),\"a\",1,t)});Lt({target:\"Reflect\",stat:!0,forced:fo},{set:function t(e,r,n){var o,i,a=arguments.length<4?e:arguments[3],u=R.f(j(e),r);if(!u){if(y(i=Ue(e)))return t(i,r,n,a);u=f(0)}if(w(u,\"value\")){if(!1===u.writable||!y(a))return!1;if(o=R.f(a,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,I.f(a,r,o)}else I.f(a,r,f(0,n));return!0}return void 0!==u.set&&(u.set.call(a,n),!0)}}),Ge&&Lt({target:\"Reflect\",stat:!0},{setPrototypeOf:function(t,e){j(t),Ke(e);try{return Ge(t,e),!0}catch(t){return!1}}});var lo=Cr.getWeakData,ho=et.set,po=et.getterFor,vo=fe.find,go=fe.findIndex,yo=0,mo=function(t){return t.frozen||(t.frozen=new bo)},bo=function(){this.entries=[]},wo=function(t,e){return vo(t.entries,function(t){return t[0]===e})};bo.prototype={get:function(t){var e=wo(this,t);if(e)return e[1]},has:function(t){return!!wo(this,t)},set:function(t,e){var r=wo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=go(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var So={getConstructor:function(t,e,r,n){var o=t(function(t,i){Br(t,o,e),ho(t,{type:e,id:yo++,frozen:void 0}),null!=i&&Fr(i,t[n],t,r)}),i=po(e),a=function(t,e,r){var n=i(t),o=lo(j(e),!0);return!0===o?mo(n).set(e,r):o[n.id]=r,t};return zr(o.prototype,{delete:function(t){var e=i(this);if(!y(t))return!1;var r=lo(t);return!0===r?mo(e).delete(t):r&&w(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!y(t))return!1;var r=lo(t);return!0===r?mo(e).has(t):r&&w(r,e.id)}}),zr(o.prototype,r?{get:function(t){var e=i(this);if(y(t)){var r=lo(t);return!0===r?mo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Eo=e(function(t){var e,r=et.enforce,o=!n.ActiveXObject&&\"ActiveXObject\"in n,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},u=t.exports=qr(\"WeakMap\",a,So);if(D&&o){e=So.getConstructor(a,\"WeakMap\",!0),Cr.REQUIRED=!0;var s=u.prototype,c=s.delete,f=s.has,l=s.get,h=s.set;zr(s,{delete:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),c.call(this,t)||n.frozen.delete(t)}return c.call(this,t)},has:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)||n.frozen.has(t)}return f.call(this,t)},get:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)?l.call(this,t):n.frozen.get(t)}return l.call(this,t)},set:function(t,n){if(y(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),f.call(this,t)?h.call(this,t,n):o.frozen.set(t,n)}else h.call(this,t,n);return this}})}}),xo=z(\"metadata\"),Ao=xo.store||(xo.store=new Eo),Oo=function(t,e,r){var n=Ao.get(t);if(!n){if(!r)return;Ao.set(t,n=new Yr)}var o=n.get(e);if(!o){if(!r)return;n.set(e,o=new Yr)}return o},Ro={store:Ao,getMap:Oo,has:function(t,e,r){var n=Oo(e,r,!1);return void 0!==n&&n.has(t)},get:function(t,e,r){var n=Oo(e,r,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,r,n){Oo(r,n,!0).set(t,e)},keys:function(t,e){var r=Oo(t,e,!1),n=[];return r&&r.forEach(function(t,e){n.push(e)}),n},toKey:function(t){return void 0===t||\"symbol\"==typeof t?t:String(t)}},jo=Ro.toKey,Po=Ro.set;Lt({target:\"Reflect\",stat:!0},{defineMetadata:function(t,e,r){var n=arguments.length<4?void 0:jo(arguments[3]);Po(t,e,j(r),n)}});var Io=Ro.toKey,To=Ro.getMap,ko=Ro.store;Lt({target:\"Reflect\",stat:!0},{deleteMetadata:function(t,e){var r=arguments.length<3?void 0:Io(arguments[2]),n=To(j(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var o=ko.get(e);return o.delete(r),!!o.size||ko.delete(e)}});var Lo=Ro.has,Uo=Ro.get,Mo=Ro.toKey,_o=function(t,e,r){if(Lo(t,e,r))return Uo(t,e,r);var n=Ue(e);return null!==n?_o(t,n,r):void 0};Lt({target:\"Reflect\",stat:!0},{getMetadata:function(t,e){var r=arguments.length<3?void 0:Mo(arguments[2]);return _o(t,j(e),r)}});var No=qr(\"Set\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xr),Co=Ro.keys,Fo=Ro.toKey,Bo=function(t,e){var r=Co(t,e),n=Ue(t);if(null===n)return r;var o,i,a=Bo(n,e);return a.length?r.length?(o=new No(r.concat(a)),Fr(o,(i=[]).push,i),i):a:r};Lt({target:\"Reflect\",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:Fo(arguments[1]);return Bo(j(t),e)}});var Do=Ro.get,qo=Ro.toKey;Lt({target:\"Reflect\",stat:!0},{getOwnMetadata:function(t,e){var r=arguments.length<3?void 0:qo(arguments[2]);return Do(t,j(e),r)}});var zo=Ro.keys,Wo=Ro.toKey;Lt({target:\"Reflect\",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:Wo(arguments[1]);return zo(j(t),e)}});var Ko=Ro.has,Go=Ro.toKey,$o=function(t,e,r){if(Ko(t,e,r))return!0;var n=Ue(e);return null!==n&&$o(t,n,r)};Lt({target:\"Reflect\",stat:!0},{hasMetadata:function(t,e){var r=arguments.length<3?void 0:Go(arguments[2]);return $o(t,j(e),r)}});var Vo=Ro.has,Ho=Ro.toKey;Lt({target:\"Reflect\",stat:!0},{hasOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Ho(arguments[2]);return Vo(t,j(e),r)}});var Xo=Ro.toKey,Yo=Ro.set;Lt({target:\"Reflect\",stat:!0},{metadata:function(t,e){return function(r,n){Yo(t,e,j(r),Xo(n))}}});var Jo=qt(\"match\"),Qo=function(t){var e;return y(t)&&(void 0!==(e=t[Jo])?!!e:\"RegExp\"==h(t))},Zo=function(){var t=j(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.dotAll&&(e+=\"s\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e};function ti(t,e){return RegExp(t,e)}var ei=o(function(){var t=ti(\"a\",\"y\");return t.lastIndex=2,null!=t.exec(\"abcd\")}),ri=o(function(){var t=ti(\"^r\",\"gy\");return t.lastIndex=2,null!=t.exec(\"str\")}),ni={UNSUPPORTED_Y:ei,BROKEN_CARET:ri},oi=I.f,ii=wt.f,ai=et.set,ui=qt(\"match\"),si=n.RegExp,ci=si.prototype,fi=/a/g,li=/a/g,hi=new si(fi)!==fi,pi=ni.UNSUPPORTED_Y;if(i&&Tt(\"RegExp\",!hi||pi||o(function(){return li[ui]=!1,si(fi)!=fi||si(li)==li||\"/a/i\"!=si(fi,\"i\")}))){for(var di=function(t,e){var r,n=this instanceof di,o=Qo(t),i=void 0===e;if(!n&&o&&t.constructor===di&&i)return t;hi?o&&!i&&(t=t.source):t instanceof di&&(i&&(e=Zo.call(t)),t=t.source),pi&&(r=!!e&&e.indexOf(\"y\")>-1)&&(e=e.replace(/y/g,\"\"));var a=Dr(hi?new si(t,e):si(t,e),n?this:ci,di);return pi&&r&&ai(a,{sticky:r}),a},vi=function(t){t in di||oi(di,t,{configurable:!0,get:function(){return si[t]},set:function(e){si[t]=e}})},gi=ii(si),yi=0;gi.length>yi;)vi(gi[yi++]);ci.constructor=di,di.prototype=ci,rt(n,\"RegExp\",di)}Kr(\"RegExp\");var mi=\"toString\",bi=RegExp.prototype,wi=bi[mi];(o(function(){return\"/a/b\"!=wi.call({source:\"a\",flags:\"b\"})})||wi.name!=mi)&&rt(RegExp.prototype,mi,function(){var t=j(this),e=String(t.source),r=t.flags;return\"/\"+e+\"/\"+String(void 0===r&&t instanceof RegExp&&!(\"flags\"in bi)?Zo.call(t):r)},{unsafe:!0});var Si=RegExp.prototype.exec,Ei=String.prototype.replace,xi=Si,Ai=function(){var t=/a/,e=/b*/g;return Si.call(t,\"a\"),Si.call(e,\"a\"),0!==t.lastIndex||0!==e.lastIndex}(),Oi=ni.UNSUPPORTED_Y||ni.BROKEN_CARET,Ri=void 0!==/()??/.exec(\"\")[1];(Ai||Ri||Oi)&&(xi=function(t){var e,r,n,o,i=this,a=Oi&&i.sticky,u=Zo.call(i),s=i.source,c=0,f=t;return a&&(-1===(u=u.replace(\"y\",\"\")).indexOf(\"g\")&&(u+=\"g\"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&\"\\n\"!==t[i.lastIndex-1])&&(s=\"(?: \"+s+\")\",f=\" \"+f,c++),r=new RegExp(\"^(?:\"+s+\")\",u)),Ri&&(r=new RegExp(\"^\"+s+\"$(?!\\\\s)\",u)),Ai&&(e=i.lastIndex),n=Si.call(a?r:i,f),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Ai&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),Ri&&n&&n.length>1&&Ei.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var ji=xi;Lt({target:\"RegExp\",proto:!0,forced:/./.exec!==ji},{exec:ji}),i&&(\"g\"!=/./g.flags||ni.UNSUPPORTED_Y)&&I.f(RegExp.prototype,\"flags\",{configurable:!0,get:Zo});var Pi=et.get,Ii=RegExp.prototype;i&&ni.UNSUPPORTED_Y&&(0,I.f)(RegExp.prototype,\"sticky\",{configurable:!0,get:function(){if(this!==Ii){if(this instanceof RegExp)return!!Pi(this).sticky;throw TypeError(\"Incompatible receiver, RegExp required\")}}});var Ti,ki,Li=(Ti=!1,(ki=/[ac]/).exec=function(){return Ti=!0,/./.exec.apply(this,arguments)},!0===ki.test(\"abc\")&&Ti),Ui=/./.test;Lt({target:\"RegExp\",proto:!0,forced:!Li},{test:function(t){if(\"function\"!=typeof this.exec)return Ui.call(this,t);var e=this.exec(t);if(null!==e&&!y(e))throw new Error(\"RegExp exec method returned something other than an Object or null\");return!!e}});var Mi=qt(\"species\"),_i=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$<a>\")}),Ni=\"$0\"===\"a\".replace(/./,\"$0\"),Ci=qt(\"replace\"),Fi=!!/./[Ci]&&\"\"===/./[Ci](\"a\",\"$0\"),Bi=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r=\"ab\".split(t);return 2!==r.length||\"a\"!==r[0]||\"b\"!==r[1]}),Di=function(t,e,r,n){var i=qt(t),a=!o(function(){var e={};return e[i]=function(){return 7},7!=\"\"[t](e)}),u=a&&!o(function(){var e=!1,r=/a/;return\"split\"===t&&((r={}).constructor={},r.constructor[Mi]=function(){return r},r.flags=\"\",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](\"\"),!e});if(!a||!u||\"replace\"===t&&(!_i||!Ni||Fi)||\"split\"===t&&!Bi){var s=/./[i],c=r(i,\"\"[t],function(t,e,r,n,o){return e.exec===ji?a&&!o?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:Ni,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fi}),f=c[1];rt(String.prototype,t,c[0]),rt(RegExp.prototype,i,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&T(RegExp.prototype[i],\"sham\",!0)},qi=Ie.charAt,zi=function(t,e,r){return e+(r?qi(t,e).length:1)},Wi=function(t,e){var r=t.exec;if(\"function\"==typeof r){var n=r.call(t,e);if(\"object\"!=typeof n)throw TypeError(\"RegExp exec method returned something other than an Object or null\");return n}if(\"RegExp\"!==h(t))throw TypeError(\"RegExp#exec called on incompatible receiver\");return ji.call(t,e)};Di(\"match\",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this);if(!o.global)return Wi(o,i);var a=o.unicode;o.lastIndex=0;for(var u,s=[],c=0;null!==(u=Wi(o,i));){var f=String(u[0]);s[c]=f,\"\"===f&&(o.lastIndex=zi(i,ft(o.lastIndex),a)),c++}return 0===c?null:s}]});var Ki=Math.max,Gi=Math.min,$i=Math.floor,Vi=/\\$([$&'`]|\\d\\d?|<[^>]*>)/g,Hi=/\\$([$&'`]|\\d\\d?)/g;Di(\"replace\",2,function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?\"$\":\"$0\";return[function(r,n){var o=v(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||\"string\"==typeof n&&-1===n.indexOf(a)){var s=r(e,t,this,n);if(s.done)return s.value}var c=j(t),f=String(this),l=\"function\"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var v=Wi(c,f);if(null===v)break;if(d.push(v),!h)break;\"\"===String(v[0])&&(c.lastIndex=zi(f,ft(c.lastIndex),p))}for(var g,y=\"\",m=0,b=0;b<d.length;b++){v=d[b];for(var w=String(v[0]),S=Ki(Gi(st(v.index),f.length),0),E=[],x=1;x<v.length;x++)E.push(void 0===(g=v[x])?g:String(g));var A=v.groups;if(l){var O=[w].concat(E,S,f);void 0!==A&&O.push(A);var R=String(n.apply(void 0,O))}else R=u(w,f,S,E,A,n);S>=m&&(y+=f.slice(m,S)+R,m=S+w.length)}return y+f.slice(m)}];function u(t,r,n,o,i,a){var u=n+t.length,s=o.length,c=Hi;return void 0!==i&&(i=Ut(i),c=Vi),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case\"$\":return\"$\";case\"&\":return t;case\"`\":return r.slice(0,n);case\"'\":return r.slice(u);case\"<\":c=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return e;if(f>s){var l=$i(f/10);return 0===l?e:l<=s?void 0===o[l-1]?a.charAt(1):o[l-1]+a.charAt(1):e}c=o[f-1]}return void 0===c?\"\":c})}}),Di(\"search\",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this),a=o.lastIndex;Xn(a,0)||(o.lastIndex=0);var u=Wi(o,i);return Xn(o.lastIndex,a)||(o.lastIndex=a),null===u?-1:u.index}]});var Xi=[].push,Yi=Math.min,Ji=4294967295,Qi=!o(function(){return!RegExp(Ji,\"y\")});Di(\"split\",2,function(t,e,r){var n;return n=\"c\"==\"abbc\".split(/(b)*/)[1]||4!=\"test\".split(/(?:)/,-1).length||2!=\"ab\".split(/(?:ab)*/).length||4!=\".\".split(/(.?)(.?)/).length||\".\".split(/()()/).length>1||\"\".split(/.?/).length?function(t,r){var n=String(v(this)),o=void 0===r?Ji:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Qo(t))return e.call(n,t,o);for(var i,a,u,s=[],c=0,f=new RegExp(t.source,(t.ignoreCase?\"i\":\"\")+(t.multiline?\"m\":\"\")+(t.unicode?\"u\":\"\")+(t.sticky?\"y\":\"\")+\"g\");(i=ji.call(f,n))&&!((a=f.lastIndex)>c&&(s.push(n.slice(c,i.index)),i.length>1&&i.index<n.length&&Xi.apply(s,i.slice(1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===n.length?!u&&f.test(\"\")||s.push(\"\"):s.push(n.slice(c)),s.length>o?s.slice(0,o):s}:\"0\".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=v(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=j(t),u=String(this),s=hn(a,RegExp),c=a.unicode,f=new s(Qi?a:\"^(?:\"+a.source+\")\",(a.ignoreCase?\"i\":\"\")+(a.multiline?\"m\":\"\")+(a.unicode?\"u\":\"\")+(Qi?\"y\":\"g\")),l=void 0===o?Ji:o>>>0;if(0===l)return[];if(0===u.length)return null===Wi(f,u)?[u]:[];for(var h=0,p=0,d=[];p<u.length;){f.lastIndex=Qi?p:0;var v,g=Wi(f,Qi?u:u.slice(p));if(null===g||(v=Yi(ft(f.lastIndex+(Qi?0:p)),u.length))===h)p=zi(u,p,c);else{if(d.push(u.slice(h,p)),d.length===l)return d;for(var y=1;y<=g.length-1;y++)if(d.push(g[y]),d.length===l)return d;p=h=v}}return d.push(u.slice(h)),d}]},!Qi),Lt({target:\"Set\",stat:!0},{from:an}),Lt({target:\"Set\",stat:!0},{of:un});var Zi=function(){for(var t=j(this),e=ee(t.add),r=0,n=arguments.length;r<n;r++)e.call(t,arguments[r]);return t};Lt({target:\"Set\",proto:!0,real:!0,forced:q},{addAll:function(){return Zi.apply(this,arguments)}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}});var ta=function(t){return Set.prototype.values.call(t)};Lt({target:\"Set\",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return!Fr(r,function(t){if(!n(t,t,e))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{difference:function(t){var e=j(this),r=new(hn(e,it(\"Set\")))(e),n=ee(r.delete);return Fr(t,function(t){n.call(r,t)}),r}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Set\"))),i=ee(o.add);return Fr(r,function(t){n(t,t,e)&&i.call(o,t)},void 0,!1,!0),o}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t){if(n(t,t,e))return Fr.stop(t)},void 0,!1,!0).result}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{intersection:function(t){var e=j(this),r=new(hn(e,it(\"Set\"))),n=ee(e.has),o=ee(r.add);return Fr(t,function(t){n.call(e,t)&&o.call(r,t)}),r}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{isDisjointFrom:function(t){var e=j(this),r=ee(e.has);return!Fr(t,function(t){if(!0===r.call(e,t))return Fr.stop()}).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{isSubsetOf:function(t){var e=cn(this),r=j(t),n=r.has;return\"function\"!=typeof n&&(r=new(it(\"Set\"))(t),n=ee(r.has)),!Fr(e,function(t){if(!1===n.call(r,t))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{isSupersetOf:function(t){var e=j(this),r=ee(e.has);return!Fr(t,function(t){if(!1===r.call(e,t))return Fr.stop()}).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{join:function(t){var e=j(this),r=ta(e),n=void 0===t?\",\":String(t),o=[];return Fr(r,o.push,o,!1,!0),o.join(n)}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{map:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Set\"))),i=ee(o.add);return Fr(r,function(t){i.call(o,n(t,t,e))},void 0,!1,!0),o}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=ta(e),n=arguments.length<2,o=n?void 0:arguments[1];if(ee(t),Fr(r,function(r){n?(n=!1,o=r):o=t(o,r,r,e)},void 0,!1,!0),n)throw TypeError(\"Reduce of empty set with no initial value\");return o}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t){if(n(t,t,e))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{symmetricDifference:function(t){var e=j(this),r=new(hn(e,it(\"Set\")))(e),n=ee(r.delete),o=ee(r.add);return Fr(t,function(t){n.call(r,t)||o.call(r,t)}),r}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{union:function(t){var e=j(this),r=new(hn(e,it(\"Set\")))(e);return Fr(t,ee(r.add),r),r}});var ea,ra,na=it(\"navigator\",\"userAgent\")||\"\",oa=n.process,ia=oa&&oa.versions,aa=ia&&ia.v8;aa?ra=(ea=aa.split(\".\"))[0]+ea[1]:na&&(!(ea=na.match(/Edge\\/(\\d+)/))||ea[1]>=74)&&(ea=na.match(/Chrome\\/(\\d+)/))&&(ra=ea[1]);var ua=ra&&+ra,sa=qt(\"species\"),ca=qt(\"isConcatSpreadable\"),fa=9007199254740991,la=\"Maximum allowed index exceeded\",ha=ua>=51||!o(function(){var t=[];return t[ca]=!1,t.concat()[0]!==t}),pa=ua>=51||!o(function(){var t=[];return(t.constructor={})[sa]=function(){return{foo:1}},1!==t.concat(Boolean).foo}),da=function(t){if(!y(t))return!1;var e=t[ca];return void 0!==e?!!e:ie(t)};Lt({target:\"Array\",proto:!0,forced:!ha||!pa},{concat:function(t){var e,r,n,o,i,a=Ut(this),u=ue(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(da(i=-1===e?a:arguments[e])){if(s+(o=ft(i.length))>fa)throw TypeError(la);for(r=0;r<o;r++,s++)r in i&&sr(u,s,i[r])}else{if(s>=fa)throw TypeError(la);sr(u,s++,i)}return u.length=s,u}});var va=wt.f,ga={}.toString,ya=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ma={f:function(t){return ya&&\"[object Window]\"==ga.call(t)?function(t){try{return va(t)}catch(t){return ya.slice()}}(t):va(g(t))}},ba={f:qt},wa=I.f,Sa=function(t){var e=nt.Symbol||(nt.Symbol={});w(e,t)||wa(e,t,{value:ba.f(t)})},Ea=fe.forEach,xa=V(\"hidden\"),Aa=\"Symbol\",Oa=\"prototype\",Ra=qt(\"toPrimitive\"),ja=et.set,Pa=et.getterFor(Aa),Ia=Object[Oa],Ta=n.Symbol,ka=it(\"JSON\",\"stringify\"),La=R.f,Ua=I.f,Ma=ma.f,_a=c.f,Na=z(\"symbols\"),Ca=z(\"op-symbols\"),Fa=z(\"string-to-symbol-registry\"),Ba=z(\"symbol-to-string-registry\"),Da=z(\"wks\"),qa=n.QObject,za=!qa||!qa[Oa]||!qa[Oa].findChild,Wa=i&&o(function(){return 7!=Jt(Ua({},\"a\",{get:function(){return Ua(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=La(Ia,e);n&&delete Ia[e],Ua(t,e,r),n&&t!==Ia&&Ua(Ia,e,n)}:Ua,Ka=function(t,e){var r=Na[t]=Jt(Ta[Oa]);return ja(r,{type:Aa,tag:t,description:e}),i||(r.description=e),r},Ga=Ct?function(t){return\"symbol\"==typeof t}:function(t){return Object(t)instanceof Ta},$a=function(t,e,r){t===Ia&&$a(Ca,e,r),j(t);var n=m(e,!0);return j(r),w(Na,n)?(r.enumerable?(w(t,xa)&&t[xa][n]&&(t[xa][n]=!1),r=Jt(r,{enumerable:f(0,!1)})):(w(t,xa)||Ua(t,xa,f(1,{})),t[xa][n]=!0),Wa(t,n,r)):Ua(t,n,r)},Va=function(t,e){j(t);var r=g(e),n=zt(r).concat(Ja(r));return Ea(n,function(e){i&&!Ha.call(r,e)||$a(t,e,r[e])}),t},Ha=function(t){var e=m(t,!0),r=_a.call(this,e);return!(this===Ia&&w(Na,e)&&!w(Ca,e))&&(!(r||!w(this,e)||!w(Na,e)||w(this,xa)&&this[xa][e])||r)},Xa=function(t,e){var r=g(t),n=m(e,!0);if(r!==Ia||!w(Na,n)||w(Ca,n)){var o=La(r,n);return!o||!w(Na,n)||w(r,xa)&&r[xa][n]||(o.enumerable=!0),o}},Ya=function(t){var e=Ma(g(t)),r=[];return Ea(e,function(t){w(Na,t)||w(H,t)||r.push(t)}),r},Ja=function(t){var e=t===Ia,r=Ma(e?Ca:g(t)),n=[];return Ea(r,function(t){!w(Na,t)||e&&!w(Ia,t)||n.push(Na[t])}),n};if(Nt||(Ta=function(){if(this instanceof Ta)throw TypeError(\"Symbol is not a constructor\");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=G(t),r=function(t){this===Ia&&r.call(Ca,t),w(this,xa)&&w(this[xa],e)&&(this[xa][e]=!1),Wa(this,e,f(1,t))};return i&&za&&Wa(Ia,e,{configurable:!0,set:r}),Ka(e,t)},rt(Ta[Oa],\"toString\",function(){return Pa(this).tag}),rt(Ta,\"withoutSetter\",function(t){return Ka(G(t),t)}),c.f=Ha,I.f=$a,R.f=Xa,wt.f=ma.f=Ya,St.f=Ja,ba.f=function(t){return Ka(qt(t),t)},i&&(Ua(Ta[Oa],\"description\",{configurable:!0,get:function(){return Pa(this).description}}),rt(Ia,\"propertyIsEnumerable\",Ha,{unsafe:!0}))),Lt({global:!0,wrap:!0,forced:!Nt,sham:!Nt},{Symbol:Ta}),Ea(zt(Da),function(t){Sa(t)}),Lt({target:Aa,stat:!0,forced:!Nt},{for:function(t){var e=String(t);if(w(Fa,e))return Fa[e];var r=Ta(e);return Fa[e]=r,Ba[r]=e,r},keyFor:function(t){if(!Ga(t))throw TypeError(t+\" is not a symbol\");if(w(Ba,t))return Ba[t]},useSetter:function(){za=!0},useSimple:function(){za=!1}}),Lt({target:\"Object\",stat:!0,forced:!Nt,sham:!i},{create:function(t,e){return void 0===e?Jt(t):Va(Jt(t),e)},defineProperty:$a,defineProperties:Va,getOwnPropertyDescriptor:Xa}),Lt({target:\"Object\",stat:!0,forced:!Nt},{getOwnPropertyNames:Ya,getOwnPropertySymbols:Ja}),Lt({target:\"Object\",stat:!0,forced:o(function(){St.f(1)})},{getOwnPropertySymbols:function(t){return St.f(Ut(t))}}),ka){var Qa=!Nt||o(function(){var t=Ta();return\"[null]\"!=ka([t])||\"{}\"!=ka({a:t})||\"{}\"!=ka(Object(t))});Lt({target:\"JSON\",stat:!0,forced:Qa},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(y(e)||void 0!==t)&&!Ga(t))return ie(e)||(e=function(t,e){if(\"function\"==typeof n&&(e=n.call(this,t,e)),!Ga(e))return e}),o[1]=e,ka.apply(null,o)}})}Ta[Oa][Ra]||T(Ta[Oa],Ra,Ta[Oa].valueOf),Be(Ta,Aa),H[xa]=!0,Sa(\"asyncIterator\");var Za=I.f,tu=n.Symbol;if(i&&\"function\"==typeof tu&&(!(\"description\"in tu.prototype)||void 0!==tu().description)){var eu={},ru=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof ru?new tu(t):void 0===t?tu():tu(t);return\"\"===t&&(eu[e]=!0),e};xt(ru,tu);var nu=ru.prototype=tu.prototype;nu.constructor=ru;var ou=nu.toString,iu=\"Symbol(test)\"==String(tu(\"test\")),au=/^Symbol\\((.*)\\)[^)]+$/;Za(nu,\"description\",{configurable:!0,get:function(){var t=y(this)?this.valueOf():this,e=ou.call(t);if(w(eu,t))return\"\";var r=iu?e.slice(7,-1):e.replace(au,\"$1\");return\"\"===r?void 0:r}}),Lt({global:!0,forced:!0},{Symbol:ru})}Sa(\"hasInstance\"),Sa(\"isConcatSpreadable\"),Sa(\"iterator\"),Sa(\"match\"),Sa(\"matchAll\"),Sa(\"replace\"),Sa(\"search\"),Sa(\"species\"),Sa(\"split\"),Sa(\"toPrimitive\"),Sa(\"toStringTag\"),Sa(\"unscopables\"),Be(Math,\"Math\",!0),Be(n.JSON,\"JSON\",!0),Sa(\"asyncDispose\"),Sa(\"dispose\"),Sa(\"observable\"),Sa(\"patternMatch\"),Sa(\"replaceAll\"),ba.f(\"asyncIterator\");var uu=Ie.codeAt;Lt({target:\"String\",proto:!0},{codePointAt:function(t){return uu(this,t)}}),oe(\"String\",\"codePointAt\");var su,cu=function(t){if(Qo(t))throw TypeError(\"The method doesn't accept regular expressions\");return t},fu=qt(\"match\"),lu=function(t){var e=/./;try{\"/./\"[t](e)}catch(r){try{return e[fu]=!1,\"/./\"[t](e)}catch(t){}}return!1},hu=R.f,pu=\"\".endsWith,du=Math.min,vu=lu(\"endsWith\"),gu=!(vu||(su=hu(String.prototype,\"endsWith\"),!su||su.writable));Lt({target:\"String\",proto:!0,forced:!gu&&!vu},{endsWith:function(t){var e=String(v(this));cu(t);var r=arguments.length>1?arguments[1]:void 0,n=ft(e.length),o=void 0===r?n:du(ft(r),n),i=String(t);return pu?pu.call(e,i,o):e.slice(o-i.length,o)===i}}),oe(\"String\",\"endsWith\");var yu=String.fromCharCode,mu=String.fromCodePoint;Lt({target:\"String\",stat:!0,forced:!!mu&&1!=mu.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],pt(e,1114111)!==e)throw RangeError(e+\" is not a valid code point\");r.push(e<65536?yu(e):yu(55296+((e-=65536)>>10),e%1024+56320))}return r.join(\"\")}}),Lt({target:\"String\",proto:!0,forced:!lu(\"includes\")},{includes:function(t){return!!~String(v(this)).indexOf(cu(t),arguments.length>1?arguments[1]:void 0)}}),oe(\"String\",\"includes\");var bu=\"\".repeat||function(t){var e=String(v(this)),r=\"\",n=st(t);if(n<0||Infinity==n)throw RangeError(\"Wrong number of repetitions\");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},wu=Math.ceil,Su=function(t){return function(e,r,n){var o,i,a=String(v(e)),u=a.length,s=void 0===n?\" \":String(n),c=ft(r);return c<=u||\"\"==s?a:((i=bu.call(s,wu((o=c-u)/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},Eu={start:Su(!1),end:Su(!0)},xu=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(na),Au=Eu.start;Lt({target:\"String\",proto:!0,forced:xu},{padStart:function(t){return Au(this,t,arguments.length>1?arguments[1]:void 0)}}),oe(\"String\",\"padStart\");var Ou=Eu.end;Lt({target:\"String\",proto:!0,forced:xu},{padEnd:function(t){return Ou(this,t,arguments.length>1?arguments[1]:void 0)}}),oe(\"String\",\"padEnd\"),Lt({target:\"String\",stat:!0},{raw:function(t){for(var e=g(t.raw),r=ft(e.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(e[i++])),i<n&&o.push(String(arguments[i]));return o.join(\"\")}}),Lt({target:\"String\",proto:!0},{repeat:bu}),oe(\"String\",\"repeat\");var Ru=R.f,ju=\"\".startsWith,Pu=Math.min,Iu=lu(\"startsWith\"),Tu=!Iu&&!!function(){var t=Ru(String.prototype,\"startsWith\");return t&&!t.writable}();Lt({target:\"String\",proto:!0,forced:!Tu&&!Iu},{startsWith:function(t){var e=String(v(this));cu(t);var r=ft(Pu(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return ju?ju.call(e,n,r):e.slice(r,r+n.length)===n}}),oe(\"String\",\"startsWith\");var ku=function(t){return o(function(){return!!dn[t]()||\"​᠎\"!=\"​᠎\"[t]()||dn[t].name!==t})},Lu=bn.start,Uu=ku(\"trimStart\"),Mu=Uu?function(){return Lu(this)}:\"\".trimStart;Lt({target:\"String\",proto:!0,forced:Uu},{trimStart:Mu,trimLeft:Mu}),oe(\"String\",\"trimLeft\");var _u=bn.end,Nu=ku(\"trimEnd\"),Cu=Nu?function(){return _u(this)}:\"\".trimEnd;Lt({target:\"String\",proto:!0,forced:Nu},{trimEnd:Cu,trimRight:Cu}),oe(\"String\",\"trimRight\");var Fu=qt(\"iterator\"),Bu=!o(function(){var t=new URL(\"b?a=1&b=2&c=3\",\"http://a\"),e=t.searchParams,r=\"\";return t.pathname=\"c%20d\",e.forEach(function(t,n){e.delete(\"b\"),r+=n+t}),!e.sort||\"http://a/c%20d?a=1&c=3\"!==t.href||\"3\"!==e.get(\"c\")||\"a=1\"!==String(new URLSearchParams(\"?a=1\"))||!e[Fu]||\"a\"!==new URL(\"https://a@b\").username||\"b\"!==new URLSearchParams(new URLSearchParams(\"a=b\")).get(\"a\")||\"xn--e1aybc\"!==new URL(\"http://тест\").host||\"#%D0%B1\"!==new URL(\"http://a#б\").hash||\"a1c3\"!==r||\"x\"!==new URL(\"http://x\",void 0).host}),Du=Object.assign,qu=Object.defineProperty,zu=!Du||o(function(){if(i&&1!==Du({b:1},Du(qu({},\"a\",{enumerable:!0,get:function(){qu(this,\"b\",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n=\"abcdefghijklmnopqrst\";return t[r]=7,n.split(\"\").forEach(function(t){e[t]=t}),7!=Du({},t)[r]||zt(Du({},e)).join(\"\")!=n})?function(t,e){for(var r=Ut(t),n=arguments.length,o=1,a=St.f,u=c.f;n>o;)for(var s,f=d(arguments[o++]),l=a?zt(f).concat(a(f)):zt(f),h=l.length,p=0;h>p;)s=l[p++],i&&!u.call(f,s)||(r[s]=f[s]);return r}:Du,Wu=2147483647,Ku=/[^\\0-\\u007E]/,Gu=/[.\\u3002\\uFF0E\\uFF61]/g,$u=\"Overflow: input needs wider integers to process\",Vu=Math.floor,Hu=String.fromCharCode,Xu=function(t){return t+22+75*(t<26)},Yu=function(t,e,r){var n=0;for(t=r?Vu(t/700):t>>1,t+=Vu(t/e);t>455;n+=36)t=Vu(t/35);return Vu(n+36*t/(t+38))},Ju=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t);var r,n,o=t.length,i=128,a=0,u=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push(Hu(n));var s=e.length,c=s;for(s&&e.push(\"-\");c<o;){var f=Wu;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>Vu((Wu-a)/l))throw RangeError($u);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>Wu)throw RangeError($u);if(n==i){for(var h=a,p=36;;p+=36){var d=p<=u?1:p>=u+26?26:p-u;if(h<d)break;var v=h-d,g=36-d;e.push(Hu(Xu(d+v%g))),h=Vu(v/g)}e.push(Hu(Xu(h))),u=Yu(a,l,c==s),a=0,++c}}++a,++i}return e.join(\"\")},Qu=it(\"fetch\"),Zu=it(\"Headers\"),ts=qt(\"iterator\"),es=\"URLSearchParams\",rs=es+\"Iterator\",ns=et.set,os=et.getterFor(es),is=et.getterFor(rs),as=/\\+/g,us=Array(4),ss=function(t){return us[t-1]||(us[t-1]=RegExp(\"((?:%[\\\\da-f]{2}){\"+t+\"})\",\"gi\"))},cs=function(t){try{return decodeURIComponent(t)}catch(e){return t}},fs=function(t){var e=t.replace(as,\" \"),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(ss(r--),cs);return e}},ls=/[!'()~]|%20/g,hs={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\"},ps=function(t){return hs[t]},ds=function(t){return encodeURIComponent(t).replace(ls,ps)},vs=function(t,e){if(e)for(var r,n,o=e.split(\"&\"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split(\"=\"),t.push({key:fs(n.shift()),value:fs(n.join(\"=\"))}))},gs=function(t){this.entries.length=0,vs(this.entries,t)},ys=function(t,e){if(t<e)throw TypeError(\"Not enough arguments\")},ms=We(function(t,e){ns(this,{type:rs,iterator:cn(os(t).entries),kind:e})},\"Iterator\",function(){var t=is(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value=\"keys\"===e?n.key:\"values\"===e?n.value:[n.key,n.value]),r}),bs=function(){Br(this,bs,es);var t,e,r,n,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,f=[];if(ns(this,{type:es,entries:f,updateURL:function(){},updateSearchParams:gs}),void 0!==c)if(y(c))if(\"function\"==typeof(t=vr(c)))for(r=(e=t.call(c)).next;!(n=r.call(e)).done;){if((a=(i=(o=cn(j(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError(\"Expected sequence with length 2\");f.push({key:a.value+\"\",value:u.value+\"\"})}else for(s in c)w(c,s)&&f.push({key:s,value:c[s]+\"\"});else vs(f,\"string\"==typeof c?\"?\"===c.charAt(0)?c.slice(1):c:c+\"\")},ws=bs.prototype;zr(ws,{append:function(t,e){ys(arguments.length,2);var r=os(this);r.entries.push({key:t+\"\",value:e+\"\"}),r.updateURL()},delete:function(t){ys(arguments.length,1);for(var e=os(this),r=e.entries,n=t+\"\",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+\"\",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+\"\",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+\"\",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){ys(arguments.length,1);for(var r,n=os(this),o=n.entries,i=!1,a=t+\"\",u=e+\"\",s=0;s<o.length;s++)(r=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=os(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=os(this).entries,n=re(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new ms(this,\"keys\")},values:function(){return new ms(this,\"values\")},entries:function(){return new ms(this,\"entries\")}},{enumerable:!0}),rt(ws,ts,ws.entries),rt(ws,\"toString\",function(){for(var t,e=os(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(ds(t.key)+\"=\"+ds(t.value));return r.join(\"&\")},{enumerable:!0}),Be(bs,es),Lt({global:!0,forced:!Bu},{URLSearchParams:bs}),Bu||\"function\"!=typeof Qu||\"function\"!=typeof Zu||Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&pr(r=e.body)===es&&((n=e.headers?new Zu(e.headers):new Zu).has(\"content-type\")||n.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"),e=Jt(e,{body:f(0,String(r)),headers:f(0,n)})),o.push(e)),Qu.apply(this,o)}});var Ss,Es={URLSearchParams:bs,getState:os},xs=Ie.codeAt,As=n.URL,Os=Es.URLSearchParams,Rs=Es.getState,js=et.set,Ps=et.getterFor(\"URL\"),Is=Math.floor,Ts=Math.pow,ks=\"Invalid scheme\",Ls=\"Invalid host\",Us=\"Invalid port\",Ms=/[A-Za-z]/,_s=/[\\d+-.A-Za-z]/,Ns=/\\d/,Cs=/^(0x|0X)/,Fs=/^[0-7]+$/,Bs=/^\\d+$/,Ds=/^[\\dA-Fa-f]+$/,qs=/[\\u0000\\u0009\\u000A\\u000D #%/:?@[\\\\]]/,zs=/[\\u0000\\u0009\\u000A\\u000D #/:?@[\\\\]]/,Ws=/^[\\u0000-\\u001F ]+|[\\u0000-\\u001F ]+$/g,Ks=/[\\u0009\\u000A\\u000D]/g,Gs=function(t,e){var r,n,o;if(\"[\"==e.charAt(0)){if(\"]\"!=e.charAt(e.length-1))return Ls;if(!(r=Vs(e.slice(1,-1))))return Ls;t.host=r}else if(ec(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(Gu,\".\").split(\".\");for(e=0;e<o.length;e++)n.push(Ku.test(r=o[e])?\"xn--\"+Ju(r):r);return n.join(\".\")}(e),qs.test(e))return Ls;if(null===(r=$s(e)))return Ls;t.host=r}else{if(zs.test(e))return Ls;for(r=\"\",n=gr(e),o=0;o<n.length;o++)r+=Zs(n[o],Xs);t.host=r}},$s=function(t){var e,r,n,o,i,a,u,s=t.split(\".\");if(s.length&&\"\"==s[s.length-1]&&s.pop(),(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(\"\"==(o=s[n]))return t;if(i=10,o.length>1&&\"0\"==o.charAt(0)&&(i=Cs.test(o)?16:8,o=o.slice(8==i?1:2)),\"\"===o)a=0;else{if(!(10==i?Bs:8==i?Fs:Ds).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Ts(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*Ts(256,3-n);return u},Vs=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return t.charAt(l)};if(\":\"==h()){if(\":\"!=t.charAt(1))return;l+=2,f=++c}for(;h();){if(8==c)return;if(\":\"!=h()){for(e=r=0;r<4&&Ds.test(h());)e=16*e+parseInt(h(),16),l++,r++;if(\".\"==h()){if(0==r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!(\".\"==h()&&n<4))return;l++}if(!Ns.test(h()))return;for(;Ns.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(\":\"==h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s},Hs=function(t){var e,r,n,o;if(\"number\"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=Is(t/256);return e.join(\".\")}if(\"object\"==typeof t){for(e=\"\",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?\":\":\"::\",o=!0):(e+=t[r].toString(16),r<7&&(e+=\":\")));return\"[\"+e+\"]\"}return t},Xs={},Ys=zu({},Xs,{\" \":1,'\"':1,\"<\":1,\">\":1,\"`\":1}),Js=zu({},Ys,{\"#\":1,\"?\":1,\"{\":1,\"}\":1}),Qs=zu({},Js,{\"/\":1,\":\":1,\";\":1,\"=\":1,\"@\":1,\"[\":1,\"\\\\\":1,\"]\":1,\"^\":1,\"|\":1}),Zs=function(t,e){var r=xs(t,0);return r>32&&r<127&&!w(e,t)?t:encodeURIComponent(t)},tc={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ec=function(t){return w(tc,t.scheme)},rc=function(t){return\"\"!=t.username||\"\"!=t.password},nc=function(t){return!t.host||t.cannotBeABaseURL||\"file\"==t.scheme},oc=function(t,e){var r;return 2==t.length&&Ms.test(t.charAt(0))&&(\":\"==(r=t.charAt(1))||!e&&\"|\"==r)},ic=function(t){var e;return t.length>1&&oc(t.slice(0,2))&&(2==t.length||\"/\"===(e=t.charAt(2))||\"\\\\\"===e||\"?\"===e||\"#\"===e)},ac=function(t){var e=t.path,r=e.length;!r||\"file\"==t.scheme&&1==r&&oc(e[0],!0)||e.pop()},uc=function(t){return\".\"===t||\"%2e\"===t.toLowerCase()},sc={},cc={},fc={},lc={},hc={},pc={},dc={},vc={},gc={},yc={},mc={},bc={},wc={},Sc={},Ec={},xc={},Ac={},Oc={},Rc={},jc={},Pc={},Ic=function(t,e,r,n){var o,i,a,u,s,c=r||sc,f=0,l=\"\",h=!1,p=!1,d=!1;for(r||(t.scheme=\"\",t.username=\"\",t.password=\"\",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Ws,\"\")),e=e.replace(Ks,\"\"),o=gr(e);f<=o.length;){switch(i=o[f],c){case sc:if(!i||!Ms.test(i)){if(r)return ks;c=fc;continue}l+=i.toLowerCase(),c=cc;break;case cc:if(i&&(_s.test(i)||\"+\"==i||\"-\"==i||\".\"==i))l+=i.toLowerCase();else{if(\":\"!=i){if(r)return ks;l=\"\",c=fc,f=0;continue}if(r&&(ec(t)!=w(tc,l)||\"file\"==l&&(rc(t)||null!==t.port)||\"file\"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(ec(t)&&tc[t.scheme]==t.port&&(t.port=null));l=\"\",\"file\"==t.scheme?c=Sc:ec(t)&&n&&n.scheme==t.scheme?c=lc:ec(t)?c=vc:\"/\"==o[f+1]?(c=hc,f++):(t.cannotBeABaseURL=!0,t.path.push(\"\"),c=Rc)}break;case fc:if(!n||n.cannotBeABaseURL&&\"#\"!=i)return ks;if(n.cannotBeABaseURL&&\"#\"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment=\"\",t.cannotBeABaseURL=!0,c=Pc;break}c=\"file\"==n.scheme?Sc:pc;continue;case lc:if(\"/\"!=i||\"/\"!=o[f+1]){c=pc;continue}c=gc,f++;break;case hc:if(\"/\"==i){c=yc;break}c=Oc;continue;case pc:if(t.scheme=n.scheme,i==Ss)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if(\"/\"==i||\"\\\\\"==i&&ec(t))c=dc;else if(\"?\"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=\"\",c=jc;else{if(\"#\"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),c=Oc;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment=\"\",c=Pc}break;case dc:if(!ec(t)||\"/\"!=i&&\"\\\\\"!=i){if(\"/\"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,c=Oc;continue}c=yc}else c=gc;break;case vc:if(c=gc,\"/\"!=i||\"/\"!=l.charAt(f+1))continue;f++;break;case gc:if(\"/\"!=i&&\"\\\\\"!=i){c=yc;continue}break;case yc:if(\"@\"==i){h&&(l=\"%40\"+l),h=!0,a=gr(l);for(var v=0;v<a.length;v++){var g=a[v];if(\":\"!=g||d){var y=Zs(g,Qs);d?t.password+=y:t.username+=y}else d=!0}l=\"\"}else if(i==Ss||\"/\"==i||\"?\"==i||\"#\"==i||\"\\\\\"==i&&ec(t)){if(h&&\"\"==l)return\"Invalid authority\";f-=gr(l).length+1,l=\"\",c=mc}else l+=i;break;case mc:case bc:if(r&&\"file\"==t.scheme){c=xc;continue}if(\":\"!=i||p){if(i==Ss||\"/\"==i||\"?\"==i||\"#\"==i||\"\\\\\"==i&&ec(t)){if(ec(t)&&\"\"==l)return Ls;if(r&&\"\"==l&&(rc(t)||null!==t.port))return;if(u=Gs(t,l))return u;if(l=\"\",c=Ac,r)return;continue}\"[\"==i?p=!0:\"]\"==i&&(p=!1),l+=i}else{if(\"\"==l)return Ls;if(u=Gs(t,l))return u;if(l=\"\",c=wc,r==bc)return}break;case wc:if(!Ns.test(i)){if(i==Ss||\"/\"==i||\"?\"==i||\"#\"==i||\"\\\\\"==i&&ec(t)||r){if(\"\"!=l){var m=parseInt(l,10);if(m>65535)return Us;t.port=ec(t)&&m===tc[t.scheme]?null:m,l=\"\"}if(r)return;c=Ac;continue}return Us}l+=i;break;case Sc:if(t.scheme=\"file\",\"/\"==i||\"\\\\\"==i)c=Ec;else{if(!n||\"file\"!=n.scheme){c=Oc;continue}if(i==Ss)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if(\"?\"==i)t.host=n.host,t.path=n.path.slice(),t.query=\"\",c=jc;else{if(\"#\"!=i){ic(o.slice(f).join(\"\"))||(t.host=n.host,t.path=n.path.slice(),ac(t)),c=Oc;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment=\"\",c=Pc}}break;case Ec:if(\"/\"==i||\"\\\\\"==i){c=xc;break}n&&\"file\"==n.scheme&&!ic(o.slice(f).join(\"\"))&&(oc(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),c=Oc;continue;case xc:if(i==Ss||\"/\"==i||\"\\\\\"==i||\"?\"==i||\"#\"==i){if(!r&&oc(l))c=Oc;else if(\"\"==l){if(t.host=\"\",r)return;c=Ac}else{if(u=Gs(t,l))return u;if(\"localhost\"==t.host&&(t.host=\"\"),r)return;l=\"\",c=Ac}continue}l+=i;break;case Ac:if(ec(t)){if(c=Oc,\"/\"!=i&&\"\\\\\"!=i)continue}else if(r||\"?\"!=i)if(r||\"#\"!=i){if(i!=Ss&&(c=Oc,\"/\"!=i))continue}else t.fragment=\"\",c=Pc;else t.query=\"\",c=jc;break;case Oc:if(i==Ss||\"/\"==i||\"\\\\\"==i&&ec(t)||!r&&(\"?\"==i||\"#\"==i)){if(\"..\"===(s=(s=l).toLowerCase())||\"%2e.\"===s||\".%2e\"===s||\"%2e%2e\"===s?(ac(t),\"/\"==i||\"\\\\\"==i&&ec(t)||t.path.push(\"\")):uc(l)?\"/\"==i||\"\\\\\"==i&&ec(t)||t.path.push(\"\"):(\"file\"==t.scheme&&!t.path.length&&oc(l)&&(t.host&&(t.host=\"\"),l=l.charAt(0)+\":\"),t.path.push(l)),l=\"\",\"file\"==t.scheme&&(i==Ss||\"?\"==i||\"#\"==i))for(;t.path.length>1&&\"\"===t.path[0];)t.path.shift();\"?\"==i?(t.query=\"\",c=jc):\"#\"==i&&(t.fragment=\"\",c=Pc)}else l+=Zs(i,Js);break;case Rc:\"?\"==i?(t.query=\"\",c=jc):\"#\"==i?(t.fragment=\"\",c=Pc):i!=Ss&&(t.path[0]+=Zs(i,Xs));break;case jc:r||\"#\"!=i?i!=Ss&&(\"'\"==i&&ec(t)?t.query+=\"%27\":t.query+=\"#\"==i?\"%23\":Zs(i,Xs)):(t.fragment=\"\",c=Pc);break;case Pc:i!=Ss&&(t.fragment+=Zs(i,Ys))}f++}},Tc=function(t){var e,r,n=Br(this,Tc,\"URL\"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=js(n,{type:\"URL\"});if(void 0!==o)if(o instanceof Tc)e=Ps(o);else if(r=Ic(e={},String(o)))throw TypeError(r);if(r=Ic(u,a,null,e))throw TypeError(r);var s=u.searchParams=new Os,c=Rs(s);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(s)||null},i||(n.href=Lc.call(n),n.origin=Uc.call(n),n.protocol=Mc.call(n),n.username=_c.call(n),n.password=Nc.call(n),n.host=Cc.call(n),n.hostname=Fc.call(n),n.port=Bc.call(n),n.pathname=Dc.call(n),n.search=qc.call(n),n.searchParams=zc.call(n),n.hash=Wc.call(n))},kc=Tc.prototype,Lc=function(){var t=Ps(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+\":\";return null!==o?(c+=\"//\",rc(t)&&(c+=r+(n?\":\"+n:\"\")+\"@\"),c+=Hs(o),null!==i&&(c+=\":\"+i)):\"file\"==e&&(c+=\"//\"),c+=t.cannotBeABaseURL?a[0]:a.length?\"/\"+a.join(\"/\"):\"\",null!==u&&(c+=\"?\"+u),null!==s&&(c+=\"#\"+s),c},Uc=function(){var t=Ps(this),e=t.scheme,r=t.port;if(\"blob\"==e)try{return new URL(e.path[0]).origin}catch(t){return\"null\"}return\"file\"!=e&&ec(t)?e+\"://\"+Hs(t.host)+(null!==r?\":\"+r:\"\"):\"null\"},Mc=function(){return Ps(this).scheme+\":\"},_c=function(){return Ps(this).username},Nc=function(){return Ps(this).password},Cc=function(){var t=Ps(this),e=t.host,r=t.port;return null===e?\"\":null===r?Hs(e):Hs(e)+\":\"+r},Fc=function(){var t=Ps(this).host;return null===t?\"\":Hs(t)},Bc=function(){var t=Ps(this).port;return null===t?\"\":String(t)},Dc=function(){var t=Ps(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?\"/\"+e.join(\"/\"):\"\"},qc=function(){var t=Ps(this).query;return t?\"?\"+t:\"\"},zc=function(){return Ps(this).searchParams},Wc=function(){var t=Ps(this).fragment;return t?\"#\"+t:\"\"},Kc=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&Wt(kc,{href:Kc(Lc,function(t){var e=Ps(this),r=String(t),n=Ic(e,r);if(n)throw TypeError(n);Rs(e.searchParams).updateSearchParams(e.query)}),origin:Kc(Uc),protocol:Kc(Mc,function(t){var e=Ps(this);Ic(e,String(t)+\":\",sc)}),username:Kc(_c,function(t){var e=Ps(this),r=gr(String(t));if(!nc(e)){e.username=\"\";for(var n=0;n<r.length;n++)e.username+=Zs(r[n],Qs)}}),password:Kc(Nc,function(t){var e=Ps(this),r=gr(String(t));if(!nc(e)){e.password=\"\";for(var n=0;n<r.length;n++)e.password+=Zs(r[n],Qs)}}),host:Kc(Cc,function(t){var e=Ps(this);e.cannotBeABaseURL||Ic(e,String(t),mc)}),hostname:Kc(Fc,function(t){var e=Ps(this);e.cannotBeABaseURL||Ic(e,String(t),bc)}),port:Kc(Bc,function(t){var e=Ps(this);nc(e)||(\"\"==(t=String(t))?e.port=null:Ic(e,t,wc))}),pathname:Kc(Dc,function(t){var e=Ps(this);e.cannotBeABaseURL||(e.path=[],Ic(e,t+\"\",Ac))}),search:Kc(qc,function(t){var e=Ps(this);\"\"==(t=String(t))?e.query=null:(\"?\"==t.charAt(0)&&(t=t.slice(1)),e.query=\"\",Ic(e,t,jc)),Rs(e.searchParams).updateSearchParams(e.query)}),searchParams:Kc(zc),hash:Kc(Wc,function(t){var e=Ps(this);\"\"!=(t=String(t))?(\"#\"==t.charAt(0)&&(t=t.slice(1)),e.fragment=\"\",Ic(e,t,Pc)):e.fragment=null})}),rt(kc,\"toJSON\",function(){return Lc.call(this)},{enumerable:!0}),rt(kc,\"toString\",function(){return Lc.call(this)},{enumerable:!0}),As){var Gc=As.createObjectURL,$c=As.revokeObjectURL;Gc&&rt(Tc,\"createObjectURL\",function(t){return Gc.apply(As,arguments)}),$c&&rt(Tc,\"revokeObjectURL\",function(t){return $c.apply(As,arguments)})}Be(Tc,\"URL\"),Lt({global:!0,forced:!Bu,sham:!i},{URL:Tc}),Lt({target:\"URL\",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}}),Lt({target:\"WeakMap\",stat:!0},{from:an}),Lt({target:\"WeakMap\",stat:!0},{of:un}),Lt({target:\"WeakMap\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}}),Lt({target:\"WeakMap\",proto:!0,real:!0,forced:q},{upsert:pn}),qr(\"WeakSet\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},So),Lt({target:\"WeakSet\",proto:!0,real:!0,forced:q},{addAll:function(){return Zi.apply(this,arguments)}}),Lt({target:\"WeakSet\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}}),Lt({target:\"WeakSet\",stat:!0},{from:an}),Lt({target:\"WeakSet\",stat:!0},{of:un});var Vc,Hc,Xc,Yc=n.Promise,Jc=/(iphone|ipod|ipad).*applewebkit/i.test(na),Qc=n.location,Zc=n.setImmediate,tf=n.clearImmediate,ef=n.process,rf=n.MessageChannel,nf=n.Dispatch,of=0,af={},uf=\"onreadystatechange\",sf=function(t){if(af.hasOwnProperty(t)){var e=af[t];delete af[t],e()}},cf=function(t){return function(){sf(t)}},ff=function(t){sf(t.data)},lf=function(t){n.postMessage(t+\"\",Qc.protocol+\"//\"+Qc.host)};Zc&&tf||(Zc=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return af[++of]=function(){(\"function\"==typeof t?t:Function(t)).apply(void 0,e)},Vc(of),of},tf=function(t){delete af[t]},\"process\"==h(ef)?Vc=function(t){ef.nextTick(cf(t))}:nf&&nf.now?Vc=function(t){nf.now(cf(t))}:rf&&!Jc?(Xc=(Hc=new rf).port2,Hc.port1.onmessage=ff,Vc=re(Xc.postMessage,Xc,1)):!n.addEventListener||\"function\"!=typeof postMessage||n.importScripts||o(lf)||\"file:\"===Qc.protocol?Vc=uf in x(\"script\")?function(t){Kt.appendChild(x(\"script\"))[uf]=function(){Kt.removeChild(this),sf(t)}}:function(t){setTimeout(cf(t),0)}:(Vc=lf,n.addEventListener(\"message\",ff,!1)));var hf,pf,df,vf,gf,yf,mf,bf,wf={set:Zc,clear:tf},Sf=R.f,Ef=wf.set,xf=n.MutationObserver||n.WebKitMutationObserver,Af=n.process,Of=n.Promise,Rf=\"process\"==h(Af),jf=Sf(n,\"queueMicrotask\"),Pf=jf&&jf.value;Pf||(hf=function(){var t,e;for(Rf&&(t=Af.domain)&&t.exit();pf;){e=pf.fn,pf=pf.next;try{e()}catch(t){throw pf?vf():df=void 0,t}}df=void 0,t&&t.enter()},Rf?vf=function(){Af.nextTick(hf)}:xf&&!Jc?(gf=!0,yf=document.createTextNode(\"\"),new xf(hf).observe(yf,{characterData:!0}),vf=function(){yf.data=gf=!gf}):Of&&Of.resolve?(mf=Of.resolve(void 0),bf=mf.then,vf=function(){bf.call(mf,hf)}):vf=function(){Ef.call(n,hf)});var If,Tf,kf,Lf,Uf=Pf||function(t){var e={fn:t,next:void 0};df&&(df.next=e),pf||(pf=e,vf()),df=e},Mf=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError(\"Bad Promise constructor\");e=t,r=n}),this.resolve=ee(e),this.reject=ee(r)},_f={f:function(t){return new Mf(t)}},Nf=function(t,e){if(j(t),y(e)&&e.constructor===t)return e;var r=_f.f(t);return(0,r.resolve)(e),r.promise},Cf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ff=wf.set,Bf=qt(\"species\"),Df=\"Promise\",qf=et.get,zf=et.set,Wf=et.getterFor(Df),Kf=Yc,Gf=n.TypeError,$f=n.document,Vf=n.process,Hf=it(\"fetch\"),Xf=_f.f,Yf=Xf,Jf=\"process\"==h(Vf),Qf=!!($f&&$f.createEvent&&n.dispatchEvent),Zf=\"unhandledrejection\",tl=Tt(Df,function(){if(F(Kf)===String(Kf)){if(66===ua)return!0;if(!Jf&&\"function\"!=typeof PromiseRejectionEvent)return!0}if(ua>=51&&/native code/.test(Kf))return!1;var t=Kf.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Bf]=e,!(t.then(function(){})instanceof e)}),el=tl||!Sr(function(t){Kf.all(t).catch(function(){})}),rl=function(t){var e;return!(!y(t)||\"function\"!=typeof(e=t.then))&&e},nl=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;Uf(function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,s,c,f=n[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&ul(t,e),e.rejection=1),!0===l?u=o:(d&&d.enter(),u=l(o),d&&(d.exit(),c=!0)),u===f.promise?p(Gf(\"Promise-chain cycle\")):(s=rl(u))?s.call(u,h,p):h(u)):p(o)}catch(t){d&&!c&&d.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&il(t,e)})}},ol=function(t,e,r){var o,i;Qf?((o=$f.createEvent(\"Event\")).promise=e,o.reason=r,o.initEvent(t,!1,!0),n.dispatchEvent(o)):o={promise:e,reason:r},(i=n[\"on\"+t])?i(o):t===Zf&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}(\"Unhandled promise rejection\",r)},il=function(t,e){Ff.call(n,function(){var r,n=e.value;if(al(e)&&(r=Cf(function(){Jf?Vf.emit(\"unhandledRejection\",n,t):ol(Zf,t,n)}),e.rejection=Jf||al(e)?2:1,r.error))throw r.value})},al=function(t){return 1!==t.rejection&&!t.parent},ul=function(t,e){Ff.call(n,function(){Jf?Vf.emit(\"rejectionHandled\",t):ol(\"rejectionhandled\",t,e.value)})},sl=function(t,e,r,n){return function(o){t(e,r,o,n)}},cl=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,nl(t,e,!0))},fl=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw Gf(\"Promise can't be resolved itself\");var o=rl(r);o?Uf(function(){var n={done:!1};try{o.call(r,sl(fl,t,n,e),sl(cl,t,n,e))}catch(r){cl(t,n,r,e)}}):(e.value=r,e.state=1,nl(t,e,!1))}catch(r){cl(t,{done:!1},r,e)}}};tl&&(Kf=function(t){Br(this,Kf,Df),ee(t),If.call(this);var e=qf(this);try{t(sl(fl,this,e),sl(cl,this,e))}catch(t){cl(this,e,t)}},(If=function(t){zf(this,{type:Df,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zr(Kf.prototype,{then:function(t,e){var r=Wf(this),n=Xf(hn(this,Kf));return n.ok=\"function\"!=typeof t||t,n.fail=\"function\"==typeof e&&e,n.domain=Jf?Vf.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&nl(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Tf=function(){var t=new If,e=qf(t);this.promise=t,this.resolve=sl(fl,t,e),this.reject=sl(cl,t,e)},_f.f=Xf=function(t){return t===Kf||t===kf?new Tf(t):Yf(t)},\"function\"==typeof Yc&&(Lf=Yc.prototype.then,rt(Yc.prototype,\"then\",function(t,e){var r=this;return new Kf(function(t,e){Lf.call(r,t,e)}).then(t,e)},{unsafe:!0}),\"function\"==typeof Hf&&Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Nf(Kf,Hf.apply(n,arguments))}}))),Lt({global:!0,wrap:!0,forced:tl},{Promise:Kf}),Be(Kf,Df,!1),Kr(Df),kf=it(Df),Lt({target:Df,stat:!0,forced:tl},{reject:function(t){var e=Xf(this);return e.reject.call(void 0,t),e.promise}}),Lt({target:Df,stat:!0,forced:tl},{resolve:function(t){return Nf(this,t)}}),Lt({target:Df,stat:!0,forced:el},{all:function(t){var e=this,r=Xf(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),i=[],a=0,u=1;Fr(t,function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Xf(e),n=r.reject,o=Cf(function(){var o=ee(e.resolve);Fr(t,function(t){o.call(e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Lt({target:\"Promise\",stat:!0},{allSettled:function(t){var e=this,r=_f.f(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),o=[],i=0,a=1;Fr(t,function(t){var u=i++,s=!1;o.push(void 0),a++,r.call(e,t).then(function(t){s||(s=!0,o[u]={status:\"fulfilled\",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:\"rejected\",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var ll=!!Yc&&o(function(){Yc.prototype.finally.call({then:function(){}},function(){})});Lt({target:\"Promise\",proto:!0,real:!0,forced:ll},{finally:function(t){var e=hn(this,it(\"Promise\")),r=\"function\"==typeof t;return this.then(r?function(r){return Nf(e,t()).then(function(){return r})}:t,r?function(r){return Nf(e,t()).then(function(){throw r})}:t)}}),\"function\"!=typeof Yc||Yc.prototype.finally||rt(Yc.prototype,\"finally\",it(\"Promise\").prototype.finally);var hl=et.set,pl=et.getterFor(\"AggregateError\"),dl=function(t,e){var r=this;if(!(r instanceof dl))return new dl(t,e);Ge&&(r=Ge(new Error(e),Ue(r)));var n=[];return Fr(t,n.push,n),i?hl(r,{errors:n,type:\"AggregateError\"}):r.errors=n,void 0!==e&&T(r,\"message\",String(e)),r};dl.prototype=Jt(Error.prototype,{constructor:f(5,dl),message:f(5,\"\"),name:f(5,\"AggregateError\")}),i&&I.f(dl.prototype,\"errors\",{get:function(){return pl(this).errors},configurable:!0}),Lt({global:!0},{AggregateError:dl}),Lt({target:\"Promise\",stat:!0},{try:function(t){var e=_f.f(this),r=Cf(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var vl=\"No one promise resolved\";Lt({target:\"Promise\",stat:!0},{any:function(t){var e=this,r=_f.f(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),i=[],a=0,u=1,s=!1;Fr(t,function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then(function(t){f||s||(s=!0,n(t))},function(t){f||s||(f=!0,i[c]=t,--u||o(new(it(\"AggregateError\"))(i,vl)))})}),--u||o(new(it(\"AggregateError\"))(i,vl))});return i.error&&o(i.value),r.promise}}),oe(\"Promise\",\"finally\");var gl=\"URLSearchParams\"in self,yl=\"Symbol\"in self&&\"iterator\"in Symbol,ml=\"FileReader\"in self&&\"Blob\"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),bl=\"FormData\"in self,wl=\"ArrayBuffer\"in self;if(wl)var Sl=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],El=ArrayBuffer.isView||function(t){return t&&Sl.indexOf(Object.prototype.toString.call(t))>-1};function xl(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError(\"Invalid character in header field name\");return t.toLowerCase()}function Al(t){return\"string\"!=typeof t&&(t=String(t)),t}function Ol(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return yl&&(e[Symbol.iterator]=function(){return e}),e}function Rl(t){this.map={},t instanceof Rl?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function jl(t){if(t.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));t.bodyUsed=!0}function Pl(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function Il(t){var e=new FileReader,r=Pl(e);return e.readAsArrayBuffer(t),r}function Tl(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function kl(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:ml&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:bl&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:gl&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():wl&&ml&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Tl(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):wl&&(ArrayBuffer.prototype.isPrototypeOf(t)||El(t))?this._bodyArrayBuffer=Tl(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText=\"\",this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):gl&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},ml&&(this.blob=function(){var t=jl(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?jl(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Il)}),this.text=function(){var t=jl(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=Pl(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},bl&&(this.formData=function(){return this.text().then(Ml)}),this.json=function(){return this.text().then(JSON.parse)},this}Rl.prototype.append=function(t,e){t=xl(t),e=Al(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},Rl.prototype.delete=function(t){delete this.map[xl(t)]},Rl.prototype.get=function(t){return t=xl(t),this.has(t)?this.map[t]:null},Rl.prototype.has=function(t){return this.map.hasOwnProperty(xl(t))},Rl.prototype.set=function(t,e){this.map[xl(t)]=Al(e)},Rl.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Rl.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),Ol(t)},Rl.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Ol(t)},Rl.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),Ol(t)},yl&&(Rl.prototype[Symbol.iterator]=Rl.prototype.entries);var Ll=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];function Ul(t,e){var r,n,o=(e=e||{}).body;if(t instanceof Ul){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Rl(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new Rl(e.headers)),this.method=(n=(r=e.method||this.method||\"GET\").toUpperCase(),Ll.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&o)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(o)}function Ml(t){var e=new FormData;return t.trim().split(\"&\").forEach(function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),o=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function _l(t,e){e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in e?e.statusText:\"OK\",this.headers=new Rl(e.headers),this.url=e.url||\"\",this._initBody(t)}Ul.prototype.clone=function(){return new Ul(this,{body:this._bodyInit})},kl.call(Ul.prototype),kl.call(_l.prototype),_l.prototype.clone=function(){return new _l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Rl(this.headers),url:this.url})},_l.error=function(){var t=new _l(null,{status:0,statusText:\"\"});return t.type=\"error\",t};var Nl=[301,302,303,307,308];_l.redirect=function(t,e){if(-1===Nl.indexOf(e))throw new RangeError(\"Invalid status code\");return new _l(null,{status:e,headers:{location:t}})};var Cl=self.DOMException;try{new Cl}catch(t){(Cl=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),Cl.prototype.constructor=Cl}function Fl(t,e){return new Promise(function(r,n){var o=new Ul(t,e);if(o.signal&&o.signal.aborted)return n(new Cl(\"Aborted\",\"AbortError\"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||\"\",e=new Rl,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var o=r.join(\":\").trim();e.append(n,o)}}),e)};n.url=\"responseURL\"in i?i.responseURL:n.headers.get(\"X-Request-URL\"),r(new _l(\"response\"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError(\"Network request failed\"))},i.ontimeout=function(){n(new TypeError(\"Network request failed\"))},i.onabort=function(){n(new Cl(\"Aborted\",\"AbortError\"))},i.open(o.method,o.url,!0),\"include\"===o.credentials?i.withCredentials=!0:\"omit\"===o.credentials&&(i.withCredentials=!1),\"responseType\"in i&&ml&&(i.responseType=\"blob\"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener(\"abort\",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener(\"abort\",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}Fl.polyfill=!0,self.fetch||(self.fetch=Fl,self.Headers=Rl,self.Request=Ul,self.Response=_l);var Bl=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,zl=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))Dl.call(r,a)&&(o[a]=r[a]);if(Bl){n=Bl(r);for(var u=0;u<n.length;u++)ql.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o};Object.assign=zl}();\n"
  },
  {
    "path": "client/out/_next/static/chunks/webpack-1f4c176689af895b.js",
    "content": "!function(){\"use strict\";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,d.amdO={},e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d.t=function(e,r){if(1&r&&(e=this(e)),8&r||\"object\"==typeof e&&e&&(4&r&&e.__esModule||16&r&&\"function\"==typeof e.then))return e;var o=Object.create(null);d.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;\"object\"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},d.d(o,u),o},d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.f={},d.e=function(e){return Promise.all(Object.keys(d.f).reduce(function(t,n){return d.f[n](e,t),t},[]))},d.u=function(e){return\"static/chunks/\"+e+\".\"+({26:\"1d107b0aeb7c14be\",318:\"67461aab1aa569d4\",550:\"78062c8e0f31c7e4\",866:\"ab29f905adb91a5f\"})[e]+\".js\"},d.miniCssF=function(e){},d.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o=\"_N_E:\",d.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName(\"script\"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute(\"src\")==e||l.getAttribute(\"data-webpack\")==o+n){i=l;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",i.timeout=120,d.nc&&i.setAttribute(\"nonce\",d.nc),i.setAttribute(\"data-webpack\",o+n),i.src=d.tu(e)),r[e]=[t];var s=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),c&&document.head.appendChild(i)},d.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},d.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},d.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},\"undefined\"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy(\"nextjs#bundler\",u))),u},d.tu=function(e){return d.tt().createScriptURL(e)},d.p=\"/_next/\",i={272:0,370:0},d.f.j=function(e,t){var n=d.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(272|370)$/.test(e))i[e]=0;else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=d.p+d.u(e),u=Error();d.l(o,function(t){if(d.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&(\"load\"===t.type?\"missing\":t.type),o=t&&t.target&&t.target.src;u.message=\"Loading chunk \"+e+\" failed.\\n(\"+r+\": \"+o+\")\",u.name=\"ChunkLoadError\",u.type=r,u.request=o,n[1](u)}},\"chunk-\"+e,e)}}},d.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)d.o(u,n)&&(d.m[n]=u[n]);if(c)var a=c(d)}for(e&&e(t);f<o.length;f++)r=o[f],d.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return d.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f)),d.nc=void 0}();"
  },
  {
    "path": "client/out/_next/static/css/888b2de5347592df.css",
    "content": "@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/55c55f0601d81cf3-s.woff2) format(\"woff2\");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/26a46d62cd723877-s.woff2) format(\"woff2\");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/97e0cb1ae144a2a9-s.woff2) format(\"woff2\");unicode-range:u+1f??}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/581909926a08bbc8-s.woff2) format(\"woff2\");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/df0a9ae256c0569c-s.woff2) format(\"woff2\");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/6d93bde91c0c2823-s.woff2) format(\"woff2\");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/a34f9d1faa5f3315-s.p.woff2) format(\"woff2\");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Inter_Fallback_d65c78;src:local(\"Arial\");ascent-override:90.49%;descent-override:22.56%;line-gap-override:0.00%;size-adjust:107.06%}.__className_d65c78{font-family:__Inter_d65c78,__Inter_Fallback_d65c78;font-style:normal}\n\n/*\n! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com\n*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:\"\"}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.75rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-bottom-2{bottom:-.5rem}.-bottom-3{bottom:-.75rem}.-right-2{right:-.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-3\\.5{bottom:.875rem}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.top-0{top:0}.top-20{top:5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50,.z-\\[50\\]{z-index:50}.z-\\[99999999999\\]{z-index:99999999999}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mt-20{margin-top:-5rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-2\\.5{margin-top:.625rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.line-clamp-2{-webkit-line-clamp:2}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1\\.2rem\\]{height:1.2rem}.h-\\[85vh\\]{height:85vh}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-24{max-height:6rem}.max-h-48{max-height:12rem}.max-h-96{max-height:24rem}.min-h-32{min-height:8rem}.min-h-\\[80px\\]{min-height:80px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[1\\.2rem\\]{width:1.2rem}.w-\\[36rem\\]{width:36rem}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-\\[18rem\\]{min-width:18rem}.min-w-\\[40px\\]{min-width:40px}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-3xl{max-width:48rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.translate-x-\\[-50\\%\\],.translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.-rotate-90{--tw-rotate:-90deg}.-rotate-90,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize{resize:both}.scroll-m-20{scroll-margin:5rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-3\\.5{gap:.875rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\\[0\\.5ch\\]{gap:.5ch}.gap-y-9{row-gap:2.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-3\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:rgba(0,0,0,.8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-gray-50{--tw-gradient-from:#f9fafb var(--tw-gradient-from-position);--tw-gradient-to:rgba(249,250,251,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-purple-400{--tw-gradient-from:#c084fc var(--tw-gradient-from-position);--tw-gradient-to:rgba(192,132,252,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from:#a855f7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(168,85,247,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-gray-100{--tw-gradient-to:#f3f4f6 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to:#ec4899 var(--tw-gradient-to-position)}.to-pink-600{--tw-gradient-to:#db2777 var(--tw-gradient-to-position)}.bg-clip-text{background-clip:text}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-3{padding:.75rem}.p-3\\.5{padding:.875rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-32{padding-bottom:8rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-pink-400{--tw-text-opacity:1;color:rgb(244 114 182/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity:1;color:rgb(168 85 247/var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity:1;color:rgb(126 34 206/var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.accent-primary{accent-color:hsl(var(--primary))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.blur-xl{--tw-blur:blur(24px)}.blur-xl,.drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06))}.drop-shadow-md,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.file\\:border-0::file-selector-button{border-width:0}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:w-1:after{content:var(--tw-content);width:.25rem}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\\:mt-0:first-child{margin-top:0}.hover\\:-translate-y-1:hover{--tw-translate-y:-0.25rem}.hover\\:-translate-y-1:hover,.hover\\:scale-105:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:bg-primary\\/70:hover{background-color:hsl(var(--primary)/.7)}.hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\\:bg-purple-100:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.hover\\:bg-purple-700:hover{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\\:from-purple-600:hover{--tw-gradient-from:#9333ea var(--tw-gradient-from-position);--tw-gradient-to:rgba(147,51,234,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:to-pink-600:hover{--tw-gradient-to:#db2777 var(--tw-gradient-to-position)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\\:text-purple-800:hover{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.hover\\:shadow-2xl:hover,.hover\\:shadow-lg:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\\:border-purple-500:focus{--tw-border-opacity:1;border-color:rgb(168 85 247/var(--tw-border-opacity))}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-purple-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity))}.focus\\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group.toaster .group-\\[\\.toaster\\]\\:border-border{border-color:hsl(var(--border))}.group.toast .group-\\[\\.toast\\]\\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\\[\\.toast\\]\\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\\[\\.toaster\\]\\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\\[\\.toaster\\]\\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\\[\\.toaster\\]\\:shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\\:opacity-70{opacity:.7}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked]{--tw-translate-x:1.25rem}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked],.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:border-none:is(.dark *){border-style:none}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\\:bg-muted\\/10:is(.dark *){background-color:hsl(var(--muted)/.1)}.dark\\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mt-0{margin-top:0}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width:768px){.md\\:w-1\\/3{width:33.333333%}.md\\:w-2\\/3{width:66.666667%}.md\\:flex-row{flex-direction:row}.md\\:text-balance{text-wrap:balance}.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:text-7xl{font-size:4.5rem;line-height:1}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate:90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}"
  },
  {
    "path": "client/out/index.html",
    "content": "<!DOCTYPE html><html lang=\"en\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"stylesheet\" href=\"/_next/static/css/888b2de5347592df.css\" data-precedence=\"next\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/webpack-1f4c176689af895b.js\"/><script src=\"/_next/static/chunks/fd9d1056-819464016f7ad85c.js\" async=\"\"></script><script src=\"/_next/static/chunks/23-a2a6d2cb6c50ca8e.js\" async=\"\"></script><script src=\"/_next/static/chunks/main-app-0e53d5b0820fa726.js\" async=\"\"></script><script src=\"/_next/static/chunks/3ab9597f-9ca74e94c08af310.js\" async=\"\"></script><script src=\"/_next/static/chunks/5ab80550-22a236d451c69b50.js\" async=\"\"></script><script src=\"/_next/static/chunks/795d4814-3c1aeb3c4a7db891.js\" async=\"\"></script><script src=\"/_next/static/chunks/5e22fd23-a888f1085fc13e55.js\" async=\"\"></script><script src=\"/_next/static/chunks/385cb88d-d4d0cd34753b4b85.js\" async=\"\"></script><script src=\"/_next/static/chunks/53c13509-fd73beeb7afe2e31.js\" async=\"\"></script><script src=\"/_next/static/chunks/e34aaff9-73cdc0c2aa38fff5.js\" async=\"\"></script><script src=\"/_next/static/chunks/3d47b92a-88f28c2ab0026672.js\" async=\"\"></script><script src=\"/_next/static/chunks/dc112a36-9245e58b51327391.js\" async=\"\"></script><script src=\"/_next/static/chunks/202-9b05294c1bfbdfa7.js\" async=\"\"></script><script src=\"/_next/static/chunks/112-05ef4e14cff1a5e4.js\" async=\"\"></script><script src=\"/_next/static/chunks/app/page-bbd1448002907ff3.js\" async=\"\"></script><script src=\"/_next/static/chunks/app/layout-696be0f0413601fb.js\" async=\"\"></script><title>Own Sound</title><meta name=\"description\" content=\"Made with love by the Qoneqt team\"/><link rel=\"icon\" href=\"/favicon.ico\" type=\"image/x-icon\" sizes=\"32x32\"/><script src=\"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js\" noModule=\"\"></script></head><body class=\"__className_d65c78\"><script>!function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');var e=localStorage.getItem('theme');if('system'===e||(!e&&false)){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){d.style.colorScheme = 'dark';c.add('dark')}else{d.style.colorScheme = 'light';c.add('light')}}else if(e){c.add(e|| '')}else{c.add('light')}if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'light'}catch(e){}}()</script><div class=\"w-full grid items-center justify-center min-h-screen\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-loader-circle animate-spin text-primary w-40\"><path d=\"M21 12a9 9 0 1 1-6.219-8.56\"></path></svg></div><script src=\"/_next/static/chunks/webpack-1f4c176689af895b.js\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,\"1:HL[\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"style\\\"]\\n\"])</script><script>self.__next_f.push([1,\"2:I[95751,[],\\\"\\\"]\\n4:I[66513,[],\\\"ClientPageRoot\\\"]\\n5:I[94484,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"51\\\",\\\"static/chunks/795d4814-3c1aeb3c4a7db891.js\\\",\\\"452\\\",\\\"static/chunks/5e22fd23-a888f1085fc13e55.js\\\",\\\"505\\\",\\\"static/chunks/385cb88d-d4d0cd34753b4b85.js\\\",\\\"240\\\",\\\"static/chunks/53c13509-fd73beeb7afe2e31.js\\\",\\\"994\\\",\\\"static/chunks/e34aaff9-73cdc0c2aa38fff5.js\\\",\\\"614\\\",\\\"static/chunks/3d47b92a-88f28c2ab0026672.js\\\",\\\"705\\\",\\\"static/chunks/dc112a36-9245e58b51327391.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"112\\\",\\\"static/chunks/112-05ef4e14cff1a5e4.js\\\",\\\"931\\\",\\\"static/chunks/app/page-bbd1448002907ff3.js\\\"],\\\"default\\\"]\\n6:I[29635,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n7:I[61559,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n8:I[90037,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"ThemeProvider\\\"]\\n9:I[39275,[],\\\"\\\"]\\na:I[61343,[],\\\"\\\"]\\nb:I[27776,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"Toaster\\\"]\\nd:I[76130,[],\\\"\\\"]\\ne:[]\\n\"])</script><script>self.__next_f.push([1,\"0:[[[\\\"$\\\",\\\"link\\\",\\\"0\\\",{\\\"rel\\\":\\\"stylesheet\\\",\\\"href\\\":\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"precedence\\\":\\\"next\\\",\\\"crossOrigin\\\":\\\"$undefined\\\"}]],[\\\"$\\\",\\\"$L2\\\",null,{\\\"buildId\\\":\\\"Qvu3_p21LuapbgDau0_w0\\\",\\\"assetPrefix\\\":\\\"\\\",\\\"initialCanonicalUrl\\\":\\\"/\\\",\\\"initialTree\\\":[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]},\\\"$undefined\\\",\\\"$undefined\\\",true],\\\"initialSeedData\\\":[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{},[[\\\"$L3\\\",[\\\"$\\\",\\\"$L4\\\",null,{\\\"props\\\":{\\\"params\\\":{},\\\"searchParams\\\":{}},\\\"Component\\\":\\\"$5\\\"}]],null],null]},[[\\\"$\\\",\\\"html\\\",null,{\\\"lang\\\":\\\"en\\\",\\\"children\\\":[\\\"$\\\",\\\"body\\\",null,{\\\"className\\\":\\\"__className_d65c78\\\",\\\"children\\\":[\\\"$\\\",\\\"$L6\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L7\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L8\\\",null,{\\\"attribute\\\":\\\"class\\\",\\\"defaultTheme\\\":\\\"light\\\",\\\"children\\\":[[\\\"$\\\",\\\"$L9\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\"],\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$La\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"404: This page could not be found.\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"textAlign\\\":\\\"center\\\",\\\"display\\\":\\\"flex\\\",\\\"flexDirection\\\":\\\"column\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\\"}}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"next-error-h1\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\",\\\"margin\\\":\\\"0 20px 0 0\\\",\\\"padding\\\":\\\"0 23px 0 0\\\",\\\"fontSize\\\":24,\\\"fontWeight\\\":500,\\\"verticalAlign\\\":\\\"top\\\",\\\"lineHeight\\\":\\\"49px\\\"},\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\"},\\\"children\\\":[\\\"$\\\",\\\"h2\\\",null,{\\\"style\\\":{\\\"fontSize\\\":14,\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"49px\\\",\\\"margin\\\":0},\\\"children\\\":\\\"This page could not be found.\\\"}]}]]}]}]],\\\"notFoundStyles\\\":[],\\\"styles\\\":null}],[\\\"$\\\",\\\"$Lb\\\",null,{}]]}]}]}]}]}],null],null],\\\"couldBeIntercepted\\\":false,\\\"initialHead\\\":[null,\\\"$Lc\\\"],\\\"globalErrorComponent\\\":\\\"$d\\\",\\\"missingSlots\\\":\\\"$We\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"c:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"title\\\",\\\"2\\\",{\\\"children\\\":\\\"Own Sound\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"3\\\",{\\\"name\\\":\\\"description\\\",\\\"content\\\":\\\"Made with love by the Qoneqt team\\\"}],[\\\"$\\\",\\\"link\\\",\\\"4\\\",{\\\"rel\\\":\\\"icon\\\",\\\"href\\\":\\\"/favicon.ico\\\",\\\"type\\\":\\\"image/x-icon\\\",\\\"sizes\\\":\\\"32x32\\\"}]]\\n3:null\\n\"])</script></body></html>"
  },
  {
    "path": "client/out/index.txt",
    "content": "2:I[66513,[],\"ClientPageRoot\"]\n3:I[94484,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"51\",\"static/chunks/795d4814-3c1aeb3c4a7db891.js\",\"452\",\"static/chunks/5e22fd23-a888f1085fc13e55.js\",\"505\",\"static/chunks/385cb88d-d4d0cd34753b4b85.js\",\"240\",\"static/chunks/53c13509-fd73beeb7afe2e31.js\",\"994\",\"static/chunks/e34aaff9-73cdc0c2aa38fff5.js\",\"614\",\"static/chunks/3d47b92a-88f28c2ab0026672.js\",\"705\",\"static/chunks/dc112a36-9245e58b51327391.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"112\",\"static/chunks/112-05ef4e14cff1a5e4.js\",\"931\",\"static/chunks/app/page-bbd1448002907ff3.js\"],\"default\"]\n4:I[29635,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"default\"]\n5:I[61559,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"default\"]\n6:I[90037,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"ThemeProvider\"]\n7:I[39275,[],\"\"]\n8:I[61343,[],\"\"]\n9:I[27776,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"Toaster\"]\n0:[\"Qvu3_p21LuapbgDau0_w0\",[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L1\",[\"$\",\"$L2\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$3\"}]],null],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_d65c78\",\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"attribute\":\"class\",\"defaultTheme\":\"light\",\"children\":[[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}],[\"$\",\"$L9\",null,{}]]}]}]}]}]}],null],null],[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/888b2de5347592df.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[null,\"$La\"]]]]]\na:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Own Sound\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Made with love by the Qoneqt team\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"32x32\"}]]\n1:null\n"
  },
  {
    "path": "client/package.json",
    "content": "{\n  \"name\": \"hh-goa\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"next dev\",\n    \"build\": \"next build\",\n    \"start\": \"next start\",\n    \"lint\": \"next lint\"\n  },\n  \"dependencies\": {\n    \"@privy-io/react-auth\": \"^1.77.0\",\n    \"@radix-ui/react-alert-dialog\": \"^1.1.1\",\n    \"@radix-ui/react-dropdown-menu\": \"^2.1.1\",\n    \"@radix-ui/react-label\": \"^2.1.0\",\n    \"@radix-ui/react-select\": \"^2.1.1\",\n    \"@radix-ui/react-slider\": \"^1.2.0\",\n    \"@radix-ui/react-slot\": \"^1.1.0\",\n    \"@radix-ui/react-switch\": \"^1.1.0\",\n    \"@reduxjs/toolkit\": \"^2.2.7\",\n    \"axios\": \"^1.7.4\",\n    \"class-variance-authority\": \"^0.7.0\",\n    \"cloudinary\": \"^2.4.0\",\n    \"clsx\": \"^2.1.1\",\n    \"ethers\": \"^5.7.2\",\n    \"framer-motion\": \"^11.3.22\",\n    \"i\": \"^0.3.7\",\n    \"lottie-react\": \"^2.4.0\",\n    \"lucide-react\": \"^0.424.0\",\n    \"next\": \"14.2.5\",\n    \"next-themes\": \"^0.3.0\",\n    \"qs\": \"^6.13.0\",\n    \"react\": \"^18\",\n    \"react-dom\": \"^18\",\n    \"react-icons\": \"^5.2.1\",\n    \"react-redux\": \"^9.1.2\",\n    \"react-resizable-panels\": \"^2.0.22\",\n    \"redux\": \"^5.0.1\",\n    \"sonner\": \"^1.5.0\",\n    \"tailwind-merge\": \"^2.4.0\",\n    \"tailwind-scrollbar-hide\": \"^1.1.7\",\n    \"tailwindcss-animate\": \"^1.0.7\"\n  },\n  \"devDependencies\": {\n    \"eslint\": \"^8\",\n    \"eslint-config-next\": \"14.2.5\",\n    \"postcss\": \"^8\",\n    \"tailwindcss\": \"^3.4.1\"\n  }\n}\n"
  },
  {
    "path": "client/postcss.config.mjs",
    "content": "/** @type {import('postcss-load-config').Config} */\nconst config = {\n  plugins: {\n    tailwindcss: {},\n  },\n};\n\nexport default config;\n"
  },
  {
    "path": "client/src/abi/MusicX.js",
    "content": "export const MUSICXABI = [\n  {\n    inputs: [\n      { internalType: \"address\", name: \"initialOwner\", type: \"address\" },\n    ],\n    stateMutability: \"nonpayable\",\n    type: \"constructor\",\n  },\n  { inputs: [], name: \"ECDSAInvalidSignature\", type: \"error\" },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"length\", type: \"uint256\" }],\n    name: \"ECDSAInvalidSignatureLength\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"bytes32\", name: \"s\", type: \"bytes32\" }],\n    name: \"ECDSAInvalidSignatureS\",\n    type: \"error\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"spender\", type: \"address\" },\n      { internalType: \"uint256\", name: \"allowance\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"needed\", type: \"uint256\" },\n    ],\n    name: \"ERC20InsufficientAllowance\",\n    type: \"error\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"sender\", type: \"address\" },\n      { internalType: \"uint256\", name: \"balance\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"needed\", type: \"uint256\" },\n    ],\n    name: \"ERC20InsufficientBalance\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"approver\", type: \"address\" }],\n    name: \"ERC20InvalidApprover\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"receiver\", type: \"address\" }],\n    name: \"ERC20InvalidReceiver\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"sender\", type: \"address\" }],\n    name: \"ERC20InvalidSender\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"spender\", type: \"address\" }],\n    name: \"ERC20InvalidSpender\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"deadline\", type: \"uint256\" }],\n    name: \"ERC2612ExpiredSignature\",\n    type: \"error\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"signer\", type: \"address\" },\n      { internalType: \"address\", name: \"owner\", type: \"address\" },\n    ],\n    name: \"ERC2612InvalidSigner\",\n    type: \"error\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"account\", type: \"address\" },\n      { internalType: \"uint256\", name: \"currentNonce\", type: \"uint256\" },\n    ],\n    name: \"InvalidAccountNonce\",\n    type: \"error\",\n  },\n  { inputs: [], name: \"InvalidShortString\", type: \"error\" },\n  {\n    inputs: [{ internalType: \"address\", name: \"owner\", type: \"address\" }],\n    name: \"OwnableInvalidOwner\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"account\", type: \"address\" }],\n    name: \"OwnableUnauthorizedAccount\",\n    type: \"error\",\n  },\n  {\n    inputs: [{ internalType: \"string\", name: \"str\", type: \"string\" }],\n    name: \"StringTooLong\",\n    type: \"error\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"owner\",\n        type: \"address\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"spender\",\n        type: \"address\",\n      },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"value\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"Approval\",\n    type: \"event\",\n  },\n  { anonymous: false, inputs: [], name: \"EIP712DomainChanged\", type: \"event\" },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"previousOwner\",\n        type: \"address\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"newOwner\",\n        type: \"address\",\n      },\n    ],\n    name: \"OwnershipTransferred\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      { indexed: true, internalType: \"address\", name: \"from\", type: \"address\" },\n      { indexed: true, internalType: \"address\", name: \"to\", type: \"address\" },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"value\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"Transfer\",\n    type: \"event\",\n  },\n  {\n    inputs: [],\n    name: \"DOMAIN_SEPARATOR\",\n    outputs: [{ internalType: \"bytes32\", name: \"\", type: \"bytes32\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"owner\", type: \"address\" },\n      { internalType: \"address\", name: \"spender\", type: \"address\" },\n    ],\n    name: \"allowance\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"spender\", type: \"address\" },\n      { internalType: \"uint256\", name: \"value\", type: \"uint256\" },\n    ],\n    name: \"approve\",\n    outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"account\", type: \"address\" }],\n    name: \"balanceOf\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"value\", type: \"uint256\" }],\n    name: \"burn\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"account\", type: \"address\" },\n      { internalType: \"uint256\", name: \"value\", type: \"uint256\" },\n    ],\n    name: \"burnFrom\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"decimals\",\n    outputs: [{ internalType: \"uint8\", name: \"\", type: \"uint8\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"eip712Domain\",\n    outputs: [\n      { internalType: \"bytes1\", name: \"fields\", type: \"bytes1\" },\n      { internalType: \"string\", name: \"name\", type: \"string\" },\n      { internalType: \"string\", name: \"version\", type: \"string\" },\n      { internalType: \"uint256\", name: \"chainId\", type: \"uint256\" },\n      { internalType: \"address\", name: \"verifyingContract\", type: \"address\" },\n      { internalType: \"bytes32\", name: \"salt\", type: \"bytes32\" },\n      { internalType: \"uint256[]\", name: \"extensions\", type: \"uint256[]\" },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"to\", type: \"address\" },\n      { internalType: \"uint256\", name: \"amount\", type: \"uint256\" },\n    ],\n    name: \"mint\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"name\",\n    outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"owner\", type: \"address\" }],\n    name: \"nonces\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"owner\",\n    outputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"owner\", type: \"address\" },\n      { internalType: \"address\", name: \"spender\", type: \"address\" },\n      { internalType: \"uint256\", name: \"value\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"deadline\", type: \"uint256\" },\n      { internalType: \"uint8\", name: \"v\", type: \"uint8\" },\n      { internalType: \"bytes32\", name: \"r\", type: \"bytes32\" },\n      { internalType: \"bytes32\", name: \"s\", type: \"bytes32\" },\n    ],\n    name: \"permit\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"renounceOwnership\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"symbol\",\n    outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"totalSupply\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"to\", type: \"address\" },\n      { internalType: \"uint256\", name: \"value\", type: \"uint256\" },\n    ],\n    name: \"transfer\",\n    outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"from\", type: \"address\" },\n      { internalType: \"address\", name: \"to\", type: \"address\" },\n      { internalType: \"uint256\", name: \"value\", type: \"uint256\" },\n    ],\n    name: \"transferFrom\",\n    outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"newOwner\", type: \"address\" }],\n    name: \"transferOwnership\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n];\n"
  },
  {
    "path": "client/src/abi/OwnSound.js",
    "content": "export const OWNSOUNDABI = [\n  {\n    inputs: [\n      { internalType: \"address\", name: \"musicxTokenAddress\", type: \"address\" },\n      { internalType: \"address\", name: \"protocolFeeAddress\", type: \"address\" },\n    ],\n    stateMutability: \"payable\",\n    type: \"constructor\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"owner\",\n        type: \"address\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"spender\",\n        type: \"address\",\n      },\n      { indexed: true, internalType: \"uint256\", name: \"id\", type: \"uint256\" },\n    ],\n    name: \"Approval\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"owner\",\n        type: \"address\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"operator\",\n        type: \"address\",\n      },\n      { indexed: false, internalType: \"bool\", name: \"approved\", type: \"bool\" },\n    ],\n    name: \"ApprovalForAll\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"creator\",\n        type: \"address\",\n      },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"amount\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"CreatorPayoutWithdrawn\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"uint256\",\n        name: \"tokenId\",\n        type: \"uint256\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"newCreator\",\n        type: \"address\",\n      },\n    ],\n    name: \"FullRoyaltyBought\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"uint256\",\n        name: \"tokenId\",\n        type: \"uint256\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"creator\",\n        type: \"address\",\n      },\n    ],\n    name: \"NFTMinted\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"uint256\",\n        name: \"tokenId\",\n        type: \"uint256\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"buyer\",\n        type: \"address\",\n      },\n    ],\n    name: \"NFTPurchased\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"uint256\",\n        name: \"tokenId\",\n        type: \"uint256\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"renter\",\n        type: \"address\",\n      },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"duration\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"NFTRented\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"uint256\",\n        name: \"tokenId\",\n        type: \"uint256\",\n      },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"rentBaseAmount\",\n        type: \"uint256\",\n      },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"rentDuration\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"RentInfoSet\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      {\n        indexed: true,\n        internalType: \"uint256\",\n        name: \"tokenId\",\n        type: \"uint256\",\n      },\n      {\n        indexed: true,\n        internalType: \"address\",\n        name: \"creator\",\n        type: \"address\",\n      },\n      {\n        indexed: false,\n        internalType: \"uint256\",\n        name: \"amount\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"RoyaltyPaid\",\n    type: \"event\",\n  },\n  {\n    anonymous: false,\n    inputs: [\n      { indexed: true, internalType: \"address\", name: \"from\", type: \"address\" },\n      { indexed: true, internalType: \"address\", name: \"to\", type: \"address\" },\n      { indexed: true, internalType: \"uint256\", name: \"id\", type: \"uint256\" },\n    ],\n    name: \"Transfer\",\n    type: \"event\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"spender\", type: \"address\" },\n      { internalType: \"uint256\", name: \"id\", type: \"uint256\" },\n    ],\n    name: \"approve\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"owner\", type: \"address\" }],\n    name: \"balanceOf\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n      { internalType: \"bool\", name: \"_fullRoyaltyAllowed\", type: \"bool\" },\n      {\n        internalType: \"uint256\",\n        name: \"_fullRoyaltyBuyoutPrice\",\n        type: \"uint256\",\n      },\n    ],\n    name: \"buyFullRoyalty\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n    name: \"buyNFT\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      {\n        components: [\n          { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n          { internalType: \"bool\", name: \"fullRoyaltyAllowed\", type: \"bool\" },\n          {\n            internalType: \"uint256\",\n            name: \"fullRoyaltyBuyoutPrice\",\n            type: \"uint256\",\n          },\n          { internalType: \"string\", name: \"title\", type: \"string\" },\n          { internalType: \"string\", name: \"description\", type: \"string\" },\n          { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n          { internalType: \"string\", name: \"mp3FileLocationId\", type: \"string\" },\n          { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n          { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n          {\n            internalType: \"uint256\",\n            name: \"royaltyPercentage\",\n            type: \"uint256\",\n          },\n        ],\n        internalType: \"struct OwnSound.CreateNFTParams\",\n        name: \"params\",\n        type: \"tuple\",\n      },\n      { internalType: \"uint256\", name: \"randomNumber\", type: \"uint256\" },\n    ],\n    name: \"createNFT\",\n    outputs: [{ internalType: \"uint256\", name: \"newTokenId\", type: \"uint256\" }],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n    name: \"creatorPayouts\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"getAllTokensInfo\",\n    outputs: [\n      {\n        components: [\n          { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n          {\n            components: [\n              { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n              {\n                internalType: \"bool\",\n                name: \"fullRoyaltyAllowed\",\n                type: \"bool\",\n              },\n              {\n                internalType: \"uint256\",\n                name: \"fullRoyaltyBuyoutPrice\",\n                type: \"uint256\",\n              },\n              { internalType: \"string\", name: \"title\", type: \"string\" },\n              { internalType: \"string\", name: \"description\", type: \"string\" },\n              { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n              {\n                internalType: \"string\",\n                name: \"mp3FileLocationId\",\n                type: \"string\",\n              },\n              { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n              { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n              {\n                internalType: \"uint256\",\n                name: \"royaltyPercentage\",\n                type: \"uint256\",\n              },\n              { internalType: \"address\", name: \"creator\", type: \"address\" },\n              {\n                internalType: \"uint256\",\n                name: \"remainingSupply\",\n                type: \"uint256\",\n              },\n              {\n                internalType: \"uint256\",\n                name: \"randomNumber\",\n                type: \"uint256\",\n              },\n            ],\n            internalType: \"struct OwnSound.NFTMetadata\",\n            name: \"metadata\",\n            type: \"tuple\",\n          },\n          { internalType: \"address\", name: \"creator\", type: \"address\" },\n        ],\n        internalType: \"struct OwnSound.TokenInfo[]\",\n        name: \"\",\n        type: \"tuple[]\",\n      },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    name: \"getApproved\",\n    outputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n    name: \"getNFTMetadata\",\n    outputs: [\n      {\n        components: [\n          { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n          { internalType: \"bool\", name: \"fullRoyaltyAllowed\", type: \"bool\" },\n          {\n            internalType: \"uint256\",\n            name: \"fullRoyaltyBuyoutPrice\",\n            type: \"uint256\",\n          },\n          { internalType: \"string\", name: \"title\", type: \"string\" },\n          { internalType: \"string\", name: \"description\", type: \"string\" },\n          { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n          { internalType: \"string\", name: \"mp3FileLocationId\", type: \"string\" },\n          { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n          { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n          {\n            internalType: \"uint256\",\n            name: \"royaltyPercentage\",\n            type: \"uint256\",\n          },\n          { internalType: \"address\", name: \"creator\", type: \"address\" },\n          { internalType: \"uint256\", name: \"remainingSupply\", type: \"uint256\" },\n          { internalType: \"uint256\", name: \"randomNumber\", type: \"uint256\" },\n        ],\n        internalType: \"struct OwnSound.NFTMetadata\",\n        name: \"\",\n        type: \"tuple\",\n      },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"uint256\", name: \"randomNumber\", type: \"uint256\" },\n    ],\n    name: \"getNFTMetadataByRandomNumber\",\n    outputs: [\n      {\n        components: [\n          { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n          { internalType: \"bool\", name: \"fullRoyaltyAllowed\", type: \"bool\" },\n          {\n            internalType: \"uint256\",\n            name: \"fullRoyaltyBuyoutPrice\",\n            type: \"uint256\",\n          },\n          { internalType: \"string\", name: \"title\", type: \"string\" },\n          { internalType: \"string\", name: \"description\", type: \"string\" },\n          { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n          { internalType: \"string\", name: \"mp3FileLocationId\", type: \"string\" },\n          { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n          { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n          {\n            internalType: \"uint256\",\n            name: \"royaltyPercentage\",\n            type: \"uint256\",\n          },\n          { internalType: \"address\", name: \"creator\", type: \"address\" },\n          { internalType: \"uint256\", name: \"remainingSupply\", type: \"uint256\" },\n          { internalType: \"uint256\", name: \"randomNumber\", type: \"uint256\" },\n        ],\n        internalType: \"struct OwnSound.NFTMetadata\",\n        name: \"\",\n        type: \"tuple\",\n      },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n    name: \"getRentInfo\",\n    outputs: [\n      {\n        components: [\n          { internalType: \"bool\", name: \"purchased\", type: \"bool\" },\n          { internalType: \"bool\", name: \"isRenting\", type: \"bool\" },\n          { internalType: \"uint256\", name: \"rentPrice\", type: \"uint256\" },\n          { internalType: \"address\", name: \"renter\", type: \"address\" },\n          { internalType: \"uint256\", name: \"rentDuration\", type: \"uint256\" },\n          { internalType: \"uint256\", name: \"rentEndTime\", type: \"uint256\" },\n        ],\n        internalType: \"struct OwnSound.OwnershipInfo\",\n        name: \"\",\n        type: \"tuple\",\n      },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"getRentableTokens\",\n    outputs: [\n      {\n        components: [\n          { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n          {\n            components: [\n              { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n              {\n                internalType: \"bool\",\n                name: \"fullRoyaltyAllowed\",\n                type: \"bool\",\n              },\n              {\n                internalType: \"uint256\",\n                name: \"fullRoyaltyBuyoutPrice\",\n                type: \"uint256\",\n              },\n              { internalType: \"string\", name: \"title\", type: \"string\" },\n              { internalType: \"string\", name: \"description\", type: \"string\" },\n              { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n              {\n                internalType: \"string\",\n                name: \"mp3FileLocationId\",\n                type: \"string\",\n              },\n              { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n              { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n              {\n                internalType: \"uint256\",\n                name: \"royaltyPercentage\",\n                type: \"uint256\",\n              },\n              { internalType: \"address\", name: \"creator\", type: \"address\" },\n              {\n                internalType: \"uint256\",\n                name: \"remainingSupply\",\n                type: \"uint256\",\n              },\n              {\n                internalType: \"uint256\",\n                name: \"randomNumber\",\n                type: \"uint256\",\n              },\n            ],\n            internalType: \"struct OwnSound.NFTMetadata\",\n            name: \"metadata\",\n            type: \"tuple\",\n          },\n          { internalType: \"uint256\", name: \"rentBaseAmount\", type: \"uint256\" },\n          { internalType: \"uint256\", name: \"rentDuration\", type: \"uint256\" },\n          { internalType: \"address\", name: \"currentOwner\", type: \"address\" },\n          { internalType: \"bool\", name: \"isRenting\", type: \"bool\" },\n        ],\n        internalType: \"struct OwnSound.RentableTokenInfo[]\",\n        name: \"\",\n        type: \"tuple[]\",\n      },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"buyer\", type: \"address\" }],\n    name: \"getWalletPurchasedNFTs\",\n    outputs: [{ internalType: \"uint256[]\", name: \"\", type: \"uint256[]\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"address\", name: \"_wallet\", type: \"address\" }],\n    name: \"getWalletTokensWithMetadata\",\n    outputs: [\n      {\n        components: [\n          { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n          {\n            components: [\n              { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n              {\n                internalType: \"bool\",\n                name: \"fullRoyaltyAllowed\",\n                type: \"bool\",\n              },\n              {\n                internalType: \"uint256\",\n                name: \"fullRoyaltyBuyoutPrice\",\n                type: \"uint256\",\n              },\n              { internalType: \"string\", name: \"title\", type: \"string\" },\n              { internalType: \"string\", name: \"description\", type: \"string\" },\n              { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n              {\n                internalType: \"string\",\n                name: \"mp3FileLocationId\",\n                type: \"string\",\n              },\n              { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n              { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n              {\n                internalType: \"uint256\",\n                name: \"royaltyPercentage\",\n                type: \"uint256\",\n              },\n              { internalType: \"address\", name: \"creator\", type: \"address\" },\n              {\n                internalType: \"uint256\",\n                name: \"remainingSupply\",\n                type: \"uint256\",\n              },\n              {\n                internalType: \"uint256\",\n                name: \"randomNumber\",\n                type: \"uint256\",\n              },\n            ],\n            internalType: \"struct OwnSound.NFTMetadata\",\n            name: \"metadata\",\n            type: \"tuple\",\n          },\n          {\n            components: [\n              { internalType: \"bool\", name: \"purchased\", type: \"bool\" },\n              { internalType: \"bool\", name: \"isRenting\", type: \"bool\" },\n              { internalType: \"uint256\", name: \"rentPrice\", type: \"uint256\" },\n              { internalType: \"address\", name: \"renter\", type: \"address\" },\n              {\n                internalType: \"uint256\",\n                name: \"rentDuration\",\n                type: \"uint256\",\n              },\n              { internalType: \"uint256\", name: \"rentEndTime\", type: \"uint256\" },\n            ],\n            internalType: \"struct OwnSound.OwnershipInfo\",\n            name: \"ownershipInfo\",\n            type: \"tuple\",\n          },\n        ],\n        internalType: \"struct OwnSound.WalletTokenInfo[]\",\n        name: \"\",\n        type: \"tuple[]\",\n      },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"\", type: \"address\" },\n      { internalType: \"address\", name: \"\", type: \"address\" },\n    ],\n    name: \"isApprovedForAll\",\n    outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"name\",\n    outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    name: \"nftMetadata\",\n    outputs: [\n      { internalType: \"uint256\", name: \"basePrice\", type: \"uint256\" },\n      { internalType: \"bool\", name: \"fullRoyaltyAllowed\", type: \"bool\" },\n      {\n        internalType: \"uint256\",\n        name: \"fullRoyaltyBuyoutPrice\",\n        type: \"uint256\",\n      },\n      { internalType: \"string\", name: \"title\", type: \"string\" },\n      { internalType: \"string\", name: \"description\", type: \"string\" },\n      { internalType: \"string\", name: \"coverImage\", type: \"string\" },\n      { internalType: \"string\", name: \"mp3FileLocationId\", type: \"string\" },\n      { internalType: \"bool\", name: \"isRentingAllowed\", type: \"bool\" },\n      { internalType: \"uint256\", name: \"supply\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"royaltyPercentage\", type: \"uint256\" },\n      { internalType: \"address\", name: \"creator\", type: \"address\" },\n      { internalType: \"uint256\", name: \"remainingSupply\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"randomNumber\", type: \"uint256\" },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"id\", type: \"uint256\" }],\n    name: \"ownerOf\",\n    outputs: [{ internalType: \"address\", name: \"owner\", type: \"address\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"uint256\", name: \"\", type: \"uint256\" },\n      { internalType: \"address\", name: \"\", type: \"address\" },\n    ],\n    name: \"ownershipInfo\",\n    outputs: [\n      { internalType: \"bool\", name: \"purchased\", type: \"bool\" },\n      { internalType: \"bool\", name: \"isRenting\", type: \"bool\" },\n      { internalType: \"uint256\", name: \"rentPrice\", type: \"uint256\" },\n      { internalType: \"address\", name: \"renter\", type: \"address\" },\n      { internalType: \"uint256\", name: \"rentDuration\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"rentEndTime\", type: \"uint256\" },\n    ],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    name: \"randomNumberToTokenId\",\n    outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n    name: \"rentNFT\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"from\", type: \"address\" },\n      { internalType: \"address\", name: \"to\", type: \"address\" },\n      { internalType: \"uint256\", name: \"id\", type: \"uint256\" },\n    ],\n    name: \"safeTransferFrom\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"from\", type: \"address\" },\n      { internalType: \"address\", name: \"to\", type: \"address\" },\n      { internalType: \"uint256\", name: \"id\", type: \"uint256\" },\n      { internalType: \"bytes\", name: \"data\", type: \"bytes\" },\n    ],\n    name: \"safeTransferFrom\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"operator\", type: \"address\" },\n      { internalType: \"bool\", name: \"approved\", type: \"bool\" },\n    ],\n    name: \"setApprovalForAll\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"rentPrice\", type: \"uint256\" },\n      { internalType: \"uint256\", name: \"rentDuration\", type: \"uint256\" },\n    ],\n    name: \"setRentInfo\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"bytes4\", name: \"interfaceId\", type: \"bytes4\" }],\n    name: \"supportsInterface\",\n    outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"symbol\",\n    outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [{ internalType: \"uint256\", name: \"id\", type: \"uint256\" }],\n    name: \"tokenURI\",\n    outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n    stateMutability: \"view\",\n    type: \"function\",\n  },\n  {\n    inputs: [\n      { internalType: \"address\", name: \"from\", type: \"address\" },\n      { internalType: \"address\", name: \"to\", type: \"address\" },\n      { internalType: \"uint256\", name: \"id\", type: \"uint256\" },\n    ],\n    name: \"transferFrom\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n  {\n    inputs: [],\n    name: \"withdrawCreatorPayout\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n];\n"
  },
  {
    "path": "client/src/animations/no.json",
    "content": "{\"nm\":\"Comp 1\",\"mn\":\"\",\"layers\":[{\"ty\":3,\"nm\":\"Null 1\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":1,\"k\":[{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[250,245,0],\"t\":0,\"ti\":[0,0,0],\"to\":[0,1.667,0]},{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[250,255,0],\"t\":60,\"ti\":[0,1.667,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.167,\"y\":0.167},\"i\":{\"x\":0.833,\"y\":0.833},\"s\":[250,245,0],\"t\":120}],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":0,\"ix\":11}},\"ef\":[],\"ind\":1},{\"ty\":4,\"nm\":\"face\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[250,250,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":1,\"k\":[{\"o\":{\"x\":0.748,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[0,0,0],\"t\":30,\"ti\":[0,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.178,\"y\":0},\"i\":{\"x\":0.352,\"y\":1},\"s\":[8,0,0],\"t\":45,\"ti\":[0,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.077,\"y\":0},\"i\":{\"x\":0.491,\"y\":1},\"s\":[-8,0,0],\"t\":60,\"ti\":[-1.333,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.491,\"y\":1},\"s\":[3,0,0],\"t\":73,\"ti\":[0.5,0,0],\"to\":[1.333,0,0]},{\"o\":{\"x\":0.167,\"y\":0.167},\"i\":{\"x\":0.833,\"y\":0.833},\"s\":[0,0,0],\"t\":84}],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":100,\"ix\":11}},\"ef\":[],\"shapes\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":1,\"it\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0.964,0],[0.926,1.269],[-2.109,1.537],[-12.421,0],[-9.638,-6.507],[1.46,-2.163],[2.164,1.463],[9.78,0],[8.382,-6.108]],\"o\":[[-1.46,0],[-1.537,-2.109],[10.009,-7.294],[11.67,0],[2.163,1.46],[-1.458,2.163],[-8.071,-5.448],[-10.408,0],[-0.84,0.612]],\"v\":[[-30.712,9.847],[-34.536,7.904],[-33.499,1.302],[0.788,-9.847],[33.361,0.099],[34.633,6.66],[28.073,7.932],[0.788,-0.396],[-27.934,8.941]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[250,273.902],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 2\",\"ix\":2,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,-5.22],[5.22,0],[0,5.22],[-5.22,0]],\"o\":[[0,5.22],[-5.22,0],[0,-5.22],[5.22,0]],\"v\":[[9.451,0],[0,9.451],[-9.451,0],[0,-9.451]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[212.197,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 2\",\"ix\":2,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,-5.22],[5.22,0],[0,5.22],[-5.22,0]],\"o\":[[0,5.22],[-5.22,0],[0,-5.22],[5.22,0]],\"v\":[[9.451,0],[0,9.451],[-9.451,0],[0,-9.451]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]}],\"ind\":2,\"parent\":1},{\"ty\":4,\"nm\":\"magnification glass\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":0,\"k\":[27,24,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":100,\"ix\":11}},\"ef\":[],\"shapes\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":3,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[14.17,-15.84],[0.87,-0.89],[25.14,0],[0,49.35],[-49.35,0],[0,-49.35]],\"o\":[[-0.82,0.93],[-16.27,16.75],[-49.35,0],[0,-49.35],[49.35,0],[0,22.88]],\"v\":[[39.949,35.36],[37.419,38.08],[-26.751,65.25],[-116.251,-24.25],[-26.751,-113.75],[62.749,-24.25]]},\"ix\":2}},{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 2\",\"ix\":2,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,0],[0,25.41],[60.93,0],[0,-60.93],[-60.93,0],[-19.48,17.2]],\"o\":[[14.48,-18.69],[0,-60.93],[-60.93,0],[0,60.93],[27.96,0],[0,0]],\"v\":[[60.639,43.3],[83.749,-24.25],[-26.751,-134.75],[-137.251,-24.25],[-26.751,86.25],[46.269,58.61]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]}],\"ind\":3,\"parent\":1}],\"ddd\":0,\"h\":500,\"w\":500,\"meta\":{\"a\":\"\",\"k\":\"\",\"d\":\"\",\"g\":\"LottieFiles AE 3.2.2\",\"tc\":\"#000000\"},\"v\":\"4.8.0\",\"fr\":60,\"op\":121,\"ip\":0,\"assets\":[]}"
  },
  {
    "path": "client/src/app/globals.css",
    "content": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n  :root {\n    --background: 0 0% 100%;\n    --foreground: 224 71.4% 4.1%;\n    --card: 0 0% 100%;\n    --card-foreground: 224 71.4% 4.1%;\n    --popover: 0 0% 100%;\n    --popover-foreground: 224 71.4% 4.1%;\n    --primary: 262.1 83.3% 57.8%;\n    --primary-foreground: 210 20% 98%;\n    --secondary: 220 14.3% 95.9%;\n    --secondary-foreground: 220.9 39.3% 11%;\n    --muted: 220 14.3% 95.9%;\n    --muted-foreground: 220 8.9% 46.1%;\n    --accent: 220 14.3% 95.9%;\n    --accent-foreground: 220.9 39.3% 11%;\n    --destructive: 0 84.2% 60.2%;\n    --destructive-foreground: 210 20% 98%;\n    --border: 220 13% 91%;\n    --input: 220 13% 91%;\n    --ring: 262.1 83.3% 57.8%;\n    --radius: 0.75rem;\n    --chart-1: 12 76% 61%;\n    --chart-2: 173 58% 39%;\n    --chart-3: 197 37% 24%;\n    --chart-4: 43 74% 66%;\n    --chart-5: 27 87% 67%;\n  }\n\n  .dark {\n    --background: 224 71.4% 4.1%;\n    --foreground: 210 20% 98%;\n    --card: 224 71.4% 4.1%;\n    --card-foreground: 210 20% 98%;\n    --popover: 224 71.4% 4.1%;\n    --popover-foreground: 210 20% 98%;\n    --primary: 263.4 70% 50.4%;\n    --primary-foreground: 210 20% 98%;\n    --secondary: 215 27.9% 16.9%;\n    --secondary-foreground: 210 20% 98%;\n    --muted: 215 27.9% 16.9%;\n    --muted-foreground: 217.9 10.6% 64.9%;\n    --accent: 215 27.9% 16.9%;\n    --accent-foreground: 210 20% 98%;\n    --destructive: 0 62.8% 30.6%;\n    --destructive-foreground: 210 20% 98%;\n    --border: 215 27.9% 16.9%;\n    --input: 215 27.9% 16.9%;\n    --ring: 263.4 70% 50.4%;\n    --chart-1: 220 70% 50%;\n    --chart-2: 160 60% 45%;\n    --chart-3: 30 80% 55%;\n    --chart-4: 280 65% 60%;\n    --chart-5: 340 75% 55%;\n  }\n}\n\n@layer base {\n  * {\n    @apply border-border;\n  }\n  body {\n    @apply bg-background text-foreground;\n  }\n}\n"
  },
  {
    "path": "client/src/app/layout.js",
    "content": "import { Inter } from \"next/font/google\";\nimport \"./globals.css\";\nimport { ThemeProvider } from \"@/theme/theme-provider\";\nimport PrivyWrapper from \"@/privy/privyProvider\";\nimport { Toaster } from \"sonner\";\nimport ReduxProvider from \"@/redux/redux-provider\";\n\nconst inter = Inter({ subsets: [\"latin\"] });\n\nexport const metadata = {\n  title: \"Own Sound\",\n  description: \"Made with love by the Qoneqt team\",\n};\n\nexport default function RootLayout({ children }) {\n  return (\n    <html lang=\"en\">\n      <body className={inter.className}>\n        <PrivyWrapper>\n          <ReduxProvider>\n            <ThemeProvider attribute=\"class\" defaultTheme=\"light\">\n              {children}\n              <Toaster />\n            </ThemeProvider>\n          </ReduxProvider>\n        </PrivyWrapper>\n      </body>\n    </html>\n  );\n}\n"
  },
  {
    "path": "client/src/app/page.js",
    "content": "\"use client\";\nimport BottomAudioPlayer from \"@/components/bottom-audio-player\";\nimport Loader from \"@/components/loader\";\nimport { ResizableComponent } from \"@/components/resizable\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport React, { useState } from \"react\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { AnimatePresence, motion } from \"framer-motion\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\n\nconst Page = () => {\n  const musicPlayer = useSelector((state) => state.musicPlayer);\n  const [selectedLayout, setSelectedLayout] = useState(\"home\");\n  const [selectedMode, setSelectedMode] = useState(\"songs\");\n  const { ready, authenticated, login } = usePrivy();\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n  if (!ready)\n    return (\n      <div className=\"w-full grid items-center justify-center min-h-screen\">\n        <Loader />\n      </div>\n    );\n\n  if (!authenticated)\n    return (\n      <div className=\"relative flex min-h-screen flex-col items-center justify-center p-3.5\">\n        <main className=\"flex flex-col items-center gap-y-9\">\n          <div className=\"max-w-lg space-y-3.5 text-center\">\n            <h1 className=\"text-5xl font-semibold tracking-tight md:text-7xl\">\n              OwnSound\n            </h1>\n            <p className=\"md:text-balance text-muted-foreground md:text-xl\">\n              Encrypted Melodies Unlimited Possibilities. Leveraging MusicX,\n              Polygon, Inco & The Graph.\n            </p>\n          </div>\n          <div className=\"flex items-center gap-3.5\">\n            <Button onClick={login}>Connect Wallet</Button>\n          </div>\n        </main>\n\n        <footer className=\"absolute bottom-3.5 mx-auto flex items-center gap-[0.5ch] text-center text-muted-foreground\">\n          <span>Powered by</span>\n          <Link\n            href=\"https://github.com/geeeeeeeek/oneNFS\"\n            target=\"_blank\"\n            className=\"group flex items-center text-primary font-semibold gap-[0.5ch] underline-offset-4 hover:underline\"\n          >\n            oneNFS.\n          </Link>\n        </footer>\n      </div>\n    );\n  return (\n    <div className=\"h-screen\">\n      <ResizableComponent\n        w0={w0}\n        musicPlayer={musicPlayer}\n        selectedMode={selectedMode}\n        setSelectedMode={setSelectedMode}\n        selectedLayout={selectedLayout}\n        setSelectedLayout={setSelectedLayout}\n      />\n      <motion.div\n        initial={{ y: 100, opacity: 0 }}\n        animate={{ y: 0, opacity: 1 }}\n        exit={{ y: 100, opacity: 0 }}\n        transition={{ type: \"spring\", stiffness: 300, damping: 30 }}\n        className=\"fixed w-full bottom-0 border-t p-4 bg-background backdrop-blur-xl grid grid-cols-3\"\n      >\n        <AnimatePresence>\n          <motion.div\n            initial={{ opacity: 0, x: -20 }}\n            animate={{ opacity: 1, x: 0 }}\n            exit={{ opacity: 0, x: -20 }}\n            transition={{ duration: 0.3 }}\n            className=\"flex gap-3 items-center z-50\"\n          >\n            <motion.img\n              src={musicPlayer.coverImage || \"/nft.avif\"}\n              alt=\"cover\"\n              className=\"w-12 h-12 rounded-md\"\n              whileHover={{ scale: 1.1 }}\n              whileTap={{ scale: 0.9 }}\n            />\n            <div>\n              <motion.p\n                initial={{ opacity: 0 }}\n                animate={{ opacity: 1 }}\n                transition={{ delay: 0.2 }}\n                className=\"font-semibold\"\n              >\n                {musicPlayer.title || \"Yo! Click on music to play\"}\n              </motion.p>\n              <motion.p\n                initial={{ opacity: 0 }}\n                animate={{ opacity: 1 }}\n                transition={{ delay: 0.3 }}\n                className=\"text-sm\"\n              >\n                {musicPlayer.artist || \"Follow Qoneqt on instagram\"}\n              </motion.p>\n            </div>\n          </motion.div>\n        </AnimatePresence>\n        <motion.div\n          initial={{ opacity: 0, scale: 0.9 }}\n          animate={{ opacity: 1, scale: 1 }}\n          transition={{ delay: 0.1 }}\n          className=\"w-[36rem] h-full\"\n        >\n          <div>\n            <BottomAudioPlayer\n              url={musicPlayer.uri}\n              musicPlayer={musicPlayer}\n            />\n          </div>\n        </motion.div>\n        <div></div>\n      </motion.div>\n    </div>\n  );\n};\n\nexport default Page;\n"
  },
  {
    "path": "client/src/components/bottom-audio-player.js",
    "content": "import { PauseIcon, PlayIcon } from \"lucide-react\";\nimport { GiNextButton } from \"react-icons/gi\";\nimport { GiPreviousButton } from \"react-icons/gi\";\nimport { FaShuffle } from \"react-icons/fa6\";\nimport { FaRepeat } from \"react-icons/fa6\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { audioTracks } from \"@/utils/dummy\";\n\nexport default function BottomAudioPlayer({ url }) {\n  const audioRef = useRef(null);\n  const [playing, setPlaying] = useState(false);\n  const [currentTime, setCurrentTime] = useState(0);\n  const [duration, setDuration] = useState(0);\n\n  useEffect(() => {\n    if (url) {\n      const audio = audioRef.current;\n      setCurrentTime(0);\n      setPlaying(false);\n      audioRef.current.play();\n      setPlaying(true);\n\n      const handleLoadedMetadata = () => {\n        setDuration(audio.duration);\n      };\n\n      const handleTimeUpdate = () => {\n        setCurrentTime(audio.currentTime);\n      };\n\n      const handleEnded = () => {\n        setPlaying(false);\n        setCurrentTime(0);\n        //handleNext(\"next\");\n      };\n\n      if (audio) {\n        audio.addEventListener(\"loadedmetadata\", handleLoadedMetadata);\n        audio.addEventListener(\"timeupdate\", handleTimeUpdate);\n        audio.addEventListener(\"ended\", handleEnded);\n      }\n\n      return () => {\n        if (audio) {\n          audio.removeEventListener(\"loadedmetadata\", handleLoadedMetadata);\n          audio.removeEventListener(\"timeupdate\", handleTimeUpdate);\n          audio.removeEventListener(\"ended\", handleEnded);\n        }\n      };\n    }\n  }, [url]);\n\n  // const handleNext = (type) => {\n  //   let nextIndex = musicPlayer.index;\n  //   if (type === \"next\") nextIndex = nextIndex + 1;\n  //   else nextIndex = nextIndex - 1;\n\n  //   if (nextIndex < 0) nextIndex = audioTracks.length - 1;\n  //   if (nextIndex >= audioTracks.length) nextIndex = 0;\n\n  //   setMusicPlayer({ ...musicPlayer, index: nextIndex });\n  //   setCurrentTime(0);\n  //   setPlaying(false);\n\n  //   setTimeout(() => {\n  //     audioRef.current.play();\n  //     setPlaying(true);\n  //   }, 50);\n  // };\n  const handlePlayPause = () => {\n    const audio = audioRef.current;\n    if (playing) {\n      audio.pause();\n    } else {\n      audio.play();\n    }\n    setPlaying(!playing);\n  };\n\n  const handleSeek = (event) => {\n    const audio = audioRef.current;\n    const seekTime = (event.target.value / 100) * duration;\n    audio.currentTime = seekTime;\n  };\n\n  const formatTime = (time) => {\n    if (isNaN(time)) {\n      return \"00:00\";\n    }\n    const minutes = Math.floor(time / 60);\n    const seconds = Math.floor(time % 60);\n    return `${minutes}:${seconds < 10 ? \"0\" + seconds : seconds}`;\n  };\n  console.log(url);\n\n  return (\n    <div className=\"px-4 py-2 w-full flex items-center justify-between gap-3\">\n      <audio key={url} ref={audioRef} src={url} />\n\n      <div className=\"controls flex items-center gap-2\">\n        <button\n          onClick={handlePlayPause}\n          className=\"bg-primary text-white rounded-full p-1.5 flex items-center justify-center\"\n        >\n          {!playing ? (\n            <PlayIcon className=\"w-3 h-3\" />\n          ) : (\n            <PauseIcon className=\"w-3 h-3\" />\n          )}\n        </button>\n      </div>\n\n      <div className=\"flex-1 flex items-center gap-2\">\n        <span className=\"text-sm\">{formatTime(currentTime)}</span>\n        <input\n          type=\"range\"\n          min=\"0\"\n          max=\"100\"\n          value={(currentTime / duration) * 100 || 0}\n          onChange={handleSeek}\n          className=\"flex-1 range accent-primary\"\n        />\n        <span className=\"text-sm\">{formatTime(duration)}</span>\n      </div>\n\n      <div className=\"flex items-center gap-2\">\n        <FaShuffle\n          // onClick={() => handleNext(\"shuffle\")}\n          className=\"cursor-pointer\"\n        />\n        <GiPreviousButton\n          // onClick={() => handleNext(\"previous\")}\n          className=\"cursor-pointer\"\n        />\n        <GiNextButton\n          // onClick={() => handleNext(\"next\")}\n          className=\"cursor-pointer\"\n        />\n        <FaRepeat\n          // onClick={() => handleNext(\"repeat\")}\n          className=\"cursor-pointer\"\n        />\n      </div>\n    </div>\n  );\n}\n"
  },
  {
    "path": "client/src/components/contact-abhi.js",
    "content": "import {\n    AlertDialog,\n    AlertDialogAction,\n    AlertDialogCancel,\n    AlertDialogContent,\n    AlertDialogDescription,\n    AlertDialogFooter,\n    AlertDialogHeader,\n    AlertDialogTitle,\n    AlertDialogTrigger,\n  } from \"@/components/ui/alert-dialog\"\n  import { Button } from \"@/components/ui/button\"\n  \n  export function ContactAbhi() {\n    return (\n      <AlertDialog>\n        <AlertDialogTrigger asChild>\n          <Button variant=\"outline\" className=\"dark:text-white\">Need MCX ?</Button>\n        </AlertDialogTrigger>\n        <AlertDialogContent>\n          <AlertDialogHeader>\n            <AlertDialogTitle>Need some MusicX(MCX) Token?</AlertDialogTitle>\n            <AlertDialogDescription className=\"dark:text-white text-black\">\n            Follow @0xabhii and DM your Polygon Amoy Wallet Address to receive 20 MusicX tokens!\n            </AlertDialogDescription>\n          </AlertDialogHeader>\n          <AlertDialogFooter>\n            <AlertDialogCancel>Cancel</AlertDialogCancel>\n            <AlertDialogAction onClick={() => window.open(\"https://x.com/0xabhii\", \"_blank\")}>Continue </AlertDialogAction>\n          </AlertDialogFooter>\n        </AlertDialogContent>\n      </AlertDialog>\n    )\n  }\n  "
  },
  {
    "path": "client/src/components/explore/explore.js",
    "content": "import { ArrowLeftIcon } from \"lucide-react\";\nimport React, { useEffect, useState } from \"react\";\nimport { playlists } from \"@/utils/dummy\";\nimport HorizontalScroll from \"../horizontal-scroll\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport { Input } from \"../ui/input\";\nimport TrackItem from \"./track-item\";\nimport PlaylistItem from \"./playlistItem\";\nimport { motion } from \"framer-motion\";\nimport { Contract } from \"ethers\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport { usePrivy } from \"@privy-io/react-auth\";\nimport Loader from \"../loader\";\n\nconst Explore = ({ setSelectedLayout, w0 }) => {\n  const { authenticated, ready } = usePrivy();\n  const [searchQuery, setSearchQuery] = useState(\"\");\n  const [audioTracks, setAudioTracks] = useState([]);\n  const [isLoadingTracks, setIsLoadingTracks] = useState(true);\n  const [isLoadingPlaylists, setIsLoadingPlaylists] = useState(true);\n\n  const handleSearchChange = (event) => {\n    setSearchQuery(event.target.value);\n  };\n\n  const getAllMusics = async () => {\n    try {\n      setIsLoadingTracks(true);\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const res = await contract.getAllTokensInfo();\n      const formattedTracks = res\n        .map((track) => {\n          return {\n            id: track[0].toNumber(),\n            title: track[1][3],\n            artist: track[1][4],\n            cover: track[1][5],\n            price: track[1][0].toNumber(),\n            owner: track[2],\n          };\n        })\n        .reverse();\n      setAudioTracks(formattedTracks);\n    } catch (error) {\n      console.log(error);\n    } finally {\n      setIsLoadingTracks(false);\n    }\n  };\n\n  const getPlaylists = async () => {\n    // Simulating playlist fetch with a timeout\n    setIsLoadingPlaylists(true);\n    setTimeout(() => {\n      // Here you would typically fetch playlists from an API\n      // For now, we're using the dummy data\n      setIsLoadingPlaylists(false);\n    }, 1000);\n  };\n\n  useEffect(() => {\n    if (ready && authenticated && w0?.address !== undefined) {\n      getAllMusics();\n      getPlaylists();\n    }\n  }, [w0, ready, authenticated]);\n\n  const filterItems = (items, query) => {\n    return items.filter((item) => {\n      const title = item.title || \"\";\n      const artist = item.artist || \"\";\n      return (\n        title.toLowerCase().includes(query.toLowerCase()) ||\n        artist.toLowerCase().includes(query.toLowerCase())\n      );\n    });\n  };\n\n  const filteredTracks = filterItems(audioTracks, searchQuery);\n  const filteredPlaylists = filterItems(playlists, searchQuery);\n\n  // Animation variants\n  const containerVariants = {\n    hidden: { opacity: 0 },\n    visible: {\n      opacity: 1,\n      transition: {\n        staggerChildren: 0.1,\n      },\n    },\n  };\n\n  const itemVariants = {\n    hidden: { y: 20, opacity: 0 },\n    visible: {\n      y: 0,\n      opacity: 1,\n    },\n  };\n\n  return (\n    <motion.div\n      className=\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide mt-2\"\n      initial=\"hidden\"\n      animate=\"visible\"\n      variants={containerVariants}\n    >\n      <motion.div\n        className=\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 sticky top-0 z-[50] bg-background w-full flex items-center justify-between\"\n        variants={itemVariants}\n      >\n        Explore\n        <motion.div\n          className=\"w-auto p-1\"\n          whileHover={{ scale: 1.05 }}\n          whileTap={{ scale: 0.95 }}\n        >\n          <Input\n            type=\"text\"\n            placeholder=\"Search...\"\n            value={searchQuery}\n            onChange={handleSearchChange}\n          />\n        </motion.div>\n      </motion.div>\n\n      <motion.div variants={itemVariants}>\n        {isLoadingTracks ? (\n          <div className=\"text-center h-32 grid place-items-center\">\n            <Loader />\n          </div>\n        ) : filteredTracks.length > 0 ? (\n          <HorizontalScroll\n            items={filteredTracks}\n            renderItem={(track) => (\n              <TrackItem track={track} setSelectedLayout={setSelectedLayout} />\n            )}\n            containerId={`scrollContainer-${uuidv4()}`}\n          />\n        ) : (\n          <div className=\"text-center\">No tracks found</div>\n        )}\n      </motion.div>\n\n      <motion.div variants={itemVariants}>\n        <motion.div\n          className=\"scroll-m-20 mb-5 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\"\n          variants={itemVariants}\n        >\n          Popular Playlists\n        </motion.div>\n        {isLoadingPlaylists ? (\n          <div className=\"text-center h-32 grid place-items-center\">\n            <Loader />\n          </div>\n        ) : filteredPlaylists.length > 0 ? (\n          <HorizontalScroll\n            items={filteredPlaylists}\n            renderItem={(playlist) => (\n              <PlaylistItem\n                playlist={playlist}\n                setSelectedLayout={setSelectedLayout}\n              />\n            )}\n            containerId={`scrollContainer-${uuidv4()}`}\n          />\n        ) : (\n          <div className=\"text-center\">No playlists found</div>\n        )}\n      </motion.div>\n    </motion.div>\n  );\n};\n\nexport default Explore;\n"
  },
  {
    "path": "client/src/components/explore/playlistItem.js",
    "content": "import React from \"react\";\n\nconst PlaylistItem = ({ playlist }) => (\n  <>\n    <div className=\"w-36 h-36\">\n      <img\n        src={playlist.image}\n        className=\"aspect-square rounded-md w-full h-full object-cover\"\n        alt={playlist.name}\n      />\n    </div>\n    <div>\n      <p\n        className=\"w-full text-center truncate max-w-xs mx-auto\"\n        title={playlist.name}\n      >\n        {playlist.name}\n      </p>\n      <p className=\"text-sm text-center text-muted-foreground\">\n        {playlist.tracks.length} songs\n      </p>\n    </div>\n  </>\n);\n\nexport default PlaylistItem;\n"
  },
  {
    "path": "client/src/components/explore/track-item.js",
    "content": "import React from \"react\";\n\nconst TrackItem = ({ track, setSelectedLayout }) => (\n  <div\n    className=\"p-3 hover:bg-muted rounded-lg cursor-pointer\"\n    onClick={() => setSelectedLayout(`view-song/${track.id}`)}\n  >\n    <div className=\"w-36 h-36\">\n      <img\n        src={track.cover}\n        className=\"aspect-square rounded-md w-full h-full object-cover\"\n        alt={track.title}\n      />\n    </div>\n    <div>\n      <p\n        className=\"w-full text-center truncate max-w-xs mx-auto\"\n        title={track.title}\n      >\n        {track.title}\n      </p>\n      <p className=\"text-sm text-center text-muted-foreground\">\n        {track.artist}\n      </p>\n    </div>\n  </div>\n);\n\nexport default TrackItem;\n"
  },
  {
    "path": "client/src/components/home-page.js",
    "content": "import React, { useState, useEffect } from \"react\";\nimport { motion, useMotionValue, useTransform } from \"framer-motion\";\n\nconst HomePage = () => {\n  const [homeImage, setHomeImage] = useState(\n    \"https://images.tv9hindi.com/wp-content/uploads/2024/08/chin-tapak-dum-dum-1.png\"\n  );\n  const [imageAspectRatio, setImageAspectRatio] = useState(16 / 9);\n\n  const x = useMotionValue(0);\n  const y = useMotionValue(0);\n\n  const rotateX = useTransform(y, [-500, 500], [5, -5]);\n  const rotateY = useTransform(x, [-500, 500], [-5, 5]);\n\n  useEffect(() => {\n    if (typeof window !== \"undefined\") {\n      const img = new window.Image();\n      img.onload = () => {\n        setImageAspectRatio(img.width / img.height);\n      };\n      img.src = homeImage;\n    }\n  }, [homeImage]);\n\n  function handleMouse(event) {\n    const rect = event.currentTarget.getBoundingClientRect();\n    x.set(event.clientX - rect.left - rect.width / 2);\n    y.set(event.clientY - rect.top - rect.height / 2);\n  }\n\n  return (\n    <div\n      className=\"w-full h-screen px-10 flex items-center justify-center overflow-hidden -mt-20\"\n      onMouseMove={handleMouse}\n    >\n      <motion.div\n        className=\"w-full h-full flex flex-col items-center justify-center\"\n        style={{ rotateX, rotateY, perspective: 1000 }}\n        initial={{ opacity: 0, scale: 1.1 }}\n        animate={{ opacity: 1, scale: 1 }}\n        transition={{ duration: 1.5 }}\n      >\n        <motion.div\n          className=\"relative\"\n          whileHover={{ scale: 1.05 }}\n          transition={{ type: \"spring\", stiffness: 300, damping: 20 }}\n        >\n          <motion.div\n            className=\"absolute inset-0 bg-purple-500 rounded-full opacity-30 blur-xl\"\n            animate={{\n              scale: [1, 1.2, 1],\n              rotate: [0, 180, 360],\n            }}\n            transition={{\n              duration: 10,\n              repeat: Infinity,\n              ease: \"linear\",\n            }}\n          />\n          <div\n            style={{\n              width: `min(80vw, ${imageAspectRatio * 60}vh)`,\n              height: `min(${80 / imageAspectRatio}vw, 60vh)`,\n              position: \"relative\",\n            }}\n          >\n            <img\n              src={homeImage}\n              alt=\"Home Page Image\"\n              style={{\n                width: \"100%\",\n                height: \"100%\",\n                objectFit: \"cover\",\n              }}\n              className=\"rounded-full shadow-2xl z-10 relative\"\n            />\n          </div>\n          <motion.div\n            className=\"absolute inset-0 rounded-full\"\n            style={{\n              background:\n                \"linear-gradient(45deg, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%)\",\n              zIndex: 20,\n            }}\n            animate={{\n              rotate: 360,\n            }}\n            transition={{\n              duration: 20,\n              repeat: Infinity,\n              ease: \"linear\",\n            }}\n          />\n        </motion.div>\n\n        <motion.h1\n          className=\"mt-8 text-4xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-600\"\n          initial={{ opacity: 0, y: 20 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{ delay: 0.5, duration: 0.8 }}\n        ></motion.h1>\n      </motion.div>\n    </div>\n  );\n};\n\nexport default HomePage;\n"
  },
  {
    "path": "client/src/components/horizontal-scroll.js",
    "content": "import { ArrowLeftIcon } from \"lucide-react\";\nimport React, { useRef, useState, useEffect } from \"react\";\n\nconst HorizontalScroll = ({ items, renderItem, containerId }) => {\n  const scrollContainerRef = useRef(null);\n  const [showLeftButton, setShowLeftButton] = useState(false);\n  const [showRightButton, setShowRightButton] = useState(false);\n  useEffect(() => {\n    const handleScroll = () => {\n      if (scrollContainerRef.current) {\n        const { scrollLeft, scrollWidth, clientWidth } =\n          scrollContainerRef.current;\n        setShowLeftButton(scrollLeft > 0);\n        setShowRightButton(scrollLeft + clientWidth < scrollWidth);\n      }\n    };\n\n    handleScroll(); // Initial check\n\n    if (scrollContainerRef.current) {\n      scrollContainerRef.current.addEventListener(\"scroll\", handleScroll);\n    }\n    window.addEventListener(\"resize\", handleScroll);\n\n    return () => {\n      if (scrollContainerRef.current) {\n        scrollContainerRef.current.removeEventListener(\"scroll\", handleScroll);\n      }\n      window.removeEventListener(\"resize\", handleScroll);\n    };\n  }, []);\n\n  return (\n    <div className=\"relative\">\n      {showLeftButton && (\n        <button\n          className=\"absolute left-0 top-20 transform bg-primary rounded-full z-10 text-white w-6 h-6 flex items-center justify-center drop-shadow-md\"\n          onClick={() => {\n            scrollContainerRef.current.scrollBy({\n              left: -200,\n              behavior: \"smooth\",\n            });\n          }}\n        >\n          <ArrowLeftIcon className=\"w-3\" />\n        </button>\n      )}\n      {showRightButton && (\n        <button\n          className=\"absolute right-0 top-20 transform bg-primary rounded-full z-10 text-white w-6 h-6 flex items-center justify-center drop-shadow-md\"\n          onClick={() => {\n            scrollContainerRef.current.scrollBy({\n              left: 200,\n              behavior: \"smooth\",\n            });\n          }}\n        >\n          <ArrowLeftIcon className=\"w-3 rotate-180\" />\n        </button>\n      )}\n      <div className=\"px-4\">\n        <div\n          id={containerId}\n          ref={scrollContainerRef}\n          className=\"flex space-x-4 overflow-x-auto scrollbar-hide py-2\"\n        >\n          {items.map((item, index) => (\n            <div key={index} className=\"space-y-2 flex-shrink-0\">\n              {renderItem(item)}\n            </div>\n          ))}\n        </div>\n      </div>\n    </div>\n  );\n};\n\nexport default HorizontalScroll;\n"
  },
  {
    "path": "client/src/components/loader.js",
    "content": "import { Loader2 } from \"lucide-react\";\nimport React from \"react\";\n\nconst Loader = ({ noWidth = false }) => {\n  if (noWidth) return <Loader2 className=\"animate-spin text-primary\" />;\n  return <Loader2 className=\"animate-spin text-primary w-40\" />;\n};\n\nexport default Loader;\n"
  },
  {
    "path": "client/src/components/login.js",
    "content": "import { usePrivy } from \"@privy-io/react-auth\";\nimport { LogOutIcon } from \"lucide-react\";\nimport { truncateAddress } from \"@/utils/truncateAddress\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport Image from \"next/image\";\nimport React from \"react\";\nimport { Button } from \"./ui/button\";\nimport { ModeToggle } from \"@/theme/theme-toggle\";\n\nconst Login = ({ w0 }) => {\n  const { login, authenticated, logout } = usePrivy();\n  return (\n    <div className=\"p-6\">\n      {authenticated ? (\n        <div className=\"flex items-center gap-3\">\n          <DropdownMenu className=\"w-full\">\n            <DropdownMenuTrigger className=\"w-full bg-primary rounded-md\">\n              <div className=\"py-2 flex items-center justify-between px-4 w-full\">\n                <div>\n                  <Image\n                    src={\"/icons/connect-wallet.svg\"}\n                    width={20}\n                    height={20}\n                    alt=\"wallet\"\n                  />\n                </div>\n                <div className=\"flex items-center gap-3\">\n                  <p className=\"text-white\">\n                    {w0?.address && truncateAddress(w0.address, 4, 4)}\n                  </p>\n                  <Image src={\"/icons/down-arrow.svg\"} width={10} height={10} />\n                </div>\n              </div>\n            </DropdownMenuTrigger>\n            <DropdownMenuContent className=\"min-w-[18rem]\">\n              <DropdownMenuItem>\n                <div\n                  className=\"flex items-center justify-between w-full\"\n                  onClick={logout}\n                >\n                  <p>Logout</p>\n                  <LogOutIcon className=\"w-4\" />\n                </div>\n              </DropdownMenuItem>\n            </DropdownMenuContent>\n          </DropdownMenu>\n          <ModeToggle />\n        </div>\n      ) : (\n        <Button className=\"w-full\" onClick={login}>\n          Connect Wallet\n        </Button>\n      )}\n    </div>\n  );\n};\n\nexport default Login;\n"
  },
  {
    "path": "client/src/components/mymusic/my-music.js",
    "content": "import React, { useEffect, useState } from \"react\";\nimport { motion } from \"framer-motion\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport { Contract } from \"ethers\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport { Music, Loader2, PlayCircle, Pause } from \"lucide-react\";\nimport { toast } from \"sonner\";\nimport { useDispatch } from \"react-redux\";\nimport { setMusicPlayer } from \"@/redux/musicPlayerSlice\";\nimport { Button } from \"@/components/ui/button\";\nimport { truncateAddress } from \"@/utils/truncateAddress\";\n\nconst MyMusic = () => {\n  const [purchasedSongs, setPurchasedSongs] = useState([]);\n  const [isLoading, setIsLoading] = useState(true);\n  const [currentlyPlaying, setCurrentlyPlaying] = useState(null);\n  const [imagesLoaded, setImagesLoaded] = useState({});\n  const { authenticated, ready } = usePrivy();\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n  const dispatch = useDispatch();\n\n  const containerVariants = {\n    hidden: { opacity: 0 },\n    visible: {\n      opacity: 1,\n      transition: {\n        staggerChildren: 0.1,\n      },\n    },\n  };\n\n  const itemVariants = {\n    hidden: { y: 20, opacity: 0 },\n    visible: {\n      y: 0,\n      opacity: 1,\n      transition: {\n        type: \"spring\",\n        stiffness: 300,\n        damping: 24,\n      },\n    },\n  };\n\n  const getPurchasedSongs = async () => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) throw new Error(\"Provider is not available\");\n\n      const signer = await provider.getSigner();\n      if (!signer) throw new Error(\"Signer is not available\");\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const purchasedNFTs = await contract.getWalletPurchasedNFTs(w0.address);\n      const songsPromises = purchasedNFTs.map((song) =>\n        contract.nftMetadata(song)\n      );\n      const songs = await Promise.all(songsPromises);\n\n      const formattedSongs = songs.map((song, index) => ({\n        id: purchasedNFTs[index].toString(),\n        tokenId: song[2],\n        title: song[3],\n        description: song[4],\n        image: song[5],\n        price: song[0],\n        rentPrice: song[8],\n        rentDuration: song[9],\n        owner: song[10],\n        cid: song[12].toString(),\n      }));\n\n      setPurchasedSongs(formattedSongs);\n    } catch (error) {\n      console.error(\"Error fetching purchased songs:\", error);\n      toast.error(\"Failed to fetch purchased songs. Please try again.\");\n    } finally {\n      setIsLoading(false);\n    }\n  };\n\n  useEffect(() => {\n    if (ready && authenticated && w0?.address) {\n      getPurchasedSongs();\n    }\n  }, [ready, authenticated, w0?.address]);\n\n  const handlePlay = (song) => {\n    const number = Number(song.cid);\n    console.log(number);\n    dispatch(\n      setMusicPlayer({\n        uri: `/api/hashsong/${number}`,\n        isPlaying: true,\n        index: 0,\n        coverImage: song.image,\n        title: song.title,\n        artist: song.description,\n      })\n    );\n    setCurrentlyPlaying(currentlyPlaying === song.id ? null : song.id);\n  };\n\n  if (!ready || !authenticated || !w0?.address) {\n    return (\n      <div className=\"flex justify-center items-center h-64\">\n        <Loader2 className=\"animate-spin text-purple-500 w-8 h-8\" />\n      </div>\n    );\n  }\n\n  return (\n    <motion.div\n      className=\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\"\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      <motion.div\n        className=\"mt-10 scroll-m-20 mb-6 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\"\n        variants={itemVariants}\n      >\n        Your Purchased Songs\n      </motion.div>\n      {isLoading ? (\n        <div className=\"flex justify-center items-center h-64\">\n          <Loader2 className=\"animate-spin text-purple-500 w-8 h-8\" />\n        </div>\n      ) : purchasedSongs.length > 0 ? (\n        <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 p-6\">\n          {purchasedSongs.map((song) => (\n            <motion.div\n              key={song.id}\n              className=\"bg-white rounded-xl border overflow-hidden hover:shadow-xl transition-all duration-300\"\n              whileHover={{ y: -5, scale: 1.02 }}\n            >\n              <div className=\"aspect-w-1 aspect-h-1 relative\">\n                {!imagesLoaded[song.id] && (\n                  <div className=\"absolute inset-0 flex items-center justify-center bg-gray-100\">\n                    <Loader2 className=\"animate-spin text-purple-500 w-10 h-10\" />\n                  </div>\n                )}\n                {console.log(song)}\n                <img\n                  src={song.image}\n                  alt={song.title}\n                  className={`w-full h-full object-cover aspect-square transition-opacity duration-300 ${\n                    imagesLoaded[song.id] ? \"opacity-100\" : \"opacity-0\"\n                  }`}\n                  onLoad={() =>\n                    setImagesLoaded((prev) => ({ ...prev, [song.id]: true }))\n                  }\n                  onError={(e) => {\n                    console.error(\"Image load error:\", e);\n                    e.target.onerror = null;\n                    e.target.src = \"/path/to/default-image.jpg\";\n                    setImagesLoaded((prev) => ({ ...prev, [song.id]: true }));\n                  }}\n                />\n              </div>\n              <div className=\"p-3\">\n                <h3 className=\"text-xl font-bold text-gray-800 mb-1 truncate\">\n                  {song.title}\n                </h3>\n                <p className=\"text-gray-600 text-sm mb-4 line-clamp-2\">\n                  {song.description}\n                </p>\n                <div className=\"flex items-center justify-between\">\n                  <span className=\"text-sm text-purple-600 font-medium\">\n                    {truncateAddress(song.owner, 4, 4) || \"Unknown Artist\"}\n                  </span>\n                  <Button\n                    onClick={() => handlePlay(song)}\n                    size=\"sm\"\n                    variant={\n                      currentlyPlaying === song.id ? \"default\" : \"outline\"\n                    }\n                    className=\"rounded-full hover:bg-purple-100 hover:text-black transition-colors\"\n                  >\n                    {currentlyPlaying === song.id ? (\n                      <Pause className=\"h-5 w-5 text-white\" />\n                    ) : (\n                      <PlayCircle className=\"h-5 w-5 text-purple-700\" />\n                    )}\n                  </Button>\n                </div>\n              </div>\n            </motion.div>\n          ))}\n        </div>\n      ) : (\n        <div className=\"text-center text-gray-600\">\n          <Music className=\"mx-auto text-gray-400 w-16 h-16 mb-4\" />\n          <p className=\"text-xl\">You haven't purchased any songs yet.</p>\n        </div>\n      )}\n    </motion.div>\n  );\n};\n\nexport default MyMusic;\n"
  },
  {
    "path": "client/src/components/playlist/createPlaylistAlert.js",
    "content": "import React, { useEffect, useState } from \"react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport {\n  AlertDialog,\n  AlertDialogAction,\n  AlertDialogCancel,\n  AlertDialogContent,\n  AlertDialogDescription,\n  AlertDialogFooter,\n  AlertDialogHeader,\n  AlertDialogTitle,\n  AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\";\nimport { Input } from \"@/components/ui/input\";\nimport { Check, X, Music, Loader2 } from \"lucide-react\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport { Contract } from \"ethers\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport axios from \"axios\";\nimport Loader from \"../loader\";\nimport { toast } from \"sonner\";\n\nconst CreatePlaylistAlert = () => {\n  const [selectedAudios, setSelectedAudios] = useState([]);\n  const [isAlertOpen, setIsAlertOpen] = useState(false);\n  const [playlistName, setPlaylistName] = useState(\"\");\n  const [purchasedSongs, setPurchasedSongs] = useState([]);\n  const [isLoading, setIsLoading] = useState(false);\n  const [error, setError] = useState(null);\n  const { authenticated, ready } = usePrivy();\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n\n  const createPlaylist = async (e) => {\n    e.preventDefault();\n    setIsLoading(true);\n    setError(null);\n\n    try {\n      const selectedSongs = selectedAudios.map((audio) => audio.id);\n\n      const { data } = await axios.post(\"/api/playlist\", {\n        playName: playlistName,\n        playArray: selectedSongs,\n        rentalAdd: w0.address,\n      });\n\n      console.log(\"Playlist created:\", data);\n      toast.success(\"Playlist created successfully!\");\n      setIsAlertOpen(false);\n      // Reset form\n      setPlaylistName(\"\");\n      setSelectedAudios([]);\n    } catch (error) {\n      console.error(\"Error creating playlist:\", error);\n      setError(\n        error.response?.data?.message ||\n          \"Failed to create playlist. Please try again.\"\n      );\n      toast.error(\"Failed to create playlist. Please try again.\");\n    } finally {\n      setIsLoading(false);\n    }\n  };\n\n  const getPurchasedSongs = async () => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const purchasedNFTs = await contract.getWalletPurchasedNFTs(w0.address);\n      console.log(purchasedNFTs);\n      const songsPromises = purchasedNFTs.map((song) =>\n        contract.nftMetadata(song)\n      );\n      const songs = await Promise.all(songsPromises);\n\n      // Transform the song data into a more usable format\n      const formattedSongs = songs.map((song, index) => ({\n        id: index,\n        title: song[3],\n        description: song[4],\n        image: song[5],\n      }));\n\n      setPurchasedSongs(formattedSongs);\n    } catch (error) {\n      console.error(\"Error fetching purchased songs:\", error);\n    }\n  };\n\n  useEffect(() => {\n    if (ready && authenticated && w0?.address !== undefined) {\n      getPurchasedSongs();\n    }\n  }, [ready, authenticated, w0?.address]);\n\n  const toggleAudio = (audio) => {\n    setSelectedAudios((prev) =>\n      prev.some((a) => a.id === audio.id)\n        ? prev.filter((a) => a.id !== audio.id)\n        : [...prev, audio]\n    );\n  };\n\n  return (\n    <AlertDialog open={isAlertOpen} onOpenChange={(e) => setIsAlertOpen(e)}>\n      <AlertDialogTrigger asChild>\n        <motion.button\n          whileHover={{ scale: 1.05 }}\n          whileTap={{ scale: 0.95 }}\n          className=\"bg-primary hover:bg-primary/70 text-white font-bold py-2 px-4 rounded-full shadow-lg\"\n        >\n          Create Playlist\n        </motion.button>\n      </AlertDialogTrigger>\n      <AlertDialogContent className=\"max-w-md bg-gradient-to-br from-gray-50 to-gray-100\">\n        <AlertDialogHeader>\n          <AlertDialogTitle className=\"text-2xl font-bold text-gray-800\">\n            Create New Playlist\n          </AlertDialogTitle>\n          <AlertDialogDescription className=\"text-gray-600\">\n            Craft your perfect playlist by adding a name and selecting your\n            favorite tracks.\n          </AlertDialogDescription>\n          <div className=\"mt-6 space-y-6\">\n            <div className=\"space-y-2\">\n              <label\n                htmlFor=\"playlist-name\"\n                className=\"text-sm font-medium text-gray-700\"\n              >\n                Playlist Name\n              </label>\n              <Input\n                id=\"playlist-name\"\n                placeholder=\"Enter playlist name\"\n                value={playlistName}\n                onChange={(e) => setPlaylistName(e.target.value)}\n                className=\"border-gray-300 focus:ring-purple-500 focus:border-purple-500\"\n              />\n            </div>\n            {error && <div className=\"text-red-500 text-sm mt-2\">{error}</div>}\n\n            <div className=\"space-y-2\">\n              <h4 className=\"text-sm font-medium text-gray-700\">\n                Select Audio Tracks:\n              </h4>\n              <div className=\"max-h-48 overflow-y-auto overflow-x-hidden border border-gray-200 rounded-md bg-white\">\n                {purchasedSongs.map((audio) => (\n                  <motion.div\n                    key={audio.id}\n                    className={`flex items-center p-3 cursor-pointer ${\n                      selectedAudios.some((a) => a.id === audio.id)\n                        ? \"bg-purple-100\"\n                        : \"hover:bg-gray-50\"\n                    }`}\n                    onClick={() => toggleAudio(audio)}\n                    whileHover={{ scale: 1.02 }}\n                    whileTap={{ scale: 0.98 }}\n                  >\n                    <img\n                      src={audio.image}\n                      alt={audio.title}\n                      className=\"w-12 h-12 object-cover rounded-md mr-3\"\n                    />\n                    <div className=\"flex-grow\">\n                      <h3 className=\"text-sm font-medium text-gray-800\">\n                        {audio.title}\n                      </h3>\n                      <p className=\"text-xs text-gray-500\">\n                        {audio.description}\n                      </p>\n                    </div>\n                    {selectedAudios.some((a) => a.id === audio.id) && (\n                      <Check className=\"h-5 w-5 text-purple-500 ml-2\" />\n                    )}\n                  </motion.div>\n                ))}\n              </div>\n            </div>\n\n            <AnimatePresence>\n              {selectedAudios.length > 0 && (\n                <motion.div\n                  initial={{ opacity: 0, y: 20 }}\n                  animate={{ opacity: 1, y: 0 }}\n                  exit={{ opacity: 0, y: -20 }}\n                  className=\"space-y-2 max-h-24 overflow-y-auto\"\n                >\n                  <h4 className=\"text-sm font-medium text-gray-700\">\n                    Selected Tracks:\n                  </h4>\n                  <div className=\"flex flex-wrap gap-2\">\n                    {selectedAudios.map((audio) => (\n                      <motion.div\n                        key={audio.id}\n                        className=\"bg-purple-100 text-purple-800 text-sm font-medium px-3 py-1 rounded-full flex items-center\"\n                        initial={{ opacity: 0, scale: 0.8 }}\n                        animate={{ opacity: 1, scale: 1 }}\n                        exit={{ opacity: 0, scale: 0.8 }}\n                      >\n                        {audio.title}\n                        <X\n                          className=\"h-4 w-4 ml-2 cursor-pointer text-purple-600 hover:text-purple-800\"\n                          onClick={(e) => {\n                            e.stopPropagation();\n                            toggleAudio(audio);\n                          }}\n                        />\n                      </motion.div>\n                    ))}\n                  </div>\n                </motion.div>\n              )}\n            </AnimatePresence>\n          </div>\n        </AlertDialogHeader>\n        <AlertDialogFooter>\n          <AlertDialogCancel className=\"bg-gray-200 text-gray-800 hover:bg-gray-300\">\n            Cancel\n          </AlertDialogCancel>\n          <AlertDialogAction\n            className=\"bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600\"\n            disabled={!playlistName || selectedAudios.length === 0}\n            onClick={createPlaylist}\n          >\n            {isLoading ? (\n              <>\n                <Loader2 className=\"animate-spin text-white w-20\" />\n              </>\n            ) : (\n              \"Create Playlist\"\n            )}\n          </AlertDialogAction>\n        </AlertDialogFooter>\n      </AlertDialogContent>\n    </AlertDialog>\n  );\n};\n\nexport default CreatePlaylistAlert;\n"
  },
  {
    "path": "client/src/components/playlist/playlist.js",
    "content": "import React, { useState, useEffect } from \"react\";\nimport { motion } from \"framer-motion\";\nimport CreatePlaylistAlert from \"./createPlaylistAlert\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport axios from \"axios\";\nimport { Button } from \"@/components/ui/button\";\nimport { PlayCircle, Pause, Clock, DollarSign } from \"lucide-react\";\nimport qs from \"qs\";\nimport { Contract, ethers } from \"ethers\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport { useDispatch } from \"react-redux\";\nimport { setMusicPlayer } from \"@/redux/musicPlayerSlice\";\n\nconst SongItem = ({ song, isPlaying, onPlay }) => {\n  return (\n    <motion.div\n      initial={{ opacity: 0, y: 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={{ duration: 0.3 }}\n      className=\"bg-white rounded-lg shadow-md overflow-hidden flex items-center p-4 mb-4 hover:shadow-lg transition-shadow duration-300\"\n    >\n      <img\n        src={song.imageUrl}\n        alt={song.name}\n        className=\"w-16 h-16 rounded-md object-cover mr-4\"\n      />\n      <div className=\"flex-grow\">\n        <h3 className=\"text-lg font-semibold mb-1\">{song.name}</h3>\n        <p className=\"text-sm text-gray-600 line-clamp-1\">{song.description}</p>\n      </div>\n      <div className=\"flex items-center space-x-4\">\n        <div className=\"text-right\">\n          <p className=\"text-sm text-gray-500 flex items-center\">\n            <Clock className=\"w-4 h-4 mr-1\" /> {song.rentDuration.toString()}{\" \"}\n            days\n          </p>\n          <p className=\"text-sm text-gray-500 flex items-center\">\n            <DollarSign className=\"w-4 h-4 mr-1\" />{\" \"}\n            {ethers.utils.formatEther(song.price)} MSX\n          </p>\n        </div>\n        <Button\n          onClick={() => onPlay(song.cid, song)}\n          size=\"sm\"\n          variant={isPlaying ? \"default\" : \"outline\"}\n          className=\"min-w-[40px]\"\n        >\n          {isPlaying ? (\n            <Pause className=\"h-4 w-4\" />\n          ) : (\n            <PlayCircle className=\"h-4 w-4\" />\n          )}\n        </Button>\n      </div>\n    </motion.div>\n  );\n};\n\nconst Playlist = () => {\n  const { ready, authenticated } = usePrivy();\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n  const [playlist, setPlaylist] = useState(null);\n  const [songs, setSongs] = useState([]);\n  const [currentlyPlaying, setCurrentlyPlaying] = useState(null);\n\n  const getMetadata = async (tokenIds) => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const songDetailsPromises = tokenIds.map(async (tokenId) => {\n        const metadata = await contract.getNFTMetadata(tokenId);\n        // console.log(metadata[12].toString());\n        return {\n          tokenId,\n          price: metadata[0],\n          name: metadata[3],\n          description: metadata[4],\n          imageUrl: metadata[5],\n          rentPrice: metadata[8],\n          rentDuration: metadata[9],\n          owner: metadata[10],\n          cid: metadata[12].toString(),\n        };\n      });\n\n      const allSongDetails = await Promise.all(songDetailsPromises);\n      setSongs(allSongDetails);\n    } catch (error) {\n      console.error(\"Error fetching metadata:\", error);\n    }\n  };\n\n  const getPlaylist = async () => {\n    try {\n      const { data } = await axios.get(`/api/getPlaylist/${w0.address}`);\n      console.log(\"Playlist data:\", data);\n      setPlaylist(data);\n\n      if (data.playlistame && data.playlistame.length > 0) {\n        const playlistName = data.playlistame[0];\n        const random = data.Randomsalt;\n\n        console.log(\"Sending to backend:\", { playlistName, random });\n\n        try {\n          const response = await axios.post(\n            \"/api/getSound\",\n            qs.stringify({ random, playName: playlistName }),\n            {\n              headers: {\n                \"Content-Type\": \"application/x-www-form-urlencoded\",\n              },\n            }\n          );\n\n          console.log(\"Response from getSound:\", response.data);\n\n          if (response.data.playlistData) {\n            const tokenIds = response.data.playlistData.split(\",\").map(Number);\n            await getMetadata(tokenIds);\n          }\n        } catch (error) {\n          console.error(\"Error sending data:\", error);\n        }\n      } else {\n        console.log(\"No playlists found\");\n      }\n    } catch (error) {\n      console.error(\"Error fetching playlist:\", error);\n    }\n  };\n  const dispatch = useDispatch();\n  const handlePlay = (metadata, song) => {\n    console.log(metadata);\n    const number = Number(metadata);\n    console.log(number);\n    console.log(song);\n    //   {\n    //     \"tokenId\": 1,\n    //     \"price\": {\n    //         \"type\": \"BigNumber\",\n    //         \"hex\": \"0x64\"\n    //     },\n    //     \"name\": \"Rider\",\n    //     \"description\": \"I am a Rider status\",\n    //     \"imageUrl\": \"https://res.cloudinary.com/da9h8exvs/image/upload/v1723144431/xvorjcfq7gtlmcdgnti4.png\",\n    //     \"rentPrice\": {\n    //         \"type\": \"BigNumber\",\n    //         \"hex\": \"0x01\"\n    //     },\n    //     \"rentDuration\": {\n    //         \"type\": \"BigNumber\",\n    //         \"hex\": \"0x0a\"\n    //     },\n    //     \"owner\": \"0xc116C9053d7810d19843fEcc15307dA4DEaC776b\",\n    //     \"cid\": \"2065586028\"\n    // }\n    dispatch(\n      setMusicPlayer({\n        uri: `/api/hashsong/${number}`,\n        isPlaying: true,\n        index: 0,\n        coverImage: song.imageUrl,\n        title: song.name,\n        artist: song.description,\n      })\n    );\n    // setCurrentlyPlaying(currentlyPlaying === tokenId ? null : tokenId);\n    // Implement actual playback logic here\n  };\n\n  useEffect(() => {\n    if (ready && authenticated && w0?.address !== undefined) {\n      getPlaylist();\n    }\n  }, [w0, ready, authenticated]);\n\n  if (!ready || !authenticated || w0?.address === undefined) {\n    return <div>Loading...</div>;\n  }\n\n  const containerVariants = {\n    hidden: { opacity: 0 },\n    visible: {\n      opacity: 1,\n      transition: {\n        staggerChildren: 0.1,\n      },\n    },\n  };\n\n  const itemVariants = {\n    hidden: { y: 20, opacity: 0 },\n    visible: {\n      y: 0,\n      opacity: 1,\n      transition: {\n        type: \"spring\",\n        stiffness: 300,\n        damping: 24,\n      },\n    },\n  };\n\n  return (\n    <motion.div\n      className=\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\"\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      <motion.div\n        className=\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\"\n        variants={itemVariants}\n      >\n        {/* {console.log(playlist?.playlistame)} */}\n        {playlist && playlist.playlistame && playlist.playlistame.length > 0\n          ? playlist.playlistame[0]\n          : \"Your Playlist\"}\n      </motion.div>\n      <div className=\"container mx-auto px-4 py-8 max-w-3xl\">\n        <motion.div\n          initial={{ opacity: 0, y: -20 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{ duration: 0.5 }}\n        >\n          {playlist &&\n          playlist.playlistame &&\n          playlist.playlistame.length > 0 ? (\n            <div>\n              {/* <h2 className=\"text-3xl font-bold mb-6 text-center\">\n                {playlist.playlistame[0]}\n              </h2> */}\n              {songs.length > 0 ? (\n                <div className=\"space-y-4\">\n                  {songs.map((song) => (\n                    <SongItem\n                      key={song.tokenId}\n                      song={song}\n                      isPlaying={currentlyPlaying === song.tokenId}\n                      onPlay={handlePlay}\n                    />\n                  ))}\n                </div>\n              ) : (\n                <p className=\"text-xl text-center text-gray-600\">\n                  No tracks in this playlist yet.\n                </p>\n              )}\n            </div>\n          ) : (\n            <div className=\"text-center\">\n              <h2 className=\"text-3xl font-bold mb-4\">No Playlists Yet</h2>\n              <p className=\"text-xl text-gray-600 mb-4\">\n                Create your first playlist to get started!\n              </p>\n              <p className=\"mb-8 max-w-md mx-auto text-gray-500\">\n                Note: you can only create playlist when you have at least one\n                track purchased.\n              </p>\n              <CreatePlaylistAlert />\n            </div>\n          )}\n        </motion.div>\n      </div>\n    </motion.div>\n  );\n};\n\nexport default Playlist;\n"
  },
  {
    "path": "client/src/components/profile/playlist-item.js",
    "content": "import React from \"react\";\n\nconst PlaylistItem = ({ playlist }) => (\n  <>\n    <div className=\"w-36 h-36\">\n      <img\n        src={playlist.image}\n        className=\"aspect-square rounded-md w-full h-full object-cover\"\n        alt={playlist.name}\n      />\n    </div>\n    <div>\n      <p\n        className=\"w-full text-center truncate max-w-xs mx-auto\"\n        title={playlist.name}\n      >\n        {playlist.name}\n      </p>\n      <p className=\"text-sm text-center text-muted-foreground\">\n        {playlist.creator}\n      </p>\n    </div>\n  </>\n);\n\nexport default PlaylistItem;\n"
  },
  {
    "path": "client/src/components/profile/profile.js",
    "content": "import { PencilIcon, PlayCircle, PlayIcon } from \"lucide-react\";\nimport React, { useEffect, useState } from \"react\";\nimport { Label } from \"../ui/label\";\nimport { Input } from \"../ui/input\";\nimport { playlists } from \"@/utils/dummy\";\nimport HorizontalScroll from \"../horizontal-scroll\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport PublishAudio from \"../uploadMusic/publish-audio\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport { Contract } from \"ethers\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport Loader from \"../loader\";\nimport Lottie from \"lottie-react\";\nimport animationData from \"@/animations/no.json\";\nimport TrackItem from \"./track-item\";\nimport PlaylistItem from \"./playlist-item\";\nimport { motion, AnimatePresence } from \"framer-motion\";\n\nconst Profile = () => {\n  const { authenticated, ready } = usePrivy();\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n  const [songs, setSongs] = useState([]);\n  const [loading, setLoading] = useState(true);\n  const [error, setError] = useState(false);\n\n  const getSongs = async (address) => {\n    if (!address) {\n      toast.error(\"Address is not provided\");\n      setError(true);\n      setLoading(false);\n      return;\n    }\n\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        console.error(\"Provider is not available:\", provider);\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        console.error(\"Signer is not available:\", signer);\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const res = await contract.getWalletTokensWithMetadata(address);\n\n      console.log(res);\n      setSongs(res);\n      setLoading(false);\n    } catch (error) {\n      console.error(\"Error fetching songs:\", error);\n      setError(true);\n      setLoading(false);\n    }\n  };\n\n  useEffect(() => {\n    if (ready && authenticated && w0?.address !== undefined) {\n      console.log(\"Wallet Address: \", w0.address);\n      getSongs(w0.address);\n    }\n  }, [w0, ready, authenticated]);\n\n  const containerVariants = {\n    hidden: { opacity: 0 },\n    visible: {\n      opacity: 1,\n      transition: {\n        staggerChildren: 0.1,\n      },\n    },\n  };\n\n  const itemVariants = {\n    hidden: { y: 20, opacity: 0 },\n    visible: {\n      y: 0,\n      opacity: 1,\n      transition: {\n        type: \"spring\",\n        stiffness: 300,\n        damping: 24,\n      },\n    },\n  };\n\n  return (\n    <motion.div\n      className=\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\"\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      <motion.div\n        className=\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\"\n        variants={itemVariants}\n      >\n        GM Ser!\n        <PublishAudio getSongs={getSongs} w0={w0} />\n      </motion.div>\n\n      <motion.div\n        className=\"flex w-full gap-3 items-center\"\n        variants={itemVariants}\n      >\n        <motion.div className=\"w-24 h-24 relative\">\n          <img src=\"/nft.avif\" className=\"rounded-lg\" />\n          <motion.div\n            className=\"w-6 h-6 flex items-center justify-center absolute bg-muted z-10 -bottom-2 -right-2 rounded-full cursor-pointer drop-shadow\"\n            whileHover={{ scale: 1.1 }}\n            whileTap={{ scale: 0.9 }}\n          >\n            <PencilIcon className=\"w-3\" />\n          </motion.div>\n        </motion.div>\n        <motion.div className=\"flex flex-col gap-3\" variants={itemVariants}>\n          <Label>Username</Label>\n          <Input placeholder=\"Change username\" className=\"max-w-xs\" />\n        </motion.div>\n      </motion.div>\n\n      <motion.div\n        className=\"scroll-m-20 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\"\n        variants={itemVariants}\n      >\n        Your NFS's\n      </motion.div>\n      <AnimatePresence>\n        {loading ? (\n          <motion.div\n            className=\"grid place-items-center min-h-32\"\n            initial={{ opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={{ opacity: 0 }}\n          >\n            <Loader />\n          </motion.div>\n        ) : error ? (\n          <motion.p\n            initial={{ opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={{ opacity: 0 }}\n          >\n            Error loading songs\n          </motion.p>\n        ) : songs.length === 0 ? (\n          <motion.div\n            className=\"w-full h-32 flex items-center justify-center\"\n            initial={{ opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={{ opacity: 0 }}\n          >\n            <div className=\"w-20 h-20\">\n              <Lottie animationData={animationData} />\n            </div>\n            <p className=\"text-muted-foreground\">No NFS's found!</p>\n          </motion.div>\n        ) : (\n          <motion.div variants={itemVariants}>\n            <HorizontalScroll\n              items={songs}\n              renderItem={(song) => <TrackItem song={song} />}\n              containerId={`scrollContainer-${uuidv4()}`}\n            />\n          </motion.div>\n        )}\n      </AnimatePresence>\n\n      <motion.div\n        className=\"scroll-m-20 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\"\n        variants={itemVariants}\n      >\n        Your Playlist\n      </motion.div>\n      <motion.div variants={itemVariants}>\n        <HorizontalScroll\n          items={playlists}\n          renderItem={(playlist) => <PlaylistItem playlist={playlist} />}\n          containerId={`scrollContainer-${uuidv4()}`}\n        />\n      </motion.div>\n    </motion.div>\n  );\n};\n\nexport default Profile;\n"
  },
  {
    "path": "client/src/components/profile/track-item.js",
    "content": "import React from \"react\";\nimport { PlayCircle } from \"lucide-react\";\nimport { useDispatch } from \"react-redux\";\nimport { setMusicPlayer } from \"@/redux/musicPlayerSlice\";\nimport axios from \"axios\";\nimport { toast } from \"sonner\";\n\nconst TrackItem = ({ song }) => {\n  const dispatch = useDispatch();\n  const [id, metadata, ownership] = song;\n  console.log(id.toString());\n\n  const playSong = async (id, meta) => {\n    const number = Number(meta[12].toString());\n    try {\n      // const { data } = await axios.post(`/api/hashsong`, {\n      //   randomId: number,\n      // });\n      // console.log(data);\n\n      dispatch(\n        setMusicPlayer({\n          uri: `/api/hashsong/${number}`,\n          isPlaying: true,\n          index: 0,\n          coverImage: meta[5],\n          title: meta[3],\n          artist: meta[4],\n        })\n      );\n    } catch (error) {\n      console.error(\"Error playing song:\", error);\n      toast.error(\"Failed to play song. Please try again.\");\n    }\n  };\n\n  return (\n    <>\n      <div className=\"relative flex\">\n        <div className=\"w-36 h-36\">\n          <img\n            src={metadata[5]}\n            className=\"aspect-square rounded-md w-full h-full object-cover\"\n            alt={metadata[3]}\n          />\n        </div>\n        <div\n          className=\"w-10 h-10 cursor-pointer bg-primary z-10 -bottom-3 -right-2 absolute rounded-full flex items-center justify-center text-white\"\n          onClick={() => {\n            playSong(\n              \"bafybeic5zcykf7fpg7c2zuf76p2gddegxlt64hbfp76qqs7l4l6yx3nraa\",\n              metadata\n            );\n          }}\n        >\n          <PlayCircle />\n        </div>\n      </div>\n\n      <div>\n        <p\n          className=\"w-full text-center truncate max-w-xs mx-auto\"\n          title={metadata[3]}\n        >\n          {metadata[3]}\n        </p>\n        <p className=\"text-sm text-center text-muted-foreground\">\n          {metadata[4]}\n        </p>\n      </div>\n    </>\n  );\n};\n\nexport default TrackItem;\n"
  },
  {
    "path": "client/src/components/resizable.js",
    "content": "import {\n  ResizableHandle,\n  ResizablePanel,\n  ResizablePanelGroup,\n} from \"@/components/ui/resizable\";\nimport Login from \"./login\";\nimport { Badge } from \"./ui/badge\";\nimport { ArrowLeftIcon, MusicIcon, PauseIcon, PlayIcon } from \"lucide-react\";\nimport { audioTracks, playlists } from \"@/utils/dummy\";\nimport { useEffect, useState } from \"react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport Image from \"next/image\";\nimport { User } from \"lucide-react\";\nimport { BiHomeAlt2 } from \"react-icons/bi\";\nimport { CiGlobe } from \"react-icons/ci\";\nimport Profile from \"./profile/profile\";\nimport Explore from \"./explore/explore\";\nimport { ContactAbhi } from \"./contact-abhi\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { setMusicPlayer } from \"@/redux/musicPlayerSlice\";\nimport { Contract } from \"ethers\";\nimport {\n  musicXContractABI,\n  musicXContractAddress,\n  ownSoundContractABI,\n  ownSoundContractAddress,\n} from \"@/utils/contract\";\nimport { usePrivy } from \"@privy-io/react-auth\";\nimport Loader from \"./loader\";\nimport Song from \"./song/song\";\nimport HomePage from \"./home-page\";\nimport { MdPlaylistAddCircle } from \"react-icons/md\";\nimport Playlist from \"./playlist/playlist\";\nimport MyMusic from \"./mymusic/my-music\";\n\nexport function ResizableComponent({\n  w0,\n  selectedMode,\n  setSelectedMode,\n  selectedLayout,\n  setSelectedLayout,\n}) {\n  const { authenticated, ready } = usePrivy();\n  const dispatch = useDispatch();\n  const [clickedIdx, setClickedIdx] = useState(0);\n  const musicPlayer = useSelector((state) => state.musicPlayer);\n  const [musicXBalance, setMusicXBalance] = useState(0);\n  const [isLoadingBalance, setIsLoadingBalance] = useState(true);\n  const [purchasedSongs, setPurchasedSongs] = useState([]);\n\n  const getMusicXTokenBalance = async (address) => {\n    setIsLoadingBalance(true);\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        musicXContractAddress,\n        musicXContractABI,\n        signer\n      );\n\n      const res = await contract.balanceOf(address);\n      setMusicXBalance(res.toString());\n    } catch (error) {\n      console.error(\"Error fetching MusicX balance:\", error);\n      setMusicXBalance(0);\n    } finally {\n      setIsLoadingBalance(false);\n    }\n  };\n\n  const getPurchasedSongs = async () => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) throw new Error(\"Provider is not available\");\n\n      const signer = await provider.getSigner();\n      if (!signer) throw new Error(\"Signer is not available\");\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n      console.log(\"hdbs\");\n\n      const purchasedNFTs = await contract.getWalletPurchasedNFTs(w0.address);\n      const songsPromises = purchasedNFTs.map((song) =>\n        contract.nftMetadata(song)\n      );\n      console.log(songsPromises);\n      const songs = await Promise.all(songsPromises);\n\n      const formattedSongs = songs.map((song, index) => ({\n        id: purchasedNFTs[index].toString(),\n        title: song[3],\n        description: song[4],\n        image: song[5],\n        cid: song[12].toString(),\n      }));\n\n      setPurchasedSongs(formattedSongs);\n    } catch (error) {\n      console.error(\"Error fetching purchased songs:\", error);\n    }\n  };\n  useEffect(() => {\n    if (ready && authenticated && w0?.address !== undefined) {\n      console.log(\"Wallet Address: \", w0.address);\n      getMusicXTokenBalance(w0.address);\n      getPurchasedSongs();\n    }\n  }, [w0, ready, authenticated, selectedMode]);\n\n  const handleSelectedMusicPlay = ({ title, artist, soundUri, cover }) => {\n    dispatch(\n      setMusicPlayer({\n        uri: soundUri,\n        isPlaying: true,\n        index: 0,\n        coverImage: cover,\n        title: title,\n        artist: artist,\n      })\n    );\n  };\n\n  const menuItems = [\n    { name: \"Home\", icon: BiHomeAlt2 },\n    { name: \"Explore\", icon: CiGlobe },\n    { name: \"Profile\", icon: User },\n    { name: \"Playlist\", icon: MdPlaylistAddCircle },\n    { name: \"My Songs\", icon: MusicIcon },\n  ];\n  const handleClick = (item) => {\n    setSelectedLayout(item.toLowerCase());\n  };\n\n  return (\n    <ResizablePanelGroup direction=\"horizontal\">\n      <ResizablePanel defaultSize={50}>\n        <motion.div\n          className=\"w-full p-6 dark:bg-muted/10 bg-muted border-b flex items-center justify-between\"\n          initial={{ opacity: 0 }}\n          animate={{ opacity: 1 }}\n          transition={{ duration: 0.5 }}\n        >\n          <motion.div\n            className=\"flex items-center gap-3\"\n            initial={{ x: -20, opacity: 0 }}\n            animate={{ x: 0, opacity: 1 }}\n            transition={{ delay: 0.2 }}\n          >\n            <p className=\"\">OwnSound</p>\n          </motion.div>\n          <AnimatePresence mode=\"wait\">\n            {isLoadingBalance ? (\n              <motion.div\n                key=\"loader\"\n                className=\"grid items-center justify-end\"\n                initial={{ opacity: 0, y: 20 }}\n                animate={{ opacity: 1, y: 0 }}\n                exit={{ opacity: 0, y: 20 }}\n                transition={{ duration: 0.3 }}\n              >\n                <div className=\"flex\">\n                  <Loader noWidth={true} />\n                </div>\n              </motion.div>\n            ) : musicXBalance <= 0 ? (\n              <motion.div\n                key=\"contact\"\n                initial={{ opacity: 0, y: 20 }}\n                animate={{ opacity: 1, y: 0 }}\n                exit={{ opacity: 0, y: 20 }}\n                transition={{ duration: 0.3 }}\n              >\n                <ContactAbhi />\n              </motion.div>\n            ) : (\n              <motion.div\n                key=\"balance\"\n                className=\"flex items-center gap-2 font-semibold text-primary\"\n                initial={{ opacity: 0, y: 20 }}\n                animate={{ opacity: 1, y: 0 }}\n                exit={{ opacity: 0, y: 20 }}\n                transition={{ duration: 0.3 }}\n              >\n                <motion.p\n                  className=\"text-primary\"\n                  initial={{ opacity: 0 }}\n                  animate={{ opacity: 1 }}\n                  transition={{ delay: 0.3 }}\n                >\n                  {musicXBalance === \"0\" ? \"0\" : musicXBalance.slice(0, -18)}\n                </motion.p>\n                <motion.div\n                  initial={{ scale: 0 }}\n                  animate={{ scale: 1 }}\n                  transition={{ delay: 0.4, type: \"spring\", stiffness: 200 }}\n                >\n                  <Image\n                    src={\"/icons/token-coin.svg\"}\n                    width={25}\n                    height={25}\n                    alt=\"coin\"\n                  />\n                </motion.div>\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </motion.div>\n        <motion.div\n          className=\"flex flex-col space-y-6 p-4 mt-4\"\n          initial={{ opacity: 0, y: 20 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{ delay: 0.5, staggerChildren: 0.1 }}\n        >\n          {menuItems.map((item, index) => {\n            const Icon = item.icon;\n            return (\n              <motion.div\n                key={item.name}\n                className={`flex items-center space-x-2 cursor-pointer transition-transform transform ${\n                  selectedLayout === item.name.toLowerCase()\n                    ? \"text-primary\"\n                    : \"text-muted-foreground\"\n                }`}\n                onClick={() => handleClick(item.name)}\n                initial={{ opacity: 0, x: -20 }}\n                animate={{ opacity: 1, x: 0 }}\n                transition={{ delay: 0.6 + index * 0.1 }}\n                whileHover={{ scale: 1.05 }}\n                whileTap={{ scale: 0.95 }}\n              >\n                <Icon className=\"h-6 w-6\" />\n                <span>{item.name}</span>\n              </motion.div>\n            );\n          })}\n        </motion.div>\n      </ResizablePanel>\n\n      <ResizableHandle />\n      <ResizablePanel defaultSize={120}>\n        <div className=\"p-6\">\n          {selectedLayout === \"home\" && (\n            <div className=\"mt-10\">\n              <HomePage />\n            </div>\n          )}\n          {selectedLayout === \"song\" && (\n            <div className=\"h-full flex items-center justify-center mt-10\">\n              <img\n                src={musicPlayer.coverImage || \"/nft.avif\"}\n                width={600}\n                height={600}\n                className=\"rounded-lg drop-shadow-md aspect-square\"\n              />\n            </div>\n          )}\n          {selectedLayout === \"profile\" && <Profile />}\n          {selectedLayout === \"explore\" && (\n            <Explore setSelectedLayout={setSelectedLayout} w0={w0} />\n          )}\n          {selectedLayout.includes(\"view-song\") && (\n            <Song\n              selectedLayout={selectedLayout}\n              setSelectedLayout={setSelectedLayout}\n              getMusicXTokenBalance={getMusicXTokenBalance}\n            />\n          )}\n          {selectedLayout === \"playlist\" && (\n            <Playlist\n              selectedLayout={selectedLayout}\n              setSelectedLayout={setSelectedLayout}\n            />\n          )}\n          {selectedLayout === \"my songs\" && (\n            <MyMusic\n              selectedLayout={selectedLayout}\n              setSelectedLayout={setSelectedLayout}\n            />\n          )}\n        </div>\n      </ResizablePanel>\n      <ResizableHandle />\n      <ResizablePanel defaultSize={50}>\n        <ResizablePanelGroup direction=\"vertical\">\n          <ResizablePanel defaultSize={75}>\n            <Login w0={w0} />\n            <div className=\"p-6 flex items-center gap-4\">\n              <Badge\n                className={\n                  selectedMode === \"songs\"\n                    ? \"bg-primary text-white cursor-pointer\"\n                    : \"bg-transparent text-foreground hover:bg-muted cursor-pointer\"\n                }\n                onClick={() => setSelectedMode(\"songs\")}\n              >\n                Songs\n              </Badge>\n              <Badge\n                className={\n                  selectedMode === \"playlists\"\n                    ? \"bg-primary text-white cursor-pointer\"\n                    : \"bg-transparent text-foreground hover:bg-muted cursor-pointer\"\n                }\n                onClick={() => setSelectedMode(\"playlists\")}\n              >\n                Playlists\n              </Badge>\n            </div>\n            <div className=\"h-[85vh] overflow-y-auto scrollbar-hide\">\n              {selectedMode === \"playlists\" ? (\n                <Playlists\n                  playlists={playlists}\n                  clickedIdx={clickedIdx}\n                  handleSelectedMusicPlay={handleSelectedMusicPlay}\n                  setClickedIdx={setClickedIdx}\n                />\n              ) : (\n                <MusicList\n                  purchasedSongs={purchasedSongs}\n                  clickedIdx={clickedIdx}\n                  handleSelectedMusicPlay={handleSelectedMusicPlay}\n                  setClickedIdx={setClickedIdx}\n                />\n              )}\n              {/* {console.log(purchasedSongs)} */}\n            </div>\n          </ResizablePanel>\n        </ResizablePanelGroup>\n      </ResizablePanel>\n    </ResizablePanelGroup>\n  );\n}\n\nconst Playlists = ({\n  playlists,\n  clickedIdx,\n  setClickedIdx,\n  handleSelectedMusicPlay,\n}) => {\n  const [selectedPlaylist, setSelectedPlaylist] = useState(null);\n\n  const handlePlaylistClick = (playlist) => {\n    setSelectedPlaylist(playlist);\n  };\n\n  const containerVariants = {\n    hidden: { opacity: 0 },\n    visible: {\n      opacity: 1,\n      transition: {\n        staggerChildren: 0.1,\n      },\n    },\n  };\n\n  const itemVariants = {\n    hidden: { y: 20, opacity: 0 },\n    visible: {\n      y: 0,\n      opacity: 1,\n      transition: {\n        type: \"spring\",\n        stiffness: 300,\n        damping: 24,\n      },\n    },\n  };\n\n  return (\n    <motion.div\n      className=\"px-6\"\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      <AnimatePresence mode=\"wait\">\n        {selectedPlaylist ? (\n          <motion.div\n            key=\"playlist\"\n            initial={{ opacity: 0, x: 50 }}\n            animate={{ opacity: 1, x: 0 }}\n            exit={{ opacity: 0, x: -50 }}\n            transition={{ type: \"spring\", stiffness: 300, damping: 30 }}\n            className=\"space-y-4\"\n          >\n            <div className=\"flex items-center gap-3 mb-6\">\n              <motion.div whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.9 }}>\n                <ArrowLeftIcon\n                  className=\"w-4 h-4 cursor-pointer\"\n                  onClick={() => setSelectedPlaylist(null)}\n                />\n              </motion.div>\n              <motion.h2\n                className=\"text-xl font-semibold\"\n                initial={{ opacity: 0 }}\n                animate={{ opacity: 1 }}\n                transition={{ delay: 0.2 }}\n              >\n                {selectedPlaylist.name}\n              </motion.h2>\n            </div>\n\n            <motion.div\n              variants={containerVariants}\n              initial=\"hidden\"\n              animate=\"visible\"\n              className=\"space-y-4\"\n            >\n              {selectedPlaylist.tracks.map((track, index) => (\n                <motion.div\n                  key={index}\n                  variants={itemVariants}\n                  whileHover={{ scale: 1.02 }}\n                  className=\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border\"\n                >\n                  <div className=\"w-full flex items-center gap-4\">\n                    <motion.img\n                      src={track.cover}\n                      alt={track.title}\n                      className=\"w-12 h-12 rounded-md\"\n                      whileHover={{ scale: 1.1 }}\n                      whileTap={{ scale: 0.9 }}\n                    />\n                    <div>\n                      <motion.p\n                        className=\"font-semibold\"\n                        initial={{ opacity: 0 }}\n                        animate={{ opacity: 1 }}\n                        transition={{ delay: 0.2 }}\n                      >\n                        {track.title}\n                      </motion.p>\n                      <motion.p\n                        className=\"text-sm text-gray-500\"\n                        initial={{ opacity: 0 }}\n                        animate={{ opacity: 1 }}\n                        transition={{ delay: 0.3 }}\n                      >\n                        {track.artist}\n                      </motion.p>\n                    </div>\n                  </div>\n                  <div className=\"grid place-items-center\">\n                    <motion.div\n                      className=\"rounded-full p-1.5 bg-primary cursor-pointer\"\n                      whileHover={{ scale: 1.1 }}\n                      whileTap={{ scale: 0.9 }}\n                      onClick={() => {\n                        handleSelectedMusicPlay(index);\n                        setClickedIdx(index);\n                      }}\n                    >\n                      <AnimatePresence mode=\"wait\">\n                        {clickedIdx === index ? (\n                          <motion.div\n                            key=\"pause\"\n                            initial={{ scale: 0 }}\n                            animate={{ scale: 1 }}\n                            exit={{ scale: 0 }}\n                          >\n                            <PauseIcon className=\"w-3 h-3 text-white\" />\n                          </motion.div>\n                        ) : (\n                          <motion.div\n                            key=\"play\"\n                            initial={{ scale: 0 }}\n                            animate={{ scale: 1 }}\n                            exit={{ scale: 0 }}\n                          >\n                            <PlayIcon className=\"w-3 h-3 text-white\" />\n                          </motion.div>\n                        )}\n                      </AnimatePresence>\n                    </motion.div>\n                  </div>\n                </motion.div>\n              ))}\n            </motion.div>\n          </motion.div>\n        ) : (\n          <motion.div\n            key=\"playlists\"\n            variants={containerVariants}\n            className=\"space-y-4\"\n          >\n            {playlists.map((playlist, index) => (\n              <motion.div\n                key={index}\n                variants={itemVariants}\n                whileHover={{ scale: 1.02 }}\n                className=\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border cursor-pointer\"\n                onClick={() => handlePlaylistClick(playlist)}\n              >\n                <div className=\"w-full flex items-center gap-4\">\n                  <motion.img\n                    src={playlist.image}\n                    alt=\"cover\"\n                    className=\"w-12 h-12 rounded-md\"\n                    whileHover={{ scale: 1.1 }}\n                    whileTap={{ scale: 0.9 }}\n                  />\n                  <div>\n                    <motion.p\n                      className=\"font-semibold\"\n                      initial={{ opacity: 0 }}\n                      animate={{ opacity: 1 }}\n                      transition={{ delay: 0.2 }}\n                    >\n                      {playlist.name}\n                    </motion.p>\n                    <motion.p\n                      className=\"text-sm text-gray-500\"\n                      initial={{ opacity: 0 }}\n                      animate={{ opacity: 1 }}\n                      transition={{ delay: 0.3 }}\n                    >\n                      {playlist.tracks.length} songs\n                    </motion.p>\n                  </div>\n                </div>\n              </motion.div>\n            ))}\n          </motion.div>\n        )}\n      </AnimatePresence>\n    </motion.div>\n  );\n};\n\nconst MusicList = ({\n  purchasedSongs,\n  clickedIdx,\n  setClickedIdx,\n  handleSelectedMusicPlay,\n}) => {\n  console.log(purchasedSongs);\n  const containerVariants = {\n    hidden: { opacity: 0 },\n    visible: {\n      opacity: 1,\n      transition: {\n        staggerChildren: 0.1,\n      },\n    },\n  };\n\n  const itemVariants = {\n    hidden: { y: 20, opacity: 0 },\n    visible: {\n      y: 0,\n      opacity: 1,\n      transition: {\n        type: \"spring\",\n        stiffness: 300,\n        damping: 24,\n      },\n    },\n  };\n\n  return (\n    <motion.div\n      className=\"px-6 space-y-4\"\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      {purchasedSongs.length > 0 ? (\n        purchasedSongs.map((song, index) => (\n          <motion.div\n            key={song.id}\n            variants={itemVariants}\n            whileHover={{ scale: 1.02 }}\n            className=\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border\"\n          >\n            <div className=\"w-full flex items-center gap-4\">\n              <motion.img\n                src={song.image}\n                alt={song.title}\n                className=\"w-12 h-12 rounded-md object-cover\"\n                whileHover={{ scale: 1.1 }}\n                whileTap={{ scale: 0.9 }}\n              />\n              <div>\n                <motion.p\n                  className=\"font-semibold\"\n                  initial={{ opacity: 0 }}\n                  animate={{ opacity: 1 }}\n                  transition={{ delay: 0.2 }}\n                >\n                  {song.title}\n                </motion.p>\n                <motion.p\n                  className=\"text-sm text-gray-500\"\n                  initial={{ opacity: 0 }}\n                  animate={{ opacity: 1 }}\n                  transition={{ delay: 0.3 }}\n                >\n                  {song.description}\n                </motion.p>\n              </div>\n            </div>\n            <div className=\"grid place-items-center\">\n              <motion.div\n                className=\"rounded-full p-1.5 bg-primary cursor-pointer\"\n                whileHover={{ scale: 1.1 }}\n                whileTap={{ scale: 0.9 }}\n                onClick={() => {\n                  handleSelectedMusicPlay({\n                    title: song.title,\n                    artist: song.description,\n                    soundUri: `/api/hashsong/${Number(song.cid)}`,\n                    cover: song.image,\n                  });\n                  setClickedIdx(index);\n                }}\n              >\n                <AnimatePresence mode=\"wait\">\n                  {clickedIdx === index ? (\n                    <motion.div\n                      key=\"pause\"\n                      initial={{ scale: 0 }}\n                      animate={{ scale: 1 }}\n                      exit={{ scale: 0 }}\n                    >\n                      <PauseIcon className=\"w-3 h-3 text-white\" />\n                    </motion.div>\n                  ) : (\n                    <motion.div\n                      key=\"play\"\n                      initial={{ scale: 0 }}\n                      animate={{ scale: 1 }}\n                      exit={{ scale: 0 }}\n                    >\n                      <PlayIcon className=\"w-3 h-3 text-white\" />\n                    </motion.div>\n                  )}\n                </AnimatePresence>\n              </motion.div>\n            </div>\n          </motion.div>\n        ))\n      ) : (\n        <motion.div\n          variants={itemVariants}\n          className=\"text-center text-gray-500 py-8\"\n        >\n          No purchased songs found.\n        </motion.div>\n      )}\n    </motion.div>\n  );\n};\n\nexport default MusicList;\n"
  },
  {
    "path": "client/src/components/song/rent.js",
    "content": "import React, { useState } from \"react\";\nimport {\n  AlertDialog,\n  AlertDialogAction,\n  AlertDialogCancel,\n  AlertDialogContent,\n  AlertDialogDescription,\n  AlertDialogFooter,\n  AlertDialogHeader,\n  AlertDialogTitle,\n  AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\";\nimport { Button } from \"@/components/ui/button\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport { Contract } from \"ethers\";\nimport { motion } from \"framer-motion\";\nimport { Input } from \"../ui/input\";\nimport { toast } from \"sonner\";\n\nexport function RentAlert({ metadata, songId, isowner }) {\n  const [tokenId, setTokenId] = useState(songId);\n  const [rentPrice, setRentPrice] = useState(\"\");\n  const [rentDuration, setRentDuration] = useState(\"\");\n  const { authenticated, ready } = usePrivy();\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n\n  const handleSetRent = async () => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const res = await contract.setRentInfo(tokenId, rentPrice, rentDuration, {\n        gasLimit: 700000,\n      });\n      await res.wait();\n      console.log(\"Rent set successfully:\", res);\n      toast.success(\"Rent set successfully!\");\n    } catch (error) {\n      toast.error(\"Failed to set rent. Please try again.\");\n      console.error(\"Error setting rent:\", error);\n    }\n  };\n\n  const handleRent = async () => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      if (isowner) {\n        // Assuming there's a rentNFT function in the contract\n        const res = await contract.rentNFT(tokenId, {\n          value: rentPrice,\n          gasLimit: 700000,\n        });\n        await res.wait();\n        console.log(\"NFT rentInfo updated successfully:\", res);\n        toast.success(\"NFT rentInfo updated successfully!\");\n      } else {\n        // Assuming there's a rentNFT function in the contract\n        const res = await contract.rentNFT(tokenId, {\n          //   value: metadata.rentPrice,\n          gasLimit: 700000,\n        });\n        await res.wait();\n        console.log(\"NFT rented successfully:\", res);\n        toast.success(\"NFT rented successfully!\");\n      }\n    } catch (error) {\n      toast.error(\"Failed to rent NFT. Please try again.\");\n      console.error(\"Error renting NFT:\", error);\n    }\n  };\n\n  return (\n    <AlertDialog>\n      <AlertDialogTrigger asChild>\n        <motion.button\n          whileHover={{ scale: 1.05 }}\n          whileTap={{ scale: 0.95 }}\n          className=\"mt-6 border dark:text-white text-black font-semibold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:-translate-y-1 hover:shadow-xl\"\n        >\n          {isowner ? \"Set Rent\" : \"Rent\"}\n        </motion.button>\n      </AlertDialogTrigger>\n      <AlertDialogContent>\n        <AlertDialogHeader>\n          <AlertDialogTitle>\n            {isowner\n              ? `Set Rent for ${metadata.name}`\n              : `Rent ${metadata.name}`}\n          </AlertDialogTitle>\n          <AlertDialogDescription>\n            {isowner\n              ? \"Set the rental parameters for your NFT. This action can be modified later.\"\n              : \"Rent this NFT for the specified duration.\"}\n          </AlertDialogDescription>\n          <div className=\"space-y-4 mt-4\">\n            <div>\n              <label\n                htmlFor=\"tokenId\"\n                className=\"block text-sm font-medium text-gray-700\"\n              >\n                Token ID\n              </label>\n              <Input\n                id=\"tokenId\"\n                value={tokenId}\n                onChange={(e) => setTokenId(e.target.value)}\n                placeholder=\"Token ID\"\n                className=\"mt-1\"\n                readOnly\n              />\n            </div>\n            {isowner ? (\n              <>\n                <div>\n                  <label\n                    htmlFor=\"rentPrice\"\n                    className=\"block text-sm font-medium text-gray-700\"\n                  >\n                    Rent Price (in wei)\n                  </label>\n                  <Input\n                    id=\"rentPrice\"\n                    value={rentPrice}\n                    onChange={(e) => setRentPrice(e.target.value)}\n                    placeholder=\"Rent Price\"\n                    className=\"mt-1\"\n                  />\n                </div>\n                <div>\n                  <label\n                    htmlFor=\"rentDuration\"\n                    className=\"block text-sm font-medium text-gray-700\"\n                  >\n                    Rent Duration (in seconds)\n                  </label>\n                  <Input\n                    id=\"rentDuration\"\n                    value={rentDuration}\n                    onChange={(e) => setRentDuration(e.target.value)}\n                    placeholder=\"Rent Duration\"\n                    className=\"mt-1\"\n                  />\n                </div>\n              </>\n            ) : (\n              <>\n                <div>\n                  <label\n                    htmlFor=\"rentPrice\"\n                    className=\"block text-sm font-medium text-gray-700\"\n                  >\n                    Rent Price\n                  </label>\n                  <Input\n                    id=\"rentPrice\"\n                    value={metadata.rentPrice || \"Not set\"}\n                    className=\"mt-1\"\n                    readOnly\n                  />\n                </div>\n                <div>\n                  <label\n                    htmlFor=\"rentDuration\"\n                    className=\"block text-sm font-medium text-gray-700\"\n                  >\n                    Rent Duration\n                  </label>\n                  <Input\n                    id=\"rentDuration\"\n                    value={metadata.rentDuration || \"Not set\"}\n                    className=\"mt-1\"\n                    readOnly\n                  />\n                </div>\n              </>\n            )}\n          </div>\n        </AlertDialogHeader>\n        <AlertDialogFooter>\n          <AlertDialogCancel>Cancel</AlertDialogCancel>\n          <AlertDialogAction onClick={isowner ? handleSetRent : handleRent}>\n            {isowner ? \"Set Rent\" : \"Rent Now\"}\n          </AlertDialogAction>\n        </AlertDialogFooter>\n      </AlertDialogContent>\n    </AlertDialog>\n  );\n}\n"
  },
  {
    "path": "client/src/components/song/song.js",
    "content": "import React, { useState, useEffect } from \"react\";\nimport { motion } from \"framer-motion\";\nimport { IoIosArrowUp } from \"react-icons/io\";\nimport { usePrivy, useWallets } from \"@privy-io/react-auth\";\nimport { Contract, ethers } from \"ethers\";\nimport { toast } from \"sonner\";\nimport {\n  musicXContractABI,\n  musicXContractAddress,\n  ownSoundContractABI,\n  ownSoundContractAddress,\n} from \"@/utils/contract\";\nimport { RentAlert } from \"./rent\";\nimport Loader from \"../loader\";\n\nconst Song = ({ selectedLayout, setSelectedLayout, getMusicXTokenBalance }) => {\n  const { authenticated, ready } = usePrivy();\n  const { wallets } = useWallets();\n  const [songDetailsLoading, setSongDetailsLoading] = useState(true);\n  const [approvalLoading, setApprovalLoading] = useState(false);\n  const [purchaseLoading, setPurchaseLoading] = useState(false);\n  const [isPurchased, setIsPurchased] = useState(false);\n  const w0 = wallets[0];\n  const [songDetails, setSongDetails] = useState(null);\n\n  const songId = selectedLayout.split(\"view-song/\")[1];\n\n  const getSongDetails = async (id) => {\n    try {\n      setSongDetailsLoading(true);\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const res = await contract.getNFTMetadata(id);\n      console.log(res);\n\n      // Parse the response\n      const parsedDetails = {\n        id: res[0].toNumber(),\n        isListed: res[1],\n        price: res[0].toNumber(),\n        name: res[3],\n        description: res[4],\n        imageUrl: res[5],\n        audioUrl: res[6],\n        isRentable: res[7],\n        rentPrice: res[8].toNumber(),\n        royaltyPercentage: res[9].toNumber(),\n        creator: res[10],\n        totalRents: res[11].toNumber(),\n        createdAt: new Date().toLocaleDateString(), //current date,\n      };\n\n      console.log(parsedDetails);\n\n      const rentTime = await contract.getRentableTokens();\n      if (rentTime.length === 0) {\n        console.log(\"No rentable tokens\");\n        setSongDetails({ ...parsedDetails, rentPrice: 0 });\n        return;\n      }\n      console.log(rentTime);\n      const s = rentTime[0][1];\n      const rentDetails = {\n        songName: s[3],\n        songSymbol: s[4],\n        imageUrl: s[5],\n        isRentable: s[8],\n        rentPrice: s[9].toString(),\n        rentDuration: s[10],\n        ownerAddress: s[11],\n        rentStartTime: s[13],\n      };\n      console.log(rentDetails);\n      const parsedPrice = ethers.utils.parseEther(\n        parsedDetails.price.toString()\n      );\n      console.log(parsedPrice.toString());\n\n      setSongDetails({ ...parsedDetails, rentPrice: rentDetails.rentPrice });\n    } catch (error) {\n      console.error(\"Error fetching song details:\", error);\n      toast.error(\"Failed to fetch song details\");\n    } finally {\n      setSongDetailsLoading(false);\n    }\n  };\n\n  const getOwnershipInfo = async (id) => {\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const res = await contract.ownershipInfo(id, w0.address);\n      console.log(res);\n\n      // Check if the user has already purchased the song\n      setIsPurchased(res[0]);\n    } catch (error) {\n      console.error(\"Error fetching ownership info:\", error);\n      toast.error(\"Failed to fetch ownership information\");\n    }\n  };\n  console.log(songId);\n  useEffect(() => {\n    if (ready && authenticated && w0?.address !== undefined) {\n      getOwnershipInfo(songId);\n      getSongDetails(songId);\n    }\n  }, [songId, ready, authenticated, w0?.address]);\n\n  const buyNFT = async (id) => {\n    try {\n      setPurchaseLoading(true);\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const contract1 = new Contract(\n        musicXContractAddress,\n        musicXContractABI,\n        signer\n      );\n\n      // Check if the user has approved the contract to spend their tokens\n      const allowance = await contract1.allowance(\n        await signer.getAddress(),\n        ownSoundContractAddress\n      );\n\n      if (allowance.lt(ethers.utils.parseEther(songDetails.price.toString()))) {\n        // If the allowance is not enough, prompt the user to approve the contract\n        setApprovalLoading(true);\n        const approveTx = await contract1.approve(\n          ownSoundContractAddress,\n          ethers.utils.parseEther(songDetails.price.toString()),\n          { gasLimit: 300000 }\n        );\n        await approveTx.wait(1);\n        setApprovalLoading(false);\n      }\n\n      // After approval, buy the NFT\n      const txn = await contract.buyNFT(id, { gasLimit: 300000 });\n      await txn.wait(1);\n\n      // Refresh the song details after the purchase\n      await getSongDetails(id);\n      // await getMusicXTokenBalance();\n      toast.success(\"NFT purchased successfully!\");\n    } catch (error) {\n      console.error(\"Error buying NFT:\", error);\n      if (\n        error.message.includes(\"ERC20: insufficient allowance\") ||\n        error.message.includes(\"user denied transaction signature\")\n      ) {\n        toast.error(\n          \"You need to approve the contract to spend your tokens. Click the 'Approve' button to continue.\"\n        );\n      } else {\n        toast.error(\"Failed to purchase NFT. Please try again later.\");\n      }\n    } finally {\n      setPurchaseLoading(false);\n    }\n  };\n\n  if (songDetailsLoading) {\n    return (\n      <div className=\"text-center mt-80 w-full grid place-items-center\">\n        <Loader />\n      </div>\n    );\n  }\n\n  if (!songDetails) {\n    return <div className=\"text-center mt-8\">No song details available.</div>;\n  }\n\n  return (\n    <div className=\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\">\n      <motion.div\n        initial={{ opacity: 0, y: -50 }}\n        animate={{ opacity: 1, y: 0 }}\n        transition={{ duration: 0.5 }}\n        className=\"scroll-m-20 border-b pb-4 pt-2 text-3xl font-semibold tracking-tight sticky top-0 z-[50] bg-background w-full flex items-center gap-4\"\n      >\n        <div\n          className=\"hover:bg-muted text-foreground p-1.5 cursor-pointer rounded-full\"\n          onClick={() => setSelectedLayout(\"explore\")}\n        >\n          <IoIosArrowUp size={24} className=\"-rotate-90\" />\n        </div>\n        Song Details\n      </motion.div>\n\n      <div className=\"flex flex-col md:flex-row gap-8 px-4 md:px-8\">\n        <motion.div\n          initial={{ opacity: 0, scale: 0.8 }}\n          animate={{ opacity: 1, scale: 1 }}\n          transition={{ duration: 0.5, delay: 0.2 }}\n          className=\"w-full md:w-1/3\"\n        >\n          <img\n            src={songDetails.imageUrl}\n            alt={songDetails.name}\n            className=\"w-full h-auto rounded-lg shadow-lg hover:shadow-2xl transition-shadow duration-300\"\n          />\n        </motion.div>\n\n        <motion.div\n          initial={{ opacity: 0, x: 50 }}\n          animate={{ opacity: 1, x: 0 }}\n          transition={{ duration: 0.5, delay: 0.4 }}\n          className=\"w-full md:w-2/3 space-y-4\"\n        >\n          <h2 className=\"text-4xl font-bold text-primary\">\n            {songDetails.name}\n          </h2>\n          <p className=\"text-xl text-muted-foreground\">\n            Creator: {songDetails.creator}\n          </p>\n          <p className=\"text-muted-foreground\">{songDetails.description}</p>\n\n          <div className=\"grid grid-cols-2 gap-4 mt-6\">\n            <div className=\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\">\n              <p className=\"text-foreground dark:text-gray-400\">Price</p>\n              <p className=\"text-2xl font-semibold text-green-400\">\n                {songDetails.price} MSX\n              </p>\n            </div>\n            <div className=\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\">\n              <p className=\"text-foreground dark:text-gray-400\">Royalty</p>\n              <p className=\"text-2xl font-semibold text-yellow-400\">\n                {songDetails.royaltyPercentage}%\n              </p>\n            </div>\n            <div className=\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\">\n              <p className=\"text-foreground dark:text-gray-400\">Rentable</p>\n              <p className=\"text-xl font-semibold text-blue-400\">\n                {songDetails.isRentable ? \"Yes\" : \"No\"}\n              </p>\n            </div>\n            <div className=\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\">\n              <p className=\"text-foreground dark:text-gray-400\">Rent Price</p>\n              <p className=\"text-xl font-semibold text-pink-400\">\n                {songDetails.rentPrice} MSX\n              </p>\n            </div>\n          </div>\n\n          <p className=\"text-muted-foreground mt-4\">\n            Created on: {songDetails.createdAt}\n          </p>\n          {console.log(songId)}\n          {songDetails.creator !== w0.address ? (\n            <div className=\"flex items-center gap-3\">\n              {songDetails.isRentable && (\n                <RentAlert\n                  metadata={songDetails}\n                  songId={songId}\n                  isowner={isPurchased}\n                />\n              )}\n              {!isPurchased && songDetails.isListed && (\n                <motion.button\n                  whileHover={{ scale: 1.05 }}\n                  whileTap={{ scale: 0.95 }}\n                  className=\"mt-6 bg-primary hover:bg-purple-700 text-white font-semibold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:-translate-y-1 hover:shadow-xl\"\n                  onClick={() => buyNFT(songId)}\n                  disabled={purchaseLoading || approvalLoading}\n                >\n                  {purchaseLoading\n                    ? \"Purchasing...\"\n                    : approvalLoading\n                    ? \"Approving...\"\n                    : \"Purchase Now\"}\n                </motion.button>\n              )}\n              {/* {isPurchased && (\n                <p className=\"text-green-500 font-semibold\">\n                  You have already purchased this song.\n                </p>\n              )} */}\n            </div>\n          ) : (\n            <p className=\"text-red-500\">\n              You cannot purchase your own song. You are the creator of this\n            </p>\n          )}\n        </motion.div>\n      </div>\n    </div>\n  );\n};\n\nexport default Song;\n"
  },
  {
    "path": "client/src/components/ui/alert-dialog.jsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\n\nconst AlertDialog = AlertDialogPrimitive.Root\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal\n\nconst AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Overlay\n    className={cn(\n      \"fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n      className\n    )}\n    {...props}\n    ref={ref} />\n))\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName\n\nconst AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (\n  <AlertDialogPortal>\n    <AlertDialogOverlay />\n    <AlertDialogPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n        className\n      )}\n      {...props} />\n  </AlertDialogPortal>\n))\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName\n\nconst AlertDialogHeader = ({\n  className,\n  ...props\n}) => (\n  <div\n    className={cn(\"flex flex-col space-y-2 text-center sm:text-left\", className)}\n    {...props} />\n)\nAlertDialogHeader.displayName = \"AlertDialogHeader\"\n\nconst AlertDialogFooter = ({\n  className,\n  ...props\n}) => (\n  <div\n    className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\n    {...props} />\n)\nAlertDialogFooter.displayName = \"AlertDialogFooter\"\n\nconst AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Title ref={ref} className={cn(\"text-lg font-semibold\", className)} {...props} />\n))\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName\n\nconst AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props} />\n))\nAlertDialogDescription.displayName =\n  AlertDialogPrimitive.Description.displayName\n\nconst AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />\n))\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName\n\nconst AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Cancel\n    ref={ref}\n    className={cn(buttonVariants({ variant: \"outline\" }), \"mt-2 sm:mt-0\", className)}\n    {...props} />\n))\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName\n\nexport {\n  AlertDialog,\n  AlertDialogPortal,\n  AlertDialogOverlay,\n  AlertDialogTrigger,\n  AlertDialogContent,\n  AlertDialogHeader,\n  AlertDialogFooter,\n  AlertDialogTitle,\n  AlertDialogDescription,\n  AlertDialogAction,\n  AlertDialogCancel,\n}\n"
  },
  {
    "path": "client/src/components/ui/badge.jsx",
    "content": "import * as React from \"react\"\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n  {\n    variants: {\n      variant: {\n        default:\n          \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n        secondary:\n          \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n        destructive:\n          \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n        outline: \"text-foreground\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant,\n  ...props\n}) {\n  return (<div className={cn(badgeVariants({ variant }), className)} {...props} />);\n}\n\nexport { Badge, badgeVariants }\n"
  },
  {
    "path": "client/src/components/ui/button.jsx",
    "content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n        destructive:\n          \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n        outline:\n          \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n        ghost: \"hover:bg-accent hover:text-accent-foreground\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default: \"h-10 px-4 py-2\",\n        sm: \"h-9 rounded-md px-3\",\n        lg: \"h-11 rounded-md px-8\",\n        icon: \"h-10 w-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nconst Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {\n  const Comp = asChild ? Slot : \"button\"\n  return (\n    (<Comp\n      className={cn(buttonVariants({ variant, size, className }))}\n      ref={ref}\n      {...props} />)\n  );\n})\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n"
  },
  {
    "path": "client/src/components/ui/card.jsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Card = React.forwardRef(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"rounded-lg border bg-card text-card-foreground shadow-sm\", className)}\n    {...props} />\n))\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\n    {...props} />\n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef(({ className, ...props }, ref) => (\n  <h3\n    ref={ref}\n    className={cn(\"text-2xl font-semibold leading-none tracking-tight\", className)}\n    {...props} />\n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef(({ className, ...props }, ref) => (\n  <p\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props} />\n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex items-center p-6 pt-0\", className)}\n    {...props} />\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n"
  },
  {
    "path": "client/src/components/ui/dropdown-menu.jsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (\n  <DropdownMenuPrimitive.SubTrigger\n    ref={ref}\n    className={cn(\n      \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}>\n    {children}\n    <ChevronRight className=\"ml-auto h-4 w-4\" />\n  </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n  DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (\n  <DropdownMenuPrimitive.SubContent\n    ref={ref}\n    className={cn(\n      \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n      className\n    )}\n    {...props} />\n))\nDropdownMenuSubContent.displayName =\n  DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (\n  <DropdownMenuPrimitive.Portal>\n    <DropdownMenuPrimitive.Content\n      ref={ref}\n      sideOffset={sideOffset}\n      className={cn(\n        \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        className\n      )}\n      {...props} />\n  </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (\n  <DropdownMenuPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props} />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (\n  <DropdownMenuPrimitive.CheckboxItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    checked={checked}\n    {...props}>\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <DropdownMenuPrimitive.ItemIndicator>\n        <Check className=\"h-4 w-4\" />\n      </DropdownMenuPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n  DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (\n  <DropdownMenuPrimitive.RadioItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    {...props}>\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <DropdownMenuPrimitive.ItemIndicator>\n        <Circle className=\"h-2 w-2 fill-current\" />\n      </DropdownMenuPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (\n  <DropdownMenuPrimitive.Label\n    ref={ref}\n    className={cn(\"px-2 py-1.5 text-sm font-semibold\", inset && \"pl-8\", className)}\n    {...props} />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (\n  <DropdownMenuPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n    {...props} />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n  className,\n  ...props\n}) => {\n  return (\n    (<span\n      className={cn(\"ml-auto text-xs tracking-widest opacity-60\", className)}\n      {...props} />)\n  );\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n\nexport {\n  DropdownMenu,\n  DropdownMenuTrigger,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuCheckboxItem,\n  DropdownMenuRadioItem,\n  DropdownMenuLabel,\n  DropdownMenuSeparator,\n  DropdownMenuShortcut,\n  DropdownMenuGroup,\n  DropdownMenuPortal,\n  DropdownMenuSub,\n  DropdownMenuSubContent,\n  DropdownMenuSubTrigger,\n  DropdownMenuRadioGroup,\n}\n"
  },
  {
    "path": "client/src/components/ui/input.jsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Input = React.forwardRef(({ className, type, ...props }, ref) => {\n  return (\n    (<input\n      type={type}\n      className={cn(\n        \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n        className\n      )}\n      ref={ref}\n      {...props} />)\n  );\n})\nInput.displayName = \"Input\"\n\nexport { Input }\n"
  },
  {
    "path": "client/src/components/ui/label.jsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\"\n\nconst labelVariants = cva(\n  \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n)\n\nconst Label = React.forwardRef(({ className, ...props }, ref) => (\n  <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n"
  },
  {
    "path": "client/src/components/ui/resizable.jsx",
    "content": "\"use client\"\n\nimport { GripVertical } from \"lucide-react\"\nimport * as ResizablePrimitive from \"react-resizable-panels\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ResizablePanelGroup = ({\n  className,\n  ...props\n}) => (\n  <ResizablePrimitive.PanelGroup\n    className={cn(\n      \"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\",\n      className\n    )}\n    {...props} />\n)\n\nconst ResizablePanel = ResizablePrimitive.Panel\n\nconst ResizableHandle = ({\n  withHandle,\n  className,\n  ...props\n}) => (\n  <ResizablePrimitive.PanelResizeHandle\n    className={cn(\n      \"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90\",\n      className\n    )}\n    {...props}>\n    {withHandle && (\n      <div\n        className=\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\">\n        <GripVertical className=\"h-2.5 w-2.5\" />\n      </div>\n    )}\n  </ResizablePrimitive.PanelResizeHandle>\n)\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle }\n"
  },
  {
    "path": "client/src/components/ui/select.jsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => (\n  <SelectPrimitive.Trigger\n    ref={ref}\n    className={cn(\n      \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n      className\n    )}\n    {...props}>\n    {children}\n    <SelectPrimitive.Icon asChild>\n      <ChevronDown className=\"h-4 w-4 opacity-50\" />\n    </SelectPrimitive.Icon>\n  </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => (\n  <SelectPrimitive.ScrollUpButton\n    ref={ref}\n    className={cn(\"flex cursor-default items-center justify-center py-1\", className)}\n    {...props}>\n    <ChevronUp className=\"h-4 w-4\" />\n  </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => (\n  <SelectPrimitive.ScrollDownButton\n    ref={ref}\n    className={cn(\"flex cursor-default items-center justify-center py-1\", className)}\n    {...props}>\n    <ChevronDown className=\"h-4 w-4\" />\n  </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n  SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef(({ className, children, position = \"popper\", ...props }, ref) => (\n  <SelectPrimitive.Portal>\n    <SelectPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        position === \"popper\" &&\n          \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n        className\n      )}\n      position={position}\n      {...props}>\n      <SelectScrollUpButton />\n      <SelectPrimitive.Viewport\n        className={cn(\"p-1\", position === \"popper\" &&\n          \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\")}>\n        {children}\n      </SelectPrimitive.Viewport>\n      <SelectScrollDownButton />\n    </SelectPrimitive.Content>\n  </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef(({ className, ...props }, ref) => (\n  <SelectPrimitive.Label\n    ref={ref}\n    className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n    {...props} />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef(({ className, children, ...props }, ref) => (\n  <SelectPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    {...props}>\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <SelectPrimitive.ItemIndicator>\n        <Check className=\"h-4 w-4\" />\n      </SelectPrimitive.ItemIndicator>\n    </span>\n\n    <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n  </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef(({ className, ...props }, ref) => (\n  <SelectPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n    {...props} />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n  Select,\n  SelectGroup,\n  SelectValue,\n  SelectTrigger,\n  SelectContent,\n  SelectLabel,\n  SelectItem,\n  SelectSeparator,\n  SelectScrollUpButton,\n  SelectScrollDownButton,\n}\n"
  },
  {
    "path": "client/src/components/ui/skeleton.jsx",
    "content": "import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({\n  className,\n  ...props\n}) {\n  return (<div className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />);\n}\n\nexport { Skeleton }\n"
  },
  {
    "path": "client/src/components/ui/slider.jsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Slider = React.forwardRef(({ className, ...props }, ref) => (\n  <SliderPrimitive.Root\n    ref={ref}\n    className={cn(\"relative flex w-full touch-none select-none items-center\", className)}\n    {...props}>\n    <SliderPrimitive.Track\n      className=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n      <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n    </SliderPrimitive.Track>\n    <SliderPrimitive.Thumb\n      className=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\" />\n  </SliderPrimitive.Root>\n))\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n"
  },
  {
    "path": "client/src/components/ui/sonner.jsx",
    "content": "\"use client\";\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner } from \"sonner\"\n\nconst Toaster = ({\n  ...props\n}) => {\n  const { theme = \"system\" } = useTheme()\n\n  return (\n    (<Sonner\n      theme={theme}\n      className=\"toaster group\"\n      toastOptions={{\n        classNames: {\n          toast:\n            \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n          description: \"group-[.toast]:text-muted-foreground\",\n          actionButton:\n            \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n          cancelButton:\n            \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n        },\n      }}\n      {...props} />)\n  );\n}\n\nexport { Toaster }\n"
  },
  {
    "path": "client/src/components/ui/switch.jsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Switch = React.forwardRef(({ className, ...props }, ref) => (\n  <SwitchPrimitives.Root\n    className={cn(\n      \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n      className\n    )}\n    {...props}\n    ref={ref}>\n    <SwitchPrimitives.Thumb\n      className={cn(\n        \"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n      )} />\n  </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n"
  },
  {
    "path": "client/src/components/ui/textarea.jsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Textarea = React.forwardRef(({ className, ...props }, ref) => {\n  return (\n    (<textarea\n      className={cn(\n        \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n        className\n      )}\n      ref={ref}\n      {...props} />)\n  );\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n"
  },
  {
    "path": "client/src/components/uploadMusic/publish-audio.js",
    "content": "import {\n  AlertDialog,\n  AlertDialogAction,\n  AlertDialogCancel,\n  AlertDialogContent,\n  AlertDialogDescription,\n  AlertDialogFooter,\n  AlertDialogHeader,\n  AlertDialogTitle,\n  AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\";\nimport { Button } from \"../ui/button\";\nimport { Label } from \"../ui/label\";\nimport { Input } from \"../ui/input\";\nimport { Textarea } from \"../ui/textarea\";\nimport { Switch } from \"../ui/switch\";\nimport { useState } from \"react\";\nimport Image from \"next/image\";\nimport { MdDeleteForever } from \"react-icons/md\";\nimport { UploadCloud, Percent } from \"lucide-react\";\nimport axios from \"axios\";\nimport { useWallets } from \"@privy-io/react-auth\";\nimport { ownSoundContractABI, ownSoundContractAddress } from \"@/utils/contract\";\nimport { Contract } from \"ethers\";\nimport { toast } from \"sonner\";\nimport Loader from \"../loader\";\nimport { Slider } from \"../ui/slider\";\nimport { cn } from \"@/lib/utils\";\n\nconst PublishAudio = ({ getSongs }) => {\n  const [isMusicUploading, setIsMusicUploading] = useState(false);\n  const [isImageUploading, setIsImageUploading] = useState(false);\n  const [isPublishAlertOpen, setIsPublishAlertOpen] = useState(false);\n  const [value, setValue] = useState(\"\");\n  const { wallets } = useWallets();\n  const w0 = wallets[0];\n  const [musicFile, setMusicFile] = useState(null);\n  const [step, setStep] = useState(1);\n  const [isRentingAllowed, setIsRentingAllowed] = useState(false);\n  const [imageSrc, setImageSrc] = useState(null);\n  const [fileName, setFileName] = useState(\"\");\n  const [songName, setSongName] = useState(\"\");\n  const [songDescription, setSongDescription] = useState(\"\");\n  const [basePrice, setBasePrice] = useState(\"\");\n  const [royaltyPrice, setRoyaltyPrice] = useState(\"\");\n  const [royaltyPercentage, setRoyaltyPercentage] = useState(0);\n  const [errorMessage, setErrorMessage] = useState(\"\");\n  const [isLoading, setIsLoading] = useState(false);\n  const [fullRoyaltyAllowed, setFullRoyaltyAllowed] = useState(false);\n  const [formData, setFormData] = useState({\n    songName: \"\",\n    songDescription: \"\",\n    basePrice: \"\",\n    royaltyPrice: \"\",\n    royaltyPercentage: \"\",\n    isRentingAllowed: false,\n  });\n  const handleFileUpload = async (e) => {\n    // const formData = {\n    //   songName: \"\",\n    //   songDescription: \"\",\n    //   basePrice: \"\",\n    //   royaltyPrice: \"\",\n    //   royaltyPercentage: \"\",\n    //   isRentingAllowed: false,\n    // };\n    const file = e.target.files[0];\n    if (file) {\n      setIsMusicUploading(true);\n      try {\n        const data = new FormData();\n\n        // Append text fields\n        Object.keys(formData).forEach((key) => {\n          data.append(key, formData[key]);\n        });\n\n        // Append music file\n        data.append(\"musicFile\", file);\n        data.append(\"userAddress\", w0.address);\n\n        const response = await axios.post(\"/api/endpoint\", data, {\n          headers: {\n            \"Content-Type\": \"multipart/form-data\",\n          },\n        });\n\n        console.log(\"Response:\", response.data);\n        console.log(\"Response:\", response.data.value);\n        setValue(response.data.value);\n\n        setMusicFile(file);\n        setFileName(file.name);\n      } catch (error) {\n        toast.error(\"Error uploading file\");\n        console.error(\"Error uploading file:\", error);\n      } finally {\n        setIsMusicUploading(false);\n      }\n    }\n  };\n  const handleImageUpload = async (e) => {\n    const file = e.target.files[0];\n    if (file) {\n      setIsImageUploading(true);\n      try {\n        const formData = new FormData();\n        formData.append(\"file\", file);\n        formData.append(\"upload_preset\", \"fi0lxkc1\");\n        formData.append(\"api_key\", \"697773597345229\");\n\n        const response = await fetch(\n          \"https://api.cloudinary.com/v1_1/da9h8exvs/image/upload\",\n          {\n            method: \"POST\",\n            body: formData,\n          }\n        );\n\n        if (!response.ok) {\n          const errorData = await response.json();\n          throw new Error(`Upload failed: ${errorData.error.message}`);\n        }\n\n        const data = await response.json();\n        setImageSrc(data.secure_url);\n      } catch (error) {\n        console.error(\"Error uploading image:\", error);\n      } finally {\n        setIsImageUploading(false);\n      }\n    }\n  };\n  const handleDeleteImage = () => {\n    setImageSrc(null);\n  };\n\n  const handleNextStep = async () => {\n    if (step === 1 && fileName && musicFile) {\n      setStep(2);\n    }\n  };\n\n  const handlePreviousStep = () => {\n    if (step === 2) {\n      setStep(1);\n    }\n  };\n\n  const handleSubmit = async () => {\n    setErrorMessage(\"\");\n    setIsLoading(true);\n    console.log(value);\n    const createNFTParams = {\n      basePrice: basePrice,\n      fullRoyaltyAllowed: fullRoyaltyAllowed,\n      fullRoyaltyBuyoutPrice: royaltyPrice,\n      title: songName,\n      description: songDescription,\n      coverImage: imageSrc,\n      mp3FileLocationId: value,\n      isRentingAllowed: isRentingAllowed,\n      supply: 100,\n      royaltyPercentage: royaltyPercentage,\n    };\n\n    const randomNumber = value; // Ensure this is a valid uint256\n\n    try {\n      const provider = await w0?.getEthersProvider();\n      if (!provider) {\n        throw new Error(\"Provider is not available\");\n      }\n\n      const signer = await provider.getSigner();\n      if (!signer) {\n        throw new Error(\"Signer is not available\");\n      }\n\n      const contract = new Contract(\n        ownSoundContractAddress,\n        ownSoundContractABI,\n        signer\n      );\n\n      const res = await contract.createNFT(createNFTParams, randomNumber);\n      await res.wait(1);\n      console.log(res);\n      setIsLoading(false);\n      setIsPublishAlertOpen(false);\n      await getSongs(w0.address);\n      toast.success(\"Successfully published the song\");\n    } catch (error) {\n      setIsLoading(false);\n      console.error(\"Error creating NFT:\", error);\n      setErrorMessage(\"Failed to create NFT. Please try again.\");\n    }\n  };\n\n  // Handle the FormData, e.g., send it to an API\n  // const { data } = await axios.post(\"/api/upload\", formData);\n  // console.log(data);\n\n  return (\n    <AlertDialog\n      open={isPublishAlertOpen}\n      onOpenChange={(e) => setIsPublishAlertOpen(e)}\n    >\n      <AlertDialogTrigger>\n        <Button variant=\"outline\" className=\"w-full h-full\">\n          Publish Audio\n        </Button>\n      </AlertDialogTrigger>\n      <AlertDialogContent>\n        <AlertDialogHeader>\n          <AlertDialogTitle>\n            {step === 1 ? \"Upload Music\" : \"Song Details\"}\n          </AlertDialogTitle>\n          <AlertDialogDescription>\n            {step === 1\n              ? \"Upload your music file and proceed to enter the song details.\"\n              : \"Enter the details of your song and finalize your submission.\"}\n          </AlertDialogDescription>\n        </AlertDialogHeader>\n        <div className=\"space-y-3\">\n          {step === 1 && (\n            <>\n              <div className=\"relative h-24 w-full border border-muted-foreground border-dashed rounded-md flex items-center justify-center gap-2 cursor-pointer transition-transform duration-300 ease-in-out transform hover:scale-105\">\n                <input\n                  type=\"file\"\n                  accept=\"audio/*\"\n                  className=\"absolute inset-0 opacity-0 cursor-pointer\"\n                  onChange={handleFileUpload}\n                  disabled={isMusicUploading}\n                />\n                {isMusicUploading ? (\n                  <div className=\"flex items-center gap-2\">\n                    <div className=\"buffering\"></div>\n                    <Loader />\n                  </div>\n                ) : (\n                  <>\n                    <UploadCloud className=\"text-muted-foreground w-8 h-8\" />\n                    <p className=\"text-muted-foreground\">\n                      {fileName\n                        ? `Selected File: ${fileName}`\n                        : \"Upload Music File\"}\n                    </p>\n                  </>\n                )}\n              </div>\n            </>\n          )}\n          {step === 2 && (\n            <>\n              <div className=\"flex gap-3 items-center\">\n                <div className=\"w-24 h-24 bg-muted rounded-md overflow-hidden relative\">\n                  {imageSrc ? (\n                    <>\n                      <img\n                        src={imageSrc}\n                        alt=\"Uploaded\"\n                        className=\"w-full h-full object-cover\"\n                      />\n                      <button\n                        onClick={handleDeleteImage}\n                        className=\"absolute z-[99999999999] bottom-1 right-1 bg-red-600 text-white rounded-full p-1 transition-opacity\"\n                      >\n                        <MdDeleteForever />\n                      </button>\n                    </>\n                  ) : (\n                    <div className=\"relative h-full w-full flex items-center justify-center\">\n                      {isImageUploading ? (\n                        <div className=\"flex flex-col items-center\">\n                          <div className=\"buffering\"></div>\n                          <Loader />\n                        </div>\n                      ) : (\n                        <div className=\"relative h-full w-full flex items-center justify-center\">\n                          <div>\n                            <UploadCloud className=\"text-muted-foreground\" />\n                          </div>\n                          <label className=\"absolute cursor-pointer flex items-center justify-center w-full h-full text-muted\">\n                            <input\n                              type=\"file\"\n                              accept=\"image/*\"\n                              className=\"hidden\"\n                              onChange={handleImageUpload}\n                            />\n                          </label>\n                        </div>\n                      )}\n                    </div>\n                  )}\n                </div>{\" \"}\n                <div className=\"h-16 flex flex-col justify-between\">\n                  <Label>Song Name</Label>\n                  <Input\n                    placeholder=\"Enter song name\"\n                    value={songName}\n                    onChange={(e) => setSongName(e.target.value)}\n                  />\n                </div>\n              </div>\n\n              <div>\n                <Label>Song Description</Label>\n                <Textarea\n                  placeholder=\"Enter song description\"\n                  className=\"mt-2.5\"\n                  value={songDescription}\n                  onChange={(e) => setSongDescription(e.target.value)}\n                />\n              </div>\n              <div className=\"flex items-center justify-between\">\n                <div className=\"flex items-center space-x-2 pt-2\">\n                  <Label htmlFor=\"isRentingAllowed\">Renting Allowed?</Label>\n                  <Switch\n                    id=\"isRentingAllowed\"\n                    onCheckedChange={(e) => setIsRentingAllowed(e)}\n                  />\n                </div>\n                <div className=\"flex items-center space-x-2 pt-2\">\n                  <Label htmlFor=\"full-royalty\">Full Royalty Allowed?</Label>\n                  <Switch\n                    id=\"full-royalty\"\n                    onCheckedChange={(e) => setFullRoyaltyAllowed(e)}\n                  />\n                </div>\n              </div>\n              <div className=\"grid grid-cols-2 gap-4\">\n                <div>\n                  <Label>Base Price</Label>\n                  <div className=\"flex items-center gap-3 w-full mt-2.5\">\n                    <Input\n                      placeholder=\"Enter Base Price\"\n                      type=\"number\"\n                      value={basePrice}\n                      onChange={(e) => setBasePrice(e.target.value)}\n                    />\n                    <Image\n                      src=\"/icons/token-coin.svg\"\n                      width={20}\n                      height={20}\n                      alt=\"coin\"\n                    />\n                  </div>\n                </div>\n                <div>\n                  <Label>Royalty Price</Label>\n                  <div className=\"flex items-center gap-3 w-full mt-2.5\">\n                    <Input\n                      placeholder=\"Enter Royalty Price\"\n                      type=\"number\"\n                      value={royaltyPrice}\n                      onChange={(e) => setRoyaltyPrice(e.target.value)}\n                    />\n                    <Image\n                      src=\"/icons/token-coin.svg\"\n                      width={20}\n                      height={20}\n                      alt=\"coin\"\n                    />\n                  </div>\n                </div>\n              </div>\n\n              <div>\n                <Label>Royalty Percentage</Label>\n                <div className=\"flex items-center gap-3 w-full mt-2.5\">\n                  <Slider\n                    defaultValue={[0]}\n                    max={20}\n                    step={5}\n                    className={\"\"}\n                    onValueChange={(e) => setRoyaltyPercentage(e)}\n                  />\n                  <div className=\"flex text-muted-foreground\">\n                    {royaltyPercentage}\n                    <Percent className=\"text-muted-foreground w-4\" />\n                  </div>\n                </div>\n              </div>\n              {errorMessage && (\n                <div className=\"text-red-500 text-sm mt-2\">{errorMessage}</div>\n              )}\n            </>\n          )}\n        </div>\n        <AlertDialogFooter>\n          <AlertDialogCancel>Cancel</AlertDialogCancel>\n          {step === 1 && (\n            <Button onClick={handleNextStep} disabled={!fileName}>\n              Next\n            </Button>\n          )}\n          {step === 2 && (\n            <>\n              <Button variant=\"outline\" onClick={handlePreviousStep}>\n                Back\n              </Button>\n              <Button\n                onClick={handleSubmit}\n                disabled={!songName || !songDescription || isLoading}\n              >\n                {isLoading ? \"Uploading...\" : \"Upload\"}\n              </Button>\n            </>\n          )}\n        </AlertDialogFooter>\n      </AlertDialogContent>\n    </AlertDialog>\n  );\n};\n\nexport default PublishAudio;\n"
  },
  {
    "path": "client/src/lib/utils.js",
    "content": "import { clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs) {\n  return twMerge(clsx(inputs))\n}\n"
  },
  {
    "path": "client/src/privy/chains.js",
    "content": "import { toast } from \"sonner\";\n\nexport const chainsName = { amoy: \"Amoy\" };\n\nexport const polygonAmoy = {\n  id: 80002,\n  network: \"Polygon Amoy Testnet\",\n  name: \"Amoy\",\n  nativeCurrency: {\n    name: \"MATIC\",\n    symbol: \"MATIC\",\n    decimals: 18,\n  },\n  rpcUrls: {\n    default: {\n      http: [\"https://rpc.ankr.com/polygon_amoy\"],\n    },\n    public: {\n      http: [\"https://rpc.ankr.com/polygon_amoy\"],\n    },\n  },\n  blockExplorers: {\n    default: {\n      name: \"Explorer\",\n      url: \"https://amoy.polygonscan.com/\",\n    },\n  },\n};\n\nexport async function switchToPolygonAmoy(w0, setter) {\n  try {\n    const provider = await w0?.getEthersProvider();\n    const res = await provider?.send(\"wallet_addEthereumChain\", [\n      {\n        chainId: \"80002\",\n        chainName: \"Polygon Amoy Testnet\",\n        nativeCurrency: {\n          name: \"MATIC\",\n          symbol: \"MATIC\",\n          decimals: 18,\n        },\n        rpcUrls: [\"https://rpc.ankr.com/polygon_amoy\"],\n        blockExplorerUrls: [\"https://amoy.polygonscan.com/\"],\n      },\n    ]);\n\n    const network = await provider.detectNetwork();\n    if (network.chainId === 80002) {\n      setter(chainsName.amoy);\n    }\n  } catch (error) {\n    console.log(error?.message);\n    toast(error?.message);\n  }\n}\n"
  },
  {
    "path": "client/src/privy/config.js",
    "content": "import { polygonAmoy } from \"./chains\";\n\nexport const privyConfig = {\n  appId: \"clz007cw406bz3iq8dwolge41\",\n  config: {\n    logo: \"https://your.logo.url\",\n    loginMethods: [\"wallet\"],\n    appearance: {\n      walletList: [\"metamask\", \"detected_wallets\", \"rainbow\"],\n      theme: \"dark\",\n    },\n    defaultChain: polygonAmoy,\n    supportedChains: [polygonAmoy],\n    embeddedWallets: {\n      createOnLogin: \"users-without-wallets\",\n    },\n  },\n};\n"
  },
  {
    "path": "client/src/privy/privyProvider.js",
    "content": "\"use client\";\nimport { PrivyProvider } from \"@privy-io/react-auth\";\nimport { privyConfig } from \"./config\";\n\nconst PrivyWrapper = ({ children }) => {\n  return <PrivyProvider {...privyConfig}>{children}</PrivyProvider>;\n};\n\nexport default PrivyWrapper;\n"
  },
  {
    "path": "client/src/redux/musicPlayerSlice.js",
    "content": "import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n  uri: \"/audio/chin-tapak-dum-dum.mp3\",\n  isPlaying: true,\n  index: 0,\n  coverImage: \"\",\n  title: \"\",\n  artist: \"\",\n};\n\nconst musicPlayerSlice = createSlice({\n  name: \"musicPlayer\",\n  initialState,\n  reducers: {\n    setUri: (state, action) => {\n      state.uri = action.payload;\n    },\n    setIsPlaying: (state, action) => {\n      state.isPlaying = action.payload;\n    },\n    setIndex: (state, action) => {\n      state.index = action.payload;\n    },\n    setMusicPlayer: (state, action) => {\n      return { ...state, ...action.payload };\n    },\n  },\n});\n\nexport const { setUri, setIsPlaying, setIndex, setMusicPlayer } =\n  musicPlayerSlice.actions;\nexport default musicPlayerSlice.reducer;\n"
  },
  {
    "path": "client/src/redux/redux-provider.js",
    "content": "\"use client\";\nimport { Provider } from \"react-redux\";\nimport store from \"./store\";\n\nexport default function ReduxProvider({ children }) {\n  return <Provider store={store}>{children}</Provider>;\n}\n"
  },
  {
    "path": "client/src/redux/store.js",
    "content": "import { configureStore } from \"@reduxjs/toolkit\";\nimport musicPlayerReducer from \"./musicPlayerSlice\";\n\nconst store = configureStore({\n  reducer: {\n    musicPlayer: musicPlayerReducer,\n  },\n});\n\nexport default store;\n"
  },
  {
    "path": "client/src/theme/theme-provider.js",
    "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\";\n\nexport function ThemeProvider({ children, ...props }) {\n  return <NextThemesProvider {...props}>{children}</NextThemesProvider>;\n}\n"
  },
  {
    "path": "client/src/theme/theme-toggle.js",
    "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { Moon, Sun } from \"lucide-react\";\nimport { useTheme } from \"next-themes\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\n\nexport function ModeToggle() {\n  const { setTheme } = useTheme();\n\n  return (\n    <DropdownMenu>\n      <DropdownMenuTrigger asChild>\n        <Button variant=\"outline\" size=\"icon\">\n          <Sun className=\"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0\" />\n          <Moon className=\"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100\" />\n          <span className=\"sr-only\">Toggle theme</span>\n        </Button>\n      </DropdownMenuTrigger>\n      <DropdownMenuContent align=\"end\">\n        <DropdownMenuItem onClick={() => setTheme(\"light\")}>\n          Light\n        </DropdownMenuItem>\n        <DropdownMenuItem onClick={() => setTheme(\"dark\")}>\n          Dark\n        </DropdownMenuItem>\n        <DropdownMenuItem onClick={() => setTheme(\"system\")}>\n          System\n        </DropdownMenuItem>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  );\n}\n"
  },
  {
    "path": "client/src/utils/contract.js",
    "content": "import { OWNSOUNDABI } from \"@/abi/OwnSound\";\nexport const ownSoundContractAddress =\n  \"0xaD4b216C20Ac6a06D67d03c8176C047BB81CB7A0\";\nexport const ownSoundContractABI = OWNSOUNDABI;\n\nimport { MUSICXABI } from \"@/abi/MusicX\";\nexport const musicXContractAddress =\n  \"0x9b344Cc9f7Bfa905cc6eBCF87AbC03338785b70B\";\nexport const musicXContractABI = MUSICXABI;\n"
  },
  {
    "path": "client/src/utils/dummy.js",
    "content": "const getRandomImageUri = () =>\n  `https://picsum.photos/200/300?random=${Math.floor(Math.random() * 1000)}`;\n\nexport const audioTracks = [\n  {\n    title: \"Peaceful Ambience\",\n    artist: \"Ownsound\",\n    soundUri: \"/audio/sample-9s.mp3\",\n    cover: getRandomImageUri(),\n  },\n  {\n    title: \"Peaceful Ambience\",\n    artist: \"Ownsound\",\n    soundUri: \"/audio/sample-9s.mp3\",\n    cover: getRandomImageUri(),\n  },\n  {\n    title: \"Peaceful Ambience\",\n    artist: \"Ownsound\",\n    soundUri: \"/audio/sample-9s.mp3\",\n    cover: getRandomImageUri(),\n  },\n  {\n    title: \"Rainy Day Meditation\",\n    artist: \"Ownsound\",\n    soundUri: \"/audio/sample-1s.mp3\",\n    cover: getRandomImageUri(),\n  },\n  {\n    title: \"Forest Soundscape\",\n    artist: \"Ownsound\",\n    soundUri: \"/audio/sample-9s.mp3\",\n    cover: getRandomImageUri(),\n  },\n];\n\nexport const playlists = [\n  {\n    name: \"Relaxation Sounds\",\n    description: \"Soothing sounds to help you relax and unwind.\",\n    creator: \"John Doe\",\n    image: getRandomImageUri(),\n    tracks: [\n      {\n        title: \"Peaceful Ambience\",\n        artist: \"Ownsound\",\n        soundUri: \"/audio/sample-9s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Rainy Day Meditation\",\n        artist: \"Ownsound\",\n        soundUri: \"/audio/sample-1s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Forest Soundscape\",\n        artist: \"Ownsound\",\n        soundUri: \"/audio/sample-9s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Ocean Waves\",\n        artist: \"Nature Tunes\",\n        soundUri: \"/audio/sample-4s.mp3\",\n        cover: getRandomImageUri(),\n      },\n    ],\n  },\n  {\n    name: \"Nature Sounds\",\n    description: \"Immerse yourself in the sounds of nature.\",\n    creator: \"Jane Smith\",\n    image: getRandomImageUri(),\n    tracks: [\n      {\n        title: \"Mountain Stream\",\n        artist: \"Nature Tunes\",\n        soundUri: \"/audio/sample-7s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Birdsong\",\n        artist: \"Nature Tunes\",\n        soundUri: \"/audio/sample-5s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Night Crickets\",\n        artist: \"Nature Tunes\",\n        soundUri: \"/audio/sample-2s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Morning Dew\",\n        artist: \"Nature Tunes\",\n        soundUri: \"/audio/sample-3s.mp3\",\n        cover: getRandomImageUri(),\n      },\n    ],\n  },\n  {\n    name: \"Instrumental Calm\",\n    description: \"Relaxing instrumental tracks to help you focus.\",\n    creator: \"Alex Johnson\",\n    image: getRandomImageUri(),\n    tracks: [\n      {\n        title: \"Calm Piano\",\n        artist: \"Relaxation Music\",\n        soundUri: \"/audio/sample-8s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Evening Serenity\",\n        artist: \"Relaxation Music\",\n        soundUri: \"/audio/sample-6s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Gentle Guitar\",\n        artist: \"Relaxation Music\",\n        soundUri: \"/audio/sample-10s.mp3\",\n        cover: getRandomImageUri(),\n      },\n      {\n        title: \"Soft Strings\",\n        artist: \"Relaxation Music\",\n        soundUri: \"/audio/sample-11s.mp3\",\n        cover: getRandomImageUri(),\n      },\n    ],\n  },\n];\n"
  },
  {
    "path": "client/src/utils/truncateAddress.js",
    "content": "export function truncateAddress(address, start, end) {\n  if (address.length <= start + end) {\n    return address;\n  }\n  const startSegment = address.slice(0, start);\n  const endSegment = address.slice(-end);\n  return `${startSegment}.........${endSegment}`;\n}\n"
  },
  {
    "path": "client/tailwind.config.js",
    "content": "/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  darkMode: [\"class\"],\n  content: [\n    \"./pages/**/*.{js,jsx}\",\n    \"./components/**/*.{js,jsx}\",\n    \"./app/**/*.{js,jsx}\",\n    \"./src/**/*.{js,jsx}\",\n  ],\n  prefix: \"\",\n  theme: {\n    container: {\n      center: true,\n      padding: \"2rem\",\n      screens: {\n        \"2xl\": \"1400px\",\n      },\n    },\n    extend: {\n      colors: {\n        backgroundOpac: \"hsla(var(--background), 0.95)\",\n        border: \"hsl(var(--border))\",\n        input: \"hsl(var(--input))\",\n        ring: \"hsl(var(--ring))\",\n        background: \"hsl(var(--background))\",\n        foreground: \"hsl(var(--foreground))\",\n        primary: {\n          DEFAULT: \"hsl(var(--primary))\",\n          foreground: \"hsl(var(--primary-foreground))\",\n        },\n        secondary: {\n          DEFAULT: \"hsl(var(--secondary))\",\n          foreground: \"hsl(var(--secondary-foreground))\",\n        },\n        destructive: {\n          DEFAULT: \"hsl(var(--destructive))\",\n          foreground: \"hsl(var(--destructive-foreground))\",\n        },\n        muted: {\n          DEFAULT: \"hsl(var(--muted))\",\n          foreground: \"hsl(var(--muted-foreground))\",\n        },\n        accent: {\n          DEFAULT: \"hsl(var(--accent))\",\n          foreground: \"hsl(var(--accent-foreground))\",\n        },\n        popover: {\n          DEFAULT: \"hsl(var(--popover))\",\n          foreground: \"hsl(var(--popover-foreground))\",\n        },\n        card: {\n          DEFAULT: \"hsl(var(--card))\",\n          foreground: \"hsl(var(--card-foreground))\",\n        },\n      },\n      borderRadius: {\n        lg: \"var(--radius)\",\n        md: \"calc(var(--radius) - 2px)\",\n        sm: \"calc(var(--radius) - 4px)\",\n      },\n      keyframes: {\n        \"accordion-down\": {\n          from: { height: \"0\" },\n          to: { height: \"var(--radix-accordion-content-height)\" },\n        },\n        \"accordion-up\": {\n          from: { height: \"var(--radix-accordion-content-height)\" },\n          to: { height: \"0\" },\n        },\n      },\n      animation: {\n        \"accordion-down\": \"accordion-down 0.2s ease-out\",\n        \"accordion-up\": \"accordion-up 0.2s ease-out\",\n      },\n    },\n  },\n  plugins: [require(\"tailwindcss-animate\"), require(\"tailwind-scrollbar-hide\")],\n};\n"
  },
  {
    "path": "client/技术文档.md",
    "content": "# oneNFS 项目指南\n \n\n---\n\n## 一、项目概述\n\n### 这是什么项目？\n\noneNFS 是一个 **Web3 音乐流媒体平台**，类似于\"区块链版的网易云音乐\"。\n\n**核心功能：**\n- 用户可以上传音乐并铸造为 NFT\n- 其他用户可以购买或租赁音乐\n- 使用加密货币进行交易\n- 所有权和交易记录永久保存在区块链上\n\n**技术亮点：**\n- 基于 Next.js 14 构建的现代化前端\n- 使用 Privy 实现 Web3 钱包登录\n- 与 Polygon 区块链智能合约交互\n- Redux 管理全局音乐播放状态\n\n---\n\n## 二、技术架构\n\n### 2.1 整体架构图\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                        用户界面层                            │\n│  ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐           │\n│  │ Explore │ │ Profile │ │  Song   │ │ Upload  │ ...       │\n│  └─────────┘ └─────────┘ └─────────┘ └─────────┘           │\n├─────────────────────────────────────────────────────────────┤\n│                        状态管理层                            │\n│  ┌──────────────────┐  ┌──────────────────────────┐        │\n│  │  Redux Store     │  │  React Context (Theme)   │        │\n│  │  - musicPlayer   │  │  - dark/light mode       │        │\n│  └──────────────────┘  └──────────────────────────┘        │\n├─────────────────────────────────────────────────────────────┤\n│                        认证层                                │\n│  ┌──────────────────────────────────────────────┐          │\n│  │  Privy Authentication                         │          │\n│  │  - 钱包连接 (MetaMask, Rainbow等)             │          │\n│  │  - 用户会话管理                               │          │\n│  └──────────────────────────────────────────────┘          │\n├─────────────────────────────────────────────────────────────┤\n│                        区块链交互层                          │\n│  ┌──────────────────┐  ┌──────────────────────────┐        │\n│  │  ethers.js       │  │  Smart Contracts         │        │\n│  │  - 合约调用      │  │  - oneNFS (音乐NFT)    │        │\n│  │  - 交易签名      │  │  - MusicX (ERC-20代币)   │        │\n│  └──────────────────┘  └──────────────────────────┘        │\n├─────────────────────────────────────────────────────────────┤\n│                        区块链网络                            │\n│  ┌──────────────────────────────────────────────┐          │\n│  │  Polygon Amoy Testnet (Chain ID: 80002)      │          │\n│  └──────────────────────────────────────────────┘          │\n└─────────────────────────────────────────────────────────────┘\n```\n\n### 2.2 目录结构\n\n```\nsrc/\n├── app/                 # Next.js App Router 入口\n│   ├── layout.js       # 根布局（Provider 包装）\n│   ├── page.js         # 首页（认证检查）\n│   └── globals.css     # 全局样式\n│\n├── components/          # React 组件\n│   ├── resizable.js    # ⭐ 核心容器组件（导航调度）\n│   ├── bottom-audio-player.js  # 底部播放器\n│   ├── explore/        # 探索页面组件\n│   ├── profile/        # 个人资料组件\n│   ├── song/           # 歌曲详情组件\n│   ├── playlist/       # 播放列表组件\n│   ├── mymusic/        # 我的音乐组件\n│   ├── uploadMusic/    # 上传音乐组件\n│   └── ui/             # 通用 UI 组件 (shadcn/ui)\n│\n├── redux/               # 状态管理\n│   ├── store.js        # Redux Store 配置\n│   ├── redux-provider.js\n│   └── musicPlayerSlice.js  # 播放器状态切片\n│\n├── privy/               # Web3 认证配置\n│   ├── privyProvider.js\n│   ├── config.js       # Privy 配置\n│   └── chains.js       # 区块链网络配置\n│\n├── abi/                 # 智能合约 ABI\n│   ├── oneNFS.js     # 音乐 NFT 合约接口\n│   └── MusicX.js       # 代币合约接口\n│\n├── utils/               # 工具函数\n│   ├── contract.js     # 合约地址和实例\n│   ├── truncateAddress.js\n│   └── dummy.js        # 模拟数据\n│\n├── theme/               # 主题配置\n│   ├── theme-provider.js\n│   └── theme-toggle.js\n│\n├── lib/                 # 工具库\n│   └── utils.js        # cn() 样式合并函数\n│\n└── animations/          # 动画资源\n    └── no.json         # Lottie 动画\n```\n\n---\n\n## 三、核心流程讲解\n\n### 3.1 用户认证流程\n\n```\n用户访问网站\n    │\n    ▼\n检查是否已连接钱包 (usePrivy)\n    │\n    ├── 未连接 ──────► 显示登录按钮\n    │                      │\n    │                      ▼\n    │                 点击连接钱包\n    │                      │\n    │                      ▼\n    │                 Privy 弹出钱包选择\n    │                      │\n    │                      ▼\n    │                 用户授权连接\n    │                      │\n    └── 已连接 ◄───────────┘\n          │\n          ▼\n    显示主应用界面 (ResizableComponent)\n```\n\n**关键代码位置：** `src/app/page.js`\n\n```javascript\nconst { ready, authenticated } = usePrivy();\n\nif (!ready) return <Loader />;\n\nif (!authenticated) {\n  return <LoginButton />;\n}\n\nreturn <MainApp />;\n```\n\n### 3.2 音乐播放流程\n\n```\n用户点击歌曲播放按钮\n    │\n    ▼\n组件调用 dispatch(setUri(...))\n    │\n    ▼\nRedux Store 更新 musicPlayer 状态\n    │\n    ▼\nBottomAudioPlayer 组件监听状态变化\n    │\n    ▼\nuseEffect 检测 uri 变化\n    │\n    ▼\naudioRef.current.src = uri\naudioRef.current.play()\n    │\n    ▼\n音频开始播放，UI 更新播放状态\n```\n\n**关键代码位置：**\n- 状态定义：`src/redux/musicPlayerSlice.js`\n- 播放器：`src/components/bottom-audio-player.js`\n\n```javascript\n// Redux Slice\nconst musicPlayerSlice = createSlice({\n  name: 'musicPlayer',\n  initialState: {\n    uri: '',\n    isPlaying: false,\n    title: '',\n    artist: '',\n    coverImage: '',\n    index: 0\n  },\n  reducers: {\n    setUri: (state, action) => { state.uri = action.payload },\n    setIsPlaying: (state, action) => { state.isPlaying = action.payload },\n    // ...\n  }\n});\n```\n\n### 3.3 智能合约交互流程\n\n```\n用户发起操作（如购买歌曲）\n    │\n    ▼\n获取 Provider 和 Signer\n    │\n    ▼\n创建合约实例\nconst contract = new ethers.Contract(address, abi, signer)\n    │\n    ▼\n调用合约方法\nawait contract.purchaseSong(tokenId, { value: price })\n    │\n    ▼\nMetaMask 弹出确认交易\n    │\n    ▼\n用户确认 → 交易上链\n    │\n    ▼\n等待交易确认 → 更新 UI\n```\n\n**关键代码位置：** `src/utils/contract.js`\n\n```javascript\n// 合约地址\nexport const oneNFSAddress = \"0xaD4b216C20Ac6a06D67d03c8176C047BB81CB7A0\";\nexport const MusicXAddress = \"0x9b344Cc9f7Bfa905cc6eBCF87AbC03338785b70B\";\n```\n\n---\n\n## 四、核心组件详解\n\n### 4.1 ResizableComponent（核心容器）\n\n**文件位置：** `src/components/resizable.js`\n\n这是整个应用的\"调度中心\"，负责：\n- 左侧导航菜单\n- 根据用户选择切换不同功能页面\n- 管理页面间的状态传递\n\n```javascript\n// 简化的组件结构\nfunction ResizableComponent() {\n  const [currentView, setCurrentView] = useState('explore');\n\n  return (\n    <ResizablePanelGroup>\n      {/* 左侧导航 */}\n      <ResizablePanel>\n        <NavigationMenu onSelect={setCurrentView} />\n      </ResizablePanel>\n\n      {/* 右侧内容区 */}\n      <ResizablePanel>\n        {currentView === 'explore' && <Explore />}\n        {currentView === 'profile' && <Profile />}\n        {currentView === 'song' && <Song />}\n        {/* ... */}\n      </ResizablePanel>\n    </ResizablePanelGroup>\n  );\n}\n```\n\n### 4.2 Explore 组件（音乐探索）\n\n**文件位置：** `src/components/explore/explore.js`\n\n功能：\n- 从智能合约获取所有已发布的歌曲\n- 搜索和过滤功能\n- 点击歌曲进入详情页\n\n```javascript\n// 获取歌曲列表\nconst fetchSongs = async () => {\n  const provider = new ethers.BrowserProvider(window.ethereum);\n  const contract = new ethers.Contract(oneNFSAddress, oneNFSABI, provider);\n  const songs = await contract.getAllSongs();\n  // 处理并显示歌曲...\n};\n```\n\n### 4.3 BottomAudioPlayer（音频播放器）\n\n**文件位置：** `src/components/bottom-audio-player.js`\n\n功能：\n- 播放/暂停控制\n- 进度条和时间显示\n- 上一首/下一首\n- 随机播放和循环模式\n- 音量控制\n\n```javascript\nfunction BottomAudioPlayer() {\n  const audioRef = useRef(null);\n  const { uri, isPlaying } = useSelector(state => state.musicPlayer);\n\n  useEffect(() => {\n    if (uri) {\n      audioRef.current.src = uri;\n      if (isPlaying) audioRef.current.play();\n    }\n  }, [uri, isPlaying]);\n\n  return (\n    <div className=\"fixed bottom-0\">\n      <audio ref={audioRef} />\n      {/* 播放控制 UI */}\n    </div>\n  );\n}\n```\n\n---\n\n## 五、技术栈说明\n\n| 技术                | 用途 | 为什么选择 |\n|-------------------|------|-----------|\n| **Next.js 14**    | React 框架 | App Router、SSR、优秀的开发体验 |\n| **Redux Toolkit** | 状态管理 | 管理音乐播放器等全局状态 |\n| **Privy**         | Web3 认证 | 简化钱包连接，支持多种钱包 |\n| **ethers.js**     | 区块链交互 | 业界标准的以太坊库 |\n| **Tailwind CSS**  | 样式 | 快速开发，一致的设计系统 |\n| **shadcn/ui**     | UI 组件库 | 美观、可定制的组件 |\n| **Framer Motion** | 动画 | 流畅的页面过渡和交互动画 |\n| **Polygon**       | 区块链网络 | 低 Gas 费，快速确认 |\n\n---\n \n\n## 六、常见问题解答\n\n### Q: 为什么用 Polygon 而不是以太坊主网？\nA: Polygon 是以太坊的 Layer 2 网络，Gas 费用极低（几分钱），交易确认快（几秒），非常适合高频小额交易的音乐平台。\n\n### Q: Privy 是什么？\nA: Privy 是一个 Web3 认证服务，简化了钱包连接流程，支持多种钱包（MetaMask、Rainbow等），还能为没有钱包的用户自动创建嵌入式钱包。\n\n### Q: 为什么用 Redux 而不是 Context？\nA: 音乐播放器需要在多个组件间共享状态（当前歌曲、播放状态等），Redux 提供了更好的状态管理和调试体验。\n\n### Q: 智能合约做了什么？\nA:\n- **oneNFS 合约**：管理音乐 NFT 的铸造、购买、租赁、版税分配\n- **MusicX 合约**：平台代币，用于支付和奖励\n\n---\n\n## 七、扩展学习资源\n\n- [Next.js 文档](https://nextjs.org/docs)\n- [ethers.js 文档](https://docs.ethers.org/)\n- [Privy 文档](https://docs.privy.io/)\n- [Tailwind CSS 文档](https://tailwindcss.com/docs)\n- [Redux Toolkit 文档](https://redux-toolkit.js.org/)\n\n---\n "
  },
  {
    "path": "docs/404.html",
    "content": "<!DOCTYPE html><html lang=\"en\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"stylesheet\" href=\"/_next/static/css/888b2de5347592df.css\" data-precedence=\"next\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/webpack-1f4c176689af895b.js\"/><script src=\"/_next/static/chunks/fd9d1056-819464016f7ad85c.js\" async=\"\"></script><script src=\"/_next/static/chunks/23-a2a6d2cb6c50ca8e.js\" async=\"\"></script><script src=\"/_next/static/chunks/main-app-0e53d5b0820fa726.js\" async=\"\"></script><script src=\"/_next/static/chunks/3ab9597f-9ca74e94c08af310.js\" async=\"\"></script><script src=\"/_next/static/chunks/5ab80550-22a236d451c69b50.js\" async=\"\"></script><script src=\"/_next/static/chunks/202-9b05294c1bfbdfa7.js\" async=\"\"></script><script src=\"/_next/static/chunks/app/layout-696be0f0413601fb.js\" async=\"\"></script><meta name=\"robots\" content=\"noindex\"/><title>404: This page could not be found.</title><title>Own Sound</title><meta name=\"description\" content=\"Made with love by the Qoneqt team\"/><script src=\"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js\" noModule=\"\"></script></head><body class=\"__className_d65c78\"><script>!function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');var e=localStorage.getItem('theme');if('system'===e||(!e&&false)){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){d.style.colorScheme = 'dark';c.add('dark')}else{d.style.colorScheme = 'light';c.add('light')}}else if(e){c.add(e|| '')}else{c.add('light')}if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'light'}catch(e){}}()</script><div style=\"font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center\"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class=\"next-error-h1\" style=\"display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px\">404</h1><div style=\"display:inline-block\"><h2 style=\"font-size:14px;font-weight:400;line-height:49px;margin:0\">This page could not be found.</h2></div></div></div><script src=\"/_next/static/chunks/webpack-1f4c176689af895b.js\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,\"1:HL[\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"style\\\"]\\n\"])</script><script>self.__next_f.push([1,\"2:I[95751,[],\\\"\\\"]\\n4:I[39275,[],\\\"\\\"]\\n5:I[61343,[],\\\"\\\"]\\n6:I[29635,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n7:I[61559,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n8:I[90037,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"ThemeProvider\\\"]\\nd:I[27776,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"Toaster\\\"]\\nf:I[76130,[],\\\"\\\"]\\n9:{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"textAlign\\\":\\\"center\\\",\\\"display\\\":\\\"flex\\\",\\\"flexDirection\\\":\\\"column\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"}\\na:{\\\"display\\\":\\\"inline-block\\\",\\\"margin\\\":\\\"0 20px 0 0\\\",\\\"padding\\\":\\\"0 23px 0 0\\\",\\\"fontSize\\\":24,\\\"fontWeight\\\":500,\\\"verticalAlign\\\":\\\"top\\\",\\\"lineHeight\\\":\\\"49px\\\"}\\nb:{\\\"display\\\":\\\"inline-block\\\"}\\nc:{\\\"fontSize\\\":14,\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"49px\\\",\\\"margin\\\":0}\\n10:[]\\n\"])</script><script>self.__next_f.push([1,\"0:[[[\\\"$\\\",\\\"link\\\",\\\"0\\\",{\\\"rel\\\":\\\"stylesheet\\\",\\\"href\\\":\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"precedence\\\":\\\"next\\\",\\\"crossOrigin\\\":\\\"$undefined\\\"}]],[\\\"$\\\",\\\"$L2\\\",null,{\\\"buildId\\\":\\\"Qvu3_p21LuapbgDau0_w0\\\",\\\"assetPrefix\\\":\\\"\\\",\\\"initialCanonicalUrl\\\":\\\"/_not-found\\\",\\\"initialTree\\\":[\\\"\\\",{\\\"children\\\":[\\\"/_not-found\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}]},\\\"$undefined\\\",\\\"$undefined\\\",true],\\\"initialSeedData\\\":[\\\"\\\",{\\\"children\\\":[\\\"/_not-found\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{},[[\\\"$L3\\\",[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"404: This page could not be found.\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"textAlign\\\":\\\"center\\\",\\\"display\\\":\\\"flex\\\",\\\"flexDirection\\\":\\\"column\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\\"}}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"next-error-h1\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\",\\\"margin\\\":\\\"0 20px 0 0\\\",\\\"padding\\\":\\\"0 23px 0 0\\\",\\\"fontSize\\\":24,\\\"fontWeight\\\":500,\\\"verticalAlign\\\":\\\"top\\\",\\\"lineHeight\\\":\\\"49px\\\"},\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\"},\\\"children\\\":[\\\"$\\\",\\\"h2\\\",null,{\\\"style\\\":{\\\"fontSize\\\":14,\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"49px\\\",\\\"margin\\\":0},\\\"children\\\":\\\"This page could not be found.\\\"}]}]]}]}]]],null],null]},[\\\"$\\\",\\\"$L4\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\",\\\"/_not-found\\\",\\\"children\\\"],\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L5\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"notFoundStyles\\\":\\\"$undefined\\\",\\\"styles\\\":null}],null]},[[\\\"$\\\",\\\"html\\\",null,{\\\"lang\\\":\\\"en\\\",\\\"children\\\":[\\\"$\\\",\\\"body\\\",null,{\\\"className\\\":\\\"__className_d65c78\\\",\\\"children\\\":[\\\"$\\\",\\\"$L6\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L7\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L8\\\",null,{\\\"attribute\\\":\\\"class\\\",\\\"defaultTheme\\\":\\\"light\\\",\\\"children\\\":[[\\\"$\\\",\\\"$L4\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\"],\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L5\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"404: This page could not be found.\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":\\\"$9\\\",\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\\"}}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"next-error-h1\\\",\\\"style\\\":\\\"$a\\\",\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":\\\"$b\\\",\\\"children\\\":[\\\"$\\\",\\\"h2\\\",null,{\\\"style\\\":\\\"$c\\\",\\\"children\\\":\\\"This page could not be found.\\\"}]}]]}]}]],\\\"notFoundStyles\\\":[],\\\"styles\\\":null}],[\\\"$\\\",\\\"$Ld\\\",null,{}]]}]}]}]}]}],null],null],\\\"couldBeIntercepted\\\":false,\\\"initialHead\\\":[[\\\"$\\\",\\\"meta\\\",null,{\\\"name\\\":\\\"robots\\\",\\\"content\\\":\\\"noindex\\\"}],\\\"$Le\\\"],\\\"globalErrorComponent\\\":\\\"$f\\\",\\\"missingSlots\\\":\\\"$W10\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"e:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"title\\\",\\\"2\\\",{\\\"children\\\":\\\"Own Sound\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"3\\\",{\\\"name\\\":\\\"description\\\",\\\"content\\\":\\\"Made with love by the Qoneqt team\\\"}]]\\n3:null\\n\"])</script></body></html>"
  },
  {
    "path": "docs/_next/static/Qvu3_p21LuapbgDau0_w0/_buildManifest.js",
    "content": "self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[{has:e,source:\"/api/:path*\",destination:e}],beforeFiles:[],fallback:[]},\"/_error\":[\"static/chunks/pages/_error-6ae619510b1539d6.js\"],sortedPages:[\"/_app\",\"/_error\"]}}(void 0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();"
  },
  {
    "path": "docs/_next/static/Qvu3_p21LuapbgDau0_w0/_ssgManifest.js",
    "content": "self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()"
  },
  {
    "path": "docs/_next/static/chunks/112-05ef4e14cff1a5e4.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[112],{78369:function(e,t,r){\"use strict\";r.d(t,{Ry:function(){return u}});var n=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error(\"aria-hidden\",e,\"in not contained inside\",t,\". Doing nothing\"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),i=null!==t&&\"false\"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(r,\"true\"),i||e.setAttribute(l,\"true\")}catch(t){console.error(\"aria-hidden: cannot operate on \",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r=\"data-aria-hidden\");var n=Array.from(Array.isArray(e)?e:[e]),o=t||(\"undefined\"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll(\"[aria-live]\"))),l(n,o,r,\"aria-hidden\")):function(){return null}}},50084:function(e,t,r){\"use strict\";var n=r(77323),o=r(11356),i=o(n(\"String.prototype.indexOf\"));e.exports=function(e,t){var r=n(e,!!t);return\"function\"==typeof r&&i(e,\".prototype.\")>-1?o(r):r}},11356:function(e,t,r){\"use strict\";var n=r(71769),o=r(77323),i=r(49813),a=r(31354),s=o(\"%Function.prototype.apply%\"),l=o(\"%Function.prototype.call%\"),u=o(\"%Reflect.apply%\",!0)||n.call(l,s),c=r(7723),d=o(\"%Math.max%\");e.exports=function(e){if(\"function\"!=typeof e)throw new a(\"a function is required\");var t=u(n,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,s,arguments)};c?c(e.exports,\"apply\",{value:f}):e.exports.apply=f},30602:function(e,t,r){\"use strict\";var n=r(7723),o=r(97422),i=r(31354),a=r(68136);e.exports=function(e,t,r){if(!e||\"object\"!=typeof e&&\"function\"!=typeof e)throw new i(\"`obj` must be an object or a function`\");if(\"string\"!=typeof t&&\"symbol\"!=typeof t)throw new i(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new i(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new i(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new i(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new i(\"`loose`, if provided, must be a boolean\");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===l&&d?d.writable:!l});else if(!c&&(s||l||u))throw new o(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");else e[t]=r}},7723:function(e,t,r){\"use strict\";var n=r(77323)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(e){n=!1}e.exports=n},41479:function(e){\"use strict\";e.exports=EvalError},19509:function(e){\"use strict\";e.exports=Error},33231:function(e){\"use strict\";e.exports=RangeError},78531:function(e){\"use strict\";e.exports=ReferenceError},97422:function(e){\"use strict\";e.exports=SyntaxError},31354:function(e){\"use strict\";e.exports=TypeError},88150:function(e){\"use strict\";e.exports=URIError},78734:function(e){\"use strict\";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},o=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},i=function(e,t){for(var r=\"\",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,s=this;if(\"function\"!=typeof s||\"[object Function]\"!==t.apply(s))throw TypeError(\"Function.prototype.bind called on incompatible \"+s);for(var l=o(arguments,1),u=r(0,s.length-l.length),c=[],d=0;d<u;d++)c[d]=\"$\"+d;if(a=Function(\"binder\",\"return function (\"+i(c,\",\")+\"){ return binder.apply(this,arguments); }\")(function(){if(this instanceof a){var t=s.apply(this,n(l,arguments));return Object(t)===t?t:this}return s.apply(e,n(l,arguments))}),s.prototype){var f=function(){};f.prototype=s.prototype,a.prototype=new f,f.prototype=null}return a}},71769:function(e,t,r){\"use strict\";var n=r(78734);e.exports=Function.prototype.bind||n},77323:function(e,t,r){\"use strict\";var n,o=r(19509),i=r(41479),a=r(33231),s=r(78531),l=r(97422),u=r(31354),c=r(88150),d=Function,f=function(e){try{return d('\"use strict\"; return ('+e+\").constructor;\")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},\"\")}catch(e){p=null}var h=function(){throw new u},m=p?function(){try{return arguments.callee,h}catch(e){try{return p(arguments,\"callee\").get}catch(e){return h}}}():h,y=r(42152)(),g=r(77077)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w=\"undefined\"!=typeof Uint8Array&&v?v(Uint8Array):n,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?n:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?n:ArrayBuffer,\"%ArrayIteratorPrototype%\":y&&v?v([][Symbol.iterator]()):n,\"%AsyncFromSyncIteratorPrototype%\":n,\"%AsyncFunction%\":b,\"%AsyncGenerator%\":b,\"%AsyncGeneratorFunction%\":b,\"%AsyncIteratorPrototype%\":b,\"%Atomics%\":\"undefined\"==typeof Atomics?n:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?n:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?n:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?n:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?n:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":i,\"%Float32Array%\":\"undefined\"==typeof Float32Array?n:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?n:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?n:FinalizationRegistry,\"%Function%\":d,\"%GeneratorFunction%\":b,\"%Int8Array%\":\"undefined\"==typeof Int8Array?n:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?n:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?n:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":y&&v?v(v([][Symbol.iterator]())):n,\"%JSON%\":\"object\"==typeof JSON?JSON:n,\"%Map%\":\"undefined\"==typeof Map?n:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&y&&v?v(new Map()[Symbol.iterator]()):n,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?n:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?n:Proxy,\"%RangeError%\":a,\"%ReferenceError%\":s,\"%Reflect%\":\"undefined\"==typeof Reflect?n:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?n:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&y&&v?v(new Set()[Symbol.iterator]()):n,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?n:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":y&&v?v(\"\"[Symbol.iterator]()):n,\"%Symbol%\":y?Symbol:n,\"%SyntaxError%\":l,\"%ThrowTypeError%\":m,\"%TypedArray%\":w,\"%TypeError%\":u,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?n:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?n:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?n:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?n:Uint32Array,\"%URIError%\":c,\"%WeakMap%\":\"undefined\"==typeof WeakMap?n:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?n:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var S=v(v(e));x[\"%Error.prototype%\"]=S}var P=function e(t){var r;if(\"%AsyncFunction%\"===t)r=f(\"async function () {}\");else if(\"%GeneratorFunction%\"===t)r=f(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===t)r=f(\"async function* () {}\");else if(\"%AsyncGenerator%\"===t){var n=e(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===t){var o=e(\"%AsyncGenerator%\");o&&v&&(r=v(o.prototype))}return x[t]=r,r},E={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},A=r(71769),R=r(71060),j=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),O=A.call(Function.call,String.prototype.replace),T=A.call(Function.call,String.prototype.slice),M=A.call(Function.call,RegExp.prototype.exec),k=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,D=/\\\\(\\\\)?/g,N=function(e){var t=T(e,0,1),r=T(e,-1);if(\"%\"===t&&\"%\"!==r)throw new l(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==t)throw new l(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return O(e,k,function(e,t,r,o){n[n.length]=r?O(o,D,\"$1\"):t||e}),n},L=function(e,t){var r,n=e;if(R(E,n)&&(n=\"%\"+(r=E[n])[0]+\"%\"),R(x,n)){var o=x[n];if(o===b&&(o=P(n)),void 0===o&&!t)throw new u(\"intrinsic \"+e+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:o}}throw new l(\"intrinsic \"+e+\" does not exist!\")};e.exports=function(e,t){if(\"string\"!=typeof e||0===e.length)throw new u(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof t)throw new u('\"allowMissing\" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new l(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=N(e),n=r.length>0?r[0]:\"\",o=L(\"%\"+n+\"%\",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],C(r,j([0,1],c)));for(var d=1,f=!0;d<r.length;d+=1){var h=r[d],m=T(h,0,1),y=T(h,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===y||\"'\"===y||\"`\"===y)&&m!==y)throw new l(\"property names with quotes must have matching quotes\");if(\"constructor\"!==h&&f||(s=!0),n+=\".\"+h,R(x,i=\"%\"+n+\"%\"))a=x[i];else if(null!=a){if(!(h in a)){if(!t)throw new u(\"base intrinsic for \"+e+\" exists, but the property is not available.\");return}if(p&&d+1>=r.length){var g=p(a,h);a=(f=!!g)&&\"get\"in g&&!(\"originalValue\"in g.get)?g.get:a[h]}else f=R(a,h),a=a[h];f&&!s&&(x[i]=a)}}return a}},68136:function(e,t,r){\"use strict\";var n=r(77323)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(e){n=null}e.exports=n},66626:function(e,t,r){\"use strict\";var n=r(7723),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(e){return!0}},e.exports=o},77077:function(e){\"use strict\";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},42152:function(e,t,r){\"use strict\";var n=\"undefined\"!=typeof Symbol&&Symbol,o=r(41770);e.exports=function(){return\"function\"==typeof n&&\"function\"==typeof Symbol&&\"symbol\"==typeof n(\"foo\")&&\"symbol\"==typeof Symbol(\"bar\")&&o()}},41770:function(e){\"use strict\";e.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"==typeof Symbol.iterator)return!0;var e={},t=Symbol(\"test\"),r=Object(t);if(\"string\"==typeof t||\"[object Symbol]\"!==Object.prototype.toString.call(t)||\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(e).length||\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},71060:function(e,t,r){\"use strict\";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(71769);e.exports=i.call(n,o)},43393:function(e,t,r){!function(e,t,r){\"use strict\";function n(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var o=n(t),i=n(r);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=[\"animationData\",\"loop\",\"autoplay\",\"initialSegment\",\"onComplete\",\"onLoopComplete\",\"onEnterFrame\",\"onSegmentStart\",\"onConfigReady\",\"onDataReady\",\"onDataFailed\",\"onLoadedImages\",\"onDOMLoaded\",\"onDestroy\",\"lottieRef\",\"renderer\",\"name\",\"assetsPath\",\"rendererSettings\"],d=function(e,t){var n,a=e.animationData,d=e.loop,f=e.autoplay,p=e.initialSegment,h=e.onComplete,m=e.onLoopComplete,y=e.onEnterFrame,g=e.onSegmentStart,v=e.onConfigReady,b=e.onDataReady,w=e.onDataFailed,x=e.onLoadedImages,S=e.onDOMLoaded,P=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var E=l(e,c),A=function(e){if(Array.isArray(e))return e}(n=r.useState(!1))||function(e,t){var r=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{for(i=(r=r.call(e)).next;!(l=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(n,2)||function(e,t){if(e){if(\"string\"==typeof e)return u(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,2)}}(n,2)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),R=A[0],j=A[1],C=r.useRef(),O=r.useRef(null),T=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(O.current){null===(t=C.current)||void 0===t||t.destroy();var n=s(s(s({},e),r),{},{container:O.current});return C.current=o.default.loadAnimation(n),j(!!C.current),function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0}}};return r.useEffect(function(){var e=T();return function(){return null==e?void 0:e()}},[a,d]),r.useEffect(function(){C.current&&(C.current.autoplay=!!f)},[f]),r.useEffect(function(){if(C.current){if(!p){C.current.resetSegments(!0);return}Array.isArray(p)&&p.length&&((C.current.currentRawFrame<p[0]||C.current.currentRawFrame>p[1])&&(C.current.currentRawFrame=p[0]),C.current.setSegment(p[0],p[1]))}},[p]),r.useEffect(function(){var e=[{name:\"complete\",handler:h},{name:\"loopComplete\",handler:m},{name:\"enterFrame\",handler:y},{name:\"segmentStart\",handler:g},{name:\"config_ready\",handler:v},{name:\"data_ready\",handler:b},{name:\"data_failed\",handler:w},{name:\"loaded_images\",handler:x},{name:\"DOMLoaded\",handler:S},{name:\"destroy\",handler:P}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=C.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=C.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[h,m,y,g,v,b,w,x,S,P]),{View:i.default.createElement(\"div\",s({style:t,ref:O},E)),play:function(){var e;null===(e=C.current)||void 0===e||e.play()},stop:function(){var e;null===(e=C.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=C.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=C.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=C.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=C.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=C.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=C.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=C.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0},animationContainerRef:O,animationLoaded:R,animationItem:C.current}},f=function(e){var t=e.wrapperRef,n=e.animationItem,o=e.mode,i=e.actions;r.useEffect(function(){var e,r,a,s,l,u=t.current;if(u&&n&&i.length)switch(n.stop(),o){case\"scroll\":return e=null,r=function(){var t,r,o,a=(r=(t=u.getBoundingClientRect()).top,o=t.height,(window.innerHeight-r)/(window.innerHeight+o)),s=i.find(function(e){var t=e.visibility;return t&&a>=t[0]&&a<=t[1]});if(s){if(\"seek\"===s.type&&s.visibility&&2===s.frames.length){var l=s.frames[0]+Math.ceil((a-s.visibility[0])/(s.visibility[1]-s.visibility[0])*s.frames[1]);n.goToAndStop(l-n.firstFrame-1,!0)}\"loop\"===s.type&&(null===e?(n.playSegments(s.frames,!0),e=s.frames):e!==s.frames?(n.playSegments(s.frames,!0),e=s.frames):n.isPaused&&(n.playSegments(s.frames,!0),e=s.frames)),\"play\"===s.type&&n.isPaused&&(n.resetSegments(!0),n.play()),\"stop\"===s.type&&n.goToAndStop(s.frames[0]-n.firstFrame-1,!0)}},document.addEventListener(\"scroll\",r),function(){document.removeEventListener(\"scroll\",r)};case\"cursor\":return a=function(e,t){var r=e,o=t;if(-1!==r&&-1!==o){var a,s,l,c,d=(a=r,s=o,c=(l=u.getBoundingClientRect()).top,{x:(a-l.left)/l.width,y:(s-c)/l.height});r=d.x,o=d.y}var f=i.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?r>=t.x[0]&&r<=t.x[1]&&o>=t.y[0]&&o<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&r===t.x&&o===t.y});if(f){if(\"seek\"===f.type&&f.position&&Array.isArray(f.position.x)&&Array.isArray(f.position.y)&&2===f.frames.length){var p=(r-f.position.x[0])/(f.position.x[1]-f.position.x[0]),h=(o-f.position.y[0])/(f.position.y[1]-f.position.y[0]);n.playSegments(f.frames,!0),n.goToAndStop(Math.ceil((p+h)/2*(f.frames[1]-f.frames[0])),!0)}\"loop\"===f.type&&n.playSegments(f.frames,!0),\"play\"===f.type&&(n.isPaused&&n.resetSegments(!1),n.playSegments(f.frames)),\"stop\"===f.type&&n.goToAndStop(f.frames[0],!0)}},s=function(e){a(e.clientX,e.clientY)},l=function(){a(-1,-1)},u.addEventListener(\"mousemove\",s),u.addEventListener(\"mouseout\",l),function(){u.removeEventListener(\"mousemove\",s),u.removeEventListener(\"mouseout\",l)}}},[o,n])},p=function(e){var t=e.actions,r=e.mode,n=e.lottieObj,o=n.animationItem,i=n.View;return f({actions:t,animationItem:o,mode:r,wrapperRef:n.animationContainerRef}),i},h=[\"style\",\"interactivity\"];Object.defineProperty(e,\"LottiePlayer\",{enumerable:!0,get:function(){return o.default}}),e.default=function(e){var t,n,o,i=e.style,a=e.interactivity,s=d(l(e,h),i),u=s.View,c=s.play,f=s.stop,m=s.pause,y=s.setSpeed,g=s.goToAndStop,v=s.goToAndPlay,b=s.setDirection,w=s.playSegments,x=s.setSubframe,S=s.getDuration,P=s.destroy,E=s.animationContainerRef,A=s.animationLoaded,R=s.animationItem;return r.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:f,pause:m,setSpeed:y,goToAndPlay:v,goToAndStop:g,setDirection:b,playSegments:w,setSubframe:x,getDuration:S,destroy:P,animationContainerRef:E,animationLoaded:A,animationItem:R})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),p({lottieObj:{View:u,play:c,stop:f,pause:m,setSpeed:y,goToAndStop:g,goToAndPlay:v,setDirection:b,playSegments:w,setSubframe:x,getDuration:S,destroy:P,animationContainerRef:E,animationLoaded:A,animationItem:R},actions:null!==(n=null==a?void 0:a.actions)&&void 0!==n?n:[],mode:null!==(o=null==a?void 0:a.mode)&&void 0!==o?o:\"scroll\"})},e.useLottie=d,e.useLottieInteractivity=p,Object.defineProperty(e,\"__esModule\",{value:!0})}(t,r(71451),r(2265))},78030:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return l}});var n=r(2265);/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let o=e=>e.replace(/([a-z0-9])([A-Z])/g,\"$1-$2\").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(\" \")};/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */var a={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let s=(0,n.forwardRef)((e,t)=>{let{color:r=\"currentColor\",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u=\"\",children:c,iconNode:d,...f}=e;return(0,n.createElement)(\"svg\",{ref:t,...a,width:o,height:o,stroke:r,strokeWidth:l?24*Number(s)/Number(o):s,className:i(\"lucide\",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:l,...u}=r;return(0,n.createElement)(s,{ref:a,iconNode:t,className:i(\"lucide-\".concat(o(e)),l),...u})});return r.displayName=\"\".concat(e),r}},95137:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"ArrowLeft\",[[\"path\",{d:\"m12 19-7-7 7-7\",key:\"1l729n\"}],[\"path\",{d:\"M19 12H5\",key:\"x3x0zl\"}]])},22468:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Check\",[[\"path\",{d:\"M20 6 9 17l-5-5\",key:\"1gmf2c\"}]])},87592:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"ChevronRight\",[[\"path\",{d:\"m9 18 6-6-6-6\",key:\"mthhwq\"}]])},40472:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"CirclePlay\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"polygon\",{points:\"10 8 16 12 10 16 10 8\",key:\"1cimsy\"}]])},28165:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Circle\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}]])},40933:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Clock\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"polyline\",{points:\"12 6 12 12 16 14\",key:\"68esgv\"}]])},22584:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"CloudUpload\",[[\"path\",{d:\"M12 13v8\",key:\"1l5pq0\"}],[\"path\",{d:\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\",key:\"1pljnt\"}],[\"path\",{d:\"m8 17 4-4 4 4\",key:\"1quai1\"}]])},51077:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"DollarSign\",[[\"line\",{x1:\"12\",x2:\"12\",y1:\"2\",y2:\"22\",key:\"7eqyqh\"}],[\"path\",{d:\"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6\",key:\"1b0p4s\"}]])},71322:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"GripVertical\",[[\"circle\",{cx:\"9\",cy:\"12\",r:\"1\",key:\"1vctgf\"}],[\"circle\",{cx:\"9\",cy:\"5\",r:\"1\",key:\"hp0tcf\"}],[\"circle\",{cx:\"9\",cy:\"19\",r:\"1\",key:\"fkjjf6\"}],[\"circle\",{cx:\"15\",cy:\"12\",r:\"1\",key:\"1tmaij\"}],[\"circle\",{cx:\"15\",cy:\"5\",r:\"1\",key:\"19l28e\"}],[\"circle\",{cx:\"15\",cy:\"19\",r:\"1\",key:\"f4zoj3\"}]])},3274:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"LoaderCircle\",[[\"path\",{d:\"M21 12a9 9 0 1 1-6.219-8.56\",key:\"13zald\"}]])},89896:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"LogOut\",[[\"path\",{d:\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\",key:\"1uf3rs\"}],[\"polyline\",{points:\"16 17 21 12 16 7\",key:\"1gabdz\"}],[\"line\",{x1:\"21\",x2:\"9\",y1:\"12\",y2:\"12\",key:\"1uyos4\"}]])},92699:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Moon\",[[\"path\",{d:\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\",key:\"a7tn18\"}]])},14504:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Music\",[[\"path\",{d:\"M9 18V5l12-2v13\",key:\"1jmyc2\"}],[\"circle\",{cx:\"6\",cy:\"18\",r:\"3\",key:\"fqmcym\"}],[\"circle\",{cx:\"18\",cy:\"16\",r:\"3\",key:\"1hluhg\"}]])},24841:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Pause\",[[\"rect\",{x:\"14\",y:\"4\",width:\"4\",height:\"16\",rx:\"1\",key:\"zuxfzm\"}],[\"rect\",{x:\"6\",y:\"4\",width:\"4\",height:\"16\",rx:\"1\",key:\"1okwgv\"}]])},18422:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Pencil\",[[\"path\",{d:\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\",key:\"1a8usu\"}],[\"path\",{d:\"m15 5 4 4\",key:\"1mk7zo\"}]])},38401:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Percent\",[[\"line\",{x1:\"19\",x2:\"5\",y1:\"5\",y2:\"19\",key:\"1x9vlm\"}],[\"circle\",{cx:\"6.5\",cy:\"6.5\",r:\"2.5\",key:\"4mh3h7\"}],[\"circle\",{cx:\"17.5\",cy:\"17.5\",r:\"2.5\",key:\"1mdrzq\"}]])},98094:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Play\",[[\"polygon\",{points:\"6 3 20 12 6 21 6 3\",key:\"1oa8hb\"}]])},38296:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"Sun\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"4\",key:\"4exip2\"}],[\"path\",{d:\"M12 2v2\",key:\"tus03m\"}],[\"path\",{d:\"M12 20v2\",key:\"1lh1kg\"}],[\"path\",{d:\"m4.93 4.93 1.41 1.41\",key:\"149t6j\"}],[\"path\",{d:\"m17.66 17.66 1.41 1.41\",key:\"ptbguv\"}],[\"path\",{d:\"M2 12h2\",key:\"1t8f8n\"}],[\"path\",{d:\"M20 12h2\",key:\"1q8mjw\"}],[\"path\",{d:\"m6.34 17.66-1.41 1.41\",key:\"1m8zz5\"}],[\"path\",{d:\"m19.07 4.93-1.41 1.41\",key:\"1shlcs\"}]])},52022:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"User\",[[\"path\",{d:\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\",key:\"975kel\"}],[\"circle\",{cx:\"12\",cy:\"7\",r:\"4\",key:\"17ys0d\"}]])},74697:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});/**\n * @license lucide-react v0.424.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */let n=(0,r(78030).Z)(\"X\",[[\"path\",{d:\"M18 6 6 18\",key:\"1bl5f8\"}],[\"path\",{d:\"m6 6 12 12\",key:\"d8bk6v\"}]])},66648:function(e,t,r){\"use strict\";r.d(t,{default:function(){return o.a}});var n=r(55601),o=r.n(n)},87138:function(e,t,r){\"use strict\";r.d(t,{default:function(){return o.a}});var n=r(231),o=r.n(n)},844:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addLocale\",{enumerable:!0,get:function(){return n}}),r(18157);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25944:function(e,t,r){\"use strict\";function n(e,t,r,n){return!1}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getDomainLocale\",{enumerable:!0,get:function(){return n}}),r(18157),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38173:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"Image\",{enumerable:!0,get:function(){return b}});let n=r(99920),o=r(41452),i=r(57437),a=o._(r(2265)),s=n._(r(54887)),l=n._(r(28321)),u=r(80497),c=r(7103),d=r(93938);r(72301);let f=r(60291),p=n._(r(21241)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,o,i,a){let s=null==e?void 0:e.src;e&&e[\"data-loaded-src\"]!==s&&(e[\"data-loaded-src\"]=s,(\"decode\"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if(\"empty\"!==t&&o(!0),null==r?void 0:r.current){let t=new Event(\"load\");Object.defineProperty(t,\"target\",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}\"undefined\"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let g=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:g,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:x,setShowAltText:S,sizesInput:P,onLoad:E,onError:A,...R}=e;return(0,i.jsx)(\"img\",{...R,...y(f),loading:h,width:l,height:s,decoding:u,\"data-nimg\":v?\"fill\":\"1\",className:c,style:d,sizes:o,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&(\"function\"==typeof t?t(e):\"object\"==typeof t&&(t.current=e)),e&&(A&&(e.src=e.src),e.complete&&m(e,p,b,w,x,g,P))},[r,p,b,w,x,A,g,P,t]),onLoad:e=>{m(e.currentTarget,p,b,w,x,g,P)},onError:e=>{S(!0),\"empty\"!==p&&x(!0),A&&A(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:\"image\",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,i.jsx)(l.default,{children:(0,i.jsx)(\"link\",{rel:\"preload\",href:r.srcSet?void 0:r.src,...n},\"__nimg-\"+r.src+r.srcSet+r.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[b,w]=(0,a.useState)(!1),[x,S]=(0,a.useState)(!1),{props:P,meta:E}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:b,showAltText:x});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{...P,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:m,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:S,sizesInput:e.sizes,ref:t}),E.priority?(0,i.jsx)(v,{isAppRouter:!r,imgAttributes:P}):null]})});(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},231:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return w}});let n=r(99920),o=r(57437),i=n._(r(2265)),a=r(98016),s=r(18029),l=r(41142),u=r(43461),c=r(844),d=r(60291),f=r(44467),p=r(53106),h=r(25944),m=r(4897),y=r(51507),g=new Set;function v(e,t,r,n,o,i){if(\"undefined\"!=typeof window&&(i||(0,s.isLocalURL)(t))){if(!n.bypassPrefetchedCheck){let o=t+\"%\"+r+\"%\"+(void 0!==n.locale?n.locale:\"locale\"in e?e.locale:void 0);if(g.has(o))return;g.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return\"string\"==typeof e?e:(0,l.formatUrl)(e)}let w=i.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:w,prefetch:x=null,passHref:S,replace:P,shallow:E,scroll:A,locale:R,onClick:j,onMouseEnter:C,onTouchStart:O,legacyBehavior:T=!1,...M}=e;r=w,T&&(\"string\"==typeof r||\"number\"==typeof r)&&(r=(0,o.jsx)(\"a\",{children:r}));let k=i.default.useContext(d.RouterContext),D=i.default.useContext(f.AppRouterContext),N=null!=k?k:D,L=!k,I=!1!==x,F=null===x?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:_,as:V}=i.default.useMemo(()=>{if(!k){let e=b(l);return{href:e,as:g?b(g):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:g?(0,a.resolveHref)(k,g):t||e}},[k,l,g]),z=i.default.useRef(_),B=i.default.useRef(V);T&&(n=i.default.Children.only(r));let W=T?n&&\"object\"==typeof n&&n.ref:t,[U,$,H]=(0,p.useIntersection)({rootMargin:\"200px\"}),K=i.default.useCallback(e=>{(B.current!==V||z.current!==_)&&(H(),B.current=V,z.current=_),U(e),W&&(\"function\"==typeof W?W(e):\"object\"==typeof W&&(W.current=e))},[V,W,_,H,U]);i.default.useEffect(()=>{N&&$&&I&&v(N,_,V,{locale:R},{kind:F},L)},[V,_,$,R,I,null==k?void 0:k.locale,N,L,F]);let q={ref:K,onClick(e){T||\"function\"!=typeof j||j(e),T&&n.props&&\"function\"==typeof n.props.onClick&&n.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,r,n,o,a,l,u,c){let{nodeName:d}=e.currentTarget;if(\"A\"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute(\"target\");return t&&\"_self\"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;\"beforePopState\"in t?t[o?\"replace\":\"push\"](r,n,{shallow:a,locale:u,scroll:e}):t[o?\"replace\":\"push\"](n||r,{scroll:e})};c?i.default.startTransition(f):f()}(e,N,_,V,P,E,A,R,L)},onMouseEnter(e){T||\"function\"!=typeof C||C(e),T&&n.props&&\"function\"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&(I||!L)&&v(N,_,V,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:F},L)},onTouchStart:function(e){T||\"function\"!=typeof O||O(e),T&&n.props&&\"function\"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&(I||!L)&&v(N,_,V,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:F},L)}};if((0,u.isAbsoluteUrl)(V))q.href=V;else if(!T||S||\"a\"===n.type&&!(\"href\"in n.props)){let e=void 0!==R?R:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(V,e,null==k?void 0:k.defaultLocale))}return T?i.default.cloneElement(n,q):(0,o.jsx)(\"a\",{...M,...q,children:r})});(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49189:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r=\"undefined\"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n=\"undefined\"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98016:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"resolveHref\",{enumerable:!0,get:function(){return d}});let n=r(18323),o=r(41142),i=r(45519),a=r(43461),s=r(18157),l=r(18029),u=r(59195),c=r(80020);function d(e,t,r){let d;let f=\"string\"==typeof t?t:(0,o.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\\/\\//),h=p?f.slice(p[0].length):f;if((h.split(\"?\",1)[0]||\"\").match(/(\\/\\/|\\\\)/)){console.error(\"Invalid href '\"+f+\"' passed to next/router in page: '\"+e.pathname+\"'. Repeated forward-slashes (//) or backslashes \\\\ are not valid in the href.\");let t=(0,a.normalizeRepeatedSlashes)(h);f=(p?p[0]:\"\")+t}if(!(0,l.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith(\"#\")?e.asPath:e.pathname,\"http://n\")}catch(e){d=new URL(\"/\",\"http://n\")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t=\"\";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(r,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[f]:f}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53106:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"useIntersection\",{enumerable:!0,get:function(){return l}});let n=r(2265),o=r(49189),i=\"function\"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!i,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||\"\"},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},s.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[p,c,(0,n.useCallback)(()=>{d(!1)},[])]}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82901:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"AmpStateContext\",{enumerable:!0,get:function(){return n}});let n=r(99920)._(r(2265)).default.createContext({})},40687:function(e,t){\"use strict\";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isInAmpMode\",{enumerable:!0,get:function(){return r}})},81943:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"escapeStringRegexp\",{enumerable:!0,get:function(){return o}});let r=/[|\\\\{}()[\\]^$+*?.-]/,n=/[|\\\\{}()[\\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,\"\\\\$&\"):e}},80497:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getImgProps\",{enumerable:!0,get:function(){return s}}),r(72301);let n=r(51564),o=r(7103);function i(e){return void 0!==e.default}function a(e){return void 0===e?e:\"number\"==typeof e?Number.isFinite(e)?e:NaN:\"string\"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:p=!1,loading:h,className:m,quality:y,width:g,height:v,fill:b=!1,style:w,overrideSrc:x,onLoad:S,onLoadingComplete:P,placeholder:E=\"empty\",blurDataURL:A,fetchPriority:R,layout:j,objectFit:C,objectPosition:O,lazyBoundary:T,lazyRoot:M,...k}=e,{imgConf:D,showAltText:N,blurComplete:L,defaultLoader:I}=t,F=D||o.imageConfigDefault;if(\"allSizes\"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t}}if(void 0===I)throw Error(\"images.loaderFile detected but the file is missing default export.\\nRead more: https://nextjs.org/docs/messages/invalid-images-config\");let _=k.loader||I;delete k.loader,delete k.srcSet;let V=\"__next_img_default\"in _;if(V){if(\"custom\"===s.loader)throw Error('Image with src \"'+c+'\" is missing \"loader\" prop.\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=_;_=t=>{let{config:r,...n}=t;return e(n)}}if(j){\"fill\"===j&&(b=!0);let e={intrinsic:{maxWidth:\"100%\",height:\"auto\"},responsive:{width:\"100%\",height:\"auto\"}}[j];e&&(w={...w,...e});let t={responsive:\"100vw\",fill:\"100vw\"}[j];t&&!d&&(d=t)}let z=\"\",B=a(g),W=a(v);if(\"object\"==typeof(r=c)&&(i(r)||void 0!==r.src)){let e=i(c)?c.default:c;if(!e.src)throw Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received \"+JSON.stringify(e));if(!e.height||!e.width)throw Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received \"+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,A=A||e.blurDataURL,z=e.src,!b){if(B||W){if(B&&!W){let t=B/e.width;W=Math.round(e.height*t)}else if(!B&&W){let t=W/e.height;B=Math.round(e.width*t)}}else B=e.width,W=e.height}}let U=!p&&(\"lazy\"===h||void 0===h);(!(c=\"string\"==typeof c?c:z)||c.startsWith(\"data:\")||c.startsWith(\"blob:\"))&&(f=!0,U=!1),s.unoptimized&&(f=!0),V&&c.endsWith(\".svg\")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(R=\"high\");let $=a(y),H=Object.assign(b?{position:\"absolute\",height:\"100%\",width:\"100%\",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:\"transparent\"},w),K=L||\"empty\"===E?null:\"blur\"===E?'url(\"data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:W,blurWidth:l,blurHeight:u,blurDataURL:A||\"\",objectFit:H.objectFit})+'\")':'url(\"'+E+'\")',q=K?{backgroundSize:H.objectFit||\"cover\",backgroundPosition:H.objectPosition||\"50% 50%\",backgroundRepeat:\"no-repeat\",backgroundImage:K}:{},G=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\\s)(1?\\d?\\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:\"w\"}}return{widths:o,kind:\"w\"}}return\"number\"!=typeof t?{widths:n,kind:\"w\"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:\"x\"}}(t,o,a),c=l.length-1;return{sizes:a||\"w\"!==u?a:\"100vw\",srcSet:l.map((e,n)=>s({config:t,src:r,quality:i,width:e})+\" \"+(\"w\"===u?e:n+1)+u).join(\", \"),src:s({config:t,src:r,quality:i,width:l[c]})}}({config:s,src:c,unoptimized:f,width:B,quality:$,sizes:d,loader:_});return{props:{...k,loading:U?\"lazy\":h,fetchPriority:R,width:B,height:W,decoding:\"async\",className:m,style:{...H,...q},sizes:G.sizes,srcSet:G.srcSet,src:x||G.src},meta:{unoptimized:f,priority:p,placeholder:E,fill:b}}}},28321:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let n=r(99920),o=r(41452),i=r(57437),a=o._(r(2265)),s=n._(r(65960)),l=r(82901),u=r(36590),c=r(40687);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)(\"meta\",{charSet:\"utf-8\"})];return e||t.push((0,i.jsx)(\"meta\",{name:\"viewport\",content:\"width=device-width\"})),t}function f(e,t){return\"string\"==typeof t||\"number\"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>\"string\"==typeof t||\"number\"==typeof t?e:e.concat(t),[])):e.concat(t)}r(72301);let p=[\"name\",\"httpEquiv\",\"charSet\",\"itemProp\"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,a=!1;if(o.key&&\"number\"!=typeof o.key&&o.key.indexOf(\"$\")>0){a=!0;let t=o.key.slice(o.key.indexOf(\"$\")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case\"title\":case\"base\":t.has(o.type)?i=!1:t.add(o.type);break;case\"meta\":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t)){if(\"charSet\"===t)r.has(t)?i=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;(\"name\"!==t||!a)&&r.has(e)?i=!1:(r.add(e),n[t]=r)}}}}return i}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&\"link\"===e.type&&e.props.href&&[\"https://fonts.googleapis.com/css\",\"https://use.typekit.net/\"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t[\"data-href\"]=t.href,t.href=void 0,t[\"data-optimized-fonts\"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,a.useContext)(l.AmpStateContext),n=(0,a.useContext)(u.HeadManagerContext);return(0,i.jsx)(s.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51564:function(e,t){\"use strict\";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=n?40*n:t,l=o?40*o:r,u=s&&l?\"viewBox='0 0 \"+s+\" \"+l+\"'\":\"\";return\"%3Csvg xmlns='http://www.w3.org/2000/svg' \"+u+\"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='\"+(u?\"none\":\"contain\"===a?\"xMidYMid\":\"cover\"===a?\"xMidYMid slice\":\"none\")+\"' style='filter: url(%23b);' href='\"+i+\"'/%3E%3C/svg%3E\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getImageBlurSvg\",{enumerable:!0,get:function(){return r}})},93938:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ImageConfigContext\",{enumerable:!0,get:function(){return i}});let n=r(99920)._(r(2265)),o=r(7103),i=n.default.createContext(o.imageConfigDefault)},7103:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=[\"default\",\"imgix\",\"cloudinary\",\"akamai\",\"custom\"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",loaderFile:\"\",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:[\"image/webp\"],dangerouslyAllowSVG:!1,contentSecurityPolicy:\"script-src 'none'; frame-src 'none'; sandbox;\",contentDispositionType:\"inline\",remotePatterns:[],unoptimized:!1}},55601:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(99920),o=r(80497),i=r(38173),a=n._(r(21241));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=i.Image},21241:function(e,t){\"use strict\";function r(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+\"?url=\"+encodeURIComponent(r)+\"&w=\"+n+\"&q=\"+(o||75)}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},60291:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"RouterContext\",{enumerable:!0,get:function(){return n}});let n=r(99920)._(r(2265)).default.createContext(null)},41142:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let n=r(41452)._(r(18323)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,i=e.protocol||\"\",a=e.pathname||\"\",s=e.hash||\"\",l=e.query||\"\",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,\":\")+\"@\":\"\",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(\":\")?\"[\"+r+\"]\":r),e.port&&(u+=\":\"+e.port)),l&&\"object\"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&\"?\"+l||\"\";return i&&!i.endsWith(\":\")&&(i+=\":\"),e.slashes||(!i||o.test(i))&&!1!==u?(u=\"//\"+(u||\"\"),a&&\"/\"!==a[0]&&(a=\"/\"+a)):u||(u=\"\"),s&&\"#\"!==s[0]&&(s=\"#\"+s),c&&\"?\"!==c[0]&&(c=\"?\"+c),\"\"+i+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace(\"#\",\"%23\"))+s}let a=[\"auth\",\"hash\",\"host\",\"hostname\",\"href\",\"path\",\"pathname\",\"port\",\"protocol\",\"query\",\"search\",\"slashes\"];function s(e){return i(e)}},59195:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(49089),o=r(28083)},80020:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"interpolateAs\",{enumerable:!0,get:function(){return i}});let n=r(41533),o=r(63169);function i(e,t,r){let i=\"\",a=(0,o.getRouteRegex)(e),s=a.groups,l=(t!==e?(0,n.getRouteMatcher)(a)(t):\"\")||r;i=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||\"\",{repeat:r,optional:n}=s[e],o=\"[\"+(r?\"...\":\"\")+e+\"]\";return n&&(o=(t?\"\":\"/\")+\"[\"+o+\"]\"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(i=i.replace(o,r?t.map(e=>encodeURIComponent(e)).join(\"/\"):encodeURIComponent(t))||\"/\")})||(i=\"\"),{params:u,result:i}}},28083:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isDynamicRoute\",{enumerable:!0,get:function(){return i}});let n=r(82269),o=/\\/\\[[^/]+?\\](?=\\/|$)/;function i(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},18029:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isLocalURL\",{enumerable:!0,get:function(){return i}});let n=r(43461),o=r(49404);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},45519:function(e,t){\"use strict\";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"omit\",{enumerable:!0,get:function(){return r}})},18323:function(e,t){\"use strict\";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return\"string\"!=typeof e&&(\"number\"!=typeof e||isNaN(e))&&\"boolean\"!=typeof e?\"\":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},41533:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getRouteMatcher\",{enumerable:!0,get:function(){return o}});let n=r(43461);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError(\"failed to decode param\")}},a={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(a[e]=~n.indexOf(\"/\")?n.split(\"/\").map(e=>i(e)):t.repeat?[i(n)]:i(n))}),a}}},63169:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l}});let n=r(82269),o=r(81943),i=r(67741);function a(e){let t=e.startsWith(\"[\")&&e.endsWith(\"]\");t&&(e=e.slice(1,-1));let r=e.startsWith(\"...\");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split(\"/\"),r={},s=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(t&&i){let{key:e,optional:n,repeat:l}=a(i[1]);return r[e]={pos:s++,repeat:l,optional:n},\"/\"+(0,o.escapeStringRegexp)(t)+\"([^/]+?)\"}if(!i)return\"/\"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=a(i[1]);return r[e]={pos:s++,repeat:t,optional:n},t?n?\"(?:/(.+?))?\":\"/(.+?)\":\"/([^/]+?)\"}}).join(\"\"),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=s(e);return{re:RegExp(\"^\"+t+\"(?:/)?$\"),groups:r}}function u(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:i,keyPrefix:s}=e,{key:l,optional:u,repeat:c}=a(n),d=l.replace(/\\W/g,\"\");s&&(d=\"\"+s+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=r()),s?i[d]=\"\"+s+l:i[d]=l;let p=t?(0,o.escapeStringRegexp)(t):\"\";return c?u?\"(?:/\"+p+\"(?<\"+d+\">.+?))?\":\"/\"+p+\"(?<\"+d+\">.+?)\":\"/\"+p+\"(?<\"+d+\">[^/]+?)\"}function c(e,t){let r;let a=(0,i.removeTrailingSlash)(e).slice(1).split(\"/\"),s=(r=0,()=>{let e=\"\",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:a.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(r&&i){let[r]=e.split(i[0]);return u({getSafeRouteKey:s,interceptionMarker:r,segment:i[1],routeKeys:l,keyPrefix:t?\"nxtI\":void 0})}return i?u({getSafeRouteKey:s,segment:i[1],routeKeys:l,keyPrefix:t?\"nxtP\":void 0}):\"/\"+(0,o.escapeStringRegexp)(e)}).join(\"\"),routeKeys:l}}function d(e,t){let r=c(e,t);return{...l(e),namedRegex:\"^\"+r.namedParameterizedRoute+\"(?:/)?$\",routeKeys:r.routeKeys}}function f(e,t){let{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if(\"/\"===r)return{namedRegex:\"^/\"+(n?\".*\":\"\")+\"$\"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:\"^\"+o+(n?\"(?:(/.*)?)\":\"\")+\"$\"}}},49089:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSortedRoutes\",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split(\"/\").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e=\"/\");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf(\"[]\"),1),null!==this.restSlugName&&t.splice(t.indexOf(\"[...]\"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf(\"[[...]]\"),1);let r=t.map(t=>this.children.get(t)._smoosh(\"\"+e+t+\"/\")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get(\"[]\")._smoosh(e+\"[\"+this.slugName+\"]/\")),!this.placeholder){let t=\"/\"===e?\"/\":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route (\"'+t+'\" and \"'+t+\"[[...\"+this.optionalRestSlugName+']]\").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get(\"[...]\")._smoosh(e+\"[...\"+this.restSlugName+\"]/\")),null!==this.optionalRestSlugName&&r.push(...this.children.get(\"[[...]]\")._smoosh(e+\"[[...\"+this.optionalRestSlugName+\"]]/\")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error(\"Catch-all must be the last part of the URL.\");let o=e[0];if(o.startsWith(\"[\")&&o.endsWith(\"]\")){let r=o.slice(1,-1),a=!1;if(r.startsWith(\"[\")&&r.endsWith(\"]\")&&(r=r.slice(1,-1),a=!0),r.startsWith(\"...\")&&(r=r.substring(3),n=!0),r.startsWith(\"[\")||r.endsWith(\"]\"))throw Error(\"Segment names may not start or end with extra brackets ('\"+r+\"').\");if(r.startsWith(\".\"))throw Error(\"Segment names may not start with erroneous periods ('\"+r+\"').\");function i(e,r){if(null!==e&&e!==r)throw Error(\"You cannot use different slug names for the same dynamic path ('\"+e+\"' !== '\"+r+\"').\");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name \"'+r+'\" repeat within a single dynamic path');if(e.replace(/\\W/g,\"\")===o.replace(/\\W/g,\"\"))throw Error('You cannot have the slug names \"'+e+'\" and \"'+r+'\" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level (\"[...'+this.restSlugName+']\" and \"'+e[0]+'\" ).');i(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o=\"[[...]]\"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level (\"[[...'+this.optionalRestSlugName+']]\" and \"'+e[0]+'\").');i(this.restSlugName,r),this.restSlugName=r,o=\"[...]\"}}else{if(a)throw Error('Optional route parameters are not yet supported (\"'+e[0]+'\").');i(this.slugName,r),this.slugName=r,o=\"[]\"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},65960:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return s}});let n=r(2265),o=\"undefined\"==typeof window,i=o?()=>{}:n.useLayoutEffect,a=o?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}if(o){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),s()}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},43461:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return y},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=[\"CLS\",\"FCP\",\"FID\",\"INP\",\"LCP\",\"TTFB\"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\\d+\\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+\"//\"+t+(r?\":\"+r:\"\")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return\"string\"==typeof e?e:e.displayName||e.name||\"Unknown\"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split(\"?\");return t[0].replace(/\\\\/g,\"/\").replace(/\\/\\/+/g,\"/\")+(t[1]?\"?\"+t.slice(1).join(\"?\"):\"\")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Error('\"'+l(e)+'.getInitialProps()\" should resolve to an object. But found \"'+n+'\" instead.');return n}let f=\"undefined\"!=typeof performance,p=f&&[\"mark\",\"measure\",\"getEntriesByName\"].every(e=>\"function\"==typeof performance[e]);class h extends Error{}class m extends Error{}class y extends Error{constructor(e){super(),this.code=\"ENOENT\",this.name=\"PageNotFoundError\",this.message=\"Cannot find module for page: \"+e}}class g extends Error{constructor(e,t){super(),this.message=\"Failed to load static file for page: \"+e+\" \"+t}}class v extends Error{constructor(){super(),this.code=\"ENOENT\",this.message=\"Cannot find the middleware module\"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},56919:function(e,t,r){var n=\"function\"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,\"size\"):null,i=n&&o&&\"function\"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s=\"function\"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,\"size\"):null,u=s&&l&&\"function\"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d=\"function\"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f=\"function\"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=\"function\"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,S=RegExp.prototype.test,P=Array.prototype.concat,E=Array.prototype.join,A=Array.prototype.slice,R=Math.floor,j=\"function\"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,O=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?Symbol.prototype.toString:null,T=\"function\"==typeof Symbol&&\"object\"==typeof Symbol.iterator,M=\"function\"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T?\"object\":\"symbol\")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,D=(\"function\"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(\"number\"==typeof e){var n=e<0?-R(-e):R(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,\"$&_\")+\".\"+b.call(b.call(i,/([0-9]{3})/g,\"$&_\"),/_$/,\"\")}}return b.call(t,r,\"$&_\")}var L=r(24654),I=L.custom,F=B(I)?I:null;function _(e,t,r){var n=\"double\"===(r.quoteStyle||t)?'\"':\"'\";return n+e+n}function V(e){return\"[object Array]\"===$(e)&&(!M||!(\"object\"==typeof e&&M in e))}function z(e){return\"[object RegExp]\"===$(e)&&(!M||!(\"object\"==typeof e&&M in e))}function B(e){if(T)return e&&\"object\"==typeof e&&e instanceof Symbol;if(\"symbol\"==typeof e)return!0;if(!e||\"object\"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(U(l,\"quoteStyle\")&&\"single\"!==l.quoteStyle&&\"double\"!==l.quoteStyle)throw TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');if(U(l,\"maxStringLength\")&&(\"number\"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');var m=!U(l,\"customInspect\")||l.customInspect;if(\"boolean\"!=typeof m&&\"symbol\"!==m)throw TypeError(\"option \\\"customInspect\\\", if provided, must be `true`, `false`, or `'symbol'`\");if(U(l,\"indent\")&&null!==l.indent&&\"\t\"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');if(U(l,\"numericSeparator\")&&\"boolean\"!=typeof l.numericSeparator)throw TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return\"undefined\";if(null===t)return\"null\";if(\"boolean\"==typeof t)return t?\"true\":\"false\";if(\"string\"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+\"... \"+n+\" more character\"+(n>1?\"s\":\"\")}return _(b.call(b.call(t,/(['\\\\])/g,\"\\\\$1\"),/[\\x00-\\x1f]/g,K),\"single\",r)}(t,l);if(\"number\"==typeof t){if(0===t)return 1/0/t>0?\"0\":\"-0\";var S=String(t);return w?N(t,S):S}if(\"bigint\"==typeof t){var R=String(t)+\"n\";return w?N(t,R):R}var C=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=C&&C>0&&\"object\"==typeof t)return V(t)?\"[Array]\":\"[Object]\";var I=function(e,t){var r;if(\"\t\"===e.indent)r=\"\t\";else{if(\"number\"!=typeof e.indent||!(e.indent>0))return null;r=E.call(Array(e.indent+1),\" \")}return{base:r,prev:E.call(Array(t+1),r)}}(l,o);if(void 0===s)s=[];else if(H(s,t)>=0)return\"[Circular]\";function W(t,r,n){if(r&&(s=A.call(s)).push(r),n){var i={depth:l.depth};return U(l,\"quoteStyle\")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if(\"function\"==typeof t&&!z(t)){var J=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\\s*([\\w$]+)/);return t?t[1]:null}(t),Q=Y(t,W);return\"[Function\"+(J?\": \"+J:\" (anonymous)\")+\"]\"+(Q.length>0?\" { \"+E.call(Q,\", \")+\" }\":\"\")}if(B(t)){var ee=T?b.call(String(t),/^(Symbol\\(.*\\))_[^)]*$/,\"$1\"):O.call(t);return\"object\"!=typeof t||T?ee:q(ee)}if(t&&\"object\"==typeof t&&(\"undefined\"!=typeof HTMLElement&&t instanceof HTMLElement||\"string\"==typeof t.nodeName&&\"function\"==typeof t.getAttribute)){for(var et,er=\"<\"+x.call(String(t.nodeName)),en=t.attributes||[],eo=0;eo<en.length;eo++)er+=\" \"+en[eo].name+\"=\"+_((et=en[eo].value,b.call(String(et),/\"/g,\"&quot;\")),\"double\",l);return er+=\">\",t.childNodes&&t.childNodes.length&&(er+=\"...\"),er+=\"</\"+x.call(String(t.nodeName))+\">\"}if(V(t)){if(0===t.length)return\"[]\";var ei=Y(t,W);return I&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],\"\\n\")>=0)return!1;return!0}(ei)?\"[\"+X(ei,I)+\"]\":\"[ \"+E.call(ei,\", \")+\" ]\"}if(\"[object Error]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t))){var ea=Y(t,W);return\"cause\"in Error.prototype||!(\"cause\"in t)||k.call(t,\"cause\")?0===ea.length?\"[\"+String(t)+\"]\":\"{ [\"+String(t)+\"] \"+E.call(ea,\", \")+\" }\":\"{ [\"+String(t)+\"] \"+E.call(P.call(\"[cause]: \"+W(t.cause),ea),\", \")+\" }\"}if(\"object\"==typeof t&&m){if(F&&\"function\"==typeof t[F]&&L)return L(t,{depth:C-o});if(\"symbol\"!==m&&\"function\"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||\"object\"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var es=[];return a&&a.call(t,function(e,r){es.push(W(r,t,!0)+\" => \"+W(e,t))}),Z(\"Map\",i.call(t),es,I)}if(function(e){if(!u||!e||\"object\"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var el=[];return c&&c.call(t,function(e){el.push(W(e,t))}),Z(\"Set\",u.call(t),el,I)}if(function(e){if(!d||!e||\"object\"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return G(\"WeakMap\");if(function(e){if(!f||!e||\"object\"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return G(\"WeakSet\");if(function(e){if(!p||!e||\"object\"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return G(\"WeakRef\");if(\"[object Number]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))return q(W(Number(t)));if(function(e){if(!e||\"object\"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return q(W(j.call(t)));if(\"[object Boolean]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))return q(h.call(t));if(\"[object String]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))return q(W(String(t)));if(\"undefined\"!=typeof window&&t===window)return\"{ [object Window] }\";if(\"undefined\"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return\"{ [object globalThis] }\";if(!(\"[object Date]\"===$(t)&&(!M||!(\"object\"==typeof t&&M in t)))&&!z(t)){var eu=Y(t,W),ec=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,ed=t instanceof Object?\"\":\"null prototype\",ef=!ec&&M&&Object(t)===t&&M in t?v.call($(t),8,-1):ed?\"Object\":\"\",ep=(ec||\"function\"!=typeof t.constructor?\"\":t.constructor.name?t.constructor.name+\" \":\"\")+(ef||ed?\"[\"+E.call(P.call([],ef||[],ed||[]),\": \")+\"] \":\"\");return 0===eu.length?ep+\"{}\":I?ep+\"{\"+X(eu,I)+\"}\":ep+\"{ \"+E.call(eu,\", \")+\" }\"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return W.call(e,t)}function $(e){return m.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function K(e){var t=e.charCodeAt(0),r={8:\"b\",9:\"t\",10:\"n\",12:\"f\",13:\"r\"}[t];return r?\"\\\\\"+r:\"\\\\x\"+(t<16?\"0\":\"\")+w.call(t.toString(16))}function q(e){return\"Object(\"+e+\")\"}function G(e){return e+\" { ? }\"}function Z(e,t,r,n){return e+\" (\"+t+\") {\"+(n?X(r,n):E.call(r,\", \"))+\"}\"}function X(e,t){if(0===e.length)return\"\";var r=\"\\n\"+t.prev+t.base;return r+E.call(e,\",\"+r)+\"\\n\"+t.prev}function Y(e,t){var r,n=V(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=U(e,i)?t(e[i],e):\"\"}var a=\"function\"==typeof C?C(e):[];if(T){r={};for(var s=0;s<a.length;s++)r[\"$\"+a[s]]=a[s]}for(var l in e)U(e,l)&&(!n||String(Number(l))!==l||!(l<e.length))&&(T&&r[\"$\"+l]instanceof Symbol||(S.call(/[^\\w$]/,l)?o.push(t(l,e)+\": \"+t(e[l],e)):o.push(l+\": \"+t(e[l],e))));if(\"function\"==typeof C)for(var u=0;u<a.length;u++)k.call(e,a[u])&&o.push(\"[\"+t(a[u])+\"]: \"+t(e[a[u]],e));return o}},3462:function(e){\"use strict\";var t=String.prototype.replace,r=/%20/g,n=\"RFC3986\";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,\"+\")},RFC3986:function(e){return String(e)}},RFC1738:\"RFC1738\",RFC3986:n}},97334:function(e,t,r){\"use strict\";var n=r(38489),o=r(69864),i=r(3462);e.exports={formats:i,parse:o,stringify:n}},69864:function(e,t,r){\"use strict\";var n=r(65600),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:\"utf-8\",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:\"&\",depth:5,duplicates:\"combine\",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e,t){return e&&\"string\"==typeof e&&t.comma&&e.indexOf(\",\")>-1?e.split(\",\"):e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\\?/,\"\"):e;l=l.replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,c=l.split(t.delimiter,u),d=-1,f=t.charset;if(t.charsetSentinel)for(p=0;p<c.length;++p)0===c[p].indexOf(\"utf8=\")&&(\"utf8=%E2%9C%93\"===c[p]?f=\"utf-8\":\"utf8=%26%2310003%3B\"===c[p]&&(f=\"iso-8859-1\"),d=p,p=c.length);for(p=0;p<c.length;++p)if(p!==d){var p,h,m,y=c[p],g=y.indexOf(\"]=\"),v=-1===g?y.indexOf(\"=\"):g+1;-1===v?(h=t.decoder(y,a.decoder,f,\"key\"),m=t.strictNullHandling?null:\"\"):(h=t.decoder(y.slice(0,v),a.decoder,f,\"key\"),m=n.maybeMap(s(y.slice(v+1),t),function(e){return t.decoder(e,a.decoder,f,\"value\")})),m&&t.interpretNumericEntities&&\"iso-8859-1\"===f&&(m=m.replace(/&#(\\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),y.indexOf(\"[]=\")>-1&&(m=i(m)?[m]:m);var b=o.call(r,h);b&&\"combine\"===t.duplicates?r[h]=n.combine(r[h],m):b&&\"last\"!==t.duplicates||(r[h]=m)}return r},u=function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if(\"[]\"===l&&r.parseArrays)a=r.allowEmptyArrays&&(\"\"===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u=\"[\"===l.charAt(0)&&\"]\"===l.charAt(l.length-1)?l.slice(1,-1):l,c=r.decodeDotInKeys?u.replace(/%2E/g,\".\"):u,d=parseInt(c,10);r.parseArrays||\"\"!==c?!isNaN(d)&&l!==c&&String(d)===c&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(a=[])[d]=o:\"__proto__\"!==c&&(a[c]=o):a={0:o}}o=a}return o},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\\.([^.[]+)/g,\"[$1]\"):e,a=/(\\[[^[\\]]*])/g,s=r.depth>0&&/(\\[[^[\\]]*])/.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var d=0;r.depth>0&&null!==(s=a.exec(i))&&d<r.depth;){if(d+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}if(s){if(!0===r.strictDepth)throw RangeError(\"Input depth exceeded depth option of \"+r.depth+\" and strictDepth is true\");c.push(\"[\"+i.slice(s.index)+\"]\")}return u(c,t,r,n)}},d=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&\"boolean\"!=typeof e.allowEmptyArrays)throw TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(void 0!==e.decodeDotInKeys&&\"boolean\"!=typeof e.decodeDotInKeys)throw TypeError(\"`decodeDotInKeys` option can only be `true` or `false`, when provided\");if(null!==e.decoder&&void 0!==e.decoder&&\"function\"!=typeof e.decoder)throw TypeError(\"Decoder has to be a function.\");if(void 0!==e.charset&&\"utf-8\"!==e.charset&&\"iso-8859-1\"!==e.charset)throw TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if(\"combine\"!==r&&\"first\"!==r&&\"last\"!==r)throw TypeError(\"The duplicates option must be either combine, first, or last\");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:\"boolean\"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:\"boolean\"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:\"boolean\"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:\"number\"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:\"boolean\"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:\"boolean\"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:\"boolean\"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:\"function\"==typeof e.decoder?e.decoder:a.decoder,delimiter:\"string\"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:\"number\"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:\"boolean\"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:\"number\"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:\"boolean\"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:\"boolean\"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:\"boolean\"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(\"\"===e||null==e)return r.plainObjects?Object.create(null):{};for(var o=\"string\"==typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],f=c(u,o[u],r,\"string\"==typeof e);i=n.merge(i,f,r)}return!0===r.allowSparse?i:n.compact(i)}},38489:function(e,t,r){\"use strict\";var n=r(16689),o=r(65600),i=r(3462),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+\"[]\"},comma:\"comma\",indices:function(e,t){return e+\"[\"+t+\"]\"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:\"indices\",charset:\"utf-8\",charsetSentinel:!1,delimiter:\"&\",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,r,i,a,s,u,d,f,m,y,g,v,b,w,x,S,P,E){for(var A,R,j=t,C=E,O=0,T=!1;void 0!==(C=C.get(h))&&!T;){var M=C.get(t);if(O+=1,void 0!==M){if(M===O)throw RangeError(\"Cyclic object value\");T=!0}void 0===C.get(h)&&(O=0)}if(\"function\"==typeof y?j=y(r,j):j instanceof Date?j=b(j):\"comma\"===i&&l(j)&&(j=o.maybeMap(j,function(e){return e instanceof Date?b(e):e})),null===j){if(u)return m&&!S?m(r,p.encoder,P,\"key\",w):r;j=\"\"}if(\"string\"==typeof(A=j)||\"number\"==typeof A||\"boolean\"==typeof A||\"symbol\"==typeof A||\"bigint\"==typeof A||o.isBuffer(j))return m?[x(S?r:m(r,p.encoder,P,\"key\",w))+\"=\"+x(m(j,p.encoder,P,\"value\",w))]:[x(r)+\"=\"+x(String(j))];var k=[];if(void 0===j)return k;if(\"comma\"===i&&l(j))S&&m&&(j=o.maybeMap(j,m)),R=[{value:j.length>0?j.join(\",\")||null:void 0}];else if(l(y))R=y;else{var D=Object.keys(j);R=g?D.sort(g):D}var N=f?r.replace(/\\./g,\"%2E\"):r,L=a&&l(j)&&1===j.length?N+\"[]\":N;if(s&&l(j)&&0===j.length)return L+\"[]\";for(var I=0;I<R.length;++I){var F=R[I],_=\"object\"==typeof F&&void 0!==F.value?F.value:j[F];if(!d||null!==_){var V=v&&f?F.replace(/\\./g,\"%2E\"):F,z=l(j)?\"function\"==typeof i?i(L,V):L:L+(v?\".\"+V:\"[\"+V+\"]\");E.set(t,O);var B=n();B.set(h,E),c(k,e(_,z,i,a,s,u,d,f,\"comma\"===i&&S&&l(j)?null:m,y,g,v,b,w,x,S,P,B))}}return k},y=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&\"boolean\"!=typeof e.allowEmptyArrays)throw TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(void 0!==e.encodeDotInKeys&&\"boolean\"!=typeof e.encodeDotInKeys)throw TypeError(\"`encodeDotInKeys` option can only be `true` or `false`, when provided\");if(null!==e.encoder&&void 0!==e.encoder&&\"function\"!=typeof e.encoder)throw TypeError(\"Encoder has to be a function.\");var t,r=e.charset||p.charset;if(void 0!==e.charset&&\"utf-8\"!==e.charset&&\"iso-8859-1\"!==e.charset)throw TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError(\"Unknown format option provided.\");n=e.format}var o=i.formatters[n],u=p.filter;if((\"function\"==typeof e.filter||l(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:\"indices\"in e?e.indices?\"indices\":\"repeat\":p.arrayFormat,\"commaRoundTrip\"in e&&\"boolean\"!=typeof e.commaRoundTrip)throw TypeError(\"`commaRoundTrip` must be a boolean, or absent\");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:\"boolean\"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:\"boolean\"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:\"boolean\"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:\"boolean\"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:\"boolean\"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:\"function\"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:\"boolean\"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:\"function\"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:\"boolean\"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:\"function\"==typeof e.sort?e.sort:null,strictNullHandling:\"boolean\"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,o=e,i=y(t);\"function\"==typeof i.filter?o=(0,i.filter)(\"\",o):l(i.filter)&&(r=i.filter);var a=[];if(\"object\"!=typeof o||null===o)return\"\";var u=s[i.arrayFormat],d=\"comma\"===u&&i.commaRoundTrip;r||(r=Object.keys(o)),i.sort&&r.sort(i.sort);for(var f=n(),p=0;p<r.length;++p){var h=r[p];i.skipNulls&&null===o[h]||c(a,m(o[h],h,u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,f))}var g=a.join(i.delimiter),v=!0===i.addQueryPrefix?\"?\":\"\";return i.charsetSentinel&&(\"iso-8859-1\"===i.charset?v+=\"utf8=%26%2310003%3B&\":v+=\"utf8=%E2%9C%93&\"),g.length>0?v+g:\"\"}},65600:function(e,t,r){\"use strict\";var n=r(3462),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(\"%\"+((t<16?\"0\":\"\")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:\"o\"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),l=0;l<a.length;++l){var u=a[l],c=i[u];\"object\"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:u}),r.push(c))}return s(t),e},decode:function(e,t,r){var n=e.replace(/\\+/g,\" \");if(\"iso-8859-1\"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if(\"symbol\"==typeof e?s=Symbol.prototype.toString.call(e):\"string\"!=typeof e&&(s=String(e)),\"iso-8859-1\"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return\"%26%23\"+parseInt(e.slice(2),16)+\"%3B\"});for(var l=\"\",u=0;u<s.length;u+=1024){for(var c=s.length>=1024?s.slice(u,u+1024):s,d=[],f=0;f<c.length;++f){var p=c.charCodeAt(f);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)){d[d.length]=c.charAt(f);continue}if(p<128){d[d.length]=a[p];continue}if(p<2048){d[d.length]=a[192|p>>6]+a[128|63&p];continue}if(p<55296||p>=57344){d[d.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p];continue}f+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(f)),d[d.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p]}l+=d.join(\"\")}return l},isBuffer:function(e){return!!e&&\"object\"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if(\"object\"!=typeof r){if(i(t))t.push(r);else{if(!t||\"object\"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||\"object\"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=l(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&\"object\"==typeof a&&r&&\"object\"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},49418:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return X}});var n,o,i,a,s,l,u,c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}\"function\"==typeof SuppressedError&&SuppressedError;var f=r(2265),p=\"right-scroll-bar-position\",h=\"width-before-scroll-bar\";function m(e,t){return\"function\"==typeof e?e(t):e&&(e.current=t),e}var y=\"undefined\"!=typeof window?f.useLayoutEffect:f.useEffect,g=new WeakMap,v=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var r=a;a=[],r.forEach(e),t=a}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=c({async:!0,ssr:!1},o),l),b=function(){},w=f.forwardRef(function(e,t){var r,n,o,i,a=f.useRef(null),s=f.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),l=s[0],u=s[1],p=e.forwardProps,h=e.children,w=e.className,x=e.removeScrollBar,S=e.enabled,P=e.shards,E=e.sideCar,A=e.noIsolation,R=e.inert,j=e.allowPinchZoom,C=e.as,O=e.gapMode,T=d(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\",\"gapMode\"]),M=(r=[a,t],n=function(e){return r.forEach(function(t){return m(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,i=o.facade,y(function(){var e=g.get(i);if(e){var t=new Set(e),n=new Set(r),o=i.current;t.forEach(function(e){n.has(e)||m(e,null)}),n.forEach(function(e){t.has(e)||m(e,o)})}g.set(i,r)},[r]),i),k=c(c({},T),l);return f.createElement(f.Fragment,null,S&&f.createElement(E,{sideCar:v,removeScrollBar:x,shards:P,noIsolation:A,inert:R,setCallbacks:u,allowPinchZoom:!!j,lockRef:a,gapMode:O}),p?f.cloneElement(f.Children.only(h),c(c({},k),{ref:M})):f.createElement(void 0===C?\"div\":C,c({},k,{className:w,ref:M}),h))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:h,zeroRight:p};var x=function(e){var t=e.sideCar,r=d(e,[\"sideCar\"]);if(!t)throw Error(\"Sidecar: please provide `sideCar` property to import the right car\");var n=t.read();if(!n)throw Error(\"Sidecar medium not found\");return f.createElement(n,c({},r))};x.isSideCarExport=!0;var S=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var t=n||r.nc;return t&&e.setAttribute(\"nonce\",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName(\"head\")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},P=function(){var e=S();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},E=function(){var e=P();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||\"\",10)||0},j=function(e){var t=window.getComputedStyle(document.body),r=t[\"padding\"===e?\"paddingLeft\":\"marginLeft\"],n=t[\"padding\"===e?\"paddingTop\":\"marginTop\"],o=t[\"padding\"===e?\"paddingRight\":\"marginRight\"];return[R(r),R(n),R(o)]},C=function(e){if(void 0===e&&(e=\"margin\"),\"undefined\"==typeof window)return A;var t=j(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},O=E(),T=\"data-scroll-locked\",M=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r=\"margin\"),\"\\n  .\".concat(\"with-scroll-bars-hidden\",\" {\\n   overflow: hidden \").concat(n,\";\\n   padding-right: \").concat(s,\"px \").concat(n,\";\\n  }\\n  body[\").concat(T,\"] {\\n    overflow: hidden \").concat(n,\";\\n    overscroll-behavior: contain;\\n    \").concat([t&&\"position: relative \".concat(n,\";\"),\"margin\"===r&&\"\\n    padding-left: \".concat(o,\"px;\\n    padding-top: \").concat(i,\"px;\\n    padding-right: \").concat(a,\"px;\\n    margin-left:0;\\n    margin-top:0;\\n    margin-right: \").concat(s,\"px \").concat(n,\";\\n    \"),\"padding\"===r&&\"padding-right: \".concat(s,\"px \").concat(n,\";\")].filter(Boolean).join(\"\"),\"\\n  }\\n  \\n  .\").concat(p,\" {\\n    right: \").concat(s,\"px \").concat(n,\";\\n  }\\n  \\n  .\").concat(h,\" {\\n    margin-right: \").concat(s,\"px \").concat(n,\";\\n  }\\n  \\n  .\").concat(p,\" .\").concat(p,\" {\\n    right: 0 \").concat(n,\";\\n  }\\n  \\n  .\").concat(h,\" .\").concat(h,\" {\\n    margin-right: 0 \").concat(n,\";\\n  }\\n  \\n  body[\").concat(T,\"] {\\n    \").concat(\"--removed-body-scroll-bar-size\",\": \").concat(s,\"px;\\n  }\\n\")},k=function(){var e=parseInt(document.body.getAttribute(T)||\"0\",10);return isFinite(e)?e:0},D=function(){f.useEffect(function(){return document.body.setAttribute(T,(k()+1).toString()),function(){var e=k()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},N=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?\"margin\":n;D();var i=f.useMemo(function(){return C(o)},[o]);return f.createElement(O,{styles:M(i,!t,o,r?\"\":\"!important\")})},L=!1;if(\"undefined\"!=typeof window)try{var I=Object.defineProperty({},\"passive\",{get:function(){return L=!0,!0}});window.addEventListener(\"test\",I,I),window.removeEventListener(\"test\",I,I)}catch(e){L=!1}var F=!!L&&{passive:!1},_=function(e,t){var r=window.getComputedStyle(e);return\"hidden\"!==r[t]&&!(r.overflowY===r.overflowX&&\"TEXTAREA\"!==e.tagName&&\"visible\"===r[t])},V=function(e,t){var r=t.ownerDocument,n=t;do{if(\"undefined\"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),z(e,n)){var o=B(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},z=function(e,t){return\"v\"===e?_(t,\"overflowY\"):_(t,\"overflowX\")},B=function(e,t){return\"v\"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,\"h\"===e&&\"rtl\"===i?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=B(e,l),m=h[0],y=h[1]-h[2]-a*m;(m||y)&&z(e,l)&&(f+=y,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&s>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(c=!0),c},U=function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&\"current\"in e?e.current:e},K=0,q=[],G=(u=function(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(K++)[0],i=f.useState(E)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(\"allow-interactivity-\".concat(o))}),function(){document.body.classList.remove(\"block-interactivity-\".concat(o)),t.forEach(function(e){return e.classList.remove(\"allow-interactivity-\".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(e,t){if(\"touches\"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=U(e),s=r.current,l=\"deltaX\"in e?e.deltaX:s[0]-i[0],u=\"deltaY\"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?\"h\":\"v\";if(\"touches\"in e&&\"h\"===d&&\"range\"===c.type)return!1;var f=V(d,c);if(!f)return!0;if(f?o=d:(o=\"v\"===d?\"h\":\"v\",f=V(d,c)),!f)return!1;if(!n.current&&\"changedTouches\"in e&&(l||u)&&(n.current=o),!o)return!0;var p=n.current||o;return W(p,t,e,\"h\"===p?l:u,!0)},[]),l=f.useCallback(function(e){if(q.length&&q[q.length-1]===i){var r=\"deltaY\"in e?$(e):U(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(a.current.shards||[]).map(H).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=f.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=f.useCallback(function(e){r.current=U(e),n.current=void 0},[]),d=f.useCallback(function(t){u(t.type,$(t),t.target,s(t,e.lockRef.current))},[]),p=f.useCallback(function(t){u(t.type,U(t),t.target,s(t,e.lockRef.current))},[]);f.useEffect(function(){return q.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener(\"wheel\",l,F),document.addEventListener(\"touchmove\",l,F),document.addEventListener(\"touchstart\",c,F),function(){q=q.filter(function(e){return e!==i}),document.removeEventListener(\"wheel\",l,F),document.removeEventListener(\"touchmove\",l,F),document.removeEventListener(\"touchstart\",c,F)}},[]);var h=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(i,{styles:\"\\n  .block-interactivity-\".concat(o,\" {pointer-events: none;}\\n  .allow-interactivity-\").concat(o,\" {pointer-events: all;}\\n\")}):null,h?f.createElement(N,{gapMode:e.gapMode}):null)},v.useMedium(u),x),Z=f.forwardRef(function(e,t){return f.createElement(w,c({},e,{ref:t,sideCar:G}))});Z.classNames=w.classNames;var X=Z},41505:function(e,t,r){\"use strict\";r.d(t,{OT:function(){return eR},eh:function(){return eP},s_:function(){return P}});var n,o=r(2265);let{createElement:i,createContext:a,createRef:s,forwardRef:l,useCallback:u,useContext:c,useEffect:d,useImperativeHandle:f,useLayoutEffect:p,useMemo:h,useRef:m,useState:y}=n||(n=r.t(o,2)),g=(n||(n=r.t(o,2)))[\"useId\".toString()],v=a(null);v.displayName=\"PanelGroupContext\";let b=\"function\"==typeof g?g:()=>null,w=0;function x(e=null){let t=b(),r=m(e||t||null);return null===r.current&&(r.current=\"\"+w++),null!=e?e:r.current}function S({children:e,className:t=\"\",collapsedSize:r,collapsible:n,defaultSize:o,forwardedRef:a,id:s,maxSize:l,minSize:u,onCollapse:d,onExpand:h,onResize:y,order:g,style:b,tagName:w=\"div\",...S}){let P=c(v);if(null===P)throw Error(\"Panel components must be rendered within a PanelGroup container\");let{collapsePanel:E,expandPanel:A,getPanelSize:R,getPanelStyle:j,groupId:C,isPanelCollapsed:O,reevaluatePanelConstraints:T,registerPanel:M,resizePanel:k,unregisterPanel:D}=P,N=x(s),L=m({callbacks:{onCollapse:d,onExpand:h,onResize:y},constraints:{collapsedSize:r,collapsible:n,defaultSize:o,maxSize:l,minSize:u},id:N,idIsFromProps:void 0!==s,order:g});m({didLogMissingDefaultSizeWarning:!1}),p(()=>{let{callbacks:e,constraints:t}=L.current,i={...t};L.current.id=N,L.current.idIsFromProps=void 0!==s,L.current.order=g,e.onCollapse=d,e.onExpand=h,e.onResize=y,t.collapsedSize=r,t.collapsible=n,t.defaultSize=o,t.maxSize=l,t.minSize=u,(i.collapsedSize!==t.collapsedSize||i.collapsible!==t.collapsible||i.maxSize!==t.maxSize||i.minSize!==t.minSize)&&T(L.current,i)}),p(()=>{let e=L.current;return M(e),()=>{D(e)}},[g,N,M,D]),f(a,()=>({collapse:()=>{E(L.current)},expand:e=>{A(L.current,e)},getId:()=>N,getSize:()=>R(L.current),isCollapsed:()=>O(L.current),isExpanded:()=>!O(L.current),resize:e=>{k(L.current,e)}}),[E,A,R,O,N,k]);let I=j(L.current,o);return i(w,{...S,children:e,className:t,id:s,style:{...I,...b},\"data-panel\":\"\",\"data-panel-collapsible\":n||void 0,\"data-panel-group-id\":C,\"data-panel-id\":N,\"data-panel-size\":parseFloat(\"\"+I.flexGrow).toFixed(1)})}let P=l((e,t)=>i(S,{...e,forwardedRef:t}));S.displayName=\"Panel\",P.displayName=\"forwardRef(Panel)\";let E=null,A=null;function R(e,t){let r=function(e,t){if(t){let e=(t&I)!=0,r=(t&F)!=0,n=(t&_)!=0,o=(t&V)!=0;if(e)return n?\"se-resize\":o?\"ne-resize\":\"e-resize\";if(r)return n?\"sw-resize\":o?\"nw-resize\":\"w-resize\";if(n)return\"s-resize\";if(o)return\"n-resize\"}switch(e){case\"horizontal\":return\"ew-resize\";case\"intersection\":return\"move\";case\"vertical\":return\"ns-resize\"}}(e,t);E!==r&&(E=r,null===A&&(A=document.createElement(\"style\"),document.head.appendChild(A)),A.innerHTML=`*{cursor: ${r}!important;}`)}function j(e){return\"keydown\"===e.type}function C(e){return e.type.startsWith(\"pointer\")}function O(e){return e.type.startsWith(\"mouse\")}function T(e){if(C(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(O(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let M=/\\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\\b/;function k(e){let t=e.length;for(;t--;){let r=e[t];if(Q(r,\"Missing node\"),function(e){let t=getComputedStyle(e);return!!(\"fixed\"===t.position||\"auto\"!==t.zIndex&&(\"static\"!==t.position||function(e){var t;let r=getComputedStyle(null!==(t=L(e))&&void 0!==t?t:e).display;return\"flex\"===r||\"inline-flex\"===r}(e))||1>+t.opacity||\"transform\"in t&&\"none\"!==t.transform||\"webkitTransform\"in t&&\"none\"!==t.webkitTransform||\"mixBlendMode\"in t&&\"normal\"!==t.mixBlendMode||\"filter\"in t&&\"none\"!==t.filter||\"webkitFilter\"in t&&\"none\"!==t.webkitFilter||\"isolation\"in t&&\"isolate\"===t.isolation||M.test(t.willChange))||\"touch\"===t.webkitOverflowScrolling}(r))return r}return null}function D(e){return e&&Number(getComputedStyle(e).zIndex)||0}function N(e){let t=[];for(;e;)t.push(e),e=L(e);return t}function L(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let I=1,F=2,_=4,V=8,z=\"coarse\"===function(){if(\"function\"==typeof matchMedia)return matchMedia(\"(pointer:coarse)\").matches?\"coarse\":\"fine\"}(),B=[],W=!1,U=new Map,$=new Map,H=new Set;function K(e){let{target:t}=e,{x:r,y:n}=T(e);W=!0,Z({target:t,x:r,y:n}),Y(),B.length>0&&(J(\"down\",e),e.preventDefault(),e.stopPropagation())}function q(e){let{x:t,y:r}=T(e);if(0===e.buttons&&(W=!1,J(\"up\",e)),!W){let{target:n}=e;Z({target:n,x:t,y:r})}J(\"move\",e),X(),B.length>0&&e.preventDefault()}function G(e){let{target:t}=e,{x:r,y:n}=T(e);$.clear(),W=!1,B.length>0&&e.preventDefault(),J(\"up\",e),Z({target:t,x:r,y:n}),X(),Y()}function Z({target:e,x:t,y:r}){B.splice(0);let n=null;e instanceof HTMLElement&&(n=e),H.forEach(e=>{let{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:u,top:c}=a,d=z?i.coarse:i.fine;if(t>=l-d&&t<=u+d&&r>=c-d&&r<=s+d){if(null!==n&&o!==n&&!o.contains(n)&&!n.contains(o)&&function(e,t){let r;if(e===t)throw Error(\"Cannot compare node with itself\");let n={a:N(e),b:N(t)};for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Q(r,\"Stacking order can only be calculated for elements with a common ancestor\");let o={a:D(k(n.a)),b:D(k(n.b))};if(o.a===o.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},o=e.length;for(;o--;){let r=e[o];if(r===t.a)return 1;if(r===t.b)return -1}}return Math.sign(o.a-o.b)}(n,o)>0){let e=n,t=!1;for(;e;){var f;if(e.contains(o))break;if((f=e.getBoundingClientRect()).x<a.x+a.width&&f.x+f.width>a.x&&f.y<a.y+a.height&&f.y+f.height>a.y){t=!0;break}e=e.parentElement}if(t)return}B.push(e)}})}function X(){let e=!1,t=!1;B.forEach(r=>{let{direction:n}=r;\"horizontal\"===n?e=!0:t=!0});let r=0;$.forEach(e=>{r|=e}),e&&t?R(\"intersection\",r):e?R(\"horizontal\",r):t?R(\"vertical\",r):null!==A&&(document.head.removeChild(A),E=null,A=null)}function Y(){U.forEach((e,t)=>{let{body:r}=t;r.removeEventListener(\"contextmenu\",G),r.removeEventListener(\"pointerdown\",K),r.removeEventListener(\"pointerleave\",q),r.removeEventListener(\"pointermove\",q)}),window.removeEventListener(\"pointerup\",G),window.removeEventListener(\"pointercancel\",G),H.size>0&&(W?(B.length>0&&U.forEach((e,t)=>{let{body:r}=t;e>0&&(r.addEventListener(\"contextmenu\",G),r.addEventListener(\"pointerleave\",q),r.addEventListener(\"pointermove\",q))}),window.addEventListener(\"pointerup\",G),window.addEventListener(\"pointercancel\",G)):U.forEach((e,t)=>{let{body:r}=t;e>0&&(r.addEventListener(\"pointerdown\",K,{capture:!0}),r.addEventListener(\"pointermove\",q))}))}function J(e,t){H.forEach(r=>{let{setResizeHandlerState:n}=r;n(e,B.includes(r),t)})}function Q(e,t){if(!e)throw console.error(t),Error(t)}function ee(e,t,r=10){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}function et(e,t,r=10){return 0===ee(e,t,r)}function er(e,t,r){return 0===ee(e,t,r)}function en({panelConstraints:e,panelIndex:t,size:r}){let n=e[t];Q(null!=n,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=n;return 0>ee(r,s)&&(r=i&&0>ee(r,(o+s)/2)?o:s),r=parseFloat((r=Math.min(a,r)).toFixed(10))}function eo({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:o,trigger:i}){if(er(e,0))return t;let a=[...t],[s,l]=n;Q(null!=s,\"Invalid first pivot index\"),Q(null!=l,\"Invalid second pivot index\");let u=0;if(\"keyboard\"===i){{let n=e<0?l:s,o=r[n];Q(o,`Panel constraints not found for index ${n}`);let{collapsedSize:i=0,collapsible:a,minSize:u=0}=o;if(a){let r=t[n];if(Q(null!=r,`Previous layout not found for panel index ${n}`),er(r,i)){let t=u-r;ee(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let n=e<0?s:l,o=r[n];Q(o,`No panel constraints found for index ${n}`);let{collapsedSize:i=0,collapsible:a,minSize:u=0}=o;if(a){let r=t[n];if(Q(null!=r,`Previous layout not found for panel index ${n}`),er(r,u)){let t=r-i;ee(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let n=e<0?1:-1,o=e<0?l:s,i=0;for(;;){let e=t[o];if(Q(null!=e,`Previous layout not found for panel index ${o}`),i+=en({panelConstraints:r,panelIndex:o,size:100})-e,(o+=n)<0||o>=r.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let n=e<0?s:l;for(;n>=0&&n<r.length;){let o=Math.abs(e)-Math.abs(u),i=t[n];Q(null!=i,`Previous layout not found for panel index ${n}`);let s=en({panelConstraints:r,panelIndex:n,size:i-o});if(!er(i,s)&&(u+=i-s,a[n]=s,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?n--:n++}}if(function(e,t,r){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!er(e[r],t[r],void 0))return!1;return!0}(o,a))return o;{let n=e<0?l:s,o=t[n];Q(null!=o,`Previous layout not found for panel index ${n}`);let i=o+u,c=en({panelConstraints:r,panelIndex:n,size:i});if(a[n]=c,!er(c,i)){let t=i-c,n=e<0?l:s;for(;n>=0&&n<r.length;){let o=a[n];Q(null!=o,`Previous layout not found for panel index ${n}`);let i=en({panelConstraints:r,panelIndex:n,size:o+t});if(er(o,i)||(t-=i-o,a[n]=i),er(t,0))break;e>0?n--:n++}}}return er(a.reduce((e,t)=>t+e,0),100)?a:o}function ei(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id=\"${e}\"]`))}function ea(e,t,r=document){let n=ei(e,r).findIndex(e=>e.getAttribute(\"data-panel-resize-handle-id\")===t);return null!=n?n:null}function es(e,t,r){let n=ea(e,t,r);return null!=n?[n,n+1]:[-1,-1]}function el(e,t=document){var r;return t instanceof HTMLElement&&(null==t?void 0:null===(r=t.dataset)||void 0===r?void 0:r.panelGroupId)==e?t:t.querySelector(`[data-panel-group][data-panel-group-id=\"${e}\"]`)||null}function eu(e,t=document){return t.querySelector(`[data-panel-resize-handle-id=\"${e}\"]`)||null}function ec(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function ed(e,t){let{x:r,y:n}=T(t);return\"horizontal\"===e?r:n}function ef(e,t,r){t.forEach((t,n)=>{let o=e[n];Q(o,`Panel data not found for index ${n}`);let{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:u}=a,c=r[s];if(null==c||t!==c){r[s]=t;let{onCollapse:e,onExpand:n,onResize:o}=i;o&&o(t,c),u&&(e||n)&&(n&&(null==c||et(c,l))&&!et(t,l)&&n(),e&&(null==c||!et(c,l))&&et(t,l)&&e())}})}function ep(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function eh(e){try{if(\"undefined\"!=typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error(\"localStorage not supported in this environment\")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function em(e){return`react-resizable-panels:${e}`}function ey(e){return e.map(e=>{let{constraints:t,id:r,idIsFromProps:n,order:o}=e;return n?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(\",\")}function eg(e,t){try{let r=em(e),n=t.getItem(r);if(n){let e=JSON.parse(n);if(\"object\"==typeof e&&null!=e)return e}}catch(e){}return null}function ev(e,t,r,n,o){var i;let a=em(e),s=ey(t),l=null!==(i=eg(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function eb({layout:e,panelConstraints:t}){let r=[...e],n=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(\", \")}`);if(!er(n,100))for(let e=0;e<t.length;e++){let t=r[e];Q(null!=t,`No layout data found for index ${e}`);let o=100/n*t;r[e]=o}let o=0;for(let e=0;e<t.length;e++){let n=r[e];Q(null!=n,`No layout data found for index ${e}`);let i=en({panelConstraints:t,panelIndex:e,size:n});n!=i&&(o+=n-i,r[e]=i)}if(!er(o,0))for(let e=0;e<t.length;e++){let n=r[e];Q(null!=n,`No layout data found for index ${e}`);let i=en({panelConstraints:t,panelIndex:e,size:n+o});if(n!==i&&(o-=i-n,r[e]=i,er(o,0)))break}return r}let ew={getItem:e=>(eh(ew),ew.getItem(e)),setItem:(e,t)=>{eh(ew),ew.setItem(e,t)}},ex={};function eS({autoSaveId:e=null,children:t,className:r=\"\",direction:n,forwardedRef:o,id:a=null,onLayout:s=null,keyboardResizeBy:l=null,storage:c=ew,style:g,tagName:b=\"div\",...w}){let S=x(a),P=m(null),[E,A]=y(null),[R,T]=y([]),M=function(){let[e,t]=y(0);return u(()=>t(e=>e+1),[])}(),k=m({}),D=m(new Map),N=m(0),L=m({autoSaveId:e,direction:n,dragState:E,id:S,keyboardResizeBy:l,onLayout:s,storage:c}),z=m({layout:R,panelDataArray:[],panelDataArrayChanged:!1});m({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f(o,()=>({getId:()=>L.current.id,getLayout:()=>{let{layout:e}=z.current;return e},setLayout:e=>{let{onLayout:t}=L.current,{layout:r,panelDataArray:n}=z.current,o=eb({layout:e,panelConstraints:n.map(e=>e.constraints)});ec(r,o)||(T(o),z.current.layout=o,t&&t(o),ef(n,o,k.current))}}),[]),p(()=>{L.current.autoSaveId=e,L.current.direction=n,L.current.dragState=E,L.current.id=S,L.current.onLayout=s,L.current.storage=c}),function({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:n,panelDataArray:o,panelGroupElement:i,setLayout:a}){m({didWarnAboutMissingResizeHandle:!1}),p(()=>{if(!i)return;let e=ei(r,i);for(let t=0;t<o.length-1;t++){let{valueMax:r,valueMin:i,valueNow:a}=function({layout:e,panelsArray:t,pivotIndices:r}){let n=0,o=100,i=0,a=0,s=r[0];return Q(null!=s,\"No pivot index found\"),t.forEach((e,t)=>{let{constraints:r}=e,{maxSize:l=100,minSize:u=0}=r;t===s?(n=u,o=l):(i+=u,a+=l)}),{valueMax:Math.min(o,100-i),valueMin:Math.max(n,100-a),valueNow:e[s]}}({layout:n,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{let e=o[t];Q(e,`No panel data found for index \"${t}\"`),s.setAttribute(\"aria-controls\",e.id),s.setAttribute(\"aria-valuemax\",\"\"+Math.round(r)),s.setAttribute(\"aria-valuemin\",\"\"+Math.round(i)),s.setAttribute(\"aria-valuenow\",null!=a?\"\"+Math.round(a):\"\")}}return()=>{e.forEach((e,t)=>{e.removeAttribute(\"aria-controls\"),e.removeAttribute(\"aria-valuemax\"),e.removeAttribute(\"aria-valuemin\"),e.removeAttribute(\"aria-valuenow\")})}},[r,n,o,i]),d(()=>{if(!i)return;let e=t.current;Q(e,\"Eager values not found\");let{panelDataArray:o}=e;Q(null!=el(r,i),`No group found for id \"${r}\"`);let s=ei(r,i);Q(s,`No resize handles found for group id \"${r}\"`);let l=s.map(e=>{let t=e.getAttribute(\"data-panel-resize-handle-id\");Q(t,\"Resize handle element has no handle id attribute\");let[s,l]=function(e,t,r,n=document){var o,i,a,s;let l=eu(t,n),u=ei(e,n),c=l?u.indexOf(l):-1;return[null!==(o=null===(i=r[c])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=r[c+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(r,t,o,i);if(null==s||null==l)return()=>{};let u=e=>{if(!e.defaultPrevented&&\"Enter\"===e.key){e.preventDefault();let l=o.findIndex(e=>e.id===s);if(l>=0){let e=o[l];Q(e,`No panel data found for index ${l}`);let s=n[l],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=s&&c){let e=eo({delta:er(s,u)?d-u:u-s,initialLayout:n,panelConstraints:o.map(e=>e.constraints),pivotIndices:es(r,t,i),prevLayout:n,trigger:\"keyboard\"});n!==e&&a(e)}}}};return e.addEventListener(\"keydown\",u),()=>{e.removeEventListener(\"keydown\",u)}});return()=>{l.forEach(e=>e())}},[i,e,t,r,n,o,a])}({committedValuesRef:L,eagerValuesRef:z,groupId:S,layout:R,panelDataArray:z.current.panelDataArray,setLayout:T,panelGroupElement:P.current}),d(()=>{let{panelDataArray:t}=z.current;if(e){if(0===R.length||R.length!==t.length)return;let r=ex[e];null==r&&(r=function(e,t=10){let r=null;return(...n)=>{null!==r&&clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}(ev,100),ex[e]=r),r(e,[...t],new Map(D.current),R,c)}},[e,R,c]),d(()=>{});let B=u(e=>{let{onLayout:t}=L.current,{layout:r,panelDataArray:n}=z.current;if(e.constraints.collapsible){let o=n.map(e=>e.constraints),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=eA(n,e,r);if(Q(null!=a,`Panel size not found for panel \"${e.id}\"`),!et(a,i)){D.current.set(e.id,a);let l=eo({delta:eE(n,e)===n.length-1?a-i:i-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:\"imperative-api\"});ep(r,l)||(T(l),z.current.layout=l,t&&t(l),ef(n,l,k.current))}}},[]),W=u((e,t)=>{let{onLayout:r}=L.current,{layout:n,panelDataArray:o}=z.current;if(e.constraints.collapsible){let i=o.map(e=>e.constraints),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:u}=eA(o,e,n),c=null!=t?t:l;if(et(s,a)){let t=D.current.get(e.id),a=null!=t&&t>=c?t:c,l=eo({delta:eE(o,e)===o.length-1?s-a:a-s,initialLayout:n,panelConstraints:i,pivotIndices:u,prevLayout:n,trigger:\"imperative-api\"});ep(n,l)||(T(l),z.current.layout=l,r&&r(l),ef(o,l,k.current))}}},[]),U=u(e=>{let{layout:t,panelDataArray:r}=z.current,{panelSize:n}=eA(r,e,t);return Q(null!=n,`Panel size not found for panel \"${e.id}\"`),n},[]),H=u((e,t)=>{let{panelDataArray:r}=z.current,n=eE(r,e);return function({defaultSize:e,dragState:t,layout:r,panelData:n,panelIndex:o,precision:i=3}){let a=r[o];return{flexBasis:0,flexGrow:null==a?void 0!=e?e.toPrecision(i):\"1\":1===n.length?\"1\":a.toPrecision(i),flexShrink:1,overflow:\"hidden\",pointerEvents:null!==t?\"none\":void 0}}({defaultSize:t,dragState:E,layout:R,panelData:r,panelIndex:n})},[E,R]),K=u(e=>{let{layout:t,panelDataArray:r}=z.current,{collapsedSize:n=0,collapsible:o,panelSize:i}=eA(r,e,t);return Q(null!=i,`Panel size not found for panel \"${e.id}\"`),!0===o&&et(i,n)},[]),q=u(e=>{let{layout:t,panelDataArray:r}=z.current,{collapsedSize:n=0,collapsible:o,panelSize:i}=eA(r,e,t);return Q(null!=i,`Panel size not found for panel \"${e.id}\"`),!o||ee(i,n)>0},[]),G=u(e=>{let{panelDataArray:t}=z.current;t.push(e),t.sort((e,t)=>{let r=e.order,n=t.order;return null==r&&null==n?0:null==r?-1:null==n?1:r-n}),z.current.panelDataArrayChanged=!0,M()},[M]);p(()=>{if(z.current.panelDataArrayChanged){z.current.panelDataArrayChanged=!1;let{autoSaveId:r,onLayout:n,storage:o}=L.current,{layout:i,panelDataArray:a}=z.current,s=null;if(r){var e,t;let n=null!==(t=(null!==(e=eg(r,o))&&void 0!==e?e:{})[ey(a)])&&void 0!==t?t:null;n&&(D.current=new Map(Object.entries(n.expandToSizes)),s=n.layout)}null==s&&(s=function({panelDataArray:e}){let t=Array(e.length),r=e.map(e=>e.constraints),n=0,o=100;for(let i=0;i<e.length;i++){let e=r[i];Q(e,`Panel constraints not found for index ${i}`);let{defaultSize:a}=e;null!=a&&(n++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){let a=r[i];Q(a,`Panel constraints not found for index ${i}`);let{defaultSize:s}=a;if(null!=s)continue;let l=o/(e.length-n);n++,t[i]=l,o-=l}return t}({panelDataArray:a}));let l=eb({layout:s,panelConstraints:a.map(e=>e.constraints)});ec(i,l)||(T(l),z.current.layout=l,n&&n(l),ef(a,l,k.current))}}),p(()=>{let e=z.current;return()=>{e.layout=[]}},[]);let Z=u(e=>function(t){t.preventDefault();let r=P.current;if(!r)return()=>null;let{direction:n,dragState:o,id:i,keyboardResizeBy:a,onLayout:s}=L.current,{layout:l,panelDataArray:u}=z.current,{initialLayout:c}=null!=o?o:{},d=es(i,e,r),f=function(e,t,r,n,o,i){if(j(e)){let t=\"horizontal\"===r,n=0;n=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case\"ArrowDown\":i=t?0:n;break;case\"ArrowLeft\":i=t?-n:0;break;case\"ArrowRight\":i=t?n:0;break;case\"ArrowUp\":i=t?0:-n;break;case\"End\":i=100;break;case\"Home\":i=-100}return i}return null==n?0:function(e,t,r,n,o){let i=\"horizontal\"===r,a=eu(t,o);Q(a,`No resize handle element found for id \"${t}\"`);let s=a.getAttribute(\"data-panel-group-id\");Q(s,\"Resize handle element has no group id attribute\");let{initialCursorPosition:l}=n,u=ed(r,e),c=el(s,o);Q(c,`No group element found for id \"${s}\"`);let d=c.getBoundingClientRect();return(u-l)/(i?d.width:d.height)*100}(e,t,r,n,i)}(t,e,n,o,a,r),p=\"horizontal\"===n;\"rtl\"===document.dir&&p&&(f=-f);let h=eo({delta:f,initialLayout:null!=c?c:l,panelConstraints:u.map(e=>e.constraints),pivotIndices:d,prevLayout:l,trigger:j(t)?\"keyboard\":\"mouse-or-touch\"}),m=!ep(l,h);if((C(t)||O(t))&&N.current!=f){var y,g;(N.current=f,m)?$.set(e,0):p?(y=f<0?I:F,$.set(e,y)):(g=f<0?_:V,$.set(e,g))}m&&(T(h),z.current.layout=h,s&&s(h),ef(u,h,k.current))},[]),X=u((e,t)=>{let{onLayout:r}=L.current,{layout:n,panelDataArray:o}=z.current,i=o.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=eA(o,e,n);Q(null!=a,`Panel size not found for panel \"${e.id}\"`);let l=eo({delta:eE(o,e)===o.length-1?a-t:t-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:\"imperative-api\"});ep(n,l)||(T(l),z.current.layout=l,r&&r(l),ef(o,l,k.current))},[]),Y=u((e,t)=>{let{layout:r,panelDataArray:n}=z.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:u=0}=e.constraints,{panelSize:c}=eA(n,e,r);null!=c&&(i&&s&&et(c,o)?et(o,a)||X(e,a):c<u?X(e,u):c>l&&X(e,l))},[X]),J=u((e,t)=>{let{direction:r}=L.current,{layout:n}=z.current;if(!P.current)return;let o=eu(e,P.current);Q(o,`Drag handle element not found for id \"${e}\"`);let i=ed(r,t);A({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:n})},[]),en=u(()=>{A(null)},[]),ea=u(e=>{let{panelDataArray:t}=z.current,r=eE(t,e);r>=0&&(t.splice(r,1),delete k.current[e.id],z.current.panelDataArrayChanged=!0,M())},[M]),eh=h(()=>({collapsePanel:B,direction:n,dragState:E,expandPanel:W,getPanelSize:U,getPanelStyle:H,groupId:S,isPanelCollapsed:K,isPanelExpanded:q,reevaluatePanelConstraints:Y,registerPanel:G,registerResizeHandle:Z,resizePanel:X,startDragging:J,stopDragging:en,unregisterPanel:ea,panelGroupElement:P.current}),[B,E,n,W,U,H,S,K,q,Y,G,Z,X,J,en,ea]);return i(v.Provider,{value:eh},i(b,{...w,children:t,className:r,id:a,ref:P,style:{display:\"flex\",flexDirection:\"horizontal\"===n?\"row\":\"column\",height:\"100%\",overflow:\"hidden\",width:\"100%\",...g},\"data-panel-group\":\"\",\"data-panel-group-direction\":n,\"data-panel-group-id\":S}))}let eP=l((e,t)=>i(eS,{...e,forwardedRef:t}));function eE(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eA(e,t,r){let n=eE(e,t),o=n===e.length-1,i=r[n];return{...t.constraints,panelSize:i,pivotIndices:o?[n-1,n]:[n,n+1]}}function eR({children:e=null,className:t=\"\",disabled:r=!1,hitAreaMargins:n,id:o,onBlur:a,onDragging:s,onFocus:l,style:u={},tabIndex:f=0,tagName:h=\"div\",...g}){var b,w;let S=m(null),P=m({onDragging:s});d(()=>{P.current.onDragging=s});let E=c(v);if(null===E)throw Error(\"PanelResizeHandle components must be rendered within a PanelGroup container\");let{direction:A,groupId:R,registerResizeHandle:j,startDragging:C,stopDragging:O,panelGroupElement:T}=E,M=x(o),[k,D]=y(\"inactive\"),[N,L]=y(!1),[I,F]=y(null),_=m({state:k});p(()=>{_.current.state=k}),d(()=>{if(r)F(null);else{let e=j(M);F(()=>e)}},[r,M,j]);let V=null!==(b=null==n?void 0:n.coarse)&&void 0!==b?b:15,z=null!==(w=null==n?void 0:n.fine)&&void 0!==w?w:5;return d(()=>{if(r||null==I)return;let e=S.current;return Q(e,\"Element ref not attached\"),function(e,t,r,n,o){var i;let{ownerDocument:a}=t,s={direction:r,element:t,hitAreaMargins:n,setResizeHandlerState:o},l=null!==(i=U.get(a))&&void 0!==i?i:0;return U.set(a,l+1),H.add(s),Y(),function(){var t;$.delete(e),H.delete(s);let r=null!==(t=U.get(a))&&void 0!==t?t:1;if(U.set(a,r-1),Y(),1===r&&U.delete(a),B.includes(s)){let e=B.indexOf(s);e>=0&&B.splice(e,1),X()}}}(M,e,A,{coarse:V,fine:z},(e,t,r)=>{if(t)switch(e){case\"down\":{D(\"drag\"),C(M,r);let{onDragging:e}=P.current;e&&e(!0);break}case\"move\":{let{state:e}=_.current;\"drag\"!==e&&D(\"hover\"),I(r);break}case\"up\":{D(\"hover\"),O();let{onDragging:e}=P.current;e&&e(!1)}}else D(\"inactive\")})},[V,A,r,z,j,M,I,C,O]),!function({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:n}){d(()=>{if(e||null==r||null==n)return;let o=eu(t,n);if(null==o)return;let i=e=>{if(!e.defaultPrevented)switch(e.key){case\"ArrowDown\":case\"ArrowLeft\":case\"ArrowRight\":case\"ArrowUp\":case\"End\":case\"Home\":e.preventDefault(),r(e);break;case\"F6\":{e.preventDefault();let r=o.getAttribute(\"data-panel-group-id\");Q(r,`No group element found for id \"${r}\"`);let i=ei(r,n),a=ea(r,t,n);Q(null!==a,`No resize element found for id \"${t}\"`);let s=e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0;i[s].focus()}}};return o.addEventListener(\"keydown\",i),()=>{o.removeEventListener(\"keydown\",i)}},[n,e,t,r])}({disabled:r,handleId:M,resizeHandler:I,panelGroupElement:T}),i(h,{...g,children:e,className:t,id:o,onBlur:()=>{L(!1),null==a||a()},onFocus:()=>{L(!0),null==l||l()},ref:S,role:\"separator\",style:{touchAction:\"none\",userSelect:\"none\",...u},tabIndex:f,\"data-panel-group-direction\":A,\"data-panel-group-id\":R,\"data-resize-handle\":\"\",\"data-resize-handle-active\":\"drag\"===k?\"pointer\":N?\"keyboard\":void 0,\"data-resize-handle-state\":k,\"data-panel-resize-handle-enabled\":!r,\"data-panel-resize-handle-id\":M})}eS.displayName=\"PanelGroup\",eP.displayName=\"forwardRef(PanelGroup)\",eR.displayName=\"PanelResizeHandle\"},49813:function(e,t,r){\"use strict\";var n=r(77323),o=r(30602),i=r(66626)(),a=r(68136),s=r(31354),l=n(\"%Math.floor%\");e.exports=function(e,t){if(\"function\"!=typeof e)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if(\"length\"in e&&a){var c=a(e,\"length\");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,\"length\",t,!0,!0):o(e,\"length\",t)),e}},16689:function(e,t,r){\"use strict\";var n=r(77323),o=r(50084),i=r(56919),a=r(31354),s=n(\"%WeakMap%\",!0),l=n(\"%Map%\",!0),u=o(\"WeakMap.prototype.get\",!0),c=o(\"WeakMap.prototype.set\",!0),d=o(\"WeakMap.prototype.has\",!0),f=o(\"Map.prototype.get\",!0),p=o(\"Map.prototype.set\",!0),h=o(\"Map.prototype.has\",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},y=function(e,t){var r=m(e,t);return r&&r.value},g=function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a(\"Side channel does not contain \"+i(e))},get:function(n){if(s&&n&&(\"object\"==typeof n||\"function\"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return f(t,n)}else if(r)return y(r,n)},has:function(n){if(s&&n&&(\"object\"==typeof n||\"function\"==typeof n)){if(e)return d(e,n)}else if(l){if(t)return h(t,n)}else if(r)return!!m(r,n);return!1},set:function(n,o){s&&n&&(\"object\"==typeof n||\"function\"==typeof n)?(e||(e=new s),c(e,n,o)):l?(t||(t=new l),p(t,n,o)):(r||(r={key:{},next:null}),g(r,n,o))}};return n}},78149:function(e,t,r){\"use strict\";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{M:function(){return n}})},6538:function(e,t,r){\"use strict\";r.d(t,{aU:function(){return eS},$j:function(){return eP},VY:function(){return ex},dk:function(){return eA},aV:function(){return ew},h_:function(){return eb},fC:function(){return eg},Dx:function(){return eE},xz:function(){return ev}});var n=r(2265),o=r(98324),i=r(1584),a=r(78149),s=r(53201),l=r(91715),u=r(53938),c=r(80467),d=r(56935),f=r(31383),p=r(25171),h=r(20589),m=r(49418),y=r(78369),g=r(71538),v=r(57437),b=\"Dialog\",[w,x]=(0,o.b)(b),[S,P]=w(b),E=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[f=!1,p]=(0,l.T)({prop:o,defaultProp:i,onChange:a});return(0,v.jsx)(S,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};E.displayName=b;var A=\"DialogTrigger\",R=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(A,r),s=(0,i.e)(t,o.triggerRef);return(0,v.jsx)(p.WV.button,{type:\"button\",\"aria-haspopup\":\"dialog\",\"aria-expanded\":o.open,\"aria-controls\":o.contentId,\"data-state\":H(o.open),...n,ref:s,onClick:(0,a.M)(e.onClick,o.onOpenToggle)})});R.displayName=A;var j=\"DialogPortal\",[C,O]=w(j,{forceMount:void 0}),T=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:i}=e,a=P(j,t);return(0,v.jsx)(C,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,v.jsx)(f.z,{present:r||a.open,children:(0,v.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};T.displayName=j;var M=\"DialogOverlay\",k=n.forwardRef((e,t)=>{let r=O(M,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=P(M,e.__scopeDialog);return i.modal?(0,v.jsx)(f.z,{present:n||i.open,children:(0,v.jsx)(D,{...o,ref:t})}):null});k.displayName=M;var D=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(M,r);return(0,v.jsx)(m.Z,{as:g.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,v.jsx)(p.WV.div,{\"data-state\":H(o.open),...n,ref:t,style:{pointerEvents:\"auto\",...n.style}})})}),N=\"DialogContent\",L=n.forwardRef((e,t)=>{let r=O(N,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=P(N,e.__scopeDialog);return(0,v.jsx)(f.z,{present:n||i.open,children:i.modal?(0,v.jsx)(I,{...o,ref:t}):(0,v.jsx)(F,{...o,ref:t})})});L.displayName=N;var I=n.forwardRef((e,t)=>{let r=P(N,e.__scopeDialog),o=n.useRef(null),s=(0,i.e)(t,r.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,y.Ry)(e)},[]),(0,v.jsx)(_,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault())})}),F=n.forwardRef((e,t)=>{let r=P(N,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,v.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,\"pointerdown\"!==t.detail.originalEvent.type||(i.current=!0));let s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),\"focusin\"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),_=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=P(N,r),f=n.useRef(null),p=(0,i.e)(t,f);return(0,h.EW)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,v.jsx)(u.XB,{role:\"dialog\",id:d.contentId,\"aria-describedby\":d.descriptionId,\"aria-labelledby\":d.titleId,\"data-state\":H(d.open),...l,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Z,{titleId:d.titleId}),(0,v.jsx)(X,{contentRef:f,descriptionId:d.descriptionId})]})]})}),V=\"DialogTitle\",z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(V,r);return(0,v.jsx)(p.WV.h2,{id:o.titleId,...n,ref:t})});z.displayName=V;var B=\"DialogDescription\",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(B,r);return(0,v.jsx)(p.WV.p,{id:o.descriptionId,...n,ref:t})});W.displayName=B;var U=\"DialogClose\",$=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=P(U,r);return(0,v.jsx)(p.WV.button,{type:\"button\",...n,ref:t,onClick:(0,a.M)(e.onClick,()=>o.onOpenChange(!1))})});function H(e){return e?\"open\":\"closed\"}$.displayName=U;var K=\"DialogTitleWarning\",[q,G]=(0,o.k)(K,{contentName:N,titleName:V,docsSlug:\"dialog\"}),Z=e=>{let{titleId:t}=e,r=G(K),o=\"`\".concat(r.contentName,\"` requires a `\").concat(r.titleName,\"` for the component to be accessible for screen reader users.\\n\\nIf you want to hide the `\").concat(r.titleName,\"`, you can wrap it with our VisuallyHidden component.\\n\\nFor more information, see https://radix-ui.com/primitives/docs/components/\").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},X=e=>{let{contentRef:t,descriptionId:r}=e,o=G(\"DialogDescriptionWarning\"),i=\"Warning: Missing `Description` or `aria-describedby={undefined}` for {\".concat(o.contentName,\"}.\");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute(\"aria-describedby\");r&&n&&!document.getElementById(r)&&console.warn(i)},[i,t,r]),null},Y=\"AlertDialog\",[J,Q]=(0,o.b)(Y,[x]),ee=x(),et=e=>{let{__scopeAlertDialog:t,...r}=e,n=ee(t);return(0,v.jsx)(E,{...n,...r,modal:!0})};et.displayName=Y;var er=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(R,{...o,...n,ref:t})});er.displayName=\"AlertDialogTrigger\";var en=e=>{let{__scopeAlertDialog:t,...r}=e,n=ee(t);return(0,v.jsx)(T,{...n,...r})};en.displayName=\"AlertDialogPortal\";var eo=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(k,{...o,...n,ref:t})});eo.displayName=\"AlertDialogOverlay\";var ei=\"AlertDialogContent\",[ea,es]=J(ei),el=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...s}=e,l=ee(r),u=n.useRef(null),c=(0,i.e)(t,u),d=n.useRef(null);return(0,v.jsx)(q,{contentName:ei,titleName:eu,docsSlug:\"alert-dialog\",children:(0,v.jsx)(ea,{scope:r,cancelRef:d,children:(0,v.jsxs)(L,{role:\"alertdialog\",...l,...s,ref:c,onOpenAutoFocus:(0,a.M)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,v.jsx)(g.A4,{children:o}),(0,v.jsx)(ey,{contentRef:u})]})})})});el.displayName=ei;var eu=\"AlertDialogTitle\",ec=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(z,{...o,...n,ref:t})});ec.displayName=eu;var ed=\"AlertDialogDescription\",ef=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)(W,{...o,...n,ref:t})});ef.displayName=ed;var ep=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=ee(r);return(0,v.jsx)($,{...o,...n,ref:t})});ep.displayName=\"AlertDialogAction\";var eh=\"AlertDialogCancel\",em=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=es(eh,r),a=ee(r),s=(0,i.e)(t,o);return(0,v.jsx)($,{...a,...n,ref:s})});em.displayName=eh;var ey=e=>{let{contentRef:t}=e,r=\"`\".concat(ei,\"` requires a description for the component to be accessible for screen reader users.\\n\\nYou can add a description to the `\").concat(ei,\"` by passing a `\").concat(ed,\"` component as a child, which also benefits sighted users by adding visible context to the dialog.\\n\\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `\").concat(ei,\"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\\n\\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog\");return n.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute(\"aria-describedby\"))||console.warn(r)},[r,t]),null},eg=et,ev=er,eb=en,ew=eo,ex=el,eS=ep,eP=em,eE=ec,eA=ef},90976:function(e,t,r){\"use strict\";r.d(t,{B:function(){return l}});var n=r(2265),o=r(98324),i=r(1584),a=r(71538),s=r(57437);function l(e){let t=e+\"CollectionProvider\",[r,l]=(0,o.b)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),i=n.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:r})};d.displayName=t;let f=e+\"CollectionSlot\",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),l=(0,i.e)(t,o.collectionRef);return(0,s.jsx)(a.g7,{ref:l,children:n})});p.displayName=f;let h=e+\"CollectionItemSlot\",m=\"data-radix-collection-item\",y=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,u=n.useRef(null),d=(0,i.e)(t,u),f=c(h,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...l}),()=>void f.itemMap.delete(u))),(0,s.jsx)(a.g7,{[m]:\"\",ref:d,children:o})});return y.displayName=h,[{Provider:d,Slot:p,ItemSlot:y},function(t){let r=c(e+\"CollectionConsumer\",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(\"[\".concat(m,\"]\")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},1584:function(e,t,r){\"use strict\";r.d(t,{F:function(){return o},e:function(){return i}});var n=r(2265);function o(...e){return t=>e.forEach(e=>{\"function\"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return n.useCallback(o(...e),e)}},98324:function(e,t,r){\"use strict\";r.d(t,{b:function(){return a},k:function(){return i}});var n=r(2265),o=r(57437);function i(e,t){let r=n.createContext(t);function i(e){let{children:t,...i}=e,a=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:a,children:t})}return i.displayName=e+\"Provider\",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\\`${o}\\` must be used within \\`${e}\\``)}]}function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let a=n.createContext(i),s=r.length;function l(t){let{scope:r,children:i,...l}=t,u=r?.[e][s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:i})}return r=[...r,i],l.displayName=t+\"Provider\",[l,function(r,o){let l=o?.[e][s]||a,u=n.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\\`${r}\\` must be used within \\`${t}\\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},87513:function(e,t,r){\"use strict\";r.d(t,{gm:function(){return i}});var n=r(2265);r(57437);var o=n.createContext(void 0);function i(e){let t=n.useContext(o);return e||t||\"ltr\"}},53938:function(e,t,r){\"use strict\";r.d(t,{XB:function(){return f}});var n,o=r(2265),i=r(78149),a=r(25171),s=r(1584),l=r(75137),u=r(57437),c=\"dismissableLayer.update\",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:y,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:w,...x}=e,S=o.useContext(d),[P,E]=o.useState(null),A=null!==(f=null==P?void 0:P.ownerDocument)&&void 0!==f?f:null===(r=globalThis)||void 0===r?void 0:r.document,[,R]=o.useState({}),j=(0,s.e)(t,e=>E(e)),C=Array.from(S.layers),[O]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),T=C.indexOf(O),M=P?C.indexOf(P):-1,k=S.layersWithOutsidePointerEventsDisabled.size>0,D=M>=T,N=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h(\"dismissableLayer.pointerDownOutside\",n,o,{discrete:!0})},o={originalEvent:e};\"touch\"===e.pointerType?(r.removeEventListener(\"click\",a.current),a.current=t,r.addEventListener(\"click\",a.current,{once:!0})):t()}else r.removeEventListener(\"click\",a.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener(\"pointerdown\",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener(\"pointerdown\",e),r.removeEventListener(\"click\",a.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...S.branches].some(e=>e.contains(t));!D||r||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},A),L=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h(\"dismissableLayer.focusOutside\",n,{originalEvent:e},{discrete:!1})};return r.addEventListener(\"focusin\",e),()=>r.removeEventListener(\"focusin\",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...S.branches].some(e=>e.contains(t))||(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},A);return!function(e,t=globalThis?.document){let r=(0,l.W)(e);o.useEffect(()=>{let e=e=>{\"Escape\"===e.key&&r(e)};return t.addEventListener(\"keydown\",e,{capture:!0}),()=>t.removeEventListener(\"keydown\",e,{capture:!0})},[r,t])}(e=>{M!==S.layers.size-1||(null==y||y(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},A),o.useEffect(()=>{if(P)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=A.body.style.pointerEvents,A.body.style.pointerEvents=\"none\"),S.layersWithOutsidePointerEventsDisabled.add(P)),S.layers.add(P),p(),()=>{m&&1===S.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=n)}},[P,A,m,S]),o.useEffect(()=>()=>{P&&(S.layers.delete(P),S.layersWithOutsidePointerEventsDisabled.delete(P),p())},[P,S]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.WV.div,{...x,ref:j,style:{pointerEvents:k?D?\"auto\":\"none\":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,N.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.jH)(i,s):i.dispatchEvent(s)}f.displayName=\"DismissableLayer\",o.forwardRef((e,t)=>{let r=o.useContext(d),n=o.useRef(null),i=(0,s.e)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.WV.div,{...e,ref:i})}).displayName=\"DismissableLayerBranch\"},21246:function(e,t,r){\"use strict\";r.d(t,{oC:function(){return rI},VY:function(){return rk},ZA:function(){return rD},ck:function(){return rL},wU:function(){return rV},__:function(){return rN},Uv:function(){return rM},Ee:function(){return rF},Rk:function(){return r_},fC:function(){return rO},Z0:function(){return rz},Tr:function(){return rB},tu:function(){return rU},fF:function(){return rW},xz:function(){return rT}});var n=r(2265),o=r(78149),i=r(1584),a=r(98324),s=r(91715),l=r(25171),u=r(90976),c=r(87513),d=r(53938),f=r(20589),p=r(80467),h=r(53201);let m=[\"top\",\"right\",\"bottom\",\"left\"],y=Math.min,g=Math.max,v=Math.round,b=Math.floor,w=e=>({x:e,y:e}),x={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"},S={start:\"end\",end:\"start\"};function P(e,t){return\"function\"==typeof e?e(t):e}function E(e){return e.split(\"-\")[0]}function A(e){return e.split(\"-\")[1]}function R(e){return\"x\"===e?\"y\":\"x\"}function j(e){return\"y\"===e?\"height\":\"width\"}function C(e){return[\"top\",\"bottom\"].includes(E(e))?\"y\":\"x\"}function O(e){return e.replace(/start|end/g,e=>S[e])}function T(e){return e.replace(/left|right|bottom|top/g,e=>x[e])}function M(e){return\"number\"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function D(e,t,r){let n,{reference:o,floating:i}=e,a=C(t),s=R(C(t)),l=j(s),u=E(t),c=\"y\"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;switch(u){case\"top\":n={x:d,y:o.y-i.height};break;case\"bottom\":n={x:d,y:o.y+o.height};break;case\"right\":n={x:o.x+o.width,y:f};break;case\"left\":n={x:o.x-i.width,y:f};break;default:n={x:o.x,y:o.y}}switch(A(t)){case\"start\":n[s]-=p*(r&&c?-1:1);break;case\"end\":n[s]+=p*(r&&c?-1:1)}return n}let N=async(e,t,r)=>{let{placement:n=\"bottom\",strategy:o=\"absolute\",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=D(u,n,l),f=n,p={},h=0;for(let r=0;r<s.length;r++){let{name:i,fn:m}=s[r],{x:y,y:g,data:v,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,\"object\"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=D(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function L(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u=\"clippingAncestors\",rootBoundary:c=\"viewport\",elementContext:d=\"floating\",altBoundary:f=!1,padding:p=0}=P(t,e),h=M(p),m=s[f?\"floating\"===d?\"reference\":\"floating\":d],y=k(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g=\"floating\"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F(e){return m.some(t=>e[t]>=0)}async function _(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=E(r),s=A(r),l=\"y\"===C(r),u=[\"left\",\"top\"].includes(a)?-1:1,c=i&&l?-1:1,d=P(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}=\"number\"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&\"number\"==typeof h&&(p=\"end\"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function V(e){return W(e)?(e.nodeName||\"\").toLowerCase():\"#document\"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return e instanceof Node||e instanceof z(e).Node}function U(e){return e instanceof Element||e instanceof z(e).Element}function $(e){return e instanceof HTMLElement||e instanceof z(e).HTMLElement}function H(e){return\"undefined\"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function K(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&![\"inline\",\"contents\"].includes(o)}function q(e){return[\":popover-open\",\":modal\"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function G(e){let t=Z(),r=U(e)?Y(e):e;return\"none\"!==r.transform||\"none\"!==r.perspective||!!r.containerType&&\"normal\"!==r.containerType||!t&&!!r.backdropFilter&&\"none\"!==r.backdropFilter||!t&&!!r.filter&&\"none\"!==r.filter||[\"transform\",\"perspective\",\"filter\"].some(e=>(r.willChange||\"\").includes(e))||[\"paint\",\"layout\",\"strict\",\"content\"].some(e=>(r.contain||\"\").includes(e))}function Z(){return\"undefined\"!=typeof CSS&&!!CSS.supports&&CSS.supports(\"-webkit-backdrop-filter\",\"none\")}function X(e){return[\"html\",\"body\",\"#document\"].includes(V(e))}function Y(e){return z(e).getComputedStyle(e)}function J(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(\"html\"===V(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||B(e);return H(t)?t.host:t}function ee(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=Q(t);return X(r)?t.ownerDocument?t.ownerDocument.body:t.body:$(r)&&K(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=z(o);return i?t.concat(a,a.visualViewport||[],K(o)?o:[],a.frameElement&&r?ee(a.frameElement):[]):t.concat(o,ee(o,[],r))}function et(e){let t=Y(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=$(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=v(r)!==i||v(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function er(e){return U(e)?e:e.contextElement}function en(e){let t=er(e);if(!$(t))return w(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=et(t),a=(i?v(r.width):r.width)/n,s=(i?v(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let eo=w(0);function ei(e){let t=z(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=er(e),s=w(1);t&&(n?U(n)&&(s=en(n)):s=en(e));let l=(void 0===(o=r)&&(o=!1),n&&(!o||n===z(a))&&o)?ei(a):w(0),u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(a){let e=z(a),t=n&&U(n)?z(n):n,r=e,o=r.frameElement;for(;o&&n&&t!==r;){let e=en(o),t=o.getBoundingClientRect(),n=Y(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=a,o=(r=z(o)).frameElement}}return k({width:d,height:f,x:u,y:c})}function es(e){return ea(B(e)).left+J(e).scrollLeft}function el(e,t,r){let n;if(\"viewport\"===t)n=function(e,t){let r=z(e),n=B(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=Z();(!e||e&&\"fixed\"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if(\"document\"===t)n=function(e){let t=B(e),r=J(e),n=e.ownerDocument.body,o=g(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=g(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+es(e),s=-r.scrollTop;return\"rtl\"===Y(n).direction&&(a+=g(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(B(e));else if(U(t))n=function(e,t){let r=ea(e,!0,\"fixed\"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=$(e)?en(e):w(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{let r=ei(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return k(n)}function eu(e){return\"static\"===Y(e).position}function ec(e,t){return $(e)&&\"fixed\"!==Y(e).position?t?t(e):e.offsetParent:null}function ed(e,t){let r=z(e);if(q(e))return r;if(!$(e)){let t=Q(e);for(;t&&!X(t);){if(U(t)&&!eu(t))return t;t=Q(t)}return r}let n=ec(e,t);for(;n&&[\"table\",\"td\",\"th\"].includes(V(n))&&eu(n);)n=ec(n,t);return n&&X(n)&&eu(n)&&!G(n)?r:n||function(e){let t=Q(e);for(;$(t)&&!X(t);){if(G(t))return t;if(q(t))break;t=Q(t)}return null}(e)||r}let ef=async function(e){let t=this.getOffsetParent||ed,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=$(t),o=B(t),i=\"fixed\"===r,a=ea(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=w(0);if(n||!n&&!i){if((\"body\"!==V(t)||K(o))&&(s=J(t)),n){let e=ea(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=es(o))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i=\"fixed\"===o,a=B(n),s=!!t&&q(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=w(1),c=w(0),d=$(n);if((d||!d&&!i)&&((\"body\"!==V(n)||K(a))&&(l=J(n)),$(n))){let e=ea(n);u=en(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x,y:r.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[...\"clippingAncestors\"===r?q(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=ee(e,[],!1).filter(e=>U(e)&&\"body\"!==V(e)),o=null,i=\"fixed\"===Y(e).position,a=i?Q(e):e;for(;U(a)&&!X(a);){let t=Y(a),r=G(a);r||\"fixed\"!==t.position||(o=null),(i?!r&&!o:!r&&\"static\"===t.position&&!!o&&[\"absolute\",\"fixed\"].includes(o.position)||K(a)&&!r&&function e(t,r){let n=Q(t);return!(n===r||!U(n)||X(n))&&(\"fixed\"===Y(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):o=t,a=Q(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce((e,r)=>{let n=el(t,r,o);return e.top=g(n.top,e.top),e.right=y(n.right,e.right),e.bottom=y(n.bottom,e.bottom),e.left=g(n.left,e.left),e},el(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ed,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=et(e);return{width:t,height:r}},getScale:en,isElement:U,isRTL:function(e){return\"rtl\"===Y(e).direction}},eh=e=>({name:\"arrow\",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=P(e,t)||{};if(null==u)return{};let d=M(c),f={x:r,y:n},p=R(C(o)),h=j(p),m=await a.getDimensions(u),v=\"y\"===p,b=v?\"clientHeight\":\"clientWidth\",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],S=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),E=S?S[b]:0;E&&await (null==a.isElement?void 0:a.isElement(S))||(E=s.floating[b]||i.floating[h]);let O=E/2-m[h]/2-1,T=y(d[v?\"top\":\"left\"],O),k=y(d[v?\"bottom\":\"right\"],O),D=E-m[h]-k,N=E/2-m[h]/2+(w/2-x/2),L=g(T,y(N,D)),I=!l.arrow&&null!=A(o)&&N!==L&&i.reference[h]/2-(N<T?T:k)-m[h]/2<0,F=I?N<T?N-T:N-D:0;return{[p]:f[p]+F,data:{[p]:L,centerOffset:N-L-F,...I&&{alignmentOffset:F}},reset:I}}}),em=(e,t,r)=>{let n=new Map,o={platform:ep,...r},i={...o.platform,_c:n};return N(e,t,{...o,platform:i})};var ey=r(54887),eg=\"undefined\"!=typeof document?n.useLayoutEffect:n.useEffect;function ev(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if(\"function\"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&\"object\"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ev(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if((\"_owner\"!==r||!e.$$typeof)&&!ev(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eb(e){return\"undefined\"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ew(e,t){let r=eb(e);return Math.round(t*r)/r}function ex(e){let t=n.useRef(e);return eg(()=>{t.current=e}),t}let eS=e=>({name:\"arrow\",options:e,fn(t){let{element:r,padding:n}=\"function\"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,\"current\")?null!=r.current?eh({element:r.current,padding:n}).fn(t):{}:r?eh({element:r,padding:n}).fn(t):{}}}),eP=(e,t)=>{var r;return{...(void 0===(r=e)&&(r=0),{name:\"offset\",options:r,async fn(e){var t,n;let{x:o,y:i,placement:a,middlewareData:s}=e,l=await _(e,r);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},eE=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"shift\",options:r,async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=P(r,e),u={x:t,y:n},c=await L(e,l),d=C(E(o)),f=R(d),p=u[f],h=u[d];if(i){let e=\"y\"===f?\"top\":\"left\",t=\"y\"===f?\"bottom\":\"right\",r=p+c[e],n=p-c[t];p=g(r,y(p,n))}if(a){let e=\"y\"===d?\"top\":\"left\",t=\"y\"===d?\"bottom\":\"right\",r=h+c[e],n=h-c[t];h=g(r,y(h,n))}let m=s.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-t,y:m.y-n}}}}),options:[e,t]}},eA=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{options:r,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=P(r,e),c={x:t,y:n},d=C(o),f=R(d),p=c[f],h=c[d],m=P(s,e),y=\"number\"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e=\"y\"===f?\"height\":\"width\",t=i.reference[f]-i.floating[e]+y.mainAxis,r=i.reference[f]+i.reference[e]-y.mainAxis;p<t?p=t:p>r&&(p=r)}if(u){var g,v;let e=\"y\"===f?\"width\":\"height\",t=[\"top\",\"left\"].includes(E(o)),r=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:y.crossAxis),n=i.reference[d]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[d])||0)-(t?y.crossAxis:0);h<r?h=r:h>n&&(h=n)}return{[f]:p,[d]:h}}}),options:[e,t]}},eR=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"flip\",options:r,async fn(e){var t,n,o,i,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:y=\"bestFit\",fallbackAxisSideDirection:g=\"none\",flipAlignment:v=!0,...b}=P(r,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let w=E(s),x=C(c),S=E(c)===c,M=await (null==d.isRTL?void 0:d.isRTL(f.floating)),k=m||(S||!v?[T(c)]:function(e){let t=T(e);return[O(e),t,O(t)]}(c)),D=\"none\"!==g;!m&&D&&k.push(...function(e,t,r,n){let o=A(e),i=function(e,t,r){let n=[\"left\",\"right\"],o=[\"right\",\"left\"];switch(e){case\"top\":case\"bottom\":if(r)return t?o:n;return t?n:o;case\"left\":case\"right\":return t?[\"top\",\"bottom\"]:[\"bottom\",\"top\"];default:return[]}}(E(e),\"start\"===r,n);return o&&(i=i.map(e=>e+\"-\"+o),t&&(i=i.concat(i.map(O)))),i}(c,v,g,M));let N=[c,...k],I=await L(e,b),F=[],_=(null==(n=l.flip)?void 0:n.overflows)||[];if(p&&F.push(I[w]),h){let e=function(e,t,r){void 0===r&&(r=!1);let n=A(e),o=R(C(e)),i=j(o),a=\"x\"===o?n===(r?\"end\":\"start\")?\"right\":\"left\":\"start\"===n?\"bottom\":\"top\";return t.reference[i]>t.floating[i]&&(a=T(a)),[a,T(a)]}(s,u,M);F.push(I[e[0]],I[e[1]])}if(_=[..._,{placement:s,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let r=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(y){case\"bestFit\":{let e=null==(a=_.filter(e=>{if(D){let t=C(e.placement);return t===x||\"y\"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case\"initialPlacement\":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}),options:[e,t]}},ej=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"size\",options:r,async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=P(r,e),c=await L(e,u),d=E(o),f=A(o),p=\"y\"===C(o),{width:h,height:m}=i.floating;\"top\"===d||\"bottom\"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?\"start\":\"end\")?\"left\":\"right\"):(n=d,t=\"end\"===f?\"top\":\"bottom\");let v=m-c.top-c.bottom,b=h-c.left-c.right,w=y(m-c[t],v),x=y(h-c[n],b),S=!e.middlewareData.shift,R=w,j=x;if(p?j=f||S?y(x,b):b:R=f||S?y(w,v):v,S&&!f){let e=g(c.left,0),t=g(c.right,0),r=g(c.top,0),n=g(c.bottom,0);p?j=h-2*(0!==e||0!==t?e+t:g(c.left,c.right)):R=m-2*(0!==r||0!==n?r+n:g(c.top,c.bottom))}await l({...e,availableWidth:j,availableHeight:R});let O=await a.getDimensions(s.floating);return h!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eC=(e,t)=>{var r;return{...(void 0===(r=e)&&(r={}),{name:\"hide\",options:r,async fn(e){let{rects:t}=e,{strategy:n=\"referenceHidden\",...o}=P(r,e);switch(n){case\"referenceHidden\":{let r=I(await L(e,{...o,elementContext:\"reference\"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:F(r)}}}case\"escaped\":{let r=I(await L(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:F(r)}}}default:return{}}}}),options:[e,t]}},eO=(e,t)=>({...eS(e),options:[e,t]});var eT=r(57437),eM=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,eT.jsx)(l.WV.svg,{...i,ref:t,width:n,height:o,viewBox:\"0 0 30 10\",preserveAspectRatio:\"none\",children:e.asChild?r:(0,eT.jsx)(\"polygon\",{points:\"0,0 30,0 15,10\"})})});eM.displayName=\"Arrow\";var ek=r(75137),eD=r(1336),eN=r(75238),eL=\"Popper\",[eI,eF]=(0,a.b)(eL),[e_,eV]=eI(eL),ez=e=>{let{__scopePopper:t,children:r}=e,[o,i]=n.useState(null);return(0,eT.jsx)(e_,{scope:t,anchor:o,onAnchorChange:i,children:r})};ez.displayName=eL;var eB=\"PopperAnchor\",eW=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,s=eV(eB,r),u=n.useRef(null),c=(0,i.e)(t,u);return n.useEffect(()=>{s.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,eT.jsx)(l.WV.div,{...a,ref:c})});eW.displayName=eB;var eU=\"PopperContent\",[e$,eH]=eI(eU),eK=n.forwardRef((e,t)=>{var r,o,a,s,u,c,d,f;let{__scopePopper:p,side:h=\"bottom\",sideOffset:m=0,align:v=\"center\",alignOffset:w=0,arrowPadding:x=0,avoidCollisions:S=!0,collisionBoundary:P=[],collisionPadding:E=0,sticky:A=\"partial\",hideWhenDetached:R=!1,updatePositionStrategy:j=\"optimized\",onPlaced:C,...O}=e,T=eV(eU,p),[M,k]=n.useState(null),D=(0,i.e)(t,e=>k(e)),[N,L]=n.useState(null),I=(0,eN.t)(N),F=null!==(d=null==I?void 0:I.width)&&void 0!==d?d:0,_=null!==(f=null==I?void 0:I.height)&&void 0!==f?f:0,V=\"number\"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},z=Array.isArray(P)?P:[P],W=z.length>0,U={padding:V,boundary:z.filter(eX),altBoundary:W},{refs:$,floatingStyles:H,placement:K,isPositioned:q,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t=\"bottom\",strategy:r=\"absolute\",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(o);ev(p,o)||h(o);let[m,y]=n.useState(null),[g,v]=n.useState(null),b=n.useCallback(e=>{e!==P.current&&(P.current=e,y(e))},[]),w=n.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),x=a||m,S=s||g,P=n.useRef(null),E=n.useRef(null),A=n.useRef(d),R=null!=u,j=ex(u),C=ex(i),O=n.useCallback(()=>{if(!P.current||!E.current)return;let e={placement:t,strategy:r,middleware:p};C.current&&(e.platform=C.current),em(P.current,E.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!ev(A.current,t)&&(A.current=t,ey.flushSync(()=>{f(t)}))})},[p,t,r,C]);eg(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let T=n.useRef(!1);eg(()=>(T.current=!0,()=>{T.current=!1}),[]),eg(()=>{if(x&&(P.current=x),S&&(E.current=S),x&&S){if(j.current)return j.current(x,S,O);O()}},[x,S,O,j,R]);let M=n.useMemo(()=>({reference:P,floating:E,setReference:b,setFloating:w}),[b,w]),k=n.useMemo(()=>({reference:x,floating:S}),[x,S]),D=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=ew(k.floating,d.x),n=ew(k.floating,d.y);return l?{...e,transform:\"translate(\"+t+\"px, \"+n+\"px)\",...eb(k.floating)>=1.5&&{willChange:\"transform\"}}:{position:r,left:t,top:n}},[r,l,k.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:O,refs:M,elements:k,floatingStyles:D}),[d,O,M,k,D])}({strategy:\"fixed\",placement:h+(\"center\"!==v?\"-\"+v:\"\"),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=\"function\"==typeof ResizeObserver,layoutShift:l=\"function\"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=er(e),d=i||a?[...c?ee(c):[],...ee(t)]:[];d.forEach(e=>{i&&e.addEventListener(\"scroll\",r,{passive:!0}),a&&e.addEventListener(\"resize\",r)});let f=c&&l?function(e,t){let r,n=null,o=B(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=b(c),h=b(o.clientWidth-(u+d)),m={rootMargin:-p+\"px \"+-h+\"px \"+-b(o.clientHeight-(c+f))+\"px \"+-b(u)+\"px\",threshold:g(0,y(1,l))||1},v=!0;function w(e){let t=e[0].intersectionRatio;if(t!==l){if(!v)return a();t?a(!1,t):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(w,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(w,m)}n.observe(e)}(!0),i}(c,r):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),h.observe(t));let m=u?ea(e):null;return u&&function t(){let n=ea(e);m&&(n.x!==m.x||n.y!==m.y||n.width!==m.width||n.height!==m.height)&&r(),m=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener(\"scroll\",r),a&&e.removeEventListener(\"resize\",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:\"always\"===j})},elements:{reference:T.anchor},middleware:[eP({mainAxis:m+_,alignmentAxis:w}),S&&eE({mainAxis:!0,crossAxis:!1,limiter:\"partial\"===A?eA():void 0,...U}),S&&eR({...U}),ej({...U,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:i,height:a}=r.reference,s=t.floating.style;s.setProperty(\"--radix-popper-available-width\",\"\".concat(n,\"px\")),s.setProperty(\"--radix-popper-available-height\",\"\".concat(o,\"px\")),s.setProperty(\"--radix-popper-anchor-width\",\"\".concat(i,\"px\")),s.setProperty(\"--radix-popper-anchor-height\",\"\".concat(a,\"px\"))}}),N&&eO({element:N,padding:x}),eY({arrowWidth:F,arrowHeight:_}),R&&eC({strategy:\"referenceHidden\",...U})]}),[Z,X]=eJ(K),Y=(0,ek.W)(C);(0,eD.b)(()=>{q&&(null==Y||Y())},[q,Y]);let J=null===(r=G.arrow)||void 0===r?void 0:r.x,Q=null===(o=G.arrow)||void 0===o?void 0:o.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,eo]=n.useState();return(0,eD.b)(()=>{M&&eo(window.getComputedStyle(M).zIndex)},[M]),(0,eT.jsx)(\"div\",{ref:$.setFloating,\"data-radix-popper-content-wrapper\":\"\",style:{...H,transform:q?H.transform:\"translate(0, -200%)\",minWidth:\"max-content\",zIndex:en,\"--radix-popper-transform-origin\":[null===(s=G.transformOrigin)||void 0===s?void 0:s.x,null===(u=G.transformOrigin)||void 0===u?void 0:u.y].join(\" \"),...(null===(c=G.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:\"hidden\",pointerEvents:\"none\"}},dir:e.dir,children:(0,eT.jsx)(e$,{scope:p,placedSide:Z,onArrowChange:L,arrowX:J,arrowY:Q,shouldHideArrow:et,children:(0,eT.jsx)(l.WV.div,{\"data-side\":Z,\"data-align\":X,...O,ref:D,style:{...O.style,animation:q?void 0:\"none\"}})})})});eK.displayName=eU;var eq=\"PopperArrow\",eG={top:\"bottom\",right:\"left\",bottom:\"top\",left:\"right\"},eZ=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=eH(eq,r),i=eG[o.placedSide];return(0,eT.jsx)(\"span\",{ref:o.onArrowChange,style:{position:\"absolute\",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:\"\",right:\"0 0\",bottom:\"center 0\",left:\"100% 0\"}[o.placedSide],transform:{top:\"translateY(100%)\",right:\"translateY(50%) rotate(90deg) translateX(-50%)\",bottom:\"rotate(180deg)\",left:\"translateY(50%) rotate(-90deg) translateX(50%)\"}[o.placedSide],visibility:o.shouldHideArrow?\"hidden\":void 0},children:(0,eT.jsx)(eM,{...n,ref:t,style:{...n.style,display:\"block\"}})})});function eX(e){return null!==e}eZ.displayName=eq;var eY=e=>({name:\"transformOrigin\",options:e,fn(t){var r,n,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=eJ(s),m={start:\"0%\",center:\"50%\",end:\"100%\"}[h],y=(null!==(i=null===(n=u.arrow)||void 0===n?void 0:n.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,v=\"\",b=\"\";return\"bottom\"===p?(v=c?m:\"\".concat(y,\"px\"),b=\"\".concat(-f,\"px\")):\"top\"===p?(v=c?m:\"\".concat(y,\"px\"),b=\"\".concat(l.floating.height+f,\"px\")):\"right\"===p?(v=\"\".concat(-f,\"px\"),b=c?m:\"\".concat(g,\"px\")):\"left\"===p&&(v=\"\".concat(l.floating.width+f,\"px\"),b=c?m:\"\".concat(g,\"px\")),{data:{x:v,y:b}}}});function eJ(e){let[t,r=\"center\"]=e.split(\"-\");return[t,r]}var eQ=r(56935),e0=r(31383),e1=\"rovingFocusGroup.onEntryFocus\",e2={bubbles:!1,cancelable:!0},e3=\"RovingFocusGroup\",[e5,e4,e8]=(0,u.B)(e3),[e6,e9]=(0,a.b)(e3,[e8]),[e7,te]=e6(e3),tt=n.forwardRef((e,t)=>(0,eT.jsx)(e5.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,eT.jsx)(e5.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,eT.jsx)(tr,{...e,ref:t})})}));tt.displayName=e3;var tr=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...g}=e,v=n.useRef(null),b=(0,i.e)(t,v),w=(0,c.gm)(d),[x=null,S]=(0,s.T)({prop:f,defaultProp:p,onChange:h}),[P,E]=n.useState(!1),A=(0,ek.W)(m),R=e4(r),j=n.useRef(!1),[C,O]=n.useState(0);return n.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(e1,A),()=>e.removeEventListener(e1,A)},[A]),(0,eT.jsx)(e7,{scope:r,orientation:a,dir:w,loop:u,currentTabStopId:x,onItemFocus:n.useCallback(e=>S(e),[S]),onItemShiftTab:n.useCallback(()=>E(!0),[]),onFocusableItemAdd:n.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>O(e=>e-1),[]),children:(0,eT.jsx)(l.WV.div,{tabIndex:P||0===C?-1:0,\"data-orientation\":a,...g,ref:b,style:{outline:\"none\",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(e1,e2);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>e.focusable);ta([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),y)}}j.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>E(!1))})})}),tn=\"RovingFocusGroupItem\",to=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...u}=e,c=(0,h.M)(),d=s||c,f=te(tn,r),p=f.currentTabStopId===d,m=e4(r),{onFocusableItemAdd:y,onFocusableItemRemove:g}=f;return n.useEffect(()=>{if(i)return y(),()=>g()},[i,y,g]),(0,eT.jsx)(e5.ItemSlot,{scope:r,id:d,focusable:i,active:a,children:(0,eT.jsx)(l.WV.span,{tabIndex:p?0:-1,\"data-orientation\":f.orientation,...u,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if(\"Tab\"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,\"rtl\"!==r?n:\"ArrowLeft\"===n?\"ArrowRight\":\"ArrowRight\"===n?\"ArrowLeft\":n);if(!(\"vertical\"===t&&[\"ArrowLeft\",\"ArrowRight\"].includes(o))&&!(\"horizontal\"===t&&[\"ArrowUp\",\"ArrowDown\"].includes(o)))return ti[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if(\"last\"===t)o.reverse();else if(\"prev\"===t||\"next\"===t){var r,n;\"prev\"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=f.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>ta(o))}})})})});to.displayName=tn;var ti={ArrowLeft:\"prev\",ArrowUp:\"prev\",ArrowRight:\"next\",ArrowDown:\"next\",PageUp:\"first\",Home:\"first\",PageDown:\"last\",End:\"last\"};function ta(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var ts=r(71538),tl=r(78369),tu=r(49418),tc=[\"Enter\",\" \"],td=[\"ArrowUp\",\"PageDown\",\"End\"],tf=[\"ArrowDown\",\"PageUp\",\"Home\",...td],tp={ltr:[...tc,\"ArrowRight\"],rtl:[...tc,\"ArrowLeft\"]},th={ltr:[\"ArrowLeft\"],rtl:[\"ArrowRight\"]},tm=\"Menu\",[ty,tg,tv]=(0,u.B)(tm),[tb,tw]=(0,a.b)(tm,[tv,eF,e9]),tx=eF(),tS=e9(),[tP,tE]=tb(tm),[tA,tR]=tb(tm),tj=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:i,onOpenChange:a,modal:s=!0}=e,l=tx(t),[u,d]=n.useState(null),f=n.useRef(!1),p=(0,ek.W)(a),h=(0,c.gm)(i);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener(\"pointerdown\",t,{capture:!0,once:!0}),document.addEventListener(\"pointermove\",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener(\"keydown\",e,{capture:!0}),()=>{document.removeEventListener(\"keydown\",e,{capture:!0}),document.removeEventListener(\"pointerdown\",t,{capture:!0}),document.removeEventListener(\"pointermove\",t,{capture:!0})}},[]),(0,eT.jsx)(ez,{...l,children:(0,eT.jsx)(tP,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:(0,eT.jsx)(tA,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:o})})})};tj.displayName=tm;var tC=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tx(r);return(0,eT.jsx)(eW,{...o,...n,ref:t})});tC.displayName=\"MenuAnchor\";var tO=\"MenuPortal\",[tT,tM]=tb(tO,{forceMount:void 0}),tk=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=tE(tO,t);return(0,eT.jsx)(tT,{scope:t,forceMount:r,children:(0,eT.jsx)(e0.z,{present:r||i.open,children:(0,eT.jsx)(eQ.h,{asChild:!0,container:o,children:n})})})};tk.displayName=tO;var tD=\"MenuContent\",[tN,tL]=tb(tD),tI=n.forwardRef((e,t)=>{let r=tM(tD,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=tE(tD,e.__scopeMenu),a=tR(tD,e.__scopeMenu);return(0,eT.jsx)(ty.Provider,{scope:e.__scopeMenu,children:(0,eT.jsx)(e0.z,{present:n||i.open,children:(0,eT.jsx)(ty.Slot,{scope:e.__scopeMenu,children:a.modal?(0,eT.jsx)(tF,{...o,ref:t}):(0,eT.jsx)(t_,{...o,ref:t})})})})}),tF=n.forwardRef((e,t)=>{let r=tE(tD,e.__scopeMenu),a=n.useRef(null),s=(0,i.e)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,tl.Ry)(e)},[]),(0,eT.jsx)(tV,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),t_=n.forwardRef((e,t)=>{let r=tE(tD,e.__scopeMenu);return(0,eT.jsx)(tV,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),tV=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:w,...x}=e,S=tE(tD,r),P=tR(tD,r),E=tx(r),A=tS(r),R=tg(r),[j,C]=n.useState(null),O=n.useRef(null),T=(0,i.e)(t,O,S.onContentChange),M=n.useRef(0),k=n.useRef(\"\"),D=n.useRef(0),N=n.useRef(null),L=n.useRef(\"right\"),I=n.useRef(0),F=w?tu.Z:n.Fragment,_=w?{as:ts.g7,allowPinchZoom:!0}:void 0,V=e=>{var t,r;let n=k.current+e,o=R().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,s=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(o.map(e=>e.textValue),n,a),l=null===(r=o.find(e=>e.textValue===s))||void 0===r?void 0:r.ref.current;!function e(t){k.current=t,window.clearTimeout(M.current),\"\"!==t&&(M.current=window.setTimeout(()=>e(\"\"),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout(M.current),[]),(0,f.EW)();let z=n.useCallback(e=>{var t,r,n;return L.current===(null===(t=N.current)||void 0===t?void 0:t.side)&&!!(n=null===(r=N.current)||void 0===r?void 0:r.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},n)},[]);return(0,eT.jsx)(tN,{scope:r,searchRef:k,onItemEnter:n.useCallback(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:n.useCallback(e=>{var t;z(e)||(null===(t=O.current)||void 0===t||t.focus(),C(null))},[z]),onTriggerLeave:n.useCallback(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:D,onPointerGraceIntentChange:n.useCallback(e=>{N.current=e},[]),children:(0,eT.jsx)(F,{..._,children:(0,eT.jsx)(p.M,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.M)(l,e=>{var t;e.preventDefault(),null===(t=O.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,eT.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:v,onDismiss:b,children:(0,eT.jsx)(tt,{asChild:!0,...A,dir:P.dir,orientation:\"vertical\",loop:a,currentTabStopId:j,onCurrentTabStopIdChange:C,onEntryFocus:(0,o.M)(h,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eT.jsx)(eK,{role:\"menu\",\"aria-orientation\":\"vertical\",\"data-state\":rn(S.open),\"data-radix-menu-content\":\"\",dir:P.dir,...E,...x,ref:T,style:{outline:\"none\",...x.style},onKeyDown:(0,o.M)(x.onKeyDown,e=>{let t=e.target.closest(\"[data-radix-menu-content]\")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&(\"Tab\"===e.key&&e.preventDefault(),!r&&n&&V(e.key));let o=O.current;if(e.target!==o||!tf.includes(e.key))return;e.preventDefault();let i=R().filter(e=>!e.disabled).map(e=>e.ref.current);td.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),k.current=\"\")}),onPointerMove:(0,o.M)(e.onPointerMove,ra(e=>{let t=e.target,r=I.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>I.current?\"right\":\"left\";L.current=t,I.current=e.clientX}}))})})})})})})});tI.displayName=tD;var tz=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,eT.jsx)(l.WV.div,{role:\"group\",...n,ref:t})});tz.displayName=\"MenuGroup\";var tB=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,eT.jsx)(l.WV.div,{...n,ref:t})});tB.displayName=\"MenuLabel\";var tW=\"MenuItem\",tU=\"menu.itemSelect\",t$=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...s}=e,u=n.useRef(null),c=tR(tW,e.__scopeMenu),d=tL(tW,e.__scopeMenu),f=(0,i.e)(t,u),p=n.useRef(!1);return(0,eT.jsx)(tH,{...s,ref:f,disabled:r,onClick:(0,o.M)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(tU,{bubbles:!0,cancelable:!0});e.addEventListener(tU,e=>null==a?void 0:a(e),{once:!0}),(0,l.jH)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=\"\"!==d.searchRef.current;!r&&(!t||\" \"!==e.key)&&tc.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});t$.displayName=tW;var tH=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:s,...u}=e,c=tL(tW,r),d=tS(r),f=n.useRef(null),p=(0,i.e)(t,f),[h,m]=n.useState(!1),[y,g]=n.useState(\"\");return n.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:\"\").trim())}},[u.children]),(0,eT.jsx)(ty.ItemSlot,{scope:r,disabled:a,textValue:null!=s?s:y,children:(0,eT.jsx)(to,{asChild:!0,...d,focusable:!a,children:(0,eT.jsx)(l.WV.div,{role:\"menuitem\",\"data-highlighted\":h?\"\":void 0,\"aria-disabled\":a||void 0,\"data-disabled\":a?\"\":void 0,...u,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,ra(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ra(e=>c.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>m(!0)),onBlur:(0,o.M)(e.onBlur,()=>m(!1))})})})}),tK=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,eT.jsx)(t0,{scope:e.__scopeMenu,checked:r,children:(0,eT.jsx)(t$,{role:\"menuitemcheckbox\",\"aria-checked\":ro(r)?\"mixed\":r,...i,ref:t,\"data-state\":ri(r),onSelect:(0,o.M)(i.onSelect,()=>null==n?void 0:n(!!ro(r)||!r),{checkForDefaultPrevented:!1})})})});tK.displayName=\"MenuCheckboxItem\";var tq=\"MenuRadioGroup\",[tG,tZ]=tb(tq,{value:void 0,onValueChange:()=>{}}),tX=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=(0,ek.W)(n);return(0,eT.jsx)(tG,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,eT.jsx)(tz,{...o,ref:t})})});tX.displayName=tq;var tY=\"MenuRadioItem\",tJ=n.forwardRef((e,t)=>{let{value:r,...n}=e,i=tZ(tY,e.__scopeMenu),a=r===i.value;return(0,eT.jsx)(t0,{scope:e.__scopeMenu,checked:a,children:(0,eT.jsx)(t$,{role:\"menuitemradio\",\"aria-checked\":a,...n,ref:t,\"data-state\":ri(a),onSelect:(0,o.M)(n.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,r)},{checkForDefaultPrevented:!1})})})});tJ.displayName=tY;var tQ=\"MenuItemIndicator\",[t0,t1]=tb(tQ,{checked:!1}),t2=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=t1(tQ,r);return(0,eT.jsx)(e0.z,{present:n||ro(i.checked)||!0===i.checked,children:(0,eT.jsx)(l.WV.span,{...o,ref:t,\"data-state\":ri(i.checked)})})});t2.displayName=tQ;var t3=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,eT.jsx)(l.WV.div,{role:\"separator\",\"aria-orientation\":\"horizontal\",...n,ref:t})});t3.displayName=\"MenuSeparator\";var t5=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tx(r);return(0,eT.jsx)(eZ,{...o,...n,ref:t})});t5.displayName=\"MenuArrow\";var t4=\"MenuSub\",[t8,t6]=tb(t4),t9=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:i}=e,a=tE(t4,t),s=tx(t),[l,u]=n.useState(null),[c,d]=n.useState(null),f=(0,ek.W)(i);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,eT.jsx)(ez,{...s,children:(0,eT.jsx)(tP,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:d,children:(0,eT.jsx)(t8,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:l,onTriggerChange:u,children:r})})})};t9.displayName=t4;var t7=\"MenuSubTrigger\",re=n.forwardRef((e,t)=>{let r=tE(t7,e.__scopeMenu),a=tR(t7,e.__scopeMenu),s=t6(t7,e.__scopeMenu),l=tL(t7,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,eT.jsx)(tC,{asChild:!0,...f,children:(0,eT.jsx)(tH,{id:s.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":r.open,\"aria-controls\":s.contentId,\"data-state\":rn(r.open),...e,ref:(0,i.F)(t,s.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,ra(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ra(e=>{var t,n;p();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,i=\"right\"===t,a=o[i?\"left\":\"right\"],s=o[i?\"right\":\"left\"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:s,y:o.top},{x:s,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let n=\"\"!==l.searchRef.current;if(!e.disabled&&(!n||\" \"!==t.key)&&tp[a.dir].includes(t.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),t.preventDefault()}})})})});re.displayName=t7;var rt=\"MenuSubContent\",rr=n.forwardRef((e,t)=>{let r=tM(tD,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,l=tE(tD,e.__scopeMenu),u=tR(tD,e.__scopeMenu),c=t6(rt,e.__scopeMenu),d=n.useRef(null),f=(0,i.e)(t,d);return(0,eT.jsx)(ty.Provider,{scope:e.__scopeMenu,children:(0,eT.jsx)(e0.z,{present:a||l.open,children:(0,eT.jsx)(ty.Slot,{scope:e.__scopeMenu,children:(0,eT.jsx)(tV,{id:c.contentId,\"aria-labelledby\":c.triggerId,...s,ref:f,align:\"start\",side:\"rtl\"===u.dir?\"left\":\"right\",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=th[u.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null===(n=c.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function rn(e){return e?\"open\":\"closed\"}function ro(e){return\"indeterminate\"===e}function ri(e){return ro(e)?\"indeterminate\":e?\"checked\":\"unchecked\"}function ra(e){return t=>\"mouse\"===t.pointerType?e(t):void 0}rr.displayName=rt;var rs=\"DropdownMenu\",[rl,ru]=(0,a.b)(rs,[tw]),rc=tw(),[rd,rf]=rl(rs),rp=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=rc(t),d=n.useRef(null),[f=!1,p]=(0,s.T)({prop:i,defaultProp:a,onChange:l});return(0,eT.jsx)(rd,{scope:t,triggerId:(0,h.M)(),triggerRef:d,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,eT.jsx)(tj,{...c,open:f,onOpenChange:p,dir:o,modal:u,children:r})})};rp.displayName=rs;var rh=\"DropdownMenuTrigger\",rm=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=rf(rh,r),u=rc(r);return(0,eT.jsx)(tC,{asChild:!0,...u,children:(0,eT.jsx)(l.WV.button,{type:\"button\",id:s.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":s.open,\"aria-controls\":s.open?s.contentId:void 0,\"data-state\":s.open?\"open\":\"closed\",\"data-disabled\":n?\"\":void 0,disabled:n,...a,ref:(0,i.F)(t,s.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!n&&([\"Enter\",\" \"].includes(e.key)&&s.onOpenToggle(),\"ArrowDown\"===e.key&&s.onOpenChange(!0),[\"Enter\",\" \",\"ArrowDown\"].includes(e.key)&&e.preventDefault())})})})});rm.displayName=rh;var ry=e=>{let{__scopeDropdownMenu:t,...r}=e,n=rc(t);return(0,eT.jsx)(tk,{...n,...r})};ry.displayName=\"DropdownMenuPortal\";var rg=\"DropdownMenuContent\",rv=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...i}=e,a=rf(rg,r),s=rc(r),l=n.useRef(!1);return(0,eT.jsx)(tI,{id:a.contentId,\"aria-labelledby\":a.triggerId,...s,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(l.current=!0)}),style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});rv.displayName=rg;var rb=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tz,{...o,...n,ref:t})});rb.displayName=\"DropdownMenuGroup\";var rw=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tB,{...o,...n,ref:t})});rw.displayName=\"DropdownMenuLabel\";var rx=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t$,{...o,...n,ref:t})});rx.displayName=\"DropdownMenuItem\";var rS=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tK,{...o,...n,ref:t})});rS.displayName=\"DropdownMenuCheckboxItem\";var rP=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tX,{...o,...n,ref:t})});rP.displayName=\"DropdownMenuRadioGroup\";var rE=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(tJ,{...o,...n,ref:t})});rE.displayName=\"DropdownMenuRadioItem\";var rA=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t2,{...o,...n,ref:t})});rA.displayName=\"DropdownMenuItemIndicator\";var rR=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t3,{...o,...n,ref:t})});rR.displayName=\"DropdownMenuSeparator\",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(t5,{...o,...n,ref:t})}).displayName=\"DropdownMenuArrow\";var rj=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(re,{...o,...n,ref:t})});rj.displayName=\"DropdownMenuSubTrigger\";var rC=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=rc(r);return(0,eT.jsx)(rr,{...o,...n,ref:t,style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});rC.displayName=\"DropdownMenuSubContent\";var rO=rp,rT=rm,rM=ry,rk=rv,rD=rb,rN=rw,rL=rx,rI=rS,rF=rP,r_=rE,rV=rA,rz=rR,rB=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=rc(t),[l=!1,u]=(0,s.T)({prop:n,defaultProp:i,onChange:o});return(0,eT.jsx)(t9,{...a,open:l,onOpenChange:u,children:r})},rW=rj,rU=rC},20589:function(e,t,r){\"use strict\";r.d(t,{EW:function(){return i}});var n=r(2265),o=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll(\"[data-radix-focus-guard]\");return document.body.insertAdjacentElement(\"afterbegin\",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement(\"beforeend\",null!==(t=r[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll(\"[data-radix-focus-guard]\").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement(\"span\");return e.setAttribute(\"data-radix-focus-guard\",\"\"),e.tabIndex=0,e.style.cssText=\"outline: none; opacity: 0; position: fixed; pointer-events: none\",e}},80467:function(e,t,r){\"use strict\";let n;r.d(t,{M:function(){return f}});var o=r(2265),i=r(1584),a=r(25171),s=r(75137),l=r(57437),u=\"focusScope.autoFocusOnMount\",c=\"focusScope.autoFocusOnUnmount\",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...v}=e,[b,w]=o.useState(null),x=(0,s.W)(f),S=(0,s.W)(g),P=o.useRef(null),E=(0,i.e)(t,e=>w(e)),A=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(n){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?P.current=t:m(P.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||m(P.current,{select:!0})};document.addEventListener(\"focusin\",e),document.addEventListener(\"focusout\",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener(\"focusin\",e),document.removeEventListener(\"focusout\",t),r.disconnect()}}},[n,b,A.paused]),o.useEffect(()=>{if(b){y.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>\"A\"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,S),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,S),y.remove(A)},0)}}},[b,x,S,A]);let R=o.useCallback(e=>{if(!r&&!n||A.paused)return;let t=\"Tab\"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,i]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&m(i,{select:!0})):(e.preventDefault(),r&&m(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,A.paused]);return(0,l.jsx)(a.WV.div,{tabIndex:-1,...v,ref:E,onKeyDown:R})});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=\"INPUT\"===e.tagName&&\"hidden\"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if(\"hidden\"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if(\"none\"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&\"select\"in r&&t&&e.select()}}f.displayName=\"FocusScope\";var y=(n=[],{add(e){let t=n[0];e!==t&&(null==t||t.pause()),(n=g(n,e)).unshift(e)},remove(e){var t;null===(t=(n=g(n,e))[0])||void 0===t||t.resume()}});function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},53201:function(e,t,r){\"use strict\";r.d(t,{M:function(){return l}});var n,o=r(2265),i=r(1336),a=(n||(n=r.t(o,2)))[\"useId\".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=o.useState(a());return(0,i.b)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:\"\")}},38364:function(e,t,r){\"use strict\";r.d(t,{f:function(){return s}});var n=r(2265),o=r(25171),i=r(57437),a=n.forwardRef((e,t)=>(0,i.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest(\"button, input, select, textarea\")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName=\"Label\";var s=a},56935:function(e,t,r){\"use strict\";r.d(t,{h:function(){return l}});var n=r(2265),o=r(54887),i=r(25171),a=r(1336),s=r(57437),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[d,f]=n.useState(!1);(0,a.b)(()=>f(!0),[]);let p=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(r=l.document)||void 0===r?void 0:r.body);return p?o.createPortal((0,s.jsx)(i.WV.div,{...c,ref:t}),p):null});l.displayName=\"Portal\"},31383:function(e,t,r){\"use strict\";r.d(t,{z:function(){return s}});var n=r(2265),o=r(54887),i=r(1584),a=r(1336),s=e=>{var t,r;let s,u;let{present:c,children:d}=e,f=function(e){var t,r;let[i,s]=n.useState(),u=n.useRef({}),c=n.useRef(e),d=n.useRef(\"none\"),[f,p]=(t=e?\"mounted\":\"unmounted\",r={mounted:{UNMOUNT:\"unmounted\",ANIMATION_OUT:\"unmountSuspended\"},unmountSuspended:{MOUNT:\"mounted\",ANIMATION_END:\"unmounted\"},unmounted:{MOUNT:\"mounted\"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(u.current);d.current=\"mounted\"===f?e:\"none\"},[f]),(0,a.b)(()=>{let t=u.current,r=c.current;if(r!==e){let n=d.current,o=l(t);e?p(\"MOUNT\"):\"none\"===o||(null==t?void 0:t.display)===\"none\"?p(\"UNMOUNT\"):r&&n!==o?p(\"ANIMATION_OUT\"):p(\"UNMOUNT\"),c.current=e}},[e,p]),(0,a.b)(()=>{if(i){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===i&&t&&o.flushSync(()=>p(\"ANIMATION_END\"))},t=e=>{e.target===i&&(d.current=l(u.current))};return i.addEventListener(\"animationstart\",t),i.addEventListener(\"animationcancel\",e),i.addEventListener(\"animationend\",e),()=>{i.removeEventListener(\"animationstart\",t),i.removeEventListener(\"animationcancel\",e),i.removeEventListener(\"animationend\",e)}}p(\"ANIMATION_END\")},[i,p]),{isPresent:[\"mounted\",\"unmountSuspended\"].includes(f),ref:n.useCallback(e=>{e&&(u.current=getComputedStyle(e)),s(e)},[])}}(c),p=\"function\"==typeof d?d({present:f.isPresent}):n.Children.only(d),h=(0,i.e)(f.ref,(s=null===(t=Object.getOwnPropertyDescriptor(p.props,\"ref\"))||void 0===t?void 0:t.get)&&\"isReactWarning\"in s&&s.isReactWarning?p.ref:(s=null===(r=Object.getOwnPropertyDescriptor(p,\"ref\"))||void 0===r?void 0:r.get)&&\"isReactWarning\"in s&&s.isReactWarning?p.props.ref:p.props.ref||p.ref);return\"function\"==typeof d||f.isPresent?n.cloneElement(p,{ref:h}):null};function l(e){return(null==e?void 0:e.animationName)||\"none\"}s.displayName=\"Presence\"},25171:function(e,t,r){\"use strict\";r.d(t,{WV:function(){return s},jH:function(){return l}});var n=r(2265),o=r(54887),i=r(71538),a=r(57437),s=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"span\",\"svg\",\"ul\"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,s=n?i.g7:t;return\"undefined\"!=typeof window&&(window[Symbol.for(\"radix-ui\")]=!0),(0,a.jsx)(s,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},85068:function(e,t,r){\"use strict\";r.d(t,{e6:function(){return $},fC:function(){return W},bU:function(){return H},fQ:function(){return U}});var n=r(2265);function o(e,[t,r]){return Math.min(r,Math.max(t,e))}var i=r(78149),a=r(1584),s=r(98324),l=r(91715),u=r(87513),c=r(47250),d=r(75238),f=r(25171),p=r(90976),h=r(57437),m=[\"PageUp\",\"PageDown\"],y=[\"ArrowUp\",\"ArrowDown\",\"ArrowLeft\",\"ArrowRight\"],g={\"from-left\":[\"Home\",\"PageDown\",\"ArrowDown\",\"ArrowLeft\"],\"from-right\":[\"Home\",\"PageDown\",\"ArrowDown\",\"ArrowRight\"],\"from-bottom\":[\"Home\",\"PageDown\",\"ArrowDown\",\"ArrowLeft\"],\"from-top\":[\"Home\",\"PageDown\",\"ArrowUp\",\"ArrowLeft\"]},v=\"Slider\",[b,w,x]=(0,p.B)(v),[S,P]=(0,s.b)(v,[x]),[E,A]=S(v),R=n.forwardRef((e,t)=>{let{name:r,min:a=0,max:s=100,step:u=1,orientation:c=\"horizontal\",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[a],value:g,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:x=!1,...S}=e,P=n.useRef(new Set),A=n.useRef(0),R=\"horizontal\"===c?O:T,[j=[],C]=(0,l.T)({prop:g,defaultProp:p,onChange:e=>{var t;null===(t=[...P.current][A.current])||void 0===t||t.focus(),v(e)}}),M=n.useRef(j);function k(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},n=(String(u).split(\".\")[1]||\"\").length,i=o(function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/u)*u+a,n),[a,s]);C(function(){var e,n;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(o,i,t);if(e=a,!(!((n=f*u)>0)||Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=n))return o;{A.current=a.indexOf(i);let e=String(a)!==String(o);return e&&r&&w(a),e?a:o}})}return(0,h.jsx)(E,{scope:e.__scopeSlider,name:r,disabled:d,min:a,max:s,valueIndexToChangeRef:A,thumbs:P.current,values:j,orientation:c,children:(0,h.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(R,{\"aria-disabled\":d,\"data-disabled\":d?\"\":void 0,...S,ref:t,onPointerDown:(0,i.M)(S.onPointerDown,()=>{d||(M.current=j)}),min:a,max:s,inverted:x,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t));return r.indexOf(Math.min(...r))}(j,e);k(e,t)},onSlideMove:d?void 0:function(e){k(e,A.current)},onSlideEnd:d?void 0:function(){let e=M.current[A.current];j[A.current]!==e&&w(j)},onHomeKeyDown:()=>!d&&k(a,0,{commit:!0}),onEndKeyDown:()=>!d&&k(s,j.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!d){let e=m.includes(t.key)||t.shiftKey&&y.includes(t.key),n=A.current;k(j[n]+u*(e?10:1)*r,n,{commit:!0})}}})})})})});R.displayName=v;var[j,C]=S(v,{startEdge:\"left\",endEdge:\"right\",size:\"width\",direction:1}),O=n.forwardRef((e,t)=>{let{min:r,max:o,dir:i,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,y]=n.useState(null),v=(0,a.e)(t,e=>y(e)),b=n.useRef(),w=(0,u.gm)(i),x=\"ltr\"===w,S=x&&!s||!x&&s;function P(e){let t=b.current||m.getBoundingClientRect(),n=B([0,t.width],S?[r,o]:[o,r]);return b.current=t,n(e-t.left)}return(0,h.jsx)(j,{scope:e.__scopeSlider,startEdge:S?\"left\":\"right\",endEdge:S?\"right\":\"left\",direction:S?1:-1,size:\"width\",children:(0,h.jsx)(M,{dir:w,\"data-orientation\":\"horizontal\",...p,ref:v,style:{...p.style,\"--radix-slider-thumb-transform\":\"translateX(-50%)\"},onSlideStart:e=>{let t=P(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=P(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=g[S?\"from-left\":\"from-right\"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),T=n.forwardRef((e,t)=>{let{min:r,max:o,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...d}=e,f=n.useRef(null),p=(0,a.e)(t,f),m=n.useRef(),y=!i;function v(e){let t=m.current||f.current.getBoundingClientRect(),n=B([0,t.height],y?[o,r]:[r,o]);return m.current=t,n(e-t.top)}return(0,h.jsx)(j,{scope:e.__scopeSlider,startEdge:y?\"bottom\":\"top\",endEdge:y?\"top\":\"bottom\",size:\"height\",direction:y?1:-1,children:(0,h.jsx)(M,{\"data-orientation\":\"vertical\",...d,ref:p,style:{...d.style,\"--radix-slider-thumb-transform\":\"translateY(50%)\"},onSlideStart:e=>{let t=v(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=v(e.clientY);null==l||l(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=g[y?\"from-bottom\":\"from-top\"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),M=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:u,...c}=e,d=A(v,r);return(0,h.jsx)(f.WV.span,{...c,ref:t,onKeyDown:(0,i.M)(e.onKeyDown,e=>{\"Home\"===e.key?(s(e),e.preventDefault()):\"End\"===e.key?(l(e),e.preventDefault()):m.concat(y).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),k=\"SliderTrack\",D=n.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,o=A(k,r);return(0,h.jsx)(f.WV.span,{\"data-disabled\":o.disabled?\"\":void 0,\"data-orientation\":o.orientation,...n,ref:t})});D.displayName=k;var N=\"SliderRange\",L=n.forwardRef((e,t)=>{let{__scopeSlider:r,...o}=e,i=A(N,r),s=C(N,r),l=n.useRef(null),u=(0,a.e)(t,l),c=i.values.length,d=i.values.map(e=>z(e,i.min,i.max));return(0,h.jsx)(f.WV.span,{\"data-orientation\":i.orientation,\"data-disabled\":i.disabled?\"\":void 0,...o,ref:u,style:{...e.style,[s.startEdge]:(c>1?Math.min(...d):0)+\"%\",[s.endEdge]:100-Math.max(...d)+\"%\"}})});L.displayName=N;var I=\"SliderThumb\",F=n.forwardRef((e,t)=>{let r=w(e.__scopeSlider),[o,i]=n.useState(null),s=(0,a.e)(t,e=>i(e)),l=n.useMemo(()=>o?r().findIndex(e=>e.ref.current===o):-1,[r,o]);return(0,h.jsx)(_,{...e,ref:s,index:l})}),_=n.forwardRef((e,t)=>{var r;let{__scopeSlider:o,index:s,name:l,...u}=e,c=A(I,o),p=C(I,o),[m,y]=n.useState(null),g=(0,a.e)(t,e=>y(e)),v=!m||!!m.closest(\"form\"),w=(0,d.t)(m),x=c.values[s],S=void 0===x?0:z(x,c.min,c.max),P=(r=c.values.length)>2?\"Value \".concat(s+1,\" of \").concat(r):2===r?[\"Minimum\",\"Maximum\"][s]:void 0,E=null==w?void 0:w[p.size],R=E?function(e,t,r){let n=e/2,o=B([0,50],[0,n]);return(n-o(t)*r)*r}(E,S,p.direction):0;return n.useEffect(()=>{if(m)return c.thumbs.add(m),()=>{c.thumbs.delete(m)}},[m,c.thumbs]),(0,h.jsxs)(\"span\",{style:{transform:\"var(--radix-slider-thumb-transform)\",position:\"absolute\",[p.startEdge]:\"calc(\".concat(S,\"% + \").concat(R,\"px)\")},children:[(0,h.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.WV.span,{role:\"slider\",\"aria-label\":e[\"aria-label\"]||P,\"aria-valuemin\":c.min,\"aria-valuenow\":x,\"aria-valuemax\":c.max,\"aria-orientation\":c.orientation,\"data-orientation\":c.orientation,\"data-disabled\":c.disabled?\"\":void 0,tabIndex:c.disabled?void 0:0,...u,ref:g,style:void 0===x?{display:\"none\"}:e.style,onFocus:(0,i.M)(e.onFocus,()=>{c.valueIndexToChangeRef.current=s})})}),v&&(0,h.jsx)(V,{name:null!=l?l:c.name?c.name+(c.values.length>1?\"[]\":\"\"):void 0,value:x},s)]})});F.displayName=I;var V=e=>{let{value:t,...r}=e,o=n.useRef(null),i=(0,c.D)(t);return n.useEffect(()=>{let e=o.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"value\").set;if(i!==t&&r){let n=new Event(\"input\",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),(0,h.jsx)(\"input\",{style:{display:\"none\"},...r,ref:o,defaultValue:t})};function z(e,t,r){return o(100/(r-t)*(e-t),[0,100])}function B(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var W=R,U=D,$=L,H=F},71538:function(e,t,r){\"use strict\";r.d(t,{A4:function(){return l},g7:function(){return a}});var n=r(2265),o=r(1584),i=r(57437),a=n.forwardRef((e,t)=>{let{children:r,...o}=e,a=n.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(s,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(s,{...o,ref:t,children:r})});a.displayName=\"Slot\";var s=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(r.props,\"ref\")?.get)&&\"isReactWarning\"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,\"ref\")?.get)&&\"isReactWarning\"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):\"style\"===n?r[n]={...o,...i}:\"className\"===n&&(r[n]=[o,i].filter(Boolean).join(\" \"))}return{...e,...r}}(i,r.props),ref:t?(0,o.F)(t,s):s})}return n.Children.count(r)>1?n.Children.only(null):null});s.displayName=\"SlotClone\";var l=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===l}},9646:function(e,t,r){\"use strict\";r.d(t,{bU:function(){return P},fC:function(){return S}});var n=r(2265),o=r(78149),i=r(1584),a=r(98324),s=r(91715),l=r(47250),u=r(75238),c=r(25171),d=r(57437),f=\"Switch\",[p,h]=(0,a.b)(f),[m,y]=p(f),g=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:h=\"on\",onCheckedChange:y,...g}=e,[v,b]=n.useState(null),S=(0,i.e)(t,e=>b(e)),P=n.useRef(!1),E=!v||!!v.closest(\"form\"),[A=!1,R]=(0,s.T)({prop:l,defaultProp:u,onChange:y});return(0,d.jsxs)(m,{scope:r,checked:A,disabled:p,children:[(0,d.jsx)(c.WV.button,{type:\"button\",role:\"switch\",\"aria-checked\":A,\"aria-required\":f,\"data-state\":x(A),\"data-disabled\":p?\"\":void 0,disabled:p,value:h,...g,ref:S,onClick:(0,o.M)(e.onClick,e=>{R(e=>!e),E&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),E&&(0,d.jsx)(w,{control:v,bubbles:!P.current,name:a,value:h,checked:A,required:f,disabled:p,style:{transform:\"translateX(-100%)\"}})]})});g.displayName=f;var v=\"SwitchThumb\",b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=y(v,r);return(0,d.jsx)(c.WV.span,{\"data-state\":x(o.checked),\"data-disabled\":o.disabled?\"\":void 0,...n,ref:t})});b.displayName=v;var w=e=>{let{control:t,checked:r,bubbles:o=!0,...i}=e,a=n.useRef(null),s=(0,l.D)(r),c=(0,u.t)(t);return n.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"checked\").set;if(s!==r&&t){let n=new Event(\"click\",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[s,r,o]),(0,d.jsx)(\"input\",{type:\"checkbox\",\"aria-hidden\":!0,defaultChecked:r,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:\"absolute\",pointerEvents:\"none\",opacity:0,margin:0}})};function x(e){return e?\"checked\":\"unchecked\"}var S=g,P=b},75137:function(e,t,r){\"use strict\";r.d(t,{W:function(){return o}});var n=r(2265);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},91715:function(e,t,r){\"use strict\";r.d(t,{T:function(){return i}});var n=r(2265),o=r(75137);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,a=n.useRef(i),s=(0,o.W)(t);return n.useEffect(()=>{a.current!==i&&(s(i),a.current=i)},[i,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:i,u=(0,o.W)(r);return[l,n.useCallback(t=>{if(s){let r=\"function\"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},1336:function(e,t,r){\"use strict\";r.d(t,{b:function(){return o}});var n=r(2265),o=globalThis?.document?n.useLayoutEffect:()=>{}},47250:function(e,t,r){\"use strict\";r.d(t,{D:function(){return o}});var n=r(2265);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},75238:function(e,t,r){\"use strict\";r.d(t,{t:function(){return i}});var n=r(2265),o=r(1336);function i(e){let[t,r]=n.useState(void 0);return(0,o.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if(\"borderBoxSize\"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:\"border-box\"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},38472:function(e,t,r){\"use strict\";let n,o,i,a;r.d(t,{Z:function(){return tp}});var s,l,u,c,d,f={};function p(e,t){return function(){return e.apply(t,arguments)}}r.r(f),r.d(f,{hasBrowserEnv:function(){return ev},hasStandardBrowserEnv:function(){return eb},hasStandardBrowserWebWorkerEnv:function(){return ew},origin:function(){return ex}});var h=r(25566);let{toString:m}=Object.prototype,{getPrototypeOf:y}=Object,g=(n=Object.create(null),e=>{let t=m.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),v=e=>(e=e.toLowerCase(),t=>g(t)===e),b=e=>t=>typeof t===e,{isArray:w}=Array,x=b(\"undefined\"),S=v(\"ArrayBuffer\"),P=b(\"string\"),E=b(\"function\"),A=b(\"number\"),R=e=>null!==e&&\"object\"==typeof e,j=e=>{if(\"object\"!==g(e))return!1;let t=y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C=v(\"Date\"),O=v(\"File\"),T=v(\"Blob\"),M=v(\"FileList\"),k=v(\"URLSearchParams\"),[D,N,L,I]=[\"ReadableStream\",\"Request\",\"Response\",\"Headers\"].map(v);function F(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e){if(\"object\"!=typeof e&&(e=[e]),w(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}}function _(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let V=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:global,z=e=>!x(e)&&e!==V,B=(o=\"undefined\"!=typeof Uint8Array&&y(Uint8Array),e=>o&&e instanceof o),W=v(\"HTMLFormElement\"),U=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$=v(\"RegExp\"),H=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};F(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},K=\"abcdefghijklmnopqrstuvwxyz\",q=\"0123456789\",G={DIGIT:q,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+q},Z=v(\"AsyncFunction\"),X=(s=\"function\"==typeof setImmediate,l=E(V.postMessage),s?setImmediate:l?(u=`axios@${Math.random()}`,c=[],V.addEventListener(\"message\",({source:e,data:t})=>{e===V&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),V.postMessage(u,\"*\")}):e=>setTimeout(e)),Y=\"undefined\"!=typeof queueMicrotask?queueMicrotask.bind(V):void 0!==h&&h.nextTick||X;var J={isArray:w,isArrayBuffer:S,isBuffer:function(e){return null!==e&&!x(e)&&null!==e.constructor&&!x(e.constructor)&&E(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&(\"function\"==typeof FormData&&e instanceof FormData||E(e.append)&&(\"formdata\"===(t=g(e))||\"object\"===t&&E(e.toString)&&\"[object FormData]\"===e.toString()))},isArrayBufferView:function(e){return\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:P,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:j,isReadableStream:D,isRequest:N,isResponse:L,isHeaders:I,isUndefined:x,isDate:C,isFile:O,isBlob:T,isRegExp:$,isFunction:E,isStream:e=>R(e)&&E(e.pipe),isURLSearchParams:k,isTypedArray:B,isFileList:M,forEach:F,merge:function e(){let{caseless:t}=z(this)&&this||{},r={},n=(n,o)=>{let i=t&&_(r,o)||o;j(r[i])&&j(n)?r[i]=e(r[i],n):j(n)?r[i]=e({},n):w(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&F(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(F(t,(t,n)=>{r&&E(t)?e[n]=p(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\"),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,\"super\",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&y(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:g,kindOfTest:v,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(w(e))return e;let t=e.length;if(!A(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:W,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,r)=>{if(E(e)&&-1!==[\"arguments\",\"caller\",\"callee\"].indexOf(r))return!1;if(E(e[r])){if(t.enumerable=!1,\"writable\"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error(\"Can not rewrite read-only method '\"+r+\"'\")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(w(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_,global:V,isContextDefined:z,ALPHABET:G,generateString:(e=16,t=G.ALPHA_DIGIT)=>{let r=\"\",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&E(e.append)&&\"FormData\"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(!(\"toJSON\"in e)){t[n]=e;let o=w(e)?[]:{};return F(e,(e,t)=>{let i=r(e,n+1);x(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Z,isThenable:e=>e&&(R(e)||E(e))&&E(e.then)&&E(e.catch),setImmediate:X,asap:Y};function Q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=\"AxiosError\",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}J.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let ee=Q.prototype,et={};[\"ERR_BAD_OPTION_VALUE\",\"ERR_BAD_OPTION\",\"ECONNABORTED\",\"ETIMEDOUT\",\"ERR_NETWORK\",\"ERR_FR_TOO_MANY_REDIRECTS\",\"ERR_DEPRECATED\",\"ERR_BAD_RESPONSE\",\"ERR_BAD_REQUEST\",\"ERR_CANCELED\",\"ERR_NOT_SUPPORT\",\"ERR_INVALID_URL\"].forEach(e=>{et[e]={value:e}}),Object.defineProperties(Q,et),Object.defineProperty(ee,\"isAxiosError\",{value:!0}),Q.from=(e,t,r,n,o,i)=>{let a=Object.create(ee);return J.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>\"isAxiosError\"!==e),Q.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var er=r(9109).Buffer;function en(e){return J.isPlainObject(e)||J.isArray(e)}function eo(e){return J.endsWith(e,\"[]\")?e.slice(0,-2):e}function ei(e,t,r){return e?e.concat(t).map(function(e,t){return e=eo(e),!r&&t?\"[\"+e+\"]\":e}).join(r?\".\":\"\"):t}let ea=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});var es=function(e,t,r){if(!J.isObject(e))throw TypeError(\"target must be an object\");t=t||new FormData;let n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||\"undefined\"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw TypeError(\"visitor must be a function\");function l(e){if(null===e)return\"\";if(J.isDate(e))return e.toISOString();if(!s&&J.isBlob(e))throw new Q(\"Blob is not supported. Use a Buffer instead.\");return J.isArrayBuffer(e)||J.isTypedArray(e)?s&&\"function\"==typeof Blob?new Blob([e]):er.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&\"object\"==typeof e){if(J.endsWith(r,\"{}\"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(J.isArray(e)&&(u=e,J.isArray(u)&&!u.some(en))||(J.isFileList(e)||J.endsWith(r,\"[]\"))&&(s=J.toArray(e)))return r=eo(r),s.forEach(function(e,n){J.isUndefined(e)||null===e||t.append(!0===a?ei([r],n,i):null===a?r:r+\"[]\",l(e))}),!1}}return!!en(e)||(t.append(ei(o,r,i),l(e)),!1)}let c=[],d=Object.assign(ea,{defaultVisitor:u,convertValue:l,isVisitable:en});if(!J.isObject(e))throw TypeError(\"data must be an object\");return!function e(r,n){if(!J.isUndefined(r)){if(-1!==c.indexOf(r))throw Error(\"Circular reference detected in \"+n.join(\".\"));c.push(r),J.forEach(r,function(r,i){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t};function el(e){let t={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\",\"%00\":\"\\0\"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eu(e,t){this._pairs=[],e&&es(e,this,t)}let ec=eu.prototype;function ed(e){return encodeURIComponent(e).replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}function ef(e,t,r){let n;if(!t)return e;let o=r&&r.encode||ed,i=r&&r.serialize;if(n=i?i(t,r):J.isURLSearchParams(t)?t.toString():new eu(t,r).toString(o)){let t=e.indexOf(\"#\");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf(\"?\")?\"?\":\"&\")+n}return e}ec.append=function(e,t){this._pairs.push([e,t])},ec.toString=function(e){let t=e?function(t){return e.call(this,t,el)}:el;return this._pairs.map(function(e){return t(e[0])+\"=\"+t(e[1])},\"\").join(\"&\")};class ep{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},em=\"undefined\"!=typeof URLSearchParams?URLSearchParams:eu,ey=\"undefined\"!=typeof FormData?FormData:null,eg=\"undefined\"!=typeof Blob?Blob:null;let ev=\"undefined\"!=typeof window&&\"undefined\"!=typeof document,eb=(i=\"undefined\"!=typeof navigator&&navigator.product,ev&&0>[\"ReactNative\",\"NativeScript\",\"NS\"].indexOf(i)),ew=\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&\"function\"==typeof self.importScripts,ex=ev&&window.location.href||\"http://localhost\";var eS={...f,isBrowser:!0,classes:{URLSearchParams:em,FormData:ey,Blob:eg},protocols:[\"http\",\"https\",\"file\",\"blob\",\"url\",\"data\"]},eP=function(e){if(J.isFormData(e)&&J.isFunction(e.entries)){let t={};return J.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++];if(\"__proto__\"===i)return!0;let a=Number.isFinite(+i),s=o>=t.length;return(i=!i&&J.isArray(n)?n.length:i,s)?J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r:(n[i]&&J.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&J.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!a}(J.matchAll(/\\w+|\\[(\\w*)]/g,e).map(e=>\"[]\"===e[0]?\"\":e[1]||e[0]),r,t,0)}),t}return null};let eE={transitional:eh,adapter:[\"xhr\",\"http\",\"fetch\"],transformRequest:[function(e,t){let r;let n=t.getContentType()||\"\",o=n.indexOf(\"application/json\")>-1,i=J.isObject(e);if(i&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return o?JSON.stringify(eP(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType(\"application/x-www-form-urlencoded;charset=utf-8\",!1),e.toString();if(i){if(n.indexOf(\"application/x-www-form-urlencoded\")>-1){var a,s;return(a=e,s=this.formSerializer,es(a,new eS.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return eS.isNode&&J.isBuffer(e)?(this.append(t,e.toString(\"base64\")),!1):n.defaultVisitor.apply(this,arguments)}},s))).toString()}if((r=J.isFileList(e))||n.indexOf(\"multipart/form-data\")>-1){let t=this.env&&this.env.FormData;return es(r?{\"files[]\":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType(\"application/json\",!1),function(e,t,r){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if(\"SyntaxError\"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eE.transitional,r=t&&t.forcedJSONParsing,n=\"json\"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if(\"SyntaxError\"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:\"XSRF-TOKEN\",xsrfHeaderName:\"X-XSRF-TOKEN\",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eS.classes.FormData,Blob:eS.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:\"application/json, text/plain, */*\",\"Content-Type\":void 0}}};J.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\"],e=>{eE.headers[e]={}});let eA=J.toObjectSet([\"age\",\"authorization\",\"content-length\",\"content-type\",\"etag\",\"expires\",\"from\",\"host\",\"if-modified-since\",\"if-unmodified-since\",\"last-modified\",\"location\",\"max-forwards\",\"proxy-authorization\",\"referer\",\"retry-after\",\"user-agent\"]);var eR=e=>{let t,r,n;let o={};return e&&e.split(\"\\n\").forEach(function(e){n=e.indexOf(\":\"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&eA[t]||(\"set-cookie\"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+\", \"+r:r)}),o};let ej=Symbol(\"internals\");function eC(e){return e&&String(e).trim().toLowerCase()}function eO(e){return!1===e||null==e?e:J.isArray(e)?e.map(eO):String(e)}let eT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eM(e,t,r,n,o){if(J.isFunction(n))return n.call(this,t,r);if(o&&(t=r),J.isString(t)){if(J.isString(n))return -1!==t.indexOf(n);if(J.isRegExp(n))return n.test(t)}}class ek{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=eC(t);if(!o)throw Error(\"header name must be a non-empty string\");let i=J.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=eO(e))}let i=(e,t)=>J.forEach(e,(e,r)=>o(e,r,t));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!eT(e))i(eR(e),t);else if(J.isHeaders(e))for(let[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=eC(e)){let r=J.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw TypeError(\"parser must be boolean|regexp|function\")}}}has(e,t){if(e=eC(e)){let r=J.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eM(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=eC(e)){let o=J.findKey(r,e);o&&(!t||eM(r,r[o],o,t))&&(delete r[o],n=!0)}}return J.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||eM(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return J.forEach(this,(n,o)=>{let i=J.findKey(r,o);if(i){t[i]=eO(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\\d])(\\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=eO(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return J.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(\", \"):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+\": \"+t).join(\"\\n\")}get[Symbol.toStringTag](){return\"AxiosHeaders\"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ej]=this[ej]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eC(e);t[n]||(!function(e,t){let r=J.toCamelCase(\" \"+t);[\"get\",\"set\",\"has\"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}function eD(e,t){let r=this||eE,n=t||r,o=ek.from(n.headers),i=n.data;return J.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eN(e){return!!(e&&e.__CANCEL__)}function eL(e,t,r){Q.call(this,null==e?\"canceled\":e,Q.ERR_CANCELED,t,r),this.name=\"CanceledError\"}function eI(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Q(\"Request failed with status code \"+r.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}ek.accessor([\"Content-Type\",\"Content-Length\",\"Accept\",\"Accept-Encoding\",\"User-Agent\",\"Authorization\"]),J.reduceDescriptors(ek.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),J.freezeMethods(ek),J.inherits(eL,Q,{__CANCEL__:!0});var eF=function(e,t){let r;let n=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=o[a];r||(r=l),n[i]=s,o[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},e_=function(e,t){let r,n,o=0,i=1e3/t,a=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]};let eV=(e,t,r=3)=>{let n=0,o=eF(50,250);return e_(r=>{let i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,l=o(s);n=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:r,lengthComputable:null!=a,[t?\"download\":\"upload\"]:!0})},r)},ez=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eB=e=>(...t)=>J.asap(()=>e(...t));var eW=eS.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement(\"a\");function n(e){let n=e;return t&&(r.setAttribute(\"href\",n),n=r.href),r.setAttribute(\"href\",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,\"\"):\"\",host:r.host,search:r.search?r.search.replace(/^\\?/,\"\"):\"\",hash:r.hash?r.hash.replace(/^#/,\"\"):\"\",hostname:r.hostname,port:r.port,pathname:\"/\"===r.pathname.charAt(0)?r.pathname:\"/\"+r.pathname}}return e=n(window.location.href),function(t){let r=J.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},eU=eS.hasStandardBrowserEnv?{write(e,t,r,n,o,i){let a=[e+\"=\"+encodeURIComponent(t)];J.isNumber(r)&&a.push(\"expires=\"+new Date(r).toGMTString()),J.isString(n)&&a.push(\"path=\"+n),J.isString(o)&&a.push(\"domain=\"+o),!0===i&&a.push(\"secure\"),document.cookie=a.join(\"; \")},read(e){let t=document.cookie.match(RegExp(\"(^|;\\\\s*)(\"+e+\")=([^;]*)\"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,\"\",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function e$(e,t){return e&&!/^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(t)?t?e.replace(/\\/?\\/$/,\"\")+\"/\"+t.replace(/^\\/+/,\"\"):e:t}let eH=e=>e instanceof ek?{...e}:e;function eK(e,t){t=t||{};let r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function a(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eH(e),eH(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(n){let i=l[n]||o,a=i(e[n],t[n],n);J.isUndefined(a)&&i!==s||(r[n]=a)}),r}var eq=e=>{let t;let r=eK({},e),{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=r;if(r.headers=s=ek.from(s),r.url=ef(e$(r.baseURL,r.url),e.params,e.paramsSerializer),l&&s.set(\"Authorization\",\"Basic \"+btoa((l.username||\"\")+\":\"+(l.password?unescape(encodeURIComponent(l.password)):\"\"))),J.isFormData(n)){if(eS.hasStandardBrowserEnv||eS.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...r]=t?t.split(\";\").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||\"multipart/form-data\",...r].join(\"; \"))}}if(eS.hasStandardBrowserEnv&&(o&&J.isFunction(o)&&(o=o(r)),o||!1!==o&&eW(r.url))){let e=i&&a&&eU.read(a);e&&s.set(i,e)}return r},eG=\"undefined\"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,o,i,a,s;let l=eq(e),u=l.data,c=ek.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l;function h(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener(\"abort\",n)}let m=new XMLHttpRequest;function y(){if(!m)return;let n=ek.from(\"getAllResponseHeaders\"in m&&m.getAllResponseHeaders());eI(function(e){t(e),h()},function(e){r(e),h()},{data:d&&\"text\"!==d&&\"json\"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,\"onloadend\"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf(\"file:\"))&&setTimeout(y)},m.onabort=function(){m&&(r(new Q(\"Request aborted\",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Q(\"Network Error\",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?\"timeout of \"+l.timeout+\"ms exceeded\":\"timeout exceeded\",n=l.transitional||eh;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new Q(t,n.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),\"setRequestHeader\"in m&&J.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),J.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&\"json\"!==d&&(m.responseType=l.responseType),p&&([i,s]=eV(p,!0),m.addEventListener(\"progress\",i)),f&&m.upload&&([o,a]=eV(f),m.upload.addEventListener(\"progress\",o),m.upload.addEventListener(\"loadend\",a)),(l.cancelToken||l.signal)&&(n=t=>{m&&(r(!t||t.type?new eL(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener(\"abort\",n)));let g=function(e){let t=/^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(e);return t&&t[1]||\"\"}(l.url);if(g&&-1===eS.protocols.indexOf(g)){r(new Q(\"Unsupported protocol \"+g+\":\",Q.ERR_BAD_REQUEST,e));return}m.send(u||null)})},eZ=(e,t)=>{let r,n=new AbortController,o=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Q?t:new eL(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener(\"abort\",o):e.unsubscribe(o))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener(\"abort\",o));let{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]};let eX=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},eY=async function*(e,t,r){for await(let n of e)yield*eX(ArrayBuffer.isView(n)?n:await r(String(n)),t)},eJ=(e,t,r,n,o)=>{let i;let a=eY(e,t,o),s=0,l=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await a.next();if(t){l(),e.close();return}let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw l(e),e}},cancel:e=>(l(e),a.return())},{highWaterMark:2})},eQ=\"function\"==typeof fetch&&\"function\"==typeof Request&&\"function\"==typeof Response,e0=eQ&&\"function\"==typeof ReadableStream,e1=eQ&&(\"function\"==typeof TextEncoder?(a=new TextEncoder,e=>a.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e2=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e0&&e2(()=>{let e=!1,t=new Request(eS.origin,{body:new ReadableStream,method:\"POST\",get duplex(){return e=!0,\"half\"}}).headers.has(\"Content-Type\");return e&&!t}),e5=e0&&e2(()=>J.isReadableStream(new Response(\"\").body)),e4={stream:e5&&(e=>e.body)};eQ&&(d=new Response,[\"text\",\"arrayBuffer\",\"blob\",\"formData\",\"stream\"].forEach(e=>{e4[e]||(e4[e]=J.isFunction(d[e])?t=>t[e]():(t,r)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,r)})}));let e8=async e=>null==e?0:J.isBlob(e)?e.size:J.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=\"\"),J.isString(e))?(await e1(e)).byteLength:void 0,e6=async(e,t)=>{let r=J.toFiniteNumber(e.getContentLength());return null==r?e8(t):r},e9={http:null,xhr:eG,fetch:eQ&&(async e=>{let t,r,n,{url:o,method:i,data:a,signal:s,cancelToken:l,timeout:u,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:h=\"same-origin\",fetchOptions:m}=eq(e);f=f?(f+\"\").toLowerCase():\"text\";let[y,g]=s||l||u?eZ([s,l],u):[],v=()=>{t||setTimeout(()=>{y&&y.unsubscribe()}),t=!0};try{if(d&&e3&&\"get\"!==i&&\"head\"!==i&&0!==(n=await e6(p,a))){let e,t=new Request(o,{method:\"POST\",body:a,duplex:\"half\"});if(J.isFormData(a)&&(e=t.headers.get(\"content-type\"))&&p.setContentType(e),t.body){let[e,r]=ez(n,eV(eB(d)));a=eJ(t.body,65536,e,r,e1)}}J.isString(h)||(h=h?\"include\":\"omit\"),r=new Request(o,{...m,signal:y,method:i.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:\"half\",credentials:h});let t=await fetch(r),s=e5&&(\"stream\"===f||\"response\"===f);if(e5&&(c||s)){let e={};[\"status\",\"statusText\",\"headers\"].forEach(r=>{e[r]=t[r]});let r=J.toFiniteNumber(t.headers.get(\"content-length\")),[n,o]=c&&ez(r,eV(eB(c),!0))||[];t=new Response(eJ(t.body,65536,n,()=>{o&&o(),s&&v()},e1),e)}f=f||\"text\";let l=await e4[J.findKey(e4,f)||\"text\"](t,e);return s||v(),g&&g(),await new Promise((n,o)=>{eI(n,o,{data:l,headers:ek.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(v(),t&&\"TypeError\"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Q(\"Network Error\",Q.ERR_NETWORK,e,r),{cause:t.cause||t});throw Q.from(t,t&&t.code,e,r)}})};J.forEach(e9,(e,t)=>{if(e){try{Object.defineProperty(e,\"name\",{value:t})}catch(e){}Object.defineProperty(e,\"adapterName\",{value:t})}});let e7=e=>`- ${e}`,te=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{let t,r;let{length:n}=e=J.isArray(e)?e:[e],o={};for(let i=0;i<n;i++){let n;if(r=t=e[i],!te(t)&&void 0===(r=e9[(n=String(t)).toLowerCase()]))throw new Q(`Unknown adapter '${n}'`);if(r)break;o[n||\"#\"+i]=r}if(!r){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?\"is not supported by the environment\":\"is not available in the build\"));throw new Q(\"There is no suitable adapter to dispatch the request \"+(n?e.length>1?\"since :\\n\"+e.map(e7).join(\"\\n\"):\" \"+e7(e[0]):\"as no adapter specified\"),\"ERR_NOT_SUPPORT\")}return r};function tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function tn(e){return tr(e),e.headers=ek.from(e.headers),e.data=eD.call(e,e.transformRequest),-1!==[\"post\",\"put\",\"patch\"].indexOf(e.method)&&e.headers.setContentType(\"application/x-www-form-urlencoded\",!1),tt(e.adapter||eE.adapter)(e).then(function(t){return tr(e),t.data=eD.call(e,e.transformResponse,t),t.headers=ek.from(t.headers),t},function(t){return!eN(t)&&(tr(e),t&&t.response&&(t.response.data=eD.call(e,e.transformResponse,t.response),t.response.headers=ek.from(t.response.headers))),Promise.reject(t)})}let to=\"1.7.3\",ti={};[\"object\",\"boolean\",\"number\",\"function\",\"string\",\"symbol\"].forEach((e,t)=>{ti[e]=function(r){return typeof r===e||\"a\"+(t<1?\"n \":\" \")+e}});let ta={};ti.transitional=function(e,t,r){function n(e,t){return\"[Axios v\"+to+\"] Transitional option '\"+e+\"'\"+t+(r?\". \"+r:\"\")}return(r,o,i)=>{if(!1===e)throw new Q(n(o,\" has been removed\"+(t?\" in \"+t:\"\")),Q.ERR_DEPRECATED);return t&&!ta[o]&&(ta[o]=!0,console.warn(n(o,\" has been deprecated since v\"+t+\" and will be removed in the near future\"))),!e||e(r,o,i)}};var ts={assertOptions:function(e,t,r){if(\"object\"!=typeof e)throw new Q(\"options must be an object\",Q.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new Q(\"option \"+i+\" must be \"+r,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Q(\"Unknown option \"+i,Q.ERR_BAD_OPTION)}},validators:ti};let tl=ts.validators;class tu{constructor(e){this.defaults=e,this.interceptors={request:new ep,response:new ep}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\\n/,\"\"):\"\";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\\n.+\\n/,\"\"))&&(e.stack+=\"\\n\"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;\"string\"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:a}=t=eK(this.defaults,t);void 0!==o&&ts.assertOptions(o,{silentJSONParsing:tl.transitional(tl.boolean),forcedJSONParsing:tl.transitional(tl.boolean),clarifyTimeoutError:tl.transitional(tl.boolean)},!1),null!=i&&(J.isFunction(i)?t.paramsSerializer={serialize:i}:ts.assertOptions(i,{encode:tl.function,serialize:tl.function},!0)),t.method=(t.method||this.defaults.method||\"get\").toLowerCase();let s=a&&J.merge(a.common,a[t.method]);a&&J.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\",\"common\"],e=>{delete a[e]}),t.headers=ek.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){(\"function\"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tn.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(d=0;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=tn.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return ef(e$((e=eK(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach([\"delete\",\"get\",\"head\",\"options\"],function(e){tu.prototype[e]=function(t,r){return this.request(eK(r||{},{method:e,url:t,data:(r||{}).data}))}}),J.forEach([\"post\",\"put\",\"patch\"],function(e){function t(t){return function(r,n,o){return this.request(eK(o||{},{method:e,headers:t?{\"Content-Type\":\"multipart/form-data\"}:{},url:r,data:n}))}}tu.prototype[e]=t(),tu.prototype[e+\"Form\"]=t(!0)});class tc{constructor(e){let t;if(\"function\"!=typeof e)throw TypeError(\"executor must be a function.\");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new eL(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new tc(function(t){e=t}),cancel:e}}}let td={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(td).forEach(([e,t])=>{td[t]=e});let tf=function e(t){let r=new tu(t),n=p(tu.prototype.request,r);return J.extend(n,tu.prototype,r,{allOwnKeys:!0}),J.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eK(t,r))},n}(eE);tf.Axios=tu,tf.CanceledError=eL,tf.CancelToken=tc,tf.isCancel=eN,tf.VERSION=to,tf.toFormData=es,tf.AxiosError=Q,tf.Cancel=tf.CanceledError,tf.all=function(e){return Promise.all(e)},tf.spread=function(e){return function(t){return e.apply(null,t)}},tf.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},tf.mergeConfig=eK,tf.AxiosHeaders=ek,tf.formToJSON=e=>eP(J.isHTMLForm(e)?new FormData(e):e),tf.getAdapter=tt,tf.HttpStatusCode=td,tf.default=tf;var tp=tf},12218:function(e,t,r){\"use strict\";r.d(t,{j:function(){return i}});let n=e=>\"boolean\"==typeof e?\"\".concat(e):0===e?\"0\":e,o=function(){for(var e,t,r=0,n=\"\";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o=\"\";if(\"string\"==typeof t||\"number\"==typeof t)o+=t;else if(\"object\"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=\" \"),o+=n);else for(r in t)t[r]&&(o&&(o+=\" \"),o+=r)}return o}(e))&&(n&&(n+=\" \"),n+=t);return n},i=(e,t)=>r=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],o=null==s?void 0:s[e];if(null===t)return null;let i=n(t)||n(o);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,l,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},44839:function(e,t,r){\"use strict\";function n(){for(var e,t,r=0,n=\"\",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o=\"\";if(\"string\"==typeof t||\"number\"==typeof t)o+=t;else if(\"object\"==typeof t){if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=\" \"),o+=n)}else for(n in t)t[n]&&(o&&(o+=\" \"),o+=n)}return o}(e))&&(n&&(n+=\" \"),n+=t);return n}r.d(t,{W:function(){return n}})},34446:function(e,t,r){\"use strict\";r.d(t,{M:function(){return g}});var n=r(57437),o=r(2265),i=r(67797),a=r(30458),s=r(29791);class l extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t}){let r=(0,o.useId)(),i=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,o.useContext)(s._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:n,top:o,left:s}=a.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let l=document.createElement(\"style\");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id=\"${r}\"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${n}px !important;\n            top: ${o}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}},[t]),(0,n.jsx)(l,{isPresent:t,childRef:i,sizeRef:a,children:o.cloneElement(e,{ref:i})})}let c=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:f})=>{let p=(0,a.h)(d),h=(0,o.useId)(),m=(0,o.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:l,onExitComplete:e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;s&&s()},register:e=>(p.set(e,!1),()=>p.delete(e))}),c?[Math.random()]:[r]);return(0,o.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),o.useEffect(()=>{r||p.size||!s||s()},[r]),\"popLayout\"===f&&(e=(0,n.jsx)(u,{isPresent:r,children:e})),(0,n.jsx)(i.O.Provider,{value:m,children:e})};function d(){return new Map}var f=r(5050),p=r(19047);let h=e=>e.key||\"\";function m(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var y=r(9033);let g=({children:e,exitBeforeEnter:t,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u=\"sync\"})=>{(0,p.k)(!t,\"Replace exitBeforeEnter with mode='wait'\");let d=(0,o.useMemo)(()=>m(e),[e]),g=d.map(h),v=(0,o.useRef)(!0),b=(0,o.useRef)(d),w=(0,a.h)(()=>new Map),[x,S]=(0,o.useState)(d),[P,E]=(0,o.useState)(d);(0,y.L)(()=>{v.current=!1,b.current=d;for(let e=0;e<P.length;e++){let t=h(P[e]);g.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[P,g.length,g.join(\"-\")]);let A=[];if(d!==x){let e=[...d];for(let t=0;t<P.length;t++){let r=P[t],n=h(r);g.includes(n)||(e.splice(t,0,r),A.push(r))}\"wait\"===u&&A.length&&(e=A),E(m(e)),S(d);return}let{forceRender:R}=(0,o.useContext)(f.p);return(0,n.jsx)(n.Fragment,{children:P.map(e=>{let t=h(e),o=d===P||g.includes(t);return(0,n.jsx)(c,{isPresent:o,initial:(!v.current||!!i)&&void 0,custom:o?void 0:r,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==R||R(),E(b.current),s&&s())},children:e},t)})})}},5050:function(e,t,r){\"use strict\";r.d(t,{p:function(){return n}});let n=(0,r(2265).createContext)({})},29791:function(e,t,r){\"use strict\";r.d(t,{_:function(){return n}});let n=(0,r(2265).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:\"never\"})},67797:function(e,t,r){\"use strict\";r.d(t,{O:function(){return n}});let n=(0,r(2265).createContext)(null)},2981:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(565);let o=[\"read\",\"resolveKeyframes\",\"update\",\"preRender\",\"render\",\"postRender\"];function i(e,t){let r=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,l=o.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1,i=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,o=!1,a=!1)=>{let s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{if(a=e,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(s),n=!1,o&&(o=!1,l.process(e))}};return l}(s),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:h}=l,m=()=>{let o=n.c.useManualTiming?a.timestamp:performance.now();r=!1,a.delta=i?1e3/60:Math.max(Math.min(o-a.timestamp,40),1),a.timestamp=o,a.isProcessing=!0,u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),h.process(a),a.isProcessing=!1,r&&t&&(i=!1,e(m))},y=()=>{r=!0,i=!0,a.isProcessing||e(m)};return{schedule:o.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,o=!1)=>(r||y(),n.schedule(e,t,o)),e},{}),cancel:e=>{for(let t=0;t<o.length;t++)l[o[t]].cancel(e)},state:a,steps:l}}},86219:function(e,t,r){\"use strict\";r.d(t,{Pn:function(){return i},S6:function(){return s},Wi:function(){return o},frameData:function(){return a}});var n=r(69276);let{schedule:o,cancel:i,state:a,steps:s}=(0,r(2981).Z)(\"undefined\"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},59993:function(e,t,r){\"use strict\";let n;r.d(t,{X:function(){return s}});var o=r(565),i=r(86219);function a(){n=void 0}let s={now:()=>(void 0===n&&s.set(i.frameData.isProcessing||o.c.useManualTiming?i.frameData.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(a)}}},98141:function(e,t,r){\"use strict\";r.d(t,{E:function(){return ob}});var n,o=r(57437),i=r(2265),a=r(29791);let s=(0,i.createContext)({});var l=r(67797),u=r(9033);let c=(0,i.createContext)({strict:!1}),d=e=>e.replace(/([a-z])([A-Z])/gu,\"$1-$2\").toLowerCase(),f=\"data-\"+d(\"framerAppearId\"),{schedule:p,cancel:h}=(0,r(2981).Z)(queueMicrotask,!1);function m(e){return e&&\"object\"==typeof e&&Object.prototype.hasOwnProperty.call(e,\"current\")}let y=(0,i.createContext)({}),g=!1;function v(){window.HandoffComplete=!0}function b(e){return\"string\"==typeof e||Array.isArray(e)}function w(e){return null!==e&&\"object\"==typeof e&&\"function\"==typeof e.start}let x=[\"animate\",\"whileInView\",\"whileFocus\",\"whileHover\",\"whileTap\",\"whileDrag\",\"exit\"],S=[\"initial\",...x];function P(e){return w(e.animate)||S.some(t=>b(e[t]))}function E(e){return!!(P(e)||e.variants)}function A(e){return Array.isArray(e)?e.join(\" \"):e}let R={animation:[\"animate\",\"variants\",\"whileHover\",\"whileTap\",\"exit\",\"whileInView\",\"whileFocus\",\"whileDrag\"],exit:[\"exit\"],drag:[\"drag\",\"dragControls\"],focus:[\"whileFocus\"],hover:[\"whileHover\",\"onHoverStart\",\"onHoverEnd\"],tap:[\"whileTap\",\"onTap\",\"onTapStart\",\"onTapCancel\"],pan:[\"onPan\",\"onPanStart\",\"onPanSessionStart\",\"onPanEnd\"],inView:[\"whileInView\",\"onViewportEnter\",\"onViewportLeave\"],layout:[\"layout\",\"layoutId\"]},j={};for(let e in R)j[e]={isEnabled:t=>R[e].some(e=>!!t[e])};var C=r(77282),O=r(5050);let T=Symbol.for(\"motionComponentSymbol\"),M=[\"animate\",\"circle\",\"defs\",\"desc\",\"ellipse\",\"g\",\"image\",\"line\",\"filter\",\"marker\",\"mask\",\"metadata\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"rect\",\"stop\",\"switch\",\"symbol\",\"svg\",\"text\",\"tspan\",\"use\",\"view\"];function k(e){if(\"string\"!=typeof e||e.includes(\"-\"));else if(M.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let D={},N=[\"transformPerspective\",\"x\",\"y\",\"z\",\"translateX\",\"translateY\",\"translateZ\",\"scale\",\"scaleX\",\"scaleY\",\"rotate\",\"rotateX\",\"rotateY\",\"rotateZ\",\"skew\",\"skewX\",\"skewY\"],L=new Set(N);function I(e,{layout:t,layoutId:r}){return L.has(e)||e.startsWith(\"origin\")||(t||void 0!==r)&&(!!D[e]||\"opacity\"===e)}let F=e=>!!(e&&e.getVelocity),_=(e,t)=>t&&\"number\"==typeof e?t.transform(e):e;var V=r(40783),z=r(75480);let B={...V.Rx,transform:Math.round},W={borderWidth:z.px,borderTopWidth:z.px,borderRightWidth:z.px,borderBottomWidth:z.px,borderLeftWidth:z.px,borderRadius:z.px,radius:z.px,borderTopLeftRadius:z.px,borderTopRightRadius:z.px,borderBottomRightRadius:z.px,borderBottomLeftRadius:z.px,width:z.px,maxWidth:z.px,height:z.px,maxHeight:z.px,size:z.px,top:z.px,right:z.px,bottom:z.px,left:z.px,padding:z.px,paddingTop:z.px,paddingRight:z.px,paddingBottom:z.px,paddingLeft:z.px,margin:z.px,marginTop:z.px,marginRight:z.px,marginBottom:z.px,marginLeft:z.px,rotate:z.RW,rotateX:z.RW,rotateY:z.RW,rotateZ:z.RW,scale:V.bA,scaleX:V.bA,scaleY:V.bA,scaleZ:V.bA,skew:z.RW,skewX:z.RW,skewY:z.RW,distance:z.px,translateX:z.px,translateY:z.px,translateZ:z.px,x:z.px,y:z.px,z:z.px,perspective:z.px,transformPerspective:z.px,opacity:V.Fq,originX:z.$C,originY:z.$C,originZ:z.px,zIndex:B,backgroundPositionX:z.px,backgroundPositionY:z.px,fillOpacity:V.Fq,strokeOpacity:V.Fq,numOctaves:B},U={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"},$=N.length;var H=r(61534);function K(e,t,r){let{style:n,vars:o,transformOrigin:i}=e,a=!1,s=!1;for(let e in t){let r=t[e];if(L.has(e)){a=!0;continue}if((0,H.f)(e)){o[e]=r;continue}{let t=_(r,W[e]);e.startsWith(\"origin\")?(s=!0,i[e]=t):n[e]=t}}if(!t.transform&&(a||r?n.transform=function(e,t,r){let n=\"\",o=!0;for(let i=0;i<$;i++){let a=N[i],s=e[a];if(void 0===s)continue;let l=!0;if(!(l=\"number\"==typeof s?s===(a.startsWith(\"scale\")?1:0):0===parseFloat(s))||r){let e=_(s,W[a]);if(!l){o=!1;let t=U[a]||a;n+=`${t}(${e}) `}r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,o?\"\":n):o&&(n=\"none\"),n}(t,e.transform,r):n.transform&&(n.transform=\"none\")),s){let{originX:e=\"50%\",originY:t=\"50%\",originZ:r=0}=i;n.transformOrigin=`${e} ${t} ${r}`}}let q=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function G(e,t,r){for(let n in t)F(t[n])||I(n,r)||(e[n]=t[n])}let Z=new Set([\"animate\",\"exit\",\"variants\",\"initial\",\"style\",\"values\",\"variants\",\"transition\",\"transformTemplate\",\"custom\",\"inherit\",\"onBeforeLayoutMeasure\",\"onAnimationStart\",\"onAnimationComplete\",\"onUpdate\",\"onDragStart\",\"onDrag\",\"onDragEnd\",\"onMeasureDragConstraints\",\"onDirectionLock\",\"onDragTransitionEnd\",\"_dragX\",\"_dragY\",\"onHoverStart\",\"onHoverEnd\",\"onViewportEnter\",\"onViewportLeave\",\"globalTapTarget\",\"ignoreStrict\",\"viewport\"]);function X(e){return e.startsWith(\"while\")||e.startsWith(\"drag\")&&\"draggable\"!==e||e.startsWith(\"layout\")||e.startsWith(\"onTap\")||e.startsWith(\"onPan\")||e.startsWith(\"onLayout\")||Z.has(e)}let Y=e=>!X(e);try{(n=require(\"@emotion/is-prop-valid\").default)&&(Y=e=>e.startsWith(\"on\")?!X(e):n(e))}catch(e){}function J(e,t,r){return\"string\"==typeof e?e:z.px.transform(t+r*e)}let Q={offset:\"stroke-dashoffset\",array:\"stroke-dasharray\"},ee={offset:\"strokeDashoffset\",array:\"strokeDasharray\"};function et(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(K(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,r){let n=J(t,e.x,e.width),o=J(r,e.y,e.height);return`${n} ${o}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?Q:ee;e[i.offset]=z.px.transform(-n);let a=z.px.transform(t),s=z.px.transform(r);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}let er=()=>({...q(),attrs:{}}),en=e=>\"string\"==typeof e&&\"svg\"===e.toLowerCase();function eo(e,{style:t,vars:r},n,o){for(let i in Object.assign(e.style,t,o&&o.getProjectionStyles(n)),r)e.style.setProperty(i,r[i])}let ei=new Set([\"baseFrequency\",\"diffuseConstant\",\"kernelMatrix\",\"kernelUnitLength\",\"keySplines\",\"keyTimes\",\"limitingConeAngle\",\"markerHeight\",\"markerWidth\",\"numOctaves\",\"targetX\",\"targetY\",\"surfaceScale\",\"specularConstant\",\"specularExponent\",\"stdDeviation\",\"tableValues\",\"viewBox\",\"gradientTransform\",\"pathLength\",\"startOffset\",\"textLength\",\"lengthAdjust\"]);function ea(e,t,r,n){for(let r in eo(e,t,void 0,n),t.attrs)e.setAttribute(ei.has(r)?r:d(r),t.attrs[r])}function es(e,t,r){var n;let{style:o}=e,i={};for(let a in o)(F(o[a])||t.style&&F(t.style[a])||I(a,e)||(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle)!==void 0)&&(i[a]=o[a]);return r&&o&&\"string\"==typeof o.willChange&&(r.applyWillChange=!1),i}function el(e,t,r){let n=es(e,t,r);for(let r in e)(F(e[r])||F(t[r]))&&(n[-1!==N.indexOf(r)?\"attr\"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eu(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function ec(e,t,r,n){if(\"function\"==typeof t){let[o,i]=eu(n);t=t(void 0!==r?r:e.custom,o,i)}if(\"string\"==typeof t&&(t=e.variants&&e.variants[t]),\"function\"==typeof t){let[o,i]=eu(n);t=t(void 0!==r?r:e.custom,o,i)}return t}var ed=r(30458);let ef=e=>Array.isArray(e),ep=e=>!!(e&&\"object\"==typeof e&&e.mix&&e.toValue),eh=e=>ef(e)?e[e.length-1]||0:e;function em(e){let t=F(e)?e.get():e;return ep(t)?t.toValue():t}let ey=new Set([\"opacity\",\"clipPath\",\"filter\",\"transform\"]);function eg(e){return L.has(e)?\"transform\":ey.has(e)?d(e):void 0}var ev=r(28746);let eb=e=>(t,r)=>{let n=(0,i.useContext)(s),o=(0,i.useContext)(l.O),a=()=>(function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},o,i,a,s){let l={latestValues:function(e,t,r,n,o){var i;let a={},s=[],l=n&&(null===(i=e.style)||void 0===i?void 0:i.willChange)===void 0,u=o(e,{});for(let e in u)a[e]=em(u[e]);let{initial:c,animate:d}=e,f=P(e),p=E(e);t&&p&&!f&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===d&&(d=t.animate));let h=!!r&&!1===r.initial,m=(h=h||!1===c)?d:c;return m&&\"boolean\"!=typeof m&&!w(m)&&ew(e,m,(e,t)=>{for(let t in e){let r=e[t];if(Array.isArray(r)){let e=h?r.length-1:0;r=r[e]}null!==r&&(a[t]=r)}for(let e in t)a[e]=t[e]}),l&&(d&&!1!==c&&!w(d)&&ew(e,d,e=>{for(let t in e)!function(e,t){let r=eg(t);r&&(0,ev.y4)(e,r)}(s,t)}),s.length&&(a.willChange=s.join(\",\"))),a}(o,i,a,!s&&e,t),renderState:r()};return n&&(l.mount=e=>n(o,e,l)),l})(e,t,n,o,r);return r?a():(0,ed.h)(a)};function ew(e,t,r){let n=Array.isArray(t)?t:[t];for(let t=0;t<n.length;t++){let o=ec(e,n[t]);if(o){let{transitionEnd:e,transition:t,...n}=o;r(n,e)}}}var ex=r(86219);let eS={useVisualState:eb({scrapeMotionValuesFromProps:el,createRenderState:er,onMount:(e,t,{renderState:r,latestValues:n})=>{ex.Wi.read(()=>{try{r.dimensions=\"function\"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),ex.Wi.render(()=>{et(r,n,en(t.tagName),e.transformTemplate),ea(t,r)})}})},eP={useVisualState:eb({applyWillChange:!0,scrapeMotionValuesFromProps:es,createRenderState:q})};function eE(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let eA=e=>\"mouse\"===e.pointerType?\"number\"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eR(e,t=\"page\"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let ej=e=>t=>eA(t)&&e(t,eR(t));function eC(e,t,r,n){return eE(e,t,ej(r),n)}var eO=r(89654);function eT(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eM=eT(\"dragHorizontal\"),ek=eT(\"dragVertical\");function eD(e){let t=!1;if(\"y\"===e)t=ek();else if(\"x\"===e)t=eM();else{let e=eM(),r=ek();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function eN(){let e=eD(!0);return!e||(e(),!1)}class eL{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eI(e,t){let r=t?\"onHoverStart\":\"onHoverEnd\";return eC(e.current,t?\"pointerenter\":\"pointerleave\",(n,o)=>{if(\"touch\"===n.pointerType||eN())return;let i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive(\"whileHover\",t);let a=i[r];a&&ex.Wi.postRender(()=>a(n,o))},{passive:!e.getProps()[r]})}class eF extends eL{mount(){this.unmount=(0,eO.z)(eI(this.node,!0),eI(this.node,!1))}unmount(){}}class e_ extends eL{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(\":focus-visible\")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(\"whileFocus\",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(\"whileFocus\",!1),this.isActive=!1)}mount(){this.unmount=(0,eO.z)(eE(this.node.current,\"focus\",()=>this.onFocus()),eE(this.node.current,\"blur\",()=>this.onBlur()))}unmount(){}}let eV=(e,t)=>!!t&&(e===t||eV(e,t.parentElement));var ez=r(69276);function eB(e,t){if(!t)return;let r=new PointerEvent(\"pointer\"+e);t(r,eR(r))}class eW extends eL{constructor(){super(...arguments),this.removeStartListeners=ez.Z,this.removeEndListeners=ez.Z,this.removeAccessibleListeners=ez.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=eC(window,\"pointerup\",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:o}=this.node.getProps(),i=o||eV(this.node.current,e.target)?r:n;i&&ex.Wi.update(()=>i(e,t))},{passive:!(r.onTap||r.onPointerUp)}),o=eC(window,\"pointercancel\",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,eO.z)(n,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eE(this.node.current,\"keydown\",e=>{\"Enter\"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eE(this.node.current,\"keyup\",e=>{\"Enter\"===e.key&&this.checkPressEnd()&&eB(\"up\",(e,t)=>{let{onTap:r}=this.node.getProps();r&&ex.Wi.postRender(()=>r(e,t))})}),eB(\"down\",(e,t)=>{this.startPress(e,t)}))}),t=eE(this.node.current,\"blur\",()=>{this.isPressing&&eB(\"cancel\",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=(0,eO.z)(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive(\"whileTap\",!0),r&&ex.Wi.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(\"whileTap\",!1),!eN()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&ex.Wi.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=eC(e.globalTapTarget?window:this.node.current,\"pointerdown\",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eE(this.node.current,\"focus\",this.startAccessiblePress);this.removeStartListeners=(0,eO.z)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eU=new WeakMap,e$=new WeakMap,eH=e=>{let t=eU.get(e.target);t&&t(e)},eK=e=>{e.forEach(eH)},eq={some:0,all:1};class eG extends eL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n=\"some\",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:\"number\"==typeof n?n:eq[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;e$.has(r)||e$.set(r,{});let n=e$.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(eK,{root:e,...t})),n[o]}(t);return eU.set(e,r),n.observe(e),()=>{eU.delete(e),n.unobserve(e)}}(this.node.current,i,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(\"whileInView\",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)})}mount(){this.startObserver()}update(){if(\"undefined\"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;[\"amount\",\"margin\",\"root\"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}function eZ(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function eX(e,t,r){let n=e.getProps();return ec(n,t,void 0!==r?r:n.custom,e)}let eY=e=>1e3*e,eJ=e=>e/1e3,eQ={type:\"spring\",stiffness:500,damping:25,restSpeed:10},e0=e=>({type:\"spring\",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),e1={type:\"keyframes\",duration:.8},e2={type:\"keyframes\",ease:[.25,.1,.35,1],duration:.3},e3=(e,{keyframes:t})=>t.length>2?e1:L.has(e)?e.startsWith(\"scale\")?e0(t[1]):eQ:e2;function e5(e,t){return e[t]||e.default||e}var e4=r(565);let e8={current:!1},e6=e=>null!==e;function e9(e,{repeat:t,repeatType:r=\"loop\"},n){let o=e.filter(e6),i=t&&\"loop\"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}var e7=r(59993);let te=e=>/^0[^.\\s]+$/u.test(e);var tt=r(19047);let tr=e=>/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(e),tn=/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u,to=new Set([\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",\"x\",\"y\",\"translateX\",\"translateY\"]),ti=e=>e===V.Rx||e===z.px,ta=(e,t)=>parseFloat(e.split(\", \")[t]),ts=(e,t)=>(r,{transform:n})=>{if(\"none\"===n||!n)return 0;let o=n.match(/^matrix3d\\((.+)\\)$/u);if(o)return ta(o[1],t);{let t=n.match(/^matrix\\((.+)\\)$/u);return t?ta(t[1],e):0}},tl=new Set([\"x\",\"y\",\"z\"]),tu=N.filter(e=>!tl.has(e)),tc={width:({x:e},{paddingLeft:t=\"0\",paddingRight:r=\"0\"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t=\"0\",paddingBottom:r=\"0\"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ts(4,13),y:ts(5,14)};tc.translateX=tc.x,tc.translateY=tc.y;let td=e=>t=>t.test(e),tf=[V.Rx,z.px,z.aQ,z.RW,z.vw,z.vh,{test:e=>\"auto\"===e,parse:e=>e}],tp=e=>tf.find(td(e)),th=new Set,tm=!1,ty=!1;function tg(){if(ty){let e=Array.from(th).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return tu.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith(\"scale\")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ty=!1,tm=!1,th.forEach(e=>e.complete()),th.clear()}function tv(){th.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ty=!0)})}class tb{constructor(e,t,r,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(th.add(this),tm||(tm=!0,ex.Wi.read(tv),ex.Wi.resolveKeyframes(tg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let o=0;o<e.length;o++)if(null===e[o]){if(0===o){let o=null==n?void 0:n.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){let n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}else e[o]=e[o-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),th.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,th.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}var tw=r(83646),tx=r(47292);let tS=new Set([\"brightness\",\"contrast\",\"saturate\",\"opacity\"]);function tP(e){let[t,r]=e.slice(0,-1).split(\"(\");if(\"drop-shadow\"===t)return e;let[n]=r.match(tx.KP)||[];if(!n)return e;let o=r.replace(n,\"\"),i=tS.has(t)?1:0;return n!==r&&(i*=100),t+\"(\"+i+o+\")\"}let tE=/\\b([a-z-]*)\\(.*?\\)/gu,tA={...tw.P,getAnimatableNone:e=>{let t=e.match(tE);return t?t.map(tP).join(\" \"):e}};var tR=r(50146);let tj={...W,color:tR.$,backgroundColor:tR.$,outlineColor:tR.$,fill:tR.$,stroke:tR.$,borderColor:tR.$,borderTopColor:tR.$,borderRightColor:tR.$,borderBottomColor:tR.$,borderLeftColor:tR.$,filter:tA,WebkitFilter:tA},tC=e=>tj[e];function tO(e,t){let r=tC(e);return r!==tA&&(r=tw.P),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tT=new Set([\"auto\",\"none\",\"0\"]);class tM extends tb{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if(\"string\"==typeof n&&(n=n.trim(),(0,H.t)(n))){let o=function e(t,r,n=1){(0,tt.k)(n<=4,`Max CSS variable fallback depth detected in property \"${t}\". This may indicate a circular fallback dependency.`);let[o,i]=function(e){let t=tn.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${null!=r?r:n}`,o]}(t);if(!o)return;let a=window.getComputedStyle(r).getPropertyValue(o);if(a){let e=a.trim();return tr(e)?parseFloat(e):e}return(0,H.t)(i)?e(i,r,n+1):i}(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!to.has(r)||2!==e.length)return;let[n,o]=e,i=tp(n),a=tp(o);if(i!==a){if(ti(i)&&ti(a))for(let t=0;t<e.length;t++){let r=e[t];\"string\"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;(\"number\"==typeof(n=e[t])?0===n:null===n||\"none\"===n||\"0\"===n||te(n))&&r.push(t)}r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){let t=e[o];\"string\"==typeof t&&!tT.has(t)&&(0,tw.V)(t).values.length&&(n=e[o]),o++}if(n&&r)for(let o of t)e[o]=tO(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;\"height\"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tc[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t.current)return;let o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=tc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}function tk(e){let t;return()=>(void 0===t&&(t=e()),t)}let tD=(e,t)=>\"zIndex\"!==t&&!!(\"number\"==typeof e||Array.isArray(e)||\"string\"==typeof e&&(tw.P.test(e)||\"0\"===e)&&!e.startsWith(\"url(\"));class tN{constructor({autoplay:e=!0,delay:t=0,type:r=\"keyframes\",repeat:n=0,repeatDelay:o=0,repeatType:i=\"loop\",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(tv(),tg()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let o=e[0];if(null===o)return!1;if(\"display\"===t||\"visibility\"===t)return!0;let i=e[e.length-1],a=tD(o,t),s=tD(i,t);return(0,tt.K)(a===s,`You are trying to animate ${t} from \"${o}\" to \"${i}\". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \\`style\\` property.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||\"spring\"===r&&n)}(e,r,n,o)){if(e8.current||!i){null==s||s(e9(e,this.options,t)),null==a||a(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}var tL=r(83476);function tI(e,t,r){let n=Math.max(t-5,0);return(0,tL.R)(r-e(n),t-n)}var tF=r(51506);function t_(e,t){return e*Math.sqrt(1-t*t)}let tV=[\"duration\",\"bounce\"],tz=[\"stiffness\",\"damping\",\"mass\"];function tB(e,t){return t.some(t=>void 0!==e[t])}function tW({keyframes:e,restDelta:t,restSpeed:r,...n}){let o;let i=e[0],a=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tB(e,tz)&&tB(e,tV)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;(0,tt.K)(e<=eY(10),\"Spring duration must be 10 seconds or less\");let a=1-t;a=(0,tF.u)(.05,1,a),e=(0,tF.u)(.01,10,eJ(e)),a<1?(o=t=>{let n=t*a,o=n*e;return .001-(n-r)/t_(t,a)*Math.exp(-o)},i=t=>{let n=t*a*e,i=Math.pow(a,2)*Math.pow(t,2)*e,s=t_(Math.pow(t,2),a);return(n*r+r-i)*Math.exp(-n)*(-o(t)+.001>0?-1:1)/s}):(o=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),i=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=eY(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-eJ(n.velocity||0)}),h=f||0,m=u/(2*Math.sqrt(l*c)),y=a-i,g=eJ(Math.sqrt(l/c)),v=5>Math.abs(y);if(r||(r=v?.01:2),t||(t=v?.005:.5),m<1){let e=t_(g,m);o=t=>a-Math.exp(-m*g*t)*((h+m*g*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===m)o=e=>a-Math.exp(-g*e)*(y+(h+g*y)*e);else{let e=g*Math.sqrt(m*m-1);o=t=>{let r=Math.exp(-m*g*t),n=Math.min(e*t,300);return a-r*((h+m*g*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}return{calculatedDuration:p&&d||null,next:e=>{let n=o(e);if(p)s.done=e>=d;else{let i=0;m<1&&(i=0===e?eY(h):tI(o,e,n));let l=Math.abs(i)<=r,u=Math.abs(a-n)<=t;s.done=l&&u}return s.value=s.done?a:n,s}}}function tU({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let p=e[0],h={done:!1,value:p},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,y=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,g=r*t,v=p+g,b=void 0===a?v:a(v);b!==v&&(g=b-p);let w=e=>-g*Math.exp(-e/n),x=e=>b+w(e),S=e=>{let t=w(e),r=x(e);h.done=Math.abs(t)<=u,h.value=h.done?b:r},P=e=>{m(h.value)&&(d=e,f=tW({keyframes:[h.value,y(h.value)],velocity:tI(x,e,h.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,S(e),P(e)),void 0!==d&&e>=d)?f.next(e-d):(t||S(e),h)}}}let t$=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tH(e,t,r,n){if(e===t&&r===n)return ez.Z;let o=t=>(function(e,t,r,n,o){let i,a;let s=0;do(i=t$(a=t+(r-t)/2,n,o)-e)>0?r=a:t=a;while(Math.abs(i)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:t$(o(e),t,n)}let tK=tH(.42,0,1,1),tq=tH(0,0,.58,1),tG=tH(.42,0,.58,1),tZ=e=>Array.isArray(e)&&\"number\"!=typeof e[0],tX=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tY=e=>t=>1-e(1-t),tJ=e=>1-Math.sin(Math.acos(e)),tQ=tY(tJ),t0=tX(tJ),t1=tH(.33,1.53,.69,.99),t2=tY(t1),t3=tX(t2),t5={linear:ez.Z,easeIn:tK,easeInOut:tG,easeOut:tq,circIn:tJ,circInOut:t0,circOut:tQ,backIn:t2,backInOut:t3,backOut:t1,anticipate:e=>(e*=2)<1?.5*t2(e):.5*(2-Math.pow(2,-10*(e-1)))},t4=e=>{if(Array.isArray(e)){(0,tt.k)(4===e.length,\"Cubic bezier arrays must contain four numerical values.\");let[t,r,n,o]=e;return tH(t,r,n,o)}return\"string\"==typeof e?((0,tt.k)(void 0!==t5[e],`Invalid easing type '${e}'`),t5[e]):e};var t8=r(42548),t6=r(75004),t9=r(33217);function t7({duration:e=300,keyframes:t,times:r,ease:n=\"easeInOut\"}){let o=tZ(n)?n.map(t4):t4(n),i={done:!1,value:t[0]},a=(r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=(0,t9.Y)(0,t,n);e.push((0,t6.t)(r,1,o))}}(t,e.length-1),t}(t)).map(t=>t*e),s=(0,t8.s)(a,t,{ease:Array.isArray(o)?o:t.map(()=>o||tG).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}var re=r(5389);let rt=e=>{let t=({timestamp:t})=>e(t);return{start:()=>ex.Wi.update(t,!0),stop:()=>(0,ex.Pn)(t),now:()=>ex.frameData.isProcessing?ex.frameData.timestamp:e7.X.now()}},rr={decay:tU,inertia:tU,tween:t7,keyframes:t7,spring:tW},rn=e=>e/100;class ro extends tN{constructor({KeyframeResolver:e=tb,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState=\"running\",this.state=\"idle\",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,\"idle\"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:r,motionValue:n,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(o,i,r,n):this.resolver=new e(o,i,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n=\"keyframes\",repeat:o=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,l=rr[n]||t7;l!==t7&&\"number\"!=typeof e[0]&&(t=(0,eO.z)(rn,(0,re.C)(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});\"mirror\"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+i;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(o+1)-i}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),\"paused\"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return o.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let y=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),\"finished\"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=o;if(f){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,f+1))%2&&(\"reverse\"===p?(r=1-r,h&&(r-=h/c)):\"mirror\"===p&&(b=i)),v=(0,tF.u)(0,1,r)*c}let w=g?{done:!1,value:s[0]}:b.next(v);a&&(w.value=a(w.value));let{done:x}=w;g||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&(\"finished\"===this.state||\"running\"===this.state&&x);return S&&void 0!==n&&(w.value=e9(s,this.options,n)),m&&m(w.value),S&&this.finish(),w}get duration(){let{resolved:e}=this;return e?eJ(e.calculatedDuration):0}get time(){return eJ(this.currentTime)}set time(e){e=eY(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=eJ(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState=\"running\";return}if(this.isStopped)return;let{driver:e=rt,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&\"finished\"!==this.state||(this.startTime=r),\"finished\"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state=\"running\",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState=\"paused\";return}this.state=\"paused\",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){\"running\"!==this.state&&this.play(),this.pendingPlayState=this.state=\"finished\",this.holdTime=null}finish(){this.teardown(),this.state=\"finished\";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state=\"idle\",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let ri=e=>Array.isArray(e)&&\"number\"==typeof e[0],ra=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rs={linear:\"linear\",ease:\"ease\",easeIn:\"ease-in\",easeOut:\"ease-out\",easeInOut:\"ease-in-out\",circIn:ra([0,.65,.55,1]),circOut:ra([.55,0,1,.45]),backIn:ra([.31,.01,.66,-.59]),backOut:ra([.33,1.53,.69,.99])};function rl(e){return ru(e)||rs.easeOut}function ru(e){if(e)return ri(e)?ra(e):Array.isArray(e)?e.map(rl):rs[e]}let rc=tk(()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"));class rd extends tN{constructor(e){super(e);let{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new tM(n,(e,t)=>this.onKeyframesResolved(e,t),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if(\"spring\"===(n=this.options).type||!function e(t){return!!(!t||\"string\"==typeof t&&t in rs||ri(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,...l}=this.options,u=function(e,t){let r=new ro({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},o=[],i=0;for(;!n.done&&i<2e4;)o.push((n=r.sample(i)).value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:\"linear\"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,i=u.times,a=u.ease,s=\"keyframes\"}let c=function(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a=\"loop\",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=ru(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?\"linear\":c,fill:\"both\",iterations:i+1,direction:\"reverse\"===a?\"alternate\":\"normal\"})}(l.owner.current,u,e,{...this.options,duration:o,times:i,ease:a});return c.startTime=e7.X.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;l.set(e9(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return eJ(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return eJ(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=eY(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return\"idle\";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return ez.Z;let{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return ez.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;\"finished\"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,\"idle\"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:o,ease:i,times:a}=e;if(\"idle\"===t.playState||\"finished\"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new ro({...l,keyframes:r,duration:n,type:o,ease:i,times:a,isGenerator:!0}),c=eY(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}let{onStop:s}=this.options;s&&s(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;return rc()&&r&&ey.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&\"mirror\"!==o&&0!==i&&\"inertia\"!==a}}let rf=tk(()=>void 0!==window.ScrollTimeline);class rp{constructor(e){this.stop=()=>this.runAll(\"stop\"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){let t=this.animations.map(t=>{if(!rf()||!t.attachTimeline)return t.pause(),function(e,t){let r;let n=()=>{let{currentTime:n}=t,o=(null===n?0:n.value)/100;r!==o&&e(o),r=o};return ex.Wi.update(n,!0),()=>(0,ex.Pn)(n)}(e=>{t.time=t.duration*e},e);t.attachTimeline(e)});return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(\"time\")}set time(e){this.setAll(\"time\",e)}get speed(){return this.getAll(\"speed\")}set speed(e){this.setAll(\"speed\",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(\"play\")}pause(){this.runAll(\"pause\")}cancel(){this.runAll(\"cancel\")}complete(){this.runAll(\"complete\")}}let rh=(e,t,r,n={},o,i,a)=>s=>{let l=e5(n,e)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=eY(u);let d={keyframes:Array.isArray(r)?r:[null,r],ease:\"easeOut\",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),a&&a()},onStop:a,name:e,motionValue:t,element:i?void 0:o};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&(d={...d,...e3(e,d)}),d.duration&&(d.duration=eY(d.duration)),d.repeatDelay&&(d.repeatDelay=eY(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(f=!0)),(e8.current||e4.c.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),f&&!i&&void 0!==t.get()){let e=e9(d.keyframes,l);if(void 0!==e)return ex.Wi.update(()=>{d.onUpdate(e),d.onComplete()}),new rp([])}return!i&&rd.supports(d)?new rd(d):new ro(d)};var rm=r(20804);function ry(e){return e.getProps()[f]}class rg extends rm.Hg{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){let t=eg(e);if(!t)return;let r=this.counts.get(t)||0;this.counts.set(t,r+1),0===r&&(this.output.push(t),this.update());let n=!1;return()=>{if(n)return;n=!0;let e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&((0,ev.cl)(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(\", \"):\"auto\")}}function rv(e,t){var r,n;if(!e.applyWillChange)return;let o=e.getValue(\"willChange\");if(o||(null===(r=e.props.style)||void 0===r?void 0:r.willChange)||(o=new rg(\"auto\"),e.addValue(\"willChange\",o)),F(n=o)&&n.add)return o.add(t)}function rb(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;n&&(a=n);let u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(let t in l){let n=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let s={delay:r,elapsed:0,...e5(a||{},t)},d=!1;if(window.HandoffAppearAnimations){let r=ry(e);if(r){let e=window.HandoffAppearAnimations(r,t,n,ex.Wi);null!==e&&(s.elapsed=e,d=!0)}}n.start(rh(t,n,o,e.shouldReduceMotion&&L.has(t)?{type:!1}:s,e,d,rv(e,t)));let f=n.animation;f&&u.push(f)}return s&&Promise.all(u).then(()=>{ex.Wi.update(()=>{s&&function(e,t){let{transitionEnd:r={},transition:n={},...o}=eX(e,t)||{};for(let t in o={...o,...r}){let r=eh(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,rm.BX)(r))}}(e,s)})}),u}function rw(e,t,r={}){var n;let o=eX(e,t,\"exit\"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let a=o?()=>Promise.all(rb(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,o=1,i){let a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(rx).forEach((e,n)=>{e.notify(\"AnimationStart\",t),a.push(rw(e,t,{...i,delay:r+l(n)}).then(()=>e.notify(\"AnimationComplete\",t)))}),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]=\"beforeChildren\"===l?[a,s]:[s,a];return e().then(()=>t())}}function rx(e,t){return e.sortNodePosition(t)}let rS=[...x].reverse(),rP=x.length;function rE(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rA(){return{animate:rE(!0),whileInView:rE(),whileHover:rE(),whileTap:rE(),whileDrag:rE(),whileFocus:rE(),exit:rE()}}class rR extends eL{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify(\"AnimationStart\",t),Array.isArray(t))n=Promise.all(t.map(t=>rw(e,t,r)));else if(\"string\"==typeof t)n=rw(e,t,r);else{let o=\"function\"==typeof t?eX(e,t,r.custom):t;n=Promise.all(rb(e,o,r))}return n.then(()=>{e.notify(\"AnimationComplete\",t)})})(e,t,r))),r=rA(),n=!0,o=t=>(r,n)=>{var o;let i=eX(e,n,\"exit\"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function i(i){let a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<rP;t++){var f;let p=rS[t],h=r[p],m=void 0!==a[p]?a[p]:s[p],y=b(m),g=p===i?h.isActive:null;!1===g&&(d=t);let v=m===s[p]&&m!==a[p]&&y;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...c},!h.isActive&&null===g||!m&&!h.prevProp||w(m)||\"boolean\"==typeof m)continue;let x=(f=h.prevProp,(\"string\"==typeof m?m!==f:!!Array.isArray(m)&&!eZ(m,f))||p===i&&h.isActive&&!v&&y||t>d&&y),S=!1,P=Array.isArray(m)?m:[m],E=P.reduce(o(p),{});!1===g&&(E={});let{prevResolvedValues:A={}}=h,R={...A,...E},j=t=>{x=!0,u.has(t)&&(S=!0,u.delete(t)),h.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in R){let t=E[e],r=A[e];if(!c.hasOwnProperty(e))(ef(t)&&ef(r)?eZ(t,r):t===r)?void 0!==t&&u.has(e)?j(e):h.protectedKeys[e]=!0:null!=t?j(e):u.add(e)}h.prevProp=m,h.prevResolvedValues=E,h.isActive&&(c={...c,...E}),n&&e.blockInitialAnimation&&(x=!1),x&&(!v||S)&&l.push(...P.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};u.forEach(r=>{let n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=null!=n?n:null}),l.push({animation:t})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let a=i(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rA(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();w(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let rj=0;class rC extends eL{constructor(){super(...arguments),this.id=rj++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive(\"exit\",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let rO=(e,t)=>Math.abs(e-t);class rT{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=rD(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,o=(e=r.offset,t={x:0,y:0},Math.sqrt(rO(e.x,t.x)**2+rO(e.y,t.y)**2)>=3);if(!n&&!o)return;let{point:i}=r,{timestamp:a}=ex.frameData;this.history.push({...i,timestamp:a});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rM(t,this.transformPagePoint),ex.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=rD(\"pointercancel\"===e.type?this.lastMoveEventInfo:rM(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!eA(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let i=rM(eR(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=ex.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,rD(i,this.history)),this.removeListeners=(0,eO.z)(eC(this.contextWindow,\"pointermove\",this.handlePointerMove),eC(this.contextWindow,\"pointerup\",this.handlePointerUp),eC(this.contextWindow,\"pointercancel\",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,ex.Pn)(this.updatePoint)}}function rM(e,t){return t?{point:t(e.point)}:e}function rk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rD({point:e},t){return{point:e,delta:rk(e,rN(t)),offset:rk(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=rN(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>eY(.1)));)r--;if(!n)return{x:0,y:0};let i=eJ(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};let a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function rN(e){return e[e.length-1]}function rL(e){return e.max-e.min}function rI(e,t,r,n=.5){e.origin=n,e.originPoint=(0,t6.t)(t.min,t.max,e.origin),e.scale=rL(r)/rL(t),e.translate=(0,t6.t)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rF(e,t,r,n){rI(e.x,t.x,r.x,n?n.originX:void 0),rI(e.y,t.y,r.y,n?n.originY:void 0)}function r_(e,t,r){e.min=r.min+t.min,e.max=e.min+rL(t)}function rV(e,t,r){e.min=t.min-r.min,e.max=e.min+rL(t)}function rz(e,t,r){rV(e.x,t.x,r.x),rV(e.y,t.y,r.y)}function rB(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rW(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function rU(e,t,r){return{min:r$(e,t),max:r$(e,r)}}function r$(e,t){return\"number\"==typeof e?e:e[t]||0}let rH=()=>({translate:0,scale:1,origin:0,originPoint:0}),rK=()=>({x:rH(),y:rH()}),rq=()=>({min:0,max:0}),rG=()=>({x:rq(),y:rq()});function rZ(e){return[e(\"x\"),e(\"y\")]}function rX({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function rY(e){return void 0===e||1===e}function rJ({scale:e,scaleX:t,scaleY:r}){return!rY(e)||!rY(t)||!rY(r)}function rQ(e){return rJ(e)||r0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function r0(e){var t,r;return(t=e.x)&&\"0%\"!==t||(r=e.y)&&\"0%\"!==r}function r1(e,t,r,n,o){return void 0!==o&&(e=n+o*(e-n)),n+r*(e-n)+t}function r2(e,t=0,r=1,n,o){e.min=r1(e.min,t,r,n,o),e.max=r1(e.max,t,r,n,o)}function r3(e,{x:t,y:r}){r2(e.x,t.translate,t.scale,t.originPoint),r2(e.y,r.translate,r.scale,r.originPoint)}function r5(e,t){e.min=e.min+t,e.max=e.max+t}function r4(e,t,r,n,o=.5){let i=(0,t6.t)(e.min,e.max,o);r2(e,t,r,i,n)}function r8(e,t){r4(e.x,t.x,t.scaleX,t.scale,t.originX),r4(e.y,t.y,t.scaleY,t.scale,t.originY)}function r6(e,t){return rX(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let r9=({current:e})=>e?e.ownerDocument.defaultView:null,r7=new WeakMap;class ne{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rG(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new rT(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eR(e,\"page\").point)},onStart:(e,t)=>{var r;let{drag:n,dragPropagation:o,onDragStart:i}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eD(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rZ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(z.aQ.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=rL(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&ex.Wi.postRender(()=>i(e,t)),null===(r=this.removeWillChange)||void 0===r||r.call(this),this.removeWillChange=rv(this.visualElement,\"transform\");let{animationState:a}=this.visualElement;a&&a.setActive(\"whileDrag\",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r=\"y\":Math.abs(e.x)>t&&(r=\"x\"),r}(a),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis(\"x\",t.point,a),this.updateAxis(\"y\",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>rZ(e=>{var t;return\"paused\"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:r9(this.visualElement)})}stop(e,t){var r;null===(r=this.removeWillChange)||void 0===r||r.call(this);let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=t;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&ex.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive(\"whileDrag\",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nt(e,n,this.currentDirection))return;let o=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,t6.t)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,t6.t)(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&m(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:o}){return{x:rB(e.x,r,o),y:rB(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rU(e,\"left\",\"right\"),y:rU(e,\"top\",\"bottom\")}}(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rZ(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!m(t))return!1;let n=t.current;(0,tt.k)(null!==n,\"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=function(e,t,r){let n=r6(e,r),{scroll:o}=t;return o&&(r5(n.x,o.offset.x),r5(n.y,o.offset.y)),n}(n,o.root,this.visualElement.getTransformPagePoint()),a={x:rW((e=o.layout.layoutBox).x,i.x),y:rW(e.y,i.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rX(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rZ(a=>{if(!nt(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});let u={type:\"inertia\",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rh(e,r,0,t,this.visualElement,!1,rv(this.visualElement,e)))}stopAnimation(){rZ(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rZ(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rZ(t=>{let{drag:r}=this.getProps();if(!nt(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-(0,t6.t)(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!m(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rZ(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rL(e),o=rL(t);return o>n?r=(0,t9.Y)(t.min,t.max-n,e.min):n>o&&(r=(0,t9.Y)(e.min,e.max-o,t.min)),(0,tF.u)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},\"\"):\"none\",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rZ(t=>{if(!nt(t,e,null))return;let r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set((0,t6.t)(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;r7.set(this.visualElement,this);let e=eC(this.visualElement.current,\"pointerdown\",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();m(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener(\"measure\",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ex.Wi.read(t);let o=eE(window,\"resize\",()=>this.scalePositionWithinConstraints()),i=r.addEventListener(\"didUpdate\",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rZ(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),n(),i&&i()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function nt(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nr extends eL{constructor(e){super(e),this.removeGroupControls=ez.Z,this.removeListeners=ez.Z,this.controls=new ne(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ez.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let nn=e=>(t,r)=>{e&&ex.Wi.postRender(()=>e(t,r))};class no extends eL{constructor(){super(...arguments),this.removePointerDownListener=ez.Z}onPointerDown(e){this.session=new rT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nn(e),onStart:nn(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ex.Wi.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=eC(this.node.current,\"pointerdown\",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function na(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ns={correct:(e,t)=>{if(!t.target)return e;if(\"string\"==typeof e){if(!z.px.test(e))return e;e=parseFloat(e)}let r=na(e,t.target.x),n=na(e,t.target.y);return`${r}% ${n}%`}};class nl extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;Object.assign(D,nc),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener(\"animationComplete\",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent===o||(o?i.promote():i.relegate()||ex.Wi.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),p.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nu(e){let[t,r]=function(){let e=(0,i.useContext)(l.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=(0,i.useId)();(0,i.useEffect)(()=>n(o),[]);let a=(0,i.useCallback)(()=>r&&r(o),[o,r]);return!t&&r?[!1,a]:[!0]}(),n=(0,i.useContext)(O.p);return(0,o.jsx)(nl,{...e,layoutGroup:n,switchLayoutGroup:(0,i.useContext)(y),isPresent:t,safeToRemove:r})}let nc={borderRadius:{...ns,applyTo:[\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderBottomLeftRadius\",\"borderBottomRightRadius\"]},borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomLeftRadius:ns,borderBottomRightRadius:ns,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tw.P.parse(e);if(n.length>5)return e;let o=tw.P.createTransformer(e),i=\"number\"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+i]/=a,n[1+i]/=s;let l=(0,t6.t)(a,s,.5);return\"number\"==typeof n[2+i]&&(n[2+i]/=l),\"number\"==typeof n[3+i]&&(n[3+i]/=l),o(n)}}};var nd=r(72428);let nf=[\"TopLeft\",\"TopRight\",\"BottomLeft\",\"BottomRight\"],np=nf.length,nh=e=>\"string\"==typeof e?parseFloat(e):e,nm=e=>\"number\"==typeof e||z.px.test(e);function ny(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ng=nb(0,.5,tQ),nv=nb(.5,.95,ez.Z);function nb(e,t,r){return n=>n<e?0:n>t?1:r((0,t9.Y)(e,t,n))}function nw(e,t){e.min=t.min,e.max=t.max}function nx(e,t){nw(e.x,t.x),nw(e.y,t.y)}function nS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nP(e,t,r,n,o){return e-=t,e=n+1/r*(e-n),void 0!==o&&(e=n+1/o*(e-n)),e}function nE(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){if(z.aQ.test(t)&&(t=parseFloat(t),t=(0,t6.t)(a.min,a.max,t/100)-a.min),\"number\"!=typeof t)return;let s=(0,t6.t)(i.min,i.max,n);e===i&&(s-=t),e.min=nP(e.min,t,r,s,o),e.max=nP(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}let nA=[\"x\",\"scaleX\",\"originX\"],nR=[\"y\",\"scaleY\",\"originY\"];function nj(e,t,r,n){nE(e.x,t,nA,r?r.x:void 0,n?n.x:void 0),nE(e.y,t,nR,r?r.y:void 0,n?n.y:void 0)}function nC(e){return 0===e.translate&&1===e.scale}function nO(e){return nC(e.x)&&nC(e.y)}function nT(e,t){return e.min===t.min&&e.max===t.max}function nM(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nk(e,t){return nM(e.x,t.x)&&nM(e.y,t.y)}function nD(e){return rL(e.x)/rL(e.y)}function nN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nL{constructor(){this.members=[]}add(e){(0,ev.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,ev.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nI=(e,t)=>e.depth-t.depth;class nF{constructor(){this.children=[],this.isDirty=!1}add(e){(0,ev.y4)(this.children,e),this.isDirty=!0}remove(e){(0,ev.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nI),this.isDirty=!1,this.children.forEach(e)}}let n_={type:\"projectionFrame\",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nV=\"undefined\"!=typeof window&&void 0!==window.MotionDebug,nz=[\"\",\"X\",\"Y\",\"Z\"],nB={visibility:\"hidden\"},nW=0;function nU(e,t,r,n){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function n$({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nV&&(n_.totalNodes=n_.resolvedTargetDeltas=n_.recalculatedProjection=0),this.nodes.forEach(nq),this.nodes.forEach(n0),this.nodes.forEach(n1),this.nodes.forEach(nG),nV&&window.MotionDebug.record(n_)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nF)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nd.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&\"svg\"!==t.tagName,this.instance=t;let{layoutId:n,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(o||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=e7.X.now(),n=({timestamp:t})=>{let o=t-r;o>=250&&((0,ex.Pn)(n),e(o-250))};return ex.Wi.read(n,!0),()=>(0,ex.Pn)(n)}(n,0),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEach(nQ))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||o)&&this.addEventListener(\"didUpdate\",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||n6,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!nk(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...e5(o,\"layout\"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||nQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,ex.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n2),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;let{visualElement:r}=t.options;return!!r&&(!!ry(r)||!!t.parent&&!t.parent.hasCheckedOptimisedAppear&&e(t.parent))}(this)&&window.HandoffCancelAllAnimations(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(\"snapshot\"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,\"\"):void 0,this.updateSnapshot(),e&&this.notifyListeners(\"willUpdate\")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nX);return}this.isUpdating||this.nodes.forEach(nY),this.isUpdating=!1,this.nodes.forEach(nJ),this.nodes.forEach(nH),this.nodes.forEach(nK),this.clearAllSnapshots();let e=e7.X.now();ex.frameData.delta=(0,tF.u)(0,1e3/60,e-ex.frameData.timestamp),ex.frameData.timestamp=e,ex.frameData.isProcessing=!0,ex.S6.update.process(ex.frameData),ex.S6.preRender.process(ex.frameData),ex.S6.render.process(ex.frameData),ex.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nZ),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ex.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ex.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rG(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(\"measure\",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(\"LayoutMeasure\",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=\"measure\"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nO(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,\"\"):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||rQ(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),oe((t=n).x),oe(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rG();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(or))){let{scroll:e}=this.root;e&&(r5(r.x,e.offset.x),r5(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rG();if(nx(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&nx(r,e),r5(r.x,o.offset.x),r5(r.y,o.offset.y))}return r}applyTransform(e,t=!1){let r=rG();nx(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&r8(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),rQ(n.latestValues)&&r8(r,n.latestValues)}return rQ(this.latestValues)&&r8(r,this.latestValues),r}removeTransform(e){let t=rG();nx(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rQ(r.latestValues))continue;rJ(r.latestValues)&&r.updateSnapshot();let n=rG();nx(n,r.measurePageBox()),nj(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return rQ(this.latestValues)&&nj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ex.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,o;let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==i;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=ex.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rG(),this.relativeTargetOrigin=rG(),rz(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rG(),this.targetWithTransforms=rG()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,o=this.relativeParent.target,r_(r.x,n.x,o.x),r_(r.y,n.y,o.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nx(this.target,this.layout.layoutBox),r3(this.target,this.targetDelta)):nx(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rG(),this.relativeTargetOrigin=rG(),rz(this.relativeTargetOrigin,this.target,e.target),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nV&&n_.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rJ(this.parent.latestValues)||r0(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ex.frameData.timestamp&&(n=!1),n)return;let{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(o||i))return;nx(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let o,i;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){i=(o=r[s]).projectionDelta;let{visualElement:a}=o.options;(!a||!a.props.style||\"contents\"!==a.props.style.display)&&(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&r8(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,r3(e,i)),n&&rQ(o.latestValues)&&r8(e,o.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rG());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nS(this.prevProjectionDelta.x,this.projectionDelta.x),nS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rF(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&nN(this.projectionDelta.x,this.prevProjectionDelta.x)&&nN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(\"projectionUpdate\",l)),nV&&n_.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rK(),this.projectionDelta=rK(),this.projectionDeltaWithTransform=rK()}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,o=n?n.latestValues:{},i={...this.latestValues},a=rK();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=rG(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(n8));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n5(a.x,e.x,n),n5(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,p,h;rz(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,n4(p.x,h.x,s.x,n),n4(p.y,h.y,s.y,n),r&&(u=this.relativeTarget,f=r,nT(u.x,f.x)&&nT(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=rG()),nx(r,this.relativeTarget)}l&&(this.animationValues=i,function(e,t,r,n,o,i){o?(e.opacity=(0,t6.t)(0,void 0!==r.opacity?r.opacity:1,ng(n)),e.opacityExit=(0,t6.t)(void 0!==t.opacity?t.opacity:1,0,nv(n))):i&&(e.opacity=(0,t6.t)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let o=0;o<np;o++){let i=`border${nf[o]}Radius`,a=ny(t,i),s=ny(r,i);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||nm(a)===nm(s)?(e[i]=Math.max((0,t6.t)(nh(a),nh(s),n),0),(z.aQ.test(s)||z.aQ.test(a))&&(e[i]+=\"%\")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=(0,t6.t)(t.rotate||0,r.rotate||0,n))}(i,o,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(\"animationStart\"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,ex.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ex.Wi.update(()=>{ni.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=F(0)?0:(0,rm.BX)(0);return n.start(rh(\"\",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(\"animationComplete\")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ot(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||rG();let t=rL(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rL(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nx(t,r),r8(t,o),rF(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nL),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&nU(\"z\",e,n,this.animationValues);for(let t=0;t<nz.length;t++)nU(`rotate${nz[t]}`,e,n,this.animationValues),nU(`skew${nz[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nB;let n={visibility:\"\"},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity=\"\",n.pointerEvents=em(null==e?void 0:e.pointerEvents)||\"\",n.transform=o?o(this.latestValues,\"\"):\"none\",n;let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=em(null==e?void 0:e.pointerEvents)||\"\"),this.hasProjected&&!rQ(this.latestValues)&&(t.transform=o?o({},\"\"):\"none\",this.hasProjected=!1),t}let a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n=\"\",o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||\"none\"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(n.transform=o(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=i===this?void 0!==a.opacity?a.opacity:\"\":void 0!==a.opacityExit?a.opacityExit:0,D){if(void 0===a[e])continue;let{correct:t,applyTo:r}=D[e],o=\"none\"===n.transform?a[e]:t(a[e],i);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=o}else n[e]=o}return this.options.layoutId&&(n.pointerEvents=i===this?em(null==e?void 0:e.pointerEvents)||\"\":\"none\"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(nX),this.root.sharedNodes.clear()}}}function nH(e){e.updateLayout()}function nK(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners(\"didUpdate\")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;\"size\"===o?rZ(e=>{let n=i?r.measuredBox[e]:r.layoutBox[e],o=rL(n);n.min=t[e].min,n.max=n.min+o}):ot(o,r.layoutBox,t)&&rZ(n=>{let o=i?r.measuredBox[n]:r.layoutBox[n],a=rL(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=rK();rF(a,t,r.layoutBox);let s=rK();i?rF(s,e.applyTransform(n,!0),r.measuredBox):rF(s,t,r.layoutBox);let l=!nO(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:o,layout:i}=n;if(o&&i){let a=rG();rz(a,r.layoutBox,o.layoutBox);let s=rG();rz(s,t,i.layoutBox),nk(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners(\"didUpdate\",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nq(e){nV&&n_.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nZ(e){e.clearSnapshot()}function nX(e){e.clearMeasurements()}function nY(e){e.isLayoutDirty=!1}function nJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(\"BeforeLayoutMeasure\"),e.resetTransform()}function nQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n0(e){e.resolveTargetDelta()}function n1(e){e.calcProjection()}function n2(e){e.resetSkewAndRotation()}function n3(e){e.removeLeadSnapshot()}function n5(e,t,r){e.translate=(0,t6.t)(t.translate,0,r),e.scale=(0,t6.t)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n4(e,t,r,n){e.min=(0,t6.t)(t.min,r.min,n),e.max=(0,t6.t)(t.max,r.max,n)}function n8(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n6={duration:.45,ease:[.4,0,.1,1]},n9=e=>\"undefined\"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n7=n9(\"applewebkit/\")&&!n9(\"chrome/\")?Math.round:ez.Z;function oe(e){e.min=n7(e.min),e.max=n7(e.max)}function ot(e,t,r){return\"position\"===e||\"preserve-aspect\"===e&&!(.2>=Math.abs(nD(t)-nD(r)))}function or(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let on=n$({attachResizeListener:(e,t)=>eE(e,\"resize\",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oo={current:void 0},oi=n$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oo.current){let e=new on({});e.mount(window),e.setOptions({layoutScroll:!0}),oo.current=e}return oo.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:\"none\"},checkIsScrollRoot:e=>\"fixed\"===window.getComputedStyle(e).position}),oa={current:null},os={current:!1},ol=new WeakMap,ou=[...tf,tR.$,tw.P],oc=e=>ou.find(td(e)),od=[\"AnimationStart\",\"AnimationComplete\",\"Update\",\"BeforeLayoutMeasure\",\"LayoutMeasure\",\"LayoutAnimationStart\",\"LayoutAnimationComplete\"],of=S.length;class op{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.applyWillChange=!1,this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(\"Update\",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,ex.Wi.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=P(t),this.isVariantNode=E(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&F(t)&&t.set(s[e],!1)}}mount(e){this.current=e,ol.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),os.current||function(){if(os.current=!0,C.j){if(window.matchMedia){let e=window.matchMedia(\"(prefers-reduced-motion)\"),t=()=>oa.current=e.matches;e.addListener(t),t()}else oa.current=!1}}(),this.shouldReduceMotion=\"never\"!==this.reducedMotionConfig&&(\"always\"===this.reducedMotionConfig||oa.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in ol.delete(this.current),this.projection&&this.projection.unmount(),(0,ex.Pn)(this.notifyUpdate),(0,ex.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r=L.has(e),n=t.on(\"change\",t=>{this.latestValues[e]=t,this.props.onUpdate&&ex.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on(\"renderRequest\",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e=\"animation\";for(e in j){let t=j[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rG()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<od.length;t++){let r=od[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e[\"on\"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let o=t[n],i=r[n];if(F(o))e.addValue(n,o);else if(F(i))e.addValue(n,(0,rm.BX)(o,{owner:e}));else if(i!==o){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(n);e.addValue(n,(0,rm.BX)(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<of;e++){let r=S[e],n=this.props[r];(b(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,rm.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&(\"string\"==typeof n&&(tr(n)||te(n))?n=parseFloat(n):!oc(n)&&tw.P.test(t)&&(n=tO(e,t)),this.setBaseTarget(e,F(n)?n.get():n)),F(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if(\"string\"==typeof n||\"object\"==typeof n){let o=ec(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||F(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new nd.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class oh extends op{constructor(){super(...arguments),this.KeyframeResolver=tM}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class om extends oh{constructor(){super(...arguments),this.type=\"html\",this.applyWillChange=!0,this.renderInstance=eo}readValueFromInstance(e,t){if(L.has(t)){let e=tC(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,H.f)(t)?r.getPropertyValue(t):r[t])||0;return\"string\"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return r6(e,t)}build(e,t,r){K(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return es(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;F(e)&&(this.childSubscription=e.on(\"change\",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class oy extends oh{constructor(){super(...arguments),this.type=\"svg\",this.isSVGTag=!1,this.measureInstanceViewportBox=rG}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(L.has(t)){let e=tC(t);return e&&e.default||0}return t=ei.has(t)?t:d(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return el(e,t,r)}build(e,t,r){et(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){ea(e,t,r,n)}mount(e){this.isSVGTag=en(e.tagName),super.mount(e)}}let og=(e,t)=>k(e)?new oy(t):new om(t,{allowProjection:e!==i.Fragment}),ov={animation:{Feature:rR},exit:{Feature:rC},inView:{Feature:eG},tap:{Feature:eW},focus:{Feature:e_},hover:{Feature:eF},pan:{Feature:no},drag:{Feature:nr,ProjectionNode:oi,MeasureLayout:nu},layout:{ProjectionNode:oi,MeasureLayout:nu}},ob=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:d}){e&&function(e){for(let t in e)j[t]={...j[t],...e[t]}}(e);let h=(0,i.forwardRef)(function(e,h){var w;let x;let S={...(0,i.useContext)(a._),...e,layoutId:function({layoutId:e}){let t=(0,i.useContext)(O.p).id;return t&&void 0!==e?t+\"-\"+e:e}(e)},{isStatic:E}=S,R=function(e){let{initial:t,animate:r}=function(e,t){if(P(e)){let{initial:t,animate:r}=e;return{initial:!1===t||b(t)?t:void 0,animate:b(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:t,animate:r}),[A(t),A(r)])}(e),T=n(e,E);if(!E&&C.j){(0,i.useContext)(c).strict;let e=function(e){let{drag:t,layout:r}=j;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(S);x=e.MeasureLayout,R.visualElement=function(e,t,r,n,o){let{visualElement:d}=(0,i.useContext)(s),h=(0,i.useContext)(c),b=(0,i.useContext)(l.O),w=(0,i.useContext)(a._).reducedMotion,x=(0,i.useRef)();n=n||h.renderer,!x.current&&n&&(x.current=n(e,{visualState:t,parent:d,props:r,presenceContext:b,blockInitialAnimation:!!b&&!1===b.initial,reducedMotionConfig:w}));let S=x.current,P=(0,i.useContext)(y);S&&!S.projection&&o&&(\"html\"===S.type||\"svg\"===S.type)&&function(e,t,r,n){let{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t[\"data-framer-portal-id\"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&m(s),visualElement:e,animationType:\"string\"==typeof i?i:\"both\",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(x.current,r,o,P),(0,i.useInsertionEffect)(()=>{S&&S.update(r,b)});let E=(0,i.useRef)(!!(r[f]&&!window.HandoffComplete));return(0,u.L)(()=>{S&&(S.updateFeatures(),p.render(S.render),E.current&&S.animationState&&S.animationState.animateChanges())}),(0,i.useEffect)(()=>{S&&(!E.current&&S.animationState&&S.animationState.animateChanges(),E.current&&(E.current=!1,g||(g=!0,queueMicrotask(v))))}),S}(d,T,S,t,e.ProjectionNode)}return(0,o.jsxs)(s.Provider,{value:R,children:[x&&R.visualElement?(0,o.jsx)(x,{visualElement:R.visualElement,...S}):null,r(d,e,(w=R.visualElement,(0,i.useCallback)(e=>{e&&T.mount&&T.mount(e),w&&(e?w.mount(e):w.unmount()),h&&(\"function\"==typeof h?h(e):m(h)&&(h.current=e))},[w])),T,E,R.visualElement)]})});return h[T]=d,h}(e(t,r))}if(\"undefined\"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){return{...k(e)?eS:eP,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:o},a)=>{let s=(k(t)?function(e,t,r,n){let o=(0,i.useMemo)(()=>{let r=er();return et(r,t,en(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};G(t,e.style,e),o.style={...t,...o.style}}return o}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return G(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,i.useMemo)(()=>{let r=q();return K(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout=\"none\",n.touchAction=!0===e.drag?\"none\":`pan-${\"x\"===e.drag?\"y\":\"x\"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,o,a,t),l=function(e,t,r){let n={};for(let o in e)(\"values\"!==o||\"object\"!=typeof e.values)&&(Y(o)||!0===r&&X(o)||!t&&!X(o)||e.draggable&&o.startsWith(\"onDrag\"))&&(n[o]=e[o]);return n}(r,\"string\"==typeof t,e),u=t!==i.Fragment?{...l,...s,ref:n}:{},{children:c}=r,d=(0,i.useMemo)(()=>F(c)?c.get():c,[c]);return(0,i.createElement)(t,{...u,children:d})}}(t),createVisualElement:n,Component:e}})(e,t,ov,og))},61534:function(e,t,r){\"use strict\";r.d(t,{f:function(){return o},t:function(){return a}});let n=e=>t=>\"string\"==typeof t&&t.startsWith(e),o=n(\"--\"),i=n(\"var(--\"),a=e=>!!i(e)&&s.test(e.split(\"/*\")[0].trim()),s=/var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu},565:function(e,t,r){\"use strict\";r.d(t,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},28746:function(e,t,r){\"use strict\";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function o(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{cl:function(){return o},y4:function(){return n}})},51506:function(e,t,r){\"use strict\";r.d(t,{u:function(){return n}});let n=(e,t,r)=>r>t?t:r<e?e:r},19047:function(e,t,r){\"use strict\";r.d(t,{K:function(){return o},k:function(){return i}});var n=r(69276);let o=n.Z,i=n.Z},42548:function(e,t,r){\"use strict\";r.d(t,{s:function(){return u}});var n=r(19047),o=r(51506),i=r(89654),a=r(33217),s=r(69276),l=r(5389);function u(e,t,{clamp:r=!0,ease:u,mixer:c}={}){let d=e.length;if((0,n.k)(d===t.length,\"Both input and output ranges must be the same length\"),1===d)return()=>t[0];if(2===d&&e[0]===e[1])return()=>t[1];e[0]>e[d-1]&&(e=[...e].reverse(),t=[...t].reverse());let f=function(e,t,r){let n=[],o=r||l.C,a=e.length-1;for(let r=0;r<a;r++){let a=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||s.Z:t;a=(0,i.z)(e,a)}n.push(a)}return n}(t,u,c),p=f.length,h=t=>{let r=0;if(p>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=(0,a.Y)(e[r],e[r+1],t);return f[r](n)};return r?t=>h((0,o.u)(e[0],e[d-1],t)):h}},77282:function(e,t,r){\"use strict\";r.d(t,{j:function(){return n}});let n=\"undefined\"!=typeof window},5389:function(e,t,r){\"use strict\";r.d(t,{C:function(){return A}});var n=r(75004),o=r(19047);function i(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var a=r(45778),s=r(91583),l=r(598);function u(e,t){return r=>r>0?t:e}let c=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},d=[a.$,s.m,l.J],f=e=>d.find(t=>t.test(e));function p(e){let t=f(e);if((0,o.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===l.J&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,a=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,l=2*r-n;o=i(l,n,e+1/3),a=i(l,n,e),s=i(l,n,e-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:n}}(r)),r}let h=(e,t)=>{let r=p(e),o=p(t);if(!r||!o)return u(e,t);let i={...r};return e=>(i.red=c(r.red,o.red,e),i.green=c(r.green,o.green,e),i.blue=c(r.blue,o.blue,e),i.alpha=(0,n.t)(r.alpha,o.alpha,e),s.m.transform(i))};var m=r(89654),y=r(50146),g=r(83646),v=r(61534);let b=new Set([\"none\",\"hidden\"]);function w(e,t){return r=>(0,n.t)(e,t,r)}function x(e){return\"number\"==typeof e?w:\"string\"==typeof e?(0,v.t)(e)?u:y.$.test(e)?h:E:Array.isArray(e)?S:\"object\"==typeof e?y.$.test(e)?h:P:u}function S(e,t){let r=[...e],n=r.length,o=e.map((e,r)=>x(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function P(e,t){let r={...e,...t},n={};for(let o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=x(e[o])(e[o],t[o]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let E=(e,t)=>{let r=g.P.createTransformer(t),n=(0,g.V)(e),i=(0,g.V)(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?b.has(e)&&!i.values.length||b.has(t)&&!n.values.length?b.has(e)?r=>r<=0?e:t:r=>r>=1?t:e:(0,m.z)(S(function(e,t){var r;let n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],s=e.indexes[a][o[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[i]=l,o[a]++}return n}(n,i),i.values),r):((0,o.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(e,t))};function A(e,t,r){return\"number\"==typeof e&&\"number\"==typeof t&&\"number\"==typeof r?(0,n.t)(e,t,r):x(e)(e,t)}},75004:function(e,t,r){\"use strict\";r.d(t,{t:function(){return n}});let n=(e,t,r)=>e+(t-e)*r},69276:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return n}});let n=e=>e},89654:function(e,t,r){\"use strict\";r.d(t,{z:function(){return o}});let n=(e,t)=>r=>t(e(r)),o=(...e)=>e.reduce(n)},33217:function(e,t,r){\"use strict\";r.d(t,{Y:function(){return n}});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},72428:function(e,t,r){\"use strict\";r.d(t,{L:function(){return o}});var n=r(28746);class o{constructor(){this.subscriptions=[]}add(e){return(0,n.y4)(this.subscriptions,e),()=>(0,n.cl)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){let n=this.subscriptions[o];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},30458:function(e,t,r){\"use strict\";r.d(t,{h:function(){return o}});var n=r(2265);function o(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},9033:function(e,t,r){\"use strict\";r.d(t,{L:function(){return o}});var n=r(2265);let o=r(77282).j?n.useLayoutEffect:n.useEffect},83476:function(e,t,r){\"use strict\";function n(e,t){return t?1e3/t*e:0}r.d(t,{R:function(){return n}})},20804:function(e,t,r){\"use strict\";r.d(t,{BX:function(){return c},Hg:function(){return u},S1:function(){return l}});var n=r(72428),o=r(83476),i=r(59993),a=r(86219);let s=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.version=\"11.3.22\",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=i.X.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=i.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=s(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(\"change\",e)}on(e,t){this.events[e]||(this.events[e]=new n.L);let r=this.events[e].add(t);return\"change\"===e?()=>{r(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=i.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new u(e,t)}},45778:function(e,t,r){\"use strict\";r.d(t,{$:function(){return o}});var n=r(91583);let o={test:(0,r(93338).i)(\"#\"),parse:function(e){let t=\"\",r=\"\",n=\"\",o=\"\";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:n.m.transform}},598:function(e,t,r){\"use strict\";r.d(t,{J:function(){return s}});var n=r(40783),o=r(75480),i=r(47292),a=r(93338);let s={test:(0,a.i)(\"hsl\",\"hue\"),parse:(0,a.d)(\"hue\",\"saturation\",\"lightness\"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>\"hsla(\"+Math.round(e)+\", \"+o.aQ.transform((0,i.Nw)(t))+\", \"+o.aQ.transform((0,i.Nw)(r))+\", \"+(0,i.Nw)(n.Fq.transform(a))+\")\"}},50146:function(e,t,r){\"use strict\";r.d(t,{$:function(){return s}});var n=r(47292),o=r(45778),i=r(598),a=r(91583);let s={test:e=>a.m.test(e)||o.$.test(e)||i.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):i.J.test(e)?i.J.parse(e):o.$.parse(e),transform:e=>(0,n.HD)(e)?e:e.hasOwnProperty(\"red\")?a.m.transform(e):i.J.transform(e)}},91583:function(e,t,r){\"use strict\";r.d(t,{m:function(){return u}});var n=r(51506),o=r(40783),i=r(47292),a=r(93338);let s=e=>(0,n.u)(0,255,e),l={...o.Rx,transform:e=>Math.round(s(e))},u={test:(0,a.i)(\"rgb\",\"red\"),parse:(0,a.d)(\"red\",\"green\",\"blue\"),transform:({red:e,green:t,blue:r,alpha:n=1})=>\"rgba(\"+l.transform(e)+\", \"+l.transform(t)+\", \"+l.transform(r)+\", \"+(0,i.Nw)(o.Fq.transform(n))+\")\"}},93338:function(e,t,r){\"use strict\";r.d(t,{d:function(){return i},i:function(){return o}});var n=r(47292);let o=(e,t)=>r=>!!((0,n.HD)(r)&&n.mj.test(r)&&r.startsWith(e)||t&&!(0,n.Rw)(r)&&Object.prototype.hasOwnProperty.call(r,t)),i=(e,t,r)=>o=>{if(!(0,n.HD)(o))return o;let[i,a,s,l]=o.match(n.KP);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},83646:function(e,t,r){\"use strict\";r.d(t,{P:function(){return f},V:function(){return l}});var n=r(50146),o=r(47292);let i=\"number\",a=\"color\",s=/var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/giu;function l(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},l=[],u=0,c=t.replace(s,e=>(n.$.test(e)?(o.color.push(u),l.push(a),r.push(n.$.parse(e))):e.startsWith(\"var(\")?(o.var.push(u),l.push(\"var\"),r.push(e)):(o.number.push(u),l.push(i),r.push(parseFloat(e))),++u,\"${}\")).split(\"${}\");return{values:r,split:c,indexes:o,types:l}}function u(e){return l(e).values}function c(e){let{split:t,types:r}=l(e),s=t.length;return e=>{let l=\"\";for(let u=0;u<s;u++)if(l+=t[u],void 0!==e[u]){let t=r[u];t===i?l+=(0,o.Nw)(e[u]):t===a?l+=n.$.transform(e[u]):l+=e[u]}return l}}let d=e=>\"number\"==typeof e?0:e,f={test:function(e){var t,r;return isNaN(e)&&(0,o.HD)(e)&&((null===(t=e.match(o.KP))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(o.dA))||void 0===r?void 0:r.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(e){let t=u(e);return c(e)(t.map(d))}}},40783:function(e,t,r){\"use strict\";r.d(t,{Fq:function(){return i},Rx:function(){return o},bA:function(){return a}});var n=r(51506);let o={test:e=>\"number\"==typeof e,parse:parseFloat,transform:e=>e},i={...o,transform:e=>(0,n.u)(0,1,e)},a={...o,default:1}},75480:function(e,t,r){\"use strict\";r.d(t,{$C:function(){return c},RW:function(){return i},aQ:function(){return a},px:function(){return s},vh:function(){return l},vw:function(){return u}});var n=r(47292);let o=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(\" \").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=o(\"deg\"),a=o(\"%\"),s=o(\"px\"),l=o(\"vh\"),u=o(\"vw\"),c={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},47292:function(e,t,r){\"use strict\";r.d(t,{HD:function(){return s},KP:function(){return o},Nw:function(){return n},Rw:function(){return l},dA:function(){return i},mj:function(){return a}});let n=e=>Math.round(1e5*e)/1e5,o=/-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu,i=/(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu,a=/^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;function s(e){return\"string\"==typeof e}function l(e){return null==e}},45282:function(e,t,r){\"use strict\";r.d(t,{c:function(){return s}});var n=r(2265),o=r(20804),i=r(29791),a=r(30458);function s(e){let t=(0,a.h)(()=>(0,o.BX)(e)),{isStatic:r}=(0,n.useContext)(i._);if(r){let[,r]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on(\"change\",r),[])}return t}},80847:function(e,t,r){\"use strict\";r.d(t,{H:function(){return f}});var n=r(42548);let o=e=>e&&\"object\"==typeof e&&e.mix,i=e=>o(e)?e.mix:void 0;var a=r(45282),s=r(9033),l=r(86219);function u(e,t){let r=(0,a.c)(t()),n=()=>r.set(t());return n(),(0,s.L)(()=>{let t=()=>l.Wi.preRender(n,!1,!0),r=e.map(e=>e.on(\"change\",t));return()=>{r.forEach(e=>e()),(0,l.Pn)(n)}}),r}var c=r(30458),d=r(20804);function f(e,t,r,o){if(\"function\"==typeof e)return function(e){d.S1.current=[],e();let t=u(d.S1.current,e);return d.S1.current=void 0,t}(e);let a=\"function\"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,o=e[0+r],a=e[1+r],s=e[2+r],l=e[3+r],u=(0,n.s)(a,s,{mixer:i(s[0]),...l});return t?u(o):u}(t,r,o);return Array.isArray(e)?p(e,a):p([e],([e])=>a(e))}function p(e,t){let r=(0,c.h)(()=>[]);return u(e,()=>{r.length=0;let n=e.length;for(let t=0;t<n;t++)r[t]=e[t].get();return t(r)})}},91810:function(e,t,r){\"use strict\";r.d(t,{w_:function(){return c}});var n=r(2265),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(o),a=[\"attr\",\"size\",\"title\"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if(\"object\"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:t+\"\"}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return t=>n.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:o,size:i,title:l}=e,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),d=i||t.size||\"1em\";return t.className&&(r=t.className),e.className&&(r=(r?r+\" \":\"\")+e.className),n.createElement(\"svg\",s({stroke:\"currentColor\",fill:\"currentColor\",strokeWidth:\"0\"},t.attr,o,c,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:\"http://www.w3.org/2000/svg\"}),l&&n.createElement(\"title\",null,l),e.children)};return void 0!==i?n.createElement(i.Consumer,null,e=>t(e)):t(o)}},96164:function(e,t,r){\"use strict\";r.d(t,{m6:function(){return I}});let n=/^\\[(.+)\\]$/;function o(e,t){let r=e;return t.split(\"-\").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}let i=/\\s+/;function a(){let e,t,r=0,n=\"\";for(;r<arguments.length;)(e=arguments[r++])&&(t=function e(t){let r;if(\"string\"==typeof t)return t;let n=\"\";for(let o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(n&&(n+=\" \"),n+=r);return n}(e))&&(n&&(n+=\" \"),n+=t);return n}function s(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\\[(?:([a-z-]+):)?(.+)\\]$/i,u=/^\\d+\\/\\d+$/,c=new Set([\"px\",\"full\",\"screen\"]),d=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,f=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,p=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/,h=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/;function y(e){return v(e)||c.has(e)||u.test(e)}function g(e){return M(e,\"length\",k)}function v(e){return!!e&&!Number.isNaN(Number(e))}function b(e){return M(e,\"number\",v)}function w(e){return!!e&&Number.isInteger(Number(e))}function x(e){return e.endsWith(\"%\")&&v(e.slice(0,-1))}function S(e){return l.test(e)}function P(e){return d.test(e)}let E=new Set([\"length\",\"size\",\"percentage\"]);function A(e){return M(e,E,D)}function R(e){return M(e,\"position\",D)}let j=new Set([\"image\",\"url\"]);function C(e){return M(e,j,L)}function O(e){return M(e,\"\",N)}function T(){return!0}function M(e,t,r){let n=l.exec(e);return!!n&&(n[1]?\"string\"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function k(e){return f.test(e)&&!p.test(e)}function D(){return!1}function N(e){return h.test(e)}function L(e){return m.test(e)}let I=function(e,...t){let r,s,l;let u=function(i){var a;return s=(r={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map;function o(o,i){r.set(o,i),++t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}}((a=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:function(e){let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length;function a(e){let r;let a=[],s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===o&&(n||e.slice(u,u+i)===t)){a.push(e.slice(l,u)),l=u+i;continue}if(\"/\"===c){r=u;continue}}\"[\"===c?s++:\"]\"===c&&s--}let u=0===a.length?e:e.substring(l),c=u.startsWith(\"!\"),d=c?u.substring(1):u;return{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}}return r?function(e){return r({className:e,parseClassName:a})}:a}(a),...function(e){let t=function(e){var t;let{theme:r,prefix:n}=e,i={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),n?t.map(([e,t])=>[e,t.map(e=>\"string\"==typeof e?n+e:\"object\"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[n+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,r,n,i){t.forEach(t=>{if(\"string\"==typeof t){(\"\"===t?r:o(r,t)).classGroupId=n;return}if(\"function\"==typeof t){if(t.isThemeGetter){e(t(i),r,n,i);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(([t,a])=>{e(a,o(r,t),n,i)})})})(t,i,e,r)}),i}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:function(e){let r=e.split(\"-\");return\"\"===r[0]&&1!==r.length&&r.shift(),function e(t,r){if(0===t.length)return r.classGroupId;let n=t[0],o=r.nextPart.get(n),i=o?e(t.slice(1),o):void 0;if(i)return i;if(0===r.validators.length)return;let a=t.join(\"-\");return r.validators.find(({validator:e})=>e(a))?.classGroupId}(r,t)||function(e){if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(\":\"));if(r)return\"arbitrary..\"+r}}(e)},getConflictingClassGroupIds:function(e,t){let n=r[e]||[];return t&&i[e]?[...n,...i[e]]:n}}}(a)}).cache.get,l=r.cache.set,u=c,c(i)};function c(e){let t=s(e);if(t)return t;let n=function(e,t){let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(i).map(e=>{let{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=r(e),s=!!a,l=n(s?i.substring(0,a):i);if(!l){if(!s||!(l=n(i)))return{isTailwindClass:!1,originalClassName:e};s=!1}let u=(function(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{\"[\"===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t})(t).join(\":\");return{isTailwindClass:!0,modifierId:o?u+\"!\":u,classGroupId:l,originalClassName:e,hasPostfixModifier:s}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,i=t+r;return!a.has(i)&&(a.add(i),o(r,n).forEach(e=>a.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(\" \")}(e,r);return l(e,n),n}return function(){return u(a.apply(null,arguments))}}(function(){let e=s(\"colors\"),t=s(\"spacing\"),r=s(\"blur\"),n=s(\"brightness\"),o=s(\"borderColor\"),i=s(\"borderRadius\"),a=s(\"borderSpacing\"),l=s(\"borderWidth\"),u=s(\"contrast\"),c=s(\"grayscale\"),d=s(\"hueRotate\"),f=s(\"invert\"),p=s(\"gap\"),h=s(\"gradientColorStops\"),m=s(\"gradientColorStopPositions\"),E=s(\"inset\"),j=s(\"margin\"),M=s(\"opacity\"),k=s(\"padding\"),D=s(\"saturate\"),N=s(\"scale\"),L=s(\"sepia\"),I=s(\"skew\"),F=s(\"space\"),_=s(\"translate\"),V=()=>[\"auto\",\"contain\",\"none\"],z=()=>[\"auto\",\"hidden\",\"clip\",\"visible\",\"scroll\"],B=()=>[\"auto\",S,t],W=()=>[S,t],U=()=>[\"\",y,g],$=()=>[\"auto\",v,S],H=()=>[\"bottom\",\"center\",\"left\",\"left-bottom\",\"left-top\",\"right\",\"right-bottom\",\"right-top\",\"top\"],K=()=>[\"solid\",\"dashed\",\"dotted\",\"double\",\"none\"],q=()=>[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"],G=()=>[\"start\",\"end\",\"center\",\"between\",\"around\",\"evenly\",\"stretch\"],Z=()=>[\"\",\"0\",S],X=()=>[\"auto\",\"avoid\",\"all\",\"avoid-page\",\"page\",\"left\",\"right\",\"column\"],Y=()=>[v,b],J=()=>[v,S];return{cacheSize:500,separator:\":\",theme:{colors:[T],spacing:[y,g],blur:[\"none\",\"\",P,S],brightness:Y(),borderColor:[e],borderRadius:[\"none\",\"\",\"full\",P,S],borderSpacing:W(),borderWidth:U(),contrast:Y(),grayscale:Z(),hueRotate:J(),invert:Z(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[x,g],inset:B(),margin:B(),opacity:Y(),padding:W(),saturate:Y(),scale:Y(),sepia:Z(),skew:J(),space:W(),translate:W()},classGroups:{aspect:[{aspect:[\"auto\",\"square\",\"video\",S]}],container:[\"container\"],columns:[{columns:[P]}],\"break-after\":[{\"break-after\":X()}],\"break-before\":[{\"break-before\":X()}],\"break-inside\":[{\"break-inside\":[\"auto\",\"avoid\",\"avoid-page\",\"avoid-column\"]}],\"box-decoration\":[{\"box-decoration\":[\"slice\",\"clone\"]}],box:[{box:[\"border\",\"content\"]}],display:[\"block\",\"inline-block\",\"inline\",\"flex\",\"inline-flex\",\"table\",\"inline-table\",\"table-caption\",\"table-cell\",\"table-column\",\"table-column-group\",\"table-footer-group\",\"table-header-group\",\"table-row-group\",\"table-row\",\"flow-root\",\"grid\",\"inline-grid\",\"contents\",\"list-item\",\"hidden\"],float:[{float:[\"right\",\"left\",\"none\",\"start\",\"end\"]}],clear:[{clear:[\"left\",\"right\",\"both\",\"none\",\"start\",\"end\"]}],isolation:[\"isolate\",\"isolation-auto\"],\"object-fit\":[{object:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"]}],\"object-position\":[{object:[...H(),S]}],overflow:[{overflow:z()}],\"overflow-x\":[{\"overflow-x\":z()}],\"overflow-y\":[{\"overflow-y\":z()}],overscroll:[{overscroll:V()}],\"overscroll-x\":[{\"overscroll-x\":V()}],\"overscroll-y\":[{\"overscroll-y\":V()}],position:[\"static\",\"fixed\",\"absolute\",\"relative\",\"sticky\"],inset:[{inset:[E]}],\"inset-x\":[{\"inset-x\":[E]}],\"inset-y\":[{\"inset-y\":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:[\"visible\",\"invisible\",\"collapse\"],z:[{z:[\"auto\",w,S]}],basis:[{basis:B()}],\"flex-direction\":[{flex:[\"row\",\"row-reverse\",\"col\",\"col-reverse\"]}],\"flex-wrap\":[{flex:[\"wrap\",\"wrap-reverse\",\"nowrap\"]}],flex:[{flex:[\"1\",\"auto\",\"initial\",\"none\",S]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:[\"first\",\"last\",\"none\",w,S]}],\"grid-cols\":[{\"grid-cols\":[T]}],\"col-start-end\":[{col:[\"auto\",{span:[\"full\",w,S]},S]}],\"col-start\":[{\"col-start\":$()}],\"col-end\":[{\"col-end\":$()}],\"grid-rows\":[{\"grid-rows\":[T]}],\"row-start-end\":[{row:[\"auto\",{span:[w,S]},S]}],\"row-start\":[{\"row-start\":$()}],\"row-end\":[{\"row-end\":$()}],\"grid-flow\":[{\"grid-flow\":[\"row\",\"col\",\"dense\",\"row-dense\",\"col-dense\"]}],\"auto-cols\":[{\"auto-cols\":[\"auto\",\"min\",\"max\",\"fr\",S]}],\"auto-rows\":[{\"auto-rows\":[\"auto\",\"min\",\"max\",\"fr\",S]}],gap:[{gap:[p]}],\"gap-x\":[{\"gap-x\":[p]}],\"gap-y\":[{\"gap-y\":[p]}],\"justify-content\":[{justify:[\"normal\",...G()]}],\"justify-items\":[{\"justify-items\":[\"start\",\"end\",\"center\",\"stretch\"]}],\"justify-self\":[{\"justify-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],\"align-content\":[{content:[\"normal\",...G(),\"baseline\"]}],\"align-items\":[{items:[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"align-self\":[{self:[\"auto\",\"start\",\"end\",\"center\",\"stretch\",\"baseline\"]}],\"place-content\":[{\"place-content\":[...G(),\"baseline\"]}],\"place-items\":[{\"place-items\":[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"place-self\":[{\"place-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],\"space-x\":[{\"space-x\":[F]}],\"space-x-reverse\":[\"space-x-reverse\"],\"space-y\":[{\"space-y\":[F]}],\"space-y-reverse\":[\"space-y-reverse\"],w:[{w:[\"auto\",\"min\",\"max\",\"fit\",\"svw\",\"lvw\",\"dvw\",S,t]}],\"min-w\":[{\"min-w\":[S,t,\"min\",\"max\",\"fit\"]}],\"max-w\":[{\"max-w\":[S,t,\"none\",\"full\",\"min\",\"max\",\"fit\",\"prose\",{screen:[P]},P]}],h:[{h:[S,t,\"auto\",\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"min-h\":[{\"min-h\":[S,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"max-h\":[{\"max-h\":[S,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],size:[{size:[S,t,\"auto\",\"min\",\"max\",\"fit\"]}],\"font-size\":[{text:[\"base\",P,g]}],\"font-smoothing\":[\"antialiased\",\"subpixel-antialiased\"],\"font-style\":[\"italic\",\"not-italic\"],\"font-weight\":[{font:[\"thin\",\"extralight\",\"light\",\"normal\",\"medium\",\"semibold\",\"bold\",\"extrabold\",\"black\",b]}],\"font-family\":[{font:[T]}],\"fvn-normal\":[\"normal-nums\"],\"fvn-ordinal\":[\"ordinal\"],\"fvn-slashed-zero\":[\"slashed-zero\"],\"fvn-figure\":[\"lining-nums\",\"oldstyle-nums\"],\"fvn-spacing\":[\"proportional-nums\",\"tabular-nums\"],\"fvn-fraction\":[\"diagonal-fractions\",\"stacked-fractons\"],tracking:[{tracking:[\"tighter\",\"tight\",\"normal\",\"wide\",\"wider\",\"widest\",S]}],\"line-clamp\":[{\"line-clamp\":[\"none\",v,b]}],leading:[{leading:[\"none\",\"tight\",\"snug\",\"normal\",\"relaxed\",\"loose\",y,S]}],\"list-image\":[{\"list-image\":[\"none\",S]}],\"list-style-type\":[{list:[\"none\",\"disc\",\"decimal\",S]}],\"list-style-position\":[{list:[\"inside\",\"outside\"]}],\"placeholder-color\":[{placeholder:[e]}],\"placeholder-opacity\":[{\"placeholder-opacity\":[M]}],\"text-alignment\":[{text:[\"left\",\"center\",\"right\",\"justify\",\"start\",\"end\"]}],\"text-color\":[{text:[e]}],\"text-opacity\":[{\"text-opacity\":[M]}],\"text-decoration\":[\"underline\",\"overline\",\"line-through\",\"no-underline\"],\"text-decoration-style\":[{decoration:[...K(),\"wavy\"]}],\"text-decoration-thickness\":[{decoration:[\"auto\",\"from-font\",y,g]}],\"underline-offset\":[{\"underline-offset\":[\"auto\",y,S]}],\"text-decoration-color\":[{decoration:[e]}],\"text-transform\":[\"uppercase\",\"lowercase\",\"capitalize\",\"normal-case\"],\"text-overflow\":[\"truncate\",\"text-ellipsis\",\"text-clip\"],\"text-wrap\":[{text:[\"wrap\",\"nowrap\",\"balance\",\"pretty\"]}],indent:[{indent:W()}],\"vertical-align\":[{align:[\"baseline\",\"top\",\"middle\",\"bottom\",\"text-top\",\"text-bottom\",\"sub\",\"super\",S]}],whitespace:[{whitespace:[\"normal\",\"nowrap\",\"pre\",\"pre-line\",\"pre-wrap\",\"break-spaces\"]}],break:[{break:[\"normal\",\"words\",\"all\",\"keep\"]}],hyphens:[{hyphens:[\"none\",\"manual\",\"auto\"]}],content:[{content:[\"none\",S]}],\"bg-attachment\":[{bg:[\"fixed\",\"local\",\"scroll\"]}],\"bg-clip\":[{\"bg-clip\":[\"border\",\"padding\",\"content\",\"text\"]}],\"bg-opacity\":[{\"bg-opacity\":[M]}],\"bg-origin\":[{\"bg-origin\":[\"border\",\"padding\",\"content\"]}],\"bg-position\":[{bg:[...H(),R]}],\"bg-repeat\":[{bg:[\"no-repeat\",{repeat:[\"\",\"x\",\"y\",\"round\",\"space\"]}]}],\"bg-size\":[{bg:[\"auto\",\"cover\",\"contain\",A]}],\"bg-image\":[{bg:[\"none\",{\"gradient-to\":[\"t\",\"tr\",\"r\",\"br\",\"b\",\"bl\",\"l\",\"tl\"]},C]}],\"bg-color\":[{bg:[e]}],\"gradient-from-pos\":[{from:[m]}],\"gradient-via-pos\":[{via:[m]}],\"gradient-to-pos\":[{to:[m]}],\"gradient-from\":[{from:[h]}],\"gradient-via\":[{via:[h]}],\"gradient-to\":[{to:[h]}],rounded:[{rounded:[i]}],\"rounded-s\":[{\"rounded-s\":[i]}],\"rounded-e\":[{\"rounded-e\":[i]}],\"rounded-t\":[{\"rounded-t\":[i]}],\"rounded-r\":[{\"rounded-r\":[i]}],\"rounded-b\":[{\"rounded-b\":[i]}],\"rounded-l\":[{\"rounded-l\":[i]}],\"rounded-ss\":[{\"rounded-ss\":[i]}],\"rounded-se\":[{\"rounded-se\":[i]}],\"rounded-ee\":[{\"rounded-ee\":[i]}],\"rounded-es\":[{\"rounded-es\":[i]}],\"rounded-tl\":[{\"rounded-tl\":[i]}],\"rounded-tr\":[{\"rounded-tr\":[i]}],\"rounded-br\":[{\"rounded-br\":[i]}],\"rounded-bl\":[{\"rounded-bl\":[i]}],\"border-w\":[{border:[l]}],\"border-w-x\":[{\"border-x\":[l]}],\"border-w-y\":[{\"border-y\":[l]}],\"border-w-s\":[{\"border-s\":[l]}],\"border-w-e\":[{\"border-e\":[l]}],\"border-w-t\":[{\"border-t\":[l]}],\"border-w-r\":[{\"border-r\":[l]}],\"border-w-b\":[{\"border-b\":[l]}],\"border-w-l\":[{\"border-l\":[l]}],\"border-opacity\":[{\"border-opacity\":[M]}],\"border-style\":[{border:[...K(),\"hidden\"]}],\"divide-x\":[{\"divide-x\":[l]}],\"divide-x-reverse\":[\"divide-x-reverse\"],\"divide-y\":[{\"divide-y\":[l]}],\"divide-y-reverse\":[\"divide-y-reverse\"],\"divide-opacity\":[{\"divide-opacity\":[M]}],\"divide-style\":[{divide:K()}],\"border-color\":[{border:[o]}],\"border-color-x\":[{\"border-x\":[o]}],\"border-color-y\":[{\"border-y\":[o]}],\"border-color-t\":[{\"border-t\":[o]}],\"border-color-r\":[{\"border-r\":[o]}],\"border-color-b\":[{\"border-b\":[o]}],\"border-color-l\":[{\"border-l\":[o]}],\"divide-color\":[{divide:[o]}],\"outline-style\":[{outline:[\"\",...K()]}],\"outline-offset\":[{\"outline-offset\":[y,S]}],\"outline-w\":[{outline:[y,g]}],\"outline-color\":[{outline:[e]}],\"ring-w\":[{ring:U()}],\"ring-w-inset\":[\"ring-inset\"],\"ring-color\":[{ring:[e]}],\"ring-opacity\":[{\"ring-opacity\":[M]}],\"ring-offset-w\":[{\"ring-offset\":[y,g]}],\"ring-offset-color\":[{\"ring-offset\":[e]}],shadow:[{shadow:[\"\",\"inner\",\"none\",P,O]}],\"shadow-color\":[{shadow:[T]}],opacity:[{opacity:[M]}],\"mix-blend\":[{\"mix-blend\":[...q(),\"plus-lighter\",\"plus-darker\"]}],\"bg-blend\":[{\"bg-blend\":q()}],filter:[{filter:[\"\",\"none\"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],\"drop-shadow\":[{\"drop-shadow\":[\"\",\"none\",P,S]}],grayscale:[{grayscale:[c]}],\"hue-rotate\":[{\"hue-rotate\":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[D]}],sepia:[{sepia:[L]}],\"backdrop-filter\":[{\"backdrop-filter\":[\"\",\"none\"]}],\"backdrop-blur\":[{\"backdrop-blur\":[r]}],\"backdrop-brightness\":[{\"backdrop-brightness\":[n]}],\"backdrop-contrast\":[{\"backdrop-contrast\":[u]}],\"backdrop-grayscale\":[{\"backdrop-grayscale\":[c]}],\"backdrop-hue-rotate\":[{\"backdrop-hue-rotate\":[d]}],\"backdrop-invert\":[{\"backdrop-invert\":[f]}],\"backdrop-opacity\":[{\"backdrop-opacity\":[M]}],\"backdrop-saturate\":[{\"backdrop-saturate\":[D]}],\"backdrop-sepia\":[{\"backdrop-sepia\":[L]}],\"border-collapse\":[{border:[\"collapse\",\"separate\"]}],\"border-spacing\":[{\"border-spacing\":[a]}],\"border-spacing-x\":[{\"border-spacing-x\":[a]}],\"border-spacing-y\":[{\"border-spacing-y\":[a]}],\"table-layout\":[{table:[\"auto\",\"fixed\"]}],caption:[{caption:[\"top\",\"bottom\"]}],transition:[{transition:[\"none\",\"all\",\"\",\"colors\",\"opacity\",\"shadow\",\"transform\",S]}],duration:[{duration:J()}],ease:[{ease:[\"linear\",\"in\",\"out\",\"in-out\",S]}],delay:[{delay:J()}],animate:[{animate:[\"none\",\"spin\",\"ping\",\"pulse\",\"bounce\",S]}],transform:[{transform:[\"\",\"gpu\",\"none\"]}],scale:[{scale:[N]}],\"scale-x\":[{\"scale-x\":[N]}],\"scale-y\":[{\"scale-y\":[N]}],rotate:[{rotate:[w,S]}],\"translate-x\":[{\"translate-x\":[_]}],\"translate-y\":[{\"translate-y\":[_]}],\"skew-x\":[{\"skew-x\":[I]}],\"skew-y\":[{\"skew-y\":[I]}],\"transform-origin\":[{origin:[\"center\",\"top\",\"top-right\",\"right\",\"bottom-right\",\"bottom\",\"bottom-left\",\"left\",\"top-left\",S]}],accent:[{accent:[\"auto\",e]}],appearance:[{appearance:[\"none\",\"auto\"]}],cursor:[{cursor:[\"auto\",\"default\",\"pointer\",\"wait\",\"text\",\"move\",\"help\",\"not-allowed\",\"none\",\"context-menu\",\"progress\",\"cell\",\"crosshair\",\"vertical-text\",\"alias\",\"copy\",\"no-drop\",\"grab\",\"grabbing\",\"all-scroll\",\"col-resize\",\"row-resize\",\"n-resize\",\"e-resize\",\"s-resize\",\"w-resize\",\"ne-resize\",\"nw-resize\",\"se-resize\",\"sw-resize\",\"ew-resize\",\"ns-resize\",\"nesw-resize\",\"nwse-resize\",\"zoom-in\",\"zoom-out\",S]}],\"caret-color\":[{caret:[e]}],\"pointer-events\":[{\"pointer-events\":[\"none\",\"auto\"]}],resize:[{resize:[\"none\",\"y\",\"x\",\"\"]}],\"scroll-behavior\":[{scroll:[\"auto\",\"smooth\"]}],\"scroll-m\":[{\"scroll-m\":W()}],\"scroll-mx\":[{\"scroll-mx\":W()}],\"scroll-my\":[{\"scroll-my\":W()}],\"scroll-ms\":[{\"scroll-ms\":W()}],\"scroll-me\":[{\"scroll-me\":W()}],\"scroll-mt\":[{\"scroll-mt\":W()}],\"scroll-mr\":[{\"scroll-mr\":W()}],\"scroll-mb\":[{\"scroll-mb\":W()}],\"scroll-ml\":[{\"scroll-ml\":W()}],\"scroll-p\":[{\"scroll-p\":W()}],\"scroll-px\":[{\"scroll-px\":W()}],\"scroll-py\":[{\"scroll-py\":W()}],\"scroll-ps\":[{\"scroll-ps\":W()}],\"scroll-pe\":[{\"scroll-pe\":W()}],\"scroll-pt\":[{\"scroll-pt\":W()}],\"scroll-pr\":[{\"scroll-pr\":W()}],\"scroll-pb\":[{\"scroll-pb\":W()}],\"scroll-pl\":[{\"scroll-pl\":W()}],\"snap-align\":[{snap:[\"start\",\"end\",\"center\",\"align-none\"]}],\"snap-stop\":[{snap:[\"normal\",\"always\"]}],\"snap-type\":[{snap:[\"none\",\"x\",\"y\",\"both\"]}],\"snap-strictness\":[{snap:[\"mandatory\",\"proximity\"]}],touch:[{touch:[\"auto\",\"none\",\"manipulation\"]}],\"touch-x\":[{\"touch-pan\":[\"x\",\"left\",\"right\"]}],\"touch-y\":[{\"touch-pan\":[\"y\",\"up\",\"down\"]}],\"touch-pz\":[\"touch-pinch-zoom\"],select:[{select:[\"none\",\"text\",\"all\",\"auto\"]}],\"will-change\":[{\"will-change\":[\"auto\",\"scroll\",\"contents\",\"transform\",S]}],fill:[{fill:[e,\"none\"]}],\"stroke-w\":[{stroke:[y,g,b]}],stroke:[{stroke:[e,\"none\"]}],sr:[\"sr-only\",\"not-sr-only\"],\"forced-color-adjust\":[{\"forced-color-adjust\":[\"auto\",\"none\"]}]},conflictingClassGroups:{overflow:[\"overflow-x\",\"overflow-y\"],overscroll:[\"overscroll-x\",\"overscroll-y\"],inset:[\"inset-x\",\"inset-y\",\"start\",\"end\",\"top\",\"right\",\"bottom\",\"left\"],\"inset-x\":[\"right\",\"left\"],\"inset-y\":[\"top\",\"bottom\"],flex:[\"basis\",\"grow\",\"shrink\"],gap:[\"gap-x\",\"gap-y\"],p:[\"px\",\"py\",\"ps\",\"pe\",\"pt\",\"pr\",\"pb\",\"pl\"],px:[\"pr\",\"pl\"],py:[\"pt\",\"pb\"],m:[\"mx\",\"my\",\"ms\",\"me\",\"mt\",\"mr\",\"mb\",\"ml\"],mx:[\"mr\",\"ml\"],my:[\"mt\",\"mb\"],size:[\"w\",\"h\"],\"font-size\":[\"leading\"],\"fvn-normal\":[\"fvn-ordinal\",\"fvn-slashed-zero\",\"fvn-figure\",\"fvn-spacing\",\"fvn-fraction\"],\"fvn-ordinal\":[\"fvn-normal\"],\"fvn-slashed-zero\":[\"fvn-normal\"],\"fvn-figure\":[\"fvn-normal\"],\"fvn-spacing\":[\"fvn-normal\"],\"fvn-fraction\":[\"fvn-normal\"],\"line-clamp\":[\"display\",\"overflow\"],rounded:[\"rounded-s\",\"rounded-e\",\"rounded-t\",\"rounded-r\",\"rounded-b\",\"rounded-l\",\"rounded-ss\",\"rounded-se\",\"rounded-ee\",\"rounded-es\",\"rounded-tl\",\"rounded-tr\",\"rounded-br\",\"rounded-bl\"],\"rounded-s\":[\"rounded-ss\",\"rounded-es\"],\"rounded-e\":[\"rounded-se\",\"rounded-ee\"],\"rounded-t\":[\"rounded-tl\",\"rounded-tr\"],\"rounded-r\":[\"rounded-tr\",\"rounded-br\"],\"rounded-b\":[\"rounded-br\",\"rounded-bl\"],\"rounded-l\":[\"rounded-tl\",\"rounded-bl\"],\"border-spacing\":[\"border-spacing-x\",\"border-spacing-y\"],\"border-w\":[\"border-w-s\",\"border-w-e\",\"border-w-t\",\"border-w-r\",\"border-w-b\",\"border-w-l\"],\"border-w-x\":[\"border-w-r\",\"border-w-l\"],\"border-w-y\":[\"border-w-t\",\"border-w-b\"],\"border-color\":[\"border-color-t\",\"border-color-r\",\"border-color-b\",\"border-color-l\"],\"border-color-x\":[\"border-color-r\",\"border-color-l\"],\"border-color-y\":[\"border-color-t\",\"border-color-b\"],\"scroll-m\":[\"scroll-mx\",\"scroll-my\",\"scroll-ms\",\"scroll-me\",\"scroll-mt\",\"scroll-mr\",\"scroll-mb\",\"scroll-ml\"],\"scroll-mx\":[\"scroll-mr\",\"scroll-ml\"],\"scroll-my\":[\"scroll-mt\",\"scroll-mb\"],\"scroll-p\":[\"scroll-px\",\"scroll-py\",\"scroll-ps\",\"scroll-pe\",\"scroll-pt\",\"scroll-pr\",\"scroll-pb\",\"scroll-pl\"],\"scroll-px\":[\"scroll-pr\",\"scroll-pl\"],\"scroll-py\":[\"scroll-pt\",\"scroll-pb\"],touch:[\"touch-x\",\"touch-y\",\"touch-pz\"],\"touch-x\":[\"touch\"],\"touch-y\":[\"touch\"],\"touch-pz\":[\"touch\"]},conflictingClassGroupModifiers:{\"font-size\":[\"leading\"]}}})}}]);"
  },
  {
    "path": "docs/_next/static/chunks/202-9b05294c1bfbdfa7.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[202],{5777:function(e,t,r){\"use strict\";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.CoinbaseWalletProvider=void 0;let s=i(r(37836)),o=r(39172),a=r(47224),l=r(34468),u=r(98997),c=r(96741),d=r(66320),h=r(42057),f=r(17475),p=r(9876);class g extends s.default{constructor(e){var t,r,{metadata:i}=e,s=e.preference,{keysUrl:a}=s,f=n(s,[\"keysUrl\"]);super(),this.accounts=[],this.handlers={handshake:async e=>{try{if(this.connected)return this.emit(\"connect\",{chainId:(0,u.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id))}),this.accounts;let e=await this.requestSignerSelection(),t=this.initSigner(e),r=await t.handshake();return this.signer=t,(0,c.storeSignerType)(e),this.emit(\"connect\",{chainId:(0,u.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id))}),r}catch(e){throw this.handleUnauthorizedError(e),e}},sign:async e=>{if(!this.connected||!this.signer)throw o.standardErrors.provider.unauthorized(\"Must call 'eth_requestAccounts' before other methods\");try{return await this.signer.request(e)}catch(e){throw this.handleUnauthorizedError(e),e}},fetch:e=>(0,d.fetchRPCRequest)(e,this.chain),state:e=>{let t=()=>{if(this.connected)return this.accounts;throw o.standardErrors.provider.unauthorized(\"Must call 'eth_requestAccounts' before other methods\")};switch(e.method){case\"eth_chainId\":return(0,u.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id));case\"net_version\":return this.chain.id;case\"eth_accounts\":return t();case\"eth_coinbase\":return t()[0];default:return this.handlers.unsupported(e)}},deprecated:({method:e})=>{throw o.standardErrors.rpc.methodNotSupported(`Method ${e} is deprecated.`)},unsupported:({method:e})=>{throw o.standardErrors.rpc.methodNotSupported(`Method ${e} is not supported.`)}},this.isCoinbaseWallet=!0,this.updateListener={onAccountsUpdate:({accounts:e,source:t})=>{(0,u.areAddressArraysEqual)(this.accounts,e)||(this.accounts=e,\"storage\"!==t&&this.emit(\"accountsChanged\",this.accounts))},onChainUpdate:({chain:e,source:t})=>{(e.id!==this.chain.id||e.rpcUrl!==this.chain.rpcUrl)&&(this.chain=e,\"storage\"!==t&&this.emit(\"chainChanged\",(0,u.hexStringFromIntNumber)((0,l.IntNumber)(e.id))))}},this.metadata=i,this.preference=f,this.communicator=new h.Communicator(a),this.chain={id:null!==(r=null===(t=i.appChainIds)||void 0===t?void 0:t[0])&&void 0!==r?r:1};let p=(0,c.loadSignerType)();this.signer=p?this.initSigner(p):null}get connected(){return this.accounts.length>0}async request(e){var t;try{let r=(0,d.checkErrorForInvalidRequestArgs)(e);if(r)throw r;let n=null!==(t=(0,f.determineMethodCategory)(e.method))&&void 0!==t?t:\"fetch\";return this.handlers[n](e)}catch(t){return Promise.reject((0,a.serializeError)(t,e.method))}}handleUnauthorizedError(e){e.code===o.standardErrorCodes.provider.unauthorized&&this.disconnect()}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: \"eth_requestAccounts\" }) instead.'),await this.request({method:\"eth_requestAccounts\"})}async disconnect(){this.accounts=[],this.chain={id:1},p.ScopedLocalStorage.clearAll(),this.emit(\"disconnect\",o.standardErrors.provider.disconnected(\"User initiated disconnection\"))}requestSignerSelection(){return(0,c.fetchSignerType)({communicator:this.communicator,preference:this.preference,metadata:this.metadata})}initSigner(e){return(0,c.createSigner)({signerType:e,metadata:this.metadata,communicator:this.communicator,updateListener:this.updateListener})}}t.CoinbaseWalletProvider=g},46111:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.CoinbaseWalletSDK=void 0;let n=r(5814),i=r(5777),s=r(9876),o=r(54750),a=r(98997),l=r(66320);class u{constructor(e){this.metadata={appName:e.appName||\"Dapp\",appLogoUrl:e.appLogoUrl||(0,a.getFavicon)(),appChainIds:e.appChainIds||[]},this.storeLatestVersion()}makeWeb3Provider(e={options:\"all\"}){var t;let r={metadata:this.metadata,preference:e};return null!==(t=(0,l.getCoinbaseInjectedProvider)(r))&&void 0!==t?t:new i.CoinbaseWalletProvider(r)}getCoinbaseWalletLogo(e,t=240){return(0,n.walletLogo)(e,t)}storeLatestVersion(){new s.ScopedLocalStorage(\"CBWSDK\").setItem(\"VERSION\",o.LIB_VERSION)}}t.CoinbaseWalletSDK=u},5814:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>{let r;switch(e){case\"standard\":default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case\"circle\":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case\"text\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\"textWithLogo\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case\"textLight\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},42057:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Communicator=void 0;let n=r(54750),i=r(64583),s=r(99285),o=r(39172);class a{constructor(e=s.CB_KEYS_URL){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{(await this.waitForPopupLoaded()).postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,r)=>{let n=r=>{if(r.origin!==this.url.origin)return;let i=r.data;e(i)&&(t(i),window.removeEventListener(\"message\",n),this.listeners.delete(n))};window.addEventListener(\"message\",n),this.listeners.set(n,{reject:r})}),this.disconnect=()=>{(0,i.closePopup)(this.popup),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(o.standardErrors.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?this.popup:(this.popup=(0,i.openPopup)(this.url),this.onMessage(({event:e})=>\"PopupUnload\"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>\"PopupLoaded\"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:n.LIB_VERSION}})}).then(()=>{if(!this.popup)throw o.standardErrors.rpc.internal();return this.popup})),this.url=new URL(e)}}t.Communicator=a},64583:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.closePopup=t.openPopup=void 0;let n=r(39172);t.openPopup=function(e){let t=(window.innerWidth-420)/2+window.screenX,r=(window.innerHeight-540)/2+window.screenY,i=window.open(e,\"Smart Wallet\",`width=420, height=540, left=${t}, top=${r}`);if(null==i||i.focus(),!i)throw n.standardErrors.rpc.internal(\"Pop up window failed to open\");return i},t.closePopup=function(e){e&&!e.closed&&e.close()}},99285:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.CBW_MOBILE_DEEPLINK_URL=t.WALLETLINK_URL=t.CB_KEYS_URL=void 0,t.CB_KEYS_URL=\"https://keys.coinbase.com/connect\",t.WALLETLINK_URL=\"https://www.walletlink.org\",t.CBW_MOBILE_DEEPLINK_URL=\"https://go.cb-w.com/walletlink\"},4406:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.errorValues=t.standardErrorCodes=void 0,t.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},t.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}},71839:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.standardErrors=void 0;let n=r(4406),i=r(86687);function s(e,t){let[r,n]=a(t);return new l(e,r||(0,i.getMessageFromCode)(e),n)}function o(e,t){let[r,n]=a(t);return new u(e,r||(0,i.getMessageFromCode)(e),n)}function a(e){if(e){if(\"string\"==typeof e)return[e];if(\"object\"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&\"string\"!=typeof t)throw Error(\"Must specify string message.\");return[t||void 0,r]}}return[]}t.standardErrors={rpc:{parse:e=>s(n.standardErrorCodes.rpc.parse,e),invalidRequest:e=>s(n.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>s(n.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>s(n.standardErrorCodes.rpc.methodNotFound,e),internal:e=>s(n.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||\"object\"!=typeof e||Array.isArray(e))throw Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('\"code\" must be an integer such that: -32099 <= code <= -32005');return s(t,e)},invalidInput:e=>s(n.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>s(n.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>s(n.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>s(n.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>s(n.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>s(n.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>o(n.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>o(n.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>o(n.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>o(n.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>o(n.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>o(n.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||\"object\"!=typeof e||Array.isArray(e))throw Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:r,data:n}=e;if(!r||\"string\"!=typeof r)throw Error('\"message\" must be a nonempty string');return new u(t,r,n)}}};class l extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('\"code\" must be an integer.');if(!t||\"string\"!=typeof t)throw Error('\"message\" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}}class u extends l{constructor(e,t,r){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('\"code\" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}},39172:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.standardErrors=t.standardErrorCodes=void 0;var n=r(4406);Object.defineProperty(t,\"standardErrorCodes\",{enumerable:!0,get:function(){return n.standardErrorCodes}});var i=r(71839);Object.defineProperty(t,\"standardErrors\",{enumerable:!0,get:function(){return i.standardErrors}})},47224:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.serializeError=void 0;let n=r(83705),i=r(54750),s=r(4406),o=r(86687);t.serializeError=function(e,t){let r=(0,o.serialize)(\"string\"==typeof e?{message:e,code:s.standardErrorCodes.rpc.internal}:(0,n.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e,{shouldIncludeStack:!0}),a=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");a.searchParams.set(\"version\",i.LIB_VERSION),a.searchParams.set(\"code\",r.code.toString());let l=function(e,t){let r=null==e?void 0:e.method;if(r)return r;if(void 0===t);else if(\"string\"==typeof t)return t;else if(!Array.isArray(t))return t.method;else if(t.length>0)return t[0].method}(r.data,t);return l&&a.searchParams.set(\"method\",l),a.searchParams.set(\"message\",r.message),Object.assign(Object.assign({},r),{docUrl:a.href})}},86687:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.serialize=t.getErrorCode=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=r(4406),i=\"Unspecified error message.\";function s(e,r=i){if(e&&Number.isInteger(e)){let r=e.toString();if(l(n.errorValues,r))return n.errorValues[r].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function o(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(n.errorValues[t]||e>=-32099&&e<=-32e3)}function a(e){return e&&\"object\"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return\"object\"==typeof e&&null!==e&&t in e&&\"string\"==typeof e[t]}t.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\",t.getMessageFromCode=s,t.isValidCode=o,t.getErrorCode=function(e){var t;return\"number\"==typeof e?e:\"object\"==typeof e&&null!==e&&(\"number\"==typeof e.code||\"number\"==typeof e.errorCode)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0},t.serialize=function(e,{shouldIncludeStack:t=!1}={}){let r={};return e&&\"object\"==typeof e&&!Array.isArray(e)&&l(e,\"code\")&&o(e.code)?(r.code=e.code,e.message&&\"string\"==typeof e.message?(r.message=e.message,l(e,\"data\")&&(r.data=e.data)):(r.message=s(r.code),r.data={originalError:a(e)})):(r.code=n.standardErrorCodes.rpc.internal,r.message=u(e,\"message\")?e.message:i,r.data={originalError:a(e)}),t&&(r.stack=u(e,\"stack\")?e.stack:void 0),r}},17475:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.determineMethodCategory=void 0;let r={handshake:[\"eth_requestAccounts\"],sign:[\"eth_ecRecover\",\"personal_sign\",\"personal_ecRecover\",\"eth_signTransaction\",\"eth_sendTransaction\",\"eth_signTypedData_v1\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"eth_signTypedData\",\"wallet_addEthereumChain\",\"wallet_switchEthereumChain\",\"wallet_watchAsset\",\"wallet_getCapabilities\",\"wallet_sendCalls\",\"wallet_showCallsStatus\"],state:[\"eth_chainId\",\"eth_accounts\",\"eth_coinbase\",\"net_version\"],deprecated:[\"eth_sign\",\"eth_signTypedData_v2\"],unsupported:[\"eth_subscribe\",\"eth_unsubscribe\"],fetch:[]};t.determineMethodCategory=function(e){for(let t in r)if(r[t].includes(e))return t}},34468:function(e,t){\"use strict\";function r(){return e=>e}Object.defineProperty(t,\"__esModule\",{value:!0}),t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=r,t.HexString=r(),t.AddressString=r(),t.BigIntString=r(),t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=r()},98997:function(e,t,r){\"use strict\";var n=r(9109).Buffer;Object.defineProperty(t,\"__esModule\",{value:!0}),t.areAddressArraysEqual=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBigInt=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBigInt=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let i=r(39172),s=r(34468),o=/^[0-9]*$/,a=/^[a-f0-9]*$/;function l(e){return[...e].map(e=>e.toString(16).padStart(2,\"0\")).join(\"\")}function u(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function c(e){return u(e)?e.slice(2):e}function d(e){return u(e)?`0x${e.slice(2)}`:`0x${e}`}function h(e){if(\"string\"!=typeof e)return!1;let t=c(e).toLowerCase();return a.test(t)}function f(e,t=!1){if(\"string\"==typeof e){let r=c(e).toLowerCase();if(a.test(r))return(0,s.HexString)(t?`0x${r}`:r)}throw i.standardErrors.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function p(e,t=!1){let r=f(e,!1);return r.length%2==1&&(r=(0,s.HexString)(`0${r}`)),t?(0,s.HexString)(`0x${r}`):r}function g(e){if(\"number\"==typeof e&&Number.isInteger(e))return(0,s.IntNumber)(e);if(\"string\"==typeof e){if(o.test(e))return(0,s.IntNumber)(Number(e));if(h(e))return(0,s.IntNumber)(Number(BigInt(p(e,!0))))}throw i.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function m(e){if(null==e||\"function\"!=typeof e.constructor)return!1;let{constructor:t}=e;return\"function\"==typeof t.config&&\"number\"==typeof t.EUCLID}t.randomBytesHex=function(e){return l(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=l,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},t.hexStringFromBuffer=function(e,t=!1){let r=e.toString(\"hex\");return(0,s.HexString)(t?`0x${r}`:r)},t.bigIntStringFromBigInt=function(e){return(0,s.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,s.IntNumber)(Number(BigInt(p(e,!0))))},t.hexStringFromIntNumber=function(e){return(0,s.HexString)(`0x${BigInt(e).toString(16)}`)},t.has0xPrefix=u,t.strip0x=c,t.prepend0x=d,t.isHexString=h,t.ensureHexString=f,t.ensureEvenLengthHexString=p,t.ensureAddressString=function(e){if(\"string\"==typeof e){let t=c(e).toLowerCase();if(h(t)&&40===t.length)return(0,s.AddressString)(d(t))}throw i.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)},t.ensureBuffer=function(e){if(n.isBuffer(e))return e;if(\"string\"==typeof e){if(h(e)){let t=p(e,!1);return n.from(t,\"hex\")}return n.from(e,\"utf8\")}throw i.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)},t.ensureIntNumber=g,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,s.RegExpString)(e.toString());throw i.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)},t.ensureBigInt=function(e){if(null!==e&&(\"bigint\"==typeof e||m(e)))return BigInt(e.toString(10));if(\"number\"==typeof e)return BigInt(g(e));if(\"string\"==typeof e){if(o.test(e))return BigInt(e);if(h(e))return BigInt(p(e,!0))}throw i.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)},t.ensureParsedJSONObject=function(e){if(\"string\"==typeof e)return JSON.parse(e);if(\"object\"==typeof e)return e;throw i.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)},t.isBigNumber=m,t.range=function(e,t){return Array.from({length:t-e},(t,r)=>e+r)},t.getFavicon=function(){let e=document.querySelector('link[sizes=\"192x192\"]')||document.querySelector('link[sizes=\"180x180\"]')||document.querySelector('link[rel=\"icon\"]')||document.querySelector('link[rel=\"shortcut icon\"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute(\"href\"):null;return!n||n.startsWith(\"javascript:\")||n.startsWith(\"vbscript:\")?null:n.startsWith(\"http://\")||n.startsWith(\"https://\")||n.startsWith(\"data:\")?n:n.startsWith(\"//\")?t+n:`${t}//${r}${n}`},t.areAddressArraysEqual=function(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}},86080:function(e,t,r){\"use strict\";let n=r(46111);t.ZP=n.CoinbaseWalletSDK,r(46111)},7977:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCWKeyManager=void 0;let n=r(89665),i=r(9876),s={storageKey:\"ownPrivateKey\",keyType:\"private\"},o={storageKey:\"ownPublicKey\",keyType:\"public\"},a={storageKey:\"peerPublicKey\",keyType:\"public\"};class l{constructor(){this.storage=new i.ScopedLocalStorage(\"CBWSDK\",\"SCWKeyManager\"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(a,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(o.storageKey),this.storage.removeItem(s.storageKey),this.storage.removeItem(a.storageKey)}async generateKeyPair(){let e=await (0,n.generateKeyPair)();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(s,e.privateKey),await this.storeKey(o,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(s)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(o)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(a)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await (0,n.deriveSharedSecret)(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?(0,n.importKeyFromHexString)(e.keyType,t):null}async storeKey(e,t){let r=await (0,n.exportKeyToHexString)(e.keyType,t);this.storage.setItem(e.storageKey,r)}}t.SCWKeyManager=l},51902:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCWSigner=void 0;let n=r(7977),i=r(5561),s=r(39172),o=r(98997),a=r(89665);class l{constructor(e){this.metadata=e.metadata,this.communicator=e.communicator,this.keyManager=new n.SCWKeyManager,this.stateManager=new i.SCWStateManager({appChainIds:this.metadata.appChainIds,updateListener:e.updateListener}),this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(){let e=await this.createRequestMessage({handshake:{method:\"eth_requestAccounts\",params:this.metadata}}),t=await this.communicator.postRequestAndWaitForResponse(e);if(\"failure\"in t.content)throw t.content.failure;let r=await (0,a.importKeyFromHexString)(\"public\",t.sender);await this.keyManager.setPeerPublicKey(r);let n=await this.decryptResponseMessage(t);this.updateInternalState({method:\"eth_requestAccounts\"},n);let i=n.result;if(\"error\"in i)throw i.error;return this.stateManager.accounts}async request(e){let t=this.tryLocalHandling(e);if(void 0!==t){if(t instanceof Error)throw t;return t}await this.communicator.waitForPopupLoaded();let r=await this.sendEncryptedRequest(e),n=await this.decryptResponseMessage(r);this.updateInternalState(e,n);let i=n.result;if(\"error\"in i)throw i.error;return i.value}async disconnect(){this.stateManager.clear(),await this.keyManager.clear()}tryLocalHandling(e){var t;switch(e.method){case\"wallet_switchEthereumChain\":{let r=e.params;if(!r||!(null===(t=r[0])||void 0===t?void 0:t.chainId))throw s.standardErrors.rpc.invalidParams();let n=(0,o.ensureIntNumber)(r[0].chainId);return this.stateManager.switchChain(n)?null:void 0}case\"wallet_getCapabilities\":{let e=this.stateManager.walletCapabilities;if(!e)throw s.standardErrors.provider.unauthorized(\"No wallet capabilities found, please disconnect and reconnect\");return e}default:return}}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw s.standardErrors.provider.unauthorized(\"No valid session found, try requestAccounts before other methods\");let r=await (0,a.encryptContent)({action:e,chainId:this.stateManager.activeChain.id},t),n=await this.createRequestMessage({encrypted:r});return this.communicator.postRequestAndWaitForResponse(n)}async createRequestMessage(e){let t=await (0,a.exportKeyToHexString)(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){let t=e.content;if(\"failure\"in t)throw t.failure;let r=await this.keyManager.getSharedSecret();if(!r)throw s.standardErrors.provider.unauthorized(\"Invalid session\");return(0,a.decryptContent)(t.encrypted,r)}updateInternalState(e,t){var r,n;let i=null===(r=t.data)||void 0===r?void 0:r.chains;i&&this.stateManager.updateAvailableChains(i);let s=null===(n=t.data)||void 0===n?void 0:n.capabilities;s&&this.stateManager.updateWalletCapabilities(s);let a=t.result;if(!(\"error\"in a))switch(e.method){case\"eth_requestAccounts\":{let e=a.value;this.stateManager.updateAccounts(e);break}case\"wallet_switchEthereumChain\":{if(null!==a.value)return;let t=e.params,r=(0,o.ensureIntNumber)(t[0].chainId);this.stateManager.switchChain(r)}}}}t.SCWSigner=l},5561:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCWStateManager=void 0;let n=r(9876),i=\"accounts\",s=\"activeChain\",o=\"availableChains\",a=\"walletCapabilities\";class l{get accounts(){return this._accounts}get activeChain(){return this._activeChain}get walletCapabilities(){return this._walletCapabilities}constructor(e){var t,r;this.storage=new n.ScopedLocalStorage(\"CBWSDK\",\"SCWStateManager\"),this.updateListener=e.updateListener,this.availableChains=this.loadItemFromStorage(o),this._walletCapabilities=this.loadItemFromStorage(a);let l=this.loadItemFromStorage(i),u=this.loadItemFromStorage(s);l&&this.updateListener.onAccountsUpdate({accounts:l,source:\"storage\"}),u&&this.updateListener.onChainUpdate({chain:u,source:\"storage\"}),this._accounts=l||[],this._activeChain=u||{id:null!==(r=null===(t=e.appChainIds)||void 0===t?void 0:t[0])&&void 0!==r?r:1}}updateAccounts(e){this._accounts=e,this.storeItemToStorage(i,e),this.updateListener.onAccountsUpdate({accounts:e,source:\"wallet\"})}switchChain(e){var t;let r=null===(t=this.availableChains)||void 0===t?void 0:t.find(t=>t.id===e);return!!r&&(r===this._activeChain||(this._activeChain=r,this.storeItemToStorage(s,r),this.updateListener.onChainUpdate({chain:r,source:\"wallet\"}),!0))}updateAvailableChains(e){if(!e||0===Object.keys(e).length)return;let t=Object.entries(e).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.availableChains=t,this.storeItemToStorage(o,t),this.switchChain(this._activeChain.id)}updateWalletCapabilities(e){this._walletCapabilities=e,this.storeItemToStorage(a,e)}storeItemToStorage(e,t){this.storage.setItem(e,JSON.stringify(t))}loadItemFromStorage(e){let t=this.storage.getItem(e);return t?JSON.parse(t):void 0}clear(){this.storage.clear()}}t.SCWStateManager=l},96741:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.createSigner=t.fetchSignerType=t.storeSignerType=t.loadSignerType=void 0;let n=r(51902),i=r(86510),s=r(39172),o=r(66320),a=r(9876),l=\"SignerType\",u=new a.ScopedLocalStorage(\"CBWSDK\",\"SignerConfigurator\");async function c(e){let{communicator:t,metadata:r}=e;d(t,r).catch(()=>{});let n={id:crypto.randomUUID(),event:\"selectSignerType\",data:e.preference},{data:i}=await t.postRequestAndWaitForResponse(n);return i}async function d(e,t){await e.onMessage(({event:e})=>\"WalletLinkSessionRequest\"===e);let r=new i.WalletLinkSigner({metadata:t});e.postMessage({event:\"WalletLinkUpdate\",data:{session:r.getSession()}}),await r.handshake(),e.postMessage({event:\"WalletLinkUpdate\",data:{connected:!0}})}t.loadSignerType=function(){return u.getItem(l)},t.storeSignerType=function(e){u.setItem(l,e)},t.fetchSignerType=c,t.createSigner=function(e){let{signerType:t,metadata:r,communicator:a,updateListener:l}=e;switch(t){case\"scw\":return new n.SCWSigner({metadata:r,updateListener:l,communicator:a});case\"walletlink\":return new i.WalletLinkSigner({metadata:r,updateListener:l});case\"extension\":{let e=(0,o.getCoinbaseInjectedSigner)();if(!e)throw s.standardErrors.rpc.internal(\"injected signer not found\");return e}}}},86510:function(e,t,r){\"use strict\";var n=r(9109).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkSigner=void 0;let s=i(r(80745)),o=r(56663),a=r(65896),l=r(83705),u=r(78461),c=r(99285),d=r(39172),h=r(98997),f=r(9876),p=\"DefaultChainId\",g=\"DefaultJsonRpcUrl\";class m{constructor(e){var t,r;this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1;let{appName:n,appLogoUrl:i}=e.metadata;this._appName=n,this._appLogoUrl=i,this._storage=new f.ScopedLocalStorage(\"walletlink\",c.WALLETLINK_URL),this.updateListener=e.updateListener,this._relayEventManager=new a.RelayEventManager,this._jsonRpcUrlFromOpts=\"\";let s=this._storage.getItem(o.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let e=s.split(\" \");\"\"!==e[0]&&(this._addresses=e.map(e=>(0,h.ensureAddressString)(e)),null===(t=this.updateListener)||void 0===t||t.onAccountsUpdate({accounts:this._addresses,source:\"storage\"}))}this._storage.getItem(p)&&(null===(r=this.updateListener)||void 0===r||r.onChainUpdate({chain:{id:this.getChainId(),rpcUrl:this.jsonRpcUrl},source:\"storage\"}),this.hasMadeFirstChainChangedEmission=!0),this.initializeRelay()}getSession(){let{id:e,secret:t}=this.initializeRelay().getWalletLinkSession();return{id:e,secret:t}}async handshake(){return await this.request({method:\"eth_requestAccounts\"})}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(g))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(g,e)}updateProviderInfo(e,t){var r;this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(p,t.toString(10)),(0,h.ensureIntNumber)(t)===n&&this.hasMadeFirstChainChangedEmission||(null===(r=this.updateListener)||void 0===r||r.onChainUpdate({chain:{id:t,rpcUrl:e},source:\"wallet\"}),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,r,n,i,s){let o=this.initializeRelay(),a=await o.watchAsset(e,t,r,n,i,null==s?void 0:s.toString());return!(0,l.isErrorResponse)(a)&&!!a.result}async addEthereumChain(e,t,r,n,i,s){var o,a;if((0,h.ensureIntNumber)(e)===this.getChainId())return!1;let u=this.initializeRelay();this._isAuthorized()||await u.requestEthereumAccounts();let c=await u.addEthereumChain(e.toString(),t,i,r,n,s);return!(0,l.isErrorResponse)(c)&&((null===(o=c.result)||void 0===o?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(a=c.result)||void 0===a?void 0:a.isApproved)===!0)}async switchEthereumChain(e){let t=this.initializeRelay(),r=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0);if((0,l.isErrorResponse)(r)){if(!r.errorCode)return;if(r.errorCode===d.standardErrorCodes.provider.unsupportedChain)throw d.standardErrors.provider.unsupportedChain();throw d.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode})}let n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,e)}async disconnect(){this._relay&&this._relay.resetAndReload(),this._storage.clear()}async request(e){try{return this._request(e).catch(e=>{throw e})}catch(e){return Promise.reject(e)}}async _request(e){if(!e||\"object\"!=typeof e||Array.isArray(e))throw d.standardErrors.rpc.invalidRequest({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:r}=e;if(\"string\"!=typeof t||0===t.length)throw d.standardErrors.rpc.invalidRequest({message:\"'args.method' must be a non-empty string.\",data:e});if(void 0!==r&&!Array.isArray(r)&&(\"object\"!=typeof r||null===r))throw d.standardErrors.rpc.invalidRequest({message:\"'args.params' must be an object or array if provided.\",data:e});let n=void 0===r?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:n,jsonrpc:\"2.0\",id:i})).result}_setAddresses(e,t){var r;if(!Array.isArray(e))throw Error(\"addresses is not an array\");let n=e.map(e=>(0,h.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,null===(r=this.updateListener)||void 0===r||r.onAccountsUpdate({accounts:n,source:\"wallet\"}),this._storage.setItem(o.LOCAL_STORAGE_ADDRESSES_KEY,n.join(\" \")))}_sendRequestAsync(e){return new Promise((t,r)=>{try{let r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:\"2.0\",id:e.id,result:r})}catch(e){return r(e)}this._handleAsynchronousMethods(e).then(r=>r&&t(Object.assign(Object.assign({},r),{id:e.id}))).catch(e=>r(e))})}_handleSynchronousMethods(e){let{method:t}=e;switch(t){case\"eth_accounts\":return this._eth_accounts();case\"eth_coinbase\":return this._eth_coinbase();case\"net_version\":return this._net_version();case\"eth_chainId\":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,r=e.params||[];switch(t){case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_sign\":return this._eth_sign(r);case\"eth_ecRecover\":return this._eth_ecRecover(r);case\"personal_sign\":return this._personal_sign(r);case\"personal_ecRecover\":return this._personal_ecRecover(r);case\"eth_signTransaction\":return this._eth_signTransaction(r);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(r);case\"eth_sendTransaction\":return this._eth_sendTransaction(r);case\"eth_signTypedData_v1\":return this._eth_signTypedData_v1(r);case\"eth_signTypedData_v2\":default:return this._throwUnsupportedMethodError();case\"eth_signTypedData_v3\":return this._eth_signTypedData_v3(r);case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this._eth_signTypedData_v4(r);case\"wallet_addEthereumChain\":return this._wallet_addEthereumChain(r);case\"wallet_switchEthereumChain\":return this._wallet_switchEthereumChain(r);case\"wallet_watchAsset\":return this._wallet_watchAsset(r)}}_isKnownAddress(e){try{let t=(0,h.ensureAddressString)(e);return this._addresses.map(e=>(0,h.ensureAddressString)(e)).includes(t)}catch(e){}return!1}_ensureKnownAddress(e){if(!this._isKnownAddress(e))throw Error(\"Unknown Ethereum address\")}_prepareTransactionParams(e){let t=e.from?(0,h.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(t);let r=e.to?(0,h.ensureAddressString)(e.to):null,i=null!=e.value?(0,h.ensureBigInt)(e.value):BigInt(0),s=e.data?(0,h.ensureBuffer)(e.data):n.alloc(0),o=null!=e.nonce?(0,h.ensureIntNumber)(e.nonce):null,a=null!=e.gasPrice?(0,h.ensureBigInt)(e.gasPrice):null,l=null!=e.maxFeePerGas?(0,h.ensureBigInt)(e.maxFeePerGas):null;return{fromAddress:t,toAddress:r,weiValue:i,data:s,nonce:o,gasPriceInWei:a,maxFeePerGas:l,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?(0,h.ensureBigInt)(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?(0,h.ensureBigInt)(e.gas):null,chainId:e.chainId?(0,h.ensureIntNumber)(e.chainId):this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw d.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw d.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,r,n){this._ensureKnownAddress(t);try{let i=this.initializeRelay(),s=await i.signEthereumMessage(e,t,r,n);if((0,l.isErrorResponse)(s))throw Error(s.errorMessage);return{jsonrpc:\"2.0\",id:0,result:s.result}}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied message signature\");throw e}}async _ethereumAddressFromSignedMessage(e,t,r){let n=this.initializeRelay(),i=await n.ethereumAddressFromSignedMessage(e,t,r);if((0,l.isErrorResponse)(i))throw Error(i.errorMessage);return{jsonrpc:\"2.0\",id:0,result:i.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,h.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(p);if(!e)return(0,h.ensureIntNumber)(1);let t=parseInt(e,10);return(0,h.ensureIntNumber)(t)}async _eth_requestAccounts(){let e;if(this._isAuthorized())return Promise.resolve({jsonrpc:\"2.0\",id:0,result:this._addresses});try{let t=this.initializeRelay();if(e=await t.requestEthereumAccounts(),(0,l.isErrorResponse)(e))throw Error(e.errorMessage)}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied account authorization\");throw e}if(!e.result)throw Error(\"accounts received is empty\");return this._setAddresses(e.result),{jsonrpc:\"2.0\",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._signEthereumMessage(r,t,!1)}_eth_ecRecover(e){let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureAddressString)(e[1]);return this._signEthereumMessage(t,r,!0)}_personal_ecRecover(e){let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),r=await e.signEthereumTransaction(t);if((0,l.isErrorResponse)(r))throw Error(r.errorMessage);return{jsonrpc:\"2.0\",id:0,result:r.result}}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\");throw e}}async _eth_sendRawTransaction(e){let t=(0,h.ensureBuffer)(e[0]),r=this.initializeRelay(),n=await r.submitEthereumTransaction(t,this.getChainId());if((0,l.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:\"2.0\",id:0,result:n.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),r=await e.signAndSubmitEthereumTransaction(t);if((0,l.isErrorResponse)(r))throw Error(r.errorMessage);return{jsonrpc:\"2.0\",id:0,result:r.result}}catch(e){if(\"string\"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,h.ensureParsedJSONObject)(e[0]),r=(0,h.ensureAddressString)(e[1]);this._ensureKnownAddress(r);let n=s.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let n=s.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let n=s.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,t,!1,i)}async _wallet_addEthereumChain(e){var t,r,n,i;let s=e[0];if((null===(t=s.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"please pass in at least 1 rpcUrl\"}};if(!s.chainName||\"\"===s.chainName.trim())throw d.standardErrors.rpc.invalidParams(\"chainName is a required field\");if(!s.nativeCurrency)throw d.standardErrors.rpc.invalidParams(\"nativeCurrency is a required field\");let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(n=s.blockExplorerUrls)&&void 0!==n?n:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency)?{jsonrpc:\"2.0\",id:0,result:null}:{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"unable to add ethereum chain\"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:\"2.0\",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw d.standardErrors.rpc.invalidParams(\"Type is required\");if((null==t?void 0:t.type)!==\"ERC20\")throw d.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw d.standardErrors.rpc.invalidParams(\"Options are required\");if(!(null==t?void 0:t.options.address))throw d.standardErrors.rpc.invalidParams(\"Address is required\");let r=this.getChainId(),{address:n,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:\"2.0\",id:0,result:await this.watchAsset(t.type,n,i,o,s,r)}}initializeRelay(){if(!this._relay){let e=new u.WalletLinkRelay({linkAPIUrl:c.WALLETLINK_URL,storage:this._storage});e.setAppInfo(this._appName,this._appLogoUrl),e.attachUI(),e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),this._relay=e}return this._relay}}t.WalletLinkSigner=m},65896:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.RelayEventManager=void 0;let n=r(98997);class i{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,n.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}t.RelayEventManager=i},78461:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkRelay=void 0;let n=r(32485),i=r(56663),s=r(65896),o=r(42922),a=r(83705),l=r(44412),u=r(34614),c=r(78826),d=r(39172),h=r(98997),f=r(9876);class p{constructor(e){this.accountsCallback=null,this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.chainCallback=null,this.dappDefaultChain=1,this.isMobileWeb=(0,l.isMobileWeb)(),this.appName=\"\",this.appLogoUrl=null,this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(i.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let r=t.split(\" \"),n=\"true\"===this.storage.getItem(\"IsStandaloneSigning\");\"\"===r[0]||e||!this._session.linked||n||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(e,t))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),p.accountRequestCallbackIds.size>0&&(Array.from(p.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(Object.assign(Object.assign({},{type:\"WEB3_RESPONSE\",id:t,response:{method:\"requestEthereumAccounts\",result:[e]}}),{id:t}))}),p.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage;let{session:t,ui:r,connection:n}=this.subscribe();this._session=t,this.connection=n,this.relayEventManager=new s.RelayEventManager,this.ui=r}subscribe(){let e=o.WalletLinkSession.load(this.storage)||new o.WalletLinkSession(this.storage).save(),{linkAPIUrl:t}=this,r=new n.WalletLinkConnection({session:e,linkAPIUrl:t,listener:this}),i=this.isMobileWeb?new c.WLMobileRelayUI:new u.WalletLinkRelayUI;return r.connect(),{session:e,ui:i,connection:r}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata(\"__destroyed\",\"1\"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{this.connection.destroy();let e=o.WalletLinkSession.load(this.storage);(null==e?void 0:e.id)===this._session.id&&f.ScopedLocalStorage.clearAll(),document.location.reload()}).catch(e=>{})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,r,n){return this.sendRequest({method:\"signEthereumMessage\",params:{message:(0,h.hexStringFromBuffer)(e,!0),address:t,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(e,t,r){return this.sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:(0,h.hexStringFromBuffer)(e,!0),signature:(0,h.hexStringFromBuffer)(t,!0),addPrefix:r}})}signEthereumTransaction(e){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,h.bigIntStringFromBigInt)(e.weiValue),data:(0,h.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,h.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,h.bigIntStringFromBigInt)(e.weiValue),data:(0,h.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,h.bigIntStringFromBigInt)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,h.bigIntStringFromBigInt)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,h.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:(0,h.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:\"scanQRCode\",params:{regExp:e}})}getWalletLinkSession(){return this._session}genericRequest(e,t){return this.sendRequest({method:\"generic\",params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,r=(0,h.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,n),null==t||t()};return new Promise((i,s)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(r,e=>{if(null==t||t(),(0,a.isErrorResponse)(e))return s(Error(e.errorMessage));i(e)}),this.publishWeb3RequestEvent(r,e)})}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e}publishWeb3RequestEvent(e,t){let r={type:\"WEB3_REQUEST\",id:e,request:t};this.publishEvent(\"Web3Request\",r,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r.id,response:{method:t.method,errorMessage:e.message}})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof c.WLMobileRelayUI)switch(e){case\"requestEthereumAccounts\":case\"switchEthereumChain\":return;default:window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){this.publishEvent(\"Web3RequestCanceled\",{type:\"WEB3_REQUEST_CANCELED\",id:e},!1).then()}publishEvent(e,t,r){return this.connection.publishEvent(e,t,r)}handleWeb3ResponseMessage(e){let{response:t}=e;if(\"requestEthereumAccounts\"===t.method){p.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),p.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,r){var n;let i=null!==(n=null==r?void 0:r.message)&&void 0!==n?n:\"Unspecified error message.\";this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:e,response:{method:t,errorMessage:i}})}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:\"requestEthereumAccounts\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,h.randomBytesHex)(8);return new Promise((r,n)=>{this.relayEventManager.callbacks.set(t,e=>{if((0,a.isErrorResponse)(e))return n(Error(e.errorMessage));r(e)}),p.accountRequestCallbackIds.add(t),this.publishWeb3RequestEvent(t,e)})}watchAsset(e,t,r,n,i,s){let o={method:\"watchAsset\",params:{type:e,options:{address:t,symbol:r,decimals:n,image:i},chainId:s}},l=null,u=(0,h.randomBytesHex)(8);return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,e),null==l||l()},onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(u,r=>{if(null==l||l(),(0,a.isErrorResponse)(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(u,o)})}addEthereumChain(e,t,r,n,i,s){let o={method:\"addEthereumChain\",params:{chainId:e,rpcUrls:t,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:s}},l=null,u=(0,h.randomBytesHex)(8);return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,e),null==l||l()},onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(u,r=>{if(null==l||l(),(0,a.isErrorResponse)(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(u,o)})}switchEthereumChain(e,t){let r={method:\"switchEthereumChain\",params:Object.assign({chainId:e},{address:t})},n=(0,h.randomBytesHex)(8);return new Promise((e,t)=>{this.relayEventManager.callbacks.set(n,r=>(0,a.isErrorResponse)(r)&&r.errorCode?t(d.standardErrors.provider.custom({code:r.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"})):(0,a.isErrorResponse)(r)?t(Error(r.errorMessage)):void e(r)),this.publishWeb3RequestEvent(n,r)})}}t.WalletLinkRelay=p,p.accountRequestCallbackIds=new Set},93007:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkCipher=void 0;let n=r(98997);class i{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error(\"secret must be 256 bits\");let r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey(\"raw\",(0,n.hexStringToUint8Array)(t),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},i,s.encode(e)),a=o.slice(o.byteLength-16),l=o.slice(0,o.byteLength-16),u=new Uint8Array(a),c=new Uint8Array(l),d=new Uint8Array([...r,...u,...c]);return(0,n.uint8ArrayToHex)(d)}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error(\"secret must be 256 bits\");return new Promise((r,i)=>{!async function(){let s=await crypto.subtle.importKey(\"raw\",(0,n.hexStringToUint8Array)(t),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),o=(0,n.hexStringToUint8Array)(e),a=o.slice(0,12),l=o.slice(12,28),u=new Uint8Array([...o.slice(28),...l]),c={name:\"AES-GCM\",iv:new Uint8Array(a)};try{let e=await window.crypto.subtle.decrypt(c,s,u),t=new TextDecoder;r(t.decode(e))}catch(e){i(e)}}()})}}t.WalletLinkCipher=i},32485:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkConnection=void 0;let n=r(56663),i=r(93007),s=r(99085),o=r(77730),a=r(34468);class l{constructor({session:e,linkAPIUrl:t,listener:r,WebSocketClass:l=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{e&&new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]).forEach((t,r)=>{let n=e[r];void 0!==n&&t(n)})},this.handleDestroyed=e=>{var t;\"1\"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;{let r=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(r)}},this.handleMetadataUpdated=async(e,t)=>{var r;{let n=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.metadataUpdated(e,n)}},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(n.WALLET_USER_NAME_KEY,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(n.APP_VERSION_KEY,e)},this.handleChainUpdated=async(e,t)=>{var r;{let n=await this.cipher.decrypt(e),i=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.chainUpdated(n,i)}},this.session=e,this.cipher=new i.WalletLinkCipher(e.secret),this.listener=r;let u=new o.WalletLinkWebSocket(`${t}/rpc`,l);u.setConnectionStateListener(async e=>{let t=!1;switch(e){case o.ConnectionState.DISCONNECTED:if(!this.destroyed){let e=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||u.connect().catch(()=>{e()})};e()}break;case o.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),t=!0}catch(e){}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case o.ConnectionState.CONNECTING:}this.connected!==t&&(this.connected=t)}),u.setIncomingDataListener(e=>{var t;switch(e.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let t=\"IsLinkedOK\"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":this.handleSessionMetadataUpdated(e.metadata);break;case\"Event\":this.handleIncomingEvent(e)}void 0!==e.id&&(null===(t=this.requestResolutions.get(e.id))||void 0===t||t(e))}),this.ws=u,this.http=new s.WalletLinkHTTP(t,e.id,e.key)}connect(){if(this.destroyed)throw Error(\"instance is destroyed\");this.ws.connect()}destroy(){this.destroyed=!0,this.ws.disconnect(),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var t;this._connected=e,e&&(null===(t=this.onceConnected)||void 0===t||t.call(this))}setOnceConnected(e){return new Promise(t=>{this.connected?e().then(t):this.onceConnected=()=>{e().then(t),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var t,r;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(r=this.listener)||void 0===r||r.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if(\"Event\"===e.type&&\"Web3Response\"===e.event){let r=JSON.parse(await this.cipher.decrypt(e.data));if(\"WEB3_RESPONSE\"!==r.type)return;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(r)}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error(\"Unable to check for unseen events\",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(e=>this.handleIncomingEvent(e))}async setSessionMetadata(e,t){let r={type:\"SetSessionConfig\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:t}};return this.setOnceConnected(async()=>{let e=await this.makeRequest(r);if(\"Fail\"===e.type)throw Error(e.error||\"failed to set session metadata\")})}async publishEvent(e,t,r=!1){let n=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,relaySource:\"coinbaseWalletExtension\"in window&&window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),i={type:\"PublishEvent\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:n,callWebhook:r};return this.setOnceLinked(async()=>{let e=await this.makeRequest(i);if(\"Fail\"===e.type)throw Error(e.error||\"failed to publish event\");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData(\"h\")}catch(e){}}async makeRequest(e,t=6e4){let r;let n=e.id;return this.sendData(e),Promise.race([new Promise((e,i)=>{r=window.setTimeout(()=>{i(Error(`request ${n} timed out`))},t)}),new Promise(e=>{this.requestResolutions.set(n,t=>{clearTimeout(r),e(t),this.requestResolutions.delete(n)})})])}async authenticate(){let e={type:\"HostSession\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},t=await this.makeRequest(e);if(\"Fail\"===t.type)throw Error(t.error||\"failed to authenticate\")}sendIsLinked(){let e={type:\"IsLinked\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:\"GetSessionConfig\",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}}t.WalletLinkConnection=l},99085:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkHTTP=void 0;class r{constructor(e,t,r){this.linkAPIUrl=e,this.sessionId=t;let n=`${t}:${r}`;this.auth=`Basic ${btoa(n)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(e=>console.error(\"Unabled to mark event as failed:\",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:r,error:n}=await t.json();if(n)throw Error(`Check unseen events failed: ${n}`);let i=null!==(e=null==r?void 0:r.filter(e=>\"Web3Response\"===e.event).map(e=>({type:\"Event\",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(i),i}throw Error(`Check unseen events failed: ${t.status}`)}}t.WalletLinkHTTP=r},77730:function(e,t){\"use strict\";var r,n;Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkWebSocket=t.ConnectionState=void 0,(n=r||(t.ConnectionState=r={}))[n.DISCONNECTED=0]=\"DISCONNECTED\",n[n.CONNECTING=1]=\"CONNECTING\",n[n.CONNECTED=2]=\"CONNECTED\";class i{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,\"ws\")}async connect(){if(this.webSocket)throw Error(\"webSocket object is not null\");return new Promise((e,t)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(n=this.connectionStateListener)||void 0===n||n.call(this,r.CONNECTING),i.onclose=e=>{var n;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(n=this.connectionStateListener)||void 0===n||n.call(this,r.DISCONNECTED)},i.onopen=t=>{var n;e(),null===(n=this.connectionStateListener)||void 0===n||n.call(this,r.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(e=>this.sendData(e)),this.pendingData=[])},i.onmessage=e=>{var t,r;if(\"h\"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:\"Heartbeat\"});else try{let t=JSON.parse(e.data);null===(r=this.incomingDataListener)||void 0===r||r.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,r.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}t.WalletLinkWebSocket=i},56663:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0,t.WALLET_USER_NAME_KEY=\"walletUsername\",t.LOCAL_STORAGE_ADDRESSES_KEY=\"Addresses\",t.APP_VERSION_KEY=\"AppVersion\"},42922:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkSession=void 0;let n=r(42724),i=r(98997),s=\"session:id\",o=\"session:secret\",a=\"session:linked\";class l{constructor(e,t,r,s){this._storage=e,this._id=t||(0,i.randomBytesHex)(16),this._secret=r||(0,i.randomBytesHex)(32),this._key=new n.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\"hex\"),this._linked=!!s}static load(e){let t=e.getItem(s),r=e.getItem(a),n=e.getItem(o);return t&&n?new l(e,t,n,\"1\"===r):null}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(a,this._linked?\"1\":\"0\")}}t.WalletLinkSession=l},83705:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isErrorResponse=void 0,t.isErrorResponse=function(e){return void 0!==e.errorMessage}},78826:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WLMobileRelayUI=void 0;let n=r(30054),i=r(44412),s=r(99285);class o{constructor(){this.attached=!1,this.redirectDialog=new n.RedirectDialog}attach(){if(this.attached)throw Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL(s.CBW_MOBILE_DEEPLINK_URL);t.searchParams.append(\"redirect_url\",(0,i.getLocation)().href),e&&t.searchParams.append(\"wl_url\",e);let r=document.createElement(\"a\");r.target=\"cbw-opener\",r.href=t.href,r.rel=\"noreferrer noopener\",r.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}t.WLMobileRelayUI=o},34614:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WalletLinkRelayUI=void 0;let n=r(69573),i=r(91989);class s{constructor(){this.attached=!1,this.snackbar=new i.Snackbar}attach(){if(this.attached)throw Error(\"Coinbase Wallet SDK UI is already attached\");let e=document.documentElement,t=document.createElement(\"div\");t.className=\"-cbwsdk-css-reset\",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,(0,n.injectCssReset)()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:e.onResetConnection}]}:{message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:e.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}}t.WalletLinkRelayUI=s},7568:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"},30054:function(e,t,r){\"use strict\";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.RedirectDialog=void 0;let i=n(r(25796)),s=r(57764),o=r(69573),a=r(91989),l=r(44412),u=n(r(7568));class c{constructor(){this.root=null,this.darkMode=(0,l.isDarkMode)()}attach(){let e=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",e.appendChild(this.root),(0,o.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,s.render)(null,this.root),e&&(0,s.render)((0,s.h)(d,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}t.RedirectDialog=c;let d=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:o})=>(0,s.h)(a.SnackbarContainer,{darkMode:r},(0,s.h)(\"div\",{class:\"-cbwsdk-redirect-dialog\"},(0,s.h)(\"style\",null,u.default),(0,s.h)(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-redirect-dialog-box\",r?\"dark\":\"light\")},(0,s.h)(\"p\",null,e),(0,s.h)(\"button\",{onClick:n},t))))},91931:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"},91989:function(e,t,r){\"use strict\";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let i=n(r(25796)),s=r(57764),o=r(83148),a=r(44412),l=n(r(91931));class u{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=(0,a.isDarkMode)()}attach(e){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)(\"div\",null,(0,s.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,r])=>(0,s.h)(t.SnackbarInstance,Object.assign({},r,{key:e}))))),this.root)}}t.Snackbar=u,t.SnackbarContainer=e=>(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-snackbar-container\")},(0,s.h)(\"style\",null,l.default),(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar\"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:r})=>{let[n,a]=(0,o.useState)(!0),[l,u]=(0,o.useState)(null!=e&&e);return(0,o.useEffect)(()=>{let e=[window.setTimeout(()=>{a(!1)},1),window.setTimeout(()=>{u(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-snackbar-instance\",n&&\"-cbwsdk-snackbar-instance-hidden\",l&&\"-cbwsdk-snackbar-instance-expanded\")},(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:()=>{u(!l)}},(0,s.h)(\"img\",{src:\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),(0,s.h)(\"div\",{class:\"-gear-container\"},!l&&(0,s.h)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,s.h)(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),(0,s.h)(\"img\",{src:\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",class:\"-gear-icon\",title:\"Expand\"}))),r&&r.length>0&&(0,s.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},r.map((e,t)=>(0,s.h)(\"div\",{class:(0,i.default)(\"-cbwsdk-snackbar-instance-menu-item\",e.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:e.onClick,key:t},(0,s.h)(\"svg\",{width:e.svgWidth,height:e.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,s.h)(\"path\",{\"fill-rule\":e.defaultFillRule,\"clip-rule\":e.defaultClipRule,d:e.path,fill:\"#AAAAAA\"})),(0,s.h)(\"span\",{class:(0,i.default)(\"-cbwsdk-snackbar-instance-menu-item-info\",e.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},e.info)))))}},4316:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default='@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\201C\" \"\\\\201D\" \"\\\\2018\" \"\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},69573:function(e,t,r){\"use strict\";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.injectCssReset=void 0;let i=n(r(4316));t.injectCssReset=function(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},44412:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isDarkMode=t.isMobileWeb=t.getLocation=t.createQrUrl=void 0,t.createQrUrl=function(e,t,r,n,i,s){let o=new URLSearchParams({[n?\"parent-id\":\"id\"]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${o}`},t.getLocation=function(){try{if(function(){try{return null!==window.frameElement}catch(e){return!1}}()&&window.top)return window.top.location;return window.location}catch(e){return window.location}},t.isMobileWeb=function(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)},t.isDarkMode=function(){var e,t;return null!==(t=null===(e=null==window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,\"(prefers-color-scheme: dark)\").matches)&&void 0!==t&&t}},9876:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ScopedLocalStorage=void 0;class r{constructor(e,t){this.scope=e,this.module=t}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(\"\"),t=[];for(let r=0;r<localStorage.length;r++){let n=localStorage.key(r);\"string\"==typeof n&&n.startsWith(e)&&t.push(n)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:\"\"}:${e}`}static clearAll(){new r(\"CBWSDK\").clear(),new r(\"walletlink\").clear()}}t.ScopedLocalStorage=r},89665:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.decryptContent=t.encryptContent=t.importKeyFromHexString=t.exportKeyToHexString=t.decrypt=t.encrypt=t.deriveSharedSecret=t.generateKeyPair=void 0;let n=r(98997);async function i(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function s(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function o(e,t){let r=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},e,new TextEncoder().encode(t));return{iv:r,cipherText:n}}async function a(e,{iv:t,cipherText:r}){let n=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,r);return new TextDecoder().decode(n)}function l(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function u(e,t){let r=l(e),i=await crypto.subtle.exportKey(r,t);return(0,n.uint8ArrayToHex)(new Uint8Array(i))}async function c(e,t){let r=l(e),i=(0,n.hexStringToUint8Array)(t).buffer;return await crypto.subtle.importKey(r,i,{name:\"ECDH\",namedCurve:\"P-256\"},!0,\"private\"===e?[\"deriveKey\"]:[])}async function d(e,t){return o(t,JSON.stringify(e,(e,t)=>t instanceof Error?Object.assign(Object.assign({},t.code?{code:t.code}:{}),{message:t.message}):t))}async function h(e,t){return JSON.parse(await a(t,e))}t.generateKeyPair=i,t.deriveSharedSecret=s,t.encrypt=o,t.decrypt=a,t.exportKeyToHexString=u,t.importKeyFromHexString=c,t.encryptContent=d,t.decryptContent=h},66320:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.checkErrorForInvalidRequestArgs=t.getCoinbaseInjectedProvider=t.getCoinbaseInjectedSigner=t.fetchRPCRequest=void 0;let n=r(54750),i=r(39172);async function s(e,t){if(!t.rpcUrl)throw i.standardErrors.rpc.internal(\"No RPC URL set for chain\");let r=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),s=await window.fetch(t.rpcUrl,{method:\"POST\",body:JSON.stringify(r),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":n.LIB_VERSION}});return(await s.json()).result}function o(){return globalThis.coinbaseWalletSigner}t.fetchRPCRequest=s,t.getCoinbaseInjectedSigner=o,t.getCoinbaseInjectedProvider=function({metadata:e,preference:t}){var r,n,i;let s=globalThis;if(\"smartWalletOnly\"!==t.options){if(o())return;let t=s.coinbaseWalletExtension;if(t){let{appName:n,appLogoUrl:i,appChainIds:s}=e;return null===(r=t.setAppInfo)||void 0===r||r.call(t,n,i,s),t}}let a=null!==(n=s.ethereum)&&void 0!==n?n:null===(i=s.top)||void 0===i?void 0:i.ethereum;if(null==a?void 0:a.isCoinbaseBrowser)return a},t.checkErrorForInvalidRequestArgs=function(e){if(!e||\"object\"!=typeof e||Array.isArray(e))return i.standardErrors.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:r}=e;return\"string\"!=typeof t||0===t.length?i.standardErrors.rpc.invalidParams({message:\"'args.method' must be a non-empty string.\",data:e}):void 0===r||Array.isArray(r)||\"object\"==typeof r&&null!==r?void 0:i.standardErrors.rpc.invalidParams({message:\"'args.params' must be an object or array if provided.\",data:e})}},86105:function(e,t,r){var n=r(9109).Buffer;let i=r(77114);function s(e){if(e.startsWith(\"int[\"))return\"int256\"+e.slice(3);if(\"int\"===e)return\"int256\";if(e.startsWith(\"uint[\"))return\"uint256\"+e.slice(4);if(\"uint\"===e)return\"uint256\";if(e.startsWith(\"fixed[\"))return\"fixed128x128\"+e.slice(5);if(\"fixed\"===e)return\"fixed128x128\";if(e.startsWith(\"ufixed[\"))return\"ufixed128x128\"+e.slice(6);else if(\"ufixed\"===e)return\"ufixed128x128\";return e}function o(e){return parseInt(/^\\D+(\\d+)$/.exec(e)[1],10)}function a(e){var t=/^\\D+(\\d+)x(\\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function l(e){var t=e.match(/(.*)\\[(.*?)\\]$/);return t?\"\"===t[2]?\"dynamic\":parseInt(t[2],10):null}function u(e){var t=typeof e;if(\"string\"===t||\"number\"===t)return BigInt(e);if(\"bigint\"===t)return e;throw Error(\"Argument is not a number\")}function c(e,t){if(\"address\"===e)return c(\"uint160\",u(t));if(\"bool\"===e)return c(\"uint8\",t?1:0);if(\"string\"===e)return c(\"bytes\",new n(t,\"utf8\"));if((f=e).lastIndexOf(\"]\")===f.length-1){if(void 0===t.length)throw Error(\"Not an array?\");if(\"dynamic\"!==(r=l(e))&&0!==r&&t.length>r)throw Error(\"Elements exceed array size: \"+r);for(h in d=[],e=e.slice(0,e.lastIndexOf(\"[\")),\"string\"==typeof t&&(t=JSON.parse(t)),t)d.push(c(e,t[h]));if(\"dynamic\"===r){var r,s,d,h,f,p=c(\"uint256\",t.length);d.unshift(p)}return n.concat(d)}if(\"bytes\"===e)return t=new n(t),d=n.concat([c(\"uint256\",t.length),t]),t.length%32!=0&&(d=n.concat([d,i.zeros(32-t.length%32)])),d;if(e.startsWith(\"bytes\")){if((r=o(e))<1||r>32)throw Error(\"Invalid bytes<N> width: \"+r);return i.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if((r=o(e))%8||r<8||r>256)throw Error(\"Invalid uint<N> width: \"+r);s=u(t);let n=i.bitLengthFromBigInt(s);if(n>r)throw Error(\"Supplied uint exceeds width: \"+r+\" vs \"+n);if(s<0)throw Error(\"Supplied uint is negative\");return i.bufferBEFromBigInt(s,32)}else if(e.startsWith(\"int\")){if((r=o(e))%8||r<8||r>256)throw Error(\"Invalid int<N> width: \"+r);s=u(t);let n=i.bitLengthFromBigInt(s);if(n>r)throw Error(\"Supplied int exceeds width: \"+r+\" vs \"+n);let a=i.twosFromBigInt(s,256);return i.bufferBEFromBigInt(a,32)}else if(e.startsWith(\"ufixed\")){if(r=a(e),(s=u(t))<0)throw Error(\"Supplied ufixed is negative\");return c(\"uint256\",s*BigInt(2)**BigInt(r[1]))}else if(e.startsWith(\"fixed\"))return r=a(e),c(\"int256\",u(t)*BigInt(2)**BigInt(r[1]));throw Error(\"Unsupported or invalid type: \"+e)}function d(e,t){if(e.length!==t.length)throw Error(\"Number of types are not matching the values\");for(var r,a,l=[],c=0;c<e.length;c++){var d=s(e[c]),h=t[c];if(\"bytes\"===d)l.push(h);else if(\"string\"===d)l.push(new n(h,\"utf8\"));else if(\"bool\"===d)l.push(new n(h?\"01\":\"00\",\"hex\"));else if(\"address\"===d)l.push(i.setLength(h,20));else if(d.startsWith(\"bytes\")){if((r=o(d))<1||r>32)throw Error(\"Invalid bytes<N> width: \"+r);l.push(i.setLengthRight(h,r))}else if(d.startsWith(\"uint\")){if((r=o(d))%8||r<8||r>256)throw Error(\"Invalid uint<N> width: \"+r);a=u(h);let e=i.bitLengthFromBigInt(a);if(e>r)throw Error(\"Supplied uint exceeds width: \"+r+\" vs \"+e);l.push(i.bufferBEFromBigInt(a,r/8))}else if(d.startsWith(\"int\")){if((r=o(d))%8||r<8||r>256)throw Error(\"Invalid int<N> width: \"+r);a=u(h);let e=i.bitLengthFromBigInt(a);if(e>r)throw Error(\"Supplied int exceeds width: \"+r+\" vs \"+e);let t=i.twosFromBigInt(a,r);l.push(i.bufferBEFromBigInt(t,r/8))}else throw Error(\"Unsupported or invalid type: \"+d)}return n.concat(l)}e.exports={rawEncode:function(e,t){var r=[],i=[],o=32*e.length;for(var a in e){var u=s(e[a]),d=c(u,t[a]);\"string\"===u||\"bytes\"===u||\"dynamic\"===l(u)?(r.push(c(\"uint256\",o)),i.push(d),o+=d.length):r.push(d)}return n.concat(r.concat(i))},solidityPack:d,soliditySHA3:function(e,t){return i.keccak(d(e,t))}}},80745:function(e,t,r){var n=r(9109).Buffer;let i=r(77114),s=r(86105),o={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},a={encodeData(e,t,r,o=!0){let a=[\"bytes32\"],l=[this.hashType(e,r)];if(o){let u=(e,t,a)=>{if(void 0!==r[t])return[\"bytes32\",null==a?\"0x0000000000000000000000000000000000000000000000000000000000000000\":i.keccak(this.encodeData(t,a,r,o))];if(void 0===a)throw Error(`missing value for field ${e} of type ${t}`);if(\"bytes\"===t)return[\"bytes32\",i.keccak(a)];if(\"string\"===t)return\"string\"==typeof a&&(a=n.from(a,\"utf8\")),[\"bytes32\",i.keccak(a)];if(t.lastIndexOf(\"]\")===t.length-1){let r=t.slice(0,t.lastIndexOf(\"[\")),n=a.map(t=>u(e,r,t));return[\"bytes32\",i.keccak(s.rawEncode(n.map(([e])=>e),n.map(([,e])=>e)))]}return[t,a]};for(let n of r[e]){let[e,r]=u(n.name,n.type,t[n.name]);a.push(e),l.push(r)}}else for(let s of r[e]){let e=t[s.name];if(void 0!==e){if(\"bytes\"===s.type)a.push(\"bytes32\"),e=i.keccak(e),l.push(e);else if(\"string\"===s.type)a.push(\"bytes32\"),\"string\"==typeof e&&(e=n.from(e,\"utf8\")),e=i.keccak(e),l.push(e);else if(void 0!==r[s.type])a.push(\"bytes32\"),e=i.keccak(this.encodeData(s.type,e,r,o)),l.push(e);else if(s.type.lastIndexOf(\"]\")===s.type.length-1)throw Error(\"Arrays currently unimplemented in encodeData\");else a.push(s.type),l.push(e)}}return s.rawEncode(a,l)},encodeType(e,t){let r=\"\",n=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let i of n=[e].concat(n.sort())){if(!t[i])throw Error(\"No type definition specified: \"+i);r+=i+\"(\"+t[i].map(({name:e,type:t})=>t+\" \"+e).join(\",\")+\")\"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\\w*/)[0],r.includes(e)||void 0===t[e])return r;for(let n of(r.push(e),t[e]))for(let e of this.findTypeDependencies(n.type,t,r))r.includes(e)||r.push(e);return r},hashStruct(e,t,r,n=!0){return i.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return i.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let r in o.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let r=this.sanitizeData(e),s=[n.from(\"1901\",\"hex\")];return s.push(this.hashStruct(\"EIP712Domain\",r.domain,r.types,t)),\"EIP712Domain\"!==r.primaryType&&s.push(this.hashStruct(r.primaryType,r.message,r.types,t)),i.keccak(n.concat(s))}};e.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){let t=Error(\"Expect argument to be non-empty array\");if(\"object\"!=typeof e||!e.length)throw t;let r=e.map(function(e){return\"bytes\"===e.type?i.toBuffer(e.value):e.value}),n=e.map(function(e){return e.type}),o=e.map(function(e){if(!e.name)throw t;return e.type+\" \"+e.name});return s.soliditySHA3([\"bytes32\",\"bytes32\"],[s.soliditySHA3(Array(e.length).fill(\"string\"),o),s.soliditySHA3(n,r)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},77114:function(e,t,r){var n=r(9109).Buffer;let i=r(6230);function s(e){return n.allocUnsafe(e).fill(0)}function o(e,t){let r=e.toString(16);r.length%2!=0&&(r=\"0\"+r);let i=r.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;i.length<t;)i.unshift(0);return n.from(i)}function a(e,t,r){let n=s(t);return(e=l(e),r)?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)}function l(e){if(!n.isBuffer(e)){if(Array.isArray(e))e=n.from(e);else if(\"string\"==typeof e){var t;e=u(e)?n.from((t=c(e)).length%2?\"0\"+t:t,\"hex\"):n.from(e)}else if(\"number\"==typeof e)e=intToBuffer(e);else if(null==e)e=n.allocUnsafe(0);else if(\"bigint\"==typeof e)e=o(e);else if(e.toArray)e=n.from(e.toArray());else throw Error(\"invalid type\")}return e}function u(e){return\"string\"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function c(e){return\"string\"==typeof e&&e.startsWith(\"0x\")?e.slice(2):e}e.exports={zeros:s,setLength:a,setLengthRight:function(e,t){return a(e,t,!0)},isHexString:u,stripHexPrefix:c,toBuffer:l,bufferToHex:function(e){return\"0x\"+(e=l(e)).toString(\"hex\")},keccak:function(e,t){return e=l(e),t||(t=256),i(\"keccak\"+t).update(e).digest()},bitLengthFromBigInt:function(e){return e.toString(2).length},bufferBEFromBigInt:o,twosFromBigInt:function(e,t){return(e<0n?(~e&(1n<<BigInt(t))-1n)+1n:e)&(1n<<BigInt(t))-1n}}},54750:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION=\"4.0.3\"},25796:function(e,t,r){\"use strict\";function n(){for(var e,t,r=0,n=\"\";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i=\"\";if(\"string\"==typeof t||\"number\"==typeof t)i+=t;else if(\"object\"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=\" \"),i+=n);else for(r in t)t[r]&&(i&&(i+=\" \"),i+=r)}return i}(e))&&(n&&(n+=\" \"),n+=t);return n}r.r(t),r.d(t,{clsx:function(){return n}}),t.default=n},59035:function(e,t,r){\"use strict\";r.d(t,{Sg:function(){return o},zt:function(){return a}});var n=r(22594);r(9784);var i=r(36173);let s=new(r(13421)).Yd(\"abstract-provider/5.7.0\");class o extends i.dk{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class a{constructor(){s.checkAbstract(new.target,a),(0,i.zG)(this,\"_isProvider\",!0)}getFeeData(){var e,t,r,s;return e=this,t=void 0,r=void 0,s=function*(){let{block:e,gasPrice:t}=yield(0,i.mE)({block:this.getBlock(\"latest\"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,s=null,o=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,o=n.O$.from(\"1500000000\"),s=e.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:s,maxPriorityFeePerGas:o,gasPrice:t}},new(r||(r=Promise))(function(n,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function a(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},37637:function(e,t,r){\"use strict\";r.d(t,{E:function(){return u},b:function(){return c}});var n=r(36173),i=r(13421),s=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let o=new i.Yd(\"abstract-signer/5.7.0\"),a=[\"accessList\",\"ccipReadEnabled\",\"chainId\",\"customData\",\"data\",\"from\",\"gasLimit\",\"gasPrice\",\"maxFeePerGas\",\"maxPriorityFeePerGas\",\"nonce\",\"to\",\"type\",\"value\"],l=[i.Yd.errors.INSUFFICIENT_FUNDS,i.Yd.errors.NONCE_EXPIRED,i.Yd.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){o.checkAbstract(new.target,u),(0,n.zG)(this,\"_isSigner\",!0)}getBalance(e){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getBalance\"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getTransactionCount\"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return s(this,void 0,void 0,function*(){this._checkProvider(\"estimateGas\");let t=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return s(this,void 0,void 0,function*(){this._checkProvider(\"call\");let r=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return s(this,void 0,void 0,function*(){this._checkProvider(\"sendTransaction\");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getChainId\"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getGasPrice\"),yield this.provider.getGasPrice()})}getFeeData(){return s(this,void 0,void 0,function*(){return this._checkProvider(\"getFeeData\"),yield this.provider.getFeeData()})}resolveName(e){return s(this,void 0,void 0,function*(){return this._checkProvider(\"resolveName\"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===a.indexOf(t)&&o.throwArgumentError(\"invalid transaction key: \"+t,\"transaction\",e);let t=(0,n.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&o.throwArgumentError(\"from address mismatch\",\"transaction\",e),t[0])),t}populateTransaction(e){return s(this,void 0,void 0,function*(){let t=yield(0,n.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>s(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&o.throwArgumentError(\"provided ENS name resolves to null\",\"tx.to\",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?o.throwArgumentError(\"eip-1559 transaction do not support gasPrice\",\"transaction\",e):(0===t.type||1===t.type)&&r&&o.throwArgumentError(\"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas\",\"transaction\",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&o.throwError(\"network does not support EIP-1559\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"populateTransaction\"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):o.throwError(\"failed to get consistent fee data\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"signer.getFeeData\"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount(\"pending\")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(l.indexOf(e.code)>=0)throw e;return o.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&o.throwArgumentError(\"chainId address mismatch\",\"transaction\",e),t[0])),yield(0,n.mE)(t)})}_checkProvider(e){this.provider||o.throwError(\"missing provider\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:e||\"_checkProvider\"})}static isSigner(e){return!!(e&&e._isSigner)}}class c extends u{constructor(e,t){super(),(0,n.zG)(this,\"address\",e),(0,n.zG)(this,\"provider\",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{o.throwError(e,i.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail(\"VoidSigner cannot sign messages\",\"signMessage\")}signTransaction(e){return this._fail(\"VoidSigner cannot sign transactions\",\"signTransaction\")}_signTypedData(e,t,r){return this._fail(\"VoidSigner cannot sign typed data\",\"signTypedData\")}connect(e){return new c(this.address,e)}}},89005:function(e,t,r){\"use strict\";r.d(t,{Kn:function(){return d},CR:function(){return h}});var n=r(9784),i=r(22594),s=r(43481),o=r(18162);let a=new(r(13421)).Yd(\"address/5.7.0\");function l(e){(0,n.A7)(e,20)||a.throwArgumentError(\"invalid address\",\"address\",e);let t=(e=e.toLowerCase()).substring(2).split(\"\"),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.lE)((0,s.w)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return\"0x\"+t.join(\"\")}let u={};for(let e=0;e<10;e++)u[String(e)]=String(e);for(let e=0;e<26;e++)u[String.fromCharCode(65+e)]=String(10+e);let c=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function d(e){let t=null;if(\"string\"!=typeof e&&a.throwArgumentError(\"invalid address\",\"address\",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&a.throwArgumentError(\"bad address checksum\",\"address\",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+\"00\").split(\"\").map(e=>u[e]).join(\"\");for(;t.length>=c;){let e=t.substring(0,c);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r=\"0\"+r;return r}(e)&&a.throwArgumentError(\"bad icap checksum\",\"address\",e),t=(0,i.g$)(e.substring(4));t.length<40;)t=\"0\"+t;t=l(\"0x\"+t)}else a.throwArgumentError(\"invalid address\",\"address\",e);return t}function h(e){let t=null;try{t=d(e.from)}catch(t){a.throwArgumentError(\"missing from address\",\"transaction\",e)}let r=(0,n.G1)((0,n.lE)(i.O$.from(e.nonce).toHexString()));return d((0,n.p3)((0,s.w)((0,o.c)([t,r])),12))}},38418:function(e,t,r){\"use strict\";r.d(t,{i:function(){return n}});let n=\"bignumber/5.7.0\"},22594:function(e,t,r){\"use strict\";r.d(t,{O$:function(){return f},Zm:function(){return d},g$:function(){return b}});var n=r(58171),i=r.n(n),s=r(9784),o=r(13421),a=r(38418),l=i().BN;let u=new o.Yd(a.i),c={};function d(e){return null!=e&&(f.isBigNumber(e)||\"number\"==typeof e&&e%1==0||\"string\"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.A7)(e)||\"bigint\"==typeof e||(0,s._t)(e))}let h=!1;class f{constructor(e,t){e!==c&&u.throwError(\"cannot call constructor directly; use BigNumber.from\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new (BigNumber)\"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return g(m(this).fromTwos(e))}toTwos(e){return g(m(this).toTwos(e))}abs(){return\"-\"===this._hex[0]?f.from(this._hex.substring(1)):this}add(e){return g(m(this).add(m(e)))}sub(e){return g(m(this).sub(m(e)))}div(e){return f.from(e).isZero()&&y(\"division-by-zero\",\"div\"),g(m(this).div(m(e)))}mul(e){return g(m(this).mul(m(e)))}mod(e){let t=m(e);return t.isNeg()&&y(\"division-by-zero\",\"mod\"),g(m(this).umod(t))}pow(e){let t=m(e);return t.isNeg()&&y(\"negative-power\",\"pow\"),g(m(this).pow(t))}and(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y(\"unbound-bitwise-result\",\"and\"),g(m(this).and(t))}or(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y(\"unbound-bitwise-result\",\"or\"),g(m(this).or(t))}xor(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y(\"unbound-bitwise-result\",\"xor\"),g(m(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y(\"negative-width\",\"mask\"),g(m(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y(\"negative-width\",\"shl\"),g(m(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y(\"negative-width\",\"shr\"),g(m(this).shrn(e))}eq(e){return m(this).eq(m(e))}lt(e){return m(this).lt(m(e))}lte(e){return m(this).lte(m(e))}gt(e){return m(this).gt(m(e))}gte(e){return m(this).gte(m(e))}isNegative(){return\"-\"===this._hex[0]}isZero(){return m(this).isZero()}toNumber(){try{return m(this).toNumber()}catch(e){y(\"overflow\",\"toNumber\",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError(\"this platform does not support BigInt\",o.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn(\"BigNumber.toString does not accept any parameters; base-10 is assumed\")):16===arguments[0]?u.throwError(\"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()\",o.Yd.errors.UNEXPECTED_ARGUMENT,{}):u.throwError(\"BigNumber.toString does not accept parameters\",o.Yd.errors.UNEXPECTED_ARGUMENT,{})),m(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:\"BigNumber\",hex:this.toHexString()}}static from(e){if(e instanceof f)return e;if(\"string\"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new f(c,p(e)):e.match(/^-?[0-9]+$/)?new f(c,p(new l(e))):u.throwArgumentError(\"invalid BigNumber string\",\"value\",e);if(\"number\"==typeof e)return e%1&&y(\"underflow\",\"BigNumber.from\",e),(e>=9007199254740991||e<=-9007199254740991)&&y(\"overflow\",\"BigNumber.from\",e),f.from(String(e));if(\"bigint\"==typeof e)return f.from(e.toString());if((0,s._t)(e))return f.from((0,s.Dv)(e));if(e){if(e.toHexString){let t=e.toHexString();if(\"string\"==typeof t)return f.from(t)}else{let t=e._hex;if(null==t&&\"BigNumber\"===e.type&&(t=e.hex),\"string\"==typeof t&&((0,s.A7)(t)||\"-\"===t[0]&&(0,s.A7)(t.substring(1))))return f.from(t)}}return u.throwArgumentError(\"invalid BigNumber value\",\"value\",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function p(e){if(\"string\"!=typeof e)return p(e.toString(16));if(\"-\"===e[0])return(\"-\"===(e=e.substring(1))[0]&&u.throwArgumentError(\"invalid hex\",\"value\",e),\"0x00\"===(e=p(e)))?e:\"-\"+e;if(\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),\"0x\"===e)return\"0x00\";for(e.length%2&&(e=\"0x0\"+e.substring(2));e.length>4&&\"0x00\"===e.substring(0,4);)e=\"0x\"+e.substring(4);return e}function g(e){return f.from(p(e))}function m(e){let t=f.from(e).toHexString();return\"-\"===t[0]?new l(\"-\"+t.substring(3),16):new l(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,o.Yd.errors.NUMERIC_FAULT,n)}function b(e){return new l(e,36).toString(16)}},9784:function(e,t,r){\"use strict\";r.d(t,{lE:function(){return u},zo:function(){return c},xs:function(){return y},E1:function(){return g},p3:function(){return m},$P:function(){return b},$m:function(){return v},Dv:function(){return p},_t:function(){return l},Zq:function(){return o},A7:function(){return h},N:function(){return w},G1:function(){return d}});let n=new(r(13421)).Yd(\"bytes/5.7.0\");function i(e){return!!e.toHexString}function s(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return h(e)&&!(e.length%2)||l(e)}function a(e){return\"number\"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if(\"string\"==typeof e||!a(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!a(r)||r<0||r>=256)return!1}return!0}function u(e,t){if(t||(t={}),\"number\"==typeof e){n.checkSafeUint53(e,\"invalid arrayify value\");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),s(new Uint8Array(t))}if(t.allowMissingPrefix&&\"string\"==typeof e&&\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),i(e)&&(e=e.toHexString()),h(e)){let r=e.substring(2);r.length%2&&(\"left\"===t.hexPad?r=\"0\"+r:\"right\"===t.hexPad?r+=\"0\":n.throwArgumentError(\"hex data is odd-length\",\"value\",e));let i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return s(new Uint8Array(i))}return l(e)?s(new Uint8Array(e)):n.throwArgumentError(\"invalid arrayify value\",\"value\",e)}function c(e){let t=e.map(e=>u(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),s(r)}function d(e){let t=u(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function h(e,t){return\"string\"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let f=\"0123456789abcdef\";function p(e,t){if(t||(t={}),\"number\"==typeof e){n.checkSafeUint53(e,\"invalid hexlify value\");let t=\"\";for(;e;)t=f[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t=\"0\"+t),\"0x\"+t):\"0x00\"}if(\"bigint\"==typeof e)return(e=e.toString(16)).length%2?\"0x0\"+e:\"0x\"+e;if(t.allowMissingPrefix&&\"string\"==typeof e&&\"0x\"!==e.substring(0,2)&&(e=\"0x\"+e),i(e))return e.toHexString();if(h(e))return e.length%2&&(\"left\"===t.hexPad?e=\"0x0\"+e.substring(2):\"right\"===t.hexPad?e+=\"0\":n.throwArgumentError(\"hex data is odd-length\",\"value\",e)),e.toLowerCase();if(l(e)){let t=\"0x\";for(let r=0;r<e.length;r++){let n=e[r];t+=f[(240&n)>>4]+f[15&n]}return t}return n.throwArgumentError(\"invalid hexlify value\",\"value\",e)}function g(e){if(\"string\"!=typeof e)e=p(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,r){return(\"string\"!=typeof e?e=p(e):(!h(e)||e.length%2)&&n.throwArgumentError(\"invalid hexData\",\"value\",e),t=2+2*t,null!=r)?\"0x\"+e.substring(t,2+2*r):\"0x\"+e.substring(t)}function y(e){let t=\"0x\";return e.forEach(e=>{t+=p(e).substring(2)}),t}function b(e){let t=function(e){\"string\"!=typeof e&&(e=p(e)),h(e)||n.throwArgumentError(\"invalid hex string\",\"value\",e),e=e.substring(2);let t=0;for(;t<e.length&&\"0\"===e[t];)t++;return\"0x\"+e.substring(t)}(p(e,{hexPad:\"left\"}));return\"0x\"===t?\"0x0\":t}function v(e,t){for(\"string\"!=typeof e?e=p(e):h(e)||n.throwArgumentError(\"invalid hex string\",\"value\",e),e.length>2*t+2&&n.throwArgumentError(\"value out of range\",\"value\",arguments[1]);e.length<2*t+2;)e=\"0x0\"+e.substring(2);return e}function w(e){let t={r:\"0x\",s:\"0x\",_vs:\"0x\",recoveryParam:0,v:0,yParityAndS:\"0x\",compact:\"0x\"};if(o(e)){let r=u(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64))):65===r.length?(t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64)),t.v=r[64]):n.throwArgumentError(\"invalid signature string\",\"signature\",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError(\"signature invalid v byte\",\"signature\",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=p(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=function(e,t){(e=u(e)).length>t&&n.throwArgumentError(\"value out of range\",\"value\",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),s(r)}(u(t._vs),32);t._vs=p(r);let i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&n.throwArgumentError(\"signature recoveryParam mismatch _vs\",\"signature\",e),r[0]&=127;let o=p(r);null==t.s?t.s=o:t.s!==o&&n.throwArgumentError(\"signature v mismatch _vs\",\"signature\",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError(\"signature missing v and recoveryParam\",\"signature\",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError(\"signature recoveryParam mismatch v\",\"signature\",e)}null!=t.r&&h(t.r)?t.r=v(t.r,32):n.throwArgumentError(\"signature missing or invalid r\",\"signature\",e),null!=t.s&&h(t.s)?t.s=v(t.s,32):n.throwArgumentError(\"signature missing or invalid s\",\"signature\",e);let r=u(t.s);r[0]>=128&&n.throwArgumentError(\"signature s out of range\",\"signature\",e),t.recoveryParam&&(r[0]|=128);let i=p(r);t._vs&&(h(t._vs)||n.throwArgumentError(\"signature invalid _vs\",\"signature\",e),t._vs=v(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&n.throwArgumentError(\"signature _vs mismatch v and s\",\"signature\",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}},75986:function(e,t,r){\"use strict\";r.d(t,{Bz:function(){return a},_Y:function(){return s},fh:function(){return o},tL:function(){return i}});var n=r(22594);let i=n.O$.from(-1),s=n.O$.from(0),o=n.O$.from(1),a=n.O$.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\")},22554:function(e,t,r){\"use strict\";r.d(t,{CH:function(){return eC}});var n=r(9784),i=r(22594),s=r(36173),o=r(13421);let a=\"abi/5.7.0\",l=new o.Yd(a);class u{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){l.throwArgumentError(e,this.localName,t)}}class c{constructor(e){(0,s.zG)(this,\"wordSize\",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,n.xs)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,n.zo)(e._data))}writeBytes(e){let t=(0,n.lE)(e),r=t.length%this.wordSize;return r&&(t=(0,n.zo)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,n.lE)(i.O$.from(e));return t.length>this.wordSize&&l.throwError(\"value out-of-bounds\",o.Yd.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.zo)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class d{constructor(e,t,r,i){(0,s.zG)(this,\"_data\",(0,n.lE)(e)),(0,s.zG)(this,\"wordSize\",t||32),(0,s.zG)(this,\"_coerceFunc\",r),(0,s.zG)(this,\"allowLoose\",i),this._offset=0}get data(){return(0,n.Dv)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match(\"^u?int([0-9]+)$\");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):d.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:l.throwError(\"data out-of-bounds\",o.Yd.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new d(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return i.O$.from(this.readBytes(this.wordSize))}}var h=r(89005),f=r(99554),p=r(43481);class g extends u{constructor(e){super(\"address\",\"address\",e,!1)}defaultValue(){return\"0x0000000000000000000000000000000000000000\"}encode(e,t){try{t=(0,h.Kn)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,h.Kn)((0,n.$m)(e.readValue().toHexString(),20))}}class m extends u{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}let y=new o.Yd(a);function b(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&\"object\"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||y.throwError(\"cannot encode object for signature with missing names\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"values\",coder:t,value:r}),e[n]&&y.throwError(\"cannot encode object for signature with duplicate names\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"values\",coder:t,value:r}),e[n]=!0,r[n]})}else y.throwArgumentError(\"invalid tuple value\",\"tuple\",r);t.length!==n.length&&y.throwArgumentError(\"types/value length mismatch\",\"tuple\",r);let i=new c(e.wordSize),s=new c(e.wordSize),a=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=s.length;e.encode(s,r);let n=i.writeUpdatableValue();a.push(e=>{n(e+t)})}else e.encode(i,r)}),a.forEach(e=>{e(i.length)}),e.appendWriter(i)+e.appendWriter(s)}function v(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readValue(),s=n.subReader(r.toNumber());try{i=t.decode(s)}catch(e){if(e.code===o.Yd.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===o.Yd.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)});let i=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let n=e.localName;if(!n||1!==i[n]||(\"length\"===n&&(n=\"_length\"),null!=r[n]))return;let s=r[t];s instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw s}}):r[n]=s});for(let e=0;e<r.length;e++){let t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(r)}class w extends u{constructor(e,t,r){super(\"array\",e.type+\"[\"+(t>=0?t:\"\")+\"]\",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError(\"expected array value\",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),y.checkArgumentCount(t.length,r,\"coder array\"+(this.localName?\" \"+this.localName:\"\"));let n=[];for(let e=0;e<t.length;e++)n.push(this.coder);return b(e,n,t)}decode(e){let t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&y.throwError(\"insufficient data length\",o.Yd.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;e<t;e++)r.push(new m(this.coder));return e.coerce(this.name,v(e,r))}}class _ extends u{constructor(e){super(\"bool\",\"bool\",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class E extends u{constructor(e,t){super(e,e,t,!0)}defaultValue(){return\"0x\"}encode(e,t){return t=(0,n.lE)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class A extends E{constructor(e){super(\"bytes\",e)}decode(e){return e.coerce(this.name,(0,n.Dv)(super.decode(e)))}}class x extends u{constructor(e,t){let r=\"bytes\"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return\"0x0000000000000000000000000000000000000000000000000000000000000000\".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.lE)(t);return r.length!==this.size&&this._throwError(\"incorrect data length\",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,n.Dv)(e.readBytes(this.size)))}}class k extends u{constructor(e){super(\"null\",\"\",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError(\"not null\",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var S=r(75986);class $ extends u{constructor(e,t,r){let n=(t?\"int\":\"uint\")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=i.O$.from(t),n=S.Bz.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(S.fh).mul(S.tL)))&&this._throwError(\"value out-of-bounds\",t)}else(r.lt(S._Y)||r.gt(n.mask(8*this.size)))&&this._throwError(\"value out-of-bounds\",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var C=r(28257);class P extends E{constructor(e){super(\"string\",e)}defaultValue(){return\"\"}encode(e,t){return super.encode(e,(0,C.Y0)(t))}decode(e){return(0,C.ZN)(super.decode(e))}}class I extends u{constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super(\"tuple\",\"tuple(\"+n.join(\",\")+\")\",t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&(\"length\"===i&&(i=\"_length\"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return b(e,this.coders,t)}decode(e){return e.coerce(this.name,v(e,this.coders))}}let O=new o.Yd(a),N={},M={calldata:!0,memory:!0,storage:!0},R={calldata:!0,memory:!0};function T(e,t){if(\"bytes\"===e||\"string\"===e){if(M[t])return!0}else if(\"address\"===e){if(\"payable\"===t)return!0}else if((e.indexOf(\"[\")>=0||\"tuple\"===e)&&R[t])return!0;return(M[t]||\"payable\"===t)&&O.throwArgumentError(\"invalid modifier\",\"name\",t),!1}function D(e,t){for(let r in t)(0,s.zG)(e,r,t[r])}let L=Object.freeze({sighash:\"sighash\",minimal:\"minimal\",full:\"full\",json:\"json\"}),j=new RegExp(/^(.*)\\[([0-9]*)\\]$/);class B{constructor(e,t){e!==N&&O.throwError(\"use fromString\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new ParamType()\"}),D(this,t);let r=this.type.match(j);r?D(this,{arrayLength:parseInt(r[2]||\"-1\"),arrayChildren:B.fromObject({type:r[1],components:this.components}),baseType:\"array\"}):D(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?\"tuple\":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json){let t={type:\"tuple\"===this.baseType?\"tuple\":this.type,name:this.name||void 0};return\"boolean\"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t=\"\";return\"array\"===this.baseType?t+=this.arrayChildren.format(e)+\"[\"+(this.arrayLength<0?\"\":String(this.arrayLength))+\"]\":\"tuple\"===this.baseType?(e!==L.sighash&&(t+=this.type),t+=\"(\"+this.components.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\")\"):t+=this.type,e!==L.sighash&&(!0===this.indexed&&(t+=\" indexed\"),e===L.full&&this.name&&(t+=\" \"+this.name)),t}static from(e,t){return\"string\"==typeof e?B.fromString(e,t):B.fromObject(e)}static fromObject(e){return B.isParamType(e)?e:new B(N,{name:e.name||null,type:Z(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(B.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){O.throwArgumentError(`unexpected character at position ${t}`,\"param\",e)}function i(e){let r={type:\"\",name:\"\",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\\s/g,\" \");let s={type:\"\",name:\"\",state:{allowType:!0}},o=s;for(let r=0;r<e.length;r++){let s=e[r];switch(s){case\"(\":o.state.allowType&&\"\"===o.type?o.type=\"tuple\":o.state.allowParams||n(r),o.state.allowType=!1,o.type=Z(o.type),o.components=[i(o)],o=o.components[0];break;case\")\":delete o.state,\"indexed\"===o.name&&(t||n(r),o.indexed=!0,o.name=\"\"),T(o.type,o.name)&&(o.name=\"\"),o.type=Z(o.type);let a=o;(o=o.parent)||n(r),delete a.parent,o.state.allowParams=!1,o.state.allowName=!0,o.state.allowArray=!0;break;case\",\":delete o.state,\"indexed\"===o.name&&(t||n(r),o.indexed=!0,o.name=\"\"),T(o.type,o.name)&&(o.name=\"\"),o.type=Z(o.type);let l=i(o.parent);o.parent.components.push(l),delete o.parent,o=l;break;case\" \":o.state.allowType&&\"\"!==o.type&&(o.type=Z(o.type),delete o.state.allowType,o.state.allowName=!0,o.state.allowParams=!0),o.state.allowName&&\"\"!==o.name&&(\"indexed\"===o.name?(t||n(r),o.indexed&&n(r),o.indexed=!0,o.name=\"\"):T(o.type,o.name)?o.name=\"\":o.state.allowName=!1);break;case\"[\":o.state.allowArray||n(r),o.type+=s,o.state.allowArray=!1,o.state.allowName=!1,o.state.readArray=!0;break;case\"]\":o.state.readArray||n(r),o.type+=s,o.state.readArray=!1,o.state.allowArray=!0,o.state.allowName=!0;break;default:o.state.allowType?(o.type+=s,o.state.allowParams=!0,o.state.allowArray=!0):o.state.allowName?(o.name+=s,delete o.state.allowArray):o.state.readArray?o.type+=s:n(r)}}return o.parent&&O.throwArgumentError(\"unexpected eof\",\"param\",e),delete s.state,\"indexed\"===o.name?(t||n(r.length-7),o.indexed&&n(r.length-7),o.indexed=!0,o.name=\"\"):T(o.type,o.name)&&(o.name=\"\"),s.type=Z(s.type),s}(e,!!t),B.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(e){return!!(null!=e&&e._isParamType)}}function F(e,t){return(function(e){e=e.trim();let t=[],r=\"\",n=0;for(let i=0;i<e.length;i++){let s=e[i];\",\"===s&&0===n?(t.push(r),r=\"\"):(r+=s,\"(\"===s?n++:\")\"===s&&-1==--n&&O.throwArgumentError(\"unbalanced parenthesis\",\"value\",e))}return r&&t.push(r),t})(e).map(e=>B.fromString(e,t))}class U{constructor(e,t){e!==N&&O.throwError(\"use a static from method\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new Fragment()\"}),D(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return U.isFragment(e)?e:\"string\"==typeof e?U.fromString(e):U.fromObject(e)}static fromObject(e){if(U.isFragment(e))return e;switch(e.type){case\"function\":return W.fromObject(e);case\"event\":return z.fromObject(e);case\"constructor\":return V.fromObject(e);case\"error\":return Y.fromObject(e);case\"fallback\":case\"receive\":return null}return O.throwArgumentError(\"invalid fragment object\",\"value\",e)}static fromString(e){return\"event\"===(e=(e=(e=e.replace(/\\s/g,\" \")).replace(/\\(/g,\" (\").replace(/\\)/g,\") \").replace(/\\s+/g,\" \")).trim()).split(\" \")[0]?z.fromString(e.substring(5).trim()):\"function\"===e.split(\" \")[0]?W.fromString(e.substring(8).trim()):\"constructor\"===e.split(\"(\")[0].trim()?V.fromString(e.trim()):\"error\"===e.split(\" \")[0]?Y.fromString(e.substring(5).trim()):O.throwArgumentError(\"unsupported fragment\",\"value\",e)}static isFragment(e){return!!(e&&e._isFragment)}}class z extends U{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"event\",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=\"\";return e!==L.sighash&&(t+=\"event \"),t+=this.name+\"(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \",e!==L.sighash&&this.anonymous&&(t+=\"anonymous \"),t.trim()}static from(e){return\"string\"==typeof e?z.fromString(e):z.fromObject(e)}static fromObject(e){return z.isEventFragment(e)?e:(\"event\"!==e.type&&O.throwArgumentError(\"invalid event object\",\"value\",e),new z(N,{name:Q(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(B.fromObject):[],type:\"event\"}))}static fromString(e){let t=e.match(X);t||O.throwArgumentError(\"invalid event string\",\"value\",e);let r=!1;return t[3].split(\" \").forEach(e=>{switch(e.trim()){case\"anonymous\":r=!0;break;case\"\":break;default:O.warn(\"unknown modifier: \"+e)}}),z.fromObject({name:t[1].trim(),anonymous:r,inputs:F(t[2],!0),type:\"event\"})}static isEventFragment(e){return e&&e._isFragment&&\"event\"===e.type}}function q(e,t){t.gas=null;let r=e.split(\"@\");return 1!==r.length?(r.length>2&&O.throwArgumentError(\"invalid human-readable ABI signature\",\"value\",e),r[1].match(/^[0-9]+$/)||O.throwArgumentError(\"invalid human-readable ABI signature gas\",\"value\",e),t.gas=i.O$.from(r[1]),r[0]):e}function H(e,t){t.constant=!1,t.payable=!1,t.stateMutability=\"nonpayable\",e.split(\" \").forEach(e=>{switch(e.trim()){case\"constant\":t.constant=!0;break;case\"payable\":t.payable=!0,t.stateMutability=\"payable\";break;case\"nonpayable\":t.payable=!1,t.stateMutability=\"nonpayable\";break;case\"pure\":t.constant=!0,t.stateMutability=\"pure\";break;case\"view\":t.constant=!0,t.stateMutability=\"view\";break;case\"external\":case\"public\":case\"\":break;default:console.log(\"unknown modifier: \"+e)}})}function G(e){let t={constant:!1,payable:!0,stateMutability:\"payable\"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant=\"view\"===t.stateMutability||\"pure\"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&O.throwArgumentError(\"cannot have constant function with mutability \"+t.stateMutability,\"value\",e),t.payable=\"payable\"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&O.throwArgumentError(\"cannot have payable function with mutability \"+t.stateMutability,\"value\",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||\"constructor\"===e.type||O.throwArgumentError(\"unable to determine stateMutability\",\"value\",e),t.constant=!!e.constant,t.constant?t.stateMutability=\"view\":t.stateMutability=t.payable?\"payable\":\"nonpayable\",t.payable&&t.constant&&O.throwArgumentError(\"cannot have constant payable function\",\"value\",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?\"view\":\"payable\"):\"constructor\"!==e.type&&O.throwArgumentError(\"unable to determine stateMutability\",\"value\",e),t}class V extends U{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"constructor\",stateMutability:\"nonpayable\"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===L.sighash&&O.throwError(\"cannot format a constructor for sighash\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"format(sighash)\"});let t=\"constructor(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \";return this.stateMutability&&\"nonpayable\"!==this.stateMutability&&(t+=this.stateMutability+\" \"),t.trim()}static from(e){return\"string\"==typeof e?V.fromString(e):V.fromObject(e)}static fromObject(e){if(V.isConstructorFragment(e))return e;\"constructor\"!==e.type&&O.throwArgumentError(\"invalid constructor object\",\"value\",e);let t=G(e);return t.constant&&O.throwArgumentError(\"constructor cannot be constant\",\"value\",e),new V(N,{name:null,type:e.type,inputs:e.inputs?e.inputs.map(B.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.O$.from(e.gas):null})}static fromString(e){let t={type:\"constructor\"},r=(e=q(e,t)).match(X);return r&&\"constructor\"===r[1].trim()||O.throwArgumentError(\"invalid constructor string\",\"value\",e),t.inputs=F(r[2].trim(),!1),H(r[3].trim(),t),V.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&\"constructor\"===e.type}}class W extends V{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"function\",name:this.name,constant:this.constant,stateMutability:\"nonpayable\"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=\"\";return e!==L.sighash&&(t+=\"function \"),t+=this.name+\"(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \",e!==L.sighash&&(this.stateMutability?\"nonpayable\"!==this.stateMutability&&(t+=this.stateMutability+\" \"):this.constant&&(t+=\"view \"),this.outputs&&this.outputs.length&&(t+=\"returns (\"+this.outputs.map(t=>t.format(e)).join(\", \")+\") \"),null!=this.gas&&(t+=\"@\"+this.gas.toString()+\" \")),t.trim()}static from(e){return\"string\"==typeof e?W.fromString(e):W.fromObject(e)}static fromObject(e){if(W.isFunctionFragment(e))return e;\"function\"!==e.type&&O.throwArgumentError(\"invalid function object\",\"value\",e);let t=G(e);return new W(N,{type:e.type,name:Q(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(B.fromObject):[],outputs:e.outputs?e.outputs.map(B.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.O$.from(e.gas):null})}static fromString(e){let t={type:\"function\"},r=(e=q(e,t)).split(\" returns \");r.length>2&&O.throwArgumentError(\"invalid function string\",\"value\",e);let n=r[0].match(X);if(n||O.throwArgumentError(\"invalid function signature\",\"value\",e),t.name=n[1].trim(),t.name&&Q(t.name),t.inputs=F(n[2],!1),H(n[3].trim(),t),r.length>1){let n=r[1].match(X);(\"\"!=n[1].trim()||\"\"!=n[3].trim())&&O.throwArgumentError(\"unexpected tokens\",\"value\",e),t.outputs=F(n[2],!1)}else t.outputs=[];return W.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&\"function\"===e.type}}function K(e){let t=e.format();return(\"Error(string)\"===t||\"Panic(uint256)\"===t)&&O.throwArgumentError(`cannot specify user defined ${t} error`,\"fragment\",e),e}class Y extends U{format(e){if(e||(e=L.sighash),L[e]||O.throwArgumentError(\"invalid format type\",\"format\",e),e===L.json)return JSON.stringify({type:\"error\",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=\"\";return e!==L.sighash&&(t+=\"error \"),(t+=this.name+\"(\"+this.inputs.map(t=>t.format(e)).join(e===L.full?\", \":\",\")+\") \").trim()}static from(e){return\"string\"==typeof e?Y.fromString(e):Y.fromObject(e)}static fromObject(e){return Y.isErrorFragment(e)?e:(\"error\"!==e.type&&O.throwArgumentError(\"invalid error object\",\"value\",e),K(new Y(N,{type:e.type,name:Q(e.name),inputs:e.inputs?e.inputs.map(B.fromObject):[]})))}static fromString(e){let t={type:\"error\"},r=e.match(X);return r||O.throwArgumentError(\"invalid error signature\",\"value\",e),t.name=r[1].trim(),t.name&&Q(t.name),t.inputs=F(r[2],!1),K(Y.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&\"error\"===e.type}}function Z(e){return e.match(/^uint($|[^1-9])/)?e=\"uint256\"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e=\"int256\"+e.substring(3)),e}let J=RegExp(\"^[a-zA-Z$_][a-zA-Z0-9$_]*$\");function Q(e){return e&&e.match(J)||O.throwArgumentError(`invalid identifier \"${e}\"`,\"value\",e),e}let X=RegExp(\"^([^)(]*)\\\\((.*)\\\\)([^)(]*)$\"),ee=new o.Yd(a),et=new RegExp(/^bytes([0-9]*)$/),er=new RegExp(/^(u?int)([0-9]*)$/);class en{constructor(e){(0,s.zG)(this,\"coerceFunc\",e||null)}_getCoder(e){switch(e.baseType){case\"address\":return new g(e.name);case\"bool\":return new _(e.name);case\"string\":return new P(e.name);case\"bytes\":return new A(e.name);case\"array\":return new w(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case\"tuple\":return new I((e.components||[]).map(e=>this._getCoder(e)),e.name);case\"\":return new k(e.name)}let t=e.type.match(er);if(t){let r=parseInt(t[2]||\"256\");return(0===r||r>256||r%8!=0)&&ee.throwArgumentError(\"invalid \"+t[1]+\" bit length\",\"param\",e),new $(r/8,\"int\"===t[1],e.name)}if(t=e.type.match(et)){let r=parseInt(t[1]);return(0===r||r>32)&&ee.throwArgumentError(\"invalid bytes length\",\"param\",e),new x(r,e.name)}return ee.throwArgumentError(\"invalid type\",\"type\",e.type)}_getWordSize(){return 32}_getReader(e,t){return new d(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new c(this._getWordSize())}getDefaultValue(e){return new I(e.map(e=>this._getCoder(B.from(e))),\"_\").defaultValue()}encode(e,t){e.length!==t.length&&ee.throwError(\"types/values length mismatch\",o.Yd.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=new I(e.map(e=>this._getCoder(B.from(e))),\"_\"),n=this._getWriter();return r.encode(n,t),n.data}decode(e,t,r){return new I(e.map(e=>this._getCoder(B.from(e))),\"_\").decode(this._getReader((0,n.lE)(t),r))}}let ei=new en,es=new o.Yd(a);class eo extends s.dk{}class ea extends s.dk{}class el extends s.dk{}class eu extends s.dk{static isIndexed(e){return!!(e&&e._isIndexed)}}let ec={\"0x08c379a0\":{signature:\"Error(string)\",name:\"Error\",inputs:[\"string\"],reason:!0},\"0x4e487b71\":{signature:\"Panic(uint256)\",name:\"Panic\",inputs:[\"uint256\"]}};function ed(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class eh{constructor(e){let t=[];t=\"string\"==typeof e?JSON.parse(e):e,(0,s.zG)(this,\"fragments\",t.map(e=>U.from(e)).filter(e=>null!=e)),(0,s.zG)(this,\"_abiCoder\",(0,s.tu)(new.target,\"getAbiCoder\")()),(0,s.zG)(this,\"functions\",{}),(0,s.zG)(this,\"errors\",{}),(0,s.zG)(this,\"events\",{}),(0,s.zG)(this,\"structs\",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case\"constructor\":if(this.deploy){es.warn(\"duplicate definition - constructor\");return}(0,s.zG)(this,\"deploy\",e);return;case\"function\":t=this.functions;break;case\"event\":t=this.events;break;case\"error\":t=this.errors;break;default:return}let r=e.format();if(t[r]){es.warn(\"duplicate definition - \"+r);return}t[r]=e}),this.deploy||(0,s.zG)(this,\"deploy\",V.from({payable:!1,type:\"constructor\"})),(0,s.zG)(this,\"_isInterface\",!0)}format(e){e||(e=L.full),e===L.sighash&&es.throwArgumentError(\"interface does not support formatting sighash\",\"format\",e);let t=this.fragments.map(t=>t.format(e));return e===L.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return ei}static getAddress(e){return(0,h.Kn)(e)}static getSighash(e){return(0,n.p3)((0,f.id)(e.format()),0,4)}static getEventTopic(e){return(0,f.id)(e.format())}getFunction(e){if((0,n.A7)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];es.throwArgumentError(\"no matching function\",\"sighash\",e)}if(-1===e.indexOf(\"(\")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split(\"(\")[0]===t);return 0===r.length?es.throwArgumentError(\"no matching function\",\"name\",t):r.length>1&&es.throwArgumentError(\"multiple matching functions\",\"name\",t),this.functions[r[0]]}let t=this.functions[W.fromString(e).format()];return t||es.throwArgumentError(\"no matching function\",\"signature\",e),t}getEvent(e){if((0,n.A7)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];es.throwArgumentError(\"no matching event\",\"topichash\",t)}if(-1===e.indexOf(\"(\")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split(\"(\")[0]===t);return 0===r.length?es.throwArgumentError(\"no matching event\",\"name\",t):r.length>1&&es.throwArgumentError(\"multiple matching events\",\"name\",t),this.events[r[0]]}let t=this.events[z.fromString(e).format()];return t||es.throwArgumentError(\"no matching event\",\"signature\",e),t}getError(e){if((0,n.A7)(e)){let t=(0,s.tu)(this.constructor,\"getSighash\");for(let r in this.errors)if(e===t(this.errors[r]))return this.errors[r];es.throwArgumentError(\"no matching error\",\"sighash\",e)}if(-1===e.indexOf(\"(\")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split(\"(\")[0]===t);return 0===r.length?es.throwArgumentError(\"no matching error\",\"name\",t):r.length>1&&es.throwArgumentError(\"multiple matching errors\",\"name\",t),this.errors[r[0]]}let t=this.errors[W.fromString(e).format()];return t||es.throwArgumentError(\"no matching error\",\"signature\",e),t}getSighash(e){if(\"string\"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,s.tu)(this.constructor,\"getSighash\")(e)}getEventTopic(e){return\"string\"==typeof e&&(e=this.getEvent(e)),(0,s.tu)(this.constructor,\"getEventTopic\")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){\"string\"==typeof e&&(e=this.getError(e));let r=(0,n.lE)(t);return(0,n.Dv)(r.slice(0,4))!==this.getSighash(e)&&es.throwArgumentError(`data signature does not match error ${e.name}.`,\"data\",(0,n.Dv)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return\"string\"==typeof e&&(e=this.getError(e)),(0,n.Dv)((0,n.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){\"string\"==typeof e&&(e=this.getFunction(e));let r=(0,n.lE)(t);return(0,n.Dv)(r.slice(0,4))!==this.getSighash(e)&&es.throwArgumentError(`data signature does not match function ${e.name}.`,\"data\",(0,n.Dv)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return\"string\"==typeof e&&(e=this.getFunction(e)),(0,n.Dv)((0,n.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){\"string\"==typeof e&&(e=this.getFunction(e));let r=(0,n.lE)(t),i=null,s=\"\",a=null,l=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,n.Dv)(r.slice(0,4)),t=ec[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),l=t.name,u=t.signature,t.reason&&(i=a[0]),\"Error\"===l?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:\"Panic\"===l&&(s=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),l=t.name,u=t.format()}catch(e){}}}return es.throwError(\"call revert exception\"+s,o.Yd.errors.CALL_EXCEPTION,{method:e.format(),data:(0,n.Dv)(t),errorArgs:a,errorName:l,errorSignature:u,reason:i})}encodeFunctionResult(e,t){return\"string\"==typeof e&&(e=this.getFunction(e)),(0,n.Dv)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){\"string\"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&es.throwError(\"too many arguments for \"+e.format(),o.Yd.errors.UNEXPECTED_ARGUMENT,{argument:\"values\",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let s=(e,t)=>\"string\"===e.type?(0,f.id)(t):\"bytes\"===e.type?(0,p.w)((0,n.Dv)(t)):(\"bool\"===e.type&&\"boolean\"==typeof t&&(t=t?\"0x01\":\"0x00\"),e.type.match(/^u?int/)&&(t=i.O$.from(t).toHexString()),\"address\"===e.type&&this._abiCoder.encode([\"address\"],[t]),(0,n.$m)((0,n.Dv)(t),32));for(t.forEach((t,n)=>{let i=e.inputs[n];if(!i.indexed){null!=t&&es.throwArgumentError(\"cannot filter non-indexed parameters; must be null\",\"contract.\"+i.name,t);return}null==t?r.push(null):\"array\"===i.baseType||\"tuple\"===i.baseType?es.throwArgumentError(\"filtering with tuples or arrays not supported\",\"contract.\"+i.name,t):Array.isArray(t)?r.push(t.map(e=>s(i,e))):r.push(s(i,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){\"string\"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&es.throwArgumentError(\"event arguments/values mismatch\",\"values\",t),e.inputs.forEach((e,s)=>{let o=t[s];if(e.indexed){if(\"string\"===e.type)r.push((0,f.id)(o));else if(\"bytes\"===e.type)r.push((0,p.w)(o));else if(\"tuple\"===e.baseType||\"array\"===e.baseType)throw Error(\"not implemented\");else r.push(this._abiCoder.encode([e.type],[o]))}else n.push(e),i.push(o)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if(\"string\"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,n.A7)(r[0],32)&&r[0].toLowerCase()===t||es.throwError(\"fragment/topic mismatch\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"topics[0]\",expected:t,value:r[0]}),r=r.slice(1)}let i=[],s=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?\"string\"===e.type||\"bytes\"===e.type||\"tuple\"===e.baseType||\"array\"===e.baseType?(i.push(B.fromObject({type:\"bytes32\",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(s.push(e),a.push(!1))});let l=null!=r?this._abiCoder.decode(i,(0,n.zo)(r)):null,u=this._abiCoder.decode(s,t,!0),c=[],d=0,h=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==l)c[t]=new eu({_isIndexed:!0,hash:null});else if(a[t])c[t]=new eu({_isIndexed:!0,hash:l[h++]});else try{c[t]=l[h++]}catch(e){c[t]=e}}else try{c[t]=u[d++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){let r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw ed(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}});for(let e=0;e<c.length;e++){let t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw ed(`index ${e}`,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new ea({args:this._abiCoder.decode(t.inputs,\"0x\"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.O$.from(e.value||\"0\")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new eo({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,n.Dv)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new el({args:this._abiCoder.decode(r.inputs,\"0x\"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}var ef=r(59035),ep=r(37637),eg=r(2149),em=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let ey=new o.Yd(\"contracts/5.7.0\");function eb(e,t){return em(this,void 0,void 0,function*(){let r=yield t;\"string\"!=typeof r&&ey.throwArgumentError(\"invalid address or ENS name\",\"name\",r);try{return(0,h.Kn)(r)}catch(e){}e||ey.throwError(\"a provider or signer is needed to resolve ENS names\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"resolveName\"});let n=yield e.resolveName(r);return null==n&&ey.throwArgumentError(\"resolver or addr is not configured for ENS name\",\"name\",r),n})}function ev(e,t,r){return em(this,void 0,void 0,function*(){let a={};r.length===t.inputs.length+1&&\"object\"==typeof r[r.length-1]&&(a=(0,s.DC)(r.pop())),ey.checkArgumentCount(r.length,t.inputs.length,\"passed to contract\"),e.signer?a.from?a.from=(0,s.mE)({override:eb(e.signer,a.from),signer:e.signer.getAddress()}).then(e=>em(this,void 0,void 0,function*(){return(0,h.Kn)(e.signer)!==e.override&&ey.throwError(\"Contract with a Signer cannot override from\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"overrides.from\"}),e.override})):a.from=e.signer.getAddress():a.from&&(a.from=eb(e.provider,a.from));let l=yield(0,s.mE)({args:function e(t,r,n){return em(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((n,i)=>e(t,Array.isArray(r)?r[i]:r[n.name],n))):\"address\"===n.type?yield eb(t,r):\"tuple\"===n.type?yield e(t,r,n.components):\"array\"===n.baseType?Array.isArray(r)?yield Promise.all(r.map(r=>e(t,r,n.arrayChildren))):Promise.reject(ey.makeError(\"invalid value for array\",o.Yd.errors.INVALID_ARGUMENT,{argument:\"value\",value:r})):r})}(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,s.mE)(a)||{}}),u=e.interface.encodeFunctionData(t,l.args),c={data:u,to:l.address},d=l.overrides;if(null!=d.nonce&&(c.nonce=i.O$.from(d.nonce).toNumber()),null!=d.gasLimit&&(c.gasLimit=i.O$.from(d.gasLimit)),null!=d.gasPrice&&(c.gasPrice=i.O$.from(d.gasPrice)),null!=d.maxFeePerGas&&(c.maxFeePerGas=i.O$.from(d.maxFeePerGas)),null!=d.maxPriorityFeePerGas&&(c.maxPriorityFeePerGas=i.O$.from(d.maxPriorityFeePerGas)),null!=d.from&&(c.from=d.from),null!=d.type&&(c.type=d.type),null!=d.accessList&&(c.accessList=(0,eg.z7)(d.accessList)),null==c.gasLimit&&null!=t.gas){let e=21e3,r=(0,n.lE)(u);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);c.gasLimit=i.O$.from(t.gas).add(e)}if(d.value){let e=i.O$.from(d.value);e.isZero()||t.payable||ey.throwError(\"non-payable method cannot override value\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"overrides.value\",value:a.value}),c.value=e}d.customData&&(c.customData=(0,s.DC)(d.customData)),d.ccipReadEnabled&&(c.ccipReadEnabled=!!d.ccipReadEnabled),delete a.nonce,delete a.gasLimit,delete a.gasPrice,delete a.from,delete a.value,delete a.type,delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.customData,delete a.ccipReadEnabled;let f=Object.keys(a).filter(e=>null!=a[e]);return f.length&&ey.throwError(`cannot override ${f.map(e=>JSON.stringify(e)).join(\",\")}`,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"overrides\",overrides:f}),c})}function ew(e,t,r){let n=e.signer||e.provider;return function(...i){return em(this,void 0,void 0,function*(){let a;if(i.length===t.inputs.length+1&&\"object\"==typeof i[i.length-1]){let e=(0,s.DC)(i.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let l=yield ev(e,t,i),u=yield n.call(l,a);try{let n=e.interface.decodeFunctionResult(t,u);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===o.Yd.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=l),t}})}}function e_(e,t,r){return t.constant?ew(e,t,r):function(...r){return em(this,void 0,void 0,function*(){e.signer||ey.throwError(\"sending a transaction requires a signer\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"sendTransaction\"}),null!=e.deployTransaction&&(yield e._deployed());let n=yield ev(e,t,r),i=yield e.signer.sendTransaction(n);return function(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,s.p$)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n}),t))}(e,i),i})}}function eE(e){return e.address&&(null==e.topics||0===e.topics.length)?\"*\":(e.address||\"*\")+\"@\"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join(\"|\"):e).join(\":\"):\"\")}class eA{constructor(e,t){(0,s.zG)(this,\"tag\",e),(0,s.zG)(this,\"filter\",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class ex extends eA{constructor(){super(\"error\",null)}}class ek extends eA{constructor(e,t,r,n){let i={address:e},o=t.getEventTopic(r);n?(o!==n[0]&&ey.throwArgumentError(\"topic mismatch\",\"topics\",n),i.topics=n.slice()):i.topics=[o],super(eE(i),i),(0,s.zG)(this,\"address\",e),(0,s.zG)(this,\"interface\",t),(0,s.zG)(this,\"fragment\",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){let t=function(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){let s=e.slice();s.push(i);try{r(s,n[i])}catch(e){t.push({path:s,error:e})}}};return r([],e),t}(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class eS extends eA{constructor(e,t){super(\"*\",{address:e}),(0,s.zG)(this,\"address\",e),(0,s.zG)(this,\"interface\",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class e${constructor(e,t,r){(0,s.zG)(this,\"interface\",(0,s.tu)(new.target,\"getInterface\")(t)),null==r?((0,s.zG)(this,\"provider\",null),(0,s.zG)(this,\"signer\",null)):ep.E.isSigner(r)?((0,s.zG)(this,\"provider\",r.provider||null),(0,s.zG)(this,\"signer\",r)):ef.zt.isProvider(r)?((0,s.zG)(this,\"provider\",r),(0,s.zG)(this,\"signer\",null)):ey.throwArgumentError(\"invalid signer or provider\",\"signerOrProvider\",r),(0,s.zG)(this,\"callStatic\",{}),(0,s.zG)(this,\"estimateGas\",{}),(0,s.zG)(this,\"functions\",{}),(0,s.zG)(this,\"populateTransaction\",{}),(0,s.zG)(this,\"filters\",{});{let e={};Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,s.zG)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,s.zG)(this.filters,t,this.filters[r[0]]):ey.warn(`Duplicate definition of ${t} (${r.join(\", \")})`)})}if((0,s.zG)(this,\"_runningEvents\",{}),(0,s.zG)(this,\"_wrappedEmits\",{}),null==e&&ey.throwArgumentError(\"invalid contract address or ENS name\",\"addressOrName\",e),(0,s.zG)(this,\"address\",e),this.provider)(0,s.zG)(this,\"resolvedAddress\",eb(this.provider,e));else try{(0,s.zG)(this,\"resolvedAddress\",Promise.resolve((0,h.Kn)(e)))}catch(e){ey.throwError(\"provider is required to use ENS name as contract address\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new Contract\"})}this.resolvedAddress.catch(e=>{});let n={},i={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(i[e]){ey.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}i[e]=!0;{let r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}if(null==this[e]&&(0,s.zG)(this,e,e_(this,t,!0)),null==this.functions[e]&&(0,s.zG)(this.functions,e,e_(this,t,!1)),null==this.callStatic[e]&&(0,s.zG)(this.callStatic,e,ew(this,t,!0)),null==this.populateTransaction[e]){var r;(0,s.zG)(this.populateTransaction,e,(r=this,function(...e){return ev(r,t,e)}))}null==this.estimateGas[e]&&(0,s.zG)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...n){return em(this,void 0,void 0,function*(){r||ey.throwError(\"estimate require a provider or signer\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"estimateGas\"});let i=yield ev(e,t,n);return yield r.estimateGas(i)})}}(this,t))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,s.zG)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,s.zG)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,s.zG)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,s.zG)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,s.zG)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,h.CR)(e)}static getInterface(e){return eh.isInterface(e)?e:new eh(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>(\"0x\"===e&&ey.throwError(\"contract not deployed\",o.Yd.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:\"getDeployed\"}),this))),this._deployedPromise}fallback(e){this.signer||ey.throwError(\"sending a transactions require a signer\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"sendTransaction(fallback)\"});let t=(0,s.DC)(e||{});return[\"from\",\"to\"].forEach(function(e){null!=t[e]&&ey.throwError(\"cannot override \"+e,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){\"string\"==typeof e&&(e=new ep.b(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,s.zG)(t,\"deployTransaction\",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return eu.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(\"string\"==typeof e){if(\"error\"===e)return this._normalizeRunningEvent(new ex);if(\"event\"===e)return this._normalizeRunningEvent(new eA(\"event\",null));if(\"*\"===e)return this._normalizeRunningEvent(new eS(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new ek(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if(\"string\"!=typeof t)throw Error(\"invalid topic\");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new ek(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new eA(eE(t),t))}return this._normalizeRunningEvent(new eS(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,s.p$)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||ey.throwError(\"events require a provider or a signer with a provider\",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"once\"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit(\"event\",n),null!=n.decodeError&&this.emit(\"error\",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let i=this._getRunningEvent(e),o=(0,s.DC)(i.filter);return\"string\"==typeof t&&(0,n.A7)(t,32)?(null!=r&&ey.throwArgumentError(\"cannot specify toBlock with blockhash\",\"toBlock\",r),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=r?r:\"latest\"),this.provider.getLogs(o).then(e=>e.map(e=>this._wrapEvent(i,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class eC extends e${}},99554:function(e,t,r){\"use strict\";r.d(t,{id:function(){return s}});var n=r(43481),i=r(28257);function s(e){return(0,n.w)((0,i.Y0)(e))}},43481:function(e,t,r){\"use strict\";r.d(t,{w:function(){return o}});var n=r(83524),i=r.n(n),s=r(9784);function o(e){return\"0x\"+i().keccak_256((0,s.lE)(e))}},13421:function(e,t,r){\"use strict\";var n,i,s,o;r.d(t,{jK:function(){return i},Yd:function(){return p}});let a=!1,l=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},c=u.default,d=null,h=function(){try{let e=[];if([\"NFD\",\"NFC\",\"NFKD\",\"NFKC\"].forEach(t=>{try{if(\"test\"!==\"test\".normalize(t))throw Error(\"bad normalize\")}catch(r){e.push(t)}}),e.length)throw Error(\"missing \"+e.join(\", \"));if(String.fromCharCode(233).normalize(\"NFD\")!==String.fromCharCode(101,769))throw Error(\"broken implementation\")}catch(e){return e.message}return null}();(s=n||(n={})).DEBUG=\"DEBUG\",s.INFO=\"INFO\",s.WARNING=\"WARNING\",s.ERROR=\"ERROR\",s.OFF=\"OFF\",(o=i||(i={})).UNKNOWN_ERROR=\"UNKNOWN_ERROR\",o.NOT_IMPLEMENTED=\"NOT_IMPLEMENTED\",o.UNSUPPORTED_OPERATION=\"UNSUPPORTED_OPERATION\",o.NETWORK_ERROR=\"NETWORK_ERROR\",o.SERVER_ERROR=\"SERVER_ERROR\",o.TIMEOUT=\"TIMEOUT\",o.BUFFER_OVERRUN=\"BUFFER_OVERRUN\",o.NUMERIC_FAULT=\"NUMERIC_FAULT\",o.MISSING_NEW=\"MISSING_NEW\",o.INVALID_ARGUMENT=\"INVALID_ARGUMENT\",o.MISSING_ARGUMENT=\"MISSING_ARGUMENT\",o.UNEXPECTED_ARGUMENT=\"UNEXPECTED_ARGUMENT\",o.CALL_EXCEPTION=\"CALL_EXCEPTION\",o.INSUFFICIENT_FUNDS=\"INSUFFICIENT_FUNDS\",o.NONCE_EXPIRED=\"NONCE_EXPIRED\",o.REPLACEMENT_UNDERPRICED=\"REPLACEMENT_UNDERPRICED\",o.UNPREDICTABLE_GAS_LIMIT=\"UNPREDICTABLE_GAS_LIMIT\",o.TRANSACTION_REPLACED=\"TRANSACTION_REPLACED\",o.ACTION_REJECTED=\"ACTION_REJECTED\";let f=\"0123456789abcdef\";class p{constructor(e){Object.defineProperty(this,\"version\",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==u[r]&&this.throwArgumentError(\"invalid log level name\",\"logLevel\",e),c>u[r]||console.log.apply(console,t)}debug(...e){this._log(p.levels.DEBUG,e)}info(...e){this._log(p.levels.INFO,e)}warn(...e){this._log(p.levels.WARNING,e)}makeError(e,t,r){if(l)return this.makeError(\"censored error\",t,{});t||(t=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r=\"\";for(let e=0;e<t.length;e++)r+=f[t[e]>>4]+f[15&t[e]];n.push(e+\"=Uint8Array(0x\"+r+\")\")}else n.push(e+\"=\"+JSON.stringify(t))}catch(t){n.push(e+\"=\"+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let s=e,o=\"\";switch(t){case i.NUMERIC_FAULT:{o=\"NUMERIC_FAULT\";let t=e;switch(t){case\"overflow\":case\"underflow\":case\"division-by-zero\":o+=\"-\"+t;break;case\"negative-power\":case\"negative-width\":o+=\"-unsupported\";break;case\"unbound-bitwise-result\":o+=\"-unbound-result\"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=\" [ See: https://links.ethers.org/v5-errors-\"+o+\" ]\"),n.length&&(e+=\" (\"+n.join(\", \")+\")\");let a=Error(e);return a.reason=s,a.code=t,Object.keys(r).forEach(function(e){a[e]=r[e]}),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,p.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e=\"platform missing String.prototype.normalize\"),h&&this.throwError(\"platform missing String.prototype.normalize\",p.errors.UNSUPPORTED_OPERATION,{operation:\"String.prototype.normalize\",form:h})}checkSafeUint53(e,t){\"number\"==typeof e&&(null==t&&(t=\"value not safe\"),(e<0||e>=9007199254740991)&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"out-of-safe-range\",value:e}),e%1&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"non-integer\",value:e}))}checkArgumentCount(e,t,r){r=r?\": \"+r:\"\",e<t&&this.throwError(\"missing argument\"+r,p.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError(\"too many arguments\"+r,p.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError(\"missing new\",p.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError(\"cannot instantiate abstract class \"+JSON.stringify(t.name)+\" directly; use a sub-class\",p.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:\"new\"}):(e===Object||null==e)&&this.throwError(\"missing new\",p.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return d||(d=new p(\"logger/5.7.0\")),d}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError(\"cannot permanently disable censorship\",p.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"}),a){if(!e)return;this.globalLogger().throwError(\"error censorship permanent\",p.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"})}l=!!e,a=!!t}static setLogLevel(e){let t=u[e.toLowerCase()];if(null==t){p.globalLogger().warn(\"invalid log level - \"+e);return}c=t}static from(e){return new p(e)}}p.errors=i,p.levels=n},36173:function(e,t,r){\"use strict\";r.d(t,{dk:function(){return d},uj:function(){return a},p$:function(){return c},zG:function(){return i},tu:function(){return s},mE:function(){return o},DC:function(){return l}});let n=new(r(13421)).Yd(\"properties/5.7.0\");function i(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function s(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||\"object\"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function o(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=Object.keys(e).map(t=>Promise.resolve(e[t]).then(e=>({key:t,value:e})));return(yield Promise.all(t)).reduce((e,t)=>(e[t.key]=t.value,e),{})},new(n||(n=Promise))(function(e,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(o,a)}l((i=i.apply(t,r||[])).next())})}function a(e,t){e&&\"object\"==typeof e||n.throwArgumentError(\"invalid object\",\"object\",e),Object.keys(e).forEach(r=>{t[r]||n.throwArgumentError(\"invalid object key - \"+r,\"transaction:\"+r,e)})}function l(e){let t={};for(let r in e)t[r]=e[r];return t}let u={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function c(e){return function(e){if(function e(t){if(null==t||u[typeof t])return!0;if(Array.isArray(t)||\"object\"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=null;try{i=t[r[n]]}catch(e){continue}if(!e(i))return!1}return!0}return n.throwArgumentError(`Cannot deepCopy ${typeof t}`,\"object\",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>c(e)));if(\"object\"==typeof e){let t={};for(let r in e){let n=e[r];void 0!==n&&i(t,r,c(n))}return t}return n.throwArgumentError(`Cannot deepCopy ${typeof e}`,\"object\",e)}(e)}class d{constructor(e){for(let t in e)this[t]=c(e[t])}}},86365:function(e,t,r){\"use strict\";r.d(t,{i:function(){return n}});let n=\"providers/5.7.2\"},27972:function(e,t,r){\"use strict\";let n,i;r.d(t,{r:function(){return e0}});var s,o=r(37637),a=r(22594),l=r(9784),u=r(89005),c=r(43481),d=r(36173),h=r(13421);let f=\"hash/5.7.0\";var p=r(99554);let g=new h.Yd(f),m=new Uint8Array(32);m.fill(0);let y=a.O$.from(-1),b=a.O$.from(0),v=a.O$.from(1),w=a.O$.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),_=(0,l.$m)(v.toHexString(),32),E=(0,l.$m)(b.toHexString(),32),A={name:\"string\",version:\"string\",chainId:\"uint256\",verifyingContract:\"address\",salt:\"bytes32\"},x=[\"name\",\"version\",\"chainId\",\"verifyingContract\",\"salt\"];function k(e){return function(t){return\"string\"!=typeof t&&g.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let S={name:k(\"name\"),version:k(\"version\"),chainId:function(e){try{return a.O$.from(e).toString()}catch(e){}return g.throwArgumentError('invalid domain value for \"chainId\"',\"domain.chainId\",e)},verifyingContract:function(e){try{return(0,u.Kn)(e).toLowerCase()}catch(e){}return g.throwArgumentError('invalid domain value \"verifyingContract\"',\"domain.verifyingContract\",e)},salt:function(e){try{let t=(0,l.lE)(e);if(32!==t.length)throw Error(\"bad length\");return(0,l.Dv)(t)}catch(e){}return g.throwArgumentError('invalid domain value \"salt\"',\"domain.salt\",e)}};function $(e){{let t=e.match(/^(u?)int(\\d*)$/);if(t){let r=\"\"===t[1],n=parseInt(t[2]||\"256\");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&g.throwArgumentError(\"invalid numeric width\",\"type\",e);let i=w.mask(r?n-1:n),s=r?i.add(v).mul(y):b;return function(t){let r=a.O$.from(t);return(r.lt(s)||r.gt(i))&&g.throwArgumentError(`value out-of-bounds for ${e}`,\"value\",t),(0,l.$m)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&g.throwArgumentError(\"invalid bytes width\",\"type\",e),function(t){return(0,l.lE)(t).length!==r&&g.throwArgumentError(`invalid length for ${e}`,\"value\",t),function(e){let t=(0,l.lE)(e),r=t.length%32;return r?(0,l.xs)([t,m.slice(r)]):(0,l.Dv)(t)}(t)}}}switch(e){case\"address\":return function(e){return(0,l.$m)((0,u.Kn)(e),32)};case\"bool\":return function(e){return e?_:E};case\"bytes\":return function(e){return(0,c.w)(e)};case\"string\":return function(e){return(0,p.id)(e)}}return null}function C(e,t){return`${e}(${t.map(({name:e,type:t})=>t+\" \"+e).join(\",\")})`}class P{constructor(e){(0,d.zG)(this,\"types\",Object.freeze((0,d.p$)(e))),(0,d.zG)(this,\"_encoderCache\",{}),(0,d.zG)(this,\"_types\",{});let t={},r={},n={};for(let i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){let n={};e[i].forEach(s=>{n[s.name]&&g.throwArgumentError(`duplicate variable name ${JSON.stringify(s.name)} in ${JSON.stringify(i)}`,\"types\",e),n[s.name]=!0;let o=s.type.match(/^([^\\x5b]*)(\\x5b|$)/)[1];o===i&&g.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,\"types\",e),$(o)||(r[o]||g.throwArgumentError(`unknown type ${JSON.stringify(o)}`,\"types\",e),r[o].push(i),t[i][o]=!0)})}let i=Object.keys(r).filter(e=>0===r[e].length);for(let s in 0===i.length?g.throwArgumentError(\"missing primary type\",\"types\",e):i.length>1&&g.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(\", \")}`,\"types\",e),(0,d.zG)(this,\"primaryType\",i[0]),!function i(s,o){o[s]&&g.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,\"types\",e),o[s]=!0,Object.keys(t[s]).forEach(e=>{r[e]&&(i(e,o),Object.keys(o).forEach(t=>{n[t][e]=!0}))}),delete o[s]}(this.primaryType,{}),n){let t=Object.keys(n[s]);t.sort(),this._types[s]=C(s,e[s])+t.map(t=>C(t,e[t])).join(\"\")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=$(e);if(t)return t}let t=e.match(/^(.*)(\\x5b(\\d*)\\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&g.throwArgumentError(\"array length mismatch; expected length ${ arrayLength }\",\"value\",t);let i=t.map(r);return this._types[e]&&(i=i.map(c.w)),(0,c.w)((0,l.xs)(i))}}let r=this.types[e];if(r){let t=(0,p.id)(this._types[e]);return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this._types[r]?(0,c.w)(n):n});return n.unshift(t),(0,l.xs)(n)}}return g.throwArgumentError(`unknown type: ${e}`,\"type\",e)}encodeType(e){let t=this._types[e];return t||g.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,\"name\",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,c.w)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if($(e))return r(e,t);let n=e.match(/^(.*)(\\x5b(\\d*)\\x5d)$/);if(n){let e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&g.throwArgumentError(\"array length mismatch; expected length ${ arrayLength }\",\"value\",t),t.map(t=>this._visit(e,t,r))}let i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):g.throwArgumentError(`unknown type: ${e}`,\"type\",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new P(e)}static getPrimaryType(e){return P.from(e).primaryType}static hashStruct(e,t,r){return P.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let n=A[r];n||g.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,\"domain\",e),t.push({name:r,type:n})}return t.sort((e,t)=>x.indexOf(e.name)-x.indexOf(t.name)),P.hashStruct(\"EIP712Domain\",{EIP712Domain:t},e)}static encode(e,t,r){return(0,l.xs)([\"0x1901\",P.hashDomain(e),P.from(t).hash(r)])}static hash(e,t,r){return(0,c.w)(P.encode(e,t,r))}static resolveNames(e,t,r,n){var i,s,o,a;return i=this,s=void 0,o=void 0,a=function*(){e=(0,d.DC)(e);let i={};e.verifyingContract&&!(0,l.A7)(e.verifyingContract,20)&&(i[e.verifyingContract]=\"0x\");let s=P.from(t);for(let e in s.visit(r,(e,t)=>(\"address\"!==e||(0,l.A7)(t,20)||(i[t]=\"0x\"),t)),i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=s.visit(r,(e,t)=>\"address\"===e&&i[t]?i[t]:t),{domain:e,value:r}},new(o||(o=Promise))(function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function n(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(r,n)}l((a=a.apply(i,s||[])).next())})}static getPayload(e,t,r){P.hashDomain(e);let n={},i=[];x.forEach(t=>{let r=e[t];null!=r&&(n[t]=S[t](r),i.push({name:t,type:A[t]}))});let s=P.from(t),o=(0,d.DC)(t);return o.EIP712Domain?g.throwArgumentError(\"types must not contain EIP712Domain type\",\"types.EIP712Domain\",t):o.EIP712Domain=i,s.encode(r),{types:o,domain:n,primaryType:s.primaryType,message:s.visit(r,(e,t)=>{if(e.match(/^bytes(\\d*)/))return(0,l.Dv)((0,l.lE)(t));if(e.match(/^u?int/))return a.O$.from(t).toString();switch(e){case\"address\":return t.toLowerCase();case\"bool\":return!!t;case\"string\":return\"string\"!=typeof t&&g.throwArgumentError(\"invalid string\",\"value\",t),t}return g.throwArgumentError(\"unsupported type\",\"type\",e)})}}}var I=r(28257),O=r(2149);function N(e){e=atob(e);let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,l.lE)(t)}function M(e){e=(0,l.lE)(e);let t=\"\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}let R=new h.Yd(\"web/5.7.1\");function T(e){return new Promise(t=>{setTimeout(t,e)})}function D(e,t){if(null==e)return null;if(\"string\"==typeof e)return e;if((0,l.Zq)(e)){if(t&&(\"text\"===t.split(\"/\")[0]||\"application/json\"===t.split(\";\")[0].trim()))try{return(0,I.ZN)(e)}catch(e){}return(0,l.Dv)(e)}return e}function L(e,t,r){let n=null;if(null!=t){n=(0,I.Y0)(t);let r=\"string\"==typeof e?{url:e}:(0,d.DC)(e);r.headers?0!==Object.keys(r.headers).filter(e=>\"content-type\"===e.toLowerCase()).length||(r.headers=(0,d.DC)(r.headers),r.headers[\"content-type\"]=\"application/json\"):r.headers={\"content-type\":\"application/json\"},e=r}return function(e,t,r){let n;let i=\"object\"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;R.assertArgument(i>0&&i%1==0,\"invalid connection throttle limit\",\"connection.throttleLimit\",i);let s=\"object\"==typeof e?e.throttleCallback:null,o=\"object\"==typeof e&&\"number\"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;R.assertArgument(o>0&&o%1==0,\"invalid connection throttle slot interval\",\"connection.throttleSlotInterval\",o);let a=\"object\"==typeof e&&!!e.errorPassThrough,u={},c=null,f={method:\"GET\"},p=!1,g=12e4;if(\"string\"==typeof e)c=e;else if(\"object\"==typeof e){if((null==e||null==e.url)&&R.throwArgumentError(\"missing URL\",\"connection.url\",e),c=e.url,\"number\"==typeof e.timeout&&e.timeout>0&&(g=e.timeout),e.headers)for(let t in e.headers)u[t.toLowerCase()]={key:t,value:String(e.headers[t])},[\"if-none-match\",\"if-modified-since\"].indexOf(t.toLowerCase())>=0&&(p=!0);if(f.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){\"https:\"!==c.substring(0,6)&&!0!==e.allowInsecureAuthentication&&R.throwError(\"basic authentication requires a secure https url\",h.Yd.errors.INVALID_ARGUMENT,{argument:\"url\",url:c,user:e.user,password:\"[REDACTED]\"});let t=e.user+\":\"+e.password;u.authorization={key:\"Authorization\",value:\"Basic \"+M((0,I.Y0)(t))}}null!=e.skipFetchSetup&&(f.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(f.fetchOptions=(0,d.DC)(e.fetchOptions))}let m=RegExp(\"^data:([^;:]*)?(;base64)?,(.*)$\",\"i\"),y=c?c.match(m):null;if(y)try{var b;let e={statusCode:200,statusMessage:\"OK\",headers:{\"content-type\":y[1]||\"text/plain\"},body:y[2]?N(y[3]):(b=y[3],(0,I.Y0)(b.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){R.throwError(\"processing response error\",h.Yd.errors.SERVER_ERROR,{body:D(y[1],y[2]),error:e,requestBody:null,requestMethod:\"GET\",url:c})}t&&(f.method=\"POST\",f.body=t,null==u[\"content-type\"]&&(u[\"content-type\"]={key:\"Content-Type\",value:\"application/octet-stream\"}),null==u[\"content-length\"]&&(u[\"content-length\"]={key:\"Content-Length\",value:String(t.length)}));let v={};Object.keys(u).forEach(e=>{let t=u[e];v[t.key]=t.value}),f.headers=v;let w=(n=null,{promise:new Promise(function(e,t){g&&(n=setTimeout(()=>{null!=n&&(n=null,t(R.makeError(\"timeout\",h.Yd.errors.TIMEOUT,{requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,timeout:g,url:c})))},g))}),cancel:function(){null!=n&&(clearTimeout(n),n=null)}}),_=function(){var e,t,n,u;return e=this,t=void 0,n=void 0,u=function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield function(e,t){var r,n,i,s;return r=this,n=void 0,i=void 0,s=function*(){null==t&&(t={});let r={method:t.method||\"GET\",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode=\"cors\",r.cache=\"no-cache\",r.credentials=\"same-origin\",r.redirect=\"follow\",r.referrer=\"client\"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let n=yield fetch(e,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((e,t)=>{s[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{s[e.toLowerCase()]=n.headers.get(e)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:(0,l.lE)(new Uint8Array(i))}},new(i||(i=Promise))(function(e,t){function o(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(o,a)}l((s=s.apply(r,n||[])).next())})}(c,f),e<i){if(301===t.statusCode||302===t.statusCode){let e=t.headers.location||\"\";if(\"GET\"===f.method&&e.match(/^https:/)){c=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(s&&(r=yield s(e,c)),r){let r=0,n=t.headers[\"retry-after\"];r=\"string\"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,e))),yield T(r);continue}}}}catch(e){null==(t=e.response)&&(w.cancel(),R.throwError(\"missing response\",h.Yd.errors.SERVER_ERROR,{requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,serverError:e,url:c}))}let n=t.body;if(p&&304===t.statusCode?n=null:!a&&(t.statusCode<200||t.statusCode>=300)&&(w.cancel(),R.throwError(\"bad response\",h.Yd.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:D(n,t.headers?t.headers[\"content-type\"]:null),requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,url:c})),r)try{let e=yield r(n,t);return w.cancel(),e}catch(r){if(r.throttleRetry&&e<i){let t=!0;if(s&&(t=yield s(e,c)),t){let t=o*parseInt(String(Math.random()*Math.pow(2,e)));yield T(t);continue}}w.cancel(),R.throwError(\"processing response error\",h.Yd.errors.SERVER_ERROR,{body:D(n,t.headers?t.headers[\"content-type\"]:null),error:r,requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,url:c})}return w.cancel(),n}return R.throwError(\"failed response\",h.Yd.errors.SERVER_ERROR,{requestBody:D(f.body,v[\"content-type\"]),requestMethod:f.method,url:c})},new(n||(n=Promise))(function(r,i){function s(e){try{a(u.next(e))}catch(e){i(e)}}function o(e){try{a(u.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}a((u=u.apply(e,t||[])).next())})}();return Promise.race([w.promise,_])}(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,I.ZN)(e))}catch(t){R.throwError(\"invalid JSON\",h.Yd.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n})}function j(e,t){return t||(t={}),null==(t=(0,d.DC)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,s=!1,o=()=>!s&&(s=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{o()&&n(Error(\"timeout\"))},t.timeout));let a=t.retryLimit,l=0;!function i(){return e().then(function(e){if(void 0!==e)o()&&r(e);else if(t.oncePoll)t.oncePoll.once(\"poll\",i);else if(t.onceBlock)t.onceBlock.once(\"block\",i);else if(!s){if(++l>a){o()&&n(Error(\"retry limit reached\"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){o()&&n(e)})}()})}var B=r(86365),F=r(59035);class U{constructor(e){(0,d.zG)(this,\"alphabet\",e),(0,d.zG)(this,\"base\",e.length),(0,d.zG)(this,\"_alphabetMap\",{}),(0,d.zG)(this,\"_leader\",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=(0,l.lE)(e);if(0===t.length)return\"\";let r=[0];for(let e=0;e<t.length;++e){let n=t[e];for(let e=0;e<r.length;++e)n+=r[e]<<8,r[e]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n=\"\";for(let e=0;0===t[e]&&e<t.length-1;++e)n+=this._leader;for(let e=r.length-1;e>=0;--e)n+=this.alphabet[r[e]];return n}decode(e){if(\"string\"!=typeof e)throw TypeError(\"Expected String\");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw Error(\"Non-base\"+this.base+\" character\");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return(0,l.lE)(new Uint8Array(t.reverse()))}}new U(\"abcdefghijklmnopqrstuvwxyz234567\");let z=new U(\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\");function q(e,t){null==t&&(t=1);let r=[],n=r.forEach,i=function(e,t){n.call(e,function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function H(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function G(e,t){let r=H(e(),e),n=e(),i=H(n,e),s=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let e=0;e<n;e++)for(let t=0;t<s[e];t++)r.push(i[e]+t);return t?r.map(e=>t[e]):r}function V(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,s=0;i<e;i++){var n;r[i]=s+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}let W=(s=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,s=[0,1];for(let e=1;e<n;e++)s.push(i+=r());let o=r(),a=t;t+=o;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[t++],l=8),u>>--l&1}let d=0;for(let e=0;e<31;e++)d=d<<1|c();let h=[],f=0,p=2147483648;for(;;){let e=Math.floor(((d-f+1)*i-1)/p),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<s[n]?r=n:t=n}if(0==t)break;h.push(t);let o=f+Math.floor(p*s[t]/i),a=f+Math.floor(p*s[t+1]/i)-1;for(;((o^a)&1073741824)==0;)d=d<<1&2147483647|c(),o=o<<1&2147483647,a=a<<1&2147483647|1;for(;o&~a&536870912;)d=1073741824&d|d<<1&1073741823|c(),o=o<<1^1073741824,a=(1073741824^a)<<1|1073741825;f=o,p=1+a-o}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return g+256+(e[a++]<<8|e[a++]);case 1:return g+e[a++];default:return t-1}})}(N(\"AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==\")),i=0,()=>s[i++]),K=new Set(G(W)),Y=new Set(G(W)),Z=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return q(V(i.length,1+e,t).map((e,t)=>{let s=e[0],o=e.slice(1);return Array(i[t]).fill(void 0).map((e,t)=>{let i=t*n;return[s+t*r,o.map(e=>e+i)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(V(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[n[0]]=n[1]}return t}(q(t))}(W),J=(n=G(W).sort((e,t)=>e-t),function e(){let t=[];for(;;){let r=G(W,n);if(0==r.length)break;t.push({set:new Set(r),node:e()})}t.sort((e,t)=>t.set.size-e.set.size);let r=W();return{branches:t,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}());function Q(e){return e.filter(e=>65039!=e)}function X(e){for(let t of e.split(\".\")){let e=(0,I.XL)(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error(\"underscore only allowed at start\");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error(\"invalid label extension\")}catch(e){throw Error(`Invalid label \"${t}\": ${e.message}`)}}return e}let ee=new h.Yd(f),et=new Uint8Array(32);function er(e){if(0===e.length)throw Error(\"invalid ENS name; empty component\");return e}function en(e){let t=(0,I.Y0)(X(function(e,t){let r=(0,I.XL)(e).reverse(),n=[];for(;r.length;){let e=function(e,t){var r;let n,i;let s=J,o=[],a=e.length;for(;a;){let t=e[--a];if(!(s=null===(r=s.branches.find(e=>e.set.has(t)))||void 0===r?void 0:r.node))break;if(s.save)i=t;else if(s.check&&t===i)break;o.push(t),s.fe0f&&(o.push(65039),a>0&&65039==e[a-1]&&a--),s.valid&&(n=o.slice(),2==s.valid&&n.splice(1,1),e.length=a)}return n}(r);if(e){n.push(...t(e));continue}let i=r.pop();if(K.has(i)){n.push(i);continue}if(Y.has(i))continue;let s=Z[i];if(s){n.push(...s);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return X(String.fromCodePoint(...n).normalize(\"NFC\"))}(e,Q))),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(er(t.slice(n,e))),n=e+1);if(n>=t.length)throw Error(\"invalid ENS name; empty component\");return r.push(er(t.slice(n))),r}function ei(e){\"string\"!=typeof e&&ee.throwArgumentError(\"invalid ENS name; not a string\",\"name\",e);let t=et,r=en(e);for(;r.length;)t=(0,c.w)((0,l.zo)([t,(0,c.w)(r.pop())]));return(0,l.Dv)(t)}et.fill(0);let es=new h.Yd(\"networks/5.7.1\");function eo(e){let t=function(t,r){null==r&&(r={});let n=[];if(t.InfuraProvider&&\"-\"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&\"-\"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&\"-\"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&\"-\"!==r.pocket)try{let i=new t.PocketProvider(e,r.pocket);i.network&&-1===[\"goerli\",\"ropsten\",\"rinkeby\",\"sepolia\"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.CloudflareProvider&&\"-\"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&\"-\"!==r.ankr)try{let i=new t.AnkrProvider(e,r.ankr);i.network&&-1===[\"ropsten\"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:\"homestead\"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return eo(e)},t}function ea(e,t){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return ea(e,t)},r}let el={chainId:1,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"homestead\",_defaultProvider:eo(\"homestead\")},eu={chainId:3,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"ropsten\",_defaultProvider:eo(\"ropsten\")},ec={chainId:63,name:\"classicMordor\",_defaultProvider:ea(\"https://www.ethercluster.com/mordor\",\"classicMordor\")},ed={unspecified:{chainId:0,name:\"unspecified\"},homestead:el,mainnet:el,morden:{chainId:2,name:\"morden\"},ropsten:eu,testnet:eu,rinkeby:{chainId:4,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"rinkeby\",_defaultProvider:eo(\"rinkeby\")},kovan:{chainId:42,name:\"kovan\",_defaultProvider:eo(\"kovan\")},goerli:{chainId:5,ensAddress:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",name:\"goerli\",_defaultProvider:eo(\"goerli\")},kintsugi:{chainId:1337702,name:\"kintsugi\"},sepolia:{chainId:11155111,name:\"sepolia\",_defaultProvider:eo(\"sepolia\")},classic:{chainId:61,name:\"classic\",_defaultProvider:ea(\"https://www.ethercluster.com/etc\",\"classic\")},classicMorden:{chainId:62,name:\"classicMorden\"},classicMordor:ec,classicTestnet:ec,classicKotti:{chainId:6,name:\"classicKotti\",_defaultProvider:ea(\"https://www.ethercluster.com/kotti\",\"classicKotti\")},xdai:{chainId:100,name:\"xdai\"},matic:{chainId:137,name:\"matic\",_defaultProvider:eo(\"matic\")},maticmum:{chainId:80001,name:\"maticmum\"},optimism:{chainId:10,name:\"optimism\",_defaultProvider:eo(\"optimism\")},\"optimism-kovan\":{chainId:69,name:\"optimism-kovan\"},\"optimism-goerli\":{chainId:420,name:\"optimism-goerli\"},arbitrum:{chainId:42161,name:\"arbitrum\"},\"arbitrum-rinkeby\":{chainId:421611,name:\"arbitrum-rinkeby\"},\"arbitrum-goerli\":{chainId:421613,name:\"arbitrum-goerli\"},bnb:{chainId:56,name:\"bnb\"},bnbt:{chainId:97,name:\"bnbt\"}};var eh=r(83699),ef=r.n(eh);function ep(e){return\"0x\"+ef().sha256().update((0,l.lE)(e)).digest(\"hex\")}new h.Yd(\"sha2/5.7.0\");var eg=r(1192),em=r.n(eg);let ey=new h.Yd(B.i);class eb{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),s=this.hash.bind(this),o=this.hex.bind(this),a=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:s,type:l,accessList:eb.allowNull(this.accessList.bind(this),null),blockHash:eb.allowNull(s,null),blockNumber:eb.allowNull(a,null),transactionIndex:eb.allowNull(a,null),confirmations:eb.allowNull(a,null),from:t,gasPrice:eb.allowNull(r),maxPriorityFeePerGas:eb.allowNull(r),maxFeePerGas:eb.allowNull(r),gasLimit:r,to:eb.allowNull(t,null),value:r,nonce:a,data:i,r:eb.allowNull(this.uint256),s:eb.allowNull(this.uint256),v:eb.allowNull(a),creates:eb.allowNull(t,null),raw:eb.allowNull(i)},e.transactionRequest={from:eb.allowNull(t),nonce:eb.allowNull(a),gasLimit:eb.allowNull(r),gasPrice:eb.allowNull(r),maxPriorityFeePerGas:eb.allowNull(r),maxFeePerGas:eb.allowNull(r),to:eb.allowNull(t),value:eb.allowNull(r),data:eb.allowNull(e=>this.data(e,!0)),type:eb.allowNull(a),accessList:eb.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:s,address:t,topics:eb.arrayOf(s),data:i,logIndex:a,blockHash:s},e.receipt={to:eb.allowNull(this.address,null),from:eb.allowNull(this.address,null),contractAddress:eb.allowNull(t,null),transactionIndex:a,root:eb.allowNull(o),gasUsed:r,logsBloom:eb.allowNull(i),blockHash:s,transactionHash:s,logs:eb.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:eb.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:eb.allowNull(r),status:eb.allowNull(a),type:l},e.block={hash:eb.allowNull(s),parentHash:s,number:a,timestamp:a,nonce:eb.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:eb.allowNull(t),extraData:i,transactions:eb.allowNull(eb.arrayOf(s)),baseFeePerGas:eb.allowNull(r)},e.blockWithTransactions=(0,d.DC)(e.block),e.blockWithTransactions.transactions=eb.allowNull(eb.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:eb.allowNull(n,void 0),toBlock:eb.allowNull(n,void 0),blockHash:eb.allowNull(s,void 0),address:eb.allowNull(t,void 0),topics:eb.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:eb.allowNull(a),blockHash:eb.allowNull(s),transactionIndex:a,removed:eb.allowNull(this.boolean.bind(this)),address:t,data:eb.allowFalsish(i,\"0x\"),topics:eb.arrayOf(s),transactionHash:s,logIndex:a},e}accessList(e){return(0,O.z7)(e||[])}number(e){return\"0x\"===e?0:a.O$.from(e).toNumber()}type(e){return\"0x\"===e||null==e?0:a.O$.from(e).toNumber()}bigNumber(e){return a.O$.from(e)}boolean(e){if(\"boolean\"==typeof e)return e;if(\"string\"==typeof e){if(\"true\"===(e=e.toLowerCase()))return!0;if(\"false\"===e)return!1}throw Error(\"invalid boolean - \"+e)}hex(e,t){return\"string\"==typeof e&&(t||\"0x\"===e.substring(0,2)||(e=\"0x\"+e),(0,l.A7)(e))?e.toLowerCase():ey.throwArgumentError(\"invalid hash\",\"value\",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error(\"invalid data; odd-length - \"+e);return r}address(e){return(0,u.Kn)(e)}callAddress(e){if(!(0,l.A7)(e,32))return null;let t=(0,u.Kn)((0,l.p3)(e,12));return\"0x0000000000000000000000000000000000000000\"===t?null:t}contractAddress(e){return(0,u.CR)(e)}blockTag(e){if(null==e)return\"latest\";if(\"earliest\"===e)return\"0x0\";switch(e){case\"earliest\":return\"0x0\";case\"latest\":case\"pending\":case\"safe\":case\"finalized\":return e}if(\"number\"==typeof e||(0,l.A7)(e))return(0,l.$P)(e);throw Error(\"invalid blockTag\")}hash(e,t){let r=this.hex(e,t);return 32!==(0,l.E1)(r)?ey.throwArgumentError(\"invalid hash\",\"value\",e):r}difficulty(e){if(null==e)return null;let t=a.O$.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,l.A7)(e))throw Error(\"invalid uint256\");return(0,l.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,n=eb.check(t,e);return n._difficulty=null==r?null:a.O$.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return eb.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&a.O$.from(e.to).isZero()&&(e.to=\"0x0000000000000000000000000000000000000000\"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=eb.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,l.A7)(r)&&(r=a.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,l.A7)(r)&&(r=a.O$.from(r).toNumber()),\"number\"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),\"number\"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&\"x\"===t.blockHash.replace(/0/g,\"\")&&(t.blockHash=null),t}transaction(e){return(0,O.Qc)(e)}receiptLog(e){return eb.check(this.formats.receiptLog,e)}receipt(e){let t=eb.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=a.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&ey.throwArgumentError(\"alt-root-status/status mismatch\",\"value\",{root:t.root,status:t.status}),t.status=e,delete t.root):ey.throwArgumentError(\"invalid alt-root-status\",\"value.root\",t.root)}else 66!==t.root.length&&ey.throwArgumentError(\"invalid root hash\",\"value.root\",t.root)}return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return eb.check(this.formats.filter,e)}filterLog(e){return eb.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let n in e)try{let i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error(\"not an array\");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}var ev=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let ew=new h.Yd(B.i);function e_(e){return null==e?\"null\":(32!==(0,l.E1)(e)&&ew.throwArgumentError(\"invalid topic\",\"topic\",e),e.toLowerCase())}function eE(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return e_(e);{let t={};e.forEach(e=>{t[e_(e)]=!0});let r=Object.keys(t);return r.sort(),r.join(\"|\")}}).join(\"&\")}function eA(e){if(\"string\"==typeof e){if(e=e.toLowerCase(),32===(0,l.E1)(e))return\"tx:\"+e;if(-1===e.indexOf(\":\"))return e}else if(Array.isArray(e))return\"filter:*:\"+eE(e);else if(F.Sg.isForkEvent(e))throw ew.warn(\"not implemented\"),Error(\"not implemented\");else if(e&&\"object\"==typeof e)return\"filter:\"+(e.address||\"*\")+\":\"+eE(e.topics||[]);throw Error(\"invalid event - \"+e)}function ex(){return new Date().getTime()}function ek(e){return new Promise(t=>{setTimeout(t,e)})}let eS=[\"block\",\"network\",\"pending\",\"poll\"];class e${constructor(e,t,r){(0,d.zG)(this,\"tag\",e),(0,d.zG)(this,\"listener\",t),(0,d.zG)(this,\"once\",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case\"tx\":return this.hash;case\"filter\":return this.filter}return this.tag}get type(){return this.tag.split(\":\")[0]}get hash(){let e=this.tag.split(\":\");return\"tx\"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(\":\");if(\"filter\"!==t[0])return null;let r=t[1],n=\"\"===(e=t[2])?[]:e.split(/&/g).map(e=>{if(\"\"===e)return[];let t=e.split(\"|\").map(e=>\"null\"===e?null:e);return 1===t.length?t[0]:t}),i={};return n.length>0&&(i.topics=n),r&&\"*\"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(\":\")>=0||eS.indexOf(this.tag)>=0}}let eC={0:{symbol:\"btc\",p2pkh:0,p2sh:5,prefix:\"bc\"},2:{symbol:\"ltc\",p2pkh:48,p2sh:50,prefix:\"ltc\"},3:{symbol:\"doge\",p2pkh:30,p2sh:22},60:{symbol:\"eth\",ilk:\"eth\"},61:{symbol:\"etc\",ilk:\"eth\"},700:{symbol:\"xdai\",ilk:\"eth\"}};function eP(e){return(0,l.$m)(a.O$.from(e).toHexString(),32)}function eI(e){return z.encode((0,l.zo)([e,(0,l.p3)(ep(ep(e)),0,4)]))}let eO=RegExp(\"^(ipfs)://(.*)$\",\"i\"),eN=[RegExp(\"^(https)://(.*)$\",\"i\"),RegExp(\"^(data):(.*)$\",\"i\"),eO,RegExp(\"^eip155:[0-9]+/(erc[0-9]+):(.*)$\",\"i\")];function eM(e,t){try{return(0,I.ZN)(eR(e,t))}catch(e){}return null}function eR(e,t){if(\"0x\"===e)return null;let r=a.O$.from((0,l.p3)(e,t,t+32)).toNumber(),n=a.O$.from((0,l.p3)(e,r,r+32)).toNumber();return(0,l.p3)(e,r+32,r+32+n)}function eT(e){return e.match(/^ipfs:\\/\\/ipfs\\//i)?e=e.substring(12):e.match(/^ipfs:\\/\\//i)?e=e.substring(7):ew.throwArgumentError(\"unsupported IPFS format\",\"link\",e),`https://gateway.ipfs.io/ipfs/${e}`}function eD(e){let t=(0,l.lE)(e);if(t.length>32)throw Error(\"internal; should not happen\");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function eL(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){let i=(0,l.lE)(e[n]);t[n]=eD(r),t.push(eD(i.length)),t.push(function(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}(i)),r+=32+32*Math.ceil(i.length/32)}return(0,l.xs)(t)}class ej{constructor(e,t,r,n){(0,d.zG)(this,\"provider\",e),(0,d.zG)(this,\"name\",r),(0,d.zG)(this,\"address\",e.formatter.address(t)),(0,d.zG)(this,\"_resolvedAddress\",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:\"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000\"}).then(e=>a.O$.from(e).eq(1)).catch(e=>{if(e.code===h.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return ev(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,l.xs)([e,ei(this.name),t||\"0x\"])},n=!1;if(yield this.supportsWildcard()){var i;n=!0,r.data=(0,l.xs)([\"0x9061b923\",eL([(i=this.name,(0,l.Dv)((0,l.zo)(en(i).map(e=>{if(e.length>63)throw Error(\"invalid DNS encoded entry; length exceeds 63 bytes\");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+\"00\"),r.data])])}try{let e=yield this.provider.call(r);return(0,l.lE)(e).length%32==4&&ew.throwError(\"resolver threw error\",h.Yd.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=eR(e,0)),e}catch(e){if(e.code===h.Yd.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return ev(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?eR(r,0):null})}_getAddress(e,t){let r=eC[String(e)];if(null==r&&ew.throwError(`unsupported coin type: ${e}`,h.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),\"eth\"===r.ilk)return this.provider.formatter.address(t);let n=(0,l.lE)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return eI((0,l.zo)([[r.p2pkh],\"0x\"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return eI((0,l.zo)([[r.p2sh],\"0x\"+e[2]]))}}if(null!=r.prefix){let e=n[1],t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){let e=em().toWords(n.slice(2));return e.unshift(t),em().encode(r.prefix,e)}}return null}getAddress(e){return ev(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch(\"0x3b3b57de\");if(\"0x\"===e||\"0x0000000000000000000000000000000000000000000000000000000000000000\"===e)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===h.Yd.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes(\"0xf1cb7e06\",eP(e));if(null==t||\"0x\"===t)return null;let r=this._getAddress(e,t);return null==r&&ew.throwError(\"invalid or unsupported coin data\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return ev(this,void 0,void 0,function*(){let e=[{type:\"name\",content:this.name}];try{let t=yield this.getText(\"avatar\");if(null==t)return null;for(let r=0;r<eN.length;r++){let n=t.match(eN[r]);if(null==n)continue;let i=n[1].toLowerCase();switch(i){case\"https\":return e.push({type:\"url\",content:t}),{linkage:e,url:t};case\"data\":return e.push({type:\"data\",content:t}),{linkage:e,url:t};case\"ipfs\":return e.push({type:\"ipfs\",content:t}),{linkage:e,url:eT(t)};case\"erc721\":case\"erc1155\":{let r=\"erc721\"===i?\"0xc87b56dd\":\"0x0e89341c\";e.push({type:i,content:t});let s=this._resolvedAddress||(yield this.getAddress()),o=(n[2]||\"\").split(\"/\");if(2!==o.length)return null;let u=yield this.provider.formatter.address(o[0]),c=(0,l.$m)(a.O$.from(o[1]).toHexString(),32);if(\"erc721\"===i){let t=this.provider.formatter.callAddress((yield this.provider.call({to:u,data:(0,l.xs)([\"0x6352211e\",c])})));if(s!==t)return null;e.push({type:\"owner\",content:t})}else if(\"erc1155\"===i){let t=a.O$.from((yield this.provider.call({to:u,data:(0,l.xs)([\"0x00fdd58e\",(0,l.$m)(s,32),c])})));if(t.isZero())return null;e.push({type:\"balance\",content:t.toString()})}let d={to:this.provider.formatter.address(o[0]),data:(0,l.xs)([r,c])},h=eM((yield this.provider.call(d)),0);if(null==h)return null;e.push({type:\"metadata-url-base\",content:h}),\"erc1155\"===i&&(h=h.replace(\"{id}\",c.substring(2)),e.push({type:\"metadata-url-expanded\",content:h})),h.match(/^ipfs:/i)&&(h=eT(h)),e.push({type:\"metadata-url\",content:h});let f=yield L(h);if(!f)return null;e.push({type:\"metadata\",content:JSON.stringify(f)});let p=f.image;if(\"string\"!=typeof p)return null;if(p.match(/^(https:\\/\\/|data:)/i));else{let t=p.match(eO);if(null==t)return null;e.push({type:\"url-ipfs\",content:p}),p=eT(p)}return e.push({type:\"url\",content:p}),{linkage:e,url:p}}}}}catch(e){}return null})}getContentHash(){return ev(this,void 0,void 0,function*(){let e=yield this._fetchBytes(\"0xbc1c58d1\");if(null==e||\"0x\"===e)return null;let t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e=parseInt(t[3],16);if(t[4].length===2*e)return\"ipfs://\"+z.encode(\"0x\"+t[1])}let r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let e=parseInt(r[3],16);if(r[4].length===2*e)return\"ipns://\"+z.encode(\"0x\"+r[1])}let n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return\"bzz://\"+n[1];let i=e.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){let e={\"=\":\"\",\"+\":\"-\",\"/\":\"_\"};return\"sia://\"+M(\"0x\"+i[1]).replace(/[=+\\/]/g,t=>e[t])}return ew.throwError(\"invalid or unsupported content hash data\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"getContentHash()\",data:e})})}getText(e){return ev(this,void 0,void 0,function*(){let t=(0,I.Y0)(e);(t=(0,l.zo)([eP(64),eP(t.length),t])).length%32!=0&&(t=(0,l.zo)([t,(0,l.$m)(\"0x\",32-e.length%32)]));let r=yield this._fetchBytes(\"0x59d1d43c\",(0,l.Dv)(t));return null==r||\"0x\"===r?null:(0,I.ZN)(r)})}}let eB=null,eF=1;class eU extends F.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,d.zG)(this,\"anyNetwork\",\"any\"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,d.tu)(new.target,\"getNetwork\")(e);t?((0,d.zG)(this,\"_network\",t),this.emit(\"network\",t,null)):ew.throwArgumentError(\"invalid network\",\"network\",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return ev(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||ew.throwError(\"no network detected\",h.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,d.zG)(this,\"_network\",e),this.emit(\"network\",e,null))}return this._network})}get ready(){return j(()=>this._ready().then(e=>e,e=>{if(e.code!==h.Yd.errors.NETWORK_ERROR||\"noNetwork\"!==e.event)throw e}))}static getFormatter(){return null==eB&&(eB=new eb),eB}static getNetwork(e){return function(e){if(null==e)return null;if(\"number\"==typeof e){for(let t in ed){let r=ed[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:\"unknown\"}}if(\"string\"==typeof e){let t=ed[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=ed[e.name];if(!t)return\"number\"!=typeof e.chainId&&es.throwArgumentError(\"invalid network chainId\",\"network\",e),e;0!==e.chainId&&e.chainId!==t.chainId&&es.throwArgumentError(\"network chainId mismatch\",\"network\",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var n;r=(n=t._defaultProvider)&&\"function\"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}(null==e?\"homestead\":e)}ccipReadFetch(e,t,r){return ev(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),s=[];for(let e=0;e<r.length;e++){let t=r[e],o=t.replace(\"{sender}\",n).replace(\"{data}\",i),a=t.indexOf(\"{data}\")>=0?null:JSON.stringify({data:i,sender:n}),l=yield L({url:o,errorPassThrough:!0},a,(e,t)=>(e.status=t.statusCode,e));if(l.data)return l.data;let u=l.message||\"unknown error\";if(l.status>=400&&l.status<500)return ew.throwError(`response not found during CCIP fetch: ${u}`,h.Yd.errors.SERVER_ERROR,{url:t,errorMessage:u});s.push(u)}return ew.throwError(`error encountered during CCIP fetch: ${s.map(e=>JSON.stringify(e)).join(\", \")}`,h.Yd.errors.SERVER_ERROR,{urls:r,errorMessages:s})})}_getInternalBlockNumber(e){return ev(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(ex()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=ex(),r=(0,d.mE)({blockNumber:this.perform(\"getBlockNumber\",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=ex();return(e=a.O$.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return ev(this,void 0,void 0,function*(){let e=eF++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit(\"error\",e);return}if(this._setFastBlockNumber(r),this.emit(\"poll\",e,r),r===this._lastBlockNumber){this.emit(\"didPoll\",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)ew.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit(\"error\",ew.makeError(\"network block skew detected\",h.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:\"blockSkew\",previousBlockNumber:this._emitted.block})),this.emit(\"block\",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit(\"block\",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if(\"block\"===e)return;let t=this._emitted[e];\"pending\"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case\"tx\":{let r=e.hash,n=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted[\"t:\"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit(\"error\",e)});t.push(n);break}case\"filter\":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;let i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);let s=this.getLogs(n).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted[\"b:\"+t.blockHash]=t.blockNumber,this._emitted[\"t:\"+t.transactionHash]=t.blockNumber,this.emit(n,t)})}).catch(t=>{this.emit(\"error\",t),e._inflight=!1});t.push(s)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit(\"didPoll\",e)}).catch(e=>{this.emit(\"error\",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return ev(this,void 0,void 0,function*(){return ew.throwError(\"provider does not support network detection\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"provider.detectNetwork\"})})}getNetwork(){return ev(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit(\"network\",t,e),yield ek(0),this._network;let r=ew.makeError(\"underlying network changed\",h.Yd.errors.NETWORK_ERROR,{event:\"changed\",network:e,detectedNetwork:t});throw this.emit(\"error\",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(\"number\"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error(\"invalid polling interval\");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=ex();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(e<this._fastBlockNumber))&&(this._fastQueryDate=ex(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return ev(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return ev(this,void 0,void 0,function*(){let i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise((i,s)=>{let o=[],a=!1,l=function(){return!!a||(a=!0,o.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<t||l()||i(e)};if(this.on(e,u),o.push(()=>{this.removeListener(e,u)}),n){let r=n.startBlock,i=null,u=o=>ev(this,void 0,void 0,function*(){a||(yield ek(1e3),this.getTransactionCount(n.from).then(c=>ev(this,void 0,void 0,function*(){if(!a){if(c<=n.nonce)r=o;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3)<n.startBlock&&(i=n.startBlock);i<=o;){if(a)return;let r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){let o=r.transactions[i];if(o.hash===e)return;if(o.from===n.from&&o.nonce===n.nonce){if(a)return;let r=yield this.waitForTransaction(o.hash,t);if(l())return;let i=\"replaced\";o.data===n.data&&o.to===n.to&&o.value.eq(n.value)?i=\"repriced\":\"0x\"===o.data&&o.from===o.to&&o.value.isZero()&&(i=\"cancelled\"),s(ew.makeError(\"transaction was replaced\",h.Yd.errors.TRANSACTION_REPLACED,{cancelled:\"replaced\"===i||\"cancelled\"===i,reason:i,replacement:this._wrapTransaction(o),hash:e,receipt:r}));return}}i++}}a||this.once(\"block\",u)}}),e=>{a||this.once(\"block\",u)}))});if(a)return;this.once(\"block\",u),o.push(()=>{this.removeListener(\"block\",u)})}if(\"number\"==typeof r&&r>0){let e=setTimeout(()=>{l()||s(ew.makeError(\"timeout exceeded\",h.Yd.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),o.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return ev(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform(\"getGasPrice\",{});try{return a.O$.from(e)}catch(t){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getGasPrice\",result:e,error:t})}})}getBalance(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform(\"getBalance\",r);try{return a.O$.from(n)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getBalance\",params:r,result:n,error:e})}})}getTransactionCount(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform(\"getTransactionCount\",r);try{return a.O$.from(n).toNumber()}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getTransactionCount\",params:r,result:n,error:e})}})}getCode(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform(\"getCode\",r);try{return(0,l.Dv)(n)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getCode\",params:r,result:n,error:e})}})}getStorageAt(e,t,r){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,l.$P)(e))}),i=yield this.perform(\"getStorageAt\",n);try{return(0,l.Dv)(i)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"getStorageAt\",params:n,result:i,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,l.E1)(t))throw Error(\"invalid response - sendTransaction\");return null!=t&&e.hash!==t&&ew.throwError(\"Transaction hash mismatch from Provider.sendTransaction.\",h.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,n)=>ev(this,void 0,void 0,function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let s=yield this._waitForTransaction(e.hash,t,n,i);return null==s&&0===t?null:(this._emitted[\"t:\"+e.hash]=s.blockNumber,0===s.status&&ew.throwError(\"transaction failed\",h.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),s)}),e}sendTransaction(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,l.Dv)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform(\"sendTransaction\",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return ev(this,void 0,void 0,function*(){let t=yield e,r={};return[\"from\",\"to\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),[\"gasLimit\",\"gasPrice\",\"maxFeePerGas\",\"maxPriorityFeePerGas\",\"value\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?a.O$.from(e):null))}),[\"type\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),[\"data\"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,l.Dv)(e):null))}),this.formatter.transactionRequest((yield(0,d.mE)(r)))})}_getFilter(e){return ev(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),[\"blockHash\",\"topics\"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),[\"fromBlock\",\"toBlock\"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,d.mE)(t)))})}_call(e,t,r){return ev(this,void 0,void 0,function*(){r>=10&&ew.throwError(\"CCIP read exceeded maximum redirections\",h.Yd.errors.SERVER_ERROR,{redirects:r,transaction:e});let n=e.to,i=yield this.perform(\"call\",{transaction:e,blockTag:t});if(r>=0&&\"latest\"===t&&null!=n&&\"0x556f1830\"===i.substring(0,10)&&(0,l.E1)(i)%32==4)try{let s=(0,l.p3)(i,4),o=(0,l.p3)(s,0,32);a.O$.from(o).eq(n)||ew.throwError(\"CCIP Read sender did not match\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i});let u=[],c=a.O$.from((0,l.p3)(s,32,64)).toNumber(),d=a.O$.from((0,l.p3)(s,c,c+32)).toNumber(),f=(0,l.p3)(s,c+32);for(let t=0;t<d;t++){let r=eM(f,32*t);null==r&&ew.throwError(\"CCIP Read contained corrupt URL string\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i}),u.push(r)}let p=eR(s,64);a.O$.from((0,l.p3)(s,100,128)).isZero()||ew.throwError(\"CCIP Read callback selector included junk\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i});let g=(0,l.p3)(s,96,100),m=eR(s,128),y=yield this.ccipReadFetch(e,p,u);null==y&&ew.throwError(\"CCIP Read disabled or provided no URLs\",h.Yd.errors.CALL_EXCEPTION,{name:\"OffchainLookup\",signature:\"OffchainLookup(address,string[],bytes,bytes4,bytes)\",transaction:e,data:i});let b={to:n,data:(0,l.xs)([g,eL([y,m])])};return this._call(b,t,r+1)}catch(e){if(e.code===h.Yd.errors.SERVER_ERROR)throw e}try{return(0,l.Dv)(i)}catch(r){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"call\",params:{transaction:e,blockTag:t},result:i,error:r})}})}call(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.mE)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,d.mE)({transaction:this._getTransactionRequest(e)}),r=yield this.perform(\"estimateGas\",t);try{return a.O$.from(r)}catch(e){return ew.throwError(\"bad result from backend\",h.Yd.errors.SERVER_ERROR,{method:\"estimateGas\",params:t,result:r,error:e})}})}_getAddress(e){return ev(this,void 0,void 0,function*(){\"string\"!=typeof(e=yield e)&&ew.throwArgumentError(\"invalid address or ENS name\",\"name\",e);let t=yield this.resolveName(e);return null==t&&ew.throwError(\"ENS name not configured\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t})}_getBlock(e,t){return ev(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128,n={includeTransactions:!!t};if((0,l.A7)(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),(0,l.A7)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(t){ew.throwArgumentError(\"invalid block hash or block tag\",\"blockHashOrBlockTag\",e)}return j(()=>ev(this,void 0,void 0,function*(){let e=yield this.perform(\"getBlock\",n);if(null==e)return null!=n.blockHash&&null==this._emitted[\"b:\"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;r<e.transactions.length;r++){let n=e.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}}let r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return j(()=>ev(this,void 0,void 0,function*(){let r=yield this.perform(\"getTransaction\",t);if(null==r)return null==this._emitted[\"t:\"+e]?null:void 0;let n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return j(()=>ev(this,void 0,void 0,function*(){let r=yield this.perform(\"getTransactionReceipt\",t);if(null==r)return null==this._emitted[\"t:\"+e]?null:void 0;if(null==r.blockHash)return;let n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}),{oncePoll:this})})}getLogs(e){return ev(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,d.mE)({filter:this._getFilter(e)}),r=yield this.perform(\"getLogs\",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),eb.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return ev(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform(\"getEtherPrice\",{})})}_getBlockTag(e){return ev(this,void 0,void 0,function*(){if(\"number\"==typeof(e=yield e)&&e<0){e%1&&ew.throwArgumentError(\"invalid BlockTag\",\"blockTag\",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return ev(this,void 0,void 0,function*(){let t=e;for(;;){if(\"\"===t||\".\"===t||\"eth\"!==e&&\"eth\"===t)return null;let r=yield this._getResolver(t,\"getResolver\");if(null!=r){let n=new ej(this,r,e);if(t!==e&&!(yield n.supportsWildcard()))return null;return n}t=t.split(\".\").slice(1).join(\".\")}})}_getResolver(e,t){return ev(this,void 0,void 0,function*(){null==t&&(t=\"ENS\");let r=yield this.getNetwork();r.ensAddress||ew.throwError(\"network does not support ENS\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:\"0x0178b8bf\"+ei(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return ev(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,l.A7)(e))throw t}\"string\"!=typeof e&&ew.throwArgumentError(\"invalid ENS name\",\"name\",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return ev(this,void 0,void 0,function*(){e=yield e;let t=(e=this.formatter.address(e)).substring(2).toLowerCase()+\".addr.reverse\",r=yield this._getResolver(t,\"lookupAddress\");if(null==r)return null;let n=eM((yield this.call({to:r,data:\"0x691f3431\"+ei(t).substring(2)})),0);return(yield this.resolveName(n))!=e?null:n})}getAvatar(e){return ev(this,void 0,void 0,function*(){let t=null;if((0,l.A7)(e)){let r=this.formatter.address(e).substring(2).toLowerCase()+\".addr.reverse\",n=yield this._getResolver(r,\"getAvatar\");if(!n)return null;t=new ej(this,n,r);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==h.Yd.errors.CALL_EXCEPTION)throw e}try{let e=eM((yield this.call({to:n,data:\"0x691f3431\"+ei(r).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==h.Yd.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return ew.throwError(e+\" not implemented\",h.Yd.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let n=new e$(eA(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=eA(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=eA(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=eA(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],n=!1,i=eA(e);return this._events=this._events.filter(e=>e.tag!==i||e.listener!=t||!!n||(n=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=eA(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var ez=function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};let eq=new h.Yd(B.i),eH=[\"call\",\"estimateGas\"];function eG(e,t){if(null==e)return null;if(\"string\"==typeof e.message&&e.message.match(\"reverted\")){let r=(0,l.A7)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if(\"object\"==typeof e){for(let r in e){let n=eG(e[r],t);if(n)return n}return null}if(\"string\"==typeof e)try{return eG(JSON.parse(e),t)}catch(e){}return null}function eV(e,t,r){let n=r.transaction||r.signedTransaction;if(\"call\"===e){let e=eG(t,!0);if(e)return e.data;eq.throwError(\"missing revert data in call exception; Transaction reverted without a reason string\",h.Yd.errors.CALL_EXCEPTION,{data:\"0x\",transaction:n,error:t})}if(\"estimateGas\"===e){let r=eG(t.body,!1);null==r&&(r=eG(t,!1)),r&&eq.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\",h.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===h.Yd.errors.SERVER_ERROR&&t.error&&\"string\"==typeof t.error.message?i=t.error.message:\"string\"==typeof t.body?i=t.body:\"string\"==typeof t.responseText&&(i=t.responseText),(i=(i||\"\").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&eq.throwError(\"insufficient funds for intrinsic transaction cost\",h.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&eq.throwError(\"nonce has already been used\",h.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&eq.throwError(\"replacement fee too low\",h.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&eq.throwError(\"legacy pre-eip-155 transactions not supported\",h.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),eH.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&eq.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\",h.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function eW(e){return new Promise(function(t){setTimeout(t,e)})}function eK(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function eY(e){return e?e.toLowerCase():e}let eZ={};class eJ extends o.E{constructor(e,t,r){if(super(),e!==eZ)throw Error(\"do not call the JsonRpcSigner constructor directly; use provider.getSigner\");(0,d.zG)(this,\"provider\",t),null==r&&(r=0),\"string\"==typeof r?((0,d.zG)(this,\"_address\",this.provider.formatter.address(r)),(0,d.zG)(this,\"_index\",null)):\"number\"==typeof r?((0,d.zG)(this,\"_index\",r),(0,d.zG)(this,\"_address\",null)):eq.throwArgumentError(\"invalid address or index\",\"addressOrIndex\",r)}connect(e){return eq.throwError(\"cannot alter JSON-RPC Signer connection\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"connect\"})}connectUnchecked(){return new eQ(eZ,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send(\"eth_accounts\",[]).then(e=>(e.length<=this._index&&eq.throwError(\"unknown account #\"+this._index,h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"getAddress\"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,d.DC)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,d.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>ez(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&eq.throwArgumentError(\"provided ENS name resolves to null\",\"tx.to\",e),t}))),(0,d.mE)({tx:(0,d.mE)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&eq.throwArgumentError(\"from address mismatch\",\"transaction\",e):t.from=r;let n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send(\"eth_sendTransaction\",[n]).then(e=>e,e=>(\"string\"==typeof e.message&&e.message.match(/user denied/i)&&eq.throwError(\"user rejected transaction\",h.Yd.errors.ACTION_REJECTED,{action:\"sendTransaction\",transaction:t}),eV(\"sendTransaction\",e,n)))})}signTransaction(e){return eq.throwError(\"signing transactions is unsupported\",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"signTransaction\"})}sendTransaction(e){return ez(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield j(()=>ez(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return ez(this,void 0,void 0,function*(){let t=\"string\"==typeof e?(0,I.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send(\"personal_sign\",[(0,l.Dv)(t),r.toLowerCase()])}catch(t){throw\"string\"==typeof t.message&&t.message.match(/user denied/i)&&eq.throwError(\"user rejected signing\",h.Yd.errors.ACTION_REJECTED,{action:\"signMessage\",from:r,messageData:e}),t}})}_legacySignMessage(e){return ez(this,void 0,void 0,function*(){let t=\"string\"==typeof e?(0,I.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send(\"eth_sign\",[r.toLowerCase(),(0,l.Dv)(t)])}catch(t){throw\"string\"==typeof t.message&&t.message.match(/user denied/i)&&eq.throwError(\"user rejected signing\",h.Yd.errors.ACTION_REJECTED,{action:\"_legacySignMessage\",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return ez(this,void 0,void 0,function*(){let n=yield P.resolveNames(e,t,r,e=>this.provider.resolveName(e)),i=yield this.getAddress();try{return yield this.provider.send(\"eth_signTypedData_v4\",[i.toLowerCase(),JSON.stringify(P.getPayload(n.domain,t,n.value))])}catch(e){throw\"string\"==typeof e.message&&e.message.match(/user denied/i)&&eq.throwError(\"user rejected signing\",h.Yd.errors.ACTION_REJECTED,{action:\"_signTypedData\",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),e}})}unlock(e){return ez(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send(\"personal_unlockAccount\",[r.toLowerCase(),e,null])})}}class eQ extends eJ{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let eX={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class e0 extends eU{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,d.tu)(this.constructor,\"defaultUrl\")()),\"string\"==typeof e?(0,d.zG)(this,\"connection\",Object.freeze({url:e})):(0,d.zG)(this,\"connection\",Object.freeze((0,d.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return\"http://localhost:8545\"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ez(this,void 0,void 0,function*(){yield eW(0);let e=null;try{e=yield this.send(\"eth_chainId\",[])}catch(t){try{e=yield this.send(\"net_version\",[])}catch(e){}}if(null!=e){let t=(0,d.tu)(this.constructor,\"getNetwork\");try{return t(a.O$.from(e).toNumber())}catch(t){return eq.throwError(\"could not detect network\",h.Yd.errors.NETWORK_ERROR,{chainId:e,event:\"invalidNetwork\",serverError:t})}}return eq.throwError(\"could not detect network\",h.Yd.errors.NETWORK_ERROR,{event:\"noNetwork\"})})}getSigner(e){return new eJ(eZ,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send(\"eth_accounts\",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:\"2.0\"};this.emit(\"debug\",{action:\"request\",request:(0,d.p$)(r),provider:this});let n=[\"eth_chainId\",\"eth_blockNumber\"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let i=L(this.connection,JSON.stringify(r),eK).then(e=>(this.emit(\"debug\",{action:\"response\",request:r,response:e,provider:this}),e),e=>{throw this.emit(\"debug\",{action:\"response\",error:e,request:r,provider:this}),e});return n&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case\"getBlockNumber\":return[\"eth_blockNumber\",[]];case\"getGasPrice\":return[\"eth_gasPrice\",[]];case\"getBalance\":return[\"eth_getBalance\",[eY(t.address),t.blockTag]];case\"getTransactionCount\":return[\"eth_getTransactionCount\",[eY(t.address),t.blockTag]];case\"getCode\":return[\"eth_getCode\",[eY(t.address),t.blockTag]];case\"getStorageAt\":return[\"eth_getStorageAt\",[eY(t.address),(0,l.$m)(t.position,32),t.blockTag]];case\"sendTransaction\":return[\"eth_sendRawTransaction\",[t.signedTransaction]];case\"getBlock\":if(t.blockTag)return[\"eth_getBlockByNumber\",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return[\"eth_getBlockByHash\",[t.blockHash,!!t.includeTransactions]];break;case\"getTransaction\":return[\"eth_getTransactionByHash\",[t.transactionHash]];case\"getTransactionReceipt\":return[\"eth_getTransactionReceipt\",[t.transactionHash]];case\"call\":return[\"eth_call\",[(0,d.tu)(this.constructor,\"hexlifyTransaction\")(t.transaction,{from:!0}),t.blockTag]];case\"estimateGas\":return[\"eth_estimateGas\",[(0,d.tu)(this.constructor,\"hexlifyTransaction\")(t.transaction,{from:!0})]];case\"getLogs\":return t.filter&&null!=t.filter.address&&(t.filter.address=eY(t.filter.address)),[\"eth_getLogs\",[t.filter]]}return null}perform(e,t){return ez(this,void 0,void 0,function*(){if(\"call\"===e||\"estimateGas\"===e){let e=t.transaction;if(e&&null!=e.type&&a.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,d.DC)(t)).transaction=(0,d.DC)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&eq.throwError(e+\" not implemented\",h.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return eV(e,r,t)}})}_startEvent(e){\"pending\"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send(\"eth_newPendingTransactionFilter\",[]);this._pendingFilter=t,t.then(function(r){return function n(){e.send(\"eth_getFilterChanges\",[r]).then(function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach(function(t){e._emitted[\"t:\"+t.toLowerCase()]=\"pending\",n=n.then(function(){return e.getTransaction(t).then(function(t){return e.emit(\"pending\",t),null})})}),n.then(function(){return eW(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send(\"eth_uninstallFilter\",[r]);return}return setTimeout(function(){n()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){\"pending\"===e.tag&&0===this.listenerCount(\"pending\")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,d.DC)(eX);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,d.uj)(e,r);let n={};return[\"chainId\",\"gasLimit\",\"gasPrice\",\"type\",\"maxFeePerGas\",\"maxPriorityFeePerGas\",\"nonce\",\"value\"].forEach(function(t){if(null==e[t])return;let r=(0,l.$P)(a.O$.from(e[t]));\"gasLimit\"===t&&(t=\"gas\"),n[t]=r}),[\"from\",\"to\",\"data\"].forEach(function(t){null!=e[t]&&(n[t]=(0,l.Dv)(e[t]))}),e.accessList&&(n.accessList=(0,O.z7)(e.accessList)),n}}},40739:function(e,t,r){\"use strict\";r.d(t,{c:function(){return l}});var n=r(36173),i=r(13421),s=r(86365),o=r(27972);let a=new i.Yd(s.i);class l extends o.r{detectNetwork(){var e,t,r,s;let o=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,s=function*(){let e=this.network;return null==e&&((e=yield o.detectNetwork.call(this))||a.throwError(\"no network detected\",i.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,n.zG)(this,\"_network\",e),this.emit(\"network\",e,null))),e},new(r||(r=Promise))(function(n,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function a(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}}},68893:function(e,t,r){\"use strict\";r.d(t,{Q:function(){return c}});var n=r(36173),i=r(13421),s=r(86365),o=r(27972);let a=new i.Yd(s.i),l=1;function u(e,t){let r=\"Web3LegacyFetcher\";return function(e,i){let s={method:e,params:i,id:l++,jsonrpc:\"2.0\"};return new Promise((e,i)=>{this.emit(\"debug\",{action:\"request\",fetcher:r,request:(0,n.p$)(s),provider:this}),t(s,(t,n)=>{if(t)return this.emit(\"debug\",{action:\"response\",fetcher:r,error:t,request:s,provider:this}),i(t);if(this.emit(\"debug\",{action:\"response\",fetcher:r,request:s,response:n,provider:this}),n.error){let e=Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,i(e)}e(n.result)})})}}class c extends o.r{constructor(e,t){null==e&&a.throwArgumentError(\"missing provider\",\"provider\",e);let r=null,i=null,s=null;\"function\"==typeof e?(r=\"unknown:\",i=e):(((r=e.host||e.path||\"\")||!e.isMetaMask||(r=\"metamask\"),s=e,e.request)?(\"\"===r&&(r=\"eip-1193:\"),i=function(t,r){null==r&&(r=[]);let i={method:t,params:r};return this.emit(\"debug\",{action:\"request\",fetcher:\"Eip1193Fetcher\",request:(0,n.p$)(i),provider:this}),e.request(i).then(e=>(this.emit(\"debug\",{action:\"response\",fetcher:\"Eip1193Fetcher\",request:i,response:e,provider:this}),e),e=>{throw this.emit(\"debug\",{action:\"response\",fetcher:\"Eip1193Fetcher\",request:i,error:e,provider:this}),e})}):e.sendAsync?i=u(e,e.sendAsync.bind(e)):e.send?i=u(e,e.send.bind(e)):a.throwArgumentError(\"unsupported provider\",\"provider\",e),r||(r=\"unknown:\")),super(r,t),(0,n.zG)(this,\"jsonRpcFetchFunc\",i),(0,n.zG)(this,\"provider\",s)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},18162:function(e,t,r){\"use strict\";r.d(t,{J:function(){return d},c:function(){return l}});var n=r(9784),i=r(13421);let s=new i.Yd(\"rlp/5.7.0\");function o(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function l(e){return(0,n.Dv)(function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=o(r.length);return n.unshift(247+n.length),n.concat(r)}(0,n.Zq)(t)||s.throwArgumentError(\"RLP object must be BytesLike\",\"object\",t);let r=Array.prototype.slice.call((0,n.lE)(t));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let i=o(r.length);return i.unshift(183+i.length),i.concat(r)}(e))}function u(e,t,r,n){let o=[];for(;r<t+1+n;){let a=c(e,r);o.push(a.result),(r+=a.consumed)>t+1+n&&s.throwError(\"child data too short\",i.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function c(e,t){if(0===e.length&&s.throwError(\"data too short\",i.Yd.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&s.throwError(\"data short segment too short\",i.Yd.errors.BUFFER_OVERRUN,{});let n=a(e,t+1,r);return t+1+r+n>e.length&&s.throwError(\"data long segment too short\",i.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+r,r+n)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&s.throwError(\"data array too short\",i.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&s.throwError(\"data array too short\",i.Yd.errors.BUFFER_OVERRUN,{});let o=a(e,t+1,r);t+1+r+o>e.length&&s.throwError(\"data array too short\",i.Yd.errors.BUFFER_OVERRUN,{});let l=(0,n.Dv)(e.slice(t+1+r,t+1+r+o));return{consumed:1+r+o,result:l}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&s.throwError(\"data too short\",i.Yd.errors.BUFFER_OVERRUN,{});let o=(0,n.Dv)(e.slice(t+1,t+1+r));return{consumed:1+r,result:o}}return{consumed:1,result:(0,n.Dv)(e[t])}}function d(e){let t=(0,n.lE)(e),r=c(t,0);return r.consumed!==t.length&&s.throwArgumentError(\"invalid rlp data\",\"data\",e),r.result}},28257:function(e,t,r){\"use strict\";r.d(t,{Y0:function(){return h},XL:function(){return p},ZN:function(){return f}});var n,i,s,o,a=r(9784);let l=new(r(13421)).Yd(\"strings/5.7.0\");function u(e,t,r,n,i){if(e===o.BAD_PREFIX||e===o.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===o.OVERRUN?r.length-t-1:0}(n=s||(s={})).current=\"\",n.NFC=\"NFC\",n.NFD=\"NFD\",n.NFKC=\"NFKC\",n.NFKD=\"NFKD\",(i=o||(o={})).UNEXPECTED_CONTINUE=\"unexpected continuation byte\",i.BAD_PREFIX=\"bad codepoint prefix\",i.OVERRUN=\"string overrun\",i.MISSING_CONTINUE=\"missing continuation byte\",i.OUT_OF_RANGE=\"out of UTF-8 range\",i.UTF16_SURROGATE=\"UTF-16 surrogate\",i.OVERLONG=\"overlong representation\";let c=Object.freeze({error:function(e,t,r,n,i){return l.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,\"bytes\",r)},ignore:u,replace:function(e,t,r,n,i){return e===o.OVERLONG?(n.push(i),0):(n.push(65533),u(e,t,r,n,i))}});function d(e,t){null==t&&(t=c.error),e=(0,a.lE)(e);let r=[],n=0;for(;n<e.length;){let i=e[n++];if(i>>7==0){r.push(i);continue}let s=null,a=null;if((224&i)==192)s=1,a=127;else if((240&i)==224)s=2,a=2047;else if((248&i)==240)s=3,a=65535;else{(192&i)==128?n+=t(o.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(o.BAD_PREFIX,n-1,e,r);continue}if(n-1+s>=e.length){n+=t(o.OVERRUN,n-1,e,r);continue}let l=i&(1<<8-s-1)-1;for(let i=0;i<s;i++){let i=e[n];if((192&i)!=128){n+=t(o.MISSING_CONTINUE,n,e,r),l=null;break}l=l<<6|63&i,n++}if(null!==l){if(l>1114111){n+=t(o.OUT_OF_RANGE,n-1-s,e,r,l);continue}if(l>=55296&&l<=57343){n+=t(o.UTF16_SURROGATE,n-1-s,e,r,l);continue}if(l<=a){n+=t(o.OVERLONG,n-1-s,e,r,l);continue}r.push(l)}}return r}function h(e,t=s.current){t!=s.current&&(l.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error(\"invalid utf-8 string\");let s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,a.lE)(r)}function f(e,t){return d(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join(\"\")}function p(e,t=s.current){return d(h(e,t))}},2149:function(e,t,r){\"use strict\";r.d(t,{z7:function(){return eo},Qc:function(){return eh},qC:function(){return ec}});var n,i,s=r(89005),o=r(22594),a=r(9784),l=r(75986),u=r(43481),c=r(36173),d=r(18162),h=r(58171),f=r.n(h),p=r(83699),g=r.n(p);function m(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(e,null==t?r.path:t)}},r.exports),r.exports}\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:void 0!==r.g?r.g:\"undefined\"!=typeof self&&self;var y=b;function b(e,t){if(!e)throw Error(t||\"Assertion failed\")}b.equal=function(e,t,r){if(e!=t)throw Error(r||\"Assertion failed: \"+e+\" != \"+t)};var v=m(function(e,t){function r(e){return 1===e.length?\"0\"+e:e}function n(e){for(var t=\"\",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(\"string\"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if(\"hex\"===t){(e=e.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(e=\"0\"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),s=i>>8,o=255&i;s?r.push(s,o):r.push(o)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return\"hex\"===t?n(e):e}}),w=m(function(e,t){t.assert=y,t.toArray=v.toArray,t.zero2=v.zero2,t.toHex=v.toHex,t.encode=v.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,s=e.clone(),o=0;o<n.length;o++){var a,l=s.andln(i-1);s.isOdd()?(a=l>(i>>1)-1?(i>>1)-l:l,s.isubn(a)):a=0,n[o]=a,s.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var s,o,a,l=e.andln(3)+n&3,u=t.andln(3)+i&3;3===l&&(l=-1),3===u&&(u=-1),o=(1&l)==0?0:(3==(s=e.andln(7)+n&7)||5===s)&&2===u?-l:l,r[0].push(o),a=(1&u)==0?0:(3==(s=t.andln(7)+i&7)||5===s)&&2===l?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n=\"_\"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return\"string\"==typeof e?t.toArray(e,\"hex\"):e},t.intFromLE=function(e){return new(f())(e,\"hex\",\"le\")}}),_=w.getNAF,E=w.getJSF,A=w.assert;function x(e,t){this.type=e,this.p=new(f())(t.p,16),this.red=t.prime?f().red(t.prime):f().mont(this.p),this.zero=new(f())(0).toRed(this.red),this.one=new(f())(1).toRed(this.red),this.two=new(f())(2).toRed(this.red),this.n=t.n&&new(f())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function k(e,t){this.curve=e,this.type=t,this.precomputed=null}x.prototype.point=function(){throw Error(\"Not implemented\")},x.prototype.validate=function(){throw Error(\"Not implemented\")},x.prototype._fixedNafMul=function(e,t){A(e.precomputed);var r,n,i=e._getDoubles(),s=_(t,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<s.length;r+=i.step){n=0;for(var l=r+i.step-1;l>=r;l--)n=(n<<1)+s[l];a.push(n)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=o;d>0;d--){for(r=0;r<a.length;r++)(n=a[r])===d?c=c.mixedAdd(i.points[r]):n===-d&&(c=c.mixedAdd(i.points[r].neg()));u=u.add(c)}return u.toP()},x.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=_(t,r,this._bitLength),o=this.jpoint(null,null,null),a=s.length-1;a>=0;a--){for(var l=0;a>=0&&0===s[a];a--)l++;if(a>=0&&l++,o=o.dblp(l),a<0)break;var u=s[a];A(0!==u),o=\"affine\"===e.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return\"affine\"===e.type?o.toP():o},x.prototype._wnafMulAdd=function(e,t,r,n,i){var s,o,a,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,d=0;for(s=0;s<n;s++){var h=(a=t[s])._getNAFPoints(e);l[s]=h.wnd,u[s]=h.points}for(s=n-1;s>=1;s-=2){var f=s-1,p=s;if(1!==l[f]||1!==l[p]){c[f]=_(r[f],l[f],this._bitLength),c[p]=_(r[p],l[p],this._bitLength),d=Math.max(c[f].length,d),d=Math.max(c[p].length,d);continue}var g=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(g[1]=t[f].add(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].add(t[p].neg())):(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],y=E(r[f],r[p]);for(o=0,d=Math.max(y[0].length,d),c[f]=Array(d),c[p]=Array(d);o<d;o++){var b=0|y[0][o],v=0|y[1][o];c[f][o]=m[(b+1)*3+(v+1)],c[p][o]=0,u[f]=g}}var w=this.jpoint(null,null,null),A=this._wnafT4;for(s=d;s>=0;s--){for(var x=0;s>=0;){var k=!0;for(o=0;o<n;o++)A[o]=0|c[o][s],0!==A[o]&&(k=!1);if(!k)break;x++,s--}if(s>=0&&x++,w=w.dblp(x),s<0)break;for(o=0;o<n;o++){var S=A[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w=\"affine\"===a.type?w.mixedAdd(a):w.add(a))}}for(s=0;s<n;s++)u[s]=null;return i?w:w.toP()},x.BasePoint=k,k.prototype.eq=function(){throw Error(\"Not implemented\")},k.prototype.validate=function(){return this.curve.validate(this)},x.prototype.decodePoint=function(e,t){e=w.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?A(e[e.length-1]%2==0):7===e[0]&&A(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error(\"Unknown point format\")},k.prototype.encodeCompressed=function(e){return this.encode(e,!0)},k.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray(\"be\",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray(\"be\",t))},k.prototype.encode=function(e,t){return w.encode(this._encode(t),e)},k.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},k.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},k.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var s=0;s<e;s++)n=n.dbl();r.push(n)}return{step:e,points:r}},k.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var S=m(function(e){\"function\"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),$=w.assert;function C(e){x.call(this,\"short\",e),this.a=new(f())(e.a,16).toRed(this.red),this.b=new(f())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function P(e,t,r,n){x.BasePoint.call(this,e,\"affine\"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(f())(t,16),this.y=new(f())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function I(e,t,r,n){x.BasePoint.call(this,e,\"jacobian\"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(f())(0)):(this.x=new(f())(t,16),this.y=new(f())(r,16),this.z=new(f())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}S(C,x),C.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new(f())(e.beta,16).toRed(this.red);else{var t,r,n,i=this._getEndoRoots(this.p);t=(t=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new(f())(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],$(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new(f())(e.a,16),b:new(f())(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},C.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:f().mont(e),r=new(f())(2).toRed(t).redInvm(),n=r.redNeg(),i=new(f())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},C.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,o,a,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new(f())(1),g=new(f())(0),m=new(f())(0),y=new(f())(1),b=0;0!==d.cmpn(0);){var v=h.div(d);l=h.sub(v.mul(d)),u=m.sub(v.mul(p));var w=y.sub(v.mul(g));if(!n&&0>l.cmp(c))t=a.neg(),r=p,n=l.neg(),i=u;else if(n&&2==++b)break;a=l,h=d,d=l,m=p,p=u,y=g,g=w}s=l.neg(),o=u;var _=n.sqr().add(i.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},C.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),a=s.mul(n.a),l=i.mul(r.b),u=s.mul(n.b);return{k1:e.sub(o).sub(a),k2:l.add(u).neg()}},C.prototype.pointFromX=function(e,t){(e=new(f())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error(\"invalid point\");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},C.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},C.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s<e.length;s++){var o=this._endoSplit(t[s]),a=e[s],l=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),n[2*s]=a,n[2*s+1]=l,i[2*s]=o.k1,i[2*s+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*s,r),c=0;c<2*s;c++)n[c]=null,i[c]=null;return u},S(P,x.BasePoint),C.prototype.point=function(e,t,r){return new P(this,e,t,r)},C.prototype.pointFromJSON=function(e,t){return P.fromJSON(this,e,t)},P.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},P.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},P.fromJSON=function(e,t,r){\"string\"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var s=t[2];return n.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[n].concat(s.doubles.points.map(i))},naf:s.naf&&{wnd:s.naf.wnd,points:[n].concat(s.naf.points.map(i))}},n},P.prototype.inspect=function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\">\"},P.prototype.isInfinity=function(){return this.inf},P.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},P.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},P.prototype.getX=function(){return this.x.fromRed()},P.prototype.getY=function(){return this.y.fromRed()},P.prototype.mul=function(e){return(e=new(f())(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},P.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},P.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},P.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},P.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},P.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},S(I,x.BasePoint),C.prototype.jpoint=function(e,t,r){return new I(this,e,t,r)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),l=s.redSub(o);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),d=n.redMul(u),h=l.redSqr().redIAdd(c).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(s.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,f,p)},I.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=r.redSub(n),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),u=l.redMul(o),c=r.redMul(l),d=a.redSqr().redIAdd(u).redISub(c).redISub(c),h=a.redMul(c.redISub(d)).redISub(i.redMul(u)),f=this.z.redMul(o);return this.curve.jpoint(d,h,f)},I.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,s=this.x,o=this.y,a=this.z,l=a.redSqr().redSqr(),u=o.redAdd(o);for(t=0;t<e;t++){var c=s.redSqr(),d=u.redSqr(),h=d.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(l)),p=s.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),y=f.redMul(m);y=y.redIAdd(y).redISub(h);var b=u.redMul(a);t+1<e&&(l=l.redMul(h)),s=g,a=b,u=y}return this.curve.jpoint(s,u.redMul(i),a)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},I.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(s);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),l=a.redSqr().redISub(o).redISub(o),u=s.redIAdd(s);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=a.redMul(o.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(c).redISub(h);f=f.redIAdd(f);var p=c.redAdd(c).redIAdd(c),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},I.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(s);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=a.redSqr().redISub(o).redISub(o);e=l;var u=s.redIAdd(s);u=(u=u.redIAdd(u)).redIAdd(u),t=a.redMul(o.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},I.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),s=t.redSqr(),o=r.redSqr(),a=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(o),c=a.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=a.redMul(d).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,f,p)},I.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),s=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(s)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(o).redSqr().redISub(s).redISub(a).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(a).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(u.redMul(l.redISub(u)).redISub(o.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(d,h,f)},I.prototype.mul=function(e,t){return e=new(f())(e,t),this.curve._wnafMul(this,e)},I.prototype.eq=function(e){if(\"affine\"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},I.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},I.prototype.inspect=function(){return this.isInfinity()?\"<EC JPoint Infinity>\":\"<EC JPoint x: \"+this.x.toString(16,2)+\" y: \"+this.y.toString(16,2)+\" z: \"+this.z.toString(16,2)+\">\"},I.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var O=m(function(e,t){t.base=x,t.short=C,t.mont=null,t.edwards=null}),N=m(function(e,t){var r,n=w.assert;function i(e){\"short\"===e.type?this.curve=new O.short(e):\"edwards\"===e.type?this.curve=new O.edwards(e):this.curve=new O.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),\"Invalid curve\"),n(this.g.mul(this.n).isInfinity(),\"Invalid curve, G*N != O\")}function s(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,s(\"p192\",{type:\"short\",prime:\"p192\",p:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc\",b:\"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1\",n:\"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831\",hash:g().sha256,gRed:!1,g:[\"188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012\",\"07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811\"]}),s(\"p224\",{type:\"short\",prime:\"p224\",p:\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe\",b:\"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4\",n:\"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d\",hash:g().sha256,gRed:!1,g:[\"b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21\",\"bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34\"]}),s(\"p256\",{type:\"short\",prime:null,p:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff\",a:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc\",b:\"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b\",n:\"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551\",hash:g().sha256,gRed:!1,g:[\"6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296\",\"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5\"]}),s(\"p384\",{type:\"short\",prime:null,p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff\",a:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc\",b:\"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef\",n:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973\",hash:g().sha384,gRed:!1,g:[\"aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7\",\"3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f\"]}),s(\"p521\",{type:\"short\",prime:null,p:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\",a:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc\",b:\"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00\",n:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409\",hash:g().sha512,gRed:!1,g:[\"000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66\",\"00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650\"]}),s(\"curve25519\",{type:\"mont\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"76d06\",b:\"1\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:g().sha256,gRed:!1,g:[\"9\"]}),s(\"ed25519\",{type:\"edwards\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"-1\",c:\"1\",d:\"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:g().sha256,gRed:!1,g:[\"216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\",\"6666666666666666666666666666666666666666666666666666666666666658\"]});try{r=null.crash()}catch(e){r=void 0}s(\"secp256k1\",{type:\"short\",prime:\"k256\",p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\",a:\"0\",b:\"7\",n:\"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141\",h:\"1\",hash:g().sha256,beta:\"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\",lambda:\"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72\",basis:[{a:\"3086d221a7d46bcde86c90e49284eb15\",b:\"-e4437ed6010e88286f547fa90abfe4c3\"},{a:\"114ca50f7a8e2f3f657c1108d9d44cfd8\",b:\"3086d221a7d46bcde86c90e49284eb15\"}],gRed:!1,g:[\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\",r]})});function M(e){if(!(this instanceof M))return new M(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=v.toArray(e.entropy,e.entropyEnc||\"hex\"),r=v.toArray(e.nonce,e.nonceEnc||\"hex\"),n=v.toArray(e.pers,e.persEnc||\"hex\");y(t.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._init(t,r,n)}M.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new(g()).hmac(this.hash,this.K)},M.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(e,t,r,n){\"string\"!=typeof t&&(n=r,r=t,t=null),e=v.toArray(e,t),r=v.toArray(r,n),y(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._update(e.concat(r||[])),this._reseed=1},M.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error(\"Reseed is required\");\"string\"!=typeof t&&(n=r,r=t,t=null),r&&(r=v.toArray(r,n||\"hex\"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var s=i.slice(0,e);return this._update(r),this._reseed++,v.encode(s,t)};var R=w.assert;function T(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}T.fromPublic=function(e,t,r){return t instanceof T?t:new T(e,{pub:t,pubEnc:r})},T.fromPrivate=function(e,t,r){return t instanceof T?t:new T(e,{priv:t,privEnc:r})},T.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:\"Invalid public key\"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:\"Public key * N != O\"}:{result:!1,reason:\"Public key is not a point\"}},T.prototype.getPublic=function(e,t){return(\"string\"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},T.prototype.getPrivate=function(e){return\"hex\"===e?this.priv.toString(16,2):this.priv},T.prototype._importPrivate=function(e,t){this.priv=new(f())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},T.prototype._importPublic=function(e,t){if(e.x||e.y){\"mont\"===this.ec.curve.type?R(e.x,\"Need x coordinate\"):(\"short\"===this.ec.curve.type||\"edwards\"===this.ec.curve.type)&&R(e.x&&e.y,\"Need both x and y coordinate\"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},T.prototype.derive=function(e){return e.validate()||R(e.validate(),\"public point not validated\"),e.mul(this.priv).getX()},T.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},T.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},T.prototype.inspect=function(){return\"<Key priv: \"+(this.priv&&this.priv.toString(16,2))+\" pub: \"+(this.pub&&this.pub.inspect())+\" >\"};var D=w.assert;function L(e,t){if(e instanceof L)return e;this._importDER(e,t)||(D(e.r&&e.s,\"Signature without r or s\"),this.r=new(f())(e.r,16),this.s=new(f())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function j(){this.place=0}function B(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,s=0,o=t.place;s<n;s++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function F(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function U(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}L.prototype._importDER=function(e,t){e=w.toArray(e,t);var r=new j;if(48!==e[r.place++])return!1;var n=B(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var i=B(e,r);if(!1===i)return!1;var s=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var o=B(e,r);if(!1===o||e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(f())(s),this.s=new(f())(a),this.recoveryParam=null,!0},L.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=F(t),r=F(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var i=n.concat(r),s=[48];return U(s,i.length),s=s.concat(i),w.encode(s,e)};var z=function(){throw Error(\"unsupported\")},q=w.assert;function H(e){if(!(this instanceof H))return new H(e);\"string\"==typeof e&&(q(Object.prototype.hasOwnProperty.call(N,e),\"Unknown curve \"+e),e=N[e]),e instanceof N.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}H.prototype.keyPair=function(e){return new T(this,e)},H.prototype.keyFromPrivate=function(e,t){return T.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return T.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new M({hash:this.hash,pers:e.pers,persEnc:e.persEnc||\"utf8\",entropy:e.entropy||z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||\"utf8\",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(f())(2));;){var i=new(f())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},H.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},H.prototype.sign=function(e,t,r,n){\"object\"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(f())(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray(\"be\",i),o=e.toArray(\"be\",i),a=new M({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||\"utf8\"}),l=this.n.sub(new(f())(1)),u=0;;u++){var c=n.k?n.k(u):new(f())(a.generate(this.n.byteLength()));if(!(0>=(c=this._truncateToN(c,!0)).cmpn(1)||c.cmp(l)>=0)){var d=this.g.mul(c);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var g=c.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return n.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),m^=1),new L({r:p,s:g,recoveryParam:m})}}}}}},H.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(f())(e,16)),r=this.keyFromPublic(r,n);var i,s=(t=new L(t,\"hex\")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(e).umod(this.n),u=a.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(l,r.getPublic(),u)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(l,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},H.prototype.recoverPubKey=function(e,t,r,n){q((3&r)===r,\"The recovery param is more than two bits\"),t=new L(t,n);var i=this.n,s=new(f())(e),o=t.r,a=t.s,l=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error(\"Unable to find sencond key candinate\");o=u?this.curve.pointFromX(o.add(this.curve.n),l):this.curve.pointFromX(o,l);var c=t.r.invm(i),d=i.sub(s).mul(c).umod(i),h=a.mul(c).umod(i);return this.g.mulAdd(d,o,h)},H.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new L(t,n)).recoveryParam)return t.recoveryParam;for(var i,s=0;s<4;s++){try{i=this.recoverPubKey(e,t,s)}catch(e){continue}if(i.eq(r))return s}throw Error(\"Unable to find valid recovery factor\")};var G=m(function(e,t){t.version=\"6.5.4\",t.utils=w,t.rand=function(){throw Error(\"unsupported\")},t.curve=O,t.curves=N,t.ec=H,t.eddsa=null}).ec,V=r(13421);let W=new V.Yd(\"signing-key/5.7.0\"),K=null;function Y(){return K||(K=new G(\"secp256k1\")),K}class Z{constructor(e){(0,c.zG)(this,\"curve\",\"secp256k1\"),(0,c.zG)(this,\"privateKey\",(0,a.Dv)(e)),32!==(0,a.E1)(this.privateKey)&&W.throwArgumentError(\"invalid private key\",\"privateKey\",\"[[ REDACTED ]]\");let t=Y().keyFromPrivate((0,a.lE)(this.privateKey));(0,c.zG)(this,\"publicKey\",\"0x\"+t.getPublic(!1,\"hex\")),(0,c.zG)(this,\"compressedPublicKey\",\"0x\"+t.getPublic(!0,\"hex\")),(0,c.zG)(this,\"_isSigningKey\",!0)}_addPoint(e){let t=Y().keyFromPublic((0,a.lE)(this.publicKey)),r=Y().keyFromPublic((0,a.lE)(e));return\"0x\"+t.pub.add(r.pub).encodeCompressed(\"hex\")}signDigest(e){let t=Y().keyFromPrivate((0,a.lE)(this.privateKey)),r=(0,a.lE)(e);32!==r.length&&W.throwArgumentError(\"bad digest length\",\"digest\",e);let n=t.sign(r,{canonical:!0});return(0,a.N)({recoveryParam:n.recoveryParam,r:(0,a.$m)(\"0x\"+n.r.toString(16),32),s:(0,a.$m)(\"0x\"+n.s.toString(16),32)})}computeSharedSecret(e){let t=Y().keyFromPrivate((0,a.lE)(this.privateKey)),r=Y().keyFromPublic((0,a.lE)(J(e)));return(0,a.$m)(\"0x\"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function J(e,t){let r=(0,a.lE)(e);if(32===r.length){let e=new Z(r);return t?\"0x\"+Y().keyFromPrivate(r).getPublic(!0,\"hex\"):e.publicKey}return 33===r.length?t?(0,a.Dv)(r):\"0x\"+Y().keyFromPublic(r).getPublic(!1,\"hex\"):65===r.length?t?\"0x\"+Y().keyFromPublic(r).getPublic(!0,\"hex\"):(0,a.Dv)(r):W.throwArgumentError(\"invalid public or private key\",\"key\",\"[REDACTED]\")}let Q=new V.Yd(\"transactions/5.7.0\");function X(e){return\"0x\"===e?null:(0,s.Kn)(e)}function ee(e){return\"0x\"===e?l._Y:o.O$.from(e)}(n=i||(i={}))[n.legacy=0]=\"legacy\",n[n.eip2930=1]=\"eip2930\",n[n.eip1559=2]=\"eip1559\";let et=[{name:\"nonce\",maxLength:32,numeric:!0},{name:\"gasPrice\",maxLength:32,numeric:!0},{name:\"gasLimit\",maxLength:32,numeric:!0},{name:\"to\",length:20},{name:\"value\",maxLength:32,numeric:!0},{name:\"data\"}],er={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function en(e,t){return function(e){let t=J(e);return(0,s.Kn)((0,a.p3)((0,u.w)((0,a.p3)(t,1)),12))}(function(e,t){let r=(0,a.N)(t),n={r:(0,a.lE)(r.r),s:(0,a.lE)(r.s)};return\"0x\"+Y().recoverPubKey((0,a.lE)(e),n,r.recoveryParam).encode(\"hex\",!1)}((0,a.lE)(e),t))}function ei(e,t){let r=(0,a.G1)(o.O$.from(e).toHexString());return r.length>32&&Q.throwArgumentError(\"invalid length for \"+t,\"transaction:\"+t,e),r}function es(e,t){return{address:(0,s.Kn)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,a.E1)(t)&&Q.throwArgumentError(\"invalid access list storageKey\",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function eo(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&Q.throwArgumentError(\"access list expected to be [ address, storageKeys[] ]\",`value[${t}]`,e),es(e[0],e[1])):es(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return es(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function ea(e){return eo(e).map(e=>[e.address,e.storageKeys])}function el(e,t){if(null!=e.gasPrice){let t=o.O$.from(e.gasPrice),r=o.O$.from(e.maxFeePerGas||0);t.eq(r)||Q.throwArgumentError(\"mismatch EIP-1559 gasPrice != maxFeePerGas\",\"tx\",{gasPrice:t,maxFeePerGas:r})}let r=[ei(e.chainId||0,\"chainId\"),ei(e.nonce||0,\"nonce\"),ei(e.maxPriorityFeePerGas||0,\"maxPriorityFeePerGas\"),ei(e.maxFeePerGas||0,\"maxFeePerGas\"),ei(e.gasLimit||0,\"gasLimit\"),null!=e.to?(0,s.Kn)(e.to):\"0x\",ei(e.value||0,\"value\"),e.data||\"0x\",ea(e.accessList||[])];if(t){let e=(0,a.N)(t);r.push(ei(e.recoveryParam,\"recoveryParam\")),r.push((0,a.G1)(e.r)),r.push((0,a.G1)(e.s))}return(0,a.xs)([\"0x02\",d.c(r)])}function eu(e,t){let r=[ei(e.chainId||0,\"chainId\"),ei(e.nonce||0,\"nonce\"),ei(e.gasPrice||0,\"gasPrice\"),ei(e.gasLimit||0,\"gasLimit\"),null!=e.to?(0,s.Kn)(e.to):\"0x\",ei(e.value||0,\"value\"),e.data||\"0x\",ea(e.accessList||[])];if(t){let e=(0,a.N)(t);r.push(ei(e.recoveryParam,\"recoveryParam\")),r.push((0,a.G1)(e.r)),r.push((0,a.G1)(e.s))}return(0,a.xs)([\"0x01\",d.c(r)])}function ec(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&Q.throwArgumentError(\"untyped transactions do not support accessList; include type: 1\",\"transaction\",e),function(e,t){(0,c.uj)(e,er);let r=[];et.forEach(function(t){let n=e[t.name]||[],i={};t.numeric&&(i.hexPad=\"left\"),n=(0,a.lE)((0,a.Dv)(n,i)),t.length&&n.length!==t.length&&n.length>0&&Q.throwArgumentError(\"invalid length for \"+t.name,\"transaction:\"+t.name,n),t.maxLength&&(n=(0,a.G1)(n)).length>t.maxLength&&Q.throwArgumentError(\"invalid length for \"+t.name,\"transaction:\"+t.name,n),r.push((0,a.Dv)(n))});let n=0;if(null!=e.chainId?\"number\"!=typeof(n=e.chainId)&&Q.throwArgumentError(\"invalid transaction.chainId\",\"transaction\",e):t&&!(0,a.Zq)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,a.Dv)(n)),r.push(\"0x\"),r.push(\"0x\")),!t)return d.c(r);let i=(0,a.N)(t),s=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),s+=2*n+8,i.v>28&&i.v!==s&&Q.throwArgumentError(\"transaction.chainId/signature.v mismatch\",\"signature\",t)):i.v!==s&&Q.throwArgumentError(\"transaction.chainId/signature.v mismatch\",\"signature\",t),r.push((0,a.Dv)(s)),r.push((0,a.G1)((0,a.lE)(i.r))),r.push((0,a.G1)((0,a.lE)(i.s))),d.c(r)}(e,t);switch(e.type){case 1:return eu(e,t);case 2:return el(e,t)}return Q.throwError(`unsupported transaction type: ${e.type}`,V.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"serializeTransaction\",transactionType:e.type})}function ed(e,t,r){try{let r=ee(t[0]).toNumber();if(0!==r&&1!==r)throw Error(\"bad recid\");e.v=r}catch(e){Q.throwArgumentError(\"invalid v for transaction type: 1\",\"v\",t[0])}e.r=(0,a.$m)(t[1],32),e.s=(0,a.$m)(t[2],32);try{let t=(0,u.w)(r(e));e.from=en(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function eh(e){let t=(0,a.lE)(e);if(t[0]>127)return function(e){let t=d.J(e);9!==t.length&&6!==t.length&&Q.throwArgumentError(\"invalid raw transaction\",\"rawTransaction\",e);let r={nonce:ee(t[0]).toNumber(),gasPrice:ee(t[1]),gasLimit:ee(t[2]),to:X(t[3]),value:ee(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.O$.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,a.$m)(t[7],32),r.s=(0,a.$m)(t[8],32),o.O$.from(r.r).isZero()&&o.O$.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,a.Dv)(r.chainId)),i.push(\"0x\"),i.push(\"0x\"),n-=2*r.chainId+8);let s=(0,u.w)(d.c(i));try{r.from=en(s,{r:(0,a.Dv)(r.r),s:(0,a.Dv)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,u.w)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=d.J(e.slice(1));8!==t.length&&11!==t.length&&Q.throwArgumentError(\"invalid component count for transaction type: 1\",\"payload\",(0,a.Dv)(e));let r={type:1,chainId:ee(t[0]).toNumber(),nonce:ee(t[1]).toNumber(),gasPrice:ee(t[2]),gasLimit:ee(t[3]),to:X(t[4]),value:ee(t[5]),data:t[6],accessList:eo(t[7])};return 8===t.length||(r.hash=(0,u.w)(e),ed(r,t.slice(8),eu)),r}(t);case 2:return function(e){let t=d.J(e.slice(1));9!==t.length&&12!==t.length&&Q.throwArgumentError(\"invalid component count for transaction type: 2\",\"payload\",(0,a.Dv)(e));let r=ee(t[2]),n=ee(t[3]),i={type:2,chainId:ee(t[0]).toNumber(),nonce:ee(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:ee(t[4]),to:X(t[5]),value:ee(t[6]),data:t[7],accessList:eo(t[8])};return 9===t.length||(i.hash=(0,u.w)(e),ed(i,t.slice(9),el)),i}(t)}return Q.throwError(`unsupported transaction type: ${t[0]}`,V.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"parseTransaction\",transactionType:t[0]})}},58789:function(e,t,r){\"use strict\";r.d(t,{dF:function(){return x},bM:function(){return E},fi:function(){return k},vz:function(){return A}});var n=r(9784),i=r(13421),s=r(38418),o=r(22594);let a=new i.Yd(s.i),l={},u=o.O$.from(0),c=o.O$.from(-1);function d(e,t,r,n){let s={fault:t,operation:r};return void 0!==n&&(s.value=n),a.throwError(e,i.Yd.errors.NUMERIC_FAULT,s)}let h=\"0\";for(;h.length<256;)h+=h;function f(e){if(\"number\"!=typeof e)try{e=o.O$.from(e).toNumber()}catch(e){}return\"number\"==typeof e&&e>=0&&e<=256&&!(e%1)?\"1\"+h.substring(0,e):a.throwArgumentError(\"invalid decimal size\",\"decimals\",e)}function p(e,t){null==t&&(t=0);let r=f(t),n=(e=o.O$.from(e)).lt(u);n&&(e=e.mul(c));let i=e.mod(r).toString();for(;i.length<r.length-1;)i=\"0\"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let s=e.div(r).toString();return e=1===r.length?s:s+\".\"+i,n&&(e=\"-\"+e),e}function g(e,t){null==t&&(t=0);let r=f(t);\"string\"==typeof e&&e.match(/^-?[0-9.]+$/)||a.throwArgumentError(\"invalid decimal value\",\"value\",e);let n=\"-\"===e.substring(0,1);n&&(e=e.substring(1)),\".\"===e&&a.throwArgumentError(\"missing value\",\"value\",e);let i=e.split(\".\");i.length>2&&a.throwArgumentError(\"too many decimal points\",\"value\",e);let s=i[0],l=i[1];for(s||(s=\"0\"),l||(l=\"0\");\"0\"===l[l.length-1];)l=l.substring(0,l.length-1);for(l.length>r.length-1&&d(\"fractional component exceeds decimals\",\"underflow\",\"parseFixed\"),\"\"===l&&(l=\"0\");l.length<r.length-1;)l+=\"0\";let u=o.O$.from(s),h=o.O$.from(l),p=u.mul(r).add(h);return n&&(p=p.mul(c)),p}class m{constructor(e,t,r,n){e!==l&&a.throwError(\"cannot use FixedFormat constructor; use FixedFormat.from\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?\"\":\"u\")+\"fixed\"+String(r)+\"x\"+String(n),this._multiplier=f(n),Object.freeze(this)}static from(e){if(e instanceof m)return e;\"number\"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if(\"string\"==typeof e){if(\"fixed\"===e);else if(\"ufixed\"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||a.throwArgumentError(\"invalid fixed format\",\"format\",e),t=\"u\"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}else if(e){let i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&a.throwArgumentError(\"invalid fixed format (\"+t+\" not \"+r+\")\",\"format.\"+t,e[t]),e[t]);t=i(\"signed\",\"boolean\",t),r=i(\"width\",\"number\",r),n=i(\"decimals\",\"number\",n)}return r%8&&a.throwArgumentError(\"invalid fixed format width (not byte aligned)\",\"format.width\",r),n>80&&a.throwArgumentError(\"invalid fixed format (decimals too large)\",\"format.decimals\",n),new m(l,t,r,n)}}class y{constructor(e,t,r,n){e!==l&&a.throwError(\"cannot use FixedNumber constructor; use FixedNumber.from\",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&a.throwArgumentError(\"incompatible format; use fixedNumber.toFormat\",\"other\",e)}addUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=g(this._value,this.format.decimals),r=g(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(\".\");1===e.length&&e.push(\"0\");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(b.toFormat(t.format))),t}ceiling(){let e=this.toString().split(\".\");1===e.length&&e.push(\"0\");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(b.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(\".\");if(1===t.length&&t.push(\"0\"),(e<0||e>80||e%1)&&a.throwArgumentError(\"invalid decimal count\",\"decimals\",e),t[1].length<=e)return this;let r=y.from(\"1\"+h.substring(0,e),this.format),n=v.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return\"0.0\"===this._value||\"0\"===this._value}isNegative(){return\"-\"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&a.throwArgumentError(\"invalid byte width\",\"width\",e);let t=o.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.$m)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,o.Zm)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r=\"fixed\"),y.fromString(p(e,t),m.from(r))}static fromString(e,t){null==t&&(t=\"fixed\");let r=m.from(t),i=g(e,r.decimals);!r.signed&&i.lt(u)&&d(\"unsigned value cannot be negative\",\"overflow\",\"value\",e);let s=null;return r.signed?s=i.toTwos(r.width).toHexString():(s=i.toHexString(),s=(0,n.$m)(s,r.width/8)),new y(l,s,p(i,r.decimals),r)}static fromBytes(e,t){null==t&&(t=\"fixed\");let r=m.from(t);if((0,n.lE)(e).length>r.width/8)throw Error(\"overflow\");let i=o.O$.from(e);return r.signed&&(i=i.fromTwos(r.width)),new y(l,i.toTwos((r.signed?0:1)+r.width).toHexString(),p(i,r.decimals),r)}static from(e,t){if(\"string\"==typeof e)return y.fromString(e,t);if((0,n._t)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==i.Yd.errors.INVALID_ARGUMENT)throw e}return a.throwArgumentError(\"invalid FixedNumber value\",\"value\",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let b=y.from(1),v=y.from(\"0.5\"),w=new i.Yd(\"units/5.7.0\"),_=[\"wei\",\"kwei\",\"mwei\",\"gwei\",\"szabo\",\"finney\",\"ether\"];function E(e,t){if(\"string\"==typeof t){let e=_.indexOf(t);-1!==e&&(t=3*e)}return p(e,null!=t?t:18)}function A(e,t){if(\"string\"!=typeof e&&w.throwArgumentError(\"value must be a string\",\"value\",e),\"string\"==typeof t){let e=_.indexOf(t);-1!==e&&(t=3*e)}return g(e,null!=t?t:18)}function x(e){return E(e,18)}function k(e){return A(e,18)}},3754:function(e,t,r){\"use strict\";var n,i;r.d(t,{GR:function(){return l},M_:function(){return a}}),(i=n||(n={})).MISSING_OR_INVALID_PRIVY_APP_ID=\"missing_or_invalid_privy_app_id\",i.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID=\"missing_or_invalid_privy_account_id\",i.INVALID_DATA=\"invalid_data\",i.LINKED_TO_ANOTHER_USER=\"linked_to_another_user\",i.ALLOWLIST_REJECTED=\"allowlist_rejected\",i.OAUTH_USER_DENIED=\"oauth_user_denied\",i.UNKNOWN_AUTH_ERROR=\"unknown_auth_error\",i.USER_EXITED_AUTH_FLOW=\"exited_auth_flow\",i.MUST_BE_AUTHENTICATED=\"must_be_authenticated\",i.UNKNOWN_CONNECT_WALLET_ERROR=\"unknown_connect_wallet_error\",i.GENERIC_CONNECT_WALLET_ERROR=\"generic_connect_wallet_error\",i.CLIENT_REQUEST_TIMEOUT=\"client_request_timeout\",i.INVALID_CREDENTIALS=\"invalid_credentials\";class s extends Error{cause;privyErrorCode;constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:\"\"}: ${this.message}${this.cause?` [cause: ${this.cause}]`:\"\"}`}}class o extends s{type=\"provider_error\";code;data;constructor(e,t,r){super(e),this.code=t,this.data=r}}let a={UNKNOWN_ERROR:{eipCode:0,message:\"Unknown error\",detail:\"Unknown error\",retryable:!0},E4001_DEFAULT_USER_REJECTED_REQUEST:{eipCode:4001,message:\"User Rejected Request\",detail:\"The user rejected the request.\",default:!0,retryable:!0},E4100_DEFAULT_UNAUTHORIZED:{eipCode:4100,message:\"Unauthorized\",detail:\"The requested method and/or account has not been authorized by the user.\",default:!0,retryable:!1},E4200_DEFAULT_UNSUPPORTED_METHOD:{eipCode:4200,message:\"Unsupported Method\",detail:\"The Provider does not support the requested method.\",default:!0,retryable:!1},E4900_DEFAULT_DISCONNECTED:{eipCode:4900,message:\"Disconnected\",detail:\"The Provider is disconnected from all chains.\",default:!0,retryable:!0},E4901_DEFAULT_CHAIN_DISCONNECTED:{eipCode:4901,message:\"Chain Disconnected\",detail:\"The Provider is not connected to the requested chain.\",default:!0,retryable:!0},E32700_DEFAULT_PARSE_ERROR:{eipCode:-32700,message:\"Parse error\",detail:\"Invalid JSON\",default:!0,retryable:!1},E32600_DEFAULT_INVALID_REQUEST:{eipCode:-32600,message:\"Invalid request\",detail:\"JSON is not a valid request object\",default:!0,retryable:!1},E32601_DEFAULT_METHOD_NOT_FOUND:{eipCode:-32601,message:\"Method not found\",detail:\"Method does not exist\",default:!0,retryable:!1},E32602_DEFAULT_INVALID_PARAMS:{eipCode:-32602,message:\"Invalid params\",detail:\"Invalid method parameters\",default:!0,retryable:!1},E32603_DEFAULT_INTERNAL_ERROR:{eipCode:-32603,message:\"Internal error\",detail:\"Internal JSON-RPC error\",default:!0,retryable:!0},E32000_DEFAULT_INVALID_INPUT:{eipCode:-32e3,message:\"Invalid input\",detail:\"Missing or invalid parameters\",default:!0,retryable:!1},E32001_DEFAULT_RESOURCE_NOT_FOUND:{eipCode:-32001,message:\"Resource not found\",detail:\"Requested resource not found\",default:!0,retryable:!1},E32002_DEFAULT_RESOURCE_UNAVAILABLE:{eipCode:-32002,message:\"Resource unavailable\",detail:\"Requested resource not available\",default:!0,retryable:!0},E32003_DEFAULT_TRANSACTION_REJECTED:{eipCode:-32003,message:\"Transaction rejected\",detail:\"Transaction creation failed\",default:!0,retryable:!0},E32004_DEFAULT_METHOD_NOT_SUPPORTED:{eipCode:-32004,message:\"Method not supported\",detail:\"Method is not implemented\",default:!0,retryable:!1},E32005_DEFAULT_LIMIT_EXCEEDED:{eipCode:-32005,message:\"Limit exceeded\",detail:\"Request exceeds defined limit\",default:!0,retryable:!1},E32006_DEFAULT_JSON_RPC_VERSION_NOT_SUPPORTED:{eipCode:-32006,message:\"JSON-RPC version not supported\",detail:\"Version of JSON-RPC protocol is not supported\",default:!0,retryable:!1},E32002_CONNECTION_ALREADY_PENDING:{eipCode:-32002,message:\"Connection request already pending\",detail:\"Don’t see your wallet? Check your other browser windows.\",retryable:!1},E32002_REQUEST_ALREADY_PENDING:{eipCode:-32002,message:\"Resource request already pending\",detail:\"Don’t see your wallet? Check your other browser windows.\",retryable:!1},E32002_WALLET_LOCKED:{eipCode:-32002,message:\"Wallet might be locked\",detail:\"Don’t see your wallet? Check your other browser windows.\",retryable:!1},E4001_USER_REJECTED_REQUEST:{eipCode:4001,message:\"Signature rejected\",detail:\"Please try signing again.\",retryable:!0}};class l extends o{details;constructor(e){super(e.message,e.code,e.data);let t=Object.values(a).find(t=>t.eipCode===e.code);this.details=t||a.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes(\"already pending for origin\")?e.message?.includes(\"wallet_requestPermissions\")?this.details=a.E32002_CONNECTION_ALREADY_PENDING:this.details=a.E32002_REQUEST_ALREADY_PENDING:e.message?.includes(\"Already processing\")&&e.message.includes(\"eth_requestAccounts\")&&(this.details=a.E32002_WALLET_LOCKED))}}},81318:function(e,t,r){\"use strict\";r.d(t,{no:function(){return u},t_:function(){return c},OW:function(){return l}});var n=r(22594),i=r(22554),s=r(2149),o=r(50607);let a=[\"function getL1Fee(bytes memory _data) external view returns (uint256)\"],l=e=>[8453,84531,84532,10,420,11155420,7777777,999,999999999,81457,168587773].includes(e),u=async(e,t)=>{if(!l(e.chainId))throw Error(\"Invalid chain ID for OP Stack gas estimation.\");if(void 0===e.type&&(e.type=2),e.maxPriorityFeePerGas&&e.maxFeePerGas||e.gasPrice)return e;try{if(!e.maxPriorityFeePerGas){let r=await t.send(\"eth_maxPriorityFeePerGas\",[]);e.maxPriorityFeePerGas=r}if(e.maxFeePerGas&&(console.warn(\"maxFeePerGas is specified without maxPriorityFeePerGas - this can result in hung transactions.\"),e.maxPriorityFeePerGas>=e.maxFeePerGas))throw Error(\"Overridden maxFeePerGas is less than or equal to the calculated maxPriorityFeePerGas. Please set both values or maxPriorityFeePerGas alone for correct gas estimation.\");if(!e.maxFeePerGas){let{lastBaseFeePerGas:r}=await t.getFeeData();if(!r)throw Error(\"Unable to fetch baseFee for last block.\");let i=n.O$.from(r).mul(n.O$.from(126)).div(n.O$.from(100)).add(n.O$.from(e.maxPriorityFeePerGas));e.maxFeePerGas=(0,o.L5)(i)}}catch(e){throw Error(`Failed to set gas price for OP stack transaction: ${e}.`)}return e};async function c(e,t){if(!e.chainId||e.chainId&&!l(e.chainId))return n.O$.from(0);let r=n.O$.from(0);try{let n=new i.CH(\"0x420000000000000000000000000000000000000F\",a,t),l=(0,o.mv)(e),u=(0,s.qC)(l);r=await n.getL1Fee(u)}catch(e){}return r}},50607:function(e,t,r){\"use strict\";r.d(t,{L5:function(){return s},mv:function(){return o},uq:function(){return i}});var n=r(22594);let i=e=>n.O$.from(e);function s(e){if(\"number\"==typeof e||\"bigint\"==typeof e||\"string\"==typeof e)return e;if(\"function\"==typeof e.toHexString)return e.toHexString();throw Error(`Expected numeric value but received ${e}`)}function o(e){let t={};return void 0!==e.to&&(t.to=e.to),void 0!==e.data&&(t.data=e.data),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.type&&(t.type=e.type),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.nonce&&(t.nonce=i(e.nonce).toNumber()),void 0!==e.gasLimit&&(t.gasLimit=i(e.gasLimit)),void 0!==e.gasPrice&&(t.gasPrice=i(e.gasPrice)),void 0!==e.value&&(t.value=i(e.value)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=i(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i(e.maxPriorityFeePerGas)),t}},37786:function(e,t,r){\"use strict\";r.d(t,{Fj:function(){return a},_7:function(){return u},gM:function(){return l}});var n=r(22594),i=r(3754),s=r(81318),o=r(50607);let a=async(e,t)=>{if(void 0===e.type&&(e.type=2),2===e.type){if(!e.maxFeePerGas||!e.maxPriorityFeePerGas){let r=await t.getFeeData();e.maxFeePerGas||(e.maxFeePerGas=r.maxFeePerGas?.toHexString()),e.maxPriorityFeePerGas||(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas?.toHexString())}}else if(!e.gasPrice){let r=await t.getFeeData();e.gasPrice=r.gasPrice?.toHexString()}return e};async function l(e,t){if(!e.gasLimit)throw new i.GR(\"gasLimit was not successfully set for transaction.\");let r=(0,o.uq)(e.gasLimit),a=n.O$.from(0);if(2==e.type){if(!e.maxFeePerGas)throw new i.GR(\"maxFeePerGas was not successfully set for transaction of type 2.\");a=(0,o.uq)(e.maxFeePerGas)}else{if(!e.gasPrice)throw new i.GR(\"gasPrice was not successfully set for transaction of type 0 or 1.\");a=(0,o.uq)(e.gasPrice)}let l=r.mul(a),u=n.O$.from(0);if(e.chainId&&(0,s.OW)(e.chainId))try{u=await (0,s.t_)(e,t),l=l.add(u)}catch(e){}return{totalGasEstimate:l,l1ExecutionFeeEstimate:u}}async function u(e,t){try{return(await t.estimateGas(e)).toHexString()}catch(r){console.warn(`Gas estimation failed with error: ${r}. Retrying gas estimation by omitting the 'from' address`);try{let r={...e,from:void 0};return(await t.estimateGas(r)).toHexString()}catch(e){throw console.warn(`Gas estimation failed with error: ${e} when omitting the 'from' address`),r}}}},58118:function(e,t,r){\"use strict\";r.d(t,{vT:function(){return x}});var n=r(37637),i=r(22594),s=r(50607);let o=e=>[42161,421613,421614].includes(e),a=async(e,t)=>{if(!o(e.chainId))throw Error(\"Invalid chain ID for Arbitrum gas estimation.\");if(void 0===e.type&&(e.type=2),e.maxFeePerGas)return e;try{let{lastBaseFeePerGas:r}=await t.getFeeData();if(r){let t=r.mul(i.O$.from(120)).div(i.O$.from(100));e.maxFeePerGas=(0,s.L5)(t),e.maxPriorityFeePerGas=(0,s.L5)(i.O$.from(0))}}catch(e){throw Error(`Failed to set gas price for Arbitrum transaction: ${e}.`)}return e},l=e=>[56,97].includes(e),u=async(e,t)=>{if(!l(e.chainId))throw Error(\"Invalid chain ID for BSC gas estimation.\");if(void 0===e.type?e.type=0:1!=e.type&&2!=e.type||console.warn(\"Transaction request type specified is incompatible for chain and will result in undefined behavior.  Please use transaction type 0.\"),!e.gasPrice){let r=await t.getFeeData();e.gasPrice=r.gasPrice?.toHexString()}return e};var c=r(81318),d=r(58789),h=r(27695),f=r.n(h);let p={id:137},g={id:80002},m={id:80001},y=f()(fetch,{retries:3,retryDelay:500}),b=e=>[p.id,m.id,g.id].includes(e),v=e=>({maxPriorityFee:(0,d.vz)(e.maxPriorityFee.toFixed(9),\"gwei\").toHexString(),maxFee:(0,d.vz)(e.maxFee.toFixed(9),\"gwei\").toHexString()}),w=async e=>{let t=\"\";switch(e){case p.id:t=\"https://gasstation.polygon.technology/v2\";break;case m.id:t=\"https://gasstation-testnet.polygon.technology/v2\";break;case g.id:t=\"https://gasstation.polygon.technology/amoy\";break;default:throw Error(`chainId ${e} does not support polygon gas stations`)}let r=await y(t),n=await r.json();if(r.status>399)throw n;return{safeLow:v(n.safeLow),standard:v(n.standard),fast:v(n.fast)}};async function _(e){if(!b(e.chainId))throw Error(\"Invalid chain ID for Polygon gas estimation.\");if(void 0===e.type&&(e.type=2),e.maxPriorityFeePerGas&&e.maxFeePerGas)return e;try{let{standard:t}=await w(e.chainId);e.maxPriorityFeePerGas||(e.maxPriorityFeePerGas=t.maxPriorityFee),e.maxFeePerGas||(e.maxFeePerGas=t.maxFee)}catch(e){throw Error(`Failed to set gas prices from Polygon gas station with error: ${e}.`)}return e}var E=r(37786);function A(e){return/^-?0x[a-f0-9]+$/i.test(e)}async function x(e,t,r){if(t.chainId=Number(t.chainId),function(e){for(let t of[\"gasLimit\",\"gasPrice\",\"value\",\"maxPriorityFeePerGas\",\"maxFeePerGas\"]){let r=e[t];if(void 0!==r&&!function(e){let t=\"number\"==typeof e,r=\"bigint\"==typeof e,n=\"string\"==typeof e&&A(e);return t||r||n}(r))throw Error(`Transaction request property '${t}' must be a valid number, bigint, or hex string representing a quantity`)}if(\"number\"!=typeof e.chainId)throw Error(\"Transaction request property 'chainId' must be a number\")}(t),t.from||(t.from=e),!t.nonce){let i=new n.b(e,r);t.nonce=await i.getTransactionCount(\"pending\")}return t.gasLimit||(t.gas?(t.gasLimit=t.gas,delete t.gas):t.gasLimit=await (0,E._7)(t,r)),\"string\"==typeof t.type&&A(t.type)&&(t.type=Number(t.type)),[23294,23295].includes(t.chainId)&&(t.type=0),0===(t=b(t.chainId)?await _(t):o(t.chainId)?await a(t,r):(0,c.OW)(t.chainId)?await (0,c.no)(t,r):l(t.chainId)?await u(t,r):await (0,E.Fj)(t,r)).type&&delete t.accessList,2!==t.type&&(delete t.maxPriorityFeePerGas,delete t.maxFeePerGas),t}},59488:function(e,t,r){\"use strict\";r.d(t,{W:function(){return n}});let n=(e,t=!0)=>e.reduce((e,r)=>({...e,[r]:t}),{})},18615:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(24986);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function l(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function u(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function c(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),c(e/4294967296>>>0,t,r),c(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=s,t.writeInt16LE=s,t.readInt32BE=o,t.readUint32BE=a,t.readInt32LE=l,t.readUint32LE=u,t.writeUint32BE=c,t.writeInt32BE=c,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=o(e,t),n=o(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 4294967296*l(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error(\"readUintBE supports only bitLengths divisible by 8\");if(e/8>t.length-r)throw Error(\"readUintBE: array is too short for the given bitLength\");for(var n=0,i=1,s=e/8+r-1;s>=r;s--)n+=t[s]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error(\"readUintLE supports only bitLengths divisible by 8\");if(e/8>t.length-r)throw Error(\"readUintLE: array is too short for the given bitLength\");for(var n=0,i=1,s=r;s<r+e/8;s++)n+=t[s]*i,i*=256;return n},t.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error(\"writeUintBE supports only bitLengths divisible by 8\");if(!n.isSafeInteger(t))throw Error(\"writeUintBE value must be an integer\");for(var s=1,o=e/8+i-1;o>=i;o--)r[o]=t/s&255,s*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error(\"writeUintLE supports only bitLengths divisible by 8\");if(!n.isSafeInteger(t))throw Error(\"writeUintLE value must be an integer\");for(var s=1,o=i;o<i+e/8;o++)r[o]=t/s&255,s*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},23518:function(e,t,r){\"use strict\";var n=r(94168),i=r(14605),s=r(32583),o=r(18615),a=r(21346);t.Cv=32,t.WH=12,t.pg=16;var l=new Uint8Array(16),u=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error(\"ChaCha20Poly1305 needs 32-byte key\");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw Error(\"ChaCha20Poly1305: incorrect nonce length\");var o,a=new Uint8Array(16);a.set(e,a.length-e.length);var l=new Uint8Array(32);n.stream(this._key,a,l,4);var u=t.length+this.tagLength;if(i){if(i.length!==u)throw Error(\"ChaCha20Poly1305: incorrect destination length\");o=i}else o=new Uint8Array(u);return n.streamXOR(this._key,a,t,o,4),this._authenticate(o.subarray(o.length-this.tagLength,o.length),l,o.subarray(0,o.length-this.tagLength),r),s.wipe(a),o},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error(\"ChaCha20Poly1305: incorrect nonce length\");if(t.length<this.tagLength)return null;var o,l=new Uint8Array(16);l.set(e,l.length-e.length);var u=new Uint8Array(32);n.stream(this._key,l,u,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,u,t.subarray(0,t.length-this.tagLength),r),!a.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(i){if(i.length!==d)throw Error(\"ChaCha20Poly1305: incorrect destination length\");o=i}else o=new Uint8Array(d);return n.streamXOR(this._key,l,t.subarray(0,t.length-this.tagLength),o,4),s.wipe(l),o},e.prototype.clean=function(){return s.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var a=new i.Poly1305(t);n&&(a.update(n),n.length%16>0&&a.update(l.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(l.subarray(r.length%16));var u=new Uint8Array(8);n&&o.writeUint64LE(n.length,u),a.update(u),o.writeUint64LE(r.length,u),a.update(u);for(var c=a.digest(),d=0;d<c.length;d++)e[d]=c[d];a.clean(),s.wipe(c),s.wipe(u)},e}();t.OK=u},94168:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(18615),i=r(32583);function s(e,t,r,s,o){if(void 0===o&&(o=0),32!==e.length)throw Error(\"ChaCha: key size must be 32 bytes\");if(s.length<r.length)throw Error(\"ChaCha: destination is shorter than source\");if(0===o){if(8!==t.length&&12!==t.length)throw Error(\"ChaCha nonce must be 8 or 12 bytes\");l=(a=new Uint8Array(16)).length-t.length,a.set(t,l)}else{if(16!==t.length)throw Error(\"ChaCha nonce with counter must be 16 bytes\");a=t,l=o}for(var a,l,u=new Uint8Array(64),c=0;c<r.length;c+=64){!function(e,t,r){for(var i=r[3]<<24|r[2]<<16|r[1]<<8|r[0],s=r[7]<<24|r[6]<<16|r[5]<<8|r[4],o=r[11]<<24|r[10]<<16|r[9]<<8|r[8],a=r[15]<<24|r[14]<<16|r[13]<<8|r[12],l=r[19]<<24|r[18]<<16|r[17]<<8|r[16],u=r[23]<<24|r[22]<<16|r[21]<<8|r[20],c=r[27]<<24|r[26]<<16|r[25]<<8|r[24],d=r[31]<<24|r[30]<<16|r[29]<<8|r[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],g=t[15]<<24|t[14]<<16|t[13]<<8|t[12],m=1634760805,y=857760878,b=2036477234,v=1797285236,w=i,_=s,E=o,A=a,x=l,k=u,S=c,$=d,C=h,P=f,I=p,O=g,N=0;N<20;N+=2)C^=m=m+w|0,w^=x=x+(C=C>>>16|C<<16)|0,w=w>>>20|w<<12,P^=y=y+_|0,_^=k=k+(P=P>>>16|P<<16)|0,_=_>>>20|_<<12,I^=b=b+E|0,E^=S=S+(I=I>>>16|I<<16)|0,E=E>>>20|E<<12,O^=v=v+A|0,A^=$=$+(O=O>>>16|O<<16)|0,A=A>>>20|A<<12,I^=b=b+E|0,E^=S=S+(I=I>>>24|I<<8)|0,E=E>>>25|E<<7,O^=v=v+A|0,A^=$=$+(O=O>>>24|O<<8)|0,A=A>>>25|A<<7,P^=y=y+_|0,_^=k=k+(P=P>>>24|P<<8)|0,_=_>>>25|_<<7,C^=m=m+w|0,w^=x=x+(C=C>>>24|C<<8)|0,w=w>>>25|w<<7,O^=m=m+_|0,_^=S=S+(O=O>>>16|O<<16)|0,_=_>>>20|_<<12,C^=y=y+E|0,E^=$=$+(C=C>>>16|C<<16)|0,E=E>>>20|E<<12,P^=b=b+A|0,A^=x=x+(P=P>>>16|P<<16)|0,A=A>>>20|A<<12,I^=v=v+w|0,w^=k=k+(I=I>>>16|I<<16)|0,w=w>>>20|w<<12,P^=b=b+A|0,A^=x=x+(P=P>>>24|P<<8)|0,A=A>>>25|A<<7,I^=v=v+w|0,w^=k=k+(I=I>>>24|I<<8)|0,w=w>>>25|w<<7,C^=y=y+E|0,E^=$=$+(C=C>>>24|C<<8)|0,E=E>>>25|E<<7,O^=m=m+_|0,_^=S=S+(O=O>>>24|O<<8)|0,_=_>>>25|_<<7;n.writeUint32LE(m+1634760805|0,e,0),n.writeUint32LE(y+857760878|0,e,4),n.writeUint32LE(b+2036477234|0,e,8),n.writeUint32LE(v+1797285236|0,e,12),n.writeUint32LE(w+i|0,e,16),n.writeUint32LE(_+s|0,e,20),n.writeUint32LE(E+o|0,e,24),n.writeUint32LE(A+a|0,e,28),n.writeUint32LE(x+l|0,e,32),n.writeUint32LE(k+u|0,e,36),n.writeUint32LE(S+c|0,e,40),n.writeUint32LE($+d|0,e,44),n.writeUint32LE(C+h|0,e,48),n.writeUint32LE(P+f|0,e,52),n.writeUint32LE(I+p|0,e,56),n.writeUint32LE(O+g|0,e,60)}(u,a,e);for(var d=c;d<c+64&&d<r.length;d++)s[d]=r[d]^u[d-c];!function(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw Error(\"ChaCha: counter overflow\")}(a,0,l)}return i.wipe(u),0===o&&i.wipe(a),s}t.streamXOR=s,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),s(e,t,r,r,n)}},21346:function(e,t){\"use strict\";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,\"__esModule\",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},59271:function(e,t,r){\"use strict\";t.Xx=t._w=t.aP=t.KS=t.jQ=void 0,r(24861);let n=r(13033);function i(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}r(32583),t.jQ=64,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;let s=i(),o=i([1]),a=(i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),l=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function c(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function d(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function h(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function f(e,t){let r=i(),n=i();for(let e=0;e<16;e++)n[e]=t[e];d(n),d(n),d(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,h(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function g(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function m(e,t,r){let n,i,s=0,o=0,a=0,l=0,u=0,c=0,d=0,h=0,f=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,_=0,E=0,A=0,x=0,k=0,S=0,$=0,C=0,P=0,I=0,O=0,N=0,M=0,R=0,T=0,D=r[0],L=r[1],j=r[2],B=r[3],F=r[4],U=r[5],z=r[6],q=r[7],H=r[8],G=r[9],V=r[10],W=r[11],K=r[12],Y=r[13],Z=r[14],J=r[15];s+=(n=t[0])*D,o+=n*L,a+=n*j,l+=n*B,u+=n*F,c+=n*U,d+=n*z,h+=n*q,f+=n*H,p+=n*G,g+=n*V,m+=n*W,y+=n*K,b+=n*Y,v+=n*Z,w+=n*J,o+=(n=t[1])*D,a+=n*L,l+=n*j,u+=n*B,c+=n*F,d+=n*U,h+=n*z,f+=n*q,p+=n*H,g+=n*G,m+=n*V,y+=n*W,b+=n*K,v+=n*Y,w+=n*Z,_+=n*J,a+=(n=t[2])*D,l+=n*L,u+=n*j,c+=n*B,d+=n*F,h+=n*U,f+=n*z,p+=n*q,g+=n*H,m+=n*G,y+=n*V,b+=n*W,v+=n*K,w+=n*Y,_+=n*Z,E+=n*J,l+=(n=t[3])*D,u+=n*L,c+=n*j,d+=n*B,h+=n*F,f+=n*U,p+=n*z,g+=n*q,m+=n*H,y+=n*G,b+=n*V,v+=n*W,w+=n*K,_+=n*Y,E+=n*Z,A+=n*J,u+=(n=t[4])*D,c+=n*L,d+=n*j,h+=n*B,f+=n*F,p+=n*U,g+=n*z,m+=n*q,y+=n*H,b+=n*G,v+=n*V,w+=n*W,_+=n*K,E+=n*Y,A+=n*Z,x+=n*J,c+=(n=t[5])*D,d+=n*L,h+=n*j,f+=n*B,p+=n*F,g+=n*U,m+=n*z,y+=n*q,b+=n*H,v+=n*G,w+=n*V,_+=n*W,E+=n*K,A+=n*Y,x+=n*Z,k+=n*J,d+=(n=t[6])*D,h+=n*L,f+=n*j,p+=n*B,g+=n*F,m+=n*U,y+=n*z,b+=n*q,v+=n*H,w+=n*G,_+=n*V,E+=n*W,A+=n*K,x+=n*Y,k+=n*Z,S+=n*J,h+=(n=t[7])*D,f+=n*L,p+=n*j,g+=n*B,m+=n*F,y+=n*U,b+=n*z,v+=n*q,w+=n*H,_+=n*G,E+=n*V,A+=n*W,x+=n*K,k+=n*Y,S+=n*Z,$+=n*J,f+=(n=t[8])*D,p+=n*L,g+=n*j,m+=n*B,y+=n*F,b+=n*U,v+=n*z,w+=n*q,_+=n*H,E+=n*G,A+=n*V,x+=n*W,k+=n*K,S+=n*Y,$+=n*Z,C+=n*J,p+=(n=t[9])*D,g+=n*L,m+=n*j,y+=n*B,b+=n*F,v+=n*U,w+=n*z,_+=n*q,E+=n*H,A+=n*G,x+=n*V,k+=n*W,S+=n*K,$+=n*Y,C+=n*Z,P+=n*J,g+=(n=t[10])*D,m+=n*L,y+=n*j,b+=n*B,v+=n*F,w+=n*U,_+=n*z,E+=n*q,A+=n*H,x+=n*G,k+=n*V,S+=n*W,$+=n*K,C+=n*Y,P+=n*Z,I+=n*J,m+=(n=t[11])*D,y+=n*L,b+=n*j,v+=n*B,w+=n*F,_+=n*U,E+=n*z,A+=n*q,x+=n*H,k+=n*G,S+=n*V,$+=n*W,C+=n*K,P+=n*Y,I+=n*Z,O+=n*J,y+=(n=t[12])*D,b+=n*L,v+=n*j,w+=n*B,_+=n*F,E+=n*U,A+=n*z,x+=n*q,k+=n*H,S+=n*G,$+=n*V,C+=n*W,P+=n*K,I+=n*Y,O+=n*Z,N+=n*J,b+=(n=t[13])*D,v+=n*L,w+=n*j,_+=n*B,E+=n*F,A+=n*U,x+=n*z,k+=n*q,S+=n*H,$+=n*G,C+=n*V,P+=n*W,I+=n*K,O+=n*Y,N+=n*Z,M+=n*J,v+=(n=t[14])*D,w+=n*L,_+=n*j,E+=n*B,A+=n*F,x+=n*U,k+=n*z,S+=n*q,$+=n*H,C+=n*G,P+=n*V,I+=n*W,O+=n*K,N+=n*Y,M+=n*Z,R+=n*J,w+=(n=t[15])*D,_+=n*L,E+=n*j,A+=n*B,x+=n*F,k+=n*U,S+=n*z,$+=n*q,C+=n*H,P+=n*G,I+=n*V,O+=n*W,N+=n*K,M+=n*Y,R+=n*Z,T+=n*J,s+=38*_,o+=38*E,a+=38*A,l+=38*x,u+=38*k,c+=38*S,d+=38*$,h+=38*C,f+=38*P,p+=38*I,g+=38*O,m+=38*N,y+=38*M,b+=38*R,v+=38*T,i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),e[0]=s,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function y(e,t){let r=i(),n=i(),s=i(),o=i(),l=i(),u=i(),c=i(),d=i(),h=i();g(r,e[1],e[0]),g(h,t[1],t[0]),m(r,r,h),p(n,e[0],e[1]),p(h,t[0],t[1]),m(n,n,h),m(s,e[3],t[3]),m(s,s,a),m(o,e[2],t[2]),p(o,o,o),g(l,n,r),g(u,o,s),p(c,o,s),p(d,n,r),m(e[0],l,u),m(e[1],d,c),m(e[2],c,u),m(e[3],l,d)}function b(e,t,r){for(let n=0;n<4;n++)h(e[n],t[n],r)}function v(e,t){let r=i(),n=i(),s=i();(function(e,t){let r;let n=i();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)m(n,n,n),2!==r&&4!==r&&m(n,n,t);for(r=0;r<16;r++)e[r]=n[r]})(s,t[2]),m(r,t[0],s),m(n,t[1],s),f(e,n),e[31]^=function(e){let t=new Uint8Array(32);return f(t,e),1&t[0]}(r)<<7}function w(e,t){let r=[i(),i(),i(),i()];c(r[0],l),c(r[1],u),c(r[2],o),m(r[3],l,u),function(e,t,r){c(e[0],s),c(e[1],o),c(e[2],o),c(e[3],s);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(7&n)&1;b(e,t,i),y(t,e),y(e,e),b(e,t,i)}}(e,r,t)}t._w=function(e){if(e.length!==t.aP)throw Error(`ed25519: seed must be ${t.aP} bytes`);let r=(0,n.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let s=new Uint8Array(32),o=[i(),i(),i(),i()];w(o,r),v(s,o);let a=new Uint8Array(64);return a.set(e),a.set(s,32),{publicKey:s,secretKey:a}};let _=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function E(e,t){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i<s;++i)t[i]+=r-16*t[n]*_[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(i=0,r=0;i<32;i++)t[i]+=r-(t[31]>>4)*_[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*_[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function A(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;E(e,t)}t.Xx=function(e,t){let r=new Float64Array(64),s=[i(),i(),i(),i()],o=(0,n.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;let a=new Uint8Array(64);a.set(o.subarray(32),32);let l=new n.SHA512;l.update(a.subarray(32)),l.update(t);let u=l.digest();l.clean(),A(u),w(s,u),v(a,s),l.reset(),l.update(a.subarray(0,32)),l.update(e.subarray(32)),l.update(t);let c=l.digest();A(c);for(let e=0;e<32;e++)r[e]=u[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)r[e+t]+=c[e]*o[t];return E(a.subarray(32),r),a}},86784:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},67878:function(e,t,r){\"use strict\";var n=r(4705),i=r(32583),s=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var s=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error(\"hkdf: cannot expand more\");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.t=s},4705:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(86784),i=r(21346),s=r(32583),o=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i<r.length;i++)r[i]^=54;this._inner.update(r);for(var i=0;i<r.length;i++)r[i]^=106;this._outer.update(r),n.isSerializableHash(this._inner)&&n.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),s.wipe(r)}return e.prototype.reset=function(){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error(\"hmac: can't reset() because hash doesn't implement restoreState()\");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){n.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),n.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!n.isSerializableHash(this._inner))throw Error(\"hmac: can't saveState() because hash doesn't implement it\");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error(\"hmac: can't restoreState() because hash doesn't implement it\");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!n.isSerializableHash(this._inner))throw Error(\"hmac: can't cleanSavedState() because hash doesn't implement it\");this._inner.cleanSavedState(e)},e}();t.HMAC=o,t.hmac=function(e,t,r){var n=new o(e,t);n.update(r);var i=n.digest();return n.clean(),i},t.equal=i.equal},24986:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return\"number\"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},14605:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(21346),i=r(32583);t.DIGEST_LENGTH=16;var s=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var s=e[6]|e[7]<<8;this._r[3]=(i>>>7|s<<9)&8191;var o=e[8]|e[9]<<8;this._r[4]=(s>>>4|o<<12)&255,this._r[5]=o>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=(o>>>14|a<<2)&8191;var l=e[12]|e[13]<<8;this._r[7]=(a>>>11|l<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(l>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],l=this._h[4],u=this._h[5],c=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],g=this._r[1],m=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],w=this._r[6],_=this._r[7],E=this._r[8],A=this._r[9];r>=16;){var x,k=e[t+0]|e[t+1]<<8;i+=8191&k;var S=e[t+2]|e[t+3]<<8;s+=(k>>>13|S<<3)&8191;var $=e[t+4]|e[t+5]<<8;o+=(S>>>10|$<<6)&8191;var C=e[t+6]|e[t+7]<<8;a+=($>>>7|C<<9)&8191;var P=e[t+8]|e[t+9]<<8;l+=(C>>>4|P<<12)&8191,u+=P>>>1&8191;var I=e[t+10]|e[t+11]<<8;c+=(P>>>14|I<<2)&8191;var O=e[t+12]|e[t+13]<<8;d+=(I>>>11|O<<5)&8191;var N=e[t+14]|e[t+15]<<8;h+=(O>>>8|N<<8)&8191,f+=N>>>5|n;var M=0;M=(x=0+i*p+5*A*s+5*E*o+5*_*a+5*w*l)>>>13,x&=8191,x+=5*v*u+5*b*c+5*y*d+5*m*h+5*g*f,M+=x>>>13,x&=8191;var R=M;R+=i*g+s*p+5*A*o+5*E*a+5*_*l,M=R>>>13,R&=8191,R+=5*w*u+5*v*c+5*b*d+5*y*h+5*m*f,M+=R>>>13,R&=8191;var T=M;T+=i*m+s*g+o*p+5*A*a+5*E*l,M=T>>>13,T&=8191,T+=5*_*u+5*w*c+5*v*d+5*b*h+5*y*f,M+=T>>>13,T&=8191;var D=M;D+=i*y+s*m+o*g+a*p+5*A*l,M=D>>>13,D&=8191,D+=5*E*u+5*_*c+5*w*d+5*v*h+5*b*f,M+=D>>>13,D&=8191;var L=M;L+=i*b+s*y+o*m+a*g+l*p,M=L>>>13,L&=8191,L+=5*A*u+5*E*c+5*_*d+5*w*h+5*v*f,M+=L>>>13,L&=8191;var j=M;j+=i*v+s*b+o*y+a*m+l*g,M=j>>>13,j&=8191,j+=u*p+5*A*c+5*E*d+5*_*h+5*w*f,M+=j>>>13,j&=8191;var B=M;B+=i*w+s*v+o*b+a*y+l*m,M=B>>>13,B&=8191,B+=u*g+c*p+5*A*d+5*E*h+5*_*f,M+=B>>>13,B&=8191;var F=M;F+=i*_+s*w+o*v+a*b+l*y,M=F>>>13,F&=8191,F+=u*m+c*g+d*p+5*A*h+5*E*f,M+=F>>>13,F&=8191;var U=M;U+=i*E+s*_+o*w+a*v+l*b,M=U>>>13,U&=8191,U+=u*y+c*m+d*g+h*p+5*A*f,M+=U>>>13,U&=8191;var z=M;z+=i*A+s*E+o*_+a*w+l*v,M=z>>>13,z&=8191,z+=u*b+c*y+d*m+h*g+f*p,M+=z>>>13,z&=8191,x=8191&(M=(M=(M<<2)+M|0)+x|0),M>>>=13,R+=M,i=x,s=R,o=T,a=D,l=L,u=j,c=B,d=F,h=U,f=z,t+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=l,this._h[5]=u,this._h[6]=c,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(s=0,n=~n;s<10;s++)this._h[s]=this._h[s]&n|o[s];for(s=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[r+i];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var i=0;i<n;i++)this._buffer[this._leftover+i]=e[r+i];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw Error(\"Poly1305 was finished\");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=s,t.oneTimeAuth=function(e,t){var r=new s(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},24861:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(71722),i=r(18615),s=r(32583);function o(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){let r=o(4,e),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};let a=\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";function l(e,r=a,n=t.defaultRandomSource){if(r.length<2)throw Error(\"randomString charset is too short\");if(r.length>256)throw Error(\"randomString charset is too long\");let i=\"\",l=r.length,u=256-256%l;for(;e>0;){let t=o(Math.ceil(256*e/u),n);for(let n=0;n<t.length&&e>0;n++){let s=t[n];s<u&&(i+=r.charAt(s%l),e--)}(0,s.wipe)(t)}return i}t.randomString=l,t.randomStringForEntropy=function(e,r=a,n=t.defaultRandomSource){return l(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},3724:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.BrowserRandomSource=void 0;class r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=\"undefined\"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error(\"Browser random byte generator is not available.\");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}t.BrowserRandomSource=r},39663:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.NodeRandomSource=void 0;let n=r(32583);class i{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error(\"Node.js random byte generator is not available.\");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error(\"NodeRandomSource: got fewer bytes than requested\");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}t.NodeRandomSource=i},71722:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SystemRandomSource=void 0;let n=r(3724),i=r(39663);class s{constructor(){if(this.isAvailable=!1,this.name=\"\",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name=\"Browser\";return}if(this._source=new i.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name=\"Node\";return}}randomBytes(e){if(!this.isAvailable)throw Error(\"System random byte generator is not available.\");return this._source.randomBytes(e)}}t.SystemRandomSource=s},67929:function(e,t,r){\"use strict\";var n=r(18615),i=r(32583);t.k=32,t.cn=64;var s=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error(\"SHA256: can't update because hash was finished.\");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=a(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%64<56?64:128;this._buffer[r]=128;for(var s=r+1;s<i-8;s++)this._buffer[s]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),a(this._temp,this._state,this._buffer,0,i),this._finished=!0}for(var s=0;s<this.digestLength/4;s++)n.writeUint32BE(this._state[s],e,4*s);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error(\"SHA256: cannot save finished state\");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=s;var o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function a(e,t,r,i,s){for(;s>=64;){for(var a=t[0],l=t[1],u=t[2],c=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=0;g<16;g++){var m=i+4*g;e[g]=n.readUint32BE(r,m)}for(var g=16;g<64;g++){var y=e[g-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[g-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[g]=(b+e[g-7]|0)+(v+e[g-16]|0)}for(var g=0;g<64;g++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(o[g]+e[g]|0)|0)|0,v=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&l^a&u^l&u)|0;p=f,f=h,h=d,d=c+b|0,c=u,u=l,l=a,a=b+v|0}t[0]+=a,t[1]+=l,t[2]+=u,t[3]+=c,t[4]+=d,t[5]+=h,t[6]+=f,t[7]+=p,i+=64,s-=64}return i}t.vp=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},13033:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(18615),i=r(32583);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var s=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error(\"SHA512: can't update because hash was finished.\");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%128<112?128:256;this._buffer[r]=128;for(var s=r+1;s<i-8;s++)this._buffer[s]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,i),this._finished=!0}for(var s=0;s<this.digestLength/8;s++)n.writeUint32BE(this._stateHi[s],e,8*s),n.writeUint32BE(this._stateLo[s],e,8*s+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error(\"SHA256: cannot save finished state\");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=s;var o=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function a(e,t,r,i,s,a,l){for(var u,c,d,h,f,p,g,m,y=r[0],b=r[1],v=r[2],w=r[3],_=r[4],E=r[5],A=r[6],x=r[7],k=i[0],S=i[1],$=i[2],C=i[3],P=i[4],I=i[5],O=i[6],N=i[7];l>=128;){for(var M=0;M<16;M++){var R=8*M+a;e[M]=n.readUint32BE(s,R),t[M]=n.readUint32BE(s,R+4)}for(var M=0;M<80;M++){var T=y,D=b,L=v,j=w,B=_,F=E,U=A,z=x,q=k,H=S,G=$,V=C,W=P,K=I,Y=O,Z=N;if(u=x,f=65535&(c=N),p=c>>>16,g=65535&u,m=u>>>16,u=(_>>>14|P<<18)^(_>>>18|P<<14)^(P>>>9|_<<23),f+=65535&(c=(P>>>14|_<<18)^(P>>>18|_<<14)^(_>>>9|P<<23)),p+=c>>>16,g+=65535&u,m+=u>>>16,u=_&E^~_&A,f+=65535&(c=P&I^~P&O),p+=c>>>16,g+=65535&u,m+=u>>>16,u=o[2*M],f+=65535&(c=o[2*M+1]),p+=c>>>16,g+=65535&u,m+=u>>>16,u=e[M%16],f+=65535&(c=t[M%16]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,d=65535&g|m<<16,h=65535&f|p<<16,u=d,f=65535&(c=h),p=c>>>16,g=65535&u,m=u>>>16,u=(y>>>28|k<<4)^(k>>>2|y<<30)^(k>>>7|y<<25),f+=65535&(c=(k>>>28|y<<4)^(y>>>2|k<<30)^(y>>>7|k<<25)),p+=c>>>16,g+=65535&u,m+=u>>>16,u=y&b^y&v^b&v,f+=65535&(c=k&S^k&$^S&$),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,z=65535&g|m<<16,Z=65535&f|p<<16,u=j,f=65535&(c=V),p=c>>>16,g=65535&u,m=u>>>16,u=d,f+=65535&(c=h),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,j=65535&g|m<<16,V=65535&f|p<<16,b=T,v=D,w=L,_=j,E=B,A=F,x=U,y=z,S=q,$=H,C=G,P=V,I=W,O=K,N=Y,k=Z,M%16==15)for(var R=0;R<16;R++)u=e[R],f=65535&(c=t[R]),p=c>>>16,g=65535&u,m=u>>>16,u=e[(R+9)%16],f+=65535&(c=t[(R+9)%16]),p+=c>>>16,g+=65535&u,m+=u>>>16,u=((d=e[(R+1)%16])>>>1|(h=t[(R+1)%16])<<31)^(d>>>8|h<<24)^d>>>7,f+=65535&(c=(h>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),p+=c>>>16,g+=65535&u,m+=u>>>16,u=((d=e[(R+14)%16])>>>19|(h=t[(R+14)%16])<<13)^(h>>>29|d<<3)^d>>>6,f+=65535&(c=(h>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26)),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,e[R]=65535&g|m<<16,t[R]=65535&f|p<<16}u=y,f=65535&(c=k),p=c>>>16,g=65535&u,m=u>>>16,u=r[0],f+=65535&(c=i[0]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[0]=y=65535&g|m<<16,i[0]=k=65535&f|p<<16,u=b,f=65535&(c=S),p=c>>>16,g=65535&u,m=u>>>16,u=r[1],f+=65535&(c=i[1]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[1]=b=65535&g|m<<16,i[1]=S=65535&f|p<<16,u=v,f=65535&(c=$),p=c>>>16,g=65535&u,m=u>>>16,u=r[2],f+=65535&(c=i[2]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[2]=v=65535&g|m<<16,i[2]=$=65535&f|p<<16,u=w,f=65535&(c=C),p=c>>>16,g=65535&u,m=u>>>16,u=r[3],f+=65535&(c=i[3]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[3]=w=65535&g|m<<16,i[3]=C=65535&f|p<<16,u=_,f=65535&(c=P),p=c>>>16,g=65535&u,m=u>>>16,u=r[4],f+=65535&(c=i[4]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[4]=_=65535&g|m<<16,i[4]=P=65535&f|p<<16,u=E,f=65535&(c=I),p=c>>>16,g=65535&u,m=u>>>16,u=r[5],f+=65535&(c=i[5]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[5]=E=65535&g|m<<16,i[5]=I=65535&f|p<<16,u=A,f=65535&(c=O),p=c>>>16,g=65535&u,m=u>>>16,u=r[6],f+=65535&(c=i[6]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[6]=A=65535&g|m<<16,i[6]=O=65535&f|p<<16,u=x,f=65535&(c=N),p=c>>>16,g=65535&u,m=u>>>16,u=r[7],f+=65535&(c=i[7]),p+=c>>>16,g+=65535&u,m+=u>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[7]=x=65535&g|m<<16,i[7]=N=65535&f|p<<16,a+=128,l-=128}return a}t.hash=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},32583:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},89414:function(e,t,r){\"use strict\";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(24861),i=r(32583);function s(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let o=new Uint8Array(32);o[0]=9;let a=s([56129,1]);function l(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function u(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function c(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function d(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function h(e,t,r){let n,i,s=0,o=0,a=0,l=0,u=0,c=0,d=0,h=0,f=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,_=0,E=0,A=0,x=0,k=0,S=0,$=0,C=0,P=0,I=0,O=0,N=0,M=0,R=0,T=0,D=r[0],L=r[1],j=r[2],B=r[3],F=r[4],U=r[5],z=r[6],q=r[7],H=r[8],G=r[9],V=r[10],W=r[11],K=r[12],Y=r[13],Z=r[14],J=r[15];s+=(n=t[0])*D,o+=n*L,a+=n*j,l+=n*B,u+=n*F,c+=n*U,d+=n*z,h+=n*q,f+=n*H,p+=n*G,g+=n*V,m+=n*W,y+=n*K,b+=n*Y,v+=n*Z,w+=n*J,o+=(n=t[1])*D,a+=n*L,l+=n*j,u+=n*B,c+=n*F,d+=n*U,h+=n*z,f+=n*q,p+=n*H,g+=n*G,m+=n*V,y+=n*W,b+=n*K,v+=n*Y,w+=n*Z,_+=n*J,a+=(n=t[2])*D,l+=n*L,u+=n*j,c+=n*B,d+=n*F,h+=n*U,f+=n*z,p+=n*q,g+=n*H,m+=n*G,y+=n*V,b+=n*W,v+=n*K,w+=n*Y,_+=n*Z,E+=n*J,l+=(n=t[3])*D,u+=n*L,c+=n*j,d+=n*B,h+=n*F,f+=n*U,p+=n*z,g+=n*q,m+=n*H,y+=n*G,b+=n*V,v+=n*W,w+=n*K,_+=n*Y,E+=n*Z,A+=n*J,u+=(n=t[4])*D,c+=n*L,d+=n*j,h+=n*B,f+=n*F,p+=n*U,g+=n*z,m+=n*q,y+=n*H,b+=n*G,v+=n*V,w+=n*W,_+=n*K,E+=n*Y,A+=n*Z,x+=n*J,c+=(n=t[5])*D,d+=n*L,h+=n*j,f+=n*B,p+=n*F,g+=n*U,m+=n*z,y+=n*q,b+=n*H,v+=n*G,w+=n*V,_+=n*W,E+=n*K,A+=n*Y,x+=n*Z,k+=n*J,d+=(n=t[6])*D,h+=n*L,f+=n*j,p+=n*B,g+=n*F,m+=n*U,y+=n*z,b+=n*q,v+=n*H,w+=n*G,_+=n*V,E+=n*W,A+=n*K,x+=n*Y,k+=n*Z,S+=n*J,h+=(n=t[7])*D,f+=n*L,p+=n*j,g+=n*B,m+=n*F,y+=n*U,b+=n*z,v+=n*q,w+=n*H,_+=n*G,E+=n*V,A+=n*W,x+=n*K,k+=n*Y,S+=n*Z,$+=n*J,f+=(n=t[8])*D,p+=n*L,g+=n*j,m+=n*B,y+=n*F,b+=n*U,v+=n*z,w+=n*q,_+=n*H,E+=n*G,A+=n*V,x+=n*W,k+=n*K,S+=n*Y,$+=n*Z,C+=n*J,p+=(n=t[9])*D,g+=n*L,m+=n*j,y+=n*B,b+=n*F,v+=n*U,w+=n*z,_+=n*q,E+=n*H,A+=n*G,x+=n*V,k+=n*W,S+=n*K,$+=n*Y,C+=n*Z,P+=n*J,g+=(n=t[10])*D,m+=n*L,y+=n*j,b+=n*B,v+=n*F,w+=n*U,_+=n*z,E+=n*q,A+=n*H,x+=n*G,k+=n*V,S+=n*W,$+=n*K,C+=n*Y,P+=n*Z,I+=n*J,m+=(n=t[11])*D,y+=n*L,b+=n*j,v+=n*B,w+=n*F,_+=n*U,E+=n*z,A+=n*q,x+=n*H,k+=n*G,S+=n*V,$+=n*W,C+=n*K,P+=n*Y,I+=n*Z,O+=n*J,y+=(n=t[12])*D,b+=n*L,v+=n*j,w+=n*B,_+=n*F,E+=n*U,A+=n*z,x+=n*q,k+=n*H,S+=n*G,$+=n*V,C+=n*W,P+=n*K,I+=n*Y,O+=n*Z,N+=n*J,b+=(n=t[13])*D,v+=n*L,w+=n*j,_+=n*B,E+=n*F,A+=n*U,x+=n*z,k+=n*q,S+=n*H,$+=n*G,C+=n*V,P+=n*W,I+=n*K,O+=n*Y,N+=n*Z,M+=n*J,v+=(n=t[14])*D,w+=n*L,_+=n*j,E+=n*B,A+=n*F,x+=n*U,k+=n*z,S+=n*q,$+=n*H,C+=n*G,P+=n*V,I+=n*W,O+=n*K,N+=n*Y,M+=n*Z,R+=n*J,w+=(n=t[15])*D,_+=n*L,E+=n*j,A+=n*B,x+=n*F,k+=n*U,S+=n*z,$+=n*q,C+=n*H,P+=n*G,I+=n*V,O+=n*W,N+=n*K,M+=n*Y,R+=n*Z,T+=n*J,s+=38*_,o+=38*E,a+=38*A,l+=38*x,u+=38*k,c+=38*S,d+=38*$,h+=38*C,f+=38*P,p+=38*I,g+=38*O,m+=38*N,y+=38*M,b+=38*R,v+=38*T,i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),i=Math.floor((n=s+(i=1)+65535)/65536),s=n-65536*i,i=Math.floor((n=o+i+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,s+=i-1+37*(i-1),e[0]=s,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function f(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=s(),o=s(),f=s(),p=s(),g=s(),m=s();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(n,t);for(let e=0;e<16;e++)o[e]=n[e];i[0]=p[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;u(i,o,t),u(f,p,t),c(g,i,f),d(i,i,f),c(f,o,p),d(o,o,p),h(p,g,g),h(m,i,i),h(i,f,i),h(f,o,g),c(g,i,f),d(i,i,f),h(o,i,i),d(f,p,m),h(i,f,a),c(i,i,p),h(f,f,i),h(i,p,m),h(p,o,n),h(o,g,g),u(i,o,t),u(f,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=f[e],n[e+48]=o[e],n[e+64]=p[e];let y=n.subarray(32),b=n.subarray(16);!function(e,t){let r=s();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)h(r,r,r),2!==e&&4!==e&&h(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(y,y),h(b,b,y);let v=new Uint8Array(32);return!function(e,t){let r=s(),n=s();for(let e=0;e<16;e++)n[e]=t[e];l(n),l(n),l(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,u(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(v,b),v}t.Au=function(e){let r=(0,n.randomBytes)(32,e),s=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:f(r,o),secretKey:r}}(r);return(0,i.wipe)(r),s},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error(\"X25519: incorrect secret key length\");if(r.length!==t.kz)throw Error(\"X25519: incorrect public key length\");let i=f(e,r);if(n){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw Error(\"X25519: invalid shared key\")}return i}},39016:function(e,t,r){\"use strict\";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){let e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,\"__esModule\",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},56010:function(e,t,r){\"use strict\";var n=r(25566);function i(){return\"undefined\"==typeof document&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product}function s(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,\"__esModule\",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=i,t.isNode=s,t.isBrowser=function(){return!i()&&!s()}},60092:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(69637);n.__exportStar(r(39016),t),n.__exportStar(r(56010),t)},69637:function(e,t,r){\"use strict\";r.r(t),r.d(t,{__assign:function(){return s},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return _},__await:function(){return b},__awaiter:function(){return c},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return S},__createBinding:function(){return h},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return x},__importStar:function(){return A},__makeTemplateObject:function(){return E},__metadata:function(){return u},__param:function(){return l},__read:function(){return g},__rest:function(){return o},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw TypeError(\"Generator is already executing.\");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function f(e,t){for(var r in e)\"default\"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function g(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var n,i=r.apply(e,t||[]),s=[];return n={},o(\"next\"),o(\"throw\"),o(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){a(\"next\",e)}function u(e){a(\"throw\",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function w(e){var t,r;return t={},n(\"next\"),n(\"throw\",function(e){throw e}),n(\"return\"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:\"return\"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n(\"next\"),n(\"throw\"),n(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError(\"attempted to get private field on non-instance\");return t.get(e)}function S(e,t,r){if(!t.has(e))throw TypeError(\"attempted to set private field on non-instance\");return t.set(e,r),r}},89649:function(e,t,r){\"use strict\";let n;r.d(t,{Gn:function(){return iM},gy:function(){return iw},lI:function(){return ib}});var i=r(68885),s=r.n(i),o=r(50499),a=r(10259),l=r(9109).Buffer;function u(e,...t){try{var r;return(r=e(...t))&&\"function\"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function c(e){if(function(e){let t=typeof e;return null===e||\"object\"!==t&&\"function\"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if(\"function\"==typeof e.toJSON)return c(e.toJSON());throw Error(\"[unstorage] Cannot stringify value!\")}let d=\"base64:\";function h(e){return e?e.split(\"?\")[0].replace(/[/\\\\]/g,\":\").replace(/:+/g,\":\").replace(/^:|:$/g,\"\"):\"\"}function f(e){return(e=h(e))?e+\":\":\"\"}let p=()=>{let e=new Map;return{name:\"memory\",options:{},hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function g(e,t,r){return e.watch?e.watch((e,n)=>t(e,r+n)):()=>{}}async function m(e){\"function\"==typeof e.dispose&&await u(e.dispose)}function y(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function b(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=y(r);return(e,r)=>n.then(n=>r(n.transaction(t,e).objectStore(t)))}function v(){return n||(n=b(\"keyval-store\",\"keyval\")),n}function w(e,t=v()){return t(\"readonly\",t=>y(t.get(e)))}let _=e=>JSON.stringify(e,(e,t)=>\"bigint\"==typeof t?t.toString()+\"n\":t),E=e=>JSON.parse(e.replace(/([\\[:])?(\\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\\}\\]])/g,'$1\"$2n\"$3'),(e,t)=>\"string\"==typeof t&&t.match(/^\\d+n$/)?BigInt(t.substring(0,t.length-1)):t);function A(e){if(\"string\"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return E(e)}catch(t){return e}}function x(e){return\"string\"==typeof e?e:_(e)||\"\"}var k=(e={})=>{let t;let r=e.base&&e.base.length>0?`${e.base}:`:\"\",n=e=>r+e;return e.dbName&&e.storeName&&(t=b(e.dbName,e.storeName)),{name:\"idb-keyval\",options:e,hasItem:async e=>!(typeof await w(n(e),t)>\"u\"),getItem:async e=>await w(n(e),t)??null,setItem:(e,r)=>(function(e,t,r=v()){return r(\"readwrite\",r=>(r.put(t,e),y(r.transaction)))})(n(e),r,t),removeItem:e=>(function(e,t=v()){return t(\"readwrite\",t=>(t.delete(e),y(t.transaction)))})(n(e),t),getKeys:()=>(function(e=v()){return e(\"readonly\",e=>{var t;if(e.getAllKeys)return y(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},y(e.transaction)).then(()=>r)})})(t),clear:()=>(function(e=v()){return e(\"readwrite\",e=>(e.clear(),y(e.transaction)))})(t)}};class S{constructor(){this.indexedDb=function(e={}){let t={mounts:{\"\":e.driver||p()},mountpoints:[\"\"],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:\"\",relativeKey:e,driver:t.mounts[\"\"]}},n=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),i=(e,r)=>{if(t.watching)for(let n of(r=h(r),t.watchListeners))n(e,r)},s=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await g(t.mounts[e],i,e)},o=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},y=(e,t,n)=>{let i=new Map,s=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(let n of e){let e=\"string\"==typeof n,i=h(e?n:n.key),o=e?void 0:n.value,a=e||!n.options?t:{...t,...n.options},l=r(i);s(l).items.push({key:i,value:o,relativeKey:l.relativeKey,options:a})}return Promise.all([...i.values()].map(e=>n(e))).then(e=>e.flat())},b={hasItem(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return u(i.hasItem,n,t)},getItem(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return u(i.getItem,n,t).then(e=>(0,a.ZP)(e))},getItems:(e,t)=>y(e,t,e=>e.driver.getItems?u(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return h(e.join(\":\"))}(e.base,t.key),value:(0,a.ZP)(t.value)}))):Promise.all(e.items.map(t=>u(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:(0,a.ZP)(e)}))))),getItemRaw(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return i.getItemRaw?u(i.getItemRaw,n,t):u(i.getItem,n,t).then(e=>\"string\"==typeof e&&e.startsWith(d)?l.from(e.slice(d.length),\"base64\"):e)},async setItem(e,t,n={}){if(void 0===t)return b.removeItem(e);let{relativeKey:s,driver:o}=r(e=h(e));o.setItem&&(await u(o.setItem,s,c(t),n),o.watch||i(\"update\",e))},async setItems(e,t){await y(e,t,async e=>{if(e.driver.setItems)return u(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:c(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>u(e.driver.setItem,t.relativeKey,c(t.value),t.options)))})},async setItemRaw(e,t,n={}){if(void 0===t)return b.removeItem(e,n);let{relativeKey:s,driver:o}=r(e=h(e));if(o.setItemRaw)await u(o.setItemRaw,s,t,n);else{if(!o.setItem)return;await u(o.setItem,s,\"string\"==typeof t?t:d+l.from(t).toString(\"base64\"),n)}o.watch||i(\"update\",e)},async removeItem(e,t={}){\"boolean\"==typeof t&&(t={removeMeta:t});let{relativeKey:n,driver:s}=r(e=h(e));s.removeItem&&(await u(s.removeItem,n,t),(t.removeMeta||t.removeMata)&&await u(s.removeItem,n+\"$\",t),s.watch||i(\"remove\",e))},async getMeta(e,t={}){\"boolean\"==typeof t&&(t={nativeOnly:t});let{relativeKey:n,driver:i}=r(e=h(e)),s=Object.create(null);if(i.getMeta&&Object.assign(s,await u(i.getMeta,n,t)),!t.nativeOnly){let e=await u(i.getItem,n+\"$\",t).then(e=>(0,a.ZP)(e));e&&\"object\"==typeof e&&(\"string\"==typeof e.atime&&(e.atime=new Date(e.atime)),\"string\"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(s,e))}return s},setMeta(e,t,r={}){return this.setItem(e+\"$\",t,r)},removeMeta(e,t={}){return this.removeItem(e+\"$\",t)},async getKeys(e,t={}){let r=n(e=f(e),!0),i=[],s=[];for(let e of r){let r=(await u(e.driver.getKeys,e.relativeBase,t)).map(t=>e.mountpoint+h(t)).filter(e=>!i.some(t=>e.startsWith(t)));s.push(...r),i=[e.mountpoint,...i.filter(t=>!t.startsWith(e.mountpoint))]}return e?s.filter(t=>t.startsWith(e)&&!t.endsWith(\"$\")):s.filter(e=>!e.endsWith(\"$\"))},async clear(e,t={}){e=f(e),await Promise.all(n(e,!1).map(async e=>e.driver.clear?u(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||\"\",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>m(e)))},watch:async e=>(await s(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await o()}),async unwatch(){t.watchListeners=[],await o()},mount(e,r){if((e=f(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(g(r,i,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),b},async unmount(e,r=!0){(e=f(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await m(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=\"\"){let t=r(e=h(e)+\":\");return{driver:t.driver,base:t.base}},getMounts:(e=\"\",t={})=>n(e=h(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))};return b}({driver:k({dbName:\"WALLET_CONNECT_V2_INDEXED_DB\",storeName:\"keyvaluestorage\"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,x(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var $=\"u\">typeof globalThis?globalThis:\"u\">typeof window?window:\"u\">typeof r.g?r.g:\"u\">typeof self?self:{},C={exports:{}};function P(e){var t;return[e[0],A(null!=(t=e[1])?t:\"\")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__(\"length\",function(){return Object.keys(this).length}),\"u\">typeof $&&$.localStorage?C.exports=$.localStorage:\"u\">typeof window&&window.localStorage?C.exports=window.localStorage:C.exports=new e}();class I{constructor(){this.localStorage=C.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(P)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return A(t)}async setItem(e,t){this.localStorage.setItem(e,x(t))}async removeItem(e){this.localStorage.removeItem(e)}}let O=async(e,t,r)=>{let n=\"wc_storage_version\",i=await t.getItem(n);if(i&&i>=1){r(t);return}let s=await e.getKeys();if(!s.length){r(t);return}let o=[];for(;s.length;){let r=s.shift();if(!r)continue;let n=r.toLowerCase();if(n.includes(\"wc@\")||n.includes(\"walletconnect\")||n.includes(\"wc_\")||n.includes(\"wallet_connect\")){let n=await e.getItem(r);await t.setItem(r,n),o.push(r)}}await t.setItem(n,1),r(t),N(e,o)},N=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class M{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new I;this.storage=e;try{let t=new S;O(e,t,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}}var R=r(54574);class T{}class D extends T{constructor(e){super()}}let L=R.FIVE_SECONDS,j=\"heartbeat_pulse\";class B extends D{constructor(e){super(e),this.events=new i.EventEmitter,this.interval=L,this.interval=e?.interval||L}static async init(e){let t=new B(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,R.toMiliseconds)(this.interval))}pulse(){this.events.emit(j)}}var F=r(78227),U=r.n(F);let z={level:\"info\"},q=\"custom_context\";class H{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class G{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new H(e);if(t.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=t):this.head=t,this.tail=t,this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let t=e.value;return e=e.next,{done:!1,value:t}}}}}class V{constructor(e,t=1024e3){this.level=e??\"error\",this.levelValue=F.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new G(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===F.levels.values.error?console.error(e):t===F.levels.values.warn?console.warn(e):t===F.levels.values.debug?console.debug(e):t===F.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(x({timestamp:new Date().toISOString(),log:e}));let t=\"string\"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new G(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push(x({extraMetadata:e})),new Blob(t,{type:\"application/json\"})}}class W{constructor(e,t=1024e3){this.baseChunkLogger=new V(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement(\"a\");r.href=t,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class K{constructor(e,t=1024e3){this.baseChunkLogger=new V(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var Y=Object.defineProperty,Z=Object.defineProperties,J=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,et=(e,t,r)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,er=(e,t)=>{for(var r in t||(t={}))X.call(t,r)&&et(e,r,t[r]);if(Q)for(var r of Q(t))ee.call(t,r)&&et(e,r,t[r]);return e},en=(e,t)=>Z(e,J(t));function ei(e){return en(er({},e),{level:e?.level||z.level})}function es(e,t=q){return typeof e.bindings>\"u\"?function(e,t=q){return e[t]||\"\"}(e,t):e.bindings().context||\"\"}function eo(e,t,r=q){let n=function(e,t,r=q){let n=es(e,r);return n.trim()?`${n}/${t}`:t}(e,t,r);return function(e,t,r=q){return e[r]=t,e}(e.child({context:n}),n,r)}class ea extends T{constructor(e){super(),this.opts=e,this.protocol=\"wc\",this.version=2}}class el extends T{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class eu{constructor(e,t){this.logger=e,this.core=t}}class ec extends T{constructor(e,t){super(),this.relayer=e,this.logger=t}}class ed extends T{constructor(e){super()}}class eh{constructor(e,t,r,n){this.core=e,this.logger=t,this.name=r}}class ef extends T{constructor(e,t){super(),this.relayer=e,this.logger=t}}class ep extends T{constructor(e,t){super(),this.core=e,this.logger=t}}class eg{constructor(e,t){this.projectId=e,this.logger=t}}class em{constructor(e,t){this.projectId=e,this.logger=t}}class ey{constructor(e){this.opts=e,this.protocol=\"wc\",this.version=2}}class eb{constructor(e){this.client=e}}var ev=r(59271),ew=r(24861);let e_=\"base64url\",eE=\"base58btc\";var eA=r(69717),ex=r(3767),ek=r(55522);function eS(e){return(0,ex.B)((0,ek.m)(x(e),\"utf8\"),e_)}function e$(e){let t=(0,ek.m)(\"K36\",eE);return[\"did\",\"key\",\"z\"+(0,ex.B)((0,eA.z)([t,e]),eE)].join(\":\")}function eC(e=(0,ew.randomBytes)(32)){return ev._w(e)}async function eP(e,t,r,n,i=(0,R.fromMiliseconds)(Date.now())){var s,o,a;let l={alg:\"EdDSA\",typ:\"JWT\"},u={iss:e$(n.publicKey),sub:e,aud:t,iat:i,exp:i+r},c=(s={header:l,payload:u},(0,ek.m)([eS(s.header),eS(s.payload)].join(\".\"),\"utf8\"));return[eS((o={header:l,payload:u,signature:ev.Xx(n.secretKey,c)}).header),eS(o.payload),(a=o.signature,(0,ex.B)(a,e_))].join(\".\")}r(77726);var eI=r(39613);let eO=\"INTERNAL_ERROR\",eN=\"SERVER_ERROR\",eM=[-32700,-32600,-32601,-32602,-32603],eR={PARSE_ERROR:{code:-32700,message:\"Parse error\"},INVALID_REQUEST:{code:-32600,message:\"Invalid Request\"},METHOD_NOT_FOUND:{code:-32601,message:\"Method not found\"},INVALID_PARAMS:{code:-32602,message:\"Invalid params\"},[eO]:{code:-32603,message:\"Internal error\"},[eN]:{code:-32e3,message:\"Server error\"}};function eT(e){return Object.keys(eR).includes(e)?eR[e]:eR[eN]}function eD(e,t,r){return e.message.includes(\"getaddrinfo ENOTFOUND\")||e.message.includes(\"connect ECONNREFUSED\")?Error(`Unavailable ${r} RPC url at ${t}`):e}var eL=r(60092);function ej(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function eB(e=6){return BigInt(ej(e))}function eF(e,t,r){return{id:r||ej(),jsonrpc:\"2.0\",method:e,params:t}}function eU(e,t){return{id:e,jsonrpc:\"2.0\",result:t}}function ez(e,t,r){var n,i,s;return{id:e,jsonrpc:\"2.0\",error:void 0===(n=t)?eT(eO):(\"string\"==typeof n&&(n=Object.assign(Object.assign({},eT(eN)),{message:n})),void 0!==r&&(n.data=r),i=n.code,eM.includes(i)&&(s=n.code,n=Object.values(eR).find(e=>e.code===s)||eR[eN]),n)}}class eq{}class eH extends eq{constructor(){super()}}class eG extends eH{constructor(e){super()}}function eV(e,t){let r=function(e){let t=e.match(RegExp(/^\\w+:/,\"gi\"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function eW(e){return eV(e,\"^https?:\")}function eK(e){return eV(e,\"^wss?:\")}function eY(e){return\"object\"==typeof e&&\"id\"in e&&\"jsonrpc\"in e&&\"2.0\"===e.jsonrpc}function eZ(e){return eY(e)&&\"method\"in e}function eJ(e){return eY(e)&&(eQ(e)||eX(e))}function eQ(e){return\"result\"in e}function eX(e){return\"error\"in e}class e0 extends eG{constructor(e){super(e),this.events=new i.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(eF(e.method,e.params||[],e.id||eB().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{eX(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit(\"payload\",e),eJ(e)?this.events.emit(`${e.id}`,e):this.events.emit(\"message\",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit(\"error\",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:\"\"}`)),this.events.emit(\"disconnect\")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),\"string\"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit(\"connect\"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on(\"payload\",e=>this.onPayload(e)),this.connection.on(\"close\",e=>this.onClose(e)),this.connection.on(\"error\",e=>this.events.emit(\"error\",e)),this.connection.on(\"register_error\",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}let e1=()=>\"u\">typeof WebSocket||\"u\">typeof r.g&&\"u\">typeof r.g.WebSocket||\"u\">typeof window&&\"u\">typeof window.WebSocket||\"u\">typeof self&&\"u\">typeof self.WebSocket,e2=e=>e.split(\"?\")[0],e3=\"u\">typeof WebSocket?WebSocket:\"u\">typeof r.g&&\"u\">typeof r.g.WebSocket?r.g.WebSocket:\"u\">typeof window&&\"u\">typeof window.WebSocket?window.WebSocket:\"u\">typeof self&&\"u\">typeof self.WebSocket?self.WebSocket:r(27185);class e5{constructor(e){if(this.url=e,this.events=new i.EventEmitter,this.registering=!1,!eK(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return\"u\">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>\"u\"){t(Error(\"Connection already closed\"));return}this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>\"u\"&&(this.socket=await this.register());try{this.socket.send(x(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!eK(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount(\"register_error\")>=e||this.events.listenerCount(\"open\")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once(\"register_error\",e=>{this.resetMaxListeners(),t(e)}),this.events.once(\"open\",()=>{if(this.resetMaxListeners(),typeof this.socket>\"u\")return t(Error(\"WebSocket connection is missing or invalid\"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,r)=>{let n=new URLSearchParams(e).get(\"origin\"),i=(0,eL.isReactNative)()?{headers:{origin:n}}:{rejectUnauthorized:!RegExp(\"wss?://localhost(:d{2,5})?\").test(e)},s=new e3(e,[],i);e1()?s.onerror=e=>{r(this.emitError(e.error))}:s.on(\"error\",e=>{r(this.emitError(e))}),s.onopen=()=>{this.onOpen(s),t(s)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit(\"open\")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit(\"close\",e)}onPayload(e){if(typeof e.data>\"u\")return;let t=\"string\"==typeof e.data?A(e.data):e.data;this.events.emit(\"payload\",t)}onError(e,t){let r=this.parseError(t),n=ez(e,r.message||r.toString());this.events.emit(\"payload\",n)}parseError(e,t=this.url){return eD(e,e2(t),\"WS\")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${e2(this.url)}`));return this.events.emit(\"register_error\",t),t}}var e6=r(8355),e4=r.n(e6),e8=r(37185),e9=r.n(e8),e7=r(25566),te=function(e,t){if(e.length>=255)throw TypeError(\"Alphabet too long\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var s=e.charAt(i),o=s.charCodeAt(0);if(255!==r[o])throw TypeError(s+\" is ambiguous\");r[o]=i}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function d(e){if(\"string\"!=typeof e)throw TypeError(\"Expected String\");if(0===e.length)return new Uint8Array;var t=0;if(\" \"!==e[0]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var s=(e.length-t)*u+1>>>0,o=new Uint8Array(s);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var d=0,h=s-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*o[h]>>>0,o[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error(\"Non-zero carry\");i=d,t++}if(\" \"!==e[t]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),g=n;f!==s;)p[g++]=o[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError(\"Expected Uint8Array\");if(0===t.length)return\"\";for(var r=0,n=0,i=0,s=t.length;i!==s&&0===t[i];)i++,r++;for(var o=(s-i)*c+1>>>0,u=new Uint8Array(o);i!==s;){for(var d=t[i],h=0,f=o-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*u[f]>>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error(\"Non-zero carry\");n=h,i++}for(var p=o-n;p!==o&&0===u[p];)p++;for(var g=l.repeat(r);p<o;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};let tt=e=>{if(e instanceof Uint8Array&&\"Uint8Array\"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error(\"Unknown type, must be binary type\")},tr=e=>new TextEncoder().encode(e),tn=e=>new TextDecoder().decode(e);class ti{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\"Unknown type, must be binary type\")}}class ts{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error(\"Invalid prefix character\");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if(\"string\"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error(\"Can only multibase decode strings\")}or(e){return ta(this,e)}}class to{constructor(e){this.decoders=e}or(e){return ta(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let ta=(e,t)=>new to({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class tl{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new ti(e,t,r),this.decoder=new ts(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let tu=({name:e,prefix:t,encode:r,decode:n})=>new tl(e,t,r,n),tc=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=te(r,t);return tu({prefix:e,name:t,encode:n,decode:e=>tt(i(e))})},td=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let s=e.length;for(;\"=\"===e[s-1];)--s;let o=new Uint8Array(s*r/8|0),a=0,l=0,u=0;for(let t=0;t<s;++t){let s=i[e[t]];if(void 0===s)throw SyntaxError(`Non-${n} character`);l=l<<r|s,(a+=r)>=8&&(a-=8,o[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw SyntaxError(\"Unexpected end of data\");return o},th=(e,t,r)=>{let n=\"=\"===t[t.length-1],i=(1<<r)-1,s=\"\",o=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],o+=8;o>r;)o-=r,s+=t[i&a>>o];if(o&&(s+=t[i&a<<r-o]),n)for(;s.length*r&7;)s+=\"=\";return s},tf=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>tu({prefix:t,name:e,encode:e=>th(e,n,r),decode:t=>td(t,n,r,e)});var tp=Object.freeze({__proto__:null,identity:tu({prefix:\"\\0\",name:\"identity\",encode:e=>tn(e),decode:e=>tr(e)})}),tg=Object.freeze({__proto__:null,base2:tf({prefix:\"0\",name:\"base2\",alphabet:\"01\",bitsPerChar:1})}),tm=Object.freeze({__proto__:null,base8:tf({prefix:\"7\",name:\"base8\",alphabet:\"01234567\",bitsPerChar:3})}),ty=Object.freeze({__proto__:null,base10:tc({prefix:\"9\",name:\"base10\",alphabet:\"0123456789\"})}),tb=Object.freeze({__proto__:null,base16:tf({prefix:\"f\",name:\"base16\",alphabet:\"0123456789abcdef\",bitsPerChar:4}),base16upper:tf({prefix:\"F\",name:\"base16upper\",alphabet:\"0123456789ABCDEF\",bitsPerChar:4})});let tv=tf({prefix:\"b\",name:\"base32\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567\",bitsPerChar:5}),tw=tf({prefix:\"B\",name:\"base32upper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\",bitsPerChar:5}),t_=tf({prefix:\"c\",name:\"base32pad\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567=\",bitsPerChar:5}),tE=tf({prefix:\"C\",name:\"base32padupper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\",bitsPerChar:5}),tA=tf({prefix:\"v\",name:\"base32hex\",alphabet:\"0123456789abcdefghijklmnopqrstuv\",bitsPerChar:5}),tx=tf({prefix:\"V\",name:\"base32hexupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV\",bitsPerChar:5});var tk=Object.freeze({__proto__:null,base32:tv,base32upper:tw,base32pad:t_,base32padupper:tE,base32hex:tA,base32hexupper:tx,base32hexpad:tf({prefix:\"t\",name:\"base32hexpad\",alphabet:\"0123456789abcdefghijklmnopqrstuv=\",bitsPerChar:5}),base32hexpadupper:tf({prefix:\"T\",name:\"base32hexpadupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\",bitsPerChar:5}),base32z:tf({prefix:\"h\",name:\"base32z\",alphabet:\"ybndrfg8ejkmcpqxot1uwisza345h769\",bitsPerChar:5})}),tS=Object.freeze({__proto__:null,base36:tc({prefix:\"k\",name:\"base36\",alphabet:\"0123456789abcdefghijklmnopqrstuvwxyz\"}),base36upper:tc({prefix:\"K\",name:\"base36upper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"})}),t$=Object.freeze({__proto__:null,base58btc:tc({name:\"base58btc\",prefix:\"z\",alphabet:\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"}),base58flickr:tc({name:\"base58flickr\",prefix:\"Z\",alphabet:\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\"})});let tC=tf({prefix:\"m\",name:\"base64\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",bitsPerChar:6});var tP=Object.freeze({__proto__:null,base64:tC,base64pad:tf({prefix:\"M\",name:\"base64pad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",bitsPerChar:6}),base64url:tf({prefix:\"u\",name:\"base64url\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\",bitsPerChar:6}),base64urlpad:tf({prefix:\"U\",name:\"base64urlpad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\",bitsPerChar:6})});let tI=Array.from(\"\\uD83D\\uDE80\\uD83E\\uDE90☄\\uD83D\\uDEF0\\uD83C\\uDF0C\\uD83C\\uDF11\\uD83C\\uDF12\\uD83C\\uDF13\\uD83C\\uDF14\\uD83C\\uDF15\\uD83C\\uDF16\\uD83C\\uDF17\\uD83C\\uDF18\\uD83C\\uDF0D\\uD83C\\uDF0F\\uD83C\\uDF0E\\uD83D\\uDC09☀\\uD83D\\uDCBB\\uD83D\\uDDA5\\uD83D\\uDCBE\\uD83D\\uDCBF\\uD83D\\uDE02❤\\uD83D\\uDE0D\\uD83E\\uDD23\\uD83D\\uDE0A\\uD83D\\uDE4F\\uD83D\\uDC95\\uD83D\\uDE2D\\uD83D\\uDE18\\uD83D\\uDC4D\\uD83D\\uDE05\\uD83D\\uDC4F\\uD83D\\uDE01\\uD83D\\uDD25\\uD83E\\uDD70\\uD83D\\uDC94\\uD83D\\uDC96\\uD83D\\uDC99\\uD83D\\uDE22\\uD83E\\uDD14\\uD83D\\uDE06\\uD83D\\uDE44\\uD83D\\uDCAA\\uD83D\\uDE09☺\\uD83D\\uDC4C\\uD83E\\uDD17\\uD83D\\uDC9C\\uD83D\\uDE14\\uD83D\\uDE0E\\uD83D\\uDE07\\uD83C\\uDF39\\uD83E\\uDD26\\uD83C\\uDF89\\uD83D\\uDC9E✌✨\\uD83E\\uDD37\\uD83D\\uDE31\\uD83D\\uDE0C\\uD83C\\uDF38\\uD83D\\uDE4C\\uD83D\\uDE0B\\uD83D\\uDC97\\uD83D\\uDC9A\\uD83D\\uDE0F\\uD83D\\uDC9B\\uD83D\\uDE42\\uD83D\\uDC93\\uD83E\\uDD29\\uD83D\\uDE04\\uD83D\\uDE00\\uD83D\\uDDA4\\uD83D\\uDE03\\uD83D\\uDCAF\\uD83D\\uDE48\\uD83D\\uDC47\\uD83C\\uDFB6\\uD83D\\uDE12\\uD83E\\uDD2D❣\\uD83D\\uDE1C\\uD83D\\uDC8B\\uD83D\\uDC40\\uD83D\\uDE2A\\uD83D\\uDE11\\uD83D\\uDCA5\\uD83D\\uDE4B\\uD83D\\uDE1E\\uD83D\\uDE29\\uD83D\\uDE21\\uD83E\\uDD2A\\uD83D\\uDC4A\\uD83E\\uDD73\\uD83D\\uDE25\\uD83E\\uDD24\\uD83D\\uDC49\\uD83D\\uDC83\\uD83D\\uDE33✋\\uD83D\\uDE1A\\uD83D\\uDE1D\\uD83D\\uDE34\\uD83C\\uDF1F\\uD83D\\uDE2C\\uD83D\\uDE43\\uD83C\\uDF40\\uD83C\\uDF37\\uD83D\\uDE3B\\uD83D\\uDE13⭐✅\\uD83E\\uDD7A\\uD83C\\uDF08\\uD83D\\uDE08\\uD83E\\uDD18\\uD83D\\uDCA6✔\\uD83D\\uDE23\\uD83C\\uDFC3\\uD83D\\uDC90☹\\uD83C\\uDF8A\\uD83D\\uDC98\\uD83D\\uDE20☝\\uD83D\\uDE15\\uD83C\\uDF3A\\uD83C\\uDF82\\uD83C\\uDF3B\\uD83D\\uDE10\\uD83D\\uDD95\\uD83D\\uDC9D\\uD83D\\uDE4A\\uD83D\\uDE39\\uD83D\\uDDE3\\uD83D\\uDCAB\\uD83D\\uDC80\\uD83D\\uDC51\\uD83C\\uDFB5\\uD83E\\uDD1E\\uD83D\\uDE1B\\uD83D\\uDD34\\uD83D\\uDE24\\uD83C\\uDF3C\\uD83D\\uDE2B⚽\\uD83E\\uDD19☕\\uD83C\\uDFC6\\uD83E\\uDD2B\\uD83D\\uDC48\\uD83D\\uDE2E\\uD83D\\uDE46\\uD83C\\uDF7B\\uD83C\\uDF43\\uD83D\\uDC36\\uD83D\\uDC81\\uD83D\\uDE32\\uD83C\\uDF3F\\uD83E\\uDDE1\\uD83C\\uDF81⚡\\uD83C\\uDF1E\\uD83C\\uDF88❌✊\\uD83D\\uDC4B\\uD83D\\uDE30\\uD83E\\uDD28\\uD83D\\uDE36\\uD83E\\uDD1D\\uD83D\\uDEB6\\uD83D\\uDCB0\\uD83C\\uDF53\\uD83D\\uDCA2\\uD83E\\uDD1F\\uD83D\\uDE41\\uD83D\\uDEA8\\uD83D\\uDCA8\\uD83E\\uDD2C✈\\uD83C\\uDF80\\uD83C\\uDF7A\\uD83E\\uDD13\\uD83D\\uDE19\\uD83D\\uDC9F\\uD83C\\uDF31\\uD83D\\uDE16\\uD83D\\uDC76\\uD83E\\uDD74▶➡❓\\uD83D\\uDC8E\\uD83D\\uDCB8⬇\\uD83D\\uDE28\\uD83C\\uDF1A\\uD83E\\uDD8B\\uD83D\\uDE37\\uD83D\\uDD7A⚠\\uD83D\\uDE45\\uD83D\\uDE1F\\uD83D\\uDE35\\uD83D\\uDC4E\\uD83E\\uDD32\\uD83E\\uDD20\\uD83E\\uDD27\\uD83D\\uDCCC\\uD83D\\uDD35\\uD83D\\uDC85\\uD83E\\uDDD0\\uD83D\\uDC3E\\uD83C\\uDF52\\uD83D\\uDE17\\uD83E\\uDD11\\uD83C\\uDF0A\\uD83E\\uDD2F\\uD83D\\uDC37☎\\uD83D\\uDCA7\\uD83D\\uDE2F\\uD83D\\uDC86\\uD83D\\uDC46\\uD83C\\uDFA4\\uD83D\\uDE47\\uD83C\\uDF51❄\\uD83C\\uDF34\\uD83D\\uDCA3\\uD83D\\uDC38\\uD83D\\uDC8C\\uD83D\\uDCCD\\uD83E\\uDD40\\uD83E\\uDD22\\uD83D\\uDC45\\uD83D\\uDCA1\\uD83D\\uDCA9\\uD83D\\uDC50\\uD83D\\uDCF8\\uD83D\\uDC7B\\uD83E\\uDD10\\uD83E\\uDD2E\\uD83C\\uDFBC\\uD83E\\uDD75\\uD83D\\uDEA9\\uD83C\\uDF4E\\uD83C\\uDF4A\\uD83D\\uDC7C\\uD83D\\uDC8D\\uD83D\\uDCE3\\uD83E\\uDD42\"),tO=tI.reduce((e,t,r)=>(e[r]=t,e),[]),tN=tI.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var tM=Object.freeze({__proto__:null,base256emoji:tu({prefix:\"\\uD83D\\uDE80\",name:\"base256emoji\",encode:function(e){return e.reduce((e,t)=>e+=tO[t],\"\")},decode:function(e){let t=[];for(let r of e){let e=tN[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}})});function tR(e,t){var r,n=0,t=t||0,i=0,s=t,o=e.length;do{if(s>=o)throw tR.bytes=0,RangeError(\"Could not decode varint\");r=e[s++],n+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128);return tR.bytes=s-t,n}var tT=function e(t,r,n){r=r||[],n=n||0;for(var i=n;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r};let tD=(e,t,r=0)=>(tT(e,t,r),t),tL=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,tj=(e,t)=>{let r=t.byteLength,n=tL(e),i=n+tL(r),s=new Uint8Array(i+r);return tD(e,s,0),tD(r,s,n),s.set(t,i),new tB(e,r,t,s)};class tB{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let tF=({name:e,code:t,encode:r})=>new tU(e,t,r);class tU{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tj(this.code,t):t.then(e=>tj(this.code,e))}throw Error(\"Unknown type, must be binary type\")}}let tz=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var tq=Object.freeze({__proto__:null,sha256:tF({name:\"sha2-256\",code:18,encode:tz(\"SHA-256\")}),sha512:tF({name:\"sha2-512\",code:19,encode:tz(\"SHA-512\")})}),tH=Object.freeze({__proto__:null,identity:{code:0,name:\"identity\",encode:tt,digest:e=>tj(0,tt(e))}});new TextEncoder,new TextDecoder;let tG={...tp,...tg,...tm,...ty,...tb,...tk,...tS,...t$,...tP,...tM};function tV(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...tq,...tH});let tW=tV(\"utf8\",\"u\",e=>\"u\"+new TextDecoder(\"utf8\").decode(e),e=>new TextEncoder().encode(e.substring(1))),tK=tV(\"ascii\",\"a\",e=>{let t=\"a\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),tY={utf8:tW,\"utf-8\":tW,hex:tG.base16,latin1:tK,ascii:tK,binary:tK,...tG},tZ=\"core\",tJ=`wc@2:${tZ}:`,tQ={logger:\"error\"},tX={database:\":memory:\"},t0=\"client_ed25519_seed\",t1=R.ONE_DAY,t2=R.SIX_HOURS,t3=\"wss://relay.walletconnect.org\",t5={message:\"relayer_message\",message_ack:\"relayer_message_ack\",connect:\"relayer_connect\",disconnect:\"relayer_disconnect\",error:\"relayer_error\",connection_stalled:\"relayer_connection_stalled\",publish:\"relayer_publish\"},t6={payload:\"payload\",connect:\"connect\",disconnect:\"disconnect\",error:\"error\"},t4={created:\"subscription_created\",deleted:\"subscription_deleted\",sync:\"subscription_sync\",resubscribed:\"subscription_resubscribed\"},t8=1e3*R.FIVE_SECONDS,t9={wc_pairingDelete:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:R.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:R.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:R.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:R.ONE_DAY,prompt:!1,tag:0},res:{ttl:R.ONE_DAY,prompt:!1,tag:0}}},t7={create:\"pairing_create\",expire:\"pairing_expire\",delete:\"pairing_delete\",ping:\"pairing_ping\"},re={created:\"history_created\",updated:\"history_updated\",deleted:\"history_deleted\",sync:\"history_sync\"},rt={created:\"expirer_created\",deleted:\"expirer_deleted\",expired:\"expirer_expired\",sync:\"expirer_sync\"},rr=\"verify-api\",rn=\"https://verify.walletconnect.org\",ri=[\"https://verify.walletconnect.com\",rn];class rs{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name=\"keychain\",this.version=\"0.3\",this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{if(!this.initialized){let e=await this.getKeyChain();\"u\">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();let t=this.keychain.get(e);if(typeof t>\"u\"){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=eo(t,this.name)}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,o.KCv)(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return\"u\">typeof e?(0,o.IPd)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class ro{constructor(e,t,r){this.core=e,this.logger=t,this.name=\"crypto\",this.randomSessionIdentifier=(0,o.jdp)(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>(this.isInitialized(),e$(eC(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();let e=(0,o.Au2)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let t=eC(await this.getClientSeed()),r=this.randomSessionIdentifier;return await eP(r,e,t1,t)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();let n=this.getPrivateKey(e),i=(0,o.m$A)(n,t);return this.setSymKey(i,r)},this.setSymKey=async(e,t)=>{this.isInitialized();let r=t||(0,o.YmJ)(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();let n=(0,o.ENt)(r),i=x(t);if((0,o.Q8x)(n)){let t=n.senderPublicKey,r=n.receiverPublicKey;e=await this.generateSharedKey(t,r)}let s=this.getSymKey(e),{type:a,senderPublicKey:l}=n;return(0,o.HIp)({type:a,symKey:s,message:i,senderPublicKey:l})},this.decode=async(e,t,r)=>{this.isInitialized();let n=(0,o.Llj)(t,r);if((0,o.Q8x)(n)){let t=n.receiverPublicKey,r=n.senderPublicKey;e=await this.generateSharedKey(t,r)}try{let r=this.getSymKey(e),n=(0,o.peR)({symKey:r,encoded:t});return A(n)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=e=>{let t=(0,o.vBi)(e);return(0,o.WGe)(t.type)},this.getPayloadSenderPublicKey=e=>{let t=(0,o.vBi)(e);return t.senderPublicKey?(0,eI.BB)(t.senderPublicKey,o.AWt):void 0},this.core=e,this.logger=eo(t,this.name),this.keychain=r||new rs(this.core,this.logger)}get context(){return es(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e=\"\";try{e=this.keychain.get(t0)}catch{e=(0,o.jdp)(),await this.keychain.set(t0,e)}return function(e,t=\"utf8\"){let r=tY[t];if(!r)throw Error(`Unsupported encoding \"${t}\"`);return(\"utf8\"===t||\"utf-8\"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,\"utf8\"):r.decoder.decode(`${r.prefix}${e}`)}(e,\"base16\")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class ra extends eu{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=\"messages\",this.version=\"0.3\",this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{if(!this.initialized){this.logger.trace(\"Initialized\");try{let e=await this.getRelayerMessages();\"u\">typeof e&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();let r=(0,o.rjm)(t),n=this.messages.get(e);return typeof n>\"u\"&&(n={}),\"u\">typeof n[r]||(n[r]=t,this.messages.set(e,n),await this.persist()),r},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>\"u\"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),\"u\">typeof this.get(e)[(0,o.rjm)(t)]),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=eo(e,this.name),this.core=t}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,o.KCv)(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return\"u\">typeof e?(0,o.IPd)(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rl extends ec{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new i.EventEmitter,this.name=\"publisher\",this.queue=new Map,this.publishTimeout=(0,R.toMiliseconds)(R.ONE_MINUTE),this.failedPublishTimeout=(0,R.toMiliseconds)(R.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{var n;this.logger.debug(\"Publishing Payload\"),this.logger.trace({type:\"method\",method:\"publish\",params:{topic:e,message:t,opts:r}});let i=r?.ttl||t2,s=(0,o._HE)(r),a=r?.prompt||!1,l=r?.tag||0,u=r?.id||eB().toString(),c={topic:e,message:t,opts:{ttl:i,relay:s,prompt:a,tag:l,id:u}},d=`Failed to publish payload, please try again. id:${u} tag:${l}`,h=Date.now(),f,p=1;try{for(;void 0===f;){if(Date.now()-h>this.publishTimeout)throw Error(d);this.logger.trace({id:u,attempts:p},`publisher.publish - attempt ${p}`),f=await await (0,o.hFY)(this.rpcPublish(e,t,i,s,a,l,u).catch(e=>this.logger.warn(e)),this.publishTimeout,d),p++,f||await new Promise(e=>setTimeout(e,this.failedPublishTimeout))}this.relayer.events.emit(t5.publish,c),this.logger.debug(\"Successfully Published Payload\"),this.logger.trace({type:\"method\",method:\"publish\",params:{id:u,topic:e,message:t,opts:r}})}catch(e){if(this.logger.debug(\"Failed to Publish Payload\"),this.logger.error(e),null!=(n=r?.internal)&&n.throwOnFailedPublish)throw e;this.queue.set(u,c)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=eo(t,this.name),this.registerEventListeners()}get context(){return es(this.logger)}rpcPublish(e,t,r,n,i,s,a){var l,u,c,d;let h={method:(0,o.cOS)(n.protocol).publish,params:{topic:e,message:t,ttl:r,prompt:i,tag:s},id:a};return(0,o.o8e)(null==(l=h.params)?void 0:l.prompt)&&(null==(u=h.params)||delete u.prompt),(0,o.o8e)(null==(c=h.params)?void 0:c.tag)&&(null==(d=h.params)||delete d.tag),this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"message\",direction:\"outgoing\",request:h}),this.relayer.request(h)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:r,opts:n}=e;await this.publish(t,r,n)})}registerEventListeners(){this.relayer.core.heartbeat.on(j,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(t5.connection_stalled);return}this.checkQueue()}),this.relayer.on(t5.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class ru{constructor(){this.map=new Map,this.set=(e,t)=>{let r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>\"u\"){this.map.delete(e);return}if(!this.map.has(e))return;let r=this.get(e);if(!this.exists(e,t))return;let n=r.filter(e=>e!==t);if(!n.length){this.map.delete(e);return}this.map.set(e,n)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var rc=Object.defineProperty,rd=Object.defineProperties,rh=Object.getOwnPropertyDescriptors,rf=Object.getOwnPropertySymbols,rp=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable,rm=(e,t,r)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ry=(e,t)=>{for(var r in t||(t={}))rp.call(t,r)&&rm(e,r,t[r]);if(rf)for(var r of rf(t))rg.call(t,r)&&rm(e,r,t[r]);return e},rb=(e,t)=>rd(e,rh(t));class rv extends ef{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new ru,this.events=new i.EventEmitter,this.name=\"subscription\",this.version=\"0.3\",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel=\"pending_sub_watch_label\",this.pollingInterval=20,this.storagePrefix=tJ,this.subscribeTimeout=(0,R.toMiliseconds)(R.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug(\"Subscribing Topic\"),this.logger.trace({type:\"method\",method:\"subscribe\",params:{topic:e,opts:t}});try{let r=(0,o._HE)(t),n={topic:e,relay:r};this.pending.set(e,n);let i=await this.rpcSubscribe(e,r);return\"string\"==typeof i&&(this.onSubscribe(i,n),this.logger.debug(\"Successfully Subscribed Topic\"),this.logger.trace({type:\"method\",method:\"subscribe\",params:{topic:e,opts:t}})),i}catch(e){throw this.logger.debug(\"Failed to Subscribe Topic\"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),\"u\">typeof t?.id?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;let t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise((r,n)=>{let i=new R.Watch;i.start(t);let s=setInterval(()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(s),i.stop(t),r(!0)),i.elapsed(t)>=t8&&(clearInterval(s),i.stop(t),n(Error(\"Subscription resolution timeout\")))},this.pollingInterval)}).catch(()=>!1)},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=eo(t,this.name),this.clientId=\"\"}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+\"//\"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let r=this.topicMap.get(e);await Promise.all(r.map(async r=>await this.unsubscribeById(e,r,t)))}async unsubscribeById(e,t,r){this.logger.debug(\"Unsubscribing Topic\"),this.logger.trace({type:\"method\",method:\"unsubscribe\",params:{topic:e,id:t,opts:r}});try{let n=(0,o._HE)(r);await this.rpcUnsubscribe(e,t,n);let i=(0,o.D6H)(\"USER_DISCONNECTED\",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug(\"Successfully Unsubscribed Topic\"),this.logger.trace({type:\"method\",method:\"unsubscribe\",params:{topic:e,id:t,opts:r}})}catch(e){throw this.logger.debug(\"Failed to Unsubscribe Topic\"),this.logger.error(e),e}}async rpcSubscribe(e,t){let r={method:(0,o.cOS)(t.protocol).subscribe,params:{topic:e}};this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:r});try{return await await (0,o.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)?(0,o.rjm)(e+this.clientId):null}catch{this.logger.debug(\"Outgoing Relay Subscribe Payload stalled\"),this.relayer.events.emit(t5.connection_stalled)}return null}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,r={method:(0,o.cOS)(t.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:r});try{return await await (0,o.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(t5.connection_stalled)}}async rpcBatchFetchMessages(e){let t;if(!e.length)return;let r=e[0].relay,n={method:(0,o.cOS)(r.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:n});try{t=await await (0,o.hFY)(this.relayer.request(n).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(t5.connection_stalled)}return t}rpcUnsubscribe(e,t,r){let n={method:(0,o.cOS)(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug(\"Outgoing Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"outgoing\",request:n}),this.relayer.request(n)}onSubscribe(e,t){this.setSubscription(e,rb(ry({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,ry({},e)),this.pending.delete(e.topic)})}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug(\"Setting subscription\"),this.logger.trace({type:\"method\",method:\"setSubscription\",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,ry({},t)),this.topicMap.set(t.topic,e),this.events.emit(t4.created,t)}getSubscription(e){this.logger.debug(\"Getting subscription\"),this.logger.trace({type:\"method\",method:\"getSubscription\",id:e});let t=this.subscriptions.get(e);if(!t){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw Error(t)}return t}deleteSubscription(e,t){this.logger.debug(\"Deleting subscription\"),this.logger.trace({type:\"method\",method:\"deleteSubscription\",id:e,reason:t});let r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(t4.deleted,rb(ry({},r),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(t4.sync)}async reset(){if(this.cached.length){let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t<e;t++){let e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(t4.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>\"u\"||!e.length)return;if(this.subscriptions.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);(0,o.qt8)(t)&&this.onBatchSubscribe(t.map((t,r)=>rb(ry({},e[r]),{id:t})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(j,async()=>{await this.checkPending()}),this.events.on(t4.created,async e=>{let t=t4.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),await this.persist()}),this.events.on(t4.deleted,async e=>{let t=t4.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}}var rw=Object.defineProperty,r_=Object.getOwnPropertySymbols,rE=Object.prototype.hasOwnProperty,rA=Object.prototype.propertyIsEnumerable,rx=(e,t,r)=>t in e?rw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rk=(e,t)=>{for(var r in t||(t={}))rE.call(t,r)&&rx(e,r,t[r]);if(r_)for(var r of r_(t))rA.call(t,r)&&rx(e,r,t[r]);return e};class rS extends ed{constructor(e){super(e),this.protocol=\"wc\",this.version=2,this.events=new i.EventEmitter,this.name=\"relayer\",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=[\"socket hang up\",\"stalled\",\"interrupted\"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,R.toMiliseconds)(R.THIRTY_SECONDS+R.ONE_SECOND),this.request=async e=>{var t,r;this.logger.debug(\"Publishing Request Payload\");let n=e.id||eB().toString();await this.toEstablishConnection();try{let i=this.provider.request(e);this.requestsInFlight.set(n,{promise:i,request:e}),this.logger.trace({id:n,method:e.method,topic:null==(t=e.params)?void 0:t.topic},\"relayer.request - attempt to publish...\");let s=await new Promise(async(e,t)=>{let r=()=>{t(Error(`relayer.request - publish interrupted, id: ${n}`))};this.provider.on(t6.disconnect,r);let s=await i;this.provider.off(t6.disconnect,r),e(s)});return this.logger.trace({id:n,method:e.method,topic:null==(r=e.params)?void 0:r.topic},\"relayer.request - published\"),s}catch(e){throw this.logger.debug(`Failed to Publish Request: ${n}`),e}finally{this.requestsInFlight.delete(n)}},this.resetPingTimeout=()=>{if((0,o.UGU)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var e,t,r;null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||r.terminate()},this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace(\"relayer connected\"),this.startPingTimeout(),this.events.emit(t5.connect)},this.onDisconnectHandler=()=>{this.logger.trace(\"relayer disconnected\"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(t5.error,e),this.logger.info(\"Fatal socket error received, closing transport\"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(t6.payload,this.onPayloadHandler),this.provider.on(t6.connect,this.onConnectHandler),this.provider.on(t6.disconnect,this.onDisconnectHandler),this.provider.on(t6.error,this.onProviderErrorHandler)},this.core=e.core,this.logger=\"u\">typeof e.logger&&\"string\"!=typeof e.logger?eo(e.logger,this.name):U()(ei({level:e.logger||\"error\"})),this.messages=new ra(this.logger,e.core),this.subscriber=new rv(this,this.logger),this.publisher=new rl(this,this.logger),this.relayUrl=e?.relayUrl||t3,this.projectId=e.projectId,this.bundleId=(0,o.X_B)(),this.provider={}}async init(){this.logger.trace(\"Initialized\"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),await this.transportOpen(),this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info(\"No topics subscribed to after init, closing transport\"),await this.transportClose(),this.transportExplicitlyClosed=!1)},1e4)}get context(){return es(this.logger)}get connected(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===1}get connecting(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===0}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){var r;this.isInitialized();let n=(null==(r=this.subscriber.topicMap.get(e))?void 0:r[0])||\"\",i,s=t=>{t.topic===e&&(this.subscriber.off(t4.created,s),i())};return await Promise.all([new Promise(e=>{i=e,this.subscriber.on(t4.created,s)}),new Promise(async r=>{n=await this.subscriber.subscribe(e,t)||n,r()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await (0,o.hFY)(this.provider.disconnect(),2e3,\"provider.disconnect()\").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(e,t)=>{let r=()=>{this.provider.off(t6.disconnect,r),t(Error(\"Connection interrupted while trying to subscribe\"))};this.provider.on(t6.disconnect,r),await (0,o.hFY)(this.provider.connect(),(0,R.toMiliseconds)(R.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(e=>{t(e)}),this.subscriber.start().catch(e=>{this.logger.error(e),this.onDisconnectHandler()}),this.hasExperiencedNetworkDisruption=!1,e()})}catch(e){if(this.logger.error(e),this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw e}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,o.Ggh)())throw Error(\"No internet connection detected. Please restart your network and try again.\")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace(\"Batch message events is empty. Ignoring...\");return}let t=e.sort((e,t)=>e.publishedAt-t.publishedAt);for(let e of(this.logger.trace(`Batch of ${t.length} message events sorted`),t))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${t.length} message events processed`)}startPingTimeout(){var e,t,r,n,i;if((0,o.UGU)())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(i=null==(n=null==(r=this.provider)?void 0:r.connection)?void 0:n.socket)||i.once(\"ping\",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some(t=>e.includes(t))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new e0(new e5((0,o.$0m)({sdkVersion:\"2.14.0\",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){let{topic:t,message:r}=e;await this.messages.set(t,r)}async shouldIgnoreMessageEvent(e){let{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;let n=this.messages.has(t,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(e){if(this.logger.debug(\"Incoming Relay Payload\"),this.logger.trace({type:\"payload\",direction:\"incoming\",payload:e}),eZ(e)){if(!e.method.endsWith(\"_subscription\"))return;let t=e.params,{topic:r,message:n,publishedAt:i}=t.data,s={topic:r,message:n,publishedAt:i};this.logger.debug(\"Emitting Relayer Payload\"),this.logger.trace(rk({type:\"event\",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}else eJ(e)&&this.events.emit(t5.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(t5.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=eU(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(t6.payload,this.onPayloadHandler),this.provider.off(t6.connect,this.onConnectHandler),this.provider.off(t6.disconnect,this.onDisconnectHandler),this.provider.off(t6.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await (0,o.Ggh)();(0,o.uwg)(async t=>{e!==t&&(e=t,t?await this.restartTransport().catch(e=>this.logger.error(e)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(t5.disconnect),this.connectionAttemptInProgress=!1,this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,R.toMiliseconds)(.1))}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.connected&&(clearInterval(t),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var r$=Object.defineProperty,rC=Object.getOwnPropertySymbols,rP=Object.prototype.hasOwnProperty,rI=Object.prototype.propertyIsEnumerable,rO=(e,t,r)=>t in e?r$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rN=(e,t)=>{for(var r in t||(t={}))rP.call(t,r)&&rO(e,r,t[r]);if(rC)for(var r of rC(t))rI.call(t,r)&&rO(e,r,t[r]);return e};class rM extends eh{constructor(e,t,r,n=tJ,i){super(e,t,r,n),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version=\"0.3\",this.cached=[],this.initialized=!1,this.storagePrefix=tJ,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),await this.restore(),this.cached.forEach(e=>{this.getKey&&null!==e&&!(0,o.o8e)(e)?this.map.set(this.getKey(e),e):(0,o.xWS)(e)?this.map.set(e.id,e):(0,o.h1R)(e)&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug(\"Setting value\"),this.logger.trace({type:\"method\",method:\"set\",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug(\"Getting value\"),this.logger.trace({type:\"method\",method:\"get\",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(t=>Object.keys(e).every(r=>e4()(t[r],e[r]))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug(\"Updating value\"),this.logger.trace({type:\"method\",method:\"update\",key:e,update:t});let r=rN(rN({},this.getData(e)),t);this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug(\"Deleting value\"),this.logger.trace({type:\"method\",method:\"delete\",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=eo(t,this.name),this.storagePrefix=n,this.getKey=i}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),Error(t)}let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw this.logger.error(t),Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>\"u\"||!e.length)return;if(this.map.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rR{constructor(e,t){this.core=e,this.logger=t,this.name=\"pairing\",this.version=\"0.3\",this.events=new(s()),this.initialized=!1,this.storagePrefix=tJ,this.ignoredPayloadTypes=[o.rVF],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace(\"Initialized\"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();let t=(0,o.jdp)(),r=await this.core.crypto.setSymKey(t),n=(0,o.gn4)(R.FIVE_MINUTES),i={protocol:\"irn\"},s=(0,o.Bvr)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:i,expiryTimestamp:n,methods:e?.methods});return this.core.expirer.set(r,n),await this.pairings.set(r,{topic:r,expiry:n,relay:i,active:!1}),await this.core.relayer.subscribe(r),{topic:r,uri:s}},this.pair=async e=>{this.isInitialized(),this.isValidPair(e);let{topic:t,symKey:r,relay:n,expiryTimestamp:i,methods:s}=(0,o.heJ)(e.uri);if(this.pairings.keys.includes(t)&&this.pairings.get(t).active)throw Error(`Pairing already exists: ${t}. Please try again with a new connection URI.`);let a=i||(0,o.gn4)(R.FIVE_MINUTES),l={topic:t,relay:n,expiry:a,active:!1,methods:s};return this.core.expirer.set(t,a),await this.pairings.set(t,l),e.activatePairing&&await this.activate({topic:t}),this.events.emit(t7.create,l),this.core.crypto.keychain.has(t)||await this.core.crypto.setSymKey(r,t),await this.core.relayer.subscribe(t,{relay:n}),l},this.activate=async({topic:e})=>{this.isInitialized();let t=(0,o.gn4)(R.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);let{topic:t}=e;if(this.pairings.keys.includes(t)){let e=await this.sendRequest(t,\"wc_pairingPing\",{}),{done:r,resolve:n,reject:i}=(0,o.H1S)();this.events.once((0,o.E0T)(\"pairing_ping\",e),({error:e})=>{e?i(e):n()}),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,\"wc_pairingDelete\",(0,o.D6H)(\"USER_DISCONNECTED\")),await this.deletePairing(t))},this.sendRequest=async(e,t,r)=>{let n=eF(t,r),i=await this.core.crypto.encode(e,n),s=t9[t].req;return this.core.history.set(e,n),this.core.relayer.publish(e,i,s),n.id},this.sendResult=async(e,t,r)=>{let n=eU(e,r),i=await this.core.crypto.encode(t,n),s=t9[(await this.core.history.get(t,e)).request.method].res;await this.core.relayer.publish(t,i,s),await this.core.history.resolve(n)},this.sendError=async(e,t,r)=>{let n=ez(e,r),i=await this.core.crypto.encode(t,n),s=await this.core.history.get(t,e),o=t9[s.request.method]?t9[s.request.method].res:t9.unregistered_method.res;await this.core.relayer.publish(t,i,o),await this.core.history.resolve(n)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,o.D6H)(\"USER_DISCONNECTED\")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>(0,o.BwD)(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=e=>{let{topic:t,payload:r}=e;switch(r.method){case\"wc_pairingPing\":return this.onPairingPingRequest(t,r);case\"wc_pairingDelete\":return this.onPairingDeleteRequest(t,r);default:return this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,n=(await this.core.history.get(t,r.id)).request.method;return\"wc_pairingPing\"===n?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(t7.ping,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{let{id:r}=t;setTimeout(()=>{eQ(t)?this.events.emit((0,o.E0T)(\"pairing_ping\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"pairing_ping\",r),{error:t.error})},500)},this.onPairingDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(t7.delete,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{let{id:r,method:n}=t;try{if(this.registeredMethods.includes(n))return;let t=(0,o.D6H)(\"WC_METHOD_UNSUPPORTED\",n);await this.sendError(r,e,t),this.logger.error(t)}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,o.D6H)(\"WC_METHOD_UNSUPPORTED\",e))},this.isValidPair=e=>{var t;if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pair() params: ${e}`);throw Error(t)}if(!(0,o.jvJ)(e.uri)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pair() uri: ${e.uri}`);throw Error(t)}let r=(0,o.heJ)(e.uri);if(!(null!=(t=r?.relay)&&t.protocol)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",\"pair() uri#relay-protocol\");throw Error(e)}if(!(null!=r&&r.symKey)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",\"pair() uri#symKey\");throw Error(e)}if(null!=r&&r.expiryTimestamp&&(0,R.toMiliseconds)(r?.expiryTimestamp)<Date.now()){let{message:e}=(0,o.kCb)(\"EXPIRED\",\"pair() URI has expired. Please try again with a new connection URI.\");throw Error(e)}},this.isValidPing=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.pairings.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:t}=(0,o.kCb)(\"EXPIRED\",`pairing topic: ${e}`);throw Error(t)}},this.core=e,this.logger=eo(t,this.name),this.pairings=new rM(this.core,this.logger,this.name,this.storagePrefix)}get context(){return es(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(t5.message,async e=>{let{topic:t,message:r}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;let n=await this.core.crypto.decode(t,r);try{eZ(n)?(this.core.history.set(t,n),this.onRelayEventRequest({topic:t,payload:n})):eJ(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:t,payload:n}),this.core.history.delete(t,n.id))}catch(e){this.logger.error(e)}})}registerExpirerEvents(){this.core.expirer.on(rt.expired,async e=>{let{topic:t}=(0,o.iPz)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(t7.expire,{topic:t}))})}}class rT extends el{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new i.EventEmitter,this.name=\"history\",this.version=\"0.3\",this.cached=[],this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug(\"Setting JSON-RPC request history record\"),this.logger.trace({type:\"method\",method:\"set\",topic:e,request:t,chainId:r}),this.records.has(t.id))return;let n={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:(0,o.gn4)(R.THIRTY_DAYS)};this.records.set(n.id,n),this.persist(),this.events.emit(re.created,n)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug(\"Updating JSON-RPC response history record\"),this.logger.trace({type:\"method\",method:\"update\",response:e}),!this.records.has(e.id))return;let t=await this.getRecord(e.id);typeof t.response>\"u\"&&(t.response=eX(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(re.updated,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug(\"Getting record\"),this.logger.trace({type:\"method\",method:\"get\",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug(\"Deleting record\"),this.logger.trace({type:\"method\",method:\"delete\",id:t}),this.values.forEach(r=>{r.topic!==e||\"u\">typeof t&&r.id!==t||(this.records.delete(r.id),this.events.emit(re.deleted,r))}),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=eo(t,this.name)}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if(\"u\">typeof t.response)return;let r={topic:t.topic,request:eF(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(re.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>\"u\"||!e.length)return;if(this.records.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(re.created,e=>{let t=re.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,record:e})}),this.events.on(re.updated,e=>{let t=re.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,record:e})}),this.events.on(re.deleted,e=>{let t=re.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,record:e})}),this.core.heartbeat.on(j,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,R.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(re.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rD extends ep{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new i.EventEmitter,this.name=\"expirer\",this.version=\"0.3\",this.cached=[],this.initialized=!1,this.storagePrefix=tJ,this.init=async()=>{this.initialized||(this.logger.trace(\"Initialized\"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let t=this.formatTarget(e);return\"u\">typeof this.getExpiration(t)}catch{return!1}},this.set=(e,t)=>{this.isInitialized();let r=this.formatTarget(e),n={target:r,expiry:t};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(rt.created,{target:r,expiration:n})},this.get=e=>{this.isInitialized();let t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){let t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(rt.deleted,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=eo(t,this.name)}get context(){return es(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\"//\"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(\"string\"==typeof e)return(0,o.Z42)(e);if(\"number\"==typeof e)return(0,o.GqV)(e);let{message:t}=(0,o.kCb)(\"UNKNOWN_TYPE\",`Target type: ${typeof e}`);throw Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(rt.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>\"u\"||!e.length)return;if(this.expirations.size){let{message:e}=(0,o.kCb)(\"RESTORE_WILL_OVERRIDE\",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:\"method\",method:\"restore\",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`${this.name}: ${e}`);throw this.logger.warn(t),Error(t)}return t}checkExpiry(e,t){let{expiry:r}=t;(0,R.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(rt.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(j,()=>this.checkExpirations()),this.events.on(rt.created,e=>{let t=rt.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),this.persist()}),this.events.on(rt.expired,e=>{let t=rt.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),this.persist()}),this.events.on(rt.deleted,e=>{let t=rt.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:\"event\",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}}}class rL extends eg{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.name=rr,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async e=>{if(this.verifyDisabled||(0,o.b$m)()||!(0,o.jUY)())return;let t=this.getVerifyUrl(e?.verifyUrl);this.verifyUrl!==t&&this.removeIframe(),this.verifyUrl=t;try{await this.createIframe()}catch(e){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(e),this.verifyDisabled=!0}},this.register=async e=>{this.initialized?this.sendPost(e.attestationId):(this.addToQueue(e.attestationId),await this.init())},this.resolve=async e=>{if(this.isDevEnv)return\"\";let t=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(e.attestationId,t)},this.fetchAttestation=async(e,t)=>{this.logger.info(`resolving attestation: ${e} from url: ${t}`);let r=this.startAbortTimer(5*R.ONE_SECOND),n=await fetch(`${t}/attestation/${e}`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.addToQueue=e=>{this.queue.push(e)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach(e=>this.sendPost(e)),this.queue=[])},this.sendPost=e=>{var t;try{if(!this.iframe)return;null==(t=this.iframe.contentWindow)||t.postMessage(e,\"*\"),this.logger.info(`postMessage sent: ${e} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let e;let t=r=>{\"verify_ready\"===r.data&&(this.onInit(),window.removeEventListener(\"message\",t),e())};await Promise.race([new Promise(r=>{let n=document.getElementById(rr);if(n)return this.iframe=n,this.onInit(),r();window.addEventListener(\"message\",t);let i=document.createElement(\"iframe\");i.id=rr,i.src=`${this.verifyUrl}/${this.projectId}`,i.style.display=\"none\",document.body.append(i),this.iframe=i,e=r}),new Promise((e,r)=>setTimeout(()=>{window.removeEventListener(\"message\",t),r(\"verify iframe load timeout\")},(0,R.toMiliseconds)(R.FIVE_SECONDS)))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=e=>{let t=e||rn;return ri.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${rn}`),t=rn),t},this.logger=eo(t,this.name),this.verifyUrl=rn,this.abortController=new AbortController,this.isDevEnv=(0,o.UGU)()&&e7.env.IS_VITEST}get context(){return es(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,R.toMiliseconds)(e))}}class rj extends em{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context=\"echo\",this.registerDeviceToken=async e=>{let{clientId:t,token:r,notificationType:n,enableEncrypted:i=!1}=e,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await e9()(s,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({client_id:t,type:n,token:r,always_raw:i})})},this.logger=eo(t,this.context)}}var rB=Object.defineProperty,rF=Object.getOwnPropertySymbols,rU=Object.prototype.hasOwnProperty,rz=Object.prototype.propertyIsEnumerable,rq=(e,t,r)=>t in e?rB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rH=(e,t)=>{for(var r in t||(t={}))rU.call(t,r)&&rq(e,r,t[r]);if(rF)for(var r of rF(t))rz.call(t,r)&&rq(e,r,t[r]);return e};class rG extends ea{constructor(e){var t,r;super(e),this.protocol=\"wc\",this.version=2,this.name=tZ,this.events=new i.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||t3,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:\"\";let{logger:n,chunkLoggerController:s}=\"u\">typeof(r={opts:ei({level:\"string\"==typeof e?.logger&&e.logger?e.logger:tQ.logger}),maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger}).loggerOverride&&\"string\"!=typeof r.loggerOverride?{logger:r.loggerOverride,chunkLoggerController:null}:\"u\">typeof window?function(e){var t,r;let n=new W(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:U()(en(er({},e.opts),{level:\"trace\",browser:en(er({},null==(r=e.opts)?void 0:r.browser),{write:e=>n.write(e)})})),chunkLoggerController:n}}(r):function(e){var t;let r=new K(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:U()(en(er({},e.opts),{level:\"trace\"}),r),chunkLoggerController:r}}(r);this.logChunkController=s,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=eo(n,this.name),this.heartbeat=new B,this.crypto=new ro(this,this.logger,e?.keychain),this.history=new rT(this,this.logger),this.expirer=new rD(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new M(rH(rH({},tX),e?.storageOptions)),this.relayer=new rS({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new rR(this,this.logger),this.verify=new rL(this.projectId||\"\",this.logger),this.echoClient=new rj(this.projectId||\"\",this.logger)}static async init(e){let t=new rG(e);await t.initialize();let r=await t.crypto.getClientId();return await t.storage.setItem(\"WALLETCONNECT_CLIENT_ID\",r),t}get context(){return es(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace(\"Initialized\");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info(\"Core Initialization Success\")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}let rV=\"client\",rW=`wc@2:${rV}:`,rK={name:rV,logger:\"error\"},rY=\"WALLETCONNECT_DEEPLINK_CHOICE\",rZ=\"Proposal expired\",rJ=R.SEVEN_DAYS,rQ={wc_sessionPropose:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1104},res:{ttl:R.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1106},res:{ttl:R.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1112},res:{ttl:R.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1114},res:{ttl:R.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:R.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:R.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1119}}},rX={min:R.FIVE_MINUTES,max:R.SEVEN_DAYS},r0={idle:\"IDLE\",active:\"ACTIVE\"},r1=[\"wc_sessionPropose\",\"wc_sessionRequest\",\"wc_authRequest\",\"wc_sessionAuthenticate\"],r2=\"wc@1.5:auth:\",r3=`${r2}:PUB_KEY`;var r5=Object.defineProperty,r6=Object.defineProperties,r4=Object.getOwnPropertyDescriptors,r8=Object.getOwnPropertySymbols,r9=Object.prototype.hasOwnProperty,r7=Object.prototype.propertyIsEnumerable,ne=(e,t,r)=>t in e?r5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nt=(e,t)=>{for(var r in t||(t={}))r9.call(t,r)&&ne(e,r,t[r]);if(r8)for(var r of r8(t))r7.call(t,r)&&ne(e,r,t[r]);return e},nr=(e,t)=>r6(e,r4(t));class nn extends eb{constructor(e){super(e),this.name=\"engine\",this.events=new(s()),this.initialized=!1,this.requestQueue={state:r0.idle,queue:[]},this.sessionRequestQueue={state:r0.idle,queue:[]},this.requestQueueDelay=R.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(rQ)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,R.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{await this.isInitialized();let t=nr(nt({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);let{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:s,relays:a}=t,l=r,u,c=!1;try{l&&(c=this.client.core.pairing.pairings.get(l).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${l}) failed`),e}if(!l||!c){let{topic:e,uri:t}=await this.client.core.pairing.create();l=e,u=t}if(!l){let{message:e}=(0,o.kCb)(\"NO_MATCHING_KEY\",`connect() pairing topic: ${l}`);throw Error(e)}let d=await this.client.core.crypto.generateKeyPair(),h=rQ.wc_sessionPropose.req.ttl||R.FIVE_MINUTES,f=(0,o.gn4)(h),p=nt({requiredNamespaces:n,optionalNamespaces:i,relays:a??[{protocol:\"irn\"}],proposer:{publicKey:d,metadata:this.client.metadata},expiryTimestamp:f,pairingTopic:l},s&&{sessionProperties:s}),{reject:g,resolve:m,done:y}=(0,o.H1S)(h,rZ);this.events.once((0,o.E0T)(\"session_connect\"),async({error:e,session:t})=>{if(e)g(e);else if(t){t.self.publicKey=d;let e=nr(nt({},t),{pairingTopic:p.pairingTopic,requiredNamespaces:p.requiredNamespaces,optionalNamespaces:p.optionalNamespaces});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),m(e)}});let b=await this.sendRequest({topic:l,method:\"wc_sessionPropose\",params:p,throwOnFailedPublish:!0});return await this.setProposal(b,nt({id:b},p)),{uri:u,approval:y}},this.pair=async e=>{await this.isInitialized();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error(\"pair() failed\"),e}},this.approve=async e=>{let t;await this.isInitialized();try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error(\"approve() -> isValidApprove() failed\"),e}let{id:r,relayProtocol:n,namespaces:i,sessionProperties:s,sessionConfig:a}=e;try{t=this.client.proposal.get(r)}catch(e){throw this.client.logger.error(`approve() -> proposal.get(${r}) failed`),e}let{pairingTopic:l,proposer:u,requiredNamespaces:c,optionalNamespaces:d}=t,h=await this.client.core.crypto.generateKeyPair(),f=u.publicKey,p=await this.client.core.crypto.generateSharedKey(h,f),g=nt(nt({relay:{protocol:n??\"irn\"},namespaces:i,controller:{publicKey:h,metadata:this.client.metadata},expiry:(0,o.gn4)(rJ)},s&&{sessionProperties:s}),a&&{sessionConfig:a});await this.client.core.relayer.subscribe(p);let m=nr(nt({},g),{topic:p,requiredNamespaces:c,optionalNamespaces:d,pairingTopic:l,acknowledged:!1,self:g.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:h});await this.client.session.set(p,m);try{await this.sendResult({id:r,topic:l,result:{relay:{protocol:n??\"irn\"},responderPublicKey:h},throwOnFailedPublish:!0}),await this.sendRequest({topic:p,method:\"wc_sessionSettle\",params:g,throwOnFailedPublish:!0})}catch(e){throw this.client.logger.error(e),this.client.session.delete(p,(0,o.D6H)(\"USER_DISCONNECTED\")),await this.client.core.relayer.unsubscribe(p),e}return await this.client.core.pairing.updateMetadata({topic:l,metadata:u.metadata}),await this.client.proposal.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\")),await this.client.core.pairing.activate({topic:l}),await this.setExpiry(p,(0,o.gn4)(rJ)),{topic:p,acknowledged:()=>new Promise(e=>setTimeout(()=>e(this.client.session.get(p)),500))}},this.reject=async e=>{let t;await this.isInitialized();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error(\"reject() -> isValidReject() failed\"),e}let{id:r,reason:n}=e;try{t=this.client.proposal.get(r).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),e}t&&(await this.sendError({id:r,topic:t,error:n,rpcOpts:rQ.wc_sessionPropose.reject}),await this.client.proposal.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\")))},this.update=async e=>{await this.isInitialized();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error(\"update() -> isValidUpdate() failed\"),e}let{topic:t,namespaces:r}=e,{done:n,resolve:i,reject:s}=(0,o.H1S)(),a=ej(),l=eB().toString(),u=this.client.session.get(t).namespaces;return this.events.once((0,o.E0T)(\"session_update\",a),({error:e})=>{e?s(e):i()}),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:\"wc_sessionUpdate\",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:a,relayRpcId:l}).catch(e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:u}),s(e)}),{acknowledged:n}},this.extend=async e=>{await this.isInitialized();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error(\"extend() -> isValidExtend() failed\"),e}let{topic:t}=e,r=ej(),{done:n,resolve:i,reject:s}=(0,o.H1S)();return this.events.once((0,o.E0T)(\"session_extend\",r),({error:e})=>{e?s(e):i()}),await this.setExpiry(t,(0,o.gn4)(rJ)),this.sendRequest({topic:t,method:\"wc_sessionExtend\",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch(e=>{s(e)}),{acknowledged:n}},this.request=async e=>{await this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error(\"request() -> isValidRequest() failed\"),e}let{chainId:t,request:r,topic:n,expiry:i=rQ.wc_sessionRequest.req.ttl}=e,s=this.client.session.get(n),a=ej(),l=eB().toString(),{done:u,resolve:c,reject:d}=(0,o.H1S)(i,\"Request expired. Please try again.\");return this.events.once((0,o.E0T)(\"session_request\",a),({error:e,result:t})=>{e?d(e):c(t)}),await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:a,relayRpcId:l,topic:n,method:\"wc_sessionRequest\",params:{request:nr(nt({},r),{expiryTimestamp:(0,o.gn4)(i)}),chainId:t},expiry:i,throwOnFailedPublish:!0}).catch(e=>d(e)),this.client.events.emit(\"session_request_sent\",{topic:n,request:r,chainId:t,id:a}),e()}),new Promise(async e=>{var t;if(!(null!=(t=s.sessionConfig)&&t.disableDeepLink)){let e=await (0,o.bW6)(this.client.core.storage,rY);(0,o.HhN)({id:a,topic:n,wcDeepLink:e})}e()}),u()]).then(e=>e[2])},this.respond=async e=>{await this.isInitialized(),await this.isValidRespond(e);let{topic:t,response:r}=e,{id:n}=r;eQ(r)?await this.sendResult({id:n,topic:t,result:r.result,throwOnFailedPublish:!0}):eX(r)&&await this.sendError({id:n,topic:t,error:r.error}),this.cleanupAfterResponse(e)},this.ping=async e=>{await this.isInitialized();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error(\"ping() -> isValidPing() failed\"),e}let{topic:t}=e;if(this.client.session.keys.includes(t)){let e=ej(),r=eB().toString(),{done:n,resolve:i,reject:s}=(0,o.H1S)();this.events.once((0,o.E0T)(\"session_ping\",e),({error:e})=>{e?s(e):i()}),await Promise.all([this.sendRequest({topic:t,method:\"wc_sessionPing\",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),n()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{await this.isInitialized(),await this.isValidEmit(e);let{topic:t,event:r,chainId:n}=e,i=eB().toString();await this.sendRequest({topic:t,method:\"wc_sessionEvent\",params:{event:r,chainId:n},throwOnFailedPublish:!0,relayRpcId:i})},this.disconnect=async e=>{await this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:\"wc_sessionDelete\",params:(0,o.D6H)(\"USER_DISCONNECTED\"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{let{message:e}=(0,o.kCb)(\"MISMATCHED_TOPIC\",`Session or pairing topic not found: ${t}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>(0,o.Ih8)(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async e=>{this.isInitialized(),this.isValidAuthenticate(e);let{chains:t,statement:r=\"\",uri:n,domain:i,nonce:s,type:a,exp:l,nbf:u,methods:c=[],expiry:d}=e,h=[...e.resources||[]],{topic:f,uri:p}=await this.client.core.pairing.create({methods:[\"wc_sessionAuthenticate\"]});this.client.logger.info({message:\"Generated new pairing\",pairing:{topic:f,uri:p}});let g=await this.client.core.crypto.generateKeyPair(),m=(0,o.YmJ)(g);if(await Promise.all([this.client.auth.authKeys.set(r3,{responseTopic:m,publicKey:g}),this.client.auth.pairingTopics.set(m,{topic:m,pairingTopic:f})]),await this.client.core.relayer.subscribe(m),this.client.logger.info(`sending request to new pairing topic: ${f}`),c.length>0){let{namespace:e}=(0,o.DQe)(t[0]),r=(0,o.IkP)(e,\"request\",c);(0,o.hA9)(h)&&(r=(0,o.qJM)(r,h.pop())),h.push(r)}let y=d&&d>rQ.wc_sessionAuthenticate.req.ttl?d:rQ.wc_sessionAuthenticate.req.ttl,b={authPayload:{type:a??\"caip122\",chains:t,statement:r,aud:n,domain:i,version:\"1\",nonce:s,iat:new Date().toISOString(),exp:l,nbf:u,resources:h},requester:{publicKey:g,metadata:this.client.metadata},expiryTimestamp:(0,o.gn4)(y)},v={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:t,methods:[...new Set([\"personal_sign\",...c])],events:[\"chainChanged\",\"accountsChanged\"]}},relays:[{protocol:\"irn\"}],pairingTopic:f,proposer:{publicKey:g,metadata:this.client.metadata},expiryTimestamp:(0,o.gn4)(rQ.wc_sessionPropose.req.ttl)},{done:w,resolve:_,reject:E}=(0,o.H1S)(y,\"Request expired\"),A=async({error:e,session:t})=>{if(this.events.off((0,o.E0T)(\"session_request\",k),x),e)E(e);else if(t){t.self.publicKey=g,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),f&&await this.client.core.pairing.updateMetadata({topic:f,metadata:t.peer.metadata});let e=this.client.session.get(t.topic);await this.deleteProposal(S),_({session:e})}},x=async e=>{let t;if(await this.deletePendingAuthRequest(k,{message:\"fulfilled\",code:0}),e.error){let t=(0,o.D6H)(\"WC_METHOD_UNSUPPORTED\",\"wc_sessionAuthenticate\");return e.error.code===t.code?void 0:(this.events.off((0,o.E0T)(\"session_connect\"),A),E(e.error.message))}await this.deleteProposal(S),this.events.off((0,o.E0T)(\"session_connect\"),A);let{cacaos:r,responder:n}=e.result,i=[],s=[];for(let e of r){await (0,o.c4l)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,\"Signature verification failed\"),E((0,o.D6H)(\"SESSION_SETTLEMENT_FAILED\",\"Signature verification failed\")));let{p:t}=e,r=(0,o.hA9)(t.resources),n=[(0,o.DJo)(t.iss)],a=(0,o.NmC)(t.iss);if(r){let e=(0,o.Y31)(r),t=(0,o.ouN)(r);i.push(...e),n.push(...t)}for(let e of n)s.push(`${e}:${a}`)}let a=await this.client.core.crypto.generateSharedKey(g,n.publicKey);i.length>0&&(t={topic:a,acknowledged:!0,self:{publicKey:g,metadata:this.client.metadata},peer:n,controller:n.publicKey,expiry:(0,o.gn4)(rJ),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\"irn\"},pairingTopic:f,namespaces:(0,o.E12)([...new Set(i)],[...new Set(s)])},await this.client.core.relayer.subscribe(a),await this.client.session.set(a,t),f&&await this.client.core.pairing.updateMetadata({topic:f,metadata:n.metadata}),t=this.client.session.get(a)),_({auths:r,session:t})},k=ej(),S=ej();this.events.once((0,o.E0T)(\"session_connect\"),A),this.events.once((0,o.E0T)(\"session_request\",k),x);try{await Promise.all([this.sendRequest({topic:f,method:\"wc_sessionAuthenticate\",params:b,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:k}),this.sendRequest({topic:f,method:\"wc_sessionPropose\",params:v,expiry:rQ.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:S})])}catch(e){throw this.events.off((0,o.E0T)(\"session_connect\"),A),this.events.off((0,o.E0T)(\"session_request\",k),x),e}return await this.setProposal(S,nt({id:S},v)),await this.setAuthRequest(k,{request:nr(nt({},b),{verifyContext:{}}),pairingTopic:f}),{uri:p,response:w}},this.approveSessionAuthenticate=async e=>{let t;this.isInitialized();let{id:r,auths:n}=e,i=this.getPendingAuthRequest(r);if(!i)throw Error(`Could not find pending auth request with id ${r}`);let s=i.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),l=(0,o.YmJ)(s),u={type:o.rVF,receiverPublicKey:s,senderPublicKey:a},c=[],d=[];for(let e of n){if(!await (0,o.c4l)({cacao:e,projectId:this.client.core.projectId})){let e=(0,o.D6H)(\"SESSION_SETTLEMENT_FAILED\",\"Signature verification failed\");throw await this.sendError({id:r,topic:l,error:e,encodeOpts:u}),Error(e.message)}let{p:t}=e,n=(0,o.hA9)(t.resources),i=[(0,o.DJo)(t.iss)],s=(0,o.NmC)(t.iss);if(n){let e=(0,o.Y31)(n),t=(0,o.ouN)(n);c.push(...e),i.push(...t)}for(let e of i)d.push(`${e}:${s}`)}let h=await this.client.core.crypto.generateSharedKey(a,s);return c?.length>0&&(t={topic:h,acknowledged:!0,self:{publicKey:a,metadata:this.client.metadata},peer:{publicKey:s,metadata:i.requester.metadata},controller:s,expiry:(0,o.gn4)(rJ),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\"irn\"},pairingTopic:i.pairingTopic,namespaces:(0,o.E12)([...new Set(c)],[...new Set(d)])},await this.client.core.relayer.subscribe(h),await this.client.session.set(h,t),await this.client.core.pairing.updateMetadata({topic:i.pairingTopic,metadata:i.requester.metadata})),await this.sendResult({topic:l,id:r,result:{cacaos:n,responder:{publicKey:a,metadata:this.client.metadata}},encodeOpts:u,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(r,{message:\"fulfilled\",code:0}),await this.client.core.pairing.activate({topic:i.pairingTopic}),{session:t}},this.rejectSessionAuthenticate=async e=>{await this.isInitialized();let{id:t,reason:r}=e,n=this.getPendingAuthRequest(t);if(!n)throw Error(`Could not find pending auth request with id ${t}`);let i=n.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),a=(0,o.YmJ)(i),l={type:o.rVF,receiverPublicKey:i,senderPublicKey:s};await this.sendError({id:t,topic:a,error:r,encodeOpts:l,rpcOpts:rQ.wc_sessionAuthenticate.reject}),await this.client.auth.requests.delete(t,{message:\"rejected\",code:0}),await this.client.proposal.delete(t,(0,o.D6H)(\"USER_DISCONNECTED\"))},this.formatAuthMessage=e=>{this.isInitialized();let{request:t,iss:r}=e;return(0,o.wvx)(t,r)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{let e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter(r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===e.peer.metadata.url&&r.topic&&r.topic!==t.topic});if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info(\"Duplicate pairings clean up finished\")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{var t;let{topic:r,expirerHasDeleted:n=!1,emitEvent:i=!0,id:s=0}=e,{self:a}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await this.client.session.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\")),this.addToRecentlyDeleted(r,\"session\"),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(rY).catch(e=>this.client.logger.warn(e)),this.getPendingSessionRequests().forEach(e=>{e.topic===r&&this.deletePendingSessionRequest(e.id,(0,o.D6H)(\"USER_DISCONNECTED\"))}),r===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=r0.idle),i&&this.client.events.emit(\"session_delete\",{id:s,topic:r})},this.deleteProposal=async(e,t)=>{await Promise.all([this.client.proposal.delete(e,(0,o.D6H)(\"USER_DISCONNECTED\")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,\"proposal\")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,\"request\"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(t=>t.id!==e),r&&(this.sessionRequestQueue.state=r0.idle,this.client.events.emit(\"session_request_expire\",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,o.gn4)(rQ.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{let{request:r,pairingTopic:n}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:n,verifyContext:r.verifyContext})},this.setPendingSessionRequest=async e=>{let{id:t,topic:r,params:n,verifyContext:i}=e,s=n.request.expiryTimestamp||(0,o.gn4)(rQ.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,s),await this.client.pendingRequest.set(t,{id:t,topic:r,params:n,verifyContext:i})},this.sendRequest=async e=>{let t;let{topic:r,method:n,params:i,expiry:s,relayRpcId:a,clientRpcId:l,throwOnFailedPublish:u}=e,c=eF(n,i,l);if((0,o.jUY)()&&r1.includes(n)){let e=(0,o.rjm)(JSON.stringify(c));this.client.core.verify.register({attestationId:e})}try{t=await this.client.core.crypto.encode(r,c)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${r} failed`),e}let d=rQ[n].req;return s&&(d.ttl=s),a&&(d.id=a),this.client.core.history.set(r,c),u?(d.internal=nr(nt({},d.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,t,d)):this.client.core.relayer.publish(r,t,d).catch(e=>this.client.logger.error(e)),c.id},this.sendResult=async e=>{let t,r;let{id:n,topic:i,result:s,throwOnFailedPublish:o,encodeOpts:a}=e,l=eU(n,s);try{t=await this.client.core.crypto.encode(i,l,a)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),e}try{r=await this.client.core.history.get(i,n)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${n}) failed`),e}let u=rQ[r.request.method].res;o?(u.internal=nr(nt({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,t,u)):this.client.core.relayer.publish(i,t,u).catch(e=>this.client.logger.error(e)),await this.client.core.history.resolve(l)},this.sendError=async e=>{let t,r;let{id:n,topic:i,error:s,encodeOpts:o,rpcOpts:a}=e,l=ez(n,s);try{t=await this.client.core.crypto.encode(i,l,o)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),e}try{r=await this.client.core.history.get(i,n)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${i}, ${n}) failed`),e}let u=a||rQ[r.request.method].res;this.client.core.relayer.publish(i,t,u),await this.client.core.history.resolve(l)},this.cleanup=async()=>{let e=[],t=[];this.client.session.getAll().forEach(t=>{let r=!1;(0,o.BwD)(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)}),this.client.proposal.getAll().forEach(e=>{(0,o.BwD)(e.expiryTimestamp)&&t.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...t.map(e=>this.deleteProposal(e))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===r0.active){this.client.logger.info(\"Request queue already active, skipping...\");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=r0.active;let e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=r0.idle},this.processRequest=async e=>{let{topic:t,payload:r}=e,n=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:n}))switch(n){case\"wc_sessionPropose\":return await this.onSessionProposeRequest(t,r);case\"wc_sessionSettle\":return await this.onSessionSettleRequest(t,r);case\"wc_sessionUpdate\":return await this.onSessionUpdateRequest(t,r);case\"wc_sessionExtend\":return await this.onSessionExtendRequest(t,r);case\"wc_sessionPing\":return await this.onSessionPingRequest(t,r);case\"wc_sessionDelete\":return await this.onSessionDeleteRequest(t,r);case\"wc_sessionRequest\":return await this.onSessionRequest(t,r);case\"wc_sessionEvent\":return await this.onSessionEventRequest(t,r);case\"wc_sessionAuthenticate\":return await this.onSessionAuthenticateRequest(t,r);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,n=(await this.client.core.history.get(t,r.id)).request.method;switch(n){case\"wc_sessionPropose\":return this.onSessionProposeResponse(t,r);case\"wc_sessionSettle\":return this.onSessionSettleResponse(t,r);case\"wc_sessionUpdate\":return this.onSessionUpdateResponse(t,r);case\"wc_sessionExtend\":return this.onSessionExtendResponse(t,r);case\"wc_sessionPing\":return this.onSessionPingResponse(t,r);case\"wc_sessionRequest\":return this.onSessionRequestResponse(t,r);case\"wc_sessionAuthenticate\":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:t}=e,{message:r}=(0,o.kCb)(\"MISSING_OR_INVALID\",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw Error(r)},this.shouldIgnorePairingRequest=e=>{let{topic:t,requestMethod:r}=e,n=this.expectedPairingMethodMap.get(t);return!(!n||n.includes(r))&&!!(n.includes(\"wc_sessionAuthenticate\")&&this.client.events.listenerCount(\"session_authenticate\")>0)},this.onSessionProposeRequest=async(e,t)=>{let{params:r,id:n}=t;try{this.isValidConnect(nt({},t.params));let i=r.expiryTimestamp||(0,o.gn4)(rQ.wc_sessionPropose.req.ttl),s=nt({id:n,pairingTopic:e,expiryTimestamp:i},r);await this.setProposal(n,s);let a=(0,o.rjm)(JSON.stringify(t)),l=await this.getVerifyContext(a,s.proposer.metadata);this.client.events.emit(\"session_proposal\",{id:n,params:s,verifyContext:l})}catch(t){await this.sendError({id:n,topic:e,error:t,rpcOpts:rQ.wc_sessionPropose.autoReject}),this.client.logger.error(t)}},this.onSessionProposeResponse=async(e,t)=>{let{id:r}=t;if(eQ(t)){let{result:n}=t;this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",result:n});let i=this.client.proposal.get(r);this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",proposal:i});let s=i.proposer.publicKey;this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",selfPublicKey:s});let o=n.responderPublicKey;this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",peerPublicKey:o});let a=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",sessionTopic:a});let l=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:\"method\",method:\"onSessionProposeResponse\",subscriptionId:l}),await this.client.core.pairing.activate({topic:e})}else if(eX(t)){await this.client.proposal.delete(r,(0,o.D6H)(\"USER_DISCONNECTED\"));let e=(0,o.E0T)(\"session_connect\");if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit((0,o.E0T)(\"session_connect\"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{let{id:r,params:n}=t;try{this.isValidSessionSettleRequest(n);let{relay:r,controller:i,expiry:s,namespaces:a,sessionProperties:l,sessionConfig:u}=t.params,c=nt(nt({topic:e,relay:r,expiry:s,namespaces:a,acknowledged:!0,pairingTopic:\"\",requiredNamespaces:{},optionalNamespaces:{},controller:i.publicKey,self:{publicKey:\"\",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},l&&{sessionProperties:l}),u&&{sessionConfig:u});await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0});let d=(0,o.E0T)(\"session_connect\");if(0===this.events.listenerCount(d))throw Error(`emitting ${d} without any listeners 997`);this.events.emit((0,o.E0T)(\"session_connect\"),{session:c})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{let{id:r}=t;eQ(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,o.E0T)(\"session_approve\",r),{})):eX(t)&&(await this.client.session.delete(e,(0,o.D6H)(\"USER_DISCONNECTED\")),this.events.emit((0,o.E0T)(\"session_approve\",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{let{params:r,id:n}=t;try{let t=`${e}_session_update`,i=o.O6B.get(t);if(i&&this.isRequestOutOfSync(i,n)){this.client.logger.info(`Discarding out of sync request - ${n}`),this.sendError({id:n,topic:e,error:(0,o.D6H)(\"INVALID_UPDATE_REQUEST\")});return}this.isValidUpdate(nt({topic:e},r));try{o.O6B.set(t,n),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw o.O6B.delete(t),e}this.client.events.emit(\"session_update\",{id:n,topic:e,params:r})}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_update\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eQ(t)?this.events.emit((0,o.E0T)(\"session_update\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"session_update\",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{let{id:r}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,(0,o.gn4)(rJ)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\"session_extend\",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_extend\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eQ(t)?this.events.emit((0,o.E0T)(\"session_extend\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"session_extend\",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\"session_ping\",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_ping\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);setTimeout(()=>{eQ(t)?this.events.emit((0,o.E0T)(\"session_ping\",r),{}):eX(t)&&this.events.emit((0,o.E0T)(\"session_ping\",r),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),await Promise.all([new Promise(t=>{this.client.core.relayer.once(t5.publish,async()=>{t(await this.deleteSession({topic:e,id:r}))})}),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,o.D6H)(\"USER_DISCONNECTED\")})])}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async(e,t)=>{var r;let{id:n,params:i}=t;try{await this.isValidRequest(nt({topic:e},i));let t=(0,o.rjm)(JSON.stringify(eF(\"wc_sessionRequest\",i,n))),s=this.client.session.get(e),a=await this.getVerifyContext(t,s.peer.metadata),l={id:n,topic:e,params:i,verifyContext:a};await this.setPendingSessionRequest(l),null!=(r=this.client.signConfig)&&r.disableRequestQueue?this.emitSessionRequest(l):(this.addSessionRequestToSessionRequestQueue(l),this.processSessionRequestQueue())}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionRequestResponse=(e,t)=>{let{id:r}=t,n=(0,o.E0T)(\"session_request\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eQ(t)?this.events.emit((0,o.E0T)(\"session_request\",r),{result:t.result}):eX(t)&&this.events.emit((0,o.E0T)(\"session_request\",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{let{id:r,params:n}=t;try{let t=`${e}_session_event_${n.event.name}`,i=o.O6B.get(t);if(i&&this.isRequestOutOfSync(i,r)){this.client.logger.info(`Discarding out of sync request - ${r}`);return}this.isValidEmit(nt({topic:e},n)),this.client.events.emit(\"session_event\",{id:r,topic:e,params:n}),o.O6B.set(t,r)}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{let{id:r}=t;this.client.logger.trace({type:\"method\",method:\"onSessionAuthenticateResponse\",topic:e,payload:t}),eQ(t)?this.events.emit((0,o.E0T)(\"session_request\",r),{result:t.result}):eX(t)&&this.events.emit((0,o.E0T)(\"session_request\",r),{error:t.error})},this.onSessionAuthenticateRequest=async(e,t)=>{try{let{requester:r,authPayload:n,expiryTimestamp:i}=t.params,s=(0,o.rjm)(JSON.stringify(t)),a=await this.getVerifyContext(s,this.client.metadata),l={requester:r,pairingTopic:e,id:t.id,authPayload:n,verifyContext:a,expiryTimestamp:i};await this.setAuthRequest(t.id,{request:l,pairingTopic:e}),this.client.events.emit(\"session_authenticate\",{topic:e,params:t.params,id:t.id,verifyContext:a})}catch(s){this.client.logger.error(s);let r=t.params.requester.publicKey,n=await this.client.core.crypto.generateKeyPair(),i={type:o.rVF,receiverPublicKey:r,senderPublicKey:n};await this.sendError({id:t.id,topic:e,error:s,encodeOpts:i,rpcOpts:rQ.wc_sessionAuthenticate.autoReject})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:\"fulfilled\",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=r0.idle,this.processSessionRequestQueue()},(0,R.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{let r=this.client.core.history.pending;r.length>0&&r.filter(t=>t.topic===e&&\"wc_sessionRequest\"===t.request.method).forEach(e=>{let r=e.request.id,n=(0,o.E0T)(\"session_request\",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);this.events.emit((0,o.E0T)(\"session_request\",e.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===r0.active){this.client.logger.info(\"session request queue is already active.\");return}let e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info(\"session request queue is empty.\");return}try{this.sessionRequestQueue.state=r0.active,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.client.events.emit(\"session_request\",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let t=this.client.proposal.getAll().find(t=>t.pairingTopic===e.topic);t&&this.onSessionProposeRequest(e.topic,eF(\"wc_sessionPropose\",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id))},this.isValidConnect=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`connect() params: ${JSON.stringify(e)}`);throw Error(t)}let{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:s}=e;if((0,o.o8e)(t)||await this.isValidPairingTopic(t),!(0,o.PMr)(s,!0)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`connect() relays: ${s}`);throw Error(e)}(0,o.o8e)(r)||0===(0,o.L5o)(r)||this.validateNamespaces(r,\"requiredNamespaces\"),(0,o.o8e)(n)||0===(0,o.L5o)(n)||this.validateNamespaces(n,\"optionalNamespaces\"),(0,o.o8e)(i)||this.validateSessionProps(i,\"sessionProperties\")},this.validateNamespaces=(e,t)=>{let r=(0,o.naP)(e,\"connect()\",t);if(r)throw Error(r.message)},this.isValidApprove=async e=>{if(!(0,o.EJd)(e))throw Error((0,o.kCb)(\"MISSING_OR_INVALID\",`approve() params: ${e}`).message);let{id:t,namespaces:r,relayProtocol:n,sessionProperties:i}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);let s=this.client.proposal.get(t),a=(0,o.ing)(r,\"approve()\");if(a)throw Error(a.message);let l=(0,o.rFo)(s.requiredNamespaces,r,\"approve()\");if(l)throw Error(l.message);if(!(0,o.M_r)(n,!0)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`approve() relayProtocol: ${n}`);throw Error(e)}(0,o.o8e)(i)||this.validateSessionProps(i,\"sessionProperties\")},this.isValidReject=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`reject() params: ${e}`);throw Error(t)}let{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,o.H4H)(r)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`reject() reason: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`onSessionSettleRequest() params: ${e}`);throw Error(t)}let{relay:t,controller:r,namespaces:n,expiry:i}=e;if(!(0,o.Z26)(t)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",\"onSessionSettleRequest() relay protocol should be a string\");throw Error(e)}let s=(0,o.DdM)(r,\"onSessionSettleRequest()\");if(s)throw Error(s.message);let a=(0,o.ing)(n,\"onSessionSettleRequest()\");if(a)throw Error(a.message);if((0,o.BwD)(i)){let{message:e}=(0,o.kCb)(\"EXPIRED\",\"onSessionSettleRequest()\");throw Error(e)}},this.isValidUpdate=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`update() params: ${e}`);throw Error(t)}let{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let n=this.client.session.get(t),i=(0,o.ing)(r,\"update()\");if(i)throw Error(i.message);let s=(0,o.rFo)(n.requiredNamespaces,r,\"update()\");if(s)throw Error(s.message)},this.isValidExtend=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`extend() params: ${e}`);throw Error(t)}let{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() params: ${e}`);throw Error(t)}let{topic:t,request:r,chainId:n,expiry:i}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let{namespaces:s}=this.client.session.get(t);if(!(0,o.p8o)(s,n)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() chainId: ${n}`);throw Error(e)}if(!(0,o.hHR)(r)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() ${JSON.stringify(r)}`);throw Error(e)}if(!(0,o.alS)(s,n,r.method)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() method: ${r.method}`);throw Error(e)}if(i&&!(0,o.ONw)(i,rX)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${rX.min} and ${rX.max}`);throw Error(e)}},this.isValidRespond=async e=>{var t;if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`respond() params: ${e}`);throw Error(t)}let{topic:r,response:n}=e;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),r}if(!(0,o.JTI)(n)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`respond() response: ${JSON.stringify(n)}`);throw Error(e)}},this.isValidPing=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() params: ${e}`);throw Error(t)}let{topic:t,event:r,chainId:n}=e;await this.isValidSessionTopic(t);let{namespaces:i}=this.client.session.get(t);if(!(0,o.p8o)(i,n)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() chainId: ${n}`);throw Error(e)}if(!(0,o.nfW)(r)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}if(!(0,o.B95)(i,n,r.name)){let{message:e}=(0,o.kCb)(\"MISSING_OR_INVALID\",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!(0,o.EJd)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{let{chains:t,uri:r,domain:n,nonce:i}=e;if(!Array.isArray(t)||0===t.length)throw Error(\"chains is required and must be a non-empty array\");if(!(0,o.M_r)(r,!1))throw Error(\"uri is required parameter\");if(!(0,o.M_r)(n,!1))throw Error(\"domain is required parameter\");if(!(0,o.M_r)(i,!1))throw Error(\"nonce is required parameter\");if([...new Set(t.map(e=>(0,o.DQe)(e).namespace))].length>1)throw Error(\"Multi-namespace requests are not supported. Please request single namespace only.\");let{namespace:s}=(0,o.DQe)(t[0]);if(\"eip155\"!==s)throw Error(\"Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.\")},this.getVerifyContext=async(e,t)=>{let r={verified:{verifyUrl:t.verifyUrl||rn,validation:\"UNKNOWN\",origin:t.url||\"\"}};try{let n=await this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});n&&(r.verified.origin=n.origin,r.verified.isScam=n.isScam,r.verified.validation=n.origin===new URL(t.url).origin?\"VALID\":\"INVALID\")}catch(e){this.client.logger.info(e)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(e,t)=>{Object.values(e).forEach(e=>{if(!(0,o.M_r)(e,!1)){let{message:r}=(0,o.kCb)(\"MISSING_OR_INVALID\",`${t} must be in Record<string, string> format. Received: ${JSON.stringify(e)}`);throw Error(r)}})},this.getPendingAuthRequest=e=>{let t=this.client.auth.requests.get(e);return\"object\"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,t=this.recentlyDeletedLimit/2;for(let r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{let t=this.recentlyDeletedMap.get(e);if(t){let{message:r}=(0,o.kCb)(\"MISSING_OR_INVALID\",`Record was recently deleted - ${t}: ${e}`);throw Error(r)}}}async isInitialized(){if(!this.initialized){let{message:e}=(0,o.kCb)(\"NOT_INITIALIZED\",this.name);throw Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(t5.message,e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)})}async onRelayMessage(e){let{topic:t,message:r}=e,{publicKey:n}=this.client.auth.authKeys.keys.includes(r3)?this.client.auth.authKeys.get(r3):{responseTopic:void 0,publicKey:void 0},i=await this.client.core.crypto.decode(t,r,{receiverPublicKey:n});try{eZ(i)?(this.client.core.history.set(t,i),this.onRelayEventRequest({topic:t,payload:i})):eJ(i)?(await this.client.core.history.resolve(i),await this.onRelayEventResponse({topic:t,payload:i}),this.client.core.history.delete(t,i.id)):this.onRelayEventUnknownPayload({topic:t,payload:i})}catch(e){this.client.logger.error(e)}}registerExpirerEvents(){this.client.core.expirer.on(rt.expired,async e=>{let{topic:t,id:r}=(0,o.iPz)(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,(0,o.kCb)(\"EXPIRED\"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,(0,o.kCb)(\"EXPIRED\"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit(\"session_expire\",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit(\"proposal_expire\",{id:r})))})}registerPairingEvents(){this.client.core.pairing.events.on(t7.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(t7.delete,e=>{this.addToRecentlyDeleted(e.topic,\"pairing\")})}isValidPairingTopic(e){if(!(0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=(0,o.kCb)(\"EXPIRED\",`pairing topic: ${e}`);throw Error(t)}}async isValidSessionTopic(e){if(!(0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`session topic should be a string: ${e}`);throw Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`session topic doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:t}=(0,o.kCb)(\"EXPIRED\",`session topic: ${e}`);throw Error(t)}if(!this.client.core.crypto.keychain.has(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if((0,o.M_r)(e,!1)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`session or pairing topic doesn't exist: ${e}`);throw Error(t)}else{let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`session or pairing topic should be a string: ${e}`);throw Error(t)}}async isValidProposalId(e){if(!(0,o.Q01)(e)){let{message:t}=(0,o.kCb)(\"MISSING_OR_INVALID\",`proposal id should be a number: ${e}`);throw Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=(0,o.kCb)(\"NO_MATCHING_KEY\",`proposal id doesn't exist: ${e}`);throw Error(t)}if((0,o.BwD)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:t}=(0,o.kCb)(\"EXPIRED\",`proposal id: ${e}`);throw Error(t)}}}class ni extends rM{constructor(e,t){super(e,t,\"proposal\",rW),this.core=e,this.logger=t}}class ns extends rM{constructor(e,t){super(e,t,\"session\",rW),this.core=e,this.logger=t}}class no extends rM{constructor(e,t){super(e,t,\"request\",rW,e=>e.id),this.core=e,this.logger=t}}class na extends rM{constructor(e,t){super(e,t,\"authKeys\",r2,()=>r3),this.core=e,this.logger=t}}class nl extends rM{constructor(e,t){super(e,t,\"pairingTopics\",r2),this.core=e,this.logger=t}}class nu extends rM{constructor(e,t){super(e,t,\"requests\",r2,e=>e.id),this.core=e,this.logger=t}}class nc{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new na(this.core,this.logger),this.pairingTopics=new nl(this.core,this.logger),this.requests=new nu(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class nd extends ey{constructor(e){super(e),this.protocol=\"wc\",this.version=2,this.name=rK.name,this.events=new i.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async e=>{try{return await this.engine.authenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||rK.name,this.metadata=e?.metadata||(0,o.DaH)(),this.signConfig=e?.signConfig;let t=\"u\">typeof e?.logger&&\"string\"!=typeof e?.logger?e.logger:U()(ei({level:e?.logger||rK.logger}));this.core=e?.core||new rG(e),this.logger=eo(t,this.name),this.session=new ns(this.core,this.logger),this.proposal=new ni(this.core,this.logger),this.pendingRequest=new no(this.core,this.logger),this.engine=new nn(this),this.auth=new nc(this.core,this.logger)}static async init(e){let t=new nd(e);return await t.initialize(),t}get context(){return es(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace(\"Initialized\");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info(\"SignClient Initialization Success\"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info(\"SignClient Initialization Failure\"),this.logger.error(e.message),e}}}var nh=r(55151),nf=r.n(nh),np=Object.defineProperty,ng=Object.defineProperties,nm=Object.getOwnPropertyDescriptors,ny=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,nv=Object.prototype.propertyIsEnumerable,nw=(e,t,r)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n_=(e,t)=>{for(var r in t||(t={}))nb.call(t,r)&&nw(e,r,t[r]);if(ny)for(var r of ny(t))nv.call(t,r)&&nw(e,r,t[r]);return e},nE=(e,t)=>ng(e,nm(t));let nA={headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},method:\"POST\"};class nx{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new i.EventEmitter,this.isAvailable=!1,this.registering=!1,!eW(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error(\"Connection already closed\");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=x(e),r=await (await nf()(this.url,nE(n_({},nA),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!eW(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount(\"register_error\")>=e||this.events.listenerCount(\"open\")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once(\"register_error\",e=>{this.resetMaxListeners(),t(e)}),this.events.once(\"open\",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>\"u\")return t(Error(\"HTTP connection is missing or invalid\"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=x({id:1,jsonrpc:\"2.0\",method:\"test\",params:[]});await nf()(e,nE(n_({},nA),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit(\"register_error\",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit(\"open\")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit(\"close\")}onPayload(e){if(typeof e.data>\"u\")return;let t=\"string\"==typeof e.data?A(e.data):e.data;this.events.emit(\"payload\",t)}onError(e,t){let r=this.parseError(t),n=ez(e,r.message||r.toString());this.events.emit(\"payload\",n)}parseError(e,t=this.url){return eD(e,t,\"HTTP\")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}let nk=\"error\",nS=\"wc@2:universal_provider:\",n$=\"generic\",nC=\"default_chain_changed\";var nP=\"u\">typeof globalThis?globalThis:\"u\">typeof window?window:\"u\">typeof r.g?r.g:\"u\">typeof self?self:{},nI={exports:{}};/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */!function(e,t){(function(){var r,n=\"Expected a function\",i=\"__lodash_hash_undefined__\",s=\"__lodash_placeholder__\",o=1/0,a=0/0,l=[[\"ary\",128],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",16],[\"flip\",512],[\"partial\",32],[\"partialRight\",64],[\"rearg\",256]],u=\"[object Arguments]\",c=\"[object Array]\",d=\"[object Boolean]\",h=\"[object Date]\",f=\"[object Error]\",p=\"[object Function]\",g=\"[object GeneratorFunction]\",m=\"[object Map]\",y=\"[object Number]\",b=\"[object Object]\",v=\"[object Promise]\",w=\"[object RegExp]\",_=\"[object Set]\",E=\"[object String]\",A=\"[object Symbol]\",x=\"[object WeakMap]\",k=\"[object ArrayBuffer]\",S=\"[object DataView]\",$=\"[object Float32Array]\",C=\"[object Float64Array]\",P=\"[object Int8Array]\",I=\"[object Int16Array]\",O=\"[object Int32Array]\",N=\"[object Uint8Array]\",M=\"[object Uint8ClampedArray]\",R=\"[object Uint16Array]\",T=\"[object Uint32Array]\",D=/\\b__p \\+= '';/g,L=/\\b(__p \\+=) '' \\+/g,j=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>\"']/g,U=RegExp(B.source),z=RegExp(F.source),q=/<%-([\\s\\S]+?)%>/g,H=/<%([\\s\\S]+?)%>/g,G=/<%=([\\s\\S]+?)%>/g,V=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,W=/^\\w*$/,K=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Y=/[\\\\^$.*+?()[\\]{}|]/g,Z=RegExp(Y.source),J=/^\\s+/,Q=/\\s/,X=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ee=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,et=/,? & /,er=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,en=/[()=,{}\\[\\]\\/\\s]/,ei=/\\\\(\\\\)?/g,es=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,eo=/\\w*$/,ea=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,eu=/^\\[object .+?Constructor\\]$/,ec=/^0o[0-7]+$/i,ed=/^(?:0|[1-9]\\d*)$/,eh=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,ef=/($^)/,ep=/['\\n\\r\\u2028\\u2029\\\\]/g,eg=\"\\ud800-\\udfff\",em=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",ey=\"\\\\u2700-\\\\u27bf\",eb=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",ev=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",ew=\"\\\\ufe0e\\\\ufe0f\",e_=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",eE=\"['’]\",eA=\"[\"+e_+\"]\",ex=\"[\"+em+\"]\",ek=\"[\"+eb+\"]\",eS=\"[^\"+eg+e_+\"\\\\d+\"+ey+eb+ev+\"]\",e$=\"\\ud83c[\\udffb-\\udfff]\",eC=\"[^\"+eg+\"]\",eP=\"(?:\\ud83c[\\udde6-\\uddff]){2}\",eI=\"[\\ud800-\\udbff][\\udc00-\\udfff]\",eO=\"[\"+ev+\"]\",eN=\"\\\\u200d\",eM=\"(?:\"+ek+\"|\"+eS+\")\",eR=\"(?:\"+eE+\"(?:d|ll|m|re|s|t|ve))?\",eT=\"(?:\"+eE+\"(?:D|LL|M|RE|S|T|VE))?\",eD=\"(?:\"+ex+\"|\"+e$+\")?\",eL=\"[\"+ew+\"]?\",ej=\"(?:\"+eN+\"(?:\"+[eC,eP,eI].join(\"|\")+\")\"+eL+eD+\")*\",eB=eL+eD+ej,eF=\"(?:\"+[\"[\"+ey+\"]\",eP,eI].join(\"|\")+\")\"+eB,eU=\"(?:\"+[eC+ex+\"?\",ex,eP,eI,\"[\"+eg+\"]\"].join(\"|\")+\")\",ez=RegExp(eE,\"g\"),eq=RegExp(ex,\"g\"),eH=RegExp(e$+\"(?=\"+e$+\")|\"+eU+eB,\"g\"),eG=RegExp([eO+\"?\"+ek+\"+\"+eR+\"(?=\"+[eA,eO,\"$\"].join(\"|\")+\")\",\"(?:\"+eO+\"|\"+eS+\")+\"+eT+\"(?=\"+[eA,eO+eM,\"$\"].join(\"|\")+\")\",eO+\"?\"+eM+\"+\"+eR,eO+\"+\"+eT,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",\"\\\\d+\",eF].join(\"|\"),\"g\"),eV=RegExp(\"[\"+eN+eg+em+ew+\"]\"),eW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eK=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],eY=-1,eZ={};eZ[$]=eZ[C]=eZ[P]=eZ[I]=eZ[O]=eZ[N]=eZ[M]=eZ[R]=eZ[T]=!0,eZ[u]=eZ[c]=eZ[k]=eZ[d]=eZ[S]=eZ[h]=eZ[f]=eZ[p]=eZ[m]=eZ[y]=eZ[b]=eZ[w]=eZ[_]=eZ[E]=eZ[x]=!1;var eJ={};eJ[u]=eJ[c]=eJ[k]=eJ[S]=eJ[d]=eJ[h]=eJ[$]=eJ[C]=eJ[P]=eJ[I]=eJ[O]=eJ[m]=eJ[y]=eJ[b]=eJ[w]=eJ[_]=eJ[E]=eJ[A]=eJ[N]=eJ[M]=eJ[R]=eJ[T]=!0,eJ[f]=eJ[p]=eJ[x]=!1;var eQ={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},eX=parseFloat,e0=parseInt,e1=\"object\"==typeof nP&&nP&&nP.Object===Object&&nP,e2=\"object\"==typeof self&&self&&self.Object===Object&&self,e3=e1||e2||Function(\"return this\")(),e5=t&&!t.nodeType&&t,e6=e5&&e&&!e.nodeType&&e,e4=e6&&e6.exports===e5,e8=e4&&e1.process,e9=function(){try{return e6&&e6.require&&e6.require(\"util\").types||e8&&e8.binding&&e8.binding(\"util\")}catch{}}(),e7=e9&&e9.isArrayBuffer,te=e9&&e9.isDate,tt=e9&&e9.isMap,tr=e9&&e9.isRegExp,tn=e9&&e9.isSet,ti=e9&&e9.isTypedArray;function ts(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function to(e,t,r,n){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function ta(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function tl(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function tu(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function tc(e,t){return!!(null==e?0:e.length)&&tw(e,t,0)>-1}function td(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function th(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function tf(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tp(e,t,r,n){var i=-1,s=null==e?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function tg(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tm(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ty=tx(\"length\");function tb(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function tv(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}function tw(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):tv(e,tE,r)}function t_(e,t,r,n){for(var i=r-1,s=e.length;++i<s;)if(n(e[i],t))return i;return -1}function tE(e){return e!=e}function tA(e,t){var r=null==e?0:e.length;return r?t$(e,t)/r:a}function tx(e){return function(t){return null==t?r:t[e]}}function tk(e){return function(t){return null==e?r:e[t]}}function tS(e,t,r,n,i){return i(e,function(e,i,s){r=n?(n=!1,e):t(r,e,i,s)}),r}function t$(e,t){for(var n,i=-1,s=e.length;++i<s;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function tC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tP(e){return e&&e.slice(0,tG(e)+1).replace(J,\"\")}function tI(e){return function(t){return e(t)}}function tO(e,t){return th(t,function(t){return e[t]})}function tN(e,t){return e.has(t)}function tM(e,t){for(var r=-1,n=e.length;++r<n&&tw(t,e[r],0)>-1;);return r}function tR(e,t){for(var r=e.length;r--&&tw(t,e[r],0)>-1;);return r}var tT=tk({À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),tD=tk({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function tL(e){return\"\\\\\"+eQ[e]}function tj(e){return eV.test(e)}function tB(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tF(e,t){return function(r){return e(t(r))}}function tU(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];(a===t||a===s)&&(e[r]=s,o[i++]=r)}return o}function tz(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tq(e){return tj(e)?function(e){for(var t=eH.lastIndex=0;eH.test(e);)++t;return t}(e):ty(e)}function tH(e){return tj(e)?e.match(eH)||[]:e.split(\"\")}function tG(e){for(var t=e.length;t--&&Q.test(e.charAt(t)););return t}var tV=tk({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"}),tW=function e(t){var Q,eg,em,ey,eb=(t=null==t?e3:tW.defaults(e3.Object(),t,tW.pick(e3,eK))).Array,ev=t.Date,ew=t.Error,e_=t.Function,eE=t.Math,eA=t.Object,ex=t.RegExp,ek=t.String,eS=t.TypeError,e$=eb.prototype,eC=e_.prototype,eP=eA.prototype,eI=t[\"__core-js_shared__\"],eO=eC.toString,eN=eP.hasOwnProperty,eM=0,eR=(Q=/[^.]+$/.exec(eI&&eI.keys&&eI.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+Q:\"\",eT=eP.toString,eD=eO.call(eA),eL=e3._,ej=ex(\"^\"+eO.call(eN).replace(Y,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),eB=e4?t.Buffer:r,eF=t.Symbol,eU=t.Uint8Array,eH=eB?eB.allocUnsafe:r,eV=tF(eA.getPrototypeOf,eA),eQ=eA.create,e1=eP.propertyIsEnumerable,e2=e$.splice,e5=eF?eF.isConcatSpreadable:r,e6=eF?eF.iterator:r,e8=eF?eF.toStringTag:r,e9=function(){try{var e=ip(eA,\"defineProperty\");return e({},\"\",{}),e}catch{}}(),ty=t.clearTimeout!==e3.clearTimeout&&t.clearTimeout,tk=ev&&ev.now!==e3.Date.now&&ev.now,tK=t.setTimeout!==e3.setTimeout&&t.setTimeout,tY=eE.ceil,tZ=eE.floor,tJ=eA.getOwnPropertySymbols,tQ=eB?eB.isBuffer:r,tX=t.isFinite,t0=e$.join,t1=tF(eA.keys,eA),t2=eE.max,t3=eE.min,t5=ev.now,t6=t.parseInt,t4=eE.random,t8=e$.reverse,t9=ip(t,\"DataView\"),t7=ip(t,\"Map\"),re=ip(t,\"Promise\"),rt=ip(t,\"Set\"),rr=ip(t,\"WeakMap\"),rn=ip(eA,\"create\"),ri=rr&&new rr,rs={},ro=iB(t9),ra=iB(t7),rl=iB(re),ru=iB(rt),rc=iB(rr),rd=eF?eF.prototype:r,rh=rd?rd.valueOf:r,rf=rd?rd.toString:r;function rp(e){if(sV(e)&&!sT(e)&&!(e instanceof rb)){if(e instanceof ry)return e;if(eN.call(e,\"__wrapped__\"))return iF(e)}return new ry(e)}var rg=function(){function e(){}return function(t){if(!sG(t))return{};if(eQ)return eQ(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function rm(){}function ry(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function rb(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function rv(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function r_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rE(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new r_;++t<r;)this.add(e[t])}function rA(e){var t=this.__data__=new rw(e);this.size=t.size}function rx(e,t){var r=sT(e),n=!r&&sR(e),i=!r&&!n&&sB(e),s=!r&&!n&&!i&&s0(e),o=r||n||i||s,a=o?tC(e.length,ek):[],l=a.length;for(var u in e)(t||eN.call(e,u))&&!(o&&(\"length\"==u||i&&(\"offset\"==u||\"parent\"==u)||s&&(\"buffer\"==u||\"byteLength\"==u||\"byteOffset\"==u)||i_(u,l)))&&a.push(u);return a}function rk(e){var t=e.length;return t?e[nu(0,t-1)]:r}function rS(e,t,n){(n===r||sO(e[t],n))&&(n!==r||t in e)||rO(e,t,n)}function r$(e,t,n){var i=e[t];eN.call(e,t)&&sO(i,n)&&(n!==r||t in e)||rO(e,t,n)}function rC(e,t){for(var r=e.length;r--;)if(sO(e[r][0],t))return r;return -1}function rP(e,t,r,n){return rj(e,function(e,i,s){t(n,e,r(e),s)}),n}function rI(e,t){return e&&nU(t,oh(t),e)}function rO(e,t,r){\"__proto__\"==t&&e9?e9(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rN(e,t){for(var n=-1,i=t.length,s=eb(i),o=null==e;++n<i;)s[n]=o?r:oa(e,t[n]);return s}function rM(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function rR(e,t,n,i,s,o){var a,l=1&t,c=2&t,f=4&t;if(n&&(a=s?n(e,i,s,o):n(e)),a!==r)return a;if(!sG(e))return e;var v=sT(e);if(v){if(x=e.length,D=new e.constructor(x),x&&\"string\"==typeof e[0]&&eN.call(e,\"index\")&&(D.index=e.index,D.input=e.input),a=D,!l)return nF(e,a)}else{var x,D,L,j,B,F=iy(e),U=F==p||F==g;if(sB(e))return nR(e,l);if(F==b||F==u||U&&!s){if(a=c||U?{}:iv(e),!l)return c?(L=(B=a)&&nU(e,of(e),B),nU(e,im(e),L)):(j=rI(a,e),nU(e,ig(e),j))}else{if(!eJ[F])return s?e:{};a=function(e,t,r){var n,i,s=e.constructor;switch(t){case k:return nT(e);case d:case h:return new s(+e);case S:return n=r?nT(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case $:case C:case P:case I:case O:case N:case M:case R:case T:return nD(e,r);case m:return new s;case y:case E:return new s(e);case w:return(i=new e.constructor(e.source,eo.exec(e))).lastIndex=e.lastIndex,i;case _:return new s;case A:return rh?eA(rh.call(e)):{}}}(e,F,l)}}o||(o=new rA);var z=o.get(e);if(z)return z;o.set(e,a),sJ(e)?e.forEach(function(r){a.add(rR(r,t,n,r,e,o))}):sW(e)&&e.forEach(function(r,i){a.set(i,rR(r,t,n,i,e,o))});var q=f?c?io:is:c?of:oh,H=v?r:q(e);return ta(H||e,function(r,i){H&&(r=e[i=r]),r$(a,i,rR(r,t,n,i,e,o))}),a}function rT(e,t,n){var i=n.length;if(null==e)return!i;for(e=eA(e);i--;){var s=n[i],o=t[s],a=e[s];if(a===r&&!(s in e)||!o(a))return!1}return!0}function rD(e,t,i){if(\"function\"!=typeof e)throw new eS(n);return iN(function(){e.apply(r,i)},t)}function rL(e,t,r,n){var i=-1,s=tc,o=!0,a=e.length,l=[],u=t.length;if(!a)return l;r&&(t=th(t,tI(r))),n?(s=td,o=!1):t.length>=200&&(s=tN,o=!1,t=new rE(t));e:for(;++i<a;){var c=e[i],d=null==r?c:r(c);if(c=n||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;l.push(c)}else s(t,d,n)||l.push(c)}return l}rp.templateSettings={escape:q,evaluate:H,interpolate:G,variable:\"\",imports:{_:rp}},rp.prototype=rm.prototype,rp.prototype.constructor=rp,ry.prototype=rg(rm.prototype),ry.prototype.constructor=ry,rb.prototype=rg(rm.prototype),rb.prototype.constructor=rb,rv.prototype.clear=function(){this.__data__=rn?rn(null):{},this.size=0},rv.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rv.prototype.get=function(e){var t=this.__data__;if(rn){var n=t[e];return n===i?r:n}return eN.call(t,e)?t[e]:r},rv.prototype.has=function(e){var t=this.__data__;return rn?t[e]!==r:eN.call(t,e)},rv.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rn&&t===r?i:t,this},rw.prototype.clear=function(){this.__data__=[],this.size=0},rw.prototype.delete=function(e){var t=this.__data__,r=rC(t,e);return!(r<0)&&(r==t.length-1?t.pop():e2.call(t,r,1),--this.size,!0)},rw.prototype.get=function(e){var t=this.__data__,n=rC(t,e);return n<0?r:t[n][1]},rw.prototype.has=function(e){return rC(this.__data__,e)>-1},rw.prototype.set=function(e,t){var r=this.__data__,n=rC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},r_.prototype.clear=function(){this.size=0,this.__data__={hash:new rv,map:new(t7||rw),string:new rv}},r_.prototype.delete=function(e){var t=id(this,e).delete(e);return this.size-=t?1:0,t},r_.prototype.get=function(e){return id(this,e).get(e)},r_.prototype.has=function(e){return id(this,e).has(e)},r_.prototype.set=function(e,t){var r=id(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},rE.prototype.add=rE.prototype.push=function(e){return this.__data__.set(e,i),this},rE.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.clear=function(){this.__data__=new rw,this.size=0},rA.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rA.prototype.get=function(e){return this.__data__.get(e)},rA.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rw){var n=r.__data__;if(!t7||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new r_(n)}return r.set(e,t),this.size=r.size,this};var rj=nH(rV),rB=nH(rW,!0);function rF(e,t){var r=!0;return rj(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rU(e,t,n){for(var i=-1,s=e.length;++i<s;){var o=e[i],a=t(o);if(null!=a&&(l===r?a==a&&!sX(a):n(a,l)))var l=a,u=o}return u}function rz(e,t){var r=[];return rj(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rq(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=iw),i||(i=[]);++s<o;){var a=e[s];t>0&&r(a)?t>1?rq(a,t-1,r,n,i):tf(i,a):n||(i[i.length]=a)}return i}var rH=nG(),rG=nG(!0);function rV(e,t){return e&&rH(e,t,oh)}function rW(e,t){return e&&rG(e,t,oh)}function rK(e,t){return tu(t,function(t){return sz(e[t])})}function rY(e,t){t=nO(t,e);for(var n=0,i=t.length;null!=e&&n<i;)e=e[ij(t[n++])];return n&&n==i?e:r}function rZ(e,t,r){var n=t(e);return sT(e)?n:tf(n,r(e))}function rJ(e){return null==e?e===r?\"[object Undefined]\":\"[object Null]\":e8&&e8 in eA(e)?function(e){var t=eN.call(e,e8),n=e[e8];try{e[e8]=r;var i=!0}catch{}var s=eT.call(e);return i&&(t?e[e8]=n:delete e[e8]),s}(e):eT.call(e)}function rQ(e,t){return e>t}function rX(e,t){return null!=e&&eN.call(e,t)}function r0(e,t){return null!=e&&t in eA(e)}function r1(e,t,n){for(var i=n?td:tc,s=e[0].length,o=e.length,a=o,l=eb(o),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=th(d,tI(t))),u=t3(d.length,u),l[a]=!n&&(t||s>=120&&d.length>=120)?new rE(a&&d):r}d=e[0];var h=-1,f=l[0];e:for(;++h<s&&c.length<u;){var p=d[h],g=t?t(p):p;if(p=n||0!==p?p:0,!(f?tN(f,g):i(c,g,n))){for(a=o;--a;){var m=l[a];if(!(m?tN(m,g):i(e[a],g,n)))continue e}f&&f.push(g),c.push(p)}}return c}function r2(e,t,n){t=nO(t,e);var i=null==(e=iP(e,t))?e:e[ij(iJ(t))];return null==i?r:ts(i,e,n)}function r3(e){return sV(e)&&rJ(e)==u}function r5(e,t,n,i,s){return e===t||(null!=e&&null!=t&&(sV(e)||sV(t))?function(e,t,n,i,s,o){var a=sT(e),l=sT(t),p=a?c:iy(e),g=l?c:iy(t);p=p==u?b:p,g=g==u?b:g;var v=p==b,x=g==b,$=p==g;if($&&sB(e)){if(!sB(t))return!1;a=!0,v=!1}if($&&!v)return o||(o=new rA),a||s0(e)?ir(e,t,n,i,s,o):function(e,t,r,n,i,s,o){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!s(new eU(e),new eU(t)));case d:case h:case y:return sO(+e,+t);case f:return e.name==t.name&&e.message==t.message;case w:case E:return e==t+\"\";case m:var a=tB;case _:var l=1&n;if(a||(a=tz),e.size!=t.size&&!l)break;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var c=ir(a(e),a(t),n,i,s,o);return o.delete(e),c;case A:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,p,n,i,s,o);if(!(1&n)){var C=v&&eN.call(e,\"__wrapped__\"),P=x&&eN.call(t,\"__wrapped__\");if(C||P){var I=C?e.value():e,O=P?t.value():t;return o||(o=new rA),s(I,O,n,i,o)}}return!!$&&(o||(o=new rA),function(e,t,n,i,s,o){var a=1&n,l=is(e),u=l.length;if(u!=is(t).length&&!a)return!1;for(var c=u;c--;){var d=l[c];if(!(a?d in t:eN.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=a;++c<u;){var m=e[d=l[c]],y=t[d];if(i)var b=a?i(y,m,d,t,e,o):i(m,y,d,e,t,o);if(!(b===r?m===y||s(m,y,n,i,o):b)){p=!1;break}g||(g=\"constructor\"==d)}if(p&&!g){var v=e.constructor,w=t.constructor;v!=w&&\"constructor\"in e&&\"constructor\"in t&&!(\"function\"==typeof v&&v instanceof v&&\"function\"==typeof w&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,s,o))}(e,t,n,i,r5,s):e!=e&&t!=t)}function r6(e,t,n,i){var s=n.length,o=s,a=!i;if(null==e)return!o;for(e=eA(e);s--;){var l=n[s];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<o;){var u=(l=n[s])[0],c=e[u],d=l[1];if(a&&l[2]){if(c===r&&!(u in e))return!1}else{var h=new rA;if(i)var f=i(c,d,u,e,t,h);if(!(f===r?r5(d,c,3,i,h):f))return!1}}return!0}function r4(e){return!(!sG(e)||eR&&eR in e)&&(sz(e)?ej:eu).test(iB(e))}function r8(e){return\"function\"==typeof e?e:null==e?oj:\"object\"==typeof e?sT(e)?nr(e[0],e[1]):nt(e):oW(e)}function r9(e){if(!iS(e))return t1(e);var t=[];for(var r in eA(e))eN.call(e,r)&&\"constructor\"!=r&&t.push(r);return t}function r7(e,t){return e<t}function ne(e,t){var r=-1,n=sL(e)?eb(e.length):[];return rj(e,function(e,i,s){n[++r]=t(e,i,s)}),n}function nt(e){var t=ih(e);return 1==t.length&&t[0][2]?i$(t[0][0],t[0][1]):function(r){return r===e||r6(r,e,t)}}function nr(e,t){var n;return iA(e)&&(n=t)==n&&!sG(n)?i$(ij(e),t):function(n){var i=oa(n,e);return i===r&&i===t?ol(n,e):r5(t,i,3)}}function nn(e,t,n,i,s){e!==t&&rH(t,function(o,a){if(s||(s=new rA),sG(o))!function(e,t,n,i,s,o,a){var l=iI(e,n),u=iI(t,n),c=a.get(u);if(c){rS(e,n,c);return}var d=o?o(l,u,n+\"\",e,t,a):r,h=d===r;if(h){var f=sT(u),p=!f&&sB(u),g=!f&&!p&&s0(u);d=u,f||p||g?sT(l)?d=l:sj(l)?d=nF(l):p?(h=!1,d=nR(u,!0)):g?(h=!1,d=nD(u,!0)):d=[]:sY(u)||sR(u)?(d=l,sR(l)?d=s9(l):(!sG(l)||sz(l))&&(d=iv(u))):h=!1}h&&(a.set(u,d),s(d,u,i,o,a),a.delete(u)),rS(e,n,d)}(e,t,a,n,nn,i,s);else{var l=i?i(iI(e,a),o,a+\"\",e,t,s):r;l===r&&(l=o),rS(e,a,l)}},of)}function ni(e,t){var n=e.length;if(n)return i_(t+=t<0?n:0,n)?e[t]:r}function ns(e,t,r){t=t.length?th(t,function(e){return sT(e)?function(t){return rY(t,1===e.length?e[0]:e)}:e}):[oj];var n=-1;return t=th(t,tI(ic())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(ne(e,function(e,r,i){return{criteria:th(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,o=i.length,a=r.length;++n<o;){var l=nL(i[n],s[n]);if(l){if(n>=a)return l;return l*(\"desc\"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function no(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var o=t[n],a=rY(e,o);r(a,o)&&nh(s,nO(o,e),a)}return s}function na(e,t,r,n){var i=n?t_:tw,s=-1,o=t.length,a=e;for(e===t&&(t=nF(t)),r&&(a=th(e,tI(r)));++s<o;)for(var l=0,u=t[s],c=r?r(u):u;(l=i(a,c,l,n))>-1;)a!==e&&e2.call(a,l,1),e2.call(e,l,1);return e}function nl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==s){var s=i;i_(i)?e2.call(e,i,1):nA(e,i)}}return e}function nu(e,t){return e+tZ(t4()*(t-e+1))}function nc(e,t){var r=\"\";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tZ(t/2))&&(e+=e);while(t);return r}function nd(e,t){return iM(iC(e,t,oj),e+\"\")}function nh(e,t,n,i){if(!sG(e))return e;t=nO(t,e);for(var s=-1,o=t.length,a=o-1,l=e;null!=l&&++s<o;){var u=ij(t[s]),c=n;if(\"__proto__\"===u||\"constructor\"===u||\"prototype\"===u)break;if(s!=a){var d=l[u];(c=i?i(d,u,l):r)===r&&(c=sG(d)?d:i_(t[s+1])?[]:{})}r$(l,u,c),l=l[u]}return e}var nf=ri?function(e,t){return ri.set(e,t),e}:oj,np=e9?function(e,t){return e9(e,\"toString\",{configurable:!0,enumerable:!1,value:oT(t),writable:!0})}:oj;function ng(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=eb(i);++n<i;)s[n]=e[n+t];return s}function nm(e,t){var r;return rj(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function ny(e,t,r){var n=0,i=null==e?n:e.length;if(\"number\"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var s=n+i>>>1,o=e[s];null!==o&&!sX(o)&&(r?o<=t:o<t)?n=s+1:i=s}return i}return nb(e,t,oj,r)}function nb(e,t,n,i){var s=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);for(var a=t!=t,l=null===t,u=sX(t),c=t===r;s<o;){var d=tZ((s+o)/2),h=n(e[d]),f=h!==r,p=null===h,g=h==h,m=sX(h);if(a)var y=i||g;else y=c?g&&(i||f):l?g&&f&&(i||!p):u?g&&f&&!p&&(i||!m):!p&&!m&&(i?h<=t:h<t);y?s=d+1:o=d}return t3(o,4294967294)}function nv(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var o=e[r],a=t?t(o):o;if(!r||!sO(a,l)){var l=a;s[i++]=0===o?0:o}}return s}function nw(e){return\"number\"==typeof e?e:sX(e)?a:+e}function n_(e){if(\"string\"==typeof e)return e;if(sT(e))return th(e,n_)+\"\";if(sX(e))return rf?rf.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-o?\"-0\":t}function nE(e,t,r){var n=-1,i=tc,s=e.length,o=!0,a=[],l=a;if(r)o=!1,i=td;else if(s>=200){var u=t?null:n4(e);if(u)return tz(u);o=!1,i=tN,l=new rE}else l=t?[]:a;e:for(;++n<s;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(c)}else i(l,d,r)||(l!==a&&l.push(d),a.push(c))}return a}function nA(e,t){return t=nO(t,e),null==(e=iP(e,t))||delete e[ij(iJ(t))]}function nx(e,t,r,n){return nh(e,t,r(rY(e,t)),n)}function nk(e,t,r,n){for(var i=e.length,s=n?i:-1;(n?s--:++s<i)&&t(e[s],s,e););return r?ng(e,n?0:s,n?s+1:i):ng(e,n?s+1:0,n?i:s)}function nS(e,t){var r=e;return r instanceof rb&&(r=r.value()),tp(t,function(e,t){return t.func.apply(t.thisArg,tf([e],t.args))},r)}function n$(e,t,r){var n=e.length;if(n<2)return n?nE(e[0]):[];for(var i=-1,s=eb(n);++i<n;)for(var o=e[i],a=-1;++a<n;)a!=i&&(s[i]=rL(s[i]||o,e[a],t,r));return nE(rq(s,1),t,r)}function nC(e,t,n){for(var i=-1,s=e.length,o=t.length,a={};++i<s;){var l=i<o?t[i]:r;n(a,e[i],l)}return a}function nP(e){return sj(e)?e:[]}function nI(e){return\"function\"==typeof e?e:oj}function nO(e,t){return sT(e)?e:iA(e,t)?[e]:iL(s7(e))}function nN(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ng(e,t,n)}var nM=ty||function(e){return e3.clearTimeout(e)};function nR(e,t){if(t)return e.slice();var r=e.length,n=eH?eH(r):new e.constructor(r);return e.copy(n),n}function nT(e){var t=new e.constructor(e.byteLength);return new eU(t).set(new eU(e)),t}function nD(e,t){var r=t?nT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nL(e,t){if(e!==t){var n=e!==r,i=null===e,s=e==e,o=sX(e),a=t!==r,l=null===t,u=t==t,c=sX(t);if(!l&&!c&&!o&&e>t||o&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!s)return 1;if(!i&&!o&&!c&&e<t||c&&n&&s&&!i&&!o||l&&n&&s||!a&&s||!u)return -1}return 0}function nj(e,t,r,n){for(var i=-1,s=e.length,o=r.length,a=-1,l=t.length,u=t2(s-o,0),c=eb(l+u),d=!n;++a<l;)c[a]=t[a];for(;++i<o;)(d||i<s)&&(c[r[i]]=e[i]);for(;u--;)c[a++]=e[i++];return c}function nB(e,t,r,n){for(var i=-1,s=e.length,o=-1,a=r.length,l=-1,u=t.length,c=t2(s-a,0),d=eb(c+u),h=!n;++i<c;)d[i]=e[i];for(var f=i;++l<u;)d[f+l]=t[l];for(;++o<a;)(h||i<s)&&(d[f+r[o]]=e[i++]);return d}function nF(e,t){var r=-1,n=e.length;for(t||(t=eb(n));++r<n;)t[r]=e[r];return t}function nU(e,t,n,i){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),s?rO(n,l,u):r$(n,l,u)}return n}function nz(e,t){return function(r,n){var i=sT(r)?to:rP,s=t?t():{};return i(r,e,ic(n,2),s)}}function nq(e){return nd(function(t,n){var i=-1,s=n.length,o=s>1?n[s-1]:r,a=s>2?n[2]:r;for(o=e.length>3&&\"function\"==typeof o?(s--,o):r,a&&iE(n[0],n[1],a)&&(o=s<3?r:o,s=1),t=eA(t);++i<s;){var l=n[i];l&&e(t,l,i,o)}return t})}function nH(e,t){return function(r,n){if(null==r)return r;if(!sL(r))return e(r,n);for(var i=r.length,s=t?i:-1,o=eA(r);(t?s--:++s<i)&&!1!==n(o[s],s,o););return r}}function nG(e){return function(t,r,n){for(var i=-1,s=eA(t),o=n(t),a=o.length;a--;){var l=o[e?a:++i];if(!1===r(s[l],l,s))break}return t}}function nV(e){return function(t){var n=tj(t=s7(t))?tH(t):r,i=n?n[0]:t.charAt(0),s=n?nN(n,1).join(\"\"):t.slice(1);return i[e]()+s}}function nW(e){return function(t){return tp(oN(ox(t).replace(ez,\"\")),e,\"\")}}function nK(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rg(e.prototype),n=e.apply(r,t);return sG(n)?n:r}}function nY(e){return function(t,n,i){var s=eA(t);if(!sL(t)){var o=ic(n,3);t=oh(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,i);return a>-1?s[o?t[a]:a]:r}}function nZ(e){return ii(function(t){var i=t.length,s=i,o=ry.prototype.thru;for(e&&t.reverse();s--;){var a=t[s];if(\"function\"!=typeof a)throw new eS(n);if(o&&!l&&\"wrapper\"==il(a))var l=new ry([],!0)}for(s=l?s:i;++s<i;){var u=il(a=t[s]),c=\"wrapper\"==u?ia(a):r;l=c&&ix(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[il(c[0])].apply(l,c[3]):1==a.length&&ix(a)?l[u]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&sT(r))return l.plant(r).value();for(var n=0,s=i?t[n].apply(this,e):r;++n<i;)s=t[n].call(this,s);return s}})}function nJ(e,t,n,i,s,o,a,l,u,c){var d=128&t,h=1&t,f=2&t,p=24&t,g=512&t,m=f?r:nK(e);return function y(){for(var b=arguments.length,v=eb(b),w=b;w--;)v[w]=arguments[w];if(p)var _=iu(y),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(v,_);if(i&&(v=nj(v,i,s,p)),o&&(v=nB(v,o,a,p)),b-=E,p&&b<c){var A=tU(v,_);return n5(e,t,nJ,y.placeholder,n,v,A,l,u,c-b)}var x=h?n:this,k=f?x[e]:e;return b=v.length,l?v=function(e,t){for(var n=e.length,i=t3(t.length,n),s=nF(e);i--;){var o=t[i];e[i]=i_(o,n)?s[o]:r}return e}(v,l):g&&b>1&&v.reverse(),d&&u<b&&(v.length=u),this&&this!==e3&&this instanceof y&&(k=m||nK(k)),k.apply(x,v)}}function nQ(e,t){return function(r,n){var i,s;return i=t(n),s={},rV(r,function(t,r,n){e(s,i(t),r,n)}),s}}function nX(e,t){return function(n,i){var s;if(n===r&&i===r)return t;if(n!==r&&(s=n),i!==r){if(s===r)return i;\"string\"==typeof n||\"string\"==typeof i?(n=n_(n),i=n_(i)):(n=nw(n),i=nw(i)),s=e(n,i)}return s}}function n0(e){return ii(function(t){return t=th(t,tI(ic())),nd(function(r){var n=this;return e(t,function(e){return ts(e,n,r)})})})}function n1(e,t){var n=(t=t===r?\" \":n_(t)).length;if(n<2)return n?nc(t,e):t;var i=nc(t,tY(e/tq(t)));return tj(t)?nN(tH(i),0,e).join(\"\"):i.slice(0,e)}function n2(e){return function(t,n,i){return i&&\"number\"!=typeof i&&iE(t,n,i)&&(n=i=r),t=s5(t),n===r?(n=t,t=0):n=s5(n),i=i===r?t<n?1:-1:s5(i),function(e,t,r,n){for(var i=-1,s=t2(tY((t-e)/(r||1)),0),o=eb(s);s--;)o[n?s:++i]=e,e+=r;return o}(t,n,i,e)}}function n3(e){return function(t,r){return\"string\"==typeof t&&\"string\"==typeof r||(t=s8(t),r=s8(r)),e(t,r)}}function n5(e,t,n,i,s,o,a,l,u,c){var d=8&t,h=d?a:r,f=d?r:a,p=d?o:r,g=d?r:o;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var m=[e,t,s,p,h,g,f,l,u,c],y=n.apply(r,m);return ix(e)&&iO(y,m),y.placeholder=i,iR(y,e,t)}function n6(e){var t=eE[e];return function(e,r){if(e=s8(e),(r=null==r?0:t3(s6(r),292))&&tX(e)){var n=(s7(e)+\"e\").split(\"e\");return+((n=(s7(t(n[0]+\"e\"+(+n[1]+r)))+\"e\").split(\"e\"))[0]+\"e\"+(+n[1]-r))}return t(e)}}var n4=rt&&1/tz(new rt([,-0]))[1]==o?function(e){return new rt(e)}:oq;function n8(e){return function(t){var r,n,i=iy(t);return i==m?tB(t):i==_?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}),n):th(e(t),function(e){return[e,t[e]]})}}function n9(e,t,i,o,a,l,u,c){var d=2&t;if(!d&&\"function\"!=typeof e)throw new eS(n);var h=o?o.length:0;if(h||(t&=-97,o=a=r),u=u===r?u:t2(s6(u),0),c=c===r?c:s6(c),h-=a?a.length:0,64&t){var f=o,p=a;o=a=r}var g=d?r:ia(e),m=[e,t,i,o,a,f,p,l,u,c];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,a=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(o||a){1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?nj(u,l,t[4]):l,e[4]=u?tU(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?nB(u,l,t[6]):l,e[6]=u?tU(e[5],s):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(m,g),e=m[0],t=m[1],i=m[2],o=m[3],a=m[4],(c=m[9]=m[9]===r?d?0:e.length:t2(m[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(y=e,b=t,v=c,w=nK(y),N=function e(){for(var t=arguments.length,n=eb(t),i=t,s=iu(e);i--;)n[i]=arguments[i];var o=t<3&&n[0]!==s&&n[t-1]!==s?[]:tU(n,s);return(t-=o.length)<v?n5(y,b,nJ,e.placeholder,r,n,o,r,r,v-t):ts(this&&this!==e3&&this instanceof e?w:y,this,n)}):32!=t&&33!=t||a.length?N=nJ.apply(r,m):(_=e,E=t,A=i,x=o,k=1&E,S=nK(_),N=function e(){for(var t=-1,r=arguments.length,n=-1,i=x.length,s=eb(i+r),o=this&&this!==e3&&this instanceof e?S:_;++n<i;)s[n]=x[n];for(;r--;)s[n++]=arguments[++t];return ts(o,k?A:this,s)});else var y,b,v,w,_,E,A,x,k,S,$,C,P,I,O,N=($=e,C=t,P=i,I=1&C,O=nK($),function e(){return(this&&this!==e3&&this instanceof e?O:$).apply(I?P:this,arguments)});return iR((g?nf:iO)(N,m),e,t)}function n7(e,t,n,i){return e===r||sO(e,eP[n])&&!eN.call(i,n)?t:e}function ie(e,t,n,i,s,o){return sG(e)&&sG(t)&&(o.set(t,e),nn(e,t,r,ie,o),o.delete(t)),e}function it(e){return sY(e)?r:e}function ir(e,t,n,i,s,o){var a=1&n,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,p=2&n?new rE:r;for(o.set(e,t),o.set(t,e);++h<l;){var g=e[h],m=t[h];if(i)var y=a?i(m,g,h,t,e,o):i(g,m,h,e,t,o);if(y!==r){if(y)continue;f=!1;break}if(p){if(!tm(t,function(e,t){if(!tN(p,t)&&(g===e||s(g,e,n,i,o)))return p.push(t)})){f=!1;break}}else if(!(g===m||s(g,m,n,i,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function ii(e){return iM(iC(e,r,iV),e+\"\")}function is(e){return rZ(e,oh,ig)}function io(e){return rZ(e,of,im)}var ia=ri?function(e){return ri.get(e)}:oq;function il(e){for(var t=e.name+\"\",r=rs[t],n=eN.call(rs,t)?r.length:0;n--;){var i=r[n],s=i.func;if(null==s||s==e)return i.name}return t}function iu(e){return(eN.call(rp,\"placeholder\")?rp:e).placeholder}function ic(){var e=rp.iteratee||oB;return e=e===oB?r8:e,arguments.length?e(arguments[0],arguments[1]):e}function id(e,t){var r,n=e.__data__;return(\"string\"==(r=typeof t)||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==t:null===t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}function ih(e){for(var t=oh(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,i==i&&!sG(i)]}return t}function ip(e,t){var n=null==e?r:e[t];return r4(n)?n:r}var ig=tJ?function(e){return null==e?[]:tu(tJ(e=eA(e)),function(t){return e1.call(e,t)})}:oZ,im=tJ?function(e){for(var t=[];e;)tf(t,ig(e)),e=eV(e);return t}:oZ,iy=rJ;function ib(e,t,r){t=nO(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=ij(t[n]);if(!(s=null!=e&&r(e,o)))break;e=e[o]}return s||++n!=i?s:!!(i=null==e?0:e.length)&&sH(i)&&i_(o,i)&&(sT(e)||sR(e))}function iv(e){return\"function\"!=typeof e.constructor||iS(e)?{}:rg(eV(e))}function iw(e){return sT(e)||sR(e)||!!(e5&&e&&e[e5])}function i_(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&(\"number\"==r||\"symbol\"!=r&&ed.test(e))&&e>-1&&e%1==0&&e<t}function iE(e,t,r){if(!sG(r))return!1;var n=typeof t;return(\"number\"==n?!!(sL(r)&&i_(t,r.length)):\"string\"==n&&t in r)&&sO(r[t],e)}function iA(e,t){if(sT(e))return!1;var r=typeof e;return!!(\"number\"==r||\"symbol\"==r||\"boolean\"==r||null==e||sX(e))||W.test(e)||!V.test(e)||null!=t&&e in eA(t)}function ix(e){var t=il(e),r=rp[t];if(\"function\"!=typeof r||!(t in rb.prototype))return!1;if(e===r)return!0;var n=ia(r);return!!n&&e===n[0]}(t9&&iy(new t9(new ArrayBuffer(1)))!=S||t7&&iy(new t7)!=m||re&&iy(re.resolve())!=v||rt&&iy(new rt)!=_||rr&&iy(new rr)!=x)&&(iy=function(e){var t=rJ(e),n=t==b?e.constructor:r,i=n?iB(n):\"\";if(i)switch(i){case ro:return S;case ra:return m;case rl:return v;case ru:return _;case rc:return x}return t});var ik=eI?sz:oJ;function iS(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||eP)}function i$(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in eA(n))}}function iC(e,t,n){return t=t2(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=t2(r.length-t,0),o=eb(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=eb(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),ts(e,this,a)}}function iP(e,t){return t.length<2?e:rY(e,ng(t,0,-1))}function iI(e,t){if(!(\"constructor\"===t&&\"function\"==typeof e[t])&&\"__proto__\"!=t)return e[t]}var iO=iT(nf),iN=tK||function(e,t){return e3.setTimeout(e,t)},iM=iT(np);function iR(e,t,r){var n,i,s=t+\"\";return iM(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?\"& \":\"\")+t[n],t=t.join(r>2?\", \":\" \"),e.replace(X,`{\n/* [wrapped with `+t+`] */\n`)}(s,(n=(i=s.match(ee))?i[1].split(et):[],ta(l,function(e){var t=\"_.\"+e[0];r&e[1]&&!tc(n,t)&&n.push(t)}),n.sort())))}function iT(e){var t=0,n=0;return function(){var i=t5(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function iD(e,t){var n=-1,i=e.length,s=i-1;for(t=t===r?i:t;++n<t;){var o=nu(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var iL=(em=(eg=sk(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(K,function(e,r,n,i){t.push(n?i.replace(ei,\"$1\"):r||e)}),t},function(e){return 500===em.size&&em.clear(),e})).cache,eg);function ij(e){if(\"string\"==typeof e||sX(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-o?\"-0\":t}function iB(e){if(null!=e){try{return eO.call(e)}catch{}try{return e+\"\"}catch{}}return\"\"}function iF(e){if(e instanceof rb)return e.clone();var t=new ry(e.__wrapped__,e.__chain__);return t.__actions__=nF(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iU=nd(function(e,t){return sj(e)?rL(e,rq(t,1,sj,!0)):[]}),iz=nd(function(e,t){var n=iJ(t);return sj(n)&&(n=r),sj(e)?rL(e,rq(t,1,sj,!0),ic(n,2)):[]}),iq=nd(function(e,t){var n=iJ(t);return sj(n)&&(n=r),sj(e)?rL(e,rq(t,1,sj,!0),r,n):[]});function iH(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:s6(r);return i<0&&(i=t2(n+i,0)),tv(e,ic(t,3),i)}function iG(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var s=i-1;return n!==r&&(s=s6(n),s=n<0?t2(i+s,0):t3(s,i-1)),tv(e,ic(t,3),s,!0)}function iV(e){return(null==e?0:e.length)?rq(e,1):[]}function iW(e){return e&&e.length?e[0]:r}var iK=nd(function(e){var t=th(e,nP);return t.length&&t[0]===e[0]?r1(t):[]}),iY=nd(function(e){var t=iJ(e),n=th(e,nP);return t===iJ(n)?t=r:n.pop(),n.length&&n[0]===e[0]?r1(n,ic(t,2)):[]}),iZ=nd(function(e){var t=iJ(e),n=th(e,nP);return(t=\"function\"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?r1(n,r,t):[]});function iJ(e){var t=null==e?0:e.length;return t?e[t-1]:r}var iQ=nd(iX);function iX(e,t){return e&&e.length&&t&&t.length?na(e,t):e}var i0=ii(function(e,t){var r=null==e?0:e.length,n=rN(e,t);return nl(e,th(t,function(e){return i_(e,r)?+e:e}).sort(nL)),n});function i1(e){return null==e?e:t8.call(e)}var i2=nd(function(e){return nE(rq(e,1,sj,!0))}),i3=nd(function(e){var t=iJ(e);return sj(t)&&(t=r),nE(rq(e,1,sj,!0),ic(t,2))}),i5=nd(function(e){var t=iJ(e);return t=\"function\"==typeof t?t:r,nE(rq(e,1,sj,!0),r,t)});function i6(e){if(!(e&&e.length))return[];var t=0;return e=tu(e,function(e){if(sj(e))return t=t2(e.length,t),!0}),tC(t,function(t){return th(e,tx(t))})}function i4(e,t){if(!(e&&e.length))return[];var n=i6(e);return null==t?n:th(n,function(e){return ts(t,r,e)})}var i8=nd(function(e,t){return sj(e)?rL(e,t):[]}),i9=nd(function(e){return n$(tu(e,sj))}),i7=nd(function(e){var t=iJ(e);return sj(t)&&(t=r),n$(tu(e,sj),ic(t,2))}),se=nd(function(e){var t=iJ(e);return t=\"function\"==typeof t?t:r,n$(tu(e,sj),r,t)}),st=nd(i6),sr=nd(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=\"function\"==typeof n?(e.pop(),n):r,i4(e,n)});function sn(e){var t=rp(e);return t.__chain__=!0,t}function si(e,t){return t(e)}var ss=ii(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,s=function(t){return rN(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rb&&i_(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:si,args:[s],thisArg:r}),new ry(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(s)}),so=nz(function(e,t,r){eN.call(e,r)?++e[r]:rO(e,r,1)}),sa=nY(iH),sl=nY(iG);function su(e,t){return(sT(e)?ta:rj)(e,ic(t,3))}function sc(e,t){return(sT(e)?function(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}:rB)(e,ic(t,3))}var sd=nz(function(e,t,r){eN.call(e,r)?e[r].push(t):rO(e,r,[t])}),sh=nd(function(e,t,r){var n=-1,i=\"function\"==typeof t,s=sL(e)?eb(e.length):[];return rj(e,function(e){s[++n]=i?ts(t,e,r):r2(e,t,r)}),s}),sf=nz(function(e,t,r){rO(e,r,t)});function sp(e,t){return(sT(e)?th:ne)(e,ic(t,3))}var sg=nz(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),sm=nd(function(e,t){if(null==e)return[];var r=t.length;return r>1&&iE(e,t[0],t[1])?t=[]:r>2&&iE(t[0],t[1],t[2])&&(t=[t[0]]),ns(e,rq(t,1),[])}),sy=tk||function(){return e3.Date.now()};function sb(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,n9(e,128,r,r,r,r,t)}function sv(e,t){var i;if(\"function\"!=typeof t)throw new eS(n);return e=s6(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var sw=nd(function(e,t,r){var n=1;if(r.length){var i=tU(r,iu(sw));n|=32}return n9(e,n,t,r,i)}),s_=nd(function(e,t,r){var n=3;if(r.length){var i=tU(r,iu(s_));n|=32}return n9(t,n,e,r,i)});function sE(e,t,i){var s,o,a,l,u,c,d=0,h=!1,f=!1,p=!0;if(\"function\"!=typeof e)throw new eS(n);function g(t){var n=s,i=o;return s=o=r,d=t,l=e.apply(i,n)}function m(e){var n=e-c,i=e-d;return c===r||n>=t||n<0||f&&i>=a}function y(){var e,r,n,i=sy();if(m(i))return b(i);u=iN(y,(e=i-c,r=i-d,n=t-e,f?t3(n,a-r):n))}function b(e){return u=r,p&&s?g(e):(s=o=r,l)}function v(){var e,n=sy(),i=m(n);if(s=arguments,o=this,c=n,i){if(u===r)return d=e=c,u=iN(y,t),h?g(e):l;if(f)return nM(u),u=iN(y,t),g(c)}return u===r&&(u=iN(y,t)),l}return t=s8(t)||0,sG(i)&&(h=!!i.leading,a=(f=\"maxWait\"in i)?t2(s8(i.maxWait)||0,t):a,p=\"trailing\"in i?!!i.trailing:p),v.cancel=function(){u!==r&&nM(u),d=0,s=c=o=u=r},v.flush=function(){return u===r?l:b(sy())},v}var sA=nd(function(e,t){return rD(e,1,t)}),sx=nd(function(e,t,r){return rD(e,s8(t)||0,r)});function sk(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new eS(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(sk.Cache||r_),r}function sS(e){if(\"function\"!=typeof e)throw new eS(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}sk.Cache=r_;var s$=nd(function(e,t){var r=(t=1==t.length&&sT(t[0])?th(t[0],tI(ic())):th(rq(t,1),tI(ic()))).length;return nd(function(n){for(var i=-1,s=t3(n.length,r);++i<s;)n[i]=t[i].call(this,n[i]);return ts(e,this,n)})}),sC=nd(function(e,t){var n=tU(t,iu(sC));return n9(e,32,r,t,n)}),sP=nd(function(e,t){var n=tU(t,iu(sP));return n9(e,64,r,t,n)}),sI=ii(function(e,t){return n9(e,256,r,r,r,t)});function sO(e,t){return e===t||e!=e&&t!=t}var sN=n3(rQ),sM=n3(function(e,t){return e>=t}),sR=r3(function(){return arguments}())?r3:function(e){return sV(e)&&eN.call(e,\"callee\")&&!e1.call(e,\"callee\")},sT=eb.isArray,sD=e7?tI(e7):function(e){return sV(e)&&rJ(e)==k};function sL(e){return null!=e&&sH(e.length)&&!sz(e)}function sj(e){return sV(e)&&sL(e)}var sB=tQ||oJ,sF=te?tI(te):function(e){return sV(e)&&rJ(e)==h};function sU(e){if(!sV(e))return!1;var t=rJ(e);return t==f||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!sY(e)}function sz(e){if(!sG(e))return!1;var t=rJ(e);return t==p||t==g||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function sq(e){return\"number\"==typeof e&&e==s6(e)}function sH(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function sG(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function sV(e){return null!=e&&\"object\"==typeof e}var sW=tt?tI(tt):function(e){return sV(e)&&iy(e)==m};function sK(e){return\"number\"==typeof e||sV(e)&&rJ(e)==y}function sY(e){if(!sV(e)||rJ(e)!=b)return!1;var t=eV(e);if(null===t)return!0;var r=eN.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof r&&r instanceof r&&eO.call(r)==eD}var sZ=tr?tI(tr):function(e){return sV(e)&&rJ(e)==w},sJ=tn?tI(tn):function(e){return sV(e)&&iy(e)==_};function sQ(e){return\"string\"==typeof e||!sT(e)&&sV(e)&&rJ(e)==E}function sX(e){return\"symbol\"==typeof e||sV(e)&&rJ(e)==A}var s0=ti?tI(ti):function(e){return sV(e)&&sH(e.length)&&!!eZ[rJ(e)]},s1=n3(r7),s2=n3(function(e,t){return e<=t});function s3(e){if(!e)return[];if(sL(e))return sQ(e)?tH(e):nF(e);if(e6&&e[e6])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e6]());var t=iy(e);return(t==m?tB:t==_?tz:o_)(e)}function s5(e){return e?(e=s8(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function s6(e){var t=s5(e),r=t%1;return t==t?r?t-r:t:0}function s4(e){return e?rM(s6(e),0,4294967295):0}function s8(e){if(\"number\"==typeof e)return e;if(sX(e))return a;if(sG(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=sG(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=tP(e);var r=el.test(e);return r||ec.test(e)?e0(e.slice(2),r?2:8):ea.test(e)?a:+e}function s9(e){return nU(e,of(e))}function s7(e){return null==e?\"\":n_(e)}var oe=nq(function(e,t){if(iS(t)||sL(t)){nU(t,oh(t),e);return}for(var r in t)eN.call(t,r)&&r$(e,r,t[r])}),ot=nq(function(e,t){nU(t,of(t),e)}),or=nq(function(e,t,r,n){nU(t,of(t),e,n)}),on=nq(function(e,t,r,n){nU(t,oh(t),e,n)}),oi=ii(rN),os=nd(function(e,t){e=eA(e);var n=-1,i=t.length,s=i>2?t[2]:r;for(s&&iE(t[0],t[1],s)&&(i=1);++n<i;)for(var o=t[n],a=of(o),l=-1,u=a.length;++l<u;){var c=a[l],d=e[c];(d===r||sO(d,eP[c])&&!eN.call(e,c))&&(e[c]=o[c])}return e}),oo=nd(function(e){return e.push(r,ie),ts(og,r,e)});function oa(e,t,n){var i=null==e?r:rY(e,t);return i===r?n:i}function ol(e,t){return null!=e&&ib(e,t,r0)}var ou=nQ(function(e,t,r){null!=t&&\"function\"!=typeof t.toString&&(t=eT.call(t)),e[t]=r},oT(oj)),oc=nQ(function(e,t,r){null!=t&&\"function\"!=typeof t.toString&&(t=eT.call(t)),eN.call(e,t)?e[t].push(r):e[t]=[r]},ic),od=nd(r2);function oh(e){return sL(e)?rx(e):r9(e)}function of(e){return sL(e)?rx(e,!0):function(e){if(!sG(e))return function(e){var t=[];if(null!=e)for(var r in eA(e))t.push(r);return t}(e);var t=iS(e),r=[];for(var n in e)\"constructor\"==n&&(t||!eN.call(e,n))||r.push(n);return r}(e)}var op=nq(function(e,t,r){nn(e,t,r)}),og=nq(function(e,t,r,n){nn(e,t,r,n)}),om=ii(function(e,t){var r={};if(null==e)return r;var n=!1;t=th(t,function(t){return t=nO(t,e),n||(n=t.length>1),t}),nU(e,io(e),r),n&&(r=rR(r,7,it));for(var i=t.length;i--;)nA(r,t[i]);return r}),oy=ii(function(e,t){return null==e?{}:no(e,t,function(t,r){return ol(e,r)})});function ob(e,t){if(null==e)return{};var r=th(io(e),function(e){return[e]});return t=ic(t),no(e,r,function(e,r){return t(e,r[0])})}var ov=n8(oh),ow=n8(of);function o_(e){return null==e?[]:tO(e,oh(e))}var oE=nW(function(e,t,r){return t=t.toLowerCase(),e+(r?oA(t):t)});function oA(e){return oO(s7(e).toLowerCase())}function ox(e){return(e=s7(e))&&e.replace(eh,tT).replace(eq,\"\")}var ok=nW(function(e,t,r){return e+(r?\"-\":\"\")+t.toLowerCase()}),oS=nW(function(e,t,r){return e+(r?\" \":\"\")+t.toLowerCase()}),o$=nV(\"toLowerCase\"),oC=nW(function(e,t,r){return e+(r?\"_\":\"\")+t.toLowerCase()}),oP=nW(function(e,t,r){return e+(r?\" \":\"\")+oO(t)}),oI=nW(function(e,t,r){return e+(r?\" \":\"\")+t.toUpperCase()}),oO=nV(\"toUpperCase\");function oN(e,t,n){var i;return e=s7(e),(t=n?r:t)===r?(i=e,eW.test(i))?e.match(eG)||[]:e.match(er)||[]:e.match(t)||[]}var oM=nd(function(e,t){try{return ts(e,r,t)}catch(e){return sU(e)?e:new ew(e)}}),oR=ii(function(e,t){return ta(t,function(t){rO(e,t=ij(t),sw(e[t],e))}),e});function oT(e){return function(){return e}}var oD=nZ(),oL=nZ(!0);function oj(e){return e}function oB(e){return r8(\"function\"==typeof e?e:rR(e,1))}var oF=nd(function(e,t){return function(r){return r2(r,e,t)}}),oU=nd(function(e,t){return function(r){return r2(e,r,t)}});function oz(e,t,r){var n=oh(t),i=rK(t,n);null!=r||sG(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=rK(t,oh(t)));var s=!(sG(r)&&\"chain\"in r)||!!r.chain,o=sz(e);return ta(i,function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__);return(r.__actions__=nF(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tf([this.value()],arguments))})}),e}function oq(){}var oH=n0(th),oG=n0(tl),oV=n0(tm);function oW(e){return iA(e)?tx(ij(e)):function(t){return rY(t,e)}}var oK=n2(),oY=n2(!0);function oZ(){return[]}function oJ(){return!1}var oQ=nX(function(e,t){return e+t},0),oX=n6(\"ceil\"),o0=nX(function(e,t){return e/t},1),o1=n6(\"floor\"),o2=nX(function(e,t){return e*t},1),o3=n6(\"round\"),o5=nX(function(e,t){return e-t},0);return rp.after=function(e,t){if(\"function\"!=typeof t)throw new eS(n);return e=s6(e),function(){if(--e<1)return t.apply(this,arguments)}},rp.ary=sb,rp.assign=oe,rp.assignIn=ot,rp.assignInWith=or,rp.assignWith=on,rp.at=oi,rp.before=sv,rp.bind=sw,rp.bindAll=oR,rp.bindKey=s_,rp.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return sT(e)?e:[e]},rp.chain=sn,rp.chunk=function(e,t,n){t=(n?iE(e,t,n):t===r)?1:t2(s6(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,o=0,a=eb(tY(i/t));s<i;)a[o++]=ng(e,s,s+=t);return a},rp.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var s=e[t];s&&(i[n++]=s)}return i},rp.concat=function(){var e=arguments.length;if(!e)return[];for(var t=eb(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return tf(sT(r)?nF(r):[r],rq(t,1))},rp.cond=function(e){var t=null==e?0:e.length,r=ic();return e=t?th(e,function(e){if(\"function\"!=typeof e[1])throw new eS(n);return[r(e[0]),e[1]]}):[],nd(function(r){for(var n=-1;++n<t;){var i=e[n];if(ts(i[0],this,r))return ts(i[1],this,r)}})},rp.conforms=function(e){var t,r;return r=oh(t=rR(e,1)),function(e){return rT(e,t,r)}},rp.constant=oT,rp.countBy=so,rp.create=function(e,t){var r=rg(e);return null==t?r:rI(r,t)},rp.curry=function e(t,n,i){n=i?r:n;var s=n9(t,8,r,r,r,r,r,n);return s.placeholder=e.placeholder,s},rp.curryRight=function e(t,n,i){n=i?r:n;var s=n9(t,16,r,r,r,r,r,n);return s.placeholder=e.placeholder,s},rp.debounce=sE,rp.defaults=os,rp.defaultsDeep=oo,rp.defer=sA,rp.delay=sx,rp.difference=iU,rp.differenceBy=iz,rp.differenceWith=iq,rp.drop=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=n||t===r?1:s6(t))<0?0:t,i):[]},rp.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,0,(t=i-(t=n||t===r?1:s6(t)))<0?0:t):[]},rp.dropRightWhile=function(e,t){return e&&e.length?nk(e,ic(t,3),!0,!0):[]},rp.dropWhile=function(e,t){return e&&e.length?nk(e,ic(t,3),!0):[]},rp.fill=function(e,t,n,i){var s=null==e?0:e.length;return s?(n&&\"number\"!=typeof n&&iE(e,t,n)&&(n=0,i=s),function(e,t,n,i){var s=e.length;for((n=s6(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:s6(i))<0&&(i+=s),i=n>i?0:s4(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},rp.filter=function(e,t){return(sT(e)?tu:rz)(e,ic(t,3))},rp.flatMap=function(e,t){return rq(sp(e,t),1)},rp.flatMapDeep=function(e,t){return rq(sp(e,t),o)},rp.flatMapDepth=function(e,t,n){return n=n===r?1:s6(n),rq(sp(e,t),n)},rp.flatten=iV,rp.flattenDeep=function(e){return(null==e?0:e.length)?rq(e,o):[]},rp.flattenDepth=function(e,t){return(null==e?0:e.length)?rq(e,t=t===r?1:s6(t)):[]},rp.flip=function(e){return n9(e,512)},rp.flow=oD,rp.flowRight=oL,rp.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},rp.functions=function(e){return null==e?[]:rK(e,oh(e))},rp.functionsIn=function(e){return null==e?[]:rK(e,of(e))},rp.groupBy=sd,rp.initial=function(e){return(null==e?0:e.length)?ng(e,0,-1):[]},rp.intersection=iK,rp.intersectionBy=iY,rp.intersectionWith=iZ,rp.invert=ou,rp.invertBy=oc,rp.invokeMap=sh,rp.iteratee=oB,rp.keyBy=sf,rp.keys=oh,rp.keysIn=of,rp.map=sp,rp.mapKeys=function(e,t){var r={};return t=ic(t,3),rV(e,function(e,n,i){rO(r,t(e,n,i),e)}),r},rp.mapValues=function(e,t){var r={};return t=ic(t,3),rV(e,function(e,n,i){rO(r,n,t(e,n,i))}),r},rp.matches=function(e){return nt(rR(e,1))},rp.matchesProperty=function(e,t){return nr(e,rR(t,1))},rp.memoize=sk,rp.merge=op,rp.mergeWith=og,rp.method=oF,rp.methodOf=oU,rp.mixin=oz,rp.negate=sS,rp.nthArg=function(e){return e=s6(e),nd(function(t){return ni(t,e)})},rp.omit=om,rp.omitBy=function(e,t){return ob(e,sS(ic(t)))},rp.once=function(e){return sv(2,e)},rp.orderBy=function(e,t,n,i){return null==e?[]:(sT(t)||(t=null==t?[]:[t]),sT(n=i?r:n)||(n=null==n?[]:[n]),ns(e,t,n))},rp.over=oH,rp.overArgs=s$,rp.overEvery=oG,rp.overSome=oV,rp.partial=sC,rp.partialRight=sP,rp.partition=sg,rp.pick=oy,rp.pickBy=ob,rp.property=oW,rp.propertyOf=function(e){return function(t){return null==e?r:rY(e,t)}},rp.pull=iQ,rp.pullAll=iX,rp.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?na(e,t,ic(r,2)):e},rp.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?na(e,t,r,n):e},rp.pullAt=i0,rp.range=oK,rp.rangeRight=oY,rp.rearg=sI,rp.reject=function(e,t){return(sT(e)?tu:rz)(e,sS(ic(t,3)))},rp.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],s=e.length;for(t=ic(t,3);++n<s;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return nl(e,i),r},rp.rest=function(e,t){if(\"function\"!=typeof e)throw new eS(n);return nd(e,t=t===r?t:s6(t))},rp.reverse=i1,rp.sampleSize=function(e,t,n){return t=(n?iE(e,t,n):t===r)?1:s6(t),(sT(e)?function(e,t){return iD(nF(e),rM(t,0,e.length))}:function(e,t){var r=o_(e);return iD(r,rM(t,0,r.length))})(e,t)},rp.set=function(e,t,r){return null==e?e:nh(e,t,r)},rp.setWith=function(e,t,n,i){return i=\"function\"==typeof i?i:r,null==e?e:nh(e,t,n,i)},rp.shuffle=function(e){return(sT(e)?function(e){return iD(nF(e))}:function(e){return iD(o_(e))})(e)},rp.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&\"number\"!=typeof n&&iE(e,t,n)?(t=0,n=i):(t=null==t?0:s6(t),n=n===r?i:s6(n)),ng(e,t,n)):[]},rp.sortBy=sm,rp.sortedUniq=function(e){return e&&e.length?nv(e):[]},rp.sortedUniqBy=function(e,t){return e&&e.length?nv(e,ic(t,2)):[]},rp.split=function(e,t,n){return n&&\"number\"!=typeof n&&iE(e,t,n)&&(t=n=r),(n=n===r?4294967295:n>>>0)?(e=s7(e))&&(\"string\"==typeof t||null!=t&&!sZ(t))&&!(t=n_(t))&&tj(e)?nN(tH(e),0,n):e.split(t,n):[]},rp.spread=function(e,t){if(\"function\"!=typeof e)throw new eS(n);return t=null==t?0:t2(s6(t),0),nd(function(r){var n=r[t],i=nN(r,0,t);return n&&tf(i,n),ts(e,this,i)})},rp.tail=function(e){var t=null==e?0:e.length;return t?ng(e,1,t):[]},rp.take=function(e,t,n){return e&&e.length?ng(e,0,(t=n||t===r?1:s6(t))<0?0:t):[]},rp.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=i-(t=n||t===r?1:s6(t)))<0?0:t,i):[]},rp.takeRightWhile=function(e,t){return e&&e.length?nk(e,ic(t,3),!1,!0):[]},rp.takeWhile=function(e,t){return e&&e.length?nk(e,ic(t,3)):[]},rp.tap=function(e,t){return t(e),e},rp.throttle=function(e,t,r){var i=!0,s=!0;if(\"function\"!=typeof e)throw new eS(n);return sG(r)&&(i=\"leading\"in r?!!r.leading:i,s=\"trailing\"in r?!!r.trailing:s),sE(e,t,{leading:i,maxWait:t,trailing:s})},rp.thru=si,rp.toArray=s3,rp.toPairs=ov,rp.toPairsIn=ow,rp.toPath=function(e){return sT(e)?th(e,ij):sX(e)?[e]:nF(iL(s7(e)))},rp.toPlainObject=s9,rp.transform=function(e,t,r){var n=sT(e),i=n||sB(e)||s0(e);if(t=ic(t,4),null==r){var s=e&&e.constructor;r=i?n?new s:[]:sG(e)&&sz(s)?rg(eV(e)):{}}return(i?ta:rV)(e,function(e,n,i){return t(r,e,n,i)}),r},rp.unary=function(e){return sb(e,1)},rp.union=i2,rp.unionBy=i3,rp.unionWith=i5,rp.uniq=function(e){return e&&e.length?nE(e):[]},rp.uniqBy=function(e,t){return e&&e.length?nE(e,ic(t,2)):[]},rp.uniqWith=function(e,t){return t=\"function\"==typeof t?t:r,e&&e.length?nE(e,r,t):[]},rp.unset=function(e,t){return null==e||nA(e,t)},rp.unzip=i6,rp.unzipWith=i4,rp.update=function(e,t,r){return null==e?e:nx(e,t,nI(r))},rp.updateWith=function(e,t,n,i){return i=\"function\"==typeof i?i:r,null==e?e:nx(e,t,nI(n),i)},rp.values=o_,rp.valuesIn=function(e){return null==e?[]:tO(e,of(e))},rp.without=i8,rp.words=oN,rp.wrap=function(e,t){return sC(nI(t),e)},rp.xor=i9,rp.xorBy=i7,rp.xorWith=se,rp.zip=st,rp.zipObject=function(e,t){return nC(e||[],t||[],r$)},rp.zipObjectDeep=function(e,t){return nC(e||[],t||[],nh)},rp.zipWith=sr,rp.entries=ov,rp.entriesIn=ow,rp.extend=ot,rp.extendWith=or,oz(rp,rp),rp.add=oQ,rp.attempt=oM,rp.camelCase=oE,rp.capitalize=oA,rp.ceil=oX,rp.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=s8(n))==n?n:0),t!==r&&(t=(t=s8(t))==t?t:0),rM(s8(e),t,n)},rp.clone=function(e){return rR(e,4)},rp.cloneDeep=function(e){return rR(e,5)},rp.cloneDeepWith=function(e,t){return rR(e,5,t=\"function\"==typeof t?t:r)},rp.cloneWith=function(e,t){return rR(e,4,t=\"function\"==typeof t?t:r)},rp.conformsTo=function(e,t){return null==t||rT(e,t,oh(t))},rp.deburr=ox,rp.defaultTo=function(e,t){return null==e||e!=e?t:e},rp.divide=o0,rp.endsWith=function(e,t,n){e=s7(e),t=n_(t);var i=e.length,s=n=n===r?i:rM(s6(n),0,i);return(n-=t.length)>=0&&e.slice(n,s)==t},rp.eq=sO,rp.escape=function(e){return(e=s7(e))&&z.test(e)?e.replace(F,tD):e},rp.escapeRegExp=function(e){return(e=s7(e))&&Z.test(e)?e.replace(Y,\"\\\\$&\"):e},rp.every=function(e,t,n){var i=sT(e)?tl:rF;return n&&iE(e,t,n)&&(t=r),i(e,ic(t,3))},rp.find=sa,rp.findIndex=iH,rp.findKey=function(e,t){return tb(e,ic(t,3),rV)},rp.findLast=sl,rp.findLastIndex=iG,rp.findLastKey=function(e,t){return tb(e,ic(t,3),rW)},rp.floor=o1,rp.forEach=su,rp.forEachRight=sc,rp.forIn=function(e,t){return null==e?e:rH(e,ic(t,3),of)},rp.forInRight=function(e,t){return null==e?e:rG(e,ic(t,3),of)},rp.forOwn=function(e,t){return e&&rV(e,ic(t,3))},rp.forOwnRight=function(e,t){return e&&rW(e,ic(t,3))},rp.get=oa,rp.gt=sN,rp.gte=sM,rp.has=function(e,t){return null!=e&&ib(e,t,rX)},rp.hasIn=ol,rp.head=iW,rp.identity=oj,rp.includes=function(e,t,r,n){e=sL(e)?e:o_(e),r=r&&!n?s6(r):0;var i=e.length;return r<0&&(r=t2(i+r,0)),sQ(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tw(e,t,r)>-1},rp.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:s6(r);return i<0&&(i=t2(n+i,0)),tw(e,t,i)},rp.inRange=function(e,t,n){var i,s,o;return t=s5(t),n===r?(n=t,t=0):n=s5(n),(i=e=s8(e))>=t3(s=t,o=n)&&i<t2(s,o)},rp.invoke=od,rp.isArguments=sR,rp.isArray=sT,rp.isArrayBuffer=sD,rp.isArrayLike=sL,rp.isArrayLikeObject=sj,rp.isBoolean=function(e){return!0===e||!1===e||sV(e)&&rJ(e)==d},rp.isBuffer=sB,rp.isDate=sF,rp.isElement=function(e){return sV(e)&&1===e.nodeType&&!sY(e)},rp.isEmpty=function(e){if(null==e)return!0;if(sL(e)&&(sT(e)||\"string\"==typeof e||\"function\"==typeof e.splice||sB(e)||s0(e)||sR(e)))return!e.length;var t=iy(e);if(t==m||t==_)return!e.size;if(iS(e))return!r9(e).length;for(var r in e)if(eN.call(e,r))return!1;return!0},rp.isEqual=function(e,t){return r5(e,t)},rp.isEqualWith=function(e,t,n){var i=(n=\"function\"==typeof n?n:r)?n(e,t):r;return i===r?r5(e,t,r,n):!!i},rp.isError=sU,rp.isFinite=function(e){return\"number\"==typeof e&&tX(e)},rp.isFunction=sz,rp.isInteger=sq,rp.isLength=sH,rp.isMap=sW,rp.isMatch=function(e,t){return e===t||r6(e,t,ih(t))},rp.isMatchWith=function(e,t,n){return n=\"function\"==typeof n?n:r,r6(e,t,ih(t),n)},rp.isNaN=function(e){return sK(e)&&e!=+e},rp.isNative=function(e){if(ik(e))throw new ew(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return r4(e)},rp.isNil=function(e){return null==e},rp.isNull=function(e){return null===e},rp.isNumber=sK,rp.isObject=sG,rp.isObjectLike=sV,rp.isPlainObject=sY,rp.isRegExp=sZ,rp.isSafeInteger=function(e){return sq(e)&&e>=-9007199254740991&&e<=9007199254740991},rp.isSet=sJ,rp.isString=sQ,rp.isSymbol=sX,rp.isTypedArray=s0,rp.isUndefined=function(e){return e===r},rp.isWeakMap=function(e){return sV(e)&&iy(e)==x},rp.isWeakSet=function(e){return sV(e)&&\"[object WeakSet]\"==rJ(e)},rp.join=function(e,t){return null==e?\"\":t0.call(e,t)},rp.kebabCase=ok,rp.last=iJ,rp.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var s=i;return n!==r&&(s=(s=s6(n))<0?t2(i+s,0):t3(s,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,s):tv(e,tE,s,!0)},rp.lowerCase=oS,rp.lowerFirst=o$,rp.lt=s1,rp.lte=s2,rp.max=function(e){return e&&e.length?rU(e,oj,rQ):r},rp.maxBy=function(e,t){return e&&e.length?rU(e,ic(t,2),rQ):r},rp.mean=function(e){return tA(e,oj)},rp.meanBy=function(e,t){return tA(e,ic(t,2))},rp.min=function(e){return e&&e.length?rU(e,oj,r7):r},rp.minBy=function(e,t){return e&&e.length?rU(e,ic(t,2),r7):r},rp.stubArray=oZ,rp.stubFalse=oJ,rp.stubObject=function(){return{}},rp.stubString=function(){return\"\"},rp.stubTrue=function(){return!0},rp.multiply=o2,rp.nth=function(e,t){return e&&e.length?ni(e,s6(t)):r},rp.noConflict=function(){return e3._===this&&(e3._=eL),this},rp.noop=oq,rp.now=sy,rp.pad=function(e,t,r){e=s7(e);var n=(t=s6(t))?tq(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n1(tZ(i),r)+e+n1(tY(i),r)},rp.padEnd=function(e,t,r){e=s7(e);var n=(t=s6(t))?tq(e):0;return t&&n<t?e+n1(t-n,r):e},rp.padStart=function(e,t,r){e=s7(e);var n=(t=s6(t))?tq(e):0;return t&&n<t?n1(t-n,r)+e:e},rp.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t6(s7(e).replace(J,\"\"),t||0)},rp.random=function(e,t,n){if(n&&\"boolean\"!=typeof n&&iE(e,t,n)&&(t=n=r),n===r&&(\"boolean\"==typeof t?(n=t,t=r):\"boolean\"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=s5(e),t===r?(t=e,e=0):t=s5(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var s=t4();return t3(e+s*(t-e+eX(\"1e-\"+((s+\"\").length-1))),t)}return nu(e,t)},rp.reduce=function(e,t,r){var n=sT(e)?tp:tS,i=arguments.length<3;return n(e,ic(t,4),r,i,rj)},rp.reduceRight=function(e,t,r){var n=sT(e)?tg:tS,i=arguments.length<3;return n(e,ic(t,4),r,i,rB)},rp.repeat=function(e,t,n){return t=(n?iE(e,t,n):t===r)?1:s6(t),nc(s7(e),t)},rp.replace=function(){var e=arguments,t=s7(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rp.result=function(e,t,n){t=nO(t,e);var i=-1,s=t.length;for(s||(s=1,e=r);++i<s;){var o=null==e?r:e[ij(t[i])];o===r&&(i=s,o=n),e=sz(o)?o.call(e):o}return e},rp.round=o3,rp.runInContext=e,rp.sample=function(e){return(sT(e)?rk:function(e){return rk(o_(e))})(e)},rp.size=function(e){if(null==e)return 0;if(sL(e))return sQ(e)?tq(e):e.length;var t=iy(e);return t==m||t==_?e.size:r9(e).length},rp.snakeCase=oC,rp.some=function(e,t,n){var i=sT(e)?tm:nm;return n&&iE(e,t,n)&&(t=r),i(e,ic(t,3))},rp.sortedIndex=function(e,t){return ny(e,t)},rp.sortedIndexBy=function(e,t,r){return nb(e,t,ic(r,2))},rp.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ny(e,t);if(n<r&&sO(e[n],t))return n}return -1},rp.sortedLastIndex=function(e,t){return ny(e,t,!0)},rp.sortedLastIndexBy=function(e,t,r){return nb(e,t,ic(r,2),!0)},rp.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ny(e,t,!0)-1;if(sO(e[r],t))return r}return -1},rp.startCase=oP,rp.startsWith=function(e,t,r){return e=s7(e),r=null==r?0:rM(s6(r),0,e.length),t=n_(t),e.slice(r,r+t.length)==t},rp.subtract=o5,rp.sum=function(e){return e&&e.length?t$(e,oj):0},rp.sumBy=function(e,t){return e&&e.length?t$(e,ic(t,2)):0},rp.template=function(e,t,n){var i=rp.templateSettings;n&&iE(e,t,n)&&(t=r),e=s7(e),t=or({},t,i,n7);var s,o,a=or({},t.imports,i.imports,n7),l=oh(a),u=tO(a,l),c=0,d=t.interpolate||ef,h=\"__p += '\",f=ex((t.escape||ef).source+\"|\"+d.source+\"|\"+(d===G?es:ef).source+\"|\"+(t.evaluate||ef).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(eN.call(t,\"sourceURL\")?(t.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++eY+\"]\")+`\n`;e.replace(f,function(t,r,n,i,a,l){return n||(n=i),h+=e.slice(c,l).replace(ep,tL),r&&(s=!0,h+=`' +\n__e(`+r+`) +\n'`),a&&(o=!0,h+=`';\n`+a+`;\n__p += '`),n&&(h+=`' +\n((__t = (`+n+`)) == null ? '' : __t) +\n'`),c=l+t.length,t}),h+=`';\n`;var g=eN.call(t,\"variable\")&&t.variable;if(g){if(en.test(g))throw new ew(\"Invalid `variable` option passed into `_.template`\")}else h=`with (obj) {\n`+h+`\n}\n`;h=(o?h.replace(D,\"\"):h).replace(L,\"$1\").replace(j,\"$1;\"),h=\"function(\"+(g||\"obj\")+`) {\n`+(g?\"\":`obj || (obj = {});\n`)+\"var __t, __p = ''\"+(s?\", __e = _.escape\":\"\")+(o?`, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n`:`;\n`)+h+`return __p\n}`;var m=oM(function(){return e_(l,p+\"return \"+h).apply(r,u)});if(m.source=h,sU(m))throw m;return m},rp.times=function(e,t){if((e=s6(e))<1||e>9007199254740991)return[];var r=4294967295,n=t3(e,4294967295);t=ic(t),e-=4294967295;for(var i=tC(n,t);++r<e;)t(r);return i},rp.toFinite=s5,rp.toInteger=s6,rp.toLength=s4,rp.toLower=function(e){return s7(e).toLowerCase()},rp.toNumber=s8,rp.toSafeInteger=function(e){return e?rM(s6(e),-9007199254740991,9007199254740991):0===e?e:0},rp.toString=s7,rp.toUpper=function(e){return s7(e).toUpperCase()},rp.trim=function(e,t,n){if((e=s7(e))&&(n||t===r))return tP(e);if(!e||!(t=n_(t)))return e;var i=tH(e),s=tH(t),o=tM(i,s),a=tR(i,s)+1;return nN(i,o,a).join(\"\")},rp.trimEnd=function(e,t,n){if((e=s7(e))&&(n||t===r))return e.slice(0,tG(e)+1);if(!e||!(t=n_(t)))return e;var i=tH(e),s=tR(i,tH(t))+1;return nN(i,0,s).join(\"\")},rp.trimStart=function(e,t,n){if((e=s7(e))&&(n||t===r))return e.replace(J,\"\");if(!e||!(t=n_(t)))return e;var i=tH(e),s=tM(i,tH(t));return nN(i,s).join(\"\")},rp.truncate=function(e,t){var n=30,i=\"...\";if(sG(t)){var s=\"separator\"in t?t.separator:s;n=\"length\"in t?s6(t.length):n,i=\"omission\"in t?n_(t.omission):i}var o=(e=s7(e)).length;if(tj(e)){var a=tH(e);o=a.length}if(n>=o)return e;var l=n-tq(i);if(l<1)return i;var u=a?nN(a,0,l).join(\"\"):e.slice(0,l);if(s===r)return u+i;if(a&&(l+=u.length-l),sZ(s)){if(e.slice(l).search(s)){var c,d=u;for(s.global||(s=ex(s.source,s7(eo.exec(s))+\"g\")),s.lastIndex=0;c=s.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(n_(s),l)!=l){var f=u.lastIndexOf(s);f>-1&&(u=u.slice(0,f))}return u+i},rp.unescape=function(e){return(e=s7(e))&&U.test(e)?e.replace(B,tV):e},rp.uniqueId=function(e){var t=++eM;return s7(e)+t},rp.upperCase=oI,rp.upperFirst=oO,rp.each=su,rp.eachRight=sc,rp.first=iW,oz(rp,(ey={},rV(rp,function(e,t){eN.call(rp.prototype,t)||(ey[t]=e)}),ey),{chain:!1}),rp.VERSION=\"4.17.21\",ta([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){rp[e].placeholder=rp}),ta([\"drop\",\"take\"],function(e,t){rb.prototype[e]=function(n){n=n===r?1:t2(s6(n),0);var i=this.__filtered__&&!t?new rb(this):this.clone();return i.__filtered__?i.__takeCount__=t3(n,i.__takeCount__):i.__views__.push({size:t3(n,4294967295),type:e+(i.__dir__<0?\"Right\":\"\")}),i},rb.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),ta([\"filter\",\"map\",\"takeWhile\"],function(e,t){var r=t+1,n=1==r||3==r;rb.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ic(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),ta([\"head\",\"last\"],function(e,t){var r=\"take\"+(t?\"Right\":\"\");rb.prototype[e]=function(){return this[r](1).value()[0]}}),ta([\"initial\",\"tail\"],function(e,t){var r=\"drop\"+(t?\"\":\"Right\");rb.prototype[e]=function(){return this.__filtered__?new rb(this):this[r](1)}}),rb.prototype.compact=function(){return this.filter(oj)},rb.prototype.find=function(e){return this.filter(e).head()},rb.prototype.findLast=function(e){return this.reverse().find(e)},rb.prototype.invokeMap=nd(function(e,t){return\"function\"==typeof e?new rb(this):this.map(function(r){return r2(r,e,t)})}),rb.prototype.reject=function(e){return this.filter(sS(ic(e)))},rb.prototype.slice=function(e,t){e=s6(e);var n=this;return n.__filtered__&&(e>0||t<0)?new rb(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=s6(t))<0?n.dropRight(-t):n.take(t-e)),n)},rb.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rb.prototype.toArray=function(){return this.take(4294967295)},rV(rb.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=rp[i?\"take\"+(\"last\"==t?\"Right\":\"\"):t],o=i||/^find/.test(t);s&&(rp.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof rb,u=a[0],c=l||sT(t),d=function(e){var t=s.apply(rp,tf([e],a));return i&&h?t[0]:t};c&&n&&\"function\"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,g=l&&!f;if(!o&&c){t=g?t:new rb(this);var m=e.apply(t,a);return m.__actions__.push({func:si,args:[d],thisArg:r}),new ry(m,h)}return p&&g?e.apply(this,a):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),ta([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=e$[e],r=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",n=/^(?:pop|shift)$/.test(e);rp.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(sT(i)?i:[],e)}return this[r](function(r){return t.apply(sT(r)?r:[],e)})}}),rV(rb.prototype,function(e,t){var r=rp[t];if(r){var n=r.name+\"\";eN.call(rs,n)||(rs[n]=[]),rs[n].push({name:t,func:r})}}),rs[nJ(r,2).name]=[{name:\"wrapper\",func:r}],rb.prototype.clone=function(){var e=new rb(this.__wrapped__);return e.__actions__=nF(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nF(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nF(this.__views__),e},rb.prototype.reverse=function(){if(this.__filtered__){var e=new rb(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rb.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=sT(e),n=t<0,i=r?e.length:0,s=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var s=r[n],o=s.size;switch(s.type){case\"drop\":e+=o;break;case\"dropRight\":t-=o;break;case\"take\":t=t3(t,e+o);break;case\"takeRight\":e=t2(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,l=a-o,u=n?a:o-1,c=this.__iteratees__,d=c.length,h=0,f=t3(l,this.__takeCount__);if(!r||!n&&i==l&&f==l)return nS(e,this.__actions__);var p=[];e:for(;l--&&h<f;){u+=t;for(var g=-1,m=e[u];++g<d;){var y=c[g],b=y.iteratee,v=y.type,w=b(m);if(2==v)m=w;else if(!w){if(1==v)continue e;break e}}p[h++]=m}return p},rp.prototype.at=ss,rp.prototype.chain=function(){return sn(this)},rp.prototype.commit=function(){return new ry(this.value(),this.__chain__)},rp.prototype.next=function(){this.__values__===r&&(this.__values__=s3(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}},rp.prototype.plant=function(e){for(var t,n=this;n instanceof rm;){var i=iF(n);i.__index__=0,i.__values__=r,t?s.__wrapped__=i:t=i;var s=i;n=n.__wrapped__}return s.__wrapped__=e,t},rp.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rb){var t=e;return this.__actions__.length&&(t=new rb(this)),(t=t.reverse()).__actions__.push({func:si,args:[i1],thisArg:r}),new ry(t,this.__chain__)}return this.thru(i1)},rp.prototype.toJSON=rp.prototype.valueOf=rp.prototype.value=function(){return nS(this.__wrapped__,this.__actions__)},rp.prototype.first=rp.prototype.head,e6&&(rp.prototype[e6]=function(){return this}),rp}();e6?((e6.exports=tW)._=tW,e5._=tW):e3._=tW}).call(nP)}(nI,nI.exports);var nO=Object.defineProperty,nN=Object.defineProperties,nM=Object.getOwnPropertyDescriptors,nR=Object.getOwnPropertySymbols,nT=Object.prototype.hasOwnProperty,nD=Object.prototype.propertyIsEnumerable,nL=(e,t,r)=>t in e?nO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nj=(e,t)=>{for(var r in t||(t={}))nT.call(t,r)&&nL(e,r,t[r]);if(nR)for(var r of nR(t))nD.call(t,r)&&nL(e,r,t[r]);return e},nB=(e,t)=>nN(e,nM(t));function nF(e,t,r){var n;let i=(0,o.DQe)(e);return(null==(n=t.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function nU(e){return e.includes(\":\")?e.split(\":\")[1]:e}function nz(e){return e.map(e=>`${e.split(\":\")[0]}:${e.split(\":\")[1]}`)}function nq(e={},t={}){let r=nH(e),n=nH(t);return nI.exports.merge(r,n)}function nH(e){var t,r,n,i;let s={};if(!(0,o.L5o)(e))return s;for(let[a,l]of Object.entries(e)){let e=(0,o.gpE)(a)?[a]:l.chains,u=l.methods||[],c=l.events||[],d=l.rpcMap||{},h=(0,o.Maj)(a);s[h]=nB(nj(nj({},s[h]),l),{chains:(0,o.eGA)(e,null==(t=s[h])?void 0:t.chains),methods:(0,o.eGA)(u,null==(r=s[h])?void 0:r.methods),events:(0,o.eGA)(c,null==(n=s[h])?void 0:n.events),rpcMap:nj(nj({},d),null==(i=s[h])?void 0:i.rpcMap)})}return s}function nG(e){return e.includes(\":\")?e.split(\":\")[2]:e}function nV(e){let t={};for(let[r,n]of Object.entries(e)){let e=n.methods||[],i=n.events||[],s=n.accounts||[],a=(0,o.gpE)(r)?[r]:n.chains?n.chains:nz(n.accounts);t[r]={chains:a,methods:e,events:i,accounts:s}}return t}function nW(e){return\"number\"==typeof e?e:e.includes(\"0x\")?parseInt(e,16):isNaN(Number(e=e.includes(\":\")?e.split(\":\")[1]:e))?e:Number(e)}let nK={},nY=e=>nK[e],nZ=(e,t)=>{nK[e]=t};class nJ{constructor(e){this.name=\"polkadot\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}var nQ=Object.defineProperty,nX=Object.defineProperties,n0=Object.getOwnPropertyDescriptors,n1=Object.getOwnPropertySymbols,n2=Object.prototype.hasOwnProperty,n3=Object.prototype.propertyIsEnumerable,n5=(e,t,r)=>t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n6=(e,t)=>{for(var r in t||(t={}))n2.call(t,r)&&n5(e,r,t[r]);if(n1)for(var r of n1(t))n3.call(t,r)&&n5(e,r,t[r]);return e},n4=(e,t)=>nX(e,n0(t));class n8{constructor(e){this.name=\"eip155\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case\"eth_requestAccounts\":case\"eth_accounts\":return this.getAccounts();case\"wallet_switchEthereumChain\":return await this.handleSwitchChain(e);case\"eth_chainId\":return parseInt(this.getDefaultChain());case\"wallet_getCapabilities\":return await this.getCapabilities(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(nC,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}createHttpProvider(e,t){let r=t||nF(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=parseInt(nU(t));e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,r;let n=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:\"0x0\",i=parseInt(n=n.startsWith(\"0x\")?n:`0x${n}`,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else if(this.namespace.methods.includes(\"wallet_switchEthereumChain\"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`);else throw Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var t,r,n;let i=null==(r=null==(t=e.request)?void 0:t.params)?void 0:r[0];if(!i)throw Error(\"Missing address parameter in `wallet_getCapabilities` request\");let s=this.client.session.get(e.topic),o=(null==(n=s?.sessionProperties)?void 0:n.capabilities)||{};if(null!=o&&o[i])return o?.[i];let a=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:n4(n6({},s.sessionProperties||{}),{capabilities:n4(n6({},o||{}),{[i]:a})})})}catch(e){console.warn(\"Failed to update session with capabilities\",e)}return a}}class n9{constructor(e){this.name=\"solana\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class n7{constructor(e){this.name=\"cosmos\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class ie{constructor(e){this.name=\"cip34\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let r=this.getCardanoRPCUrl(t),n=nU(t);e[n]=this.createHttpProvider(n,r)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||this.getCardanoRPCUrl(e);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class it{constructor(e){this.name=\"elrond\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class ir{constructor(e){this.name=\"multiversx\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nU(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}class ii{constructor(e){this.name=\"near\",this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let r=t||nF(`${this.name}:${e}`,this.namespace);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(nC,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace);return typeof r>\"u\"?void 0:new e0(new nx(r,nY(\"disableProviderPing\")))}}class is{constructor(e){this.name=n$,this.namespace=e.namespace,this.events=nY(\"events\"),this.client=nY(\"client\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(nC,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error(\"ChainId not found\");return e.split(\":\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(\":\")[1]===this.chainId.toString()).map(e=>e.split(\":\")[2]))]:[]}createHttpProviders(){var e,t;let r={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach(e=>{let t=(0,o.DQe)(e);r[`${t.namespace}:${t.reference}`]=this.createHttpProvider(e)}),r}getHttpProvider(e){let t=this.httpProviders[e];if(typeof t>\"u\")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nF(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new e0(new nx(r,nY(\"disableProviderPing\")))}}var io=Object.defineProperty,ia=Object.defineProperties,il=Object.getOwnPropertyDescriptors,iu=Object.getOwnPropertySymbols,ic=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,ih=(e,t,r)=>t in e?io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ip=(e,t)=>{for(var r in t||(t={}))ic.call(t,r)&&ih(e,r,t[r]);if(iu)for(var r of iu(t))id.call(t,r)&&ih(e,r,t[r]);return e},ig=(e,t)=>ia(e,il(t));class im{constructor(e){this.events=new(s()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger=\"u\">typeof e?.logger&&\"string\"!=typeof e?.logger?e.logger:U()(ei({level:e?.logger||nk})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let t=new im(e);return await t.initialize(),t}async request(e,t,r){let[n,i]=this.validateChain(t);if(!this.session)throw Error(\"Please call connect() before request()\");return await this.getProvider(n).request({request:ip({},e),chainId:`${n}:${i}`,topic:this.session.topic,expiry:r})}sendAsync(e,t,r,n){let i=new Date().getTime();this.request(e,r,n).then(e=>t(null,eU(i,e))).catch(e=>t(e,void 0))}async enable(){if(!this.client)throw Error(\"Sign Client not initialized\");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw Error(\"Please call connect() before enable()\");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:(0,o.D6H)(\"USER_DISCONNECTED\")}),await this.cleanup()}async connect(e){if(!this.client)throw Error(\"Sign Client not initialized\");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e){if(!this.client)throw Error(\"Sign Client not initialized\");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:t,response:r}=await this.client.authenticate(e);t&&(this.uri=t,this.events.emit(\"display_uri\",t));let n=await r();if(this.session=n.session,this.session){let e=nV(this.session.namespaces);this.namespaces=nq(this.namespaces,e),this.persist(\"namespaces\",this.namespaces),this.onConnect()}return n}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw Error(\"Pairing aborted\");if(t>=this.maxPairingAttempts)throw Error(\"Max auto pairing attempts reached\");let{uri:r,approval:n}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit(\"display_uri\",r)),await n().then(e=>{this.session=e;let t=nV(e.namespaces);this.namespaces=nq(this.namespaces,t),this.persist(\"namespaces\",this.namespaces)}).catch(e=>{if(e.message!==rZ)throw e;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;let[r,n]=this.validateChain(e),i=this.getProvider(r);i.name===n$?i.setDefaultChain(`${r}:${n}`,t):i.setDefaultChain(n,t)}catch(e){if(!/Please call connect/.test(e.message))throw e}}async cleanupPendingPairings(e={}){this.logger.info(\"Cleaning up inactive pairings...\");let t=this.client.pairing.getAll();if((0,o.qt8)(t)){for(let r of t)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore(\"namespaces\"),this.optionalNamespaces=await this.getFromStore(\"optionalNamespaces\")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace(\"Initialized\"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await nd.init({logger:this.providerOpts.logger||nk,relayUrl:this.providerOpts.relayUrl||\"wss://relay.walletconnect.com\",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace(\"SignClient Initialized\")}createProviders(){if(!this.client)throw Error(\"Sign Client not initialized\");if(!this.session)throw Error(\"Session not initialized. Please call connect() before enable()\");let e=[...new Set(Object.keys(this.session.namespaces).map(e=>(0,o.Maj)(e)))];nZ(\"client\",this.client),nZ(\"events\",this.events),nZ(\"disableProviderPing\",this.disableProviderPing),e.forEach(e=>{if(!this.session)return;let t=function(e,t){let r=Object.keys(t.namespaces).filter(t=>t.includes(e));if(!r.length)return[];let n=[];return r.forEach(e=>{let r=t.namespaces[e].accounts;n.push(...r)}),n}(e,this.session),r=nz(t),n=ig(ip({},nq(this.namespaces,this.optionalNamespaces)[e]),{accounts:t,chains:r});switch(e){case\"eip155\":this.rpcProviders[e]=new n8({namespace:n});break;case\"solana\":this.rpcProviders[e]=new n9({namespace:n});break;case\"cosmos\":this.rpcProviders[e]=new n7({namespace:n});break;case\"polkadot\":this.rpcProviders[e]=new nJ({namespace:n});break;case\"cip34\":this.rpcProviders[e]=new ie({namespace:n});break;case\"elrond\":this.rpcProviders[e]=new it({namespace:n});break;case\"multiversx\":this.rpcProviders[e]=new ir({namespace:n});break;case\"near\":this.rpcProviders[e]=new ii({namespace:n});break;default:this.rpcProviders[n$]?this.rpcProviders[n$].updateNamespace(n):this.rpcProviders[n$]=new is({namespace:n})}})}registerEventListeners(){if(typeof this.client>\"u\")throw Error(\"Sign Client is not initialized\");this.client.on(\"session_ping\",e=>{this.events.emit(\"session_ping\",e)}),this.client.on(\"session_event\",e=>{let{params:t}=e,{event:r}=t;if(\"accountsChanged\"===r.name){let e=r.data;e&&(0,o.qt8)(e)&&this.events.emit(\"accountsChanged\",e.map(nG))}else if(\"chainChanged\"===r.name){let e=t.chainId,r=t.event.data,n=(0,o.Maj)(e),i=nW(e)!==nW(r)?`${n}:${nW(r)}`:e;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit(\"session_event\",e)}),this.client.on(\"session_update\",({topic:e,params:t})=>{var r;let{namespaces:n}=t,i=null==(r=this.client)?void 0:r.session.get(e);this.session=ig(ip({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit(\"session_update\",{topic:e,params:t})}),this.client.on(\"session_delete\",async e=>{await this.cleanup(),this.events.emit(\"session_delete\",e),this.events.emit(\"disconnect\",ig(ip({},(0,o.D6H)(\"USER_DISCONNECTED\")),{data:e.topic}))}),this.on(nC,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[n$]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:r,sessionProperties:n}=e;t&&Object.keys(t).length&&(this.namespaces=t),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist(\"namespaces\",t),this.persist(\"optionalNamespaces\",r)}validateChain(e){let[t,r]=e?.split(\":\")||[\"\",\"\"];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,r];if(t&&!Object.keys(this.namespaces||{}).map(e=>(0,o.Maj)(e)).includes(t))throw Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&r)return[t,r];let n=(0,o.Maj)(Object.keys(this.namespaces)[0]),i=this.rpcProviders[n].getDefaultChain();return[n,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;let[r,n]=this.validateChain(e);n&&(t||this.getProvider(r).setDefaultChain(n),this.namespaces[r]?this.namespaces[r].defaultChain=n:this.namespaces[`${r}:${n}`]?this.namespaces[`${r}:${n}`].defaultChain=n:this.namespaces[`${r}:${n}`]={defaultChain:n},this.persist(\"namespaces\",this.namespaces),this.events.emit(\"chainChanged\",n))}onConnect(){this.createProviders(),this.events.emit(\"connect\",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist(\"namespaces\",void 0),this.persist(\"optionalNamespaces\",void 0),this.persist(\"sessionProperties\",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${nS}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${nS}/${e}`)}}let iy=[\"eth_sendTransaction\",\"personal_sign\"],ib=[\"eth_accounts\",\"eth_requestAccounts\",\"eth_sendRawTransaction\",\"eth_sign\",\"eth_signTransaction\",\"eth_signTypedData\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"eth_sendTransaction\",\"personal_sign\",\"wallet_switchEthereumChain\",\"wallet_addEthereumChain\",\"wallet_getPermissions\",\"wallet_requestPermissions\",\"wallet_registerOnboarding\",\"wallet_watchAsset\",\"wallet_scanQRCode\",\"wallet_sendCalls\",\"wallet_getCapabilities\",\"wallet_getCallsStatus\",\"wallet_showCallsStatus\"],iv=[\"chainChanged\",\"accountsChanged\"],iw=[\"chainChanged\",\"accountsChanged\",\"message\",\"disconnect\",\"connect\"];var i_=Object.defineProperty,iE=Object.defineProperties,iA=Object.getOwnPropertyDescriptors,ix=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,i$=(e,t,r)=>t in e?i_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iC=(e,t)=>{for(var r in t||(t={}))ik.call(t,r)&&i$(e,r,t[r]);if(ix)for(var r of ix(t))iS.call(t,r)&&i$(e,r,t[r]);return e},iP=(e,t)=>iE(e,iA(t));function iI(e){return Number(e[0].split(\":\")[1])}function iO(e){return`0x${e.toString(16)}`}class iN{constructor(){this.events=new i.EventEmitter,this.namespace=\"eip155\",this.accounts=[],this.chainId=1,this.STORAGE_KEY=\"wc@2:ethereum_provider:\",this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new iN;return await t.initialize(e),t}async request(e,t){return await this.signer.request(e,this.formatChainId(this.chainId),t)}sendAsync(e,t,r){this.signer.sendAsync(e,t,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:\"eth_requestAccounts\"})}async connect(e){if(!this.signer.client)throw Error(\"Provider not initialized. Call init() first\");this.loadConnectOpts(e);let{required:t,optional:r}=function(e){let{chains:t,optionalChains:r,methods:n,optionalMethods:i,events:s,optionalEvents:a,rpcMap:l}=e;if(!(0,o.qt8)(t))throw Error(\"Invalid chains\");let u={chains:t,methods:n||iy,events:s||iv,rpcMap:iC({},t.length?{[iI(t)]:l[iI(t)]}:{})},c=s?.filter(e=>!iv.includes(e)),d=n?.filter(e=>!iy.includes(e));if(!r&&!a&&!i&&!(null!=c&&c.length)&&!(null!=d&&d.length))return{required:t.length?u:void 0};let h={chains:[...new Set(c?.length&&d?.length||!r?u.chains.concat(r||[]):r)],methods:[...new Set(u.methods.concat(null!=i&&i.length?i:ib))],events:[...new Set(u.events.concat(null!=a&&a.length?a:iw))],rpcMap:l};return{required:t.length?u:void 0,optional:r.length?h:void 0}}(this.rpc);try{let n=await new Promise(async(n,i)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),i(Error(\"Connection request reset. Please try again.\")))})),await this.signer.connect(iP(iC({namespaces:iC({},t&&{[this.namespace]:t})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e?.pairingTopic})).then(e=>{n(e)}).catch(e=>{i(Error(e.message))})});if(!n)return;let i=(0,o.guN)(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit(\"connect\",{chainId:iO(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async authenticate(e){if(!this.signer.client)throw Error(\"Provider not initialized. Call init() first\");this.loadConnectOpts({chains:e?.chains});try{let t=await new Promise(async(t,r)=>{var n;this.rpc.showQrModal&&(null==(n=this.modal)||n.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),r(Error(\"Connection request reset. Please try again.\")))})),await this.signer.authenticate(iP(iC({},e),{chains:this.rpc.chains})).then(e=>{t(e)}).catch(e=>{r(Error(e.message))})}),r=t.session;if(r){let e=(0,o.guN)(r.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit(\"connect\",{chainId:iO(this.chainId)})}return t}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on(\"session_event\",e=>{let{params:t}=e,{event:r}=t;\"accountsChanged\"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit(\"accountsChanged\",this.accounts)):\"chainChanged\"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit(\"session_event\",e)}),this.signer.on(\"chainChanged\",e=>{let t=parseInt(e);this.chainId=t,this.events.emit(\"chainChanged\",iO(this.chainId)),this.persist()}),this.signer.on(\"session_update\",e=>{this.events.emit(\"session_update\",e)}),this.signer.on(\"session_delete\",e=>{this.reset(),this.events.emit(\"session_delete\",e),this.events.emit(\"disconnect\",iP(iC({},(0,o.D6H)(\"USER_DISCONNECTED\")),{data:e.topic,name:\"USER_DISCONNECTED\"}))}),this.signer.on(\"display_uri\",e=>{var t,r;this.rpc.showQrModal&&(null==(t=this.modal)||t.closeModal(),null==(r=this.modal)||r.openModal({uri:e})),this.events.emit(\"display_uri\",e)})}switchEthereumChain(e){this.request({method:\"wallet_switchEthereumChain\",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return\"string\"==typeof e&&e.startsWith(`${this.namespace}:`)}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(\":\")[1])}setChainIds(e){let t=e.filter(e=>this.isCompatibleChainId(e)).map(e=>this.parseChainId(e));t.length&&(this.chainId=t[0],this.events.emit(\"chainChanged\",iO(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.switchEthereumChain(t)}}parseAccountId(e){let[t,r,n]=e.split(\":\");return{chainId:`${t}:${r}`,address:n}}setAccounts(e){this.accounts=e.filter(e=>this.parseChainId(this.parseAccountId(e).chainId)===this.chainId).map(e=>this.parseAccountId(e).address),this.events.emit(\"accountsChanged\",this.accounts)}getRpcConfig(e){var t,r;let n=null!=(t=e?.chains)?t:[],i=null!=(r=e?.optionalChains)?r:[],s=n.concat(i);if(!s.length)throw Error(\"No chains specified in either `chains` or `optionalChains`\");let o=n.length?e?.methods||iy:[],a=n.length?e?.events||iv:[],l=e?.optionalMethods||[],u=e?.optionalEvents||[],c=e?.rpcMap||this.buildRpcMap(s,e.projectId),d=e?.qrModalOptions||void 0;return{chains:n?.map(e=>this.formatChainId(e)),optionalChains:i.map(e=>this.formatChainId(e)),methods:o,events:a,optionalMethods:l,optionalEvents:u,rpcMap:c,showQrModal:!!(null!=e&&e.showQrModal),qrModalOptions:d,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let r={};return e.forEach(e=>{r[e]=this.getRpcUrl(e,t)}),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?iI(this.rpc.chains):iI(this.rpc.optionalChains),this.signer=await im.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{let{WalletConnectModal:t}=await r.e(318).then(r.bind(r,55318));e=t}catch{throw Error(\"To use QR modal, please install @walletconnect/modal package\")}if(e)try{this.modal=new e(iC({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(e){throw this.signer.logger.error(e),Error(\"Could not generate WalletConnectModal Instance\")}}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:r,rpcMap:n}=e;t&&(0,o.qt8)(t)&&(this.rpc.chains=t.map(e=>this.formatChainId(e)),t.forEach(e=>{this.rpc.rpcMap[e]=n?.[e]||this.getRpcUrl(e)})),r&&(0,o.qt8)(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map(e=>this.formatChainId(e)),r.forEach(e=>{this.rpc.rpcMap[e]=n?.[e]||this.getRpcUrl(e)}))}getRpcUrl(e,t){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[e])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),t=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:t?.accounts),this.setAccounts(t?.accounts)}catch(e){this.signer.logger.error(\"Failed to load persisted session, clearing state...\"),this.signer.logger.error(e),await this.disconnect().catch(e=>this.signer.logger.warn(e))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return\"string\"==typeof e||e instanceof String?[this.parseAccount(e)]:e.map(e=>this.parseAccount(e))}}let iM=iN},27185:function(e){\"use strict\";e.exports=function(){throw Error(\"ws does not work in the browser. Browser clients must use the native WebSocket object\")}},57711:function(e,t,r){\"use strict\";r.d(t,{iO:function(){return n}});let n={waku:{publish:\"waku_publish\",batchPublish:\"waku_batchPublish\",subscribe:\"waku_subscribe\",batchSubscribe:\"waku_batchSubscribe\",subscription:\"waku_subscription\",unsubscribe:\"waku_unsubscribe\",batchUnsubscribe:\"waku_batchUnsubscribe\",batchFetchMessages:\"waku_batchFetchMessages\"},irn:{publish:\"irn_publish\",batchPublish:\"irn_batchPublish\",subscribe:\"irn_subscribe\",batchSubscribe:\"irn_batchSubscribe\",subscription:\"irn_subscription\",unsubscribe:\"irn_unsubscribe\",batchUnsubscribe:\"irn_batchUnsubscribe\",batchFetchMessages:\"irn_batchFetchMessages\"},iridium:{publish:\"iridium_publish\",batchPublish:\"iridium_batchPublish\",subscribe:\"iridium_subscribe\",batchSubscribe:\"iridium_batchSubscribe\",subscription:\"iridium_subscription\",unsubscribe:\"iridium_unsubscribe\",batchUnsubscribe:\"iridium_batchUnsubscribe\",batchFetchMessages:\"iridium_batchFetchMessages\"}}},77726:function(){},71851:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(24011);n.__exportStar(r(47036),t),n.__exportStar(r(62703),t)},47036:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},62703:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},54574:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(24011);n.__exportStar(r(91268),t),n.__exportStar(r(32674),t),n.__exportStar(r(79165),t),n.__exportStar(r(71851),t)},79165:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(24011).__exportStar(r(34760),t)},34760:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},25115:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(71851);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},23396:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},91268:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});let n=r(24011);n.__exportStar(r(23396),t),n.__exportStar(r(25115),t)},32674:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},24011:function(e,t,r){\"use strict\";r.r(t),r.d(t,{__assign:function(){return s},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return _},__await:function(){return b},__awaiter:function(){return c},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return S},__createBinding:function(){return h},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return x},__importStar:function(){return A},__makeTemplateObject:function(){return E},__metadata:function(){return u},__param:function(){return l},__read:function(){return g},__rest:function(){return o},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw TypeError(\"Generator is already executing.\");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function f(e,t){for(var r in e)\"default\"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function g(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var n,i=r.apply(e,t||[]),s=[];return n={},o(\"next\"),o(\"throw\"),o(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){a(\"next\",e)}function u(e){a(\"throw\",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function w(e){var t,r;return t={},n(\"next\"),n(\"throw\",function(e){throw e}),n(\"return\"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:\"return\"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n(\"next\"),n(\"throw\"),n(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError(\"attempted to get private field on non-instance\");return t.get(e)}function S(e,t,r){if(!t.has(e))throw TypeError(\"attempted to set private field on non-instance\");return t.set(e,r),r}},25527:function(e,t){\"use strict\";function r(e){let t;return\"undefined\"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n(\"document\")},t.getDocument=function(){return r(\"document\")},t.getNavigatorOrThrow=function(){return n(\"navigator\")},t.getNavigator=function(){return r(\"navigator\")},t.getLocationOrThrow=function(){return n(\"location\")},t.getLocation=function(){return r(\"location\")},t.getCryptoOrThrow=function(){return n(\"crypto\")},t.getCrypto=function(){return r(\"crypto\")},t.getLocalStorageOrThrow=function(){return n(\"localStorage\")},t.getLocalStorage=function(){return r(\"localStorage\")}},70053:function(e,t,r){\"use strict\";t.D=void 0;let n=r(25527);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName(\"meta\");for(let e=0;e<r.length;e++){let n=r[e],i=[\"itemprop\",\"property\",\"name\"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute(\"content\");if(e)return e}}return\"\"}let s=((r=i(\"name\",\"og:site_name\",\"og:title\",\"twitter:title\"))||(r=e.title),r),o=i(\"description\",\"og:description\",\"twitter:description\",\"keywords\");return{description:o,url:t.origin,icons:function(){let r=e.getElementsByTagName(\"link\"),n=[];for(let e=0;e<r.length;e++){let i=r[e],s=i.getAttribute(\"rel\");if(s&&s.toLowerCase().indexOf(\"icon\")>-1){let e=i.getAttribute(\"href\");if(e){if(-1===e.toLowerCase().indexOf(\"https:\")&&-1===e.toLowerCase().indexOf(\"http:\")&&0!==e.indexOf(\"//\")){let r=t.protocol+\"//\"+t.host;if(0===e.indexOf(\"/\"))r+=e;else{let n=t.pathname.split(\"/\");n.pop(),r+=n.join(\"/\")+\"/\"+e}n.push(r)}else if(0===e.indexOf(\"//\")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}(),name:s}}},48738:function(e,t){\"use strict\";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=l(e),o=s[0],a=s[1],u=new i((o+a)*3/4-a),c=0,d=a>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(function(e,t,n){for(var i,s=[],o=t;o<n;o+=3)s.push(r[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+\"==\"):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+\"=\"),s.join(\"\")};for(var r=[],n=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[\"-\".charCodeAt(0)]=62,n[\"_\".charCodeAt(0)]=63},1192:function(e){\"use strict\";for(var t=\"qpzry9x8gf2tvdw0s3jn54khce6mua7l\",r={},n=0;n<t.length;n++){var i=t.charAt(n);if(void 0!==r[i])throw TypeError(i+\" is ambiguous\");r[i]=n}function s(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return\"Invalid prefix (\"+e+\")\";t=s(t)^n>>5}for(r=0,t=s(t);r<e.length;++r){var i=e.charCodeAt(r);t=s(t)^31&i}return t}function a(e,t){if(t=t||90,e.length<8)return e+\" too short\";if(e.length>t)return\"Exceeds length limit\";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return\"Mixed-case string \"+e;var a=(e=n).lastIndexOf(\"1\");if(-1===a)return\"No separator character for \"+e;if(0===a)return\"Missing prefix for \"+e;var l=e.slice(0,a),u=e.slice(a+1);if(u.length<6)return\"Data too short\";var c=o(l);if(\"string\"==typeof c)return c;for(var d=[],h=0;h<u.length;++h){var f=u.charAt(h),p=r[f];if(void 0===p)return\"Unknown character \"+f;c=s(c)^p,h+6>=u.length||d.push(p)}return 1!==c?\"Invalid checksum for \"+e:{prefix:l,words:d}}function l(e,t,r,n){for(var i=0,s=0,o=(1<<r)-1,a=[],l=0;l<e.length;++l)for(i=i<<t|e[l],s+=t;s>=r;)a.push(i>>(s-=r)&o);if(n)s>0&&a.push(i<<r-s&o);else{if(s>=t)return\"Excess padding\";if(i<<r-s&o)return\"Non-zero padding\"}return a}e.exports={decodeUnsafe:function(){var e=a.apply(null,arguments);if(\"object\"==typeof e)return e},decode:function(e){var t=a.apply(null,arguments);if(\"object\"==typeof t)return t;throw Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw TypeError(\"Exceeds length limit\");var i=o(e=e.toLowerCase());if(\"string\"==typeof i)throw Error(i);for(var a=e+\"1\",l=0;l<r.length;++l){var u=r[l];if(u>>5!=0)throw Error(\"Non 5-bit word\");i=s(i)^u,a+=t.charAt(u)}for(l=0;l<6;++l)i=s(i);for(i^=1,l=0;l<6;++l){var c=i>>(5-l)*5&31;a+=t.charAt(c)}return a},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},58171:function(e,t,r){!function(e,t){\"use strict\";function n(e,t){if(!e)throw Error(t||\"Assertion failed\")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function s(e,t,r){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&((\"le\"===t||\"be\"===t)&&(r=t,t=10),this._init(e||0,t||10,r||\"be\"))}\"object\"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{d=\"undefined\"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,\"Invalid character in \"+e)}function a(e,t,r){var n=o(e,r);return r-1>=t&&(n|=o(e,r-1)<<4),n}function l(e,t,r,i){for(var s=0,o=0,a=Math.min(e.length,r),l=t;l<a;l++){var u=e.charCodeAt(l)-48;s*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,\"Invalid character\"),s+=o}return s}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&\"object\"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return 0>e.cmp(t)?e:t},s.prototype._init=function(e,t,r){if(\"number\"==typeof e)return this._initNumber(e,t,r);if(\"object\"==typeof e)return this._initArray(e,t,r);\"hex\"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;\"-\"===(e=e.toString().replace(/\\s+/g,\"\"))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),\"le\"===r&&this._initArray(this.toArray(),t,r)))},s.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),\"le\"===r&&this._initArray(this.toArray(),t,r)},s.prototype._initArray=function(e,t,r){if(n(\"number\"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,s,o=0;o<this.length;o++)this.words[o]=0;var a=0;if(\"be\"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if(\"le\"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},s.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var s=0,o=0;if(\"be\"===r)for(i=e.length-1;i>=t;i-=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var s=e.length-r,o=s%n,a=Math.min(s,s-o)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=l(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},s.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){u(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},\"undefined\"!=typeof Symbol&&\"function\"==typeof Symbol.for)try{s.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=c}catch(e){s.prototype.inspect=c}else s.prototype.inspect=c;function c(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var d,h=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,l=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;c+=(o=(i=0|e.words[p])*(s=0|t.words[f])+d)/67108864|0,d=67108863&o}r.words[u]=0|d,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}s.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||\"hex\"===e){r=\"\";for(var r,i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],l=((a<<i|s)&16777215).toString(16);s=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?h[6-l.length]+l+r:l+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],c=p[e];r=\"\";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(c).toString(e);r=(d=d.idivn(c)).isZero()?g+r:h[u-g.length]+g+r}for(this.isZero()&&(r=\"0\"+r);r.length%t!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}n(!1,\"Base should be between 2 and 36\")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},d&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(d,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,\"byte array longer than desired length\"),n(s>0,\"Requested array length <= 0\");var o=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this[\"_toArrayLike\"+(\"le\"===t?\"LE\":\"BE\")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===s?(r<e.length&&(e[r++]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===s?(r>=0&&(e[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n(\"number\"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n(\"number\"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,s=0;s<n.length;s++)t=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<r.length;s++)t=(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(n=(0|t.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&n;for(;0!==s&&o<t.length;o++)s=(n=(0|t.words[o])+s)>>26,this.words[o]=67108863&n;if(0===s&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,s,o=e.words,a=t.words,l=r.words,u=0,c=0|o[0],d=8191&c,h=c>>>13,f=0|o[1],p=8191&f,g=f>>>13,m=0|o[2],y=8191&m,b=m>>>13,v=0|o[3],w=8191&v,_=v>>>13,E=0|o[4],A=8191&E,x=E>>>13,k=0|o[5],S=8191&k,$=k>>>13,C=0|o[6],P=8191&C,I=C>>>13,O=0|o[7],N=8191&O,M=O>>>13,R=0|o[8],T=8191&R,D=R>>>13,L=0|o[9],j=8191&L,B=L>>>13,F=0|a[0],U=8191&F,z=F>>>13,q=0|a[1],H=8191&q,G=q>>>13,V=0|a[2],W=8191&V,K=V>>>13,Y=0|a[3],Z=8191&Y,J=Y>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],er=8191&et,en=et>>>13,ei=0|a[6],es=8191&ei,eo=ei>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ec=0|a[8],ed=8191&ec,eh=ec>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(u+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(h,U)|0))<<13)|0;u=((s=Math.imul(h,z))+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,z))+Math.imul(g,U)|0,s=Math.imul(g,z);var ey=(u+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,H)|0))<<13)|0;u=((s=s+Math.imul(h,G)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(y,U),i=(i=Math.imul(y,z))+Math.imul(b,U)|0,s=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,G)|0;var eb=(u+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,W)|0))<<13)|0;u=((s=s+Math.imul(h,K)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,z))+Math.imul(_,U)|0,s=Math.imul(_,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,H)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,K)|0;var ev=(u+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(h,Z)|0))<<13)|0;u=((s=s+Math.imul(h,J)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,z))+Math.imul(x,U)|0,s=Math.imul(x,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,H)|0,s=s+Math.imul(_,G)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,W)|0,s=s+Math.imul(b,K)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,Z)|0,s=s+Math.imul(g,J)|0;var ew=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((s=s+Math.imul(h,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,z))+Math.imul($,U)|0,s=Math.imul($,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(x,H)|0,s=s+Math.imul(x,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,W)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Z)|0,s=s+Math.imul(b,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,ee)|0;var e_=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;u=((s=s+Math.imul(h,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,z))+Math.imul(I,U)|0,s=Math.imul(I,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul($,H)|0,s=s+Math.imul($,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(x,W)|0,s=s+Math.imul(x,K)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,s=s+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,s=s+Math.imul(g,en)|0;var eE=(u+(n=n+Math.imul(d,es)|0)|0)+((8191&(i=(i=i+Math.imul(d,eo)|0)+Math.imul(h,es)|0))<<13)|0;u=((s=s+Math.imul(h,eo)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(N,U),i=(i=Math.imul(N,z))+Math.imul(M,U)|0,s=Math.imul(M,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,G)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul($,W)|0,s=s+Math.imul($,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(x,Z)|0,s=s+Math.imul(x,J)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(b,er)|0,s=s+Math.imul(b,en)|0,n=n+Math.imul(p,es)|0,i=(i=i+Math.imul(p,eo)|0)+Math.imul(g,es)|0,s=s+Math.imul(g,eo)|0;var eA=(u+(n=n+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((s=s+Math.imul(h,eu)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,z))+Math.imul(D,U)|0,s=Math.imul(D,z),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(M,H)|0,s=s+Math.imul(M,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,K)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul($,Z)|0,s=s+Math.imul($,J)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(x,X)|0,s=s+Math.imul(x,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,s=s+Math.imul(_,en)|0,n=n+Math.imul(y,es)|0,i=(i=i+Math.imul(y,eo)|0)+Math.imul(b,es)|0,s=s+Math.imul(b,eo)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(g,el)|0,s=s+Math.imul(g,eu)|0;var ex=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;u=((s=s+Math.imul(h,eh)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(j,U),i=(i=Math.imul(j,z))+Math.imul(B,U)|0,s=Math.imul(B,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(D,H)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(M,W)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(I,Z)|0,s=s+Math.imul(I,J)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul($,X)|0,s=s+Math.imul($,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(x,er)|0,s=s+Math.imul(x,en)|0,n=n+Math.imul(w,es)|0,i=(i=i+Math.imul(w,eo)|0)+Math.imul(_,es)|0,s=s+Math.imul(_,eo)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(b,el)|0,s=s+Math.imul(b,eu)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,s=s+Math.imul(g,eh)|0;var ek=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((s=s+Math.imul(h,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,G))+Math.imul(B,H)|0,s=Math.imul(B,G),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(D,W)|0,s=s+Math.imul(D,K)|0,n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,J)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(I,X)|0,s=s+Math.imul(I,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul($,er)|0,s=s+Math.imul($,en)|0,n=n+Math.imul(A,es)|0,i=(i=i+Math.imul(A,eo)|0)+Math.imul(x,es)|0,s=s+Math.imul(x,eo)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(_,el)|0,s=s+Math.imul(_,eu)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(b,ed)|0,s=s+Math.imul(b,eh)|0;var eS=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((s=s+Math.imul(g,eg)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,K))+Math.imul(B,W)|0,s=Math.imul(B,K),n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(D,Z)|0,s=s+Math.imul(D,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(M,X)|0,s=s+Math.imul(M,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(I,er)|0,s=s+Math.imul(I,en)|0,n=n+Math.imul(S,es)|0,i=(i=i+Math.imul(S,eo)|0)+Math.imul($,es)|0,s=s+Math.imul($,eo)|0,n=n+Math.imul(A,el)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(x,el)|0,s=s+Math.imul(x,eu)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(_,ed)|0,s=s+Math.imul(_,eh)|0;var e$=(u+(n=n+Math.imul(y,ep)|0)|0)+((8191&(i=(i=i+Math.imul(y,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((s=s+Math.imul(b,eg)|0)+(i>>>13)|0)+(e$>>>26)|0,e$&=67108863,n=Math.imul(j,Z),i=(i=Math.imul(j,J))+Math.imul(B,Z)|0,s=Math.imul(B,J),n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,ee)|0,n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(M,er)|0,s=s+Math.imul(M,en)|0,n=n+Math.imul(P,es)|0,i=(i=i+Math.imul(P,eo)|0)+Math.imul(I,es)|0,s=s+Math.imul(I,eo)|0,n=n+Math.imul(S,el)|0,i=(i=i+Math.imul(S,eu)|0)+Math.imul($,el)|0,s=s+Math.imul($,eu)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,eh)|0)+Math.imul(x,ed)|0,s=s+Math.imul(x,eh)|0;var eC=(u+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,eg)|0)+Math.imul(_,ep)|0))<<13)|0;u=((s=s+Math.imul(_,eg)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(B,X)|0,s=Math.imul(B,ee),n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(D,er)|0,s=s+Math.imul(D,en)|0,n=n+Math.imul(N,es)|0,i=(i=i+Math.imul(N,eo)|0)+Math.imul(M,es)|0,s=s+Math.imul(M,eo)|0,n=n+Math.imul(P,el)|0,i=(i=i+Math.imul(P,eu)|0)+Math.imul(I,el)|0,s=s+Math.imul(I,eu)|0,n=n+Math.imul(S,ed)|0,i=(i=i+Math.imul(S,eh)|0)+Math.imul($,ed)|0,s=s+Math.imul($,eh)|0;var eP=(u+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,eg)|0)+Math.imul(x,ep)|0))<<13)|0;u=((s=s+Math.imul(x,eg)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(j,er),i=(i=Math.imul(j,en))+Math.imul(B,er)|0,s=Math.imul(B,en),n=n+Math.imul(T,es)|0,i=(i=i+Math.imul(T,eo)|0)+Math.imul(D,es)|0,s=s+Math.imul(D,eo)|0,n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(M,el)|0,s=s+Math.imul(M,eu)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,eh)|0)+Math.imul(I,ed)|0,s=s+Math.imul(I,eh)|0;var eI=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(i=(i=i+Math.imul(S,eg)|0)+Math.imul($,ep)|0))<<13)|0;u=((s=s+Math.imul($,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(j,es),i=(i=Math.imul(j,eo))+Math.imul(B,es)|0,s=Math.imul(B,eo),n=n+Math.imul(T,el)|0,i=(i=i+Math.imul(T,eu)|0)+Math.imul(D,el)|0,s=s+Math.imul(D,eu)|0,n=n+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,eh)|0)+Math.imul(M,ed)|0,s=s+Math.imul(M,eh)|0;var eO=(u+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((s=s+Math.imul(I,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(j,el),i=(i=Math.imul(j,eu))+Math.imul(B,el)|0,s=Math.imul(B,eu),n=n+Math.imul(T,ed)|0,i=(i=i+Math.imul(T,eh)|0)+Math.imul(D,ed)|0,s=s+Math.imul(D,eh)|0;var eN=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,eg)|0)+Math.imul(M,ep)|0))<<13)|0;u=((s=s+Math.imul(M,eg)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(j,ed),i=(i=Math.imul(j,eh))+Math.imul(B,ed)|0,s=Math.imul(B,eh);var eM=(u+(n=n+Math.imul(T,ep)|0)|0)+((8191&(i=(i=i+Math.imul(T,eg)|0)+Math.imul(D,ep)|0))<<13)|0;u=((s=s+Math.imul(D,eg)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863;var eR=(u+(n=Math.imul(j,ep))|0)+((8191&(i=(i=Math.imul(j,eg))+Math.imul(B,ep)|0))<<13)|0;return u=((s=Math.imul(B,eg))+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,l[0]=em,l[1]=ey,l[2]=eb,l[3]=ev,l[4]=ew,l[5]=e_,l[6]=eE,l[7]=eA,l[8]=ex,l[9]=ek,l[10]=eS,l[11]=e$,l[12]=eC,l[13]=eP,l[14]=eI,l[15]=eO,l[16]=eN,l[17]=eM,l[18]=eR,0!==u&&(l[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var o=i;i=0;for(var a=67108863&n,l=Math.min(s,t.length-1),u=Math.max(0,s-e.length+1);u<=l;u++){var c=s-u,d=(0|e.words[c])*(0|t.words[u]),h=67108863&d;o=o+(d/67108864|0)|0,a=67108863&(h=h+a|0),i+=(o=o+(h>>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function b(e,t){this.x=e,this.y=t}Math.imul||(m=g),s.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?g(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=s.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,s){for(var o=0;o<s;o++)n[o]=t[e[o]],i[o]=r[e[o]]},b.prototype.transform=function(e,t,r,n,i,s){this.permute(s,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,l=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var d=l,h=u,f=0;f<o;f++){var p=r[c+f],g=n[c+f],m=r[c+f+o],y=n[c+f+o],b=d*m-h*y;y=d*y+h*m,m=b,r[c+f]=p+m,n[c+f]=g+y,r[c+f+o]=p-m,n[c+f+o]=g-y,f!==a&&(b=l*d-u*h,h=l*h+u*d,d=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],r[2*o]=8191&s,s>>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===s),n((-8192&s)==0)},b.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),s=this.stub(n),o=Array(n),a=Array(n),l=Array(n),u=Array(n),c=Array(n),d=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,u,n),this.transform(o,s,a,l,n,i),this.transform(u,s,c,d,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*d[f];l[f]=a[f]*d[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,h,s,n,i),this.conjugate(h,s,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=Array(this.length+e.length),y(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n(\"number\"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&r);r>>=26,r+=(s/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(e){n(\"number\"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,l=(0|this.words[t])-a<<r;this.words[t]=l|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,r){n(\"number\"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s;if(i-=o,i=Math.max(0,i),r){for(var l=0;l<o;l++)r.words[l]=this.words[l];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-s|c>>>s,u=c&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n(\"number\"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},s.prototype.imaskn=function(e){n(\"number\"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return(n(\"number\"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n(\"number\"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,r){var i,s,o=e.length+r;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+r])+a;var l=(0|e.words[i])*t;s-=67108863&l,a=(s>>26)-(l/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)a=(s=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var l=i.length-o.length;if(\"mod\"!==t){(r=new s(null)).length=l+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|i.words[o.length+d])*67108864+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=h)}return r&&r._strip(),i._strip(),\"div\"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},s.prototype.divmod=function(e,t,r){var i,o,a;return(n(!e.isZero()),this.isZero())?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),\"mod\"!==t&&(i=a.div.neg()),\"div\"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),\"mod\"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),\"div\"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new s(0),mod:this}:1===e.length?\"div\"===t?{div:this.divn(e.words[0]),mod:null}:\"mod\"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t)},s.prototype.div=function(e){return this.divmod(e,\"div\",!1).div},s.prototype.mod=function(e){return this.divmod(e,\"mod\",!1).mod},s.prototype.umod=function(e){return this.divmod(e,\"mod\",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),l=new s(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(d)),a.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),o.isub(l)):(r.isub(t),a.isub(i),l.isub(o))}return{a:a,b:l,gcd:r.iushln(u)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new s(1),a=new s(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;(i.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(i.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(t=0===r.cmpn(1)?o:a).cmpn(0)&&t.iadd(e),t},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var s=t;t=r,r=s}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n(\"number\"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,o=r;0!==s&&o<this.length;o++){var a=0|this.words[o];a+=s,s=a>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,\"Number is too big\");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return -1===this.cmpn(e)},s.prototype.lt=function(e){return -1===this.cmp(e)},s.prototype.lten=function(e){return 0>=this.cmpn(e)},s.prototype.lte=function(e){return 0>=this.cmp(e)},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new k(e)},s.prototype.toRed=function(e){return n(!this.red,\"Already a number in reduction context\"),n(0===this.negative,\"red works only with positives\"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function E(){w.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function A(){w.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function x(){w.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function k(e){if(\"string\"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),\"modulus must be greater than 1\"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new s(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(4194303&s)<<4|i>>>22,i=s}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(E,w),i(A,w),i(x,w),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){var t;if(v[e])return v[e];if(\"k256\"===e)t=new _;else if(\"p224\"===e)t=new E;else if(\"p192\"===e)t=new A;else if(\"p25519\"===e)t=new x;else throw Error(\"Unknown prime \"+e);return v[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,\"red works only with positives\"),n(e.red,\"red works only with red numbers\")},k.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,\"red works only with positives\"),n(e.red&&e.red===t.red,\"red works only with red numbers\")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new s(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(d,new s(1).iushln(p-m-1));h=h.redMul(y),d=y.redSqr(),f=f.redMul(d),p=m}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new s(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],c=l-1;c>=0;c--){var d=u>>c&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===o){a=0;continue}o<<=1,o|=d,(4==++a||0===n&&0===c)&&(i=this.mul(i,r[o]),a=0,o=0)}l=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new S(e)},i(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},9109:function(e,t,r){\"use strict\";/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <https://feross.org>\n * @license  MIT\n */let n=r(48738),i=r(6868),s=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;function o(e){if(e>2147483647)throw RangeError('The value \"'+e+'\" is invalid for option \"size\"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if(\"number\"==typeof e){if(\"string\"==typeof t)throw TypeError('The \"string\" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if(\"string\"==typeof e)return function(e,t){if((\"string\"!=typeof t||\"\"===t)&&(t=\"utf8\"),!a.isEncoding(t))throw TypeError(\"Unknown encoding: \"+t);let r=0|p(e,t),n=o(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||\"undefined\"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return h(e,t,r);if(\"number\"==typeof e)throw TypeError('The \"value\" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);let i=function(e){var t;if(a.isBuffer(e)){let t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?\"number\"!=typeof e.length||(t=e.length)!=t?o(0):d(e):\"Buffer\"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive](\"string\"),t,r);throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function u(e){if(\"number\"!=typeof e)throw TypeError('\"size\" argument must be of type number');if(e<0)throw RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function c(e){return u(e),o(e<0?0:0|f(e))}function d(e){let t=e.length<0?0:0|f(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('\"length\" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function f(e){if(e>=2147483647)throw RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes\");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return T(e).length;default:if(i)return n?-1:R(e).length;t=(\"\"+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i=\"\";for(let n=t;n<r;++n)i+=j[e[n]];return i}(this,t,r);case\"utf8\":case\"utf-8\":return v(this,t,r);case\"ascii\":return function(e,t,r){let n=\"\";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case\"latin1\":case\"binary\":return function(e,t,r){let n=\"\";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case\"base64\":var s,o;return s=t,o=r,0===s&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(s,o));case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return function(e,t,r){let n=e.slice(t,r),i=\"\";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var s;if(0===e.length)return -1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(s=r=+r)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if(\"string\"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if(\"number\"==typeof t)return(t&=255,\"function\"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError(\"val must be string, number or Buffer\")}function b(e,t,r,n,i){let s,o=1,a=e.length,l=t.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(s=r;s<a;s++)if(u(e,s)===u(t,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===l)return n*o}else -1!==n&&(s-=s-n),n=-1}else for(r+l>a&&(r=a-l),s=r;s>=0;s--){let r=!0;for(let n=0;n<l;n++)if(u(e,s+n)!==u(t,n)){r=!1;break}if(r)return s}return -1}function v(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(s=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r=\"\",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError(\"offset is not uint\");if(e+t>r)throw RangeError(\"Trying to access beyond buffer length\")}function _(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('\"buffer\" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('\"value\" argument is out of bounds');if(r+n>e.length)throw RangeError(\"Index out of range\")}function E(e,t,r,n,i){I(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function A(e,t,r,n,i){I(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function x(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError(\"Index out of range\")}function k(e,t,r,n,s){return t=+t,r>>>=0,s||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,s){return t=+t,r>>>=0,s||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(a.prototype,\"parent\",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,\"offset\",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?\"string\"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},a.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(L(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('\"list\" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(\"Buffer size must be a multiple of 16-bits\");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(\"Buffer size must be a multiple of 32-bits\");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(\"Buffer size must be a multiple of 64-bits\");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?\"\":0==arguments.length?v(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError(\"Argument must be a Buffer\");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e=\"\",r=t.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,r).replace(/(.{2})/g,\"$1 \").trim(),this.length>r&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError(\"out of range index\");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,l=Math.min(s,o),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){s=u[e],o=c[e];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){var i,s,o,a,l,u,c,d;if(void 0===t)n=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0);else throw Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");let f=!1;for(;;)switch(n){case\"hex\":return function(e,t,r,n){let i;r=Number(r)||0;let s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;let o=t.length;for(n>o/2&&(n=o/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(n!=n)break;e[r+i]=n}return i}(this,e,t,r);case\"utf8\":case\"utf-8\":return i=t,s=r,D(R(e,this.length-i),this,i,s);case\"ascii\":case\"latin1\":case\"binary\":return o=t,a=r,D(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,a);case\"base64\":return l=t,u=r,D(T(e),this,l,u);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return c=t,d=r,D(function(e,t){let r,n;let i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&N(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),a.prototype.readBigInt64BE=B(function(e){O(e>>>=0,\"offset\");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&N(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=B(function(e,t=0){return E(this,e,t,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),a.prototype.writeBigUInt64BE=B(function(e,t=0){return A(this,e,t,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=0,s=1,o=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=B(function(e,t=0){return E(this,e,t,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),a.prototype.writeBigInt64BE=B(function(e,t=0){return A(this,e,t,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),a.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError(\"argument should be a Buffer\");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw RangeError(\"Index out of range\");if(n<0)throw RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){let i;if(\"string\"==typeof e){if(\"string\"==typeof t?(n=t,t=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),void 0!==n&&\"string\"!=typeof n)throw TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!a.isEncoding(n))throw TypeError(\"Unknown encoding: \"+n);if(1===e.length){let t=e.charCodeAt(0);(\"utf8\"===n&&t<128||\"latin1\"===n)&&(e=t)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError(\"Out of range index\");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let s=a.isBuffer(e)?e:a.from(e,n),o=s.length;if(0===o)throw TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};let $={};function C(e,t,r){$[e]=class extends r{constructor(){super(),Object.defineProperty(this,\"message\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function P(e){let t=\"\",r=e.length,n=\"-\"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function I(e,t,r,n,i,s){if(e>r||e<t){let n;let i=\"bigint\"==typeof t?\"n\":\"\";throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(s+1)*8}${i}`:`>= -(2${i} ** ${(s+1)*8-1}${i}) and < 2 ** ${(s+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new $.ERR_OUT_OF_RANGE(\"value\",n,e)}O(i,\"offset\"),(void 0===n[i]||void 0===n[i+s])&&N(i,n.length-(s+1))}function O(e,t){if(\"number\"!=typeof e)throw new $.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function N(e,t,r){if(Math.floor(e)!==e)throw O(e,r),new $.ERR_OUT_OF_RANGE(r||\"offset\",\"an integer\",e);if(t<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||\"offset\",`>= ${r?1:0} and <= ${t}`,e)}C(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError),C(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError),C(\"ERR_OUT_OF_RANGE\",function(e,t,r){let n=`The value of \"${e}\" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=P(String(r)):\"bigint\"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=P(i)),i+=\"n\"),n+=` It must be ${t}. Received ${i}`},RangeError);let M=/[^+/0-9A-Za-z-_]/g;function R(e,t){let r;t=t||1/0;let n=e.length,i=null,s=[];for(let o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error(\"Invalid code point\")}return s}function T(e){return n.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(M,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let j=function(){let e=\"0123456789abcdef\",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function B(e){return\"undefined\"==typeof BigInt?F:e}function F(){throw Error(\"BigInt not supported\")}},55151:function(e,t){var r=\"undefined\"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:\"URLSearchParams\"in n,iterable:\"Symbol\"in n&&\"iterator\"in Symbol,blob:\"FileReader\"in n&&\"Blob\"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:\"FormData\"in n,arrayBuffer:\"ArrayBuffer\"in n};if(t.arrayBuffer)var r=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(e))throw TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function o(e){return\"string\"!=typeof e&&(e=String(e)),e}function a(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError(\"Already read\"));e.bodyUsed=!0}function c(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=c(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if(\"string\"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText=\"\";!this.headers.get(\"content-type\")&&(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error(\"could not read FormData body as blob\")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=u(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=c(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error(\"could not read FormData body as text\")},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=o(t);var r=this.map[e];this.map[e]=r?r+\", \"+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=o(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),a(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),a(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];function g(e,t){var r,n,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"same-origin\",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||\"GET\").toUpperCase(),p.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&i)throw TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(i)}function m(e){var t=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var r=e.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new l(t.headers),this.url=t.url||\"\",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},f.call(g.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError(\"Invalid status code\");return new y(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,n){return new Promise(function(i,s){var o=new g(r,n);if(o.signal&&o.signal.aborted)return s(new e.DOMException(\"Aborted\",\"AbortError\"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||\"\",t=new l,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var r=e.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();t.append(n,i)}}),t)};r.url=\"responseURL\"in a?a.responseURL:r.headers.get(\"X-Request-URL\"),i(new y(\"response\"in a?a.response:a.responseText,r))},a.onerror=function(){s(TypeError(\"Network request failed\"))},a.ontimeout=function(){s(TypeError(\"Network request failed\"))},a.onabort=function(){s(new e.DOMException(\"Aborted\",\"AbortError\"))},a.open(o.method,o.url,!0),\"include\"===o.credentials?a.withCredentials=!0:\"omit\"===o.credentials&&(a.withCredentials=!1),\"responseType\"in a&&t.blob&&(a.responseType=\"blob\"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener(\"abort\",u),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener(\"abort\",u)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}v.polyfill=!0,n.fetch||(n.fetch=v,n.Headers=l,n.Request=g,n.Response=y),e.Headers=l,e.Request=g,e.Response=y,e.fetch=v,Object.defineProperty(e,\"__esModule\",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},56368:function(e){\"use strict\";var t=\"%[a-f0-9]{2}\",r=RegExp(\"(\"+t+\")|([^%]+?)\",\"gi\"),n=RegExp(\"(\"+t+\")+\",\"gi\");e.exports=function(e){if(\"string\"!=typeof e)throw TypeError(\"Expected `encodedURI` to be of type `string`, got `\"+typeof e+\"`\");try{return e=e.replace(/\\+/g,\" \"),decodeURIComponent(e)}catch(t){return function(e){for(var t={\"%FE%FF\":\"��\",\"%FF%FE\":\"��\"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var s=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(\"\"))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,n).join(\"\")).match(r)||[];return e}}(i[0]);s!==i[0]&&(t[i[0]]=s)}i=n.exec(e)}t[\"%C2\"]=\"�\";for(var o=Object.keys(t),a=0;a<o.length;a++){var l=o[a];e=e.replace(RegExp(l,\"g\"),t[l])}return e}(e)}}},52159:function(e,t,r){\"use strict\";r.d(t,{qY:function(){return f}});var n=r(25566),i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},s=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type=\"browser\"},o=function(e){this.version=e,this.type=\"node\",this.name=\"node\",this.os=n.platform},a=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type=\"bot-device\"},l=function(){this.type=\"bot\",this.bot=!0,this.name=\"bot\",this.version=null,this.os=null},u=function(){this.type=\"react-native\",this.name=\"react-native\",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\\ Jeeves\\/Teoma|ia_archiver)/,d=[[\"aol\",/AOLShield\\/([0-9\\._]+)/],[\"edge\",/Edge\\/([0-9\\._]+)/],[\"edge-ios\",/EdgiOS\\/([0-9\\._]+)/],[\"yandexbrowser\",/YaBrowser\\/([0-9\\._]+)/],[\"kakaotalk\",/KAKAOTALK\\s([0-9\\.]+)/],[\"samsung\",/SamsungBrowser\\/([0-9\\.]+)/],[\"silk\",/\\bSilk\\/([0-9._-]+)\\b/],[\"miui\",/MiuiBrowser\\/([0-9\\.]+)$/],[\"beaker\",/BeakerBrowser\\/([0-9\\.]+)/],[\"edge-chromium\",/EdgA?\\/([0-9\\.]+)/],[\"chromium-webview\",/(?!Chrom.*OPR)wv\\).*Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],[\"chrome\",/(?!Chrom.*OPR)Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],[\"phantomjs\",/PhantomJS\\/([0-9\\.]+)(:?\\s|$)/],[\"crios\",/CriOS\\/([0-9\\.]+)(:?\\s|$)/],[\"firefox\",/Firefox\\/([0-9\\.]+)(?:\\s|$)/],[\"fxios\",/FxiOS\\/([0-9\\.]+)/],[\"opera-mini\",/Opera Mini.*Version\\/([0-9\\.]+)/],[\"opera\",/Opera\\/([0-9\\.]+)(?:\\s|$)/],[\"opera\",/OPR\\/([0-9\\.]+)(:?\\s|$)/],[\"pie\",/^Microsoft Pocket Internet Explorer\\/(\\d+\\.\\d+)$/],[\"pie\",/^Mozilla\\/\\d\\.\\d+\\s\\(compatible;\\s(?:MSP?IE|MSInternet Explorer) (\\d+\\.\\d+);.*Windows CE.*\\)$/],[\"netfront\",/^Mozilla\\/\\d\\.\\d+.*NetFront\\/(\\d.\\d)/],[\"ie\",/Trident\\/7\\.0.*rv\\:([0-9\\.]+).*\\).*Gecko$/],[\"ie\",/MSIE\\s([0-9\\.]+);.*Trident\\/[4-7].0/],[\"ie\",/MSIE\\s(7\\.0)/],[\"bb10\",/BB10;\\sTouch.*Version\\/([0-9\\.]+)/],[\"android\",/Android\\s([0-9\\.]+)/],[\"ios\",/Version\\/([0-9\\._]+).*Mobile.*Safari.*/],[\"safari\",/Version\\/([0-9\\._]+).*Safari/],[\"facebook\",/FB[AS]V\\/([0-9\\.]+)/],[\"instagram\",/Instagram\\s([0-9\\.]+)/],[\"ios-webview\",/AppleWebKit\\/([0-9\\.]+).*Mobile/],[\"ios-webview\",/AppleWebKit\\/([0-9\\.]+).*Gecko\\)$/],[\"curl\",/^curl\\/([0-9\\.]+)$/],[\"searchbot\",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[[\"iOS\",/iP(hone|od|ad)/],[\"Android OS\",/Android/],[\"BlackBerry OS\",/BlackBerry|BB10/],[\"Windows Mobile\",/IEMobile/],[\"Amazon OS\",/Kindle/],[\"Windows 3.11\",/Win16/],[\"Windows 95\",/(Windows 95)|(Win95)|(Windows_95)/],[\"Windows 98\",/(Windows 98)|(Win98)/],[\"Windows 2000\",/(Windows NT 5.0)|(Windows 2000)/],[\"Windows XP\",/(Windows NT 5.1)|(Windows XP)/],[\"Windows Server 2003\",/(Windows NT 5.2)/],[\"Windows Vista\",/(Windows NT 6.0)/],[\"Windows 7\",/(Windows NT 6.1)/],[\"Windows 8\",/(Windows NT 6.2)/],[\"Windows 8.1\",/(Windows NT 6.3)/],[\"Windows 10\",/(Windows NT 10.0)/],[\"Windows ME\",/Windows ME/],[\"Windows CE\",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],[\"Open BSD\",/OpenBSD/],[\"Sun OS\",/SunOS/],[\"Chrome OS\",/CrOS/],[\"Linux\",/(Linux)|(X11)/],[\"Mac OS\",/(Mac_PowerPC)|(Macintosh)/],[\"QNX\",/QNX/],[\"BeOS\",/BeOS/],[\"OS/2\",/OS\\/2/]];function f(e){return e?p(e):\"undefined\"==typeof document&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product?new u:\"undefined\"!=typeof navigator?p(navigator.userAgent):void 0!==n&&n.version?new o(n.version.slice(1)):null}function p(e){var t=\"\"!==e&&d.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var s=i.exec(e);return!!s&&[n,s]},!1);if(!t)return null;var r=t[0],n=t[1];if(\"searchbot\"===r)return new l;var o=n[1]&&n[1].split(\".\").join(\"_\").split(\"_\").slice(0,3);o?o.length<3&&(o=i(i([],o,!0),function(e){for(var t=[],r=0;r<e;r++)t.push(\"0\");return t}(3-o.length),!0)):o=[];var u=o.join(\".\"),f=function(e){for(var t=0,r=h.length;t<r;t++){var n=h[t],i=n[0];if(n[1].exec(e))return i}return null}(e),p=c.exec(e);return p&&p[1]?new a(r,u,f,p[1]):new s(r,u,f)}},52892:function(e){\"use strict\";var t={single_source_shortest_paths:function(e,r,n){var i,s,o,a,l,u,c,d={},h={};h[r]=0;var f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(o in s=(i=f.pop()).value,a=i.cost,l=e[s]||{})l.hasOwnProperty(o)&&(u=a+l[o],c=h[o],(void 0===h[o]||c>u)&&(h[o]=u,f.push(o,u),d[o]=s));if(void 0!==n&&void 0===h[n])throw Error([\"Could not find a path from \",r,\" to \",n,\".\"].join(\"\"));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},47059:function(e){\"use strict\";e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var s=e.charCodeAt(n+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,n+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},37836:function(e){\"use strict\";var t=Object.prototype.hasOwnProperty,r=\"~\";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,n,s,o){if(\"function\"!=typeof n)throw TypeError(\"The listener must be a function\");var a=new i(n,s||e,o),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=Array(s);i<s;i++)o[i]=n[i].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,i,s,o){var a=r?r+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,s),!0;case 6:return c.fn.call(c.context,t,n,i,s,o),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,i){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||o(this,s);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||i&&!a[l].once||n&&a[l].context!==n)&&u.push(a[l]);u.length?this._events[s]=1===u.length?u[0]:u:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},68885:function(e){\"use strict\";var t,r=\"object\"==typeof Reflect?Reflect:null,n=r&&\"function\"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&\"function\"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(r,n){var i;function s(r){e.removeListener(t,o),n(r)}function o(){\"function\"==typeof e.removeListener&&e.removeListener(\"error\",s),r([].slice.call(arguments))}g(e,t,o,{once:!0}),\"error\"!==t&&(i={once:!0},\"function\"==typeof e.on&&g(e,\"error\",s,i))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(e){if(\"function\"!=typeof e)throw TypeError('The \"listener\" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(a(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit(\"newListener\",t,r.listener?r.listener:r),s=e._events),o=s[t]),void 0===o)o=s[t]=r,++e._eventsCount;else if(\"function\"==typeof o?o=s[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var i,s,o,u=Error(\"Possible EventEmitter memory leak detected. \"+o.length+\" \"+String(t)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");u.name=\"MaxListenersExceededWarning\",u.emitter=e,u.type=t,u.count=o.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if(\"function\"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if(\"function\"==typeof e.addEventListener)e.addEventListener(t,function i(s){n.once&&e.removeEventListener(t,i),r(s)});else throw TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,\"defaultMaxListeners\",{enumerable:!0,get:function(){return o},set:function(e){if(\"number\"!=typeof e||e<0||i(e))throw RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+e+\".\");o=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(\"number\"!=typeof e||e<0||i(e))throw RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+e+\".\");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i=\"error\"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,a=Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if(\"function\"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r<u;++r)n(c[r],this,t);return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,s,o;if(a(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit(\"removeListener\",e,r.listener||t));else if(\"function\"!=typeof r){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,s=Object.keys(r);for(n=0;n<s.length;++n)\"removeListener\"!==(i=s[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return\"function\"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94023:function(e){\"use strict\";var t,r=(t=[{name:\"lowercase\",re:/[a-z]/,length:26},{name:\"uppercase\",re:/[A-Z]/,length:26},{name:\"numbers\",re:/[0-9]/,length:10},{name:\"symbols\",re:/[^a-zA-Z0-9]/,length:33}],function(e){return t.reduce(function(t,r){return t+(r.re.test(e)?r.length:0)},0)});e.exports=function(e){var t;return e?(t=r(e),Math.round(e.length*Math.log(t)/Math.LN2)):0}},27695:function(e){var t;t=function(){\"use strict\";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name=\"ArgumentError\",this.message=e}return function(r,n){if(n=n||{},\"function\"!=typeof r)throw new t(\"fetch must be a function\");if(\"object\"!=typeof n)throw new t(\"defaults must be an object\");if(void 0!==n.retries&&!e(n.retries))throw new t(\"retries must be a positive integer\");if(void 0!==n.retryDelay&&!e(n.retryDelay)&&\"function\"!=typeof n.retryDelay)throw new t(\"retryDelay must be a positive integer or a function returning a positive integer\");if(void 0!==n.retryOn&&!Array.isArray(n.retryOn)&&\"function\"!=typeof n.retryOn)throw new t(\"retryOn property expects an array or function\");return n=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},n),function(i,s){var o=n.retries,a=n.retryDelay,l=n.retryOn;if(s&&void 0!==s.retries){if(e(s.retries))o=s.retries;else throw new t(\"retries must be a positive integer\")}if(s&&void 0!==s.retryDelay){if(e(s.retryDelay)||\"function\"==typeof s.retryDelay)a=s.retryDelay;else throw new t(\"retryDelay must be a positive integer or a function returning a positive integer\")}if(s&&s.retryOn){if(Array.isArray(s.retryOn)||\"function\"==typeof s.retryOn)l=s.retryOn;else throw new t(\"retryOn property expects an array or function\")}return new Promise(function(e,t){var n=function(n){r(\"undefined\"!=typeof Request&&i instanceof Request?i.clone():i,s).then(function(r){if(Array.isArray(l)&&-1===l.indexOf(r.status))e(r);else if(\"function\"==typeof l)try{return Promise.resolve(l(n,null,r)).then(function(t){t?u(n,null,r):e(r)}).catch(t)}catch(e){t(e)}else n<o?u(n,null,r):e(r)}).catch(function(e){if(\"function\"==typeof l)try{Promise.resolve(l(n,e,null)).then(function(r){r?u(n,e,null):t(e)}).catch(function(e){t(e)})}catch(e){t(e)}else n<o?u(n,e,null):t(e)})};function u(e,t,r){setTimeout(function(){n(++e)},\"function\"==typeof a?a(e,t,r):a)}n(0)})}}},e.exports=t()},24816:function(e){\"use strict\";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),s=0;s<n.length;s++){var o=n[s],a=e[o];(i?-1!==t.indexOf(o):t(o,a,e))&&(r[o]=a)}return r}},83699:function(e,t,r){t.utils=r(69874),t.common=r(37142),t.sha=r(37727),t.ripemd=r(89561),t.hmac=r(40238),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},37142:function(e,t,r){\"use strict\";var n=r(69874),i=r(71974);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=s,s.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},s.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},s.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,\"big\"===this.endian){for(var s=8;s<this.padLength;s++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(s=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;s<this.padLength;s++)n[i++]=0;return n}},40238:function(e,t,r){\"use strict\";var n=r(69874),i=r(71974);function s(e,t,r){if(!(this instanceof s))return new s(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=s,s.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},s.prototype.update=function(e,t){return this.inner.update(e,t),this},s.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},89561:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=n.rotl32,o=n.sum32,a=n.sum32_3,l=n.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}n.inherits(c,u),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],m=r,y=n,b=i,v=u,w=c,_=0;_<80;_++){var E,A,x=o(s(l(r,d(_,n,i,u),e[h[_]+t],(E=_)<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838),p[_]),c);r=c,c=u,u=s(i,10),i=n,n=x,x=o(s(l(m,d(79-_,y,b,v),e[f[_]+t],(A=_)<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0),g[_]),w),m=w,w=v,v=s(b,10),b=y,y=x}x=a(this.h[1],i,v),this.h[1]=a(this.h[2],u,w),this.h[2]=a(this.h[3],c,m),this.h[3]=a(this.h[4],r,y),this.h[4]=a(this.h[0],n,b),this.h[0]=x},c.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"little\"):n.split32(this.h,\"little\")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},37727:function(e,t,r){\"use strict\";t.sha1=r(99659),t.sha224=r(15577),t.sha256=r(4132),t.sha384=r(65560),t.sha512=r(86124)},99659:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=r(9221),o=n.rotl32,a=n.sum32,l=n.sum32_5,u=s.ft_1,c=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],s=this.h[1],c=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=l(o(i,5),u(p,s,c,h),f,r[n],d[p]);f=h,h=c,c=o(s,30),s=i,i=g}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],c),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],f)},h.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"big\"):n.split32(this.h,\"big\")}},15577:function(e,t,r){\"use strict\";var n=r(69874),i=r(4132);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,i),e.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h.slice(0,7),\"big\"):n.split32(this.h.slice(0,7),\"big\")}},4132:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=r(9221),o=r(71974),a=n.sum32,l=n.sum32_4,u=n.sum32_5,c=s.ch32,d=s.maj32,h=s.s0_256,f=s.s1_256,p=s.g0_256,g=s.g1_256,m=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],s=this.h[1],m=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var E=u(_,f(b),c(b,v,w),this.k[n],r[n]),A=a(h(i),d(i,s,m));_=w,w=v,v=b,b=a(y,E),y=m,m=s,s=i,i=a(E,A)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},b.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"big\"):n.split32(this.h,\"big\")}},65560:function(e,t,r){\"use strict\";var n=r(69874),i=r(86124);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,i),e.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h.slice(0,12),\"big\"):n.split32(this.h.slice(0,12),\"big\")}},86124:function(e,t,r){\"use strict\";var n=r(69874),i=r(37142),s=r(71974),o=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,u=n.shr64_lo,c=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=Array(160)}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=o(e,t,19)^o(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),s=function(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),c=r[n-14],d=r[n-13],h=function(e,t){var r=o(e,t,1)^o(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),g=function(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),m=r[n-32],y=r[n-31];r[n]=f(i,s,c,d,h,g,m,y),r[n+1]=p(i,s,c,d,h,g,m,y)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],l=this.h[2],u=this.h[3],f=this.h[4],p=this.h[5],y=this.h[6],b=this.h[7],v=this.h[8],w=this.h[9],_=this.h[10],E=this.h[11],A=this.h[12],x=this.h[13],k=this.h[14],S=this.h[15];s(this.k.length===r.length);for(var $=0;$<r.length;$+=2){var C=k,P=S,I=function(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}(v,w),O=function(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}(v,w),N=function(e,t,r,n,i){var s=e&r^~e&i;return s<0&&(s+=4294967296),s}(v,0,_,0,A,x),M=function(e,t,r,n,i,s){var o=t&n^~t&s;return o<0&&(o+=4294967296),o}(0,w,0,E,0,x),R=this.k[$],T=this.k[$+1],D=r[$],L=r[$+1],j=g(C,P,I,O,N,M,R,T,D,L),B=m(C,P,I,O,N,M,R,T,D,L);C=function(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}(n,i);var F=d(C,P=function(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}(n,i),I=function(e,t,r,n,i){var s=e&r^e&i^r&i;return s<0&&(s+=4294967296),s}(n,0,l,0,f,p),O=function(e,t,r,n,i,s){var o=t&n^t&s^n&s;return o<0&&(o+=4294967296),o}(0,i,0,u,0,p)),U=h(C,P,I,O);k=A,S=x,A=_,x=E,_=v,E=w,v=d(y,b,j,B),w=h(b,b,j,B),y=f,b=p,f=l,p=u,l=n,u=i,n=d(j,B,F,U),i=h(j,B,F,U)}c(this.h,0,n,i),c(this.h,2,l,u),c(this.h,4,f,p),c(this.h,6,y,b),c(this.h,8,v,w),c(this.h,10,_,E),c(this.h,12,A,x),c(this.h,14,k,S)},v.prototype._digest=function(e){return\"hex\"===e?n.toHex32(this.h,\"big\"):n.split32(this.h,\"big\")}},9221:function(e,t,r){\"use strict\";var n=r(69874).rotr32;function i(e,t,r){return e&t^e&r^t&r}t.ft_1=function(e,t,r,n){return 0===e?t&r^~t&n:1===e||3===e?t^r^n:2===e?i(t,r,n):void 0},t.ch32=function(e,t,r){return e&t^~e&r},t.maj32=i,t.p32=function(e,t,r){return e^t^r},t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},69874:function(e,t,r){\"use strict\";var n=r(71974),i=r(87398);function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?\"0\"+e:e}function a(e){if(7===e.length)return\"0\"+e;if(6===e.length)return\"00\"+e;if(5===e.length)return\"000\"+e;if(4===e.length)return\"0000\"+e;if(3===e.length)return\"00000\"+e;if(2===e.length)return\"000000\"+e;if(1===e.length)return\"0000000\"+e;else return e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(\"string\"==typeof e){if(t){if(\"hex\"===t)for((e=e.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(e=\"0\"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s,o,a=e.charCodeAt(i);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:((s=e,o=i,(64512&s.charCodeAt(o))!=55296||o<0||o+1>=s.length?1:(64512&s.charCodeAt(o+1))!=56320)?r[n++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128),r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t=\"\",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var r=\"\",n=0;n<e.length;n++){var i=e[n];\"little\"===t&&(i=s(i)),r+=a(i.toString(16))}return r},t.zero2=o,t.zero8=a,t.join32=function(e,t,r,i){var s,o=r-t;n(o%4==0);for(var a=Array(o/4),l=0,u=t;l<a.length;l++,u+=4)s=\"big\"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[l]=s>>>0;return a},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var s=e[n];\"big\"===t?(r[i]=s>>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],s=n+e[t+1]>>>0;e[t]=(s<n?1:0)+r+i>>>0,e[t+1]=s},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,s,o,a){var l,u=t;return e+r+i+o+(0+((u=u+n>>>0)<t?1:0)+((u=u+s>>>0)<s?1:0)+((u=u+a>>>0)<a?1:0))>>>0},t.sum64_4_lo=function(e,t,r,n,i,s,o,a){return t+n+s+a>>>0},t.sum64_5_hi=function(e,t,r,n,i,s,o,a,l,u){var c,d=t;return e+r+i+o+l+(0+((d=d+n>>>0)<t?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+a>>>0)<a?1:0)+((d=d+u>>>0)<u?1:0))>>>0},t.sum64_5_lo=function(e,t,r,n,i,s,o,a,l,u){return t+n+s+a+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},46451:function(e,t,r){\"use strict\";var n=r(12659),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if(\"string\"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var a=l(t),g=l(r),m=0;m<o.length;++m){var y=o[m];if(!s[y]&&!(n&&n[y])&&!(g&&g[y])&&!(a&&a[y])){var b=h(r,y);try{u(t,y,b)}catch(e){}}}}return t}},6868:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,s=f&(1<<-c)-1,f>>=-c,c+=a;c>0;s=256*s+e[t+d],d+=h,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),s-=u}return(f?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,l,u=8*s-i-1,c=(1<<u)-1,d=c>>1,h=23===i?5960464477539062e-23:0,f=n?0:s-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(a=0,o=c):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*g}},87398:function(e){\"function\"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},83524:function(e,t,r){var n,i=r(25566);!function(){\"use strict\";var s=\"input is invalid type\",o=\"object\"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var l=!o&&\"object\"==typeof self;!a.JS_SHA3_NO_NODE_JS&&\"object\"==typeof i&&i.versions&&i.versions.node?a=r.g:l&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,d=!a.JS_SHA3_NO_ARRAY_BUFFER&&\"undefined\"!=typeof ArrayBuffer,h=\"0123456789abcdef\".split(\"\"),f=[4,1024,262144,67108864],p=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],y=[128,256],b=[\"hex\",\"buffer\",\"arrayBuffer\",\"array\",\"digest\"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return\"[object Array]\"===Object.prototype.toString.call(e)}),d&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return\"object\"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new T(e,t,e).update(n)[r]()}},_=function(e,t,r){return function(n,i){return new T(e,t,i).update(n)[r]()}},E=function(e,t,r){return function(t,n,i,s){return $[\"cshake\"+e].update(t,n,i,s)[r]()}},A=function(e,t,r){return function(t,n,i,s){return $[\"kmac\"+e].update(t,n,i,s)[r]()}},x=function(e,t,r,n){for(var i=0;i<b.length;++i){var s=b[i];e[s]=t(r,n,s)}return e},k=function(e,t){var r=w(e,t,\"hex\");return r.create=function(){return new T(e,t,e)},r.update=function(e){return r.create().update(e)},x(r,w,e,t)},S=[{name:\"keccak\",padding:[1,256,65536,16777216],bits:m,createMethod:k},{name:\"sha3\",padding:[6,1536,393216,100663296],bits:m,createMethod:k},{name:\"shake\",padding:[31,7936,2031616,520093696],bits:y,createMethod:function(e,t){var r=_(e,t,\"hex\");return r.create=function(r){return new T(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},x(r,_,e,t)}},{name:\"cshake\",padding:f,bits:y,createMethod:function(e,t){var r=v[e],n=E(e,t,\"hex\");return n.create=function(n,i,s){return i||s?new T(e,t,n).bytepad([i,s],r):$[\"shake\"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},x(n,E,e,t)}},{name:\"kmac\",padding:f,bits:y,createMethod:function(e,t){var r=v[e],n=A(e,t,\"hex\");return n.create=function(n,i,s){return new D(e,t,i).bytepad([\"KMAC\",s],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},x(n,A,e,t)}}],$={},C=[],P=0;P<S.length;++P)for(var I=S[P],O=I.bits,N=0;N<O.length;++N){var M=I.name+\"_\"+O[N];if(C.push(M),$[M]=I.createMethod(O[N],I.padding),\"sha3\"!==I.name){var R=I.name+O[N];C.push(R),$[R]=$[M]}}function T(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function D(e,t,r){T.call(this,e,t,r)}T.prototype.update=function(e){if(this.finalized)throw Error(\"finalize already called\");var t,r=typeof e;if(\"string\"!==r){if(\"object\"===r){if(null===e)throw Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(s)}else throw Error(s);t=!0}for(var n,i,o=this.blocks,a=this.byteCount,l=e.length,u=this.blockCount,c=0,h=this.s;c<l;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(t)for(n=this.start;c<l&&n<a;++c)o[n>>2]|=e[c]<<p[3&n++];else for(n=this.start;c<l&&n<a;++c)(i=e.charCodeAt(c))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++c)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)h[n]^=o[n];L(h),this.reset=!0}else this.start=n}return this},T.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},T.prototype.encodeString=function(e){var t,r=typeof e;if(\"string\"!==r){if(\"object\"===r){if(null===e)throw Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(s)}else throw Error(s);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},T.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,s=[];return s.length=i,this.update(s),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},T.prototype.toString=T.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=\"\";o<n;){for(s=0;s<t&&o<n;++s,++o)a+=h[(e=r[s])>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];o%t==0&&(L(r),s=0)}return i&&(a+=h[(e=r[s])>>4&15]+h[15&e],i>1&&(a+=h[e>>12&15]+h[e>>8&15]),i>2&&(a+=h[e>>20&15]+h[e>>16&15])),a},T.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:a));o<n;){for(s=0;s<t&&o<n;++s,++o)l[o]=r[s];o%t==0&&L(r)}return i&&(l[s]=r[s],e=e.slice(0,a)),e},T.prototype.buffer=T.prototype.arrayBuffer,T.prototype.digest=T.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,s=this.extraBytes,o=0,a=0,l=[];a<i;){for(o=0;o<r&&a<i;++o,++a)e=a<<2,t=n[o],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;a%r==0&&L(n)}return s&&(e=a<<2,t=n[o],l[e]=255&t,s>1&&(l[e+1]=t>>8&255),s>2&&(l[e+2]=t>>16&255)),l},D.prototype=new T,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),T.prototype.finalize.call(this)};var L=function(e){var t,r,n,i,s,o,a,l,u,c,d,h,f,p,m,y,b,v,w,_,E,A,x,k,S,$,C,P,I,O,N,M,R,T,D,L,j,B,F,U,z,q,H,G,V,W,K,Y,Z,J,Q,X,ee,et,er,en,ei,es,eo,ea,el,eu,ec;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],f=e[9]^e[19]^e[29]^e[39]^e[49],t=h^(o<<1|a>>>31),r=f^(a<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=s^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(c<<1|d>>>31),r=a^(d<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(h<<1|f>>>31),r=u^(f<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|s>>>31),r=d^(s<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],W=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ea=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,T=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,M=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,B=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,$=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,es=e[29]<<7|e[28]>>>25,eo=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=m^~b&w,e[10]=k^~$&P,e[11]=S^~C&I,e[20]=T^~L&B,e[21]=D^~j&F,e[30]=G^~W&Y,e[31]=V^~K&Z,e[40]=et^~en&es,e[41]=er^~ei&eo,e[2]=y^~v&_,e[3]=b^~w&E,e[12]=$^~P&O,e[13]=C^~I&N,e[22]=L^~B&U,e[23]=j^~F&z,e[32]=W^~Y&J,e[33]=K^~Z&Q,e[42]=en^~es&ea,e[43]=ei^~eo&el,e[4]=v^~_&A,e[5]=w^~E&x,e[14]=P^~O&M,e[15]=I^~N&R,e[24]=B^~U&q,e[25]=F^~z&H,e[34]=Y^~J&X,e[35]=Z^~Q&ee,e[44]=es^~ea&eu,e[45]=eo^~el&ec,e[6]=_^~A&p,e[7]=E^~x&m,e[16]=O^~M&k,e[17]=N^~R&S,e[26]=U^~q&T,e[27]=z^~H&D,e[36]=J^~X&G,e[37]=Q^~ee&V,e[46]=ea^~eu&et,e[47]=el^~ec&er,e[8]=A^~p&y,e[9]=x^~m&b,e[18]=M^~k&$,e[19]=R^~S&C,e[28]=q^~T&L,e[29]=H^~D&j,e[38]=X^~G&W,e[39]=ee^~V&K,e[48]=eu^~et&en,e[49]=ec^~er&ei,e[0]^=g[n],e[1]^=g[n+1]};if(u)e.exports=$;else{for(P=0;P<C.length;++P)a[C[P]]=$[C[P]];c&&void 0!==(n=(function(){return $}).call(t,r,t,e))&&(e.exports=n)}}()},6230:function(e,t,r){e.exports=r(80826)(r(14417))},80826:function(e,t,r){let n=r(58091),i=r(1911);e.exports=function(e){let t=n(e),r=i(e);return function(e,n){switch(\"string\"==typeof e?e.toLowerCase():e){case\"keccak224\":return new t(1152,448,null,224,n);case\"keccak256\":return new t(1088,512,null,256,n);case\"keccak384\":return new t(832,768,null,384,n);case\"keccak512\":return new t(576,1024,null,512,n);case\"sha3-224\":return new t(1152,448,6,224,n);case\"sha3-256\":return new t(1088,512,6,256,n);case\"sha3-384\":return new t(832,768,6,384,n);case\"sha3-512\":return new t(576,1024,6,512,n);case\"shake128\":return new r(1344,256,31,n);case\"shake256\":return new r(1088,512,31,n);default:throw Error(\"Invald algorithm: \"+e)}}}},58091:function(e,t,r){var n=r(9109).Buffer;let{Transform:i}=r(5939);e.exports=e=>class t extends i{constructor(t,r,n,i,s){super(s),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=s,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!n.isBuffer(e)&&\"string\"!=typeof e)throw TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw Error(\"Digest already called\");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error(\"Digest already called\");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},1911:function(e,t,r){var n=r(9109).Buffer;let{Transform:i}=r(5939);e.exports=e=>class t extends i{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&\"string\"!=typeof e)throw TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw Error(\"Squeeze already called\");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},66768:function(e,t){let r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){let n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],c=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],f=d^(s<<1|o>>>31),p=h^(o<<1|s>>>31),g=e[0]^f,m=e[1]^p,y=e[10]^f,b=e[11]^p,v=e[20]^f,w=e[21]^p,_=e[30]^f,E=e[31]^p,A=e[40]^f,x=e[41]^p;f=n^(a<<1|l>>>31),p=i^(l<<1|a>>>31);let k=e[2]^f,S=e[3]^p,$=e[12]^f,C=e[13]^p,P=e[22]^f,I=e[23]^p,O=e[32]^f,N=e[33]^p,M=e[42]^f,R=e[43]^p;f=s^(u<<1|c>>>31),p=o^(c<<1|u>>>31);let T=e[4]^f,D=e[5]^p,L=e[14]^f,j=e[15]^p,B=e[24]^f,F=e[25]^p,U=e[34]^f,z=e[35]^p,q=e[44]^f,H=e[45]^p;f=a^(d<<1|h>>>31),p=l^(h<<1|d>>>31);let G=e[6]^f,V=e[7]^p,W=e[16]^f,K=e[17]^p,Y=e[26]^f,Z=e[27]^p,J=e[36]^f,Q=e[37]^p,X=e[46]^f,ee=e[47]^p;f=u^(n<<1|i>>>31),p=c^(i<<1|n>>>31);let et=e[8]^f,er=e[9]^p,en=e[18]^f,ei=e[19]^p,es=e[28]^f,eo=e[29]^p,ea=e[38]^f,el=e[39]^p,eu=e[48]^f,ec=e[49]^p,ed=b<<4|y>>>28,eh=y<<4|b>>>28,ef=v<<3|w>>>29,ep=w<<3|v>>>29,eg=E<<9|_>>>23,em=_<<9|E>>>23,ey=A<<18|x>>>14,eb=x<<18|A>>>14,ev=k<<1|S>>>31,ew=S<<1|k>>>31,e_=C<<12|$>>>20,eE=$<<12|C>>>20,eA=P<<10|I>>>22,ex=I<<10|P>>>22,ek=N<<13|O>>>19,eS=O<<13|N>>>19,e$=M<<2|R>>>30,eC=R<<2|M>>>30,eP=D<<30|T>>>2,eI=T<<30|D>>>2,eO=L<<6|j>>>26,eN=j<<6|L>>>26,eM=F<<11|B>>>21,eR=B<<11|F>>>21,eT=U<<15|z>>>17,eD=z<<15|U>>>17,eL=H<<29|q>>>3,ej=q<<29|H>>>3,eB=G<<28|V>>>4,eF=V<<28|G>>>4,eU=K<<23|W>>>9,ez=W<<23|K>>>9,eq=Y<<25|Z>>>7,eH=Z<<25|Y>>>7,eG=J<<21|Q>>>11,eV=Q<<21|J>>>11,eW=ee<<24|X>>>8,eK=X<<24|ee>>>8,eY=et<<27|er>>>5,eZ=er<<27|et>>>5,eJ=en<<20|ei>>>12,eQ=ei<<20|en>>>12,eX=eo<<7|es>>>25,e0=es<<7|eo>>>25,e1=ea<<8|el>>>24,e2=el<<8|ea>>>24,e3=eu<<14|ec>>>18,e5=ec<<14|eu>>>18;e[0]=g^~e_&eM,e[1]=m^~eE&eR,e[10]=eB^~eJ&ef,e[11]=eF^~eQ&ep,e[20]=ev^~eO&eq,e[21]=ew^~eN&eH,e[30]=eY^~ed&eA,e[31]=eZ^~eh&ex,e[40]=eP^~eU&eX,e[41]=eI^~ez&e0,e[2]=e_^~eM&eG,e[3]=eE^~eR&eV,e[12]=eJ^~ef&ek,e[13]=eQ^~ep&eS,e[22]=eO^~eq&e1,e[23]=eN^~eH&e2,e[32]=ed^~eA&eT,e[33]=eh^~ex&eD,e[42]=eU^~eX&eg,e[43]=ez^~e0&em,e[4]=eM^~eG&e3,e[5]=eR^~eV&e5,e[14]=ef^~ek&eL,e[15]=ep^~eS&ej,e[24]=eq^~e1&ey,e[25]=eH^~e2&eb,e[34]=eA^~eT&eW,e[35]=ex^~eD&eK,e[44]=eX^~eg&e$,e[45]=e0^~em&eC,e[6]=eG^~e3&g,e[7]=eV^~e5&m,e[16]=ek^~eL&eB,e[17]=eS^~ej&eF,e[26]=e1^~ey&ev,e[27]=e2^~eb&ew,e[36]=eT^~eW&eY,e[37]=eD^~eK&eZ,e[46]=eg^~e$&eP,e[47]=em^~eC&eI,e[8]=e3^~g&e_,e[9]=e5^~m&eE,e[18]=eL^~eB&eJ,e[19]=ej^~eF&eQ,e[28]=ey^~ev&eO,e[29]=eb^~ew&eN,e[38]=eW^~eY&ed,e[39]=eK^~eZ&eh,e[48]=e$^~eP&eU,e[49]=eC^~eI&ez,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},14417:function(e,t,r){var n=r(9109).Buffer;let i=r(66768);function s(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}s.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},s.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},s.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,(128&e)!=0&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},s.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=n.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},s.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=s},8355:function(e,t,r){e=r.nmd(e);var n,i,s,o=\"__lodash_hash_undefined__\",a=\"[object Arguments]\",l=\"[object Array]\",u=\"[object Boolean]\",c=\"[object Date]\",d=\"[object Error]\",h=\"[object Function]\",f=\"[object Map]\",p=\"[object Number]\",g=\"[object Object]\",m=\"[object Promise]\",y=\"[object RegExp]\",b=\"[object Set]\",v=\"[object String]\",w=\"[object WeakMap]\",_=\"[object ArrayBuffer]\",E=\"[object DataView]\",A=/^\\[object .+?Constructor\\]$/,x=/^(?:0|[1-9]\\d*)$/,k={};k[\"[object Float32Array]\"]=k[\"[object Float64Array]\"]=k[\"[object Int8Array]\"]=k[\"[object Int16Array]\"]=k[\"[object Int32Array]\"]=k[\"[object Uint8Array]\"]=k[\"[object Uint8ClampedArray]\"]=k[\"[object Uint16Array]\"]=k[\"[object Uint32Array]\"]=!0,k[a]=k[l]=k[_]=k[u]=k[E]=k[c]=k[d]=k[h]=k[f]=k[p]=k[g]=k[y]=k[b]=k[v]=k[w]=!1;var S=\"object\"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,$=\"object\"==typeof self&&self&&self.Object===Object&&self,C=S||$||Function(\"return this\")(),P=t&&!t.nodeType&&t,I=P&&e&&!e.nodeType&&e,O=I&&I.exports===P,N=O&&S.process,M=function(){try{return N&&N.binding&&N.binding(\"util\")}catch(e){}}(),R=M&&M.isTypedArray;function T(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function D(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var L=Array.prototype,j=Function.prototype,B=Object.prototype,F=C[\"__core-js_shared__\"],U=j.toString,z=B.hasOwnProperty,q=(n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",H=B.toString,G=RegExp(\"^\"+U.call(z).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),V=O?C.Buffer:void 0,W=C.Symbol,K=C.Uint8Array,Y=B.propertyIsEnumerable,Z=L.splice,J=W?W.toStringTag:void 0,Q=Object.getOwnPropertySymbols,X=V?V.isBuffer:void 0,ee=(i=Object.keys,s=Object,function(e){return i(s(e))}),et=ek(C,\"DataView\"),er=ek(C,\"Map\"),en=ek(C,\"Promise\"),ei=ek(C,\"Set\"),es=ek(C,\"WeakMap\"),eo=ek(Object,\"create\"),ea=eC(et),el=eC(er),eu=eC(en),ec=eC(ei),ed=eC(es),eh=W?W.prototype:void 0,ef=eh?eh.valueOf:void 0;function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ey(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function eb(e){var t=this.__data__=new eg(e);this.size=t.size}function ev(e,t){for(var r=e.length;r--;)if(eP(e[r][0],t))return r;return -1}function ew(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":J&&J in Object(e)?function(e){var t=z.call(e,J),r=e[J];try{e[J]=void 0;var n=!0}catch(e){}var i=H.call(e);return n&&(t?e[J]=r:delete e[J]),i}(e):H.call(e)}function e_(e){return eD(e)&&ew(e)==a}function eE(e,t,r,n,i,s){var o=1&r,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var c=-1,d=!0,h=2&r?new ey:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var f=e[c],p=t[c];if(n)var g=o?n(p,f,c,t,e,s):n(f,p,c,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(f===e||i(f,e,r,n,s)))return h.push(t)})){d=!1;break}}else if(!(f===p||i(f,p,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}function eA(e){var t;return t=function(e){return null!=e&&eR(e.length)&&!eM(e)?function(e,t){var r,n=eO(e),i=!n&&eI(e),s=!n&&!i&&eN(e),o=!n&&!i&&!s&&eL(e),a=n||i||s||o,l=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=l.length;for(var c in e)z.call(e,c)&&!(a&&(\"length\"==c||s&&(\"offset\"==c||\"parent\"==c)||o&&(\"buffer\"==c||\"byteLength\"==c||\"byteOffset\"==c)||(r=null==(r=u)?9007199254740991:r)&&(\"number\"==typeof c||x.test(c))&&c>-1&&c%1==0&&c<r))&&l.push(c);return l}(e):function(e){if(t=e&&e.constructor,e!==(\"function\"==typeof t&&t.prototype||B))return ee(e);var t,r=[];for(var n in Object(e))z.call(e,n)&&\"constructor\"!=n&&r.push(n);return r}(e)}(e),eO(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eS(e))}function ex(e,t){var r,n=e.__data__;return(\"string\"==(r=typeof t)||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==t:null===t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}function ek(e,t){var r=null==e?void 0:e[t];return!(!eT(r)||q&&q in r)&&(eM(r)?G:A).test(eC(r))?r:void 0}ep.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ep.prototype.get=function(e){var t=this.__data__;if(eo){var r=t[e];return r===o?void 0:r}return z.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:z.call(t,e)},ep.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eo&&void 0===t?o:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,r=ev(t,e);return!(r<0)&&(r==t.length-1?t.pop():Z.call(t,r,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,r=ev(t,e);return r<0?void 0:t[r][1]},eg.prototype.has=function(e){return ev(this.__data__,e)>-1},eg.prototype.set=function(e,t){var r=this.__data__,n=ev(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(er||eg),string:new ep}},em.prototype.delete=function(e){var t=ex(this,e).delete(e);return this.size-=t?1:0,t},em.prototype.get=function(e){return ex(this,e).get(e)},em.prototype.has=function(e){return ex(this,e).has(e)},em.prototype.set=function(e,t){var r=ex(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,o),this},ey.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new eg,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eg){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eS=Q?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}(Q(e=Object(e)),function(t){return Y.call(e,t)})}:function(){return[]},e$=ew;function eC(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}function eP(e,t){return e===t||e!=e&&t!=t}(et&&e$(new et(new ArrayBuffer(1)))!=E||er&&e$(new er)!=f||en&&e$(en.resolve())!=m||ei&&e$(new ei)!=b||es&&e$(new es)!=w)&&(e$=function(e){var t=ew(e),r=t==g?e.constructor:void 0,n=r?eC(r):\"\";if(n)switch(n){case ea:return E;case el:return f;case eu:return m;case ec:return b;case ed:return w}return t});var eI=e_(function(){return arguments}())?e_:function(e){return eD(e)&&z.call(e,\"callee\")&&!Y.call(e,\"callee\")},eO=Array.isArray,eN=X||function(){return!1};function eM(e){if(!eT(e))return!1;var t=ew(e);return t==h||\"[object GeneratorFunction]\"==t||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function eR(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eT(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function eD(e){return null!=e&&\"object\"==typeof e}var eL=R?function(e){return R(e)}:function(e){return eD(e)&&eR(e.length)&&!!k[ew(e)]};e.exports=function(e,t){return function e(t,r,n,i,s){return t===r||(null!=t&&null!=r&&(eD(t)||eD(r))?function(e,t,r,n,i,s){var o=eO(e),h=eO(t),m=o?l:e$(e),w=h?l:e$(t);m=m==a?g:m,w=w==a?g:w;var A=m==g,x=w==g,k=m==w;if(k&&eN(e)){if(!eN(t))return!1;o=!0,A=!1}if(k&&!A)return s||(s=new eb),o||eL(e)?eE(e,t,r,n,i,s):function(e,t,r,n,i,s,o){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:if(e.byteLength!=t.byteLength||!s(new K(e),new K(t)))break;return!0;case u:case c:case p:return eP(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case v:return e==t+\"\";case f:var a=T;case b:var l=1&n;if(a||(a=D),e.size!=t.size&&!l)break;var h=o.get(e);if(h)return h==t;n|=2,o.set(e,t);var g=eE(a(e),a(t),n,i,s,o);return o.delete(e),g;case\"[object Symbol]\":if(ef)return ef.call(e)==ef.call(t)}return!1}(e,t,m,r,n,i,s);if(!(1&r)){var S=A&&z.call(e,\"__wrapped__\"),$=x&&z.call(t,\"__wrapped__\");if(S||$){var C=S?e.value():e,P=$?t.value():t;return s||(s=new eb),i(C,P,r,n,s)}}return!!k&&(s||(s=new eb),function(e,t,r,n,i,s){var o=1&r,a=eA(e),l=a.length;if(l!=eA(t).length&&!o)return!1;for(var u=l;u--;){var c=a[u];if(!(o?c in t:z.call(t,c)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var f=o;++u<l;){var p=e[c=a[u]],g=t[c];if(n)var m=o?n(g,p,c,t,e,s):n(p,g,c,e,t,s);if(!(void 0===m?p===g||i(p,g,r,n,s):m)){h=!1;break}f||(f=\"constructor\"==c)}if(h&&!f){var y=e.constructor,b=t.constructor;y!=b&&\"constructor\"in e&&\"constructor\"in t&&!(\"function\"==typeof y&&y instanceof y&&\"function\"==typeof b&&b instanceof b)&&(h=!1)}return s.delete(e),s.delete(t),h}(e,t,r,n,i,s))}(t,r,n,i,e,s):t!=t&&r!=r)}(e,t)}},71974:function(e){function t(e,t){if(!e)throw Error(t||\"Assertion failed\")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||\"Assertion failed: \"+e+\" != \"+t)}},37185:function(e){\"use strict\";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},57764:function(e,t,r){\"use strict\";r.r(t),r.d(t,{Component:function(){return k},Fragment:function(){return x},cloneElement:function(){return F},createContext:function(){return U},createElement:function(){return _},createRef:function(){return A},h:function(){return _},hydrate:function(){return B},isValidElement:function(){return o},options:function(){return i},render:function(){return j},toChildArray:function(){return function e(t,r){return r=r||[],null==t||\"boolean\"==typeof t||(b(t)?t.some(function(t){e(t,r)}):r.push(t)),r}}});var n,i,s,o,a,l,u,c,d,h,f,p,g={},m=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function v(e,t){for(var r in t)e[r]=t[r];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,r){var i,s,o,a={};for(o in t)\"key\"==o?i=t[o]:\"ref\"==o?s=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),\"function\"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return E(e,a,i,s,null)}function E(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=i.vnode&&i.vnode(a),a}function A(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return\"function\"==typeof e.type?S(e):null}function $(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!C.__r++||l!==i.debounceRendering)&&((l=i.debounceRendering)||u)(C)}function C(){var e,t,r,n,s,o,l,u;for(a.sort(c);e=a.shift();)e.__d&&(t=a.length,n=void 0,o=(s=(r=e).__v).__e,l=[],u=[],r.__P&&((n=v({},s)).__v=s.__v+1,i.vnode&&i.vnode(n),M(r.__P,n,s,r.__n,r.__P.namespaceURI,32&s.__u?[o]:null,l,null==o?S(s):o,!!(32&s.__u),u),n.__v=s.__v,n.__.__k[n.__i]=n,R(l,n,u),n.__e!=o&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n)),a.length>t&&a.sort(c));C.__r=0}function P(e,t,r,n,i,s,o,a,l,u,c){var d,h,f,p,y,v=n&&n.__k||m,w=t.length;for(r.__d=l,function(e,t,r){var n,i,s,o,a,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)o=n+d,null!=(i=e.__k[n]=null==(i=t[n])||\"boolean\"==typeof i||\"function\"==typeof i?null:\"string\"==typeof i||\"number\"==typeof i||\"bigint\"==typeof i||i.constructor==String?E(null,i,null,null,null):b(i)?E(x,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?E(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=function(e,t,r,n){var i=e.key,s=e.type,o=r-1,a=r+1,l=t[r];if(null===l||l&&i==l.key&&s===l.type&&0==(131072&l.__u))return r;if(n>(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return -1}(i,r,o,c),i.__i=a,s=null,-1!==a&&(c--,(s=r[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&d--,\"function\"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a==o-1?d=a-o:a==o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o&&d++,a!==n+d&&(i.__u|=65536))):(s=r[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=S(s)),D(s,s,!1),r[o]=null,c--);if(c)for(n=0;n<u;n++)null!=(s=r[n])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=S(s)),D(s,s))}(r,t,v),l=r.__d,d=0;d<w;d++)null!=(f=r.__k[d])&&\"boolean\"!=typeof f&&\"function\"!=typeof f&&(h=-1===f.__i?g:v[f.__i]||g,f.__i=d,M(e,f,h,i,s,o,a,l,u,c),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&T(h.ref,null,f),c.push(f.ref,f.__c||p,f)),null==y&&null!=p&&(y=p),65536&f.__u||h.__k===f.__k?l=function e(t,r,n){var i,s;if(\"function\"==typeof t.type){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,r=e(i[s],r,n));return r}t.__e!=r&&(r&&t.type&&!n.contains(r)&&(r=S(t)),n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType);return r}(f,l,e):\"function\"==typeof f.type&&void 0!==f.__d?l=f.__d:p&&(l=p.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=l,r.__e=y}function I(e,t,r){\"-\"===t[0]?e.setProperty(t,null==r?\"\":r):e[t]=null==r?\"\":\"number\"!=typeof r||y.test(t)?r:r+\"px\"}function O(e,t,r,n,i){var s;t:if(\"style\"===t){if(\"string\"==typeof r)e.style.cssText=r;else{if(\"string\"==typeof n&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||I(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||I(e.style,t,r[t])}}else if(\"o\"===t[0]&&\"n\"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase() in e||\"onFocusOut\"===t||\"onFocusIn\"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?n?r.u=n.u:(r.u=d,e.addEventListener(t,s?f:h,s)):e.removeEventListener(t,s?f:h,s);else{if(\"http://www.w3.org/2000/svg\"==i)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=t&&\"height\"!=t&&\"href\"!=t&&\"list\"!=t&&\"form\"!=t&&\"tabIndex\"!=t&&\"download\"!=t&&\"rowSpan\"!=t&&\"colSpan\"!=t&&\"role\"!=t&&\"popover\"!=t&&t in e)try{e[t]=null==r?\"\":r;break t}catch(e){}\"function\"==typeof r||(null==r||!1===r&&\"-\"!==t[4]?e.removeAttribute(t):e.setAttribute(t,\"popover\"==t&&1==r?\"\":r))}}function N(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<r.u)return;return r(i.event?i.event(t):t)}}}function M(e,t,r,s,o,a,l,u,c,d){var h,f,p,m,y,_,E,A,$,C,I,N,M,R,T,D,j=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),a=[u=t.__e=r.__e]),(h=i.__b)&&h(t);t:if(\"function\"==typeof j)try{if(A=t.props,$=\"prototype\"in j&&j.prototype.render,C=(h=j.contextType)&&s[h.__c],I=h?C?C.props.value:h.__:s,r.__c?E=(f=t.__c=r.__c).__=f.__E:($?t.__c=f=new j(A,I):(t.__c=f=new k(A,I),f.constructor=j,f.render=L),C&&C.sub(f),f.props=A,f.state||(f.state={}),f.context=I,f.__n=s,p=f.__d=!0,f.__h=[],f._sb=[]),$&&null==f.__s&&(f.__s=f.state),$&&null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,j.getDerivedStateFromProps(A,f.__s))),m=f.props,y=f.state,f.__v=t,p)$&&null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),$&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if($&&null==j.getDerivedStateFromProps&&A!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(A,I),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(A,f.__s,I)||t.__v===r.__v)){for(t.__v!==r.__v&&(f.props=A,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),N=0;N<f._sb.length;N++)f.__h.push(f._sb[N]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(A,f.__s,I),$&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(m,y,_)})}if(f.context=I,f.props=A,f.__P=e,f.__e=!1,M=i.__r,R=0,$){for(f.state=f.__s,f.__d=!1,M&&M(t),h=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,M&&M(t),h=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++R<25);f.state=f.__s,null!=f.getChildContext&&(s=v(v({},s),f.getChildContext())),$&&!p&&null!=f.getSnapshotBeforeUpdate&&(_=f.getSnapshotBeforeUpdate(m,y)),P(e,b(D=null!=h&&h.type===x&&null==h.key?h.props.children:h)?D:[D],t,r,s,o,a,l,u,c,d),f.base=t.__e,t.__u&=-161,f.__h.length&&l.push(f),E&&(f.__E=f.__=null)}catch(e){if(t.__v=null,c||null!=a){for(t.__u|=c?160:32;u&&8===u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,t.__e=u}else t.__e=r.__e,t.__k=r.__k;i.__e(e,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,i,s,o,a,l,u){var c,d,h,f,p,m,y,v=r.props,_=t.props,E=t.type;if(\"svg\"===E?s=\"http://www.w3.org/2000/svg\":\"math\"===E?s=\"http://www.w3.org/1998/Math/MathML\":s||(s=\"http://www.w3.org/1999/xhtml\"),null!=o){for(c=0;c<o.length;c++)if((p=o[c])&&\"setAttribute\"in p==!!E&&(E?p.localName===E:3===p.nodeType)){e=p,o[c]=null;break}}if(null==e){if(null===E)return document.createTextNode(_);e=document.createElementNS(s,E,_.is&&_),o=null,l=!1}if(null===E)v===_||l&&e.data===_||(e.data=_);else{if(o=o&&n.call(e.childNodes),v=r.props||g,!l&&null!=o)for(v={},c=0;c<e.attributes.length;c++)v[(p=e.attributes[c]).name]=p.value;for(c in v)if(p=v[c],\"children\"==c);else if(\"dangerouslySetInnerHTML\"==c)h=p;else if(\"key\"!==c&&!(c in _)){if(\"value\"==c&&\"defaultValue\"in _||\"checked\"==c&&\"defaultChecked\"in _)continue;O(e,c,null,p,s)}for(c in _)p=_[c],\"children\"==c?f=p:\"dangerouslySetInnerHTML\"==c?d=p:\"value\"==c?m=p:\"checked\"==c?y=p:\"key\"===c||l&&\"function\"!=typeof p||v[c]===p||O(e,c,p,v[c],s);if(d)l||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=\"\"),P(e,b(f)?f:[f],t,r,i,\"foreignObject\"===E?\"http://www.w3.org/1999/xhtml\":s,o,a,o?o[0]:r.__k&&S(r,0),l,u),null!=o)for(c=o.length;c--;)null!=o[c]&&w(o[c]);l||(c=\"value\",void 0===m||m===e[c]&&(\"progress\"!==E||m)&&(\"option\"!==E||m===v[c])||O(e,c,m,v[c],s),c=\"checked\",void 0!==y&&y!==e[c]&&O(e,c,y,v[c],s))}return e}(r.__e,t,r,s,o,a,l,c,d);(h=i.diffed)&&h(t)}function R(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)T(r[n],r[++n],r[++n]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function T(e,t,r){try{if(\"function\"==typeof e){var n=\"function\"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,r)}}function D(e,t,r){var n,s;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||T(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&D(n[s],t,r||\"function\"!=typeof e.type);r||null==e.__e||w(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function L(e,t,r){return this.constructor(e,r)}function j(e,t,r){var s,o,a,l;i.__&&i.__(e,t),o=(s=\"function\"==typeof r)?null:r&&r.__k||t.__k,a=[],l=[],M(t,e=(!s&&r||t).__k=_(x,null,[e]),o||g,g,t.namespaceURI,!s&&r?[r]:o?null:t.firstChild?n.call(t.childNodes):null,a,!s&&r?r:o?o.__e:t.firstChild,s,l),R(a,e,l)}function B(e,t){j(e,t,B)}function F(e,t,r){var i,s,o,a,l=v({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)\"key\"==o?i=t[o]:\"ref\"==o?s=t[o]:l[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),E(e.type,l,i||e.key,s||e.ref,null)}function U(e,t){var r={__c:t=\"__cC\"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(function(e){e.__e=!0,$(e)})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}n=m.slice,i={__e:function(e,t,r,n){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},s=0,o=function(e){return null!=e&&null==e.constructor},k.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),\"function\"==typeof e&&(e=e(v({},r),this.props)),e&&v(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},k.prototype.render=x,a=[],u=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,d=0,h=N(!1),f=N(!0),p=0},83148:function(e,t,r){\"use strict\";r.r(t),r.d(t,{useCallback:function(){return k},useContext:function(){return S},useDebugValue:function(){return $},useEffect:function(){return w},useErrorBoundary:function(){return C},useId:function(){return P},useImperativeHandle:function(){return A},useLayoutEffect:function(){return _},useMemo:function(){return x},useReducer:function(){return v},useRef:function(){return E},useState:function(){return b}});var n,i,s,o,a=r(57764),l=0,u=[],c=a.options,d=c.__b,h=c.__r,f=c.diffed,p=c.__c,g=c.unmount,m=c.__;function y(e,t){c.__h&&c.__h(i,e,l||t),l=0;var r=i.__H||(i.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function b(e){return l=1,v(T,e)}function v(e,t,r){var s=y(n++,2);if(s.t=e,!s.__c&&(s.__=[r?r(t):T(void 0,t),function(e){var t=s.__N?s.__N[0]:s.__[0],r=s.t(t,e);t!==r&&(s.__N=[r,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(e,t,r){if(!s.__c.__H)return!0;var n=s.__c.__H.__.filter(function(e){return!!e.__c});if(n.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var i=!1;return n.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&s.__c.props===e)&&(!a||a.call(this,e,t,r))};i.u=!0;var a=i.shouldComponentUpdate,l=i.componentWillUpdate;i.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,o(e,t,r),a=n}l&&l.call(this,e,t,r)},i.shouldComponentUpdate=o}return s.__N||s.__}function w(e,t){var r=y(n++,3);!c.__s&&R(r.__H,t)&&(r.__=e,r.i=t,i.__H.__h.push(r))}function _(e,t){var r=y(n++,4);!c.__s&&R(r.__H,t)&&(r.__=e,r.i=t,i.__h.push(r))}function E(e){return l=5,x(function(){return{current:e}},[])}function A(e,t,r){l=6,_(function(){return\"function\"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))}function x(e,t){var r=y(n++,7);return R(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function k(e,t){return l=8,x(function(){return e},t)}function S(e){var t=i.context[e.__c],r=y(n++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(i)),t.props.value):e.__}function $(e,t){c.useDebugValue&&c.useDebugValue(t?t(e):e)}function C(e){var t=y(n++,10),r=b();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function P(){var e=y(n++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__=\"P\"+r[0]+\"-\"+r[1]++}return e.__}function I(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(N),e.__H.__h.forEach(M),e.__H.__h=[]}catch(t){e.__H.__h=[],c.__e(t,e.__v)}}c.__b=function(e){i=null,d&&d(e)},c.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),m&&m(e,t)},c.__r=function(e){h&&h(e),n=0;var t=(i=e.__c).__H;t&&(s===i?(t.__h=[],i.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(N),t.__h.forEach(M),t.__h=[],n=0)),s=i},c.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&o===c.requestAnimationFrame||((o=c.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),O&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);O&&(t=requestAnimationFrame(r))})(I)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),s=i=null},c.__c=function(e,t){t.some(function(e){try{e.__h.forEach(N),e.__h=e.__h.filter(function(e){return!e.__||M(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],c.__e(r,e.__v)}}),p&&p(e,t)},c.unmount=function(e){g&&g(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{N(e)}catch(e){t=e}}),r.__H=void 0,t&&c.__e(t,r.__v))};var O=\"function\"==typeof requestAnimationFrame;function N(e){var t=i,r=e.__c;\"function\"==typeof r&&(e.__c=void 0,r()),i=t}function M(e){var t=i;e.__c=e.__(),i=t}function R(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function T(e,t){return\"function\"==typeof t?t(e):t}},19783:function(e,t,r){let n=r(87936),i=r(23364),s=r(64811),o=r(65773);function a(e,t,r,s,o){let a=[].slice.call(arguments,1),l=a.length,u=\"function\"==typeof a[l-1];if(!u&&!n())throw Error(\"Callback required as last argument\");if(u){if(l<2)throw Error(\"Too few arguments provided\");2===l?(o=r,r=t,t=s=void 0):3===l&&(t.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=t,t=void 0))}else{if(l<1)throw Error(\"Too few arguments provided\");return 1===l?(r=t,t=s=void 0):2!==l||t.getContext||(s=r,r=t,t=void 0),new Promise(function(n,o){try{let o=i.create(r,s);n(e(o,t,s))}catch(e){o(e)}})}try{let n=i.create(r,s);o(null,e(n,t,s))}catch(e){o(e)}}t.create=i.create,t.toCanvas=a.bind(null,s.render),t.toDataURL=a.bind(null,s.renderToDataURL),t.toString=a.bind(null,function(e,t,r){return o.render(e,r)})},87936:function(e){e.exports=function(){return\"function\"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},80532:function(e,t,r){let n=r(2601).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),s=[r-7];for(let e=1;e<t-1;e++)s[e]=s[e-1]-i;return s.push(6),s.reverse()},t.getPositions=function(e){let r=[],n=t.getRowColCoords(e),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)(0!==e||0!==t)&&(0!==e||t!==i-1)&&(e!==i-1||0!==t)&&r.push([n[e],n[t]]);return r}},62971:function(e,t,r){let n=r(58257),i=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\" \",\"$\",\"%\",\"*\",\"+\",\"-\",\".\",\"/\",\":\"];function s(e){this.mode=n.ALPHANUMERIC,this.data=e}s.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t]);r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=s},86423:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},43143:function(e){function t(e){if(!e||e<1)throw Error(\"BitMatrix size must be defined and greater than 0\");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},23841:function(e,t,r){let n=r(47059),i=r(58257);function s(e){this.mode=i.BYTE,\"string\"==typeof e&&(e=n(e)),this.data=new Uint8Array(e)}s.getBitsLength=function(e){return 8*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=s},34270:function(e,t,r){let n=r(38428),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return i[(e-1)*4+0];case n.M:return i[(e-1)*4+1];case n.Q:return i[(e-1)*4+2];case n.H:return i[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return s[(e-1)*4+0];case n.M:return s[(e-1)*4+1];case n.Q:return s[(e-1)*4+2];case n.H:return s[(e-1)*4+3];default:return}}},38428:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if(\"string\"!=typeof e)throw Error(\"Param is not a string\");switch(e.toLowerCase()){case\"l\":case\"low\":return t.L;case\"m\":case\"medium\":return t.M;case\"q\":case\"quartile\":return t.Q;case\"h\":case\"high\":return t.H;default:throw Error(\"Unknown EC Level: \"+e)}}(e)}catch(e){return r}}},16123:function(e,t,r){let n=r(2601).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},59906:function(e,t,r){let n=r(2601),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,s=r<<10;for(;n.getBCHDigit(s)-i>=0;)s^=1335<<n.getBCHDigit(s)-i;return(r<<10|s)^21522}},61011:function(e,t){let r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error(\"log(\"+e+\")\");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},62558:function(e,t,r){let n=r(58257),i=r(2601);function s(e){this.mode=n.KANJI,this.data=e}s.getBitsLength=function(e){return 13*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error(\"Invalid SJIS character: \"+this.data[t]+\"\\nMake sure your charset is UTF-8\");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=s},42903:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&\"\"!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,i=0,s=0,o=null,a=null;for(let l=0;l<t;l++){i=s=0,o=a=null;for(let u=0;u<t;u++){let t=e.get(l,u);t===o?i++:(i>=5&&(n+=r.N1+(i-5)),o=t,i=1),(t=e.get(u,l))===a?s++:(s>=5&&(n+=r.N1+(s-5)),a=t,s=1)}i>=5&&(n+=r.N1+(i-5)),s>=5&&(n+=r.N1+(s-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(4===t||0===t)&&n++}return n*r.N2},t.getPenaltyN3=function(e){let t=e.size,n=0,i=0,s=0;for(let r=0;r<t;r++){i=s=0;for(let o=0;o<t;o++)i=i<<1&2047|e.get(r,o),o>=10&&(1488===i||93===i)&&n++,s=s<<1&2047|e.get(o,r),o>=10&&(1488===s||93===s)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*r.N4},t.applyMask=function(e,r){let n=r.size;for(let i=0;i<n;i++)for(let s=0;s<n;s++)r.isReserved(s,i)||r.xor(s,i,function(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error(\"bad maskPattern:\"+e)}}(e,s,i))},t.getBestMask=function(e,r){let n=Object.keys(t.Patterns).length,i=0,s=1/0;for(let o=0;o<n;o++){r(o),t.applyMask(o,e);let n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),n<s&&(s=n,i=o)}return i}},58257:function(e,t,r){let n=r(66477),i=r(36276);t.NUMERIC={id:\"Numeric\",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:\"Alphanumeric\",bit:2,ccBits:[9,11,13]},t.BYTE={id:\"Byte\",bit:4,ccBits:[8,16,16]},t.KANJI={id:\"Kanji\",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error(\"Invalid mode: \"+e);if(!n.isValid(t))throw Error(\"Invalid version: \"+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error(\"Invalid mode\")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if(\"string\"!=typeof e)throw Error(\"Param is not a string\");switch(e.toLowerCase()){case\"numeric\":return t.NUMERIC;case\"alphanumeric\":return t.ALPHANUMERIC;case\"kanji\":return t.KANJI;case\"byte\":return t.BYTE;default:throw Error(\"Unknown mode: \"+e)}}(e)}catch(e){return r}}},6078:function(e,t,r){let n=r(58257);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=i},80958:function(e,t,r){let n=r(61011);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let s=0;s<t.length;s++)r[i+s]^=n.mul(e[i],t[s]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let i=0;i<t.length;i++)r[i]^=n.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]));return r}},23364:function(e,t,r){let n=r(2601),i=r(38428),s=r(86423),o=r(43143),a=r(80532),l=r(16123),u=r(42903),c=r(34270),d=r(84001),h=r(11888),f=r(59906),p=r(58257),g=r(25051);function m(e,t,r){let n,i;let s=e.size,o=f.getEncodedBits(t,r);for(n=0;n<15;n++)i=(o>>n&1)==1,n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(s-15+n,8,i,!0),n<8?e.set(8,s-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(s-8,8,1,!0)}t.create=function(e,t){let r,f;if(void 0===e||\"\"===e)throw Error(\"No input text\");let y=i.M;return void 0!==t&&(y=i.from(t.errorCorrectionLevel,i.M),r=h.from(t.version),f=u.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let f;if(Array.isArray(e))f=g.fromArray(e);else if(\"string\"==typeof e){let n=t;if(!n){let t=g.rawSplit(e);n=h.getBestVersionForData(t,r)}f=g.fromString(e,n||40)}else throw Error(\"Invalid data\");let y=h.getBestVersionForData(f,r);if(!y)throw Error(\"The amount of data is too big to be stored in a QR Code\");if(t){if(t<y)throw Error(\"\\nThe chosen QR Code version cannot contain this amount of data.\\nMinimum version required to store current data is: \"+y+\".\\n\")}else t=y;let b=function(e,t,r){let i=new s;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)});let o=(n.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t))*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let a=(o-i.getLengthInBits())/8;for(let e=0;e<a;e++)i.put(e%2?17:236,8);return function(e,t,r){let i,s;let o=n.getSymbolTotalCodewords(t),a=o-c.getTotalCodewordsCount(t,r),l=c.getBlocksCount(t,r),u=o%l,h=l-u,f=Math.floor(o/l),p=Math.floor(a/l),g=p+1,m=f-p,y=new d(m),b=0,v=Array(l),w=Array(l),_=0,E=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?p:g;v[e]=E.slice(b,b+t),w[e]=y.encode(v[e]),b+=t,_=Math.max(_,t)}let A=new Uint8Array(o),x=0;for(i=0;i<_;i++)for(s=0;s<l;s++)i<v[s].length&&(A[x++]=v[s][i]);for(i=0;i<m;i++)for(s=0;s<l;s++)A[x++]=w[s][i];return A}(i,e,t)}(t,r,f),v=new o(n.getSymbolSize(t));return function(e,t){let r=e.size,n=l.getPositions(t);for(let t=0;t<n.length;t++){let i=n[t][0],s=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1)&&!(r<=i+t))for(let n=-1;n<=7;n++)s+n<=-1||r<=s+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,s+n,!0,!0):e.set(i+t,s+n,!1,!0))}}(v,t),function(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(v),function(e,t){let r=a.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(v,t),m(v,r,0),t>=7&&function(e,t){let r,n,i;let s=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+s-8-3,i=(o>>t&1)==1,e.set(r,n,i,!0),e.set(n,r,i,!0)}(v,t),function(e,t){let r=e.size,n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,a-r)){let n=!1;o<t.length&&(n=(t[o]>>>s&1)==1),e.set(i,a-r,n),-1==--s&&(o++,s=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(v,b),isNaN(i)&&(i=u.getBestMask(v,m.bind(null,v,r))),u.applyMask(i,v),m(v,r,i),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:i,segments:f}}(e,r,y,f)}},84001:function(e,t,r){let n=r(80958);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error(\"Encoder not initialized\");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},36276:function(e,t){let r=\"[0-9]+\",n=\"(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+\",i=\"(?:(?![A-Z0-9 $%*+\\\\-./:]|\"+(n=n.replace(/u/g,\"\\\\u\"))+\")(?:.|[\\r\\n]))+\";t.KANJI=RegExp(n,\"g\"),t.BYTE_KANJI=RegExp(\"[^A-Z0-9 $%*+\\\\-./:]+\",\"g\"),t.BYTE=RegExp(i,\"g\"),t.NUMERIC=RegExp(r,\"g\"),t.ALPHANUMERIC=RegExp(\"[A-Z $%*+\\\\-./:]+\",\"g\");let s=RegExp(\"^\"+n+\"$\"),o=RegExp(\"^\"+r+\"$\"),a=RegExp(\"^[A-Z0-9 $%*+\\\\-./:]+$\");t.testKanji=function(e){return s.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},25051:function(e,t,r){let n=r(58257),i=r(6078),s=r(62971),o=r(23841),a=r(62558),l=r(36276),u=r(2601),c=r(52892);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,r){let n;let i=[];for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function f(e){let t,r;let i=h(l.NUMERIC,n.NUMERIC,e),s=h(l.ALPHANUMERIC,n.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=h(l.BYTE,n.BYTE,e),r=h(l.KANJI,n.KANJI,e)):(t=h(l.BYTE_KANJI,n.BYTE,e),r=[]),i.concat(s,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return s.getBitsLength(e);case n.KANJI:return a.getBitsLength(e);case n.BYTE:return o.getBitsLength(e)}}function g(e,t){let r;let l=n.getBestModeForData(e);if((r=n.from(t,l))!==n.BYTE&&r.bit<l.bit)throw Error('\"'+e+'\" cannot be encoded with mode '+n.toString(r)+\".\\n Suggested mode is: \"+n.toString(l));switch(r!==n.KANJI||u.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new s(e);case n.KANJI:return new a(e);case n.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return\"string\"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,r){let i=function(e,t){let r={},i={start:{}},s=[\"start\"];for(let o=0;o<e.length;o++){let a=e[o],l=[];for(let e=0;e<a.length;e++){let u=a[e],c=\"\"+o+e;l.push(c),r[c]={node:u,lastCount:0},i[c]={};for(let e=0;e<s.length;e++){let o=s[e];r[o]&&r[o].node.mode===u.mode?(i[o][c]=p(r[o].lastCount+u.length,u.mode)-p(r[o].lastCount,u.mode),r[o].lastCount+=u.length):(r[o]&&(r[o].lastCount=u.length),i[o][c]=p(u.length,u.mode)+4+n.getCharCountIndicator(u.mode,t))}}s=l}for(let e=0;e<s.length;e++)i[s[e]].end=0;return{map:i,table:r}}(function(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}(f(e,u.isKanjiModeEnabled())),r),s=c.find_path(i.map,\"start\",\"end\"),o=[];for(let e=1;e<s.length-1;e++)o.push(i.table[s[e]].node);return t.fromArray(o.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(f(e,u.isKanjiModeEnabled()))}},2601:function(e,t){let r;let n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('\"version\" cannot be null or undefined');if(e<1||e>40)throw Error('\"version\" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if(\"function\"!=typeof e)throw Error('\"toSJISFunc\" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},66477:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},11888:function(e,t,r){let n=r(2601),i=r(34270),s=r(38428),o=r(58257),a=r(66477),l=n.getBCHDigit(7973);function u(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!a.isValid(e))throw Error(\"Invalid QR Code version\");void 0===r&&(r=o.BYTE);let s=(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t))*8;if(r===o.MIXED)return s;let l=s-u(r,e);switch(r){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){let n;let i=s.from(r,s.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(function(e,t){let r=0;return e.forEach(function(e){let n=u(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n)<=t.getCapacity(n,r,o.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(\"Invalid QR Code version\");let t=e<<12;for(;n.getBCHDigit(t)-l>=0;)t^=7973<<n.getBCHDigit(t)-l;return e<<12|t}},64811:function(e,t,r){let n=r(59472);t.render=function(e,t,r){var i;let s=r,o=t;void 0!==s||t&&t.getContext||(s=t,t=void 0),t||(o=function(){try{return document.createElement(\"canvas\")}catch(e){throw Error(\"You need to specify a canvas element\")}}()),s=n.getOptions(s);let a=n.getImageWidth(e.modules.size,s),l=o.getContext(\"2d\"),u=l.createImageData(a,a);return n.qrToImageData(u.data,e,s),i=o,l.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+\"px\",i.style.width=a+\"px\",l.putImageData(u,0,0),o},t.renderToDataURL=function(e,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});let s=t.render(e,r,i),o=i.type||\"image/png\",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}},65773:function(e,t,r){let n=r(59472);function i(e,t){let r=e.a/255,n=t+'=\"'+e.hex+'\"';return r<1?n+\" \"+t+'-opacity=\"'+r.toFixed(2).slice(1)+'\"':n}function s(e,t,r){let n=e+t;return void 0!==r&&(n+=\" \"+r),n}t.render=function(e,t,r){let o=n.getOptions(t),a=e.modules.size,l=e.modules.data,u=a+2*o.margin,c=o.color.light.a?\"<path \"+i(o.color.light,\"fill\")+' d=\"M0 0h'+u+\"v\"+u+'H0z\"/>':\"\",d=\"<path \"+i(o.color.dark,\"stroke\")+' d=\"'+function(e,t,r){let n=\"\",i=0,o=!1,a=0;for(let l=0;l<e.length;l++){let u=Math.floor(l%t),c=Math.floor(l/t);u||o||(o=!0),e[l]?(a++,l>0&&u>0&&e[l-1]||(n+=o?s(\"M\",u+r,.5+c+r):s(\"m\",i,0),i=0,o=!1),u+1<t&&e[l+1]||(n+=s(\"h\",a),a=0)):i++}return n}(l,a,o.margin)+'\"/>',h='<svg xmlns=\"http://www.w3.org/2000/svg\" '+(o.width?'width=\"'+o.width+'\" height=\"'+o.width+'\" ':\"\")+('viewBox=\"0 0 '+u)+\" \"+u+'\" shape-rendering=\"crispEdges\">'+c+d+\"</svg>\\n\";return\"function\"==typeof r&&r(null,h),h}},59472:function(e,t){function r(e){if(\"number\"==typeof e&&(e=e.toString()),\"string\"!=typeof e)throw Error(\"Color should be defined as hex string\");let t=e.slice().replace(\"#\",\"\").split(\"\");if(t.length<3||5===t.length||t.length>8)throw Error(\"Invalid hex color: \"+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push(\"F\",\"F\");let r=parseInt(t.join(\"\"),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:\"#\"+t.slice(0,6).join(\"\")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||\"#000000ff\"),light:r(e.color.light||\"#ffffffff\")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let i=r.modules.size,s=r.modules.data,o=t.getScale(i,n),a=Math.floor((i+2*n.margin)*o),l=n.margin*o,u=[n.color.light,n.color.dark];for(let t=0;t<a;t++)for(let r=0;r<a;r++){let c=(t*a+r)*4,d=n.color.light;t>=l&&r>=l&&t<a-l&&r<a-l&&(d=u[s[Math.floor((t-l)/o)*i+Math.floor((r-l)/o)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},61179:function(e,t,r){\"use strict\";let n=r(29276),i=r(56368),s=r(76442),o=r(24816),a=e=>null==e,l=Symbol(\"encodeFragmentIdentifier\");function u(e){if(\"string\"!=typeof e||1!==e.length)throw TypeError(\"arrayFormatSeparator must be single character string\")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?i(e):e}function h(e){let t=e.indexOf(\"#\");return -1!==t&&(e=e.slice(0,t)),e}function f(e){let t=(e=h(e)).indexOf(\"?\");return -1===t?\"\":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&\"string\"==typeof e&&\"\"!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&(\"true\"===e.toLowerCase()||\"false\"===e.toLowerCase())&&(e=\"true\"===e.toLowerCase()),e}function g(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:\"none\",arrayFormatSeparator:\",\",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case\"index\":return(e,r,n)=>{if(t=/\\[(\\d*)\\]$/.exec(e),e=e.replace(/\\[\\d*\\]$/,\"\"),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case\"bracket\":return(e,r,n)=>{if(t=/(\\[\\])$/.exec(e),e=e.replace(/\\[\\]$/,\"\"),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case\"colon-list-separator\":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,\"\"),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case\"comma\":case\"separator\":return(t,r,n)=>{let i=\"string\"==typeof r&&r.includes(e.arrayFormatSeparator),s=\"string\"==typeof r&&!i&&d(r,e).includes(e.arrayFormatSeparator);r=s?d(r,e):r;let o=i||s?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=o};case\"bracket-separator\":return(t,r,n)=>{let i=/(\\[\\])$/.test(t);if(t=t.replace(/\\[\\]$/,\"\"),!i){n[t]=r?d(r,e):r;return}let s=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===n[t]){n[t]=s;return}n[t]=[].concat(n[t],s)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if(\"string\"!=typeof e||!(e=e.trim().replace(/^[?#&]/,\"\")))return n;for(let i of e.split(\"&\")){if(\"\"===i)continue;let[e,o]=s(t.decode?i.replace(/\\+/g,\" \"):i,\"=\");o=void 0===o?null:[\"comma\",\"separator\",\"bracket-separator\"].includes(t.arrayFormat)?o:d(o,t),r(d(e,t),o,n)}for(let e of Object.keys(n)){let r=n[e];if(\"object\"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&\"object\"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():\"object\"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=f,t.parse=g,t.stringify=(e,t)=>{if(!e)return\"\";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:\"none\",arrayFormatSeparator:\",\"},t)).arrayFormatSeparator);let r=r=>t.skipNull&&a(e[r])||t.skipEmptyString&&\"\"===e[r],n=function(e){switch(e.arrayFormat){case\"index\":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,[c(t,e),\"[\",i,\"]\"].join(\"\")]:[...r,[c(t,e),\"[\",c(i,e),\"]=\",c(n,e)].join(\"\")]};case\"bracket\":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,[c(t,e),\"[]\"].join(\"\")]:[...r,[c(t,e),\"[]=\",c(n,e)].join(\"\")];case\"colon-list-separator\":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,[c(t,e),\":list=\"].join(\"\")]:[...r,[c(t,e),\":list=\",c(n,e)].join(\"\")];case\"comma\":case\"separator\":case\"bracket-separator\":{let t=\"bracket-separator\"===e.arrayFormat?\"[]=\":\"=\";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&\"\"===i?n:(i=null===i?\"\":i,0===n.length)?[[c(r,e),t,c(i,e)].join(\"\")]:[[n,c(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&\"\"===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),\"=\",c(n,e)].join(\"\")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map(r=>{let i=e[r];return void 0===i?\"\":null===i?c(r,t):Array.isArray(i)?0===i.length&&\"bracket-separator\"===t.arrayFormat?c(r,t)+\"[]\":i.reduce(n(r),[]).join(\"&\"):c(r,t)+\"=\"+c(i,t)}).filter(e=>e.length>0).join(\"&\")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=s(e,\"#\");return Object.assign({url:r.split(\"?\")[0]||\"\",query:g(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[l]:!0},r);let n=h(e.url).split(\"?\")[0]||\"\",i=t.extract(e.url),s=Object.assign(t.parse(i,{sort:!1}),e.query),o=t.stringify(s,r);o&&(o=`?${o}`);let a=function(e){let t=\"\",r=e.indexOf(\"#\");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(a=`#${r[l]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${o}${a}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[l]:!1},n);let{url:i,query:s,fragmentIdentifier:a}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:a},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},57963:function(e){\"use strict\";function t(e){try{return JSON.stringify(e)}catch(e){return'\"[Circular]\"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if(\"object\"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var o=Array(s);o[0]=i(e);for(var a=1;a<s;a++)o[a]=i(r[a]);return o.join(\" \")}if(\"string\"!=typeof e)return e;var l=r.length;if(0===l)return e;for(var u=\"\",c=0,d=-1,h=e&&e.length||0,f=0;f<h;){if(37===e.charCodeAt(f)&&f+1<h){switch(d=d>-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(c>=l||null==r[c])break;d<f&&(u+=e.slice(d,f)),u+=Number(r[c]),d=f+2,f++;break;case 105:if(c>=l||null==r[c])break;d<f&&(u+=e.slice(d,f)),u+=Math.floor(Number(r[c])),d=f+2,f++;break;case 79:case 111:case 106:if(c>=l||void 0===r[c])break;d<f&&(u+=e.slice(d,f));var p=typeof r[c];if(\"string\"===p){u+=\"'\"+r[c]+\"'\",d=f+2,f++;break}if(\"function\"===p){u+=r[c].name||\"<anonymous>\",d=f+2,f++;break}u+=i(r[c]),d=f+2,f++;break;case 115:if(c>=l)break;d<f&&(u+=e.slice(d,f)),u+=String(r[c]),d=f+2,f++;break;case 37:d<f&&(u+=e.slice(d,f)),u+=\"%\",d=f+2,f++,c--}++c}++f}return -1===d?e:(d<h&&(u+=e.slice(d)),u)}},63858:function(e,t,r){\"use strict\";var n,i,s,o,a,l,u=r(2265);u&&\"object\"==typeof u&&\"default\"in u&&u.default;var c=r(17914),d=new c,h=d.getBrowser(),f=d.getCPU(),p=d.getDevice(),g=d.getEngine(),m=d.getOS(),y=d.getUA(),b={Mobile:\"mobile\",Tablet:\"tablet\",SmartTv:\"smarttv\",Console:\"console\",Wearable:\"wearable\",Embedded:\"embedded\",Browser:void 0},v={Chrome:\"Chrome\",Firefox:\"Firefox\",Opera:\"Opera\",Yandex:\"Yandex\",Safari:\"Safari\",InternetExplorer:\"Internet Explorer\",Edge:\"Edge\",Chromium:\"Chromium\",Ie:\"IE\",MobileSafari:\"Mobile Safari\",MIUI:\"MIUI Browser\",SamsungBrowser:\"Samsung Browser\"},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"none\";return e||t},_=function(){return!!(\"undefined\"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},E=function(e){var t=_();return t&&t.platform&&(-1!==t.platform.indexOf(e)||\"MacIntel\"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},A=function(e){return e.type===b.Browser},x=function(e){return e.name===v.Edge},k=function(e){return\"string\"==typeof e&&-1!==e.indexOf(\"Edg/\")},S=function(){return E(\"iPad\")};p.type,b.SmartTv,p.type,b.Console,p.type,b.Wearable,p.type,b.Embedded,h.name===v.MobileSafari||S(),h.name,v.Chromium;var $=(n=p.type)===b.Mobile||n===b.Tablet||S(),C=(p.type,b.Mobile,p.type===b.Tablet||S(),A(p),A(p),\"Android\"===m.name),P=(m.name,\"iOS\"===m.name||S()),I=(h.name,v.Chrome,h.name===v.Firefox);(i=h.name)===v.Safari||v.MobileSafari,h.name,v.Opera,(s=h.name)===v.InternetExplorer||v.Ie,w(m.version),w(m.name),w(h.version),w(h.major),w(h.name),w(p.vendor),w(p.model),w(g.name),w(g.version),w(y),x(h)||k(y),h.name,v.Yandex,w(p.type,\"browser\"),(o=_())&&(/iPad|iPhone|iPod/.test(o.platform)||\"MacIntel\"===o.platform&&o.maxTouchPoints>1)&&window.MSStream,S(),E(\"iPhone\"),E(\"iPod\"),\"string\"==typeof(l=(a=_())&&a.userAgent&&a.userAgent.toLowerCase())&&/electron/.test(l),k(y),x(h)&&k(y),m.name,m.name,h.name,v.MIUI,h.name,v.SamsungBrowser,t.Dt=C,t.vU=I,t.gn=P,t.tq=$},74332:function(e,t){\"use strict\";/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var r=\"function\"==typeof Symbol&&Symbol.for,n=r?Symbol.for(\"react.element\"):60103,i=r?Symbol.for(\"react.portal\"):60106,s=r?Symbol.for(\"react.fragment\"):60107,o=r?Symbol.for(\"react.strict_mode\"):60108,a=r?Symbol.for(\"react.profiler\"):60114,l=r?Symbol.for(\"react.provider\"):60109,u=r?Symbol.for(\"react.context\"):60110,c=r?Symbol.for(\"react.async_mode\"):60111,d=r?Symbol.for(\"react.concurrent_mode\"):60111,h=r?Symbol.for(\"react.forward_ref\"):60112,f=r?Symbol.for(\"react.suspense\"):60113,p=r?Symbol.for(\"react.suspense_list\"):60120,g=r?Symbol.for(\"react.memo\"):60115,m=r?Symbol.for(\"react.lazy\"):60116,y=r?Symbol.for(\"react.block\"):60121,b=r?Symbol.for(\"react.fundamental\"):60117,v=r?Symbol.for(\"react.responder\"):60118,w=r?Symbol.for(\"react.scope\"):60119;function _(e){if(\"object\"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case s:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function E(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===s},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return\"string\"==typeof e||\"function\"==typeof e||e===s||e===d||e===a||e===o||e===f||e===p||\"object\"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},12659:function(e,t,r){\"use strict\";e.exports=r(74332)},16058:function(e){\"use strict\";var t={};function r(e,r,n){n||(n=Error);var i=function(e){function t(t,n,i){return e.call(this,\"string\"==typeof r?r:r(t,n,i))||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return\"of \".concat(t,\" \").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?\"one of \".concat(t,\" \").concat(e.slice(0,r-1).join(\", \"),\", or \")+e[r-1]:2===r?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}r(\"ERR_INVALID_OPT_VALUE\",function(e,t){return'The value \"'+t+'\" is invalid for option \"'+e+'\"'},TypeError),r(\"ERR_INVALID_ARG_TYPE\",function(e,t,r){if(\"string\"==typeof t&&(i=\"not \",t.substr(0,i.length)===i)?(l=\"must not be\",t=t.replace(/^not /,\"\")):l=\"must be\",s=\" argument\",(void 0===o||o>e.length)&&(o=e.length),e.substring(o-s.length,o)===s)u=\"The \".concat(e,\" \").concat(l,\" \").concat(n(t,\"type\"));else{var i,s,o,a,l,u,c=(\"number\"!=typeof a&&(a=0),a+1>e.length||-1===e.indexOf(\".\",a))?\"argument\":\"property\";u='The \"'.concat(e,'\" ').concat(c,\" \").concat(l,\" \").concat(n(t,\"type\"))}return u+\". Received type \".concat(typeof r)},TypeError),r(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),r(\"ERR_METHOD_NOT_IMPLEMENTED\",function(e){return\"The \"+e+\" method is not implemented\"}),r(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),r(\"ERR_STREAM_DESTROYED\",function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"}),r(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),r(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),r(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),r(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),r(\"ERR_UNKNOWN_ENCODING\",function(e){return\"Unknown encoding: \"+e},TypeError),r(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),e.exports.q=t},414:function(e,t,r){\"use strict\";var n=r(25566),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var s=r(27813),o=r(67684);r(87398)(c,s);for(var a=i(o.prototype),l=0;l<a.length;l++){var u=a[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(\"end\",d)))}function d(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},87802:function(e,t,r){\"use strict\";e.exports=i;var n=r(64958);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(87398)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},27813:function(e,t,r){\"use strict\";var n,i,s,o,a,l=r(25566);e.exports=k,k.ReadableState=x,r(68885).EventEmitter;var u=function(e,t){return e.listeners(t).length},c=r(81725),d=r(9109).Buffer,h=(void 0!==r.g?r.g:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){},f=r(94616);i=f&&f.debuglog?f.debuglog(\"stream\"):function(){};var p=r(36337),g=r(3587),m=r(72164).getHighWaterMark,y=r(16058).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(87398)(k,c);var E=g.errorOrDestroy,A=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function x(e,t,i){n=n||r(414),e=e||{},\"boolean\"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,\"readableHighWaterMark\",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(56123).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(414),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new x(e,this,t),this.readable=!0,e&&(\"function\"==typeof e.read&&(this._read=e.read),\"function\"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function S(e,t,r,n,s){i(\"readableAddChunk\",t);var o,a,l,u,c,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(i(\"onEofChunk\"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,f);else{if(s||(o=f,a=t,d.isBuffer(a)||a instanceof h||\"string\"==typeof a||void 0===a||o.objectMode||(l=new b(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],a)),c=l),c)E(e,c);else if(f.objectMode||t&&t.length>0){if(\"string\"==typeof t||f.objectMode||Object.getPrototypeOf(t)===d.prototype||(u=t,t=d.from(u)),n)f.endEmitted?E(e,new _):$(e,f,t,!0);else if(f.ended)E(e,new v);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?$(e,f,t,!1):O(e,f)):$(e,f,t,!1)}}else n||(f.reading=!1,O(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function $(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),O(e,t)}function C(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function P(e){var t=e._readableState;i(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i(\"emitReadable\",t.flowing),t.emittedReadable=!0,l.nextTick(I,e))}function I(e){var t=e._readableState;i(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,l.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i(\"maybeReadMore read 0\"),e.read(0),r===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function R(e){i(\"readable nexttick read 0\"),e.read(0)}function T(e,t){i(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(i(\"flow\",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(\"\"):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function j(e){var t=e._readableState;i(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,l.nextTick(B,t,e))}function B(e,t){if(i(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(k.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=g.destroy,k.prototype._undestroy=g.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=\"\"),r=!0),S(this,e,t,!1,r)},k.prototype.unshift=function(e){return S(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){s||(s=r(56123).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i=\"\";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),\"\"!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},k.prototype.read=function(e){i(\"read\",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return i(\"read: emitReadable\",r.length,r.ended),0===r.length&&r.ended?j(this):P(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&j(this),null;var s=r.needReadable;return i(\"need readable\",s),(0===r.length||r.length-e<r.highWaterMark)&&i(\"length less than watermark\",s=!0),r.ended||r.reading?i(\"reading or ended\",s=!1):s&&(i(\"do read\"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=C(n,r))),null===(t=e>0?L(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&j(this)),null!==t&&this.emit(\"data\",t),t},k.prototype._read=function(e){E(this,new w(\"_read()\"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i(\"pipe count=%d opts=%j\",n.pipesCount,t);var s=t&&!1===t.end||e===l.stdout||e===l.stderr?g:o;function o(){i(\"onend\"),e.end()}n.endEmitted?l.nextTick(s):r.once(\"end\",s),e.on(\"unpipe\",function t(s,l){i(\"onunpipe\"),s===r&&l&&!1===l.hasUnpiped&&(l.hasUnpiped=!0,i(\"cleanup\"),e.removeListener(\"close\",f),e.removeListener(\"finish\",p),e.removeListener(\"drain\",a),e.removeListener(\"error\",h),e.removeListener(\"unpipe\",t),r.removeListener(\"end\",o),r.removeListener(\"end\",g),r.removeListener(\"data\",d),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a())});var a=function(){var e=r._readableState;i(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(r,\"data\")&&(e.flowing=!0,D(r))};e.on(\"drain\",a);var c=!1;function d(t){i(\"ondata\");var s=e.write(t);i(\"dest.write\",s),!1===s&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!c&&(i(\"false write response, pause\",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){i(\"onerror\",t),g(),e.removeListener(\"error\",h),0===u(e,\"error\")&&E(e,t)}function f(){e.removeListener(\"finish\",p),g()}function p(){i(\"onfinish\"),e.removeListener(\"close\",f),g()}function g(){i(\"unpipe\"),r.unpipe(e)}return r.on(\"data\",d),function(e,t,r){if(\"function\"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,\"error\",h),e.once(\"close\",f),e.once(\"finish\",p),e.emit(\"pipe\",r),n.flowing||(i(\"pipe resume\"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var o=F(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,r)),this},k.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t),n=this._readableState;return\"data\"===e?(n.readableListening=this.listenerCount(\"readable\")>0,!1!==n.flowing&&this.resume()):\"readable\"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i(\"on readable\",n.length,n.reading),n.length?P(this):n.reading||l.nextTick(R,this)),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return\"readable\"===e&&l.nextTick(M,this),r},k.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return(\"readable\"===e||void 0===e)&&l.nextTick(M,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(i(\"resume\"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,l.nextTick(T,this,e))),e.paused=!1,this},k.prototype.pause=function(){return i(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(i(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on(\"end\",function(){if(i(\"wrapped end\"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(\"data\",function(s){i(\"wrapped data\"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))}),e)void 0===this[s]&&\"function\"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){i(\"wrapped _read\",t),n&&(n=!1,e.resume())},this},\"function\"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===o&&(o=r(87136)),o(this)}),Object.defineProperty(k.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=L,Object.defineProperty(k.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}}),\"function\"==typeof Symbol&&(k.from=function(e,t){return void 0===a&&(a=r(98505)),a(k,e,t)})},64958:function(e,t,r){\"use strict\";e.exports=c;var n=r(16058).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(414);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(\"error\",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(\"function\"==typeof e.transform&&(this._transform=e.transform),\"function\"==typeof e.flush&&(this._flush=e.flush)),this.on(\"prefinish\",d)}function d(){var e=this;\"function\"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit(\"error\",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}r(87398)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i(\"_transform()\"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},67684:function(e,t,r){\"use strict\";var n,i,s=r(25566);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=k,k.WritableState=x;var a={deprecate:r(20310)},l=r(81725),u=r(9109).Buffer,c=(void 0!==r.g?r.g:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){},d=r(3587),h=r(72164).getHighWaterMark,f=r(16058).q,p=f.ERR_INVALID_ARG_TYPE,g=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,_=f.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;function A(){}function x(e,t,i){n=n||r(414),e=e||{},\"boolean\"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,\"writableHighWaterMark\",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(\"function\"!=typeof i)throw new m;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,n?(s.nextTick(i,t),s.nextTick(O,e,r),e._writableState.errorEmitted=!0,E(e,t)):(i(t),e._writableState.errorEmitted=!0,E(e,t),O(e,r));else{var o=P(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),n?s.nextTick($,e,r,o,i):$(e,r,o,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(n=n||r(414));if(!t&&!i.call(k,this))return new k(e);this._writableState=new x(e,this,t),this.writable=!0,e&&(\"function\"==typeof e.write&&(this._write=e.write),\"function\"==typeof e.writev&&(this._writev=e.writev),\"function\"==typeof e.destroy&&(this._destroy=e.destroy),\"function\"==typeof e.final&&(this._final=e.final)),l.call(this)}function S(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b(\"write\")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function $(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\")),t.pendingcb--,n(),O(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,S(e,t,!0,t.length,n,\"\",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,d=t.objectMode?1:l.length;if(S(e,t,!1,d,l,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit(\"prefinish\"),O(e,t)})}function O(e,t){var r=P(t);if(r&&(t.prefinished||t.finalCalled||(\"function\"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit(\"prefinish\")):(t.pendingcb++,t.finalCalled=!0,s.nextTick(I,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(87398)(k,l),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,\"buffer\",{get:a.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(e){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===k&&e&&e._writableState instanceof x}})):i=function(e){return e instanceof this},k.prototype.pipe=function(){E(this,new y)},k.prototype.write=function(e,t,r){var n,i,o,a,l,d,h,f=this._writableState,g=!1,m=!f.objectMode&&(n=e,u.isBuffer(n)||n instanceof c);return m&&!u.isBuffer(e)&&(i=e,e=u.from(i)),(\"function\"==typeof t&&(r=t,t=null),m?t=\"buffer\":t||(t=f.defaultEncoding),\"function\"!=typeof r&&(r=A),f.ending)?(o=r,E(this,a=new w),s.nextTick(o,a)):(m||(l=e,d=r,null===l?h=new v:\"string\"==typeof l||f.objectMode||(h=new p(\"chunk\",[\"string\",\"Buffer\"],l)),!h||(E(this,h),s.nextTick(d,h),0)))&&(f.pendingcb++,g=function(e,t,r,n,i,s){if(!r){var o,a,l=(o=n,a=i,t.objectMode||!1===t.decodeStrings||\"string\"!=typeof o||(o=u.from(o,a)),o);n!==l&&(r=!0,i=\"buffer\",n=l)}var c=t.objectMode?1:n.length;t.length+=c;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,c,n,i,s);return d}(this,f,m,e,t,r)),g},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},k.prototype.setDefaultEncoding=function(e){if(\"string\"==typeof e&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new g(\"_write()\"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n,i=this._writableState;return\"function\"==typeof e?(r=e,e=null,t=null):\"function\"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,O(this,i),n&&(i.finished?s.nextTick(n):this.once(\"finish\",n)),i.ended=!0,this.writable=!1),this},Object.defineProperty(k.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}},87136:function(e,t,r){\"use strict\";var n,i=r(25566);function s(e,t,r){var n;return(t=\"symbol\"==typeof(n=function(e,t){if(\"object\"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(t,\"string\"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(91763),a=Symbol(\"lastResolve\"),l=Symbol(\"lastReject\"),u=Symbol(\"error\"),c=Symbol(\"ended\"),d=Symbol(\"lastPromise\"),h=Symbol(\"handlePromise\"),f=Symbol(\"stream\");function p(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[a]=null,e[l]=null,t(p(r,!1)))}}function m(e){i.nextTick(g,e)}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var e,t,r=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(e,t){i.nextTick(function(){r[u]?t(r[u]):e(p(void 0,!0))})});var s=this[d];if(s)t=new Promise((e=this,function(t,r){s.then(function(){if(e[c]){t(p(void 0,!0));return}e[h](t,r)},r)}));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));t=new Promise(this[h])}return this[d]=t,t}},Symbol.asyncIterator,function(){return this}),s(n,\"return\",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),n),y);e.exports=function(e){var t,r=Object.create(b,(s(t={},f,{value:e,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,l,{value:null,writable:!0}),s(t,u,{value:null,writable:!0}),s(t,c,{value:e._readableState.endEmitted,writable:!0}),s(t,h,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[a]=null,r[l]=null,e(p(n,!1))):(r[a]=e,r[l]=t)},writable:!0}),t));return r[d]=null,o(e,function(e){if(e&&\"ERR_STREAM_PREMATURE_CLOSE\"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[a]=null,r[l]=null,t(e)),r[u]=e;return}var n=r[a];null!==n&&(r[d]=null,r[a]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0}),e.on(\"readable\",m.bind(null,r)),r}},36337:function(e,t,r){\"use strict\";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=s(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||\"default\");if(\"object\"!=typeof n)return n;throw TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:String(t)}var o=r(9109).Buffer,a=r(52361).inspect,l=a&&a.custom||\"inspect\";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:\"push\",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:\"unshift\",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:\"shift\",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(e){if(0===this.length)return\"\";for(var t=this.head,r=\"\"+t.data;t=t.next;)r+=e+t.data;return r}},{key:\"concat\",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,s=0;i;)t=i.data,r=s,o.prototype.copy.call(t,n,r),s+=i.data.length,i=i.next;return n}},{key:\"consume\",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,s=e>i.length?i.length:e;if(s===i.length?n+=i:n+=i.slice(0,e),0==(e-=s)){s===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++r}return this.length-=r,n}},{key:\"_getBuffer\",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0==(e-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return a(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}()},3587:function(e,t,r){\"use strict\";var n=r(25566);function i(e,t){o(e,t),s(e)}function s(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit(\"close\")}function o(e,t){e.emit(\"error\",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(s,r),t(e)):n.nextTick(s,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit(\"error\",t)}}},91763:function(e,t,r){\"use strict\";var n=r(16058).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,s){if(\"function\"==typeof r)return e(t,null,r);r||(r={}),o=s||i,a=!1,s=function(){if(!a){a=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.apply(this,t)}};var o,a,l=r.readable||!1!==r.readable&&t.readable,u=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||h()},d=t._writableState&&t._writableState.finished,h=function(){u=!1,d=!0,l||s.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,f=!0,u||s.call(t)},g=function(e){s.call(t,e)},m=function(){var e;return l&&!f?(t._readableState&&t._readableState.ended||(e=new n),s.call(t,e)):u&&!d?(t._writableState&&t._writableState.ended||(e=new n),s.call(t,e)):void 0},y=function(){t.req.on(\"finish\",h)};return t.setHeader&&\"function\"==typeof t.abort?(t.on(\"complete\",h),t.on(\"abort\",m),t.req?y():t.on(\"request\",y)):u&&!t._writableState&&(t.on(\"end\",c),t.on(\"close\",c)),t.on(\"end\",p),t.on(\"finish\",h),!1!==r.error&&t.on(\"error\",g),t.on(\"close\",m),function(){t.removeListener(\"complete\",h),t.removeListener(\"abort\",m),t.removeListener(\"request\",y),t.req&&t.req.removeListener(\"finish\",h),t.removeListener(\"end\",c),t.removeListener(\"close\",c),t.removeListener(\"finish\",h),t.removeListener(\"end\",p),t.removeListener(\"error\",g),t.removeListener(\"close\",m)}}},98505:function(e){e.exports=function(){throw Error(\"Readable.from is not available in the browser\")}},85597:function(e,t,r){\"use strict\";var n,i=r(16058).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,c=Array(i),d=0;d<i;d++)c[d]=arguments[d];var h=(e=c).length&&\"function\"==typeof e[e.length-1]?e.pop():a;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new s(\"streams\");var f=c.map(function(e,i){var s,a,u,d,p,g,m=i<c.length-1;return s=i>0,u=a=function(e){t||(t=e),e&&f.forEach(l),m||(f.forEach(l),h(t))},d=!1,a=function(){d||(d=!0,u.apply(void 0,arguments))},p=!1,e.on(\"close\",function(){p=!0}),void 0===n&&(n=r(91763)),n(e,{readable:m,writable:s},function(e){if(e)return a(e);p=!0,a()}),g=!1,function(t){if(!p&&!g){if(g=!0,e.setHeader&&\"function\"==typeof e.abort)return e.abort();if(\"function\"==typeof e.destroy)return e.destroy();a(t||new o(\"pipe\"))}}});return c.reduce(u)}},72164:function(e,t,r){\"use strict\";var n=r(16058).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var s=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new n(i?r:\"highWaterMark\",s);return Math.floor(s)}return e.objectMode?16:16384}}},81725:function(e,t,r){e.exports=r(68885).EventEmitter},5939:function(e,t,r){(t=e.exports=r(27813)).Stream=t,t.Readable=t,t.Writable=r(67684),t.Duplex=r(414),t.Transform=r(64958),t.PassThrough=r(87802),t.finished=r(91763),t.pipeline=r(85597)},10632:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=r(9109),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(e,t,r){if(\"number\"==typeof e)throw TypeError(\"Argument must not be a number\");return i(e,t,r)},o.alloc=function(e,t,r){if(\"number\"!=typeof e)throw TypeError(\"Argument must be a number\");var n=i(e);return void 0!==t?\"string\"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if(\"number\"!=typeof e)throw TypeError(\"Argument must be a number\");return i(e)},o.allocUnsafeSlow=function(e){if(\"number\"!=typeof e)throw TypeError(\"Argument must be a number\");return n.SlowBuffer(e)}},40333:function(e,t,r){var n=r(10632).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){\"string\"==typeof e&&(t=t||\"utf8\",e=n.from(e,t));for(var r=this._block,i=this._blockSize,s=e.length,o=this._len,a=0;a<s;){for(var l=o%i,u=Math.min(s-a,i-l),c=0;c<u;c++)r[l+c]=e[a+c];o+=u,a+=u,o%i==0&&this._update(r)}return this._len+=s,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0;this._block.writeUInt32BE((r-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},i.prototype._update=function(){throw Error(\"_update must be implemented by subclass\")},e.exports=i},42724:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+\" is not supported (we accept pull requests)\");return new t};n.sha=r(53799),n.sha1=r(4836),n.sha224=r(44455),n.sha256=r(51250),n.sha384=r(43836),n.sha512=r(58103)},53799:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);function l(){this.init(),this._w=a,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var u=0;u<80;++u){var c,d,h,f,p,g=~~(u/20),m=((c=r)<<5|c>>>27)+(d=n,h=i,f=s,0===g?d&h|~d&f:2===g?d&h|d&f|h&f:d^h^f)+a+t[u]+o[g]|0;a=s,s=i,i=(p=n)<<30|p>>>2,n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},4836:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);function l(){this.init(),this._w=a,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=(c=t[l-3]^t[l-8]^t[l-14]^t[l-16])<<1|c>>>31;for(var u=0;u<80;++u){var c,d,h,f,p,g,m=~~(u/20),y=((d=r)<<5|d>>>27)+(h=n,f=i,p=s,0===m?h&f|~h&p:2===m?h&f|h&p|f&p:h^f^p)+a+t[u]+o[m]|0;a=s,s=i,i=(g=n)<<30|g>>>2,n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},44455:function(e,t,r){var n=r(87398),i=r(51250),s=r(40333),o=r(10632).Buffer,a=Array(64);function l(){this.init(),this._w=a,s.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},51250:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=Array(64);function l(){this.init(),this._w=a,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,a=0|this._e,l=0|this._f,u=0|this._g,c=0|this._h,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<64;++d)t[d]=(((f=t[d-2])>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+t[d-7]+(((p=t[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[d-16]|0;for(var h=0;h<64;++h){var f,p,g,m,y,b,v,w,_,E=c+(((g=a)>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(m=a,y=l,(b=u)^m&(y^b))+o[h]+t[h]|0,A=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((w=r)&(_=n)|i&(w|_))|0;c=u,u=l,l=a,a=s+E|0,s=i,i=n,n=r,r=E+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=l+this._f|0,this._g=u+this._g|0,this._h=c+this._h|0},l.prototype._hash=function(){var e=s.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},43836:function(e,t,r){var n=r(87398),i=r(58103),s=r(40333),o=r(10632).Buffer,a=Array(160);function l(){this.init(),this._w=a,s.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},58103:function(e,t,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=Array(160);function l(){this.init(),this._w=a,i.call(this,128,112)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function c(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return e>>>0<t>>>0?1:0}n(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,a=0|this._eh,l=0|this._fh,h=0|this._gh,f=0|this._hh,p=0|this._al,g=0|this._bl,m=0|this._cl,y=0|this._dl,b=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A,x,k,S,$,C,P,I,O=t[E-30],N=t[E-30+1],M=((A=O)>>>1|(x=N)<<31)^(A>>>8|x<<24)^A>>>7,R=((k=N)>>>1|(S=O)<<31)^(k>>>8|S<<24)^(k>>>7|S<<25);O=t[E-4],N=t[E-4+1];var T=(($=O)>>>19|(C=N)<<13)^(C>>>29|$<<3)^$>>>6,D=((P=N)>>>19|(I=O)<<13)^(I>>>29|P<<3)^(P>>>6|I<<26),L=t[E-14],j=t[E-14+1],B=t[E-32],F=t[E-32+1],U=R+j|0,z=M+L+d(U,R)|0;z=(z=z+T+d(U=U+D|0,D)|0)+B+d(U=U+F|0,F)|0,t[E]=z,t[E+1]=U}for(var q=0;q<160;q+=2){z=t[q],U=t[q+1];var H,G,V,W,K,Y,Z,J,Q,X,ee=(H=r)&(G=n)|i&(H|G),et=(V=p)&(W=g)|m&(V|W),er=u(r,p),en=u(p,r),ei=c(a,b),es=c(b,a),eo=o[q],ea=o[q+1],el=(K=a,Y=l,(Z=h)^K&(Y^Z)),eu=(J=b,Q=v,(X=w)^J&(Q^X)),ec=_+es|0,ed=f+ei+d(ec,_)|0;ed=(ed=(ed=ed+el+d(ec=ec+eu|0,eu)|0)+eo+d(ec=ec+ea|0,ea)|0)+z+d(ec=ec+U|0,U)|0;var eh=en+et|0,ef=er+ee+d(eh,en)|0;f=h,_=w,h=l,w=v,l=a,v=b,a=s+ed+d(b=y+ec|0,y)|0,s=i,y=m,i=n,m=g,n=r,g=p,r=ed+ef+d(p=ec+eh|0,ec)|0}this._al=this._al+p|0,this._bl=this._bl+g|0,this._cl=this._cl+m|0,this._dl=this._dl+y|0,this._el=this._el+b|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._ah=this._ah+r+d(this._al,p)|0,this._bh=this._bh+n+d(this._bl,g)|0,this._ch=this._ch+i+d(this._cl,m)|0,this._dh=this._dh+s+d(this._dl,y)|0,this._eh=this._eh+a+d(this._el,b)|0,this._fh=this._fh+l+d(this._fl,v)|0,this._gh=this._gh+h+d(this._gl,w)|0,this._hh=this._hh+f+d(this._hl,_)|0},l.prototype._hash=function(){var e=s.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},6889:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if(\"object\"!=typeof e||!e||\"object\"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var u=s[l];if(!a(u))return!1;var c=e[u],d=t[u];if(!1===(i=r?r.call(n,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},76442:function(e){\"use strict\";e.exports=(e,t)=>{if(!(\"string\"==typeof e&&\"string\"==typeof t))throw TypeError(\"Expected the arguments to be of type `string`\");if(\"\"===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},29276:function(e){\"use strict\";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},56123:function(e,t,r){\"use strict\";var n=r(10632).Buffer,i=n.isEncoding||function(e){switch((e=\"\"+e)&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return\"utf8\";for(;;)switch(e){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return e;default:if(t)return;e=(\"\"+e).toLowerCase(),t=!0}}(e);if(\"string\"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error(\"Unknown encoding: \"+e);return t||e}(e),this.encoding){case\"utf16le\":this.text=l,this.end=u,t=4;break;case\"utf8\":this.fillLast=a,t=4;break;case\"base64\":this.text=c,this.end=d,t=3;break;default:this.write=h,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,\"�\";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,\"�\";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,\"�\"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){if((e.length-t)%2==0){var r=e.toString(\"utf16le\",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString(\"base64\",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):\"\"}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return\"\";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||\"\"},s.prototype.end=function(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"�\":t},s.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString(\"utf8\",t,n)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},10506:function(e,t,r){\"use strict\";r.d(t,{vJ:function(){return eM},iv:function(){return e_},ZP:function(){return eT},F4:function(){return eR}});var n,i,s,o=r(12659),a=r(2265),l=r(6889),u=r.n(l),c=function(e){function t(e,t,n){var i=t.trim().split(p);t=i;var s=i.length,o=e.length;switch(o){case 0:case 1:var a=0;for(e=0===o?\"\":e[0]+\" \";a<s;++a)t[a]=r(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<s;++a)for(var u=0;u<o;++u)t[l++]=r(e[u]+\" \",i[a],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,\"$1\"+e.trim());case 58:return e.trim()+t.replace(g,\"$1\"+e.trim());default:if(0<1*r&&0<t.indexOf(\"\\f\"))return t.replace(g,(58===e.charCodeAt(0)?\"\":\"$1\")+e.trim())}return e+t}function n(e,t,r,s){var o=e+\";\",a=2*t+3*r+4*s;if(944===a){e=o.indexOf(\":\",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+\";\",1===P||2===P&&i(l,1)?\"-webkit-\"+l+l:l}if(0===P||2===P&&!i(o,1))return o;switch(a){case 1015:return 97===o.charCodeAt(10)?\"-webkit-\"+o+o:o;case 951:return 116===o.charCodeAt(3)?\"-webkit-\"+o+o:o;case 963:return 110===o.charCodeAt(5)?\"-webkit-\"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return\"-webkit-\"+o+o;case 978:return\"-webkit-\"+o+\"-moz-\"+o+o;case 1019:case 983:return\"-webkit-\"+o+\"-moz-\"+o+\"-ms-\"+o+o;case 883:if(45===o.charCodeAt(8))return\"-webkit-\"+o+o;if(0<o.indexOf(\"image-set(\",11))return o.replace(k,\"$1-webkit-$2\")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return\"-webkit-box-\"+o.replace(\"-grow\",\"\")+\"-webkit-\"+o+\"-ms-\"+o.replace(\"grow\",\"positive\")+o;case 115:return\"-webkit-\"+o+\"-ms-\"+o.replace(\"shrink\",\"negative\")+o;case 98:return\"-webkit-\"+o+\"-ms-\"+o.replace(\"basis\",\"preferred-size\")+o}return\"-webkit-\"+o+\"-ms-\"+o+o;case 964:return\"-webkit-\"+o+\"-ms-flex-\"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return\"-webkit-box-pack\"+(l=o.substring(o.indexOf(\":\",15)).replace(\"flex-\",\"\").replace(\"space-between\",\"justify\"))+\"-webkit-\"+o+\"-ms-flex-pack\"+l+o;case 1005:return h.test(o)?o.replace(d,\":-webkit-\")+o.replace(d,\":-moz-\")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf(\"-\")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(v,\"tb\");break;case 232:l=o.replace(v,\"tb-rl\");break;case 220:l=o.replace(v,\"lr\");break;default:return o}return\"-webkit-\"+o+\"-ms-\"+l+o;case 1017:if(-1===o.indexOf(\"sticky\",9))break;case 975:switch(t=(o=e).length-10,a=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(\":\",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,\"-webkit-\"+l)+\";\"+o;break;case 207:case 102:o=o.replace(l,\"-webkit-\"+(102<a?\"inline-\":\"\")+\"box\")+\";\"+o.replace(l,\"-webkit-\"+l)+\";\"+o.replace(l,\"-ms-\"+l+\"box\")+\";\"+o}return o+\";\";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace(\"-items\",\"\"),\"-webkit-\"+o+\"-webkit-box-\"+l+\"-ms-flex-\"+l+o;case 115:return\"-webkit-\"+o+\"-ms-flex-item-\"+o.replace(E,\"\")+o;default:return\"-webkit-\"+o+\"-ms-flex-line-pack\"+o.replace(\"align-content\",\"\").replace(E,\"\")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(\":\")+1)).charCodeAt(0)?n(e.replace(\"stretch\",\"fill-available\"),t,r,s).replace(\":fill-available\",\":stretch\"):o.replace(l,\"-webkit-\"+l)+o.replace(l,\"-moz-\"+l.replace(\"fill-\",\"\"))+o;break;case 962:if(o=\"-webkit-\"+o+(102===o.charCodeAt(5)?\"-ms-\"+o:\"\")+o,211===r+s&&105===o.charCodeAt(13)&&0<o.indexOf(\"transform\",10))return o.substring(0,o.indexOf(\";\",27)+1).replace(f,\"$1-webkit-$2\")+o}return o}function i(e,t){var r=e.indexOf(1===t?\":\":\"{\"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),M(2!==t?n:n.replace(A,\"$1\"),r,t)}function s(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+\";\"?r.replace(_,\" or ($1)\").substring(4):\"(\"+t+\")\"}function o(e,t,r,n,i,s,o,a,u,c){for(var d,h=0,f=t;h<N;++h)switch(d=O[h].call(l,e,f,r,n,i,s,o,a,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function a(e){return void 0!==(e=e.prefix)&&(M=null,e?\"function\"!=typeof e?P=1:(P=2,M=e):P=0),a}function l(e,r){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<N){var l=o(-1,r,a,a,$,S,0,0,0,0);void 0!==l&&\"string\"==typeof l&&(r=l)}var d=function e(r,a,l,d,h){for(var f,p,g,v,_,E=0,A=0,x=0,k=0,O=0,M=0,T=g=f=0,D=0,L=0,j=0,B=0,F=l.length,U=F-1,z=\"\",q=\"\",H=\"\",G=\"\";D<F;){if(p=l.charCodeAt(D),D===U&&0!==A+k+x+E&&(0!==A&&(p=47===A?10:47),k=x=E=0,F++,U++),0===A+k+x+E){if(D===U&&(0<L&&(z=z.replace(c,\"\")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(D)}p=59}switch(p){case 123:for(f=(z=z.trim()).charCodeAt(0),g=1,B=++D;D<F;){switch(p=l.charCodeAt(D)){case 123:g++;break;case 125:g--;break;case 47:switch(p=l.charCodeAt(D+1)){case 42:case 47:r:{for(T=D+1;T<U;++T)switch(l.charCodeAt(T)){case 47:if(42===p&&42===l.charCodeAt(T-1)&&D+2!==T){D=T+1;break r}break;case 10:if(47===p){D=T+1;break r}}D=T}}break;case 91:p++;case 40:p++;case 34:case 39:for(;D++<U&&l.charCodeAt(D)!==p;);}if(0===g)break;D++}if(g=l.substring(B,D),0===f&&(f=(z=z.replace(u,\"\").trim()).charCodeAt(0)),64===f){switch(0<L&&(z=z.replace(c,\"\")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:L=a;break;default:L=I}if(B=(g=e(a,L,g,p,h+1)).length,0<N&&(_=o(3,g,L=t(I,z,j),a,$,S,B,p,h,d),z=L.join(\"\"),void 0!==_&&0===(B=(g=_.trim()).length)&&(p=0,g=\"\")),0<B)switch(p){case 115:z=z.replace(w,s);case 100:case 109:case 45:g=z+\"{\"+g+\"}\";break;case 107:g=(z=z.replace(m,\"$1 $2\"))+\"{\"+g+\"}\",g=1===P||2===P&&i(\"@\"+g,3)?\"@-webkit-\"+g+\"@\"+g:\"@\"+g;break;default:g=z+g,112===d&&(q+=g,g=\"\")}else g=\"\"}else g=e(a,t(a,z,j),g,d,h+1);H+=g,g=j=L=T=f=0,z=\"\",p=l.charCodeAt(++D);break;case 125:case 59:if(1<(B=(z=(0<L?z.replace(c,\"\"):z).trim()).length))switch(0===T&&(45===(f=z.charCodeAt(0))||96<f&&123>f)&&(B=(z=z.replace(\" \",\":\")).length),0<N&&void 0!==(_=o(1,z,a,r,$,S,q.length,d,h,d))&&0===(B=(z=_.trim()).length)&&(z=\"\\0\\0\"),f=z.charCodeAt(0),p=z.charCodeAt(1),f){case 0:break;case 64:if(105===p||99===p){G+=z+l.charAt(D);break}default:58!==z.charCodeAt(B-1)&&(q+=n(z,f,p,z.charCodeAt(2)))}j=L=T=f=0,z=\"\",p=l.charCodeAt(++D)}}switch(p){case 13:case 10:47===A?A=0:0===1+f&&107!==d&&0<z.length&&(L=1,z+=\"\\0\"),0<N*R&&o(0,z,a,r,$,S,q.length,d,h,d),S=1,$++;break;case 59:case 125:if(0===A+k+x+E){S++;break}default:switch(S++,v=l.charAt(D),p){case 9:case 32:if(0===k+E+A)switch(O){case 44:case 58:case 9:case 32:v=\"\";break;default:32!==p&&(v=\" \")}break;case 0:v=\"\\\\0\";break;case 12:v=\"\\\\f\";break;case 11:v=\"\\\\v\";break;case 38:0===k+A+E&&(L=j=1,v=\"\\f\"+v);break;case 108:if(0===k+A+E+C&&0<T)switch(D-T){case 2:112===O&&58===l.charCodeAt(D-3)&&(C=O);case 8:111===M&&(C=M)}break;case 58:0===k+A+E&&(T=D);break;case 44:0===A+x+k+E&&(L=1,v+=\"\\r\");break;case 34:case 39:0===A&&(k=k===p?0:0===k?p:k);break;case 91:0===k+A+x&&E++;break;case 93:0===k+A+x&&E--;break;case 41:0===k+A+E&&x--;break;case 40:0===k+A+E&&(0===f&&(2*O+3*M==533||(f=1)),x++);break;case 64:0===A+x+k+E+T+g&&(g=1);break;case 42:case 47:if(!(0<k+E+x))switch(A){case 0:switch(2*p+3*l.charCodeAt(D+1)){case 235:A=47;break;case 220:B=D,A=42}break;case 42:47===p&&42===O&&B+2!==D&&(33===l.charCodeAt(B+2)&&(q+=l.substring(B,D+1)),v=\"\",A=0)}}0===A&&(z+=v)}M=O,O=p,D++}if(0<(B=q.length)){if(L=a,0<N&&void 0!==(_=o(2,q,L,r,$,S,B,d,h,d))&&0===(q=_).length)return G+q+H;if(q=L.join(\",\")+\"{\"+q+\"}\",0!=P*C){switch(2!==P||i(q,2)||(C=0),C){case 111:q=q.replace(b,\":-moz-$1\")+q;break;case 112:q=q.replace(y,\"::-webkit-input-$1\")+q.replace(y,\"::-moz-$1\")+q.replace(y,\":-ms-input-$1\")+q}C=0}}return G+q+H}(I,a,r,0,0);return 0<N&&void 0!==(l=o(-2,d,a,a,$,S,d.length,0,0,0))&&(d=l),C=0,S=$=1,d}var u=/^\\0+/g,c=/[\\0\\r\\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,p=/,\\r+?/g,g=/([\\t\\r\\n ])*\\f?&/g,m=/@(k\\w+)\\s*(\\S*)\\s*/,y=/::(place)/g,b=/:(read-only)/g,v=/[svh]\\w+-[tblr]{2}/,w=/\\(\\s*(.*)\\s*\\)/g,_=/([\\s\\S]*?);/g,E=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\\w-]+)[^]*/,x=/stretch|:\\s*\\w+\\-(?:conte|avail)/,k=/([^-])(image-set\\()/,S=1,$=1,C=0,P=1,I=[],O=[],N=0,M=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:N=O.length=0;break;default:if(\"function\"==typeof t)O[N++]=t;else if(\"object\"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},l.set=a,void 0!==e&&a(e),l},d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,f=(n=function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},i=Object.create(null),function(e){return void 0===i[e]&&(i[e]=n(e)),i[e]}),p=r(46451),g=r.n(p),m=r(25566);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},v=function(e){return null!==e&&\"object\"==typeof e&&\"[object Object]\"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,o.typeOf)(e)},w=Object.freeze([]),_=Object.freeze({});function E(e){return\"function\"==typeof e}function A(e){return e.displayName||e.name||\"Component\"}function x(e){return e&&\"string\"==typeof e.styledComponentId}var k=void 0!==m&&void 0!==m.env&&(m.env.REACT_APP_SC_ATTR||m.env.SC_ATTR)||\"data-styled\",S=\"undefined\"!=typeof window&&\"HTMLElement\"in window,$=!!(\"boolean\"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==m&&void 0!==m.env&&(void 0!==m.env.REACT_APP_SC_DISABLE_SPEEDY&&\"\"!==m.env.REACT_APP_SC_DISABLE_SPEEDY?\"false\"!==m.env.REACT_APP_SC_DISABLE_SPEEDY&&m.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==m.env.SC_DISABLE_SPEEDY&&\"\"!==m.env.SC_DISABLE_SPEEDY&&\"false\"!==m.env.SC_DISABLE_SPEEDY&&m.env.SC_DISABLE_SPEEDY)),C={};function P(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error(\"An error occurred. See https://git.io/JUIaE#\"+e+\" for more information.\"+(r.length>0?\" Args: \"+r.join(\", \"):\"\"))}var I=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&P(16,\"\"+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=n;s<i;s++)this.groupSizes[s]=0}for(var o=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t=\"\";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,s=n;s<i;s++)t+=this.tag.getRule(s)+\"/*!sc*/\\n\";return t},e}(),O=new Map,N=new Map,M=1,R=function(e){if(O.has(e))return O.get(e);for(;N.has(M);)M++;var t=M++;return O.set(e,t),N.set(t,e),t},T=function(e,t){t>=M&&(M=t+1),O.set(e,t),N.set(t,e)},D=\"style[\"+k+'][data-styled-version=\"5.3.11\"]',L=RegExp(\"^\"+k+'\\\\.g(\\\\d+)\\\\[id=\"([\\\\w\\\\d-]+)\"\\\\].*?\"([^\"]*)'),j=function(e,t,r){for(var n,i=r.split(\",\"),s=0,o=i.length;s<o;s++)(n=i[s])&&e.registerName(t,n)},B=function(e,t){for(var r=(t.textContent||\"\").split(\"/*!sc*/\\n\"),n=[],i=0,s=r.length;i<s;i++){var o=r[i].trim();if(o){var a=o.match(L);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(T(u,l),j(e,u,a[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(o)}}},F=function(){return r.nc},U=function(e){var t=document.head,r=e||t,n=document.createElement(\"style\"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(k))return n}}(r),s=void 0!==i?i.nextSibling:null;n.setAttribute(k,\"active\"),n.setAttribute(\"data-styled-version\",\"5.3.11\");var o=F();return o&&n.setAttribute(\"nonce\",o),r.insertBefore(n,s),n},z=function(){function e(e){var t=this.element=U(e);t.appendChild(document.createTextNode(\"\")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}P(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&\"string\"==typeof t.cssText?t.cssText:\"\"},e}(),q=function(){function e(e){var t=this.element=U(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:\"\"},e}(),H=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:\"\"},e}(),G=S,V={isServer:!S,useCSSOMInjection:!$},W=function(){function e(e,t,r){void 0===e&&(e=_),void 0===t&&(t={}),this.options=y({},V,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&G&&(G=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];i&&\"active\"!==i.getAttribute(k)&&(B(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return R(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(y({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new I(t?new H(n):r?new z(n):new q(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(R(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(R(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(R(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n=\"\",i=0;i<r;i++){var s,o=(s=i,N.get(s));if(void 0!==o){var a=e.names.get(o),l=t.getGroup(i);if(a&&l&&a.size){var u=k+\".g\"+i+'[id=\"'+o+'\"]',c=\"\";void 0!==a&&a.forEach(function(e){e.length>0&&(c+=e+\",\")}),n+=\"\"+l+u+'{content:\"'+c+'\"}/*!sc*/\\n'}}}return n}(this)},e}(),K=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,r=\"\";for(t=Math.abs(e);t>52;t=t/52|0)r=Y(t%52)+r;return(Y(t%52)+r).replace(K,\"$1-$2\")}var J=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Q=function(e){return J(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(E(r)&&!x(r))return!1}return!0}var ee=Q(\"5.3.11\"),et=function(){function e(e,t,r){this.rules=e,this.staticRulesId=\"\",this.isStatic=(void 0===r||r.isStatic)&&X(e),this.componentId=t,this.baseHash=J(ee,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var s=ev(this.rules,e,t,r).join(\"\"),o=Z(J(this.baseHash,s)>>>0);if(!t.hasNameForId(n,o)){var a=r(s,\".\"+o,void 0,n);t.insertRules(n,o,a)}i.push(o),this.staticRulesId=o}}else{for(var l=this.rules.length,u=J(this.baseHash,r.hash),c=\"\",d=0;d<l;d++){var h=this.rules[d];if(\"string\"==typeof h)c+=h;else if(h){var f=ev(h,e,t,r),p=Array.isArray(f)?f.join(\"\"):f;u=J(u,p+d),c+=p}}if(c){var g=Z(u>>>0);if(!t.hasNameForId(n,g)){var m=r(c,\".\"+g,void 0,n);t.insertRules(n,g,m)}i.push(g)}}return i.join(\" \")},e}(),er=/^\\s*\\/\\/.*$/gm,en=[\":\",\"[\",\".\",\"#\"];function ei(e){var t,r,n,i,s=void 0===e?_:e,o=s.options,a=void 0===o?_:o,l=s.plugins,u=void 0===l?w:l,d=new c(a),h=[],f=function(e){function t(t){if(t)try{e(t+\"}\")}catch(e){}}return function(r,n,i,s,o,a,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+\";\"),\"\";break;case 2:if(0===u)return n+\"/*|*/\";break;case 3:switch(u){case 102:case 112:return e(i[0]+n),\"\";default:return n+(0===d?\"/*|*/\":\"\")}case -2:n.split(\"/*|*/}\").forEach(t)}}}(function(e){h.push(e)}),p=function(e,n,s){return 0===n&&-1!==en.indexOf(s[r.length])||s.match(i)?e:\".\"+t};function g(e,s,o,a){void 0===a&&(a=\"&\");var l=e.replace(er,\"\"),u=s&&o?o+\" \"+s+\" { \"+l+\" }\":l;return t=a,n=RegExp(\"\\\\\"+(r=s)+\"\\\\b\",\"g\"),i=RegExp(\"(\\\\\"+r+\"\\\\b){2,}\"),d(o||!s?\"\":s,u)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),g.hash=u.length?u.reduce(function(e,t){return t.name||P(15),J(e,t.name)},5381).toString():\"\",g}var es=a.createContext(),eo=(es.Consumer,a.createContext()),ea=(eo.Consumer,new W),el=ei();function eu(){return(0,a.useContext)(es)||ea}function ec(){return(0,a.useContext)(eo)||el}function ed(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],i=eu(),s=(0,a.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),o=(0,a.useMemo)(function(){return ei({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,a.useEffect)(function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(es.Provider,{value:s},a.createElement(eo.Provider,{value:o},e.children))}var eh=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=el);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,\"@keyframes\"))},this.toString=function(){return P(12,String(r.name))},this.name=e,this.id=\"sc-keyframes-\"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=el),this.name+e.hash},e}(),ef=/([A-Z])/,ep=/([A-Z])/g,eg=/^ms-/,em=function(e){return\"-\"+e.toLowerCase()};function ey(e){return ef.test(e)?e.replace(ep,em).replace(eg,\"-ms-\"):e}var eb=function(e){return null==e||!1===e||\"\"===e};function ev(e,t,r,n){if(Array.isArray(e)){for(var i,s=[],o=0,a=e.length;o<a;o+=1)\"\"!==(i=ev(e[o],t,r,n))&&(Array.isArray(i)?s.push.apply(s,i):s.push(i));return s}return eb(e)?\"\":x(e)?\".\"+e.styledComponentId:E(e)?\"function\"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ev(e(t),t,r,n):e instanceof eh?r?(e.inject(r,n),e.getName(n)):e:v(e)?function e(t,r){var n,i=[];for(var s in t)t.hasOwnProperty(s)&&!eb(t[s])&&(Array.isArray(t[s])&&t[s].isCss||E(t[s])?i.push(ey(s)+\":\",t[s],\";\"):v(t[s])?i.push.apply(i,e(t[s],s)):i.push(ey(s)+\": \"+(null==(n=t[s])||\"boolean\"==typeof n||\"\"===n?\"\":\"number\"!=typeof n||0===n||s in d||s.startsWith(\"--\")?String(n).trim():n+\"px\")+\";\"));return r?[r+\" {\"].concat(i,[\"}\"]):i}(e):e.toString()}var ew=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function e_(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return E(e)||v(e)?ew(ev(b(w,[e].concat(r)))):0===r.length&&1===e.length&&\"string\"==typeof e[0]?e:ew(ev(b(e,r)))}var eE=function(e,t,r){return void 0===r&&(r=_),e.theme!==r.theme&&e.theme||t||r.theme},eA=/[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^`{|}~-]+/g,ex=/(^-|-$)/g;function ek(e){return e.replace(eA,\"-\").replace(ex,\"\")}var eS=function(e){return Z(Q(e)>>>0)};function e$(e){return\"string\"==typeof e}var eC=function(e){return\"function\"==typeof e||\"object\"==typeof e&&null!==e&&!Array.isArray(e)},eP=a.createContext();eP.Consumer;var eI={},eO=function(e){return function e(t,r,n){if(void 0===n&&(n=_),!(0,o.isValidElementType)(r))return P(1,String(r));var i=function(){return t(r,n,e_.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,y({},n,{},i))},i.attrs=function(i){return e(t,r,y({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=x(t),s=!e$(t),o=r.attrs,l=void 0===o?w:o,u=r.componentId,c=void 0===u?(v=r.displayName,k=r.parentComponentId,eI[S=\"string\"!=typeof v?\"sc\":ek(v)]=(eI[S]||0)+1,$=S+\"-\"+eS(\"5.3.11\"+S+eI[S]),k?k+\"-\"+$:$):u,d=r.displayName,h=void 0===d?e$(t)?\"styled.\"+t:\"Styled(\"+A(t)+\")\":d,p=r.displayName&&r.componentId?ek(r.displayName)+\"-\"+r.componentId:r.componentId||c,m=i&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,b=r.shouldForwardProp;i&&t.shouldForwardProp&&(b=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,k,S,$,C,P=new et(n,p,i?t.componentStyle:void 0),I=P.isStatic&&0===l.length,O=function(e,t){return function(e,t,r,n){var i,s,o,l,u,c=e.attrs,d=e.componentStyle,h=e.defaultProps,p=e.foldedComponentIds,g=e.shouldForwardProp,m=e.styledComponentId,b=e.target,v=(void 0===(i=eE(t,(0,a.useContext)(eP),h)||_)&&(i=_),s=y({},t,{theme:i}),o={},c.forEach(function(e){var t,r,n,i=e;for(t in E(i)&&(i=i(s)),i)s[t]=o[t]=\"className\"===t?(r=o[t],n=i[t],r&&n?r+\" \"+n:r||n):i[t]}),[s,o]),w=v[0],A=v[1],x=(l=eu(),u=ec(),n?d.generateAndInjectStyles(_,l,u):d.generateAndInjectStyles(w,l,u)),k=A.$as||t.$as||A.as||t.as||b,S=e$(k),$=A!==t?y({},t,{},A):t,C={};for(var P in $)\"$\"!==P[0]&&\"as\"!==P&&(\"forwardedAs\"===P?C.as=$[P]:(g?g(P,f,k):!S||f(P))&&(C[P]=$[P]));return t.style&&A.style!==t.style&&(C.style=y({},t.style,{},A.style)),C.className=Array.prototype.concat(p,m,x!==m?x:null,t.className,A.className).filter(Boolean).join(\" \"),C.ref=r,(0,a.createElement)(k,C)}(C,e,t,I)};return O.displayName=h,(C=a.forwardRef(O)).attrs=m,C.componentStyle=P,C.displayName=h,C.shouldForwardProp=b,C.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):w,C.styledComponentId=p,C.target=i?t.target:t,C.withComponent=function(t){var i=r.componentId,s=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(i[r]=e[r]);return i}(r,[\"componentId\"]),o=i&&i+\"-\"+(e$(t)?t:ek(A(t)));return e(t,y({},s,{attrs:m,componentId:o}),n)},Object.defineProperty(C,\"defaultProps\",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var s=0;s<n.length;s++){var o=n[s];if(eC(o))for(var a in o)\"__proto__\"!==a&&\"constructor\"!==a&&\"prototype\"!==a&&function(t,r,n){var i=t[n];eC(r)&&eC(i)?e(i,r):t[n]=r}(t,o[a],a)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(C,\"toString\",{value:function(){return\".\"+C.styledComponentId}}),s&&g()(C,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C},e)};[\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"keygen\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"marquee\",\"menu\",\"menuitem\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"title\",\"tr\",\"track\",\"u\",\"ul\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"marker\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"textPath\",\"tspan\"].forEach(function(e){eO[e]=eO(e)});var eN=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ev(this.rules,t,r,n).join(\"\"),\"\"),s=this.componentId+e;r.insertRules(s,s,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eM(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e_.apply(void 0,[e].concat(r)),s=\"sc-global-\"+eS(JSON.stringify(i)),o=new eN(i,s);function l(e){var t=eu(),r=ec(),n=(0,a.useContext)(eP),i=(0,a.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,n,r),(0,a.useLayoutEffect)(function(){if(!t.server)return u(i,e,t,n,r),function(){return o.removeStyles(i,t)}},[i,e,t,n,r]),null}function u(e,t,r,n,i){if(o.isStatic)o.renderStyles(e,C,r,i);else{var s=y({},t,{theme:eE(t,n,l.defaultProps)});o.renderStyles(e,s,r,i)}}return a.memo(l)}function eR(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e_.apply(void 0,[e].concat(r)).join(\"\");return new eh(eS(i),i)}(s=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return\"\";var r=F();return\"<style \"+[r&&'nonce=\"'+r+'\"',k+'=\"true\"','data-styled-version=\"5.3.11\"'].filter(Boolean).join(\" \")+\">\"+t+\"</style>\"},this.getStyleTags=function(){return e.sealed?P(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return P(2);var t,r=((t={})[k]=\"\",t[\"data-styled-version\"]=\"5.3.11\",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=F();return n&&(r.nonce=n),[a.createElement(\"style\",y({},r,{key:\"sc-0-0\"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?P(2):a.createElement(ed,{sheet:this.instance},e)},s.interleaveWithNodeStream=function(e){return P(3)};var eT=eO},17914:function(e,t,r){var n;!function(i,s){\"use strict\";var o=\"function\",a=\"undefined\",l=\"object\",u=\"string\",c=\"major\",d=\"model\",h=\"name\",f=\"type\",p=\"vendor\",g=\"version\",m=\"architecture\",y=\"console\",b=\"mobile\",v=\"tablet\",w=\"smarttv\",_=\"wearable\",E=\"embedded\",A=\"Amazon\",x=\"Apple\",k=\"ASUS\",S=\"BlackBerry\",$=\"Browser\",C=\"Chrome\",P=\"Firefox\",I=\"Google\",O=\"Huawei\",N=\"Microsoft\",M=\"Motorola\",R=\"Opera\",T=\"Samsung\",D=\"Sharp\",L=\"Sony\",j=\"Xiaomi\",B=\"Zebra\",F=\"Facebook\",U=\"Chromium OS\",z=\"Mac OS\",q=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},H=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},G=function(e,t){return typeof e===u&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===u)return e=e.replace(/^\\s\\s*/,\"\"),typeof t===a?e:e.substring(0,500)},K=function(e,t){for(var r,n,i,a,u,c,d=0;d<t.length&&!u;){var h=t[d],f=t[d+1];for(r=n=0;r<h.length&&!u&&h[r];)if(u=h[r++].exec(e))for(i=0;i<f.length;i++)c=u[++n],typeof(a=f[i])===l&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):void 0:this[a[0]]=c?a[1].call(this,c,a[2]):void 0:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):void 0):this[a]=c||s;d+=2}},Y=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(G(t[r][n],e))return\"?\"===r?s:r}else if(G(t[r],e))return\"?\"===r?s:r;return e},Z={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},J={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[g,[h,\"Chrome\"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[g,[h,\"Edge\"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[h,g],[/opios[\\/ ]+([\\w\\.]+)/i],[g,[h,R+\" Mini\"]],[/\\bop(?:rg)?x\\/([\\w\\.]+)/i],[g,[h,R+\" GX\"]],[/\\bopr\\/([\\w\\.]+)/i],[g,[h,R]],[/\\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\\/ ]?([\\w\\.]+)/i],[g,[h,\"Baidu\"]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant|iemobile|slim)\\s?(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(heytap|ovi)browser\\/([\\d\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[h,g],[/\\bddg\\/([\\w\\.]+)/i],[g,[h,\"DuckDuckGo\"]],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[g,[h,\"UC\"+$]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i,/micromessenger\\/([\\w\\.]+)/i],[g,[h,\"WeChat\"]],[/konqueror\\/([\\w\\.]+)/i],[g,[h,\"Konqueror\"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[g,[h,\"IE\"]],[/ya(?:search)?browser\\/([\\w\\.]+)/i],[g,[h,\"Yandex\"]],[/slbrowser\\/([\\w\\.]+)/i],[g,[h,\"Smart Lenovo \"+$]],[/(avast|avg)\\/([\\w\\.]+)/i],[[h,/(.+)/,\"$1 Secure \"+$],g],[/\\bfocus\\/([\\w\\.]+)/i],[g,[h,P+\" Focus\"]],[/\\bopt\\/([\\w\\.]+)/i],[g,[h,R+\" Touch\"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[g,[h,\"Coc Coc\"]],[/dolfin\\/([\\w\\.]+)/i],[g,[h,\"Dolphin\"]],[/coast\\/([\\w\\.]+)/i],[g,[h,R+\" Coast\"]],[/miuibrowser\\/([\\w\\.]+)/i],[g,[h,\"MIUI \"+$]],[/fxios\\/([-\\w\\.]+)/i],[g,[h,P]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[h,\"360 \"+$]],[/(oculus|sailfish|huawei|vivo)browser\\/([\\w\\.]+)/i],[[h,/(.+)/,\"$1 \"+$],g],[/samsungbrowser\\/([\\w\\.]+)/i],[g,[h,T+\" Internet\"]],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[h,/_/g,\" \"],g],[/metasr[\\/ ]?([\\d\\.]+)/i],[g,[h,\"Sogou Explorer\"]],[/(sogou)mo\\w+\\/([\\d\\.]+)/i],[[h,\"Sogou Mobile\"],g],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[h,g],[/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[h],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[h,F],g],[/(Klarna)\\/([\\w\\.]+)/i,/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(alipay)client\\/([\\w\\.]+)/i,/(twitter)(?:and| f.+e\\/([\\w\\.]+))/i,/(chromium|instagram|snapchat)[\\/ ]([-\\w\\.]+)/i],[h,g],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[g,[h,\"GSA\"]],[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],[g,[h,\"TikTok\"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[g,[h,C+\" Headless\"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[h,C+\" WebView\"],g],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[g,[h,\"Android \"+$]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[h,g],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[g,[h,\"Mobile Safari\"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[h,[g,Y,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[h,g],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[h,\"Netscape\"],g],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[g,[h,P+\" Reality\"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\\/([\\w\\.]+)/i],[h,[g,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[m,\"amd64\"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\\)]/i],[[m,\"ia32\"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[m,\"arm64\"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[m,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[m,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[m,/ower/,\"\",V]],[/(sun4\\w)[;\\)]/i],[[m,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[m,V]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,T],[f,v]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[d,[p,T],[f,b]],[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],[d,[p,x],[f,b]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[d,[p,x],[f,v]],[/(macintosh);/i],[d,[p,x]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[d,[p,D],[f,b]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[d,[p,O],[f,v]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[d,[p,O],[f,b]],[/\\b(poco[\\w ]+|m2\\d{3}j\\d\\d[a-z]{2})(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/oid[^\\)]+; (m?[12][0-389][01]\\w{3,6}[c-y])( bui|; wv|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[d,/_/g,\" \"],[p,j],[f,b]],[/oid[^\\)]+; (2\\d{4}(283|rpbf)[cgl])( bui|\\))/i,/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[d,/_/g,\" \"],[p,j],[f,v]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[d,[p,\"OPPO\"],[f,b]],[/\\b(opd2\\d{3}a?) bui/i],[d,[p,\"OPPO\"],[f,v]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[d,[p,\"Vivo\"],[f,b]],[/\\b(rmx[1-3]\\d{3})(?: bui|;|\\))/i],[d,[p,\"Realme\"],[f,b]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[d,[p,M],[f,b]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[d,[p,M],[f,v]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,\"LG\"],[f,v]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[d,[p,\"LG\"],[f,b]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[d,[p,\"Lenovo\"],[f,v]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[d,/_/g,\" \"],[p,\"Nokia\"],[f,b]],[/(pixel c)\\b/i],[d,[p,I],[f,v]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[d,[p,I],[f,b]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[d,[p,L],[f,b]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[d,\"Xperia Tablet\"],[p,L],[f,v]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[d,[p,\"OnePlus\"],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[d,[p,A],[f,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[p,A],[f,b]],[/(playbook);[-\\w\\),; ]+(rim)/i],[d,p,[f,v]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[d,[p,S],[f,b]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[d,[p,k],[f,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[d,[p,k],[f,b]],[/(nexus 9)/i],[d,[p,\"HTC\"],[f,v]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i],[p,[d,/_/g,\" \"],[f,b]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[d,[p,\"Acer\"],[f,v]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[d,[p,\"Meizu\"],[f,b]],[/; ((?:power )?armor(?:[\\w ]{0,8}))(?: bui|\\))/i],[d,[p,\"Ulefone\"],[f,b]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[p,d,[f,b]],[/(kobo)\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[p,d,[f,v]],[/(surface duo)/i],[d,[p,N],[f,v]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[d,[p,\"Fairphone\"],[f,b]],[/(u304aa)/i],[d,[p,\"AT&T\"],[f,b]],[/\\bsie-(\\w*)/i],[d,[p,\"Siemens\"],[f,b]],[/\\b(rct\\w+) b/i],[d,[p,\"RCA\"],[f,v]],[/\\b(venue[\\d ]{2,7}) b/i],[d,[p,\"Dell\"],[f,v]],[/\\b(q(?:mv|ta)\\w+) b/i],[d,[p,\"Verizon\"],[f,v]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[d,[p,\"Barnes & Noble\"],[f,v]],[/\\b(tm\\d{3}\\w+) b/i],[d,[p,\"NuVision\"],[f,v]],[/\\b(k88) b/i],[d,[p,\"ZTE\"],[f,v]],[/\\b(nx\\d{3}j) b/i],[d,[p,\"ZTE\"],[f,b]],[/\\b(gen\\d{3}) b.+49h/i],[d,[p,\"Swiss\"],[f,b]],[/\\b(zur\\d{3}) b/i],[d,[p,\"Swiss\"],[f,v]],[/\\b((zeki)?tb.*\\b) b/i],[d,[p,\"Zeki\"],[f,v]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[p,\"Dragon Touch\"],d,[f,v]],[/\\b(ns-?\\w{0,9}) b/i],[d,[p,\"Insignia\"],[f,v]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[d,[p,\"NextBook\"],[f,v]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,\"Voice\"],d,[f,b]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[p,\"LvTel\"],d,[f,b]],[/\\b(ph-1) /i],[d,[p,\"Essential\"],[f,b]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[d,[p,\"Envizen\"],[f,v]],[/\\b(trio[-\\w\\. ]+) b/i],[d,[p,\"MachSpeed\"],[f,v]],[/\\btu_(1491) b/i],[d,[p,\"Rotor\"],[f,v]],[/(shield[\\w ]+) b/i],[d,[p,\"Nvidia\"],[f,v]],[/(sprint) (\\w+)/i],[p,d,[f,b]],[/(kin\\.[onetw]{3})/i],[[d,/\\./g,\" \"],[p,N],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[d,[p,B],[f,v]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[d,[p,B],[f,b]],[/smart-tv.+(samsung)/i],[p,[f,w]],[/hbbtv.+maple;(\\d+)/i],[[d,/^/,\"SmartTV\"],[p,T],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[p,\"LG\"],[f,w]],[/(apple) ?tv/i],[p,[d,x+\" TV\"],[f,w]],[/crkey/i],[[d,C+\"cast\"],[p,I],[f,w]],[/droid.+aft(\\w+)( bui|\\))/i],[d,[p,A],[f,w]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[d,[p,D],[f,w]],[/(bravia[\\w ]+)( bui|\\))/i],[d,[p,L],[f,w]],[/(mitv-\\w{5}) bui/i],[d,[p,j],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[f,w]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i],[[p,W],[d,W],[f,w]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[f,y]],[/droid.+; (shield) bui/i],[d,[p,\"Nvidia\"],[f,y]],[/(playstation [345portablevi]+)/i],[d,[p,L],[f,y]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[d,[p,N],[f,y]],[/((pebble))app/i],[p,d,[f,_]],[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],[d,[p,x],[f,_]],[/droid.+; (glass) \\d/i],[d,[p,I],[f,_]],[/droid.+; (wt63?0{2,3})\\)/i],[d,[p,B],[f,_]],[/(quest( \\d| pro)?)/i],[d,[p,F],[f,_]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[p,[f,E]],[/(aeobc)\\b/i],[d,[p,A],[f,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\\)|\\) applew).+? mobile safari/i],[d,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[d,[f,v]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[f,v]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/(android[-\\w\\. ]{0,9});.+buil/i],[d,[p,\"Generic\"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[g,[h,\"EdgeHTML\"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[g,[h,\"Blink\"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,/\\b(libweb)/i],[h,g],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i],[h,[g,Y,Z]],[/windows nt 6\\.2; (arm)/i,/windows[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[g,Y,Z],[h,\"Windows\"]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/(?:ios;fbsv\\/|iphone.+ios[\\/ ])([\\d\\.]+)/i,/cfnetwork\\/.+darwin/i],[[g,/_/g,\".\"],[h,\"iOS\"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[h,z],[g,/_/g,\".\"]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[h,g],[/\\(bb(10);/i],[g,[h,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[g,[h,\"Symbian\"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[g,[h,P+\" OS\"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[g,[h,\"webOS\"]],[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],[g,[h,\"watchOS\"]],[/crkey\\/([\\d\\.]+)/i],[g,[h,C+\"cast\"]],[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],[[h,U],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[h,g],[/(sunos) ?([\\w\\.\\d]*)/i],[[h,\"Solaris\"],g],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\w\\.]*)/i],[h,g]]},Q=function(e,t){if(typeof e===l&&(t=e,e=s),!(this instanceof Q))return new Q(e,t).getResult();var r=typeof i!==a&&i.navigator?i.navigator:s,n=e||(r&&r.userAgent?r.userAgent:\"\"),y=r&&r.userAgentData?r.userAgentData:s,w=t?q(J,t):J,_=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=s,t[g]=s,K.call(t,n,w.browser),t[c]=typeof(e=t[g])===u?e.replace(/[^\\d\\.]/g,\"\").split(\".\")[0]:s,_&&r&&r.brave&&typeof r.brave.isBrave==o&&(t[h]=\"Brave\"),t},this.getCPU=function(){var e={};return e[m]=s,K.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[p]=s,e[d]=s,e[f]=s,K.call(e,n,w.device),_&&!e[f]&&y&&y.mobile&&(e[f]=b),_&&\"Macintosh\"==e[d]&&r&&typeof r.standalone!==a&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]=\"iPad\",e[f]=v),e},this.getEngine=function(){var e={};return e[h]=s,e[g]=s,K.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[h]=s,e[g]=s,K.call(e,n,w.os),_&&!e[h]&&y&&y.platform&&\"Unknown\"!=y.platform&&(e[h]=y.platform.replace(/chrome os/i,U).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?W(e,500):e,this},this.setUA(n),this};Q.VERSION=\"1.0.38\",Q.BROWSER=H([h,g,c]),Q.CPU=H([m]),Q.DEVICE=H([d,p,f,y,b,w,v,_,E]),Q.ENGINE=Q.OS=H([h,g]),typeof t!==a?(e.exports&&(t=e.exports=Q),t.UAParser=Q):r.amdO?s!==(n=(function(){return Q}).call(t,r,t,e))&&(e.exports=n):typeof i!==a&&(i.UAParser=Q);var X=typeof i!==a&&(i.jQuery||i.Zepto);if(X&&!X.ua){var ee=new Q;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)X.ua[r]=t[r]}}}(\"object\"==typeof window?window:this)},33404:function(e,t,r){\"use strict\";/**\n * @license React\n * use-sync-external-store-with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var n=r(2265),i=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useSyncExternalStore,o=n.useRef,a=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var d=o(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=s(e,(d=l(function(){function e(e){if(!a){if(a=!0,s=e,e=n(e),void 0!==c&&h.hasValue){var t=h.value;if(c(t,e))return o=t}return o=e}if(t=o,i(s,e))return t;var r=n(e);return void 0!==c&&c(t,r)?t:(s=e,o=r)}var s,o,a=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],d[1]);return a(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},67183:function(e,t,r){\"use strict\";e.exports=r(33404)},20310:function(e,t,r){e.exports=function(e,t){if(n(\"noDeprecation\"))return e;var r=!1;return function(){if(!r){if(n(\"throwDeprecation\"))throw Error(t);n(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}};function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}},20920:function(e,t,r){\"use strict\";let n;r.d(t,{Z:function(){return a}});var i={randomUUID:\"undefined\"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var a=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();let a=(e=e||{}).random||(e.rng||function(){if(!n&&!(n=\"undefined\"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return n(s)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+\"-\"+o[e[t+4]]+o[e[t+5]]+\"-\"+o[e[t+6]]+o[e[t+7]]+\"-\"+o[e[t+8]]+o[e[t+9]]+\"-\"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}(a)}},25566:function(e){var t,r,n,i=e.exports={};function s(){throw Error(\"setTimeout has not been defined\")}function o(){throw Error(\"clearTimeout has not been defined\")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t=\"function\"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r=\"function\"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(e){throw Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},78227:function(e,t,r){\"use strict\";let n=r(57963);e.exports=s;let i=function(){function e(e){return void 0!==e&&e}try{if(\"undefined\"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,\"globalThis\",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function s(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&\"function\"!=typeof n.send)throw Error(\"pino: transmit option must have a send function\");let c=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let d=e.serializers||{},g=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return\"!stdSerializers.err\"!==e}):!0===t&&Object.keys(d),m=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf(\"!stdSerializers.err\")>-1&&(m=!1),\"function\"==typeof c&&(c.error=c.fatal=c.warn=c.info=c.debug=c.trace=c),!1===e.enabled&&(e.level=\"silent\");let y=e.level||\"info\",b=Object.create(c);b.log||(b.log=h),Object.defineProperty(b,\"levelVal\",{get:function(){return\"silent\"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(b,\"level\",{get:function(){return this._level},set:function(e){if(\"silent\"!==e&&!this.levels.values[e])throw Error(\"unknown level \"+e);this._level=e,o(v,b,\"error\",\"log\"),o(v,b,\"fatal\",\"error\"),o(v,b,\"warn\",\"error\"),o(v,b,\"info\",\"log\"),o(v,b,\"debug\",\"log\"),o(v,b,\"trace\",\"log\")}});let v={transmit:n,serialize:g,asObject:e.browser.asObject,levels:[\"error\",\"fatal\",\"warn\",\"info\",\"debug\",\"trace\"],timestamp:\"function\"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?f:p};return b.levels=s.levels,b.level=y,b.setMaxListeners=b.getMaxListeners=b.emit=b.addListener=b.on=b.prependListener=b.once=b.prependOnceListener=b.removeListener=b.removeAllListeners=b.listeners=b.listenerCount=b.eventNames=b.write=b.flush=h,b.serializers=d,b._serialize=g,b._stdErrSerialize=m,b.child=function(t,r){if(!t)throw Error(\"missing bindings for child Pino\");r=r||{},g&&t.serializers&&(r.serializers=t.serializers);let i=r.serializers;if(g&&i){var s=Object.assign({},d,i),o=!0===e.browser.serialize?Object.keys(s):g;delete t.serializers,a([t],o,s,this._stdErrSerialize)}function c(e){this._childLevel=(0|e._childLevel)+1,this.error=l(e,t,\"error\"),this.fatal=l(e,t,\"fatal\"),this.warn=l(e,t,\"warn\"),this.info=l(e,t,\"info\"),this.debug=l(e,t,\"debug\"),this.trace=l(e,t,\"trace\"),s&&(this.serializers=s,this._serialize=o),n&&(this._logEvent=u([].concat(e._logEvent.bindings,t)))}return c.prototype=this,new c(this)},n&&(b._logEvent=u()),b}function o(e,t,r,o){let l=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?h:l[r]?l[r]:i[r]||i[o]||h,function(e,t,r){if(e.transmit||t[r]!==h){var o;t[r]=(o=t[r],function(){let l=e.timestamp(),c=Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h<c.length;h++)c[h]=arguments[h];if(e.serialize&&!e.asObject&&a(c,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?o.call(d,function(e,t,r,i){e._serialize&&a(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),l=o[0],u={};i&&(u.time=i),u.level=s.levels.values[t];let c=(0|e._childLevel)+1;if(c<1&&(c=1),null!==l&&\"object\"==typeof l){for(;c--&&\"object\"==typeof o[0];)Object.assign(u,o.shift());l=o.length?n(o.shift(),o):void 0}else\"string\"==typeof l&&(l=n(o.shift(),o));return void 0!==l&&(u.msg=l),u}(this,r,c,l)):o.apply(d,c),e.transmit){let n=e.transmit.level||t.level,i=s.levels.values[n],o=s.levels.values[r];if(o<i)return;(function(e,t,r){let n=t.send,i=t.ts,s=t.methodLevel,o=t.methodValue,l=t.val,c=e._logEvent.bindings;a(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(e){return -1===c.indexOf(e)}),e._logEvent.level.label=s,e._logEvent.level.value=o,n(s,e._logEvent,l),e._logEvent=u(c)})(this,{ts:l,methodLevel:r,methodValue:o,transmitLevel:n,transmitValue:s.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},c)}})}}(e,t,r)}function a(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=s.stdSerializers.err(e[i]);else if(\"object\"==typeof e[i]&&!Array.isArray(e[i]))for(let n in e[i])t&&t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function l(e,t,r){return function(){let n=Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function u(e){return{ts:0,messages:[],bindings:e||[],level:{label:\"\",value:0}}}function c(){return{}}function d(e){return e}function h(){}function f(){return!1}function p(){return Date.now()}s.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:\"trace\",20:\"debug\",30:\"info\",40:\"warn\",50:\"error\",60:\"fatal\"}},s.stdSerializers={mapHttpRequest:c,mapHttpResponse:c,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:c,res:c,err:function(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}},s.stdTimeFunctions=Object.assign({},{nullTime:f,epochTime:p,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},60943:function(e,t,r){\"use strict\";let n,i,s,o,a,l,u,c,d,h,f,p,g,m;r.d(t,{V:function(){return eD}});var y,b,v,w=r(2265),_=r.t(w,2),E=r(99299),A=r(6584),x=r(88703);function k(e,t,r,n){let i=(0,x.E)(r);(0,w.useEffect)(()=>{function r(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var S=r(26400),$=r(28043);function C(e){let t=(0,A.z)(e),r=(0,w.useRef)(!1);(0,w.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,$.Y)(()=>{r.current&&t()})}),[t])}var P=r(54462);function I(e){return P.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty(\"current\")&&e.current instanceof Node?e.current.ownerDocument:document}function O(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,w.useMemo)(()=>I(...t),[...t])}var N=r(33856),M=r(41469);function R(e,t,r){let n=(0,x.E)(t);(0,w.useEffect)(()=>{function t(e){n.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}var T=((n=T||{})[n.Forwards=0]=\"Forwards\",n[n.Backwards=1]=\"Backwards\",n);function D(e,t){let r=(0,w.useRef)([]),n=(0,A.z)(e);(0,w.useEffect)(()=>{let e=[...r.current];for(let[i,s]of t.entries())if(r.current[i]!==s){let i=n(t,e);return r.current=t,i}},[n,...t])}var L=r(3600),j=((i=j||{})[i.None=1]=\"None\",i[i.Focusable=2]=\"Focusable\",i[i.Hidden=4]=\"Hidden\",i);let B=(0,L.yV)(function(e,t){var r;let{features:n=1,...i}=e,s={ref:t,\"aria-hidden\":(2&n)==2||(null!=(r=i[\"aria-hidden\"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:\"fixed\",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\",...(4&n)==4&&(2&n)!=2&&{display:\"none\"}}};return(0,L.sY)({ourProps:s,theirProps:i,slot:{},defaultTag:\"div\",name:\"Hidden\"})}),F=[];!function(e){function t(){\"loading\"!==document.readyState&&(e(),document.removeEventListener(\"DOMContentLoaded\",t))}\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&(document.addEventListener(\"DOMContentLoaded\",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&F[0]!==e.target&&(F.unshift(e.target),(F=F.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener(\"click\",e,{capture:!0}),window.addEventListener(\"mousedown\",e,{capture:!0}),window.addEventListener(\"focus\",e,{capture:!0}),document.body.addEventListener(\"click\",e,{capture:!0}),document.body.addEventListener(\"mousedown\",e,{capture:!0}),document.body.addEventListener(\"focus\",e,{capture:!0})});var U=r(5583);let z=[\"[contentEditable=true]\",\"[tabindex]\",\"a[href]\",\"area[href]\",\"button:not([disabled])\",\"iframe\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\"].map(e=>\"\".concat(e,\":not([tabindex='-1'])\")).join(\",\");var q=((s=q||{})[s.First=1]=\"First\",s[s.Previous=2]=\"Previous\",s[s.Next=4]=\"Next\",s[s.Last=8]=\"Last\",s[s.WrapAround=16]=\"WrapAround\",s[s.NoScroll=32]=\"NoScroll\",s),H=((o=H||{})[o.Error=0]=\"Error\",o[o.Overflow=1]=\"Overflow\",o[o.Success=2]=\"Success\",o[o.Underflow=3]=\"Underflow\",o),G=((a=G||{})[a.Previous=-1]=\"Previous\",a[a.Next=1]=\"Next\",a),V=((l=V||{})[l.Strict=0]=\"Strict\",l[l.Loose=1]=\"Loose\",l),W=((u=W||{})[u.Keyboard=0]=\"Keyboard\",u[u.Mouse=1]=\"Mouse\",u);function K(e){null==e||e.focus({preventScroll:!0})}function Y(e,t){var r,n,i;let{sorted:s=!0,relativeTo:o=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?s?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let s=n.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(z)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.includes(e))),o=null!=o?o:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error(\"Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last\")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(o))-1;if(4&t)return Math.max(0,u.indexOf(o))+1;if(8&t)return u.length-1;throw Error(\"Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last\")})(),h=32&t?{preventScroll:!0}:{},f=0,p=u.length,g;do{if(f>=p||f+p<=0)return 0;let e=d+f;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(g=u[e])||g.focus(h),f+=c}while(g!==l.activeElement);return 6&t&&null!=(i=null==(n=null==(r=g)?void 0:r.matches)?void 0:n.call(r,\"textarea,input\"))&&i&&g.select(),2}function Z(e){if(!e)return new Set;if(\"function\"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&(document.addEventListener(\"keydown\",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=\"\")},!0),document.addEventListener(\"click\",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible=\"\")},!0));var J=((c=J||{})[c.None=1]=\"None\",c[c.InitialFocus=2]=\"InitialFocus\",c[c.TabLock=4]=\"TabLock\",c[c.FocusLock=8]=\"FocusLock\",c[c.RestoreFocus=16]=\"RestoreFocus\",c[c.All=30]=\"All\",c);let Q=Object.assign((0,L.yV)(function(e,t){let r,n=(0,w.useRef)(null),i=(0,M.T)(n,t),{initialFocus:s,containers:o,features:a=30,...l}=e;(0,N.H)()||(a=1);let u=O(n);!function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,w.useRef)(F.slice());return D((e,r)=>{let[n]=e,[i]=r;!0===i&&!1===n&&(0,$.Y)(()=>{t.current.splice(0)}),!1===i&&!0===n&&(t.current=F.slice())},[e,F,t]),(0,A.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);D(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&K(n())},[t]),C(()=>{t&&K(n())})}({ownerDocument:u},!!(16&a));let c=function(e,t){let{ownerDocument:r,container:n,initialFocus:i}=e,s=(0,w.useRef)(null),o=(0,S.t)();return D(()=>{if(!t)return;let e=n.current;e&&(0,$.Y)(()=>{if(!o.current)return;let t=null==r?void 0:r.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===t){s.current=t;return}}else if(e.contains(t)){s.current=t;return}null!=i&&i.current?K(i.current):Y(e,q.First)===H.Error&&console.warn(\"There are no focusable elements inside the <FocusTrap />\"),s.current=null==r?void 0:r.activeElement})},[t]),s}({ownerDocument:u,container:n,initialFocus:s},!!(2&a));!function(e,t){let{ownerDocument:r,container:n,containers:i,previousActiveElement:s}=e,o=(0,S.t)();k(null==r?void 0:r.defaultView,\"focus\",e=>{if(!t||!o.current)return;let r=Z(i);n.current instanceof HTMLElement&&r.add(n.current);let a=s.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?X(r,l)?(s.current=l,K(l)):(e.preventDefault(),e.stopPropagation(),K(a)):K(s.current)},!0)}({ownerDocument:u,container:n,containers:o,previousActiveElement:c},!!(8&a));let d=(r=(0,w.useRef)(0),R(\"keydown\",e=>{\"Tab\"===e.key&&(r.current=e.shiftKey?1:0)},!0),r),h=(0,A.z)(e=>{let t=n.current;t&&(0,U.E)(d.current,{[T.Forwards]:()=>{Y(t,q.First,{skipElements:[e.relatedTarget]})},[T.Backwards]:()=>{Y(t,q.Last,{skipElements:[e.relatedTarget]})}})}),f=(0,E.G)(),p=(0,w.useRef)(!1);return w.createElement(w.Fragment,null,!!(4&a)&&w.createElement(B,{as:\"button\",type:\"button\",\"data-headlessui-focus-guard\":!0,onFocus:h,features:j.Focusable}),(0,L.sY)({ourProps:{ref:i,onKeyDown(e){\"Tab\"==e.key&&(p.current=!0,f.requestAnimationFrame(()=>{p.current=!1}))},onBlur(e){let t=Z(o);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&\"true\"!==r.dataset.headlessuiFocusGuard&&(X(t,r)||(p.current?Y(n.current,(0,U.E)(d.current,{[T.Forwards]:()=>q.Next,[T.Backwards]:()=>q.Previous})|q.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&K(e.target)))}},theirProps:l,defaultTag:\"div\",name:\"FocusTrap\"}),!!(4&a)&&w.createElement(B,{as:\"button\",type:\"button\",\"data-headlessui-focus-guard\":!0,onFocus:h,features:j.Focusable}))}),{features:J});function X(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var ee=r(54887),et=r(61463);let er=(0,w.createContext)(!1);function en(e){return w.createElement(er.Provider,{value:e.force},e.children)}let ei=w.Fragment,es=w.Fragment,eo=(0,w.createContext)(null),ea=(0,w.createContext)(null),el=Object.assign((0,L.yV)(function(e,t){let r=(0,w.useRef)(null),n=(0,M.T)((0,M.h)(e=>{r.current=e}),t),i=O(r),s=function(e){let t=(0,w.useContext)(er),r=(0,w.useContext)(eo),n=O(e),[i,s]=(0,w.useState)(()=>{if(!t&&null!==r||P.O.isServer)return null;let e=null==n?void 0:n.getElementById(\"headlessui-portal-root\");if(e)return e;if(null===n)return null;let i=n.createElement(\"div\");return i.setAttribute(\"id\",\"headlessui-portal-root\"),n.body.appendChild(i)});return(0,w.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,w.useEffect)(()=>{t||null!==r&&s(r.current)},[r,s,t]),i}(r),[o]=(0,w.useState)(()=>{var e;return P.O.isServer?null:null!=(e=null==i?void 0:i.createElement(\"div\"))?e:null}),a=(0,w.useContext)(ea),l=(0,N.H)();return(0,et.e)(()=>{!s||!o||s.contains(o)||(o.setAttribute(\"data-headlessui-portal\",\"\"),s.appendChild(o))},[s,o]),(0,et.e)(()=>{if(o&&a)return a.register(o)},[a,o]),C(()=>{var e;s&&o&&(o instanceof Node&&s.contains(o)&&s.removeChild(o),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}),l&&s&&o?(0,ee.createPortal)((0,L.sY)({ourProps:{ref:n},theirProps:e,defaultTag:ei,name:\"Portal\"}),o):null}),{Group:(0,L.yV)(function(e,t){let{target:r,...n}=e,i={ref:(0,M.T)(t)};return w.createElement(eo.Provider,{value:r},(0,L.sY)({ourProps:i,theirProps:n,defaultTag:es,name:\"Popover.Group\"}))})}),{useState:eu,useEffect:ec,useLayoutEffect:ed,useDebugValue:eh}=_;\"undefined\"!=typeof window&&void 0!==window.document&&window.document.createElement;let ef=_.useSyncExternalStore;var ep=r(70777);function eg(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}let em=(y=()=>new Map,b={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,ep.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:r,d:n,meta:i}=e,s={doc:r,d:n,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(i)},o=[eg()?{before(e){let{doc:t,d:r,meta:n}=e;function i(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}r.microTask(()=>{var e;if(\"auto\"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,ep.k)();e.style(t.documentElement,\"scrollBehavior\",\"auto\"),r.add(()=>r.microTask(()=>e.dispose()))}let n=null!=(e=window.scrollY)?e:window.pageYOffset,s=null;r.addEventListener(t,\"click\",e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest(\"a\");if(!r)return;let{hash:n}=new URL(r.href),o=t.querySelector(n);o&&!i(o)&&(s=o)}catch(e){}},!0),r.addEventListener(t,\"touchstart\",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;r.style(t,\"overscrollBehavior\",\"contain\")}else r.style(e.target,\"touchAction\",\"none\")}}),r.addEventListener(t,\"touchmove\",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&\"\"!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;\"\"===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),r.add(()=>{var e;n!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,n),s&&s.isConnected&&(s.scrollIntoView({block:\"nearest\"}),s=null)})})}}:{},{before(e){var r;let{doc:n}=e,i=n.documentElement;t=(null!=(r=n.defaultView)?r:window).innerWidth-i.clientWidth},after(e){let{doc:r,d:n}=e,i=r.documentElement,s=i.clientWidth-i.offsetWidth,o=t-s;n.style(i,\"paddingRight\",\"\".concat(o,\"px\"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,\"overflow\",\"hidden\")}}];o.forEach(e=>{let{before:t}=e;return null==t?void 0:t(s)}),o.forEach(e=>{let{after:t}=e;return null==t?void 0:t(s)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},d=y(),h=new Set,{getSnapshot:()=>d,subscribe:e=>(h.add(e),()=>h.delete(e)),dispatch(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=b[e].call(d,...r);i&&(d=i,h.forEach(e=>e()))}});em.subscribe(()=>{let e=em.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e=\"hidden\"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&em.dispatch(r.count>0?\"SCROLL_PREVENT\":\"SCROLL_ALLOW\",r),0===r.count&&em.dispatch(\"TEARDOWN\",r)}});let ey=null!=(v=w.useId)?v:function(){let e=(0,N.H)(),[t,r]=w.useState(e?()=>P.O.nextId():null);return(0,et.e)(()=>{null===t&&r(P.O.nextId())},[t]),null!=t?\"\"+t:void 0},eb=new Map,ev=new Map;function ew(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,et.e)(()=>{var r;if(!t)return;let n=\"function\"==typeof e?e():e.current;if(!n)return;let i=null!=(r=ev.get(n))?r:0;return ev.set(n,i+1),0!==i||(eb.set(n,{\"aria-hidden\":n.getAttribute(\"aria-hidden\"),inert:n.inert}),n.setAttribute(\"aria-hidden\",\"true\"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ev.get(n))?e:1;if(1===t?ev.delete(n):ev.set(n,t-1),1!==t)return;let r=eb.get(n);r&&(null===r[\"aria-hidden\"]?n.removeAttribute(\"aria-hidden\"):n.setAttribute(\"aria-hidden\",r[\"aria-hidden\"]),n.inert=r.inert,eb.delete(n))}},[e,t])}function e_(e,t,r){let n=(0,x.E)(t);(0,w.useEffect)(()=>{function t(e){n.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var eE=r(53509);let eA=(0,w.createContext)(()=>{});eA.displayName=\"StackContext\";var ex=((f=ex||{})[f.Add=0]=\"Add\",f[f.Remove=1]=\"Remove\",f);function ek(e){let{children:t,onUpdate:r,type:n,element:i,enabled:s}=e,o=(0,w.useContext)(eA),a=(0,A.z)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),o(...t)});return(0,et.e)(()=>{let e=void 0===s||!0===s;return e&&a(0,n,i),()=>{e&&a(1,n,i)}},[a,n,i,s]),w.createElement(eA.Provider,{value:a},t)}let eS=(0,w.createContext)(null),e$=Object.assign((0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-description-\".concat(r),...i}=e,s=function e(){let t=(0,w.useContext)(eS);if(null===t){let t=Error(\"You used a <Description /> component, but it is not inside a relevant parent.\");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),o=(0,M.T)(t);(0,et.e)(()=>s.register(n),[n,s.register]);let a={ref:o,...s.props,id:n};return(0,L.sY)({ourProps:a,theirProps:i,slot:s.slot||{},defaultTag:\"p\",name:s.name||\"Description\"})}),{});var eC=((p=eC||{}).Space=\" \",p.Enter=\"Enter\",p.Escape=\"Escape\",p.Backspace=\"Backspace\",p.Delete=\"Delete\",p.ArrowLeft=\"ArrowLeft\",p.ArrowUp=\"ArrowUp\",p.ArrowRight=\"ArrowRight\",p.ArrowDown=\"ArrowDown\",p.Home=\"Home\",p.End=\"End\",p.PageUp=\"PageUp\",p.PageDown=\"PageDown\",p.Tab=\"Tab\",p),eP=((g=eP||{})[g.Open=0]=\"Open\",g[g.Closed=1]=\"Closed\",g),eI=((m=eI||{})[m.SetTitleId=0]=\"SetTitleId\",m);let eO={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eN=(0,w.createContext)(null);function eM(e){let t=(0,w.useContext)(eN);if(null===t){let t=Error(\"<\".concat(e,\" /> is missing a parent <Dialog /> component.\"));throw Error.captureStackTrace&&Error.captureStackTrace(t,eM),t}return t}function eR(e,t){return(0,U.E)(t.type,eO,e,t)}eN.displayName=\"DialogContext\";let eT=L.AN.RenderStrategy|L.AN.Static,eD=Object.assign((0,L.yV)(function(e,t){let r,n,i,s,o,a=ey(),{id:l=\"headlessui-dialog-\".concat(a),open:u,onClose:c,initialFocus:d,role:h=\"dialog\",__demoMode:f=!1,...p}=e,[g,m]=(0,w.useState)(0),y=(0,w.useRef)(!1);h=\"dialog\"===h||\"alertdialog\"===h?h:(y.current||(y.current=!0,console.warn(\"Invalid role [\".concat(h,\"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead.\"))),\"dialog\");let b=(0,eE.oJ)();void 0===u&&null!==b&&(u=(b&eE.ZM.Open)===eE.ZM.Open);let v=(0,w.useRef)(null),_=(0,M.T)(v,t),E=O(v),x=e.hasOwnProperty(\"open\")||null!==b,S=e.hasOwnProperty(\"onClose\");if(!x&&!S)throw Error(\"You have to provide an `open` and an `onClose` prop to the `Dialog` component.\");if(!x)throw Error(\"You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.\");if(!S)throw Error(\"You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.\");if(\"boolean\"!=typeof u)throw Error(\"You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: \".concat(u));if(\"function\"!=typeof c)throw Error(\"You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: \".concat(c));let $=u?0:1,[C,P]=(0,w.useReducer)(eR,{titleId:null,descriptionId:null,panelRef:(0,w.createRef)()}),T=(0,A.z)(()=>c(!1)),D=(0,A.z)(e=>P({type:0,id:e})),F=!!(0,N.H)()&&!f&&0===$,q=g>1,H=null!==(0,w.useContext)(eN),[G,W]=(r=(0,w.useContext)(ea),n=(0,w.useRef)([]),i=(0,A.z)(e=>(n.current.push(e),r&&r.register(e),()=>s(e))),s=(0,A.z)(e=>{let t=n.current.indexOf(e);-1!==t&&n.current.splice(t,1),r&&r.unregister(e)}),o=(0,w.useMemo)(()=>({register:i,unregister:s,portals:n}),[i,s,n]),[n,(0,w.useMemo)(()=>function(e){let{children:t}=e;return w.createElement(ea.Provider,{value:o},t)},[o])]),{resolveContainers:K,mainTreeNodeRef:Y,MainTreeNode:Z}=function(){var e;let{defaultContainers:t=[],portals:r,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,w.useRef)(null!=(e=null==n?void 0:n.current)?e:null),s=O(i),o=(0,A.z)(()=>{var e,n,o;let a=[];for(let e of t)null!==e&&(e instanceof HTMLElement?a.push(e):\"current\"in e&&e.current instanceof HTMLElement&&a.push(e.current));if(null!=r&&r.current)for(let e of r.current)a.push(e);for(let t of null!=(e=null==s?void 0:s.querySelectorAll(\"html > *, body > *\"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&\"headlessui-portal-root\"!==t.id&&(t.contains(i.current)||t.contains(null==(o=null==(n=i.current)?void 0:n.getRootNode())?void 0:o.host)||a.some(e=>t.contains(e))||a.push(t));return a});return{resolveContainers:o,contains:(0,A.z)(e=>o().some(t=>t.contains(e))),mainTreeNodeRef:i,MainTreeNode:(0,w.useMemo)(()=>function(){return null!=n?null:w.createElement(B,{features:j.Hidden,ref:i})},[i,n])}}({portals:G,defaultContainers:[{get current(){var J;return null!=(J=C.panelRef.current)?J:v.current}}]}),X=null!==b&&(b&eE.ZM.Closing)===eE.ZM.Closing,ee=!H&&!X&&F;ew((0,w.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==E?void 0:E.querySelectorAll(\"body > *\"))?e:[]).find(e=>\"headlessui-portal-root\"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),ee);let er=!!q||F;ew((0,w.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==E?void 0:E.querySelectorAll(\"[data-headlessui-portal]\"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),er),function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,w.useRef)(!1);function i(r,i){if(!n.current||r.defaultPrevented)return;let s=i(r);if(null!==s&&s.getRootNode().contains(s)&&s.isConnected){for(let t of function e(t){return\"function\"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(s)||r.composed&&r.composedPath().includes(e))return}return!function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=I(e))?void 0:t.body)&&(0,U.E)(r,{0:()=>e.matches(z),1(){let t=e;for(;null!==t;){if(t.matches(z))return!0;t=t.parentElement}return!1}})}(s,V.Loose)&&-1!==s.tabIndex&&r.preventDefault(),t(r,s)}}(0,w.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);let s=(0,w.useRef)(null);e_(\"pointerdown\",e=>{var t,r;n.current&&(s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),e_(\"mousedown\",e=>{var t,r;n.current&&(s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),e_(\"click\",e=>{eg()||/Android/gi.test(window.navigator.userAgent)||s.current&&(i(e,()=>s.current),s.current=null)},!0),e_(\"touchend\",e=>i(e,()=>e.target instanceof HTMLElement?e.target:null),!0),R(\"blur\",e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}(K,e=>{e.preventDefault(),T()},!(!F||q));let ei=!(q||0!==$);k(null==E?void 0:E.defaultView,\"keydown\",e=>{ei&&(e.defaultPrevented||e.key===eC.Escape&&(e.preventDefault(),e.stopPropagation(),T()))}),function(e,t){var r;let n,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],s]}},n=ef(em.subscribe,em.getSnapshot,em.getSnapshot),(i=e?n.get(e):void 0)&&i.count,(0,et.e)(()=>{if(!(!e||!t))return em.dispatch(\"PUSH\",e,r),()=>em.dispatch(\"POP\",e,r)},[t,e])}(E,!(X||0!==$||H),K),(0,w.useEffect)(()=>{if(0!==$||!v.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&T()}});return e.observe(v.current),()=>e.disconnect()},[$,v,T]);let[es,eo]=function(){let[e,t]=(0,w.useState)([]);return[e.length>0?e.join(\" \"):void 0,(0,w.useMemo)(()=>function(e){let r=(0,A.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,w.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return w.createElement(eS.Provider,{value:n},e.children)},[t])]}(),eu=(0,w.useMemo)(()=>[{dialogState:$,close:T,setTitleId:D},C],[$,C,T,D]),ec=(0,w.useMemo)(()=>({open:0===$}),[$]),ed={ref:_,id:l,role:h,\"aria-modal\":0===$||void 0,\"aria-labelledby\":C.titleId,\"aria-describedby\":es};return w.createElement(ek,{type:\"Dialog\",enabled:0===$,element:v,onUpdate:(0,A.z)((e,t)=>{\"Dialog\"===t&&(0,U.E)(e,{[ex.Add]:()=>m(e=>e+1),[ex.Remove]:()=>m(e=>e-1)})})},w.createElement(en,{force:!0},w.createElement(el,null,w.createElement(eN.Provider,{value:eu},w.createElement(el.Group,{target:v},w.createElement(en,{force:!1},w.createElement(eo,{slot:ec,name:\"Dialog.Description\"},w.createElement(Q,{initialFocus:d,containers:K,features:F?(0,U.E)(q?\"parent\":\"leaf\",{parent:Q.features.RestoreFocus,leaf:Q.features.All&~Q.features.FocusLock}):Q.features.None},w.createElement(W,null,(0,L.sY)({ourProps:ed,theirProps:p,slot:ec,defaultTag:\"div\",features:eT,visible:0===$,name:\"Dialog\"}))))))))),w.createElement(Z,null))}),{Backdrop:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-backdrop-\".concat(r),...i}=e,[{dialogState:s},o]=eM(\"Dialog.Backdrop\"),a=(0,M.T)(t);(0,w.useEffect)(()=>{if(null===o.panelRef.current)throw Error(\"A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.\")},[o.panelRef]);let l=(0,w.useMemo)(()=>({open:0===s}),[s]);return w.createElement(en,{force:!0},w.createElement(el,null,(0,L.sY)({ourProps:{ref:a,id:n,\"aria-hidden\":!0},theirProps:i,slot:l,defaultTag:\"div\",name:\"Dialog.Backdrop\"})))}),Panel:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-panel-\".concat(r),...i}=e,[{dialogState:s},o]=eM(\"Dialog.Panel\"),a=(0,M.T)(t,o.panelRef),l=(0,w.useMemo)(()=>({open:0===s}),[s]),u=(0,A.z)(e=>{e.stopPropagation()});return(0,L.sY)({ourProps:{ref:a,id:n,onClick:u},theirProps:i,slot:l,defaultTag:\"div\",name:\"Dialog.Panel\"})}),Overlay:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-overlay-\".concat(r),...i}=e,[{dialogState:s,close:o}]=eM(\"Dialog.Overlay\"),a=(0,M.T)(t),l=(0,A.z)(e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute(\"disabled\"))===\"\";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}}),u=(0,w.useMemo)(()=>({open:0===s}),[s]);return(0,L.sY)({ourProps:{ref:a,id:n,\"aria-hidden\":!0,onClick:l},theirProps:i,slot:u,defaultTag:\"div\",name:\"Dialog.Overlay\"})}),Title:(0,L.yV)(function(e,t){let r=ey(),{id:n=\"headlessui-dialog-title-\".concat(r),...i}=e,[{dialogState:s,setTitleId:o}]=eM(\"Dialog.Title\"),a=(0,M.T)(t);(0,w.useEffect)(()=>(o(n),()=>o(null)),[n,o]);let l=(0,w.useMemo)(()=>({open:0===s}),[s]);return(0,L.sY)({ourProps:{ref:a,id:n},theirProps:i,slot:l,defaultTag:\"h2\",name:\"Dialog.Title\"})}),Description:e$})},59226:function(e,t,r){\"use strict\";let n;r.d(t,{u:function(){return N}});var i=r(2265),s=r(99299),o=r(6584),a=r(26400),l=r(61463),u=r(88703),c=r(33856),d=r(41469),h=r(70777),f=r(5583);function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function g(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var m=r(53509),y=r(12585),b=r(3600);function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";return e.split(/\\s+/).filter(e=>e.length>1)}let w=(0,i.createContext)(null);w.displayName=\"TransitionContext\";var _=((n=_||{}).Visible=\"visible\",n.Hidden=\"hidden\",n);let E=(0,i.createContext)(null);function A(e){return\"children\"in e?A(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return\"visible\"===t}).length>0}function x(e,t){let r=(0,u.E)(e),n=(0,i.useRef)([]),l=(0,a.t)(),c=(0,s.G)(),d=(0,o.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.l4.Hidden,i=n.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==i&&((0,f.E)(t,{[b.l4.Unmount](){n.current.splice(i,1)},[b.l4.Hidden](){n.current[i].state=\"hidden\"}}),c.microTask(()=>{var e;!A(n)&&l.current&&(null==(e=r.current)||e.call(r))}))}),h=(0,o.z)(e=>{let t=n.current.find(t=>{let{el:r}=t;return r===e});return t?\"visible\"!==t.state&&(t.state=\"visible\"):n.current.push({el:e,state:\"visible\"}),()=>d(e,b.l4.Unmount)}),p=(0,i.useRef)([]),g=(0,i.useRef)(Promise.resolve()),m=(0,i.useRef)({enter:[],leave:[],idle:[]}),y=(0,o.z)((e,r,n)=>{p.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{p.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(m.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())})]),\"enter\"===r?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),v=(0,o.z)((e,t,r)=>{Promise.all(m.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=p.current.shift())||e()}).then(()=>r(t))});return(0,i.useMemo)(()=>({children:n,register:h,unregister:d,onStart:y,onStop:v,wait:g,chains:m}),[h,d,n,y,v,m,g])}function k(){}E.displayName=\"NestingContext\";let S=[\"beforeEnter\",\"afterEnter\",\"beforeLeave\",\"afterLeave\"];function $(e){var t;let r={};for(let n of S)r[n]=null!=(t=e[n])?t:k;return r}let C=b.AN.RenderStrategy,P=(0,b.yV)(function(e,t){let{show:r,appear:n=!1,unmount:s=!0,...a}=e,u=(0,i.useRef)(null),h=(0,d.T)(u,t);(0,c.H)();let f=(0,m.oJ)();if(void 0===r&&null!==f&&(r=(f&m.ZM.Open)===m.ZM.Open),![!0,!1].includes(r))throw Error(\"A <Transition /> is used but it is missing a `show={true | false}` prop.\");let[p,g]=(0,i.useState)(r?\"visible\":\"hidden\"),y=x(()=>{g(\"hidden\")}),[v,_]=(0,i.useState)(!0),k=(0,i.useRef)([r]);(0,l.e)(()=>{!1!==v&&k.current[k.current.length-1]!==r&&(k.current.push(r),_(!1))},[k,r]);let S=(0,i.useMemo)(()=>({show:r,appear:n,initial:v}),[r,n,v]);(0,i.useEffect)(()=>{if(r)g(\"visible\");else if(A(y)){let e=u.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g(\"hidden\")}else g(\"hidden\")},[r,y]);let $={unmount:s},P=(0,o.z)(()=>{var t;v&&_(!1),null==(t=e.beforeEnter)||t.call(e)}),O=(0,o.z)(()=>{var t;v&&_(!1),null==(t=e.beforeLeave)||t.call(e)});return i.createElement(E.Provider,{value:y},i.createElement(w.Provider,{value:S},(0,b.sY)({ourProps:{...$,as:i.Fragment,children:i.createElement(I,{ref:h,...$,...a,beforeEnter:P,beforeLeave:O})},theirProps:{},defaultTag:i.Fragment,features:C,visible:\"visible\"===p,name:\"Transition\"})))}),I=(0,b.yV)(function(e,t){var r,n,_;let k;let{beforeEnter:S,afterEnter:P,beforeLeave:I,afterLeave:O,enter:N,enterFrom:M,enterTo:R,entered:T,leave:D,leaveFrom:L,leaveTo:j,...B}=e,F=(0,i.useRef)(null),U=(0,d.T)(F,t),z=null==(r=B.unmount)||r?b.l4.Unmount:b.l4.Hidden,{show:q,appear:H,initial:G}=function(){let e=(0,i.useContext)(w);if(null===e)throw Error(\"A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.\");return e}(),[V,W]=(0,i.useState)(q?\"visible\":\"hidden\"),K=function(){let e=(0,i.useContext)(E);if(null===e)throw Error(\"A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.\");return e}(),{register:Y,unregister:Z}=K;(0,i.useEffect)(()=>Y(F),[Y,F]),(0,i.useEffect)(()=>{if(z===b.l4.Hidden&&F.current){if(q&&\"visible\"!==V){W(\"visible\");return}return(0,f.E)(V,{hidden:()=>Z(F),visible:()=>Y(F)})}},[V,F,Y,Z,q,z]);let J=(0,u.E)({base:v(B.className),enter:v(N),enterFrom:v(M),enterTo:v(R),entered:v(T),leave:v(D),leaveFrom:v(L),leaveTo:v(j)}),Q=(_={beforeEnter:S,afterEnter:P,beforeLeave:I,afterLeave:O},k=(0,i.useRef)($(_)),(0,i.useEffect)(()=>{k.current=$(_)},[_]),k),X=(0,c.H)();(0,i.useEffect)(()=>{if(X&&\"visible\"===V&&null===F.current)throw Error(\"Did you forget to passthrough the `ref` to the actual DOM node?\")},[F,V,X]);let ee=H&&q&&G,et=X&&(!G||H)?q?\"enter\":\"leave\":\"idle\",er=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,i.useState)(e),n=(0,a.t)(),s=(0,i.useCallback)(e=>{n.current&&r(t=>t|e)},[t,n]),o=(0,i.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:s,hasFlag:o,removeFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t&~e)},[r,n]),toggleFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t^e)},[r])}}(0),en=(0,o.z)(e=>(0,f.E)(e,{enter:()=>{er.addFlag(m.ZM.Opening),Q.current.beforeEnter()},leave:()=>{er.addFlag(m.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),ei=(0,o.z)(e=>(0,f.E)(e,{enter:()=>{er.removeFlag(m.ZM.Opening),Q.current.afterEnter()},leave:()=>{er.removeFlag(m.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),es=x(()=>{W(\"hidden\"),Z(F)},K),eo=(0,i.useRef)(!1);!function(e){let{immediate:t,container:r,direction:n,classes:i,onStart:o,onStop:c}=e,d=(0,a.t)(),m=(0,s.G)(),y=(0,u.E)(n);(0,l.e)(()=>{t&&(y.current=\"enter\")},[t]),(0,l.e)(()=>{let e=(0,h.k)();m.add(e.dispose);let t=r.current;if(t&&\"idle\"!==y.current&&d.current){var n,s,a;let r,l,u,d,m,b,v;return e.dispose(),o.current(y.current),e.add((n=i.current,s=\"enter\"===y.current,a=()=>{e.dispose(),c.current(y.current)},l=s?\"enter\":\"leave\",u=(0,h.k)(),d=void 0!==a?(r={called:!1},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!r.called)return r.called=!0,a(...t)}):()=>{},\"enter\"===l&&(t.removeAttribute(\"hidden\"),t.style.display=\"\"),m=(0,f.E)(l,{enter:()=>n.enter,leave:()=>n.leave}),b=(0,f.E)(l,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),v=(0,f.E)(l,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom}),g(t,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),p(t,...n.base,...m,...v),u.nextFrame(()=>{g(t,...n.base,...m,...v),p(t,...n.base,...m,...b),function(e,t){let r=(0,h.k)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[s,o]=[n,i].map(e=>{let[t=0]=e.split(\",\").filter(Boolean).map(e=>e.includes(\"ms\")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),a=s+o;if(0!==a){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},a),r.addEventListener(e,\"transitionrun\",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,\"transitionend\",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(t,()=>(g(t,...n.base,...m),p(t,...n.base,...n.entered),d()))}),u.dispose)),e.dispose}},[n])}({immediate:ee,container:F,classes:J,direction:et,onStart:(0,u.E)(e=>{eo.current=!0,es.onStart(F,e,en)}),onStop:(0,u.E)(e=>{eo.current=!1,es.onStop(F,e,ei),\"leave\"!==e||A(es)||(W(\"hidden\"),Z(F))})});let ea=B;return ee?ea={...ea,className:(0,y.A)(B.className,...J.current.enter,...J.current.enterFrom)}:eo.current&&(ea.className=(0,y.A)(B.className,null==(n=F.current)?void 0:n.className),\"\"===ea.className&&delete ea.className),i.createElement(E.Provider,{value:es},i.createElement(m.up,{value:(0,f.E)(V,{visible:m.ZM.Open,hidden:m.ZM.Closed})|er.flags},(0,b.sY)({ourProps:{ref:U},theirProps:ea,defaultTag:\"div\",features:C,visible:\"visible\"===V,name:\"Transition.Child\"})))}),O=(0,b.yV)(function(e,t){let r=null!==(0,i.useContext)(w),n=null!==(0,m.oJ)();return i.createElement(i.Fragment,null,!r&&n?i.createElement(P,{ref:t,...e}):i.createElement(I,{ref:t,...e}))}),N=Object.assign(P,{Child:O,Root:P})},99299:function(e,t,r){\"use strict\";r.d(t,{G:function(){return s}});var n=r(2265),i=r(70777);function s(){let[e]=(0,n.useState)(i.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},6584:function(e,t,r){\"use strict\";r.d(t,{z:function(){return s}});var n=r(2265),i=r(88703);let s=function(e){let t=(0,i.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},26400:function(e,t,r){\"use strict\";r.d(t,{t:function(){return s}});var n=r(2265),i=r(61463);function s(){let e=(0,n.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},61463:function(e,t,r){\"use strict\";r.d(t,{e:function(){return s}});var n=r(2265),i=r(54462);let s=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},88703:function(e,t,r){\"use strict\";r.d(t,{E:function(){return s}});var n=r(2265),i=r(61463);function s(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},33856:function(e,t,r){\"use strict\";r.d(t,{H:function(){return o}});var n,i=r(2265),s=r(54462);function o(){let e;let t=(e=\"undefined\"==typeof document,(0,(n||(n=r.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,a]=i.useState(s.O.isHandoffComplete);return o&&!1===s.O.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==o&&a(!0)},[o]),i.useEffect(()=>s.O.handoff(),[]),!t&&o}},41469:function(e,t,r){\"use strict\";r.d(t,{T:function(){return a},h:function(){return o}});var n=r(2265),i=r(6584);let s=Symbol();function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[s]:t})}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=(0,n.useRef)(t);(0,n.useEffect)(()=>{o.current=t},[t]);let a=(0,i.z)(e=>{for(let t of o.current)null!=t&&(\"function\"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[s]))?void 0:a}},53509:function(e,t,r){\"use strict\";let n;r.d(t,{ZM:function(){return o},oJ:function(){return a},up:function(){return l}});var i=r(2265);let s=(0,i.createContext)(null);s.displayName=\"OpenClosedContext\";var o=((n=o||{})[n.Open=1]=\"Open\",n[n.Closed=2]=\"Closed\",n[n.Closing=4]=\"Closing\",n[n.Opening=8]=\"Opening\",n);function a(){return(0,i.useContext)(s)}function l(e){let{value:t,children:r}=e;return i.createElement(s.Provider,{value:t},r)}},12585:function(e,t,r){\"use strict\";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>\"string\"==typeof e?e.split(\" \"):[]))).filter(Boolean).join(\" \")}r.d(t,{A:function(){return n}})},70777:function(e,t,r){\"use strict\";r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let s={current:!0};return(0,n.Y)(()=>{s.current&&t[0]()}),r.add(()=>{s.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(28043)},54462:function(e,t,r){\"use strict\";r.d(t,{O:function(){return a}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t,r)=>(i(e,\"symbol\"!=typeof t?t+\"\":t,r),r);class o{set(e){this.current!==e&&(this.handoffState=\"pending\",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return\"server\"===this.current}get isClient(){return\"client\"===this.current}detect(){return\"undefined\"==typeof window||\"undefined\"==typeof document?\"server\":\"client\"}handoff(){\"pending\"===this.handoffState&&(this.handoffState=\"complete\")}get isHandoffComplete(){return\"complete\"===this.handoffState}constructor(){s(this,\"current\",this.detect()),s(this,\"handoffState\",\"pending\"),s(this,\"currentId\",0)}}let a=new o},5583:function(e,t,r){\"use strict\";function n(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];if(e in t){let r=t[e];return\"function\"==typeof r?r(...i):r}let o=Error('Tried to handle \"'.concat(e,'\" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'\"'.concat(e,'\"')).join(\", \"),\".\"));throw Error.captureStackTrace&&Error.captureStackTrace(o,n),o}r.d(t,{E:function(){return n}})},28043:function(e,t,r){\"use strict\";function n(e){\"function\"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},3600:function(e,t,r){\"use strict\";let n,i;r.d(t,{AN:function(){return l},l4:function(){return u},sY:function(){return c},yV:function(){return p}});var s=r(2265),o=r(12585),a=r(5583),l=((n=l||{})[n.None=0]=\"None\",n[n.RenderStrategy=1]=\"RenderStrategy\",n[n.Static=2]=\"Static\",n),u=((i=u||{})[i.Unmount=0]=\"Unmount\",i[i.Hidden=1]=\"Hidden\",i);function c(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:s,visible:o=!0,name:l,mergeRefs:u}=e;u=null!=u?u:h;let c=f(r,t);if(o)return d(c,n,i,l,u);let p=null!=s?s:0;if(2&p){let{static:e=!1,...t}=c;if(e)return d(t,n,i,l,u)}if(1&p){let{unmount:e=!0,...t}=c;return(0,a.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:\"none\"}},n,i,l,u)})}return d(c,n,i,l,u)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:a=r,children:l,refName:u=\"ref\",...c}=m(e,[\"unmount\",\"static\"]),d=void 0!==e.ref?{[u]:e.ref}:{},h=\"function\"==typeof l?l(t):l;\"className\"in c&&c.className&&\"function\"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))\"boolean\"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(p[\"data-headlessui-state\"]=r.join(\" \"))}if(a===s.Fragment&&Object.keys(g(c)).length>0){if(!(0,s.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw Error(['Passing props on \"Fragment\"!',\"\",\"The current component <\".concat(n,' /> is rendering a \"Fragment\".'),\"However we need to passthrough the following props:\",Object.keys(c).map(e=>\"  - \".concat(e)).join(\"\\n\"),\"\",\"You can apply a few solutions:\",['Add an `as=\"...\"` prop, to ensure that we render an actual element instead of a \"Fragment\".',\"Render a single element as the child so that we can forward the props onto that element.\"].map(e=>\"  - \".concat(e)).join(\"\\n\")].join(\"\\n\"));let e=h.props,t=\"function\"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,o.A)(null==e?void 0:e.className(...r),c.className)}:(0,o.A)(null==e?void 0:e.className,c.className);return(0,s.cloneElement)(h,Object.assign({},f(h.props,g(m(c,[\"ref\"]))),p,d,{ref:i(h.ref,d.ref)},t?{className:t}:{}))}return(0,s.createElement)(a,Object.assign({},m(c,[\"ref\"]),a!==s.Fragment&&d,a!==s.Fragment&&p),h)}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&(\"function\"==typeof r?r(e):r.current=e)}}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith(\"on\")&&\"function\"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n[\"aria-disabled\"])return Object.assign(n,Object.fromEntries(Object.keys(i).map(e=>[e,void 0])));for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function p(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},39422:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z\",clipRule:\"evenodd\"}))});t.Z=i},76218:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3\"}))});t.Z=i},66514:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18\"}))});t.Z=i},64728:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99\"}))});t.Z=i},22091:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25\"}))});t.Z=i},82238:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25\"}))});t.Z=i},84351:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"}))});t.Z=i},85130:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"}))});t.Z=i},68906:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m19.5 8.25-7.5 7.5-7.5-7.5\"}))});t.Z=i},59808:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m8.25 4.5 7.5 7.5-7.5 7.5\"}))});t.Z=i},87335:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75\"}))});t.Z=i},49601:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z\"}))});t.Z=i},33009:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"}))});t.Z=i},74634:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3\"}))});t.Z=i},57470:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75\"}))});t.Z=i},92009:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75\"}))});t.Z=i},99442:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z\"}))});t.Z=i},11853:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z\"}))});t.Z=i},52985:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z\"}),n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"}))});t.Z=i},47193:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88\"}))});t.Z=i},70882:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33\"}))});t.Z=i},93925:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418\"}))});t.Z=i},13934:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z\"}))});t.Z=i},69992:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z\"}))});t.Z=i},64954:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244\"}))});t.Z=i},63722:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z\"}))});t.Z=i},58900:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125\"}))});t.Z=i},62957:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10\"}))});t.Z=i},47899:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z\"}))});t.Z=i},44011:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z\"}),n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z\"}))});t.Z=i},20402:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z\"}))});t.Z=i},2825:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z\"}))});t.Z=i},25032:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6\"}))});t.Z=i},12560:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0\"}))});t.Z=i},89651:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"}))});t.Z=i},54515:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M21 12a2.25 2.25 0 0 0-2.25-2.25H15a3 3 0 1 1-6 0H5.25A2.25 2.25 0 0 0 3 12m18 0v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 9m18 0V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v3\"}))});t.Z=i},84573:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:1.5,stroke:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6 18 18 6M6 6l12 12\"}))});t.Z=i},75752:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M15.97 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H7.5a.75.75 0 0 1 0-1.5h11.69l-3.22-3.22a.75.75 0 0 1 0-1.06Zm-7.94 9a.75.75 0 0 1 0 1.06l-3.22 3.22H16.5a.75.75 0 0 1 0 1.5H4.81l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z\",clipRule:\"evenodd\"}))});t.Z=i},90196:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}))});t.Z=i},14340:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}))});t.Z=i},54621:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{d:\"M10.5 18.75a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Z\"}),n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8.625.75A3.375 3.375 0 0 0 5.25 4.125v15.75a3.375 3.375 0 0 0 3.375 3.375h6.75a3.375 3.375 0 0 0 3.375-3.375V4.125A3.375 3.375 0 0 0 15.375.75h-6.75ZM7.5 4.125C7.5 3.504 8.004 3 8.625 3H9.75v.375c0 .621.504 1.125 1.125 1.125h2.25c.621 0 1.125-.504 1.125-1.125V3h1.125c.621 0 1.125.504 1.125 1.125v15.75c0 .621-.504 1.125-1.125 1.125h-6.75A1.125 1.125 0 0 1 7.5 19.875V4.125Z\",clipRule:\"evenodd\"}))});t.Z=i},79314:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9 1.5H5.625c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5Zm6.61 10.936a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 14.47a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}),n.createElement(\"path\",{d:\"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z\"}))});t.Z=i},27762:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z\",clipRule:\"evenodd\"}))});t.Z=i},75514:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z\",clipRule:\"evenodd\"}))});t.Z=i},29765:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z\",clipRule:\"evenodd\"}))});t.Z=i},24167:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\",clipRule:\"evenodd\"}))});t.Z=i},5620:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12.516 2.17a.75.75 0 0 0-1.032 0 11.209 11.209 0 0 1-7.877 3.08.75.75 0 0 0-.722.515A12.74 12.74 0 0 0 2.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 0 0 .374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 0 0-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08Zm3.094 8.016a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\",clipRule:\"evenodd\"}))});t.Z=i},61652:function(e,t,r){\"use strict\";var n=r(2265);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...s}=e;return n.createElement(\"svg\",Object.assign({xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",\"data-slot\":\"icon\",ref:t,\"aria-labelledby\":i},s),r?n.createElement(\"title\",{id:i},r):null,n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z\",clipRule:\"evenodd\"}))});t.Z=i},59956:function(e,t,r){\"use strict\";r.d(t,{Nc:function(){return d}});var n=r(57437),i=r(2265);let s=(0,i.forwardRef)((e,t)=>{let{as:r=\"div\",...i}=e;return(0,n.jsx)(r,{...i,ref:t})}),o=\"cf-turnstile-script\",a=\"onloadTurnstileCallback\",l=e=>!!document.getElementById(e),u=e=>{let{render:t=\"explicit\",onLoadCallbackName:r=a,scriptOptions:{nonce:n=\"\",defer:i=!0,async:s=!0,id:u=\"\",appendTo:c,onError:d,crossOrigin:h=\"\"}={}}=e,f=u||o;if(l(f))return;let p=document.createElement(\"script\");p.id=f,p.src=\"\".concat(\"https://challenges.cloudflare.com/turnstile/v0/api.js\",\"?onload=\").concat(r,\"&render=\").concat(t),document.querySelector('script[src=\"'.concat(p.src,'\"]'))||(p.defer=!!i,p.async=!!s,n&&(p.nonce=n),h&&(p.crossOrigin=h),d&&(p.onerror=d),(\"body\"===c?document.body:document.getElementsByTagName(\"head\")[0]).appendChild(p))},c={normal:{width:300,height:65},compact:{width:130,height:120},invisible:{width:0,height:0,overflow:\"hidden\"},interactionOnly:{width:\"fit-content\",height:\"auto\"}},d=(0,i.forwardRef)((e,t)=>{var r;let{scriptOptions:d,options:h={},siteKey:f,onWidgetLoad:p,onSuccess:g,onExpire:m,onError:y,onBeforeInteractive:b,onAfterInteractive:v,onUnsupported:w,onLoadScript:_,id:E,style:A,as:x=\"div\",injectScript:k=!0,...S}=e,$=null!==(r=h.size)&&void 0!==r?r:\"normal\",[C,P]=(0,i.useState)(\"execute\"===h.execution?c.invisible:\"interaction-only\"===h.appearance?c.interactionOnly:c[$]),I=(0,i.useRef)(null),O=(0,i.useRef)(!1),[N,M]=(0,i.useState)(),[R,T]=(0,i.useState)(!1),D=null!=E?E:\"cf-turnstile\",L=k?(null==d?void 0:d.id)||\"\".concat(o,\"__\").concat(D):(null==d?void 0:d.id)||o,j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,[t,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let t=()=>{l(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}},[e]),t}(L),B=(null==d?void 0:d.onLoadCallbackName)?\"\".concat(d.onLoadCallbackName,\"__\").concat(D):\"\".concat(a,\"__\").concat(D),F=(0,i.useMemo)(()=>{var e,t,r,n,i,s,o;let a;return{sitekey:f,action:h.action,cData:h.cData,callback:g,\"error-callback\":y,\"expired-callback\":m,\"before-interactive-callback\":b,\"after-interactive-callback\":v,\"unsupported-callback\":w,theme:null!==(e=h.theme)&&void 0!==e?e:\"auto\",language:null!==(t=h.language)&&void 0!==t?t:\"auto\",tabindex:h.tabIndex,\"response-field\":h.responseField,\"response-field-name\":h.responseFieldName,size:(\"invisible\"!==$&&(a=$),a),retry:null!==(r=h.retry)&&void 0!==r?r:\"auto\",\"retry-interval\":null!==(n=h.retryInterval)&&void 0!==n?n:8e3,\"refresh-expired\":null!==(i=h.refreshExpired)&&void 0!==i?i:\"auto\",execution:null!==(s=h.execution)&&void 0!==s?s:\"render\",appearance:null!==(o=h.appearance)&&void 0!==o?o:\"always\"}},[f,h,g,y,m,$,b,v,w]),U=(0,i.useMemo)(()=>JSON.stringify(F),[F]);return(0,i.useImperativeHandle)(t,()=>{if(\"undefined\"==typeof window||!j)return;let{turnstile:e}=window;return{getResponse(){if(!(null==e?void 0:e.getResponse)||!N){console.warn(\"Turnstile has not been loaded\");return}return e.getResponse(N)},reset(){if(!(null==e?void 0:e.reset)||!N){console.warn(\"Turnstile has not been loaded\");return}\"execute\"===h.execution&&P(c.invisible);try{e.reset(N)}catch(e){console.warn(\"Failed to reset Turnstile widget \".concat(N),e)}},remove(){if(!(null==e?void 0:e.remove)||!N){console.warn(\"Turnstile has not been loaded\");return}M(\"\"),P(c.invisible),e.remove(N)},render(){if(!(null==e?void 0:e.render)||!I.current||N){console.warn(\"Turnstile has not been loaded or widget already rendered\");return}let t=e.render(I.current,F);return M(t),\"execute\"!==h.execution&&P(c[$]),t},execute(){if(\"execute\"===h.execution){if(!(null==e?void 0:e.execute)||!I.current||!N){console.warn(\"Turnstile has not been loaded or widget has not been rendered\");return}e.execute(I.current,F),P(c[$])}},isExpired(){if(!(null==e?void 0:e.isExpired)||!N){console.warn(\"Turnstile has not been loaded\");return}return e.isExpired(N)}}},[j,N,h.execution,$,F,I]),(0,i.useEffect)(()=>(window[B]=()=>T(!0),()=>{delete window[B]}),[B]),(0,i.useEffect)(()=>{k&&!R&&u({onLoadCallbackName:B,scriptOptions:{...d,id:L}})},[k,R,B,d,L]),(0,i.useEffect)(()=>{j&&!R&&window.turnstile&&T(!0)},[R,j]),(0,i.useEffect)(()=>{if(!f){console.warn(\"sitekey was not provided\");return}j&&I.current&&R&&!O.current&&(M(window.turnstile.render(I.current,F)),O.current=!0)},[j,f,F,O,R]),(0,i.useEffect)(()=>{window.turnstile&&I.current&&N&&(l(N)&&window.turnstile.remove(N),M(window.turnstile.render(I.current,F)),O.current=!0)},[U,f]),(0,i.useEffect)(()=>{if(window.turnstile&&N&&l(N))return null==p||p(N),()=>{window.turnstile.remove(N)}},[N,p]),(0,i.useEffect)(()=>{P(\"execute\"===h.execution?c.invisible:\"interaction-only\"===F.appearance?c.interactionOnly:c[$])},[h.execution,$,F.appearance]),(0,i.useEffect)(()=>{j&&\"function\"==typeof _&&_()},[j,_]),(0,n.jsx)(s,{ref:I,as:x,id:D,style:{...C,...A},...S})});d.displayName=\"Turnstile\"},65376:function(e,t,r){\"use strict\";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array||null!=e&&\"object\"==typeof e&&\"Uint8Array\"===e.constructor.name))throw Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function s(e){if(\"function\"!=typeof e||\"function\"!=typeof e.create)throw Error(\"Hash should be wrapped by utils.wrapConstructor\");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw Error(\"Hash#digest() has already been called\")}function a(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:function(){return o},J8:function(){return a},Rx:function(){return n},aI:function(){return i},vp:function(){return s}})},80543:function(e,t,r){\"use strict\";r.d(t,{J:function(){return h}});var n=r(65376),i=r(68104);let s=(e,t,r)=>e&t^~e&r,o=(e,t,r)=>e&t^e&r^t&r;class a extends i.kb{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:r,blockLen:s}=this,o=(e=(0,i.O0)(e)).length;for(let n=0;n<o;){let a=Math.min(s-this.pos,o-n);if(a===s){let t=(0,i.GL)(e);for(;s<=o-n;n+=s)this.process(t,n);continue}r.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===s&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:s,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(r,0),a=0);for(let e=a;e<s;e++)t[e]=0;!function(e,t,r,n){if(\"function\"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),l=n?4:0,u=n?0:4;e.setUint32(t+l,o,n),e.setUint32(t+u,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);let l=(0,i.GL)(e),u=this.outputLen;if(u%4)throw Error(\"_sha2: outputLen should be aligned to 32bit\");let c=u/4,d=this.get();if(c>d.length)throw Error(\"_sha2: outputLen bigger than state\");for(let e=0;e<c;e++)l.setUint32(4*e,d[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:s,pos:o}=this;return e.length=n,e.pos=o,e.finished=i,e.destroyed=s,n%t&&e.buffer.set(r),e}}let l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class d extends a{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[e,t,r,n,i,s,o,a]}set(e,t,r,n,i,s,o,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,s=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;c[e]=s+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:a,D:u,E:d,F:h,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+s(d,h,f)+l[e]+c[e]|0,g=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+o(r,n,a)|0;p=f,f=h,h=d,d=u+t|0,u=a,a=n,n=r,r=t+g|0}r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,u=u+this.D|0,d=d+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,n,a,u,d,h,f,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let h=(0,i.hE)(()=>new d)},68104:function(e,t,r){\"use strict\";r.d(t,{kb:function(){return f},l1:function(){return c},eV:function(){return h},GL:function(){return o},iA:function(){return l},O6:function(){return g},np:function(){return a},O0:function(){return d},Jq:function(){return s},hE:function(){return p}});let n=\"object\"==typeof globalThis&&\"crypto\"in globalThis?globalThis.crypto:void 0;var i=r(65376);let s=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),a=(e,t)=>e<<32-t|e>>>t,l=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],u=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function c(e){for(let t=0;t<e.length;t++)e[t]=u(e[t])}function d(e){return\"string\"==typeof e&&(e=function(e){if(\"string\"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,i.aI)(e),e}function h(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];(0,i.aI)(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class f{clone(){return this._cloneInto()}}function p(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function g(e=32){if(n&&\"function\"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));throw Error(\"crypto.getRandomValues must be defined\")}},66862:function(e,t,r){\"use strict\";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{xC:function(){return eu},oM:function(){return ep}});var i,s,o=\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\",a=()=>Math.random().toString(36).substring(7).split(\"\").join(\".\"),l={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function u(e){if(\"object\"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(e){return({dispatch:t,getState:r})=>n=>i=>\"function\"==typeof i?i(t,r,e):n(i)}var h=d(),f=Symbol.for(\"immer-nothing\"),p=Symbol.for(\"immer-draftable\"),g=Symbol.for(\"immer-state\");function m(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var y=Object.getPrototypeOf;function b(e){return!!e&&!!e[g]}function v(e){return!!e&&(_(e)||Array.isArray(e)||!!e[p]||!!e.constructor?.[p]||S(e)||$(e))}var w=Object.prototype.constructor.toString();function _(e){if(!e||\"object\"!=typeof e)return!1;let t=y(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,\"constructor\")&&t.constructor;return r===Object||\"function\"==typeof r&&Function.toString.call(r)===w}function E(e,t){0===A(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function A(e){let t=e[g];return t?t.type_:Array.isArray(e)?1:S(e)?2:$(e)?3:0}function x(e,t){return 2===A(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function k(e,t,r){let n=A(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function S(e){return e instanceof Map}function $(e){return e instanceof Set}function C(e){return e.copy_||e.base_}function P(e,t){if(S(e))return new Map(e);if($(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&(\"class_only\"!==t||r)){let t=y(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[g];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i];!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(y(e),t)}}function I(e,t=!1){return N(e)||b(e)||!v(e)||(A(e)>1&&(e.set=e.add=e.clear=e.delete=O),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>I(t,!0))),e}function O(){m(2)}function N(e){return Object.isFrozen(e)}var M={};function R(e){let t=M[e];return t||m(0,e),t}function T(e,t){t&&(R(\"Patches\"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){L(e),e.drafts_.forEach(B),e.drafts_=null}function L(e){e===s&&(s=e.parent_)}function j(e){return s={drafts_:[],parent_:s,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function B(e){let t=e[g];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function F(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[g].modified_&&(D(t),m(4)),v(e)&&(e=U(t,e),t.parent_||q(t,e)),t.patches_&&R(\"Patches\").generateReplacementPatches_(r[g].base_,e,t.patches_,t.inversePatches_)):e=U(t,r,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==f?e:void 0}function U(e,t,r){if(N(t))return t;let n=t[g];if(!n)return E(t,(i,s)=>z(e,n,t,i,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return q(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,s=!1;3===n.type_&&(i=new Set(t),t.clear(),s=!0),E(i,(i,o)=>z(e,n,t,i,o,r,s)),q(e,t,!1),r&&e.patches_&&R(\"Patches\").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function z(e,t,r,n,i,s,o){if(b(i)){let o=U(e,i,s&&t&&3!==t.type_&&!x(t.assigned_,n)?s.concat(n):void 0);if(k(r,n,o),!b(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if(v(i)&&!N(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;U(e,i),(!t||!t.scope_.parent_)&&\"symbol\"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&q(e,i)}}function q(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&I(t,r)}var H={get(e,t){if(t===g)return e;let r=C(e);if(!x(r,t))return function(e,t,r){let n=W(t,r);return n?\"value\"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!v(n)?n:n===V(e.base_,t)?(Y(e),e.copy_[t]=Z(n,e)):n},has:(e,t)=>t in C(e),ownKeys:e=>Reflect.ownKeys(C(e)),set(e,t,r){let n=W(C(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=V(C(e),t),i=n?.[g];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||x(e.base_,t)))return!0;Y(e),K(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==V(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Y(e),K(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=C(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||\"length\"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){m(11)},getPrototypeOf:e=>y(e.base_),setPrototypeOf(){m(12)}},G={};function V(e,t){let r=e[g];return(r?C(r):e)[t]}function W(e,t){if(!(t in e))return;let r=y(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=y(r)}}function K(e){!e.modified_&&(e.modified_=!0,e.parent_&&K(e.parent_))}function Y(e){e.copy_||(e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Z(e,t){let r=S(e)?R(\"MapSet\").proxyMap_(e,t):$(e)?R(\"MapSet\").proxySet_(e,t):function(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:s,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,o=H;r&&(i=[n],o=G);let{revoke:a,proxy:l}=Proxy.revocable(i,o);return n.draft_=l,n.revoke_=a,l}(e,t);return(t?t.scope_:s).drafts_.push(r),r}E(H,(e,t)=>{G[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),G.deleteProperty=function(e,t){return G.set.call(this,e,t,void 0)},G.set=function(e,t,r){return H.set.call(this,e[0],t,r,e[0])};var J=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if(\"function\"==typeof e&&\"function\"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(\"function\"!=typeof t&&m(6),void 0!==r&&\"function\"!=typeof r&&m(7),v(e)){let i=j(this),s=Z(e,void 0),o=!0;try{n=t(s),o=!1}finally{o?D(i):L(i)}return T(i,r),F(n,i)}if(e&&\"object\"==typeof e)m(1,e);else{if(void 0===(n=t(e))&&(n=e),n===f&&(n=void 0),this.autoFreeze_&&I(n,!0),r){let t=[],i=[];R(\"Patches\").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return\"function\"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},\"boolean\"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),\"boolean\"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;v(e)||m(8),b(e)&&(b(t=e)||m(10,t),e=function e(t){let r;if(!v(t)||N(t))return t;let n=t[g];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_)}else r=P(t,!0);return E(r,(t,n)=>{k(r,t,e(n))}),n&&(n.finalized_=!1),r}(t));let r=j(this),n=Z(e,void 0);return n[g].isManual_=!0,L(r),n}finishDraft(e,t){let r=e&&e[g];r&&r.isManual_||m(9);let{scope_:n}=r;return T(n,t),F(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&\"replace\"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=R(\"Patches\").applyPatches_;return b(e)?n(e,t):this.produce(e,e=>n(e,t))}},Q=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseStrictShallowCopy.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J),r(25566);var X=\"undefined\"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return\"object\"==typeof arguments[0]?c:c.apply(null,arguments)};\"undefined\"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ee(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(eA(0));return{type:e,payload:r.payload,...\"meta\"in r&&{meta:r.meta},...\"error\"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>u(t)&&\"type\"in t&&\"string\"==typeof t.type&&t.type===e,r}var et=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function er(e){return v(e)?Q(e,()=>{}):e}function en(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw Error(eA(10));let n=r.insert(t,e);return e.set(t,n),n}var ei=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},s=new et;return t&&(\"boolean\"==typeof t?s.push(h):s.push(d(t.extraArgument))),s},es=e=>t=>{setTimeout(t,e)},eo=\"undefined\"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:es(10),ea=(e={type:\"raf\"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!1,o=!1,a=new Set,l=\"tick\"===e.type?queueMicrotask:\"raf\"===e.type?eo:\"callback\"===e.type?e.queueNotification:es(e.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(s=!(i=!e?.meta?.RTK_autoBatch))&&!o&&(o=!0,l(u)),n.dispatch(e)}finally{i=!0}}})},el=e=>function(t){let{autoBatch:r=!0}=t??{},n=new et(e);return r&&n.push(ea(\"object\"==typeof r?r:void 0)),n};function eu(e){let t,r;let i=ei(),{reducer:s,middleware:a,devTools:d=!0,preloadedState:h,enhancers:f}=e||{};if(\"function\"==typeof s)t=s;else if(u(s))t=function(e){let t;let r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let n=r[t];\"function\"==typeof e[n]&&(i[n]=e[n])}let s=Object.keys(i);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t];if(void 0===r(void 0,{type:l.INIT}))throw Error(n(12));if(void 0===r(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw Error(n(13))})}(i)}catch(e){t=e}return function(e={},r){if(t)throw t;let o=!1,a={};for(let t=0;t<s.length;t++){let l=s[t],u=i[l],c=e[l],d=u(c,r);if(void 0===d)throw r&&r.type,Error(n(14));a[l]=d,o=o||d!==c}return(o=o||s.length!==Object.keys(e).length)?a:e}}(s);else throw Error(eA(1));r=\"function\"==typeof a?a(i):i();let p=c;d&&(p=X({trace:!1,...\"object\"==typeof d&&d}));let g=el(function(...e){return t=>(r,i)=>{let s=t(r,i),o=()=>{throw Error(n(15))},a={getState:s.getState,dispatch:(e,...t)=>o(e,...t)};return o=c(...e.map(e=>e(a)))(s.dispatch),{...s,dispatch:o}}}(...r));return function e(t,r,i){if(\"function\"!=typeof t)throw Error(n(2));if(\"function\"==typeof r&&\"function\"==typeof i||\"function\"==typeof i&&\"function\"==typeof arguments[3])throw Error(n(0));if(\"function\"==typeof r&&void 0===i&&(i=r,r=void 0),void 0!==i){if(\"function\"!=typeof i)throw Error(n(1));return i(e)(t,r)}let s=t,a=r,c=new Map,d=c,h=0,f=!1;function p(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function g(){if(f)throw Error(n(3));return a}function m(e){if(\"function\"!=typeof e)throw Error(n(4));if(f)throw Error(n(5));let t=!0;p();let r=h++;return d.set(r,e),function(){if(t){if(f)throw Error(n(6));t=!1,p(),d.delete(r),c=null}}}function y(e){if(!u(e))throw Error(n(7));if(void 0===e.type)throw Error(n(8));if(\"string\"!=typeof e.type)throw Error(n(17));if(f)throw Error(n(9));try{f=!0,a=s(a,e)}finally{f=!1}return(c=d).forEach(e=>{e()}),e}return y({type:l.INIT}),{dispatch:y,subscribe:m,getState:g,replaceReducer:function(e){if(\"function\"!=typeof e)throw Error(n(10));s=e,y({type:l.REPLACE})},[o]:function(){return{subscribe(e){if(\"object\"!=typeof e||null===e)throw Error(n(11));function t(){e.next&&e.next(g())}return t(),{unsubscribe:m(t)}},[o](){return this}}}}}(t,h,p(...\"function\"==typeof f?f(g):g()))}function ec(e){let t;let r={},n=[],i={addCase(e,t){let n=\"string\"==typeof e?e:e.type;if(!n)throw Error(eA(28));if(n in r)throw Error(eA(29));return r[n]=t,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var ed=(e=21)=>{let t=\"\",r=e;for(;r--;)t+=\"ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW\"[64*Math.random()|0];return t},eh=Symbol.for(\"rtk-slice-createasyncthunk\"),ef=((i=ef||{}).reducer=\"reducer\",i.reducerWithPrepare=\"reducerWithPrepare\",i.asyncThunk=\"asyncThunk\",i),ep=function({creators:e}={}){let t=e?.asyncThunk?.[eh];return function(e){let r;let{name:n,reducerPath:i=n}=e;if(!n)throw Error(eA(11));let s=(\"function\"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:\"asyncThunk\",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:\"reducer\"}),preparedReducer:(e,t)=>({_reducerDefinitionType:\"reducerWithPrepare\",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(s),a={},l={},u={},c=[],d={addCase(e,t){let r=\"string\"==typeof e?e:e.type;if(!r)throw Error(eA(12));if(r in l)throw Error(eA(13));return l[r]=t,d},addMatcher:(e,t)=>(c.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(u[e]=t,d),exposeCaseReducer:(e,t)=>(a[e]=t,d)};function h(){let[t={},r=[],n]=\"function\"==typeof e.extraReducers?ec(e.extraReducers):[e.extraReducers],i={...t,...l};return function(e,t){let r;let[n,i,s]=ec(t);if(\"function\"==typeof e)r=()=>er(e());else{let t=er(e);r=()=>t}function o(e=r(),t){let o=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[s]),o.reduce((e,r)=>{if(r){if(b(e)){let n=r(e,t);return void 0===n?e:n}if(v(e))return Q(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error(eA(9))}return n}}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of c)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}o.forEach(r=>{let i=s[r],o={reducerName:r,type:`${n}/${r}`,createNotation:\"function\"==typeof e.reducers};\"asyncThunk\"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(eA(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:c}=r,d=i(e,s,c);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:o||eg,pending:a||eg,rejected:l||eg,settled:u||eg})}(o,i,d,t):function({type:e,reducerName:t,createNotation:r},n,i){let s,o;if(\"reducer\"in n){if(r&&\"reducerWithPrepare\"!==n._reducerDefinitionType)throw Error(eA(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ee(e,o):ee(e))}(o,i,d)});let f=e=>e,p=new Map;function g(e,t){return r||(r=h()),r(e,t)}function m(){return r||(r=h()),r.getInitialState()}function y(t,r=!1){function n(e){let n=e[t];return void 0===n&&r&&(n=m()),n}function i(t=f){let n=en(p,r,{insert:()=>new WeakMap});return en(n,t,{insert:()=>{let n={};for(let[i,s]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(s,...o){let a=t(s);return void 0===a&&n&&(a=r()),e(a,...o)}return i.unwrapped=e,i}(s,t,m,r);return n}})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let w={name:n,reducer:g,actions:u,caseReducers:a,getInitialState:m,...y(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:g},r),{...w,...y(n,!0)}}};return w}}();function eg(){}var em=(e,t)=>{if(\"function\"!=typeof e)throw Error(eA(32))},{assign:ey}=Object,eb=\"listenerMiddleware\",ev=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:s}=e;if(t)i=ee(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(eA(21));return em(s,\"options.listener\"),{predicate:i,type:t,effect:s}},ew=ey(e=>{let{type:t,predicate:r,effect:n}=ev(e);return{id:ed(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(eA(22))}}},{withTypes:()=>ew}),e_=ey(ee(`${eb}/add`),{withTypes:()=>e_}),eE=ey(ee(`${eb}/remove`),{withTypes:()=>eE});function eA(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for(\"rtk-state-proxy-original\")},43197:function(e,t,r){\"use strict\";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{Zw:function(){return n},cN:function(){return o},eL:function(){return i},lh:function(){return s}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,o=/^\\(.+?\\).*?$/},10259:function(e,t,r){\"use strict\";r.d(t,{ZP:function(){return a}});let n=/\"(?:_|\\\\u0{2}5[Ff]){2}(?:p|\\\\u0{2}70)(?:r|\\\\u0{2}72)(?:o|\\\\u0{2}6[Ff])(?:t|\\\\u0{2}74)(?:o|\\\\u0{2}6[Ff])(?:_|\\\\u0{2}5[Ff]){2}\"\\s*:/,i=/\"(?:c|\\\\u0063)(?:o|\\\\u006[Ff])(?:n|\\\\u006[Ee])(?:s|\\\\u0073)(?:t|\\\\u0074)(?:r|\\\\u0072)(?:u|\\\\u0075)(?:c|\\\\u0063)(?:t|\\\\u0074)(?:o|\\\\u006[Ff])(?:r|\\\\u0072)\"\\s*:/,s=/^\\s*[\"[{]|^\\s*-?\\d{1,16}(\\.\\d{1,17})?([Ee][+-]?\\d+)?\\s*$/;function o(e,t){if(\"__proto__\"===e||\"constructor\"===e&&t&&\"object\"==typeof t&&\"prototype\"in t){console.warn(`[destr] Dropping \"${e}\" key to prevent prototype pollution.`);return}return t}function a(e,t={}){if(\"string\"!=typeof e)return e;let r=e.trim();if('\"'===e[0]&&e.endsWith('\"')&&!e.includes(\"\\\\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if(\"true\"===e)return!0;if(\"false\"===e)return!1;if(\"undefined\"===e)return;if(\"null\"===e)return null;if(\"nan\"===e)return Number.NaN;if(\"infinity\"===e)return Number.POSITIVE_INFINITY;if(\"-infinity\"===e)return Number.NEGATIVE_INFINITY}if(!s.test(e)){if(t.strict)throw SyntaxError(\"[destr] Invalid JSON\");return e}try{if(n.test(e)||i.test(e)){if(t.strict)throw Error(\"[destr] Possible prototype pollution\");return JSON.parse(e,o)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}},36393:function(e,t,r){\"use strict\";var n=r(37836);t.Z=n},50069:function(e,t,r){\"use strict\";r.d(t,{g7:function(){return n},xv:function(){return i}});let n=new TextEncoder,i=new TextDecoder},18482:function(e,t,r){\"use strict\";r.d(t,{J:function(){return a},c:function(){return o}});var n=r(50069);let i=e=>{let t=e;\"string\"==typeof t&&(t=n.g7.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(\"\"))},s=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},o=e=>i(e).replace(/=/g,\"\").replace(/\\+/g,\"-\").replace(/\\//g,\"_\"),a=e=>{let t=e;t instanceof Uint8Array&&(t=n.xv.decode(t)),t=t.replace(/-/g,\"+\").replace(/_/g,\"/\").replace(/\\s/g,\"\");try{return s(t)}catch(e){throw TypeError(\"The input to be decoded is not correctly encoded.\")}}},9648:function(e,t,r){\"use strict\";r.d(t,{t:function(){return a}});var n=r(18482),i=r(50069);class s extends Error{static get code(){return\"ERR_JOSE_GENERIC\"}constructor(e){var t;super(e),this.code=\"ERR_JOSE_GENERIC\",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class o extends s{constructor(){super(...arguments),this.code=\"ERR_JWT_INVALID\"}static get code(){return\"ERR_JWT_INVALID\"}}function a(e){let t,r;if(\"string\"!=typeof e)throw new o(\"JWTs must use Compact JWS serialization, JWT must be a string\");let{1:s,length:a}=e.split(\".\");if(5===a)throw new o(\"Only JWTs using Compact JWS serialization can be decoded\");if(3!==a)throw new o(\"Invalid JWT\");if(!s)throw new o(\"JWTs must contain a payload\");try{t=(0,n.J)(s)}catch(e){throw new o(\"Failed to base64url decode the payload\")}try{r=JSON.parse(i.xv.decode(t))}catch(e){throw new o(\"Failed to parse the decoded payload as JSON\")}if(!function(e){if(!(\"object\"==typeof e&&null!==e)||\"[object Object]\"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(r))throw new o(\"Invalid JWT Claims Set\");return r}},44785:function(e,t,r){\"use strict\";/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{Z:function(){return i}});var i=function e(t,r){function i(e,i,s){if(\"undefined\"!=typeof document){\"number\"==typeof(s=n({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o=\"\";for(var a in s)s[a]&&(o+=\"; \"+a,!0!==s[a]&&(o+=\"=\"+s[a].split(\";\")[0]));return document.cookie=e+\"=\"+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if(\"undefined\"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split(\"; \"):[],n={},i=0;i<r.length;i++){var s=r[i].split(\"=\"),o=s.slice(1).join(\"=\");try{var a=decodeURIComponent(s[0]);if(n[a]=t.read(o,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,\"\",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'\"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:\"/\"})},18822:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return m}});var n=r(31767),i=r(59105),s=r(69496),o=r(46587),a=r(71669),l=/^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h={formatExtension:function(e,t,r){return\"\".concat(e).concat(r.ext()).concat(t)}};function f(e,t,r,n,i){var o=function(e,t){for(var r,n=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e);!(r=n()).done;){var i=r.value;if(i.leadingDigitsPatterns().length>0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==t.search(o))continue}if((0,s.Z)(t,i.pattern()))return i}}(n.formats(),e);return o?(0,a.Z)(e,o,{useInternationalFormat:\"INTERNATIONAL\"===r,withNationalPrefix:!o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:n}):e}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var m=function(){var e;function t(e,r,i){if(!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),!e)throw TypeError(\"`country` or `countryCallingCode` not passed\");if(!r)throw TypeError(\"`nationalNumber` not passed\");if(!i)throw TypeError(\"`metadata` not passed\");var s,o,a,l,u,c=(s=e,o=i,u=new n.ZP(o),/^[A-Z]{2}$/.test(s)?(a=s,u.selectNumberingPlan(a),l=u.countryCallingCode()):l=s,{country:a,countryCallingCode:l}),d=c.country,h=c.countryCallingCode;this.country=d,this.countryCallingCode=h,this.nationalNumber=r,this.number=\"+\"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}}return e=[{key:\"setExt\",value:function(e){this.ext=e}},{key:\"getPossibleCountries\",value:function(){var e,t,r,i;return this.country?[this.country]:(e=this.countryCallingCode,t=this.nationalNumber,r=this.getMetadata(),(i=new n.ZP(r).getCountryCodesForCallingCode(e))?i.filter(function(e){var i;return(i=new n.ZP(r)).selectNumberingPlan(e),i.numberingPlan.possibleLengths().indexOf(t.length)>=0}):[])}},{key:\"isPossible\",value:function(){return(0,i.Z)(this,{v2:!0},this.getMetadata())}},{key:\"isValid\",value:function(){return function(e,t,r){if(t=t||{},(r=new n.ZP(r)).selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes())return void 0!==(0,o.Z)(e,t,r.metadata);var i=t.v2?e.nationalNumber:e.phone;return(0,s.Z)(i,r.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:\"isNonGeographic\",value:function(){return new n.ZP(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:\"isEqual\",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:\"getType\",value:function(){return(0,o.Z)(this,{v2:!0},this.getMetadata())}},{key:\"format\",value:function(e,t){return function(e,t,r,i){if(r=r?d(d({},h),r):h,i=new n.ZP(i),e.country&&\"001\"!==e.country){if(!i.hasCountry(e.country))throw Error(\"Unknown country: \".concat(e.country));i.country(e.country)}else{if(!e.countryCallingCode)return e.phone||\"\";i.selectNumberingPlan(e.countryCallingCode)}var s,o,a,u,c,p,g,m,y,b,v,w,_,E=i.countryCallingCode(),A=r.v2?e.nationalNumber:e.phone;switch(t){case\"NATIONAL\":if(!A)return\"\";return s=_=f(A,e.carrierCode,\"NATIONAL\",i,r),o=e.ext,a=i,u=r.formatExtension,o?u(s,o,a):s;case\"INTERNATIONAL\":if(!A)return\"+\".concat(E);return _=f(A,null,\"INTERNATIONAL\",i,r),c=_=\"+\".concat(E,\" \").concat(_),p=e.ext,g=i,m=r.formatExtension,p?m(c,p,g):c;case\"E.164\":return\"+\".concat(E).concat(A);case\"RFC3966\":return function(e){var t=e.number,r=e.ext;if(!t)return\"\";if(\"+\"!==t[0])throw Error('\"formatRFC3966()\" expects \"number\" to be in E.164 format.');return\"tel:\".concat(t).concat(r?\";ext=\"+r:\"\")}({number:\"+\".concat(E).concat(A),ext:e.ext});case\"IDD\":if(!r.fromCountry)return;return y=function(e,t,r,i,s){if((0,n.Gg)(i,s.metadata)===r){var o,a,u,c=f(e,t,\"NATIONAL\",s);return\"1\"===r?r+\" \"+c:c}var d=(o=void 0,a=s.metadata,((u=new n.ZP(a)).selectNumberingPlan(i,o),u.defaultIDDPrefix())?u.defaultIDDPrefix():l.test(u.IDDPrefix())?u.IDDPrefix():void 0);if(d)return\"\".concat(d,\" \").concat(r,\" \").concat(f(e,null,\"INTERNATIONAL\",s))}(A,e.carrierCode,E,r.fromCountry,i),b=e.ext,v=i,w=r.formatExtension,b?w(y,b,v):y;default:throw Error('Unknown \"format\" argument passed to \"formatNumber()\": \"'.concat(t,'\"'))}}(this,e,t?g(g({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:\"formatNational\",value:function(e){return this.format(\"NATIONAL\",e)}},{key:\"formatInternational\",value:function(e){return this.format(\"INTERNATIONAL\",e)}},{key:\"getURI\",value:function(e){return this.format(\"RFC3966\",e)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}()},13399:function(e,t,r){\"use strict\";r.d(t,{ex:function(){return n},sJ:function(){return i},uv:function(){return a},xc:function(){return o},xg:function(){return s},xy:function(){return l}});var n=2,i=17,s=3,o=\"0-9０-９٠-٩۰-۹\",a=\"\".concat(\"-‐-―−ー－\").concat(\"／/\").concat(\"．.\").concat(\" \\xa0\\xad​⁠　\").concat(\"()（）［］\\\\[\\\\]\").concat(\"~⁓∼～\"),l=\"+＋\"},90263:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(13399);function i(e){return e.replace(RegExp(\"[\".concat(n.uv,\"]+\"),\"g\"),\" \").trim()}},23419:function(e,t,r){\"use strict\";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){return function e(t,r,i){var s=i.type(r),o=s&&s.possibleLengths()||i.possibleLengths();if(!o)return\"IS_POSSIBLE\";if(\"FIXED_LINE_OR_MOBILE\"===r){if(!i.type(\"FIXED_LINE\"))return e(t,\"MOBILE\",i);var a=i.type(\"MOBILE\");a&&(o=function(e,t){for(var r,i=e.slice(),s=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(t);!(r=s()).done;){var o=r.value;0>e.indexOf(o)&&i.push(o)}return i.sort(function(e,t){return e-t})}(o,a.possibleLengths()))}else if(r&&!s)return\"INVALID_LENGTH\";var l=t.length,u=o[0];return u===l?\"IS_POSSIBLE\":u>l?\"TOO_SHORT\":o[o.length-1]<l?\"TOO_LONG\":o.indexOf(l,1)>=0?\"IS_POSSIBLE\":\"INVALID_LENGTH\"}(e,void 0,t)}r.d(t,{Z:function(){return i}})},52586:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return a}});var n=r(72924),i=r(3238),s=r(31767),o=r(13399);function a(e,t,r,a){if(!e)return{};if(\"+\"!==e[0]){var l,u=(0,n.Z)(e,t,r,a);if(u&&u!==e)l=!0,e=\"+\"+u;else{if(t||r){var c=(0,i.Z)(e,t,r,a),d=c.countryCallingCode,h=c.number;if(d)return{countryCallingCodeSource:\"FROM_NUMBER_WITHOUT_PLUS_SIGN\",countryCallingCode:d,number:h}}return{number:e}}}if(\"0\"===e[1])return{};a=new s.ZP(a);for(var f=2;f-1<=o.xg&&f<=e.length;){var p=e.slice(1,f);if(a.hasCallingCode(p))return a.selectNumberingPlan(p),{countryCallingCodeSource:l?\"FROM_NUMBER_WITH_IDD\":\"FROM_NUMBER_WITH_PLUS_SIGN\",countryCallingCode:p,number:e.slice(f)};f++}return{}}},3238:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return a}});var n=r(31767),i=r(69496),s=r(11264),o=r(23419);function a(e,t,r,a){var l=t?(0,n.Gg)(t,a):r;if(0===e.indexOf(l)){(a=new n.ZP(a)).selectNumberingPlan(t,r);var u=e.slice(l.length),c=(0,s.Z)(u,a).nationalNumber,d=(0,s.Z)(e,a).nationalNumber;if(!(0,i.Z)(d,a.nationalNumberPattern())&&(0,i.Z)(c,a.nationalNumberPattern())||\"TOO_LONG\"===(0,o.Z)(d,a))return{countryCallingCode:l,number:u}}return{number:e}}},11264:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return o}});var n=r(30196),i=r(69496),s=r(23419);function o(e,t){var r=(0,n.Z)(e,t),o=r.carrierCode,a=r.nationalNumber;return a!==e&&(!(!(0,i.Z)(e,t.nationalNumberPattern())||(0,i.Z)(a,t.nationalNumberPattern()))||t.possibleLengths()&&!function(e,t){switch((0,s.Z)(e,t)){case\"TOO_SHORT\":case\"INVALID_LENGTH\":return!1;default:return!0}}(a,t))?{nationalNumber:e}:{nationalNumber:a,carrierCode:o}}},30196:function(e,t,r){\"use strict\";function n(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=RegExp(\"^(?:\"+t.numberingPlan.nationalPrefixForParsing()+\")\"),n=r.exec(e);if(n){var i,s,o,a=n.length-1,l=a>0&&n[a];if(t.nationalPrefixTransformRule()&&l)i=e.replace(r,t.nationalPrefixTransformRule()),a>1&&(s=n[1]);else{var u=n[0];i=e.slice(u.length),l&&(s=n[1])}if(l){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(o=t.numberingPlan.nationalPrefix())}else o=n[0];return{nationalNumber:i,nationalPrefix:o,carrierCode:s}}}return{nationalNumber:e}}r.d(t,{Z:function(){return n}})},71669:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return s},i:function(){return i}});var n=r(90263),i=/(\\$\\d)/;function s(e,t,r){var s=r.useInternationalFormat,o=r.withNationalPrefix;r.carrierCode,r.metadata;var a=e.replace(new RegExp(t.pattern()),s?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(i,t.nationalPrefixFormattingRule()):t.format());return s?(0,n.Z)(a):a}},81271:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(79092);function i(e,t){var r=t.nationalNumber,i=t.defaultCountry,s=t.metadata,o=s.getCountryCodesForCallingCode(e);return o?1===o.length?o[0]:(0,n.Z)(r,{countries:o,defaultCountry:i,metadata:s.metadata}):void 0}},79092:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return o}});var n=r(31767),i=r(46587);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){var r=t.countries,o=t.defaultCountry,a=t.metadata;a=new n.ZP(a);for(var l,u=[],c=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(r);!(l=c()).done;){var d=l.value;if(a.country(d),a.leadingDigits()){if(e&&0===e.search(a.leadingDigits()))return d}else if((0,i.Z)({phone:e,country:d},void 0,a.metadata)){if(!o||d===o)return d;u.push(d)}}if(u.length>0)return u[0]}},46587:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return a}});var n=r(31767),i=r(69496);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var o=[\"MOBILE\",\"PREMIUM_RATE\",\"TOLL_FREE\",\"SHARED_COST\",\"VOIP\",\"PERSONAL_NUMBER\",\"PAGER\",\"UAN\",\"VOICEMAIL\"];function a(e,t,r){if(t=t||{},e.country||e.countryCallingCode){(r=new n.ZP(r)).selectNumberingPlan(e.country,e.countryCallingCode);var a=t.v2?e.nationalNumber:e.phone;if((0,i.Z)(a,r.nationalNumberPattern())){if(l(a,\"FIXED_LINE\",r))return r.type(\"MOBILE\")&&\"\"===r.type(\"MOBILE\").pattern()||!r.type(\"MOBILE\")||l(a,\"MOBILE\",r)?\"FIXED_LINE_OR_MOBILE\":\"FIXED_LINE\";for(var u,c=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(o);!(u=c()).done;){var d=u.value;if(l(a,d,r))return d}}}}function l(e,t,r){return!(!(t=r.type(t))||!t.pattern()||t.possibleLengths()&&0>t.possibleLengths().indexOf(e.length))&&(0,i.Z)(e,t.pattern())}},84667:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n={}.constructor;function i(e){return null!=e&&e.constructor===n}},69496:function(e,t,r){\"use strict\";function n(e,t){return e=e||\"\",RegExp(\"^(?:\"+t+\")$\").test(e)}r.d(t,{Z:function(){return n}})},43829:function(e,t,r){\"use strict\";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{ZP:function(){return o},xh:function(){return s}});var i={0:\"0\",1:\"1\",2:\"2\",3:\"3\",4:\"4\",5:\"5\",6:\"6\",7:\"7\",8:\"8\",9:\"9\",\"０\":\"0\",\"１\":\"1\",\"２\":\"2\",\"３\":\"3\",\"４\":\"4\",\"５\":\"5\",\"６\":\"6\",\"７\":\"7\",\"８\":\"8\",\"９\":\"9\",\"٠\":\"0\",\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"۰\":\"0\",\"۱\":\"1\",\"۲\":\"2\",\"۳\":\"3\",\"۴\":\"4\",\"۵\":\"5\",\"۶\":\"6\",\"۷\":\"7\",\"۸\":\"8\",\"۹\":\"9\"};function s(e){return i[e]}function o(e){for(var t,r=\"\",s=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e.split(\"\"));!(t=s()).done;){var o=i[t.value];o&&(r+=o)}return r}},72924:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return s}});var n=r(31767),i=RegExp(\"([\"+r(13399).xc+\"])\");function s(e,t,r,s){if(t){var o=new n.ZP(s);o.selectNumberingPlan(t,r);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var l=(e=e.slice(e.match(a)[0].length)).match(i);if(!l||null==l[1]||!(l[1].length>0)||\"0\"!==l[1])return e}}}},59105:function(e,t,r){\"use strict\";r.d(t,{D:function(){return o},Z:function(){return s}});var n=r(31767),i=r(23419);function s(e,t,r){if(void 0===t&&(t={}),r=new n.ZP(r),t.v2){if(!e.countryCallingCode)throw Error(\"Invalid phone number object passed\");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw Error(\"Unknown country: \".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw Error(\"Invalid phone number object passed\");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return o(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function o(e,t){return\"IS_POSSIBLE\"===(0,i.Z)(e,t)}},31767:function(e,t,r){\"use strict\";function n(e,t){e=e.split(\"-\"),t=t.split(\"-\");for(var r=e[0].split(\".\"),n=t[0].split(\".\"),i=0;i<3;i++){var s=Number(r[i]),o=Number(n[i]);if(s>o)return 1;if(o>s)return -1;if(!isNaN(s)&&isNaN(o))return 1;if(isNaN(s)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}r.d(t,{ZP:function(){return d},Gg:function(){return b},aS:function(){return v}});var i=r(84667);function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var u=\" ext. \",c=/^\\d+$/,d=function(){function e(t){o(this,e),function(e){if(!e)throw Error(\"[libphonenumber-js] `metadata` argument not passed. Check your arguments.\");if(!(0,i.Z)(e)||!(0,i.Z)(e.countries))throw Error(\"[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got \".concat((0,i.Z)(e)?\"an object of shape: { \"+Object.keys(e).join(\", \")+\" }\":\"a \"+y(e)+\": \"+e,\".\"))}(t),this.metadata=t,w.call(this,t)}return l(e,[{key:\"getCountries\",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return\"001\"!==e})}},{key:\"getCountryMetadata\",value:function(e){return this.metadata.countries[e]}},{key:\"nonGeographic\",value:function(){if(!this.v1&&!this.v2&&!this.v3)return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:\"hasCountry\",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:\"hasCallingCode\",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&\"001\"===t[0])return!0}}},{key:\"isNonGeographicCallingCode\",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:\"country\",value:function(e){return this.selectNumberingPlan(e)}},{key:\"selectNumberingPlan\",value:function(e,t){if(e&&c.test(e)&&(t=e,e=null),e&&\"001\"!==e){if(!this.hasCountry(e))throw Error(\"Unknown country: \".concat(e));this.numberingPlan=new h(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error(\"Unknown calling code: \".concat(t));this.numberingPlan=new h(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:\"getCountryCodesForCallingCode\",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:\"getCountryCodeForCallingCode\",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:\"getNumberingPlanMetadata\",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&\"001\"===n[0])return this.metadata.countries[\"001\"]}}},{key:\"countryCallingCode\",value:function(){return this.numberingPlan.callingCode()}},{key:\"IDDPrefix\",value:function(){return this.numberingPlan.IDDPrefix()}},{key:\"defaultIDDPrefix\",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:\"nationalNumberPattern\",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:\"possibleLengths\",value:function(){return this.numberingPlan.possibleLengths()}},{key:\"formats\",value:function(){return this.numberingPlan.formats()}},{key:\"nationalPrefixForParsing\",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:\"nationalPrefixTransformRule\",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:\"leadingDigits\",value:function(){return this.numberingPlan.leadingDigits()}},{key:\"hasTypes\",value:function(){return this.numberingPlan.hasTypes()}},{key:\"type\",value:function(e){return this.numberingPlan.type(e)}},{key:\"ext\",value:function(){return this.numberingPlan.ext()}},{key:\"countryCallingCodes\",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:\"chooseCountryByCountryCallingCode\",value:function(e){return this.selectNumberingPlan(e)}},{key:\"hasSelectedNumberingPlan\",value:function(){return void 0!==this.numberingPlan}}]),e}(),h=function(){function e(t,r){o(this,e),this.globalMetadataObject=r,this.metadata=t,w.call(this,r.metadata)}return l(e,[{key:\"callingCode\",value:function(){return this.metadata[0]}},{key:\"getDefaultCountryMetadataForRegion\",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:\"IDDPrefix\",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:\"defaultIDDPrefix\",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:\"nationalNumberPattern\",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:\"possibleLengths\",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:\"_getFormats\",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:\"formats\",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new f(t,e)})}},{key:\"nationalPrefix\",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:\"_getNationalPrefixFormattingRule\",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:\"nationalPrefixFormattingRule\",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:\"_nationalPrefixForParsing\",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:\"nationalPrefixForParsing\",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:\"nationalPrefixTransformRule\",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:\"_getNationalPrefixIsOptionalWhenFormatting\",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:\"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:\"leadingDigits\",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:\"types\",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:\"hasTypes\",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:\"type\",value:function(e){if(this.hasTypes()&&m(this.types(),e))return new g(m(this.types(),e),this)}},{key:\"ext\",value:function(){return this.v1||this.v2?u:this.metadata[13]||u}}]),e}(),f=function(){function e(t,r){o(this,e),this._format=t,this.metadata=r}return l(e,[{key:\"pattern\",value:function(){return this._format[0]}},{key:\"format\",value:function(){return this._format[1]}},{key:\"leadingDigitsPatterns\",value:function(){return this._format[2]||[]}},{key:\"nationalPrefixFormattingRule\",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:\"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:\"nationalPrefixIsMandatoryWhenFormattingInNationalFormat\",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:\"usesNationalPrefix\",value:function(){return!!this.nationalPrefixFormattingRule()&&!p.test(this.nationalPrefixFormattingRule())}},{key:\"internationalFormat\",value:function(){return this._format[5]||this.format()}}]),e}(),p=/^\\(?\\$1\\)?$/,g=function(){function e(t,r){o(this,e),this.type=t,this.metadata=r}return l(e,[{key:\"pattern\",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:\"possibleLengths\",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function m(e,t){switch(t){case\"FIXED_LINE\":return e[0];case\"MOBILE\":return e[1];case\"TOLL_FREE\":return e[2];case\"PREMIUM_RATE\":return e[3];case\"PERSONAL_NUMBER\":return e[4];case\"VOICEMAIL\":return e[5];case\"UAN\":return e[6];case\"PAGER\":return e[7];case\"VOIP\":return e[8];case\"SHARED_COST\":return e[9]}}var y=function(e){return s(e)};function b(e,t){if((t=new d(t)).hasCountry(e))return t.country(e).countryCallingCode();throw Error(\"Unknown country: \".concat(e))}function v(e,t){return t.countries.hasOwnProperty(e)}function w(e){var t=e.version;\"number\"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===n(t,\"1.2.0\")?this.v2=!0:-1===n(t,\"1.7.35\")?this.v3=!0:this.v4=!0:this.v1=!0}},24609:function(e,t){\"use strict\";t.Z={AC:\"40123\",AD:\"312345\",AE:\"501234567\",AF:\"701234567\",AG:\"2684641234\",AI:\"2642351234\",AL:\"672123456\",AM:\"77123456\",AO:\"923123456\",AR:\"91123456789\",AS:\"6847331234\",AT:\"664123456\",AU:\"412345678\",AW:\"5601234\",AX:\"412345678\",AZ:\"401234567\",BA:\"61123456\",BB:\"2462501234\",BD:\"1812345678\",BE:\"470123456\",BF:\"70123456\",BG:\"43012345\",BH:\"36001234\",BI:\"79561234\",BJ:\"90011234\",BL:\"690001234\",BM:\"4413701234\",BN:\"7123456\",BO:\"71234567\",BQ:\"3181234\",BR:\"11961234567\",BS:\"2423591234\",BT:\"17123456\",BW:\"71123456\",BY:\"294911911\",BZ:\"6221234\",CA:\"5062345678\",CC:\"412345678\",CD:\"991234567\",CF:\"70012345\",CG:\"061234567\",CH:\"781234567\",CI:\"0123456789\",CK:\"71234\",CL:\"221234567\",CM:\"671234567\",CN:\"13123456789\",CO:\"3211234567\",CR:\"83123456\",CU:\"51234567\",CV:\"9911234\",CW:\"95181234\",CX:\"412345678\",CY:\"96123456\",CZ:\"601123456\",DE:\"15123456789\",DJ:\"77831001\",DK:\"34412345\",DM:\"7672251234\",DO:\"8092345678\",DZ:\"551234567\",EC:\"991234567\",EE:\"51234567\",EG:\"1001234567\",EH:\"650123456\",ER:\"7123456\",ES:\"612345678\",ET:\"911234567\",FI:\"412345678\",FJ:\"7012345\",FK:\"51234\",FM:\"3501234\",FO:\"211234\",FR:\"612345678\",GA:\"06031234\",GB:\"7400123456\",GD:\"4734031234\",GE:\"555123456\",GF:\"694201234\",GG:\"7781123456\",GH:\"231234567\",GI:\"57123456\",GL:\"221234\",GM:\"3012345\",GN:\"601123456\",GP:\"690001234\",GQ:\"222123456\",GR:\"6912345678\",GT:\"51234567\",GU:\"6713001234\",GW:\"955012345\",GY:\"6091234\",HK:\"51234567\",HN:\"91234567\",HR:\"921234567\",HT:\"34101234\",HU:\"201234567\",ID:\"812345678\",IE:\"850123456\",IL:\"502345678\",IM:\"7924123456\",IN:\"8123456789\",IO:\"3801234\",IQ:\"7912345678\",IR:\"9123456789\",IS:\"6111234\",IT:\"3123456789\",JE:\"7797712345\",JM:\"8762101234\",JO:\"790123456\",JP:\"9012345678\",KE:\"712123456\",KG:\"700123456\",KH:\"91234567\",KI:\"72001234\",KM:\"3212345\",KN:\"8697652917\",KP:\"1921234567\",KR:\"1020000000\",KW:\"50012345\",KY:\"3453231234\",KZ:\"7710009998\",LA:\"2023123456\",LB:\"71123456\",LC:\"7582845678\",LI:\"660234567\",LK:\"712345678\",LR:\"770123456\",LS:\"50123456\",LT:\"61234567\",LU:\"628123456\",LV:\"21234567\",LY:\"912345678\",MA:\"650123456\",MC:\"612345678\",MD:\"62112345\",ME:\"67622901\",MF:\"690001234\",MG:\"321234567\",MH:\"2351234\",MK:\"72345678\",ML:\"65012345\",MM:\"92123456\",MN:\"88123456\",MO:\"66123456\",MP:\"6702345678\",MQ:\"696201234\",MR:\"22123456\",MS:\"6644923456\",MT:\"96961234\",MU:\"52512345\",MV:\"7712345\",MW:\"991234567\",MX:\"2221234567\",MY:\"123456789\",MZ:\"821234567\",NA:\"811234567\",NC:\"751234\",NE:\"93123456\",NF:\"381234\",NG:\"8021234567\",NI:\"81234567\",NL:\"612345678\",NO:\"40612345\",NP:\"9841234567\",NR:\"5551234\",NU:\"8884012\",NZ:\"211234567\",OM:\"92123456\",PA:\"61234567\",PE:\"912345678\",PF:\"87123456\",PG:\"70123456\",PH:\"9051234567\",PK:\"3012345678\",PL:\"512345678\",PM:\"551234\",PR:\"7872345678\",PS:\"599123456\",PT:\"912345678\",PW:\"6201234\",PY:\"961456789\",QA:\"33123456\",RE:\"692123456\",RO:\"712034567\",RS:\"601234567\",RU:\"9123456789\",RW:\"720123456\",SA:\"512345678\",SB:\"7421234\",SC:\"2510123\",SD:\"911231234\",SE:\"701234567\",SG:\"81234567\",SH:\"51234\",SI:\"31234567\",SJ:\"41234567\",SK:\"912123456\",SL:\"25123456\",SM:\"66661212\",SN:\"701234567\",SO:\"71123456\",SR:\"7412345\",SS:\"977123456\",ST:\"9812345\",SV:\"70123456\",SX:\"7215205678\",SY:\"944567890\",SZ:\"76123456\",TA:\"8999\",TC:\"6492311234\",TD:\"63012345\",TG:\"90112345\",TH:\"812345678\",TJ:\"917123456\",TK:\"7290\",TL:\"77212345\",TM:\"66123456\",TN:\"20123456\",TO:\"7715123\",TR:\"5012345678\",TT:\"8682911234\",TV:\"901234\",TW:\"912345678\",TZ:\"621234567\",UA:\"501234567\",UG:\"712345678\",US:\"2015550123\",UY:\"94231234\",UZ:\"912345678\",VA:\"3123456789\",VC:\"7844301234\",VE:\"4121234567\",VG:\"2843001234\",VI:\"3406421234\",VN:\"912345678\",VU:\"5912345\",WF:\"821234\",WS:\"7212345\",XK:\"43201234\",YE:\"712345678\",YT:\"639012345\",ZA:\"711234567\",ZM:\"955123456\",ZW:\"712345678\"}},89803:function(e,t){\"use strict\";t.Z={version:4,country_calling_codes:{1:[\"US\",\"AG\",\"AI\",\"AS\",\"BB\",\"BM\",\"BS\",\"CA\",\"DM\",\"DO\",\"GD\",\"GU\",\"JM\",\"KN\",\"KY\",\"LC\",\"MP\",\"MS\",\"PR\",\"SX\",\"TC\",\"TT\",\"VC\",\"VG\",\"VI\"],7:[\"RU\",\"KZ\"],20:[\"EG\"],27:[\"ZA\"],30:[\"GR\"],31:[\"NL\"],32:[\"BE\"],33:[\"FR\"],34:[\"ES\"],36:[\"HU\"],39:[\"IT\",\"VA\"],40:[\"RO\"],41:[\"CH\"],43:[\"AT\"],44:[\"GB\",\"GG\",\"IM\",\"JE\"],45:[\"DK\"],46:[\"SE\"],47:[\"NO\",\"SJ\"],48:[\"PL\"],49:[\"DE\"],51:[\"PE\"],52:[\"MX\"],53:[\"CU\"],54:[\"AR\"],55:[\"BR\"],56:[\"CL\"],57:[\"CO\"],58:[\"VE\"],60:[\"MY\"],61:[\"AU\",\"CC\",\"CX\"],62:[\"ID\"],63:[\"PH\"],64:[\"NZ\"],65:[\"SG\"],66:[\"TH\"],81:[\"JP\"],82:[\"KR\"],84:[\"VN\"],86:[\"CN\"],90:[\"TR\"],91:[\"IN\"],92:[\"PK\"],93:[\"AF\"],94:[\"LK\"],95:[\"MM\"],98:[\"IR\"],211:[\"SS\"],212:[\"MA\",\"EH\"],213:[\"DZ\"],216:[\"TN\"],218:[\"LY\"],220:[\"GM\"],221:[\"SN\"],222:[\"MR\"],223:[\"ML\"],224:[\"GN\"],225:[\"CI\"],226:[\"BF\"],227:[\"NE\"],228:[\"TG\"],229:[\"BJ\"],230:[\"MU\"],231:[\"LR\"],232:[\"SL\"],233:[\"GH\"],234:[\"NG\"],235:[\"TD\"],236:[\"CF\"],237:[\"CM\"],238:[\"CV\"],239:[\"ST\"],240:[\"GQ\"],241:[\"GA\"],242:[\"CG\"],243:[\"CD\"],244:[\"AO\"],245:[\"GW\"],246:[\"IO\"],247:[\"AC\"],248:[\"SC\"],249:[\"SD\"],250:[\"RW\"],251:[\"ET\"],252:[\"SO\"],253:[\"DJ\"],254:[\"KE\"],255:[\"TZ\"],256:[\"UG\"],257:[\"BI\"],258:[\"MZ\"],260:[\"ZM\"],261:[\"MG\"],262:[\"RE\",\"YT\"],263:[\"ZW\"],264:[\"NA\"],265:[\"MW\"],266:[\"LS\"],267:[\"BW\"],268:[\"SZ\"],269:[\"KM\"],290:[\"SH\",\"TA\"],291:[\"ER\"],297:[\"AW\"],298:[\"FO\"],299:[\"GL\"],350:[\"GI\"],351:[\"PT\"],352:[\"LU\"],353:[\"IE\"],354:[\"IS\"],355:[\"AL\"],356:[\"MT\"],357:[\"CY\"],358:[\"FI\",\"AX\"],359:[\"BG\"],370:[\"LT\"],371:[\"LV\"],372:[\"EE\"],373:[\"MD\"],374:[\"AM\"],375:[\"BY\"],376:[\"AD\"],377:[\"MC\"],378:[\"SM\"],380:[\"UA\"],381:[\"RS\"],382:[\"ME\"],383:[\"XK\"],385:[\"HR\"],386:[\"SI\"],387:[\"BA\"],389:[\"MK\"],420:[\"CZ\"],421:[\"SK\"],423:[\"LI\"],500:[\"FK\"],501:[\"BZ\"],502:[\"GT\"],503:[\"SV\"],504:[\"HN\"],505:[\"NI\"],506:[\"CR\"],507:[\"PA\"],508:[\"PM\"],509:[\"HT\"],590:[\"GP\",\"BL\",\"MF\"],591:[\"BO\"],592:[\"GY\"],593:[\"EC\"],594:[\"GF\"],595:[\"PY\"],596:[\"MQ\"],597:[\"SR\"],598:[\"UY\"],599:[\"CW\",\"BQ\"],670:[\"TL\"],672:[\"NF\"],673:[\"BN\"],674:[\"NR\"],675:[\"PG\"],676:[\"TO\"],677:[\"SB\"],678:[\"VU\"],679:[\"FJ\"],680:[\"PW\"],681:[\"WF\"],682:[\"CK\"],683:[\"NU\"],685:[\"WS\"],686:[\"KI\"],687:[\"NC\"],688:[\"TV\"],689:[\"PF\"],690:[\"TK\"],691:[\"FM\"],692:[\"MH\"],850:[\"KP\"],852:[\"HK\"],853:[\"MO\"],855:[\"KH\"],856:[\"LA\"],880:[\"BD\"],886:[\"TW\"],960:[\"MV\"],961:[\"LB\"],962:[\"JO\"],963:[\"SY\"],964:[\"IQ\"],965:[\"KW\"],966:[\"SA\"],967:[\"YE\"],968:[\"OM\"],970:[\"PS\"],971:[\"AE\"],972:[\"IL\"],973:[\"BH\"],974:[\"QA\"],975:[\"BT\"],976:[\"MN\"],977:[\"NP\"],992:[\"TJ\"],993:[\"TM\"],994:[\"AZ\"],995:[\"GE\"],996:[\"KG\"],998:[\"UZ\"]},countries:{AC:[\"247\",\"00\",\"(?:[01589]\\\\d|[46])\\\\d{4}\",[5,6]],AD:[\"376\",\"00\",\"(?:1|6\\\\d)\\\\d{7}|[135-9]\\\\d{5}\",[6,8,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"[135-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]]],AE:[\"971\",\"00\",\"(?:[4-7]\\\\d|9[0-689])\\\\d{7}|800\\\\d{2,9}|[2-4679]\\\\d{7}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{2,9})\",\"$1 $2\",[\"60|8\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[236]|[479][2-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{5})\",\"$1 $2 $3\",[\"[479]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],AF:[\"93\",\"00\",\"[2-7]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"]],\"0\"],AG:[\"1\",\"011\",\"(?:268|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([457]\\\\d{6})$|1\",\"268$1\",0,\"268\"],AI:[\"1\",\"011\",\"(?:264|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2457]\\\\d{6})$|1\",\"264$1\",0,\"264\"],AL:[\"355\",\"00\",\"(?:700\\\\d\\\\d|900)\\\\d{3}|8\\\\d{5,7}|(?:[2-5]|6\\\\d)\\\\d{7}\",[6,7,8,9],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"80|9\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"4[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2358][2-5]|4\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[23578]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"]],\"0\"],AM:[\"374\",\"00\",\"(?:[1-489]\\\\d|55|60|77)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]0\"],\"0 $1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2|3[12]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"1|47\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[3-9]\"],\"0$1\"]],\"0\"],AO:[\"244\",\"00\",\"[29]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[29]\"]]]],AR:[\"54\",\"00\",\"(?:11|[89]\\\\d\\\\d)\\\\d{8}|[2368]\\\\d{9}\",[10,11],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2-$3\",[\"2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])\",\"2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"1\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[68]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[23]\"],\"0$1\",1],[\"(\\\\d)(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9(?:2[2-469]|3[3-578])\",\"9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))\",\"9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$2 15-$3-$4\",[\"91\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9\"],\"0$1\",0,\"$1 $2 $3-$4\"]],\"0\",0,\"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?\",\"9$1\"],AS:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|684|900)\\\\d{7}\",[10],0,\"1\",0,\"([267]\\\\d{6})$|1\",\"684$1\",0,\"684\"],AT:[\"43\",\"00\",\"1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}\",[4,5,6,7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3,12})\",\"$1 $2\",[\"1(?:11|[2-9])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})\",\"$1 $2\",[\"517\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"5[079]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,10})\",\"$1 $2\",[\"(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,9})\",\"$1 $2\",[\"[2-467]|5[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,7})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],AU:[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{7}(?:\\\\d(?:\\\\d{2})?)?|8[0-24-9]\\\\d{7})|[2-478]\\\\d{8}|1\\\\d{4,7}\",[5,6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"16\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"16\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"14|4\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[2378]\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:30|[89])\"]]],\"0\",0,\"(183[12])|0\",0,0,0,[[\"(?:(?:(?:2(?:[0-26-9]\\\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\\\d|2[0-8]))\\\\d|3(?:(?:[0-3589]\\\\d|6[1-9]|7[0-35-9])\\\\d|4(?:[0-578]\\\\d|90)))\\\\d\\\\d|8(?:51(?:0(?:0[03-9]|[12479]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\\\d|7[89]|9[0-4])|3\\\\d\\\\d)|(?:6[0-8]|[78]\\\\d)\\\\d{3}|9(?:[02-9]\\\\d{3}|1(?:(?:[0-58]\\\\d|6[0135-9])\\\\d|7(?:0[0-24-9]|[1-9]\\\\d)|9(?:[0-46-9]\\\\d|5[0-79])))))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,[\"163\\\\d{2,6}\",[5,6,7,8,9]],[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],AW:[\"297\",\"00\",\"(?:[25-79]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[25-9]\"]]]],AX:[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"2\\\\d{4,9}|35\\\\d{4,5}|(?:60\\\\d\\\\d|800)\\\\d{4,6}|7\\\\d{5,11}|(?:[14]\\\\d|3[0-46-9]|50)\\\\d{4,8}\",[5,6,7,8,9,10,11,12],0,\"0\",0,0,0,0,\"18\",0,\"00\"],AZ:[\"994\",\"00\",\"365\\\\d{6}|(?:[124579]\\\\d|60|88)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[28]|2|365|46\",\"1[28]|2|365[45]|46\",\"1[28]|2|365(?:4|5[02])|46\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[13-9]\"],\"0$1\"]],\"0\"],BA:[\"387\",\"00\",\"6\\\\d{8}|(?:[35689]\\\\d|49|70)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[1-3]|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2-$3\",[\"[3-5]|6[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\"]],\"0\"],BB:[\"1\",\"011\",\"(?:246|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"246$1\",0,\"246\"],BD:[\"880\",\"00\",\"[1-469]\\\\d{9}|8[0-79]\\\\d{7,8}|[2-79]\\\\d{8}|[2-9]\\\\d{7}|[3-9]\\\\d{6}|[57-9]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1-$2\",[\"31[5-8]|[459]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1-$2\",[\"3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,6})\",\"$1-$2\",[\"[13-9]|22\"],\"0$1\"],[\"(\\\\d)(\\\\d{7,8})\",\"$1-$2\",[\"2\"],\"0$1\"]],\"0\"],BE:[\"32\",\"00\",\"4\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:80|9)0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[239]|4[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[15-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4\"],\"0$1\"]],\"0\"],BF:[\"226\",\"00\",\"[025-7]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[025-7]\"]]]],BG:[\"359\",\"00\",\"00800\\\\d{7}|[2-7]\\\\d{6,7}|[89]\\\\d{6,8}|2\\\\d{5}\",[6,7,8,9,12],[[\"(\\\\d)(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"43[1-6]|70[1-9]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:70|8)0\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3\",[\"43[1-7]|7\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[48]|9[08]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],BH:[\"973\",\"00\",\"[136-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[13679]|8[02-4679]\"]]]],BI:[\"257\",\"00\",\"(?:[267]\\\\d|31)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2367]\"]]]],BJ:[\"229\",\"00\",\"[24-689]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-689]\"]]]],BL:[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:2[7-9]|3[3-7]|5[12]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],BM:[\"1\",\"011\",\"(?:441|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"441$1\",0,\"441\"],BN:[\"673\",\"00\",\"[2-578]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-578]\"]]]],BO:[\"591\",\"00(?:1\\\\d)?\",\"8001\\\\d{5}|(?:[2-467]\\\\d|50)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[235]|4[46]\"]],[\"(\\\\d{8})\",\"$1\",[\"[67]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\",0,\"0(1\\\\d)?\"],BQ:[\"599\",\"00\",\"(?:[34]1|7\\\\d)\\\\d{5}\",[7],0,0,0,0,0,0,\"[347]\"],BR:[\"55\",\"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)\",\"(?:[1-46-9]\\\\d\\\\d|5(?:[0-46-9]\\\\d|5[0-46-9]))\\\\d{8}|[1-9]\\\\d{9}|[3589]\\\\d{8}|[34]\\\\d{7}\",[8,9,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"300|4(?:0[02]|37)\",\"4(?:02|37)0|[34]00\"]],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:[358]|90)0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1 $2-$3\",[\"[16][1-9]|[2-57-9]\"],\"($1)\"]],\"0\",0,\"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?\",\"$2\"],BS:[\"1\",\"011\",\"(?:242|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([3-8]\\\\d{6})$|1\",\"242$1\",0,\"242\"],BT:[\"975\",\"00\",\"[17]\\\\d{7}|[2-8]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-68]|7[246]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[67]|7\"]]]],BW:[\"267\",\"00\",\"(?:0800|(?:[37]|800)\\\\d)\\\\d{6}|(?:[2-6]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[24-6]|3[15-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],BY:[\"375\",\"810\",\"(?:[12]\\\\d|33|44|902)\\\\d{7}|8(?:0[0-79]\\\\d{5,7}|[1-7]\\\\d{9})|8(?:1[0-489]|[5-79]\\\\d)\\\\d{7}|8[1-79]\\\\d{6,7}|8[0-79]\\\\d{5}|8\\\\d{5}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"800\"],\"8 $1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,4})\",\"$1 $2 $3\",[\"800\"],\"8 $1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{3})\",\"$1 $2-$3\",[\"1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])\",\"1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"1(?:[56]|7[467])|2[1-3]\"],\"8 0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-4]\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"8 $1\"]],\"8\",0,\"0|80?\",0,0,0,0,\"8~10\"],BZ:[\"501\",\"00\",\"(?:0800\\\\d|[2-8])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-8]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"0\"]]]],CA:[\"1\",\"011\",\"(?:[2-8]\\\\d|90)\\\\d{8}|3\\\\d{6}\",[7,10],0,\"1\",0,0,0,0,0,[[\"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\\\d{6}\",[10]],[\"\",[10]],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\",[10]],[\"900[2-9]\\\\d{6}\",[10]],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\\\d{6}\",[10]],0,[\"310\\\\d{4}\",[7]],0,[\"600[2-9]\\\\d{6}\",[10]]]],CC:[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],CD:[\"243\",\"00\",\"[189]\\\\d{8}|[1-68]\\\\d{6}\",[7,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[1-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],CF:[\"236\",\"00\",\"(?:[27]\\\\d{3}|8776)\\\\d{4}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[278]\"]]]],CG:[\"242\",\"00\",\"222\\\\d{6}|(?:0\\\\d|80)\\\\d{7}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[02]\"]]]],CH:[\"41\",\"00\",\"8\\\\d{11}|[2-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8[047]|90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]|81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"8\"],\"0$1\"]],\"0\"],CI:[\"225\",\"00\",\"[02]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d)(\\\\d{5})\",\"$1 $2 $3 $4\",[\"2\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"0\"]]]],CK:[\"682\",\"00\",\"[2-578]\\\\d{4}\",[5],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"[2-578]\"]]]],CL:[\"56\",\"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0\",\"12300\\\\d{6}|6\\\\d{9,10}|[2-9]\\\\d{8}\",[9,10,11],[[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"219\",\"2196\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[1-36]\"],\"($1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"9[2-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"60|8\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"60\"]]]],CM:[\"237\",\"00\",\"[26]\\\\d{8}|88\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"88\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[26]|88\"]]]],CN:[\"86\",\"00|1(?:[12]\\\\d|79)\\\\d\\\\d00\",\"1[127]\\\\d{8,9}|2\\\\d{9}(?:\\\\d{2})?|[12]\\\\d{6,7}|86\\\\d{6}|(?:1[03-689]\\\\d|6)\\\\d{7,9}|(?:[3-579]\\\\d|8[0-57-9])\\\\d{6,9}\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5,6})\",\"$1 $2\",[\"(?:10|2[0-57-9])[19]\",\"(?:10|2[0-57-9])(?:10|9[56])\",\"10(?:10|9[56])|2[0-57-9](?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]\",\"(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))[19]\",\"85[23](?:10|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:10|9[56])\",\"85[23](?:100|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:4|80)0\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|2(?:[02-57-9]|1[1-9])\",\"10|2(?:[02-57-9]|1[1-9])\",\"10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-578]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"1[3-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"[12]\"],\"0$1\",1]],\"0\",0,\"(1(?:[12]\\\\d|79)\\\\d\\\\d)|0\",0,0,0,0,\"00\"],CO:[\"57\",\"00(?:4(?:[14]4|56)|[579])\",\"(?:60\\\\d\\\\d|9101)\\\\d{6}|(?:1\\\\d|3)\\\\d{9}\",[10,11],[[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"6\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3[0-357]|91\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{7})\",\"$1-$2-$3\",[\"1\"],\"0$1\",0,\"$1 $2 $3\"]],\"0\",0,\"0([3579]|4(?:[14]4|56))?\"],CR:[\"506\",\"00\",\"(?:8\\\\d|90)\\\\d{8}|(?:[24-8]\\\\d{3}|3005)\\\\d{4}\",[8,10],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[3-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[89]\"]]],0,0,\"(19(?:0[0-2468]|1[09]|20|66|77|99))\"],CU:[\"53\",\"119\",\"(?:[2-7]|8\\\\d\\\\d)\\\\d{7}|[2-47]\\\\d{6}|[34]\\\\d{5}\",[6,7,8,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"2[1-4]|[34]\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{6,7})\",\"$1 $2\",[\"7\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[56]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"8\"],\"0$1\"]],\"0\"],CV:[\"238\",\"0\",\"(?:[2-59]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-589]\"]]]],CW:[\"599\",\"00\",\"(?:[34]1|60|(?:7|9\\\\d)\\\\d)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[3467]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9[4-8]\"]]],0,0,0,0,0,\"[69]\"],CX:[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],CY:[\"357\",\"00\",\"(?:[279]\\\\d|[58]0)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[257-9]\"]]]],CZ:[\"420\",\"00\",\"(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]|9[015-7]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"96\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]]],DE:[\"49\",\"00\",\"[2579]\\\\d{5,14}|49(?:[34]0|69|8\\\\d)\\\\d\\\\d?|49(?:37|49|60|7[089]|9\\\\d)\\\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\\\d{1,8}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}|49(?:[015]\\\\d|2[13]|31|[46][1-8])\\\\d{1,9}\",[4,5,6,7,8,9,10,11,12,13,14,15],[[\"(\\\\d{2})(\\\\d{3,13})\",\"$1 $2\",[\"3[02]|40|[68]9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,12})\",\"$1 $2\",[\"2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\",\"2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2,11})\",\"$1 $2\",[\"[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]\",\"[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"138\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{2,10})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,11})\",\"$1 $2\",[\"181\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{4,10})\",\"$1 $2 $3\",[\"1(?:3|80)|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"1[67]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,12})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"185\",\"1850\",\"18500\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"18[68]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"15[1279]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"15[03568]\",\"15(?:[0568]|31)\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{8})\",\"$1 $2\",[\"18\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{7,8})\",\"$1 $2 $3\",[\"1(?:6[023]|7)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{7})\",\"$1 $2 $3\",[\"15[279]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{8})\",\"$1 $2 $3\",[\"15\"],\"0$1\"]],\"0\"],DJ:[\"253\",\"00\",\"(?:2\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[27]\"]]]],DK:[\"45\",\"00\",\"[2-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-9]\"]]]],DM:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|767|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"767$1\",0,\"767\"],DO:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"8001|8[024]9\"],DZ:[\"213\",\"00\",\"(?:[1-4]|[5-79]\\\\d|80)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-8]\"],\"0$1\"]],\"0\"],EC:[\"593\",\"00\",\"1\\\\d{9,10}|(?:[2-7]|9\\\\d)\\\\d{7}\",[8,9,10,11],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[2-7]\"],\"(0$1)\",0,\"$1-$2-$3\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],EE:[\"372\",\"00\",\"8\\\\d{9}|[4578]\\\\d{7}|(?:[3-8]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88\",\"[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88\"]],[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[45]|8(?:00|[1-49])\",\"[45]|8(?:00[1-9]|[1-49])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],EG:[\"20\",\"00\",\"[189]\\\\d{8,9}|[24-6]\\\\d{8}|[135]\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{7,8})\",\"$1 $2\",[\"[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,7})\",\"$1 $2\",[\"1[35]|[4-6]|8[2468]|9[235-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{8})\",\"$1 $2\",[\"1\"],\"0$1\"]],\"0\"],EH:[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],0,\"0\",0,0,0,0,\"528[89]\"],ER:[\"291\",\"00\",\"[178]\\\\d{6}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[178]\"],\"0$1\"]],\"0\"],ES:[\"34\",\"00\",\"[5-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]00\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-9]\"]]]],ET:[\"251\",\"00\",\"(?:11|[2-579]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-579]\"],\"0$1\"]],\"0\"],FI:[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{5})\",\"$1\",[\"20[2-59]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"(?:[1-3]0|[68])0|70[07-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,8})\",\"$1 $2\",[\"[14]|2[09]|50|7[135]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,10})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d)(\\\\d{4,9})\",\"$1 $2\",[\"(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9\"],\"0$1\"]],\"0\",0,0,0,0,\"1[03-79]|[2-9]\",0,\"00\"],FJ:[\"679\",\"0(?:0|52)\",\"45\\\\d{5}|(?:0800\\\\d|[235-9])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[235-9]|45\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]]],0,0,0,0,0,0,0,\"00\"],FK:[\"500\",\"00\",\"[2-7]\\\\d{4}\",[5]],FM:[\"691\",\"00\",\"(?:[39]\\\\d\\\\d|820)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[389]\"]]]],FO:[\"298\",\"00\",\"[2-9]\\\\d{5}\",[6],[[\"(\\\\d{6})\",\"$1\",[\"[2-9]\"]]],0,0,\"(10(?:01|[12]0|88))\"],FR:[\"33\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0 $1\"],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[1-79]\"],\"0$1\"]],\"0\"],GA:[\"241\",\"00\",\"(?:[067]\\\\d|11)\\\\d{6}|[2-7]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"11|[67]\"],\"0$1\"]],0,0,\"0(11\\\\d{6}|60\\\\d{6}|61\\\\d{6}|6[256]\\\\d{6}|7[467]\\\\d{6})\",\"$1\"],GB:[\"44\",\"00\",\"[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}\",[7,9,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"800\",\"8001\",\"80011\",\"800111\",\"8001111\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"845\",\"8454\",\"84546\",\"845464\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"1(?:38|5[23]|69|76|94)\",\"1(?:(?:38|69)7|5(?:24|39)|768|946)\",\"1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"1(?:[2-69][02-9]|[78])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[25]|7(?:0|6[02-9])\",\"[25]|7(?:0|6(?:[03-9]|2[356]))\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1389]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"(?:1(?:1(?:3(?:[0-58]\\\\d\\\\d|73[0-35])|4(?:(?:[0-5]\\\\d|70)\\\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\\\d|6(?:[0-4]\\\\d|50))\\\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d|1(?:[0-7]\\\\d|8[0-3]))|(?:3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d)\\\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}\",[9,10]],[\"7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]],0,\" x\"],GD:[\"1\",\"011\",\"(?:473|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"473$1\",0,\"473\"],GE:[\"995\",\"00\",\"(?:[3-57]\\\\d\\\\d|800)\\\\d{6}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"32\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[57]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[348]\"],\"0$1\"]],\"0\"],GF:[\"594\",\"00\",\"[56]94\\\\d{6}|(?:80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[56]|9[47]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[89]\"],\"0$1\"]],\"0\"],GG:[\"44\",\"00\",\"(?:1481|[357-9]\\\\d{3})\\\\d{6}|8\\\\d{6}(?:\\\\d{2})?\",[7,9,10],0,\"0\",0,\"([25-9]\\\\d{5})$|0\",\"1481$1\",0,0,[[\"1481[25-9]\\\\d{5}\",[10]],[\"7(?:(?:781|839)\\\\d|911[17])\\\\d{5}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[0-3]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]]],GH:[\"233\",\"00\",\"(?:[235]\\\\d{3}|800)\\\\d{5}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[235]\"],\"0$1\"]],\"0\"],GI:[\"350\",\"00\",\"(?:[25]\\\\d|60)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2\"]]]],GL:[\"299\",\"00\",\"(?:19|[2-689]\\\\d|70)\\\\d{4}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"19|[2-9]\"]]]],GM:[\"220\",\"00\",\"[2-9]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],GN:[\"224\",\"00\",\"722\\\\d{6}|(?:3|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"3\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[67]\"]]]],GP:[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\\\d)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],GQ:[\"240\",\"00\",\"222\\\\d{6}|(?:3\\\\d|55|[89]0)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235]\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[89]\"]]]],GR:[\"30\",\"00\",\"5005000\\\\d{3}|8\\\\d{9,11}|(?:[269]\\\\d|70)\\\\d{8}\",[10,11,12],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"21|7\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2689]\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{5})\",\"$1 $2 $3\",[\"8\"]]]],GT:[\"502\",\"00\",\"80\\\\d{6}|(?:1\\\\d{3}|[2-7])\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-8]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],GU:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|671|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"671$1\",0,\"671\"],GW:[\"245\",\"00\",\"[49]\\\\d{8}|4\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"40\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"]]]],GY:[\"592\",\"001\",\"(?:[2-8]\\\\d{3}|9008)\\\\d{3}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],HK:[\"852\",\"00(?:30|5[09]|[126-9]?)\",\"8[0-46-9]\\\\d{6,7}|9\\\\d{4,7}|(?:[2-7]|9\\\\d{3})\\\\d{7}\",[5,6,7,8,9,11],[[\"(\\\\d{3})(\\\\d{2,5})\",\"$1 $2\",[\"900\",\"9003\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[1-4]|9(?:0[1-9]|[1-8])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]],0,0,0,0,0,0,0,\"00\"],HN:[\"504\",\"00\",\"8\\\\d{10}|[237-9]\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[237-9]\"]]]],HR:[\"385\",\"00\",\"(?:[24-69]\\\\d|3[0-79])\\\\d{7}|80\\\\d{5,7}|[1-79]\\\\d{7}|6\\\\d{5,6}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"6[01]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6|7[245]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-57]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],HT:[\"509\",\"00\",\"(?:[2-489]\\\\d|55)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-589]\"]]]],HU:[\"36\",\"00\",\"[235-7]\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"06 $1\"]],\"06\"],ID:[\"62\",\"00[89]\",\"(?:(?:00[1-9]|8\\\\d)\\\\d{4}|[1-36])\\\\d{6}|00\\\\d{10}|[1-9]\\\\d{8,10}|[2-9]\\\\d{7}\",[7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"15\"]],[\"(\\\\d{2})(\\\\d{5,9})\",\"$1 $2\",[\"2[124]|[36]1\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,7})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,8})\",\"$1 $2\",[\"[2-79]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{3})\",\"$1-$2-$3\",[\"8[1-35-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6,8})\",\"$1 $2\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"804\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"80\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"]],\"0\"],IE:[\"353\",\"00\",\"(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"2[24-9]|47|58|6[237-9]|9[35-9]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[45]0\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2569]|4[1-69]|7[14]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"81\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"4\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],IL:[\"972\",\"0(?:0|1[2-9])\",\"1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}\",[7,8,9,10,11,12],[[\"(\\\\d{4})(\\\\d{3})\",\"$1-$2\",[\"125\"]],[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"121\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[2-489]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"12\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1-$2\",[\"159\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"1[7-9]\"]],[\"(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3-$4\",[\"15\"]]],\"0\"],IM:[\"44\",\"00\",\"1624\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([25-8]\\\\d{5})$|0\",\"1624$1\",0,\"74576|(?:16|7[56])24\"],IN:[\"91\",\"00\",\"(?:000800|[2-9]\\\\d\\\\d)\\\\d{7}|1\\\\d{7,12}\",[8,9,10,11,12,13],[[\"(\\\\d{8})\",\"$1\",[\"5(?:0|2[23]|3[03]|[67]1|88)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)\"],0,1],[\"(\\\\d{4})(\\\\d{4,5})\",\"$1 $2\",[\"180\",\"1800\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"140\"],0,1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"11|2[02]|33|4[04]|79[1-7]|80[2-46]\",\"11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])\",\"11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807\",\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]\",\"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\\\d|7(?:1(?:[013-8]\\\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\\\d|5[0-367])|70[13-7]))[2-7]\"],\"0$1\",1],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"[6-9]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{2,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:6|8[06])\",\"1(?:6|8[06]0)\"],0,1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"18\"],0,1]],\"0\"],IO:[\"246\",\"00\",\"3\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"3\"]]]],IQ:[\"964\",\"00\",\"(?:1|7\\\\d\\\\d)\\\\d{7}|[2-6]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],IR:[\"98\",\"00\",\"[1-9]\\\\d{9}|(?:[1-8]\\\\d\\\\d|9)\\\\d{3,4}\",[4,5,6,7,10],[[\"(\\\\d{4,5})\",\"$1\",[\"96\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,5})\",\"$1 $2\",[\"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-8]\"],\"0$1\"]],\"0\"],IS:[\"354\",\"00|1(?:0(?:01|[12]0)|100)\",\"(?:38\\\\d|[4-9])\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,0,\"00\"],IT:[\"39\",\"00\",\"0\\\\d{5,10}|1\\\\d{8,10}|3(?:[0-8]\\\\d{7,10}|9\\\\d{7,8})|(?:43|55|70)\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?\",[6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"0[26]\"]],[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"0[13-57-9][0159]|8(?:03|4[17]|9[2-5])\",\"0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))\"]],[\"(\\\\d{4})(\\\\d{2,6})\",\"$1 $2\",[\"0(?:[13-579][2-46-8]|8[236-8])\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"894\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[26]|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1(?:44|[679])|[378]|43\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[13-57-9][0159]|14\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{5})\",\"$1 $2 $3\",[\"0[26]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,[[\"0669[0-79]\\\\d{1,6}|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}\"],[\"3[2-9]\\\\d{7,8}|(?:31|43)\\\\d{8}\",[9,10]],[\"80(?:0\\\\d{3}|3)\\\\d{3}\",[6,9]],[\"(?:0878\\\\d{3}|89(?:2\\\\d|3[04]|4(?:[0-4]|[5-9]\\\\d\\\\d)|5[0-4]))\\\\d\\\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\\\d{6}\",[6,8,9,10]],[\"1(?:78\\\\d|99)\\\\d{6}\",[9,10]],0,0,0,[\"55\\\\d{8}\",[10]],[\"84(?:[08]\\\\d{3}|[17])\\\\d{3}\",[6,9]]]],JE:[\"44\",\"00\",\"1534\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([0-24-8]\\\\d{5})$|0\",\"1534$1\",0,0,[[\"1534[0-24-8]\\\\d{5}\"],[\"7(?:(?:(?:50|82)9|937)\\\\d|7(?:00[378]|97\\\\d))\\\\d{5}\"],[\"80(?:07(?:35|81)|8901)\\\\d{4}\"],[\"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}\"],[\"701511\\\\d{4}\"],0,[\"(?:3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\\\d{4})\\\\d{4}\"],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\"],[\"56\\\\d{8}\"]]],JM:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|658|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"658|876\"],JO:[\"962\",\"00\",\"(?:(?:[2689]|7\\\\d)\\\\d|32|53)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2356]|87\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"70\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],JP:[\"81\",\"010\",\"00[1-9]\\\\d{6,14}|[257-9]\\\\d{9}|(?:00|[1-9]\\\\d\\\\d)\\\\d{6}\",[8,9,10,11,12,13,14,15,16,17],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"(?:12|57|99)0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"60\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]|4(?:2[09]|7[01])\",\"[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3\",[\"[14]|[289][2-9]|5[3-9]|7[2-4679]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"800\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[257-9]\"],\"0$1\"]],\"0\",0,\"(000[259]\\\\d{6})$|(?:(?:003768)0?)|0\",\"$1\"],KE:[\"254\",\"000\",\"(?:[17]\\\\d\\\\d|900)\\\\d{6}|(?:2|80)0\\\\d{6,7}|[4-6]\\\\d{6,8}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"[24-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[17]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],KG:[\"996\",\"00\",\"8\\\\d{9}|[235-9]\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3(?:1[346]|[24-79])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235-79]|88\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{2,3})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],KH:[\"855\",\"00[14-9]\",\"1\\\\d{9}|[1-9]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],KI:[\"686\",\"00\",\"(?:[37]\\\\d|6[0-79])\\\\d{6}|(?:[2-48]\\\\d|50)\\\\d{3}\",[5,8],0,\"0\"],KM:[\"269\",\"00\",\"[3478]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[3478]\"]]]],KN:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"869$1\",0,\"869\"],KP:[\"850\",\"00|99\",\"85\\\\d{6}|(?:19\\\\d|[2-7])\\\\d{7}\",[8,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"]],\"0\"],KR:[\"82\",\"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))\",\"00[1-9]\\\\d{8,11}|(?:[12]|5\\\\d{3})\\\\d{7}|[13-6]\\\\d{9}|(?:[1-6]\\\\d|80)\\\\d{7}|[3-6]\\\\d{4,5}|(?:00|7)0\\\\d{8}\",[5,6,8,9,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1-$2\",[\"(?:3[1-3]|[46][1-4]|5[1-5])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"1\"]],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"[1346]|5[1-5]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1-$2-$3\",[\"5\"],\"0$1\"]],\"0\",0,\"0(8(?:[1-46-8]|5\\\\d\\\\d))?\"],KW:[\"965\",\"00\",\"18\\\\d{5}|(?:[2569]\\\\d|41)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[169]|2(?:[235]|4[1-35-9])|52\"]],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[245]\"]]]],KY:[\"1\",\"011\",\"(?:345|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"345$1\",0,\"345\"],KZ:[\"7\",\"810\",\"(?:33622|8\\\\d{8})\\\\d{5}|[78]\\\\d{9}\",[10,14],0,\"8\",0,0,0,0,\"33|7\",0,\"8~10\"],LA:[\"856\",\"00\",\"[23]\\\\d{9}|3\\\\d{8}|(?:[235-8]\\\\d|41)\\\\d{6}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2[13]|3[14]|[4-8]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"30[0135-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\"],LB:[\"961\",\"00\",\"[27-9]\\\\d{7}|[13-9]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27-9]\"]]],\"0\"],LC:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|758|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-8]\\\\d{6})$|1\",\"758$1\",0,\"758\"],LI:[\"423\",\"00\",\"[68]\\\\d{8}|(?:[2378]\\\\d|90)\\\\d{5}\",[7,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2379]|8(?:0[09]|7)\",\"[2379]|8(?:0(?:02|9)|7)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"69\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]],\"0\",0,\"(1001)|0\"],LK:[\"94\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[1-689]\"],\"0$1\"]],\"0\"],LR:[\"231\",\"00\",\"(?:[245]\\\\d|33|77|88)\\\\d{7}|(?:2\\\\d|[4-6])\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4[67]|[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-578]\"],\"0$1\"]],\"0\"],LS:[\"266\",\"00\",\"(?:[256]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2568]\"]]]],LT:[\"370\",\"00\",\"(?:[3469]\\\\d|52|[78]0)\\\\d{6}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"52[0-7]\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0 $1\",1],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"37|4(?:[15]|6[1-8])\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[3-6]\"],\"(0-$1)\",1]],\"0\",0,\"[08]\"],LU:[\"352\",\"00\",\"35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}\",[4,5,6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"20[2-689]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"80[01]|90[015]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"20\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4 $5\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})\",\"$1 $2 $3 $4\",[\"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]\"]]],0,0,\"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)\"],LV:[\"371\",\"00\",\"(?:[268]\\\\d|90)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[269]|8[01]\"]]]],LY:[\"218\",\"00\",\"[2-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"[2-9]\"],\"0$1\"]],\"0\"],MA:[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5[45]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1-$2\",[\"5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"8\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1-$2\",[\"[5-7]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"5(?:2(?:[0-25-79]\\\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\\\d)\\\\d{5}\"],[\"(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:[0167]\\\\d|2[0-4]|5[01]|8[0-3]))\\\\d{6}\"],[\"80[0-7]\\\\d{6}\"],[\"89\\\\d{7}\"],0,0,0,0,[\"(?:592(?:4[0-2]|93)|80[89]\\\\d\\\\d)\\\\d{4}\"]]],MC:[\"377\",\"00\",\"(?:[3489]|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[389]\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"6\"],\"0$1\"]],\"0\"],MD:[\"373\",\"00\",\"(?:[235-7]\\\\d|[89]0)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"22|3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[25-7]\"],\"0$1\"]],\"0\"],ME:[\"382\",\"00\",\"(?:20|[3-79]\\\\d)\\\\d{6}|80\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"0$1\"]],\"0\"],MF:[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],MG:[\"261\",\"00\",\"[23]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\",0,\"([24-9]\\\\d{6})$|0\",\"20$1\"],MH:[\"692\",\"011\",\"329\\\\d{4}|(?:[256]\\\\d|45)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-6]\"]]],\"1\"],MK:[\"389\",\"00\",\"[2-578]\\\\d{7}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2|34[47]|4(?:[37]7|5[47]|64)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[347]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[58]\"],\"0$1\"]],\"0\"],ML:[\"223\",\"00\",\"[24-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-9]\"]]]],MM:[\"95\",\"00\",\"1\\\\d{5,7}|95\\\\d{6}|(?:[4-7]|9[0-46-9])\\\\d{6,8}|(?:2|8\\\\d)\\\\d{5,8}\",[6,7,8,9,10],[[\"(\\\\d)(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"16|2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[4-7]|8[1-35]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4,6})\",\"$1 $2 $3\",[\"9(?:2[0-4]|[35-9]|4[137-9])\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"92\"],\"0$1\"],[\"(\\\\d)(\\\\d{5})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],MN:[\"976\",\"001\",\"[12]\\\\d{7,9}|[5-9]\\\\d{7}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[12]1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[12]2[1-3]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])\",\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"[12]\"],\"0$1\"]],\"0\"],MO:[\"853\",\"00\",\"0800\\\\d{3}|(?:28|[68]\\\\d)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[268]\"]]]],MP:[\"1\",\"011\",\"[58]\\\\d{9}|(?:67|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"670$1\",0,\"670\"],MQ:[\"596\",\"00\",\"596\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],MR:[\"222\",\"00\",\"(?:[2-4]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-48]\"]]]],MS:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|664|900)\\\\d{7}\",[10],0,\"1\",0,\"([34]\\\\d{6})$|1\",\"664$1\",0,\"664\"],MT:[\"356\",\"00\",\"3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2357-9]\"]]]],MU:[\"230\",\"0(?:0|[24-7]0|3[03])\",\"(?:[57]|8\\\\d\\\\d)\\\\d{7}|[2-468]\\\\d{6}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-46]|8[013]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[57]\"]],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"8\"]]],0,0,0,0,0,0,0,\"020\"],MV:[\"960\",\"0(?:0|19)\",\"(?:800|9[0-57-9]\\\\d)\\\\d{7}|[34679]\\\\d{6}\",[7,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[34679]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]],0,0,0,0,0,0,0,\"00\"],MW:[\"265\",\"00\",\"(?:[1289]\\\\d|31|77)\\\\d{7}|1\\\\d{6}\",[7,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[137-9]\"],\"0$1\"]],\"0\"],MX:[\"52\",\"0[09]\",\"[2-9]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"33|5[56]|81\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-9]\"]]],0,0,0,0,0,0,0,\"00\"],MY:[\"60\",\"00\",\"1\\\\d{8,9}|(?:3\\\\d|[4-9])\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"[4-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1-$2 $3\",[\"1(?:[02469]|[378][1-9]|53)|8\",\"1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"3\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3-$4\",[\"1(?:[367]|80)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"15\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"1\"],\"0$1\"]],\"0\"],MZ:[\"258\",\"00\",\"(?:2|8\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2|8[2-79]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],NA:[\"264\",\"00\",\"[68]\\\\d{7,8}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"87\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],NC:[\"687\",\"00\",\"(?:050|[2-57-9]\\\\d\\\\d)\\\\d{3}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1.$2.$3\",[\"[02-57-9]\"]]]],NE:[\"227\",\"00\",\"[027-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"08\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[089]|2[013]|7[0467]\"]]]],NF:[\"672\",\"00\",\"[13]\\\\d{5}\",[6],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"1[0-3]\"]],[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"[13]\"]]],0,0,\"([0-258]\\\\d{4})$\",\"3$1\"],NG:[\"234\",\"009\",\"2[0-24-9]\\\\d{8}|[78]\\\\d{10,13}|[7-9]\\\\d{9}|[1-9]\\\\d{7}|[124-7]\\\\d{6}\",[7,8,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"78\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]|9(?:0[3-9]|[1-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-6]|7(?:0[0-689]|[1-79])|8[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"20[129]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})(\\\\d{5,6})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"]],\"0\"],NI:[\"505\",\"00\",\"(?:1800|[25-8]\\\\d{3})\\\\d{4}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[125-8]\"]]]],NL:[\"31\",\"00\",\"(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|8\\\\d{6,9}|9\\\\d{6,10}|1\\\\d{4,5}\",[5,6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{4,7})\",\"$1 $2\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"66\"],\"0$1\"],[\"(\\\\d)(\\\\d{8})\",\"$1 $2\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[16-8]|2[259]|3[124]|4[17-9]|5[124679]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-578]|91\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],NO:[\"47\",\"00\",\"(?:0|[2-9]\\\\d{3})\\\\d{4}\",[5,8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]\"]]],0,0,0,0,0,\"[02-689]|7[0-8]\"],NP:[\"977\",\"00\",\"(?:1\\\\d|9)\\\\d{9}|[1-9]\\\\d{7}\",[8,10,11],[[\"(\\\\d)(\\\\d{7})\",\"$1-$2\",[\"1[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1-$2\",[\"1[01]|[2-8]|9(?:[1-59]|[67][2-6])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"9\"]]],\"0\"],NR:[\"674\",\"00\",\"(?:444|(?:55|8\\\\d)\\\\d|666)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-68]\"]]]],NU:[\"683\",\"00\",\"(?:[4-7]|888\\\\d)\\\\d{3}\",[4,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"8\"]]]],NZ:[\"64\",\"0(?:0|161)\",\"[1289]\\\\d{9}|50\\\\d{5}(?:\\\\d{2,3})?|[27-9]\\\\d{7,8}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|8\\\\d{4,6}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,8})\",\"$1 $2\",[\"8[1-79]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"50[036-8]|8|90\",\"50(?:[0367]|88)|8|90\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"24|[346]|7[2-57-9]|9[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:10|74)|[589]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1|2[028]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,5})\",\"$1 $2 $3\",[\"2(?:[169]|7[0-35-9])|7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"00\"],OM:[\"968\",\"00\",\"(?:1505|[279]\\\\d{3}|500)\\\\d{4}|800\\\\d{5,6}\",[7,8,9],[[\"(\\\\d{3})(\\\\d{4,6})\",\"$1 $2\",[\"[58]\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[179]\"]]]],PA:[\"507\",\"00\",\"(?:00800|8\\\\d{3})\\\\d{6}|[68]\\\\d{7}|[1-57-9]\\\\d{6}\",[7,8,10,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[1-57-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[68]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]]],PE:[\"51\",\"00|19(?:1[124]|77|90)00\",\"(?:[14-8]|9\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[4-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"]]],\"0\",0,0,0,0,0,0,\"00\",\" Anexo \"],PF:[\"689\",\"00\",\"4\\\\d{5}(?:\\\\d{2})?|8\\\\d{7,8}\",[6,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4|8[7-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],PG:[\"675\",\"00|140[1-3]\",\"(?:180|[78]\\\\d{3})\\\\d{4}|(?:[2-589]\\\\d|64)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"18|[2-69]|85\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[78]\"]]],0,0,0,0,0,0,0,\"00\"],PH:[\"63\",\"00\",\"(?:[2-7]|9\\\\d)\\\\d{8}|2\\\\d{5}|(?:1800|8)\\\\d{7,9}\",[6,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"2\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2\",\"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"346|4(?:27|9[35])|883\",\"3469|4(?:279|9(?:30|56))|8834\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|8[2-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{4})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"1\"]]],\"0\"],PK:[\"92\",\"00\",\"122\\\\d{6}|[24-8]\\\\d{10,11}|9(?:[013-9]\\\\d{8,10}|2(?:[01]\\\\d\\\\d|2(?:[06-8]\\\\d|1[01]))\\\\d{7})|(?:[2-8]\\\\d{3}|92(?:[0-7]\\\\d|8[1-9]))\\\\d{6}|[24-9]\\\\d{8}|[89]\\\\d{7}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,7})\",\"$1 $2 $3\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{6,7})\",\"$1 $2\",[\"2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])\",\"9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{7,8})\",\"$1 $2\",[\"(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"58\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[24-9]\"],\"(0$1)\"]],\"0\"],PL:[\"48\",\"00\",\"(?:6|8\\\\d\\\\d)\\\\d{7}|[1-9]\\\\d{6}(?:\\\\d{2})?|[26]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{5})\",\"$1\",[\"19\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"11|20|64\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1\",\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"64\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[2-8]|[2-7]|8[1-79]|9[145]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"8\"]]]],PM:[\"508\",\"00\",\"[45]\\\\d{5}|(?:708|80\\\\d)\\\\d{6}\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[45]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],PR:[\"1\",\"011\",\"(?:[589]\\\\d\\\\d|787)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"787|939\"],PS:[\"970\",\"00\",\"[2489]2\\\\d{6}|(?:1\\\\d|5)\\\\d{8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2489]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],PT:[\"351\",\"00\",\"1693\\\\d{5}|(?:[26-9]\\\\d|30)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2[12]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"16|[236-9]\"]]]],PW:[\"680\",\"01[12]\",\"(?:[24-8]\\\\d\\\\d|345|900)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],PY:[\"595\",\"00\",\"59\\\\d{4,6}|9\\\\d{5,10}|(?:[2-46-8]\\\\d|5[0-8])\\\\d{4,7}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"[2-9]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{4,5})\",\"$1 $2\",[\"2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"87\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"9(?:[5-79]|8[1-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"]]],\"0\"],QA:[\"974\",\"00\",\"800\\\\d{4}|(?:2|800)\\\\d{6}|(?:0080|[3-7])\\\\d{7}\",[7,8,9,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"2[16]|8\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[3-7]\"]]]],RE:[\"262\",\"00\",\"(?:26|[689]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2689]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"26(?:2\\\\d\\\\d|3(?:0\\\\d|1[0-6]))\\\\d{4}\"],[\"69(?:2\\\\d\\\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\\\d{4}\"],[\"80\\\\d{7}\"],[\"89[1-37-9]\\\\d{6}\"],0,0,0,0,[\"9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\\\d{4}\"],[\"8(?:1[019]|2[0156]|84|90)\\\\d{6}\"]]],RO:[\"40\",\"00\",\"(?:[236-8]\\\\d|90)\\\\d{7}|[23]\\\\d{5}\",[6,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"2[3-6]\",\"2[3-6]\\\\d9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"219|31\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[23]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[236-9]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\" int \"],RS:[\"381\",\"00\",\"38[02-9]\\\\d{6,9}|6\\\\d{7,9}|90\\\\d{4,8}|38\\\\d{5,6}|(?:7\\\\d\\\\d|800)\\\\d{3,9}|(?:[12]\\\\d|3[0-79])\\\\d{5,10}\",[6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3,9})\",\"$1 $2\",[\"(?:2[389]|39)0|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5,10})\",\"$1 $2\",[\"[1-36]\"],\"0$1\"]],\"0\"],RU:[\"7\",\"810\",\"8\\\\d{13}|[347-9]\\\\d{9}\",[10,14],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-8]|2[1-9])\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2\"],\"8 ($1)\",1],[\"(\\\\d{5})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-68]|2[1-9])\",\"7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))\",\"7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[349]|8(?:[02-7]|1[1-8])\"],\"8 ($1)\",1],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"8\"],\"8 ($1)\"]],\"8\",0,0,0,0,\"3[04-689]|[489]\",0,\"8~10\"],RW:[\"250\",\"00\",\"(?:06|[27]\\\\d\\\\d|[89]00)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"]],\"0\"],SA:[\"966\",\"00\",\"92\\\\d{7}|(?:[15]|8\\\\d)\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\"],SB:[\"677\",\"0[01]\",\"[6-9]\\\\d{6}|[1-6]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])\"]]]],SC:[\"248\",\"010|0[0-2]\",\"(?:[2489]\\\\d|64)\\\\d{5}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[246]|9[57]\"]]],0,0,0,0,0,0,0,\"00\"],SD:[\"249\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],SE:[\"46\",\"00\",\"(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"20\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"9(?:00|39|44|9)\"],\"0$1\",0,\"$1 $2\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3\",[\"[12][136]|3[356]|4[0246]|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{3})\",\"$1-$2 $3\",[\"9(?:00|39|44)\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"10|7\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1-$2 $3 $4\",[\"9\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4 $5\",[\"[26]\"],\"0$1\",0,\"$1 $2 $3 $4 $5\"]],\"0\"],SG:[\"65\",\"0[0-3]\\\\d\",\"(?:(?:1\\\\d|8)\\\\d\\\\d|7000)\\\\d{7}|[3689]\\\\d{7}\",[8,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[369]|8(?:0[1-9]|[1-9])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],SH:[\"290\",\"00\",\"(?:[256]\\\\d|8)\\\\d{3}\",[4,5],0,0,0,0,0,0,\"[256]\"],SI:[\"386\",\"00|10(?:22|66|88|99)\",\"[1-7]\\\\d{7}|8\\\\d{4,7}|90\\\\d{4,6}\",[5,6,7,8],[[\"(\\\\d{2})(\\\\d{3,6})\",\"$1 $2\",[\"8[09]|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"59|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37][01]|4[0139]|51|6\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-57]\"],\"(0$1)\"]],\"0\",0,0,0,0,0,0,\"00\"],SJ:[\"47\",\"00\",\"0\\\\d{4}|(?:[489]\\\\d|79)\\\\d{6}\",[5,8],0,0,0,0,0,0,\"79\"],SK:[\"421\",\"00\",\"[2-689]\\\\d{8}|[2-59]\\\\d{6}|[2-5]\\\\d{5}\",[6,7,9],[[\"(\\\\d)(\\\\d{2})(\\\\d{3,4})\",\"$1 $2 $3\",[\"21\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-5][1-8]1\",\"[3-5][1-8]1[67]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[689]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"[3-5]\"],\"0$1\"]],\"0\"],SL:[\"232\",\"00\",\"(?:[237-9]\\\\d|66)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[236-9]\"],\"(0$1)\"]],\"0\"],SM:[\"378\",\"00\",\"(?:0549|[5-7]\\\\d)\\\\d{6}\",[8,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-7]\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"0\"]]],0,0,\"([89]\\\\d{5})$\",\"0549$1\"],SN:[\"221\",\"00\",\"(?:[378]\\\\d|93)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[379]\"]]]],SO:[\"252\",\"00\",\"[346-9]\\\\d{8}|[12679]\\\\d{7}|[1-5]\\\\d{6}|[1348]\\\\d{5}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"8[125]\"]],[\"(\\\\d{6})\",\"$1\",[\"[134]\"]],[\"(\\\\d)(\\\\d{6})\",\"$1 $2\",[\"[15]|2[0-79]|3[0-46-8]|4[0-7]\"]],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"(?:2|90)4|[67]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[348]|64|79|90\"]],[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"1|28|6[0-35-9]|77|9[2-9]\"]]],\"0\"],SR:[\"597\",\"00\",\"(?:[2-5]|68|[78]\\\\d)\\\\d{5}\",[6,7],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"56\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1-$2\",[\"[2-5]\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[6-8]\"]]]],SS:[\"211\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],ST:[\"239\",\"00\",\"(?:22|9\\\\d)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[29]\"]]]],SV:[\"503\",\"00\",\"[267]\\\\d{7}|(?:80\\\\d|900)\\\\d{4}(?:\\\\d{4})?\",[7,8,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[89]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[267]\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]]],SX:[\"1\",\"011\",\"7215\\\\d{6}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"(5\\\\d{6})$|1\",\"721$1\",0,\"721\"],SY:[\"963\",\"00\",\"[1-39]\\\\d{8}|[1-5]\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-5]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\",1]],\"0\"],SZ:[\"268\",\"00\",\"0800\\\\d{4}|(?:[237]\\\\d|900)\\\\d{6}\",[8,9],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[0237]\"]],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"9\"]]]],TA:[\"290\",\"00\",\"8\\\\d{3}\",[4],0,0,0,0,0,0,\"8\"],TC:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|649|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-479]\\\\d{6})$|1\",\"649$1\",0,\"649\"],TD:[\"235\",\"00|16\",\"(?:22|[689]\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[26-9]\"]]],0,0,0,0,0,0,0,\"00\"],TG:[\"228\",\"00\",\"[279]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[279]\"]]]],TH:[\"66\",\"00[1-9]\",\"(?:001800|[2-57]|[689]\\\\d)\\\\d{7}|1\\\\d{7,9}\",[8,9,10,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[13-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],TJ:[\"992\",\"810\",\"[0-57-9]\\\\d{8}\",[9],[[\"(\\\\d{6})(\\\\d)(\\\\d{2})\",\"$1 $2 $3\",[\"331\",\"3317\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"44[02-479]|[34]7\"]],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[1245]|3[12])\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[0-57-9]\"]]],0,0,0,0,0,0,0,\"8~10\"],TK:[\"690\",\"00\",\"[2-47]\\\\d{3,6}\",[4,5,6,7]],TL:[\"670\",\"00\",\"7\\\\d{7}|(?:[2-47]\\\\d|[89]0)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-489]|70\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"7\"]]]],TM:[\"993\",\"810\",\"(?:[1-6]\\\\d|71)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"12\"],\"(8 $1)\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-5]\"],\"(8 $1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[67]\"],\"8 $1\"]],\"8\",0,0,0,0,0,0,\"8~10\"],TN:[\"216\",\"00\",\"[2-57-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-57-9]\"]]]],TO:[\"676\",\"00\",\"(?:0800|(?:[5-8]\\\\d\\\\d|999)\\\\d)\\\\d{3}|[2-8]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1-$2\",[\"[2-4]|50|6[09]|7[0-24-69]|8[05]\"]],[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]]]],TR:[\"90\",\"00\",\"4\\\\d{6}|8\\\\d{11,12}|(?:[2-58]\\\\d\\\\d|900)\\\\d{7}\",[7,10,12,13],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"512|8[01589]|90\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5(?:[0-59]|61)\",\"5(?:[0-59]|61[06])\",\"5(?:[0-59]|61[06]1)\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24][1-8]|3[1-9]\"],\"(0$1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{6,7})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1]],\"0\"],TT:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-46-8]\\\\d{6})$|1\",\"868$1\",0,\"868\"],TV:[\"688\",\"00\",\"(?:2|7\\\\d\\\\d|90)\\\\d{4}\",[5,6,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],TW:[\"886\",\"0(?:0[25-79]|19)\",\"[2-689]\\\\d{8}|7\\\\d{9,10}|[2-8]\\\\d{7}|2\\\\d{6}\",[7,8,9,10,11],[[\"(\\\\d{2})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"202\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[258]0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]\",\"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\"#\"],TZ:[\"255\",\"00[056]\",\"(?:[25-8]\\\\d|41|90)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[24]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[67]\"],\"0$1\"]],\"0\"],UA:[\"380\",\"00\",\"[89]\\\\d{9}|[3-9]\\\\d{8}\",[9,10],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]\",\"6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])\",\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|89|9[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"0~0\"],UG:[\"256\",\"00[057]\",\"800\\\\d{6}|(?:[29]0|[347]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"202\",\"2024\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[27-9]|4(?:6[45]|[7-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[34]\"],\"0$1\"]],\"0\"],US:[\"1\",\"011\",\"[2-9]\\\\d{9}|3\\\\d{6}\",[10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"310\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"($1) $2-$3\",[\"[2-9]\"],0,1,\"$1-$2-$3\"]],\"1\",0,0,0,0,0,[[\"(?:3052(?:0[0-8]|[1-9]\\\\d)|5056(?:[0-35-9]\\\\d|4[468])|7302[0-4]\\\\d)\\\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\\\d{6}\"],[\"\"],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"],[\"900[2-9]\\\\d{6}\"],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\\\d{6}\"],0,0,0,[\"305209\\\\d{4}\"]]],UY:[\"598\",\"0(?:0|1[3-9]\\\\d)\",\"0004\\\\d{2,9}|[1249]\\\\d{7}|(?:[49]\\\\d|80)\\\\d{5}\",[6,7,8,9,10,11,12,13],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[49]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[124]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3 $4\",[\"0\"]]],\"0\",0,0,0,0,0,0,\"00\",\" int. \"],UZ:[\"998\",\"00\",\"(?:20|33|[5-79]\\\\d|88)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[235-9]\"]]]],VA:[\"39\",\"00\",\"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\",[6,7,8,9,10,11],0,0,0,0,0,0,\"06698\"],VC:[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|784|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"784$1\",0,\"784\"],VE:[\"58\",\"00\",\"[68]00\\\\d{7}|(?:[24]\\\\d|[59]0)\\\\d{8}\",[10],[[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"[24-689]\"],\"0$1\"]],\"0\"],VG:[\"1\",\"011\",\"(?:284|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-578]\\\\d{6})$|1\",\"284$1\",0,\"284\"],VI:[\"1\",\"011\",\"[58]\\\\d{9}|(?:34|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"340$1\",0,\"340\"],VN:[\"84\",\"00\",\"[12]\\\\d{9}|[135-9]\\\\d{8}|[16]\\\\d{7}|[16-8]\\\\d{6}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"1\"],0,1],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[357-9]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[48]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\",1]],\"0\"],VU:[\"678\",\"00\",\"[57-9]\\\\d{6}|(?:[238]\\\\d|48)\\\\d{3}\",[5,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[57-9]\"]]]],WF:[\"681\",\"00\",\"(?:40|72)\\\\d{4}|8\\\\d{5}(?:\\\\d{3})?\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[478]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],WS:[\"685\",\"0\",\"(?:[2-6]|8\\\\d{5})\\\\d{4}|[78]\\\\d{6}|[68]\\\\d{5}\",[5,6,7,10],[[\"(\\\\d{5})\",\"$1\",[\"[2-5]|6[1-9]\"]],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"[68]\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],XK:[\"383\",\"00\",\"2\\\\d{7,8}|3\\\\d{7,11}|(?:4\\\\d\\\\d|[89]00)\\\\d{5}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2|39\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7,10})\",\"$1 $2\",[\"3\"],\"0$1\"]],\"0\"],YE:[\"967\",\"00\",\"(?:1|7\\\\d)\\\\d{7}|[1-7]\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-6]|7(?:[24-6]|8[0-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],YT:[\"262\",\"00\",\"(?:80|9\\\\d)\\\\d{7}|(?:26|63)9\\\\d{6}\",[9],0,\"0\",0,0,0,0,0,[[\"269(?:0[0-467]|15|5[0-4]|6\\\\d|[78]0)\\\\d{4}\"],[\"639(?:0[0-79]|1[019]|[267]\\\\d|3[09]|40|5[05-9]|9[04-79])\\\\d{4}\"],[\"80\\\\d{7}\"],0,0,0,0,0,[\"9(?:(?:39|47)8[01]|769\\\\d)\\\\d{4}\"]]],ZA:[\"27\",\"00\",\"[1-79]\\\\d{8}|8\\\\d{4,9}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"860\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],ZM:[\"260\",\"00\",\"800\\\\d{6}|(?:21|63|[79]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[28]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[79]\"],\"0$1\"]],\"0\"],ZW:[\"263\",\"00\",\"2(?:[0-57-9]\\\\d{6,8}|6[0-24-9]\\\\d{6,7})|[38]\\\\d{9}|[35-8]\\\\d{8}|[3-6]\\\\d{7}|[1-689]\\\\d{6}|[1-3569]\\\\d{5}|[1356]\\\\d{4}\",[5,6,7,8,9,10],[[\"(\\\\d{3})(\\\\d{3,5})\",\"$1 $2\",[\"2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"80\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2\",\"2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)\",\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"29[013-9]|39|54\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,5})\",\"$1 $2\",[\"(?:25|54)8\",\"258|5483\"],\"0$1\"]],\"0\"]},nonGeographic:{800:[\"800\",0,\"(?:00|[1-9]\\\\d)\\\\d{6}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"\\\\d\"]]],0,0,0,0,0,0,[0,0,[\"(?:00|[1-9]\\\\d)\\\\d{6}\"]]],808:[\"808\",0,\"[1-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[1-9]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[\"[1-9]\\\\d{7}\"]]],870:[\"870\",0,\"7\\\\d{11}|[35-7]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[35-7]\"]]],0,0,0,0,0,0,[0,[\"(?:[356]|774[45])\\\\d{8}|7[6-8]\\\\d{7}\"]]],878:[\"878\",0,\"10\\\\d{10}\",[12],[[\"(\\\\d{2})(\\\\d{5})(\\\\d{5})\",\"$1 $2 $3\",[\"1\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"10\\\\d{10}\"]]],881:[\"881\",0,\"6\\\\d{9}|[0-36-9]\\\\d{8}\",[9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"[0-37-9]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{5,6})\",\"$1 $2 $3\",[\"6\"]]],0,0,0,0,0,0,[0,[\"6\\\\d{9}|[0-36-9]\\\\d{8}\"]]],882:[\"882\",0,\"[13]\\\\d{6}(?:\\\\d{2,5})?|[19]\\\\d{7}|(?:[25]\\\\d\\\\d|4)\\\\d{7}(?:\\\\d{2})?\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"16|342\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"49\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"1[36]|9\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"3[23]\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"16\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|23|3(?:[15]|4[57])|4|51\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"34\"]],[\"(\\\\d{2})(\\\\d{4,5})(\\\\d{5})\",\"$1 $2 $3\",[\"[1-35]\"]]],0,0,0,0,0,0,[0,[\"342\\\\d{4}|(?:337|49)\\\\d{6}|(?:3(?:2|47|7\\\\d{3})|50\\\\d{3})\\\\d{7}\",[7,8,9,10,12]],0,0,0,0,0,0,[\"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\\\d{4}|6\\\\d{5,10})|(?:345\\\\d|9[89])\\\\d{6}|(?:10|2(?:3|85\\\\d)|3(?:[15]|[69]\\\\d\\\\d)|4[15-8]|51)\\\\d{8}\"]]],883:[\"883\",0,\"(?:[1-4]\\\\d|51)\\\\d{6,10}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,8})\",\"$1 $2 $3\",[\"[14]|2[24-689]|3[02-689]|51[24-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"510\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"21\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"51[13]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[235]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"(?:2(?:00\\\\d\\\\d|10)|(?:370[1-9]|51\\\\d0)\\\\d)\\\\d{7}|51(?:00\\\\d{5}|[24-9]0\\\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\\\d{5,9}\"]]],888:[\"888\",0,\"\\\\d{11}\",[11],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\"]],0,0,0,0,0,0,[0,0,0,0,0,0,[\"\\\\d{11}\"]]],979:[\"979\",0,\"[1359]\\\\d{8}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1359]\"]]],0,0,0,0,0,0,[0,0,0,[\"[1359]\\\\d{8}\"]]]}}},51834:function(e,t,r){\"use strict\";r.d(t,{R:function(){return V}});var n=r(89803),i=r(31767),s=r(18822),o=function(){var e;function t(e){var r=e.onCountryChange,n=e.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.onCountryChange=r,this.onCallingCodeChange=n}return e=[{key:\"reset\",value:function(e){var t=e.country,r=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits=\"\",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,r)}},{key:\"resetNationalSignificantNumber\",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:\"update\",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];this[n]=e[n]}}},{key:\"initCountryAndCallingCode\",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:\"setCountry\",value:function(e){this.country=e,this.onCountryChange(e)}},{key:\"setCallingCode\",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:\"startInternationalNumber\",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:\"appendDigits\",value:function(e){this.digits+=e}},{key:\"appendNationalSignificantNumberDigits\",value:function(e){this.nationalSignificantNumber+=e}},{key:\"getNationalDigits\",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:\"getDigitsWithoutInternationalPrefix\",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}();function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var l=/x/;function u(e,t){if(t<1)return\"\";for(var r=\"\";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function c(e,t){return\")\"===e[t]&&t++,function(e){for(var t=[],r=0;r<e.length;)\"(\"===e[r]?t.push(r):\")\"===e[r]&&t.pop(),r++;var n=0,i=\"\";t.push(e.length);for(var s=0;s<t.length;s++){var o=t[s];i+=e.slice(n,o),n=o+1}return i}(e.slice(0,t))}var d=r(23419),h=r(43829),f=r(71669);function p(e,t,r){var n,i=r.metadata,s=r.useNationalPrefixFormattingRule,o=r.getSeparatorAfterNationalPrefix,a=(0,f.Z)(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:s,metadata:i});if(!s&&(e.nationalPrefix?a=e.nationalPrefix+o(t)+a:e.complexPrefixBeforeNationalSignificantNumber&&(a=e.complexPrefixBeforeNationalSignificantNumber+\" \"+a)),n=a,(0,h.ZP)(n)===e.getNationalDigits())return a}var g=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t)}return e=[{key:\"parse\",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw Error(\"Non-finalized contexts left when pattern parse ended\");var t=this.context[0],r=t.branches,n=t.instructions;if(r)return{op:\"|\",args:r.concat([b(n)])};if(0===n.length)throw Error(\"Pattern is required\");return 1===n.length?n[0]:n}},{key:\"startContext\",value:function(e){this.context.push(e)}},{key:\"endContext\",value:function(){this.context.pop()}},{key:\"getContext\",value:function(){return this.context[this.context.length-1]}},{key:\"parsePattern\",value:function(e){if(!e)throw Error(\"Pattern is required\");var t=e.match(y);if(!t){if(m.test(e))throw Error(\"Illegal characters found in a pattern: \".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(\"\"));return}var r=t[1],n=e.slice(0,t.index),i=e.slice(t.index+r.length);switch(r){case\"(?:\":n&&this.parsePattern(n),this.startContext({or:!0,instructions:[],branches:[]});break;case\")\":if(!this.getContext().or)throw Error('\")\" operator must be preceded by \"(?:\" operator');if(n&&this.parsePattern(n),0===this.getContext().instructions.length)throw Error('No instructions found after \"|\" operator in an \"or\" group');var s=this.getContext().branches;s.push(b(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:\"|\",args:s});break;case\"|\":if(!this.getContext().or)throw Error('\"|\" operator can only be used inside \"or\" groups');if(n&&this.parsePattern(n),!this.getContext().branches){if(1===this.context.length)this.getContext().branches=[];else throw Error('\"branches\" not found in an \"or\" group context')}this.getContext().branches.push(b(this.getContext().instructions)),this.getContext().instructions=[];break;case\"[\":n&&this.parsePattern(n),this.startContext({oneOfSet:!0});break;case\"]\":if(!this.getContext().oneOfSet)throw Error('\"]\" operator must be preceded by \"[\" operator');this.endContext(),this.getContext().instructions.push({op:\"[]\",args:function(e){for(var t=[],r=0;r<e.length;){if(\"-\"===e[r]){if(0===r||r===e.length-1)throw Error(\"Couldn't parse a one-of set pattern: \".concat(e));for(var n=e[r-1].charCodeAt(0)+1,i=e[r+1].charCodeAt(0)-1,s=n;s<=i;)t.push(String.fromCharCode(s)),s++}else t.push(e[r]);r++}return t}(n)});break;default:throw Error(\"Unknown operator: \".concat(r))}i&&this.parsePattern(i)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),m=/[\\(\\)\\[\\]\\?\\:\\|]/,y=RegExp(\"(\\\\||\\\\(\\\\?\\\\:|\\\\)|\\\\[|\\\\])\");function b(e){return 1===e.length?e[0]:e}function v(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return w(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,void 0)}}(e))||t&&e&&\"number\"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.matchTree=new g().parse(e)}return e=[{key:\"match\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.allowOverflow;if(!e)throw Error(\"String is required\");var n=function e(t,r,n){if(\"string\"==typeof r){var i=t.join(\"\");return 0===r.indexOf(i)?t.length===r.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===i.indexOf(r)?n&&t.length>r.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,r.length)}:void 0}if(Array.isArray(r)){for(var s=t.slice(),o=0;o<r.length;){var a=e(s,r[o],n&&o===r.length-1);if(!a)return;if(a.overflow)return a;if(a.match){if(0===(s=s.slice(a.matchedChars.length)).length){if(o===r.length-1)return{match:!0,matchedChars:t};return{partialMatch:!0}}}else{if(a.partialMatch)return{partialMatch:!0};throw Error(\"Unsupported match result:\\n\".concat(JSON.stringify(a,null,2)))}o++}return n?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-s.length)}}switch(r.op){case\"|\":for(var l,u,c=v(r.args);!(u=c()).done;){var d=e(t,u.value,n);if(d){if(d.overflow)return d;if(d.match)return{match:!0,matchedChars:d.matchedChars};if(d.partialMatch)l=!0;else throw Error(\"Unsupported match result:\\n\".concat(JSON.stringify(d,null,2)))}}if(l)return{partialMatch:!0};return;case\"[]\":for(var h,f=v(r.args);!(h=f()).done;){var p=h.value;if(t[0]===p){if(1===t.length)return{match:!0,matchedChars:t};if(n)return{overflow:!0};return{match:!0,matchedChars:[p]}}}return;default:throw Error(\"Unsupported instruction tree: \".concat(r))}}(e.split(\"\"),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||r)return n}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),E=r(13399),A=r(90263);function x(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return k(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,void 0)}}(e))||t&&e&&\"number\"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var S=u(\"9\",15),$=/[- ]/,C=RegExp(\"[\"+E.uv+\"]*\\\\$1[\"+E.uv+\"]*(\\\\$\\\\d[\"+E.uv+\"]*)*$\"),P=function(){var e;function t(e){e.state;var r=e.metadata;!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.metadata=r,this.resetFormat()}return e=[{key:\"resetFormat\",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:\"reset\",value:function(e,t){this.resetFormat(),e?(this.isNANP=\"1\"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:\"format\",value:function(e,t){var r=this;if(n=t.nationalSignificantNumber,i=this.metadata,\"IS_POSSIBLE\"===(0,d.Z)(n,i))for(var n,i,s,o=x(this.matchingFormats);!(s=o()).done;){var a=s.value,l=function(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,s=r.getSeparatorAfterNationalPrefix;if(new RegExp(\"^(?:\".concat(t.pattern(),\")$\")).test(e.nationalSignificantNumber))return function(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,s=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var o=p(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:s,metadata:n});if(o)return o}return p(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:s,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:s})}(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return r.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return r.getSeparatorAfterNationalPrefix(e)}});if(l)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(l.replace(/\\d/g,\"x\"),t),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(\"x\"),l}return this.formatNationalNumberWithNextDigits(e,t)}},{key:\"formatNationalNumberWithNextDigits\",value:function(e,t){var r=this.chosenFormat,n=this.chooseFormat(t);if(n)return n===r?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:\"narrowDownMatchingFormats\",value:function(e){var t=this,r=e.nationalSignificantNumber,n=e.nationalPrefix,i=e.international,s=r.length-3;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,n)&&t.formatMatches(e,r,s)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:\"formatSuits\",value:function(e,t,r){return!(r&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!r&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:\"formatMatches\",value:function(e,t,r){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;r=Math.min(r,n-1);var i=e.leadingDigitsPatterns()[r];if(t.length<3)try{return void 0!==new _(i).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp(\"^(\".concat(i,\")\")).test(t)}},{key:\"getFormatFormat\",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:\"chooseFormat\",value:function(e){for(var t,r=this,n=x(this.matchingFormats.slice());!(t=n()).done;){var i=function(){var n=t.value;return r.chosenFormat===n?\"break\":C.test(r.getFormatFormat(n,e.international))?r.createTemplateForFormat(n,e)?(r.chosenFormat=n,\"break\"):(r.matchingFormats=r.matchingFormats.filter(function(e){return e!==n}),\"continue\"):\"continue\"}();if(\"break\"===i)break;if(\"continue\"===i)continue}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:\"createTemplateForFormat\",value:function(e,t){if(!(e.pattern().indexOf(\"|\")>=0)){var r=this.getTemplateForFormat(e,t);if(r)return this.setNationalNumberTemplate(r,t),!0}}},{key:\"getSeparatorAfterNationalPrefix\",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&$.test(e.nationalPrefixFormattingRule())?\" \":\"\"}},{key:\"getInternationalPrefixBeforeCountryCallingCode\",value:function(e,t){var r=e.IDDPrefix,n=e.missingPlus;return r?t&&!1===t.spacing?r:r+\" \":n?\"\":\"+\"}},{key:\"getTemplate\",value:function(e){if(this.template){for(var t=-1,r=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):\"\";r<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(\"x\",t+1),r++;return c(this.template,t+1)}}},{key:\"setNationalNumberTemplate\",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\\d\\+]/g,\"x\")+u(\"x\",t.callingCode.length)+\" \"+e:this.template=e}},{key:\"getTemplateForFormat\",value:function(e,t){var r,n=t.nationalSignificantNumber,i=t.international,s=t.nationalPrefix,o=t.complexPrefixBeforeNationalSignificantNumber,a=e.pattern();a=a.replace(/\\[([^\\[\\]])*\\]/g,\"\\\\d\").replace(/\\d(?=[^,}][^,}])/g,\"\\\\d\");var l=S.match(a)[0];if(!(n.length>l.length)){var c=RegExp(\"^\"+a+\"$\"),d=n.replace(/\\d/g,\"9\");c.test(d)&&(l=d);var p=this.getFormatFormat(e,i);if(this.shouldTryNationalPrefixFormattingRule(e,{international:i,nationalPrefix:s})){var g=p.replace(f.i,e.nationalPrefixFormattingRule());if((0,h.ZP)(e.nationalPrefixFormattingRule())===(s||\"\")+(0,h.ZP)(\"$1\")&&(p=g,r=!0,s))for(var m=s.length;m>0;)p=p.replace(/\\d/,\"x\"),m--}var y=l.replace(new RegExp(a),p).replace(/9/g,\"x\");return!r&&(o?y=u(\"x\",o.length)+\" \"+y:s&&(y=u(\"x\",s.length)+this.getSeparatorAfterNationalPrefix(e)+y)),i&&(y=(0,A.Z)(y)),y}}},{key:\"formatNextNationalNumberDigits\",value:function(e){var t=function(e,t,r){for(var n,i=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(r.split(\"\"));!(n=i()).done;){var s=n.value;if(0>e.slice(t+1).search(l))return;t=e.search(l),e=e.replace(l,s)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(!t){this.resetFormat();return}return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],c(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:\"shouldTryNationalPrefixFormattingRule\",value:function(e,t){var r=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&n||!i&&!r)return!0}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),I=r(52586),O=r(3238),N=r(30196),M=r(72924);function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=i){var s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}}(e,t)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var D=RegExp(\"^[\"+E.uv+E.xc+\"]+$\",\"i\"),L=\"(?:[\"+E.xy+\"][\"+E.uv+E.xc+\"]*|[\"+E.uv+E.xc+\"]+)\",j=RegExp(\"[^\"+E.uv+E.xc+\"]+.*$\"),B=/[^\\d\\[\\]]/,F=function(){var e;function t(e){var r=e.defaultCountry,n=e.defaultCallingCode,i=e.metadata,s=e.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=i,this.onNationalSignificantNumberChange=s}return e=[{key:\"input\",value:function(e,t){var r,n,i,s,o,a=R((i=(n=R(\"+\"===(r=function(e){var t,r=e.search(L);if(!(r<0))return\"+\"===(e=e.slice(r))[0]&&(t=!0,e=e.slice(1)),e=e.replace(j,\"\"),t&&(e=\"+\"+e),e}(e)||\"\")[0]?[r.slice(1),!0]:[r],2))[0],s=n[1],D.test(i)||(i=\"\"),[i,s]),2),l=a[0],u=a[1],c=(0,h.ZP)(l);return!u||t.digits||(t.startInternationalNumber(),c||(o=!0)),c&&this.inputDigits(c,t),{digits:c,justLeadingPlus:o}}},{key:\"inputDigits\",value:function(e,t){var r=t.digits,n=r.length<3&&r.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:\"isWaitingForCountryCallingCode\",value:function(e){var t=e.international,r=e.callingCode;return t&&!r}},{key:\"extractCountryCallingCode\",value:function(e){var t=(0,I.Z)(\"+\"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode,n=t.number;if(r)return e.setCallingCode(r),e.update({nationalSignificantNumber:n}),!0}},{key:\"reset\",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&B.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:\"extractNationalSignificantNumber\",value:function(e,t){if(this.hasSelectedNumberingPlan){var r=(0,N.Z)(e,this.metadata),n=r.nationalPrefix,i=r.nationalNumber,s=r.carrierCode;if(i!==e)return this.onExtractedNationalNumber(n,s,i,e,t),!0}}},{key:\"extractAnotherNationalSignificantNumber\",value:function(e,t,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=(0,N.Z)(e,this.metadata),i=n.nationalPrefix,s=n.nationalNumber,o=n.carrierCode;if(s!==t)return this.onExtractedNationalNumber(i,o,s,e,r),!0}}},{key:\"onExtractedNationalNumber\",value:function(e,t,r,n,i){var s,o,a=n.lastIndexOf(r);if(a>=0&&a===n.length-r.length){o=!0;var l=n.slice(0,a);l!==e&&(s=l)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:r,nationalSignificantNumberMatchesInput:o,complexPrefixBeforeNationalSignificantNumber:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:\"reExtractNationalSignificantNumber\",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:\"extractIddPrefix\",value:function(e){var t=e.international,r=e.IDDPrefix,n=e.digits;if(e.nationalSignificantNumber,!t&&!r){var i=(0,M.Z)(n,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(void 0!==i&&i!==n)return e.update({IDDPrefix:n.slice(0,n.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0}}},{key:\"fixMissingPlus\",value:function(e){if(!e.international){var t=(0,O.Z)(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode;if(t.number,r)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:r}),!0}}},{key:\"startInternationalNumber\",value:function(e,t){var r=t.country,n=t.callingCode;e.startInternationalNumber(r,n),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:\"extractCallingCodeAndNationalSignificantNumber\",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}(),U=r(81271),z=r(79092),q=r(84667);function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var G=function(){var e;function t(e,r){!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,t),this.metadata=new i.ZP(r);var n,s=function(e){if(Array.isArray(e))return e}(n=this.getCountryAndCallingCode(e))||function(e,t){var r,n,i=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=i){var s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),2!==s.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}}(n,2)||function(e,t){if(e){if(\"string\"==typeof e)return H(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,2)}}(n,2)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),o=s[0],a=s[1];this.defaultCountry=o,this.defaultCallingCode=a,this.reset()}return e=[{key:\"getCountryAndCallingCode\",value:function(e){var t,r;return e&&((0,q.Z)(e)?(t=e.defaultCountry,r=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,r]}},{key:\"input\",value:function(e){var t=this.parser.input(e,this.state),r=t.digits;if(t.justLeadingPlus)this.formattedOutput=\"+\";else if(r){if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(r,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var n,i=this.state.getNationalDigits();i&&(n=this.formatter.format(i,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:\"reset\",value:function(){var e=this;return this.state=new o({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,r){e.metadata.selectNumberingPlan(r,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new P({state:this.state,metadata:this.metadata}),this.parser=new F({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput=\"\",this}},{key:\"isInternational\",value:function(){return this.state.international}},{key:\"getCallingCode\",value:function(){if(this.isInternational())return this.state.callingCode}},{key:\"getCountryCallingCode\",value:function(){return this.getCallingCode()}},{key:\"getCountry\",value:function(){if(this.state.digits)return this._getCountry()}},{key:\"_getCountry\",value:function(){return this.state.country}},{key:\"determineTheCountryIfNeeded\",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:\"getFullNumber\",value:function(e){var t=this;if(this.isInternational()){var r,n=this.state.callingCode;return r=n?e?\"\".concat(n,\" \").concat(e):n:\"\".concat(this.state.getDigitsWithoutInternationalPrefix()),t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!r})+r}return e}},{key:\"getNonFormattedNationalNumberWithPrefix\",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.complexPrefixBeforeNationalSignificantNumber,n=e.nationalPrefix,i=t,s=r||n;return s&&(i=s+i),i}},{key:\"getNonFormattedNumber\",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:\"getNonFormattedTemplate\",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\\+\\d]/g,\"x\")}},{key:\"isCountryCallingCodeAmbiguous\",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:\"determineTheCountry\",value:function(){this.state.setCountry((0,U.Z)(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:\"getNumberValue\",value:function(){var e=this.state,t=e.digits,r=e.callingCode,n=e.country,i=e.nationalSignificantNumber;if(t){if(this.isInternational())return r?\"+\"+r+i:\"+\"+t;if(n||r)return\"+\"+(n?this.metadata.countryCallingCode():r)+i}}},{key:\"getNumber\",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.carrierCode,n=e.callingCode,o=this._getCountry();if(t&&(o||n)){if(o&&o===this.defaultCountry){var a=new i.ZP(this.metadata.metadata);a.selectNumberingPlan(o);var l=a.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(l);if(u.length>1){var c=(0,z.Z)(t,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});c&&(o=c)}}var d=new s.Z(o||n,t,this.metadata.metadata);return r&&(d.carrierCode=r),d}}},{key:\"isPossible\",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:\"isValid\",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:\"getNationalNumber\",value:function(){return this.state.nationalSignificantNumber}},{key:\"getChars\",value:function(){return(this.state.international?\"+\":\"\")+this.state.digits}},{key:\"getTemplate\",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||\"\"}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),Object.defineProperty(t,\"prototype\",{writable:!1}),t}();function V(e){return G.call(this,e,n.Z)}V.prototype=Object.create(G.prototype,{}),V.prototype.constructor=V},78299:function(e,t,r){\"use strict\";r.d(t,{o:function(){return o}});var n=r(5038),i=r(31767);function s(e){return new i.ZP(e).getCountries()}function o(){return(0,n.Z)(s,arguments)}},24967:function(e,t,r){\"use strict\";r.d(t,{G:function(){return s}});var n=r(5038),i=r(31767);function s(){return(0,n.Z)(i.Gg,arguments)}},26930:function(e,t,r){\"use strict\";r.d(t,{L:function(){return o}});var n=r(5038),i=r(18822);function s(e,t,r){if(t[e])return new i.Z(e,t[e],r)}function o(){return(0,n.Z)(s,arguments)}},75006:function(e,t,r){\"use strict\";r.d(t,{t:function(){return K}});var n=r(5038),i=r(84667);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=r(13399);function l(e){return(l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){if(void 0===e)throw ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function c(e){var t=\"function\"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf(\"[native code]\"))return e;if(\"function\"!=typeof e)throw TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function d(e,t,r){return(d=h()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&f(i,r.prototype),i}).apply(null,arguments)}function h(){if(\"undefined\"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&f(e,t)}(n,e);var t,r=(t=h(),function(){var e,r=p(n);return e=t?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),function(e,t){if(t&&(\"object\"===l(t)||\"function\"==typeof t))return t;if(void 0!==t)throw TypeError(\"Derived constructors may only return object or undefined\");return u(e)}(this,e)});function n(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError(\"Cannot call a class as a function\")}(this,n),Object.setPrototypeOf(u(t=r.call(this,e)),n.prototype),t.name=t.constructor.name,t}return Object.defineProperty(n,\"prototype\",{writable:!1}),n}(c(Error)),m=r(31767),y=function(e){return\"([\".concat(a.xc,\"]{1,\").concat(e,\"})\")};function b(e){var t=\"[ \\xa0\\\\t,]*\",r=\"[:\\\\.．]?[ \\xa0\\\\t,-]*\",n=\"[ \\xa0\\\\t]*\";return\";ext=\"+y(\"20\")+\"|\"+(t+\"(?:e?xt(?:ensi(?:ó?|\\xf3))?n?|ｅ?ｘｔｎ?|доб|anexo)\"+r)+y(\"20\")+\"#?|\"+(t+\"(?:[xｘ#＃~～]|int|ｉｎｔ)\"+r)+y(\"9\")+\"#?|[- ]+\"+y(\"6\")+\"#|\"+(n+\"(?:,{2}|;)\"+r)+y(\"15\")+\"#?|\"+(n+\"(?:,)+\"+r)+y(\"9\")+\"#?\"}var v=\"[\"+a.xc+\"]{\"+a.ex+\"}\",w=\"[\"+a.xy+\"]{0,1}(?:[\"+a.uv+\"]*[\"+a.xc+\"]){3,}[\"+a.uv+a.xc+\"]*\",_=RegExp(\"^[\"+a.xy+\"]{0,1}(?:[\"+a.uv+\"]*[\"+a.xc+\"]){1,2}$\",\"i\"),E=RegExp(\"^\"+v+\"$|^\"+(w+\"(?:\")+b()+\")?$\",\"i\"),A=RegExp(\"(?:\"+b()+\")$\",\"i\"),x=r(43829);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S(e){for(var t,r=\"\",n=function(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if(\"string\"==typeof e)return k(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e.split(\"\"));!(t=n()).done;){var i=t.value;r+=function(e,t,r){if(\"+\"===e){if(t)return;return\"+\"}return(0,x.xh)(e)}(i,r)||\"\"}return r}var $=r(59105),C=r(18822),P=r(69496),I=r(52586),O=r(11264),N=r(81271),M=\"([\"+a.xc+\"]|[\\\\-\\\\.\\\\(\\\\)]?)\",R=RegExp(\"^\\\\+\"+M+\"*[\"+a.xc+\"]\"+M+\"*$\",\"g\"),T=a.xc,D=RegExp(\"^([\"+T+\"]+((\\\\-)*[\"+T+\"])*\\\\.)*[a-zA-Z]+((\\\\-)*[\"+T+\"])*\\\\.?$\",\"g\"),L=\"tel:\",j=\";phone-context=\",B=RegExp(\"[\"+a.xy+a.xc+\"]\"),F=RegExp(\"[^\"+a.xc+\"#]+$\");function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(){var e=function(e){var t,r,n,a,l=function(e){if(Array.isArray(e))return e}(t=Array.prototype.slice.call(e))||function(e,t){var r,n,i=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=i){var s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),4!==s.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}}(t,4)||function(e,t){if(e){if(\"string\"==typeof e)return o(e,4);var r=Object.prototype.toString.call(e).slice(8,-1);if(\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,4)}}(t,4)||function(){throw TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),u=l[0],c=l[1],d=l[2],h=l[3];if(\"string\"==typeof u)r=u;else throw TypeError(\"A text for parsing must be a string.\");if(c&&\"string\"!=typeof c){if((0,i.Z)(c))d?(n=c,a=d):a=c;else throw Error(\"Invalid second argument: \".concat(c))}else h?(n=d,a=h):(n=void 0,a=d),c&&(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({defaultCountry:c},n));return{text:r,options:n,metadata:a}}(arguments),t=e.text,r=e.options,n=e.metadata,l=function(e,t,r){t&&t.defaultCountry&&!(0,m.aS)(t.defaultCountry,r)&&(t=H(H({},t),{},{defaultCountry:void 0}));try{var n;return n=t,function(e,t,r){if(t=t||{},r=new m.ZP(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new g(\"INVALID_COUNTRY\");throw Error(\"Unknown country: \".concat(t.defaultCountry))}var n,i=function(e,t,r){var n=function(e,t){var r=t.extractFormattedPhoneNumber,n=function(e){var t=e.indexOf(j);if(t<0)return null;var r=t+j.length;if(r>=e.length)return\"\";var n=e.indexOf(\";\",r);return n>=0?e.substring(r,n):e.substring(r)}(e);if(!(null===n||0!==n.length&&(R.test(n)||D.test(n))))throw new g(\"NOT_A_NUMBER\");if(null===n)i=r(e)||\"\";else{i=\"\",\"+\"===n.charAt(0)&&(i+=n);var i,s,o=e.indexOf(L);s=o>=0?o+L.length:0;var a=e.indexOf(j);i+=e.substring(s,a)}var l=i.indexOf(\";isub=\");if(l>0&&(i=i.substring(0,l)),\"\"!==i)return i}(e,{extractFormattedPhoneNumber:function(e){return function(e,t,r){if(e){if(e.length>250){if(r)throw new g(\"TOO_LONG\");return}if(!1===t)return e;var n=e.search(B);if(!(n<0))return e.slice(n).replace(F,\"\")}}(e,r,t)}});if(!n)return{};if(!(n.length>=a.ex&&E.test(n)))return _.test(n)?{error:\"TOO_SHORT\"}:{};var i=function(e){var t=e.search(A);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(A),i=1;i<n.length;){if(n[i])return{number:r,ext:n[i]};i++}}(n);return i.ext?i:{number:n}}(e,t.v2,t.extract),s=i.number,o=i.ext,l=i.error;if(!s){if(t.v2){if(\"TOO_SHORT\"===l)throw new g(\"TOO_SHORT\");throw new g(\"NOT_A_NUMBER\")}return{}}var u=function(e,t,r,n){var i,s=(0,I.Z)(S(e),t,r,n.metadata),o=s.countryCallingCodeSource,a=s.countryCallingCode,l=s.number;if(a)n.selectNumberingPlan(a);else{if(!l||!t&&!r)return{};n.selectNumberingPlan(t,r),t&&(i=t),a=r||(0,m.Gg)(t,n.metadata)}if(!l)return{countryCallingCodeSource:o,countryCallingCode:a};var u=(0,O.Z)(S(l),n),c=u.nationalNumber,d=u.carrierCode,h=(0,N.Z)(a,{nationalNumber:c,defaultCountry:t,metadata:n});return h&&(i=h,\"001\"===h||n.country(i)),{country:i,countryCallingCode:a,countryCallingCodeSource:o,nationalNumber:c,carrierCode:d}}(s,t.defaultCountry,t.defaultCallingCode,r),c=u.country,d=u.nationalNumber,h=u.countryCallingCode,f=u.countryCallingCodeSource,p=u.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new g(\"INVALID_COUNTRY\");return{}}if(!d||d.length<a.ex){if(t.v2)throw new g(\"TOO_SHORT\");return{}}if(d.length>a.sJ){if(t.v2)throw new g(\"TOO_LONG\");return{}}if(t.v2){var y=new C.Z(h,d,r.metadata);return c&&(y.country=c),p&&(y.carrierCode=p),o&&(y.ext=o),y.__countryCallingCodeSource=f,y}var b=(t.extended?!!r.hasSelectedNumberingPlan():!!c)&&(0,P.Z)(d,r.nationalNumberPattern());return t.extended?{country:c,countryCallingCode:h,carrierCode:p,valid:b,possible:!!b||!!(!0===t.extended&&r.possibleLengths()&&(0,$.D)(d,r)),phone:d,ext:o}:b?(n={country:c,phone:d},o&&(n.ext=o),n):{}}(e,z(z({},n),{},{v2:!0}),r)}catch(e){if(e instanceof g);else throw e}}(t,r=V(V({},r),{},{extract:!1}),n);return l&&l.isPossible()||!1}function K(){return(0,n.Z)(W,arguments)}},5038:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return i}});var n=r(89803);function i(e,t){var r=Array.prototype.slice.call(t);return r.push(n.Z),e.apply(this,r)}},53989:function(e,t,r){\"use strict\";function n(){let e=new Set,t=[],r=()=>(function(e){if(\"undefined\"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener(\"eip6963:announceProvider\",t),window.dispatchEvent(new CustomEvent(\"eip6963:requestProvider\")),()=>window.removeEventListener(\"eip6963:announceProvider\",t)})(r=>{t.some(({info:e})=>e.uuid===r.info.uuid)||(t=[...t,r],e.forEach(e=>e(t,{added:[r]})))}),n=r();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),n?.(),n=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}r.d(t,{M:function(){return n}})},79512:function(e,t,r){\"use strict\";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(2265),i=[\"light\",\"dark\"],s=\"(prefers-color-scheme: dark)\",o=\"undefined\"==typeof window,a=n.createContext(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(a))?e:l},c=e=>n.useContext(a)?e.children:n.createElement(h,{...e}),d=[\"light\",\"dark\"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:l=!0,storageKey:u=\"theme\",themes:c=d,defaultTheme:h=o?\"system\":\"light\",attribute:y=\"data-theme\",value:b,children:v,nonce:w}=e,[_,E]=n.useState(()=>p(u,h)),[A,x]=n.useState(()=>p(u)),k=b?Object.values(b):c,S=n.useCallback(e=>{let t=e;if(!t)return;\"system\"===e&&o&&(t=m());let n=b?b[t]:t,s=r?g():null,a=document.documentElement;if(\"class\"===y?(a.classList.remove(...k),n&&a.classList.add(n)):n?a.setAttribute(y,n):a.removeAttribute(y),l){let e=i.includes(h)?h:null,r=i.includes(t)?t:e;a.style.colorScheme=r}null==s||s()},[]),$=n.useCallback(e=>{let t=\"function\"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),C=n.useCallback(e=>{x(m(e)),\"system\"===_&&o&&!t&&S(\"system\")},[_,t]);n.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),n.useEffect(()=>{let e=e=>{e.key===u&&$(e.newValue||h)};return window.addEventListener(\"storage\",e),()=>window.removeEventListener(\"storage\",e)},[$]),n.useEffect(()=>{S(null!=t?t:_)},[t,_]);let P=n.useMemo(()=>({theme:_,setTheme:$,forcedTheme:t,resolvedTheme:\"system\"===_?A:_,themes:o?[...c,\"system\"]:c,systemTheme:o?A:void 0}),[_,$,t,A,o,c]);return n.createElement(a.Provider,{value:P},n.createElement(f,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:o,enableColorScheme:l,storageKey:u,themes:c,defaultTheme:h,attribute:y,value:b,children:v,attrs:k,nonce:w}),v)},f=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:o,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:c,attrs:d,nonce:h}=e,f=\"system\"===u,p=\"class\"===o?\"var d=document.documentElement,c=d.classList;\".concat(\"c.remove(\".concat(d.map(e=>\"'\".concat(e,\"'\")).join(\",\"),\")\"),\";\"):\"var d=document.documentElement,n='\".concat(o,\"',s='setAttribute';\"),g=l?(i.includes(u)?u:null)?\"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'\".concat(u,\"'\"):\"if(e==='light'||e==='dark')d.style.colorScheme=e\":\"\",m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=c?c[e]:e,s=t?e+\"|| ''\":\"'\".concat(n,\"'\"),a=\"\";return l&&r&&!t&&i.includes(e)&&(a+=\"d.style.colorScheme = '\".concat(e,\"';\")),\"class\"===o?t||n?a+=\"c.add(\".concat(s,\")\"):a+=\"null\":n&&(a+=\"d[s](n,\".concat(s,\")\")),a},y=t?\"!function(){\".concat(p).concat(m(t),\"}()\"):a?\"!function(){try{\".concat(p,\"var e=localStorage.getItem('\").concat(r,\"');if('system'===e||(!e&&\").concat(f,\")){var t='\").concat(s,\"',m=window.matchMedia(t);if(m.media!==t||m.matches){\").concat(m(\"dark\"),\"}else{\").concat(m(\"light\"),\"}}else if(e){\").concat(c?\"var x=\".concat(JSON.stringify(c),\";\"):\"\").concat(m(c?\"x[e]\":\"e\",!0),\"}\").concat(f?\"\":\"else{\"+m(u,!1,!1)+\"}\").concat(g,\"}catch(e){}}()\"):\"!function(){try{\".concat(p,\"var e=localStorage.getItem('\").concat(r,\"');if(e){\").concat(c?\"var x=\".concat(JSON.stringify(c),\";\"):\"\").concat(m(c?\"x[e]\":\"e\",!0),\"}else{\").concat(m(u,!1,!1),\";}\").concat(g,\"}catch(t){}}();\");return n.createElement(\"script\",{nonce:h,dangerouslySetInnerHTML:{__html:y}})}),p=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},g=()=>{let e=document.createElement(\"style\");return e.appendChild(document.createTextNode(\"*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},m=e=>(e||(e=window.matchMedia(s)),e.matches?\"dark\":\"light\")},58249:function(e,t,r){\"use strict\";r.d(t,{Wg:function(){return l}});var n=r(99434);let i=function(){if(\"undefined\"!=typeof globalThis)return globalThis;if(\"undefined\"!=typeof self)return self;if(\"undefined\"!=typeof window)return window;if(\"undefined\"!=typeof global)return global;throw Error(\"unable to locate global object\")}(),s=i.fetch||(()=>Promise.reject(Error(\"[ofetch] global.fetch is not supported!\"))),o=i.Headers,a=i.AbortController,l=(0,n.c)({fetch:s,Headers:o,AbortController:a})},99434:function(e,t,r){\"use strict\";r.d(t,{F:function(){return x},c:function(){return function e(t={}){let{fetch:r=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:s=globalThis.AbortController}=t;async function o(e){let t=e.error&&\"AbortError\"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t=\"number\"==typeof e.options.retry?e.options.retry:S(e.options.method)?0:1;let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):P.has(r))){let r=e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),a(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||\"\",r=e.request?.method||e.options?.method||\"GET\",n=e.request?.url||String(e.request)||\"/\",i=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:\"<no response>\",o=new x(`${i}: ${s}${t?` ${t}`:\"\"}`,e.error?{cause:e.error}:void 0);for(let t of[\"request\",\"options\",\"response\"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,r]of[[\"data\",\"_data\"],[\"status\",\"status\"],[\"statusCode\",\"status\"],[\"statusText\",\"statusText\"],[\"statusMessage\",\"statusText\"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[r]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,a),r}let a=async function(e,a={}){let u;let c={request:e,options:function(e,t,r=globalThis.Headers){let n={...t,...e};if(t?.params&&e?.params&&(n.params={...t?.params,...e?.params}),t?.query&&e?.query&&(n.query={...t?.query,...e?.query}),t?.headers&&e?.headers)for(let[i,s]of(n.headers=new r(t?.headers||{}),new r(e?.headers||{})))n.headers.set(i,s);return n}(a,t.defaults,i),response:void 0,error:void 0};if(c.options.method=c.options.method?.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),\"string\"==typeof c.request&&(c.options.baseURL&&(c.request=function(e,t){if(!t||\"/\"===t||_(e))return e;let r=function(e=\"\",t){return(!function(e=\"\",t){return e.endsWith(\"/\")}(e)?e:e.slice(0,-1))||\"/\"}(t);return e.startsWith(r)?e:function(e,...t){let r=e||\"\";for(let e of t.filter(e=>e&&\"/\"!==e))if(r){let t=e.replace(w,\"\");r=function(e=\"\",t){return e.endsWith(\"/\")?e:e+\"/\"}(r)+t}else r=e;return r}(r,e)}(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=function(e,t){let r=function e(t=\"\",r){let n=t.match(/^[\\s\\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=\"\"]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:\"\",host:\"\",search:\"\",hash:\"\"}}if(!_(t,{acceptRelative:!0}))return r?e(r+t):A(t);let[,i=\"\",s,o=\"\"]=t.replace(/\\\\/g,\"/\").match(/^[\\s\\0]*([\\w+.-]{2,}:)?\\/\\/([^/@]+@)?(.*)/)||[],[,a=\"\",l=\"\"]=o.match(/([^#/?]*)(.*)?/)||[];\"file:\"===i&&(l=l.replace(/\\/(?=[A-Za-z]:)/,\"\"));let{pathname:u,search:c,hash:d}=A(l);return{protocol:i.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):\"\",host:a,pathname:u,search:c,hash:d,[E]:!i}}(e),n={...function(e=\"\"){let t={};for(let r of(\"?\"===e[0]&&(e=e.slice(1)),e.split(\"&\"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=g(e[1].replace(l,\" \"));if(\"__proto__\"===n||\"constructor\"===n)continue;let i=g((e[2]||\"\").replace(l,\" \"));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}(r.search),...t};return r.search=Object.keys(n).filter(e=>void 0!==n[e]).map(e=>{var t;return((\"number\"==typeof(t=n[e])||\"boolean\"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${p(e)}=${f(t)}`).join(\"&\"):`${p(e)}=${f(t)}`:p(e)}).filter(Boolean).join(\"&\"),function(e){let t=e.pathname||\"\",r=e.search?(e.search.startsWith(\"?\")?\"\":\"?\")+e.search:\"\",n=e.hash||\"\",i=e.auth?e.auth+\"@\":\"\",s=e.host||\"\";return(e.protocol||e[E]?(e.protocol||\"\")+\"//\":\"\")+i+s+t+r+n}(r)}(c.request,{...c.options.params,...c.options.query}))),c.options.body&&S(c.options.method)&&(function(e){if(void 0===e)return!1;let t=typeof e;return\"string\"===t||\"number\"===t||\"boolean\"===t||null===t||\"object\"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&\"Object\"===e.constructor.name||\"function\"==typeof e.toJSON))}(c.options.body)?(c.options.body=\"string\"==typeof c.options.body?c.options.body:JSON.stringify(c.options.body),c.options.headers=new i(c.options.headers||{}),c.options.headers.has(\"content-type\")||c.options.headers.set(\"content-type\",\"application/json\"),c.options.headers.has(\"accept\")||c.options.headers.set(\"accept\",\"application/json\")):(\"pipeTo\"in c.options.body&&\"function\"==typeof c.options.body.pipeTo||\"function\"==typeof c.options.body.pipe)&&!(\"duplex\"in c.options)&&(c.options.duplex=\"half\")),!c.options.signal&&c.options.timeout){let e=new s;u=setTimeout(()=>e.abort(),c.options.timeout),c.options.signal=e.signal}try{c.response=await r(c.request,c.options)}catch(e){return c.error=e,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}finally{u&&clearTimeout(u)}if(c.response.body&&!I.has(c.response.status)&&\"HEAD\"!==c.options.method){let e=(c.options.parseResponse?\"json\":c.options.responseType)||function(e=\"\"){if(!e)return\"json\";let t=e.split(\";\").shift()||\"\";return C.test(t)?\"json\":$.has(t)||t.startsWith(\"text/\")?\"text\":\"blob\"}(c.response.headers.get(\"content-type\")||\"\");switch(e){case\"json\":{let e=await c.response.text(),t=c.options.parseResponse||n.ZP;c.response._data=t(e);break}case\"stream\":c.response._data=c.response.body;break;default:c.response._data=await c.response[e]()}}return(c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600)?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},u=async function(e,t){return(await a(e,t))._data};return u.raw=a,u.native=(...e)=>r(...e),u.create=(r={})=>e({...t,defaults:{...t.defaults,...r}}),u}}});var n=r(10259);let i=/#/g,s=/&/g,o=/\\//g,a=/=/g,l=/\\+/g,u=/%5e/gi,c=/%60/gi,d=/%7c/gi,h=/%20/gi;function f(e){return encodeURI(\"\"+(\"string\"==typeof e?e:JSON.stringify(e))).replace(d,\"|\").replace(l,\"%2B\").replace(h,\"+\").replace(i,\"%23\").replace(s,\"%26\").replace(c,\"`\").replace(u,\"^\").replace(o,\"%2F\")}function p(e){return f(e).replace(a,\"%3D\")}function g(e=\"\"){try{return decodeURIComponent(\"\"+e)}catch{return\"\"+e}}let m=/^[\\s\\w\\0+.-]{2,}:([/\\\\]{1,2})/,y=/^[\\s\\w\\0+.-]{2,}:([/\\\\]{2})?/,b=/^([/\\\\]\\s*){2,}[^/\\\\]/,v=/\\/$|\\/\\?|\\/#/,w=/^\\.?\\//;function _(e,t={}){return(\"boolean\"==typeof t&&(t={acceptRelative:t}),t.strict)?m.test(e):y.test(e)||!!t.acceptRelative&&b.test(e)}let E=Symbol.for(\"ufo:protocolRelative\");function A(e=\"\"){let[t=\"\",r=\"\",n=\"\"]=(e.match(/([^#?]*)(\\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class x extends Error{constructor(e,t){super(e,t),this.name=\"FetchError\",t?.cause&&!this.cause&&(this.cause=t.cause)}}let k=new Set(Object.freeze([\"PATCH\",\"POST\",\"PUT\",\"DELETE\"]));function S(e=\"GET\"){return k.has(e.toUpperCase())}let $=new Set([\"image/svg\",\"application/xml\",\"application/xhtml\",\"application/html\"]),C=/^application\\/(?:[\\w!#$%&*.^`~-]*\\+)?json(;.+)?$/i,P=new Set([408,409,425,429,500,502,503,504]),I=new Set([101,204,205,304])},11444:function(e,t,r){\"use strict\";r.d(t,{I0:function(){return w},v9:function(){return h},zt:function(){return y}});var n=r(2265),i=r(67183),s=Symbol.for(\"react-redux-context\"),o=\"undefined\"!=typeof globalThis?globalThis:{},a=function(){if(!n.createContext)return{};let e=o[s]??(o[s]=new Map),t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}();function l(e=a){return function(){return n.useContext(e)}}var u=l(),c=()=>{throw Error(\"uSES not initialized!\")},d=(e,t)=>e===t,h=function(e=a){let t=e===a?u:l(e),r=(e,r={})=>{let{equalityFn:i=d,devModeChecks:s={}}=\"function\"==typeof r?{equalityFn:r}:r,{store:o,subscription:a,getServerState:l,stabilityCheck:u,identityFunctionCheck:h}=t();n.useRef(!0);let f=n.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,s.stabilityCheck]),p=c(a.addNestedSub,o.getState,l||o.getState,f,i);return n.useDebugValue(p),p};return Object.assign(r,{withTypes:()=>r}),r}();Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.server_context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.suspense_list\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.for(\"react.offscreen\"),Symbol.for(\"react.client.reference\");var f={notify(){},get:()=>[]},p=!!(\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),g=\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product,m=p||g?n.useLayoutEffect:n.useEffect,y=function({store:e,context:t,children:r,serverState:i,stabilityCheck:s=\"once\",identityFunctionCheck:o=\"once\"}){let l=n.useMemo(()=>{let t=function(e,t){let r;let n=f,i=0,s=!1;function o(){u.onStateChange&&u.onStateChange()}function a(){if(i++,!r){let t,i;r=e.subscribe(o),t=null,i=null,n={clear(){t=null,i=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:t=n,function(){r&&null!==t&&(r=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=f)}let u={addNestedSub:function(e){a();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,a())},tryUnsubscribe:function(){s&&(s=!1,l())},getListeners:()=>n};return u}(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:s,identityFunctionCheck:o}},[e,i,s,o]),u=n.useMemo(()=>e.getState(),[e]);return m(()=>{let{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[l,u]),n.createElement((t||a).Provider,{value:l},r)};function b(e=a){let t=e===a?u:l(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var v=b(),w=function(e=a){let t=e===a?v:b(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}();c=i.useSyncExternalStoreWithSelector,n.useSyncExternalStore},4811:function(e,t,r){\"use strict\";function n(e){return crypto.getRandomValues(new Uint8Array(e))}function i(){let[e]=n(1);return e}function s(){let[e,t]=n(2);return(e<<8)+t}function o(e,t,r=\"-\"){if(\"number\"!=typeof e||e<1)throw Error(\"Invalid argument: length argument must be a number greater than or equal to 1\");if(!Array.isArray(t)||t.length<2)throw Error(\"Invalid argument: wordlist argument must be an array with length greater than or equal to 2\");if(\"string\"!=typeof r)throw Error(\"Invalid argument: sep argument must be a string\");return(function(e,t,r){if(\"number\"!=typeof e||e<1)throw Error(\"Invalid argument: length must be a number greater than or equal to 1\");if(\"number\"!=typeof r||r>65536)throw Error(\"Invalid argument: end must be a number less than or equal to 65536\");if(r-0<2)throw Error(\"Invalid range: range must contain at least two values\");let n=[];for(let o=0;o<e;o++)n[o]=t+function(e){if(\"number\"!=typeof e||e<2||e>65536)throw Error(\"Invalid number: number must be at least two and at most 65536\");let t=e>256,r=t?s:i,n=e*Math.floor((t?65536:256)/e);for(;;){let t=r();if(t<n)return t%e}}(r-t);return n})(e,0,t.length).reduce((e,n,i)=>{let s=t[n];return e+(0===i?s:r+s)},\"\")}r.d(t,{OW:function(){return o}})},92861:function(e,t,r){\"use strict\";r.d(t,{k:function(){return n}});let n=Object.freeze(Object.freeze([\"abacus\",\"abdomen\",\"abdominal\",\"abide\",\"abiding\",\"ability\",\"ablaze\",\"able\",\"abnormal\",\"abrasion\",\"abrasive\",\"abreast\",\"abridge\",\"abroad\",\"abruptly\",\"absence\",\"absentee\",\"absently\",\"absinthe\",\"absolute\",\"absolve\",\"abstain\",\"abstract\",\"absurd\",\"accent\",\"acclaim\",\"acclimate\",\"accompany\",\"account\",\"accuracy\",\"accurate\",\"accustom\",\"acetone\",\"achiness\",\"aching\",\"acid\",\"acorn\",\"acquaint\",\"acquire\",\"acre\",\"acrobat\",\"acronym\",\"acting\",\"action\",\"activate\",\"activator\",\"active\",\"activism\",\"activist\",\"activity\",\"actress\",\"acts\",\"acutely\",\"acuteness\",\"aeration\",\"aerobics\",\"aerosol\",\"aerospace\",\"afar\",\"affair\",\"affected\",\"affecting\",\"affection\",\"affidavit\",\"affiliate\",\"affirm\",\"affix\",\"afflicted\",\"affluent\",\"afford\",\"affront\",\"aflame\",\"afloat\",\"aflutter\",\"afoot\",\"afraid\",\"afterglow\",\"afterlife\",\"aftermath\",\"aftermost\",\"afternoon\",\"aged\",\"ageless\",\"agency\",\"agenda\",\"agent\",\"aggregate\",\"aghast\",\"agile\",\"agility\",\"aging\",\"agnostic\",\"agonize\",\"agonizing\",\"agony\",\"agreeable\",\"agreeably\",\"agreed\",\"agreeing\",\"agreement\",\"aground\",\"ahead\",\"ahoy\",\"aide\",\"aids\",\"aim\",\"ajar\",\"alabaster\",\"alarm\",\"albatross\",\"album\",\"alfalfa\",\"algebra\",\"algorithm\",\"alias\",\"alibi\",\"alienable\",\"alienate\",\"aliens\",\"alike\",\"alive\",\"alkaline\",\"alkalize\",\"almanac\",\"almighty\",\"almost\",\"aloe\",\"aloft\",\"aloha\",\"alone\",\"alongside\",\"aloof\",\"alphabet\",\"alright\",\"although\",\"altitude\",\"alto\",\"aluminum\",\"alumni\",\"always\",\"amaretto\",\"amaze\",\"amazingly\",\"amber\",\"ambiance\",\"ambiguity\",\"ambiguous\",\"ambition\",\"ambitious\",\"ambulance\",\"ambush\",\"amendable\",\"amendment\",\"amends\",\"amenity\",\"amiable\",\"amicably\",\"amid\",\"amigo\",\"amino\",\"amiss\",\"ammonia\",\"ammonium\",\"amnesty\",\"amniotic\",\"among\",\"amount\",\"amperage\",\"ample\",\"amplifier\",\"amplify\",\"amply\",\"amuck\",\"amulet\",\"amusable\",\"amused\",\"amusement\",\"amuser\",\"amusing\",\"anaconda\",\"anaerobic\",\"anagram\",\"anatomist\",\"anatomy\",\"anchor\",\"anchovy\",\"ancient\",\"android\",\"anemia\",\"anemic\",\"aneurism\",\"anew\",\"angelfish\",\"angelic\",\"anger\",\"angled\",\"angler\",\"angles\",\"angling\",\"angrily\",\"angriness\",\"anguished\",\"angular\",\"animal\",\"animate\",\"animating\",\"animation\",\"animator\",\"anime\",\"animosity\",\"ankle\",\"annex\",\"annotate\",\"announcer\",\"annoying\",\"annually\",\"annuity\",\"anointer\",\"another\",\"answering\",\"antacid\",\"antarctic\",\"anteater\",\"antelope\",\"antennae\",\"anthem\",\"anthill\",\"anthology\",\"antibody\",\"antics\",\"antidote\",\"antihero\",\"antiquely\",\"antiques\",\"antiquity\",\"antirust\",\"antitoxic\",\"antitrust\",\"antiviral\",\"antivirus\",\"antler\",\"antonym\",\"antsy\",\"anvil\",\"anybody\",\"anyhow\",\"anymore\",\"anyone\",\"anyplace\",\"anything\",\"anytime\",\"anyway\",\"anywhere\",\"aorta\",\"apache\",\"apostle\",\"appealing\",\"appear\",\"appease\",\"appeasing\",\"appendage\",\"appendix\",\"appetite\",\"appetizer\",\"applaud\",\"applause\",\"apple\",\"appliance\",\"applicant\",\"applied\",\"apply\",\"appointee\",\"appraisal\",\"appraiser\",\"apprehend\",\"approach\",\"approval\",\"approve\",\"apricot\",\"april\",\"apron\",\"aptitude\",\"aptly\",\"aqua\",\"aqueduct\",\"arbitrary\",\"arbitrate\",\"ardently\",\"area\",\"arena\",\"arguable\",\"arguably\",\"argue\",\"arise\",\"armadillo\",\"armband\",\"armchair\",\"armed\",\"armful\",\"armhole\",\"arming\",\"armless\",\"armoire\",\"armored\",\"armory\",\"armrest\",\"army\",\"aroma\",\"arose\",\"around\",\"arousal\",\"arrange\",\"array\",\"arrest\",\"arrival\",\"arrive\",\"arrogance\",\"arrogant\",\"arson\",\"art\",\"ascend\",\"ascension\",\"ascent\",\"ascertain\",\"ashamed\",\"ashen\",\"ashes\",\"ashy\",\"aside\",\"askew\",\"asleep\",\"asparagus\",\"aspect\",\"aspirate\",\"aspire\",\"aspirin\",\"astonish\",\"astound\",\"astride\",\"astrology\",\"astronaut\",\"astronomy\",\"astute\",\"atlantic\",\"atlas\",\"atom\",\"atonable\",\"atop\",\"atrium\",\"atrocious\",\"atrophy\",\"attach\",\"attain\",\"attempt\",\"attendant\",\"attendee\",\"attention\",\"attentive\",\"attest\",\"attic\",\"attire\",\"attitude\",\"attractor\",\"attribute\",\"atypical\",\"auction\",\"audacious\",\"audacity\",\"audible\",\"audibly\",\"audience\",\"audio\",\"audition\",\"augmented\",\"august\",\"authentic\",\"author\",\"autism\",\"autistic\",\"autograph\",\"automaker\",\"automated\",\"automatic\",\"autopilot\",\"available\",\"avalanche\",\"avatar\",\"avenge\",\"avenging\",\"avenue\",\"average\",\"aversion\",\"avert\",\"aviation\",\"aviator\",\"avid\",\"avoid\",\"await\",\"awaken\",\"award\",\"aware\",\"awhile\",\"awkward\",\"awning\",\"awoke\",\"awry\",\"axis\",\"babble\",\"babbling\",\"babied\",\"baboon\",\"backache\",\"backboard\",\"backboned\",\"backdrop\",\"backed\",\"backer\",\"backfield\",\"backfire\",\"backhand\",\"backing\",\"backlands\",\"backlash\",\"backless\",\"backlight\",\"backlit\",\"backlog\",\"backpack\",\"backpedal\",\"backrest\",\"backroom\",\"backshift\",\"backside\",\"backslid\",\"backspace\",\"backspin\",\"backstab\",\"backstage\",\"backtalk\",\"backtrack\",\"backup\",\"backward\",\"backwash\",\"backwater\",\"backyard\",\"bacon\",\"bacteria\",\"bacterium\",\"badass\",\"badge\",\"badland\",\"badly\",\"badness\",\"baffle\",\"baffling\",\"bagel\",\"bagful\",\"baggage\",\"bagged\",\"baggie\",\"bagginess\",\"bagging\",\"baggy\",\"bagpipe\",\"baguette\",\"baked\",\"bakery\",\"bakeshop\",\"baking\",\"balance\",\"balancing\",\"balcony\",\"balmy\",\"balsamic\",\"bamboo\",\"banana\",\"banish\",\"banister\",\"banjo\",\"bankable\",\"bankbook\",\"banked\",\"banker\",\"banking\",\"banknote\",\"bankroll\",\"banner\",\"bannister\",\"banshee\",\"banter\",\"barbecue\",\"barbed\",\"barbell\",\"barber\",\"barcode\",\"barge\",\"bargraph\",\"barista\",\"baritone\",\"barley\",\"barmaid\",\"barman\",\"barn\",\"barometer\",\"barrack\",\"barracuda\",\"barrel\",\"barrette\",\"barricade\",\"barrier\",\"barstool\",\"bartender\",\"barterer\",\"bash\",\"basically\",\"basics\",\"basil\",\"basin\",\"basis\",\"basket\",\"batboy\",\"batch\",\"bath\",\"baton\",\"bats\",\"battalion\",\"battered\",\"battering\",\"battery\",\"batting\",\"battle\",\"bauble\",\"bazooka\",\"blabber\",\"bladder\",\"blade\",\"blah\",\"blame\",\"blaming\",\"blanching\",\"blandness\",\"blank\",\"blaspheme\",\"blasphemy\",\"blast\",\"blatancy\",\"blatantly\",\"blazer\",\"blazing\",\"bleach\",\"bleak\",\"bleep\",\"blemish\",\"blend\",\"bless\",\"blighted\",\"blimp\",\"bling\",\"blinked\",\"blinker\",\"blinking\",\"blinks\",\"blip\",\"blissful\",\"blitz\",\"blizzard\",\"bloated\",\"bloating\",\"blob\",\"blog\",\"bloomers\",\"blooming\",\"blooper\",\"blot\",\"blouse\",\"blubber\",\"bluff\",\"bluish\",\"blunderer\",\"blunt\",\"blurb\",\"blurred\",\"blurry\",\"blurt\",\"blush\",\"blustery\",\"boaster\",\"boastful\",\"boasting\",\"boat\",\"bobbed\",\"bobbing\",\"bobble\",\"bobcat\",\"bobsled\",\"bobtail\",\"bodacious\",\"body\",\"bogged\",\"boggle\",\"bogus\",\"boil\",\"bok\",\"bolster\",\"bolt\",\"bonanza\",\"bonded\",\"bonding\",\"bondless\",\"boned\",\"bonehead\",\"boneless\",\"bonelike\",\"boney\",\"bonfire\",\"bonnet\",\"bonsai\",\"bonus\",\"bony\",\"boogeyman\",\"boogieman\",\"book\",\"boondocks\",\"booted\",\"booth\",\"bootie\",\"booting\",\"bootlace\",\"bootleg\",\"boots\",\"boozy\",\"borax\",\"boring\",\"borough\",\"borrower\",\"borrowing\",\"boss\",\"botanical\",\"botanist\",\"botany\",\"botch\",\"both\",\"bottle\",\"bottling\",\"bottom\",\"bounce\",\"bouncing\",\"bouncy\",\"bounding\",\"boundless\",\"bountiful\",\"bovine\",\"boxcar\",\"boxer\",\"boxing\",\"boxlike\",\"boxy\",\"breach\",\"breath\",\"breeches\",\"breeching\",\"breeder\",\"breeding\",\"breeze\",\"breezy\",\"brethren\",\"brewery\",\"brewing\",\"briar\",\"bribe\",\"brick\",\"bride\",\"bridged\",\"brigade\",\"bright\",\"brilliant\",\"brim\",\"bring\",\"brink\",\"brisket\",\"briskly\",\"briskness\",\"bristle\",\"brittle\",\"broadband\",\"broadcast\",\"broaden\",\"broadly\",\"broadness\",\"broadside\",\"broadways\",\"broiler\",\"broiling\",\"broken\",\"broker\",\"bronchial\",\"bronco\",\"bronze\",\"bronzing\",\"brook\",\"broom\",\"brought\",\"browbeat\",\"brownnose\",\"browse\",\"browsing\",\"bruising\",\"brunch\",\"brunette\",\"brunt\",\"brush\",\"brussels\",\"brute\",\"brutishly\",\"bubble\",\"bubbling\",\"bubbly\",\"buccaneer\",\"bucked\",\"bucket\",\"buckle\",\"buckshot\",\"buckskin\",\"bucktooth\",\"buckwheat\",\"buddhism\",\"buddhist\",\"budding\",\"buddy\",\"budget\",\"buffalo\",\"buffed\",\"buffer\",\"buffing\",\"buffoon\",\"buggy\",\"bulb\",\"bulge\",\"bulginess\",\"bulgur\",\"bulk\",\"bulldog\",\"bulldozer\",\"bullfight\",\"bullfrog\",\"bullhorn\",\"bullion\",\"bullish\",\"bullpen\",\"bullring\",\"bullseye\",\"bullwhip\",\"bully\",\"bunch\",\"bundle\",\"bungee\",\"bunion\",\"bunkbed\",\"bunkhouse\",\"bunkmate\",\"bunny\",\"bunt\",\"busboy\",\"bush\",\"busily\",\"busload\",\"bust\",\"busybody\",\"buzz\",\"cabana\",\"cabbage\",\"cabbie\",\"cabdriver\",\"cable\",\"caboose\",\"cache\",\"cackle\",\"cacti\",\"cactus\",\"caddie\",\"caddy\",\"cadet\",\"cadillac\",\"cadmium\",\"cage\",\"cahoots\",\"cake\",\"calamari\",\"calamity\",\"calcium\",\"calculate\",\"calculus\",\"caliber\",\"calibrate\",\"calm\",\"caloric\",\"calorie\",\"calzone\",\"camcorder\",\"cameo\",\"camera\",\"camisole\",\"camper\",\"campfire\",\"camping\",\"campsite\",\"campus\",\"canal\",\"canary\",\"cancel\",\"candied\",\"candle\",\"candy\",\"cane\",\"canine\",\"canister\",\"cannabis\",\"canned\",\"canning\",\"cannon\",\"cannot\",\"canola\",\"canon\",\"canopener\",\"canopy\",\"canteen\",\"canyon\",\"capable\",\"capably\",\"capacity\",\"cape\",\"capillary\",\"capital\",\"capitol\",\"capped\",\"capricorn\",\"capsize\",\"capsule\",\"caption\",\"captivate\",\"captive\",\"captivity\",\"capture\",\"caramel\",\"carat\",\"caravan\",\"carbon\",\"cardboard\",\"carded\",\"cardiac\",\"cardigan\",\"cardinal\",\"cardstock\",\"carefully\",\"caregiver\",\"careless\",\"caress\",\"caretaker\",\"cargo\",\"caring\",\"carless\",\"carload\",\"carmaker\",\"carnage\",\"carnation\",\"carnival\",\"carnivore\",\"carol\",\"carpenter\",\"carpentry\",\"carpool\",\"carport\",\"carried\",\"carrot\",\"carrousel\",\"carry\",\"cartel\",\"cartload\",\"carton\",\"cartoon\",\"cartridge\",\"cartwheel\",\"carve\",\"carving\",\"carwash\",\"cascade\",\"case\",\"cash\",\"casing\",\"casino\",\"casket\",\"cassette\",\"casually\",\"casualty\",\"catacomb\",\"catalog\",\"catalyst\",\"catalyze\",\"catapult\",\"cataract\",\"catatonic\",\"catcall\",\"catchable\",\"catcher\",\"catching\",\"catchy\",\"caterer\",\"catering\",\"catfight\",\"catfish\",\"cathedral\",\"cathouse\",\"catlike\",\"catnap\",\"catnip\",\"catsup\",\"cattail\",\"cattishly\",\"cattle\",\"catty\",\"catwalk\",\"caucasian\",\"caucus\",\"causal\",\"causation\",\"cause\",\"causing\",\"cauterize\",\"caution\",\"cautious\",\"cavalier\",\"cavalry\",\"caviar\",\"cavity\",\"cedar\",\"celery\",\"celestial\",\"celibacy\",\"celibate\",\"celtic\",\"cement\",\"census\",\"ceramics\",\"ceremony\",\"certainly\",\"certainty\",\"certified\",\"certify\",\"cesarean\",\"cesspool\",\"chafe\",\"chaffing\",\"chain\",\"chair\",\"chalice\",\"challenge\",\"chamber\",\"chamomile\",\"champion\",\"chance\",\"change\",\"channel\",\"chant\",\"chaos\",\"chaperone\",\"chaplain\",\"chapped\",\"chaps\",\"chapter\",\"character\",\"charbroil\",\"charcoal\",\"charger\",\"charging\",\"chariot\",\"charity\",\"charm\",\"charred\",\"charter\",\"charting\",\"chase\",\"chasing\",\"chaste\",\"chastise\",\"chastity\",\"chatroom\",\"chatter\",\"chatting\",\"chatty\",\"cheating\",\"cheddar\",\"cheek\",\"cheer\",\"cheese\",\"cheesy\",\"chef\",\"chemicals\",\"chemist\",\"chemo\",\"cherisher\",\"cherub\",\"chess\",\"chest\",\"chevron\",\"chevy\",\"chewable\",\"chewer\",\"chewing\",\"chewy\",\"chief\",\"chihuahua\",\"childcare\",\"childhood\",\"childish\",\"childless\",\"childlike\",\"chili\",\"chill\",\"chimp\",\"chip\",\"chirping\",\"chirpy\",\"chitchat\",\"chivalry\",\"chive\",\"chloride\",\"chlorine\",\"choice\",\"chokehold\",\"choking\",\"chomp\",\"chooser\",\"choosing\",\"choosy\",\"chop\",\"chosen\",\"chowder\",\"chowtime\",\"chrome\",\"chubby\",\"chuck\",\"chug\",\"chummy\",\"chump\",\"chunk\",\"churn\",\"chute\",\"cider\",\"cilantro\",\"cinch\",\"cinema\",\"cinnamon\",\"circle\",\"circling\",\"circular\",\"circulate\",\"circus\",\"citable\",\"citadel\",\"citation\",\"citizen\",\"citric\",\"citrus\",\"city\",\"civic\",\"civil\",\"clad\",\"claim\",\"clambake\",\"clammy\",\"clamor\",\"clamp\",\"clamshell\",\"clang\",\"clanking\",\"clapped\",\"clapper\",\"clapping\",\"clarify\",\"clarinet\",\"clarity\",\"clash\",\"clasp\",\"class\",\"clatter\",\"clause\",\"clavicle\",\"claw\",\"clay\",\"clean\",\"clear\",\"cleat\",\"cleaver\",\"cleft\",\"clench\",\"clergyman\",\"clerical\",\"clerk\",\"clever\",\"clicker\",\"client\",\"climate\",\"climatic\",\"cling\",\"clinic\",\"clinking\",\"clip\",\"clique\",\"cloak\",\"clobber\",\"clock\",\"clone\",\"cloning\",\"closable\",\"closure\",\"clothes\",\"clothing\",\"cloud\",\"clover\",\"clubbed\",\"clubbing\",\"clubhouse\",\"clump\",\"clumsily\",\"clumsy\",\"clunky\",\"clustered\",\"clutch\",\"clutter\",\"coach\",\"coagulant\",\"coastal\",\"coaster\",\"coasting\",\"coastland\",\"coastline\",\"coat\",\"coauthor\",\"cobalt\",\"cobbler\",\"cobweb\",\"cocoa\",\"coconut\",\"cod\",\"coeditor\",\"coerce\",\"coexist\",\"coffee\",\"cofounder\",\"cognition\",\"cognitive\",\"cogwheel\",\"coherence\",\"coherent\",\"cohesive\",\"coil\",\"coke\",\"cola\",\"cold\",\"coleslaw\",\"coliseum\",\"collage\",\"collapse\",\"collar\",\"collected\",\"collector\",\"collide\",\"collie\",\"collision\",\"colonial\",\"colonist\",\"colonize\",\"colony\",\"colossal\",\"colt\",\"coma\",\"come\",\"comfort\",\"comfy\",\"comic\",\"coming\",\"comma\",\"commence\",\"commend\",\"comment\",\"commerce\",\"commode\",\"commodity\",\"commodore\",\"common\",\"commotion\",\"commute\",\"commuting\",\"compacted\",\"compacter\",\"compactly\",\"compactor\",\"companion\",\"company\",\"compare\",\"compel\",\"compile\",\"comply\",\"component\",\"composed\",\"composer\",\"composite\",\"compost\",\"composure\",\"compound\",\"compress\",\"comprised\",\"computer\",\"computing\",\"comrade\",\"concave\",\"conceal\",\"conceded\",\"concept\",\"concerned\",\"concert\",\"conch\",\"concierge\",\"concise\",\"conclude\",\"concrete\",\"concur\",\"condense\",\"condiment\",\"condition\",\"condone\",\"conducive\",\"conductor\",\"conduit\",\"cone\",\"confess\",\"confetti\",\"confidant\",\"confident\",\"confider\",\"confiding\",\"configure\",\"confined\",\"confining\",\"confirm\",\"conflict\",\"conform\",\"confound\",\"confront\",\"confused\",\"confusing\",\"confusion\",\"congenial\",\"congested\",\"congrats\",\"congress\",\"conical\",\"conjoined\",\"conjure\",\"conjuror\",\"connected\",\"connector\",\"consensus\",\"consent\",\"console\",\"consoling\",\"consonant\",\"constable\",\"constant\",\"constrain\",\"constrict\",\"construct\",\"consult\",\"consumer\",\"consuming\",\"contact\",\"container\",\"contempt\",\"contend\",\"contented\",\"contently\",\"contents\",\"contest\",\"context\",\"contort\",\"contour\",\"contrite\",\"control\",\"contusion\",\"convene\",\"convent\",\"copartner\",\"cope\",\"copied\",\"copier\",\"copilot\",\"coping\",\"copious\",\"copper\",\"copy\",\"coral\",\"cork\",\"cornball\",\"cornbread\",\"corncob\",\"cornea\",\"corned\",\"corner\",\"cornfield\",\"cornflake\",\"cornhusk\",\"cornmeal\",\"cornstalk\",\"corny\",\"coronary\",\"coroner\",\"corporal\",\"corporate\",\"corral\",\"correct\",\"corridor\",\"corrode\",\"corroding\",\"corrosive\",\"corsage\",\"corset\",\"cortex\",\"cosigner\",\"cosmetics\",\"cosmic\",\"cosmos\",\"cosponsor\",\"cost\",\"cottage\",\"cotton\",\"couch\",\"cough\",\"could\",\"countable\",\"countdown\",\"counting\",\"countless\",\"country\",\"county\",\"courier\",\"covenant\",\"cover\",\"coveted\",\"coveting\",\"coyness\",\"cozily\",\"coziness\",\"cozy\",\"crabbing\",\"crabgrass\",\"crablike\",\"crabmeat\",\"cradle\",\"cradling\",\"crafter\",\"craftily\",\"craftsman\",\"craftwork\",\"crafty\",\"cramp\",\"cranberry\",\"crane\",\"cranial\",\"cranium\",\"crank\",\"crate\",\"crave\",\"craving\",\"crawfish\",\"crawlers\",\"crawling\",\"crayfish\",\"crayon\",\"crazed\",\"crazily\",\"craziness\",\"crazy\",\"creamed\",\"creamer\",\"creamlike\",\"crease\",\"creasing\",\"creatable\",\"create\",\"creation\",\"creative\",\"creature\",\"credible\",\"credibly\",\"credit\",\"creed\",\"creme\",\"creole\",\"crepe\",\"crept\",\"crescent\",\"crested\",\"cresting\",\"crestless\",\"crevice\",\"crewless\",\"crewman\",\"crewmate\",\"crib\",\"cricket\",\"cried\",\"crier\",\"crimp\",\"crimson\",\"cringe\",\"cringing\",\"crinkle\",\"crinkly\",\"crisped\",\"crisping\",\"crisply\",\"crispness\",\"crispy\",\"criteria\",\"critter\",\"croak\",\"crock\",\"crook\",\"croon\",\"crop\",\"cross\",\"crouch\",\"crouton\",\"crowbar\",\"crowd\",\"crown\",\"crucial\",\"crudely\",\"crudeness\",\"cruelly\",\"cruelness\",\"cruelty\",\"crumb\",\"crummiest\",\"crummy\",\"crumpet\",\"crumpled\",\"cruncher\",\"crunching\",\"crunchy\",\"crusader\",\"crushable\",\"crushed\",\"crusher\",\"crushing\",\"crust\",\"crux\",\"crying\",\"cryptic\",\"crystal\",\"cubbyhole\",\"cube\",\"cubical\",\"cubicle\",\"cucumber\",\"cuddle\",\"cuddly\",\"cufflink\",\"culinary\",\"culminate\",\"culpable\",\"culprit\",\"cultivate\",\"cultural\",\"culture\",\"cupbearer\",\"cupcake\",\"cupid\",\"cupped\",\"cupping\",\"curable\",\"curator\",\"curdle\",\"cure\",\"curfew\",\"curing\",\"curled\",\"curler\",\"curliness\",\"curling\",\"curly\",\"curry\",\"curse\",\"cursive\",\"cursor\",\"curtain\",\"curtly\",\"curtsy\",\"curvature\",\"curve\",\"curvy\",\"cushy\",\"cusp\",\"cussed\",\"custard\",\"custodian\",\"custody\",\"customary\",\"customer\",\"customize\",\"customs\",\"cut\",\"cycle\",\"cyclic\",\"cycling\",\"cyclist\",\"cylinder\",\"cymbal\",\"cytoplasm\",\"cytoplast\",\"dab\",\"dad\",\"daffodil\",\"dagger\",\"daily\",\"daintily\",\"dainty\",\"dairy\",\"daisy\",\"dallying\",\"dance\",\"dancing\",\"dandelion\",\"dander\",\"dandruff\",\"dandy\",\"danger\",\"dangle\",\"dangling\",\"daredevil\",\"dares\",\"daringly\",\"darkened\",\"darkening\",\"darkish\",\"darkness\",\"darkroom\",\"darling\",\"darn\",\"dart\",\"darwinism\",\"dash\",\"dastardly\",\"data\",\"datebook\",\"dating\",\"daughter\",\"daunting\",\"dawdler\",\"dawn\",\"daybed\",\"daybreak\",\"daycare\",\"daydream\",\"daylight\",\"daylong\",\"dayroom\",\"daytime\",\"dazzler\",\"dazzling\",\"deacon\",\"deafening\",\"deafness\",\"dealer\",\"dealing\",\"dealmaker\",\"dealt\",\"dean\",\"debatable\",\"debate\",\"debating\",\"debit\",\"debrief\",\"debtless\",\"debtor\",\"debug\",\"debunk\",\"decade\",\"decaf\",\"decal\",\"decathlon\",\"decay\",\"deceased\",\"deceit\",\"deceiver\",\"deceiving\",\"december\",\"decency\",\"decent\",\"deception\",\"deceptive\",\"decibel\",\"decidable\",\"decimal\",\"decimeter\",\"decipher\",\"deck\",\"declared\",\"decline\",\"decode\",\"decompose\",\"decorated\",\"decorator\",\"decoy\",\"decrease\",\"decree\",\"dedicate\",\"dedicator\",\"deduce\",\"deduct\",\"deed\",\"deem\",\"deepen\",\"deeply\",\"deepness\",\"deface\",\"defacing\",\"defame\",\"default\",\"defeat\",\"defection\",\"defective\",\"defendant\",\"defender\",\"defense\",\"defensive\",\"deferral\",\"deferred\",\"defiance\",\"defiant\",\"defile\",\"defiling\",\"define\",\"definite\",\"deflate\",\"deflation\",\"deflator\",\"deflected\",\"deflector\",\"defog\",\"deforest\",\"defraud\",\"defrost\",\"deftly\",\"defuse\",\"defy\",\"degraded\",\"degrading\",\"degrease\",\"degree\",\"dehydrate\",\"deity\",\"dejected\",\"delay\",\"delegate\",\"delegator\",\"delete\",\"deletion\",\"delicacy\",\"delicate\",\"delicious\",\"delighted\",\"delirious\",\"delirium\",\"deliverer\",\"delivery\",\"delouse\",\"delta\",\"deluge\",\"delusion\",\"deluxe\",\"demanding\",\"demeaning\",\"demeanor\",\"demise\",\"democracy\",\"democrat\",\"demote\",\"demotion\",\"demystify\",\"denatured\",\"deniable\",\"denial\",\"denim\",\"denote\",\"dense\",\"density\",\"dental\",\"dentist\",\"denture\",\"deny\",\"deodorant\",\"deodorize\",\"departed\",\"departure\",\"depict\",\"deplete\",\"depletion\",\"deplored\",\"deploy\",\"deport\",\"depose\",\"depraved\",\"depravity\",\"deprecate\",\"depress\",\"deprive\",\"depth\",\"deputize\",\"deputy\",\"derail\",\"deranged\",\"derby\",\"derived\",\"desecrate\",\"deserve\",\"deserving\",\"designate\",\"designed\",\"designer\",\"designing\",\"deskbound\",\"desktop\",\"deskwork\",\"desolate\",\"despair\",\"despise\",\"despite\",\"destiny\",\"destitute\",\"destruct\",\"detached\",\"detail\",\"detection\",\"detective\",\"detector\",\"detention\",\"detergent\",\"detest\",\"detonate\",\"detonator\",\"detoxify\",\"detract\",\"deuce\",\"devalue\",\"deviancy\",\"deviant\",\"deviate\",\"deviation\",\"deviator\",\"device\",\"devious\",\"devotedly\",\"devotee\",\"devotion\",\"devourer\",\"devouring\",\"devoutly\",\"dexterity\",\"dexterous\",\"diabetes\",\"diabetic\",\"diabolic\",\"diagnoses\",\"diagnosis\",\"diagram\",\"dial\",\"diameter\",\"diaper\",\"diaphragm\",\"diary\",\"dice\",\"dicing\",\"dictate\",\"dictation\",\"dictator\",\"difficult\",\"diffused\",\"diffuser\",\"diffusion\",\"diffusive\",\"dig\",\"dilation\",\"diligence\",\"diligent\",\"dill\",\"dilute\",\"dime\",\"diminish\",\"dimly\",\"dimmed\",\"dimmer\",\"dimness\",\"dimple\",\"diner\",\"dingbat\",\"dinghy\",\"dinginess\",\"dingo\",\"dingy\",\"dining\",\"dinner\",\"diocese\",\"dioxide\",\"diploma\",\"dipped\",\"dipper\",\"dipping\",\"directed\",\"direction\",\"directive\",\"directly\",\"directory\",\"direness\",\"dirtiness\",\"disabled\",\"disagree\",\"disallow\",\"disarm\",\"disarray\",\"disaster\",\"disband\",\"disbelief\",\"disburse\",\"discard\",\"discern\",\"discharge\",\"disclose\",\"discolor\",\"discount\",\"discourse\",\"discover\",\"discuss\",\"disdain\",\"disengage\",\"disfigure\",\"disgrace\",\"dish\",\"disinfect\",\"disjoin\",\"disk\",\"dislike\",\"disliking\",\"dislocate\",\"dislodge\",\"disloyal\",\"dismantle\",\"dismay\",\"dismiss\",\"dismount\",\"disobey\",\"disorder\",\"disown\",\"disparate\",\"disparity\",\"dispatch\",\"dispense\",\"dispersal\",\"dispersed\",\"disperser\",\"displace\",\"display\",\"displease\",\"disposal\",\"dispose\",\"disprove\",\"dispute\",\"disregard\",\"disrupt\",\"dissuade\",\"distance\",\"distant\",\"distaste\",\"distill\",\"distinct\",\"distort\",\"distract\",\"distress\",\"district\",\"distrust\",\"ditch\",\"ditto\",\"ditzy\",\"dividable\",\"divided\",\"dividend\",\"dividers\",\"dividing\",\"divinely\",\"diving\",\"divinity\",\"divisible\",\"divisibly\",\"division\",\"divisive\",\"divorcee\",\"dizziness\",\"dizzy\",\"doable\",\"docile\",\"dock\",\"doctrine\",\"document\",\"dodge\",\"dodgy\",\"doily\",\"doing\",\"dole\",\"dollar\",\"dollhouse\",\"dollop\",\"dolly\",\"dolphin\",\"domain\",\"domelike\",\"domestic\",\"dominion\",\"dominoes\",\"donated\",\"donation\",\"donator\",\"donor\",\"donut\",\"doodle\",\"doorbell\",\"doorframe\",\"doorknob\",\"doorman\",\"doormat\",\"doornail\",\"doorpost\",\"doorstep\",\"doorstop\",\"doorway\",\"doozy\",\"dork\",\"dormitory\",\"dorsal\",\"dosage\",\"dose\",\"dotted\",\"doubling\",\"douche\",\"dove\",\"down\",\"dowry\",\"doze\",\"drab\",\"dragging\",\"dragonfly\",\"dragonish\",\"dragster\",\"drainable\",\"drainage\",\"drained\",\"drainer\",\"drainpipe\",\"dramatic\",\"dramatize\",\"drank\",\"drapery\",\"drastic\",\"draw\",\"dreaded\",\"dreadful\",\"dreadlock\",\"dreamboat\",\"dreamily\",\"dreamland\",\"dreamless\",\"dreamlike\",\"dreamt\",\"dreamy\",\"drearily\",\"dreary\",\"drench\",\"dress\",\"drew\",\"dribble\",\"dried\",\"drier\",\"drift\",\"driller\",\"drilling\",\"drinkable\",\"drinking\",\"dripping\",\"drippy\",\"drivable\",\"driven\",\"driver\",\"driveway\",\"driving\",\"drizzle\",\"drizzly\",\"drone\",\"drool\",\"droop\",\"drop-down\",\"dropbox\",\"dropkick\",\"droplet\",\"dropout\",\"dropper\",\"drove\",\"drown\",\"drowsily\",\"drudge\",\"drum\",\"dry\",\"dubbed\",\"dubiously\",\"duchess\",\"duckbill\",\"ducking\",\"duckling\",\"ducktail\",\"ducky\",\"duct\",\"dude\",\"duffel\",\"dugout\",\"duh\",\"duke\",\"duller\",\"dullness\",\"duly\",\"dumping\",\"dumpling\",\"dumpster\",\"duo\",\"dupe\",\"duplex\",\"duplicate\",\"duplicity\",\"durable\",\"durably\",\"duration\",\"duress\",\"during\",\"dusk\",\"dust\",\"dutiful\",\"duty\",\"duvet\",\"dwarf\",\"dweeb\",\"dwelled\",\"dweller\",\"dwelling\",\"dwindle\",\"dwindling\",\"dynamic\",\"dynamite\",\"dynasty\",\"dyslexia\",\"dyslexic\",\"each\",\"eagle\",\"earache\",\"eardrum\",\"earflap\",\"earful\",\"earlobe\",\"early\",\"earmark\",\"earmuff\",\"earphone\",\"earpiece\",\"earplugs\",\"earring\",\"earshot\",\"earthen\",\"earthlike\",\"earthling\",\"earthly\",\"earthworm\",\"earthy\",\"earwig\",\"easeful\",\"easel\",\"easiest\",\"easily\",\"easiness\",\"easing\",\"eastbound\",\"eastcoast\",\"easter\",\"eastward\",\"eatable\",\"eaten\",\"eatery\",\"eating\",\"eats\",\"ebay\",\"ebony\",\"ebook\",\"ecard\",\"eccentric\",\"echo\",\"eclair\",\"eclipse\",\"ecologist\",\"ecology\",\"economic\",\"economist\",\"economy\",\"ecosphere\",\"ecosystem\",\"edge\",\"edginess\",\"edging\",\"edgy\",\"edition\",\"editor\",\"educated\",\"education\",\"educator\",\"eel\",\"effective\",\"effects\",\"efficient\",\"effort\",\"eggbeater\",\"egging\",\"eggnog\",\"eggplant\",\"eggshell\",\"egomaniac\",\"egotism\",\"egotistic\",\"either\",\"eject\",\"elaborate\",\"elastic\",\"elated\",\"elbow\",\"eldercare\",\"elderly\",\"eldest\",\"electable\",\"election\",\"elective\",\"elephant\",\"elevate\",\"elevating\",\"elevation\",\"elevator\",\"eleven\",\"elf\",\"eligible\",\"eligibly\",\"eliminate\",\"elite\",\"elitism\",\"elixir\",\"elk\",\"ellipse\",\"elliptic\",\"elm\",\"elongated\",\"elope\",\"eloquence\",\"eloquent\",\"elsewhere\",\"elude\",\"elusive\",\"elves\",\"email\",\"embargo\",\"embark\",\"embassy\",\"embattled\",\"embellish\",\"ember\",\"embezzle\",\"emblaze\",\"emblem\",\"embody\",\"embolism\",\"emboss\",\"embroider\",\"emcee\",\"emerald\",\"emergency\",\"emission\",\"emit\",\"emote\",\"emoticon\",\"emotion\",\"empathic\",\"empathy\",\"emperor\",\"emphases\",\"emphasis\",\"emphasize\",\"emphatic\",\"empirical\",\"employed\",\"employee\",\"employer\",\"emporium\",\"empower\",\"emptier\",\"emptiness\",\"empty\",\"emu\",\"enable\",\"enactment\",\"enamel\",\"enchanted\",\"enchilada\",\"encircle\",\"enclose\",\"enclosure\",\"encode\",\"encore\",\"encounter\",\"encourage\",\"encroach\",\"encrust\",\"encrypt\",\"endanger\",\"endeared\",\"endearing\",\"ended\",\"ending\",\"endless\",\"endnote\",\"endocrine\",\"endorphin\",\"endorse\",\"endowment\",\"endpoint\",\"endurable\",\"endurance\",\"enduring\",\"energetic\",\"energize\",\"energy\",\"enforced\",\"enforcer\",\"engaged\",\"engaging\",\"engine\",\"engorge\",\"engraved\",\"engraver\",\"engraving\",\"engross\",\"engulf\",\"enhance\",\"enigmatic\",\"enjoyable\",\"enjoyably\",\"enjoyer\",\"enjoying\",\"enjoyment\",\"enlarged\",\"enlarging\",\"enlighten\",\"enlisted\",\"enquirer\",\"enrage\",\"enrich\",\"enroll\",\"enslave\",\"ensnare\",\"ensure\",\"entail\",\"entangled\",\"entering\",\"entertain\",\"enticing\",\"entire\",\"entitle\",\"entity\",\"entomb\",\"entourage\",\"entrap\",\"entree\",\"entrench\",\"entrust\",\"entryway\",\"entwine\",\"enunciate\",\"envelope\",\"enviable\",\"enviably\",\"envious\",\"envision\",\"envoy\",\"envy\",\"enzyme\",\"epic\",\"epidemic\",\"epidermal\",\"epidermis\",\"epidural\",\"epilepsy\",\"epileptic\",\"epilogue\",\"epiphany\",\"episode\",\"equal\",\"equate\",\"equation\",\"equator\",\"equinox\",\"equipment\",\"equity\",\"equivocal\",\"eradicate\",\"erasable\",\"erased\",\"eraser\",\"erasure\",\"ergonomic\",\"errand\",\"errant\",\"erratic\",\"error\",\"erupt\",\"escalate\",\"escalator\",\"escapable\",\"escapade\",\"escapist\",\"escargot\",\"eskimo\",\"esophagus\",\"espionage\",\"espresso\",\"esquire\",\"essay\",\"essence\",\"essential\",\"establish\",\"estate\",\"esteemed\",\"estimate\",\"estimator\",\"estranged\",\"estrogen\",\"etching\",\"eternal\",\"eternity\",\"ethanol\",\"ether\",\"ethically\",\"ethics\",\"euphemism\",\"evacuate\",\"evacuee\",\"evade\",\"evaluate\",\"evaluator\",\"evaporate\",\"evasion\",\"evasive\",\"even\",\"everglade\",\"evergreen\",\"everybody\",\"everyday\",\"everyone\",\"evict\",\"evidence\",\"evident\",\"evil\",\"evoke\",\"evolution\",\"evolve\",\"exact\",\"exalted\",\"example\",\"excavate\",\"excavator\",\"exceeding\",\"exception\",\"excess\",\"exchange\",\"excitable\",\"exciting\",\"exclaim\",\"exclude\",\"excluding\",\"exclusion\",\"exclusive\",\"excretion\",\"excretory\",\"excursion\",\"excusable\",\"excusably\",\"excuse\",\"exemplary\",\"exemplify\",\"exemption\",\"exerciser\",\"exert\",\"exes\",\"exfoliate\",\"exhale\",\"exhaust\",\"exhume\",\"exile\",\"existing\",\"exit\",\"exodus\",\"exonerate\",\"exorcism\",\"exorcist\",\"expand\",\"expanse\",\"expansion\",\"expansive\",\"expectant\",\"expedited\",\"expediter\",\"expel\",\"expend\",\"expenses\",\"expensive\",\"expert\",\"expire\",\"expiring\",\"explain\",\"expletive\",\"explicit\",\"explode\",\"exploit\",\"explore\",\"exploring\",\"exponent\",\"exporter\",\"exposable\",\"expose\",\"exposure\",\"express\",\"expulsion\",\"exquisite\",\"extended\",\"extending\",\"extent\",\"extenuate\",\"exterior\",\"external\",\"extinct\",\"extortion\",\"extradite\",\"extras\",\"extrovert\",\"extrude\",\"extruding\",\"exuberant\",\"fable\",\"fabric\",\"fabulous\",\"facebook\",\"facecloth\",\"facedown\",\"faceless\",\"facelift\",\"faceplate\",\"faceted\",\"facial\",\"facility\",\"facing\",\"facsimile\",\"faction\",\"factoid\",\"factor\",\"factsheet\",\"factual\",\"faculty\",\"fade\",\"fading\",\"failing\",\"falcon\",\"fall\",\"false\",\"falsify\",\"fame\",\"familiar\",\"family\",\"famine\",\"famished\",\"fanatic\",\"fancied\",\"fanciness\",\"fancy\",\"fanfare\",\"fang\",\"fanning\",\"fantasize\",\"fantastic\",\"fantasy\",\"fascism\",\"fastball\",\"faster\",\"fasting\",\"fastness\",\"faucet\",\"favorable\",\"favorably\",\"favored\",\"favoring\",\"favorite\",\"fax\",\"feast\",\"federal\",\"fedora\",\"feeble\",\"feed\",\"feel\",\"feisty\",\"feline\",\"felt-tip\",\"feminine\",\"feminism\",\"feminist\",\"feminize\",\"femur\",\"fence\",\"fencing\",\"fender\",\"ferment\",\"fernlike\",\"ferocious\",\"ferocity\",\"ferret\",\"ferris\",\"ferry\",\"fervor\",\"fester\",\"festival\",\"festive\",\"festivity\",\"fetal\",\"fetch\",\"fever\",\"fiber\",\"fiction\",\"fiddle\",\"fiddling\",\"fidelity\",\"fidgeting\",\"fidgety\",\"fifteen\",\"fifth\",\"fiftieth\",\"fifty\",\"figment\",\"figure\",\"figurine\",\"filing\",\"filled\",\"filler\",\"filling\",\"film\",\"filter\",\"filth\",\"filtrate\",\"finale\",\"finalist\",\"finalize\",\"finally\",\"finance\",\"financial\",\"finch\",\"fineness\",\"finer\",\"finicky\",\"finished\",\"finisher\",\"finishing\",\"finite\",\"finless\",\"finlike\",\"fiscally\",\"fit\",\"five\",\"flaccid\",\"flagman\",\"flagpole\",\"flagship\",\"flagstick\",\"flagstone\",\"flail\",\"flakily\",\"flaky\",\"flame\",\"flammable\",\"flanked\",\"flanking\",\"flannels\",\"flap\",\"flaring\",\"flashback\",\"flashbulb\",\"flashcard\",\"flashily\",\"flashing\",\"flashy\",\"flask\",\"flatbed\",\"flatfoot\",\"flatly\",\"flatness\",\"flatten\",\"flattered\",\"flatterer\",\"flattery\",\"flattop\",\"flatware\",\"flatworm\",\"flavored\",\"flavorful\",\"flavoring\",\"flaxseed\",\"fled\",\"fleshed\",\"fleshy\",\"flick\",\"flier\",\"flight\",\"flinch\",\"fling\",\"flint\",\"flip\",\"flirt\",\"float\",\"flock\",\"flogging\",\"flop\",\"floral\",\"florist\",\"floss\",\"flounder\",\"flyable\",\"flyaway\",\"flyer\",\"flying\",\"flyover\",\"flypaper\",\"foam\",\"foe\",\"fog\",\"foil\",\"folic\",\"folk\",\"follicle\",\"follow\",\"fondling\",\"fondly\",\"fondness\",\"fondue\",\"font\",\"food\",\"fool\",\"footage\",\"football\",\"footbath\",\"footboard\",\"footer\",\"footgear\",\"foothill\",\"foothold\",\"footing\",\"footless\",\"footman\",\"footnote\",\"footpad\",\"footpath\",\"footprint\",\"footrest\",\"footsie\",\"footsore\",\"footwear\",\"footwork\",\"fossil\",\"foster\",\"founder\",\"founding\",\"fountain\",\"fox\",\"foyer\",\"fraction\",\"fracture\",\"fragile\",\"fragility\",\"fragment\",\"fragrance\",\"fragrant\",\"frail\",\"frame\",\"framing\",\"frantic\",\"fraternal\",\"frayed\",\"fraying\",\"frays\",\"freckled\",\"freckles\",\"freebase\",\"freebee\",\"freebie\",\"freedom\",\"freefall\",\"freehand\",\"freeing\",\"freeload\",\"freely\",\"freemason\",\"freeness\",\"freestyle\",\"freeware\",\"freeway\",\"freewill\",\"freezable\",\"freezing\",\"freight\",\"french\",\"frenzied\",\"frenzy\",\"frequency\",\"frequent\",\"fresh\",\"fretful\",\"fretted\",\"friction\",\"friday\",\"fridge\",\"fried\",\"friend\",\"frighten\",\"frightful\",\"frigidity\",\"frigidly\",\"frill\",\"fringe\",\"frisbee\",\"frisk\",\"fritter\",\"frivolous\",\"frolic\",\"from\",\"front\",\"frostbite\",\"frosted\",\"frostily\",\"frosting\",\"frostlike\",\"frosty\",\"froth\",\"frown\",\"frozen\",\"fructose\",\"frugality\",\"frugally\",\"fruit\",\"frustrate\",\"frying\",\"gab\",\"gaffe\",\"gag\",\"gainfully\",\"gaining\",\"gains\",\"gala\",\"gallantly\",\"galleria\",\"gallery\",\"galley\",\"gallon\",\"gallows\",\"gallstone\",\"galore\",\"galvanize\",\"gambling\",\"game\",\"gaming\",\"gamma\",\"gander\",\"gangly\",\"gangrene\",\"gangway\",\"gap\",\"garage\",\"garbage\",\"garden\",\"gargle\",\"garland\",\"garlic\",\"garment\",\"garnet\",\"garnish\",\"garter\",\"gas\",\"gatherer\",\"gathering\",\"gating\",\"gauging\",\"gauntlet\",\"gauze\",\"gave\",\"gawk\",\"gazing\",\"gear\",\"gecko\",\"geek\",\"geiger\",\"gem\",\"gender\",\"generic\",\"generous\",\"genetics\",\"genre\",\"gentile\",\"gentleman\",\"gently\",\"gents\",\"geography\",\"geologic\",\"geologist\",\"geology\",\"geometric\",\"geometry\",\"geranium\",\"gerbil\",\"geriatric\",\"germicide\",\"germinate\",\"germless\",\"germproof\",\"gestate\",\"gestation\",\"gesture\",\"getaway\",\"getting\",\"getup\",\"giant\",\"gibberish\",\"giblet\",\"giddily\",\"giddiness\",\"giddy\",\"gift\",\"gigabyte\",\"gigahertz\",\"gigantic\",\"giggle\",\"giggling\",\"giggly\",\"gigolo\",\"gilled\",\"gills\",\"gimmick\",\"girdle\",\"giveaway\",\"given\",\"giver\",\"giving\",\"gizmo\",\"gizzard\",\"glacial\",\"glacier\",\"glade\",\"gladiator\",\"gladly\",\"glamorous\",\"glamour\",\"glance\",\"glancing\",\"glandular\",\"glare\",\"glaring\",\"glass\",\"glaucoma\",\"glazing\",\"gleaming\",\"gleeful\",\"glider\",\"gliding\",\"glimmer\",\"glimpse\",\"glisten\",\"glitch\",\"glitter\",\"glitzy\",\"gloater\",\"gloating\",\"gloomily\",\"gloomy\",\"glorified\",\"glorifier\",\"glorify\",\"glorious\",\"glory\",\"gloss\",\"glove\",\"glowing\",\"glowworm\",\"glucose\",\"glue\",\"gluten\",\"glutinous\",\"glutton\",\"gnarly\",\"gnat\",\"goal\",\"goatskin\",\"goes\",\"goggles\",\"going\",\"goldfish\",\"goldmine\",\"goldsmith\",\"golf\",\"goliath\",\"gonad\",\"gondola\",\"gone\",\"gong\",\"good\",\"gooey\",\"goofball\",\"goofiness\",\"goofy\",\"google\",\"goon\",\"gopher\",\"gore\",\"gorged\",\"gorgeous\",\"gory\",\"gosling\",\"gossip\",\"gothic\",\"gotten\",\"gout\",\"gown\",\"grab\",\"graceful\",\"graceless\",\"gracious\",\"gradation\",\"graded\",\"grader\",\"gradient\",\"grading\",\"gradually\",\"graduate\",\"graffiti\",\"grafted\",\"grafting\",\"grain\",\"granddad\",\"grandkid\",\"grandly\",\"grandma\",\"grandpa\",\"grandson\",\"granite\",\"granny\",\"granola\",\"grant\",\"granular\",\"grape\",\"graph\",\"grapple\",\"grappling\",\"grasp\",\"grass\",\"gratified\",\"gratify\",\"grating\",\"gratitude\",\"gratuity\",\"gravel\",\"graveness\",\"graves\",\"graveyard\",\"gravitate\",\"gravity\",\"gravy\",\"gray\",\"grazing\",\"greasily\",\"greedily\",\"greedless\",\"greedy\",\"green\",\"greeter\",\"greeting\",\"grew\",\"greyhound\",\"grid\",\"grief\",\"grievance\",\"grieving\",\"grievous\",\"grill\",\"grimace\",\"grimacing\",\"grime\",\"griminess\",\"grimy\",\"grinch\",\"grinning\",\"grip\",\"gristle\",\"grit\",\"groggily\",\"groggy\",\"groin\",\"groom\",\"groove\",\"grooving\",\"groovy\",\"grope\",\"ground\",\"grouped\",\"grout\",\"grove\",\"grower\",\"growing\",\"growl\",\"grub\",\"grudge\",\"grudging\",\"grueling\",\"gruffly\",\"grumble\",\"grumbling\",\"grumbly\",\"grumpily\",\"grunge\",\"grunt\",\"guacamole\",\"guidable\",\"guidance\",\"guide\",\"guiding\",\"guileless\",\"guise\",\"gulf\",\"gullible\",\"gully\",\"gulp\",\"gumball\",\"gumdrop\",\"gumminess\",\"gumming\",\"gummy\",\"gurgle\",\"gurgling\",\"guru\",\"gush\",\"gusto\",\"gusty\",\"gutless\",\"guts\",\"gutter\",\"guy\",\"guzzler\",\"gyration\",\"habitable\",\"habitant\",\"habitat\",\"habitual\",\"hacked\",\"hacker\",\"hacking\",\"hacksaw\",\"had\",\"haggler\",\"haiku\",\"half\",\"halogen\",\"halt\",\"halved\",\"halves\",\"hamburger\",\"hamlet\",\"hammock\",\"hamper\",\"hamster\",\"hamstring\",\"handbag\",\"handball\",\"handbook\",\"handbrake\",\"handcart\",\"handclap\",\"handclasp\",\"handcraft\",\"handcuff\",\"handed\",\"handful\",\"handgrip\",\"handgun\",\"handheld\",\"handiness\",\"handiwork\",\"handlebar\",\"handled\",\"handler\",\"handling\",\"handmade\",\"handoff\",\"handpick\",\"handprint\",\"handrail\",\"handsaw\",\"handset\",\"handsfree\",\"handshake\",\"handstand\",\"handwash\",\"handwork\",\"handwoven\",\"handwrite\",\"handyman\",\"hangnail\",\"hangout\",\"hangover\",\"hangup\",\"hankering\",\"hankie\",\"hanky\",\"haphazard\",\"happening\",\"happier\",\"happiest\",\"happily\",\"happiness\",\"happy\",\"harbor\",\"hardcopy\",\"hardcore\",\"hardcover\",\"harddisk\",\"hardened\",\"hardener\",\"hardening\",\"hardhat\",\"hardhead\",\"hardiness\",\"hardly\",\"hardness\",\"hardship\",\"hardware\",\"hardwired\",\"hardwood\",\"hardy\",\"harmful\",\"harmless\",\"harmonica\",\"harmonics\",\"harmonize\",\"harmony\",\"harness\",\"harpist\",\"harsh\",\"harvest\",\"hash\",\"hassle\",\"haste\",\"hastily\",\"hastiness\",\"hasty\",\"hatbox\",\"hatchback\",\"hatchery\",\"hatchet\",\"hatching\",\"hatchling\",\"hate\",\"hatless\",\"hatred\",\"haunt\",\"haven\",\"hazard\",\"hazelnut\",\"hazily\",\"haziness\",\"hazing\",\"hazy\",\"headache\",\"headband\",\"headboard\",\"headcount\",\"headdress\",\"headed\",\"header\",\"headfirst\",\"headgear\",\"heading\",\"headlamp\",\"headless\",\"headlock\",\"headphone\",\"headpiece\",\"headrest\",\"headroom\",\"headscarf\",\"headset\",\"headsman\",\"headstand\",\"headstone\",\"headway\",\"headwear\",\"heap\",\"heat\",\"heave\",\"heavily\",\"heaviness\",\"heaving\",\"hedge\",\"hedging\",\"heftiness\",\"hefty\",\"helium\",\"helmet\",\"helper\",\"helpful\",\"helping\",\"helpless\",\"helpline\",\"hemlock\",\"hemstitch\",\"hence\",\"henchman\",\"henna\",\"herald\",\"herbal\",\"herbicide\",\"herbs\",\"heritage\",\"hermit\",\"heroics\",\"heroism\",\"herring\",\"herself\",\"hertz\",\"hesitancy\",\"hesitant\",\"hesitate\",\"hexagon\",\"hexagram\",\"hubcap\",\"huddle\",\"huddling\",\"huff\",\"hug\",\"hula\",\"hulk\",\"hull\",\"human\",\"humble\",\"humbling\",\"humbly\",\"humid\",\"humiliate\",\"humility\",\"humming\",\"hummus\",\"humongous\",\"humorist\",\"humorless\",\"humorous\",\"humpback\",\"humped\",\"humvee\",\"hunchback\",\"hundredth\",\"hunger\",\"hungrily\",\"hungry\",\"hunk\",\"hunter\",\"hunting\",\"huntress\",\"huntsman\",\"hurdle\",\"hurled\",\"hurler\",\"hurling\",\"hurray\",\"hurricane\",\"hurried\",\"hurry\",\"hurt\",\"husband\",\"hush\",\"husked\",\"huskiness\",\"hut\",\"hybrid\",\"hydrant\",\"hydrated\",\"hydration\",\"hydrogen\",\"hydroxide\",\"hyperlink\",\"hypertext\",\"hyphen\",\"hypnoses\",\"hypnosis\",\"hypnotic\",\"hypnotism\",\"hypnotist\",\"hypnotize\",\"hypocrisy\",\"hypocrite\",\"ibuprofen\",\"ice\",\"iciness\",\"icing\",\"icky\",\"icon\",\"icy\",\"idealism\",\"idealist\",\"idealize\",\"ideally\",\"idealness\",\"identical\",\"identify\",\"identity\",\"ideology\",\"idiocy\",\"idiom\",\"idly\",\"igloo\",\"ignition\",\"ignore\",\"iguana\",\"illicitly\",\"illusion\",\"illusive\",\"image\",\"imaginary\",\"imagines\",\"imaging\",\"imbecile\",\"imitate\",\"imitation\",\"immature\",\"immerse\",\"immersion\",\"imminent\",\"immobile\",\"immodest\",\"immorally\",\"immortal\",\"immovable\",\"immovably\",\"immunity\",\"immunize\",\"impaired\",\"impale\",\"impart\",\"impatient\",\"impeach\",\"impeding\",\"impending\",\"imperfect\",\"imperial\",\"impish\",\"implant\",\"implement\",\"implicate\",\"implicit\",\"implode\",\"implosion\",\"implosive\",\"imply\",\"impolite\",\"important\",\"importer\",\"impose\",\"imposing\",\"impotence\",\"impotency\",\"impotent\",\"impound\",\"imprecise\",\"imprint\",\"imprison\",\"impromptu\",\"improper\",\"improve\",\"improving\",\"improvise\",\"imprudent\",\"impulse\",\"impulsive\",\"impure\",\"impurity\",\"iodine\",\"iodize\",\"ion\",\"ipad\",\"iphone\",\"ipod\",\"irate\",\"irk\",\"iron\",\"irregular\",\"irrigate\",\"irritable\",\"irritably\",\"irritant\",\"irritate\",\"islamic\",\"islamist\",\"isolated\",\"isolating\",\"isolation\",\"isotope\",\"issue\",\"issuing\",\"italicize\",\"italics\",\"item\",\"itinerary\",\"itunes\",\"ivory\",\"ivy\",\"jab\",\"jackal\",\"jacket\",\"jackknife\",\"jackpot\",\"jailbird\",\"jailbreak\",\"jailer\",\"jailhouse\",\"jalapeno\",\"jam\",\"janitor\",\"january\",\"jargon\",\"jarring\",\"jasmine\",\"jaundice\",\"jaunt\",\"java\",\"jawed\",\"jawless\",\"jawline\",\"jaws\",\"jaybird\",\"jaywalker\",\"jazz\",\"jeep\",\"jeeringly\",\"jellied\",\"jelly\",\"jersey\",\"jester\",\"jet\",\"jiffy\",\"jigsaw\",\"jimmy\",\"jingle\",\"jingling\",\"jinx\",\"jitters\",\"jittery\",\"job\",\"jockey\",\"jockstrap\",\"jogger\",\"jogging\",\"john\",\"joining\",\"jokester\",\"jokingly\",\"jolliness\",\"jolly\",\"jolt\",\"jot\",\"jovial\",\"joyfully\",\"joylessly\",\"joyous\",\"joyride\",\"joystick\",\"jubilance\",\"jubilant\",\"judge\",\"judgingly\",\"judicial\",\"judiciary\",\"judo\",\"juggle\",\"juggling\",\"jugular\",\"juice\",\"juiciness\",\"juicy\",\"jujitsu\",\"jukebox\",\"july\",\"jumble\",\"jumbo\",\"jump\",\"junction\",\"juncture\",\"june\",\"junior\",\"juniper\",\"junkie\",\"junkman\",\"junkyard\",\"jurist\",\"juror\",\"jury\",\"justice\",\"justifier\",\"justify\",\"justly\",\"justness\",\"juvenile\",\"kabob\",\"kangaroo\",\"karaoke\",\"karate\",\"karma\",\"kebab\",\"keenly\",\"keenness\",\"keep\",\"keg\",\"kelp\",\"kennel\",\"kept\",\"kerchief\",\"kerosene\",\"kettle\",\"kick\",\"kiln\",\"kilobyte\",\"kilogram\",\"kilometer\",\"kilowatt\",\"kilt\",\"kimono\",\"kindle\",\"kindling\",\"kindly\",\"kindness\",\"kindred\",\"kinetic\",\"kinfolk\",\"king\",\"kinship\",\"kinsman\",\"kinswoman\",\"kissable\",\"kisser\",\"kissing\",\"kitchen\",\"kite\",\"kitten\",\"kitty\",\"kiwi\",\"kleenex\",\"knapsack\",\"knee\",\"knelt\",\"knickers\",\"knoll\",\"koala\",\"kooky\",\"kosher\",\"krypton\",\"kudos\",\"kung\",\"labored\",\"laborer\",\"laboring\",\"laborious\",\"labrador\",\"ladder\",\"ladies\",\"ladle\",\"ladybug\",\"ladylike\",\"lagged\",\"lagging\",\"lagoon\",\"lair\",\"lake\",\"lance\",\"landed\",\"landfall\",\"landfill\",\"landing\",\"landlady\",\"landless\",\"landline\",\"landlord\",\"landmark\",\"landmass\",\"landmine\",\"landowner\",\"landscape\",\"landside\",\"landslide\",\"language\",\"lankiness\",\"lanky\",\"lantern\",\"lapdog\",\"lapel\",\"lapped\",\"lapping\",\"laptop\",\"lard\",\"large\",\"lark\",\"lash\",\"lasso\",\"last\",\"latch\",\"late\",\"lather\",\"latitude\",\"latrine\",\"latter\",\"latticed\",\"launch\",\"launder\",\"laundry\",\"laurel\",\"lavender\",\"lavish\",\"laxative\",\"lazily\",\"laziness\",\"lazy\",\"lecturer\",\"left\",\"legacy\",\"legal\",\"legend\",\"legged\",\"leggings\",\"legible\",\"legibly\",\"legislate\",\"lego\",\"legroom\",\"legume\",\"legwarmer\",\"legwork\",\"lemon\",\"lend\",\"length\",\"lens\",\"lent\",\"leotard\",\"lesser\",\"letdown\",\"lethargic\",\"lethargy\",\"letter\",\"lettuce\",\"level\",\"leverage\",\"levers\",\"levitate\",\"levitator\",\"liability\",\"liable\",\"liberty\",\"librarian\",\"library\",\"licking\",\"licorice\",\"lid\",\"life\",\"lifter\",\"lifting\",\"liftoff\",\"ligament\",\"likely\",\"likeness\",\"likewise\",\"liking\",\"lilac\",\"lilly\",\"lily\",\"limb\",\"limeade\",\"limelight\",\"limes\",\"limit\",\"limping\",\"limpness\",\"line\",\"lingo\",\"linguini\",\"linguist\",\"lining\",\"linked\",\"linoleum\",\"linseed\",\"lint\",\"lion\",\"lip\",\"liquefy\",\"liqueur\",\"liquid\",\"lisp\",\"list\",\"litigate\",\"litigator\",\"litmus\",\"litter\",\"little\",\"livable\",\"lived\",\"lively\",\"liver\",\"livestock\",\"lividly\",\"living\",\"lizard\",\"lubricant\",\"lubricate\",\"lucid\",\"luckily\",\"luckiness\",\"luckless\",\"lucrative\",\"ludicrous\",\"lugged\",\"lukewarm\",\"lullaby\",\"lumber\",\"luminance\",\"luminous\",\"lumpiness\",\"lumping\",\"lumpish\",\"lunacy\",\"lunar\",\"lunchbox\",\"luncheon\",\"lunchroom\",\"lunchtime\",\"lung\",\"lurch\",\"lure\",\"luridness\",\"lurk\",\"lushly\",\"lushness\",\"luster\",\"lustfully\",\"lustily\",\"lustiness\",\"lustrous\",\"lusty\",\"luxurious\",\"luxury\",\"lying\",\"lyrically\",\"lyricism\",\"lyricist\",\"lyrics\",\"macarena\",\"macaroni\",\"macaw\",\"mace\",\"machine\",\"machinist\",\"magazine\",\"magenta\",\"maggot\",\"magical\",\"magician\",\"magma\",\"magnesium\",\"magnetic\",\"magnetism\",\"magnetize\",\"magnifier\",\"magnify\",\"magnitude\",\"magnolia\",\"mahogany\",\"maimed\",\"majestic\",\"majesty\",\"majorette\",\"majority\",\"makeover\",\"maker\",\"makeshift\",\"making\",\"malformed\",\"malt\",\"mama\",\"mammal\",\"mammary\",\"mammogram\",\"manager\",\"managing\",\"manatee\",\"mandarin\",\"mandate\",\"mandatory\",\"mandolin\",\"manger\",\"mangle\",\"mango\",\"mangy\",\"manhandle\",\"manhole\",\"manhood\",\"manhunt\",\"manicotti\",\"manicure\",\"manifesto\",\"manila\",\"mankind\",\"manlike\",\"manliness\",\"manly\",\"manmade\",\"manned\",\"mannish\",\"manor\",\"manpower\",\"mantis\",\"mantra\",\"manual\",\"many\",\"map\",\"marathon\",\"marauding\",\"marbled\",\"marbles\",\"marbling\",\"march\",\"mardi\",\"margarine\",\"margarita\",\"margin\",\"marigold\",\"marina\",\"marine\",\"marital\",\"maritime\",\"marlin\",\"marmalade\",\"maroon\",\"married\",\"marrow\",\"marry\",\"marshland\",\"marshy\",\"marsupial\",\"marvelous\",\"marxism\",\"mascot\",\"masculine\",\"mashed\",\"mashing\",\"massager\",\"masses\",\"massive\",\"mastiff\",\"matador\",\"matchbook\",\"matchbox\",\"matcher\",\"matching\",\"matchless\",\"material\",\"maternal\",\"maternity\",\"math\",\"mating\",\"matriarch\",\"matrimony\",\"matrix\",\"matron\",\"matted\",\"matter\",\"maturely\",\"maturing\",\"maturity\",\"mauve\",\"maverick\",\"maximize\",\"maximum\",\"maybe\",\"mayday\",\"mayflower\",\"moaner\",\"moaning\",\"mobile\",\"mobility\",\"mobilize\",\"mobster\",\"mocha\",\"mocker\",\"mockup\",\"modified\",\"modify\",\"modular\",\"modulator\",\"module\",\"moisten\",\"moistness\",\"moisture\",\"molar\",\"molasses\",\"mold\",\"molecular\",\"molecule\",\"molehill\",\"mollusk\",\"mom\",\"monastery\",\"monday\",\"monetary\",\"monetize\",\"moneybags\",\"moneyless\",\"moneywise\",\"mongoose\",\"mongrel\",\"monitor\",\"monkhood\",\"monogamy\",\"monogram\",\"monologue\",\"monopoly\",\"monorail\",\"monotone\",\"monotype\",\"monoxide\",\"monsieur\",\"monsoon\",\"monstrous\",\"monthly\",\"monument\",\"moocher\",\"moodiness\",\"moody\",\"mooing\",\"moonbeam\",\"mooned\",\"moonlight\",\"moonlike\",\"moonlit\",\"moonrise\",\"moonscape\",\"moonshine\",\"moonstone\",\"moonwalk\",\"mop\",\"morale\",\"morality\",\"morally\",\"morbidity\",\"morbidly\",\"morphine\",\"morphing\",\"morse\",\"mortality\",\"mortally\",\"mortician\",\"mortified\",\"mortify\",\"mortuary\",\"mosaic\",\"mossy\",\"most\",\"mothball\",\"mothproof\",\"motion\",\"motivate\",\"motivator\",\"motive\",\"motocross\",\"motor\",\"motto\",\"mountable\",\"mountain\",\"mounted\",\"mounting\",\"mourner\",\"mournful\",\"mouse\",\"mousiness\",\"moustache\",\"mousy\",\"mouth\",\"movable\",\"move\",\"movie\",\"moving\",\"mower\",\"mowing\",\"much\",\"muck\",\"mud\",\"mug\",\"mulberry\",\"mulch\",\"mule\",\"mulled\",\"mullets\",\"multiple\",\"multiply\",\"multitask\",\"multitude\",\"mumble\",\"mumbling\",\"mumbo\",\"mummified\",\"mummify\",\"mummy\",\"mumps\",\"munchkin\",\"mundane\",\"municipal\",\"muppet\",\"mural\",\"murkiness\",\"murky\",\"murmuring\",\"muscular\",\"museum\",\"mushily\",\"mushiness\",\"mushroom\",\"mushy\",\"music\",\"musket\",\"muskiness\",\"musky\",\"mustang\",\"mustard\",\"muster\",\"mustiness\",\"musty\",\"mutable\",\"mutate\",\"mutation\",\"mute\",\"mutilated\",\"mutilator\",\"mutiny\",\"mutt\",\"mutual\",\"muzzle\",\"myself\",\"myspace\",\"mystified\",\"mystify\",\"myth\",\"nacho\",\"nag\",\"nail\",\"name\",\"naming\",\"nanny\",\"nanometer\",\"nape\",\"napkin\",\"napped\",\"napping\",\"nappy\",\"narrow\",\"nastily\",\"nastiness\",\"national\",\"native\",\"nativity\",\"natural\",\"nature\",\"naturist\",\"nautical\",\"navigate\",\"navigator\",\"navy\",\"nearby\",\"nearest\",\"nearly\",\"nearness\",\"neatly\",\"neatness\",\"nebula\",\"nebulizer\",\"nectar\",\"negate\",\"negation\",\"negative\",\"neglector\",\"negligee\",\"negligent\",\"negotiate\",\"nemeses\",\"nemesis\",\"neon\",\"nephew\",\"nerd\",\"nervous\",\"nervy\",\"nest\",\"net\",\"neurology\",\"neuron\",\"neurosis\",\"neurotic\",\"neuter\",\"neutron\",\"never\",\"next\",\"nibble\",\"nickname\",\"nicotine\",\"niece\",\"nifty\",\"nimble\",\"nimbly\",\"nineteen\",\"ninetieth\",\"ninja\",\"nintendo\",\"ninth\",\"nuclear\",\"nuclei\",\"nucleus\",\"nugget\",\"nullify\",\"number\",\"numbing\",\"numbly\",\"numbness\",\"numeral\",\"numerate\",\"numerator\",\"numeric\",\"numerous\",\"nuptials\",\"nursery\",\"nursing\",\"nurture\",\"nutcase\",\"nutlike\",\"nutmeg\",\"nutrient\",\"nutshell\",\"nuttiness\",\"nutty\",\"nuzzle\",\"nylon\",\"oaf\",\"oak\",\"oasis\",\"oat\",\"obedience\",\"obedient\",\"obituary\",\"object\",\"obligate\",\"obliged\",\"oblivion\",\"oblivious\",\"oblong\",\"obnoxious\",\"oboe\",\"obscure\",\"obscurity\",\"observant\",\"observer\",\"observing\",\"obsessed\",\"obsession\",\"obsessive\",\"obsolete\",\"obstacle\",\"obstinate\",\"obstruct\",\"obtain\",\"obtrusive\",\"obtuse\",\"obvious\",\"occultist\",\"occupancy\",\"occupant\",\"occupier\",\"occupy\",\"ocean\",\"ocelot\",\"octagon\",\"octane\",\"october\",\"octopus\",\"ogle\",\"oil\",\"oink\",\"ointment\",\"okay\",\"old\",\"olive\",\"olympics\",\"omega\",\"omen\",\"ominous\",\"omission\",\"omit\",\"omnivore\",\"onboard\",\"oncoming\",\"ongoing\",\"onion\",\"online\",\"onlooker\",\"only\",\"onscreen\",\"onset\",\"onshore\",\"onslaught\",\"onstage\",\"onto\",\"onward\",\"onyx\",\"oops\",\"ooze\",\"oozy\",\"opacity\",\"opal\",\"open\",\"operable\",\"operate\",\"operating\",\"operation\",\"operative\",\"operator\",\"opium\",\"opossum\",\"opponent\",\"oppose\",\"opposing\",\"opposite\",\"oppressed\",\"oppressor\",\"opt\",\"opulently\",\"osmosis\",\"other\",\"otter\",\"ouch\",\"ought\",\"ounce\",\"outage\",\"outback\",\"outbid\",\"outboard\",\"outbound\",\"outbreak\",\"outburst\",\"outcast\",\"outclass\",\"outcome\",\"outdated\",\"outdoors\",\"outer\",\"outfield\",\"outfit\",\"outflank\",\"outgoing\",\"outgrow\",\"outhouse\",\"outing\",\"outlast\",\"outlet\",\"outline\",\"outlook\",\"outlying\",\"outmatch\",\"outmost\",\"outnumber\",\"outplayed\",\"outpost\",\"outpour\",\"output\",\"outrage\",\"outrank\",\"outreach\",\"outright\",\"outscore\",\"outsell\",\"outshine\",\"outshoot\",\"outsider\",\"outskirts\",\"outsmart\",\"outsource\",\"outspoken\",\"outtakes\",\"outthink\",\"outward\",\"outweigh\",\"outwit\",\"oval\",\"ovary\",\"oven\",\"overact\",\"overall\",\"overarch\",\"overbid\",\"overbill\",\"overbite\",\"overblown\",\"overboard\",\"overbook\",\"overbuilt\",\"overcast\",\"overcoat\",\"overcome\",\"overcook\",\"overcrowd\",\"overdraft\",\"overdrawn\",\"overdress\",\"overdrive\",\"overdue\",\"overeager\",\"overeater\",\"overexert\",\"overfed\",\"overfeed\",\"overfill\",\"overflow\",\"overfull\",\"overgrown\",\"overhand\",\"overhang\",\"overhaul\",\"overhead\",\"overhear\",\"overheat\",\"overhung\",\"overjoyed\",\"overkill\",\"overlabor\",\"overlaid\",\"overlap\",\"overlay\",\"overload\",\"overlook\",\"overlord\",\"overlying\",\"overnight\",\"overpass\",\"overpay\",\"overplant\",\"overplay\",\"overpower\",\"overprice\",\"overrate\",\"overreach\",\"overreact\",\"override\",\"overripe\",\"overrule\",\"overrun\",\"overshoot\",\"overshot\",\"oversight\",\"oversized\",\"oversleep\",\"oversold\",\"overspend\",\"overstate\",\"overstay\",\"overstep\",\"overstock\",\"overstuff\",\"oversweet\",\"overtake\",\"overthrow\",\"overtime\",\"overtly\",\"overtone\",\"overture\",\"overturn\",\"overuse\",\"overvalue\",\"overview\",\"overwrite\",\"owl\",\"oxford\",\"oxidant\",\"oxidation\",\"oxidize\",\"oxidizing\",\"oxygen\",\"oxymoron\",\"oyster\",\"ozone\",\"paced\",\"pacemaker\",\"pacific\",\"pacifier\",\"pacifism\",\"pacifist\",\"pacify\",\"padded\",\"padding\",\"paddle\",\"paddling\",\"padlock\",\"pagan\",\"pager\",\"paging\",\"pajamas\",\"palace\",\"palatable\",\"palm\",\"palpable\",\"palpitate\",\"paltry\",\"pampered\",\"pamperer\",\"pampers\",\"pamphlet\",\"panama\",\"pancake\",\"pancreas\",\"panda\",\"pandemic\",\"pang\",\"panhandle\",\"panic\",\"panning\",\"panorama\",\"panoramic\",\"panther\",\"pantomime\",\"pantry\",\"pants\",\"pantyhose\",\"paparazzi\",\"papaya\",\"paper\",\"paprika\",\"papyrus\",\"parabola\",\"parachute\",\"parade\",\"paradox\",\"paragraph\",\"parakeet\",\"paralegal\",\"paralyses\",\"paralysis\",\"paralyze\",\"paramedic\",\"parameter\",\"paramount\",\"parasail\",\"parasite\",\"parasitic\",\"parcel\",\"parched\",\"parchment\",\"pardon\",\"parish\",\"parka\",\"parking\",\"parkway\",\"parlor\",\"parmesan\",\"parole\",\"parrot\",\"parsley\",\"parsnip\",\"partake\",\"parted\",\"parting\",\"partition\",\"partly\",\"partner\",\"partridge\",\"party\",\"passable\",\"passably\",\"passage\",\"passcode\",\"passenger\",\"passerby\",\"passing\",\"passion\",\"passive\",\"passivism\",\"passover\",\"passport\",\"password\",\"pasta\",\"pasted\",\"pastel\",\"pastime\",\"pastor\",\"pastrami\",\"pasture\",\"pasty\",\"patchwork\",\"patchy\",\"paternal\",\"paternity\",\"path\",\"patience\",\"patient\",\"patio\",\"patriarch\",\"patriot\",\"patrol\",\"patronage\",\"patronize\",\"pauper\",\"pavement\",\"paver\",\"pavestone\",\"pavilion\",\"paving\",\"pawing\",\"payable\",\"payback\",\"paycheck\",\"payday\",\"payee\",\"payer\",\"paying\",\"payment\",\"payphone\",\"payroll\",\"pebble\",\"pebbly\",\"pecan\",\"pectin\",\"peculiar\",\"peddling\",\"pediatric\",\"pedicure\",\"pedigree\",\"pedometer\",\"pegboard\",\"pelican\",\"pellet\",\"pelt\",\"pelvis\",\"penalize\",\"penalty\",\"pencil\",\"pendant\",\"pending\",\"penholder\",\"penknife\",\"pennant\",\"penniless\",\"penny\",\"penpal\",\"pension\",\"pentagon\",\"pentagram\",\"pep\",\"perceive\",\"percent\",\"perch\",\"percolate\",\"perennial\",\"perfected\",\"perfectly\",\"perfume\",\"periscope\",\"perish\",\"perjurer\",\"perjury\",\"perkiness\",\"perky\",\"perm\",\"peroxide\",\"perpetual\",\"perplexed\",\"persecute\",\"persevere\",\"persuaded\",\"persuader\",\"pesky\",\"peso\",\"pessimism\",\"pessimist\",\"pester\",\"pesticide\",\"petal\",\"petite\",\"petition\",\"petri\",\"petroleum\",\"petted\",\"petticoat\",\"pettiness\",\"petty\",\"petunia\",\"phantom\",\"phobia\",\"phoenix\",\"phonebook\",\"phoney\",\"phonics\",\"phoniness\",\"phony\",\"phosphate\",\"photo\",\"phrase\",\"phrasing\",\"placard\",\"placate\",\"placidly\",\"plank\",\"planner\",\"plant\",\"plasma\",\"plaster\",\"plastic\",\"plated\",\"platform\",\"plating\",\"platinum\",\"platonic\",\"platter\",\"platypus\",\"plausible\",\"plausibly\",\"playable\",\"playback\",\"player\",\"playful\",\"playgroup\",\"playhouse\",\"playing\",\"playlist\",\"playmaker\",\"playmate\",\"playoff\",\"playpen\",\"playroom\",\"playset\",\"plaything\",\"playtime\",\"plaza\",\"pleading\",\"pleat\",\"pledge\",\"plentiful\",\"plenty\",\"plethora\",\"plexiglas\",\"pliable\",\"plod\",\"plop\",\"plot\",\"plow\",\"ploy\",\"pluck\",\"plug\",\"plunder\",\"plunging\",\"plural\",\"plus\",\"plutonium\",\"plywood\",\"poach\",\"pod\",\"poem\",\"poet\",\"pogo\",\"pointed\",\"pointer\",\"pointing\",\"pointless\",\"pointy\",\"poise\",\"poison\",\"poker\",\"poking\",\"polar\",\"police\",\"policy\",\"polio\",\"polish\",\"politely\",\"polka\",\"polo\",\"polyester\",\"polygon\",\"polygraph\",\"polymer\",\"poncho\",\"pond\",\"pony\",\"popcorn\",\"pope\",\"poplar\",\"popper\",\"poppy\",\"popsicle\",\"populace\",\"popular\",\"populate\",\"porcupine\",\"pork\",\"porous\",\"porridge\",\"portable\",\"portal\",\"portfolio\",\"porthole\",\"portion\",\"portly\",\"portside\",\"poser\",\"posh\",\"posing\",\"possible\",\"possibly\",\"possum\",\"postage\",\"postal\",\"postbox\",\"postcard\",\"posted\",\"poster\",\"posting\",\"postnasal\",\"posture\",\"postwar\",\"pouch\",\"pounce\",\"pouncing\",\"pound\",\"pouring\",\"pout\",\"powdered\",\"powdering\",\"powdery\",\"power\",\"powwow\",\"pox\",\"praising\",\"prance\",\"prancing\",\"pranker\",\"prankish\",\"prankster\",\"prayer\",\"praying\",\"preacher\",\"preaching\",\"preachy\",\"preamble\",\"precinct\",\"precise\",\"precision\",\"precook\",\"precut\",\"predator\",\"predefine\",\"predict\",\"preface\",\"prefix\",\"preflight\",\"preformed\",\"pregame\",\"pregnancy\",\"pregnant\",\"preheated\",\"prelaunch\",\"prelaw\",\"prelude\",\"premiere\",\"premises\",\"premium\",\"prenatal\",\"preoccupy\",\"preorder\",\"prepaid\",\"prepay\",\"preplan\",\"preppy\",\"preschool\",\"prescribe\",\"preseason\",\"preset\",\"preshow\",\"president\",\"presoak\",\"press\",\"presume\",\"presuming\",\"preteen\",\"pretended\",\"pretender\",\"pretense\",\"pretext\",\"pretty\",\"pretzel\",\"prevail\",\"prevalent\",\"prevent\",\"preview\",\"previous\",\"prewar\",\"prewashed\",\"prideful\",\"pried\",\"primal\",\"primarily\",\"primary\",\"primate\",\"primer\",\"primp\",\"princess\",\"print\",\"prior\",\"prism\",\"prison\",\"prissy\",\"pristine\",\"privacy\",\"private\",\"privatize\",\"prize\",\"proactive\",\"probable\",\"probably\",\"probation\",\"probe\",\"probing\",\"probiotic\",\"problem\",\"procedure\",\"process\",\"proclaim\",\"procreate\",\"procurer\",\"prodigal\",\"prodigy\",\"produce\",\"product\",\"profane\",\"profanity\",\"professed\",\"professor\",\"profile\",\"profound\",\"profusely\",\"progeny\",\"prognosis\",\"program\",\"progress\",\"projector\",\"prologue\",\"prolonged\",\"promenade\",\"prominent\",\"promoter\",\"promotion\",\"prompter\",\"promptly\",\"prone\",\"prong\",\"pronounce\",\"pronto\",\"proofing\",\"proofread\",\"proofs\",\"propeller\",\"properly\",\"property\",\"proponent\",\"proposal\",\"propose\",\"props\",\"prorate\",\"protector\",\"protegee\",\"proton\",\"prototype\",\"protozoan\",\"protract\",\"protrude\",\"proud\",\"provable\",\"proved\",\"proven\",\"provided\",\"provider\",\"providing\",\"province\",\"proving\",\"provoke\",\"provoking\",\"provolone\",\"prowess\",\"prowler\",\"prowling\",\"proximity\",\"proxy\",\"prozac\",\"prude\",\"prudishly\",\"prune\",\"pruning\",\"pry\",\"psychic\",\"public\",\"publisher\",\"pucker\",\"pueblo\",\"pug\",\"pull\",\"pulmonary\",\"pulp\",\"pulsate\",\"pulse\",\"pulverize\",\"puma\",\"pumice\",\"pummel\",\"punch\",\"punctual\",\"punctuate\",\"punctured\",\"pungent\",\"punisher\",\"punk\",\"pupil\",\"puppet\",\"puppy\",\"purchase\",\"pureblood\",\"purebred\",\"purely\",\"pureness\",\"purgatory\",\"purge\",\"purging\",\"purifier\",\"purify\",\"purist\",\"puritan\",\"purity\",\"purple\",\"purplish\",\"purposely\",\"purr\",\"purse\",\"pursuable\",\"pursuant\",\"pursuit\",\"purveyor\",\"pushcart\",\"pushchair\",\"pusher\",\"pushiness\",\"pushing\",\"pushover\",\"pushpin\",\"pushup\",\"pushy\",\"putdown\",\"putt\",\"puzzle\",\"puzzling\",\"pyramid\",\"pyromania\",\"python\",\"quack\",\"quadrant\",\"quail\",\"quaintly\",\"quake\",\"quaking\",\"qualified\",\"qualifier\",\"qualify\",\"quality\",\"qualm\",\"quantum\",\"quarrel\",\"quarry\",\"quartered\",\"quarterly\",\"quarters\",\"quartet\",\"quench\",\"query\",\"quicken\",\"quickly\",\"quickness\",\"quicksand\",\"quickstep\",\"quiet\",\"quill\",\"quilt\",\"quintet\",\"quintuple\",\"quirk\",\"quit\",\"quiver\",\"quizzical\",\"quotable\",\"quotation\",\"quote\",\"rabid\",\"race\",\"racing\",\"racism\",\"rack\",\"racoon\",\"radar\",\"radial\",\"radiance\",\"radiantly\",\"radiated\",\"radiation\",\"radiator\",\"radio\",\"radish\",\"raffle\",\"raft\",\"rage\",\"ragged\",\"raging\",\"ragweed\",\"raider\",\"railcar\",\"railing\",\"railroad\",\"railway\",\"raisin\",\"rake\",\"raking\",\"rally\",\"ramble\",\"rambling\",\"ramp\",\"ramrod\",\"ranch\",\"rancidity\",\"random\",\"ranged\",\"ranger\",\"ranging\",\"ranked\",\"ranking\",\"ransack\",\"ranting\",\"rants\",\"rare\",\"rarity\",\"rascal\",\"rash\",\"rasping\",\"ravage\",\"raven\",\"ravine\",\"raving\",\"ravioli\",\"ravishing\",\"reabsorb\",\"reach\",\"reacquire\",\"reaction\",\"reactive\",\"reactor\",\"reaffirm\",\"ream\",\"reanalyze\",\"reappear\",\"reapply\",\"reappoint\",\"reapprove\",\"rearrange\",\"rearview\",\"reason\",\"reassign\",\"reassure\",\"reattach\",\"reawake\",\"rebalance\",\"rebate\",\"rebel\",\"rebirth\",\"reboot\",\"reborn\",\"rebound\",\"rebuff\",\"rebuild\",\"rebuilt\",\"reburial\",\"rebuttal\",\"recall\",\"recant\",\"recapture\",\"recast\",\"recede\",\"recent\",\"recess\",\"recharger\",\"recipient\",\"recital\",\"recite\",\"reckless\",\"reclaim\",\"recliner\",\"reclining\",\"recluse\",\"reclusive\",\"recognize\",\"recoil\",\"recollect\",\"recolor\",\"reconcile\",\"reconfirm\",\"reconvene\",\"recopy\",\"record\",\"recount\",\"recoup\",\"recovery\",\"recreate\",\"rectal\",\"rectangle\",\"rectified\",\"rectify\",\"recycled\",\"recycler\",\"recycling\",\"reemerge\",\"reenact\",\"reenter\",\"reentry\",\"reexamine\",\"referable\",\"referee\",\"reference\",\"refill\",\"refinance\",\"refined\",\"refinery\",\"refining\",\"refinish\",\"reflected\",\"reflector\",\"reflex\",\"reflux\",\"refocus\",\"refold\",\"reforest\",\"reformat\",\"reformed\",\"reformer\",\"reformist\",\"refract\",\"refrain\",\"refreeze\",\"refresh\",\"refried\",\"refueling\",\"refund\",\"refurbish\",\"refurnish\",\"refusal\",\"refuse\",\"refusing\",\"refutable\",\"refute\",\"regain\",\"regalia\",\"regally\",\"reggae\",\"regime\",\"region\",\"register\",\"registrar\",\"registry\",\"regress\",\"regretful\",\"regroup\",\"regular\",\"regulate\",\"regulator\",\"rehab\",\"reheat\",\"rehire\",\"rehydrate\",\"reimburse\",\"reissue\",\"reiterate\",\"rejoice\",\"rejoicing\",\"rejoin\",\"rekindle\",\"relapse\",\"relapsing\",\"relatable\",\"related\",\"relation\",\"relative\",\"relax\",\"relay\",\"relearn\",\"release\",\"relenting\",\"reliable\",\"reliably\",\"reliance\",\"reliant\",\"relic\",\"relieve\",\"relieving\",\"relight\",\"relish\",\"relive\",\"reload\",\"relocate\",\"relock\",\"reluctant\",\"rely\",\"remake\",\"remark\",\"remarry\",\"rematch\",\"remedial\",\"remedy\",\"remember\",\"reminder\",\"remindful\",\"remission\",\"remix\",\"remnant\",\"remodeler\",\"remold\",\"remorse\",\"remote\",\"removable\",\"removal\",\"removed\",\"remover\",\"removing\",\"rename\",\"renderer\",\"rendering\",\"rendition\",\"renegade\",\"renewable\",\"renewably\",\"renewal\",\"renewed\",\"renounce\",\"renovate\",\"renovator\",\"rentable\",\"rental\",\"rented\",\"renter\",\"reoccupy\",\"reoccur\",\"reopen\",\"reorder\",\"repackage\",\"repacking\",\"repaint\",\"repair\",\"repave\",\"repaying\",\"repayment\",\"repeal\",\"repeated\",\"repeater\",\"repent\",\"rephrase\",\"replace\",\"replay\",\"replica\",\"reply\",\"reporter\",\"repose\",\"repossess\",\"repost\",\"repressed\",\"reprimand\",\"reprint\",\"reprise\",\"reproach\",\"reprocess\",\"reproduce\",\"reprogram\",\"reps\",\"reptile\",\"reptilian\",\"repugnant\",\"repulsion\",\"repulsive\",\"repurpose\",\"reputable\",\"reputably\",\"request\",\"require\",\"requisite\",\"reroute\",\"rerun\",\"resale\",\"resample\",\"rescuer\",\"reseal\",\"research\",\"reselect\",\"reseller\",\"resemble\",\"resend\",\"resent\",\"reset\",\"reshape\",\"reshoot\",\"reshuffle\",\"residence\",\"residency\",\"resident\",\"residual\",\"residue\",\"resigned\",\"resilient\",\"resistant\",\"resisting\",\"resize\",\"resolute\",\"resolved\",\"resonant\",\"resonate\",\"resort\",\"resource\",\"respect\",\"resubmit\",\"result\",\"resume\",\"resupply\",\"resurface\",\"resurrect\",\"retail\",\"retainer\",\"retaining\",\"retake\",\"retaliate\",\"retention\",\"rethink\",\"retinal\",\"retired\",\"retiree\",\"retiring\",\"retold\",\"retool\",\"retorted\",\"retouch\",\"retrace\",\"retract\",\"retrain\",\"retread\",\"retreat\",\"retrial\",\"retrieval\",\"retriever\",\"retry\",\"return\",\"retying\",\"retype\",\"reunion\",\"reunite\",\"reusable\",\"reuse\",\"reveal\",\"reveler\",\"revenge\",\"revenue\",\"reverb\",\"revered\",\"reverence\",\"reverend\",\"reversal\",\"reverse\",\"reversing\",\"reversion\",\"revert\",\"revisable\",\"revise\",\"revision\",\"revisit\",\"revivable\",\"revival\",\"reviver\",\"reviving\",\"revocable\",\"revoke\",\"revolt\",\"revolver\",\"revolving\",\"reward\",\"rewash\",\"rewind\",\"rewire\",\"reword\",\"rework\",\"rewrap\",\"rewrite\",\"rhyme\",\"ribbon\",\"ribcage\",\"rice\",\"riches\",\"richly\",\"richness\",\"rickety\",\"ricotta\",\"riddance\",\"ridden\",\"ride\",\"riding\",\"rifling\",\"rift\",\"rigging\",\"rigid\",\"rigor\",\"rimless\",\"rimmed\",\"rind\",\"rink\",\"rinse\",\"rinsing\",\"riot\",\"ripcord\",\"ripeness\",\"ripening\",\"ripping\",\"ripple\",\"rippling\",\"riptide\",\"rise\",\"rising\",\"risk\",\"risotto\",\"ritalin\",\"ritzy\",\"rival\",\"riverbank\",\"riverbed\",\"riverboat\",\"riverside\",\"riveter\",\"riveting\",\"roamer\",\"roaming\",\"roast\",\"robbing\",\"robe\",\"robin\",\"robotics\",\"robust\",\"rockband\",\"rocker\",\"rocket\",\"rockfish\",\"rockiness\",\"rocking\",\"rocklike\",\"rockslide\",\"rockstar\",\"rocky\",\"rogue\",\"roman\",\"romp\",\"rope\",\"roping\",\"roster\",\"rosy\",\"rotten\",\"rotting\",\"rotunda\",\"roulette\",\"rounding\",\"roundish\",\"roundness\",\"roundup\",\"roundworm\",\"routine\",\"routing\",\"rover\",\"roving\",\"royal\",\"rubbed\",\"rubber\",\"rubbing\",\"rubble\",\"rubdown\",\"ruby\",\"ruckus\",\"rudder\",\"rug\",\"ruined\",\"rule\",\"rumble\",\"rumbling\",\"rummage\",\"rumor\",\"runaround\",\"rundown\",\"runner\",\"running\",\"runny\",\"runt\",\"runway\",\"rupture\",\"rural\",\"ruse\",\"rush\",\"rust\",\"rut\",\"sabbath\",\"sabotage\",\"sacrament\",\"sacred\",\"sacrifice\",\"sadden\",\"saddlebag\",\"saddled\",\"saddling\",\"sadly\",\"sadness\",\"safari\",\"safeguard\",\"safehouse\",\"safely\",\"safeness\",\"saffron\",\"saga\",\"sage\",\"sagging\",\"saggy\",\"said\",\"saint\",\"sake\",\"salad\",\"salami\",\"salaried\",\"salary\",\"saline\",\"salon\",\"saloon\",\"salsa\",\"salt\",\"salutary\",\"salute\",\"salvage\",\"salvaging\",\"salvation\",\"same\",\"sample\",\"sampling\",\"sanction\",\"sanctity\",\"sanctuary\",\"sandal\",\"sandbag\",\"sandbank\",\"sandbar\",\"sandblast\",\"sandbox\",\"sanded\",\"sandfish\",\"sanding\",\"sandlot\",\"sandpaper\",\"sandpit\",\"sandstone\",\"sandstorm\",\"sandworm\",\"sandy\",\"sanitary\",\"sanitizer\",\"sank\",\"santa\",\"sapling\",\"sappiness\",\"sappy\",\"sarcasm\",\"sarcastic\",\"sardine\",\"sash\",\"sasquatch\",\"sassy\",\"satchel\",\"satiable\",\"satin\",\"satirical\",\"satisfied\",\"satisfy\",\"saturate\",\"saturday\",\"sauciness\",\"saucy\",\"sauna\",\"savage\",\"savanna\",\"saved\",\"savings\",\"savior\",\"savor\",\"saxophone\",\"say\",\"scabbed\",\"scabby\",\"scalded\",\"scalding\",\"scale\",\"scaling\",\"scallion\",\"scallop\",\"scalping\",\"scam\",\"scandal\",\"scanner\",\"scanning\",\"scant\",\"scapegoat\",\"scarce\",\"scarcity\",\"scarecrow\",\"scared\",\"scarf\",\"scarily\",\"scariness\",\"scarring\",\"scary\",\"scavenger\",\"scenic\",\"schedule\",\"schematic\",\"scheme\",\"scheming\",\"schilling\",\"schnapps\",\"scholar\",\"science\",\"scientist\",\"scion\",\"scoff\",\"scolding\",\"scone\",\"scoop\",\"scooter\",\"scope\",\"scorch\",\"scorebook\",\"scorecard\",\"scored\",\"scoreless\",\"scorer\",\"scoring\",\"scorn\",\"scorpion\",\"scotch\",\"scoundrel\",\"scoured\",\"scouring\",\"scouting\",\"scouts\",\"scowling\",\"scrabble\",\"scraggly\",\"scrambled\",\"scrambler\",\"scrap\",\"scratch\",\"scrawny\",\"screen\",\"scribble\",\"scribe\",\"scribing\",\"scrimmage\",\"script\",\"scroll\",\"scrooge\",\"scrounger\",\"scrubbed\",\"scrubber\",\"scruffy\",\"scrunch\",\"scrutiny\",\"scuba\",\"scuff\",\"sculptor\",\"sculpture\",\"scurvy\",\"scuttle\",\"secluded\",\"secluding\",\"seclusion\",\"second\",\"secrecy\",\"secret\",\"sectional\",\"sector\",\"secular\",\"securely\",\"security\",\"sedan\",\"sedate\",\"sedation\",\"sedative\",\"sediment\",\"seduce\",\"seducing\",\"segment\",\"seismic\",\"seizing\",\"seldom\",\"selected\",\"selection\",\"selective\",\"selector\",\"self\",\"seltzer\",\"semantic\",\"semester\",\"semicolon\",\"semifinal\",\"seminar\",\"semisoft\",\"semisweet\",\"senate\",\"senator\",\"send\",\"senior\",\"senorita\",\"sensation\",\"sensitive\",\"sensitize\",\"sensually\",\"sensuous\",\"sepia\",\"september\",\"septic\",\"septum\",\"sequel\",\"sequence\",\"sequester\",\"series\",\"sermon\",\"serotonin\",\"serpent\",\"serrated\",\"serve\",\"service\",\"serving\",\"sesame\",\"sessions\",\"setback\",\"setting\",\"settle\",\"settling\",\"setup\",\"sevenfold\",\"seventeen\",\"seventh\",\"seventy\",\"severity\",\"shabby\",\"shack\",\"shaded\",\"shadily\",\"shadiness\",\"shading\",\"shadow\",\"shady\",\"shaft\",\"shakable\",\"shakily\",\"shakiness\",\"shaking\",\"shaky\",\"shale\",\"shallot\",\"shallow\",\"shame\",\"shampoo\",\"shamrock\",\"shank\",\"shanty\",\"shape\",\"shaping\",\"share\",\"sharpener\",\"sharper\",\"sharpie\",\"sharply\",\"sharpness\",\"shawl\",\"sheath\",\"shed\",\"sheep\",\"sheet\",\"shelf\",\"shell\",\"shelter\",\"shelve\",\"shelving\",\"sherry\",\"shield\",\"shifter\",\"shifting\",\"shiftless\",\"shifty\",\"shimmer\",\"shimmy\",\"shindig\",\"shine\",\"shingle\",\"shininess\",\"shining\",\"shiny\",\"ship\",\"shirt\",\"shivering\",\"shock\",\"shone\",\"shoplift\",\"shopper\",\"shopping\",\"shoptalk\",\"shore\",\"shortage\",\"shortcake\",\"shortcut\",\"shorten\",\"shorter\",\"shorthand\",\"shortlist\",\"shortly\",\"shortness\",\"shorts\",\"shortwave\",\"shorty\",\"shout\",\"shove\",\"showbiz\",\"showcase\",\"showdown\",\"shower\",\"showgirl\",\"showing\",\"showman\",\"shown\",\"showoff\",\"showpiece\",\"showplace\",\"showroom\",\"showy\",\"shrank\",\"shrapnel\",\"shredder\",\"shredding\",\"shrewdly\",\"shriek\",\"shrill\",\"shrimp\",\"shrine\",\"shrink\",\"shrivel\",\"shrouded\",\"shrubbery\",\"shrubs\",\"shrug\",\"shrunk\",\"shucking\",\"shudder\",\"shuffle\",\"shuffling\",\"shun\",\"shush\",\"shut\",\"shy\",\"siamese\",\"siberian\",\"sibling\",\"siding\",\"sierra\",\"siesta\",\"sift\",\"sighing\",\"silenced\",\"silencer\",\"silent\",\"silica\",\"silicon\",\"silk\",\"silliness\",\"silly\",\"silo\",\"silt\",\"silver\",\"similarly\",\"simile\",\"simmering\",\"simple\",\"simplify\",\"simply\",\"sincere\",\"sincerity\",\"singer\",\"singing\",\"single\",\"singular\",\"sinister\",\"sinless\",\"sinner\",\"sinuous\",\"sip\",\"siren\",\"sister\",\"sitcom\",\"sitter\",\"sitting\",\"situated\",\"situation\",\"sixfold\",\"sixteen\",\"sixth\",\"sixties\",\"sixtieth\",\"sixtyfold\",\"sizable\",\"sizably\",\"size\",\"sizing\",\"sizzle\",\"sizzling\",\"skater\",\"skating\",\"skedaddle\",\"skeletal\",\"skeleton\",\"skeptic\",\"sketch\",\"skewed\",\"skewer\",\"skid\",\"skied\",\"skier\",\"skies\",\"skiing\",\"skilled\",\"skillet\",\"skillful\",\"skimmed\",\"skimmer\",\"skimming\",\"skimpily\",\"skincare\",\"skinhead\",\"skinless\",\"skinning\",\"skinny\",\"skintight\",\"skipper\",\"skipping\",\"skirmish\",\"skirt\",\"skittle\",\"skydiver\",\"skylight\",\"skyline\",\"skype\",\"skyrocket\",\"skyward\",\"slab\",\"slacked\",\"slacker\",\"slacking\",\"slackness\",\"slacks\",\"slain\",\"slam\",\"slander\",\"slang\",\"slapping\",\"slapstick\",\"slashed\",\"slashing\",\"slate\",\"slather\",\"slaw\",\"sled\",\"sleek\",\"sleep\",\"sleet\",\"sleeve\",\"slept\",\"sliceable\",\"sliced\",\"slicer\",\"slicing\",\"slick\",\"slider\",\"slideshow\",\"sliding\",\"slighted\",\"slighting\",\"slightly\",\"slimness\",\"slimy\",\"slinging\",\"slingshot\",\"slinky\",\"slip\",\"slit\",\"sliver\",\"slobbery\",\"slogan\",\"sloped\",\"sloping\",\"sloppily\",\"sloppy\",\"slot\",\"slouching\",\"slouchy\",\"sludge\",\"slug\",\"slum\",\"slurp\",\"slush\",\"sly\",\"small\",\"smartly\",\"smartness\",\"smasher\",\"smashing\",\"smashup\",\"smell\",\"smelting\",\"smile\",\"smilingly\",\"smirk\",\"smite\",\"smith\",\"smitten\",\"smock\",\"smog\",\"smoked\",\"smokeless\",\"smokiness\",\"smoking\",\"smoky\",\"smolder\",\"smooth\",\"smother\",\"smudge\",\"smudgy\",\"smuggler\",\"smuggling\",\"smugly\",\"smugness\",\"snack\",\"snagged\",\"snaking\",\"snap\",\"snare\",\"snarl\",\"snazzy\",\"sneak\",\"sneer\",\"sneeze\",\"sneezing\",\"snide\",\"sniff\",\"snippet\",\"snipping\",\"snitch\",\"snooper\",\"snooze\",\"snore\",\"snoring\",\"snorkel\",\"snort\",\"snout\",\"snowbird\",\"snowboard\",\"snowbound\",\"snowcap\",\"snowdrift\",\"snowdrop\",\"snowfall\",\"snowfield\",\"snowflake\",\"snowiness\",\"snowless\",\"snowman\",\"snowplow\",\"snowshoe\",\"snowstorm\",\"snowsuit\",\"snowy\",\"snub\",\"snuff\",\"snuggle\",\"snugly\",\"snugness\",\"speak\",\"spearfish\",\"spearhead\",\"spearman\",\"spearmint\",\"species\",\"specimen\",\"specked\",\"speckled\",\"specks\",\"spectacle\",\"spectator\",\"spectrum\",\"speculate\",\"speech\",\"speed\",\"spellbind\",\"speller\",\"spelling\",\"spendable\",\"spender\",\"spending\",\"spent\",\"spew\",\"sphere\",\"spherical\",\"sphinx\",\"spider\",\"spied\",\"spiffy\",\"spill\",\"spilt\",\"spinach\",\"spinal\",\"spindle\",\"spinner\",\"spinning\",\"spinout\",\"spinster\",\"spiny\",\"spiral\",\"spirited\",\"spiritism\",\"spirits\",\"spiritual\",\"splashed\",\"splashing\",\"splashy\",\"splatter\",\"spleen\",\"splendid\",\"splendor\",\"splice\",\"splicing\",\"splinter\",\"splotchy\",\"splurge\",\"spoilage\",\"spoiled\",\"spoiler\",\"spoiling\",\"spoils\",\"spoken\",\"spokesman\",\"sponge\",\"spongy\",\"sponsor\",\"spoof\",\"spookily\",\"spooky\",\"spool\",\"spoon\",\"spore\",\"sporting\",\"sports\",\"sporty\",\"spotless\",\"spotlight\",\"spotted\",\"spotter\",\"spotting\",\"spotty\",\"spousal\",\"spouse\",\"spout\",\"sprain\",\"sprang\",\"sprawl\",\"spray\",\"spree\",\"sprig\",\"spring\",\"sprinkled\",\"sprinkler\",\"sprint\",\"sprite\",\"sprout\",\"spruce\",\"sprung\",\"spry\",\"spud\",\"spur\",\"sputter\",\"spyglass\",\"squabble\",\"squad\",\"squall\",\"squander\",\"squash\",\"squatted\",\"squatter\",\"squatting\",\"squeak\",\"squealer\",\"squealing\",\"squeamish\",\"squeegee\",\"squeeze\",\"squeezing\",\"squid\",\"squiggle\",\"squiggly\",\"squint\",\"squire\",\"squirt\",\"squishier\",\"squishy\",\"stability\",\"stabilize\",\"stable\",\"stack\",\"stadium\",\"staff\",\"stage\",\"staging\",\"stagnant\",\"stagnate\",\"stainable\",\"stained\",\"staining\",\"stainless\",\"stalemate\",\"staleness\",\"stalling\",\"stallion\",\"stamina\",\"stammer\",\"stamp\",\"stand\",\"stank\",\"staple\",\"stapling\",\"starboard\",\"starch\",\"stardom\",\"stardust\",\"starfish\",\"stargazer\",\"staring\",\"stark\",\"starless\",\"starlet\",\"starlight\",\"starlit\",\"starring\",\"starry\",\"starship\",\"starter\",\"starting\",\"startle\",\"startling\",\"startup\",\"starved\",\"starving\",\"stash\",\"state\",\"static\",\"statistic\",\"statue\",\"stature\",\"status\",\"statute\",\"statutory\",\"staunch\",\"stays\",\"steadfast\",\"steadier\",\"steadily\",\"steadying\",\"steam\",\"steed\",\"steep\",\"steerable\",\"steering\",\"steersman\",\"stegosaur\",\"stellar\",\"stem\",\"stench\",\"stencil\",\"step\",\"stereo\",\"sterile\",\"sterility\",\"sterilize\",\"sterling\",\"sternness\",\"sternum\",\"stew\",\"stick\",\"stiffen\",\"stiffly\",\"stiffness\",\"stifle\",\"stifling\",\"stillness\",\"stilt\",\"stimulant\",\"stimulate\",\"stimuli\",\"stimulus\",\"stinger\",\"stingily\",\"stinging\",\"stingray\",\"stingy\",\"stinking\",\"stinky\",\"stipend\",\"stipulate\",\"stir\",\"stitch\",\"stock\",\"stoic\",\"stoke\",\"stole\",\"stomp\",\"stonewall\",\"stoneware\",\"stonework\",\"stoning\",\"stony\",\"stood\",\"stooge\",\"stool\",\"stoop\",\"stoplight\",\"stoppable\",\"stoppage\",\"stopped\",\"stopper\",\"stopping\",\"stopwatch\",\"storable\",\"storage\",\"storeroom\",\"storewide\",\"storm\",\"stout\",\"stove\",\"stowaway\",\"stowing\",\"straddle\",\"straggler\",\"strained\",\"strainer\",\"straining\",\"strangely\",\"stranger\",\"strangle\",\"strategic\",\"strategy\",\"stratus\",\"straw\",\"stray\",\"streak\",\"stream\",\"street\",\"strength\",\"strenuous\",\"strep\",\"stress\",\"stretch\",\"strewn\",\"stricken\",\"strict\",\"stride\",\"strife\",\"strike\",\"striking\",\"strive\",\"striving\",\"strobe\",\"strode\",\"stroller\",\"strongbox\",\"strongly\",\"strongman\",\"struck\",\"structure\",\"strudel\",\"struggle\",\"strum\",\"strung\",\"strut\",\"stubbed\",\"stubble\",\"stubbly\",\"stubborn\",\"stucco\",\"stuck\",\"student\",\"studied\",\"studio\",\"study\",\"stuffed\",\"stuffing\",\"stuffy\",\"stumble\",\"stumbling\",\"stump\",\"stung\",\"stunned\",\"stunner\",\"stunning\",\"stunt\",\"stupor\",\"sturdily\",\"sturdy\",\"styling\",\"stylishly\",\"stylist\",\"stylized\",\"stylus\",\"suave\",\"subarctic\",\"subatomic\",\"subdivide\",\"subdued\",\"subduing\",\"subfloor\",\"subgroup\",\"subheader\",\"subject\",\"sublease\",\"sublet\",\"sublevel\",\"sublime\",\"submarine\",\"submerge\",\"submersed\",\"submitter\",\"subpanel\",\"subpar\",\"subplot\",\"subprime\",\"subscribe\",\"subscript\",\"subsector\",\"subside\",\"subsiding\",\"subsidize\",\"subsidy\",\"subsoil\",\"subsonic\",\"substance\",\"subsystem\",\"subtext\",\"subtitle\",\"subtly\",\"subtotal\",\"subtract\",\"subtype\",\"suburb\",\"subway\",\"subwoofer\",\"subzero\",\"succulent\",\"such\",\"suction\",\"sudden\",\"sudoku\",\"suds\",\"sufferer\",\"suffering\",\"suffice\",\"suffix\",\"suffocate\",\"suffrage\",\"sugar\",\"suggest\",\"suing\",\"suitable\",\"suitably\",\"suitcase\",\"suitor\",\"sulfate\",\"sulfide\",\"sulfite\",\"sulfur\",\"sulk\",\"sullen\",\"sulphate\",\"sulphuric\",\"sultry\",\"superbowl\",\"superglue\",\"superhero\",\"superior\",\"superjet\",\"superman\",\"supermom\",\"supernova\",\"supervise\",\"supper\",\"supplier\",\"supply\",\"support\",\"supremacy\",\"supreme\",\"surcharge\",\"surely\",\"sureness\",\"surface\",\"surfacing\",\"surfboard\",\"surfer\",\"surgery\",\"surgical\",\"surging\",\"surname\",\"surpass\",\"surplus\",\"surprise\",\"surreal\",\"surrender\",\"surrogate\",\"surround\",\"survey\",\"survival\",\"survive\",\"surviving\",\"survivor\",\"sushi\",\"suspect\",\"suspend\",\"suspense\",\"sustained\",\"sustainer\",\"swab\",\"swaddling\",\"swagger\",\"swampland\",\"swan\",\"swapping\",\"swarm\",\"sway\",\"swear\",\"sweat\",\"sweep\",\"swell\",\"swept\",\"swerve\",\"swifter\",\"swiftly\",\"swiftness\",\"swimmable\",\"swimmer\",\"swimming\",\"swimsuit\",\"swimwear\",\"swinger\",\"swinging\",\"swipe\",\"swirl\",\"switch\",\"swivel\",\"swizzle\",\"swooned\",\"swoop\",\"swoosh\",\"swore\",\"sworn\",\"swung\",\"sycamore\",\"sympathy\",\"symphonic\",\"symphony\",\"symptom\",\"synapse\",\"syndrome\",\"synergy\",\"synopses\",\"synopsis\",\"synthesis\",\"synthetic\",\"syrup\",\"system\",\"t-shirt\",\"tabasco\",\"tabby\",\"tableful\",\"tables\",\"tablet\",\"tableware\",\"tabloid\",\"tackiness\",\"tacking\",\"tackle\",\"tackling\",\"tacky\",\"taco\",\"tactful\",\"tactical\",\"tactics\",\"tactile\",\"tactless\",\"tadpole\",\"taekwondo\",\"tag\",\"tainted\",\"take\",\"taking\",\"talcum\",\"talisman\",\"tall\",\"talon\",\"tamale\",\"tameness\",\"tamer\",\"tamper\",\"tank\",\"tanned\",\"tannery\",\"tanning\",\"tantrum\",\"tapeless\",\"tapered\",\"tapering\",\"tapestry\",\"tapioca\",\"tapping\",\"taps\",\"tarantula\",\"target\",\"tarmac\",\"tarnish\",\"tarot\",\"tartar\",\"tartly\",\"tartness\",\"task\",\"tassel\",\"taste\",\"tastiness\",\"tasting\",\"tasty\",\"tattered\",\"tattle\",\"tattling\",\"tattoo\",\"taunt\",\"tavern\",\"thank\",\"that\",\"thaw\",\"theater\",\"theatrics\",\"thee\",\"theft\",\"theme\",\"theology\",\"theorize\",\"thermal\",\"thermos\",\"thesaurus\",\"these\",\"thesis\",\"thespian\",\"thicken\",\"thicket\",\"thickness\",\"thieving\",\"thievish\",\"thigh\",\"thimble\",\"thing\",\"think\",\"thinly\",\"thinner\",\"thinness\",\"thinning\",\"thirstily\",\"thirsting\",\"thirsty\",\"thirteen\",\"thirty\",\"thong\",\"thorn\",\"those\",\"thousand\",\"thrash\",\"thread\",\"threaten\",\"threefold\",\"thrift\",\"thrill\",\"thrive\",\"thriving\",\"throat\",\"throbbing\",\"throng\",\"throttle\",\"throwaway\",\"throwback\",\"thrower\",\"throwing\",\"thud\",\"thumb\",\"thumping\",\"thursday\",\"thus\",\"thwarting\",\"thyself\",\"tiara\",\"tibia\",\"tidal\",\"tidbit\",\"tidiness\",\"tidings\",\"tidy\",\"tiger\",\"tighten\",\"tightly\",\"tightness\",\"tightrope\",\"tightwad\",\"tigress\",\"tile\",\"tiling\",\"till\",\"tilt\",\"timid\",\"timing\",\"timothy\",\"tinderbox\",\"tinfoil\",\"tingle\",\"tingling\",\"tingly\",\"tinker\",\"tinkling\",\"tinsel\",\"tinsmith\",\"tint\",\"tinwork\",\"tiny\",\"tipoff\",\"tipped\",\"tipper\",\"tipping\",\"tiptoeing\",\"tiptop\",\"tiring\",\"tissue\",\"trace\",\"tracing\",\"track\",\"traction\",\"tractor\",\"trade\",\"trading\",\"tradition\",\"traffic\",\"tragedy\",\"trailing\",\"trailside\",\"train\",\"traitor\",\"trance\",\"tranquil\",\"transfer\",\"transform\",\"translate\",\"transpire\",\"transport\",\"transpose\",\"trapdoor\",\"trapeze\",\"trapezoid\",\"trapped\",\"trapper\",\"trapping\",\"traps\",\"trash\",\"travel\",\"traverse\",\"travesty\",\"tray\",\"treachery\",\"treading\",\"treadmill\",\"treason\",\"treat\",\"treble\",\"tree\",\"trekker\",\"tremble\",\"trembling\",\"tremor\",\"trench\",\"trend\",\"trespass\",\"triage\",\"trial\",\"triangle\",\"tribesman\",\"tribunal\",\"tribune\",\"tributary\",\"tribute\",\"triceps\",\"trickery\",\"trickily\",\"tricking\",\"trickle\",\"trickster\",\"tricky\",\"tricolor\",\"tricycle\",\"trident\",\"tried\",\"trifle\",\"trifocals\",\"trillion\",\"trilogy\",\"trimester\",\"trimmer\",\"trimming\",\"trimness\",\"trinity\",\"trio\",\"tripod\",\"tripping\",\"triumph\",\"trivial\",\"trodden\",\"trolling\",\"trombone\",\"trophy\",\"tropical\",\"tropics\",\"trouble\",\"troubling\",\"trough\",\"trousers\",\"trout\",\"trowel\",\"truce\",\"truck\",\"truffle\",\"trump\",\"trunks\",\"trustable\",\"trustee\",\"trustful\",\"trusting\",\"trustless\",\"truth\",\"try\",\"tubby\",\"tubeless\",\"tubular\",\"tucking\",\"tuesday\",\"tug\",\"tuition\",\"tulip\",\"tumble\",\"tumbling\",\"tummy\",\"turban\",\"turbine\",\"turbofan\",\"turbojet\",\"turbulent\",\"turf\",\"turkey\",\"turmoil\",\"turret\",\"turtle\",\"tusk\",\"tutor\",\"tutu\",\"tux\",\"tweak\",\"tweed\",\"tweet\",\"tweezers\",\"twelve\",\"twentieth\",\"twenty\",\"twerp\",\"twice\",\"twiddle\",\"twiddling\",\"twig\",\"twilight\",\"twine\",\"twins\",\"twirl\",\"twistable\",\"twisted\",\"twister\",\"twisting\",\"twisty\",\"twitch\",\"twitter\",\"tycoon\",\"tying\",\"tyke\",\"udder\",\"ultimate\",\"ultimatum\",\"ultra\",\"umbilical\",\"umbrella\",\"umpire\",\"unabashed\",\"unable\",\"unadorned\",\"unadvised\",\"unafraid\",\"unaired\",\"unaligned\",\"unaltered\",\"unarmored\",\"unashamed\",\"unaudited\",\"unawake\",\"unaware\",\"unbaked\",\"unbalance\",\"unbeaten\",\"unbend\",\"unbent\",\"unbiased\",\"unbitten\",\"unblended\",\"unblessed\",\"unblock\",\"unbolted\",\"unbounded\",\"unboxed\",\"unbraided\",\"unbridle\",\"unbroken\",\"unbuckled\",\"unbundle\",\"unburned\",\"unbutton\",\"uncanny\",\"uncapped\",\"uncaring\",\"uncertain\",\"unchain\",\"unchanged\",\"uncharted\",\"uncheck\",\"uncivil\",\"unclad\",\"unclaimed\",\"unclamped\",\"unclasp\",\"uncle\",\"unclip\",\"uncloak\",\"unclog\",\"unclothed\",\"uncoated\",\"uncoiled\",\"uncolored\",\"uncombed\",\"uncommon\",\"uncooked\",\"uncork\",\"uncorrupt\",\"uncounted\",\"uncouple\",\"uncouth\",\"uncover\",\"uncross\",\"uncrown\",\"uncrushed\",\"uncured\",\"uncurious\",\"uncurled\",\"uncut\",\"undamaged\",\"undated\",\"undaunted\",\"undead\",\"undecided\",\"undefined\",\"underage\",\"underarm\",\"undercoat\",\"undercook\",\"undercut\",\"underdog\",\"underdone\",\"underfed\",\"underfeed\",\"underfoot\",\"undergo\",\"undergrad\",\"underhand\",\"underline\",\"underling\",\"undermine\",\"undermost\",\"underpaid\",\"underpass\",\"underpay\",\"underrate\",\"undertake\",\"undertone\",\"undertook\",\"undertow\",\"underuse\",\"underwear\",\"underwent\",\"underwire\",\"undesired\",\"undiluted\",\"undivided\",\"undocked\",\"undoing\",\"undone\",\"undrafted\",\"undress\",\"undrilled\",\"undusted\",\"undying\",\"unearned\",\"unearth\",\"unease\",\"uneasily\",\"uneasy\",\"uneatable\",\"uneaten\",\"unedited\",\"unelected\",\"unending\",\"unengaged\",\"unenvied\",\"unequal\",\"unethical\",\"uneven\",\"unexpired\",\"unexposed\",\"unfailing\",\"unfair\",\"unfasten\",\"unfazed\",\"unfeeling\",\"unfiled\",\"unfilled\",\"unfitted\",\"unfitting\",\"unfixable\",\"unfixed\",\"unflawed\",\"unfocused\",\"unfold\",\"unfounded\",\"unframed\",\"unfreeze\",\"unfrosted\",\"unfrozen\",\"unfunded\",\"unglazed\",\"ungloved\",\"unglue\",\"ungodly\",\"ungraded\",\"ungreased\",\"unguarded\",\"unguided\",\"unhappily\",\"unhappy\",\"unharmed\",\"unhealthy\",\"unheard\",\"unhearing\",\"unheated\",\"unhelpful\",\"unhidden\",\"unhinge\",\"unhitched\",\"unholy\",\"unhook\",\"unicorn\",\"unicycle\",\"unified\",\"unifier\",\"uniformed\",\"uniformly\",\"unify\",\"unimpeded\",\"uninjured\",\"uninstall\",\"uninsured\",\"uninvited\",\"union\",\"uniquely\",\"unisexual\",\"unison\",\"unissued\",\"unit\",\"universal\",\"universe\",\"unjustly\",\"unkempt\",\"unkind\",\"unknotted\",\"unknowing\",\"unknown\",\"unlaced\",\"unlatch\",\"unlawful\",\"unleaded\",\"unlearned\",\"unleash\",\"unless\",\"unleveled\",\"unlighted\",\"unlikable\",\"unlimited\",\"unlined\",\"unlinked\",\"unlisted\",\"unlit\",\"unlivable\",\"unloaded\",\"unloader\",\"unlocked\",\"unlocking\",\"unlovable\",\"unloved\",\"unlovely\",\"unloving\",\"unluckily\",\"unlucky\",\"unmade\",\"unmanaged\",\"unmanned\",\"unmapped\",\"unmarked\",\"unmasked\",\"unmasking\",\"unmatched\",\"unmindful\",\"unmixable\",\"unmixed\",\"unmolded\",\"unmoral\",\"unmovable\",\"unmoved\",\"unmoving\",\"unnamable\",\"unnamed\",\"unnatural\",\"unneeded\",\"unnerve\",\"unnerving\",\"unnoticed\",\"unopened\",\"unopposed\",\"unpack\",\"unpadded\",\"unpaid\",\"unpainted\",\"unpaired\",\"unpaved\",\"unpeeled\",\"unpicked\",\"unpiloted\",\"unpinned\",\"unplanned\",\"unplanted\",\"unpleased\",\"unpledged\",\"unplowed\",\"unplug\",\"unpopular\",\"unproven\",\"unquote\",\"unranked\",\"unrated\",\"unraveled\",\"unreached\",\"unread\",\"unreal\",\"unreeling\",\"unrefined\",\"unrelated\",\"unrented\",\"unrest\",\"unretired\",\"unrevised\",\"unrigged\",\"unripe\",\"unrivaled\",\"unroasted\",\"unrobed\",\"unroll\",\"unruffled\",\"unruly\",\"unrushed\",\"unsaddle\",\"unsafe\",\"unsaid\",\"unsalted\",\"unsaved\",\"unsavory\",\"unscathed\",\"unscented\",\"unscrew\",\"unsealed\",\"unseated\",\"unsecured\",\"unseeing\",\"unseemly\",\"unseen\",\"unselect\",\"unselfish\",\"unsent\",\"unsettled\",\"unshackle\",\"unshaken\",\"unshaved\",\"unshaven\",\"unsheathe\",\"unshipped\",\"unsightly\",\"unsigned\",\"unskilled\",\"unsliced\",\"unsmooth\",\"unsnap\",\"unsocial\",\"unsoiled\",\"unsold\",\"unsolved\",\"unsorted\",\"unspoiled\",\"unspoken\",\"unstable\",\"unstaffed\",\"unstamped\",\"unsteady\",\"unsterile\",\"unstirred\",\"unstitch\",\"unstopped\",\"unstuck\",\"unstuffed\",\"unstylish\",\"unsubtle\",\"unsubtly\",\"unsuited\",\"unsure\",\"unsworn\",\"untagged\",\"untainted\",\"untaken\",\"untamed\",\"untangled\",\"untapped\",\"untaxed\",\"unthawed\",\"unthread\",\"untidy\",\"untie\",\"until\",\"untimed\",\"untimely\",\"untitled\",\"untoasted\",\"untold\",\"untouched\",\"untracked\",\"untrained\",\"untreated\",\"untried\",\"untrimmed\",\"untrue\",\"untruth\",\"unturned\",\"untwist\",\"untying\",\"unusable\",\"unused\",\"unusual\",\"unvalued\",\"unvaried\",\"unvarying\",\"unveiled\",\"unveiling\",\"unvented\",\"unviable\",\"unvisited\",\"unvocal\",\"unwanted\",\"unwarlike\",\"unwary\",\"unwashed\",\"unwatched\",\"unweave\",\"unwed\",\"unwelcome\",\"unwell\",\"unwieldy\",\"unwilling\",\"unwind\",\"unwired\",\"unwitting\",\"unwomanly\",\"unworldly\",\"unworn\",\"unworried\",\"unworthy\",\"unwound\",\"unwoven\",\"unwrapped\",\"unwritten\",\"unzip\",\"upbeat\",\"upchuck\",\"upcoming\",\"upcountry\",\"update\",\"upfront\",\"upgrade\",\"upheaval\",\"upheld\",\"uphill\",\"uphold\",\"uplifted\",\"uplifting\",\"upload\",\"upon\",\"upper\",\"upright\",\"uprising\",\"upriver\",\"uproar\",\"uproot\",\"upscale\",\"upside\",\"upstage\",\"upstairs\",\"upstart\",\"upstate\",\"upstream\",\"upstroke\",\"upswing\",\"uptake\",\"uptight\",\"uptown\",\"upturned\",\"upward\",\"upwind\",\"uranium\",\"urban\",\"urchin\",\"urethane\",\"urgency\",\"urgent\",\"urging\",\"urologist\",\"urology\",\"usable\",\"usage\",\"useable\",\"used\",\"uselessly\",\"user\",\"usher\",\"usual\",\"utensil\",\"utility\",\"utilize\",\"utmost\",\"utopia\",\"utter\",\"vacancy\",\"vacant\",\"vacate\",\"vacation\",\"vagabond\",\"vagrancy\",\"vagrantly\",\"vaguely\",\"vagueness\",\"valiant\",\"valid\",\"valium\",\"valley\",\"valuables\",\"value\",\"vanilla\",\"vanish\",\"vanity\",\"vanquish\",\"vantage\",\"vaporizer\",\"variable\",\"variably\",\"varied\",\"variety\",\"various\",\"varmint\",\"varnish\",\"varsity\",\"varying\",\"vascular\",\"vaseline\",\"vastly\",\"vastness\",\"veal\",\"vegan\",\"veggie\",\"vehicular\",\"velcro\",\"velocity\",\"velvet\",\"vendetta\",\"vending\",\"vendor\",\"veneering\",\"vengeful\",\"venomous\",\"ventricle\",\"venture\",\"venue\",\"venus\",\"verbalize\",\"verbally\",\"verbose\",\"verdict\",\"verify\",\"verse\",\"version\",\"versus\",\"vertebrae\",\"vertical\",\"vertigo\",\"very\",\"vessel\",\"vest\",\"veteran\",\"veto\",\"vexingly\",\"viability\",\"viable\",\"vibes\",\"vice\",\"vicinity\",\"victory\",\"video\",\"viewable\",\"viewer\",\"viewing\",\"viewless\",\"viewpoint\",\"vigorous\",\"village\",\"villain\",\"vindicate\",\"vineyard\",\"vintage\",\"violate\",\"violation\",\"violator\",\"violet\",\"violin\",\"viper\",\"viral\",\"virtual\",\"virtuous\",\"virus\",\"visa\",\"viscosity\",\"viscous\",\"viselike\",\"visible\",\"visibly\",\"vision\",\"visiting\",\"visitor\",\"visor\",\"vista\",\"vitality\",\"vitalize\",\"vitally\",\"vitamins\",\"vivacious\",\"vividly\",\"vividness\",\"vixen\",\"vocalist\",\"vocalize\",\"vocally\",\"vocation\",\"voice\",\"voicing\",\"void\",\"volatile\",\"volley\",\"voltage\",\"volumes\",\"voter\",\"voting\",\"voucher\",\"vowed\",\"vowel\",\"voyage\",\"wackiness\",\"wad\",\"wafer\",\"waffle\",\"waged\",\"wager\",\"wages\",\"waggle\",\"wagon\",\"wake\",\"waking\",\"walk\",\"walmart\",\"walnut\",\"walrus\",\"waltz\",\"wand\",\"wannabe\",\"wanted\",\"wanting\",\"wasabi\",\"washable\",\"washbasin\",\"washboard\",\"washbowl\",\"washcloth\",\"washday\",\"washed\",\"washer\",\"washhouse\",\"washing\",\"washout\",\"washroom\",\"washstand\",\"washtub\",\"wasp\",\"wasting\",\"watch\",\"water\",\"waviness\",\"waving\",\"wavy\",\"whacking\",\"whacky\",\"wham\",\"wharf\",\"wheat\",\"whenever\",\"whiff\",\"whimsical\",\"whinny\",\"whiny\",\"whisking\",\"whoever\",\"whole\",\"whomever\",\"whoopee\",\"whooping\",\"whoops\",\"why\",\"wick\",\"widely\",\"widen\",\"widget\",\"widow\",\"width\",\"wieldable\",\"wielder\",\"wife\",\"wifi\",\"wikipedia\",\"wildcard\",\"wildcat\",\"wilder\",\"wildfire\",\"wildfowl\",\"wildland\",\"wildlife\",\"wildly\",\"wildness\",\"willed\",\"willfully\",\"willing\",\"willow\",\"willpower\",\"wilt\",\"wimp\",\"wince\",\"wincing\",\"wind\",\"wing\",\"winking\",\"winner\",\"winnings\",\"winter\",\"wipe\",\"wired\",\"wireless\",\"wiring\",\"wiry\",\"wisdom\",\"wise\",\"wish\",\"wisplike\",\"wispy\",\"wistful\",\"wizard\",\"wobble\",\"wobbling\",\"wobbly\",\"wok\",\"wolf\",\"wolverine\",\"womanhood\",\"womankind\",\"womanless\",\"womanlike\",\"womanly\",\"womb\",\"woof\",\"wooing\",\"wool\",\"woozy\",\"word\",\"work\",\"worried\",\"worrier\",\"worrisome\",\"worry\",\"worsening\",\"worshiper\",\"worst\",\"wound\",\"woven\",\"wow\",\"wrangle\",\"wrath\",\"wreath\",\"wreckage\",\"wrecker\",\"wrecking\",\"wrench\",\"wriggle\",\"wriggly\",\"wrinkle\",\"wrinkly\",\"wrist\",\"writing\",\"written\",\"wrongdoer\",\"wronged\",\"wrongful\",\"wrongly\",\"wrongness\",\"wrought\",\"xbox\",\"xerox\",\"yahoo\",\"yam\",\"yanking\",\"yapping\",\"yard\",\"yarn\",\"yeah\",\"yearbook\",\"yearling\",\"yearly\",\"yearning\",\"yeast\",\"yelling\",\"yelp\",\"yen\",\"yesterday\",\"yiddish\",\"yield\",\"yin\",\"yippee\",\"yo-yo\",\"yodel\",\"yoga\",\"yogurt\",\"yonder\",\"yoyo\",\"yummy\",\"zap\",\"zealous\",\"zebra\",\"zen\",\"zeppelin\",\"zero\",\"zestfully\",\"zesty\",\"zigzagged\",\"zipfile\",\"zipping\",\"zippy\",\"zips\",\"zit\",\"zodiac\",\"zombie\",\"zone\",\"zoning\",\"zookeeper\",\"zoologist\",\"zoology\",\"zoom\"]).filter(e=>!e.includes(\"-\")))},27776:function(e,t,r){\"use strict\";r.d(t,{A:function(){return m},Toaster:function(){return _}});var n=r(2265),i=r(54887),s=e=>{switch(e){case\"success\":return l;case\"info\":return c;case\"warning\":return u;case\"error\":return d;default:return null}},o=Array(12).fill(0),a=e=>{let{visible:t}=e;return n.createElement(\"div\",{className:\"sonner-loading-wrapper\",\"data-visible\":t},n.createElement(\"div\",{className:\"sonner-spinner\"},o.map((e,t)=>n.createElement(\"div\",{className:\"sonner-loading-bar\",key:\"spinner-bar-\".concat(t)}))))},l=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\",clipRule:\"evenodd\"})),u=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z\",clipRule:\"evenodd\"})),c=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\",clipRule:\"evenodd\"})),d=n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},n.createElement(\"path\",{fillRule:\"evenodd\",d:\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\",clipRule:\"evenodd\"})),h=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(\"visibilitychange\",e),()=>window.removeEventListener(\"visibilitychange\",e)},[]),e},f=1,p=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i=\"number\"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:f++,s=this.toasts.find(e=>e.id===i),o=void 0===e.dismissible||e.dismissible;return s?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:o,title:r}):t):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:\"error\"}),this.success=(e,t)=>this.create({...t,type:\"success\",message:e}),this.info=(e,t)=>this.create({...t,type:\"info\",message:e}),this.warning=(e,t)=>this.create({...t,type:\"warning\",message:e}),this.loading=(e,t)=>this.create({...t,type:\"loading\",message:e}),this.promise=(e,t)=>{let r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:\"loading\",message:t.loading,description:\"function\"!=typeof t.description?t.description:void 0}));let n=e instanceof Promise?e:e(),i=void 0!==r;return n.then(async e=>{if(g(e)&&!e.ok){i=!1;let n=\"function\"==typeof t.error?await t.error(\"HTTP error! status: \".concat(e.status)):t.error,s=\"function\"==typeof t.description?await t.description(\"HTTP error! status: \".concat(e.status)):t.description;this.create({id:r,type:\"error\",message:n,description:s})}else if(void 0!==t.success){i=!1;let n=\"function\"==typeof t.success?await t.success(e):t.success,s=\"function\"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:\"success\",message:n,description:s})}}).catch(async e=>{if(void 0!==t.error){i=!1;let n=\"function\"==typeof t.error?await t.error(e):t.error,s=\"function\"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:\"error\",message:n,description:s})}}).finally(()=>{var e;i&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),r},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||f++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},g=e=>e&&\"object\"==typeof e&&\"ok\"in e&&\"boolean\"==typeof e.ok&&\"status\"in e&&\"number\"==typeof e.status,m=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||f++;return p.addToast({title:e,...t,id:r}),r},{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:()=>p.toasts});function y(e){return void 0!==e.label}function b(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(\" \")}!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||\"undefined\"==typeof document)return;let r=document.head||document.getElementsByTagName(\"head\")[0],n=document.createElement(\"style\");n.type=\"text/css\",\"top\"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':where(html[dir=\"ltr\"]),:where([data-sonner-toaster][dir=\"ltr\"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir=\"rtl\"]),:where([data-sonner-toaster][dir=\"rtl\"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position=\"right\"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=\"left\"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=\"center\"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position=\"top\"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=\"bottom\"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=\"true\"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position=\"top\"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=\"bottom\"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=\"true\"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=\"dark\"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled=\"true\"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=\"true\"]):before{content:\"\";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=\"top\"][data-swiping=\"true\"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=\"bottom\"][data-swiping=\"true\"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=\"false\"][data-removed=\"true\"]):before{content:\"\";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:\"\";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=\"true\"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=\"false\"][data-front=\"false\"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=\"false\"][data-front=\"false\"][data-styled=\"true\"])>*{opacity:0}:where([data-sonner-toast][data-visible=\"false\"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=\"true\"][data-expanded=\"true\"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"true\"][data-swipe-out=\"false\"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"false\"][data-swipe-out=\"false\"][data-expanded=\"true\"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"false\"][data-swipe-out=\"false\"][data-expanded=\"false\"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=\"true\"][data-front=\"false\"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\\n');var v=e=>{var t,r,i,o,l,u,c,d,f,p;let{invert:g,toast:m,unstyled:b,interacting:v,setHeights:w,visibleToasts:_,heights:E,index:A,toasts:x,expanded:k,removeToast:S,defaultRichColors:$,closeButton:C,style:P,cancelButtonStyle:I,actionButtonStyle:O,className:N=\"\",descriptionClassName:M=\"\",duration:R,position:T,gap:D,loadingIcon:L,expandByDefault:j,classNames:B,icons:F,closeButtonAriaLabel:U=\"Close toast\",pauseWhenPageIsHidden:z,cn:q}=e,[H,G]=n.useState(!1),[V,W]=n.useState(!1),[K,Y]=n.useState(!1),[Z,J]=n.useState(!1),[Q,X]=n.useState(0),[ee,et]=n.useState(0),er=n.useRef(null),en=n.useRef(null),ei=0===A,es=A+1<=_,eo=m.type,ea=!1!==m.dismissible,el=m.className||\"\",eu=m.descriptionClassName||\"\",ec=n.useMemo(()=>E.findIndex(e=>e.toastId===m.id)||0,[E,m.id]),ed=n.useMemo(()=>{var e;return null!=(e=m.closeButton)?e:C},[m.closeButton,C]),eh=n.useMemo(()=>m.duration||R||4e3,[m.duration,R]),ef=n.useRef(0),ep=n.useRef(0),eg=n.useRef(0),em=n.useRef(null),[ey,eb]=T.split(\"-\"),ev=n.useMemo(()=>E.reduce((e,t,r)=>r>=ec?e:e+t.height,0),[E,ec]),ew=h(),e_=m.invert||g,eE=\"loading\"===eo;ep.current=n.useMemo(()=>ec*D+ev,[ec,ev]),n.useEffect(()=>{G(!0)},[]),n.useLayoutEffect(()=>{if(!H)return;let e=en.current,t=e.style.height;e.style.height=\"auto\";let r=e.getBoundingClientRect().height;e.style.height=t,et(r),w(e=>e.find(e=>e.toastId===m.id)?e.map(e=>e.toastId===m.id?{...e,height:r}:e):[{toastId:m.id,height:r,position:m.position},...e])},[H,m.title,m.description,w,m.id]);let eA=n.useCallback(()=>{W(!0),X(ep.current),w(e=>e.filter(e=>e.toastId!==m.id)),setTimeout(()=>{S(m)},200)},[m,S,w,ep]);return n.useEffect(()=>{if(m.promise&&\"loading\"===eo||m.duration===1/0||\"loading\"===m.type)return;let e,t=eh;return k||v||z&&ew?(()=>{if(eg.current<ef.current){let e=new Date().getTime()-ef.current;t-=e}eg.current=new Date().getTime()})():t!==1/0&&(ef.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=m.onAutoClose)||e.call(m,m),eA()},t)),()=>clearTimeout(e)},[k,v,j,m,eh,eA,m.promise,eo,z,ew]),n.useEffect(()=>{let e=en.current;if(e){let t=e.getBoundingClientRect().height;return et(t),w(e=>[{toastId:m.id,height:t,position:m.position},...e]),()=>w(e=>e.filter(e=>e.toastId!==m.id))}},[w,m.id]),n.useEffect(()=>{m.delete&&eA()},[eA,m.delete]),n.createElement(\"li\",{\"aria-live\":m.important?\"assertive\":\"polite\",\"aria-atomic\":\"true\",role:\"status\",tabIndex:0,ref:en,className:q(N,el,null==B?void 0:B.toast,null==(t=null==m?void 0:m.classNames)?void 0:t.toast,null==B?void 0:B.default,null==B?void 0:B[eo],null==(r=null==m?void 0:m.classNames)?void 0:r[eo]),\"data-sonner-toast\":\"\",\"data-rich-colors\":null!=(i=m.richColors)?i:$,\"data-styled\":!(m.jsx||m.unstyled||b),\"data-mounted\":H,\"data-promise\":!!m.promise,\"data-removed\":V,\"data-visible\":es,\"data-y-position\":ey,\"data-x-position\":eb,\"data-index\":A,\"data-front\":ei,\"data-swiping\":K,\"data-dismissible\":ea,\"data-type\":eo,\"data-invert\":e_,\"data-swipe-out\":Z,\"data-expanded\":!!(k||j&&H),style:{\"--index\":A,\"--toasts-before\":A,\"--z-index\":x.length-A,\"--offset\":\"\".concat(V?Q:ep.current,\"px\"),\"--initial-height\":j?\"auto\":\"\".concat(ee,\"px\"),...P,...m.style},onPointerDown:e=>{eE||!ea||(er.current=new Date,X(ep.current),e.target.setPointerCapture(e.pointerId),\"BUTTON\"!==e.target.tagName&&(Y(!0),em.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(Z||!ea)return;em.current=null;let i=Number((null==(e=en.current)?void 0:e.style.getPropertyValue(\"--swipe-amount\").replace(\"px\",\"\"))||0),s=new Date().getTime()-(null==(t=er.current)?void 0:t.getTime());if(Math.abs(i)>=20||Math.abs(i)/s>.11){X(ep.current),null==(r=m.onDismiss)||r.call(m,m),eA(),J(!0);return}null==(n=en.current)||n.style.setProperty(\"--swipe-amount\",\"0px\"),Y(!1)},onPointerMove:e=>{var t;if(!em.current||!ea)return;let r=e.clientY-em.current.y,n=e.clientX-em.current.x,i=(\"top\"===ey?Math.min:Math.max)(0,r),s=\"touch\"===e.pointerType?10:2;Math.abs(i)>s?null==(t=en.current)||t.style.setProperty(\"--swipe-amount\",\"\".concat(r,\"px\")):Math.abs(n)>s&&(em.current=null)}},ed&&!m.jsx?n.createElement(\"button\",{\"aria-label\":U,\"data-disabled\":eE,\"data-close-button\":!0,onClick:eE||!ea?()=>{}:()=>{var e;eA(),null==(e=m.onDismiss)||e.call(m,m)},className:q(null==B?void 0:B.closeButton,null==(o=null==m?void 0:m.classNames)?void 0:o.closeButton)},n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"},n.createElement(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),n.createElement(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"}))):null,m.jsx||n.isValidElement(m.title)?m.jsx||m.title:n.createElement(n.Fragment,null,eo||m.icon||m.promise?n.createElement(\"div\",{\"data-icon\":\"\",className:q(null==B?void 0:B.icon,null==(l=null==m?void 0:m.classNames)?void 0:l.icon)},m.promise||\"loading\"===m.type&&!m.icon?m.icon||(null!=F&&F.loading?n.createElement(\"div\",{className:\"sonner-loader\",\"data-visible\":\"loading\"===eo},F.loading):L?n.createElement(\"div\",{className:\"sonner-loader\",\"data-visible\":\"loading\"===eo},L):n.createElement(a,{visible:\"loading\"===eo})):null,\"loading\"!==m.type?m.icon||(null==F?void 0:F[eo])||s(eo):null):null,n.createElement(\"div\",{\"data-content\":\"\",className:q(null==B?void 0:B.content,null==(u=null==m?void 0:m.classNames)?void 0:u.content)},n.createElement(\"div\",{\"data-title\":\"\",className:q(null==B?void 0:B.title,null==(c=null==m?void 0:m.classNames)?void 0:c.title)},m.title),m.description?n.createElement(\"div\",{\"data-description\":\"\",className:q(M,eu,null==B?void 0:B.description,null==(d=null==m?void 0:m.classNames)?void 0:d.description)},m.description):null),n.isValidElement(m.cancel)?m.cancel:m.cancel&&y(m.cancel)?n.createElement(\"button\",{\"data-button\":!0,\"data-cancel\":!0,style:m.cancelButtonStyle||I,onClick:e=>{var t,r;y(m.cancel)&&ea&&(null==(r=(t=m.cancel).onClick)||r.call(t,e),eA())},className:q(null==B?void 0:B.cancelButton,null==(f=null==m?void 0:m.classNames)?void 0:f.cancelButton)},m.cancel.label):null,n.isValidElement(m.action)?m.action:m.action&&y(m.action)?n.createElement(\"button\",{\"data-button\":!0,\"data-action\":!0,style:m.actionButtonStyle||O,onClick:e=>{var t,r;y(m.action)&&(e.defaultPrevented||(null==(r=(t=m.action).onClick)||r.call(t,e),eA()))},className:q(null==B?void 0:B.actionButton,null==(p=null==m?void 0:m.classNames)?void 0:p.actionButton)},m.action.label):null))};function w(){if(\"undefined\"==typeof window||\"undefined\"==typeof document)return\"ltr\";let e=document.documentElement.getAttribute(\"dir\");return\"auto\"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var _=e=>{let{invert:t,position:r=\"bottom-right\",hotkey:s=[\"altKey\",\"KeyT\"],expand:o,closeButton:a,className:l,offset:u,theme:c=\"light\",richColors:d,duration:h,style:f,visibleToasts:g=3,toastOptions:m,dir:y=w(),gap:_=14,loadingIcon:E,icons:A,containerAriaLabel:x=\"Notifications\",pauseWhenPageIsHidden:k,cn:S=b}=e,[$,C]=n.useState([]),P=n.useMemo(()=>Array.from(new Set([r].concat($.filter(e=>e.position).map(e=>e.position)))),[$,r]),[I,O]=n.useState([]),[N,M]=n.useState(!1),[R,T]=n.useState(!1),[D,L]=n.useState(\"system\"!==c?c:\"undefined\"!=typeof window&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"),j=n.useRef(null),B=s.join(\"+\").replace(/Key/g,\"\").replace(/Digit/g,\"\"),F=n.useRef(null),U=n.useRef(!1),z=n.useCallback(e=>{var t;null!=(t=$.find(t=>t.id===e.id))&&t.delete||p.dismiss(e.id),C(t=>t.filter(t=>{let{id:r}=t;return r!==e.id}))},[$]);return n.useEffect(()=>p.subscribe(e=>{if(e.dismiss){C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{i.flushSync(()=>{C(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if(\"system\"!==c){L(c);return}\"system\"===c&&(window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?L(\"dark\"):L(\"light\")),\"undefined\"!=typeof window&&window.matchMedia(\"(prefers-color-scheme: dark)\").addEventListener(\"change\",e=>{let{matches:t}=e;L(t?\"dark\":\"light\")})},[c]),n.useEffect(()=>{$.length<=1&&M(!1)},[$]),n.useEffect(()=>{let e=e=>{var t,r;s.every(t=>e[t]||e.code===t)&&(M(!0),null==(t=j.current)||t.focus()),\"Escape\"===e.code&&(document.activeElement===j.current||null!=(r=j.current)&&r.contains(document.activeElement))&&M(!1)};return document.addEventListener(\"keydown\",e),()=>document.removeEventListener(\"keydown\",e)},[s]),n.useEffect(()=>{if(j.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,U.current=!1)}},[j.current]),$.length?n.createElement(\"section\",{\"aria-label\":\"\".concat(x,\" \").concat(B),tabIndex:-1},P.map((e,r)=>{var i;let[s,c]=e.split(\"-\");return n.createElement(\"ol\",{key:e,dir:\"auto\"===y?w():y,tabIndex:-1,ref:j,className:l,\"data-sonner-toaster\":!0,\"data-theme\":D,\"data-y-position\":s,\"data-x-position\":c,style:{\"--front-toast-height\":\"\".concat((null==(i=I[0])?void 0:i.height)||0,\"px\"),\"--offset\":\"number\"==typeof u?\"\".concat(u,\"px\"):u||\"32px\",\"--width\":\"\".concat(356,\"px\"),\"--gap\":\"\".concat(_,\"px\"),...f},onBlur:e=>{U.current&&!e.currentTarget.contains(e.relatedTarget)&&(U.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&\"false\"===e.target.dataset.dismissible||U.current||(U.current=!0,F.current=e.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{R||M(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&\"false\"===e.target.dataset.dismissible||T(!0)},onPointerUp:()=>T(!1)},$.filter(t=>!t.position&&0===r||t.position===e).map((r,i)=>{var s,l;return n.createElement(v,{key:r.id,icons:A,index:i,toast:r,defaultRichColors:d,duration:null!=(s=null==m?void 0:m.duration)?s:h,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:t,visibleToasts:g,closeButton:null!=(l=null==m?void 0:m.closeButton)?l:a,interacting:R,position:e,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:z,toasts:$.filter(e=>e.position==r.position),heights:I.filter(e=>e.position==r.position),setHeights:O,expandByDefault:o,gap:_,loadingIcon:E,expanded:N,pauseWhenPageIsHidden:k,cn:S})}))})):null}},13130:function(e,t,r){\"use strict\";function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}r.d(t,{Z:function(){return u}});var i,s,o,a=/^\\s+/,l=/\\s+$/;function u(e,t){if(t=t||{},(e=e||\"\")instanceof u)return e;if(!(this instanceof u))return new u(e,t);var r,i,s,o,c,d,h,f,p,g,m,y,b,v,w,_,E,A,x,k,$=(i={r:0,g:0,b:0},s=1,o=null,c=null,d=null,h=!1,f=!1,\"string\"==typeof(r=e)&&(r=function(e){e=e.replace(a,\"\").replace(l,\"\").toLowerCase();var t,r=!1;if(S[e])e=S[e],r=!0;else if(\"transparent\"==e)return{r:0,g:0,b:0,a:0,format:\"name\"};return(t=T.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=T.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=T.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=T.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=T.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=T.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=T.hex8.exec(e))?{r:O(t[1]),g:O(t[2]),b:O(t[3]),a:O(t[4])/255,format:r?\"name\":\"hex8\"}:(t=T.hex6.exec(e))?{r:O(t[1]),g:O(t[2]),b:O(t[3]),format:r?\"name\":\"hex\"}:(t=T.hex4.exec(e))?{r:O(t[1]+\"\"+t[1]),g:O(t[2]+\"\"+t[2]),b:O(t[3]+\"\"+t[3]),a:O(t[4]+\"\"+t[4])/255,format:r?\"name\":\"hex8\"}:!!(t=T.hex3.exec(e))&&{r:O(t[1]+\"\"+t[1]),g:O(t[2]+\"\"+t[2]),b:O(t[3]+\"\"+t[3]),format:r?\"name\":\"hex\"}}(r)),\"object\"==n(r)&&(D(r.r)&&D(r.g)&&D(r.b)?(p=r.r,g=r.g,m=r.b,i={r:255*P(p,255),g:255*P(g,255),b:255*P(m,255)},h=!0,f=\"%\"===String(r.r).substr(-1)?\"prgb\":\"rgb\"):D(r.h)&&D(r.s)&&D(r.v)?(o=M(r.s),c=M(r.v),y=r.h,b=o,v=c,y=6*P(y,360),b=P(b,100),v=P(v,100),w=Math.floor(y),_=y-w,E=v*(1-b),A=v*(1-_*b),x=v*(1-(1-_)*b),i={r:255*[v,A,E,E,x,v][k=w%6],g:255*[x,v,v,A,E,E][k],b:255*[E,E,x,v,v,A][k]},h=!0,f=\"hsv\"):D(r.h)&&D(r.s)&&D(r.l)&&(o=M(r.s),d=M(r.l),i=function(e,t,r){var n,i,s;function o(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=P(e,360),t=P(t,100),r=P(r,100),0===t)n=i=s=r;else{var a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;n=o(l,a,e+1/3),i=o(l,a,e),s=o(l,a,e-1/3)}return{r:255*n,g:255*i,b:255*s}}(r.h,o,d),h=!0,f=\"hsl\"),r.hasOwnProperty(\"a\")&&(s=r.a)),s=C(s),{ok:h,format:r.format||f,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:s});this._originalInput=e,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||$.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=$.ok}function c(e,t,r){var n,i,s=Math.max(e=P(e,255),t=P(t,255),r=P(r,255)),o=Math.min(e,t,r),a=(s+o)/2;if(s==o)n=i=0;else{var l=s-o;switch(i=a>.5?l/(2-s-o):l/(s+o),s){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:a}}function d(e,t,r){var n,i,s=Math.max(e=P(e,255),t=P(t,255),r=P(r,255)),o=Math.min(e,t,r),a=s-o;if(i=0===s?0:a/s,s==o)n=0;else{switch(s){case e:n=(t-r)/a+(t<r?6:0);break;case t:n=(r-e)/a+2;break;case r:n=(e-t)/a+4}n/=6}return{h:n,s:i,v:s}}function h(e,t,r,n){var i=[N(Math.round(e).toString(16)),N(Math.round(t).toString(16)),N(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function f(e,t,r,n){return[N(R(n)),N(Math.round(e).toString(16)),N(Math.round(t).toString(16)),N(Math.round(r).toString(16))].join(\"\")}function p(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.s-=t/100,r.s=I(r.s),u(r)}function g(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.s+=t/100,r.s=I(r.s),u(r)}function m(e){return u(e).desaturate(100)}function y(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.l+=t/100,r.l=I(r.l),u(r)}function b(e,t){t=0===t?0:t||10;var r=u(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),u(r)}function v(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.l-=t/100,r.l=I(r.l),u(r)}function w(e,t){var r=u(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,u(r)}function _(e){var t=u(e).toHsl();return t.h=(t.h+180)%360,u(t)}function E(e,t){if(isNaN(t)||t<=0)throw Error(\"Argument to polyad must be a positive number\");for(var r=u(e).toHsl(),n=[u(e)],i=360/t,s=1;s<t;s++)n.push(u({h:(r.h+s*i)%360,s:r.s,l:r.l}));return n}function A(e){var t=u(e).toHsl(),r=t.h;return[u(e),u({h:(r+72)%360,s:t.s,l:t.l}),u({h:(r+216)%360,s:t.s,l:t.l})]}function x(e,t,r){t=t||6,r=r||30;var n=u(e).toHsl(),i=360/r,s=[u(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,s.push(u(n));return s}function k(e,t){t=t||6;for(var r=u(e).toHsv(),n=r.h,i=r.s,s=r.v,o=[],a=1/t;t--;)o.push(u({h:n,s:i,v:s})),s=(s+a)%1;return o}u.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*((t=n.g/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=d(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?\"hsv(\"+t+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+t+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?\"hsl(\"+t+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+t+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return\"#\"+this.toHex(e)},toHex8:function(e){var t,r,n,i,s;return t=this._r,r=this._g,n=this._b,i=this._a,s=[N(Math.round(t).toString(16)),N(Math.round(r).toString(16)),N(Math.round(n).toString(16)),N(R(i))],e&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join(\"\")},toHex8String:function(e){return\"#\"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+\"%\",g:Math.round(100*P(this._g,255))+\"%\",b:Math.round(100*P(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*P(this._r,255))+\"%, \"+Math.round(100*P(this._g,255))+\"%, \"+Math.round(100*P(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*P(this._r,255))+\"%, \"+Math.round(100*P(this._g,255))+\"%, \"+Math.round(100*P(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&($[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t=\"#\"+f(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?\"GradientType = 1, \":\"\";if(e){var i=u(e);r=\"#\"+f(i._r,i._g,i._b,i._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+n+\"startColorstr=\"+t+\",endColorstr=\"+r+\")\"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&(\"hex\"===e||\"hex6\"===e||\"hex3\"===e||\"hex4\"===e||\"hex8\"===e||\"name\"===e)?\"name\"===e&&0===this._a?this.toName():this.toRgbString():(\"rgb\"===e&&(r=this.toRgbString()),\"prgb\"===e&&(r=this.toPercentageRgbString()),(\"hex\"===e||\"hex6\"===e)&&(r=this.toHexString()),\"hex3\"===e&&(r=this.toHexString(!0)),\"hex4\"===e&&(r=this.toHex8String(!0)),\"hex8\"===e&&(r=this.toHex8String()),\"name\"===e&&(r=this.toName()),\"hsl\"===e&&(r=this.toHslString()),\"hsv\"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(E,[3])},tetrad:function(){return this._applyCombination(E,[4])}},u.fromRatio=function(e,t){if(\"object\"==n(e)){var r={};for(var i in e)e.hasOwnProperty(i)&&(\"a\"===i?r[i]=e[i]:r[i]=M(e[i]));e=r}return u(e,t)},u.equals=function(e,t){return!!e&&!!t&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},u.mix=function(e,t,r){r=0===r?0:r||50;var n=u(e).toRgb(),i=u(t).toRgb(),s=r/100;return u({r:(i.r-n.r)*s+n.r,g:(i.g-n.g)*s+n.g,b:(i.b-n.b)*s+n.b,a:(i.a-n.a)*s+n.a})},u.readability=function(e,t){var r=u(e),n=u(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},u.isReadable=function(e,t,r){var n,i,s,o,a,l=u.readability(e,t);switch(a=!1,(i=((n=(n=r)||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),s=(n.size||\"small\").toLowerCase(),\"AA\"!==i&&\"AAA\"!==i&&(i=\"AA\"),\"small\"!==s&&\"large\"!==s&&(s=\"small\"),o={level:i,size:s}).level+o.size){case\"AAsmall\":case\"AAAlarge\":a=l>=4.5;break;case\"AAlarge\":a=l>=3;break;case\"AAAsmall\":a=l>=7}return a},u.mostReadable=function(e,t,r){var n,i,s,o,a=null,l=0;i=(r=r||{}).includeFallbackColors,s=r.level,o=r.size;for(var c=0;c<t.length;c++)(n=u.readability(e,t[c]))>l&&(l=n,a=u(t[c]));return u.isReadable(e,a,{level:s,size:o})||!i?a:(r.includeFallbackColors=!1,u.mostReadable(e,[\"#fff\",\"#000\"],r))};var S=u.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},$=u.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(S);function C(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function P(e,t){\"string\"==typeof(r=e)&&-1!=r.indexOf(\".\")&&1===parseFloat(r)&&(e=\"100%\");var r,n,i=\"string\"==typeof(n=e)&&-1!=n.indexOf(\"%\");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function I(e){return Math.min(1,Math.max(0,e))}function O(e){return parseInt(e,16)}function N(e){return 1==e.length?\"0\"+e:\"\"+e}function M(e){return e<=1&&(e=100*e+\"%\"),e}function R(e){return Math.round(255*parseFloat(e)).toString(16)}var T=(s=\"[\\\\s|\\\\(]+(\"+(i=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+i+\")[,|\\\\s]+(\"+i+\")\\\\s*\\\\)?\",o=\"[\\\\s|\\\\(]+(\"+i+\")[,|\\\\s]+(\"+i+\")[,|\\\\s]+(\"+i+\")[,|\\\\s]+(\"+i+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(i),rgb:RegExp(\"rgb\"+s),rgba:RegExp(\"rgba\"+o),hsl:RegExp(\"hsl\"+s),hsla:RegExp(\"hsla\"+o),hsv:RegExp(\"hsv\"+s),hsva:RegExp(\"hsva\"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function D(e){return!!T.CSS_UNIT.exec(e)}},69199:function(e,t,r){\"use strict\";function n(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}r.d(t,{E:function(){return n}})},69717:function(e,t,r){\"use strict\";r.d(t,{z:function(){return i}});var n=r(69199);function i(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}},55522:function(e,t,r){\"use strict\";r.d(t,{m:function(){return i}});var n=r(49112);function i(e,t=\"utf8\"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding \"${t}\"`);return(\"utf8\"===t||\"utf-8\"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,\"utf8\"):r.decoder.decode(`${r.prefix}${e}`)}},39613:function(e,t,r){\"use strict\";r.d(t,{BB:function(){return s.B},mL:function(){return i.m},zo:function(){return n.z}});var n=r(69717),i=r(55522),s=r(3767)},3767:function(e,t,r){\"use strict\";r.d(t,{B:function(){return i}});var n=r(49112);function i(e,t=\"utf8\"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding \"${t}\"`);return(\"utf8\"===t||\"utf-8\"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString(\"utf8\"):r.encoder.encode(e).substring(1)}},49112:function(e,t,r){\"use strict\";r.d(t,{Z:function(){return eW}});var n={};r.r(n),r.d(n,{identity:function(){return N}});var i={};r.r(i),r.d(i,{base2:function(){return M}});var s={};r.r(s),r.d(s,{base8:function(){return R}});var o={};r.r(o),r.d(o,{base10:function(){return T}});var a={};r.r(a),r.d(a,{base16:function(){return D},base16upper:function(){return L}});var l={};r.r(l),r.d(l,{base32:function(){return j},base32hex:function(){return z},base32hexpad:function(){return H},base32hexpadupper:function(){return G},base32hexupper:function(){return q},base32pad:function(){return F},base32padupper:function(){return U},base32upper:function(){return B},base32z:function(){return V}});var u={};r.r(u),r.d(u,{base36:function(){return W},base36upper:function(){return K}});var c={};r.r(c),r.d(c,{base58btc:function(){return Y},base58flickr:function(){return Z}});var d={};r.r(d),r.d(d,{base64:function(){return J},base64pad:function(){return Q},base64url:function(){return X},base64urlpad:function(){return ee}});var h={};r.r(h),r.d(h,{base256emoji:function(){return ei}});var f={};r.r(f),r.d(f,{sha256:function(){return ey},sha512:function(){return eb}});var p={};r.r(p),r.d(p,{identity:function(){return ev}});var g={};r.r(g),r.d(g,{code:function(){return e_},decode:function(){return eA},encode:function(){return eE},name:function(){return ew}});var m={};r.r(m),r.d(m,{code:function(){return e$},decode:function(){return eP},encode:function(){return eC},name:function(){return eS}});var y=function(e,t){if(e.length>=255)throw TypeError(\"Alphabet too long\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var s=e.charAt(i),o=s.charCodeAt(0);if(255!==r[o])throw TypeError(s+\" is ambiguous\");r[o]=i}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function d(e){if(\"string\"!=typeof e)throw TypeError(\"Expected String\");if(0===e.length)return new Uint8Array;var t=0;if(\" \"!==e[0]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var s=(e.length-t)*u+1>>>0,o=new Uint8Array(s);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var d=0,h=s-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*o[h]>>>0,o[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error(\"Non-zero carry\");i=d,t++}if(\" \"!==e[t]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),g=n;f!==s;)p[g++]=o[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError(\"Expected Uint8Array\");if(0===t.length)return\"\";for(var r=0,n=0,i=0,s=t.length;i!==s&&0===t[i];)i++,r++;for(var o=(s-i)*c+1>>>0,u=new Uint8Array(o);i!==s;){for(var d=t[i],h=0,f=o-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*u[f]>>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error(\"Non-zero carry\");n=h,i++}for(var p=o-n;p!==o&&0===u[p];)p++;for(var g=l.repeat(r);p<o;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let b=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},v=e=>{if(e instanceof Uint8Array&&\"Uint8Array\"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error(\"Unknown type, must be binary type\")},w=e=>new TextEncoder().encode(e),_=e=>new TextDecoder().decode(e);class E{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\"Unknown type, must be binary type\")}}class A{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error(\"Invalid prefix character\");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if(\"string\"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error(\"Can only multibase decode strings\")}or(e){return k(this,e)}}class x{constructor(e){this.decoders=e}or(e){return k(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let k=(e,t)=>new x({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class S{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new E(e,t,r),this.decoder=new A(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let $=({name:e,prefix:t,encode:r,decode:n})=>new S(e,t,r,n),C=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=y(r,t);return $({prefix:e,name:t,encode:n,decode:e=>v(i(e))})},P=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let s=e.length;for(;\"=\"===e[s-1];)--s;let o=new Uint8Array(s*r/8|0),a=0,l=0,u=0;for(let t=0;t<s;++t){let s=i[e[t]];if(void 0===s)throw SyntaxError(`Non-${n} character`);l=l<<r|s,(a+=r)>=8&&(a-=8,o[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw SyntaxError(\"Unexpected end of data\");return o},I=(e,t,r)=>{let n=\"=\"===t[t.length-1],i=(1<<r)-1,s=\"\",o=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],o+=8;o>r;)o-=r,s+=t[i&a>>o];if(o&&(s+=t[i&a<<r-o]),n)for(;s.length*r&7;)s+=\"=\";return s},O=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>$({prefix:t,name:e,encode:e=>I(e,n,r),decode:t=>P(t,n,r,e)}),N=$({prefix:\"\\0\",name:\"identity\",encode:e=>_(e),decode:e=>w(e)}),M=O({prefix:\"0\",name:\"base2\",alphabet:\"01\",bitsPerChar:1}),R=O({prefix:\"7\",name:\"base8\",alphabet:\"01234567\",bitsPerChar:3}),T=C({prefix:\"9\",name:\"base10\",alphabet:\"0123456789\"}),D=O({prefix:\"f\",name:\"base16\",alphabet:\"0123456789abcdef\",bitsPerChar:4}),L=O({prefix:\"F\",name:\"base16upper\",alphabet:\"0123456789ABCDEF\",bitsPerChar:4}),j=O({prefix:\"b\",name:\"base32\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567\",bitsPerChar:5}),B=O({prefix:\"B\",name:\"base32upper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\",bitsPerChar:5}),F=O({prefix:\"c\",name:\"base32pad\",alphabet:\"abcdefghijklmnopqrstuvwxyz234567=\",bitsPerChar:5}),U=O({prefix:\"C\",name:\"base32padupper\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\",bitsPerChar:5}),z=O({prefix:\"v\",name:\"base32hex\",alphabet:\"0123456789abcdefghijklmnopqrstuv\",bitsPerChar:5}),q=O({prefix:\"V\",name:\"base32hexupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV\",bitsPerChar:5}),H=O({prefix:\"t\",name:\"base32hexpad\",alphabet:\"0123456789abcdefghijklmnopqrstuv=\",bitsPerChar:5}),G=O({prefix:\"T\",name:\"base32hexpadupper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\",bitsPerChar:5}),V=O({prefix:\"h\",name:\"base32z\",alphabet:\"ybndrfg8ejkmcpqxot1uwisza345h769\",bitsPerChar:5}),W=C({prefix:\"k\",name:\"base36\",alphabet:\"0123456789abcdefghijklmnopqrstuvwxyz\"}),K=C({prefix:\"K\",name:\"base36upper\",alphabet:\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"}),Y=C({name:\"base58btc\",prefix:\"z\",alphabet:\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"}),Z=C({name:\"base58flickr\",prefix:\"Z\",alphabet:\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\"}),J=O({prefix:\"m\",name:\"base64\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",bitsPerChar:6}),Q=O({prefix:\"M\",name:\"base64pad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",bitsPerChar:6}),X=O({prefix:\"u\",name:\"base64url\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\",bitsPerChar:6}),ee=O({prefix:\"U\",name:\"base64urlpad\",alphabet:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\",bitsPerChar:6}),et=Array.from(\"\\uD83D\\uDE80\\uD83E\\uDE90☄\\uD83D\\uDEF0\\uD83C\\uDF0C\\uD83C\\uDF11\\uD83C\\uDF12\\uD83C\\uDF13\\uD83C\\uDF14\\uD83C\\uDF15\\uD83C\\uDF16\\uD83C\\uDF17\\uD83C\\uDF18\\uD83C\\uDF0D\\uD83C\\uDF0F\\uD83C\\uDF0E\\uD83D\\uDC09☀\\uD83D\\uDCBB\\uD83D\\uDDA5\\uD83D\\uDCBE\\uD83D\\uDCBF\\uD83D\\uDE02❤\\uD83D\\uDE0D\\uD83E\\uDD23\\uD83D\\uDE0A\\uD83D\\uDE4F\\uD83D\\uDC95\\uD83D\\uDE2D\\uD83D\\uDE18\\uD83D\\uDC4D\\uD83D\\uDE05\\uD83D\\uDC4F\\uD83D\\uDE01\\uD83D\\uDD25\\uD83E\\uDD70\\uD83D\\uDC94\\uD83D\\uDC96\\uD83D\\uDC99\\uD83D\\uDE22\\uD83E\\uDD14\\uD83D\\uDE06\\uD83D\\uDE44\\uD83D\\uDCAA\\uD83D\\uDE09☺\\uD83D\\uDC4C\\uD83E\\uDD17\\uD83D\\uDC9C\\uD83D\\uDE14\\uD83D\\uDE0E\\uD83D\\uDE07\\uD83C\\uDF39\\uD83E\\uDD26\\uD83C\\uDF89\\uD83D\\uDC9E✌✨\\uD83E\\uDD37\\uD83D\\uDE31\\uD83D\\uDE0C\\uD83C\\uDF38\\uD83D\\uDE4C\\uD83D\\uDE0B\\uD83D\\uDC97\\uD83D\\uDC9A\\uD83D\\uDE0F\\uD83D\\uDC9B\\uD83D\\uDE42\\uD83D\\uDC93\\uD83E\\uDD29\\uD83D\\uDE04\\uD83D\\uDE00\\uD83D\\uDDA4\\uD83D\\uDE03\\uD83D\\uDCAF\\uD83D\\uDE48\\uD83D\\uDC47\\uD83C\\uDFB6\\uD83D\\uDE12\\uD83E\\uDD2D❣\\uD83D\\uDE1C\\uD83D\\uDC8B\\uD83D\\uDC40\\uD83D\\uDE2A\\uD83D\\uDE11\\uD83D\\uDCA5\\uD83D\\uDE4B\\uD83D\\uDE1E\\uD83D\\uDE29\\uD83D\\uDE21\\uD83E\\uDD2A\\uD83D\\uDC4A\\uD83E\\uDD73\\uD83D\\uDE25\\uD83E\\uDD24\\uD83D\\uDC49\\uD83D\\uDC83\\uD83D\\uDE33✋\\uD83D\\uDE1A\\uD83D\\uDE1D\\uD83D\\uDE34\\uD83C\\uDF1F\\uD83D\\uDE2C\\uD83D\\uDE43\\uD83C\\uDF40\\uD83C\\uDF37\\uD83D\\uDE3B\\uD83D\\uDE13⭐✅\\uD83E\\uDD7A\\uD83C\\uDF08\\uD83D\\uDE08\\uD83E\\uDD18\\uD83D\\uDCA6✔\\uD83D\\uDE23\\uD83C\\uDFC3\\uD83D\\uDC90☹\\uD83C\\uDF8A\\uD83D\\uDC98\\uD83D\\uDE20☝\\uD83D\\uDE15\\uD83C\\uDF3A\\uD83C\\uDF82\\uD83C\\uDF3B\\uD83D\\uDE10\\uD83D\\uDD95\\uD83D\\uDC9D\\uD83D\\uDE4A\\uD83D\\uDE39\\uD83D\\uDDE3\\uD83D\\uDCAB\\uD83D\\uDC80\\uD83D\\uDC51\\uD83C\\uDFB5\\uD83E\\uDD1E\\uD83D\\uDE1B\\uD83D\\uDD34\\uD83D\\uDE24\\uD83C\\uDF3C\\uD83D\\uDE2B⚽\\uD83E\\uDD19☕\\uD83C\\uDFC6\\uD83E\\uDD2B\\uD83D\\uDC48\\uD83D\\uDE2E\\uD83D\\uDE46\\uD83C\\uDF7B\\uD83C\\uDF43\\uD83D\\uDC36\\uD83D\\uDC81\\uD83D\\uDE32\\uD83C\\uDF3F\\uD83E\\uDDE1\\uD83C\\uDF81⚡\\uD83C\\uDF1E\\uD83C\\uDF88❌✊\\uD83D\\uDC4B\\uD83D\\uDE30\\uD83E\\uDD28\\uD83D\\uDE36\\uD83E\\uDD1D\\uD83D\\uDEB6\\uD83D\\uDCB0\\uD83C\\uDF53\\uD83D\\uDCA2\\uD83E\\uDD1F\\uD83D\\uDE41\\uD83D\\uDEA8\\uD83D\\uDCA8\\uD83E\\uDD2C✈\\uD83C\\uDF80\\uD83C\\uDF7A\\uD83E\\uDD13\\uD83D\\uDE19\\uD83D\\uDC9F\\uD83C\\uDF31\\uD83D\\uDE16\\uD83D\\uDC76\\uD83E\\uDD74▶➡❓\\uD83D\\uDC8E\\uD83D\\uDCB8⬇\\uD83D\\uDE28\\uD83C\\uDF1A\\uD83E\\uDD8B\\uD83D\\uDE37\\uD83D\\uDD7A⚠\\uD83D\\uDE45\\uD83D\\uDE1F\\uD83D\\uDE35\\uD83D\\uDC4E\\uD83E\\uDD32\\uD83E\\uDD20\\uD83E\\uDD27\\uD83D\\uDCCC\\uD83D\\uDD35\\uD83D\\uDC85\\uD83E\\uDDD0\\uD83D\\uDC3E\\uD83C\\uDF52\\uD83D\\uDE17\\uD83E\\uDD11\\uD83C\\uDF0A\\uD83E\\uDD2F\\uD83D\\uDC37☎\\uD83D\\uDCA7\\uD83D\\uDE2F\\uD83D\\uDC86\\uD83D\\uDC46\\uD83C\\uDFA4\\uD83D\\uDE47\\uD83C\\uDF51❄\\uD83C\\uDF34\\uD83D\\uDCA3\\uD83D\\uDC38\\uD83D\\uDC8C\\uD83D\\uDCCD\\uD83E\\uDD40\\uD83E\\uDD22\\uD83D\\uDC45\\uD83D\\uDCA1\\uD83D\\uDCA9\\uD83D\\uDC50\\uD83D\\uDCF8\\uD83D\\uDC7B\\uD83E\\uDD10\\uD83E\\uDD2E\\uD83C\\uDFBC\\uD83E\\uDD75\\uD83D\\uDEA9\\uD83C\\uDF4E\\uD83C\\uDF4A\\uD83D\\uDC7C\\uD83D\\uDC8D\\uD83D\\uDCE3\\uD83E\\uDD42\"),er=et.reduce((e,t,r)=>(e[r]=t,e),[]),en=et.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),ei=$({prefix:\"\\uD83D\\uDE80\",name:\"base256emoji\",encode:function(e){return e.reduce((e,t)=>e+=er[t],\"\")},decode:function(e){let t=[];for(let r of e){let e=en[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var es=function e(t,r,n){r=r||[];for(var i=n=n||0;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r},eo=function e(t,r){var n,i=0,r=r||0,s=0,o=r,a=t.length;do{if(o>=a)throw e.bytes=0,RangeError(\"Could not decode varint\");n=t[o++],i+=s<28?(127&n)<<s:(127&n)*Math.pow(2,s),s+=7}while(n>=128);return e.bytes=o-r,i};let ea=(e,t=0)=>[eo(e,t),eo.bytes],el=(e,t,r=0)=>(es(e,t,r),t),eu=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,ec=(e,t)=>{let r=t.byteLength,n=eu(e),i=n+eu(r),s=new Uint8Array(i+r);return el(e,s,0),el(r,s,n),s.set(t,i),new ef(e,r,t,s)},ed=e=>{let t=v(e),[r,n]=ea(t),[i,s]=ea(t.subarray(n)),o=t.subarray(n+s);if(o.byteLength!==i)throw Error(\"Incorrect length\");return new ef(r,i,o,t)},eh=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&b(e.bytes,t.bytes);class ef{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ep=({name:e,code:t,encode:r})=>new eg(e,t,r);class eg{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error(\"Unknown type, must be binary type\")}}let em=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ey=ep({name:\"sha2-256\",code:18,encode:em(\"SHA-256\")}),eb=ep({name:\"sha2-512\",code:19,encode:em(\"SHA-512\")}),ev={code:0,name:\"identity\",encode:v,digest:e=>ec(0,v(e))},ew=\"raw\",e_=85,eE=e=>v(e),eA=e=>v(e),ex=new TextEncoder,ek=new TextDecoder,eS=\"json\",e$=512,eC=e=>ex.encode(JSON.stringify(e)),eP=e=>JSON.parse(ek.decode(e));class eI{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eB,byteLength:eB,code:ej,version:ej,multihash:ej,bytes:ej,_baseCache:eB,asCID:eB})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eR)throw Error(\"Cannot convert a non dag-pb CID to CIDv0\");if(t.code!==eT)throw Error(\"Cannot convert non sha2-256 multihash CID to CIDv0\");return eI.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=ec(e,t);return eI.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&eh(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eN(t,n,e||Y.encoder):eM(t,n,e||j.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return\"CID\"}[Symbol.for(\"nodejs.util.inspect.custom\")](){return\"CID(\"+this.toString()+\")\"}static isCID(e){return eF(/^0\\.0/,eU),!!(e&&(e[eL]||e.asCID===e))}get toBaseEncodedString(){throw Error(\"Deprecated, use .toString()\")}get codec(){throw Error('\"codec\" property is deprecated, use integer \"code\" property instead')}get buffer(){throw Error(\"Deprecated .buffer property, use .bytes to get Uint8Array instead\")}get multibaseName(){throw Error('\"multibaseName\" property is deprecated')}get prefix(){throw Error('\"prefix\" property is deprecated')}static asCID(e){if(e instanceof eI)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eI(t,r,n,i||eD(t,r,n.bytes))}if(null==e||!0!==e[eL])return null;{let{version:t,multihash:r,code:n}=e,i=ed(r);return eI.create(t,n,i)}}static create(e,t,r){if(\"number\"!=typeof t)throw Error(\"String codecs are no longer supported\");switch(e){case 0:if(t===eR)return new eI(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eR}) block encoding`);case 1:{let n=eD(e,t,r.bytes);return new eI(e,t,r,n)}default:throw Error(\"Invalid version\")}}static createV0(e){return eI.create(0,eR,e)}static createV1(e,t){return eI.create(1,e,t)}static decode(e){let[t,r]=eI.decodeFirst(e);if(r.length)throw Error(\"Incorrect length\");return t}static decodeFirst(e){let t=eI.inspectBytes(e),r=t.size-t.multihashSize,n=v(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error(\"Incorrect length\");let i=n.subarray(t.multihashSize-t.digestSize),s=new ef(t.multihashCode,t.digestSize,i,n);return[0===t.version?eI.createV0(s):eI.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=ea(e.subarray(t));return t+=n,r},n=r(),i=eR;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let s=t,o=r(),a=r(),l=t+a;return{version:n,codec:i,multihashCode:o,digestSize:a,multihashSize:l-s,size:l}}static parse(e,t){let[r,n]=eO(e,t),i=eI.decode(n);return i._baseCache.set(r,e),i}}let eO=(e,t)=>{switch(e[0]){case\"Q\":return[Y.prefix,(t||Y).decode(`${Y.prefix}${e}`)];case Y.prefix:return[Y.prefix,(t||Y).decode(e)];case j.prefix:return[j.prefix,(t||j).decode(e)];default:if(null==t)throw Error(\"To parse non base32 or base58btc encoded CID multibase decoder must be provided\");return[e[0],t.decode(e)]}},eN=(e,t,r)=>{let{prefix:n}=r;if(n!==Y.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},eM=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eR=112,eT=18,eD=(e,t,r)=>{let n=eu(e),i=n+eu(t),s=new Uint8Array(i+r.byteLength);return el(e,s,0),el(t,s,n),s.set(r,i),s},eL=Symbol.for(\"@ipld/js-cid/CID\"),ej={writable:!1,configurable:!1,enumerable:!0},eB={writable:!1,enumerable:!1,configurable:!1},eF=(e,t)=>{if(e.test(\"0.0.0-dev\"))console.warn(t);else throw Error(t)},eU=`CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n  doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n  // Make sure to use cid instead of value\n  doSomethingWithCID(cid)\n}\n`,ez={...n,...i,...s,...o,...a,...l,...u,...c,...d,...h};({...f,...p});var eq=r(69199);function eH(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let eG=eH(\"utf8\",\"u\",e=>\"u\"+new TextDecoder(\"utf8\").decode(e),e=>new TextEncoder().encode(e.substring(1))),eV=eH(\"ascii\",\"a\",e=>{let t=\"a\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=(0,eq.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t});var eW={utf8:eG,\"utf-8\":eG,hex:ez.base16,latin1:eV,ascii:eV,binary:eV,...ez}},96104:function(e,t,r){\"use strict\";function n(e){return\"string\"==typeof e?{address:e,type:\"json-rpc\"}:e}r.d(t,{T:function(){return n}})},12994:function(e,t,r){\"use strict\";r.d(t,{R:function(){return ee}});var n=r(43197);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/,s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/,o=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?<returns>.*?)\\))?$/,a=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?<properties>.*?)\\}$/,l=/^constructor\\((?<parameters>.*?)\\)(?:\\s(?<stateMutability>payable{1}))?$/,u=/^fallback\\(\\) external(?:\\s(?<stateMutability>payable{1}))?$/,c=/^receive\\(\\) external payable$/,d=new Set([\"indexed\"]),h=new Set([\"calldata\",\"memory\",\"storage\"]);class f extends Error{constructor(e,t={}){let r=t.cause instanceof f?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof f&&t.cause.docsPath||t.docsPath;super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],\"Version: abitype@1.0.5\"].join(\"\\n\")),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class p extends f{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}}class g extends f{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}class m extends f{constructor({param:e}){super(\"Invalid ABI parameter.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}}class y extends f{constructor({param:e,name:t}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`\"${t}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}}class b extends f{constructor({param:e,type:t,modifier:r}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${r}\" not allowed${t?` in \"${t}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}}class v extends f{constructor({param:e,type:t,modifier:r}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${r}\" not allowed${t?` in \"${t}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${r}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}}class w extends f{constructor({abiParameter:e}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(e,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}class _ extends f{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}}class E extends f{constructor({signature:e}){super(\"Unknown signature.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}}class A extends f{constructor({signature:e}){super(\"Invalid struct signature.\",{details:e,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}class x extends f{constructor({type:e}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${e}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}class k extends f{constructor({current:e,depth:t}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${e.trim()}\" has too many ${t>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${t}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}let S=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]]),$=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,C=/^\\((?<type>.+?)\\)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,P=/^u?int$/;function I(e,t){var r,i,s;let o;let a=(r=t?.type)?`${r}:${e}`:e;if(S.has(a))return S.get(a);let l=n.cN.test(e),u=(0,n.Zw)(l?C:$,e);if(!u)throw new m({param:e});if(u.name&&(\"address\"===(i=u.name)||\"bool\"===i||\"function\"===i||\"string\"===i||\"tuple\"===i||n.eL.test(i)||n.lh.test(i)||M.test(i)))throw new y({param:e,name:u.name});let c=u.name?{name:u.name}:{},d=\"indexed\"===u.modifier?{indexed:!0}:{},f=t?.structs??{},p={};if(l){o=\"tuple\";let e=O(u.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(I(e[n],{structs:f}));p={components:t}}else if(u.type in f)o=\"tuple\",p={components:f[u.type]};else if(P.test(u.type))o=`${u.type}256`;else if(o=u.type,t?.type!==\"struct\"&&!N(o))throw new g({type:o});if(u.modifier){if(!t?.modifiers?.has?.(u.modifier))throw new b({param:e,type:t?.type,modifier:u.modifier});if(h.has(u.modifier)&&(s=o,!u.array&&\"bytes\"!==s&&\"string\"!==s&&\"tuple\"!==s))throw new v({param:e,type:t?.type,modifier:u.modifier})}let w={type:`${o}${u.array??\"\"}`,...c,...d,...p};return S.set(a,w),w}function O(e,t=[],r=\"\",n=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],o=e.slice(s+1);switch(i){case\",\":return 0===n?O(o,[...t,r.trim()]):O(o,t,`${r}${i}`,n);case\"(\":return O(o,t,`${r}${i}`,n+1);case\")\":return O(o,t,`${r}${i}`,n-1);default:return O(o,t,`${r}${i}`,n)}}if(\"\"===r)return t;if(0!==n)throw new k({current:r,depth:n});return t.push(r.trim()),t}function N(e){return\"address\"===e||\"bool\"===e||\"function\"===e||\"string\"===e||n.eL.test(e)||n.lh.test(e)}let M=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,R=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?$/;function T(e){let t=function(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!a.test(r))continue;let s=(0,n.Zw)(a,r);if(!s)throw new _({signature:r,type:\"struct\"});let o=s.properties.split(\";\"),l=[],u=o.length;for(let e=0;e<u;e++){let t=o[e].trim();if(!t)continue;let r=I(t,{type:\"struct\"});l.push(r)}if(!l.length)throw new A({signature:r});t[s.name]=l}let i={},s=Object.entries(t),o=s.length;for(let e=0;e<o;e++){let[r,o]=s[e];i[r]=function e(t,r,i=new Set){let s=[],o=t.length;for(let a=0;a<o;a++){let o=t[a];if(n.cN.test(o.type))s.push(o);else{let t=(0,n.Zw)(R,o.type);if(!t?.type)throw new w({abiParameter:o});let{array:a,type:l}=t;if(l in r){if(i.has(l))throw new x({type:l});s.push({...o,type:`tuple${a??\"\"}`,components:e(r[l]??[],r,new Set([...i,l]))})}else if(N(l))s.push(o);else throw new p({type:l})}}return s}(o,t)}return i}(e),r=[],f=e.length;for(let p=0;p<f;p++){let f=e[p];a.test(f)||r.push(function(e,t={}){if(o.test(e)){let r=(0,n.Zw)(o,e);if(!r)throw new _({signature:e,type:\"function\"});let i=O(r.parameters),s=[],a=i.length;for(let e=0;e<a;e++)s.push(I(i[e],{modifiers:h,structs:t,type:\"function\"}));let l=[];if(r.returns){let e=O(r.returns),n=e.length;for(let r=0;r<n;r++)l.push(I(e[r],{modifiers:h,structs:t,type:\"function\"}))}return{name:r.name,type:\"function\",stateMutability:r.stateMutability??\"nonpayable\",inputs:s,outputs:l}}if(s.test(e)){let r=(0,n.Zw)(s,e);if(!r)throw new _({signature:e,type:\"event\"});let i=O(r.parameters),o=[],a=i.length;for(let e=0;e<a;e++)o.push(I(i[e],{modifiers:d,structs:t,type:\"event\"}));return{name:r.name,type:\"event\",inputs:o}}if(i.test(e)){let r=(0,n.Zw)(i,e);if(!r)throw new _({signature:e,type:\"error\"});let s=O(r.parameters),o=[],a=s.length;for(let e=0;e<a;e++)o.push(I(s[e],{structs:t,type:\"error\"}));return{name:r.name,type:\"error\",inputs:o}}if(l.test(e)){let r=(0,n.Zw)(l,e);if(!r)throw new _({signature:e,type:\"constructor\"});let i=O(r.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(I(i[e],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:r.stateMutability??\"nonpayable\",inputs:s}}if(u.test(e))return{type:\"fallback\"};if(c.test(e))return{type:\"receive\",stateMutability:\"payable\"};throw new E({signature:e})}(f,t))}return r}var D=r(96104),L=r(21620),j=r(13955),B=r(48926),F=r(89045),U=r(58591),z=r(97225),q=r(32637),H=r(31006),G=r(18543),V=r(95046),W=r(37764),K=r(43149),Y=r(27031),Z=r(37669),J=r(10639),Q=r(11667),X=r(82857);async function ee(e,t){let{account:n=e.account,batch:i=!!e.batch?.multicall,blockNumber:s,blockTag:o=\"latest\",accessList:a,blobs:l,code:u,data:c,factory:d,factoryData:h,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:b,to:v,value:w,stateOverride:_,...E}=t,A=n?(0,D.T)(n):void 0;if(u&&(d||h))throw new B.G(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(u&&v)throw new B.G(\"Cannot provide both `code` & `to` as parameters.\");let x=u&&c,k=d&&h&&v&&c,S=x||k,$=x?function(e){let{code:t,data:r}=e;return(0,q.w)({abi:T([\"constructor(bytes, bytes)\"]),bytecode:j.NO,args:[t,r]})}({code:u,data:c}):k?function(e){let{data:t,factory:r,factoryData:n,to:i}=e;return(0,q.w)({abi:T([\"constructor(address, bytes, address, bytes)\"]),bytecode:j.pG,args:[i,t,r,n]})}({data:c,factory:d,factoryData:h,to:v}):c;try{(0,X.F)(t);let r=(s?(0,V.eC)(s):void 0)||o,n=(0,Q.mF)(_),u=e.chain?.formatters?.transactionRequest?.format,c=(u||Z.tG)({...(0,Y.K)(E,{format:u}),from:A?.address,accessList:a,blobs:l,data:$,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:b,to:S?void 0:v,value:w});if(i&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(\"0x82ad56cb\"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:c})&&!n)try{return await et(e,{...c,blockNumber:s,blockTag:o})}catch(e){if(!(e instanceof F.pZ)&&!(e instanceof F.mm))throw e}let d=await e.request({method:\"eth_call\",params:n?[c,r,n]:[c,r]});if(\"0x\"===d)return{data:void 0};return{data:d}}catch(o){let n=function(e){if(!(e instanceof B.G))return;let t=e.walk();return\"object\"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:i,offchainLookupSignature:s}=await r.e(26).then(r.bind(r,35026));if(!1!==e.ccipRead&&n?.slice(0,10)===s&&v)return{data:await i(e,{data:n,to:v})};if(S&&n?.slice(0,10)===\"0x101bb98d\")throw new U.Mo({factory:d});throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,K.k)(e,r);return t instanceof W.cj?e:t})();return new U.cg(n,{docsPath:t,...r})}(o,{...t,account:A,chain:e.chain})}}async function et(e,t){let{batchSize:r=1024,wait:n=0}=\"object\"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:s=\"latest\",data:o,multicallAddress:a,to:l}=t,u=a;if(!u){if(!e.chain)throw new F.pZ;u=(0,G.L)({blockNumber:i,chain:e.chain,contract:\"multicall3\"})}let c=(i?(0,V.eC)(i):void 0)||s,{schedule:d}=(0,J.S)({id:`${e.uid}.${c}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,H.R)({abi:L.F8,args:[r],functionName:\"aggregate3\"}),i=await e.request({method:\"eth_call\",params:[{data:n,to:u},c]});return(0,z.k)({abi:L.F8,args:[r],functionName:\"aggregate3\",data:i||\"0x\"})}}),[{returnData:h,success:f}]=await d({data:o,to:l});if(!f)throw new U.VQ({data:h});return\"0x\"===h?{data:void 0}:{data:h}}},5:function(e,t,r){\"use strict\";r.d(t,{v:function(){return tY}});var n=r(96104),i=r(14851),s=r(21620),o=r(97225),a=r(31006),l=r(18543),u=r(77955),c=r(95046),d=r(47807),h=r(48926),f=r(58591);function p(e,t){if(!(e instanceof h.G))return!1;let r=e.walk(e=>e instanceof f.Lu);return r instanceof f.Lu&&(!!(r.data?.errorName===\"ResolverNotFound\"||r.data?.errorName===\"ResolverWildcardNotSupported\"||r.data?.errorName===\"ResolverNotContract\"||r.data?.errorName===\"ResolverError\"||r.data?.errorName===\"HttpError\"||r.reason?.includes(\"Wildcard on non-extended resolvers is not supported\"))||\"reverse\"===t&&r.reason===d.$[50])}var g=r(53932),m=r(82361),y=r(36494),b=r(40369);function v(e){if(66!==e.length||0!==e.indexOf(\"[\")||65!==e.indexOf(\"]\"))return null;let t=`0x${e.slice(1,65)}`;return(0,b.v)(t)?t:null}function w(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,c.ci)(t);let r=e.split(\".\");for(let e=r.length-1;e>=0;e-=1){let n=v(r[e]),i=n?(0,m.O0)(n):(0,y.w)((0,m.qX)(r[e]),\"bytes\");t=(0,y.w)((0,g.zo)([t,i]),\"bytes\")}return(0,c.ci)(t)}function _(e){let t=e.replace(/^\\.|\\.$/gm,\"\");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,m.qX)(t).byteLength+2),n=0,i=t.split(\".\");for(let e=0;e<i.length;e++){let t=(0,m.qX)(i[e]);if(t.byteLength>255){var s;t=(0,m.qX)((s=function(e){let t=new Uint8Array(32).fill(0);return e?v(e)||(0,y.w)((0,m.qX)(e)):(0,c.ci)(t)}(i[e]),`[${s.slice(2)}]`))}r[n]=t.length,r.set(t,n+1),n+=t.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}function E(e,t,r){let n=e[t.name];if(\"function\"==typeof n)return n;let i=e[r];return\"function\"==typeof i?i:r=>t(e,r)}var A=r(52186),x=r(96329);function k(e,{abi:t,address:r,args:n,docsPath:i,functionName:s,sender:o}){let{code:a,data:l,message:u,shortMessage:c}=e instanceof f.VQ?e:e instanceof h.G?e.walk(e=>\"data\"in e)||e.walk():{},d=e instanceof A.wb?new f.Dk({functionName:s}):[3,x.XS.code].includes(a)&&(l||u||c)?new f.Lu({abi:t,data:\"object\"==typeof l?l.data:l,functionName:s,message:c??u}):e;return new f.uq(d,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:s,sender:o})}var S=r(12994);async function $(e,t){let{abi:r,address:n,args:i,functionName:s,...l}=t,u=(0,a.R)({abi:r,args:i,functionName:s});try{let{data:t}=await E(e,S.R,\"call\")({...l,data:u,to:n});return(0,o.k)({abi:r,args:i,functionName:s,data:t||\"0x\"})}catch(e){throw k(e,{abi:r,address:n,args:i,docsPath:\"/docs/contract/readContract\",functionName:s})}}async function C(e,{blockNumber:t,blockTag:r,coinType:n,name:i,gatewayUrls:d,strict:h,universalResolverAddress:f}){let g=f;if(!g){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");g=(0,l.L)({blockNumber:t,chain:e.chain,contract:\"ensUniversalResolver\"})}try{let l=(0,a.R)({abi:s.X$,functionName:\"addr\",...null!=n?{args:[w(i),BigInt(n)]}:{args:[w(i)]}}),h={address:g,abi:s.k3,functionName:\"resolve\",args:[(0,c.NC)(_(i)),l],blockNumber:t,blockTag:r},f=E(e,$,\"readContract\"),p=d?await f({...h,args:[...h.args,d]}):await f(h);if(\"0x\"===p[0])return null;let m=(0,o.k)({abi:s.X$,args:null!=n?[w(i),BigInt(n)]:void 0,functionName:\"addr\",data:p[0]});if(\"0x\"===m||\"0x00\"===(0,u.f)(m))return null;return m}catch(e){if(h)throw e;if(p(e,\"resolve\"))return null;throw e}}class P extends h.G{constructor({data:e}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarInvalidMetadataError\"})}}class I extends h.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarInvalidNftUriError\"})}}class O extends h.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI \"${e}\". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarUriResolutionError\"})}}class N extends h.G{constructor({namespace:e}){super(`ENS NFT avatar namespace \"${e}\" is not supported. Must be \"erc721\" or \"erc1155\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EnsAvatarUnsupportedNamespaceError\"})}}let M=/(?<protocol>https?:\\/\\/[^\\/]*|ipfs:\\/|ipns:\\/|ar:\\/)?(?<root>\\/)?(?<subpath>ipfs\\/|ipns\\/)?(?<target>[\\w\\-.]+)(?<subtarget>\\/.*)?/,R=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\/(?<target>[\\w\\-.]+))?(?<subtarget>\\/.*)?$/,T=/^data:([a-zA-Z\\-/+]*);base64,([^\"].*)/,D=/^data:([a-zA-Z\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function L(e){try{let t=await fetch(e,{method:\"HEAD\"});if(200===t.status){let e=t.headers.get(\"content-type\");return e?.startsWith(\"image/\")}return!1}catch(t){if(\"object\"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty(\"Image\"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function j(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function B({uri:e,gatewayUrls:t}){let r=T.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=j(t?.ipfs,\"https://ipfs.io\"),i=j(t?.arweave,\"https://arweave.net\"),s=e.match(M),{protocol:o,subpath:a,target:l,subtarget:u=\"\"}=s?.groups||{},c=\"ipns:/\"===o||\"ipns/\"===a,d=\"ipfs:/\"===o||\"ipfs/\"===a||R.test(e);if(e.startsWith(\"http\")&&!c&&!d){let r=e;return t?.arweave&&(r=e.replace(/https:\\/\\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((c||d)&&l)return{uri:`${n}/${c?\"ipns\":\"ipfs\"}/${l}${u}`,isOnChain:!1,isEncoded:!1};if(\"ar:/\"===o&&l)return{uri:`${i}/${l}${u||\"\"}`,isOnChain:!1,isEncoded:!1};let h=e.replace(D,\"\");if(h.startsWith(\"<svg\")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith(\"data:\")||h.startsWith(\"{\"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new O({uri:e})}function F(e){if(\"object\"!=typeof e||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new P({data:e});return e.image||e.image_url||e.image_data}async function U({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await z({gatewayUrls:e,uri:F(r)})}catch{throw new O({uri:t})}}async function z({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=B({uri:t,gatewayUrls:e});if(n||await L(r))return r;throw new O({uri:t})}async function q(e,{nft:t}){if(\"erc721\"===t.namespace)return $(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(\"erc1155\"===t.namespace)return $(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new N({namespace:t.namespace})}async function H(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?G(e,{gatewayUrls:t,record:r}):z({uri:r,gatewayUrls:t})}async function G(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));let[r,n,i]=t.split(\"/\"),[s,o]=r.split(\":\"),[a,l]=n.split(\":\");if(!s||\"eip155\"!==s.toLowerCase())throw new I({reason:\"Only EIP-155 supported\"});if(!o)throw new I({reason:\"Chain ID not found\"});if(!l)throw new I({reason:\"Contract address not found\"});if(!i)throw new I({reason:\"Token ID not found\"});if(!a)throw new I({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(o),namespace:a.toLowerCase(),contractAddress:l,tokenID:i}}(r),{uri:i,isOnChain:s,isEncoded:o}=B({uri:await q(e,{nft:n}),gatewayUrls:t});if(s&&(i.includes(\"data:application/json;base64,\")||i.startsWith(\"{\")))return z({uri:F(JSON.parse(o?atob(i.replace(\"data:application/json;base64,\",\"\")):i)),gatewayUrls:t});let a=n.tokenID;return\"erc1155\"===n.namespace&&(a=a.replace(\"0x\",\"\").padStart(64,\"0\")),U({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,a)})}async function V(e,{blockNumber:t,blockTag:r,name:n,key:i,gatewayUrls:u,strict:d,universalResolverAddress:h}){let f=h;if(!f){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");f=(0,l.L)({blockNumber:t,chain:e.chain,contract:\"ensUniversalResolver\"})}try{let l={address:f,abi:s.k3,functionName:\"resolve\",args:[(0,c.NC)(_(n)),(0,a.R)({abi:s.nZ,functionName:\"text\",args:[w(n),i]})],blockNumber:t,blockTag:r},d=E(e,$,\"readContract\"),h=u?await d({...l,args:[...l.args,u]}):await d(l);if(\"0x\"===h[0])return null;let p=(0,o.k)({abi:s.nZ,functionName:\"text\",data:h[0]});return\"\"===p?null:p}catch(e){if(d)throw e;if(p(e,\"resolve\"))return null;throw e}}async function W(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:s,strict:o,universalResolverAddress:a}){let l=await E(e,V,\"getEnsText\")({blockNumber:t,blockTag:r,key:\"avatar\",name:i,universalResolverAddress:a,gatewayUrls:s,strict:o});if(!l)return null;try{return await H(e,{record:l,gatewayUrls:n})}catch{return null}}async function K(e,{address:t,blockNumber:r,blockTag:n,gatewayUrls:i,strict:o,universalResolverAddress:a}){let u=a;if(!u){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");u=(0,l.L)({blockNumber:r,chain:e.chain,contract:\"ensUniversalResolver\"})}let d=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let o={address:u,abi:s.du,functionName:\"reverse\",args:[(0,c.NC)(_(d))],blockNumber:r,blockTag:n},a=E(e,$,\"readContract\"),[l,h]=i?await a({...o,args:[...o.args,i]}):await a(o);if(t.toLowerCase()!==h.toLowerCase())return null;return l}catch(e){if(o)throw e;if(p(e,\"reverse\"))return null;throw e}}async function Y(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let s=i;if(!s){if(!e.chain)throw Error(\"client chain not configured. universalResolverAddress is required.\");s=(0,l.L)({blockNumber:t,chain:e.chain,contract:\"ensUniversalResolver\"})}let[o]=await E(e,$,\"readContract\")({address:s,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[(0,c.NC)(_(n))],blockNumber:t,blockTag:r});return o}function Z(e,{method:t}){let r={};return\"fallback\"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:s})=>{\"success\"===i&&t===e&&(r[n]=s.request)}),t=>r[t]||e.request}async function J(e){let t=Z(e,{method:\"eth_newBlockFilter\"}),r=await e.request({method:\"eth_newBlockFilter\"});return{id:r,request:t(r),type:\"block\"}}class Q extends h.G{constructor(e){super(`Filter type \"${e}\" is not supported.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FilterTypeNotSupportedError\"})}}var X=r(53263),ee=r(39480),et=r(20101),er=r(18748);let en=\"/docs/contract/encodeEventTopics\";function ei(e){let{abi:t,eventName:r,args:n}=e,i=t[0];if(r){let e=(0,er.mE)({abi:t,name:r});if(!e)throw new A.mv(r,{docsPath:en});i=e}if(\"event\"!==i.type)throw new A.mv(void 0,{docsPath:en});let s=(0,et.t)(i),o=(0,X.n)(s),a=[];if(n&&\"inputs\"in i){let e=i.inputs?.filter(e=>\"indexed\"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(a=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>es({param:e,value:t[r][i]})):t[r]?es({param:e,value:t[r]}):null)??[])}return[o,...a]}function es({param:e,value:t}){if(\"string\"===e.type||\"bytes\"===e.type)return(0,y.w)((0,m.O0)(t));if(\"tuple\"===e.type||e.type.match(/^(.*)\\[(\\d+)?\\]$/))throw new Q(e.type);return(0,ee.E)([e],[t])}async function eo(e,t){let{address:r,abi:n,args:i,eventName:s,fromBlock:o,strict:a,toBlock:l}=t,u=Z(e,{method:\"eth_newFilter\"}),d=s?ei({abi:n,args:i,eventName:s}):void 0,h=await e.request({method:\"eth_newFilter\",params:[{address:r,fromBlock:\"bigint\"==typeof o?(0,c.eC)(o):o,toBlock:\"bigint\"==typeof l?(0,c.eC)(l):l,topics:d}]});return{abi:n,args:i,eventName:s,id:h,request:u(h),strict:!!a,type:\"event\"}}async function ea(e,{address:t,args:r,event:n,events:i,fromBlock:s,strict:o,toBlock:a}={}){let l=i??(n?[n]:void 0),u=Z(e,{method:\"eth_newFilter\"}),d=[];l&&(d=[l.flatMap(e=>ei({abi:[e],eventName:e.name,args:r}))],n&&(d=d[0]));let h=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:\"bigint\"==typeof s?(0,c.eC)(s):s,toBlock:\"bigint\"==typeof a?(0,c.eC)(a):a,...d.length?{topics:d}:{}}]});return{abi:l,args:r,eventName:n?n.name:void 0,fromBlock:s,id:h,request:u(h),strict:!!o,toBlock:a,type:\"event\"}}async function el(e){let t=Z(e,{method:\"eth_newPendingTransactionFilter\"}),r=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:r,request:t(r),type:\"transaction\"}}var eu=r(85053),ec=r(49268),ed=r(97658);class eh extends h.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:s,gasPrice:o,maxFeePerGas:a,maxPriorityFeePerGas:l,nonce:u,to:c,value:d}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",(0,ed.xr)({from:t?.address,to:c,value:void 0!==d&&`${(0,eu.d)(d)} ${n?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:s,gasPrice:void 0!==o&&`${(0,ec.o)(o)} gwei`,maxFeePerGas:void 0!==a&&`${(0,ec.o)(a)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,ec.o)(l)} gwei`,nonce:u})].filter(Boolean)}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EstimateGasExecutionError\"}),this.cause=e}}var ef=r(37764),ep=r(43149),eg=r(27031),em=r(37669),ey=r(11667),eb=r(82857);class ev extends h.G{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseFeeScalarError\"})}}class ew extends h.G{constructor(){super(\"Chain does not support EIP-1559 fees.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Eip1559FeesNotSupportedError\"})}}class e_ extends h.G{constructor({maxPriorityFeePerGas:e}){super(`\\`maxFeePerGas\\` cannot be less than the \\`maxPriorityFeePerGas\\` (${(0,ec.o)(e)} gwei).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MaxFeePerGasTooLowError\"})}}var eE=r(21019);class eA extends h.G{constructor({blockHash:e,blockNumber:t}){let r=\"Block\";e&&(r=`Block at hash \"${e}\"`),t&&(r=`Block at number \"${t}\"`),super(`${r} could not be found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BlockNotFoundError\"})}}let ex={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\"};function ek(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,eE.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,eE.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?ex[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(\"bigint\"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),\"legacy\"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),\"eip2930\"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),\"eip1559\"===t.type&&delete t.maxFeePerBlobGas,t}function eS(e){let t=e.transactions?.map(e=>\"string\"==typeof e?e:ek(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function e$(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:i}={}){let s=i??!1,o=void 0!==r?(0,c.eC)(r):void 0,a=null;if(!(a=t?await e.request({method:\"eth_getBlockByHash\",params:[t,s]},{dedupe:!0}):await e.request({method:\"eth_getBlockByNumber\",params:[o||(n??\"latest\"),s]},{dedupe:!!o})))throw new eA({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||eS)(a)}async function eC(e){return BigInt(await e.request({method:\"eth_gasPrice\"}))}async function eP(e,t){return eI(e,t)}async function eI(e,t){let{block:r,chain:n=e.chain,request:i}=t||{};if(\"function\"==typeof n?.fees?.defaultPriorityFee){let t=r||await E(e,e$,\"getBlock\")({});return n.fees.defaultPriorityFee({block:t,client:e,request:i})}if(void 0!==n?.fees?.defaultPriorityFee)return n?.fees?.defaultPriorityFee;try{let t=await e.request({method:\"eth_maxPriorityFeePerGas\"});return(0,eE.y_)(t)}catch{let[t,n]=await Promise.all([r?Promise.resolve(r):E(e,e$,\"getBlock\")({}),E(e,eC,\"getGasPrice\")({})]);if(\"bigint\"!=typeof t.baseFeePerGas)throw new ew;let i=n-t.baseFeePerGas;if(i<0n)return 0n;return i}}async function eO(e,t){return eN(e,t)}async function eN(e,t){let{block:r,chain:n=e.chain,request:i,type:s=\"eip1559\"}=t||{},o=await (async()=>\"function\"==typeof n?.fees?.baseFeeMultiplier?n.fees.baseFeeMultiplier({block:r,client:e,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(o<1)throw new ev;let a=10**(o.toString().split(\".\")[1]?.length??0),l=e=>e*BigInt(Math.ceil(o*a))/BigInt(a),u=r||await E(e,e$,\"getBlock\")({});if(\"function\"==typeof n?.fees?.estimateFeesPerGas){let t=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:l,request:i,type:s});if(null!==t)return t}if(\"eip1559\"===s){if(\"bigint\"!=typeof u.baseFeePerGas)throw new ew;let t=\"bigint\"==typeof i?.maxPriorityFeePerGas?i.maxPriorityFeePerGas:await eI(e,{block:u,chain:n,request:i}),r=l(u.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??l(await E(e,eC,\"getGasPrice\")({}))}}async function eM(e,{address:t,blockTag:r=\"latest\",blockNumber:n}){let i=await e.request({method:\"eth_getTransactionCount\",params:[t,n?(0,c.eC)(n):r]},{dedupe:!!n});return(0,eE.ly)(i)}function eR(e){let{kzg:t}=e,r=e.to??(\"string\"==typeof e.blobs[0]?\"hex\":\"bytes\"),n=\"string\"==typeof e.blobs[0]?e.blobs.map(e=>(0,m.nr)(e)):e.blobs,i=[];for(let e of n)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return\"bytes\"===r?i:i.map(e=>(0,c.ci)(e))}function eT(e){let{kzg:t}=e,r=e.to??(\"string\"==typeof e.blobs[0]?\"hex\":\"bytes\"),n=\"string\"==typeof e.blobs[0]?e.blobs.map(e=>(0,m.nr)(e)):e.blobs,i=\"string\"==typeof e.commitments[0]?e.commitments.map(e=>(0,m.nr)(e)):e.commitments,s=[];for(let e=0;e<n.length;e++){let r=n[e],o=i[e];s.push(Uint8Array.from(t.computeBlobKzgProof(r,o)))}return\"bytes\"===r?s:s.map(e=>(0,c.ci)(e))}var eD=r(80543);class eL extends h.G{constructor({maxSize:e,size:t}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BlobSizeTooLargeError\"})}}class ej extends h.G{constructor(){super(\"Blob data must not be empty.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"EmptyBlobError\"})}}var eB=r(15222),eF=r(7508);async function eU(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return(0,eE.ly)(t)}let ez=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"];async function eq(e,t){let r,i;let{account:s=e.account,blobs:o,chain:a,gas:l,kzg:u,nonce:d,parameters:h=ez,type:f}=t,p=s?(0,n.T)(s):void 0,g={...t,...p?{from:p?.address}:{}};async function y(){return r||(r=await E(e,e$,\"getBlock\")({blockTag:\"latest\"}))}async function v(){return i||(a?a.id:void 0!==t.chainId?t.chainId:i=await E(e,eU,\"getChainId\")({}))}if((h.includes(\"blobVersionedHashes\")||h.includes(\"sidecars\"))&&o&&u){let e=eR({blobs:o,kzg:u});if(h.includes(\"blobVersionedHashes\")){let t=function(e){let{commitments:t,version:r}=e,n=e.to??(\"string\"==typeof t[0]?\"hex\":\"bytes\"),i=[];for(let e of t)i.push(function(e){let{commitment:t,version:r=1}=e,n=e.to??(\"string\"==typeof t?\"hex\":\"bytes\"),i=function(e,t){let r=(0,eD.J)((0,b.v)(e,{strict:!1})?(0,m.O0)(e):e);return\"bytes\"===(t||\"hex\")?r:(0,c.NC)(r)}(t,\"bytes\");return i.set([r],0),\"bytes\"===n?i:(0,c.ci)(i)}({commitment:e,to:n,version:r}));return i}({commitments:e,to:\"hex\"});g.blobVersionedHashes=t}if(h.includes(\"sidecars\")){let t=eT({blobs:o,commitments:e,kzg:u}),r=function(e){let{data:t,kzg:r,to:n}=e,i=e.blobs??function(e){let t=e.to??(\"string\"==typeof e.data?\"hex\":\"bytes\"),r=\"string\"==typeof e.data?(0,m.nr)(e.data):e.data,n=(0,eF.d)(r);if(!n)throw new ej;if(n>761855)throw new eL({maxSize:761855,size:n});let i=[],s=!0,o=0;for(;s;){let e=(0,eB.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(o,o+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),s=!1;break}t++,o+=31}i.push(e)}return\"bytes\"===t?i.map(e=>e.bytes):i.map(e=>(0,c.ci)(e.bytes))}({data:t,to:n}),s=e.commitments??eR({blobs:i,kzg:r,to:n}),o=e.proofs??eT({blobs:i,commitments:s,kzg:r,to:n}),a=[];for(let e=0;e<i.length;e++)a.push({blob:i[e],commitment:s[e],proof:o[e]});return a}({blobs:o,commitments:e,proofs:t,to:\"hex\"});g.sidecars=r}}if(h.includes(\"chainId\")&&(g.chainId=await v()),h.includes(\"nonce\")&&void 0===d&&p){if(p.nonceManager){let t=await v();g.nonce=await p.nonceManager.consume({address:p.address,chainId:t,client:e})}else g.nonce=await E(e,eM,\"getTransactionCount\")({address:p.address,blockTag:\"pending\"})}if((h.includes(\"fees\")||h.includes(\"type\"))&&void 0===f)try{g.type=function(e){if(e.type)return e.type;if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return\"eip4844\";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return\"eip1559\";if(void 0!==e.gasPrice)return void 0!==e.accessList?\"eip2930\":\"legacy\";throw new ed.j3({transaction:e})}(g)}catch{let e=await y();g.type=\"bigint\"==typeof e?.baseFeePerGas?\"eip1559\":\"legacy\"}if(h.includes(\"fees\")){if(\"legacy\"!==g.type&&\"eip2930\"!==g.type){if(void 0===g.maxFeePerGas||void 0===g.maxPriorityFeePerGas){let r=await y(),{maxFeePerGas:n,maxPriorityFeePerGas:i}=await eN(e,{block:r,chain:a,request:g});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new e_({maxPriorityFeePerGas:i});g.maxPriorityFeePerGas=i,g.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new ew;let r=await y(),{gasPrice:n}=await eN(e,{block:r,chain:a,request:g,type:\"legacy\"});g.gasPrice=n}}return h.includes(\"gas\")&&void 0===l&&(g.gas=await E(e,eH,\"estimateGas\")({...g,account:p?{address:p.address,type:\"json-rpc\"}:void 0})),(0,eb.F)(g),delete g.parameters,g}async function eH(e,t){let r=t.account??e.account,i=r?(0,n.T)(r):void 0;try{let{accessList:r,blobs:n,blobVersionedHashes:s,blockNumber:o,blockTag:a,data:l,gas:u,gasPrice:d,maxFeePerBlobGas:h,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:g,to:m,value:y,stateOverride:b,...v}=await eq(e,{...t,parameters:i?.type===\"local\"?void 0:[\"blobVersionedHashes\"]}),w=(o?(0,c.eC)(o):void 0)||a,_=(0,ey.mF)(b);(0,eb.F)(t);let E=e.chain?.formatters?.transactionRequest?.format,A=(E||em.tG)({...(0,eg.K)(v,{format:E}),from:i?.address,accessList:r,blobs:n,blobVersionedHashes:s,data:l,gas:u,gasPrice:d,maxFeePerBlobGas:h,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:g,to:m,value:y}),x=await e.request({method:\"eth_estimateGas\",params:_?[A,w??\"latest\",_]:w?[A,w]:[A]});return BigInt(x)}catch(r){throw function(e,{docsPath:t,...r}){return new eh((()=>{let t=(0,ep.k)(e,r);return t instanceof ef.cj?e:t})(),{docsPath:t,...r})}(r,{...t,account:i,chain:e.chain})}}async function eG(e,t){let{abi:r,address:i,args:s,functionName:o,...l}=t,u=(0,a.R)({abi:r,args:s,functionName:o});try{return await E(e,eH,\"estimateGas\")({data:u,to:i,...l})}catch(t){let e=l.account?(0,n.T)(l.account):void 0;throw k(t,{abi:r,address:i,args:s,docsPath:\"/docs/contract/estimateContractGas\",functionName:o,sender:e?.address})}}async function eV(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let i=r?(0,c.eC)(r):void 0;return BigInt(await e.request({method:\"eth_getBalance\",params:[t,i||n]}))}async function eW(e){return BigInt(await e.request({method:\"eth_blobBaseFee\"}))}let eK=new Map,eY=new Map;async function eZ(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let n=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,eK),n=t(e,eY);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0&&new Date().getTime()-i.created.getTime()<r)return i.data;let s=n.promise.get();s||(s=e(),n.promise.set(s));try{let e=await s;return n.response.set({created:new Date,data:e}),e}finally{n.promise.clear()}}let eJ=e=>`blockNumber.${e}`;async function eQ(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await eZ(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:eJ(e.uid),cacheTime:t}))}async function eX(e,{blockHash:t,blockNumber:r,blockTag:n=\"latest\"}={}){let i;let s=void 0!==r?(0,c.eC)(r):void 0;return i=t?await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[s||n]},{dedupe:!!s}),(0,eE.ly)(i)}async function e0(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let i=void 0!==r?(0,c.eC)(r):void 0,s=await e.request({method:\"eth_getCode\",params:[t,i||n]},{dedupe:!!i});if(\"0x\"!==s)return s}var e1=r(65937),e2=r(19477),e3=r(52998);let e5=\"/docs/contract/decodeEventLog\";function e6(e){let{abi:t,data:r,strict:n,topics:i}=e,s=n??!0,[o,...a]=i;if(!o)throw new A.FM({docsPath:e5});let l=t.find(e=>\"event\"===e.type&&o===(0,X.n)((0,et.t)(e)));if(!(l&&\"name\"in l)||\"event\"!==l.type)throw new A.lC(o,{docsPath:e5});let{name:u,inputs:c}=l,d=c?.some(e=>!(\"name\"in e&&e.name)),h=d?[]:{},f=c.filter(e=>\"indexed\"in e&&e.indexed);for(let e=0;e<f.length;e++){let t=f[e],r=a[e];if(!r)throw new A.Gy({abiItem:l,param:t});h[d?e:t.name||e]=function({param:e,value:t}){return\"string\"===e.type||\"bytes\"===e.type||\"tuple\"===e.type||e.type.match(/^(.*)\\[(\\d+)?\\]$/)?t:((0,e3.r)([e],t)||[])[0]}({param:t,value:r})}let p=c.filter(e=>!(\"indexed\"in e&&e.indexed));if(p.length>0){if(r&&\"0x\"!==r)try{let e=(0,e3.r)(p,r);if(e){if(d)h=[...h,...e];else for(let t=0;t<p.length;t++)h[p[t].name]=e[t]}}catch(e){if(s){if(e instanceof A.xB||e instanceof e2.lQ)throw new A.SM({abiItem:l,data:r,params:p,size:(0,eF.d)(r)});throw e}}else if(s)throw new A.SM({abiItem:l,data:\"0x\",params:p,size:0})}return{eventName:u,args:Object.values(h).length>0?h:void 0}}function e4(e){let{abi:t,args:r,logs:n,strict:i=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(e=>{try{let n=(0,er.mE)({abi:t,name:e.topics[0]});if(!n)return null;let o=e6({...e,abi:[n],strict:i});if(s&&!s.includes(o.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function i(e,t,r){try{if(\"address\"===e.type)return(0,e1.E)(t,r);if(\"string\"===e.type||\"bytes\"===e.type)return(0,y.w)((0,m.O0)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(!e)return!0;let s=r[n];return!!s&&(Array.isArray(e)?e:[e]).some(e=>i(s,e,t[n]))}):!(\"object\"!=typeof t||Array.isArray(t)||\"object\"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(!n)return!0;let s=r.find(t=>t.name===e);return!!s&&(Array.isArray(n)?n:[n]).some(r=>i(s,r,t[e]))})}({args:o.args,inputs:n.inputs,matchArgs:r}))return null;return{...o,...e}}catch(n){let t,r;if(n instanceof A.lC)return null;if(n instanceof A.SM||n instanceof A.Gy){if(i)return null;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)}function e8(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}async function e9(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:s,events:o,args:a,strict:l}={}){let u=o??(s?[s]:void 0),d=[];u&&(d=[u.flatMap(e=>ei({abi:[e],eventName:e.name,args:o?void 0:a}))],s&&(d=d[0]));let h=(r?await e.request({method:\"eth_getLogs\",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:\"eth_getLogs\",params:[{address:t,topics:d,fromBlock:\"bigint\"==typeof n?(0,c.eC)(n):n,toBlock:\"bigint\"==typeof i?(0,c.eC)(i):i}]})).map(e=>e8(e));return u?e4({abi:u,args:a,logs:h,strict:l??!1}):h}async function e7(e,t){let{abi:r,address:n,args:i,blockHash:s,eventName:o,fromBlock:a,toBlock:l,strict:u}=t,c=o?(0,er.mE)({abi:r,name:o}):void 0,d=c?void 0:r.filter(e=>\"event\"===e.type);return E(e,e9,\"getLogs\")({address:n,args:i,blockHash:s,event:c,events:d,fromBlock:a,toBlock:l,strict:u})}class te extends h.G{constructor({address:e}){super(`No EIP-712 domain found on contract \"${e}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${e}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Eip712DomainNotFoundError\"})}}async function tt(e,t){let{address:r,factory:n,factoryData:i}=t;try{let[t,s,o,a,l,u,c]=await E(e,$,\"readContract\")({abi:tr,address:r,functionName:\"eip712Domain\",factory:n,factoryData:i});return{domain:{name:s,version:o,chainId:Number(a),verifyingContract:l,salt:u},extensions:c,fields:t}}catch(e){if(\"ContractFunctionExecutionError\"===e.name&&\"ContractFunctionZeroDataError\"===e.cause.name)throw new te({address:r});throw e}}let tr=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}];async function tn(e,{blockCount:t,blockNumber:r,blockTag:n=\"latest\",rewardPercentiles:i}){var s;let o=r?(0,c.eC)(r):void 0;return{baseFeePerGas:(s=await e.request({method:\"eth_feeHistory\",params:[(0,c.eC)(t),o||n,i]},{dedupe:!!o})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:s.gasUsedRatio,oldestBlock:BigInt(s.oldestBlock),reward:s.reward?.map(e=>e.map(e=>BigInt(e)))}}async function ti(e,{filter:t}){let r=\"strict\"in t&&t.strict,n=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(\"string\"==typeof n[0])return n;let i=n.map(e=>e8(e));return\"abi\"in t&&t.abi?e4({abi:t.abi,logs:i,strict:r}):i}async function ts(e,{filter:t}){let r=t.strict??!1,n=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(e=>e8(e));return t.abi?e4({abi:t.abi,logs:n,strict:r}):n}async function to(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){var s;let o=void 0!==r?(0,c.eC)(r):void 0;return{...s=await e.request({method:\"eth_getProof\",params:[t,i,o||(n??\"latest\")]}),balance:s.balance?BigInt(s.balance):void 0,nonce:s.nonce?(0,eE.ly)(s.nonce):void 0,storageProof:s.storageProof?s.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function ta(e,{address:t,blockNumber:r,blockTag:n=\"latest\",slot:i}){let s=void 0!==r?(0,c.eC)(r):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,i,s||n]})}async function tl(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:s}){let o=n||\"latest\",a=void 0!==r?(0,c.eC)(r):void 0,l=null;if(i?l=await e.request({method:\"eth_getTransactionByHash\",params:[i]},{dedupe:!0}):t?l=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,(0,c.eC)(s)]},{dedupe:!0}):(a||o)&&(l=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[a||o,(0,c.eC)(s)]},{dedupe:!!a})),!l)throw new ed.Bh({blockHash:t,blockNumber:r,blockTag:o,hash:i,index:s});return(e.chain?.formatters?.transaction?.format||ek)(l)}async function tu(e,{hash:t,transactionReceipt:r}){let[n,i]=await Promise.all([E(e,eQ,\"getBlockNumber\")({}),t?E(e,tl,\"getTransaction\")({hash:t}):void 0]),s=r?.blockNumber||i?.blockNumber;return s?n-s+1n:0n}let tc={\"0x0\":\"reverted\",\"0x1\":\"success\"};async function td(e,{hash:t}){let r=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!r)throw new ed.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>e8(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,eE.ly)(e.transactionIndex):null,status:e.status?tc[e.status]:null,type:e.type?ex[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(r)}async function th(e,t){let{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:u,multicallAddress:c,stateOverride:d}=t,p=t.contracts,g=n??(\"object\"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),m=c;if(!m){if(!e.chain)throw Error(\"client chain not configured. multicallAddress is required.\");m=(0,l.L)({blockNumber:i,chain:e.chain,contract:\"multicall3\"})}let y=[[]],b=0,v=0;for(let e=0;e<p.length;e++){let{abi:t,address:n,args:i,functionName:s}=p[e];try{let e=(0,a.R)({abi:t,args:i,functionName:s});v+=(e.length-2)/2,g>0&&v>g&&y[b].length>0&&(b++,v=(e.length-2)/2,y[b]=[]),y[b]=[...y[b],{allowFailure:!0,callData:e,target:n}]}catch(o){let e=k(o,{abi:t,address:n,args:i,docsPath:\"/docs/contract/multicall\",functionName:s});if(!r)throw e;y[b]=[...y[b],{allowFailure:!0,callData:\"0x\",target:n}]}}let w=await Promise.allSettled(y.map(t=>E(e,$,\"readContract\")({abi:s.F8,address:m,args:[t],blockNumber:i,blockTag:u,functionName:\"aggregate3\",stateOverride:d}))),_=[];for(let e=0;e<w.length;e++){let t=w[e];if(\"rejected\"===t.status){if(!r)throw t.reason;for(let r=0;r<y[e].length;r++)_.push({status:\"failure\",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:i,success:s}=n[t],{callData:a}=y[e][t],{abi:l,address:u,functionName:c,args:d}=p[_.length];try{if(\"0x\"===a)throw new A.wb;if(!s)throw new f.VQ({data:i});let e=(0,o.k)({abi:l,args:d,data:i,functionName:c});_.push(r?{result:e,status:\"success\"}:e)}catch(t){let e=k(t,{abi:l,address:u,args:d,docsPath:\"/docs/contract/multicall\",functionName:c});if(!r)throw e;_.push({error:e,result:void 0,status:\"failure\"})}}}if(_.length!==p.length)throw new h.G(\"multicall results mismatch\");return _}async function tf(e,t){let{abi:r,address:i,args:s,dataSuffix:l,functionName:u,...c}=t,d=c.account?(0,n.T)(c.account):e.account,h=(0,a.R)({abi:r,args:s,functionName:u});try{let{data:n}=await E(e,S.R,\"call\")({batch:!1,data:`${h}${l?l.replace(\"0x\",\"\"):\"\"}`,to:i,...c,account:d}),a=(0,o.k)({abi:r,args:s,functionName:u,data:n||\"0x\"}),f=r.filter(e=>\"name\"in e&&e.name===t.functionName);return{result:a,request:{abi:f,address:i,args:s,dataSuffix:l,functionName:u,...c,account:d}}}catch(e){throw k(e,{abi:r,address:i,args:s,docsPath:\"/docs/contract/simulateContract\",functionName:u,sender:d?.address})}}async function tp(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}function tg(e,t){return(0,y.w)(function(e){let t=\"string\"==typeof e?(0,c.$G)(e):\"string\"==typeof e.raw?e.raw:(0,c.ci)(e.raw),r=(0,c.$G)(`\\x19Ethereum Signed Message:\n${(0,eF.d)(t)}`);return(0,g.zo)([r,t])}(e),t)}var tm=r(13955),ty=r(32637),tb=r(99112),tv=r(38078);let tw=\"0x6492649264926492649264926492649264926492649264926492649264926492\";var t_=r(49014);async function tE({hash:e,signature:t}){let n=(0,b.v)(e)?e:(0,c.NC)(e),{secp256k1:i}=await Promise.resolve().then(r.bind(r,68610)),s=(()=>{if(\"object\"==typeof t&&\"r\"in t&&\"s\"in t){let{r:e,s:r,v:n,yParity:s}=t,o=tA(Number(s??n));return new i.Signature((0,eE.y_)(e),(0,eE.y_)(r)).addRecoveryBit(o)}let e=(0,b.v)(t)?t:(0,c.NC)(t),r=tA((0,eE.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${s}`}function tA(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error(\"Invalid yParityOrV value\")}async function tx({hash:e,signature:t}){return function(e){let t=(0,y.w)(`0x${e.substring(4)}`).substring(26);return(0,tb.x)(`0x${t}`)}(await tE({hash:e,signature:t}))}var tk=r(68610);async function tS(e,t){let{address:r,factory:n,factoryData:i,hash:o,signature:a,...l}=t,u=(0,b.v)(a)?a:\"object\"==typeof a&&\"r\"in a&&\"s\"in a?function({r:e,s:t,to:r=\"hex\",v:n,yParity:i}){let s=(()=>{if(0===i||1===i)return i;if(n&&(27n===n||28n===n||n>=35n))return n%2n===0n?1:0;throw Error(\"Invalid `v` or `yParity` value\")})(),o=`0x${new tk.secp256k1.Signature((0,eE.y_)(e),(0,eE.y_)(t)).toCompactHex()}${0===s?\"1b\":\"1c\"}`;return\"hex\"===r?o:(0,m.nr)(o)}(a):(0,c.ci)(a),d=await (async()=>n||i?(0,t_.p5)(u,-32)===tw?u:function(e){let{address:t,data:r,signature:n,to:i=\"hex\"}=e,s=(0,g.SM)([(0,ee.E)([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],[t,r,n]),tw]);return\"hex\"===i?s:(0,m.nr)(s)}({address:n,data:i,signature:u}):u)();try{let{data:t}=await E(e,S.R,\"call\")({data:(0,ty.w)({abi:s.$o,args:[r,o,d],bytecode:tm.ST}),...l});return function(e,t){let r=(0,b.v)(e)?(0,m.O0)(e):e,n=(0,b.v)(\"0x1\")?(0,m.O0)(\"0x1\"):\"0x1\";return(0,tv.Wd)(r,n)}(t??\"0x0\",\"0x1\")}catch(e){try{if((0,e1.E)((0,tb.K)(r),await tx({hash:o,signature:a})))return!0}catch{}if(e instanceof f.cg)return!1;throw e}}async function t$(e,{address:t,message:r,factory:n,factoryData:i,signature:s,...o}){return tS(e,{address:t,factory:n,factoryData:i,hash:tg(r),signature:s,...o})}var tC=r(51359),tP=r(64113);let tI=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tO=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function tN({data:e,primaryType:t,types:r}){let n=function e({data:t,primaryType:r,types:n}){let i=[{type:\"bytes32\"}],s=[function({primaryType:e,types:t}){let r=(0,c.NC)(function({primaryType:e,types:t}){let r=\"\",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\\w*/u),s=i?.[0];if(n.has(s)||void 0===r[s])return n;for(let t of(n.add(s),r[s]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(\",\")})`;return r}({primaryType:e,types:t}));return(0,y.w)(r)}({primaryType:r,types:n})];for(let o of n[r]){let[r,a]=function t({types:r,name:n,type:i,value:s}){if(void 0!==r[i])return[{type:\"bytes32\"},(0,y.w)(e({data:s,primaryType:i,types:r}))];if(\"bytes\"===i){let e=s.length%2?\"0\":\"\";return s=`0x${e+s.slice(2)}`,[{type:\"bytes32\"},(0,y.w)(s)]}if(\"string\"===i)return[{type:\"bytes32\"},(0,y.w)((0,c.NC)(s))];if(i.lastIndexOf(\"]\")===i.length-1){let e=i.slice(0,i.lastIndexOf(\"[\")),o=s.map(i=>t({name:n,type:e,types:r,value:i}));return[{type:\"bytes32\"},(0,y.w)((0,ee.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:i},s]}({types:n,name:o.name,type:o.type,value:t[o.name]});i.push(r),s.push(a)}return(0,ee.E)(i,s)}({data:e,primaryType:t,types:r});return(0,y.w)(n)}async function tM(e,t){let{address:r,factory:n,factoryData:i,signature:s,message:o,primaryType:a,types:l,domain:u,...d}=t;return tS(e,{address:r,factory:n,factoryData:i,hash:function(e){let{domain:t={},message:r,primaryType:n}=e,i={EIP712Domain:function({domain:e}){return[\"string\"==typeof e?.name&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},\"number\"==typeof e?.chainId&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}({domain:t}),...e.types};!function(e){let{domain:t,message:r,primaryType:n,types:i}=e,s=(e,t)=>{for(let r of e){let{name:e,type:n}=r,o=t[e],a=n.match(tO);if(a&&(\"number\"==typeof o||\"bigint\"==typeof o)){let[e,t,r]=a;(0,c.eC)(o,{signed:\"int\"===t,size:Number.parseInt(r)/8})}if(\"address\"===n&&\"string\"==typeof o&&!(0,tP.U)(o))throw new tC.b({address:o});let l=n.match(tI);if(l){let[e,t]=l;if(t&&(0,eF.d)(o)!==Number.parseInt(t))throw new A.KY({expectedSize:Number.parseInt(t),givenSize:(0,eF.d)(o)})}let u=i[n];u&&s(u,o)}};i.EIP712Domain&&t&&s(i.EIP712Domain,t),\"EIP712Domain\"!==n&&s(i[n],r)}({domain:t,message:r,primaryType:n,types:i});let s=[\"0x1901\"];return t&&s.push(function({domain:e,types:t}){return tN({data:e,primaryType:\"EIP712Domain\",types:t})}({domain:t,types:i})),\"EIP712Domain\"!==n&&s.push(tN({data:r,primaryType:n,types:i})),(0,y.w)((0,g.zo)(s))}({message:o,primaryType:a,types:l,domain:u}),signature:s,...d})}let tR=new Map,tT=new Map,tD=0;function tL(e,t,r){let n=++tD,i=()=>tR.get(e)||[],s=()=>{let t=i();tR.set(e,t.filter(e=>e.id!==n))},o=()=>{let t=tT.get(e);1===i().length&&t&&t(),s()},a=i();if(tR.set(e,[...a,{id:n,fns:t}]),a&&a.length>0)return o;let l={};for(let e in t)l[e]=(...t)=>{let r=i();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let u=r(l);return\"function\"==typeof u&&tT.set(e,u),o}var tj=r(55894),tB=r(47499),tF=r(97317);function tU(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0,s=()=>i=!1;return(async()=>{let o;t&&(o=await e({unpoll:s}));let a=await r?.(o)??n;await (0,tF.D)(a);let l=async()=>{i&&(await e({unpoll:s}),await (0,tF.D)(n),l())};l()})(),s}function tz(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:s,pollingInterval:o=e.pollingInterval}){let a;return(void 0!==s?s:\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type))?tL((0,tB.P)([\"watchBlockNumber\",e.uid,t,r,o]),{onBlockNumber:n,onError:i},n=>tU(async()=>{try{let t=await E(e,eQ,\"getBlockNumber\")({cacheTime:0});if(a){if(t===a)return;if(t-a>1&&r)for(let e=a+1n;e<t;e++)n.onBlockNumber(e,a),a=e}(!a||t>a)&&(n.onBlockNumber(t,a),a=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:o})):tL((0,tB.P)([\"watchBlockNumber\",e.uid,t,r]),{onBlockNumber:n,onError:i},t=>{let r=!0,n=()=>r=!1;return(async()=>{try{let i=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await i.subscribe({params:[\"newHeads\"],onData(e){if(!r)return;let n=(0,eE.y_)(e.result?.number);t.onBlockNumber(n,a),a=n},onError(e){t.onError?.(e)}});n=s,r||n()}catch(e){i?.(e)}})(),()=>n()})}async function tq(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,retryCount:s=6,retryDelay:o=({count:e})=>200*~~(1<<e),timeout:a}){let l,u,c;let d=(0,tB.P)([\"waitForTransactionReceipt\",e.uid,r]),h=0,f=!1;return new Promise((p,g)=>{a&&setTimeout(()=>g(new ed.mc({hash:r})),a);let m=tL(d,{onReplaced:n,resolve:p,reject:g},n=>{let a=E(e,tz,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){let d=e=>{a(),e(),m()},p=i;if(!f){h>s&&d(()=>n.reject(new ed.mc({hash:r})));try{if(c){if(t>1&&(!c.blockNumber||p-c.blockNumber+1n<t))return;d(()=>n.resolve(c));return}if(l||(f=!0,await (0,tj.J)(async()=>{(l=await E(e,tl,\"getTransaction\")({hash:r})).blockNumber&&(p=l.blockNumber)},{delay:o,retryCount:s}),f=!1),c=await E(e,td,\"getTransactionReceipt\")({hash:r}),t>1&&(!c.blockNumber||p-c.blockNumber+1n<t))return;d(()=>n.resolve(c))}catch(r){if(r instanceof ed.Bh||r instanceof ed.Yb){if(!l){f=!1;return}try{u=l,f=!0;let r=await (0,tj.J)(()=>E(e,e$,\"getBlock\")({blockNumber:p,includeTransactions:!0}),{delay:o,retryCount:s,shouldRetry:({error:e})=>e instanceof eA});f=!1;let i=r.transactions.find(({from:e,nonce:t})=>e===u.from&&t===u.nonce);if(!i||(c=await E(e,td,\"getTransactionReceipt\")({hash:i.hash}),t>1&&(!c.blockNumber||p-c.blockNumber+1n<t)))return;let a=\"replaced\";i.to===u.to&&i.value===u.value?a=\"repriced\":i.from===i.to&&0n===i.value&&(a=\"cancelled\"),d(()=>{n.onReplaced?.({reason:a,replacedTransaction:u,transaction:i,transactionReceipt:c}),n.resolve(c)})}catch(e){d(()=>n.reject(e))}}else d(()=>n.reject(r))}finally{h++}}}})})})}let tH=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\/\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\n)(?<address>0x[a-fA-F0-9]{40})\\n\\n(?:(?<statement>.*)\\n\\n)?/,tG=/(?:URI: (?<uri>.+))\\n(?:Version: (?<version>.+))\\n(?:Chain ID: (?<chainId>\\d+))\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\n(?:Issued At: (?<issuedAt>.+))(?:\\nExpiration Time: (?<expirationTime>.+))?(?:\\nNot Before: (?<notBefore>.+))?(?:\\nRequest ID: (?<requestId>.+))?/;async function tV(e,t){let{address:r,domain:n,message:i,nonce:s,scheme:o,signature:a,time:l=new Date,...u}=t,c=function(e){let{scheme:t,statement:r,...n}=e.match(tH)?.groups??{},{chainId:i,expirationTime:s,issuedAt:o,notBefore:a,requestId:l,...u}=e.match(tG)?.groups??{},c=e.split(\"Resources:\")[1]?.split(\"\\n- \").slice(1);return{...n,...u,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...o?{issuedAt:new Date(o)}:{},...a?{notBefore:new Date(a)}:{},...l?{requestId:l}:{},...c?{resources:c}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(i);if(!c.address||!function(e){let{address:t,domain:r,message:n,nonce:i,scheme:s,time:o=new Date}=e;if(r&&n.domain!==r||i&&n.nonce!==i||s&&n.scheme!==s||n.expirationTime&&o>=n.expirationTime||n.notBefore&&o<n.notBefore)return!1;try{if(!n.address||t&&!(0,e1.E)(n.address,t))return!1}catch{return!1}return!0}({address:r,domain:n,message:c,nonce:s,scheme:o,time:l}))return!1;let d=tg(i);return tS(e,{address:c.address,hash:d,signature:a,...u})}async function tW(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}function tK(e){return{call:t=>(0,S.R)(e,t),createBlockFilter:()=>J(e),createContractEventFilter:t=>eo(e,t),createEventFilter:t=>ea(e,t),createPendingTransactionFilter:()=>el(e),estimateContractGas:t=>eG(e,t),estimateGas:t=>eH(e,t),getBalance:t=>eV(e,t),getBlobBaseFee:()=>eW(e),getBlock:t=>e$(e,t),getBlockNumber:t=>eQ(e,t),getBlockTransactionCount:t=>eX(e,t),getBytecode:t=>e0(e,t),getChainId:()=>eU(e),getCode:t=>e0(e,t),getContractEvents:t=>e7(e,t),getEip712Domain:t=>tt(e,t),getEnsAddress:t=>C(e,t),getEnsAvatar:t=>W(e,t),getEnsName:t=>K(e,t),getEnsResolver:t=>Y(e,t),getEnsText:t=>V(e,t),getFeeHistory:t=>tn(e,t),estimateFeesPerGas:t=>eO(e,t),getFilterChanges:t=>ti(e,t),getFilterLogs:t=>ts(e,t),getGasPrice:()=>eC(e),getLogs:t=>e9(e,t),getProof:t=>to(e,t),estimateMaxPriorityFeePerGas:t=>eP(e,t),getStorageAt:t=>ta(e,t),getTransaction:t=>tl(e,t),getTransactionConfirmations:t=>tu(e,t),getTransactionCount:t=>eM(e,t),getTransactionReceipt:t=>td(e,t),multicall:t=>th(e,t),prepareTransactionRequest:t=>eq(e,t),readContract:t=>$(e,t),sendRawTransaction:t=>tW(e,t),simulateContract:t=>tf(e,t),verifyMessage:t=>t$(e,t),verifySiweMessage:t=>tV(e,t),verifyTypedData:t=>tM(e,t),uninstallFilter:t=>tp(e,t),waitForTransactionReceipt:t=>tq(e,t),watchBlocks:t=>(function(e,{blockTag:t=\"latest\",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:s,includeTransactions:o,poll:a,pollingInterval:l=e.pollingInterval}){let u,c,d;let h=void 0!==a?a:\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type),f=o??!1;return h?tL((0,tB.P)([\"watchBlocks\",e.uid,t,r,n,f,l]),{onBlock:i,onError:s},i=>tU(async()=>{try{let n=await E(e,e$,\"getBlock\")({blockTag:t,includeTransactions:f});if(n.number&&u?.number){if(n.number===u.number)return;if(n.number-u.number>1&&r)for(let t=u?.number+1n;t<n.number;t++){let r=await E(e,e$,\"getBlock\")({blockNumber:t,includeTransactions:f});i.onBlock(r,u),u=r}}(!u?.number||\"pending\"===t&&!n?.number||n.number&&n.number>u.number)&&(i.onBlock(n,u),u=n)}catch(e){i.onError?.(e)}},{emitOnBegin:n,interval:l})):(c=!0,d=()=>c=!1,(async()=>{try{let t=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:r}=await t.subscribe({params:[\"newHeads\"],onData(t){if(!c)return;let r=(e.chain?.formatters?.block?.format||eS)(t.result);i(r,u),u=r},onError(e){s?.(e)}});d=r,c||d()}catch(e){s?.(e)}})(),()=>d())})(e,t),watchBlockNumber:t=>tz(e,t),watchContractEvent:t=>(function(e,t){let{abi:r,address:n,args:i,batch:s=!0,eventName:o,fromBlock:a,onError:l,onLogs:u,poll:c,pollingInterval:d=e.pollingInterval,strict:h}=t;return(void 0!==c?c:\"bigint\"==typeof a||\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type))?(()=>{let t=h??!1;return tL((0,tB.P)([\"watchContractEvent\",n,i,s,e.uid,o,d,t,a]),{onLogs:u,onError:l},l=>{let u,c;void 0!==a&&(u=a-1n);let h=!1,f=tU(async()=>{if(!h){try{c=await E(e,eo,\"createContractEventFilter\")({abi:r,address:n,args:i,eventName:o,strict:t,fromBlock:a})}catch{}h=!0;return}try{let a;if(c)a=await E(e,ti,\"getFilterChanges\")({filter:c});else{let s=await E(e,eQ,\"getBlockNumber\")({});a=u&&u<s?await E(e,e7,\"getContractEvents\")({abi:r,address:n,args:i,eventName:o,fromBlock:u+1n,toBlock:s,strict:t}):[],u=s}if(0===a.length)return;if(s)l.onLogs(a);else for(let e of a)l.onLogs([e])}catch(e){c&&e instanceof x.yR&&(h=!1),l.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{c&&await E(e,tp,\"uninstallFilter\")({filter:c}),f()}})})():(()=>{let t=(0,tB.P)([\"watchContractEvent\",n,i,s,e.uid,o,d,h??!1]),a=!0,c=()=>a=!1;return tL(t,{onLogs:u,onError:l},t=>((async()=>{try{let s=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=o?ei({abi:r,eventName:o,args:i}):[],{unsubscribe:u}=await s.subscribe({params:[\"logs\",{address:n,topics:l}],onData(e){if(!a)return;let n=e.result;try{let{eventName:e,args:i}=e6({abi:r,data:n.data,topics:n.topics,strict:h}),s=e8(n,{args:i,eventName:e});t.onLogs([s])}catch(s){let e,r;if(s instanceof A.SM||s instanceof A.Gy){if(h)return;e=s.abiItem.name,r=s.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}let i=e8(n,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});c=u,a||c()}catch(e){l?.(e)}})(),()=>c()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:s,fromBlock:o,onError:a,onLogs:l,poll:u,pollingInterval:c=e.pollingInterval,strict:d}){let h,f;let p=void 0!==u?u:\"bigint\"==typeof o||\"webSocket\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type),g=d??!1;return p?tL((0,tB.P)([\"watchEvent\",t,r,n,e.uid,i,c,o]),{onLogs:l,onError:a},a=>{let l,u;void 0!==o&&(l=o-1n);let d=!1,h=tU(async()=>{if(!d){try{u=await E(e,ea,\"createEventFilter\")({address:t,args:r,event:i,events:s,strict:g,fromBlock:o})}catch{}d=!0;return}try{let o;if(u)o=await E(e,ti,\"getFilterChanges\")({filter:u});else{let n=await E(e,eQ,\"getBlockNumber\")({});o=l&&l!==n?await E(e,e9,\"getLogs\")({address:t,args:r,event:i,events:s,fromBlock:l+1n,toBlock:n}):[],l=n}if(0===o.length)return;if(n)a.onLogs(o);else for(let e of o)a.onLogs([e])}catch(e){u&&e instanceof x.yR&&(d=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await E(e,tp,\"uninstallFilter\")({filter:u}),h()}}):(h=!0,f=()=>h=!1,(async()=>{try{let n=(()=>{if(\"fallback\"===e.transport.type){let t=e.transport.transports.find(e=>\"webSocket\"===e.config.type);return t?t.value:e.transport}return e.transport})(),o=s??(i?[i]:void 0),u=[];o&&(u=[o.flatMap(e=>ei({abi:[e],eventName:e.name,args:r}))],i&&(u=u[0]));let{unsubscribe:c}=await n.subscribe({params:[\"logs\",{address:t,topics:u}],onData(e){if(!h)return;let t=e.result;try{let{eventName:e,args:r}=e6({abi:o??[],data:t.data,topics:t.topics,strict:g}),n=e8(t,{args:r,eventName:e});l([n])}catch(i){let e,r;if(i instanceof A.SM||i instanceof A.Gy){if(d)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}let n=e8(t,{args:r?[]:{},eventName:e});l([n])}},onError(e){a?.(e)}});f=c,h||f()}catch(e){a?.(e)}})(),()=>f())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:s=e.pollingInterval}){let o,a;return(void 0!==i?i:\"webSocket\"!==e.transport.type)?tL((0,tB.P)([\"watchPendingTransactions\",e.uid,t,s]),{onTransactions:n,onError:r},r=>{let n;let i=tU(async()=>{try{if(!n)try{n=await E(e,el,\"createPendingTransactionFilter\")({});return}catch(e){throw i(),e}let s=await E(e,ti,\"getFilterChanges\")({filter:n});if(0===s.length)return;if(t)r.onTransactions(s);else for(let e of s)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:s});return async()=>{n&&await E(e,tp,\"uninstallFilter\")({filter:n}),i()}}):(o=!0,a=()=>o=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(e){if(!o)return;let t=e.result;n([t])},onError(e){r?.(e)}});a=t,o||a()}catch(e){r?.(e)}})(),()=>a())})(e,t)}}function tY(e){let{key:t=\"public\",name:r=\"Public Client\"}=e;return(function(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:s,key:o=\"base\",name:a=\"Base Client\",pollingInterval:l=4e3,type:u=\"base\"}=e,c=e.chain,d=e.account?(0,n.T)(e.account):void 0,{config:h,request:f,value:p}=e.transport({chain:c,pollingInterval:l}),g={account:d,batch:t,cacheTime:r,ccipRead:s,chain:c,key:o,name:a,pollingInterval:l,request:f,transport:{...h,...p},type:u,uid:(0,i.h)()};return Object.assign(g,{extend:function e(t){return r=>{let n=r(t);for(let e in g)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(g)})})({...e,key:t,name:r,type:\"publicClient\"}).extend(tK)}},28781:function(e,t,r){\"use strict\";r.d(t,{d:function(){return g}});var n=r(4456),i=r(48926);class s extends i.G{constructor(){super(\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\",{docsPath:\"/docs/clients/intro\"})}}var o=r(10639),a=r(47499);let l={current:0,take(){return this.current++},reset(){this.current=0}};var u=r(96329),c=r(95046),d=r(36494);let h=new(r(98992)).k(8192);var f=r(55894),p=r(14851);function g(e,t={}){let{batch:r,fetchOptions:g,key:m=\"http\",name:y=\"HTTP JSON-RPC\",onFetchRequest:b,onFetchResponse:v,retryDelay:w}=t;return({chain:_,retryCount:E,timeout:A})=>{let{batchSize:x=1e3,wait:k=0}=\"object\"==typeof r?r:{},S=t.retryCount??E,$=A??t.timeout??1e4,C=e||_?.rpcUrls.default.http[0];if(!C)throw new s;let P=function(e,t={}){return{async request(r){let{body:i,onRequest:s=t.onRequest,onResponse:o=t.onResponse,timeout:u=t.timeout??1e4}=r,c={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:d,method:h,signal:f}=c;try{let t;let r=await function(e,{errorInstance:t=Error(\"timed out\"),timeout:r,signal:n}){return new Promise((i,s)=>{(async()=>{let o;try{let a=new AbortController;r>0&&(o=setTimeout(()=>{n?a.abort():s(t)},r)),i(await e({signal:a?.signal||null}))}catch(e){e?.name===\"AbortError\"&&s(t),s(e)}finally{clearTimeout(o)}})()})}(async({signal:t})=>{let r={...c,body:Array.isArray(i)?(0,a.P)(i.map(e=>({jsonrpc:\"2.0\",id:e.id??l.take(),...e}))):(0,a.P)({jsonrpc:\"2.0\",id:i.id??l.take(),...i}),headers:{\"Content-Type\":\"application/json\",...d},method:h||\"POST\",signal:f||(u>0?t:null)},n=new Request(e,r);return s&&await s(n),await fetch(e,r)},{errorInstance:new n.W5({body:i,url:e}),timeout:u,signal:!0});if(o&&await o(r),r.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?t=await r.json():(t=await r.text(),t=JSON.parse(t||\"{}\")),!r.ok)throw new n.Gg({body:i,details:(0,a.P)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Gg||t instanceof n.W5)throw t;throw new n.Gg({body:i,cause:t,url:e})}}}}(C,{fetchOptions:g,onRequest:b,onResponse:v,timeout:$});return function({key:e,name:t,request:r,retryCount:s=3,retryDelay:o=150,timeout:l,type:g},m){return{config:{key:e,name:t,request:r,retryCount:s,retryDelay:o,timeout:l,type:g},request:function(e,t={}){return async(r,s={})=>{let{dedupe:o=!1,retryDelay:l=150,retryCount:p=3,uid:g}={...t,...s},m=o?(0,d.w)((0,c.$G)(`${g}.${(0,a.P)(r)}`)):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(h.get(r))return h.get(r);let n=e().finally(()=>h.delete(r));return h.set(r,n),n}(()=>(0,f.J)(async()=>{try{return await e(r)}catch(e){switch(e.code){case u.s7.code:throw new u.s7(e);case u.B.code:throw new u.B(e);case u.LX.code:throw new u.LX(e,{method:r.method});case u.nY.code:throw new u.nY(e);case u.XS.code:throw new u.XS(e);case u.yR.code:throw new u.yR(e);case u.Og.code:throw new u.Og(e);case u.pT.code:throw new u.pT(e);case u.KB.code:throw new u.KB(e);case u.gS.code:throw new u.gS(e,{method:r.method});case u.Pv.code:throw new u.Pv(e);case u.GD.code:throw new u.GD(e);case u.ab.code:throw new u.ab(e);case u.PE.code:throw new u.PE(e);case u.Ts.code:throw new u.Ts(e);case u.u5.code:throw new u.u5(e);case u.I0.code:throw new u.I0(e);case u.x3.code:throw new u.x3(e);case 5e3:throw new u.ab(e);default:if(e instanceof i.G)throw e;throw new u.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof n.Gg){let e=t?.headers?.get(\"Retry-After\");if(e?.match(/\\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*l},retryCount:p,shouldRetry:({error:e})=>\"code\"in e&&\"number\"==typeof e.code?-1===e.code||e.code===u.Pv.code||e.code===u.XS.code:!(e instanceof n.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:o,id:m})}}(r,{retryCount:s,retryDelay:o,uid:(0,p.h)()}),value:m}}({key:m,name:y,async request({method:e,params:t}){let i={method:e,params:t},{schedule:s}=(0,o.S)({id:C,wait:k,shouldSplitBatch:e=>e.length>x,fn:e=>P.request({body:e}),sort:(e,t)=>e.id-t.id}),a=async e=>r?s(e):[await P.request({body:e})],[{error:l,result:u}]=await a(i);if(l)throw new n.bs({body:i,error:l,url:C});return u},retryCount:S,retryDelay:w,timeout:$,type:\"http\"},{fetchOptions:g,url:C})}}},21620:function(e,t,r){\"use strict\";r.d(t,{$o:function(){return u},F8:function(){return n},X$:function(){return l},du:function(){return o},k3:function(){return s},nZ:function(){return a}});let n=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"}],i=[{inputs:[],name:\"ResolverNotFound\",type:\"error\"},{inputs:[],name:\"ResolverWildcardNotSupported\",type:\"error\"},{inputs:[],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"returnData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{components:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"errors\",type:\"tuple[]\"}],name:\"HttpError\",type:\"error\"}],s=[...i,{name:\"resolve\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]},{name:\"resolve\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],o=[...i,{name:\"reverse\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolvedAddress\"},{type:\"address\",name:\"reverseResolver\"},{type:\"address\",name:\"resolver\"}]},{name:\"reverse\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolvedAddress\"},{type:\"address\",name:\"reverseResolver\"},{type:\"address\",name:\"resolver\"}]}],a=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],l=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],u=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"}]},13955:function(e,t,r){\"use strict\";r.d(t,{NO:function(){return n},ST:function(){return s},pG:function(){return i}});let n=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",i=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",s=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\"},47807:function(e,t,r){\"use strict\";r.d(t,{$:function(){return n},Up:function(){return i},hZ:function(){return s}});let n={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},i={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},s={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}},90408:function(e,t,r){\"use strict\";r.d(t,{Zn:function(){return i},ez:function(){return n}});let n={gwei:9,wei:18},i={ether:-9,wei:9}},52186:function(e,t,r){\"use strict\";r.d(t,{CI:function(){return k},FM:function(){return p},Gy:function(){return A},KY:function(){return _},M4:function(){return d},MX:function(){return b},S4:function(){return w},SM:function(){return E},cO:function(){return a},dh:function(){return x},eF:function(){return v},fM:function(){return o},fs:function(){return h},gr:function(){return c},hn:function(){return S},lC:function(){return g},mv:function(){return m},wM:function(){return $},wb:function(){return u},xB:function(){return l},xL:function(){return y},yP:function(){return f}});var n=r(20101),i=r(7508),s=r(48926);class o extends s.G{constructor({docsPath:e}){super(\"A constructor was not found on the ABI.\\nMake sure you are using the correct ABI and that the constructor exists on it.\",{docsPath:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiConstructorNotFoundError\"})}}class a extends s.G{constructor({docsPath:e}){super(\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\",{docsPath:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiConstructorParamsNotFoundError\"})}}class l extends s.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends s.G{constructor(){super('Cannot decode zero data (\"0x\") with ABI parameters.'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiDecodingZeroDataError\"})}}class c extends s.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.\nExpected length: ${e}\nGiven length: ${t}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEncodingArrayLengthMismatchError\"})}}class d extends s.G{constructor({expectedSize:e,value:t}){super(`Size of bytes \"${t}\" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEncodingBytesSizeMismatchError\"})}}class h extends s.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.\nExpected length (params): ${e}\nGiven length (values): ${t}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEncodingLengthMismatchError\"})}}class f extends s.G{constructor(e,{docsPath:t}){super(`Encoded error signature \"${e}\" not found on ABI.\nMake sure you are using the correct ABI and that the error exists on it.\nYou can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiErrorSignatureNotFoundError\"}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends s.G{constructor({docsPath:e}){super(\"Cannot extract event signature from empty topics.\",{docsPath:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEventSignatureEmptyTopicsError\"})}}class g extends s.G{constructor(e,{docsPath:t}){super(`Encoded event signature \"${e}\" not found on ABI.\nMake sure you are using the correct ABI and that the event exists on it.\nYou can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEventSignatureNotFoundError\"})}}class m extends s.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`\"${e}\" `:\"\"}not found on ABI.\nMake sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiEventNotFoundError\"})}}class y extends s.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`\"${e}\" `:\"\"}not found on ABI.\nMake sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiFunctionNotFoundError\"})}}class b extends s.G{constructor(e,{docsPath:t}){super(`Function \"${e}\" does not contain any \\`outputs\\` on ABI.\nCannot decode function result without knowing what the parameter types are.\nMake sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiFunctionOutputsNotFoundError\"})}}class v extends s.G{constructor(e,{docsPath:t}){super(`Encoded function signature \"${e}\" not found on ABI.\nMake sure you are using the correct ABI and that the function exists on it.\nYou can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiFunctionSignatureNotFoundError\"})}}class w extends s.G{constructor(e,t){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\`${e.type}\\` in \\`${(0,n.t)(e.abiItem)}\\`, and`,`\\`${t.type}\\` in \\`${(0,n.t)(t.abiItem)}\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItemAmbiguityError\"})}}class _ extends s.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BytesSizeMismatchError\"})}}class E extends s.G{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class A extends s.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` \"${t.name}\"`:\"\"} on event \"${(0,n.t)(e,{includeName:!0})}\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class x extends s.G{constructor(e,{docsPath:t}){super(`Type \"${e}\" is not a valid encoding type.\nPlease provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiEncodingType\"})}}class k extends s.G{constructor(e,{docsPath:t}){super(`Type \"${e}\" is not a valid decoding type.\nPlease provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiDecodingType\"})}}class S extends s.G{constructor(e){super(`Value \"${e}\" is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidArrayError\"})}}class $ extends s.G{constructor(e){super(`\"${e}\" is not a valid definition type.\nValid types: \"function\", \"event\", \"error\"`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidDefinitionTypeError\"})}}},51359:function(e,t,r){\"use strict\";r.d(t,{b:function(){return i}});var n=r(48926);class i extends n.G{constructor({address:e}){super(`Address \"${e}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAddressError\"})}}},48926:function(e,t,r){\"use strict\";r.d(t,{G:function(){return i}});var n=r(94290);class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof i&&t.cause.docsPath||t.docsPath,o=(0,n.bo)();super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...s?[`Docs: ${t.docsBaseUrl??\"https://viem.sh\"}${s}${t.docsSlug?`#${t.docsSlug}`:\"\"}`]:[],...r?[`Details: ${r}`]:[],`Version: ${o}`].join(\"\\n\"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ViemError\"}),this.details=r,this.docsPath=s,this.metaMessages=t.metaMessages,this.shortMessage=e,this.version=o}walk(e){return function e(t,r){return r?.(t)?t:t&&\"object\"==typeof t&&\"cause\"in t?e(t.cause,r):r?null:t}(this,e)}}},89045:function(e,t,r){\"use strict\";r.d(t,{mm:function(){return i},pZ:function(){return s}});var n=r(48926);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain \"${t.name}\" does not support contract \"${r.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract \"${r.name}\" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract \"${r.name}\" configured.`]]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainDoesNotSupportContract\"})}}class s extends n.G{constructor(){super(\"No chain was provided to the Client.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ClientChainNotConfiguredError\"})}}},58591:function(e,t,r){\"use strict\";r.d(t,{cg:function(){return y},uq:function(){return b},Lu:function(){return v},Dk:function(){return w},Mo:function(){return _},VQ:function(){return E}});var n=r(96104),i=r(47807),s=r(71108),o=r(20101),a=r(47499);function l({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${r?e.name:\"\"}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:\"\"}${\"object\"==typeof t[r]?(0,a.P)(t[r]):t[r]}`).join(\", \")})`}var u=r(18748),c=r(85053),d=r(49268),h=r(52186),f=r(48926),p=r(75534),g=r(97658),m=r(94290);class y extends f.G{constructor(e,{account:t,docsPath:r,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:h,to:f,value:m,stateOverride:y}){let b=t?(0,n.T)(t):void 0,v=(0,g.xr)({from:b?.address,to:f,value:void 0!==m&&`${(0,c.d)(m)} ${i?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,d.o)(a)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:h});y&&(v+=`\n${(0,p.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Raw Call Arguments:\",v].filter(Boolean)}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CallExecutionError\"}),this.cause=e}}class b extends f.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:s,sender:a}){let c=(0,u.mE)({abi:t,args:r,name:s}),d=c?l({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,h=c?(0,o.t)(c,{includeName:!0}):void 0,f=(0,g.xr)({address:n&&(0,m.CR)(n),function:h,args:d&&\"()\"!==d&&`${[...Array(s?.length??0).keys()].map(()=>\" \").join(\"\")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function \"${s}\".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],f&&\"Contract Call:\",f].filter(Boolean)}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ContractFunctionExecutionError\"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=s,this.sender=a}}class v extends f.G{constructor({abi:e,data:t,functionName:r,message:n}){let a,u,c,d,f;if(t&&\"0x\"!==t)try{let{abiItem:r,errorName:n,args:a}=f=(0,s.p)({abi:e,data:t});if(\"Error\"===n)c=a[0];else if(\"Panic\"===n){let[e]=a;c=i.$[e]}else{let e=r?(0,o.t)(r,{includeName:!0}):void 0,t=r&&a?l({abiItem:r,args:a,includeFunctionName:!1,includeName:!1}):void 0;u=[e?`Error: ${e}`:\"\",t&&\"()\"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>\" \").join(\"\")}${t}`:\"\"]}}catch(e){a=e}else n&&(c=n);a instanceof h.yP&&(d=a.signature,u=[`Unable to decode signature \"${d}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(c&&\"execution reverted\"!==c||d?[`The contract function \"${r}\" reverted with the following ${d?\"signature\":\"reason\"}:`,c||d].join(\"\\n\"):`The contract function \"${r}\" reverted.`,{cause:a,metaMessages:u}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.reason=c,this.signature=d}}class w extends f.G{constructor({functionName:e}){super(`The contract function \"${e}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${e}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ContractFunctionZeroDataError\"})}}class _ extends f.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory \"${e}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CounterfactualDeploymentFailedError\"})}}class E extends f.G{constructor({data:e,message:t}){super(t||\"\"),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RawContractError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},19477:function(e,t,r){\"use strict\";r.d(t,{KD:function(){return o},T_:function(){return i},lQ:function(){return s}});var n=r(48926);class i extends n.G{constructor({offset:e}){super(`Offset \\`${e}\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NegativeOffsetError\"})}}class s extends n.G{constructor({length:e,position:t}){super(`Position \\`${t}\\` is out of bounds (\\`0 < position < ${e}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PositionOutOfBoundsError\"})}}class o extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \\`${t}\\` exceeded (recursive read count: \\`${e}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RecursiveReadLimitExceededError\"})}}},75057:function(e,t,r){\"use strict\";r.d(t,{$s:function(){return s},W_:function(){return o},mV:function(){return i}});var n=r(48926);class i extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${\"start\"===t?\"starting\":\"ending\"} at offset \"${e}\" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SliceOffsetOutOfBoundsError\"})}}class s extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SizeExceedsPaddingSizeError\"})}}class o extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidBytesLengthError\"})}}},74188:function(e,t,r){\"use strict\";r.d(t,{J5:function(){return i},M6:function(){return o},yr:function(){return s}});var n=r(48926);class i extends n.G{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \"${i}\" is not in safe ${n?`${8*n}-bit ${r?\"signed\":\"unsigned\"} `:\"\"}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"IntegerOutOfRangeError\"})}}class s extends n.G{constructor(e){super(`Bytes value \"${e}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidBytesBooleanError\"})}}class o extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SizeOverflowError\"})}}},37764:function(e,t,r){\"use strict\";r.d(t,{C_:function(){return d},G$:function(){return a},Hh:function(){return o},M_:function(){return s},WF:function(){return h},ZI:function(){return l},cj:function(){return m},cs:function(){return g},dR:function(){return f},pZ:function(){return p},se:function(){return c},vU:function(){return u}});var n=r(49268),i=r(48926);class s extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${r?`with reason: ${r}`:\"for an unknown reason\"}.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ExecutionRevertedError\"})}}Object.defineProperty(s,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\\`maxFeePerGas\\`${t?` = ${(0,n.o)(t)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FeeCapTooHigh\"})}}Object.defineProperty(o,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\^256-1|fee cap higher than 2\\^256-1/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\\`maxFeePerGas\\`${t?` = ${(0,n.o)(t)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FeeCapTooLow\"})}}Object.defineProperty(a,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NonceTooHighError\"})}}Object.defineProperty(l,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}is lower than the current nonce of the account.\nTry increasing the nonce or find the latest nonce with \\`getTransactionCount\\`.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NonceTooLowError\"})}}Object.defineProperty(u,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"NonceMaxValueError\"})}}Object.defineProperty(c,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super(\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\",{cause:e,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InsufficientFundsError\"})}}Object.defineProperty(d,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"IntrinsicGasTooHighError\"})}}Object.defineProperty(h,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:\"\"}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"IntrinsicGasTooLowError\"})}}Object.defineProperty(f,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super(\"The transaction type is not supported for this chain.\",{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionTypeNotSupportedError\"})}}Object.defineProperty(p,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\\`maxPriorityFeePerGas\\`${t?` = ${(0,n.o)(t)} gwei`:\"\"}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${r?` = ${(0,n.o)(r)} gwei`:\"\"}).`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TipAboveFeeCapError\"})}}Object.defineProperty(g,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownNodeError\"})}}},4456:function(e,t,r){\"use strict\";r.d(t,{Gg:function(){return o},W5:function(){return l},bs:function(){return a}});var n=r(47499),i=r(48926),s=r(94290);class o extends i.G{constructor({body:e,cause:t,details:r,headers:i,status:o,url:a}){super(\"HTTP request failed.\",{cause:t,details:r,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,s.Gr)(a)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=o,this.url=a}}class a extends i.G{constructor({body:e,error:t,url:r}){super(\"RPC Request failed.\",{cause:t,details:t.message,metaMessages:[`URL: ${(0,s.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class l extends i.G{constructor({body:e,url:t}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${(0,s.Gr)(t)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TimeoutError\"})}}},96329:function(e,t,r){\"use strict\";r.d(t,{B:function(){return l},GD:function(){return b},I0:function(){return A},KB:function(){return g},LX:function(){return u},Og:function(){return f},PE:function(){return w},Pv:function(){return y},Ts:function(){return _},XS:function(){return d},ab:function(){return v},gS:function(){return m},ir:function(){return k},nY:function(){return c},pT:function(){return p},s7:function(){return a},u5:function(){return E},x3:function(){return x},yR:function(){return h}});var n=r(48926),i=r(4456);class s extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:s}){super(s,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class o extends s{constructor(e,t){super(e,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class a extends s{constructor(e){super(e,{code:a.code,shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ParseRpcError\"})}}Object.defineProperty(a,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class l extends s{constructor(e){super(e,{code:l.code,shortMessage:\"JSON is not a valid request object.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidRequestRpcError\"})}}Object.defineProperty(l,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends s{constructor(e,{method:t}={}){super(e,{code:u.code,shortMessage:`The method${t?` \"${t}\"`:\"\"} does not exist / is not available.`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MethodNotFoundRpcError\"})}}Object.defineProperty(u,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class c extends s{constructor(e){super(e,{code:c.code,shortMessage:\"Invalid parameters were provided to the RPC method.\\nDouble check you have provided the correct parameters.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParamsRpcError\"})}}Object.defineProperty(c,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends s{constructor(e){super(e,{code:d.code,shortMessage:\"An internal error was received.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InternalRpcError\"})}}Object.defineProperty(d,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class h extends s{constructor(e){super(e,{code:h.code,shortMessage:\"Missing or invalid parameters.\\nDouble check you have provided the correct parameters.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidInputRpcError\"})}}Object.defineProperty(h,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends s{constructor(e){super(e,{code:f.code,shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}}Object.defineProperty(f,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends s{constructor(e){super(e,{code:p.code,shortMessage:\"Requested resource not available.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceUnavailableRpcError\"})}}Object.defineProperty(p,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class g extends s{constructor(e){super(e,{code:g.code,shortMessage:\"Transaction creation failed.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionRejectedRpcError\"})}}Object.defineProperty(g,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends s{constructor(e,{method:t}={}){super(e,{code:m.code,shortMessage:`Method${t?` \"${t}\"`:\"\"} is not implemented.`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MethodNotSupportedRpcError\"})}}Object.defineProperty(m,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends s{constructor(e){super(e,{code:y.code,shortMessage:\"Request exceeds defined limit.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"LimitExceededRpcError\"})}}Object.defineProperty(y,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends s{constructor(e){super(e,{code:b.code,shortMessage:\"Version of JSON-RPC protocol is not supported.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"JsonRpcVersionUnsupportedError\"})}}Object.defineProperty(b,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends o{constructor(e){super(e,{code:v.code,shortMessage:\"User rejected the request.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UserRejectedRequestError\"})}}Object.defineProperty(v,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends o{constructor(e){super(e,{code:w.code,shortMessage:\"The requested method and/or account has not been authorized by the user.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnauthorizedProviderError\"})}}Object.defineProperty(w,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});class _ extends o{constructor(e,{method:t}={}){super(e,{code:_.code,shortMessage:`The Provider does not support the requested method${t?` \" ${t}\"`:\"\"}.`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnsupportedProviderMethodError\"})}}Object.defineProperty(_,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends o{constructor(e){super(e,{code:E.code,shortMessage:\"The Provider is disconnected from all chains.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderDisconnectedError\"})}}Object.defineProperty(E,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});class A extends o{constructor(e){super(e,{code:A.code,shortMessage:\"The Provider is not connected to the requested chain.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainDisconnectedError\"})}}Object.defineProperty(A,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});class x extends o{constructor(e){super(e,{code:x.code,shortMessage:\"An error occurred when attempting to switch chain.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SwitchChainError\"})}}Object.defineProperty(x,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends s{constructor(e){super(e,{shortMessage:\"An unknown RPC error occurred.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownRpcError\"})}}},75534:function(e,t,r){\"use strict\";r.d(t,{Bj:function(){return a},Nc:function(){return i},Z8:function(){return s}});var n=r(48926);class i extends n.G{constructor({address:e}){super(`State for account \"${e}\" is set multiple times.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AccountStateConflictError\"})}}class s extends n.G{constructor(){super(\"state and stateDiff are set on the same account.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"StateAssignmentConflictError\"})}}function o(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}\n`,\"\")}function a(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:\n`;return r.nonce&&(n+=`      nonce: ${r.nonce}\n`),r.balance&&(n+=`      balance: ${r.balance}\n`),r.code&&(n+=`      code: ${r.code}\n`),r.state&&(n+=\"      state:\\n\"+o(r.state)),r.stateDiff&&(n+=\"      stateDiff:\\n\"+o(r.stateDiff)),n},\"  State Override:\\n\").slice(0,-1)}},97658:function(e,t,r){\"use strict\";r.d(t,{Bh:function(){return a},Yb:function(){return l},j3:function(){return o},mc:function(){return u},xY:function(){return s},xr:function(){return i}}),r(85053),r(49268);var n=r(48926);function i(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join(\"\\n\")}class s extends n.G{constructor(){super(\"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"FeeConflictError\"})}}class o extends n.G{constructor({transaction:e}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",i(e),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- a Legacy Transaction with `gasPrice`\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSerializableTransactionError\"})}}class a extends n.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let s=\"Transaction\";r&&void 0!==i&&(s=`Transaction at block time \"${r}\" at index \"${i}\"`),e&&void 0!==i&&(s=`Transaction at block hash \"${e}\" at index \"${i}\"`),t&&void 0!==i&&(s=`Transaction at block number \"${t}\" at index \"${i}\"`),n&&(s=`Transaction with hash \"${n}\"`),super(`${s} could not be found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionNotFoundError\"})}}class l extends n.G{constructor({hash:e}){super(`Transaction receipt with hash \"${e}\" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionReceiptNotFoundError\"})}}class u extends n.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash \"${e}\" to be confirmed.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WaitForTransactionReceiptTimeoutError\"})}}},94290:function(e,t,r){\"use strict\";r.d(t,{CR:function(){return n},Gr:function(){return i},bo:function(){return s}});let n=e=>e,i=e=>e,s=()=>\"viem@2.18.8\"},52998:function(e,t,r){\"use strict\";r.d(t,{r:function(){return g}});var n=r(52186),i=r(99112),s=r(15222),o=r(7508),a=r(49014),l=r(77955),u=r(74188),c=r(21019),d=r(95046);function h(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.ly)(r,t)}var f=r(82361),p=r(39480);function g(e,t){let r=\"string\"==typeof t?(0,f.nr)(t):t,g=(0,s.q)(r);if(0===(0,o.d)(r)&&e.length>0)throw new n.wb;if((0,o.d)(t)&&32>(0,o.d)(t))throw new n.xB({data:\"string\"==typeof t?t:(0,d.ci)(t),params:e,size:(0,o.d)(t)});let y=0,b=[];for(let t=0;t<e.length;++t){let r=e[t];g.setPosition(y);let[s,o]=function e(t,r,{staticPosition:s}){let o=(0,p.S)(r.type);if(o){let[n,i]=o;return function(t,r,{length:n,staticPosition:i}){if(!n){let n=i+h(t.readBytes(32)),s=n+32;t.setPosition(n);let o=h(t.readBytes(32)),a=m(r),l=0,u=[];for(let n=0;n<o;++n){t.setPosition(s+(a?32*n:l));let[i,o]=e(t,r,{staticPosition:s});l+=o,u.push(i)}return t.setPosition(i+32),[u,32]}if(m(r)){let s=i+h(t.readBytes(32)),o=[];for(let i=0;i<n;++i){t.setPosition(s+32*i);let[n]=e(t,r,{staticPosition:s});o.push(n)}return t.setPosition(i+32),[o,32]}let s=0,o=[];for(let a=0;a<n;++a){let[n,a]=e(t,r,{staticPosition:i+s});s+=a,o.push(n)}return[o,s]}(t,{...r,type:i},{length:n,staticPosition:s})}if(\"tuple\"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),s=i?[]:{},o=0;if(m(r)){let a=n+h(t.readBytes(32));for(let n=0;n<r.components.length;++n){let l=r.components[n];t.setPosition(a+o);let[u,c]=e(t,l,{staticPosition:a});o+=c,s[i?n:l?.name]=u}return t.setPosition(n+32),[s,32]}for(let a=0;a<r.components.length;++a){let l=r.components[a],[u,c]=e(t,l,{staticPosition:n});s[i?a:l?.name]=u,o+=c}return[s,o]}(t,r,{staticPosition:s});if(\"address\"===r.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,a.T4)(t,-20))),32]}(t);if(\"bool\"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,l.f)(r)),r.length>1||r[0]>1)throw new u.yr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith(\"bytes\"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split(\"bytes\");if(!i){let t=h(e.readBytes(32));e.setPosition(r+t);let n=h(e.readBytes(32));if(0===n)return e.setPosition(r+32),[\"0x\",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i),32)),32]}(t,r,{staticPosition:s});if(r.type.startsWith(\"uint\")||r.type.startsWith(\"int\"))return function(e,t){let r=t.type.startsWith(\"int\"),n=Number.parseInt(t.type.split(\"int\")[1]||\"256\"),i=e.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.y_)(r,t)}(i,{signed:r}):h(i,{signed:r}),32]}(t,r);if(\"string\"===r.type)return function(e,{staticPosition:t}){let r=h(e.readBytes(32));e.setPosition(t+r);let n=h(e.readBytes(32));if(0===n)return e.setPosition(t+32),[\"\",32];let i=e.readBytes(n,32),s=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,l.f)(r,{dir:\"right\"})),new TextDecoder().decode(r)}((0,l.f)(i));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new n.CI(r.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}(g,r,{staticPosition:0});y+=o,b.push(s)}return b}function m(e){let{type:t}=e;if(\"string\"===t||\"bytes\"===t||t.endsWith(\"[]\"))return!0;if(\"tuple\"===t)return e.components?.some(m);let r=(0,p.S)(e.type);return!!(r&&m({...e,type:r[1]}))}},71108:function(e,t,r){\"use strict\";r.d(t,{p:function(){return u}});var n=r(47807),i=r(52186),s=r(49014),o=r(87522),a=r(52998),l=r(20101);function u(e){let{abi:t,data:r}=e,u=(0,s.tP)(r,0,4);if(\"0x\"===u)throw new i.wb;let c=[...t||[],n.Up,n.hZ].find(e=>\"error\"===e.type&&u===(0,o.C)((0,l.t)(e)));if(!c)throw new i.yP(u,{docsPath:\"/docs/contract/decodeErrorResult\"});return{abiItem:c,args:\"inputs\"in c&&c.inputs&&c.inputs.length>0?(0,a.r)(c.inputs,(0,s.tP)(r,4)):void 0,errorName:c.name}}},43408:function(e,t,r){\"use strict\";r.d(t,{p:function(){return l}});var n=r(52186),i=r(49014),s=r(87522),o=r(52998),a=r(20101);function l(e){let{abi:t,data:r}=e,l=(0,i.tP)(r,0,4),u=t.find(e=>\"function\"===e.type&&l===(0,s.C)((0,a.t)(e)));if(!u)throw new n.eF(l,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:u.name,args:\"inputs\"in u&&u.inputs&&u.inputs.length>0?(0,o.r)(u.inputs,(0,i.tP)(r,4)):void 0}}},97225:function(e,t,r){\"use strict\";r.d(t,{k:function(){return a}});var n=r(52186),i=r(52998),s=r(18748);let o=\"/docs/contract/decodeFunctionResult\";function a(e){let{abi:t,args:r,functionName:a,data:l}=e,u=t[0];if(a){let e=(0,s.mE)({abi:t,args:r,name:a});if(!e)throw new n.xL(a,{docsPath:o});u=e}if(\"function\"!==u.type)throw new n.xL(void 0,{docsPath:o});if(!u.outputs)throw new n.MX(u.name,{docsPath:o});let c=(0,i.r)(u.outputs,l);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},39480:function(e,t,r){\"use strict\";r.d(t,{E:function(){return h},S:function(){return p}});var n=r(52186),i=r(51359),s=r(48926),o=r(64113),a=r(53932),l=r(88202),u=r(7508),c=r(49014),d=r(95046);function h(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=f(function({params:e,values:t}){let r=[];for(let h=0;h<e.length;h++)r.push(function e({param:t,value:r}){let h=p(t.type);if(h){let[i,s]=h;return function(t,{length:r,param:i}){let s=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!s&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let o=!1,l=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(o=!0),l.push(n)}if(s||o){let e=f(l);if(s){let t=(0,d.eC)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,a.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(l.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:s}})}if(\"tuple\"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let s=0;s<r.components.length;s++){let o=r.components[s],a=Array.isArray(t)?s:o.name,l=e({param:o,value:t[a]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?f(i):(0,a.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if(\"address\"===t.type)return function(e){if(!(0,o.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,l.gc)(e.toLowerCase())}}(r);if(\"bool\"===t.type)return function(e){if(\"boolean\"!=typeof e)throw new s.G(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:(0,l.gc)((0,d.C4)(e))}}(r);if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,d.eC)(e,{size:32,signed:t})}}(r,{signed:t.type.startsWith(\"int\")});if(t.type.startsWith(\"bytes\"))return function(e,{param:t}){let[,r]=t.type.split(\"bytes\"),i=(0,u.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,l.gc)(t,{dir:\"right\",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,l.gc)((0,d.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,l.gc)(e,{dir:\"right\"})}}(r,{param:t});if(\"string\"===t.type)return function(e){let t=(0,d.$G)(e),r=Math.ceil((0,u.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,l.gc)((0,c.tP)(t,32*e,(e+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:(0,a.zo)([(0,l.gc)((0,d.eC)((0,u.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}({param:e[h],value:t[h]}));return r}({params:e,values:t}));return 0===r.length?\"0x\":r}function f(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.d)(i)}let r=[],n=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(r.push((0,d.eC)(t+i,{size:32})),n.push(a),i+=(0,u.d)(a)):r.push(a)}return(0,a.zo)([...r,...n])}function p(e){let t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},32637:function(e,t,r){\"use strict\";r.d(t,{w:function(){return a}});var n=r(52186),i=r(53932),s=r(39480);let o=\"/docs/contract/encodeDeployData\";function a(e){let{abi:t,args:r,bytecode:a}=e;if(!r||0===r.length)return a;let l=t.find(e=>\"type\"in e&&\"constructor\"===e.type);if(!l)throw new n.fM({docsPath:o});if(!(\"inputs\"in l)||!l.inputs||0===l.inputs.length)throw new n.cO({docsPath:o});let u=(0,s.E)(l.inputs,r);return(0,i.SM)([a,u])}},31006:function(e,t,r){\"use strict\";r.d(t,{R:function(){return c}});var n=r(53932),i=r(39480),s=r(52186),o=r(87522),a=r(20101),l=r(18748);let u=\"/docs/contract/encodeFunctionData\";function c(e){let{args:t}=e,{abi:r,functionName:c}=1===e.abi.length&&e.functionName?.startsWith(\"0x\")?e:function(e){let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,l.mE)({abi:t,args:r,name:n});if(!e)throw new s.xL(n,{docsPath:u});i=e}if(\"function\"!==i.type)throw new s.xL(void 0,{docsPath:u});return{abi:[i],functionName:(0,o.C)((0,a.t)(i))}}(e),d=r[0],h=\"inputs\"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,n.SM)([c,h??\"0x\"])}},20101:function(e,t,r){\"use strict\";r.d(t,{h:function(){return s},t:function(){return i}});var n=r(52186);function i(e,{includeName:t=!1}={}){if(\"function\"!==e.type&&\"event\"!==e.type&&\"error\"!==e.type)throw new n.wM(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")})(e,{includeName:t})).join(t?\", \":\",\"):\"\"}},18748:function(e,t,r){\"use strict\";r.d(t,{mE:function(){return l}});var n=r(52186),i=r(40369),s=r(64113),o=r(53263),a=r(87522);function l(e){let t;let{abi:r,args:l=[],name:u}=e,c=(0,i.v)(u,{strict:!1}),d=r.filter(e=>c?\"function\"===e.type?(0,a.C)(e)===u:\"event\"===e.type&&(0,o.n)(e)===u:\"name\"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if(\"inputs\"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.every((t,r)=>{let n=\"inputs\"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case\"address\":return(0,s.U)(t,{strict:!1});case\"bool\":return\"boolean\"===n;case\"function\":case\"string\":return\"string\"===n;default:if(\"tuple\"===i&&\"components\"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return\"number\"===n||\"bigint\"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return\"string\"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\\[[0-9]{0,}\\])$/,\"\")}));return!1}}(t,n)})){if(t&&\"inputs\"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let o=t[i],a=r[i];if(\"tuple\"===o.type&&\"tuple\"===a.type&&\"components\"in o&&\"components\"in a)return e(o.components,a.components,n[i]);let l=[o.type,a.type];if(l.includes(\"address\")&&l.includes(\"bytes20\")||(l.includes(\"address\")&&l.includes(\"string\")||l.includes(\"address\")&&l.includes(\"bytes\"))&&(0,s.U)(n[i],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(r)throw new n.S4({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}return t||d[0]}}},99112:function(e,t,r){\"use strict\";r.d(t,{K:function(){return c},x:function(){return u}});var n=r(51359),i=r(82361),s=r(36494),o=r(98992),a=r(64113);let l=new o.k(8192);function u(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,s.w)((0,i.qX)(r),\"bytes\"),o=(t?r.substring(`${t}0x`.length):r).split(\"\");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join(\"\")}`;return l.set(`${e}.${t}`,a),a}function c(e,t){if(!(0,a.U)(e,{strict:!1}))throw new n.b({address:e});return u(e,t)}},64113:function(e,t,r){\"use strict\";r.d(t,{U:function(){return a}});var n=r(98992),i=r(99112);let s=/^0x[a-fA-F0-9]{40}$/,o=new n.k(8192);function a(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(o.has(n))return o.get(n);let a=!!s.test(e)&&(e.toLowerCase()===e||!r||(0,i.x)(e)===e);return o.set(n,a),a}},65937:function(e,t,r){\"use strict\";r.d(t,{E:function(){return s}});var n=r(51359),i=r(64113);function s(e,t){if(!(0,i.U)(e,{strict:!1}))throw new n.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new n.b({address:t});return e.toLowerCase()===t.toLowerCase()}},18543:function(e,t,r){\"use strict\";r.d(t,{L:function(){return i}});var n=r(89045);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.mm({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},15222:function(e,t,r){\"use strict\";r.d(t,{q:function(){return s}});var n=r(19477);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function s(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},53932:function(e,t,r){\"use strict\";function n(e){return\"string\"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace(\"0x\",\"\"),\"\")}`}r.d(t,{SM:function(){return i},zo:function(){return n}})},40369:function(e,t,r){\"use strict\";function n(e,{strict:t=!0}={}){return!!e&&\"string\"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\"))}r.d(t,{v:function(){return n}})},88202:function(e,t,r){\"use strict\";r.d(t,{gc:function(){return s},vk:function(){return i}});var n=r(75057);function i(e,{dir:t,size:r=32}={}){return\"string\"==typeof e?s(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$s({size:e.length,targetSize:r,type:\"bytes\"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let s=\"right\"===t;i[s?n:r-n-1]=e[s?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function s(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace(\"0x\",\"\");if(i.length>2*r)throw new n.$s({size:Math.ceil(i.length/2),targetSize:r,type:\"hex\"});return`0x${i[\"right\"===t?\"padEnd\":\"padStart\"](2*r,\"0\")}`}},7508:function(e,t,r){\"use strict\";r.d(t,{d:function(){return i}});var n=r(40369);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},49014:function(e,t,r){\"use strict\";r.d(t,{T4:function(){return u},p5:function(){return c},tP:function(){return o}});var n=r(75057),i=r(40369),s=r(7508);function o(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?c(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function a(e,t){if(\"number\"==typeof t&&t>0&&t>(0,s.d)(e)-1)throw new n.mV({offset:t,position:\"start\",size:(0,s.d)(e)})}function l(e,t,r){if(\"number\"==typeof t&&\"number\"==typeof r&&(0,s.d)(e)!==r-t)throw new n.mV({offset:r,position:\"end\",size:(0,s.d)(e)})}function u(e,t,r,{strict:n}={}){a(e,t);let i=e.slice(t,r);return n&&l(i,t,r),i}function c(e,t,r,{strict:n}={}){a(e,t);let i=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return n&&l(i,t,r),i}},77955:function(e,t,r){\"use strict\";function n(e,{dir:t=\"left\"}={}){let r=\"string\"==typeof e?e.replace(\"0x\",\"\"):e,n=0;for(let e=0;e<r.length-1&&\"0\"===r[\"left\"===t?e:r.length-e-1].toString();e++)n++;return(r=\"left\"===t?r.slice(n):r.slice(0,r.length-n),\"string\"==typeof e)?(1===r.length&&\"right\"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{f:function(){return n}})},21019:function(e,t,r){\"use strict\";r.d(t,{Yf:function(){return s},ly:function(){return a},y_:function(){return o}});var n=r(74188),i=r(7508);function s(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function o(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${\"f\".padStart(2*i,\"f\")}`)-1n}function a(e,t={}){return Number(o(e,t))}},82361:function(e,t,r){\"use strict\";r.d(t,{O0:function(){return u},nr:function(){return h},qX:function(){return f}});var n=r(48926),i=r(40369),s=r(88202),o=r(21019),a=r(95046);let l=new TextEncoder;function u(e,t={}){return\"number\"==typeof e||\"bigint\"==typeof e?h((0,a.eC)(e,t)):\"boolean\"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),\"number\"==typeof t.size)?((0,o.Yf)(r,{size:t.size}),(0,s.vk)(r,{size:t.size})):r}(e,t):(0,i.v)(e)?h(e,t):f(e,t)}let c={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=c.zero&&e<=c.nine?e-c.zero:e>=c.A&&e<=c.F?e-(c.A-10):e>=c.a&&e<=c.f?e-(c.a-10):void 0}function h(e,t={}){let r=e;t.size&&((0,o.Yf)(r,{size:t.size}),r=(0,s.vk)(r,{dir:\"right\",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let r=d(i.charCodeAt(t++)),s=d(i.charCodeAt(t++));if(void 0===r||void 0===s)throw new n.G(`Invalid byte sequence (\"${i[t-2]}${i[t-1]}\" in \"${i}\").`);l[e]=16*r+s}return l}function f(e,t={}){let r=l.encode(e);return\"number\"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,s.vk)(r,{dir:\"right\",size:t.size})):r}},95046:function(e,t,r){\"use strict\";r.d(t,{$G:function(){return h},C4:function(){return l},NC:function(){return a},ci:function(){return u},eC:function(){return c}});var n=r(74188),i=r(88202),s=r(21019);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function a(e,t={}){return\"number\"==typeof e||\"bigint\"==typeof e?c(e,t):\"string\"==typeof e?h(e,t):\"boolean\"==typeof e?l(e,t):u(e,t)}function l(e,t={}){let r=`0x${Number(e)}`;return\"number\"==typeof t.size?((0,s.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}function u(e,t={}){let r=\"\";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return\"number\"==typeof t.size?((0,s.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:\"right\",size:t.size})):n}function c(e,t={}){let r;let{signed:s,size:o}=t,a=BigInt(e);o?r=s?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:\"number\"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l=\"bigint\"==typeof r&&s?-r-1n:0;if(r&&a>r||a<l){let t=\"bigint\"==typeof e?\"n\":\"\";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:s,size:o,value:`${e}${t}`})}let u=`0x${(s&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.vk)(u,{size:o}):u}let d=new TextEncoder;function h(e,t={}){return u(d.encode(e),t)}},43149:function(e,t,r){\"use strict\";r.d(t,{k:function(){return s}});var n=r(48926),i=r(37764);function s(e,t){let r=(e.details||\"\").toLowerCase(),s=e instanceof n.G?e.walk(e=>e.code===i.M_.code):e;return s instanceof n.G?new i.M_({cause:e,message:s.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:e}):i.WF.nodeMessage.test(r)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:e}):i.cs.nodeMessage.test(r)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},27031:function(e,t,r){\"use strict\";function n(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&\"object\"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}r.d(t,{K:function(){return n}})},37669:function(e,t,r){\"use strict\";r.d(t,{tG:function(){return s}});var n=r(95046);let i={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\"};function s(e){let t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&(\"string\"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,n.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.eC)(e.value)),t}},36494:function(e,t,r){\"use strict\";r.d(t,{w:function(){return P}});var n=r(65376);let i=BigInt(4294967296-1),s=BigInt(32),o=(e,t,r)=>e<<r|t>>>32-r,a=(e,t,r)=>t<<r|e>>>32-r,l=(e,t,r)=>t<<r-32|e>>>64-r,u=(e,t,r)=>e<<r-32|t>>>64-r;var c=r(68104);let d=[],h=[],f=[],p=BigInt(0),g=BigInt(1),m=BigInt(2),y=BigInt(7),b=BigInt(256),v=BigInt(113);for(let e=0,t=g,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<g^(t>>y)*v)%b)&m&&(i^=g<<(g<<BigInt(e))-g);f.push(i)}let[w,_]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>s&i)}:{h:0|Number(e>>s&i),l:0|Number(e&i)}}(e[o],t);[r[o],n[o]]=[a,l]}return[r,n]}(f,!0),E=(e,t,r)=>r>32?l(e,t,r):o(e,t,r),A=(e,t,r)=>r>32?u(e,t,r):a(e,t,r);class x extends c.kb{constructor(e,t,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error(\"Sha3 supports only keccak-f1600 function\");this.state=new Uint8Array(200),this.state32=(0,c.Jq)(this.state)}keccak(){c.iA||(0,c.l1)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,s=r[i],o=r[i+1],a=E(s,o,1)^r[n],l=A(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=h[r],s=E(t,i,n),o=A(t,i,n),a=d[r];t=e[a],i=e[a+1],e[a]=s,e[a+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=w[n],e[1]^=_[n]}r.fill(0)}(this.state32,this.rounds),c.iA||(0,c.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:r}=this,i=(e=(0,c.O0)(e)).length;for(let n=0;n<i;){let s=Math.min(t-this.pos,i-n);for(let t=0;t<s;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.Gg)(this,!1),(0,n.aI)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let s=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return e}xofInto(e){if(!this.enableXOF)throw Error(\"XOF is not possible for this instance\");return this.writeInto(e)}xof(e){return(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(e,this),this.finished)throw Error(\"digest() was already called\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return e||(e=new x(t,r,n,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=s,e.destroyed=this.destroyed,e}}let k=(0,c.hE)(()=>new x(136,1,32));var S=r(40369),$=r(82361),C=r(95046);function P(e,t){let r=k((0,S.v)(e,{strict:!1})?(0,$.O0)(e):e);return\"bytes\"===(t||\"hex\")?r:(0,C.NC)(r)}},53263:function(e,t,r){\"use strict\";r.d(t,{n:function(){return n}});let n=r(99530).r},87522:function(e,t,r){\"use strict\";r.d(t,{C:function(){return s}});var n=r(49014),i=r(99530);let s=e=>(0,n.tP)((0,i.r)(e),0,4)},99530:function(e,t,r){\"use strict\";r.d(t,{r:function(){return d}});var n=r(82361),i=r(36494);let s=e=>(0,i.w)((0,n.O0)(e));var o=r(43197);let a=/^tuple(?<array>(\\[(\\d*)\\])*)$/;function l(e){let t=\"\",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(a.test(t.type)&&\"components\"in t){r=\"(\";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=\", \");let i=(0,o.Zw)(a,t.type);return r+=`)${i?.array??\"\"}`,e({...t,type:r})}return(\"indexed\"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=\", \");return t}var u=r(48926);let c=e=>(function(e){let t=!0,r=\"\",n=0,i=\"\",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if([\"(\",\")\",\",\"].includes(a)&&(t=!0),\"(\"===a&&n++,\")\"===a&&n--,t){if(0===n){if(\" \"===a&&[\"event\",\"function\",\"\"].includes(i))i=\"\";else if(i+=a,\")\"===a){s=!0;break}continue}if(\" \"===a){\",\"!==e[o-1]&&\",\"!==r&&\",(\"!==r&&(r=\"\",t=!1);continue}i+=a,r+=a}}if(!s)throw new u.G(\"Unable to normalize signature.\");return i})(\"string\"==typeof e?e:\"function\"===e.type?`function ${e.name}(${l(e.inputs)})${e.stateMutability&&\"nonpayable\"!==e.stateMutability?` ${e.stateMutability}`:\"\"}${e.outputs.length?` returns (${l(e.outputs)})`:\"\"}`:\"event\"===e.type?`event ${e.name}(${l(e.inputs)})`:\"error\"===e.type?`error ${e.name}(${l(e.inputs)})`:\"constructor\"===e.type?`constructor(${l(e.inputs)})${\"payable\"===e.stateMutability?\" payable\":\"\"}`:\"fallback\"===e.type?\"fallback()\":\"receive() external payable\");function d(e){return s(c(e))}},98992:function(e,t,r){\"use strict\";r.d(t,{k:function(){return n}});class n extends Map{constructor(e){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}},10639:function(e,t,r){\"use strict\";r.d(t,{S:function(){return i}});let n=new Map;function i({fn:e,id:t,shouldSplitBatch:r,wait:i=0,sort:s}){let o=async()=>{let t=u();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.resolve?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.reject?.(e)}})},a=()=>n.delete(t),l=()=>u().map(({args:e})=>e),u=()=>n.get(t)||[],c=e=>n.set(t,[...u(),e]);return{flush:a,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r});return(r?.([...l(),e])&&o(),u().length>0)?c({args:e,pendingPromise:t}):(c({args:e,pendingPromise:t}),setTimeout(o,i)),n}}}},55894:function(e,t,r){\"use strict\";r.d(t,{J:function(){return i}});var n=r(97317);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((s,o)=>{let a=async({count:l=0}={})=>{let u=async({error:e})=>{let r=\"function\"==typeof t?t({count:l,error:e}):t;r&&await (0,n.D)(r),a({count:l+1})};try{let t=await e();s(t)}catch(e){if(l<r&&await i({count:l,error:e}))return u({error:e});o(e)}};a()})}},11667:function(e,t,r){\"use strict\";r.d(t,{mF:function(){return u}});var n=r(51359),i=r(75057),s=r(75534),o=r(64113),a=r(95046);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:\"hex\"});if(66!==r.length)throw new i.W_({size:r.length,targetSize:66,type:\"hex\"});return e[t]=r,e},{})}function u(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,o.U)(r,{strict:!1}))throw new n.b({address:r});if(t[r])throw new s.Nc({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:o}=e,u={};if(void 0!==o&&(u.code=o),void 0!==t&&(u.balance=(0,a.eC)(t)),void 0!==r&&(u.nonce=(0,a.eC)(r)),void 0!==n&&(u.state=l(n)),void 0!==i){if(u.state)throw new s.Z8;u.stateDiff=l(i)}return u}(i)}return t}},47499:function(e,t,r){\"use strict\";r.d(t,{P:function(){return n}});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n=\"bigint\"==typeof r?r.toString():r;return\"function\"==typeof t?t(e,n):n},r)},82857:function(e,t,r){\"use strict\";r.d(t,{F:function(){return l}});var n=r(96104),i=r(51359),s=r(37764),o=r(97658),a=r(64113);function l(e){let{account:t,gasPrice:r,maxFeePerGas:l,maxPriorityFeePerGas:u,to:c}=e,d=t?(0,n.T)(t):void 0;if(d&&!(0,a.U)(d.address))throw new i.b({address:d.address});if(c&&!(0,a.U)(c))throw new i.b({address:c});if(void 0!==r&&(void 0!==l||void 0!==u))throw new o.xY;if(l&&l>2n**256n-1n)throw new s.Hh({maxFeePerGas:l});if(u&&l&&u>l)throw new s.cs({maxFeePerGas:l,maxPriorityFeePerGas:u})}},14851:function(e,t,r){\"use strict\";let n;r.d(t,{h:function(){return s}});let i=256;function s(e=11){if(!n||i+e>512){n=\"\",i=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++e)}},85053:function(e,t,r){\"use strict\";r.d(t,{d:function(){return s}});var n=r(90408),i=r(42921);function s(e,t=\"wei\"){return(0,i.b)(e,n.ez[t])}},49268:function(e,t,r){\"use strict\";r.d(t,{o:function(){return s}});var n=r(90408),i=r(42921);function s(e,t=\"wei\"){return(0,i.b)(e,n.Zn[t])}},42921:function(e,t,r){\"use strict\";function n(e,t){let r=e.toString(),n=r.startsWith(\"-\");n&&(r=r.slice(1));let[i,s]=[(r=r.padStart(t,\"0\")).slice(0,r.length-t),r.slice(r.length-t)];return s=s.replace(/(0+)$/,\"\"),`${n?\"-\":\"\"}${i||\"0\"}${s?`.${s}`:\"\"}`}r.d(t,{b:function(){return n}})},97317:function(e,t,r){\"use strict\";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},38078:function(e,t,r){\"use strict\";r.d(t,{FF:function(){return k},S5:function(){return m},Wd:function(){return v},_t:function(){return s},bytesToNumberBE:function(){return f},ci:function(){return l},dQ:function(){return w},eV:function(){return b},gk:function(){return o},hexToBytes:function(){return h},n$:function(){return A},ql:function(){return y},tL:function(){return g},ty:function(){return p}}),BigInt(0);let n=BigInt(1),i=BigInt(2);function s(e){return e instanceof Uint8Array||null!=e&&\"object\"==typeof e&&\"Uint8Array\"===e.constructor.name}function o(e){if(!s(e))throw Error(\"Uint8Array expected\")}let a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function l(e){o(e);let t=\"\";for(let r=0;r<e.length;r++)t+=a[e[r]];return t}function u(e){if(\"string\"!=typeof e)throw Error(\"hex string expected, got \"+typeof e);return BigInt(\"\"===e?\"0\":`0x${e}`)}let c={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function d(e){return e>=c._0&&e<=c._9?e-c._0:e>=c._A&&e<=c._F?e-(c._A-10):e>=c._a&&e<=c._f?e-(c._a-10):void 0}function h(e){if(\"string\"!=typeof e)throw Error(\"hex string expected, got \"+typeof e);let t=e.length,r=t/2;if(t%2)throw Error(\"padded hex string expected, got unpadded hex of length \"+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=d(e.charCodeAt(i)),s=d(e.charCodeAt(i+1));if(void 0===r||void 0===s)throw Error('hex string expected, got non-hex character \"'+(e[i]+e[i+1])+'\" at index '+i);n[t]=16*r+s}return n}function f(e){return u(l(e))}function p(e){return o(e),u(l(Uint8Array.from(e).reverse()))}function g(e,t){return h(e.toString(16).padStart(2*t,\"0\"))}function m(e,t){return g(e,t).reverse()}function y(e,t,r){let n;if(\"string\"==typeof t)try{n=h(t)}catch(r){throw Error(`${e} must be valid hex string, got \"${t}\". Cause: ${r}`)}else if(s(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if(\"number\"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function b(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];o(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}function v(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}let w=e=>(i<<BigInt(e-1))-n,_=e=>new Uint8Array(e),E=e=>Uint8Array.from(e);function A(e,t,r){if(\"number\"!=typeof e||e<2)throw Error(\"hashLen must be a number\");if(\"number\"!=typeof t||t<2)throw Error(\"qByteLen must be a number\");if(\"function\"!=typeof r)throw Error(\"hmacFn must be a function\");let n=_(e),i=_(e),s=0,o=()=>{n.fill(1),i.fill(0),s=0},a=(...e)=>r(i,n,...e),l=(e=_())=>{i=a(E([0]),e),n=a(),0!==e.length&&(i=a(E([1]),e),n=a())},u=()=>{if(s++>=1e3)throw Error(\"drbg: tried 1000 values\");let e=0,r=[];for(;e<t;){let t=(n=a()).slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(o(),l(e);!(r=t(u()));)l();return o(),r}}let x={bigint:e=>\"bigint\"==typeof e,function:e=>\"function\"==typeof e,boolean:e=>\"boolean\"==typeof e,string:e=>\"string\"==typeof e,stringOrUint8Array:e=>\"string\"==typeof e||s(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>\"function\"==typeof e&&Number.isSafeInteger(e.outputLen)};function k(e,t,r={}){let n=(t,r,n)=>{let i=x[r];if(\"function\"!=typeof i)throw Error(`Invalid validator \"${r}\", expected function`);let s=e[t];if((!n||void 0!==s)&&!i(s,e))throw Error(`Invalid param ${String(t)}=${s} (${typeof s}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},68610:function(e,t,r){\"use strict\";r.d(t,{secp256k1:function(){return j}});var n=r(80543),i=r(38078);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let s=BigInt(0),o=BigInt(1),a=BigInt(2),l=BigInt(3),u=BigInt(4),c=BigInt(5),d=BigInt(8);function h(e,t){let r=e%t;return r>=s?r:t+r}function f(e,t,r){let n=e;for(;t-- >s;)n*=n,n%=r;return n}function p(e,t){if(e===s||t<=s)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=h(e,t),n=t,i=s,a=o,l=o,u=s;for(;r!==s;){let e=n/r,t=n%r,s=i-l*e,o=a-u*e;n=r,r=t,i=l,a=u,l=s,u=o}if(n!==o)throw Error(\"invert: does not exist\");return h(i,t)}BigInt(9),BigInt(16);let g=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"];function m(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function y(e){if(\"bigint\"!=typeof e)throw Error(\"field order must be bigint\");return Math.ceil(e.toString(2).length/8)}function b(e){let t=y(e);return t+Math.ceil(t/2)}var v=r(65376),w=r(68104);class _ extends w.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,v.vp)(e);let r=(0,w.O0)(t);if(this.iHash=e.create(),\"function\"!=typeof this.iHash.update)throw Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return(0,v.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,v.Gg)(this),(0,v.aI)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:s,outputLen:o}=this;return e.finished=n,e.destroyed=i,e.blockLen=s,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let E=(e,t,r)=>new _(e,t).update(r).digest();E.create=(e,t)=>new _(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let A=BigInt(0),x=BigInt(1);function k(e){return!function(e){let t=g.reduce((e,t)=>(e[t]=\"function\",e),{ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"});(0,i.FF)(e,t)}(e.Fp),(0,i.FF)(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...m(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}let{bytesToNumberBE:S,hexToBytes:$}=i,C={Err:class extends Error{constructor(e=\"\"){super(e)}},_parseInt(e){let{Err:t}=C;if(e.length<2||2!==e[0])throw new t(\"Invalid signature integer tag\");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t(\"Invalid signature integer: wrong length\");if(128&n[0])throw new t(\"Invalid signature integer: negative\");if(0===n[0]&&!(128&n[1]))throw new t(\"Invalid signature integer: unnecessary leading zero\");return{d:S(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=C,r=\"string\"==typeof e?$(e):e;i.gk(r);let n=r.length;if(n<2||48!=r[0])throw new t(\"Invalid signature tag\");if(r[1]!==n-2)throw new t(\"Invalid signature: incorrect length\");let{d:s,l:o}=C._parseInt(r.subarray(2)),{d:a,l:l}=C._parseInt(o);if(l.length)throw new t(\"Invalid signature: left bytes after parsing\");return{r:s,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?\"00\"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),s=n.length/2,o=i.length/2,a=r(s),l=r(o);return`30${r(o+s+4)}02${l}${i}02${a}${n}`}},P=BigInt(0),I=BigInt(1),O=(BigInt(2),BigInt(3));BigInt(4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let N=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),M=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),R=BigInt(1),T=BigInt(2),D=(e,t)=>(e+t/T)/t,L=function(e,t,r=!1,n={}){if(e<=s)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:f,nByteLength:g}=m(e,t);if(g>2048)throw Error(\"Field lengths over 2048 bytes are not supported\");let y=function(e){if(e%u===l){let t=(e+o)/u;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error(\"Cannot find square root\");return n}}if(e%d===c){let t=(e-c)/d;return function(e,r){let n=e.mul(r,a),i=e.pow(n,t),s=e.mul(r,i),o=e.mul(e.mul(s,a),i),l=e.mul(s,e.sub(o,e.ONE));if(!e.eql(e.sqr(l),r))throw Error(\"Cannot find square root\");return l}}return function(e){let t,r,n;let i=(e-o)/a;for(t=e-o,r=0;t%a===s;t/=a,r++);for(n=a;n<e&&function(e,t,r){if(r<=s||t<s)throw Error(\"Expected power/modulo > 0\");if(r===o)return s;let n=o;for(;t>s;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}(n,i,e)!==e-o;n++);if(1===r){let t=(e+o)/u;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error(\"Cannot find square root\");return n}}let l=(t+o)/a;return function(e,s){if(e.pow(s,i)===e.neg(e.ONE))throw Error(\"Cannot find square root\");let a=r,u=e.pow(e.mul(e.ONE,n),t),c=e.pow(s,l),d=e.pow(s,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,o<<BigInt(a-t-1));u=e.sqr(r),c=e.mul(c,r),d=e.mul(d,u),a=t}return c}}(e)}(e),b=Object.freeze({ORDER:e,BITS:f,BYTES:g,MASK:(0,i.dQ)(f),ZERO:s,ONE:o,create:t=>h(t,e),isValid:t=>{if(\"bigint\"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return s<=t&&t<e},is0:e=>e===s,isOdd:e=>(e&o)===o,neg:t=>h(-t,e),eql:(e,t)=>e===t,sqr:t=>h(t*t,e),add:(t,r)=>h(t+r,e),sub:(t,r)=>h(t-r,e),mul:(t,r)=>h(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<s)throw Error(\"Expected power > 0\");if(r===s)return e.ONE;if(r===o)return t;let n=e.ONE,i=t;for(;r>s;)r&o&&(n=e.mul(n,i)),i=e.sqr(i),r>>=o;return n})(b,e,t),div:(t,r)=>h(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(e=>y(b,e)),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r})(b,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,i.S5)(e,g):(0,i.tL)(e,g),fromBytes:e=>{if(e.length!==g)throw Error(`Fp.fromBytes: expected ${g}, got ${e.length}`);return r?(0,i.ty)(e):(0,i.bytesToNumberBE)(e)}});return Object.freeze(b)}(N,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),a=BigInt(88),l=e*e*e%N,u=l*l*e%N,c=f(u,t,N)*u%N,d=f(c,t,N)*u%N,h=f(d,T,N)*l%N,p=f(h,n,N)*h%N,g=f(p,i,N)*p%N,m=f(g,o,N)*g%N,y=f(m,a,N)*m%N,b=f(y,o,N)*g%N,v=f(b,t,N)*u%N,w=f(v,s,N)*p%N,_=f(w,r,N)*l%N,E=f(_,T,N);if(!L.eql(L.sqr(E),e))throw Error(\"Cannot find square root\");return E}}),j=function(e,t){let r=t=>(function(e){let t=function(e){let t=k(e);return i.FF(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,s=r.BYTES+1,a=2*r.BYTES+1;function l(e){return h(e,n)}let{ProjectivePoint:u,normPrivateKeyToScalar:c,weierstrassEquation:d,isWithinCurveOrder:f}=function(e){let t=/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function(e){let t=k(e);i.FF(t,{a:\"field\",b:\"field\"},{allowedPrivateKeyLengths:\"array\",wrapPrivateKey:\"boolean\",isTorsionFree:\"function\",clearCofactor:\"function\",allowInfinityPoint:\"boolean\",fromBytes:\"function\",toBytes:\"function\"});let{endo:r,Fp:n,a:s}=t;if(r){if(!n.eql(s,n.ZERO))throw Error(\"Endomorphism can only be defined for Koblitz curves that have a=0\");if(\"object\"!=typeof r||\"bigint\"!=typeof r.beta||\"function\"!=typeof r.splitScalar)throw Error(\"Expected endomorphism with beta: bigint and splitScalar: function\")}return Object.freeze({...t})}(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let s=t.toAffine();return i.eV(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),s=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function o(e){let{a:n,b:i}=t,s=r.sqr(e),o=r.mul(s,e);return r.add(r.add(o,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw Error(\"bad generator point: equation left != right\");function a(e){return\"bigint\"==typeof e&&P<e&&e<t.n}function l(e){if(!a(e))throw Error(\"Expected valid bigint: 0 < bigint < curve.n\")}function u(e){let r;let{allowedPrivateKeyLengths:n,nByteLength:s,wrapPrivateKey:o,n:a}=t;if(n&&\"bigint\"!=typeof e){if(i._t(e)&&(e=i.ci(e)),\"string\"!=typeof e||!n.includes(e.length))throw Error(\"Invalid key\");e=e.padStart(2*s,\"0\")}try{r=\"bigint\"==typeof e?e:i.bytesToNumberBE((0,i.ql)(\"private key\",e,s))}catch(t){throw Error(`private key must be ${s} bytes, hex or bigint, not ${typeof e}`)}return o&&(r=h(r,a)),l(r),r}let c=new Map;function d(e){if(!(e instanceof f))throw Error(\"ProjectivePoint expected\")}class f{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error(\"x required\");if(null==t||!r.isValid(t))throw Error(\"y required\");if(null==n||!r.isValid(n))throw Error(\"z required\")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error(\"invalid affine point\");if(e instanceof f)throw Error(\"projective point not allowed\");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?f.ZERO:new f(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(f.fromAffine)}static fromHex(e){let t=f.fromAffine(s((0,i.ql)(\"pointHex\",e)));return t.assertValidity(),t}static fromPrivateKey(e){return f.BASE.multiply(u(e))}_setWindowSize(e){this._WINDOW_SIZE=e,c.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error(\"bad point: ZERO\")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error(\"bad point: x or y not FE\");let i=r.sqr(n),s=o(e);if(!r.eql(i,s))throw Error(\"bad point: equation left != right\");if(!this.isTorsionFree())throw Error(\"bad point: not in prime-order subgroup\")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error(\"Field doesn't support isOdd\")}equals(e){d(e);let{px:t,py:n,pz:i}=this,{px:s,py:o,pz:a}=e,l=r.eql(r.mul(t,a),r.mul(s,i)),u=r.eql(r.mul(n,a),r.mul(o,i));return l&&u}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,O),{px:s,py:o,pz:a}=this,l=r.ZERO,u=r.ZERO,c=r.ZERO,d=r.mul(s,s),h=r.mul(o,o),p=r.mul(a,a),g=r.mul(s,o);return g=r.add(g,g),c=r.mul(s,a),c=r.add(c,c),l=r.mul(e,c),u=r.mul(i,p),u=r.add(l,u),l=r.sub(h,u),u=r.add(h,u),u=r.mul(l,u),l=r.mul(g,l),c=r.mul(i,c),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,c),c=r.add(d,d),d=r.add(c,d),d=r.add(d,p),d=r.mul(d,g),u=r.add(u,d),p=r.mul(o,a),p=r.add(p,p),d=r.mul(p,g),l=r.sub(l,d),c=r.mul(p,h),c=r.add(c,c),new f(l,u,c=r.add(c,c))}add(e){d(e);let{px:n,py:i,pz:s}=this,{px:o,py:a,pz:l}=e,u=r.ZERO,c=r.ZERO,h=r.ZERO,p=t.a,g=r.mul(t.b,O),m=r.mul(n,o),y=r.mul(i,a),b=r.mul(s,l),v=r.add(n,i),w=r.add(o,a);v=r.mul(v,w),w=r.add(m,y),v=r.sub(v,w),w=r.add(n,s);let _=r.add(o,l);return w=r.mul(w,_),_=r.add(m,b),w=r.sub(w,_),_=r.add(i,s),u=r.add(a,l),_=r.mul(_,u),u=r.add(y,b),_=r.sub(_,u),h=r.mul(p,w),u=r.mul(g,b),h=r.add(u,h),u=r.sub(y,h),h=r.add(y,h),c=r.mul(u,h),y=r.add(m,m),y=r.add(y,m),b=r.mul(p,b),w=r.mul(g,w),y=r.add(y,b),b=r.sub(m,b),b=r.mul(p,b),w=r.add(w,b),m=r.mul(y,w),c=r.add(c,m),m=r.mul(_,w),u=r.mul(v,u),u=r.sub(u,m),m=r.mul(v,y),h=r.mul(_,h),new f(u,c,h=r.add(h,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(f.ZERO)}wNAF(e){return g.wNAFCached(this,c,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(f.fromAffine)})}multiplyUnsafe(e){let n=f.ZERO;if(e===P)return n;if(l(e),e===I)return this;let{endo:i}=t;if(!i)return g.unsafeLadder(this,e);let{k1neg:s,k1:o,k2neg:a,k2:u}=i.splitScalar(e),c=n,d=n,h=this;for(;o>P||u>P;)o&I&&(c=c.add(h)),u&I&&(d=d.add(h)),h=h.double(),o>>=I,u>>=I;return s&&(c=c.negate()),a&&(d=d.negate()),d=new f(r.mul(d.px,i.beta),d.py,d.pz),c.add(d)}multiply(e){let n,i;l(e);let{endo:s}=t;if(s){let{k1neg:t,k1:o,k2neg:a,k2:l}=s.splitScalar(e),{p:u,f:c}=this.wNAF(o),{p:d,f:h}=this.wNAF(l);u=g.constTimeNegate(t,u),d=g.constTimeNegate(a,d),d=new f(r.mul(d.px,s.beta),d.py,d.pz),n=u.add(d),i=c.add(h)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return f.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=f.BASE,i=(e,t)=>t!==P&&t!==I&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),s=i(this,t).add(i(e,r));return s.is0()?void 0:s}toAffine(e){let{px:t,py:n,pz:i}=this,s=this.is0();null==e&&(e=s?r.ONE:r.inv(i));let o=r.mul(t,e),a=r.mul(n,e),l=r.mul(i,e);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error(\"invZ was invalid\");return{x:o,y:a}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===I)return!0;if(r)return r(f,this);throw Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===I?this:r?r(f,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(f,this,e)}toHex(e=!0){return i.ci(this.toRawBytes(e))}}f.BASE=new f(t.Gx,t.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);let p=t.nBitLength,g=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>A;)r&x&&(n=n.add(i)),i=i.double(),r>>=x;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),s=[],o=e,a=o;for(let e=0;e<r;e++){a=o,s.push(a);for(let e=1;e<i;e++)a=a.add(o),s.push(a);o=a.double()}return s},wNAF(t,i,s){let{windows:o,windowSize:a}=n(t),l=e.ZERO,u=e.BASE,c=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<o;e++){let t=e*a,n=Number(s&c);s>>=h,n>a&&(n-=d,s+=x);let o=t+Math.abs(n)-1,f=e%2!=0,p=n<0;0===n?u=u.add(r(f,i[t])):l=l.add(r(p,i[o]))}return{p:l,f:u}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,s=t.get(e);return s||(s=this.precomputeWindow(e,i),1!==i&&t.set(e,n(s))),this.wNAF(i,s,r)}}}(f,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:f,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:a}}({...t,toBytes(e,t,n){let s=t.toAffine(),o=r.toBytes(s.x),a=i.eV;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(s.y))},fromBytes(e){let t=e.length,n=e[0],o=e.subarray(1);if(t===s&&(2===n||3===n)){let e;let t=i.bytesToNumberBE(o);if(!(P<t&&t<r.ORDER))throw Error(\"Point is not on curve\");let s=d(t);try{e=r.sqrt(s)}catch(e){throw Error(\"Point is not on curve\"+(e instanceof Error?\": \"+e.message:\"\"))}return(1&n)==1!=((e&I)===I)&&(e=r.neg(e)),{x:t,y:e}}if(t===a&&4===n)return{x:r.fromBytes(o.subarray(0,r.BYTES)),y:r.fromBytes(o.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`)}}),g=e=>i.ci(i.tL(e,t.nByteLength)),m=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class v{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new v(m(e=(0,i.ql)(\"compactSignature\",e,2*r),0,r),m(e,r,2*r))}static fromDER(e){let{r:t,s:r}=C.toSig((0,i.ql)(\"DER\",e));return new v(t,r)}assertValidity(){if(!f(this.r))throw Error(\"r must be 0 < r < CURVE.n\");if(!f(this.s))throw Error(\"s must be 0 < s < CURVE.n\")}addRecoveryBit(e){return new v(this.r,this.s,e)}recoverPublicKey(e){let{r:s,s:o,recovery:a}=this,c=E((0,i.ql)(\"msgHash\",e));if(null==a||![0,1,2,3].includes(a))throw Error(\"recovery id invalid\");let d=2===a||3===a?s+t.n:s;if(d>=r.ORDER)throw Error(\"recovery id 2 or 3 invalid\");let h=(1&a)==0?\"02\":\"03\",f=u.fromHex(h+g(d)),m=p(d,n),y=l(-c*m),b=l(o*m),v=u.BASE.multiplyAndAddUnsafe(f,y,b);if(!v)throw Error(\"point at infinify\");return v.assertValidity(),v}hasHighS(){return this.s>n>>I}normalizeS(){return this.hasHighS()?new v(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return C.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}function w(e){let t=i._t(e),r=\"string\"==typeof e,n=(t||r)&&e.length;return t?n===s||n===a:r?n===2*s||n===2*a:e instanceof u}let _=t.bits2int||function(e){let r=i.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},E=t.bits2int_modN||function(e){return l(_(e))},S=i.dQ(t.nBitLength);function $(e){if(\"bigint\"!=typeof e)throw Error(\"bigint expected\");if(!(P<=e&&e<S))throw Error(`bigint expected < 2^${t.nBitLength}`);return i.tL(e,t.nByteLength)}let N={lowS:t.lowS,prehash:!1},M={lowS:t.lowS,prehash:!1};return u.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(w(e))throw Error(\"first arg must be private key\");if(!w(t))throw Error(\"second arg must be public key\");return u.fromHex(t).multiply(c(e)).toRawBytes(r)},sign:function(e,s,o=N){let{seed:a,k2sig:d}=function(e,s,o=N){if([\"recovered\",\"canonical\"].some(e=>e in o))throw Error(\"sign() legacy options not supported\");let{hash:a,randomBytes:d}=t,{lowS:h,prehash:g,extraEntropy:m}=o;null==h&&(h=!0),e=(0,i.ql)(\"msgHash\",e),g&&(e=(0,i.ql)(\"prehashed msgHash\",a(e)));let y=E(e),b=c(s),w=[$(b),$(y)];if(null!=m&&!1!==m){let e=!0===m?d(r.BYTES):m;w.push((0,i.ql)(\"extraEntropy\",e))}return{seed:i.eV(...w),k2sig:function(e){let t=_(e);if(!f(t))return;let r=p(t,n),i=u.BASE.multiply(t).toAffine(),s=l(i.x);if(s===P)return;let o=l(r*l(y+s*b));if(o===P)return;let a=(i.x===s?0:2)|Number(i.y&I),c=o;if(h&&o>n>>I)c=o>n>>I?l(-o):o,a^=1;return new v(s,c,a)}}}(e,s,o);return i.n$(t.hash.outputLen,t.nByteLength,t.hmac)(a,d)},verify:function(e,r,s,o=M){let a,c;if(r=(0,i.ql)(\"msgHash\",r),s=(0,i.ql)(\"publicKey\",s),\"strict\"in o)throw Error(\"options.strict was renamed to lowS\");let{lowS:d,prehash:h}=o;try{if(\"string\"==typeof e||i._t(e))try{c=v.fromDER(e)}catch(t){if(!(t instanceof C.Err))throw t;c=v.fromCompact(e)}else if(\"object\"==typeof e&&\"bigint\"==typeof e.r&&\"bigint\"==typeof e.s){let{r:t,s:r}=e;c=new v(t,r)}else throw Error(\"PARSE\");a=u.fromHex(s)}catch(e){if(\"PARSE\"===e.message)throw Error(\"signature must be Signature instance, Uint8Array or hex string\");return!1}if(d&&c.hasHighS())return!1;h&&(r=t.hash(r));let{r:f,s:g}=c,m=E(r),y=p(g,n),b=l(m*y),w=l(f*y),_=u.BASE.multiplyAndAddUnsafe(a,b,w)?.toAffine();return!!_&&l(_.x)===f},ProjectivePoint:u,Signature:v,utils:{isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=b(t.n);return function(e,t,r=!1){let n=e.length,s=y(t),a=b(t);if(n<16||n<a||n>1024)throw Error(`expected ${a}-1024 bytes of input, got ${n}`);let l=h(r?(0,i.bytesToNumberBE)(e):(0,i.ty)(e),t-o)+o;return r?(0,i.S5)(l,s):(0,i.tL)(l,s)}(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...r)=>E(t,e,(0,w.eV)(...r)),randomBytes:w.O6});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:L,n:M,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{let t=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),r=-R*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),n=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),i=BigInt(\"0x100000000000000000000000000000000\"),s=D(t*e,M),o=D(-r*e,M),a=h(e-s*t-o*n,M),l=h(-s*r-o*t,M),u=a>i,c=l>i;if(u&&(a=M-a),c&&(l=M-l),a>i||l>i)throw Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:u,k1:a,k2neg:c,k2:l}}}},n.J);BigInt(0),j.ProjectivePoint}}]);"
  },
  {
    "path": "docs/_next/static/chunks/23-a2a6d2cb6c50ca8e.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23],{29492:function(e,t){\"use strict\";function n(){return\"\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getDeploymentIdQueryOrEmptyString\",{enumerable:!0,get:function(){return n}})},57108:function(){\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var e=/\\((.*)\\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if(\"function\"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4897:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addBasePath\",{enumerable:!0,get:function(){return u}});let r=n(22707),o=n(18157);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,\"\"))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75684:function(e,t){\"use strict\";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement(\"script\");if(r)for(let e in r)\"children\"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"appBootstrap\",{enumerable:!0,get:function(){return n}}),window.next={version:\"14.2.5\",appDir:!0},(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74590:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"callServer\",{enumerable:!0,get:function(){return o}});let r=n(95751);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error(\"Invariant: missing action dispatcher.\");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10353:function(e,t,n){\"use strict\";let r,o;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hydrate\",{enumerable:!0,get:function(){return x}});let u=n(99920),l=n(41452),a=n(57437);n(57108);let i=u._(n(34040)),c=l._(n(2265)),s=n(6671),f=n(36590),d=u._(n(16124)),p=n(74590),h=n(42128),y=n(21427);n(63243);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,h.isNextRouterError)(t[0])||_.apply(window.console,t)},window.addEventListener(\"error\",e=>{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error(\"Unexpected server data: missing bootstrap script.\");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let j=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};\"loading\"===document.readyState?document.addEventListener(\"DOMContentLoaded\",j,!1):j();let O=self.__next_f=self.__next_f||[];O.forEach(P),O.push=P;let S=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),E=(0,s.createFromReadableStream)(S,{callServer:p.callServer});function w(){return(0,c.use)(E)}let T=c.default.Fragment;function M(e){let{children:t}=e;return t}function x(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};\"__next_error__\"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11028:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),n(65820),(0,n(75684).appBootstrap)(()=>{let{hydrate:e}=n(10353);n(95751),n(39275),e()}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65820:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),n(29492);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return encodeURI(e(...n))}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99440:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"actionAsyncStorage\",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(8293);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41012:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"AppRouterAnnouncer\",{enumerable:!0,get:function(){return l}});let r=n(2265),o=n(54887),u=\"next-route-announcer\";function l(e){let{tree:t}=e,[n,l]=(0,r.useState)(null);(0,r.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText=\"position:absolute\";let t=document.createElement(\"div\");return t.ariaLive=\"assertive\",t.id=\"__next-route-announcer__\",t.role=\"alert\",t.style.cssText=\"position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal\",e.attachShadow({mode:\"open\"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(\"\"),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e=\"\";if(document.title)e=document.title;else{let t=document.querySelector(\"h1\");t&&(e=t.innerText||t.textContent||\"\")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77325:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n=\"RSC\",r=\"Next-Action\",o=\"Next-Router-State-Tree\",u=\"Next-Router-Prefetch\",l=\"Next-Url\",a=\"text/x-component\",i=[[n],[o],[u]],c=\"_rsc\",s=\"x-nextjs-postponed\";(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95751:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return I},getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467),a=n(51507),i=n(53174),c=n(68056),s=n(42114),f=n(76130),d=n(50322),p=n(74092),h=n(4897),y=n(41012),_=n(36585),v=n(30315),b=n(91108),g=n(77325),m=n(97599),R=n(49404),P=n(8e4),j=\"undefined\"==typeof window,O=j?null:new Map,S=null;function E(){return S}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(\".txt\")){let{pathname:e}=t,n=e.endsWith(\"/index.txt\")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function x(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,\"\",o)):window.history.replaceState(u,\"\",o),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,couldBeIntercepted:E,assetPrefix:T,missingSlots:C}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:O,location:j?null:window.location,initialHead:r,couldBeIntercepted:E}),[n,g,f,i,r,E]),[I,U,k]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(I),{searchParams:L,pathname:H}=(0,u.useMemo)(()=>{let e=new URL(F,\"undefined\"==typeof window?\"http://n\":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),$=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);S=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let z=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error(\"Cannot prefetch '\"+e+\"' because it cannot be converted to a URL.\")}M(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,\"replace\",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,\"push\",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error(\"fastRefresh can only be used in development mode. Please use refresh instead.\")}}),[U,G]);(0,u.useEffect)(()=>{window.next&&(window.next.router=z)},[z]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener(\"pageshow\",e),()=>{window.removeEventListener(\"pageshow\",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(I);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener(\"popstate\",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener(\"popstate\",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(I),X=(0,u.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(P.PAGE_SEGMENT_KEY)||(o&&(\"c\"===t[2]||\"oc\"===t[2])?n[t[0]]=t[1].split(\"/\"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{appRouterState:(0,s.useUnwrapState)(I),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:$,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:z,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function I(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24804:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"bailoutToClientRendering\",{enumerable:!0,get:function(){return u}});let r=n(55592),o=n(44936);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66513:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ClientPageRoot\",{enumerable:!0,get:function(){return u}});let r=n(57437),o=n(8897);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76130:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(99920),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(42128),i=n(44936),c={error:{fontFamily:'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',height:\"100vh\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\"},text:{fontSize:\"14px\",fontWeight:400,lineHeight:\"28px\",margin:\"0 8px\"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)(\"html\",{id:\"__next_error__\",children:[(0,o.jsx)(\"head\",{}),(0,o.jsxs)(\"body\",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)(\"div\",{style:c.error,children:(0,o.jsxs)(\"div\",{children:[(0,o.jsx)(\"h2\",{style:c.text,children:\"Application error: a \"+(n?\"server\":\"client\")+\"-side exception has occurred (see the \"+(n?\"server logs\":\"browser console\")+\" for more information).\"}),n?(0,o.jsx)(\"p\",{style:c.text,children:\"Digest: \"+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57910:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n=\"DYNAMIC_SERVER_USAGE\";class r extends Error{constructor(e){super(\"Dynamic server usage: \"+e),this.description=e,this.digest=n}}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&\"string\"==typeof e.digest&&e.digest===n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42128:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isNextRouterError\",{enumerable:!0,get:function(){return u}});let r=n(52496),o=n(67909);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39275:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return S}});let r=n(99920),o=n(41452),u=n(57437),l=o._(n(2265)),a=r._(n(54887)),i=n(44467),c=n(41283),s=n(91108),f=n(76130),d=n(16237),p=n(86180),h=n(36585),y=n(16585),_=n(44640),v=n(81784),b=n(35914),g=[\"bottom\",\"height\",\"left\",\"right\",\"top\",\"width\",\"x\",\"y\"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r=\"top\"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r=\"undefined\"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if([\"sticky\",\"fixed\"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error(\"invariant global layout router not mounted\");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function j(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error(\"invariant global layout router not mounted\");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,l.useDeferredValue)(v.rsc,g),R=\"object\"==typeof m&&null!==m&&\"function\"==typeof m.then?(0,l.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],\"refetch\"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}([\"\",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function O(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:g}=e,m=(0,l.useContext)(i.LayoutRouterContext);if(!m)throw Error(\"invariant expected layout router to be mounted\");let{childNodes:R,tree:S,url:E,loading:w}=m,T=R.get(t);T||(T=new Map,R.set(t,T));let M=S[1][t][0],x=(0,_.getSegmentValue)(M),C=[M];return(0,u.jsxs)(u.Fragment,{children:[g,C.map(e=>{let l=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:!!w,loading:null==w?void 0:w[0],loadingStyles:null==w?void 0:w[1],loadingScripts:null==w?void 0:w[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:E,tree:S,childNodes:T,segmentPath:n,cacheKey:g,isActive:x===l})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})]})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16237:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(24286),o=(e,t)=>\"string\"==typeof e?\"string\"==typeof t&&e===t:\"string\"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71169:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(2265),o=n(44467),u=n(68056),l=n(44640),a=n(8e4),i=n(52152),c=n(8005);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if(\"undefined\"==typeof window){let{bailoutToClientRendering:e}=n(24804);e(\"useSearchParams()\")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error(\"invariant expected app router to be mounted\");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e=\"children\");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e=\"children\");let t=h(e);if(!t||0===t.length)return null;let n=\"children\"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52152:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(67909),o=n(52496);class u extends Error{constructor(){super(\"Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams\")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16585:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"NotFoundBoundary\",{enumerable:!0,get:function(){return s}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(52496);n(72301);let i=n(44467);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(\"meta\",{name:\"robots\",content:\"noindex\"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52496:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n=\"NEXT_NOT_FOUND\";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&e.digest===n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43858:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"PromiseQueue\",{enumerable:!0,get:function(){return c}});let r=n(93449),o=n(57614);var u=o._(\"_maxConcurrency\"),l=o._(\"_runningCount\"),a=o._(\"_queue\"),i=o._(\"_processNext\");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]<r._(this,u)[u]||e)&&r._(this,a)[a].length>0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36585:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(67909);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84785:function(e,t){\"use strict\";var n,r;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"RedirectStatusCode\",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]=\"SeeOther\",r[r.TemporaryRedirect=307]=\"TemporaryRedirect\",r[r.PermanentRedirect=308]=\"PermanentRedirect\",(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67909:function(e,t,n){\"use strict\";var r,o;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(58512),l=n(99440),a=n(84785),i=\"NEXT_REDIRECT\";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+\";\"+t+\";\"+e+\";\"+n+\";\";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t=\"replace\");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t=\"replace\");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if(\"object\"!=typeof e||null===e||!(\"digest\"in e)||\"string\"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(\";\",4),u=Number(o);return t===i&&(\"replace\"===n||\"push\"===n)&&\"string\"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(\";\",3)[2]:null}function h(e){if(!d(e))throw Error(\"Not a redirect error\");return e.digest.split(\";\",2)[1]}function y(e){if(!d(e))throw Error(\"Not a redirect error\");return Number(e.digest.split(\";\",4)[3])}(o=r||(r={})).push=\"push\",o.replace=\"replace\",(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61343:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return a}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58512:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(70038);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error(\"`\"+e+\"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39607:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"applyFlightData\",{enumerable:!0,get:function(){return u}});let r=n(13821),o=n(41133);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69684:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"applyRouterStatePatchToTree\",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(8e4),o=n(16237),u=n(74922);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99559:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"clearCacheNodeDataForSegmentPath\",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(81784);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96626:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(82269),o=n(8e4),u=n(16237),l=e=>\"/\"===e[0]?e.slice(1):e,a=e=>\"string\"==typeof e?\"children\"===e?\"\":e:e[1];function i(e){return e.reduce((e,t)=>\"\"===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+\"/\"+t,\"\")||\"/\"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return\"\";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if(\"children\"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return\"\";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:\"\"}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+\"/\"+n}return null}(e,t);return null==n||\"/\"===n?n:i(n.split(\"/\"))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53174:function(e,t){\"use strict\";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:\"\")}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createHrefFromUrl\",{enumerable:!0,get:function(){return n}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50322:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createInitialRouterState\",{enumerable:!0,get:function(){return c}});let r=n(53174),o=n(13821),u=n(96626),l=n(86004),a=n(51507),i=n(74922);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=!p,v={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:_?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let g=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(v,void 0,c,s,h);let m={buildId:n,tree:c,cache:v,prefetchCache:g,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(\"\"+p.pathname+p.search,p.origin),t=[[\"\",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:m.tree,prefetchCache:m.prefetchCache,nextUrl:m.nextUrl})}return m}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81784:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createRouterCacheKey\",{enumerable:!0,get:function(){return o}});let r=n(8e4);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+\"|\"+e[1]+\"|\"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41283:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fetchServerResponse\",{enumerable:!0,get:function(){return s}});let r=n(77325),o=n(95751),u=n(74590),l=n(51507),a=n(54736),{createFromFetch:i}=n(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:\"1\",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]=\"1\"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||\"0\",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(\",\"));try{var h;let t=new URL(e);t.pathname.endsWith(\"/\")?t.pathname+=\"index.txt\":t.pathname+=\".txt\",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:\"same-origin\",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get(\"content-type\")||\"\",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get(\"vary\"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith(\"text/plain\")),!v||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,g]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error(\"Failed to fetch RSC payload for \"+e+\". Falling back to browser navigation.\",t),[e.toString(),void 0,!1,!1]}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41133:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fillCacheWithNewSubTreeData\",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(74213),o=n(13821),u=n(81784);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13821:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fillLazyItemsTillLeafWithHead\",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)===\"auto\"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(81784),o=n(51507);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36416:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleMutable\",{enumerable:!0,get:function(){return u}});let r=n(96626);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split(\"#\",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split(\"#\",1)[0]),hashFragment:a?t.hashFragment&&\"\"!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40774:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleSegmentMismatch\",{enumerable:!0,get:function(){return o}});let r=n(51294);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9863:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"invalidateCacheBelowFlightSegmentPath\",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(81784);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74213:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"invalidateCacheByRouterState\",{enumerable:!0,get:function(){return o}});let r=n(81784);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10139:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isNavigatingToNewRootLayout\",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93060:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,u.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,j=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?l(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==j&&void 0!==c?null!=g?e(j,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&\"pending\"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(8e4),o=n(16237),u=n(81784);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];\"string\"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e<t.length;e+=2){let n=t[e],r=t[e+1],u=a.children;if(null!==u){let e=u.get(n);if(void 0!==e){let t=e.route[0];if((0,o.matchSegment)(r,t)){a=e;continue}}}return}!function e(t,n,r,l){let a=t.children,i=t.node;if(null===a){null!==i&&(function e(t,n,r,l,a){let i=n[1],c=r[1],f=l[1],p=t.parallelRoutes;for(let t in i){let n=i[t],r=c[t],l=f[t],d=p.get(t),h=n[0],y=(0,u.createRouterCacheKey)(h),_=void 0!==d?d.get(y):void 0;void 0!==_&&(void 0!==r&&(0,o.matchSegment)(h,r[0])&&null!=l?e(_,n,r,l,a):s(n,_,null))}let h=t.rsc,y=l[2];null===h?t.rsc=y:d(h)&&h.resolve(y);let _=t.head;d(_)&&_.resolve(a)}(i,t.route,n,r,l),t.node=null);return}let c=n[1],f=r[1];for(let t in n){let n=c[t],r=f[t],u=a.get(t);if(void 0!==u){let t=u.route[0];if((0,o.matchSegment)(n[0],t)&&null!=r)return e(u,n,r,l)}}}(a,n,r,l)}(e,t,r,l,a)}c(e,null)},t=>{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status=\"pending\",n.resolve=t=>{\"pending\"===n.status&&(n.status=\"fulfilled\",n.value=t,e(t))},n.reject=e=>{\"pending\"===n.status&&(n.status=\"rejected\",n.reason=e,t(e))},n.tag=f,n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86004:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(53174),o=n(41283),u=n(51507),l=n(59218);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+\"%\"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number(\"30\"),p=1e3*Number(\"300\");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:\"auto\"===t&&Date.now()<n+p?u.PrefetchCacheEntryStatus.stale:\"full\"===t&&Date.now()<n+p?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.expired}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51129:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"fastRefreshReducer\",{enumerable:!0,get:function(){return r}}),n(41283),n(53174),n(69684),n(10139),n(51294),n(36416),n(39607),n(95751),n(40774),n(35914);let r=function(e,t){return e};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30315:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"findHeadInCache\",{enumerable:!0,get:function(){return o}});let r=n(81784);function o(e,t){return function e(t,n,o){if(0===Object.keys(n).length)return[t,o];for(let u in n){let[l,a]=n[u],i=t.parallelRoutes.get(u);if(!i)continue;let c=(0,r.createRouterCacheKey)(l),s=i.get(c);if(!s)continue;let f=e(s,a,o+\"/\"+c);if(f)return f}return null}(e,t,\"\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44640:function(e,t){\"use strict\";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSegmentValue\",{enumerable:!0,get:function(){return n}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35914:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hasInterceptionRouteInCurrentTree\",{enumerable:!0,get:function(){return function e(t){let[n,o]=t;if(Array.isArray(n)&&(\"di\"===n[2]||\"ci\"===n[2])||\"string\"==typeof n&&(0,r.isInterceptionRouteAppPath)(n))return!0;if(o){for(let t in o)if(e(o[t]))return!0}return!1}}});let r=n(82269);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51294:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{handleExternalUrl:function(){return _},navigateReducer:function(){return b}}),n(41283);let r=n(53174),o=n(9863),u=n(69684),l=n(54740),a=n(10139),i=n(51507),c=n(36416),s=n(39607),f=n(59218),d=n(95751),p=n(8e4);n(93060);let h=n(86004),y=n(99559);function _(e,t,n,r){return t.mpaNavigation=!0,t.canonicalUrl=n,t.pendingPush=r,t.scrollableSegments=void 0,(0,c.handleMutable)(e,t)}function v(e){let t=[],[n,r]=e;if(0===Object.keys(r).length)return[[n]];for(let[e,o]of Object.entries(r))for(let r of v(o))\"\"===n?t.push([e,...r]):t.push([n,e,...r]);return t}let b=function(e,t){let{url:n,isExternalUrl:b,navigateType:g,shouldScroll:m}=t,R={},{hash:P}=n,j=(0,r.createHrefFromUrl)(n),O=\"push\"===g;if((0,h.prunePrefetchCache)(e.prefetchCache),R.preserveCustomHistoryState=!1,b)return _(e,R,n.toString(),O);let S=(0,h.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,tree:e.tree,buildId:e.buildId,prefetchCache:e.prefetchCache}),{treeAtTimeOfPrefetch:E,data:w}=S;return f.prefetchQueue.bump(w),w.then(t=>{let[n,f]=t,h=!1;if(S.lastUsedTime||(S.lastUsedTime=Date.now(),h=!0),\"string\"==typeof n)return _(e,R,n,O);if(document.getElementById(\"__next-page-redirect\"))return _(e,R,j,O);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=[\"\",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,j);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,E,r,j)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,j,O);let u=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(S.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,u,t,S):(m=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,g,n,r),S.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=g.rsc,u.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,g,n),R.cache=u):m&&(R.cache=u,g=u),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):j,R.pendingPush=O,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59218:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(77325),o=n(43858),u=n(86004),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75239:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"refreshReducer\",{enumerable:!0,get:function(){return h}});let r=n(41283),o=n(53174),u=n(69684),l=n(10139),a=n(51294),i=n(36416),c=n(13821),s=n(95751),f=n(40774),d=n(35914),p=n(74922);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],\"refetch\"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if(\"string\"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log(\"REFRESH FAILED\"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([\"\"],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6131:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"restoreReducer\",{enumerable:!0,get:function(){return u}});let r=n(53174),o=n(96626);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(93060),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64549:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"serverActionReducer\",{enumerable:!0,get:function(){return g}});let r=n(74590),o=n(77325),u=n(4897),l=n(53174),a=n(51294),i=n(69684),c=n(10139),s=n(36416),f=n(13821),d=n(95751),p=n(35914),h=n(40774),y=n(74922),{createFromFetch:_,encodeReply:v}=n(6671);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch(\"\",{method:\"POST\",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get(\"x-action-redirect\");try{let e=JSON.parse(s.headers.get(\"x-action-revalidated\")||\"[[],0,0]\");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get(\"content-type\")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function g(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if(\"string\"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,l.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log(\"SERVER ACTION APPLY FAILED\"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([\"\"],_,r,g?(0,l.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98289:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"serverPatchReducer\",{enumerable:!0,get:function(){return f}});let r=n(53174),o=n(69684),u=n(10139),l=n(51294),a=n(39607),i=n(36416),c=n(95751),s=n(40774);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,\"string\"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)([\"\",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,_))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74922:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&\"refresh\"!==l&&(t[2]=n,t[3]=\"refresh\"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(39607),o=n(41283),u=n(8e4);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&\"refresh\"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],\"refetch\"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if(\"string\"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51507:function(e,t){\"use strict\";var n,r,o,u;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l=\"refresh\",a=\"navigate\",i=\"restore\",c=\"server-patch\",s=\"prefetch\",f=\"fast-refresh\",d=\"server-action\";function p(e){return e&&(\"object\"==typeof e||\"function\"==typeof e)&&\"function\"==typeof e.then}(o=n||(n={})).AUTO=\"auto\",o.FULL=\"full\",o.TEMPORARY=\"temporary\",(u=r||(r={})).fresh=\"fresh\",u.reusable=\"reusable\",u.expired=\"expired\",u.stale=\"stale\",(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80643:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"reducer\",{enumerable:!0,get:function(){return f}});let r=n(51507),o=n(51294),u=n(98289),l=n(6131),a=n(75239),i=n(59218),c=n(51129),s=n(64549),f=\"undefined\"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error(\"Unknown action\")}};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54740:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"shouldHardNavigate\",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(16237);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8897:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(44936),o=n(62441),u=n(67991);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>(\"string\"==typeof n&&(0,o.trackDynamicDataAccessed)(t,\"searchParams.\"+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>(\"string\"==typeof n&&(0,o.trackDynamicDataAccessed)(t,\"searchParams.\"+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,\"searchParams\"),Reflect.ownKeys(e))}):e:e}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44936:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"staticGenerationAsyncStorage\",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(77685);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85108:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n=\"NEXT_STATIC_GEN_BAILOUT\";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return\"object\"==typeof e&&null!==e&&\"code\"in e&&e.code===n}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91108:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"unresolvedThenable\",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42114:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(41452)._(n(2265)),o=n(51507),u=n(21427);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if(\"function\"==typeof r){t[n]=\"fn()\";continue}if(\"object\"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]=\"FlightData\";continue}}t[n]=l(r)}return t}if(\"object\"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if(\"function\"==typeof r){t[n]=\"fn()\";continue}if(\"object\"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty(\"_bundlerConfig\")){t[n]=\"FlightData\";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i=\"undefined\"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error(\"Invariant: Missing ActionQueueContext\");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:\"next-router\"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:\"RENDER_SYNC\"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49404:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hasBasePath\",{enumerable:!0,get:function(){return o}});let r=n(55121);function o(e){return(0,r.pathHasPrefix)(e,\"\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18157:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizePathTrailingSlash\",{enumerable:!0,get:function(){return u}});let r=n(67741),o=n(31465),u=e=>{if(!e.startsWith(\"/\"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return\"\"+(0,r.removeTrailingSlash)(t)+n+u};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16124:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return o}});let r=n(55592);function o(e){let t=\"function\"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97599:function(e,t,n){\"use strict\";function r(e){return e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeBasePath\",{enumerable:!0,get:function(){return r}}),n(49404),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99176:function(e,t){\"use strict\";function n(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,o=e[r];if(0<u(o,t))e[r]=t,e[n]=o,n=r;else break}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length,l=o>>>1;r<l;){var a=2*(r+1)-1,i=e[a],c=a+1,s=e[c];if(0>u(i,n))c<o&&0>u(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(c<o&&0>u(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,\"object\"==typeof performance&&\"function\"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b=\"function\"==typeof setTimeout?setTimeout:null,g=\"function\"==typeof clearTimeout?clearTimeout:null,m=\"undefined\"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,C();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-E<S)}function T(){if(j){var e=t.unstable_now();E=e;var n=!0;try{e:{_=!1,v&&(v=!1,g(O),O=-1),y=!0;var u=h;try{t:{for(R(e),p=r(s);null!==p&&!(p.expirationTime>e&&w());){var a=p.callback;if(\"function\"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),\"function\"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():j=!1}}}if(\"function\"==typeof m)l=function(){m(T)};else if(\"undefined\"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,l=function(){x.postMessage(null)}}else l=function(){b(T,0)};function C(){j||(j=!0,l())}function A(e,n){O=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,u){var l=t.unstable_now();switch(u=\"object\"==typeof u&&null!==u&&\"number\"==typeof(u=u.delay)&&0<u?l+u:l,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=u+a,e={id:d++,callback:o,priorityLevel:e,startTime:u,expirationTime:a,sortIndex:-1},u>l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(v?(g(O),O=-1):v=!0,A(P,u-l))):(e.sortIndex=a,n(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},85689:function(e,t,n){\"use strict\";e.exports=n(99176)},11358:function(e,t){\"use strict\";function n(e){return new URL(e,\"http://n\").pathname}function r(e){return/https?:\\/\\//.test(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return n},isFullStringUrl:function(){return r}})},62441:function(e,t,n){\"use strict\";var r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(2265))&&r.__esModule?r:{default:r},u=n(57910),l=n(85108),a=n(11358),i=\"function\"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`${t}\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used \"${t}\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"${t}\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`${t}\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \\`${t}\\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){v();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>\"string\"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split(\"\\n\").slice(4).filter(e=>!(e.includes(\"node_modules/next/\")||e.includes(\" (<anonymous>)\")||e.includes(\" (node:\"))).join(\"\\n\"),`Dynamic API Usage Debug - ${e}:\n${t}`))}function v(){if(!i)throw Error(\"Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js\")}function b(e){v();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},24286:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSegmentParam\",{enumerable:!0,get:function(){return o}});let r=n(82269);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith(\"[[...\")&&e.endsWith(\"]]\"))?{type:\"optional-catchall\",param:e.slice(5,-2)}:e.startsWith(\"[...\")&&e.endsWith(\"]\")?{type:t?\"catchall-intercepted\":\"catchall\",param:e.slice(4,-1)}:e.startsWith(\"[\")&&e.endsWith(\"]\")?{type:t?\"dynamic-intercepted\":\"dynamic\",param:e.slice(1,-1)}:null}},63243:function(e,t){\"use strict\";var n,r;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"HMR_ACTIONS_SENT_TO_BROWSER\",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE=\"addedPage\",r.REMOVED_PAGE=\"removedPage\",r.RELOAD_PAGE=\"reloadPage\",r.SERVER_COMPONENT_CHANGES=\"serverComponentChanges\",r.MIDDLEWARE_CHANGES=\"middlewareChanges\",r.CLIENT_CHANGES=\"clientChanges\",r.SERVER_ONLY_CHANGES=\"serverOnlyChanges\",r.SYNC=\"sync\",r.BUILT=\"built\",r.BUILDING=\"building\",r.DEV_PAGES_MANIFEST_UPDATE=\"devPagesManifestUpdate\",r.TURBOPACK_MESSAGE=\"turbopack-message\",r.SERVER_ERROR=\"serverError\",r.TURBOPACK_CONNECTED=\"turbopack-connected\"},82269:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(3330),o=[\"(..)(..)\",\"(.)\",\"(..)\",\"(...)\"];function u(e){return void 0!==e.split(\"/\").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split(\"/\"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,r.normalizeAppPath)(t),n){case\"(.)\":u=\"/\"===t?`/${u}`:t+\"/\"+u;break;case\"(..)\":if(\"/\"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split(\"/\").slice(0,-1).concat(u).join(\"/\");break;case\"(...)\":u=\"/\"+u;break;case\"(..)(..)\":let l=t.split(\"/\");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join(\"/\");break;default:throw Error(\"Invariant: unexpected marker\")}return{interceptingRoute:t,interceptedRoute:u}}},67991:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ReflectAdapter\",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return\"function\"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},44467:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(99920)._(n(2265)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},54736:function(e,t){\"use strict\";function n(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return t>>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},36590:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"HeadManagerContext\",{enumerable:!0,get:function(){return r}});let r=n(99920)._(n(2265)).default.createContext({})},68056:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(2265),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},55592:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n=\"BAILOUT_TO_CLIENT_SIDE_RENDERING\";class r extends Error{constructor(e){super(\"Bail out to client-side rendering: \"+e),this.reason=e,this.digest=n}}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&e.digest===n}},78558:function(e,t){\"use strict\";function n(e){return e.startsWith(\"/\")?e:\"/\"+e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ensureLeadingSlash\",{enumerable:!0,get:function(){return n}})},21427:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(41452),o=n(51507),u=n(80643),l=r._(n(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error(\"Invariant: Router state not initialized\");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error(\"Invariant: Router state not initialized\");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},22707:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addPathPrefix\",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if(!e.startsWith(\"/\")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return\"\"+t+n+o+u}},3330:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(78558),o=n(8e4);function u(e){return(0,r.ensureLeadingSlash)(e.split(\"/\").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||\"@\"===t[0]||(\"page\"===t||\"route\"===t)&&n===r.length-1?e:e+\"/\"+t,\"\"))}function l(e){return e.replace(/\\.rsc($|\\?)/,\"$1\")}},86180:function(e,t){\"use strict\";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior=\"auto\",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleSmoothScroll\",{enumerable:!0,get:function(){return n}})},74092:function(e,t){\"use strict\";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isBot\",{enumerable:!0,get:function(){return n}})},31465:function(e,t){\"use strict\";function n(e){let t=e.indexOf(\"#\"),n=e.indexOf(\"?\"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):\"\",hash:t>-1?e.slice(t):\"\"}:{pathname:e,query:\"\",hash:\"\"}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parsePath\",{enumerable:!0,get:function(){return n}})},55121:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"pathHasPrefix\",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if(\"string\"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+\"/\")}},67741:function(e,t){\"use strict\";function n(e){return e.replace(/\\/$/,\"\")||\"/\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeTrailingSlash\",{enumerable:!0,get:function(){return n}})},8e4:function(e,t){\"use strict\";function n(e){return\"(\"===e[0]&&e.endsWith(\")\")}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r=\"__PAGE__\",o=\"__DEFAULT__\"},8005:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(41452)._(n(2265)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},72301:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"warnOnce\",{enumerable:!0,get:function(){return n}});let n=e=>{}},8293:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"actionAsyncStorage\",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66713:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"createAsyncLocalStorage\",{enumerable:!0,get:function(){return u}});let n=Error(\"Invariant: AsyncLocalStorage accessed in runtime where it is not available\");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70038:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"requestAsyncStorage\",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77685:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"staticGenerationAsyncStorage\",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34040:function(e,t,n){\"use strict\";var r=n(54887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},54887:function(e,t,n){\"use strict\";!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(84417)},97950:function(e,t,n){\"use strict\";var r=n(54887),o={stream:!0},u=new Map;function l(e){var t=n(e);return\"function\"!=typeof t.then||\"fulfilled\"===t.status?null:(t.then(function(e){t.status=\"fulfilled\",t.value=e},function(e){t.status=\"rejected\",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for(\"react.element\"),d=Symbol.for(\"react.lazy\"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case\"resolved_model\":E(e);break;case\"resolved_module\":w(e)}switch(e.status){case\"fulfilled\":return e.value;case\"pending\":case\"blocked\":case\"cyclic\":throw e;default:throw e.reason}}function m(e,t){for(var n=0;n<e.length;n++)(0,e[n])(t)}function R(e,t,n){switch(e.status){case\"fulfilled\":m(t,e.value);break;case\"pending\":case\"blocked\":case\"cyclic\":e.value=t,e.reason=n;break;case\"rejected\":n&&m(n,e.reason)}}function P(e,t){if(\"pending\"===e.status||\"blocked\"===e.status){var n=e.reason;e.status=\"rejected\",e.reason=t,null!==n&&m(n,t)}}function j(e,t){if(\"pending\"===e.status||\"blocked\"===e.status){var n=e.value,r=e.reason;e.status=\"resolved_module\",e.value=t,null!==n&&(w(e),R(e,n,r))}}b.prototype=Object.create(Promise.prototype),b.prototype.then=function(e,t){switch(this.status){case\"resolved_model\":E(this);break;case\"resolved_module\":w(this)}switch(this.status){case\"fulfilled\":e(this.value);break;case\"pending\":case\"blocked\":case\"cyclic\":e&&(null===this.value&&(this.value=[]),this.value.push(e)),t&&(null===this.reason&&(this.reason=[]),this.reason.push(t));break;default:t(this.reason)}};var O=null,S=null;function E(e){var t=O,n=S;O=e,S=null;var r=e.value;e.status=\"cyclic\",e.value=null,e.reason=null;try{var o=JSON.parse(r,e._response._fromJSON);if(null!==S&&0<S.deps)S.value=o,e.status=\"blocked\",e.value=null,e.reason=null;else{var u=e.value;e.status=\"fulfilled\",e.value=o,null!==u&&m(u,o)}}catch(t){e.status=\"rejected\",e.reason=t}finally{O=t,S=n}}function w(e){try{var t=e.value,r=n(t[0]);if(4===t.length&&\"function\"==typeof r.then){if(\"fulfilled\"===r.status)r=r.value;else throw r.reason}var o=\"*\"===t[2]?r:\"\"===t[2]?r.__esModule?r.default:r:r[t[2]];e.status=\"fulfilled\",e.value=o}catch(t){e.status=\"rejected\",e.reason=t}}function T(e,t){e._chunks.forEach(function(e){\"pending\"===e.status&&P(e,t)})}function M(e,t){var n=e._chunks,r=n.get(t);return r||(r=new b(\"pending\",null,null,e),n.set(t,r)),r}function x(e,t){if(\"resolved_model\"===(e=M(e,t)).status&&E(e),\"fulfilled\"===e.status)return e.value;throw e.reason}function C(){throw Error('Trying to call a function from \"use server\" but the callServer option was not implemented in your router runtime.')}function A(e,t,n,r,o){var u;return(e={_bundlerConfig:e,_moduleLoading:t,_callServer:void 0!==n?n:C,_encodeFormAction:r,_nonce:o,_chunks:new Map,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]})._fromJSON=(u=e,function(e,t){return\"string\"==typeof t?function(e,t,n,r){if(\"$\"===r[0]){if(\"$\"===r)return f;switch(r[1]){case\"$\":return r.slice(1);case\"L\":return{$$typeof:d,_payload:e=M(e,t=parseInt(r.slice(2),16)),_init:g};case\"@\":if(2===r.length)return new Promise(function(){});return M(e,t=parseInt(r.slice(2),16));case\"S\":return Symbol.for(r.slice(2));case\"F\":return t=x(e,t=parseInt(r.slice(2),16)),function(e,t){function n(){var e=Array.prototype.slice.call(arguments),n=t.bound;return n?\"fulfilled\"===n.status?r(t.id,n.value.concat(e)):Promise.resolve(n).then(function(n){return r(t.id,n.concat(e))}):r(t.id,e)}var r=e._callServer;return v.set(n,t),n}(e,t);case\"Q\":return new Map(e=x(e,t=parseInt(r.slice(2),16)));case\"W\":return new Set(e=x(e,t=parseInt(r.slice(2),16)));case\"I\":return 1/0;case\"-\":return\"$-0\"===r?-0:-1/0;case\"N\":return NaN;case\"u\":return;case\"D\":return new Date(Date.parse(r.slice(2)));case\"n\":return BigInt(r.slice(2));default:switch((e=M(e,r=parseInt(r.slice(1),16))).status){case\"resolved_model\":E(e);break;case\"resolved_module\":w(e)}switch(e.status){case\"fulfilled\":return e.value;case\"pending\":case\"blocked\":case\"cyclic\":var o;return r=O,e.then(function(e,t,n,r){if(S){var o=S;r||o.deps++}else o=S={deps:r?0:1,value:null};return function(r){t[n]=r,o.deps--,0===o.deps&&\"blocked\"===e.status&&(r=e.value,e.status=\"fulfilled\",e.value=o.value,null!==r&&m(r,o.value))}}(r,t,n,\"cyclic\"===e.status),(o=r,function(e){return P(o,e)})),null;default:throw e.reason}}}return r}(u,this,e,t):\"object\"==typeof t&&null!==t?e=t[0]===f?{$$typeof:f,type:t[1],key:t[2],ref:null,props:t[3],_owner:null}:t:t}),e}function N(e,t){function r(t){T(e,t)}var c=t.getReader();c.read().then(function t(f){var d=f.value;if(f.done)T(e,Error(\"Connection closed.\"));else{var p=0,h=e._rowState,y=e._rowID,_=e._rowTag,v=e._rowLength;f=e._buffer;for(var g=d.length;p<g;){var m=-1;switch(h){case 0:58===(m=d[p++])?h=1:y=y<<4|(96<m?m-87:m-48);continue;case 1:84===(h=d[p])?(_=h,h=2,p++):64<h&&91>h?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96<m?m-87:m-48);continue;case 3:m=d.indexOf(10,p);break;case 4:(m=p+v)>d.length&&(m=-1)}var O=d.byteOffset+p;if(-1<m){p=new Uint8Array(d.buffer,O,m-p),v=e,O=_;var S=v._stringDecoder;_=\"\";for(var w=0;w<f.length;w++)_+=S.decode(f[w],o);switch(_+=S.decode(p),O){case 73:!function(e,t,r){var o=e._chunks,c=o.get(t);r=JSON.parse(r,e._fromJSON);var s=function(e,t){if(e){var n=e[t[0]];if(e=n[t[2]])n=e.name;else{if(!(e=n[\"*\"]))throw Error('Could not find the module \"'+t[0]+'\" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');n=t[2]}return 4===t.length?[e.id,e.chunks,n,1]:[e.id,e.chunks,n]}return t}(e._bundlerConfig,r);if(r=function(e){for(var t=e[1],r=[],o=0;o<t.length;){var c=t[o++],s=t[o++],f=u.get(c);void 0===f?(i.set(c,s),s=n.e(c),r.push(s),f=u.set.bind(u,c,null),s.then(f,a),u.set(c,s)):null!==f&&r.push(f)}return 4===e.length?0===r.length?l(e[0]):Promise.all(r).then(function(){return l(e[0])}):0<r.length?Promise.all(r):null}(s)){if(c){var f=c;f.status=\"blocked\"}else f=new b(\"blocked\",null,null,e),o.set(t,f);r.then(function(){return j(f,s)},function(e){return P(f,e)})}else c?j(c,s):o.set(t,new b(\"resolved_module\",s,null,e))}(v,y,_);break;case 72:if(y=_[0],v=JSON.parse(_=_.slice(1),v._fromJSON),_=s.current)switch(y){case\"D\":_.prefetchDNS(v);break;case\"C\":\"string\"==typeof v?_.preconnect(v):_.preconnect(v[0],v[1]);break;case\"L\":y=v[0],p=v[1],3===v.length?_.preload(y,p,v[2]):_.preload(y,p);break;case\"m\":\"string\"==typeof v?_.preloadModule(v):_.preloadModule(v[0],v[1]);break;case\"S\":\"string\"==typeof v?_.preinitStyle(v):_.preinitStyle(v[0],0===v[1]?void 0:v[1],3===v.length?v[2]:void 0);break;case\"X\":\"string\"==typeof v?_.preinitScript(v):_.preinitScript(v[0],v[1]);break;case\"M\":\"string\"==typeof v?_.preinitModuleScript(v):_.preinitModuleScript(v[0],v[1])}break;case 69:p=(_=JSON.parse(_)).digest,(_=Error(\"An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.\")).stack=\"Error: \"+_.message,_.digest=p,(O=(p=v._chunks).get(y))?P(O,_):p.set(y,new b(\"rejected\",null,_,v));break;case 84:v._chunks.set(y,new b(\"fulfilled\",_,null,v));break;case 68:case 87:throw Error(\"Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.\");default:(O=(p=v._chunks).get(y))?(v=O,y=_,\"pending\"===v.status&&(_=v.value,p=v.reason,v.status=\"resolved_model\",v.value=y,null!==_&&(E(v),R(v,_,p)))):p.set(y,new b(\"resolved_model\",_,null,v))}p=m,3===h&&p++,v=y=_=h=0,f.length=0}else{d=new Uint8Array(d.buffer,O,d.byteLength-p),f.push(d),v-=d.byteLength;break}}return e._rowState=h,e._rowID=y,e._rowTag=_,e._rowLength=v,c.read().then(t).catch(r)}}).catch(r)}t.createFromFetch=function(e,t){var n=A(null,null,t&&t.callServer?t.callServer:void 0,void 0,void 0);return e.then(function(e){N(n,e.body)},function(e){T(n,e)}),M(n,0)},t.createFromReadableStream=function(e,t){return N(t=A(null,null,t&&t.callServer?t.callServer:void 0,void 0,void 0),e),M(t,0)},t.createServerReference=function(e,t){var n;function r(){var n=Array.prototype.slice.call(arguments);return t(e,n)}return n={id:e,bound:null},v.set(r,n),r},t.encodeReply=function(e){return new Promise(function(t,n){var r,o,u,l;o=1,u=0,l=null,r=JSON.stringify(r=e,function e(r,a){if(null===a)return null;if(\"object\"==typeof a){if(\"function\"==typeof a.then){null===l&&(l=new FormData),u++;var i,c,s=o++;return a.then(function(n){n=JSON.stringify(n,e);var r=l;r.append(\"\"+s,n),0==--u&&t(r)},function(e){n(e)}),\"$@\"+s.toString(16)}if(h(a))return a;if(a instanceof FormData){null===l&&(l=new FormData);var f=l,d=\"\"+(r=o++)+\"_\";return a.forEach(function(e,t){f.append(d+t,e)}),\"$K\"+r.toString(16)}if(a instanceof Map)return a=JSON.stringify(Array.from(a),e),null===l&&(l=new FormData),r=o++,l.append(\"\"+r,a),\"$Q\"+r.toString(16);if(a instanceof Set)return a=JSON.stringify(Array.from(a),e),null===l&&(l=new FormData),r=o++,l.append(\"\"+r,a),\"$W\"+r.toString(16);if(null===(c=a)||\"object\"!=typeof c?null:\"function\"==typeof(c=p&&c[p]||c[\"@@iterator\"])?c:null)return Array.from(a);if((r=y(a))!==_&&(null===r||null!==y(r)))throw Error(\"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.\");return a}if(\"string\"==typeof a)return\"Z\"===a[a.length-1]&&this[r]instanceof Date?\"$D\"+a:a=\"$\"===a[0]?\"$\"+a:a;if(\"boolean\"==typeof a)return a;if(\"number\"==typeof a)return Number.isFinite(i=a)?0===i&&-1/0==1/i?\"$-0\":i:1/0===i?\"$Infinity\":-1/0===i?\"$-Infinity\":\"$NaN\";if(void 0===a)return\"$undefined\";if(\"function\"==typeof a){if(void 0!==(a=v.get(a)))return a=JSON.stringify(a,e),null===l&&(l=new FormData),r=o++,l.set(\"\"+r,a),\"$F\"+r.toString(16);throw Error(\"Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.\")}if(\"symbol\"==typeof a){if(Symbol.for(r=a.description)!==a)throw Error(\"Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for(\"+a.description+\") cannot be found among global symbols.\");return\"$S\"+r}if(\"bigint\"==typeof a)return\"$n\"+a.toString(10);throw Error(\"Type \"+typeof a+\" is not supported as an argument to a Server Function.\")}),null===l?t(r):(l.set(\"0\",r),0===u&&t(l))})}},16703:function(e,t,n){\"use strict\";e.exports=n(97950)},6671:function(e,t,n){\"use strict\";e.exports=n(16703)},30622:function(e,t,n){\"use strict\";var r=n(2265),o=Symbol.for(\"react.element\"),u=Symbol.for(\"react.fragment\"),l=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;function i(e,t,n){var r,u={},i=null,c=null;for(r in void 0!==n&&(i=\"\"+n),void 0!==t.key&&(i=\"\"+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&\"key\"!==r&&\"ref\"!==r&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===u[r]&&(u[r]=t[r]);return{$$typeof:o,type:e,key:i,ref:c,props:u,_owner:a.current}}t.Fragment=u,t.jsx=i,t.jsxs=i},17869:function(e,t){\"use strict\";var n=Symbol.for(\"react.element\"),r=Symbol.for(\"react.portal\"),o=Symbol.for(\"react.fragment\"),u=Symbol.for(\"react.strict_mode\"),l=Symbol.for(\"react.profiler\"),a=Symbol.for(\"react.provider\"),i=Symbol.for(\"react.context\"),c=Symbol.for(\"react.forward_ref\"),s=Symbol.for(\"react.suspense\"),f=Symbol.for(\"react.memo\"),d=Symbol.for(\"react.lazy\"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}function b(){}function g(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},b.prototype=v.prototype;var m=g.prototype=new b;m.constructor=g,y(m,v.prototype),m.isPureReactComponent=!0;var R=Array.isArray,P={current:null},j={current:null},O={transition:null},S={ReactCurrentDispatcher:P,ReactCurrentCache:j,ReactCurrentBatchConfig:O,ReactCurrentOwner:{current:null}},E=Object.prototype.hasOwnProperty,w=S.ReactCurrentOwner;function T(e,t,r){var o,u={},l=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(l=\"\"+t.key),t)E.call(t,o)&&\"key\"!==o&&\"ref\"!==o&&\"__self\"!==o&&\"__source\"!==o&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=r;else if(1<i){for(var c=Array(i),s=0;s<i;s++)c[s]=arguments[s+2];u.children=c}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:n,type:e,key:l,ref:a,props:u,_owner:w.current}}function M(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===n}var x=/\\/+/g;function C(e,t){var n,r;return\"object\"==typeof e&&null!==e&&null!=e.key?(n=\"\"+e.key,r={\"=\":\"=0\",\":\":\"=2\"},\"$\"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function A(){}function N(e,t,o){if(null==e)return e;var u=[],l=0;return!function e(t,o,u,l,a){var i,c,s,f=typeof t;(\"undefined\"===f||\"boolean\"===f)&&(t=null);var h=!1;if(null===t)h=!0;else switch(f){case\"string\":case\"number\":h=!0;break;case\"object\":switch(t.$$typeof){case n:case r:h=!0;break;case d:return e((h=t._init)(t._payload),o,u,l,a)}}if(h)return a=a(t),h=\"\"===l?\".\"+C(t,0):l,R(a)?(u=\"\",null!=h&&(u=h.replace(x,\"$&/\")+\"/\"),e(a,o,u,\"\",function(e){return e})):null!=a&&(M(a)&&(i=a,c=u+(!a.key||t&&t.key===a.key?\"\":(\"\"+a.key).replace(x,\"$&/\")+\"/\")+h,a={$$typeof:n,type:i.type,key:c,ref:i.ref,props:i.props,_owner:i._owner}),o.push(a)),1;h=0;var y=\"\"===l?\".\":l+\":\";if(R(t))for(var _=0;_<t.length;_++)f=y+C(l=t[_],_),h+=e(l,o,u,f,a);else if(\"function\"==typeof(_=null===(s=t)||\"object\"!=typeof s?null:\"function\"==typeof(s=p&&s[p]||s[\"@@iterator\"])?s:null))for(t=_.call(t),_=0;!(l=t.next()).done;)f=y+C(l=l.value,_++),h+=e(l,o,u,f,a);else if(\"object\"===f){if(\"function\"==typeof t.then)return e(function(e){switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason;default:switch(\"string\"==typeof e.status?e.then(A,A):(e.status=\"pending\",e.then(function(t){\"pending\"===e.status&&(e.status=\"fulfilled\",e.value=t)},function(t){\"pending\"===e.status&&(e.status=\"rejected\",e.reason=t)})),e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason}}throw e}(t),o,u,l,a);throw Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===(o=String(t))?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":o)+\"). If you meant to render a collection of children, use an array instead.\")}return h}(e,u,\"\",\"\",function(e){return t.call(o,e,l++)}),u}function D(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function I(){return new WeakMap}function U(){return{s:0,v:void 0,o:null,p:null}}function k(){}var F=\"function\"==typeof reportError?reportError:function(e){console.error(e)};t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!M(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},t.Component=v,t.Fragment=o,t.Profiler=l,t.PureComponent=g,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},t.cache=function(e){return function(){var t=j.current;if(!t)return e.apply(null,arguments);var n=t.getCacheForType(I);void 0===(t=n.get(e))&&(t=U(),n.set(e,t)),n=0;for(var r=arguments.length;n<r;n++){var o=arguments[n];if(\"function\"==typeof o||\"object\"==typeof o&&null!==o){var u=t.o;null===u&&(t.o=u=new WeakMap),void 0===(t=u.get(o))&&(t=U(),u.set(o,t))}else null===(u=t.p)&&(t.p=u=new Map),void 0===(t=u.get(o))&&(t=U(),u.set(o,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var l=e.apply(null,arguments);return(n=t).s=1,n.v=l}catch(e){throw(l=t).s=2,l.v=e,e}}},t.cloneElement=function(e,t,r){if(null==e)throw Error(\"The argument must be a React element, but you passed \"+e+\".\");var o=y({},e.props),u=e.key,l=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,a=w.current),void 0!==t.key&&(u=\"\"+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(c in t)E.call(t,c)&&\"key\"!==c&&\"ref\"!==c&&\"__self\"!==c&&\"__source\"!==c&&(o[c]=void 0===t[c]&&void 0!==i?i[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){i=Array(c);for(var s=0;s<c;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:n,type:e.type,key:u,ref:l,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=M,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition,n=new Set;O.transition={_callbacks:n};var r=O.transition;try{var o=e();\"object\"==typeof o&&null!==o&&\"function\"==typeof o.then&&(n.forEach(function(e){return e(r,o)}),o.then(k,F))}catch(e){F(e)}finally{O.transition=t}},t.unstable_useCacheRefresh=function(){return P.current.useCacheRefresh()},t.use=function(e){return P.current.use(e)},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return P.current.useDeferredValue(e,t)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useOptimistic=function(e,t){return P.current.useOptimistic(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version=\"18.3.0-canary-14898b6a9-20240318\"},2265:function(e,t,n){\"use strict\";e.exports=n(17869)},57437:function(e,t,n){\"use strict\";e.exports=n(30622)},93449:function(e,t,n){\"use strict\";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(\"attempted to use private field on non-instance\");return e}n.r(t),n.d(t,{_:function(){return r},_class_private_field_loose_base:function(){return r}})},57614:function(e,t,n){\"use strict\";n.r(t),n.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var r=0;function o(e){return\"__private_\"+r+++\"_\"+e}},99920:function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}n.r(t),n.d(t,{_:function(){return r},_interop_require_default:function(){return r}})},41452:function(e,t,n){\"use strict\";function r(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(\"default\"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}n.r(t),n.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]);"
  },
  {
    "path": "docs/_next/static/chunks/26.1d107b0aeb7c14be.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{35026:function(e,t,a){a.d(t,{offchainLookup:function(){return w},offchainLookupSignature:function(){return m}});var r=a(12994),s=a(47499),n=a(48926),o=a(94290);class c extends n.G{constructor({callbackSelector:e,cause:t,data:a,extraData:r,sender:s,urls:n}){super(t.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",n&&[\"  Gateway URL(s):\",...n.map(e=>`    ${(0,o.Gr)(e)}`)],`  Sender: ${s}`,`  Data: ${a}`,`  Callback selector: ${e}`,`  Extra data: ${r}`].flat()}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"OffchainLookupError\"})}}class i extends n.G{constructor({result:e,url:t}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${(0,o.Gr)(t)}`,`Response: ${(0,s.P)(e)}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"OffchainLookupResponseMalformedError\"})}}class u extends n.G{constructor({sender:e,to:t}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"OffchainLookupSenderMismatchError\"})}}var l=a(4456),f=a(71108),d=a(39480),p=a(65937),h=a(53932),y=a(40369);let m=\"0x556f1830\",b={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]};async function w(e,{blockNumber:t,blockTag:a,data:s,to:n}){let{args:o}=(0,f.p)({data:s,abi:[b]}),[i,l,y,m,w]=o,{ccipRead:k}=e,O=k&&\"function\"==typeof k?.request?k.request:g;try{if(!(0,p.E)(n,i))throw new u({sender:i,to:n});let s=await O({data:y,sender:i,urls:l}),{data:o}=await (0,r.R)(e,{blockNumber:t,blockTag:a,data:(0,h.zo)([m,(0,d.E)([{type:\"bytes\"},{type:\"bytes\"}],[s,w])]),to:n});return o}catch(e){throw new c({callbackSelector:m,cause:e,data:s,extraData:w,sender:i,urls:l})}}async function g({data:e,sender:t,urls:a}){let r=Error(\"An unknown error occurred.\");for(let n=0;n<a.length;n++){let o=a[n],c=o.includes(\"{data}\")?\"GET\":\"POST\",u=\"POST\"===c?{data:e,sender:t}:void 0;try{let a;let n=await fetch(o.replace(\"{sender}\",t).replace(\"{data}\",e),{body:JSON.stringify(u),method:c});if(a=n.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?(await n.json()).data:await n.text(),!n.ok){r=new l.Gg({body:u,details:a?.error?(0,s.P)(a.error):n.statusText,headers:n.headers,status:n.status,url:o});continue}if(!(0,y.v)(a)){r=new i({result:a,url:o});continue}return a}catch(e){r=new l.Gg({body:u,details:e.message,url:o})}}throw r}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/318.67461aab1aa569d4.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[318],{11481:function(e,t,s){s.d(t,{ConfigCtrl:function(){return O},zv:function(){return b},uA:function(){return v},ExplorerCtrl:function(){return H},jb:function(){return z},OptionsCtrl:function(){return C},AV:function(){return g},ThemeCtrl:function(){return Y},ToastCtrl:function(){return ee}}),Symbol();let r=Symbol(),o=Object.getPrototypeOf,a=new WeakMap,n=e=>e&&(a.has(e)?a.get(e):o(e)===Object.prototype||o(e)===Array.prototype),l=e=>n(e)&&e[r]||null,i=(e,t=!0)=>{a.set(e,t)},c=e=>\"object\"==typeof e&&null!==e,d=new WeakMap,u=new WeakSet,[p]=((e=Object.is,t=(e,t)=>new Proxy(e,t),s=e=>c(e)&&!u.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason;default:throw e}},o=new WeakMap,a=(e,t,s=r)=>{let n=o.get(e);if((null==n?void 0:n[0])===t)return n[1];let l=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return i(l,!0),o.set(e,[t,l]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(l,t))return;let r=Reflect.get(e,t),o={value:r,enumerable:!0,configurable:!0};if(u.has(r))i(r,!1);else if(r instanceof Promise)delete o.value,o.get=()=>s(r);else if(d.has(r)){let[e,t]=d.get(r);o.value=a(e,t(),s)}Object.defineProperty(l,t,o)}),Object.preventExtensions(l)},n=new WeakMap,p=[1,1],f=r=>{if(!c(r))throw Error(\"object required\");let o=n.get(r);if(o)return o;let i=p[0],h=new Set,m=(e,t=++p[0])=>{i!==t&&(i=t,h.forEach(s=>s(e,t)))},g=p[1],b=(e=++p[1])=>(g===e||h.size||(g=e,v.forEach(([t])=>{let s=t[1](e);s>i&&(i=s)})),i),y=e=>(t,s)=>{let r=[...t];r[1]=[e,...r[1]],m(r,s)},v=new Map,w=(e,t)=>{if(v.has(e))throw Error(\"prop listener already exists\");if(h.size){let s=t[3](y(e));v.set(e,[t,s])}else v.set(e,[t])},C=e=>{var t;let s=v.get(e);s&&(v.delete(e),null==(t=s[1])||t.call(s))},I=e=>{h.add(e),1===h.size&&v.forEach(([e,t],s)=>{if(t)throw Error(\"remove already exists\");let r=e[3](y(s));v.set(s,[e,r])});let t=()=>{h.delete(e),0===h.size&&v.forEach(([e,t],s)=>{t&&(t(),v.set(s,[e]))})};return t},O=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),W={deleteProperty(e,t){let s=Reflect.get(e,t);C(t);let r=Reflect.deleteProperty(e,t);return r&&m([\"delete\",[t],s]),r},set(t,r,o,a){let i=Reflect.has(t,r),p=Reflect.get(t,r,a);if(i&&(e(p,o)||n.has(o)&&e(p,n.get(o))))return!0;C(r),c(o)&&(o=l(o)||o);let h=o;if(o instanceof Promise)o.then(e=>{o.status=\"fulfilled\",o.value=e,m([\"resolve\",[r],e])}).catch(e=>{o.status=\"rejected\",o.reason=e,m([\"reject\",[r],e])});else{!d.has(o)&&s(o)&&(h=f(o));let e=!u.has(h)&&d.get(h);e&&w(r,e)}return Reflect.set(t,r,h,a),m([\"set\",[r],o,p]),!0}},E=t(O,W);n.set(r,E);let j=[O,b,a,I];return d.set(E,j),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);\"value\"in t&&(E[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(O,e,t)}),E})=>[f,d,u,e,t,s,r,o,a,n,p])();function f(e={}){return p(e)}function h(e,t,s){let r;let o=d.get(e);o||console.warn(\"Please use proxy object\");let a=[],n=o[3],l=!1,i=n(e=>{if(a.push(e),s){t(a.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,l&&t(a.splice(0))}))});return l=!0,()=>{l=!1,i()}}let m=f({history:[\"ConnectWallet\"],view:\"ConnectWallet\",data:void 0}),g={state:m,subscribe:e=>h(m,()=>e(m)),push(e,t){e!==m.view&&(m.view=e,t&&(m.data=t),m.history.push(e))},reset(e){m.view=e,m.history=[e]},replace(e){m.history.length>1&&(m.history[m.history.length-1]=e,m.view=e)},goBack(){if(m.history.length>1){m.history.pop();let[e]=m.history.slice(-1);m.view=e}},setData(e){m.data=e}},b={WALLETCONNECT_DEEPLINK_CHOICE:\"WALLETCONNECT_DEEPLINK_CHOICE\",WCM_VERSION:\"WCM_VERSION\",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>\"u\">typeof window&&!!(window.matchMedia(\"(pointer:coarse)\").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>b.isMobile()&&navigator.userAgent.toLowerCase().includes(\"android\"),isIos(){let e=navigator.userAgent.toLowerCase();return b.isMobile()&&(e.includes(\"iphone\")||e.includes(\"ipad\"))},isHttpUrl:e=>e.startsWith(\"http://\")||e.startsWith(\"https://\"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(b.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes(\"://\")||(r=e.replaceAll(\"/\",\"\").replaceAll(\":\",\"\"),r=`${r}://`),r.endsWith(\"/\")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},formatUniversalUrl(e,t,s){if(!b.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith(\"/\")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,\"noreferrer noopener\")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(b.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info(\"Unable to set WalletConnect deep link\")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split(\"?\");localStorage.setItem(b.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:\"Android\"}))}catch{console.info(\"Unable to set WalletConnect android deep link\")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(b.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info(\"Unable to remove WalletConnect deep link\")}},setModalVersionInStorage(){try{\"u\">typeof localStorage&&localStorage.setItem(b.WCM_VERSION,\"2.6.2\")}catch{console.info(\"Unable to set Web3Modal version in storage\")}},getWalletRouterData(){var e;let t=null==(e=g.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing \"Wallet\" view data');return t}},y=f({enabled:\"u\">typeof location&&(location.hostname.includes(\"localhost\")||location.protocol.includes(\"https\")),userSessionId:\"\",events:[],connectedWalletId:void 0}),v={state:y,subscribe:e=>h(y.events,()=>e(function(e,t){let s=d.get(e);s||console.warn(\"Please use proxy object\");let[r,o,a]=s;return a(r,o(),void 0)}(y.events[y.events.length-1]))),initialize(){y.enabled&&\"u\">typeof(null==crypto?void 0:crypto.randomUUID)&&(y.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){y.connectedWalletId=e},click(e){if(y.enabled){let t={type:\"CLICK\",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}},track(e){if(y.enabled){let t={type:\"TRACK\",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}},view(e){if(y.enabled){let t={type:\"VIEW\",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}}},w=f({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),C={state:w,subscribe:e=>h(w,()=>e(w)),setChains(e){w.chains=e},setWalletConnectUri(e){w.walletConnectUri=e},setIsCustomDesktop(e){w.isCustomDesktop=e},setIsCustomMobile(e){w.isCustomMobile=e},setIsDataLoaded(e){w.isDataLoaded=e},setIsUiLoaded(e){w.isUiLoaded=e},setIsAuth(e){w.isAuth=e}},I=f({projectId:\"\",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),O={state:I,subscribe:e=>h(I,()=>e(I)),setConfig(e){var t,s;v.initialize(),C.setChains(e.chains),C.setIsAuth(!!e.enableAuthMode),C.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),C.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),b.setModalVersionInStorage(),Object.assign(I,e)}};var W=Object.defineProperty,E=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,A=(e,t,s)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,k=(e,t)=>{for(var s in t||(t={}))j.call(t,s)&&A(e,s,t[s]);if(E)for(var s of E(t))L.call(t,s)&&A(e,s,t[s]);return e};let M=\"https://explorer-api.walletconnect.com\",U=\"js-2.6.2\";async function D(e,t){let s=k({sdkType:\"wcm\",sdkVersion:U},t),r=new URL(e,M);return r.searchParams.append(\"projectId\",O.state.projectId),Object.entries(s).forEach(([e,t])=>{t&&r.searchParams.append(e,String(t))}),(await fetch(r)).json()}let P={getDesktopListings:async e=>D(\"/w3m/v1/getDesktopListings\",e),getMobileListings:async e=>D(\"/w3m/v1/getMobileListings\",e),getAllListings:async e=>D(\"/w3m/v1/getAllListings\",e),getWalletImageUrl:e=>`${M}/w3m/v1/getWalletImage/${e}?projectId=${O.state.projectId}&sdkType=wcm&sdkVersion=${U}`,getAssetImageUrl:e=>`${M}/w3m/v1/getAssetImage/${e}?projectId=${O.state.projectId}&sdkType=wcm&sdkVersion=${U}`};var S=Object.defineProperty,N=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,R=(e,t,s)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,_=(e,t)=>{for(var s in t||(t={}))T.call(t,s)&&R(e,s,t[s]);if(N)for(var s of N(t))x.call(t,s)&&R(e,s,t[s]);return e};let $=b.isMobile(),V=f({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),H={state:V,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=O.state;if(\"NONE\"===e||\"ALL\"===t&&!e)return V.recomendedWallets;if(b.isArray(e)){let t={recommendedIds:e.join(\",\")},{listings:s}=await P.getAllListings(t),r=Object.values(s);r.sort((t,s)=>e.indexOf(t.id)-e.indexOf(s.id)),V.recomendedWallets=r}else{let{chains:e,isAuth:s}=C.state,r=e?.join(\",\"),o=b.isArray(t),a={page:1,sdks:s?\"auth_v1\":void 0,entries:b.RECOMMENDED_WALLET_AMOUNT,chains:r,version:2,excludedIds:o?t.join(\",\"):void 0},{listings:n}=$?await P.getMobileListings(a):await P.getDesktopListings(a);V.recomendedWallets=Object.values(n)}return V.recomendedWallets},async getWallets(e){let t=_({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=O.state,{recomendedWallets:o}=V;if(\"ALL\"===r)return V.wallets;o.length?t.excludedIds=o.map(e=>e.id).join(\",\"):b.isArray(s)&&(t.excludedIds=s.join(\",\")),b.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(\",\")),C.state.isAuth&&(t.sdks=\"auth_v1\");let{page:a,search:n}=e,{listings:l,total:i}=$?await P.getMobileListings(t):await P.getDesktopListings(t),c=Object.values(l),d=n?\"search\":\"wallets\";return V[d]={listings:[...V[d].listings,...c],total:i,page:a??1},{listings:c,total:i}},getWalletImageUrl:e=>P.getWalletImageUrl(e),getAssetImageUrl:e=>P.getAssetImageUrl(e),resetSearch(){V.search={listings:[],total:0,page:1}}},K=f({open:!1}),z={state:K,subscribe:e=>h(K,()=>e(K)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:r}=C.state;if(b.removeWalletConnectDeepLink(),C.setWalletConnectUri(e?.uri),C.setChains(e?.chains),g.reset(\"ConnectWallet\"),s&&r)K.open=!0,t();else{let e=setInterval(()=>{let s=C.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),K.open=!0,t())},200)}}),close(){K.open=!1}};var B=Object.defineProperty,J=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,G=(e,t,s)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Q=(e,t)=>{for(var s in t||(t={}))q.call(t,s)&&G(e,s,t[s]);if(J)for(var s of J(t))F.call(t,s)&&G(e,s,t[s]);return e};let X=f({themeMode:\"u\">typeof matchMedia&&matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}),Y={state:X,subscribe:e=>h(X,()=>e(X)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&(X.themeMode=t),s&&(X.themeVariables=Q({},s))}},Z=f({open:!1,message:\"\",variant:\"success\"}),ee={state:Z,subscribe:e=>h(Z,()=>e(Z)),openToast(e,t){Z.open=!0,Z.message=e,Z.variant=t},closeToast(){Z.open=!1}}},55318:function(e,t,s){s.d(t,{WalletConnectModal:function(){return o}});var r=s(11481);class o{constructor(e){this.openModal=r.jb.open,this.closeModal=r.jb.close,this.subscribeModal=r.jb.subscribe,this.setTheme=r.ThemeCtrl.setThemeConfig,r.ThemeCtrl.setThemeConfig(e),r.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if(\"u\">typeof window){await s.e(866).then(s.bind(s,80866));let e=document.createElement(\"wcm-modal\");document.body.insertAdjacentElement(\"beforeend\",e),r.OptionsCtrl.setIsUiLoaded(!0)}}}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/385cb88d-d4d0cd34753b4b85.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{75027:function(t,c,n){n.d(c,{U6L:function(){return u},t00:function(){return a}});var r=n(91810);function a(t){return(0,r.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M84.41 106c-15.63.1-27.67 13.8-25.69 29.3 16 124 16 117.4 0 241.4-2.54 19.8 17.33 35 35.79 27.3L361.5 292.9v98.8c0 7.9 8.9 14.2 20 14.3h52c11.1-.1 20-6.4 20-14.3V120.2c-.1-7.8-9-14.1-20-14.2h-52c-11 .1-19.9 6.4-20 14.2v98.9L94.51 108c-3.2-1.3-6.63-2-10.1-2z\"},child:[]}]})(t)}function u(t){return(0,r.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M427.6 106c15.6.1 27.7 13.8 25.7 29.3-16 124-16 117.4 0 241.4 2.5 19.8-17.4 35-35.8 27.3l-267-111.1v98.8c0 7.9-8.9 14.2-20 14.3H78.49c-11.1-.1-20-6.4-20-14.3V120.2c.1-7.8 9-14.1 20-14.2h52.01c11 .1 19.9 6.4 20 14.2v98.9l267-111.1c3.2-1.3 6.6-2 10.1-2z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/3ab9597f-9ca74e94c08af310.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{76437:function(e,t,r){r.d(t,{rB:function(){return sH},rr:function(){return pt},sv:function(){return n$}});var n=r(89005),i=r(68893),a=r(53989),o=r(2265),s=r(63858),l=r(58118),c=r(37786),d=r(3754),h=r(99434),u=r(40739),p=r(18482),m=r(57437),g=r(93925),f=r(20920),y=r(9784),w=r(36393),x=r(86080),v=r(13421),C=r(89649),b=r(13130),_=r(58249),j=r(44785),k=r(9648),E=r(59956),A=r(10506),S=r(20402),T=r(66514),P=r(84573),N=r(82238),R=r(79314),M=r(39422),O=r(92009),I=r(47899),W=r(14340),L=r(61652),F=r(54515),U=r(11853),D=r(25032),Z=r(64728),z=r(52985),$=r(47193),H=r(69992),B=r(94023),q=r.n(B),V=r(4811),G=r(92861),K=r(76218),Y=r(87335),Q=r(57470),X=r(89651),J=r(75514),ee=r(19783),et=r(58789),er=r(85130),en=r(50607),ei=r(22594),ea=r(75752),eo=r(58900),es=r(33009),el=r(12560),ec=r(90196),ed=r(13934),eh=r(44011),eu=r(64954),ep=r(59808),em=r(24609),eg=r(75006),ef=r(24967),ey=r(51834),ew=r(78299),ex=r(26930),ev=r(59488),eC=r(54621),eb=r(27762),e_=r(29765),ej=r(24167),ek=r(5620),eE=r(74634),eA=r(70882),eS=r(22091),eT=r(2825),eP=r(68906),eN=r(84351),eR=r(63722),eM=r(62957),eO=r(49601),eI=r(99442),eW=r(5),eL=r(28781),eF=r(43408),eU=r(28257),eD=r(59226),eZ=r(60943),ez=(e,t,r)=>{if(!t.has(e))throw TypeError(\"Cannot \"+r)},e$=(e,t,r)=>(ez(e,t,\"read from private field\"),r?r.call(e):t.get(e)),eH=(e,t,r)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,r)},eB=(e,t,r,n)=>(ez(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r),eq=(e,t,r)=>(ez(e,t,\"access private method\"),r),eV=class extends Error{constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:\"\"}: ${this.message}${this.cause?` [cause: ${this.cause}]`:\"\"}`}},eG=class extends eV{constructor(e,t,r,n,i){super(r,n,i),this.type=e,this.status=t}},eK=class extends eV{constructor(e,t,r){super(e,t,r),this.type=\"client_error\"}},eY=class extends eK{constructor(){super(\"Request timed out\",void 0,\"client_request_timeout\")}},eQ=class extends eV{constructor(e,t,r){super(e,t,r),this.type=\"connector_error\"}},eX=e=>{if(e instanceof eV)return e;if(!(e instanceof h.F))return eJ(e);if(!e.response)return new eG(\"api_error\",null,e.message,e);let{type:t,message:r,error:n,code:i}=e.data;return new eG(t||\"ApiError\",e.response.status,r||n,e,i)},eJ=e=>e instanceof eV?e:e instanceof Error?new eK(e.message,e):new eK(`Internal error: ${e}`),e0=class extends eK{constructor(){super(\"Method called before `ready`. Ensure you wait until `ready` is true before calling.\")}},e1=class extends eK{constructor(e=\"Embedded wallet error\",t){super(e,t,\"unknown_embedded_wallet_error\")}},e2=class extends eK{constructor(e=\"User must be authenticated\"){super(e,void 0,\"must_be_authenticated\")}},e3=class extends eK{constructor(e){super(\"This application is in development mode and must be upgraded to production to log in new users.\",e,\"max_accounts_reached\")}},e4=\"/api/v1/sessions\",e5=\"/api/v1/sessions/logout\",e6=\"/api/v1/sessions/fork/recover\",e7=\"/api/v1/oauth/init\",e8=\"/api/v1/oauth/link\",e9=\"/api/v1/analytics_events\",te=class{constructor(e){this.meta={token:e}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{let e=await this.api.post(\"/api/v1/custom_jwt_account/authenticate\",{token:this.meta.token});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){throw Error(\"Unimplemented\")}},tt=class{constructor(e,t){this.meta={email:e,captchaToken:t}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.email||!this.meta.emailCode)throw new eK(\"Email and email code must be set prior to calling authenticate.\");try{let e=await this.api.post(\"/api/v1/passwordless/authenticate\",{email:this.meta.email,code:this.meta.emailCode});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.email||!this.meta.emailCode)throw new eK(\"Email and email code must be set prior to calling authenticate.\");try{return await this.api.post(\"/api/v1/passwordless/link\",{email:this.meta.email,code:this.meta.emailCode})}catch(e){throw eX(e)}}async sendCodeEmail(e,t){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(e&&(this.meta.email=e),t&&(this.meta.captchaToken=t),!this.meta.email)throw new eK(\"Email must be set when initialzing authentication.\");try{return await this.api.post(\"/api/v1/passwordless/init\",{email:this.meta.email,token:this.meta.captchaToken})}catch(e){throw eX(e)}}},tr=class extends tt{constructor(e,t,r){super(t,r),this.meta={email:t,captchaToken:r,oldAddress:e}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.email||!this.meta.emailCode||!this.meta.oldAddress)throw new eK(\"Email, email code, and an old email address must be set prior to calling update.\");try{return await this.api.post(\"/api/v1/passwordless/update\",{oldAddress:this.meta.oldAddress,newAddress:this.meta.email,code:this.meta.emailCode})}catch(e){throw eX(e)}}},tn=class{constructor(){this._cache={}}get(e){return this._cache[e]}put(e,t){void 0!==t?this._cache[e]=t:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}},ti=class{get(e){let t=localStorage.getItem(e);return null===t?void 0:JSON.parse(t)}put(e,t){void 0!==t?localStorage.setItem(e,JSON.stringify(t)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map(([e])=>e)}};function ta(){try{let e=\"privy:__session_storage__test\",t=new ti;return t.put(e,\"blobby\"),t.del(e),!0}catch{return!1}}var to=\"u\">typeof window&&window.localStorage?new ti:new tn,ts=e=>e.isApexWallet?\"Apex Wallet\":e.isAvalanche?\"Core Wallet\":e.isBackpack?\"Backpack\":e.isBifrost?\"Bifrost Wallet\":e.isBitKeep?\"BitKeep\":e.isBitski?\"Bitski\":e.isBlockWallet?\"BlockWallet\":e.isBraveWallet?\"Brave Wallet\":e.isClover?\"Clover\":e.isCoin98?\"Coin98 Wallet\":e.isCoinbaseWallet?\"Coinbase Wallet\":e.isDawn?\"Dawn Wallet\":e.isDefiant?\"Defiant\":e.isDesig?\"Desig Wallet\":e.isEnkrypt?\"Enkrypt\":e.isExodus?\"Exodus\":e.isFordefi?\"Fordefi\":e.isFrame?\"Frame\":e.isFrontier?\"Frontier Wallet\":e.isGamestop?\"GameStop Wallet\":e.isHaqqWallet?\"HAQQ Wallet\":e.isHyperPay?\"HyperPay Wallet\":e.isImToken?\"ImToken\":e.isHaloWallet?\"Halo Wallet\":e.isKuCoinWallet?\"KuCoin Wallet\":e.isMathWallet?\"MathWallet\":e.isNovaWallet?\"Nova Wallet\":e.isOkxWallet||e.isOKExWallet?\"OKX Wallet\":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?\"1inch Wallet\":e.isOneKey?\"OneKey Wallet\":e.isOpera?\"Opera\":e.isPhantom?\"Phantom\":e.isPortal?\"Ripio Portal\":e.isRabby?\"Rabby Wallet\":e.isRainbow?\"Rainbow\":e.isSafePal?\"SafePal Wallet\":e.isStatus?\"Status\":e.isSubWallet?\"SubWallet\":e.isTalisman?\"Talisman\":e.isTally||e.isTaho?\"Taho\":e.isTokenPocket?\"TokenPocket\":e.isTokenary?\"Tokenary\":e.isTrust||e.isTrustWallet?\"Trust Wallet\":e.isTTWallet?\"TTWallet\":e.isXDEFI?\"XDEFI Wallet\":e.isZeal?\"Zeal\":e.isZerion?\"Zerion\":e.isMetaMask?\"MetaMask\":void 0,tl=(e,t)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!t)return!0;if(e.isBraveWallet&&!e._events&&!e._state||\"MetaMask\"!==ts(e))return!1;if(e.providers){for(let t of e.providers)if(!tl(t))return!1}return!0},tc=()=>!!(\"phantom\"in window&&window?.phantom?.ethereum?.isPhantom),td=()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers){for(let t of e.ethereum.providers)if(t&&t.isCoinbaseWallet)return!0}return!1},th=(e,t)=>{let r=[],n=[];for(let[i,a]of e.entries())i<t?r.push(a):n.push(a);return[r,n]},tu=e=>!!String(e).toLowerCase().match(/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/),tp=(e,t)=>{let r=e.slice(0),n=[];for(;r.length;)n.push(r.splice(0,t));return n},tm=(e,t=3,r=4)=>{if(!e)return\"\";if(t+r+2+3>=e.length)return e;let n=e.slice(0,2+t),i=e.slice(e.length-r,e.length);return`${n}...${i}`},tg=e=>new Promise(t=>setTimeout(t,e)),tf=(e,t={})=>{let r=t.delayMs||150,n=t.maxAttempts||270;return new Promise(async(i,a)=>{let o=!1,s=0;for(;!o&&s<n;){if(t.abortSignal?.aborted)return;e().then(e=>{o=!0,i(e)},(...e)=>{o=!0,a(...e)}),s+=1,await tg(r)}o||a(Error(\"Exceeded max attempts before resolving function\"))})},ty=(e,t,r={},n={})=>{let i=new URL(t,e);for(let[e,t]of Object.entries(r))void 0!==t&&i.searchParams.set(e,t);let a=Object.entries(n);if(a.length>0){let e=new URLSearchParams;for(let[t,r]of a)e.append(t,r);i.hash=e.toString()}return i.href},tw=e=>e.replace(/([\\u2700-\\u27BF]|[\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2011-\\u26FF]|\\uD83E[\\uDD10-\\uDDFF])/g,\"\"),tx=e=>\"string\"==typeof e?e:\"0x\"+e.toString(16);async function tv(e,t,r,n=3e3){let i=!1,a=window;return new Promise(o=>{a.ethereum?s():(window.addEventListener(\"ethereum#initialized\",s,{once:!0}),setTimeout(()=>{s()},n));function s(){if(i)return;i=!0,window.removeEventListener(\"ethereum#initialized\",s);let n=e.getProviders();console.debug(\"Detected injected providers:\",n.map(e=>e.info));let a=[];for(let e of n)t.includes(\"coinbase_wallet\")&&\"com.coinbase.wallet\"===e.info.rdns||a.push({type:e.info.name.toLowerCase().replace(/\\s/g,\"_\"),eip6963InjectedProvider:e});for(let e of function(){let e=window,t=e.ethereum;if(!t)return[];let r=[];if(t.providers?.length)for(let e of t.providers)e&&r.push(e);return r.push(e.ethereum),r}()){let t=ts(e);if(!n.some(e=>e.info.name===t)){if(tl(e,!0)&&!a.find(e=>\"metamask\"===e.type)){a.push({type:\"metamask\",legacyInjectedProvider:e});continue}if(\"Phantom\"===t&&!a.find(e=>\"phantom\"===e.type)){a.push({type:\"phantom\",legacyInjectedProvider:e});continue}if(\"Coinbase Wallet\"===t&&!a.find(e=>\"coinbase_wallet\"===e.type&&r?.coinbaseWallet?.connectionOptions!==\"smartWalletOnly\")){a.push({type:\"coinbase_wallet\",legacyInjectedProvider:e});continue}a.find(e=>\"unknown_browser_extension\"===e.type)||a.push({type:\"unknown_browser_extension\",legacyInjectedProvider:e})}}o(a)}})}function tC(e){return`eip155:${String(Number(e))}`}var tb=(e,t,r,n)=>{let i=Number(e),a=t.find(e=>e.id===i);if(!a)throw new eQ(`Unsupported chainId ${e}`,4901);return t_(a,r,n)},t_=(e,t,r)=>{let n=e.id,i=Number(e.id),a;if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])a=e.rpcUrls.privyWalletOverride.http[0];else if(t.rpcUrls&&t.rpcUrls[i])a=t.rpcUrls[i];else if(e.rpcUrls.privy?.http[0]){let t=new URL(e.rpcUrls.privy.http[0]);t.searchParams.append(\"privyAppId\",r),a=t.toString()}else a=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!a)throw new eQ(`No RPC url found for ${n}`);return a},tj=(e,t)=>{let r=Number(e),n=t.find(e=>e.id===r);if(!n)throw new eQ(`Unsupported chainId ${e}`,4901);return n.blockExplorers?.default.url},tk=(e,t,r,n)=>{let i=Number(e),a=t.find(e=>e.id===i);if(!a)throw new eQ(`Unsupported chainId ${e}`,4901);return new u.c(a.rpcUrls.privyWalletOverride&&a.rpcUrls.privyWalletOverride.http[0]?a.rpcUrls.privyWalletOverride.http[0]:r.rpcUrls&&r.rpcUrls[i]?r.rpcUrls[i]:a.rpcUrls.privy?.http[0]?{url:a.rpcUrls.privy.http[0],headers:{\"privy-app-id\":n.appId}}:a.rpcUrls.public?.http[0]?a.rpcUrls.public.http[0]:a.rpcUrls.default?.http[0])},tE=e=>{let t={name:\"string\",version:\"string\",chainId:\"uint256\",verifyingContract:\"address\",salt:\"bytes32\"},r=e.types.EIP712Domain??Object.entries(e.domain).map(([e,r])=>{if(null!=r&&\"string\"==typeof e&&e in t)return{name:e,type:t[e]}}).filter(e=>void 0!==e);return{...e,types:{...e.types,EIP712Domain:r}}},tA=e=>{let t;try{t=new URL(e).hostname}catch{return}for(let[e,r]of Object.entries(tS))if(t.includes(r.hostname))return{walletClientType:e,entry:r}},tS={metamask:{id:\"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96\",displayName:\"MetaMask\",hostname:\"metamask.io\",mobile:{native:\"metamask://\",universal:\"https://metamask.app.link\"}},trust:{id:\"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0\",displayName:\"Trust\",hostname:\"trustwallet.com\",mobile:{universal:\"https://link.trustwallet.com\"}},safe:{id:\"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f\",displayName:\"Safe\",hostname:\"safe.global\",mobile:{universal:\"https://app.safe.global/\"}},rainbow:{id:\"1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369\",displayName:\"Rainbow\",hostname:\"rainbow.me\",mobile:{native:\"rainbow://\",universal:\"https://rnbwapp.com\"}},uniswap:{id:\"c03dfee351b6fcc421b4494ea33b9d4b92a984f87aa76d1663bb28705e95034a\",displayName:\"Uniswap\",hostname:\"uniswap.org\",mobile:{universal:\"https://uniswap.org/app\",native:\"uniswap://\"}},zerion:{id:\"ecc4036f814562b41a5268adc86270fba1365471402006302e70169465b7ac18\",displayName:\"Zerion\",hostname:\"zerion.io\",mobile:{native:\"zerion://\",universal:\"https://wallet.zerion.io\"}},argent:{id:\"bc949c5d968ae81310268bf9193f9c9fb7bb4e1283e1284af8f2bd4992535fd6\",displayName:\"Argent\",hostname:\"www.argent.xyz\",mobile:{universal:\"https://www.argent.xyz/app\"}},spot:{id:\"74f8092562bd79675e276d8b2062a83601a4106d30202f2d509195e30e19673d\",displayName:\"Spot\",hostname:\"www.spot-wallet.com\",mobile:{universal:\"https://spot.so\"}},omni:{id:\"afbd95522f4041c71dd4f1a065f971fd32372865b416f95a0b1db759ae33f2a7\",displayName:\"Omni\",hostname:\"omni.app\",mobile:{universal:\"https://links.omni.app\"}},cryptocom:{id:\"f2436c67184f158d1beda5df53298ee84abfc367581e4505134b5bcf5f46697d\",displayName:\"Crypto.com\",hostname:\"crypto.com\",mobile:{universal:\"https://wallet.crypto.com\",native:\"dfw://\"}},blockchain:{id:\"84b43e8ddfcd18e5fcb5d21e7277733f9cccef76f7d92c836d0e481db0c70c04\",displayName:\"Blockchain\",hostname:\"www.blockchain.com\",mobile:{universal:\"https://www.blockchain.com\"}},safepal:{id:\"0b415a746fb9ee99cce155c2ceca0c6f6061b1dbca2d722b3ba16381d0562150\",displayName:\"SafePal\",hostname:\"safepal.com\",mobile:{universal:\"https://link.safepal.io\"}},bitkeep:{id:\"38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662\",displayName:\"BitKeep\",hostname:\"bitkeep.com\",mobile:{universal:\"https://bkapp.vip\"}},zengo:{id:\"9414d5a85c8f4eabc1b5b15ebe0cd399e1a2a9d35643ab0ad22a6e4a32f596f0\",displayName:\"ZenGo\",hostname:\"zengo.com\",mobile:{universal:\"https://get.zengo.com/\"}},\"1inch\":{id:\"c286eebc742a537cd1d6818363e9dc53b21759a1e8e5d9b263d0c03ec7703576\",displayName:\"1inch\",hostname:\"wallet.1inch.io\",mobile:{universal:\"https://wallet.1inch.io/wc/\"}},binance:{id:\"8a0ee50d1f22f6651afcae7eb4253e52a3310b90af5daef78a8c4929a9bb99d4\",displayName:\"Binance\",hostname:\"www.binance.com\",mobile:{universal:\"https://app.binance.com/cedefi\"}},exodus:{id:\"e9ff15be73584489ca4a66f64d32c4537711797e30b6660dbcb71ea72a42b1f4\",displayName:\"Exodus\",hostname:\"exodus.com\",mobile:{universal:\"https://exodus.com/m\"}},mew_wallet:{id:\"f5b4eeb6015d66be3f5940a895cbaa49ef3439e518cd771270e6b553b48f31d2\",displayName:\"MEW wallet\",hostname:\"mewwallet.com\",mobile:{universal:\"https://mewwallet.com\"}},alphawallet:{id:\"138f51c8d00ac7b9ac9d8dc75344d096a7dfe370a568aa167eabc0a21830ed98\",displayName:\"AlphaWallet\",hostname:\"alphawallet.com\",mobile:{universal:\"https://aw.app\"}},keyring_pro:{id:\"47bb07617af518642f3413a201ec5859faa63acb1dd175ca95085d35d38afb83\",displayName:\"KEYRING PRO\",hostname:\"keyring.app\",mobile:{universal:\"https://keyring.app/\"}},mathwallet:{id:\"7674bb4e353bf52886768a3ddc2a4562ce2f4191c80831291218ebd90f5f5e26\",displayName:\"MathWallet\",hostname:\"mathwallet.org\",mobile:{universal:\"https://www.mathwallet.org\"}},unstoppable:{id:\"8308656f4548bb81b3508afe355cfbb7f0cb6253d1cc7f998080601f838ecee3\",displayName:\"Unstoppable\",hostname:\"unstoppabledomains.com\",mobile:{universal:\"https://unstoppabledomains.com/mobile\"}},obvious:{id:\"031f0187049b7f96c6f039d1c9c8138ff7a17fd75d38b34350c7182232cc29aa\",displayName:\"Obvious\",hostname:\"obvious.technology\",mobile:{universal:\"https://wallet.obvious.technology\"}},ambire:{id:\"2c81da3add65899baeac53758a07e652eea46dbb5195b8074772c62a77bbf568\",displayName:\"Ambire\",hostname:\"www.ambire.com\",mobile:{universal:\"https://mobile.ambire.com\"}},internet_money_wallet:{id:\"dd43441a6368ec9046540c46c5fdc58f79926d17ce61a176444568ca7c970dcd\",displayName:\"Internet Money Wallet\",hostname:\"internetmoney.io\",mobile:{universal:\"https://internetmoney.io\"}},coin98:{id:\"2a3c89040ac3b723a1972a33a125b1db11e258a6975d3a61252cd64e6ea5ea01\",displayName:\"Coin98\",hostname:\"coin98.com\",mobile:{universal:\"https://coin98.services\"}},abc_wallet:{id:\"b956da9052132e3dabdcd78feb596d5194c99b7345d8c4bd7a47cabdcb69a25f\",displayName:\"ABC Wallet\",hostname:\"myabcwallet.io\",mobile:{universal:\"https://abcwalletconnect.page.link\"}},arculus_wallet:{id:\"0e4915107da5b3408b38e248f7a710f4529d54cd30e9d12ff0eb886d45c18e92\",displayName:\"Arculus Wallet\",hostname:\"www.getarculus.com\",mobile:{universal:\"https://gw.arculus.co/app\"}},haha:{id:\"719bd888109f5e8dd23419b20e749900ce4d2fc6858cf588395f19c82fd036b3\",displayName:\"HaHa\",hostname:\"www.haha.me\",mobile:{universal:\"https://haha.me\"}},cling_wallet:{id:\"942d0e22a7e6b520b0a03abcafc4dbe156a1fc151876e3c4a842f914277278ef\",displayName:\"Cling Wallet\",hostname:\"clingon.io\",mobile:{universal:\"https://cling.carrieverse.com/apple-app-site-association\"}},broearn:{id:\"8ff6eccefefa7506339201bc33346f92a43118d6ff7d6e71d499d8187a1c56a2\",displayName:\"Broearn\",hostname:\"www.broearn.com\",mobile:{universal:\"https://www.broearn.com/link/wallet/\"}},copiosa:{id:\"07f99a5d9849bb049d74830012b286f8b238e72b0337933ef22b84947409db80\",displayName:\"Copiosa\",hostname:\"copiosa.io\",mobile:{universal:\"https://copiosa.io/action/\"}},burrito_wallet:{id:\"8821748c25de9dbc4f72a691b25a6ddad9d7df12fa23333fd9c8b5fdc14cc819\",displayName:\"Burrito Wallet\",hostname:\"burritowallet.com\",mobile:{universal:\"https://burritowallet.com/wc?uri=\"}},enjin_wallet:{id:\"bdc9433ffdaee55d31737d83b931caa1f17e30666f5b8e03eea794bac960eb4a\",displayName:\"Enjin Wallet\",hostname:\"enjin.io\",mobile:{universal:\"https://deeplink.wallet.enjin.io/\"}},plasma_wallet:{id:\"cbe13eb482c76f1fa401ff4c84d9acd0b8bc9af311ca0620a0b192fb28359b4e\",displayName:\"Plasma Wallet\",hostname:\"plasma-wallet.com\",mobile:{universal:\"https://plasma-wallet.com\"}},avacus:{id:\"94f785c0c8fb8c4f38cd9cd704416430bcaa2137f27e1468782d624bcd155a43\",displayName:\"Avacus\",hostname:\"avacus.cc\",mobile:{universal:\"https://avacus.app.link\"}},bee:{id:\"2cca8c1b0bea04ba37dee4017991d348cdb7b826804ab2bd31073254f345b715\",displayName:\"Bee\",hostname:\"www.beewallet.app\",mobile:{universal:\"https://beewallet.app/wc\"}},pitaka:{id:\"14e5d957c6eb62d3ee8fc6239703ac2d537d7e3552154836ca0beef775f630bc\",displayName:\"Pitaka\",hostname:\"pitaka.io\",mobile:{universal:\"https://app.pitaka.io\"}},pltwallet:{id:\"576c90ceaea34f29ff0104837cf2b2e23d201be43be1433feeb18d375430e1fd\",displayName:\"PLTwallet\",hostname:\"pltwallet.io\",mobile:{universal:\"https://pltwallet.io/\"}},minerva:{id:\"49bb9d698dbdf2c3d4627d66f99dd9fe90bba1eec84b143f56c64a51473c60bd\",displayName:\"Minerva\",hostname:\"minerva.digital\",mobile:{universal:\"https://minerva.digital\"}},kryptogo:{id:\"19418ecfd44963883e4d6abca1adeb2036f3b5ffb9bee0ec61f267a9641f878b\",displayName:\"KryptoGO\",hostname:\"kryptogo.com\",mobile:{universal:\"https://kryptogo.page.link\"}},prema:{id:\"5b8e33346dfb2a532748c247876db8d596734da8977905a27b947ba1e2cf465b\",displayName:\"PREMA\",hostname:\"premanft.com\",mobile:{universal:\"https://premanft.com\"}},slingshot:{id:\"d23de318f0f56038c5edb730a083216ff0cce00c1514e619ab32231cc9ec484b\",displayName:\"Slingshot\",hostname:\"slingshot.finance\",mobile:{universal:\"https://app.slingshot.finance\"}},kriptonio:{id:\"50df7da345f84e5a79aaf617df5167335a4b6751626df2e8a38f07029b3dde7b\",displayName:\"Kriptonio\",hostname:\"kriptonio.com\",mobile:{universal:\"https://app.kriptonio.com/mobile\"}},timeless:{id:\"9751385960bca290c13b443155288f892f62ee920337eda8c5a8874135daaea8\",displayName:\"Timeless\",hostname:\"timelesswallet.xyz\",mobile:{universal:\"https://timelesswallet.xyz\"}},secux:{id:\"6464873279d46030c0b6b005b33da6be5ed57a752be3ef1f857dc10eaf8028aa\",displayName:\"SecuX\",hostname:\"secuxtech.com\",mobile:{universal:\"https://wsweb.secuxtech.com\"}},bitizen:{id:\"41f20106359ff63cf732adf1f7dc1a157176c9b02fd266b50da6dcc1e9b86071\",displayName:\"Bitizen\",hostname:\"bitizen.org\",mobile:{universal:\"https://bitizen.org/wallet\"}},blocto:{id:\"14e7176536cb3706e221daaa3cfd7b88b7da8c7dfb64d1d241044164802c6bdd\",displayName:\"Blocto\",hostname:\"blocto.io\",mobile:{universal:\"https://blocto.app\"}},safemoon:{id:\"a0e04f1086aac204d4ebdd5f985c12ed226cd0006323fd8143715f9324da58d1\",displayName:\"SafeMoon\",hostname:\"safemoon.com\",mobile:{universal:\"https://safemoon.com/wc\"}},okx_wallet:{id:\"971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709\",displayName:\"OKX Wallet\",hostname:\"okx.com\",mobile:{native:\"okex://main\"}},rabby_wallet:{id:\"18388be9ac2d02726dbac9777c96efaac06d744b2f6d580fccdd4127a6d01fd1\",displayName:\"Rabby Wallet\",hostname:\"rabby.io\",mobile:{}}};function tT(e){return{name:e.displayName||\"\",universalLink:e.mobile.universal,deepLink:e.mobile.native}}var tP=\"WALLETCONNECT_DEEPLINK_CHOICE\";function tN(e){return e.startsWith(\"http://\")||e.startsWith(\"https://\")}function tR(e,t){if(tN(e))return tM(e,t);let r=e;r.includes(\"://\")||(r=e.replaceAll(\"/\",\"\").replaceAll(\":\",\"\"),r=`${r}://`),r.endsWith(\"/\")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}}function tM(e,t){if(!tN(e))return tR(e,t);let r=e;r.endsWith(\"/\")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}}function tO(e,t){window.open(e,t,\"noreferrer noopener\")}var tI=class{constructor(e){this.promise=null,this.fn=e}execute(e){return null===this.promise&&(this.promise=(async()=>{try{return await this.fn(e)}finally{this.promise=null}})()),this.promise}},tW=class{constructor(e){this._meta={},this.captchaToken=e,this.startChannelOnce=new tI(this._startChannelOnce.bind(this)),this.pollForReady=new tI(this._pollForReady.bind(this))}get meta(){return this._meta}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.channelToken)throw new eK(\"Auth flow must be initialized first\");try{let e=await this.api.post(\"/api/v1/farcaster/authenticate\",{channel_token:this.meta.channelToken,message:this.message,signature:this.signature,fid:this.fid});if(!e)throw new eK(\"No response from authentication\");return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{return await this.api.post(\"/api/v1/farcaster/link\",{channel_token:this.meta.channelToken,message:this.message,signature:this.signature,fid:this.fid})}catch(e){throw eX(e)}}async _startChannelOnce(){if(!this.api)throw new eK(\"Auth flow has no API instance\");let e=await this.api.post(\"/api/v1/farcaster/init\",{token:this.captchaToken});s.tq&&!s.gn&&e.connect_uri&&tO(e.connect_uri,\"_blank\"),this._meta={connectUri:e.connect_uri,channelToken:e.channel_token}}async initializeFarcasterConnect(){if(!this.api)throw new eK(\"Auth flow has no API instance\");await this.startChannelOnce.execute()}async _pollForReady(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.channelToken)throw new eK(\"Auth flow must be initialized first\");let e=await this.api.get(\"/api/v1/farcaster/status\",{headers:{\"farcaster-channel-token\":this.meta.channelToken}});return\"completed\"===e.state&&(this.message=e.message,this.signature=e.signature,this.fid=e.fid,!0)}},tL=\"https://auth.privy.io\",tF=\"privy:token\",tU=\"privy-token\",tD=\"privy:refresh_token\",tZ=\"privy:id_token\",tz=\"privy-id-token\",t$=\"privy-session\",tH=\"privy:session_transfer_token\",tB=\"privy:caid\",tq=e=>`privy:guest:${e}`,tV=e=>`privy:cross-app:${e}`,tG=\"privy:state_code\",tK=\"privy:code_verifier\",tY=\"privy:headless_oauth\",tQ=e=>`privy:wallet:${e}`,tX=\"privy:connectors\",tJ=\"privy:connections\",t0=1;async function t1(e){let t=new TextEncoder().encode(e);return new Uint8Array(await crypto.subtle.digest(\"SHA-256\",t))}function t2(e){return crypto.getRandomValues(new Uint8Array(e))}var t3=class{constructor(e){this.meta={guestCredential:this.getOrCreateGuestCredential(e)}}getOrCreateGuestCredential(e){let t=tq(e);if(ta()){if(to.get(t))return to.get(t);{let e=p.c(t2(32));return to.put(t,e),e}}return p.c(t2(32))}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{let e=await this.api.post(\"/api/v1/guest/authenticate\",{guest_credential:this.meta.guestCredential});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){throw Error(\"Linking is not supported for the guest flow\")}};function t4(){return p.c(t2(36))}async function t5(e,t=\"S256\"){if(\"S256\"!=t)return e;{let t=await t1(e);return p.c(t)}}function t6(){return!!to.get(tY)}var t7=class{constructor(e){let t=\"boolean\"==typeof e.headless?e.headless:t6();this.meta={...e,headless:t}}addCaptchaToken(e){this.meta.captchaToken=e}isActive(){return!!(this.meta.authorizationCode&&this.meta.stateCode&&this.meta.provider)}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.authorizationCode||!this.meta.stateCode)throw new eK(\"[OAuth AuthFlow] Authorization and state codes code must be set prior to calling authenticate.\");if(\"undefined\"===this.meta.authorizationCode)throw new eK(\"User denied confirmation during OAuth flow\");let e=function(){let e=to.get(tK);if(!e)throw new eK(\"Authentication error.\");return e}();try{let t=await this.api.post(\"/api/v1/oauth/authenticate\",{authorization_code:this.meta.authorizationCode,state_code:this.meta.stateCode,code_verifier:e});return to.del(tK),this.meta.headless&&to.del(tY),{user:t.user,token:t.token,refresh_token:t.refresh_token,identity_token:t.identity_token,is_new_user:t.is_new_user,oauth_tokens:t.oauth_tokens}}catch(t){let e=eX(t);throw e.privyErrorCode?new eK(e.message||\"Invalid code during OAuth flow.\",void 0,e.privyErrorCode):\"User denied confirmation during OAuth flow\"===e.message?new eK(\"Invalid code during oauth flow.\",void 0,\"oauth_user_denied\"):new eK(\"Invalid code during OAuth flow.\",void 0,\"unknown_auth_error\")}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.authorizationCode||!this.meta.stateCode)throw new eK(\"[OAuth AuthFlow] Authorization and state codes code must be set prior to calling link.\");if(\"undefined\"===this.meta.authorizationCode)throw new eK(\"User denied confirmation during OAuth flow\");let e=to.get(tK);if(!e)throw new eK(\"Authentication error.\");try{let t=await this.api.post(e8,{authorization_code:this.meta.authorizationCode,state_code:this.meta.stateCode,code_verifier:e});return to.del(tK),t}catch(e){throw eX(e)}}async getAuthorizationUrl(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.provider)throw new eK(\"Provider must be set when initializing OAuth authentication.\");let e=t4();to.put(tK,e);let t=t4();to.put(tG,t);let r=await t5(e);this.meta.headless&&to.put(tY,!0);try{return await this.api.post(e7,{provider:this.meta.provider,redirect_to:window.location.href,token:this.meta.captchaToken,code_challenge:r,state_code:t})}catch(e){throw eX(e)}}},t8=({style:e,...t})=>(0,m.jsxs)(\"svg\",{version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",x:\"0px\",y:\"0px\",viewBox:\"0 0 24 24\",style:{height:\"24px\",...e},...t,children:[(0,m.jsx)(\"path\",{d:\"M17.0722 11.6888C17.0471 8.90571 19.3263 7.56847 19.429 7.50274C18.1466 5.60938 16.153 5.35154 15.4417 5.3212C13.7461 5.14678 12.1306 6.32982 11.269 6.32982C10.4074 6.32982 9.08004 5.34648 7.67246 5.37429C5.82158 5.40209 4.11595 6.45874 3.16171 8.13218C1.24068 11.4942 2.6708 16.4817 4.54423 19.2143C5.46091 20.549 6.55041 22.0531 7.98554 21.9975C9.36803 21.9419 9.88905 21.095 11.5571 21.095C13.2251 21.095 13.696 21.9975 15.1537 21.9697C16.6389 21.9393 17.5806 20.6046 18.4897 19.2648C19.5392 17.7153 19.9725 16.2137 19.9975 16.1354C19.965 16.1228 17.1022 15.0155 17.0722 11.6888Z\",fill:\"currentColor\"}),(0,m.jsx)(\"path\",{d:\"M14.3295 3.51373C15.0909 2.58347 15.6043 1.28921 15.4641 0C14.3671 0.0455014 13.0396 0.738135 12.2532 1.66838C11.5494 2.48994 10.9307 3.80695 11.0986 5.07089C12.3183 5.16694 13.5681 4.44145 14.3295 3.51373Z\",fill:\"currentColor\"})]}),t9=({style:e,...t})=>(0,m.jsxs)(\"svg\",{version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",x:\"0px\",y:\"0px\",viewBox:\"0 0 71 55\",style:{height:\"24px\",...e},...t,children:[(0,m.jsx)(\"g\",{clipPath:\"url(#clip0)\",children:(0,m.jsx)(\"path\",{d:\"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z\",fill:\"#5865F2\"})}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0\",children:(0,m.jsx)(\"rect\",{width:\"71\",height:\"55\",fill:\"white\"})})})]}),re=({style:e,...t})=>(0,m.jsx)(\"svg\",{version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",x:\"24\",y:\"24\",viewBox:\"0 0 98 96\",style:{height:\"24px\",...e},...t,children:(0,m.jsx)(\"path\",{d:\"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z\",fill:\"currentColor\"})}),rt=({style:e})=>(0,m.jsx)(g.Z,{style:{color:\"var(--privy-color-error)\",...e}}),rr=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"26px\",width:\"26px\",...e},...t,children:[(0,m.jsx)(\"path\",{d:\"M22.56 12.25C22.56 11.47 22.49 10.72 22.36 10H12V14.255H17.92C17.665 15.63 16.89 16.795 15.725 17.575V20.335H19.28C21.36 18.42 22.56 15.6 22.56 12.25Z\",fill:\"#4285F4\"}),(0,m.jsx)(\"path\",{d:\"M12 23C14.97 23 17.46 22.015 19.28 20.335L15.725 17.575C14.74 18.235 13.48 18.625 12 18.625C9.13504 18.625 6.71004 16.69 5.84504 14.09H2.17004V16.94C3.98004 20.535 7.70004 23 12 23Z\",fill:\"#34A853\"}),(0,m.jsx)(\"path\",{d:\"M5.845 14.09C5.625 13.43 5.5 12.725 5.5 12C5.5 11.275 5.625 10.57 5.845 9.91V7.06H2.17C1.4 8.59286 0.999321 10.2846 1 12C1 13.775 1.425 15.455 2.17 16.94L5.845 14.09Z\",fill:\"#FBBC05\"}),(0,m.jsx)(\"path\",{d:\"M12 5.375C13.615 5.375 15.065 5.93 16.205 7.02L19.36 3.865C17.455 2.09 14.965 1 12 1C7.70004 1 3.98004 3.465 2.17004 7.06L5.84504 9.91C6.71004 7.31 9.13504 5.375 12 5.375Z\",fill:\"#EA4335\"})]});function rn(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",width:26,height:26,viewBox:\"0 0 140 140\",x:\"0px\",y:\"0px\",fill:\"none\",...e,children:[(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"b\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#3771c8\"}),(0,m.jsx)(\"stop\",{stopColor:\"#3771c8\",offset:\".128\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#60f\",stopOpacity:\"0\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"a\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#fd5\"}),(0,m.jsx)(\"stop\",{offset:\".1\",stopColor:\"#fd5\"}),(0,m.jsx)(\"stop\",{offset:\".5\",stopColor:\"#ff543e\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#c837ab\"})]}),(0,m.jsx)(\"radialGradient\",{id:\"c\",cx:\"158.429\",cy:\"578.088\",r:\"65\",xlinkHref:\"#a\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"matrix(0 -1.98198 1.8439 0 -1031.402 454.004)\",fx:\"158.429\",fy:\"578.088\"}),(0,m.jsx)(\"radialGradient\",{id:\"d\",cx:\"147.694\",cy:\"473.455\",r:\"65\",xlinkHref:\"#b\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"matrix(.17394 .86872 -3.5818 .71718 1648.348 -458.493)\",fx:\"147.694\",fy:\"473.455\"})]}),(0,m.jsx)(\"path\",{fill:\"url(#c)\",d:\"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z\",transform:\"translate(1.004 1)\"}),(0,m.jsx)(\"path\",{fill:\"url(#d)\",d:\"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z\",transform:\"translate(1.004 1)\"}),(0,m.jsx)(\"path\",{fill:\"#fff\",d:\"M66.004 18c-13.036 0-14.672.057-19.792.29-5.11.234-8.598 1.043-11.65 2.23-3.157 1.226-5.835 2.866-8.503 5.535-2.67 2.668-4.31 5.346-5.54 8.502-1.19 3.053-2 6.542-2.23 11.65C18.06 51.327 18 52.964 18 66s.058 14.667.29 19.787c.235 5.11 1.044 8.598 2.23 11.65 1.227 3.157 2.867 5.835 5.536 8.503 2.667 2.67 5.345 4.314 8.5 5.54 3.054 1.187 6.543 1.996 11.652 2.23 5.12.233 6.755.29 19.79.29 13.037 0 14.668-.057 19.788-.29 5.11-.234 8.602-1.043 11.656-2.23 3.156-1.226 5.83-2.87 8.497-5.54 2.67-2.668 4.31-5.346 5.54-8.502 1.18-3.053 1.99-6.542 2.23-11.65.23-5.12.29-6.752.29-19.788 0-13.036-.06-14.672-.29-19.792-.24-5.11-1.05-8.598-2.23-11.65-1.23-3.157-2.87-5.835-5.54-8.503-2.67-2.67-5.34-4.31-8.5-5.535-3.06-1.187-6.55-1.996-11.66-2.23-5.12-.233-6.75-.29-19.79-.29zm-4.306 8.65c1.278-.002 2.704 0 4.306 0 12.816 0 14.335.046 19.396.276 4.68.214 7.22.996 8.912 1.653 2.24.87 3.837 1.91 5.516 3.59 1.68 1.68 2.72 3.28 3.592 5.52.657 1.69 1.44 4.23 1.653 8.91.23 5.06.28 6.58.28 19.39s-.05 14.33-.28 19.39c-.214 4.68-.996 7.22-1.653 8.91-.87 2.24-1.912 3.835-3.592 5.514-1.68 1.68-3.275 2.72-5.516 3.59-1.69.66-4.232 1.44-8.912 1.654-5.06.23-6.58.28-19.396.28-12.817 0-14.336-.05-19.396-.28-4.68-.216-7.22-.998-8.913-1.655-2.24-.87-3.84-1.91-5.52-3.59-1.68-1.68-2.72-3.276-3.592-5.517-.657-1.69-1.44-4.23-1.653-8.91-.23-5.06-.276-6.58-.276-19.398s.046-14.33.276-19.39c.214-4.68.996-7.22 1.653-8.912.87-2.24 1.912-3.84 3.592-5.52 1.68-1.68 3.28-2.72 5.52-3.592 1.692-.66 4.233-1.44 8.913-1.655 4.428-.2 6.144-.26 15.09-.27zm29.928 7.97c-3.18 0-5.76 2.577-5.76 5.758 0 3.18 2.58 5.76 5.76 5.76 3.18 0 5.76-2.58 5.76-5.76 0-3.18-2.58-5.76-5.76-5.76zm-25.622 6.73c-13.613 0-24.65 11.037-24.65 24.65 0 13.613 11.037 24.645 24.65 24.645C79.617 90.645 90.65 79.613 90.65 66S79.616 41.35 66.003 41.35zm0 8.65c8.836 0 16 7.163 16 16 0 8.836-7.164 16-16 16-8.837 0-16-7.164-16-16 0-8.837 7.163-16 16-16z\"})]})}function ri({style:e,...t}){return(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",viewBox:\"0,0,256,256\",style:{height:\"26px\",width:\"26px\",...e},...t,children:(0,m.jsx)(\"g\",{fill:\"#0077b5\",strokeWidth:\"1\",strokeLinecap:\"butt\",strokeLinejoin:\"miter\",strokeMiterlimit:\"10\",style:{mixBlendMode:\"normal\"},children:(0,m.jsx)(\"g\",{transform:\"scale(5.12,5.12)\",children:(0,m.jsx)(\"path\",{d:\"M41,4h-32c-2.76,0 -5,2.24 -5,5v32c0,2.76 2.24,5 5,5h32c2.76,0 5,-2.24 5,-5v-32c0,-2.76 -2.24,-5 -5,-5zM17,20v19h-6v-19zM11,14.47c0,-1.4 1.2,-2.47 3,-2.47c1.8,0 2.93,1.07 3,2.47c0,1.4 -1.12,2.53 -3,2.53c-1.8,0 -3,-1.13 -3,-2.53zM39,39h-6c0,0 0,-9.26 0,-10c0,-2 -1,-4 -3.5,-4.04h-0.08c-2.42,0 -3.42,2.06 -3.42,4.04c0,0.91 0,10 0,10h-6v-19h6v2.56c0,0 1.93,-2.56 5.81,-2.56c3.97,0 7.19,2.73 7.19,8.26z\"})})})})}function ra(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 496 512\",...e,children:[(0,m.jsx)(\"path\",{fill:\"#1ed760\",d:\"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8Z\"}),(0,m.jsx)(\"path\",{d:\"M406.6 231.1c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3zm-31 76.2c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm-26.9 65.6c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4z\"})]})}function ro(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fillRule:\"evenodd\",clipRule:\"evenodd\",imageRendering:\"optimizeQuality\",shapeRendering:\"geometricPrecision\",textRendering:\"geometricPrecision\",viewBox:\"0 0 293768 333327\",width:24,height:24,...e,children:[(0,m.jsx)(\"path\",{fill:\"#26f4ee\",d:\"M204958 0c5369 45832 32829 78170 77253 81022v43471l-287 27V87593c-44424-2850-69965-30183-75333-76015l-47060-1v192819c6791 86790-60835 89368-86703 56462 30342 18977 79608 6642 73766-68039V0h58365zM78515 319644c-26591-5471-50770-21358-64969-44588-34496-56437-3401-148418 96651-157884v54345l-164 27v-40773C17274 145544 7961 245185 33650 286633c9906 15984 26169 27227 44864 33011z\"}),(0,m.jsx)(\"path\",{fill:\"#fb2c53\",d:\"M218434 11587c3505 29920 15609 55386 35948 70259-27522-10602-43651-34934-47791-70262l11843 3zm63489 82463c3786 804 7734 1348 11844 1611v51530c-25770 2537-48321-5946-74600-21749l4034 88251c0 28460 106 41467-15166 67648-34260 58734-95927 63376-137628 35401 54529 22502 137077-4810 136916-103049v-96320c26279 15803 48830 24286 74600 21748V94050zm-171890 37247c5390-1122 11048-1985 16998-2548v54345c-21666 3569-35427 10222-41862 22528-20267 38754 5827 69491 35017 74111-33931 5638-73721-28750-49999-74111 6434-12304 18180-18959 39846-22528v-51797zm64479-119719h1808-1808z\"}),(0,m.jsx)(\"path\",{d:\"M206590 11578c5369 45832 30910 73164 75333 76015v51528c-25770 2539-48321-5945-74600-21748v96320c206 125717-135035 135283-173673 72939-25688-41449-16376-141089 76383-155862v52323c-21666 3569-33412 10224-39846 22528-39762 76035 98926 121273 89342-1225V11577l47060 1z\",fill:\"#000000\"})]})}var rs=({style:e,...t})=>(0,m.jsx)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"24px\",width:\"24px\",...e},...t,children:(0,m.jsx)(\"path\",{d:\"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156\",fill:\"currentColor\"})}),rl={google:{name:\"Google\",component:rr},discord:{name:\"Discord\",component:t9},github:{name:\"Github\",component:re},linkedin:{name:\"LinkedIn\",component:ri},twitter:{name:\"Twitter\",component:rs},spotify:{name:\"Spotify\",component:ra},instagram:{name:\"Instagram\",component:rn},tiktok:{name:\"Tiktok\",component:ro},apple:{name:\"Apple\",component:t8}},rc=e=>e in rl?rl[e]:{name:\"Unknown\",component:rt};function rd(){let e=new URL(window.location.href);e.searchParams.delete(\"privy_oauth_code\"),e.searchParams.delete(\"privy_oauth_provider\"),e.searchParams.delete(\"privy_oauth_state\"),to.del(tG),window.history.replaceState({},\"\",e)}var rh=class{constructor(e){this.initAuthenticateOnce=new tI(this._initAuthenticateOnce.bind(this)),this.initLinkOnce=new tI(this._initLinkOnce.bind(this)),this.meta={captchaToken:e}}async initAuthenticationFlow(){if(!this.api)throw new eK(\"Auth flow has no API instance\");this.meta.initAuthenticateResponse=await this.initAuthenticateOnce.execute()}async initLinkFlow(){if(!this.api)throw new eK(\"Auth flow has no API instance\");this.meta.initLinkResponse=await this.initLinkOnce.execute()}async authenticate(){let e=await r.e(550).then(r.bind(r,74550));if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!e.browserSupportsWebAuthn())throw new eK(\"WebAuthn is not supported in this browser\");this.meta.initAuthenticateResponse||(this.meta.initAuthenticateResponse=await this.initAuthenticateOnce.execute());try{let t=await e.startAuthentication(this._transformInitAuthenticateOptionsToCamelCase(this.meta.initAuthenticateResponse.options)),r=await this.api.post(\"/api/v1/passkeys/authenticate\",{relying_party:this.meta.initAuthenticateResponse.relying_party,challenge:this.meta.initAuthenticateResponse.options.challenge,authenticator_response:this._transformAuthenticationResponseToSnakeCase(t)});return{user:r.user,token:r.token,refresh_token:r.refresh_token,is_new_user:r.is_new_user}}catch(e){throw\"NotAllowedError\"===e.name?new eK(\"Passkey request timed out or rejected by user.\",void 0,\"passkey_not_allowed\"):eX(e)}}async link(){let e=await r.e(550).then(r.bind(r,74550));if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!e.browserSupportsWebAuthn())throw new eK(\"WebAuthn is not supported in this browser\");this.meta.initLinkResponse||(this.meta.initLinkResponse=await this.initLinkOnce.execute());try{let t=this.meta.initLinkResponse.options,r=await e.startRegistration(this._transformInitLinkOptionsToCamelCase(t));return await this.api.post(\"/api/v1/passkeys/link\",{relying_party:this.meta.initLinkResponse.relying_party,authenticator_response:this._transformRegistrationResponseToSnakeCase(r)})}catch(e){throw\"NotAllowedError\"===e.name?new eK(\"Passkey request timed out or rejected by user.\",void 0,\"passkey_not_allowed\"):eX(e)}}async _initAuthenticateOnce(){if(!this.api)throw new eK(\"Auth flow has no API instance\");return await this.api.post(\"/api/v1/passkeys/authenticate/init\",{token:this.meta.captchaToken})}async _initLinkOnce(){if(!this.api)throw new eK(\"Auth flow has no API instance\");return await this.api.post(\"/api/v1/passkeys/link/init\",{})}_transformInitLinkOptionsToCamelCase(e){return{rp:e.rp,user:{id:e.user.id,name:e.user.name,displayName:e.user.display_name},challenge:e.challenge,pubKeyCredParams:e.pub_key_cred_params.map(e=>({type:e.type,alg:e.alg})),timeout:e.timeout,excludeCredentials:e.exclude_credentials?.map(e=>({id:e.id,type:e.type,transports:e.transports})),authenticatorSelection:{authenticatorAttachment:e.authenticator_selection?.authenticator_attachment,requireResidentKey:e.authenticator_selection?.require_resident_key,residentKey:e.authenticator_selection?.resident_key,userVerification:e.authenticator_selection?.user_verification},attestation:e.attestation,extensions:{appid:e.extensions?.app_id,credProps:e.extensions?.cred_props?.rk,hmacCreateSecret:e.extensions?.hmac_create_secret}}}_transformRegistrationResponseToSnakeCase(e){return{id:e.id,raw_id:e.rawId,response:{client_data_json:e.response.clientDataJSON,attestation_object:e.response.attestationObject,authenticator_data:e.response.authenticatorData},authenticator_attachment:e.authenticatorAttachment,client_extension_results:{app_id:e.clientExtensionResults.appid,cred_props:e.clientExtensionResults.credProps,hmac_create_secret:e.clientExtensionResults.hmacCreateSecret},type:e.type}}_transformInitAuthenticateOptionsToCamelCase(e){return{challenge:e.challenge,allowCredentials:e.allow_credentials?.map(e=>({id:e.id,type:e.type,transports:e.transports}))||[],timeout:e.timeout,extensions:{appid:e.extensions?.app_id,credProps:e.extensions?.cred_props,hmacCreateSecret:e.extensions?.hmac_create_secret},userVerification:e.user_verification}}_transformAuthenticationResponseToSnakeCase(e){return{id:e.id,raw_id:e.rawId,response:{client_data_json:e.response.clientDataJSON,authenticator_data:e.response.authenticatorData,signature:e.response.signature,user_handle:e.response.userHandle},authenticator_attachment:e.authenticatorAttachment,client_extension_results:{app_id:e.clientExtensionResults.appid,cred_props:e.clientExtensionResults.credProps,hmac_create_secret:e.clientExtensionResults.hmacCreateSecret},type:e.type}}},ru=({address:e,chainId:t,nonce:r})=>{let n=window.location.host,i=window.location.origin,a=new Date().toISOString();return`${n} wants you to sign in with your Ethereum account:\n${e}\n\nBy signing, you are proving you own this wallet and logging in. This does not initiate a transaction or cost any fees.\n\nURI: ${i}\nVersion: 1\nChain ID: ${t}\nNonce: ${r}\nIssued At: ${a}\nResources:\n- https://privy.io`},rp=class{constructor(e,t,r){this.getNonceOnce=new tI(this._getNonceOnce.bind(this)),this.wallet=e,this.captchaToken=r,this.client=t}get meta(){return{connectorType:this.wallet.connectorType,walletClientType:this.wallet.walletClientType}}async authenticate(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");try{let{message:e,signature:t}=await this.sign(),r=await this.client.authenticateWithSiweInternal({message:e,signature:t,chainId:this.wallet.chainId,walletClientType:this.wallet.walletClientType,connectorType:this.wallet.connectorType});return{user:r.user,token:r.token,refresh_token:r.refresh_token,identity_token:r.identity_token,is_new_user:r.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");try{let{message:e,signature:t}=await this.sign();return await this.client.linkWithSiweInternal({message:e,signature:t,chainId:this.wallet.chainId,walletClientType:this.wallet.walletClientType,connectorType:this.wallet.connectorType})}catch(e){throw eX(e)}}async sign(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");if(await this.buildSiweMessage(),!this.preparedMessage)throw new eK(\"Could not prepare SIWE message\");let e=await this.wallet.sign(this.preparedMessage);return{message:this.preparedMessage,signature:e}}async _getNonceOnce(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");return await this.client.generateSiweNonce({address:this.wallet.address,captchaToken:this.captchaToken})}async buildSiweMessage(){if(!this.client)throw new eK(\"SiweFlow has no client instance\");let e=this.wallet.address,t=this.wallet.chainId.replace(\"eip155:\",\"\");return this.nonce||(this.nonce=await this.getNonceOnce.execute()),this.preparedMessage=ru({address:e,chainId:t,nonce:this.nonce}),this.preparedMessage}},rm=class{constructor(e,t){this.meta={phoneNumber:e,captchaToken:t}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.phoneNumber||!this.meta.smsCode)throw new eK(\"phone number and sms code must be set prior to calling authenticate.\");try{let e=await this.api.post(\"/api/v1/passwordless_sms/authenticate\",{phoneNumber:this.meta.phoneNumber,code:this.meta.smsCode});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.phoneNumber||!this.meta.smsCode)throw new eK(\"phone number and sms code must be set prior to calling authenticate.\");try{return await this.api.post(\"/api/v1/passwordless_sms/link\",{phoneNumber:this.meta.phoneNumber,code:this.meta.smsCode})}catch(e){throw eX(e)}}async sendSmsCode(e,t){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(e&&(this.meta.phoneNumber=e),t&&(this.meta.captchaToken=t),!this.meta.phoneNumber)throw new eK(\"phone nNumber must be set when initialzing authentication.\");try{return await this.api.post(\"/api/v1/passwordless_sms/init\",{phoneNumber:this.meta.phoneNumber,token:this.meta.captchaToken})}catch(e){throw eX(e)}}},rg=class extends rm{constructor(e,t,r){super(t,r),this.meta={phoneNumber:t,captchaToken:r,oldPhoneNumber:e}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");if(!this.meta.phoneNumber||!this.meta.smsCode||!this.meta.oldPhoneNumber)throw new eK(\"Phone number, sms code, and an old phone number must be set prior to calling update.\");try{return await this.api.post(\"/api/v1/passwordless_sms/update\",{old_phone_number:this.meta.oldPhoneNumber,new_phone_number:this.meta.phoneNumber,code:this.meta.smsCode})}catch(e){throw eX(e)}}},rf=class{constructor(e){this.meta={captchaToken:e}}async authenticate(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{let e=await this.api.post(\"/api/v1/telegram/authenticate\",{captcha_token:this.meta.captchaToken,telegram_auth_result:this.meta.telegramAuthResult,telegram_web_app_data:this.meta.telegramWebAppData});return{user:e.user,token:e.token,refresh_token:e.refresh_token,identity_token:e.identity_token,is_new_user:e.is_new_user}}catch(e){throw eX(e)}}async link(){if(!this.api)throw new eK(\"Auth flow has no API instance\");try{return await this.api.post(\"/api/v1/telegram/link\",{telegram_auth_result:this.meta.telegramAuthResult,telegram_web_app_data:this.meta.telegramWebAppData})}catch(e){throw eX(e)}}};function ry(e){let t={detail:\"\",retryable:!1};return e?.privyErrorCode===\"linked_to_another_user\"&&(t.detail=\"This account has already been linked to another user.\"),e?.privyErrorCode===\"disallowed_login_method\"&&(t.detail=\"Login with Telegram not allowed.\"),e?.privyErrorCode===\"invalid_data\"&&(t.retryable=!0,t.detail=\"Something went wrong. Try again.\"),e?.privyErrorCode===\"cannot_link_more_of_type\"&&(t.retryable=!0,t.detail=\"Something went wrong. Try again.\"),e?.privyErrorCode===\"invalid_credentials\"&&(t.retryable=!0,t.detail=\"Something went wrong. Try again.\"),e?.privyErrorCode===\"too_many_requests\"&&(t.detail=\"Too many requests. Please wait before trying again.\"),e?.privyErrorCode===\"too_many_requests\"&&e.message.includes(\"rate limit\")&&(t.detail=\"Request limit reached for Telegram. Please wait a moment and try again.\"),t}function rw(){let e=new URL(window.location.href);e.searchParams.delete(\"id\"),e.searchParams.delete(\"hash\"),e.searchParams.delete(\"auth_date\"),e.searchParams.delete(\"first_name\"),e.searchParams.delete(\"last_name\"),e.searchParams.delete(\"username\"),e.searchParams.delete(\"photo_url\"),window.history.replaceState({},\"\",e)}function rx(e){return e?new Date(1e3*e):null}function rv(e,t){return e.slice().sort((e,t)=>(t.firstVerifiedAt??t.verifiedAt).getTime()-(e.firstVerifiedAt??e.verifiedAt).getTime()).find(e=>e.type===t)}var rC=e=>e?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&!e.imported&&\"ethereum\"===e.chainType)||null,rb=e=>e?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&!e.imported&&\"solana\"===e.chainType)||null,r_=e=>e?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&e.imported&&\"ethereum\"===e.chainType)||null,rj=e=>e.linkedAccounts.filter(e=>\"wallet\"===e.type),rk=(e,t)=>!(rC(e)||rb(e))&&(\"all-users\"===t||\"users-without-wallets\"===t&&!rj(e)?.length);function rE(e){if(!e)return null;let t=function(e){let t=[];for(let r of e){let e=r.type;switch(r.type){case\"wallet\":let n={address:r.address,type:r.type,imported:r.imported,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at),chainType:r.chain_type,chainId:r.chain_id,walletClient:\"privy\"===r.wallet_client_type?\"privy\":\"unknown\",walletClientType:r.wallet_client_type,connectorType:r.connector_type,recoveryMethod:r.recovery_method};t.push(n);break;case\"cross_app\":let i={type:r.type,subject:r.subject,embeddedWallets:r.embedded_wallets,smartWallets:r.smart_wallets,providerApp:{id:r.provider_app_id},verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(i);break;case\"email\":let a={address:r.address,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(a);break;case\"phone\":let o={number:r.phoneNumber,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(o);break;case\"google_oauth\":let s={subject:r.subject,email:r.email,name:r.name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(s);break;case\"spotify_oauth\":let l={subject:r.subject,email:r.email,name:r.name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(l);break;case\"instagram_oauth\":let c={subject:r.subject,username:r.username,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(c);break;case\"twitter_oauth\":let d={subject:r.subject,username:r.username,name:r.name,type:r.type,profilePictureUrl:r.profile_picture_url,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(d);break;case\"discord_oauth\":let h={subject:r.subject,username:r.username,email:r.email,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(h);break;case\"github_oauth\":let u={subject:r.subject,username:r.username,name:r.name,email:r.email,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(u);break;case\"tiktok_oauth\":let p={subject:r.subject,username:r.username,name:r.name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(p);break;case\"linkedin_oauth\":let m={subject:r.subject,name:r.name,email:r.email,vanityName:r.vanity_name,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(m);break;case\"apple_oauth\":let g={subject:r.subject,email:r.email,type:r.type,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(g);break;case\"custom_auth\":t.push({type:r.type,customUserId:r.custom_user_id,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)});break;case\"farcaster\":let f={type:r.type,fid:r.fid,ownerAddress:r.owner_address,displayName:r.display_name,username:r.username,bio:r.bio,pfp:r.profile_picture_url,url:r.homepage_url,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at),signerPublicKey:r.signer_public_key};t.push(f);break;case\"passkey\":let y={type:r.type,enrolledInMfa:r.enrolled_in_mfa,credentialId:r.credential_id,authenticatorName:r.authenticator_name,createdWithDevice:r.created_with_device,createdWithOs:r.created_with_os,createdWithBrowser:r.created_with_browser,verifiedAt:rx(r.verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(y);break;case\"telegram\":let w={type:r.type,telegramUserId:r.telegram_user_id,firstName:r.first_name,lastName:r.last_name,username:r.username,photoUrl:r.photo_url,verifiedAt:rx(r.first_verified_at),firstVerifiedAt:rx(r.first_verified_at),latestVerifiedAt:rx(r.latest_verified_at)};t.push(w);break;default:console.warn(`Unrecognized account type: ${e}. Please consider upgrading the Privy SDK.`)}}return t}(e.linked_accounts),r=rv(t,\"wallet\"),n=rv(t,\"email\"),i=rv(t,\"phone\"),a=rv(t,\"google_oauth\"),o=rv(t,\"twitter_oauth\"),s=rv(t,\"discord_oauth\"),l=rv(t,\"github_oauth\"),c=rv(t,\"spotify_oauth\"),d=rv(t,\"instagram_oauth\"),h=rv(t,\"tiktok_oauth\"),u=rv(t,\"linkedin_oauth\"),p=rv(t,\"apple_oauth\"),m=rv(t,\"farcaster\"),g=rv(t,\"telegram\"),f=e.mfa_methods.map(({type:e,verified_at:t})=>({type:e,verifiedAt:rx(t)}));return{id:e.id,createdAt:rx(e.created_at),linkedAccounts:t,email:n&&{address:n?.address},phone:i&&{number:i?.number},wallet:r&&{address:r.address,chainType:r.chainType,chainId:r.chainId,walletClient:r.walletClient,walletClientType:r.walletClientType,connectorType:r.connectorType,recoveryMethod:r.recoveryMethod,imported:r.imported},google:a&&{subject:a.subject,email:a.email,name:a.name},twitter:o&&{subject:o.subject,username:o.username,name:o.name,profilePictureUrl:o.profilePictureUrl},discord:s&&{subject:s.subject,username:s.username,email:s.email},github:l&&{subject:l.subject,username:l.username,name:l.name,email:l.email},spotify:c&&{subject:c.subject,email:c.email,name:c.name},instagram:d&&{subject:d.subject,username:d.username},tiktok:h&&{subject:h.subject,username:h.username,name:h.name},linkedin:u&&{subject:u.subject,name:u.name,email:u.email,vanityName:u.vanityName},apple:p&&{subject:p.subject,email:p.email},farcaster:m&&{fid:m.fid,ownerAddress:m.ownerAddress,displayName:m.displayName,username:m.username,bio:m.bio,pfp:m.pfp,url:m.url,signerPublicKey:m.signerPublicKey},telegram:g&&{telegramUserId:g.telegramUserId,firstName:g.firstName,lastName:g.lastName,username:g.username,photoUrl:g.photoUrl},mfaMethods:f.map(e=>e.type),hasAcceptedTerms:e.has_accepted_terms??!1,isGuest:e.is_guest}}var rA,rS,rT=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"1024\",height:\"1024\",viewBox:\"0 0 1024 1024\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"1024\",height:\"1024\",fill:\"#0052FF\",rx:100,ry:100}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\",fill:\"white\"})]}),rP=[\"eth_sign\",\"eth_populateTransactionRequest\",\"eth_signTransaction\",\"personal_sign\",\"eth_signTypedData_v4\"],rN=e=>rP.includes(e),rR=class extends eQ{constructor(){super(\"Wallet timeout\"),this.type=\"wallet_error\"}},rM=class extends eQ{constructor(){super(\"User rejected connection\"),this.type=\"wallet_error\"}},rO=e=>{if(e instanceof eQ)return e;if(e?.code&&e?.reason){let t=new rW(e);return e.code===v.jK.ACTION_REJECTED&&(t.details=d.M_.E4001_USER_REJECTED_REQUEST),t}return e?.code?new rW(e):new eQ(\"Unknown connector error\",e)},rI=class extends eV{constructor(e,t,r){super(e),this.type=\"provider_error\",this.code=t,this.data=r}},rW=class extends rI{constructor(e){super(e.message,e.code,e.data);let t=Object.values(d.M_).find(t=>t.eipCode===e.code);this.details=t||d.M_.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes(\"already pending for origin\")?e.message?.includes(\"wallet_requestPermissions\")?this.details=d.M_.E32002_CONNECTION_ALREADY_PENDING:this.details=d.M_.E32002_REQUEST_ALREADY_PENDING:e.message?.includes(\"Already processing\")&&e.message.includes(\"eth_requestAccounts\")&&(this.details=d.M_.E32002_WALLET_LOCKED))}},rL={ERROR_USER_EXISTS:{message:\"User already exists for this address\",detail:\"Try another address!\",retryable:!1},ERROR_TIMED_OUT:{message:\"Wallet request timed out\",detail:\"Please try connecting again.\",retryable:!0},ERROR_WALLET_CONNECTION:{message:\"Could not log in with wallet\",detail:\"Please try connecting again.\",retryable:!0},ERROR_USER_REJECTED_CONNECTION:{message:\"You rejected the request\",detail:\"Please try connecting again.\",retryable:!0},...d.M_},rF=class{constructor(e,t){this.removeListener=(e,t)=>{if(this.walletProvider)try{return this.walletProvider.removeListener(e,t)}catch{console.warn(\"Unable to remove wallet provider listener\")}},this.walletTimeout=(e=new rR,t=this.rpcTimeoutDuration)=>new Promise((r,n)=>setTimeout(()=>{n(e)},t)),this.setWalletProvider=e=>{this.walletProvider&&this._subscriptions.forEach(e=>{this.removeListener(e.eventName,e.listener)}),this.walletProvider=e,this._subscriptions.forEach(e=>{this.walletProvider?.on(e.eventName,e.listener)})},this.walletProvider=e,this.rpcTimeoutDuration=t||12e4,this._subscriptions=[]}on(e,t){if(this.walletProvider)return this.walletProvider.on(e,t);this._subscriptions.push({eventName:e,listener:t})}async request(e){if(!this.walletProvider)throw new eQ(`A wallet request of type ${e.method} was made before setting a wallet provider.`);return Promise.race([this.walletProvider.request(e),this.walletTimeout()]).catch(e=>{throw rO(e)})}},rU=class extends Error{constructor(e,t,r){super(e),this.code=t,this.data=r}},rD=class extends w.Z{constructor(e,t,r,n,i,a=1){super(),this.walletProxy=e,this.address=t,this.chainId=a,this.rpcConfig=r,this.chains=n,this.provider=tk(a,this.chains,r,{appId:i}),this.rpcTimeoutDuration=nC(r,\"privy\"),this.appId=i}async handleSendTransaction(e){if(!e.params||!Array.isArray(e.params))throw new rU(`Invalid params for ${e.method}`,4200);let t=e.params[0];if(!await uK()||!this.address)throw new rU(\"Disconnected\",4900);return(await u6(t)).hash}handleSwitchEthereumChain(e){let t;if(!e.params||!Array.isArray(e.params))throw new rU(`Invalid params for ${e.method}`,4200);if(\"string\"==typeof e.params[0])t=e.params[0];else if(\"chainId\"in e.params[0]&&\"string\"==typeof e.params[0].chainId)t=e.params[0].chainId;else throw new rU(`Invalid params for ${e.method}`,4200);this.chainId=Number(t),this.provider=tk(this.chainId,this.chains,this.rpcConfig,{appId:this.appId}),this.emit(\"chainChanged\",t)}async handlePersonalSign(e){if(!e.params||!Array.isArray(e.params))throw Error(\"Invalid params for personal_sign\");let t=e.params[0],r=e.params[1];return await u4(t,void 0,r)}async handleSignedTypedData(e){if(!e.params||!Array.isArray(e.params))throw Error(\"Invalid params for eth_signTypedData_v4\");let t=\"string\"==typeof e.params[1]?JSON.parse(e.params[1]):e.params[1];return await u5(tE(t))}async handleEstimateGas(e){if(!e.params||!Array.isArray(e.params))throw Error(\"Invalid params for eth_estimateGas\");delete e.params[0].gasPrice,delete e.params[0].maxFeePerGas,delete e.params[0].maxPriorityFeePerGas;let t={...e.params[0],chainId:tx(this.chainId)};try{return await this.provider.send(\"eth_estimateGas\",[t])}catch(e){console.warn(`Gas estimation failed with error: ${e}. Retrying gas estimation by omitting the 'from' address`);try{return delete t.from,await this.provider.send(\"eth_estimateGas\",[t])}catch(t){throw console.warn(`Gas estimation failed with error: ${t} when omitting the 'from' address`),e}}}async request(e){switch(console.debug(\"Embedded1193Provider.request() called with args\",e),e.method){case\"eth_accounts\":case\"eth_requestAccounts\":return this.address?[this.address]:[];case\"eth_chainId\":return tx(this.chainId);case\"eth_estimateGas\":return this.handleEstimateGas(e);case\"eth_sendTransaction\":return this.handleSendTransaction(e);case\"wallet_switchEthereumChain\":return this.handleSwitchEthereumChain(e);case\"personal_sign\":return this.handlePersonalSign(e);case\"eth_signTypedData_v4\":return this.handleSignedTypedData(e)}if(!rN(e.method))return this.provider.send(e.method,e.params);{let t=await uK();if(await u7(),!t||!this.address)throw new rU(\"Disconnected\",4900);try{return(await this.walletProxy.rpc({address:this.address,accessToken:t,request:{method:e.method,params:e.params}})).response.data}catch(e){throw console.error(e),new rU(\"Disconnected\",4900)}}}async connect(){let e=await uK();if(!e||!this.address)return null;try{return(await this.walletProxy.connect({address:this.address,accessToken:e})).address}catch(e){return console.error(e),null}}},rZ=class extends rF{constructor(e){super(e,e.rpcTimeoutDuration)}},rz=class extends rF{constructor(e){super(e,e.rpcTimeoutDuration)}sendAsync(e,t){throw Error(\"sendAsync is no longer supported by EIP-1193. Use the request method instead.\")}},r$=(e,t)=>\"coinbase_wallet\"===t?e.message.includes(\"addEthereumChain\"):4902===e.code||e.message?.includes(\"4902\"),rH=class extends w.Z{constructor(e,t,r,n){super(),this.onAccountsChanged=e=>{0===e.length?this.onDisconnect():this.syncAccounts(e)},this.onChainChanged=e=>{this.wallets.forEach(t=>{t.chainId=tC(e),\"privy\"===this.walletClientType&&to.put(tQ(t.address),e)}),this.emit(\"walletsUpdated\")},this.onDisconnect=()=>{this.connected=!1,this.wallets=[],this.emit(\"walletsUpdated\")},this.onConnect=()=>{this.connected=!0,this.syncAccounts()},this.wallets=[],this.walletClientType=e,this.chains=t,this.defaultChain=r,this.rpcConfig=n,this.rpcTimeoutDuration=nC(n,e),this.connected=!1,this.initialized=!1}buildConnectedWallet(e,t,r,a){let o=async()=>!!this.wallets.find(t=>(0,n.Kn)(t.address)===(0,n.Kn)(e));return{address:(0,n.Kn)(e),chainId:t,meta:r,imported:a,switchChain:async r=>{let i,a;if(!o)throw new eQ(\"Wallet is not currently connected.\");let s=this.wallets.find(t=>n.Kn(t.address)===n.Kn(e))?.chainId;if(!s)throw new eQ(\"Unable to determine current chainId.\");if(\"number\"==typeof r?(i=`0x${r.toString(16)}`,a=r):(i=r,a=Number(r)),s===tC(i))return;let l=this.chains.find(e=>e.id===a);if(!l)throw new eQ(`Unsupported chainId: ${r}`);let c=async()=>{await this.proxyProvider.request({method:\"wallet_switchEthereumChain\",params:[{chainId:i}]})};try{return await c()}catch(e){if(r$(e,this.walletClientType))return await this.proxyProvider.request({method:\"wallet_addEthereumChain\",params:[{chainId:i,chainName:l.name,nativeCurrency:l.nativeCurrency,rpcUrls:[l.rpcUrls.default?.http[0]??\"\"],blockExplorerUrls:[l.blockExplorers?.default.url??\"\"]}]}),c();throw\"rainbow\"===this.walletClientType&&e.message?.includes(\"wallet_switchEthereumChain\")?new eQ(`Rainbow does not support the chainId ${t}`):e}},connectedAt:Date.now(),walletClientType:this.walletClientType,connectorType:this.connectorType,isConnected:o,getEthereumProvider:async()=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return this.proxyProvider},getEthersProvider:async()=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return new i.Q(new rZ(this.proxyProvider))},getWeb3jsProvider:async()=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return new rz(this.proxyProvider)},sign:async e=>{if(!await o())throw new eQ(\"Wallet is not currently connected.\");return await this.sign(e)},disconnect:()=>{this.disconnect()}}}async syncAccounts(e){let t=e;try{if(void 0===t){let e=await tf(()=>this.proxyProvider.request({method:\"eth_accounts\"}),{maxAttempts:10,delayMs:500});console.debug(`eth_accounts for ${this.walletClientType}:`,e),Array.isArray(e)&&(t=e)}}catch(e){console.warn(\"Wallet did not respond to eth_accounts. Defaulting to prefetched accounts.\",e)}if(!t||!Array.isArray(t)||t.length<=0||!t[0])return;let r=t[0],i=(0,n.Kn)(r),a=[],o;if(\"privy\"===this.walletClientType){let e=to.get(tQ(i));this.chains.find(t=>t.id===Number(e))||(to.del(tQ(i)),e=null),o=e||`0x${this.defaultChain.id.toString(16)}`;try{await this.proxyProvider.request({method:\"wallet_switchEthereumChain\",params:[{chainId:o}]})}catch{console.warn(`Unable to switch embedded wallet to chain ID ${o} on initialization`)}}else try{let e=await tf(()=>this.proxyProvider.request({method:\"eth_chainId\"}),{maxAttempts:10,delayMs:500});if(console.debug(`eth_chainId for ${this.walletClientType}:`,e),\"string\"==typeof e)o=e;else if(\"number\"==typeof e)o=`0x${e.toString(16)}`;else throw Error(\"Invalid chainId returned from provider\")}catch(e){console.warn(\"Failed to get chainId from provider, defaulting to 0x1\",e),o=\"0x1\"}let s=tC(o);if(!a.find(e=>(0,n.Kn)(e.address)===i)){let e={name:this.walletBranding.name,icon:\"string\"==typeof this.walletBranding.icon?this.walletBranding.icon:void 0,id:this.walletBranding.id};a.push(this.buildConnectedWallet((0,n.Kn)(r),s,e,\"embedded_imported\"===this.connectorType))}n_(a,this.wallets)||(this.wallets=a,this.emit(\"walletsUpdated\"))}async getConnectedWallet(){let e=await this.proxyProvider.request({method:\"eth_accounts\"});return this.wallets.sort((e,t)=>t.connectedAt-e.connectedAt).find(t=>e.find(e=>(0,n.Kn)(e)===(0,n.Kn)(t.address)))||null}async isConnected(){let e=await this.proxyProvider.request({method:\"eth_accounts\"});return Array.isArray(e)&&e.length>0}async sign(e){return await this.connect({showPrompt:!1}),new i.Q(new rZ(this.proxyProvider)).getSigner().signMessage(e)}subscribeListeners(){this.proxyProvider.on(\"accountsChanged\",this.onAccountsChanged),this.proxyProvider.on(\"chainChanged\",this.onChainChanged),this.proxyProvider.on(\"disconnect\",this.onDisconnect),this.proxyProvider.on(\"connect\",this.onConnect)}unsubscribeListeners(){this.proxyProvider.removeListener(\"accountsChanged\",this.onAccountsChanged),this.proxyProvider.removeListener(\"chainChanged\",this.onChainChanged),this.proxyProvider.removeListener(\"disconnect\",this.onDisconnect),this.proxyProvider.removeListener(\"connect\",this.onConnect)}},rB=[1,11155111,137,10,8453,84532,42161,7777777,43114,56],rq=(e,t)=>e.makeWeb3Provider({options:t}),rV=class extends rH{constructor(e,t,r,n,i,a){if(super(\"coinbase_wallet\",e,t,r),this.connectorType=\"coinbase_wallet\",this.displayName=\"Coinbase Wallet\",this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),this.subscribeListeners(),this.connectionOptions=n.coinbaseWallet.connectionOptions??\"all\",this.walletClientType=\"smartWalletOnly\"===this.connectionOptions?\"coinbase_smart_wallet\":\"coinbase_wallet\",\"coinbase_smart_wallet\"===this.walletClientType&&(this.displayName=\"Coinbase Smart Wallet\"),!rA){let r=[t.id].concat(e.map(e=>e.id)),n=\"eoaOnly\"!==this.connectionOptions?r.filter(e=>!rB.includes(e)):[];n.length>0&&console.warn(`The following configured chains are not supported by the Coinbase Smart Wallet: ${n.join(\", \")}`),rA=new x.ZP({appName:i,appLogoUrl:a,appChainIds:r})}this.proxyProvider.setWalletProvider(rq(rA,this.connectionOptions))}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return e.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}disconnect(){this.proxyProvider.walletProvider.disconnect(),this.onDisconnect()}get walletBranding(){return{name:this.displayName,icon:rT,id:\"com.coinbase.wallet\"}}async promptConnection(){try{let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");this.connected=!0,await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}},rG=({...e})=>(0,m.jsx)(\"svg\",{width:\"15\",height:\"15\",viewBox:\"0 0 15 15\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...e,children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M2.37126 11.0323C2.37126 12.696 3.90598 13.4421 5.40654 13.4468C8.91753 13.4468 12.8021 11.2897 12.7819 7.67984C12.7673 5.07728 10.3748 2.86167 7.54357 2.88296C4.8495 2.88296 2.21821 4.6411 2.21803 7.03628C2.21803 7.67951 2.58722 8.30178 3.55231 8.37184C2.74763 9.16826 2.37126 10.1225 2.37126 11.0323ZM7.55283 8.68012C8.11562 8.68012 8.57186 8.13217 8.57186 7.45624C8.57186 6.78032 8.11562 6.23237 7.55283 6.23237C6.99003 6.23237 6.53379 6.78032 6.53379 7.45624C6.53379 8.13217 6.99003 8.68012 7.55283 8.68012ZM10.4747 8.68012C11.0375 8.68012 11.4937 8.13217 11.4937 7.45625C11.4937 6.78032 11.0375 6.23237 10.4747 6.23237C9.91186 6.23237 9.45562 6.78032 9.45562 7.45625C9.45562 8.13217 9.91186 8.68012 10.4747 8.68012Z\",fill:e.color||\"var(--privy-color-foreground-3)\"})}),rK=class extends rH{constructor(e,t,r,n,i=!1){super(\"privy\",t,r,n),this.connectorType=\"embedded\",this.proxyProvider=e,i&&(this.connectorType=\"embedded_imported\"),this.subscribeListeners()}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return await this.isConnected()?(await this.proxyProvider.request({method:\"wallet_switchEthereumChain\",params:[tx(e?.chainId||\"0x1\")]}),this.getConnectedWallet()):null}get walletBranding(){return{name:\"Privy Wallet\",icon:rG,id:\"io.privy.wallet\"}}disconnect(){this.connected=!1}async promptConnection(){}},rY=({style:e,...t})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",stroke:\"currentColor\",strokeWidth:1.5,viewBox:\"0 0 24 24\",style:{...e},...t,children:(0,m.jsx)(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M9 17.25v1.007a3 3 0 01-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0115 18.257V17.25m6-12V15a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 15V5.25m18 0A2.25 2.25 0 0018.75 3H5.25A2.25 2.25 0 003 5.25m18 0V12a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 12V5.25\"})}),rQ=({style:e,...t})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlSpace:\"preserve\",x:0,y:0,viewBox:\"0 0 318.6 318.6\",width:\"28\",height:\"28\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"style\",{children:\".s1{stroke-linecap:round;stroke-linejoin:round}.s2{fill:#e4761b;stroke:#e4761b}.s3{fill:#f6851b;stroke:#f6851b}\"}),(0,m.jsx)(\"path\",{fill:\"#e2761b\",stroke:\"#e2761b\",className:\"s1\",d:\"m274.1 35.5-99.5 73.9L193 65.8z\"}),(0,m.jsx)(\"path\",{d:\"m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z\",className:\"s1 s2\"}),(0,m.jsx)(\"path\",{d:\"m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z\",className:\"s1 s2\"}),(0,m.jsx)(\"path\",{fill:\"#d7c1b3\",stroke:\"#d7c1b3\",className:\"s1\",d:\"m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z\"}),(0,m.jsx)(\"path\",{fill:\"#233447\",stroke:\"#233447\",className:\"s1\",d:\"m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z\"}),(0,m.jsx)(\"path\",{fill:\"#cd6116\",stroke:\"#cd6116\",className:\"s1\",d:\"m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z\"}),(0,m.jsx)(\"path\",{fill:\"#e4751f\",stroke:\"#e4751f\",className:\"s1\",d:\"m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z\"}),(0,m.jsx)(\"path\",{d:\"m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z\",className:\"s3\"}),(0,m.jsx)(\"path\",{fill:\"#c0ad9e\",stroke:\"#c0ad9e\",className:\"s1\",d:\"m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z\"}),(0,m.jsx)(\"path\",{fill:\"#161616\",stroke:\"#161616\",className:\"s1\",d:\"m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z\"}),(0,m.jsx)(\"path\",{fill:\"#763d16\",stroke:\"#763d16\",className:\"s1\",d:\"m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z\"}),(0,m.jsx)(\"path\",{d:\"m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z\",className:\"s3\"})]}),rX=({style:e,...t})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"108\",height:\"108\",viewBox:\"0 0 108 108\",fill:\"none\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"108\",height:\"108\",rx:\"23\",fill:\"#AB9FF2\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M46.5267 69.9229C42.0054 76.8509 34.4292 85.6182 24.348 85.6182C19.5824 85.6182 15 83.6563 15 75.1342C15 53.4305 44.6326 19.8327 72.1268 19.8327C87.768 19.8327 94 30.6846 94 43.0079C94 58.8258 83.7355 76.9122 73.5321 76.9122C70.2939 76.9122 68.7053 75.1342 68.7053 72.314C68.7053 71.5783 68.8275 70.7812 69.0719 69.9229C65.5893 75.8699 58.8685 81.3878 52.5754 81.3878C47.993 81.3878 45.6713 78.5063 45.6713 74.4598C45.6713 72.9884 45.9768 71.4556 46.5267 69.9229ZM83.6761 42.5794C83.6761 46.1704 81.5575 47.9658 79.1875 47.9658C76.7816 47.9658 74.6989 46.1704 74.6989 42.5794C74.6989 38.9885 76.7816 37.1931 79.1875 37.1931C81.5575 37.1931 83.6761 38.9885 83.6761 42.5794ZM70.2103 42.5795C70.2103 46.1704 68.0916 47.9658 65.7216 47.9658C63.3157 47.9658 61.233 46.1704 61.233 42.5795C61.233 38.9885 63.3157 37.1931 65.7216 37.1931C68.0916 37.1931 70.2103 38.9885 70.2103 42.5795Z\",fill:\"#FFFDF8\"})]}),rJ=class extends rH{constructor(e,t,r,n,i){super(i||\"unknown\",e,t,r),this.connectorType=\"injected\",this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),this.subscribeListeners(),this.providerDetail=n;let a=n.provider;this.proxyProvider.setWalletProvider(a)}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return e.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}get walletBranding(){return{name:this.providerDetail.info.name,icon:this.providerDetail.info.icon,id:this.providerDetail.info.rdns}}disconnect(){console.warn(`Programmatic disconnect with ${this.providerDetail.info.name} is not yet supported.`)}async promptConnection(){try{let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}},r0=class extends rH{constructor(e,t,r,n,i){super(i??\"unknown\",e,t,r),this.connectorType=\"injected\",eH(this,rS,void 0),this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),this.subscribeListeners(),this.proxyProvider.setWalletProvider(n),\"metamask\"===i?eB(this,rS,{name:\"MetaMask\",icon:rQ,id:\"io.metamask\"}):\"phantom\"===i&&eB(this,rS,{name:\"Phantom\",icon:rX,id:\"phantom\"})}async initialize(){await this.syncAccounts(),this.initialized=!0,this.emit(\"initialized\")}async connect(e){return e.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}get walletBranding(){return e$(this,rS)??{name:\"Browser Extension\",icon:rY,id:\"extension\"}}disconnect(){console.warn(\"Programmatic disconnect with browser wallets is not yet supported.\")}async promptConnection(){try{let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}};rS=new WeakMap;var r1=class extends rJ{disconnect(){console.warn(\"MetaMask does not support programmatic disconnect.\")}async promptConnection(){try{s.tq||await this.proxyProvider.request({method:\"wallet_requestPermissions\",params:[{eth_accounts:{}}]});let e=await this.proxyProvider.request({method:\"eth_requestAccounts\"});if(!e||0===e.length||!e[0])throw new eQ(\"Unable to retrieve accounts\");await this.syncAccounts([e[0]])}catch(e){throw rO(e)}}},r2=class extends rH{constructor(e,t){super(e,[],t,{}),this.connectorType=\"null\",this.proxyProvider=new rF(void 0,12e4),this.connectorType=e}get walletBranding(){return{name:\"Wallet\",id:\"\"}}async initialize(){this.initialized=!0,this.emit(\"initialized\")}async connect(){throw Error(\"connect called for an uninstalled wallet via the NullConnector\")}disconnect(){throw Error(\"disconnect called for an uninstalled wallet via the NullConnector\")}promptConnection(e){throw Error(`promptConnection called for an uninstalled wallet via the NullConnector for ${e}`)}},r3=class extends r2{constructor(e){super(\"phantom\",e)}get walletBranding(){return{name:\"Phantom\",icon:rX,id:\"phantom\"}}};function r4({src:e,...t}){return(0,m.jsx)(\"img\",{src:e,...t,style:{display:\"none\"}})}var r5={appearance:{landingHeader:\"Log in or sign up\",theme:\"light\",accentColor:\"#676FFF\",walletList:[\"detected_wallets\",\"metamask\",\"coinbase_wallet\",\"rainbow\",\"wallet_connect\"]},walletConnectCloudProjectId:\"34357d3c125c2bcf2ce2bc3309d98715\",rpcConfig:{rpcUrls:{},rpcTimeouts:{}},externalWallets:{coinbaseWallet:{connectionOptions:\"all\"}},captchaEnabled:!1,_render:{standalone:!1},fundingMethodConfig:{moonpay:{useSandbox:!1}}},r6=({input:e})=>{if(!e||!e.primary[0])return;let t=[e.primary[0]],r=[];for(let r of(e.primary.length>4&&console.warn(\"You should not specify greater than 4 login methods in `loginMethodsAndOrder.primary`\"),e.primary.slice(1)))t.includes(r)?console.warn(`Duplicated login method: ${r}`):t.push(r);for(let n of e.overflow??[])t.includes(n)||r.includes(n)?console.warn(`Duplicated login method: ${n}`):r.push(n);return{primary:t,overflow:r}},r7=new Set([\"coinbase_wallet\",\"cryptocom\",\"metamask\",\"okx_wallet\",\"phantom\",\"rainbow\",\"uniswap\",\"zerion\",\"wallet_connect\",\"detected_wallets\",\"rabby_wallet\"]),r8=e=>r7.has(e),r9=(e,t,r)=>r.indexOf(e)===t,ne=({input:e,overrides:t})=>t?t.primary.concat(t.overflow??[]).filter(r8).filter(r9):e?e.filter(r8).filter(r9):r5.appearance.walletList,nt={id:1,network:\"homestead\",name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://eth-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://eth-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://mainnet.infura.io/v3\"],webSocket:[\"wss://mainnet.infura.io/ws/v3\"]},default:{http:[\"https://cloudflare-eth.com\"]},public:{http:[\"https://cloudflare-eth.com\"]}},blockExplorers:{etherscan:{name:\"Etherscan\",url:\"https://etherscan.io\"},default:{name:\"Etherscan\",url:\"https://etherscan.io\"}}},nr=[{id:42161,name:\"Arbitrum One\",network:\"arbitrum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://arbitrum-mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://arb-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://arb-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://arbitrum-mainnet.infura.io/v3\"],webSocket:[\"wss://arbitrum-mainnet.infura.io/ws/v3\"]},default:{http:[\"https://arb1.arbitrum.io/rpc\"]},public:{http:[\"https://arb1.arbitrum.io/rpc\"]}},blockExplorers:{etherscan:{name:\"Arbiscan\",url:\"https://arbiscan.io\"},default:{name:\"Arbiscan\",url:\"https://arbiscan.io\"}}},{id:421613,name:\"Arbitrum Goerli\",network:\"arbitrum-goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"AGOR\",decimals:18},rpcUrls:{default:{http:[\"https://goerli-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://goerli.arbiscan.io/\"}},testnet:!0},{id:421614,name:\"Arbitrum Sepolia\",network:\"arbitrum-sepolia\",nativeCurrency:{name:\"Arbitrum Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://arbitrum-sepolia.rpc.privy.systems\"]},default:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]},public:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia-explorer.arbitrum.io\"}},testnet:!0},{id:5,network:\"goerli\",name:\"Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ankr.com/eth_goerli\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.etherscan.io\"}},testnet:!0},{id:11155111,network:\"sepolia\",name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"SEP\",decimals:18},rpcUrls:{privy:{http:[\"https://sepolia.rpc.privy.systems\"]},alchemy:{http:[\"https://eth-sepolia.g.alchemy.com/v2\"],webSocket:[\"wss://eth-sepolia.g.alchemy.com/v2\"]},infura:{http:[\"https://sepolia.infura.io/v3\"],webSocket:[\"wss://sepolia.infura.io/ws/v3\"]},default:{http:[\"https://rpc.sepolia.org\"]},public:{http:[\"https://rpc.sepolia.org\"]}},blockExplorers:{etherscan:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\"},default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\"}},testnet:!0},nt,{id:10,name:\"OP Mainnet\",network:\"optimism\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://optimism-mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://opt-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://opt-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://optimism-mainnet.infura.io/v3\"],webSocket:[\"wss://optimism-mainnet.infura.io/ws/v3\"]},default:{http:[\"https://mainnet.optimism.io\"]},public:{http:[\"https://mainnet.optimism.io\"]}},blockExplorers:{etherscan:{name:\"Etherscan\",url:\"https://optimistic.etherscan.io\"},default:{name:\"Optimism Explorer\",url:\"https://explorer.optimism.io\"}}},{id:420,name:\"Optimism Goerli Testnet\",network:\"optimism-goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.optimism.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli-optimism.etherscan.io\"}},testnet:!0},{id:11155420,name:\"Optimism Sepolia\",network:\"optimism-sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://optimism-sepolia.rpc.privy.systems\"]},default:{http:[\"https://sepolia.optimism.io\"]},public:{http:[\"https://sepolia.optimism.io\"]},infura:{http:[\"https://optimism-sepolia.infura.io/v3\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://optimism-sepolia.blockscout.com\"}},testnet:!0},{id:137,name:\"Polygon Mainnet\",network:\"matic\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{privy:{http:[\"https://polygon-mainnet.rpc.privy.systems\"]},alchemy:{http:[\"https://polygon-mainnet.g.alchemy.com/v2\"],webSocket:[\"wss://polygon-mainnet.g.alchemy.com/v2\"]},infura:{http:[\"https://polygon-mainnet.infura.io/v3\"],webSocket:[\"wss://polygon-mainnet.infura.io/ws/v3\"]},default:{http:[\"https://polygon-rpc.com\"]},public:{http:[\"https://polygon-rpc.com\"]}},blockExplorers:{etherscan:{name:\"PolygonScan\",url:\"https://polygonscan.com\"},default:{name:\"PolygonScan\",url:\"https://polygonscan.com\"}}},{id:80001,name:\"Mumbai\",network:\"maticmum\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://matic-mumbai.chainstacklabs.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://mumbai.polygonscan.com\"}},testnet:!0},{id:42220,name:\"Celo Mainnet\",network:\"celo\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"CELO\"},rpcUrls:{default:{http:[\"https://forno.celo.org\"]},infura:{http:[\"https://celo-mainnet.infura.io/v3\"]},public:{http:[\"https://forno.celo.org\"]}},blockExplorers:{default:{name:\"Celo Explorer\",url:\"https://explorer.celo.org/mainnet\"},etherscan:{name:\"CeloScan\",url:\"https://celoscan.io\"}},testnet:!1},{id:44787,name:\"Celo Alfajores Testnet\",network:\"celo-alfajores\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"CELO\"},rpcUrls:{default:{http:[\"https://alfajores-forno.celo-testnet.org\"]},infura:{http:[\"https://celo-alfajores.infura.io/v3\"]},public:{http:[\"https://alfajores-forno.celo-testnet.org\"]}},blockExplorers:{default:{name:\"Celo Explorer\",url:\"https://explorer.celo.org/alfajores\"},etherscan:{name:\"CeloScan\",url:\"https://alfajores.celoscan.io/\"}},testnet:!0},{id:314,name:\"Filecoin - Mainnet\",network:\"filecoin-mainnet\",nativeCurrency:{decimals:18,name:\"filecoin\",symbol:\"FIL\"},rpcUrls:{default:{http:[\"https://api.node.glif.io/rpc/v1\"]},public:{http:[\"https://api.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filfox\",url:\"https://filfox.info/en\"},filscan:{name:\"Filscan\",url:\"https://filscan.io\"},filscout:{name:\"Filscout\",url:\"https://filscout.io/en\"},glif:{name:\"Glif\",url:\"https://explorer.glif.io\"}}},{id:314159,name:\"Filecoin - Calibration testnet\",network:\"filecoin-calibration\",nativeCurrency:{decimals:18,name:\"testnet filecoin\",symbol:\"tFIL\"},rpcUrls:{default:{http:[\"https://api.calibration.node.glif.io/rpc/v1\"]},public:{http:[\"https://api.calibration.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filscan\",url:\"https://calibration.filscan.io\"}}},{id:8453,network:\"base\",name:\"Base\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://base-mainnet.rpc.privy.systems\"]},blast:{http:[\"https://base-mainnet.blastapi.io\"],webSocket:[\"wss://base-mainnet.blastapi.io\"]},default:{http:[\"https://mainnet.base.org\"]},public:{http:[\"https://mainnet.base.org\"]}},blockExplorers:{etherscan:{name:\"Basescan\",url:\"https://basescan.org\"},default:{name:\"Basescan\",url:\"https://basescan.org\"}},testnet:!0},{id:84531,network:\"base-goerli\",name:\"Base Goerli Testnet\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://goerli.basescan.org\"}},testnet:!0},{id:84532,network:\"base-sepolia\",name:\"Base Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{privy:{http:[\"https://base-sepolia.rpc.privy.systems\"]},default:{http:[\"https://sepolia.base.org\"]},public:{http:[\"https://sepolia.base.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://base-sepolia.blockscout.com\"}},testnet:!0},{id:80085,network:\"berachain-artio\",name:\"Berachain Artio\",nativeCurrency:{name:\"BERA\",symbol:\"BERA\",decimals:18},rpcUrls:{default:{http:[\"https://berachain-artio.rpc.privy.systems\"]},public:{http:[\"https://berachain-artio.rpc.privy.systems\"]}},blockExplorers:{default:{name:\"Beratrail\",url:\"https://artio.beratrail.io\"}},testnet:!0},{id:42,network:\"lukso\",name:\"LUKSO\",nativeCurrency:{name:\"LUKSO\",symbol:\"LYX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.lukso.network\"],webSocket:[\"wss://ws-rpc.mainnet.lukso.network\"]}},blockExplorers:{default:{name:\"LUKSO Mainnet Explorer\",url:\"https://explorer.execution.mainnet.lukso.network\"}}},{id:59144,network:\"linea-mainnet\",name:\"Linea Mainnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.linea.build\"],webSocket:[\"wss://rpc.linea.build\"]},public:{http:[\"https://rpc.linea.build\"],webSocket:[\"wss://rpc.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://lineascan.build\"},etherscan:{name:\"Etherscan\",url:\"https://lineascan.build\"}},testnet:!1},{id:59140,network:\"linea-testnet\",name:\"Linea Goerli Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{infura:{http:[\"https://linea-goerli.infura.io/v3\"],webSocket:[\"wss://linea-goerli.infura.io/ws/v3\"]},default:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]},public:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\"},etherscan:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\"}},testnet:!0},{id:43114,name:\"Avalanche\",network:\"avalanche\",nativeCurrency:{decimals:18,name:\"Avalanche\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax.network/ext/bc/C/rpc\"]},public:{http:[\"https://api.avax.network/ext/bc/C/rpc\"]}},blockExplorers:{etherscan:{name:\"SnowTrace\",url:\"https://snowtrace.io\"},default:{name:\"SnowTrace\",url:\"https://snowtrace.io\"}}},{id:43113,name:\"Avalanche Fuji\",network:\"avalanche-fuji\",nativeCurrency:{decimals:18,name:\"Avalanche Fuji\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax-test.network/ext/bc/C/rpc\"]},public:{http:[\"https://api.avax-test.network/ext/bc/C/rpc\"]}},blockExplorers:{etherscan:{name:\"SnowTrace\",url:\"https://testnet.snowtrace.io\"},default:{name:\"SnowTrace\",url:\"https://testnet.snowtrace.io\"}},testnet:!0},{id:7777777,name:\"Zora\",network:\"zora\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zora.energy\"],webSocket:[\"wss://rpc.zora.energy\"]},public:{http:[\"https://rpc.zora.energy\"],webSocket:[\"wss://rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.zora.energy\"}}},{id:999,name:\"Zora Goerli Testnet\",network:\"zora-testnet\",nativeCurrency:{decimals:18,name:\"Zora Goerli\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet.rpc.zora.energy\"],webSocket:[\"wss://testnet.rpc.zora.energy\"]},public:{http:[\"https://testnet.rpc.zora.energy\"],webSocket:[\"wss://testnet.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://testnet.explorer.zora.energy\"}},testnet:!0},{id:999999999,name:\"Zora Sepolia\",network:\"zora-sepolia\",nativeCurrency:{decimals:18,name:\"Zora Sepolia\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia.rpc.zora.energy\"],webSocket:[\"wss://sepolia.rpc.zora.energy\"]},public:{http:[\"https://sepolia.rpc.zora.energy\"],webSocket:[\"wss://sepolia.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Zora Sepolia Explorer\",url:\"https://sepolia.explorer.zora.energy/\"}},testnet:!0},{id:17e3,name:\"Holesky\",network:\"holesky\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://ethereum-holesky.publicnode.com\"]},public:{http:[\"https://ethereum-holesky.publicnode.com\"]}},blockExplorers:{etherscan:{name:\"EtherScan\",url:\"https://holesky.etherscan.io\"},default:{name:\"EtherScan\",url:\"https://holesky.etherscan.io\"}}},{id:690,name:\"Redstone\",network:\"redstone\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.redstonechain.com\"]},public:{http:[\"https://rpc.redstonechain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.redstone.xyz/\"}}},{id:17069,name:\"Garnet Holesky\",network:\"garnet-holesky\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.garnetchain.com\"]},public:{http:[\"https://rpc.garnetchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.garnetchain.com\"}}},{id:17001,name:\"Redstone Holesky\",network:\"redstone-holesky\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.holesky.redstone.xyz\"]},public:{http:[\"https://rpc.holesky.redstone.xyz\"]}},blockExplorers:{etherscan:{name:\"EtherScan\",url:\"https://explorer.holesky.redstone.xyz\"},default:{name:\"EtherScan\",url:\"https://explorer.holesky.redstone.xyz\"}}}];nr.map(e=>e.id);var nn=\"#FFFFFF\";function ni(e,t){let r=Math.max(0,Math.min(1,e.toHsl().l+t));return(0,b.Z)({...e.toHsl(),l:r})}function na(e,t,r){let n=r?console.warn:()=>{},i,a,o,s,l,c,d,h,u,p,m,g,f,y,w;t?.loginMethods?(i=t.loginMethods.includes(\"email\"),a=t.loginMethods.includes(\"sms\"),s=t.loginMethods.includes(\"wallet\"),l=t.loginMethods.includes(\"google\"),c=t.loginMethods.includes(\"twitter\"),d=t.loginMethods.includes(\"discord\"),u=t.loginMethods.includes(\"spotify\"),p=t.loginMethods.includes(\"instagram\"),h=t.loginMethods.includes(\"tiktok\"),g=t.loginMethods.includes(\"github\"),m=t.loginMethods.includes(\"linkedin\"),f=t.loginMethods.includes(\"apple\"),y=t.loginMethods.includes(\"farcaster\"),w=t.loginMethods.includes(\"telegram\")):(i=e.emailAuth,a=e.smsAuth,s=e.walletAuth,l=e.googleOAuth,c=e.twitterOAuth,d=e.discordOAuth,g=e.githubOAuth,u=e.spotifyOAuth,p=e.instagramOAuth,h=e.tiktokOAuth,m=e.linkedinOAuth,f=e.appleOAuth,y=e.farcasterAuth,w=e.telegramAuth),\"u\">typeof window&&\"function\"!=typeof window.PublicKeyCredential?o=!1:e.passkeyAuth&&(o=!0);let x=[i,a].filter(Boolean),v=[l,c,d,g,u,p,h,m,f,y,w].filter(Boolean),C=[s].filter(Boolean);if(x.length+v.length+C.length===0)throw Error(\"You must enable at least one login method\");let _=t?.appearance?.showWalletLoginFirst!==void 0?t?.appearance?.showWalletLoginFirst:e.showWalletLoginFirst;_&&0===C.length?(n(\"You should only enable `showWalletLoginFirst` when `wallet` logins are also enabled. `showWalletLoginFirst` has been set to false\"),_=!1):_||v.length+x.length!==0||(n(\"You should only disable `showWalletLoginFirst` when `email`, `sms`, or social logins are also enabled. `showWalletLoginFirst` has been set to true\"),_=!0);let j=t?.externalWallets?.walletConnect?.enabled??!0;t?.loginMethods&&t.loginMethodsAndOrder&&n(\"You should only configure one of `loginMethods` or `loginMethodsAndOrder`\");let k=ne({input:t?.appearance?.walletList,overrides:t?.loginMethodsAndOrder}),E=r6({input:t?.loginMethodsAndOrder}),A=t?.intl?.defaultCountry??\"US\",{chains:S,defaultChain:T}=function({additionalChains:e,supportedChains:t,defaultChainFromConfig:r,hasRpcConfigDefined:n}){let i;if(e&&t&&console.warn(\"You should only specify one of `additionalChains` or `supportedChains`. Using `supportedChains`.\"),t){if(0===t.length)throw Error(\"`supportedChains` must contain at least one chain\");t.filter(e=>e.rpcUrls.privyWalletOverride).length>0&&n&&console.warn(\"You have specified at least one `supportedChain` with `privyWalletOverride` but also have `rpcConfig` defined. The `rpcConfig` will be ignored. `rpcConfig` is deprecated and you should use `privyWalletOverride` in a `supportedChain`.\"),i=t.map(e=>e.rpcUrls.privyWalletOverride?e:nr.find(t=>t.id===e.id)??e)}else i=nr.concat(e??[]);let a=t?i[0]:nt,o=r??a;if(!i.find(e=>e.id===o.id))throw Error(\"`defaultChain` must be included in `supportedChains`\");return{chains:i,defaultChain:o}}({additionalChains:t?.additionalChains,supportedChains:t?.supportedChains,defaultChainFromConfig:t?.defaultChain,hasRpcConfigDefined:Object.keys(t?.rpcConfig?.rpcUrls??{}).length>0}),P=!!t?.defaultChain,N=t?.customAuth?.getCustomAccessToken&&t?.customAuth?.enabled!==!1,R,M=!(e.enforceWalletUis??!0);if(R=e.legacyWalletUiConfig??!0?N?t?.embeddedWallets?.noPromptOnSignature??!0:t?.embeddedWallets?.noPromptOnSignature??M:M,t?.embeddedWallets?.waitForTransactionConfirmation===!1&&!0!==R)throw Error(\"Overriding `config.embeddedWallets.waitForTransactionConfirmation` requires that you disable wallet UIs in the dashboard.\");let{requireUserPasswordOnCreate:O,...I}=t?.embeddedWallets??{};return{id:e.id,name:e.name,allowlistConfig:e.allowlistConfig,legacyWalletUiConfig:e.legacyWalletUiConfig,appearance:{logo:t?.appearance?.logo??e.logoUrl,landingHeader:t?.appearance?.landingHeader??r5.appearance.landingHeader,loginMessage:\"string\"==typeof t?.appearance?.loginMessage?t?.appearance?.loginMessage.slice(0,100):t?.appearance?.loginMessage,palette:function({backgroundTheme:e,accentHex:t}){var r;let n;switch(e){case\"light\":n=nn;break;case\"dark\":n=\"#1E1E1D\";break;default:n=e}let i=(0,b.Z)(n),a=(0,b.Z)(t),o=(0,b.Z)(\"#51BA81\"),s=(0,b.Z)(\"#FFB74D\"),l=(0,b.Z)(\"#EC6351\"),c=((r=i.getLuminance())<.8&&r>.2&&console.warn(\"Background color is not light or dark enough, which could lead to accessibility issues.\"),r>.5?\"light\":\"dark\"),d=ni(i,\"light\"===c?-.04:.11),h=ni(i,\"light\"===c?-.88:.87),u=ni(i,\"light\"===c?-.7:.75),p=ni(i,\"light\"===c?-.43:.45).desaturate(\"light\"===c?60:20),m=ni(i,\"light\"===c?-.08:.25).desaturate(\"light\"===c?60:20),g=ni(a,.15),f=ni(a,-.06),y=ni(l,.3),w=ni(s,.3),x=(0,b.Z)(a.getLuminance()>.5?\"#040217\":nn),v=ni(o,-.16),C=ni(o,.4);return{colorScheme:c,background:i.toHslString(),background2:d.toHslString(),foreground:h.toHslString(),foreground2:u.toHslString(),foreground3:p.toHslString(),foreground4:m.toHslString(),accent:a.toHslString(),accentLight:g.toHslString(),accentDark:f.toHslString(),foregroundAccent:x.toHslString(),success:o.toHslString(),successDark:v.toHslString(),successLight:C.toHslString(),error:l.toHslString(),errorLight:y.toHslString(),warn:s.toHslString(),warnLight:w.toHslString()}}({backgroundTheme:t?.appearance?.theme??r5.appearance.theme,accentHex:t?.appearance?.accentColor??e.accentColor??r5.appearance.accentColor}),loginGroupPriority:_?\"web3-first\":\"web2-first\",hideDirectWeb2Inputs:!!t?.appearance?.hideDirectWeb2Inputs,walletList:k},loginMethods:{wallet:s,email:i,sms:a,passkey:o,google:l,twitter:c,discord:d,github:g,spotify:u,instagram:p,tiktok:h,linkedin:m,apple:f,farcaster:y,telegram:w},loginMethodsAndOrder:E,legal:{termsAndConditionsUrl:t?.legal?.termsAndConditionsUrl??e.termsAndConditionsUrl,privacyPolicyUrl:t?.legal?.privacyPolicyUrl??e.privacyPolicyUrl,requireUsersAcceptTerms:e.requireUsersAcceptTerms??!1},walletConnectCloudProjectId:t?.walletConnectCloudProjectId??e.walletConnectCloudProjectId??r5.walletConnectCloudProjectId,rpcConfig:{rpcUrls:t?.rpcConfig?.rpcUrls??r5.rpcConfig.rpcUrls,rpcTimeouts:t?.rpcConfig?.rpcTimeouts??r5.rpcConfig.rpcTimeouts},chains:S,defaultChain:T,intl:{defaultCountry:A},shouldEnforceDefaultChainOnConnect:P,captchaEnabled:e.captchaEnabled??r5.captchaEnabled,captchaSiteKey:e.captchaSiteKey,externalWallets:{coinbaseWallet:{connectionOptions:t?.externalWallets?.coinbaseWallet?.connectionOptions??r5.externalWallets.coinbaseWallet.connectionOptions},walletConnect:{enabled:j}},embeddedWallets:{...e.embeddedWalletConfig,...\"boolean\"==typeof O?{requireUserOwnedRecoveryOnCreate:O}:{},...N?{createOnLogin:\"all-users\",requireUserOwnedRecoveryOnCreate:!1,userOwnedRecoveryOptions:[\"user-passcode\"]}:{},waitForTransactionConfirmation:!0,priceDisplay:{primary:\"fiat-currency\",secondary:\"native-token\"},...I,noPromptOnSignature:R},mfa:{methods:e.mfaMethods??[],noPromptOnMfaRequired:t?.mfa?.noPromptOnMfaRequired??!1},customAuth:N?{enabled:!0,...t.customAuth}:void 0,loginConfig:{twitterOAuthOnMobileEnabled:e.twitterOAuthOnMobileEnabled??!1,telegramAuthConfiguration:e.telegramAuthConfiguration},headless:!!t?.headless,render:{standalone:t?._render?.standalone??r5._render.standalone},fundingConfig:e.fundingConfig,fundingMethodConfig:{...t?.fundingMethodConfig??r5.fundingMethodConfig,moonpay:{...t?.fundingMethodConfig?.moonpay??r5.fundingMethodConfig.moonpay,useSandbox:t?.fundingMethodConfig?.moonpay.useSandbox??t?.fiatOnRamp?.useSandbox??r5.fundingMethodConfig.moonpay.useSandbox}}}}var no=function(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t=0,i;t<e.length;t++)r=Math.imul(r^(i=e.charCodeAt(t)),2654435761),n=Math.imul(n^i,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),4294967296*(2097151&(n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},ns={showWalletLoginFirst:!0,allowlistConfig:{errorTitle:null,errorDetail:null,errorCtaText:null,errorCtaLink:null},walletAuth:!0,emailAuth:!0,smsAuth:!1,googleOAuth:!1,twitterOAuth:!1,discordOAuth:!1,githubOAuth:!1,linkedinOAuth:!1,appleOAuth:!1,termsAndConditionsUrl:null,privacyPolicyUrl:null,embeddedWalletConfig:{createOnLogin:\"off\",requireUserOwnedRecoveryOnCreate:!1,userOwnedRecoveryOptions:[\"user-passcode\"]},fiatOnRampEnabled:!1,captchaEnabled:!1,captchaSiteKey:\"\"},nl=na(ns,void 0,!1),nc=(0,o.createContext)({appConfig:nl,isServerConfigLoaded:!1}),nd=({children:e,legacyCreateEmbeddedWalletFlag:t,client:r,clientConfig:n})=>{let[i,a]=(0,o.useState)(null),s=(0,o.useMemo)(()=>na(i??ns,n,!!i),[i,n]);return(0,o.useEffect)(()=>{if(!i)return;let e=function(e,t){if(!e)return{legacyCreateEmbeddedWalletFlag:t};let{appearance:r,additionalChains:n,supportedChains:i,defaultChain:a,...o}=e;return{...o,...n?{additionalChains:n.map(e=>e.id)}:void 0,...i?{supportedChains:i.map(e=>e.id)}:void 0,...a?{defaultChain:a.id}:void 0,legacyCreateEmbeddedWalletFlag:t}}(n,t),a=no(JSON.stringify(e)).toString(),o=`privy:sent:${i.id}:${a}`;localStorage.getItem(o)||(r.createAnalyticsEvent({eventName:\"sdk_initialize\",payload:e}),localStorage.setItem(o,\"t\"))},[n,t,i]),(0,o.useEffect)(()=>{i||(async()=>{try{let e=await r.getServerConfig();e.customApiUrl&&r.updateApiUrl(e.customApiUrl),a(e)}catch(e){console.warn(\"Error generating app config: \",e)}})()},[]),(0,m.jsx)(nc.Provider,{value:{appConfig:s,isServerConfigLoaded:!!i},children:e})},nh=()=>{let{appConfig:e}=(0,o.useContext)(nc);return e},nu=()=>{let{isServerConfigLoaded:e}=(0,o.useContext)(nc);return e},np=()=>{throw Error(\"You need to wrap your application with the <PrivyProvider> initialized with your app id.\")},nm=(0,o.createContext)({ready:!1,app:nl,currentScreen:null,lastScreen:null,navigate:np,navigateBack:np,resetNavigation:np,setModalData:np,onUserCloseViaDialogOrKeybindRef:void 0}),ng=[\"LANDING\",\"CONNECT_ONLY_LANDING_SCREEN\",null],nf=e=>{let t=nh(),r=e.authenticated,[n,i]=(0,o.useState)(e.initialScreen);(0,o.useEffect)(()=>{r||ng.includes(e.initialScreen)||e.setInitialScreen(null)},[r]);let a=(0,o.useRef)(null);(0,o.useEffect)(()=>{e.open||(a.current=null)},[e.open]),(0,o.useEffect)(()=>{a.current=null},[e.initialScreen]);let s={ready:!!t.id,app:t,data:e.data,setModalData:e.setModalData,currentScreen:e.initialScreen,lastScreen:n,navigate:(t,r=!0)=>{e.setInitialScreen(t),r&&i(e.initialScreen)},navigateBack:()=>{e.setInitialScreen(n)},resetNavigation:()=>{e.setInitialScreen(null),i(null)},onUserCloseViaDialogOrKeybindRef:a};return(0,m.jsxs)(nm.Provider,{value:s,children:[(\"string\"==typeof t.appearance.logo||t.appearance.logo?.type===\"img\")&&(0,m.jsx)(r4,{src:\"string\"==typeof t.appearance.logo?t.appearance.logo:t.appearance.logo.props.src}),e.children]})},ny=()=>(0,o.useContext)(nm),nw=({style:e,...t})=>{let{app:r}=ny();return(0,m.jsxs)(\"svg\",{width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"28px\",width:\"28px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"28\",height:\"28\",rx:\"3\",fill:r?.appearance.palette.colorScheme===\"dark\"?\"#3396ff\":\"#141414\"}),(0,m.jsx)(\"g\",{clipPath:\"url(#clip0_1765_9946)\",children:(0,m.jsx)(\"path\",{d:\"M8.09448 10.3941C11.3558 7.20196 16.6442 7.20196 19.9055 10.3941L20.2982 10.7782C20.3369 10.8157 20.3677 10.8606 20.3887 10.9102C20.4097 10.9599 20.4206 11.0132 20.4206 11.0671C20.4206 11.121 20.4097 11.1744 20.3887 11.224C20.3677 11.2737 20.3369 11.3186 20.2982 11.3561L18.9554 12.6702C18.9158 12.7086 18.8628 12.7301 18.8077 12.7301C18.7526 12.7301 18.6996 12.7086 18.66 12.6702L18.1198 12.1415C15.8448 9.91503 12.1557 9.91503 9.88015 12.1415L9.30167 12.7075C9.26207 12.7459 9.20909 12.7673 9.15395 12.7673C9.0988 12.7673 9.04582 12.7459 9.00622 12.7075L7.66346 11.3934C7.62475 11.3559 7.59397 11.3109 7.57295 11.2613C7.55193 11.2117 7.5411 11.1583 7.5411 11.1044C7.5411 11.0505 7.55193 10.9971 7.57295 10.9475C7.59397 10.8979 7.62475 10.8529 7.66346 10.8154L8.09448 10.3941ZM22.6829 13.1115L23.8776 14.2814C23.9163 14.319 23.9471 14.3639 23.9681 14.4135C23.9892 14.4632 24 14.5165 24 14.5704C24 14.6243 23.9892 14.6777 23.9681 14.7273C23.9471 14.777 23.9163 14.8219 23.8776 14.8594L18.4893 20.1332C18.4102 20.2101 18.3042 20.2531 18.1938 20.2531C18.0835 20.2531 17.9775 20.2101 17.8984 20.1332L14.0743 16.3901C14.0545 16.3708 14.0279 16.36 14.0003 16.36C13.9726 16.36 13.9461 16.3708 13.9263 16.3901L10.1021 20.1332C10.023 20.2101 9.91703 20.2531 9.8067 20.2531C9.69636 20.2531 9.59038 20.2101 9.51124 20.1332L4.12236 14.8594C4.08365 14.8219 4.05287 14.777 4.03185 14.7273C4.01083 14.6777 4 14.6243 4 14.5704C4 14.5165 4.01083 14.4632 4.03185 14.4135C4.05287 14.3639 4.08365 14.319 4.12236 14.2814L5.31767 13.1115C5.39678 13.0348 5.50265 12.9919 5.61285 12.9919C5.72305 12.9919 5.82892 13.0348 5.90803 13.1115L9.73216 16.8546C9.75194 16.874 9.7785 16.8848 9.80616 16.8848C9.83381 16.8848 9.86037 16.874 9.88015 16.8546L13.7043 13.1115C13.7834 13.0346 13.8894 12.9916 13.9997 12.9916C14.1101 12.9916 14.216 13.0346 14.2952 13.1115L18.1198 16.8546C18.1396 16.874 18.1662 16.8848 18.1938 16.8848C18.2215 16.8848 18.2481 16.874 18.2678 16.8546L22.092 13.1115C22.1711 13.0346 22.2771 12.9916 22.3874 12.9916C22.4977 12.9916 22.6037 13.0346 22.6829 13.1115Z\",fill:\"white\"})}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_1765_9946\",children:(0,m.jsx)(\"rect\",{width:\"20\",height:\"12.2531\",fill:\"white\",transform:\"translate(4 8)\"})})})]})},nx=class extends rH{constructor(e,t,r,n,i,a,o,s){super(s||\"unknown\",r,n,t),this.connectorType=\"wallet_connect_v2\",this.privyAppId=a,this.privyAppName=o,this.walletConnectCloudProjectId=e,this.rpcConfig=t,this.shouldEnforceDefaultChainOnConnect=i,this.proxyProvider=new rF(void 0,this.rpcTimeoutDuration),s&&(this.walletEntry=tS[s],this.walletClientType=s)}async initialize(){let e=await this.createProvider();if(this.provider=e,this.proxyProvider.setWalletProvider(e),this.subscribeListeners(),e.session){if(this.walletProvider?.session?.peer.metadata.url){let e=tA(this.walletProvider?.session?.peer.metadata.url);this.walletEntry=e?.entry,this.walletClientType=e?.walletClientType||\"unknown\"}this.connected=!0,await this.syncAccounts()}this.initialized=!0,this.emit(\"initialized\");let{WalletConnectModal:t}=await r.e(318).then(r.bind(r,55318));this.modal=new t({projectId:this.walletConnectCloudProjectId,themeVariables:{\"--wcm-z-index\":\"1000000\"}}),this.modal.subscribeModal(e=>{e.open||this.walletProvider?.session||!this.onQrModalClosed||this.onQrModalClosed()})}async connect(e){return e.showPrompt&&await this.promptConnection(),this.getConnectedWallet()}async isConnected(){return!!this.walletProvider?.connected}get walletBranding(){return\"metamask\"===this.walletClientType?{name:\"MetaMask\",icon:rQ,id:\"io.metamask\"}:{name:tw(this.walletProvider?.session?.peer.metadata.name||\"\")||\"WalletConnect\",icon:this.walletProvider?.session?.peer.metadata.icons?.[0]||nw,id:this.walletProvider?.session?.peer.metadata.name.toLowerCase()||\"wallet_connect_v2\"}}async resetConnection(e){this.walletProvider&&this.walletProvider.connected&&(await this.walletProvider.disconnect(),this.walletProvider.signer.session=void 0,this.walletEntry=tS[e],this.walletClientType=e,this.redirectUri=void 0,this.fallbackUniversalRedirectUri=void 0,function(){try{localStorage.removeItem(tP)}catch{}}(),this.onDisconnect())}async promptConnection(){if(this.provider)return new Promise((e,t)=>{this.onQrModalClosed=()=>{t(new rM)},(async()=>{let t=\"\",r=await Promise.race([this.walletProvider?.enable(),this.proxyProvider.walletTimeout()]);if(r?.length&&(t=r[0]),!t||\"\"===t)throw new eQ(\"Unable to retrieve address\");if(this.walletProvider?.session?.peer.metadata.url){let e=tA(this.walletProvider?.session?.peer.metadata.url);this.walletEntry=e?.entry,this.walletClientType=e?.walletClientType||\"unknown\",this.proxyProvider.rpcTimeoutDuration=nC(this.rpcConfig,this.walletClientType)}this.connected=!0,await this.syncAccounts(r),e()})().catch(e=>{if(e){t(rO(e));return}t(new eQ(\"Unknown error during connection\"))}).finally(()=>this.modal?.closeModal())})}disconnect(){this.walletProvider?.disconnect().then(()=>this.onDisconnect()).catch(()=>console.warn(\"Unable to disconnect Wallet Connect provider\"))}get walletProvider(){return this.proxyProvider.walletProvider}setWalletProvider(e){this.proxyProvider.setWalletProvider(e)}async createProvider(){let e={};for(let t of this.chains){let r=tb(t.id,this.chains,this.rpcConfig,this.privyAppId);r&&(e[t.id]=r)}let t=this.shouldEnforceDefaultChainOnConnect?[this.defaultChain.id]:[],r=this.chains.map(e=>e.id),n=await C.Gn.init({projectId:this.walletConnectCloudProjectId,chains:t,optionalChains:r,optionalEvents:C.gy,optionalMethods:C.lI,rpcMap:e,showQrModal:!1,metadata:{description:this.privyAppName,name:this.privyAppName,url:window.location.toString(),icons:[]}});return n.on(\"display_uri\",e=>{if(n.signer.abortPairingAttempt(),s.tq&&this.walletEntry){let{redirect:t,href:r}=function(e,t){let r=tT(t);if(r.deepLink)return tR(r.deepLink,e);if(r.universalLink)return tM(r.universalLink,e);throw new eK(`Unsupported wallet ${t.id}`)}(e,this.walletEntry);(function({href:e,name:t}){try{localStorage.setItem(tP,JSON.stringify({href:e,name:t}))}catch{}})({href:r,name:this.walletEntry.displayName}),this.redirectUri=t;let n=function(e,t){let r=tT(t);if(r.universalLink)return tM(r.universalLink,e)}(e,this.walletEntry);n?.redirect&&(this.fallbackUniversalRedirectUri=n.redirect),tO(t,\"_self\")}else this.modal?.openModal({uri:e,chains:[this.defaultChain.id]})}),n.on(\"connect\",()=>{if(this.modal?.closeModal(),n.session?.peer.metadata.url){let e=tA(n.session?.peer.metadata.url);this.walletEntry=e?.entry,this.walletClientType=e?.walletClientType||\"unknown\"}}),n}async enableProvider(){return this.walletProvider?.connected?Promise.resolve(this.walletProvider.accounts):await this.walletProvider?.enable()}},nv=e=>{let t=localStorage.getItem(\"-walletlink:https://www.walletlink.org:Addresses\")?.split(\" \").filter(e=>y.A7(e)).map(e=>n.Kn(e));return!!t?.length&&!!e?.linkedAccounts.filter(e=>\"wallet\"==e.type&&t.includes(e.address)).length},nC=(e,t)=>e.rpcTimeouts&&e.rpcTimeouts[t]||12e4,nb=class extends w.Z{constructor(e,t,r,n,i,a,o,s,l,c,d){super(),this.getEthereumProvider=()=>{let e=this.wallets[0],t=this.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return e&&t?t.proxyProvider:new rF},this.privyAppId=e,this.walletConnectCloudProjectId=t,this.rpcConfig=r,this.chains=n,this.defaultChain=i,this.walletConnectors=[],this.initialized=!1,this.store=a,this.walletList=o,this.shouldEnforceDefaultChainOnConnect=s,this.externalWalletConfig=l,this.privyAppName=c,this.privyAppLogo=d,this.storedConnections=nS()}get wallets(){let e=new Set,t=this.walletConnectors.flatMap(e=>e.wallets).sort((e,t)=>e.connectedAt&&t.connectedAt?t.connectedAt-e.connectedAt:0).filter(t=>{let r=`${t.address}${t.walletClientType}${t.connectorType}`;return!e.has(r)&&(e.add(r),!0)}),r=t.findIndex(e=>e.address===(this.activeWallet?this.activeWallet:\"unknown\"));return r>=0&&t.unshift(t.splice(r,1)[0]),t}async initialize(){if(this.initialized)return;to.get(tX)&&(to.getKeys().forEach(e=>{e.startsWith(\"walletconnect\")&&to.del(e)}),to.del(tX));let e=tv(this.store,this.walletList,this.externalWalletConfig).then(e=>{e.forEach(({type:e,eip6963InjectedProvider:t,legacyInjectedProvider:r})=>{this.createWalletConnector(\"injected\",e,{eip6963InjectedProvider:t,legacyInjectedProvider:r})})});this.walletList.includes(\"coinbase_wallet\")&&this.createWalletConnector(\"coinbase_wallet\",\"coinbase_wallet\"),!tc()&&this.walletList.includes(\"phantom\")&&this.createWalletConnector(\"phantom\",\"phantom\"),this.externalWalletConfig.walletConnect.enabled&&this.createWalletConnector(\"wallet_connect_v2\",\"unknown\"),await e,this.initialized=!0}findWalletConnector(e,t){return\"wallet_connect_v2\"===e?this.walletConnectors.find(t=>t.connectorType===e)??null:this.walletConnectors.find(r=>r.connectorType===e&&r.walletClientType===t)??null}onInitialized(e){e.wallets.forEach(e=>{let t=this.storedConnections.find(t=>t.address===e.address&&t.connectorType===e.connectorType&&t.walletClientType===e.walletClientType);t&&(e.connectedAt=t.connectedAt)}),this.saveConnectionHistory(),this.emit(\"walletsUpdated\"),this.emit(\"connectorInitialized\")}onWalletsUpdated(e){e.initialized&&(this.saveConnectionHistory(),this.emit(\"walletsUpdated\"))}addEmbeddedWalletConnector(e,t,r,n){let i=this.findWalletConnector(\"embedded\",\"privy\");if(i)i.proxyProvider.walletProxy=e;else{let i=new rK(new rD(e,t,this.rpcConfig,this.chains,n,r.id),this.chains,r,this.rpcConfig);this.addWalletConnector(i)}}addImportedWalletConnector(e,t,r,n){let i=this.findWalletConnector(\"embedded_imported\",\"privy\");if(i)i.proxyProvider.walletProxy=e;else{let i=new rK(new rD(e,t,this.rpcConfig,this.chains,n,r.id),this.chains,r,this.rpcConfig,!0);this.addWalletConnector(i)}}removeEmbeddedWalletConnector(){let e=this.findWalletConnector(\"embedded\",\"privy\");if(e){let t=this.walletConnectors.indexOf(e);this.walletConnectors.splice(t,1),this.saveConnectionHistory(),this.storedConnections=nS(),this.emit(\"walletsUpdated\")}}removeImportedWalletConnector(){let e=this.findWalletConnector(\"embedded_imported\",\"privy\");if(e){let t=this.walletConnectors.indexOf(e);this.walletConnectors.splice(t,1),this.saveConnectionHistory(),this.storedConnections=nS(),this.emit(\"walletsUpdated\")}}async createWalletConnector(e,t,r){let n=this.findWalletConnector(e,t);if(n)return n instanceof nx&&n.resetConnection(t),n;let i=\"injected\"!==e?\"coinbase_wallet\"===e?new rV(this.chains,this.defaultChain,this.rpcConfig,this.externalWalletConfig,this.privyAppName,this.privyAppLogo):\"phantom\"===e?new r3(this.defaultChain):new nx(this.walletConnectCloudProjectId,this.rpcConfig,this.chains,this.defaultChain,this.shouldEnforceDefaultChainOnConnect,this.privyAppId,this.privyAppName,t):\"metamask\"===t&&r?.eip6963InjectedProvider?new r1(this.chains,this.defaultChain,this.rpcConfig,r?.eip6963InjectedProvider,\"metamask\"):\"metamask\"===t&&r?.legacyInjectedProvider?new r0(this.chains,this.defaultChain,this.rpcConfig,r?.legacyInjectedProvider,\"metamask\"):\"phantom\"===t&&r?.legacyInjectedProvider?new r0(this.chains,this.defaultChain,this.rpcConfig,r?.legacyInjectedProvider,\"phantom\"):r?.legacyInjectedProvider&&\"unknown_browser_extension\"===t?new r0(this.chains,this.defaultChain,this.rpcConfig,r?.legacyInjectedProvider):r?.eip6963InjectedProvider?new rJ(this.chains,this.defaultChain,this.rpcConfig,r?.eip6963InjectedProvider,t):void 0;return i&&this.addWalletConnector(i),i||null}addWalletConnector(e){this.walletConnectors.push(e),e.on(\"initialized\",()=>this.onInitialized(e)),e.on(\"walletsUpdated\",()=>this.onWalletsUpdated(e)),e.initialize().catch(e=>{console.debug(\"Failed to initialize connector\",e)})}saveConnectionHistory(){let e=this.wallets.map(e=>({address:e.address,connectorType:e.connectorType,walletClientType:e.walletClientType,connectedAt:e.connectedAt}));to.put(tJ,e)}async activeWalletSign(e){let t=this.wallets,r=t.length>0?t[0]:null;return r?r.sign(e):null}setActiveWallet(e){this.activeWallet=(0,n.Kn)(e),this.emit(\"walletsUpdated\")}};function n_(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n?.address!==i?.address||n?.chainId!==i?.chainId||n?.connectorType!==i?.connectorType||n?.connectedAt!==i?.connectedAt||n?.walletClientType!==i?.walletClientType||n?.isConnected!==i?.isConnected||n?.linked!==i?.linked)return!1}return!0}var nj,nk,nE,nA=e=>e&&\"string\"==typeof e.address&&\"string\"==typeof e.connectorType&&\"string\"==typeof e.walletClientType&&\"number\"==typeof e.connectedAt,nS=()=>{let e=to.get(tJ);return e&&Array.isArray(e)&&e.map(e=>nA(e)).every(Boolean)?e:[]},nT=[e4,e6,e5,e9],nP=class{constructor({appId:e,appClientId:t,client:r,defaults:n}){this.appId=e,this.appClientId=t,this.clientAnalyticsId=r.clientAnalyticsId,this.sdkVersion=\"1.77.0\",this.client=r,this.defaults=n,this.fallbackApiUrl=r.fallbackApiUrl,this.baseFetch=_.Wg.create({baseURL:this.defaults.baseURL,timeout:this.defaults.timeout,retry:3,retryDelay:500,retryStatusCodes:[408,409,425,500,502,503,504],credentials:\"include\",onRequest:async({request:e,options:t})=>{let r=new Headers(t.headers);r.set(\"privy-app-id\",this.appId),this.appClientId&&r.set(\"privy-client-id\",this.appClientId),r.set(\"privy-ca-id\",this.clientAnalyticsId||\"\"),r.set(\"privy-client\",`react-auth:${this.sdkVersion}`);let n=nT.includes(e.toString());if(!r.has(\"authorization\")){let e=await this.client.getAccessToken({disableAutoRefresh:n});null!==e&&r.set(\"authorization\",`Bearer ${e}`)}t.headers=r,t.retryDelay&&(t.retryDelay=3*t.retryDelay)},onRequestError:({error:e})=>{if(e instanceof DOMException&&\"AbortError\"===e.name)throw new eY}})}async get(e,t){try{return await this.baseFetch(e,t)}catch(e){throw eX(e)}}async post(e,t,r){try{return await this.baseFetch(e,{method:\"POST\",...t?{body:t}:{},...r})}catch(e){throw eX(e)}}async delete(e,t){try{return await this.baseFetch(e,{method:\"DELETE\",...t})}catch(e){throw eX(e)}}},nN=e=>({challenge:e.challenge,allowCredentials:e.allow_credentials?.map(e=>({id:e.id,type:e.type,transports:e.transports}))||[],timeout:e.timeout,extensions:{appid:e.extensions?.app_id,credProps:e.extensions?.cred_props,hmacCreateSecret:e.extensions?.hmac_create_secret},userVerification:e.user_verification}),nR=class{static parse(e){try{return new nR(e)}catch{return null}}constructor(e){this.value=e,this._decoded=k.t(e)}get subject(){return this._decoded.sub}get expiration(){return this._decoded.exp}get issuer(){return this._decoded.iss}get audience(){return this._decoded.aud}isExpired(e=0){return Date.now()>=(this.expiration-e)*1e3}},nM=class{constructor(){this.authenticateOnce=new tI(async e=>this._authenticate(e)),this.linkOnce=new tI(async e=>this._link(e)),this.refreshOnce=new tI(this._refresh.bind(this)),this.destroyOnce=new tI(this._destroy.bind(this)),this.forkSessionOnce=new tI(this._forkSession.bind(this))}get token(){try{let e=to.get(tF);return\"string\"==typeof e?new nR(e).value:null}catch(e){return console.error(e),this.destroyLocalState(),null}}get refreshToken(){try{let e=to.get(tD);return\"string\"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}get forkedToken(){try{let e=to.get(tH);return\"string\"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}getProviderAccessToken(e){try{let t=to.get(tV(e));if(\"string\"!=typeof t)return null;{let r=new nR(t);return r.isExpired()?(to.del(tV(e)),null):r.value}}catch(e){return console.error(e),null}}get mightHaveServerCookies(){try{let e=j.Z.get(t$);return void 0!==e&&e.length>0}catch(e){console.error(e)}return!1}hasRefreshCredentials(){return this.mightHaveServerCookies||\"string\"==typeof this.token&&\"string\"==typeof this.refreshToken&&\"deprecated\"!==this.refreshToken}hasRecoveryCredentials(){return\"string\"==typeof this.forkedToken}hasActiveToken(){let e=nR.parse(this.token);return null!==e&&!e.isExpired(30)}authenticate(e){return this.authenticateOnce.execute(e)}link(e){return this.linkOnce.execute(e)}refresh(){return this.refreshOnce.execute()}forkSession(){return this.forkSessionOnce.execute()}destroy(){return this.destroyOnce.execute()}storeProviderAccessToken(e,t){\"string\"==typeof t?to.put(tV(e),t):to.del(tV(e))}async _authenticate(e){try{let t=await e.authenticate(),{user:r,is_new_user:n,oauth_tokens:i}=t;this.handleTokenResponse(t);let a=i?{provider:i.provider,accessToken:i.access_token,accessTokenExpiresInSeconds:i.access_token_expires_in_seconds,refreshToken:i.refresh_token,refreshTokenExpiresInSeconds:i.refresh_token_expires_in_seconds,scopes:i.scopes}:void 0,o=e instanceof tt?\"email\":e instanceof rm?\"sms\":e instanceof rp?\"siwe\":e instanceof t3?\"guest\":e instanceof te?\"custom_auth\":e instanceof t7?e.meta.provider:null;return o&&this.client&&this.client.createAnalyticsEvent({eventName:\"sdk_authenticate\",payload:{method:o,isNewUser:n}}),\"siwe\"===o&&this.client&&this.client.createAnalyticsEvent({eventName:\"sdk_authenticate_siwe\",payload:{connectorType:e.meta.connectorType,walletClientType:e.meta.walletClientType}}),{user:rE(r),isNewUser:n,oAuthTokens:a}}catch(e){throw console.warn(\"Error authenticating session\"),eJ(e)}}async _link(e){try{let t=await e.link(),r=t.oauth_tokens,n=r?{provider:r.provider,accessToken:r.access_token,accessTokenExpiresInSeconds:r.access_token_expires_in_seconds,refreshToken:r.refresh_token,refreshTokenExpiresInSeconds:r.refresh_token_expires_in_seconds,scopes:r.scopes}:void 0;return{user:rE(t),oAuthTokens:n}}catch(e){throw console.warn(\"Error linking account\"),eJ(e)}}async _refresh(){if(!this.api)throw new eK(\"Session has no API instance\");if(!this.client)throw new eK(\"Session has no PrivyClient instance\");await this.client.getAccessToken({disableAutoRefresh:!0});let e=this.token,t=this.refreshToken,r=this.forkedToken;if(this.client.useServerCookies&&!this.mightHaveServerCookies&&this.token&&window.location.origin===this.client.apiUrl)return this.destroyLocalState(),null;try{let n;if(e&&t||this.mightHaveServerCookies){let i={};e&&(i.authorization=`Bearer ${e}`),n=await this.api.post(e4,t?{refresh_token:t}:{},{headers:i}),r&&this.clearForkedToken()}else{if(!r)return null;n=await this.api.post(e6,{refresh_token:r}),this.clearForkedToken()}return this.handleTokenResponse(n),rE(n.user)}catch(e){if(e instanceof eG&&\"missing_or_invalid_token\"===e.privyErrorCode)return console.warn(\"Unable to refresh tokens - token is missing or no longer valid\"),this.destroyLocalState(),null;throw eJ(e)}}handleTokenResponse(e){e.session_update_action?\"set\"===e.session_update_action?(this.storeRefreshToken(e.refresh_token),this.storeToken(e.token),e.identity_token&&this.storeIdentityToken(e.identity_token)):\"clear\"===e.session_update_action?this.destroyLocalState():\"ignore\"===e.session_update_action&&e.token&&(this.storeToken(e.token),e.identity_token&&this.storeIdentityToken(e.identity_token)):(this.storeRefreshToken(e.refresh_token),this.storeToken(e.token),e.identity_token&&this.storeIdentityToken(e.identity_token))}async _destroy(){try{await this.api?.post(e5,{refresh_token:this.refreshToken})}catch{console.warn(\"Error destroying session\")}this.destroyLocalState()}async _forkSession(){if(!this.api)throw new eK(\"Session has no API instance\");let e=this.refreshToken;try{let t=await this.api.post(\"/api/v1/sessions/fork\",{refresh_token:e});return this.storeRefreshToken(t.refresh_token),this.storeToken(t.token),t.new_session_refresh_token}catch(e){throw eJ(e)}}destroyLocalState(){this.storeRefreshToken(null),this.storeToken(null),this.clearIdentityToken(),this.clearForkedToken()}storeToken(e){if(\"string\"==typeof e){let t=to.get(tF);if(to.put(tF,e),!this.client?.useServerCookies){let t=nR.parse(e)?.expiration;j.Z.set(tU,e,{sameSite:\"Strict\",secure:!0,expires:t?new Date(1e3*t):void 0})}t!==e&&this.client?.onStoreToken?.(e)}else to.del(tF),j.Z.remove(tU),this.client?.onDeleteToken?.()}storeRefreshToken(e){\"string\"==typeof e?(to.put(tD,e),this.client?.useServerCookies||j.Z.set(t$,\"t\",{sameSite:\"Strict\",secure:!0,expires:30})):(to.del(tD),j.Z.remove(\"privy-refresh-token\"),j.Z.remove(t$))}storeIdentityToken(e){if(this.client?.useServerCookies)return;to.put(tZ,e);let t=nR.parse(e)?.expiration;j.Z.set(tz,e,{sameSite:\"Strict\",secure:!0,expires:t?new Date(1e3*t):void 0})}clearIdentityToken(){to.del(tZ),j.Z.remove(tz)}clearForkedToken(){to.del(tH)}},nO=class{constructor(e){eH(this,nk),this.apiUrl=e.apiUrl||tL,this.fallbackApiUrl=this.apiUrl,this.useServerCookies=!!e.apiUrl&&e.apiUrl.startsWith(\"https://privy.\"),this.timeout=e.timeout||2e4,this.appId=e.appId,this.appClientId=e.appClientId,this.clientAnalyticsId=eq(this,nk,nE).call(this),nj||(nj=new nM),this.session=nj,this.api=this.generateApi(),this.session.client=this}initializeConnectorManager({walletConnectCloudProjectId:e,rpcConfig:t,chains:r,defaultChain:n,store:i,walletList:a,shouldEnforceDefaultChainOnConnect:o,externalWalletConfig:s,appName:l}){this.connectors||(this.connectors=new nb(this.appId,e,t,r,n,i,a,o,s,l))}sessionHasActiveToken(){return this.session.hasActiveToken()}generateApi(){let e=new nP({appId:this.appId,appClientId:this.appClientId,client:this,defaults:{baseURL:this.apiUrl,timeout:this.timeout}});return this.session.api=e,e}updateApiUrl(e){this.apiUrl=e||this.fallbackApiUrl,this.api=this.generateApi(),e&&(this.useServerCookies=!0)}authenticate(){if(!this.authFlow)throw new eK(\"No auth flow in progress.\");return this.session.authenticate(this.authFlow)}async link(){if(!this.authFlow)throw new eK(\"No auth flow in progress.\");let{oAuthTokens:e}=await this.session.link(this.authFlow);return{user:await this.getAuthenticatedUser(),oAuthTokens:e}}storeProviderAccessToken(e,t){this.session.storeProviderAccessToken(e,t)}getProviderAccessToken(e){return this.session.getProviderAccessToken(e)}async logout(){await this.session.destroy(),this.authFlow=void 0}clearProviderAcccessTokens(e){e.linkedAccounts.filter(e=>\"cross_app\"===e.type).forEach(e=>{this.storeProviderAccessToken(e.providerApp.id,null)})}startAuthFlow(e){return e.api=this.api,this.authFlow=e,this.authFlow}async initMfaSmsVerification(){try{await this.api.post(\"/api/v1/mfa/passwordless_sms/init\",{action:\"verify\"})}catch(e){throw eX(e)}}async initMfaPasskeyVerification(){try{let e=await this.api.post(\"/api/v1/mfa/passkeys/init\",{});return nN(e.options)}catch(e){throw eX(e)}}async acceptTerms(){try{let e=await this.api.post(\"/api/v1/users/me/accept_terms\",{});return rE(e)}catch(e){throw eJ(e)}}async unlinkEmail(e){try{let t=await this.api.post(\"/api/v1/passwordless/unlink\",{address:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkPhone(e){try{let t=await this.api.post(\"/api/v1/passwordless_sms/unlink\",{phoneNumber:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkWallet(e){try{let t=await this.api.post(\"/api/v1/siwe/unlink\",{address:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkOAuth(e,t){try{let r=await this.api.post(\"/api/v1/oauth/unlink\",{provider:e,subject:t});return await this.getAuthenticatedUser()??rE(r)}catch(e){throw eJ(e)}}async unlinkFarcaster(e){try{let t=await this.api.post(\"/api/v1/farcaster/unlink\",{fid:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkTelegram(e){try{let t=await this.api.post(\"/api/v1/telegram/unlink\",{telegram_user_id:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async unlinkPasskey(e){try{let t=await this.api.post(\"/api/v1/passkeys/unlink\",{credential_id:e});return await this.getAuthenticatedUser()??rE(t)}catch(e){throw eJ(e)}}async createAnalyticsEvent({eventName:e,payload:t,timestamp:r,options:n}){if(!(typeof window>\"u\"))try{this.clientAnalyticsId||console.warn(\"No client analytics id set, refusing to send analytics event\"),await this.api.post(e9,{event_name:e,client_id:this.clientAnalyticsId,payload:{...t||{},clientTimestamp:r?r.toISOString():new Date().toISOString()}},{retry:-1,keepalive:n?.keepAlive??!1})}catch{}}async signMoonpayOnRampUrl(e){try{return this.api.post(\"/api/v1/plugins/moonpay_on_ramp/sign\",e)}catch(e){throw eJ(e)}}async initCoinbaseOnRamp(e){try{return this.api.post(\"/api/v1/funding/coinbase_on_ramp/init\",e)}catch(e){throw eJ(e)}}async getCoinbaseOnRampStatus({partnerUserId:e}){try{return this.api.get(`/api/v1/funding/coinbase_on_ramp/status?partnerUserId=${e}`)}catch(e){throw eJ(e)}}async getAuthenticatedUser(){return this.session.hasRefreshCredentials()||this.session.hasRecoveryCredentials()?this.session.refresh():null}async getAccessToken(e){return this.session.hasActiveToken()?nR.parse(this.session.token)?.audience!==this.appId?(await this.logout(),null):this.session.token:!e?.disableAutoRefresh&&this.session.hasRefreshCredentials()?(await this.session.refresh(),this.session.token):null}async getServerConfig(){try{let e={},t=this.session.token;t&&(e.authorization=`Bearer ${t}`);let r=await this.api.get(`/api/v1/apps/${this.appId}`,{baseURL:this.fallbackApiUrl,headers:e}),n=r.telegram_auth_config?{botId:r.telegram_auth_config.bot_id,botName:r.telegram_auth_config.bot_name,linkEnabled:r.telegram_auth_config.link_enabled,seamlessAuthEnabled:r.telegram_auth_config.seamless_auth_enabled}:void 0,i=r.funding_config?{methods:r.funding_config.methods,defaultRecommendedAmount:r.funding_config.default_recommended_amount,defaultRecommendedCurrency:r.funding_config.default_recommended_currency,promptFundingOnWalletCreation:r.funding_config.prompt_funding_on_wallet_creation}:void 0;return{id:r.id,name:r.name,verificationKey:r.verification_key,logoUrl:r.logo_url||void 0,accentColor:r.accent_color||void 0,showWalletLoginFirst:r.show_wallet_login_first,allowlistConfig:{errorTitle:r.allowlist_config.error_title,errorDetail:r.allowlist_config.error_detail,errorCtaText:r.allowlist_config.cta_text,errorCtaLink:r.allowlist_config.cta_link},walletAuth:r.wallet_auth,emailAuth:r.email_auth,smsAuth:r.sms_auth,googleOAuth:r.google_oauth,twitterOAuth:r.twitter_oauth,discordOAuth:r.discord_oauth,githubOAuth:r.github_oauth,spotifyOAuth:r.spotify_oauth,instagramOAuth:r.instagram_oauth,tiktokOAuth:r.tiktok_oauth,linkedinOAuth:r.linkedin_oauth,appleOAuth:r.apple_oauth,farcasterAuth:r.farcaster_auth,passkeyAuth:r.passkey_auth,telegramAuth:r.telegram_auth,termsAndConditionsUrl:r.terms_and_conditions_url,embeddedWalletConfig:{createOnLogin:r.embedded_wallet_config?.create_on_login,userOwnedRecoveryOptions:r.embedded_wallet_config.user_owned_recovery_options,requireUserOwnedRecoveryOnCreate:r.embedded_wallet_config.require_user_owned_recovery_on_create},privacyPolicyUrl:r.privacy_policy_url,requireUsersAcceptTerms:r.require_users_accept_terms,customApiUrl:r.custom_api_url,walletConnectCloudProjectId:r.wallet_connect_cloud_project_id,fiatOnRampEnabled:r.fiat_on_ramp_enabled,captchaEnabled:r.captcha_enabled,captchaSiteKey:r.captcha_site_key,twitterOAuthOnMobileEnabled:r.twitter_oauth_on_mobile_enabled,createdAt:new Date(1e3*r.created_at),updatedAt:new Date(1e3*r.updated_at),mfaMethods:r.mfa_methods,enforceWalletUis:r.enforce_wallet_uis,legacyWalletUiConfig:r.legacy_wallet_ui_config,telegramAuthConfiguration:n,fundingConfig:i}}catch(e){throw eJ(e)}}async getUsdTokenPrice(e){try{return(await this.api.get(`/api/v1/token_price?chainId=${e.id}&tokenSymbol=${e.nativeCurrency.symbol}`)).usd}catch{console.error(`Unable to fetch token price for chain with id ${e.id}`);return}}async requestFarcasterSignerStatus(e){try{return await this.api.post(\"/api/v1/farcaster/signer/status\",{ed25519_public_key:e})}catch(e){throw console.error(\"Unable to fetch Farcaster signer status\"),e}}async forkSession(){return await this.session.forkSession()}async generateSiweNonce({address:e,captchaToken:t}){try{return(await this.api.post(\"/api/v1/siwe/init\",{address:e,token:t})).nonce}catch(e){throw eJ(e)}}async authenticateWithSiweInternal({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i}){return await this.api.post(\"/api/v1/siwe/authenticate\",{message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})}async linkWithSiweInternal({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i}){return await this.api.post(\"/api/v1/siwe/link\",{message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})}async linkWithSiwe({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i}){try{let a=await this.linkWithSiweInternal({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i});return rE(a)}catch(e){throw eJ(e)}}};nk=new WeakSet,nE=function(){if(typeof window>\"u\")return null;try{let e=to.get(tB);if(\"string\"==typeof e&&e.length>0)return e}catch{}let e=(0,f.Z)();try{return to.put(tB,e),e}catch{return e}};var nI=(0,o.createContext)({siteKey:\"\",enabled:!1,appId:void 0,token:void 0,error:void 0,status:\"disabled\",setToken:np,setError:np,setExecuting:np,waitForResult:()=>Promise.resolve(\"\"),ref:{current:null},remove:np,reset:np,execute:np}),nW=class extends eV{constructor(e,t,r){super(e||\"Captcha failed\"),this.type=\"Captcha\",t instanceof Error&&(this.cause=t),this.privyErrorCode=r}},nL=({children:e,id:t,captchaSiteKey:r,captchaEnabled:n})=>{let i=(0,o.useRef)(null),[a,s]=(0,o.useState)(),[l,c]=(0,o.useState)(),[d,h]=(0,o.useState)(!1),u=(0,o.useMemo)(()=>n?d||a||l?!d||a||l?a&&!l?{status:\"success\",token:a}:l?{status:\"error\",error:l}:{status:\"ready\"}:{status:\"loading\"}:{status:\"ready\"}:{status:\"disabled\"},[n,a,l,d]);return(0,m.jsx)(nI.Provider,{value:{...u,ref:i,enabled:n,siteKey:r,appId:t,setToken:s,setError:c,setExecuting:h,remove(){n&&(i.current?.remove(),h(!1),c(void 0),s(void 0))},reset(){n&&(i.current?.reset(),h(!1),c(void 0),s(void 0))},execute(){n&&(h(!0),i.current?.execute())},async waitForResult(){if(!n)return\"\";try{return await function(e,{interval:t=100,timeout:r=5e3}={}){return new Promise((n,i)=>{let a=0,o,s=()=>{if(a>=r){i(\"Max attempts reached without result\");return}if(o=e(),a+=t,null!=o){n(o);return}setTimeout(s,t)};s()})}(()=>i.current?.getResponse(),{interval:200,timeout:2e4})}catch{throw new nW(\"Captcha failed\",null,\"captcha_timeout\")}}},children:e})},nF=()=>(0,o.useContext)(nI),nU=e=>{let{enabled:t,siteKey:r,appId:n,setError:i,setToken:a,setExecuting:s,ref:l}=nF(),[,c]=(0,o.useMemo)(()=>r?.split(\"t:\")||[],[r]);if((0,o.useEffect)(()=>l.current?.remove,[]),!t)return null;if(!c)throw Error(\"Unsupported captcha site key\");return(0,m.jsx)(\"div\",{className:\"hidden h-0 w-0\",children:(0,m.jsx)(E.Nc,{...e,ref:l,siteKey:c,options:{action:n,size:\"invisible\",...e.delayedExecution?{appearance:\"execute\",execution:\"execute\"}:{appearance:\"always\",execution:\"render\"}},onUnsupported:()=>{e.onUnsupported?.(),console.warn(\"Browser does not support Turnstile.\")},onError:()=>{e.onError?.(),i(\"Captcha failed\"),s(!1)},onSuccess:t=>{e.onSuccess?.(t),a(t),s(!1)},onExpire:()=>{e.onExpire?.();try{l.current?.reset(),i(void 0),a(void 0)}catch{i(\"expired_and_failed_reset\")}}})})},nD=(0,o.createContext)({isNewUserThisSession:!1,linkingOrConnectingHint:null,walletConnectionStatus:null,connectors:[],rpcConfig:{rpcUrls:{}},showFiatPrices:!0,chains:[],clientAnalyticsId:null,pendingTransaction:null,appId:\"notAdded\",nativeTokenSymbolForChainId:np,initializeWalletProxy:np,getAuthMeta:np,getAuthFlow:np,closePrivyModal:np,openPrivyModal:np,connectWallet:np,initLoginWithWallet:np,loginWithWallet:np,initLoginWithFarcaster:np,loginWithFarcaster:np,loginWithCode:np,initLoginWithEmail:np,initLoginWithSms:np,initUpdateEmail:np,initUpdatePhone:np,resendEmailCode:np,resendSmsCode:np,initLoginWithHeadlessOAuth:np,loginWithHeadlessOAuth:np,crossAppAuthFlow:np,initLoginWithOAuth:np,recoveryOAuthFlow:np,loginWithOAuth:np,initLoginWithPasskey:np,loginWithPasskey:np,initLinkWithPasskey:np,linkWithPasskey:np,refreshUser:np,loginWithGuestAccountFlow:np,walletProxy:null,createAnalyticsEvent:np,acceptTerms:np,getUsdTokenPrice:np,recoverEmbeddedEthereumWallet:np,getMoonpaySignedUrl:np,initCoinbaseOnRamp:np,getCoinbaseOnRampStatus:np,updateWallets:np,fundWallet:np,setReadyToTrue:np,requestFarcasterSignerStatus:np,initLoginWithTelegram:np,loginWithTelegram:np,generateSiweMessage:np,linkWithSiwe:np,embeddedSolanaWallet:null,createEmbeddedSolanaWallet:np,recoverEmbeddedSolanaWallet:np,solanaSignMessage:np}),nZ=()=>(0,o.useContext)(nD),nz=(0,o.createContext)({ready:!1,authenticated:!1,user:null,walletConnectors:null,connectWallet:np,login:np,connectOrCreateWallet:np,linkEmail:np,linkPhone:np,linkFarcaster:np,linkWallet:np,linkCrossAppAccount:np,linkGoogle:np,linkTwitter:np,linkDiscord:np,linkGithub:np,linkSpotify:np,linkInstagram:np,linkTelegram:np,linkTiktok:np,linkLinkedIn:np,linkApple:np,linkPasskey:np,updateEmail:np,updatePhone:np,logout:np,getAccessToken:np,getEthereumProvider:np,getEthersProvider:np,getWeb3jsProvider:np,unlinkEmail:np,unlinkPhone:np,unlinkWallet:np,unlinkGoogle:np,unlinkTwitter:np,unlinkDiscord:np,unlinkGithub:np,unlinkSpotify:np,unlinkInstagram:np,unlinkTiktok:np,unlinkLinkedIn:np,unlinkApple:np,unlinkCrossAppAccount:np,unlinkFarcaster:np,unlinkTelegram:np,unlinkPasskey:np,setActiveWallet:np,forkSession:np,createWallet:np,importWallet:np,signMessage:np,signTypedData:np,enrollInMfa:np,initEnrollmentWithSms:np,initEnrollmentWithTotp:np,initEnrollmentWithPasskey:np,promptMfa:np,init:np,submitEnrollmentWithSms:np,submitEnrollmentWithTotp:np,submitEnrollmentWithPasskey:np,unenroll:np,submit:np,cancel:np,sendTransaction:np,exportWallet:np,setWalletPassword:np,setWalletRecovery:np,requestFarcasterSignerFromWarpcast:np,getFarcasterSignerPublicKey:np,signFarcasterMessage:np,createGuestAccount:np,initLoginWithEmail:np,initLoginWithSms:np,otpState:{status:\"initial\"},loginWithCode:np,fundWallet:np,initLoginWithHeadlessOAuth:np,loginWithHeadlessOAuth:np,generateSiweMessage:np,linkWithSiwe:np,signMessageWithCrossAppWallet:np,signTypedDataWithCrossAppWallet:np,sendTransactionWithCrossAppWallet:np,isHeadlessOAuthLoading:!1,isModalOpen:!1,mfaMethods:[]}),n$=()=>(0,o.useContext)(nz),nH=e=>{let[t,r]=(0,o.useState)(\"auto\");return(0,o.useEffect)(()=>{let t=new ResizeObserver(e=>{r(e[0]?.contentRect.height??\"auto\")});return e.current&&t.observe(e.current),()=>{e.current&&t.unobserve(e.current)}},[e.current]),t},nB={login:{onComplete:[],onError:[],onOAuthLoginComplete:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]}},nq=(0,o.createContext)(void 0),nV=()=>(0,o.useContext)(nq);function nG(e,t){if(!t)return;let r=nV().current[e];return(0,o.useEffect)(()=>{for(let[n,i]of Object.entries(t))r.hasOwnProperty(n)||console.warn(`Invalid event type \"${n}\" for action \"${e}\"`),r[n]?.push(i);return()=>{for(let[n,i]of Object.entries(t))r.hasOwnProperty(n)||console.warn(`Invalid event type \"${n}\" for action \"${e}\"`),r[n]=r[n]?.filter(e=>e!==i)}},[t])}function nK(e,t,r,...n){for(let i of e.current[t][r])i(...n)}function nY(){let e=nV();return(t,r,...n)=>nK(e,t,r,...n)}var nQ=({success:e,fail:t})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(nX,{className:e?\"success\":t?\"fail\":\"\"}),(0,m.jsx)(nJ,{className:e?\"success\":t?\"fail\":\"\"})]}),nX=A.ZP.span`\n  && {\n    width: 82px;\n    height: 82px;\n    border-width: 4px;\n    border-style: solid;\n    border-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    border-bottom-color: transparent;\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n    animation: rotation 1.2s linear infinite;\n    transition: border-color 800ms;\n  }\n\n  @keyframes rotation {\n    0% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  &&&.success {\n    border-color: var(--privy-color-success);\n    border-bottom-color: var(--privy-color-success);\n  }\n\n  &&&.fail {\n    border-color: var(--privy-color-error);\n    border-bottom-color: var(--privy-color-error);\n  }\n`,nJ=(0,A.ZP)(nX)`\n  && {\n    border-bottom-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    animation: none;\n    opacity: 0.5;\n  }\n`,n0=e=>(0,m.jsx)(n1,{color:e.color||\"var(--privy-color-foreground-3)\"}),n1=(0,A.ZP)(nX)`\n  && {\n    height: 1rem;\n    width: 1rem;\n    margin: 2px 0;\n    border-width: 1.5px;\n\n    /* Override default Loader to match button transitions */\n    transition: border-color 200ms ease;\n  }\n`,n2=A.ZP.button`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  user-select: none;\n\n  & {\n    width: 100%;\n    cursor: pointer;\n    border-radius: var(--privy-border-radius-md);\n\n    font-size: 1rem;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 22px; /* 137.5% */\n    letter-spacing: -0.016px;\n  }\n\n  && {\n    padding: 12px 16px;\n  }\n`,n3=({children:e,loading:t,disabled:r,loadingText:n=\"Loading...\",...i})=>(0,m.jsx)(n7,{disabled:t||r,...i,children:t?(0,m.jsxs)(\"span\",{children:[(0,m.jsx)(n0,{}),n?(0,m.jsx)(\"span\",{children:n}):null]}):e}),n4=({children:e,loading:t,disabled:r,...n})=>(0,m.jsx)(n5,{disabled:r,...n,children:t?(0,m.jsx)(n0,{color:\"var(--privy-color-foreground-accent)\"}):e}),n5=(0,A.ZP)(n2)`\n  position: relative;\n\n  && {\n    background-color: var(--privy-color-accent);\n    color: var(--privy-color-foreground-accent);\n\n    transition: background-color 200ms ease;\n  }\n\n  &:hover {\n    background-color: var(--privy-color-accent-dark);\n  }\n\n  &:active {\n    background-color: var(--privy-color-accent-dark);\n  }\n\n  &:disabled,\n  &:hover:disabled,\n  &:active:disabled {\n    cursor: not-allowed;\n    pointer-events: none;\n    color: var(--privy-color-foreground-accent);\n    background-color: var(--privy-color-accent-dark);\n  }\n`,n6=({children:e,loading:t,disabled:r,loadingText:n=\"Loading...\",...i})=>(0,m.jsx)(n7,{as:\"a\",disabled:t||r,...i,children:t?(0,m.jsxs)(\"span\",{children:[(0,m.jsx)(n0,{}),n?(0,m.jsx)(\"span\",{children:n}):null]}):e}),n7=(0,A.ZP)(n2)`\n  position: relative;\n\n  && {\n    background-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-accent)\"};\n    color: var(--privy-color-foreground-accent);\n\n    transition: background-color 200ms ease;\n  }\n\n  &:hover {\n    background-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-accent-dark)\"};\n  }\n\n  &:active {\n    background-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-accent-dark)\"};\n  }\n\n  &:hover:disabled,\n  &:active:disabled {\n    background-color: var(--privy-color-background-2);\n    color: var(--privy-color-foreground-3);\n    cursor: not-allowed;\n  }\n\n  /* If an anchor tag, :disabled isn't a thing, so manually set state */\n  ${e=>e.disabled?(0,A.iv)`\n          &&&,\n          &&&:hover,\n          &&&:active {\n            background-color: var(--privy-color-background-2);\n            color: var(--privy-color-foreground-3);\n            cursor: not-allowed;\n            pointer-events: none;\n          }\n        `:\"\"}\n\n  > span {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n\n    opacity: 1;\n    animation: fadein 200ms ease;\n  }\n`,n8=({children:e,loading:t,disabled:r,loadingText:n=\"Loading...\",...i})=>(0,m.jsx)(n9,{disabled:t||r,...i,children:t?(0,m.jsxs)(\"span\",{children:[(0,m.jsx)(n0,{}),n?(0,m.jsx)(\"span\",{children:n}):null]}):e}),n9=(0,A.ZP)(n2)`\n  && {\n    border-width: 1px;\n    border-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-foreground-4)\"};\n    color: var(--privy-color-foreground);\n\n    transition: border-color 200ms ease;\n  }\n\n  &:hover,\n  &:active {\n    border-color: ${e=>e.warn?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  }\n\n  &:hover:disabled,\n  &:active:disabled {\n    border-color: var(--privy-color-foreground-accent);\n    color: var(--privy-color-foreground-3);\n    cursor: not-allowed;\n  }\n\n  > span {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n\n    opacity: 1;\n    animation: fadein 200ms ease;\n  }\n`,ie=A.ZP.button`\n  && {\n    padding: 12px 16px;\n    font-weight: 500;\n    text-align: center;\n    color: var(--privy-color-foreground-accent);\n    background-color: var(--privy-color-accent);\n    border-radius: var(--privy-border-radius-sm);\n    min-width: 144px;\n    opacity: ${e=>e.invisible?\"0\":\"1\"};\n    transition: opacity 200ms ease, background-color 200ms ease, color 200ms ease;\n    user-select: none;\n\n    ${e=>e.invisible&&(0,A.iv)`\n        pointer-events: none;\n      `}\n\n    &:hover {\n      background-color: var(--privy-color-accent-dark);\n    }\n    &:active {\n      background-color: var(--privy-color-accent-dark);\n    }\n\n    &:hover:disabled,\n    &:active:disabled {\n      background-color: var(--privy-color-background-2);\n      color: var(--privy-color-foreground-3);\n      cursor: not-allowed;\n    }\n  }\n`,it=(A.ZP.div`\n  /* Set to match height of SoftCtaButton to avoid reflow if conditionally rendered */\n  height: 44px;\n`,({children:e,onClick:t,disabled:r,isSubmitting:n,...i})=>(0,m.jsxs)(ir,{isSubmitting:n,onClick:t,disabled:r,...i,children:[(0,m.jsx)(\"span\",{children:e}),(0,m.jsx)(\"span\",{children:(0,m.jsx)(n0,{})})]})),ir=A.ZP.button`\n  && {\n    color: var(--privy-color-accent);\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 24px;\n    cursor: pointer;\n    border-radius: 0px var(--privy-border-radius-mdlg) var(--privy-border-radius-mdlg) 0px;\n    border: none;\n    transition: color 200ms ease;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n    }\n\n    :hover {\n      color: var(--privy-color-accent-dark);\n    }\n\n    && > :first-child {\n      opacity: ${e=>e.isSubmitting?0:1};\n    }\n\n    && > :last-child {\n      position: absolute;\n      display: flex;\n      top: 50%;\n      left: 50%;\n      transform: translate3d(-50%, -50%, 0);\n\n      /** Will map to the opposite of first span */\n      opacity: ${e=>e.isSubmitting?1:0};\n    }\n\n    :disabled,\n    :hover:disabled {\n      color: var(--privy-color-foreground-3);\n      cursor: not-allowed;\n    }\n  }\n`,ii=A.ZP.span`\n  && {\n    width: 82px;\n    height: 82px;\n    border-width: 4px;\n    border-style: solid;\n    border-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    background-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n  }\n`,ia=({backFn:e})=>(0,m.jsx)(\"div\",{children:(0,m.jsx)(ic,{onClick:e,children:(0,m.jsx)(T.Z,{height:\"16px\",width:\"16px\",strokeWidth:2})})}),io=({infoFn:e})=>(0,m.jsx)(\"div\",{children:(0,m.jsx)(id,{\"aria-label\":\"info\",onClick:e,children:(0,m.jsx)(S.Z,{height:\"22px\",width:\"22px\",strokeWidth:2})})}),is=e=>(0,m.jsx)(\"div\",{children:(0,m.jsx)(ic,{\"aria-label\":\"close modal\",onClick:e.onClose,children:(0,m.jsx)(P.Z,{height:\"16px\",width:\"16px\",strokeWidth:2})})}),il=({backFn:e,infoFn:t,onClose:r,title:n,closeable:i=!0})=>{let{closePrivyModal:a}=nZ(),o=nh();return(0,m.jsxs)(ih,{children:[(0,m.jsxs)(iu,{children:[e&&(0,m.jsx)(ia,{backFn:e}),t&&(0,m.jsx)(io,{infoFn:t})]}),n&&(0,m.jsx)(im,{id:\"privy-dialog-title\",children:n}),(0,m.jsx)(ip,{children:!o.render.standalone&&i&&(0,m.jsx)(is,{onClose:r||(()=>a())})})]})},ic=A.ZP.button`\n  && {\n    cursor: pointer;\n    display: flex;\n    opacity: 0.6;\n\n    background-color: var(--privy-color-background-2);\n    border-radius: var(--privy-border-radius-full);\n    padding: 4px;\n\n    > svg {\n      margin: auto;\n      color: var(--privy-color-foreground);\n    }\n\n    :hover {\n      opacity: 1;\n    }\n  }\n`,id=(0,A.ZP)(ic)`\n  && {\n    background-color: transparent;\n  }\n`,ih=A.ZP.div`\n  padding: 16px 0;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n\n  h2 {\n    font-size: 16px;\n    line-height: 24px;\n    font-weight: 600;\n    color: var(--privy-color-foreground);\n  }\n`,iu=A.ZP.div`\n  flex: 1;\n  align-items: center;\n  display: flex;\n  gap: 8px;\n`,ip=A.ZP.div`\n  flex: 1;\n  display: flex;\n  justify-content: flex-end;\n`,im=A.ZP.div`\n  overflow: hidden;\n  white-space: nowrap;\n  max-width: 100%;\n  text-overflow: ellipsis;\n  text-align: center;\n  color: var(--privy-color-foreground-2);\n`,ig=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n\n  > div {\n    position: relative;\n  }\n\n  > div > span {\n    position: absolute;\n    left: -41px;\n    top: -41px;\n  }\n\n  > div > :last-child {\n    position: absolute;\n    left: -19px;\n    top: -19px;\n  }\n`,iy=A.ZP.div`\n  text-align: left;\n  flex-grow: 1;\n`,iw=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  flex-grow: 1;\n`,ix=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n\n  /* for Internet Explorer, Edge */\n  -ms-overflow-style: none;\n\n  /* for Firefox */\n  scrollbar-width: none;\n\n  /* for Chrome, Safari, and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n`,iv=(0,A.ZP)(ix)`\n  ${e=>\"light\"===e.colorScheme?\"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;\":\"dark\"===e.colorScheme?\"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;\":void 0}\n\n  background-repeat: no-repeat;\n  background-size: 100% 32px, 100% 16px;\n  background-attachment: local, scroll;\n`,iC=(0,A.iv)`\n  && {\n    width: 100%;\n    font-size: 16px;\n    line-height: 24px;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    align-items: center;\n\n    padding: 12px 16px;\n    border: 1px solid var(--privy-color-foreground-4) !important;\n    border-radius: var(--privy-border-radius-mdlg);\n    transition: background-color 200ms ease;\n\n    cursor: pointer;\n\n    &:hover {\n      background-color: var(--privy-color-background-2);\n    }\n\n    &:disabled {\n      cursor: pointer;\n      background-color: var(--privy-color-background-2);\n    }\n\n    svg {\n      height: 24px;\n      max-height: 24px;\n      max-width: 24px;\n    }\n  }\n`,ib=A.ZP.div`\n  text-align: center;\n  font-size: 14px;\n  margin-bottom: 24px;\n`,i_=A.ZP.button`\n  ${iC}\n`,ij=A.ZP.a`\n  ${iC}\n`,ik=A.ZP.div`\n  width: 100%;\n  height: 100%;\n  min-height: inherit;\n  display: flex;\n  flex-direction: column;\n  ${e=>e.if?\"display: none;\":\"\"}\n`,iE=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-bottom: 16px;\n  margin-top: 24px;\n`,iA=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,iS=A.ZP.div`\n  margin-top: 16px;\n  font-size: 13px;\n  text-align: center;\n  color: var(--privy-color-foreground-3);\n\n  && > a {\n    color: var(--privy-color-accent);\n  }\n`;function iT(e){let{legal:{privacyPolicyUrl:t,termsAndConditionsUrl:r,requireUsersAcceptTerms:n}}=e.app;if(n&&!e.alwaysShowImplicitConsent||!r&&!t)return(0,m.jsx)(iS,{});let i=!!(t&&r);return(0,m.jsxs)(iS,{children:[\"By logging in I agree to the\",\" \",r&&(0,m.jsx)(\"a\",{href:r,target:\"_blank\",children:i?\"Terms\":\"Terms of Service\"}),i&&\" & \",t&&(0,m.jsx)(\"a\",{href:t,target:\"_blank\",children:\"Privacy Policy\"})]})}var iP=()=>(0,m.jsxs)(iN,{children:[(0,m.jsx)(rG,{}),(0,m.jsx)(\"a\",{href:\"https://www.privy.io/\",target:\"_blank\",children:\"Protected by Privy\"})]}),iN=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding-top: 8px;\n  padding-bottom: 12px;\n  gap: 2px;\n\n  font-size: 13px;\n\n  && svg {\n    height: 14px;\n    width: 14px;\n    margin-bottom: 2px;\n    opacity: 0.5;\n  }\n\n  && a {\n    color: var(--privy-color-foreground-3);\n    &:hover {\n      text-decoration: underline;\n    }\n  }\n\n  @media all and (display-mode: standalone) {\n    padding-bottom: 30px;\n  }\n`,iR=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding: 0px 0px 30px;\n  @media (max-width: 440px) {\n    padding: 10px 10px 20px;\n  }\n`,iM=A.ZP.div`\n  font-size: 18px;\n  line-height: 30px;\n  text-align: center;\n  font-weight: 600;\n  margin-bottom: 10px;\n`,iO=A.ZP.div`\n  font-size: 0.875rem;\n\n  text-align: center;\n`,iI=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 10px;\n  flex-grow: 1;\n  padding: 20px 0;\n  @media (max-width: 440px) {\n    padding: 10px 10px 20px;\n  }\n`,iW=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 0.75rem;\n  padding: 1rem 0rem 0rem;\n  flex-grow: 1;\n  width: 100%;\n`,iL=A.ZP.div`\n  width: 25px;\n  display: flex;\n  align-items: center;\n  justify-content: flex-start;\n\n  > svg {\n    z-index: 2;\n    height: 25px !important;\n    width: 25px !important;\n    color: var(--privy-color-accent);\n  }\n`,iF=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  font-size: 0.875rem;\n  line-height: 1rem;\n  text-align: left;\n`,iU=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n  padding-top: 20px;\n`,iD=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 1rem;\n  padding: 1rem 0rem 0rem;\n  flex-grow: 1;\n  width: 100%;\n`,iZ=A.ZP.div`\n  display: flex;\n  gap: 5px;\n  width: 100%;\n`,iz=A.ZP.button`\n  && {\n    background-color: transparent;\n    color: var(--privy-color-foreground-3);\n    padding: 0 10px;\n    display: flex;\n    align-items: center;\n\n    > svg {\n      z-index: 2;\n      height: 20px !important;\n      width: 20px !important;\n    }\n  }\n\n  &&:hover {\n    color: var(--privy-color-error);\n  }\n`,i$=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n\n  > svg {\n    z-index: 2;\n    height: 20px !important;\n    width: 20px !important;\n  }\n`,iH=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  font-weight: 400 !important;\n  color: ${e=>e.isAccent?\"var(--privy-color-accent)\":\"var(--privy-color-foreground-3)\"};\n\n  > svg {\n    z-index: 2;\n    height: 18px !important;\n    width: 18px !important;\n    display: flex !important;\n    align-items: flex-end;\n  }\n`,iB=A.ZP.div`\n  width: 100%;\n  display: flex;\n  justify-content: space-between;\n`,iq=A.ZP.p`\n  text-align: left;\n  width: 100%;\n  color: var(--privy-color-foreground-3) !important;\n`,iV=A.ZP.button`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  user-select: none;\n\n  & {\n    width: 100%;\n    cursor: pointer;\n    border-radius: var(--privy-border-radius-md);\n\n    font-size: 0.875rem;\n    line-height: 1rem;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 22px; /* 137.5% */\n    letter-spacing: -0.016px;\n  }\n\n  && {\n    color: ${e=>\"dark\"===e.theme?\"var(--privy-color-foreground-2)\":\"var(--privy-color-accent)\"};\n    background-color: transparent;\n\n    padding: 0.5rem 0px;\n  }\n\n  &:hover {\n    text-decoration: underline;\n  }\n`,iG=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 90px;\n  height: 90px;\n  border-radius: 50%;\n  background-color: ${({status:e})=>\"success\"===e?\"var(--privy-color-success)\":\"var(--privy-color-accent)\"};\n\n  > svg {\n    z-index: 2;\n    height: 50px !important;\n    width: auto !important;\n    color: white;\n  }\n`,iK=A.ZP.div`\n  color: var(--privy-color-error);\n`,iY=({termsAndConditionsUrl:e,privacyPolicyUrl:t,onAccept:r,onDecline:n})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1}),(0,m.jsx)(R.Z,{width:56,height:56,fill:\"var(--privy-color-accent)\",style:{margin:\"auto\"}}),(0,m.jsx)(iM,{style:{marginTop:24},children:\"One last step\"}),(0,m.jsx)(iO,{children:\"By signing up, you agree to our terms and privacy policy.\"}),(0,m.jsxs)(ix,{style:{marginTop:24},children:[e&&(0,m.jsxs)(ij,{target:\"_blank\",href:e,children:[\"View Terms \",(0,m.jsx)(N.Z,{style:{marginLeft:\"auto\"}})]}),t&&(0,m.jsxs)(ij,{target:\"_blank\",href:t,children:[\"View Privacy Policy \",(0,m.jsx)(N.Z,{style:{marginLeft:\"auto\"}})]})]}),(0,m.jsxs)(iQ,{style:{marginTop:24},children:[(0,m.jsx)(n8,{onClick:n,children:\"No thanks\"}),(0,m.jsx)(n3,{onClick:r,children:\"Accept\"})]}),(0,m.jsx)(iP,{})]}),iQ=A.ZP.div`\n  display: flex;\n  gap: 10px;\n`,iX=A.ZP.span`\n  && {\n    width: 82px;\n    height: 82px;\n    border-width: 4px;\n    border-style: solid;\n    border-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n    border-bottom-color: transparent;\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n    animation: rotation 1.2s linear infinite;\n    transition: border-color 800ms;\n    border-bottom-color: ${e=>e.color??\"var(--privy-color-accent)\"};\n  }\n`,iJ=({style:e,...t})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:\"1.5\",stroke:\"currentColor\",style:{height:\"1.5rem\",width:\"1.5rem\",...e},...t,children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",d:\"M12 1.5a5.25 5.25 0 00-5.25 5.25v3a3 3 0 00-3 3v6.75a3 3 0 003 3h10.5a3 3 0 003-3v-6.75a3 3 0 00-3-3v-3c0-2.9-2.35-5.25-5.25-5.25zm3.75 8.25v-3a3.75 3.75 0 10-7.5 0v3h7.5z\",clipRule:\"evenodd\"})}),i0=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-bottom: 16px;\n`,i1=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,i2=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: flex-end;\n  margin-top: auto;\n  gap: 16px;\n  flex-grow: 100;\n`,i3=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  flex-grow: 1;\n  width: 100%;\n`,i4=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 100%;\n`,i5=(0,A.ZP)(i3)`\n  padding: 20px 0;\n`,i6=(0,A.ZP)(i3)`\n  gap: 16px;\n`,i7=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n`,i8=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,i9=(A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  height: 100%;\n`,A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  text-align: left;\n  gap: 8px;\n  padding: 16px;\n  margin-top: 16px;\n  margin-bottom: 16px;\n  width: 100%;\n  background: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  && h4 {\n    color: var(--privy-color-foreground-3);\n    font-size: 14px;\n    text-decoration: underline;\n    font-weight: medium;\n  }\n  && p {\n    color: var(--privy-color-foreground-3);\n    font-size: 14px;\n  }\n`),ae=A.ZP.div`\n  height: 16px;\n`,at=A.ZP.div`\n  height: 12px;\n`,ar=A.ZP.div`\n  position: relative;\n`,an=A.ZP.div`\n  height: ${e=>e.height??\"12\"}px;\n`,ai=A.ZP.div`\n  background-color: var(--privy-color-accent);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: 50%;\n  border-color: white;\n  border-width: 2px !important;\n`,aa=({title:e,description:t,children:r,...n})=>(0,m.jsx)(al,{...n,children:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(\"h3\",{children:e}),\"string\"==typeof t?(0,m.jsx)(\"p\",{children:t}):t,r]})}),ao=(0,A.ZP)(aa)`\n  margin-bottom: 24px;\n`,as=({title:e,description:t,icon:r,children:n,...i})=>(0,m.jsxs)(ac,{...i,children:[r||null,(0,m.jsx)(\"h3\",{children:e}),t&&\"string\"==typeof t?(0,m.jsx)(\"p\",{children:t}):t,n]}),al=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  text-align: left;\n  gap: 8px;\n  width: 100%;\n  margin-bottom: 24px;\n\n  && h3 {\n    font-size: 17px;\n    color: var(--privy-color-foreground);\n  }\n\n  /* Sugar assuming children are paragraphs. Otherwise, handling styling on your own */\n  && p {\n    color: var(--privy-color-foreground-2);\n    font-size: 14px;\n  }\n`,ac=(0,A.ZP)(al)`\n  align-items: center;\n  text-align: center;\n  gap: 16px;\n\n  h3 {\n    margin-bottom: 24px;\n  }\n`,ad=Array(6).fill(\"\"),ah=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: center;\n  margin: auto;\n  gap: 16px;\n  flex-grow: 1;\n`,au=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  gap: 8px;\n\n  > div:last-child {\n    display: flex;\n    justify-content: center;\n    gap: 0.5rem;\n    width: 100%;\n    border-radius: var(--privy-border-radius-md);\n\n    > input {\n      border: 1px solid var(--privy-color-foreground-4);\n      background: var(--privy-color-background);\n      border-radius: var(--privy-border-radius-md);\n      padding: 8px 10px;\n      height: 58px;\n      width: 46px;\n      text-align: center;\n      font-size: 18px;\n    }\n\n    > input:focus {\n      border: 1px solid var(--privy-color-accent);\n    }\n\n    > input:invalid {\n      border: 1px solid var(--privy-color-error);\n    }\n\n    > input.success {\n      border: 1px solid var(--privy-color-success);\n    }\n\n    > input.fail {\n      border: 1px solid var(--privy-color-error);\n      animation: shake 180ms;\n      animation-iteration-count: 2;\n    }\n  }\n\n  @keyframes shake {\n    0% {\n      transform: translate(1px, 0px);\n    }\n    33% {\n      transform: translate(-1px, 0px);\n    }\n    67% {\n      transform: translate(-1px, 0px);\n    }\n    100% {\n      transform: translate(1px, 0px);\n    }\n  }\n`,ap=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: ${e=>e.success?\"var(--privy-color-success)\":e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  display: flex;\n  justify-content: flex-end;\n  width: 100%;\n`,am=A.ZP.div`\n  font-size: 13px;\n  color: var(--privy-color-foreground);\n  display: flex;\n  gap: 8px;\n  align-items: center;\n  width: 100%;\n  margin-top: 16px;\n  // Equal opposing size buffer to account for auto margining when the\n  // success/fail text does not show up\n  padding-bottom: 32px;\n`,ag=A.ZP.div`\n  color: var(--privy-color-accent);\n  padding: 2px 0;\n  > button {\n    text-decoration: underline;\n  }\n`,af=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: var(--privy-border-radius-sm);\n  padding: 2px 8px;\n  gap: 4px;\n  background: var(--privy-color-background-2);\n  color: var(--privy-color-foreground-2);\n`,ay=A.ZP.span`\n  font-weight: 500;\n  word-break: break-all;\n`,aw=({icon:e})=>(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(ax,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{}),\"string\"==typeof e?(0,m.jsx)(\"span\",{style:{background:`url('${e}')`,height:\"38px\",width:\"38px\",borderRadius:\"6px\",margin:\"auto\",backgroundSize:\"cover\"}}):e?(0,m.jsx)(e,{style:{width:\"38px\",height:\"38px\"}}):(0,m.jsx)(\"span\",{})]})})}),ax=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n\n  > div {\n    position: relative;\n  }\n\n  > div > span {\n    position: absolute;\n    left: -41px;\n    top: -41px;\n  }\n\n  > div > :last-child {\n    position: absolute;\n    left: -19px;\n    top: -19px;\n  }\n`,av=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,aC=({icon:e,name:t})=>\"string\"==typeof e?(0,m.jsx)(\"img\",{alt:`${t||\"wallet\"} logo`,src:e,style:{height:24,width:24,borderRadius:4}}):e?(0,m.jsx)(e,{}):null,ab=(0,A.F4)`\n  from, to {\n    background: var(--privy-color-foreground-4);\n    color: var(--privy-color-foreground-4);\n  }\n\n  50% {\n    background: var(--privy-color-foreground-accent);\n    color: var(--privy-color-foreground-accent);\n  }\n`,a_=(0,A.iv)`\n  ${e=>e.$isLoading?(0,A.iv)`\n          width: 35%;\n          animation: ${ab} 2s linear infinite;\n          border-radius: var(--privy-border-radius-sm);\n        `:\"\"}\n`,aj=({children:e,color:t,isLoading:r,isPulsing:n,className:i})=>(0,m.jsx)(ak,{$color:t,$isLoading:r,$isPulsing:n,className:i,children:e}),ak=A.ZP.span`\n  padding: 0.125rem 0.5rem;\n  font-size: 0.75rem;\n  font-weight: 500;\n  line-height: 1.125rem; /* 150% */\n  border-radius: var(--privy-border-radius-sm);\n\n  ${e=>{let t,r;\"green\"===e.$color&&(t=\"var(--privy-color-success-dark)\",r=\"var(--privy-color-success-light)\"),\"red\"===e.$color&&(t=\"var(--privy-color-error)\",r=\"var(--privy-color-error-light)\"),\"gray\"===e.$color&&(t=\"var(--privy-color-foreground-2)\",r=\"var(--privy-color-background-2)\");let n=(0,A.F4)`\n      from, to {\n        background-color: ${r};\n      }\n\n      50% {\n        background-color: rgba(${r}, 0.8);\n      }\n    `;return(0,A.iv)`\n      color: ${t};\n      background-color: ${r};\n      ${e.$isPulsing&&(0,A.iv)`\n        animation: ${n} 3s linear infinite;\n      `};\n    `}}\n\n  ${a_}\n`,aE=({...e})=>(0,m.jsxs)(\"svg\",{width:\"146\",height:\"146\",viewBox:\"0 0 146 146\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...e,children:[(0,m.jsx)(\"circle\",{cx:\"73\",cy:\"73\",r:\"73\",fill:\"#0052FF\"}),(0,m.jsx)(\"path\",{d:\"M73.323 123.729C101.617 123.729 124.553 100.832 124.553 72.5875C124.553 44.343 101.617 21.4463 73.323 21.4463C46.4795 21.4463 24.4581 42.0558 22.271 68.2887H89.9859V76.8864H22.271C24.4581 103.119 46.4795 123.729 73.323 123.729Z\",fill:\"white\"})]}),aA={coinbase_wallet:{logo:rT,displayName:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\"},coinbase_smart_wallet:{logo:rT,displayName:\"Coinbase Smart Wallet\",rdns:\"com.coinbase.wallet\"},metamask:{logo:rQ,displayName:\"MetaMask\",rdns:\"io.metamask\"},phantom:{logo:rX,displayName:\"Phantom\"},rainbow:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"120\",height:\"120\",viewBox:\"0 0 120 120\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsx)(\"g\",{clipPath:\"url(#clip0_5_32)\",children:(0,m.jsxs)(\"g\",{clipPath:\"url(#clip1_5_32)\",children:[(0,m.jsx)(\"mask\",{id:\"mask0_5_32\",style:{maskType:\"alpha\"},maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"120\",height:\"120\",children:(0,m.jsx)(\"path\",{d:\"M78.163 0H41.837C29.79 0 23.767 0 17.283 2.04999C10.203 4.62701 4.627 10.203 2.05 17.283C0 23.767 0 29.791 0 41.837V78.163C0 90.21 0 96.232 2.05 102.717C4.627 109.797 10.203 115.373 17.283 117.949C23.767 120 29.79 120 41.837 120H78.163C90.21 120 96.232 120 102.717 117.949C109.797 115.373 115.373 109.797 117.95 102.717C120 96.232 120 90.21 120 78.163V41.837C120 29.791 120 23.767 117.95 17.283C115.373 10.203 109.797 4.62701 102.717 2.04999C96.232 0 90.21 0 78.163 0Z\",fill:\"black\"})}),(0,m.jsx)(\"g\",{mask:\"url(#mask0_5_32)\",children:(0,m.jsx)(\"rect\",{width:\"120\",height:\"120\",fill:\"url(#paint0_linear_5_32)\"})}),(0,m.jsx)(\"path\",{d:\"M20 38H26C56.9279 38 82 63.0721 82 94V100H94C97.3137 100 100 97.3137 100 94C100 53.1309 66.8691 20 26 20C22.6863 20 20 22.6863 20 26V38Z\",fill:\"url(#paint1_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M84 94H100C100 97.3137 97.3137 100 94 100H84V94Z\",fill:\"url(#paint2_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M26 20L26 36H20L20 26C20 22.6863 22.6863 20 26 20Z\",fill:\"url(#paint3_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M20 36H26C58.0325 36 84 61.9675 84 94V100H66V94C66 71.9086 48.0914 54 26 54H20V36Z\",fill:\"url(#paint4_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M68 94H84V100H68V94Z\",fill:\"url(#paint5_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M20 52L20 36L26 36L26 52H20Z\",fill:\"url(#paint6_linear_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M20 62C20 65.3137 22.6863 68 26 68C40.3594 68 52 79.6406 52 94C52 97.3137 54.6863 100 58 100H68V94C68 70.804 49.196 52 26 52H20V62Z\",fill:\"url(#paint7_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M52 94H68V100H58C54.6863 100 52 97.3137 52 94Z\",fill:\"url(#paint8_radial_5_32)\"}),(0,m.jsx)(\"path\",{d:\"M26 68C22.6863 68 20 65.3137 20 62L20 52L26 52L26 68Z\",fill:\"url(#paint9_radial_5_32)\"})]})}),(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"paint0_linear_5_32\",x1:\"60\",y1:\"0\",x2:\"60\",y2:\"120\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#174299\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#001E59\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint1_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(26 94) rotate(-90) scale(74)\",children:[(0,m.jsx)(\"stop\",{offset:\"0.770277\",stopColor:\"#FF4000\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8754C9\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint2_linear_5_32\",x1:\"83\",y1:\"97\",x2:\"100\",y2:\"97\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#FF4000\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8754C9\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint3_linear_5_32\",x1:\"23\",y1:\"20\",x2:\"23\",y2:\"37\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#8754C9\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF4000\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint4_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(26 94) rotate(-90) scale(58)\",children:[(0,m.jsx)(\"stop\",{offset:\"0.723929\",stopColor:\"#FFF700\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF9901\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint5_linear_5_32\",x1:\"68\",y1:\"97\",x2:\"84\",y2:\"97\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#FFF700\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF9901\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint6_linear_5_32\",x1:\"23\",y1:\"52\",x2:\"23\",y2:\"36\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#FFF700\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#FF9901\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint7_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(26 94) rotate(-90) scale(42)\",children:[(0,m.jsx)(\"stop\",{offset:\"0.59513\",stopColor:\"#00AAFF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#01DA40\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint8_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(51 97) scale(17 45.3333)\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#00AAFF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#01DA40\"})]}),(0,m.jsxs)(\"radialGradient\",{id:\"paint9_radial_5_32\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"translate(23 69) rotate(-90) scale(17 322.37)\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#00AAFF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#01DA40\"})]}),(0,m.jsx)(\"clipPath\",{id:\"clip0_5_32\",children:(0,m.jsx)(\"rect\",{width:\"120\",height:\"120\",fill:\"white\"})}),(0,m.jsx)(\"clipPath\",{id:\"clip1_5_32\",children:(0,m.jsx)(\"rect\",{width:\"120\",height:\"120\",fill:\"white\"})})]})]}),displayName:\"Rainbow\",rdns:\"me.rainbow\"},wallet_connect:{logo:nw,displayName:\"WalletConnect\"},zerion:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"176\",height:\"176\",viewBox:\"0 0 176 176\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_1704_1423)\",children:[(0,m.jsx)(\"path\",{d:\"M126.233 176H49.7672C22.287 176 0 153.723 0 126.233V49.7673C0 22.287 22.2769 0 49.7672 0H126.233C153.713 0 176 22.277 176 49.7673V126.233C176 153.723 153.713 176 126.233 176Z\",fill:\"#2461ED\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M100.667 85.6591C83.4133 76.3353 62.4196 64.2443 46.6192 54.3891C41.9573 51.0306 44.3234 43.9023 49.9578 43.9023H128.138C132.499 43.9023 135.416 48.7648 133.231 52.4442C127.977 61.5174 120.308 73.0368 113.901 82.1702C110.462 87.0727 104.858 87.9149 100.667 85.6591ZM75.5031 88.6867C92.1858 97.5795 115.566 111.104 132.178 121.33C137.311 124.498 135.266 132.098 129.271 132.098C119.46 132.098 103.518 132.1 87.6592 132.103C71.9639 132.105 56.3497 132.108 46.8398 132.108C42.0476 132.108 39.5913 127.135 41.6265 123.666C48.5041 111.946 56.2338 100.116 62.6603 91.2834C65.5176 87.3433 71.3325 86.461 75.5031 88.6867Z\",fill:\"white\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_1704_1423\",children:(0,m.jsx)(\"rect\",{width:\"176\",height:\"176\",fill:\"white\"})})})]}),displayName:\"Zerion\",rdns:\"io.zerion.wallet\"},brave_wallet:{logo:({...e})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 436.49 511.97\",height:\"24\",width:\"24\",...e,children:[(0,m.jsx)(\"defs\",{children:(0,m.jsxs)(\"linearGradient\",{id:\"brave-linear-gradient\",x1:\"-18.79\",y1:\"359.73\",x2:\"194.32\",y2:\"359.73\",gradientTransform:\"matrix(2.05, 0, 0, -2.05, 38.49, 992.77)\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#f1562b\"}),(0,m.jsx)(\"stop\",{offset:\"0.3\",stopColor:\"#f1542b\"}),(0,m.jsx)(\"stop\",{offset:\"0.41\",stopColor:\"#f04d2a\"}),(0,m.jsx)(\"stop\",{offset:\"0.49\",stopColor:\"#ef4229\"}),(0,m.jsx)(\"stop\",{offset:\"0.5\",stopColor:\"#ef4029\"}),(0,m.jsx)(\"stop\",{offset:\"0.56\",stopColor:\"#e83e28\"}),(0,m.jsx)(\"stop\",{offset:\"0.67\",stopColor:\"#e13c26\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#df3c26\"})]})}),(0,m.jsx)(\"path\",{style:{fill:\"url(#brave-linear-gradient)\"},d:\"M436.49,165.63,420.7,122.75l11-24.6A8.47,8.47,0,0,0,430,88.78L400.11,58.6a48.16,48.16,0,0,0-50.23-11.66l-8.19,2.89L296.09.43,218.25,0,140.4.61,94.85,50.41l-8.11-2.87A48.33,48.33,0,0,0,36.19,59.3L5.62,90.05a6.73,6.73,0,0,0-1.36,7.47l11.47,25.56L0,165.92,56.47,380.64a89.7,89.7,0,0,0,34.7,50.23l111.68,75.69a24.73,24.73,0,0,0,30.89,0l111.62-75.8A88.86,88.86,0,0,0,380,380.53l46.07-176.14Z\"}),(0,m.jsx)(\"path\",{style:{fill:\"#fff\"},d:\"M231,317.33a65.61,65.61,0,0,0-9.11-3.3h-5.49a66.08,66.08,0,0,0-9.11,3.3l-13.81,5.74-15.6,7.18-25.4,13.24a4.84,4.84,0,0,0-.62,9l22.06,15.49q7,5,13.55,10.76l6.21,5.35,13,11.37,5.89,5.2a10.15,10.15,0,0,0,12.95,0l25.39-22.18,13.6-10.77,22.06-15.79a4.8,4.8,0,0,0-.68-8.93l-25.36-12.8L244.84,323ZM387.4,175.2l.8-2.3a61.26,61.26,0,0,0-.57-9.18,73.51,73.51,0,0,0-8.19-15.44l-14.35-21.06-10.22-13.88-19.23-24a69.65,69.65,0,0,0-5.7-6.67h-.4L321,84.25l-42.27,8.14a33.49,33.49,0,0,1-12.59-1.84l-23.21-7.5-16.61-4.59a70.52,70.52,0,0,0-14.67,0L195,83.1l-23.21,7.54a33.89,33.89,0,0,1-12.59,1.84l-42.22-8-8.54-1.58h-.4a65.79,65.79,0,0,0-5.7,6.67l-19.2,24Q77.81,120.32,73,127.45L58.61,148.51l-6.78,11.31a51,51,0,0,0-1.94,13.35l.8,2.3A34.51,34.51,0,0,0,52,179.81l11.33,13,50.23,53.39a14.31,14.31,0,0,1,2.55,14.34L107.68,280a25.23,25.23,0,0,0-.39,16l1.64,4.52a43.58,43.58,0,0,0,13.39,18.76l7.89,6.43a15,15,0,0,0,14.35,1.72L172.62,314A70.38,70.38,0,0,0,187,304.52l22.46-20.27a9,9,0,0,0,3-6.36,9.08,9.08,0,0,0-2.5-6.56L159.2,237.18a9.83,9.83,0,0,1-3.09-12.45l19.66-36.95a19.21,19.21,0,0,0,1-14.67A22.37,22.37,0,0,0,165.58,163L103.94,139.8c-4.44-1.6-4.2-3.6.51-3.88l36.2-3.59a55.9,55.9,0,0,1,16.9,1.5l31.5,8.8a9.64,9.64,0,0,1,6.74,10.76L183.42,221a34.72,34.72,0,0,0-.61,11.41c.5,1.61,4.73,3.6,9.36,4.73l19.19,4a46.38,46.38,0,0,0,16.86,0l17.26-4c4.64-1,8.82-3.23,9.35-4.85a34.94,34.94,0,0,0-.63-11.4l-12.45-67.59a9.66,9.66,0,0,1,6.74-10.76l31.5-8.83a55.87,55.87,0,0,1,16.9-1.5l36.2,3.37c4.74.44,5,2.2.54,3.88L272,162.79a22.08,22.08,0,0,0-11.16,10.12,19.3,19.3,0,0,0,1,14.67l19.69,36.95A9.84,9.84,0,0,1,278.45,237l-50.66,34.23a9,9,0,0,0,.32,12.78l.15.14,22.49,20.27a71.46,71.46,0,0,0,14.35,9.47l28.06,13.35a14.89,14.89,0,0,0,14.34-1.76l7.9-6.45a43.53,43.53,0,0,0,13.38-18.8l1.65-4.52a25.27,25.27,0,0,0-.39-16l-8.26-19.49a14.4,14.4,0,0,1,2.55-14.35l50.23-53.45,11.3-13a35.8,35.8,0,0,0,1.54-4.24Z\"})]}),displayName:\"Brave Wallet\",rdns:\"com.brave.wallet\"},cryptocom:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"400\",height:\"400\",viewBox:\"0 0 400 400\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M260.543 0C300.7 0 320.773 0 342.39 6.83333C365.99 15.4233 384.577 34.01 393.167 57.61C400 79.2233 400 99.3033 400 139.457V260.543C400 300.7 400 320.773 393.167 342.39C384.577 365.99 365.99 384.577 342.39 393.163C320.773 400 300.7 400 260.543 400H139.457C99.3 400 79.2233 400 57.61 393.163C34.01 384.577 15.4233 365.99 6.83333 342.39C0 320.773 0 300.7 0 260.543V139.457C0 99.3033 0 79.2233 6.83333 57.61C15.4233 34.01 34.01 15.4233 57.61 6.83333C79.2233 0 99.3 0 139.457 0H260.543Z\",fill:\"white\"}),(0,m.jsx)(\"mask\",{id:\"mask0_16909_31415\",style:{maskType:\"luminance\"},maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"400\",height:\"400\",children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M260.543 0C300.7 0 320.773 0 342.39 6.83333C365.99 15.4233 384.577 34.01 393.167 57.61C400 79.2233 400 99.3033 400 139.457V260.543C400 300.7 400 320.773 393.167 342.39C384.577 365.99 365.99 384.577 342.39 393.163C320.773 400 300.7 400 260.543 400H139.457C99.3 400 79.2233 400 57.61 393.163C34.01 384.577 15.4233 365.99 6.83333 342.39C0 320.773 0 300.7 0 260.543V139.457C0 99.3033 0 79.2233 6.83333 57.61C15.4233 34.01 34.01 15.4233 57.61 6.83333C79.2233 0 99.3 0 139.457 0H260.543Z\",fill:\"white\"})}),(0,m.jsxs)(\"g\",{mask:\"url(#mask0_16909_31415)\",children:[(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M199.804 39.8501L59.3756 119.957V280.18L199.804 360.297L340.23 280.18V119.957L199.804 39.8501Z\",fill:\"#FEFEFE\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M199.804 39.8501L59.3756 119.957V280.18L199.804 360.297L340.23 280.18V119.957L199.804 39.8501ZM144.359 109.116H254.873L268.197 164.788H131.538L144.359 109.116ZM176.201 204.291L164.148 173.197H235.711L223.913 204.291L227.339 239.028L199.804 239.154H172.522L176.201 204.291ZM211.354 275.892V264.862L236.093 241.414V204.417L268.451 183.607L305.376 211.066L255.119 297.589H235.203L211.354 275.892ZM94.2395 211.066L131.282 183.857L164.021 204.417V241.414L188.76 264.862V275.892L164.913 297.84H144.734L94.2395 211.066Z\",fill:\"#002D72\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M255.12 297.589H235.202L211.355 275.892V264.862L236.094 241.414V204.417L268.45 183.607L305.377 211.066L255.12 297.589ZM199.803 39.8498V109.117H254.872L268.198 164.789H199.803V173.199H235.712L223.914 204.291L227.338 239.028L199.803 239.153V360.296L340.231 280.181V119.957L199.803 39.8498Z\",fill:\"url(#paint0_linear_16909_31415)\",style:{mixBlendMode:\"multiply\"}}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M188.761 275.892L164.912 297.84H144.734L94.2389 211.066L131.283 183.858L164.022 204.417V241.414L188.761 264.862V275.892ZM172.522 239.153L176.2 204.291L164.149 173.199H199.803V164.789H131.537L144.36 109.117H199.803V39.8498L59.375 119.957V280.181L199.803 360.296V239.153H172.522Z\",fill:\"url(#paint1_linear_16909_31415)\",style:{mixBlendMode:\"multiply\"}})]}),(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"paint0_linear_16909_31415\",x1:\"325.255\",y1:\"325.727\",x2:\"325.255\",y2:\"73.6291\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#002D72\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#002D72\",stopOpacity:\"0.01\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint1_linear_16909_31415\",x1:\"184.827\",y1:\"325.727\",x2:\"184.827\",y2:\"73.6291\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#002D72\",stopOpacity:\"0.01\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#002D72\"})]})]})]}),displayName:\"Crypto.com DeFi Wallet\",rdns:\"com.crypto.wallet\"},uniswap:{logo:({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"96\",height:\"96\",viewBox:\"0 0 96 96\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:24,width:24,...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"96\",height:\"96\",rx:\"18\",fill:\"#FEF4FF\"}),(0,m.jsxs)(\"g\",{children:[(0,m.jsx)(\"path\",{d:\"M71.9367 18.39C72.0482 16.4526 72.3145 15.1746 72.8497 14.0075C73.0616 13.5456 73.2601 13.1675 73.2907 13.1675C73.3214 13.1675 73.2293 13.5085 73.086 13.9252C72.6969 15.0578 72.633 16.607 72.901 18.4094C73.2413 20.6963 73.4348 21.0263 75.8841 23.4967C77.0329 24.6554 78.3692 26.1168 78.8536 26.7443L79.7343 27.8851L78.8536 27.0698C77.7764 26.0728 75.2992 24.1283 74.7521 23.8503C74.3852 23.6639 74.3306 23.6671 74.1043 23.8894C73.8958 24.0943 73.8519 24.4021 73.8229 25.8572C73.7778 28.125 73.4646 29.5807 72.7087 31.0362C72.2998 31.8234 72.2354 31.6554 72.6053 30.7668C72.8816 30.1034 72.9096 29.8117 72.9076 27.6163C72.9033 23.2052 72.3727 22.1447 69.2607 20.3281C68.4724 19.8678 67.1734 19.2041 66.3742 18.8531C65.575 18.502 64.9401 18.1962 64.9633 18.1734C65.0514 18.0868 68.0863 18.961 69.3077 19.4247C71.1247 20.1145 71.4247 20.2039 71.6454 20.1207C71.7933 20.0649 71.8648 19.6398 71.9367 18.39Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M33.5466 11.9727C32.4688 11.808 32.4233 11.7887 32.9306 11.7119C33.9026 11.5647 36.1979 11.7653 37.7796 12.1358C41.4722 13.0004 44.8322 15.2153 48.4188 19.1488L49.3717 20.1938L50.7348 19.978C56.4773 19.0689 62.3192 19.7914 67.2054 22.0148C68.5495 22.6265 70.6689 23.8441 70.9337 24.157C71.018 24.2568 71.173 24.8987 71.2779 25.5837C71.6408 27.9534 71.4591 29.7699 70.7234 31.1265C70.3229 31.8648 70.3006 32.0988 70.5698 32.7306C70.7847 33.2348 71.3838 33.608 71.9771 33.6072C73.1913 33.6056 74.4983 31.6721 75.1038 28.9818L75.3443 27.9131L75.8209 28.4448C78.4346 31.3619 80.4876 35.34 80.8403 38.1716L80.9321 38.9099L80.4928 38.2387C79.7366 37.0838 78.9769 36.2976 78.0041 35.6635C76.2504 34.5205 74.3961 34.1315 69.4853 33.8766C65.0501 33.6464 62.5399 33.2732 60.0509 32.4737C55.816 31.1137 53.6812 29.3023 48.6508 22.8012C46.4164 19.9135 45.0354 18.3159 43.6616 17.0293C40.5401 14.1058 37.4729 12.5726 33.5466 11.9727Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M35.6404 25.9564C33.4522 22.9889 32.0983 18.4391 32.3914 15.0379L32.482 13.9854L32.9801 14.0749C33.9155 14.243 35.5283 14.8343 36.2835 15.2861C38.3559 16.5259 39.253 18.1582 40.1658 22.3496C40.4332 23.5773 40.7839 24.9666 40.9454 25.437C41.2052 26.194 42.1871 27.9624 42.9854 29.1109C43.5605 29.938 43.1785 30.33 41.9074 30.217C39.9662 30.0444 37.3367 28.2568 35.6404 25.9564Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M69.2799 48.0419C59.0538 43.9862 55.4521 40.4658 55.4521 34.5259C55.4521 33.6517 55.4827 32.9365 55.5199 32.9365C55.5572 32.9365 55.9528 33.225 56.3991 33.5776C58.4728 35.216 60.7949 35.9157 67.2233 36.8395C71.0061 37.3831 73.1349 37.8222 75.0986 38.4637C81.3402 40.5027 85.2018 44.6406 86.1227 50.2766C86.3903 51.9143 86.2334 54.9854 85.7995 56.6039C85.457 57.8824 84.4118 60.1868 84.1346 60.2751C84.0578 60.2996 83.9824 60.0094 83.9626 59.6147C83.8575 57.4983 82.7718 55.438 80.9485 53.8946C78.8754 52.1399 76.0901 50.7428 69.2799 48.0419Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M62.1008 49.7268C61.9727 48.9758 61.7505 48.0167 61.607 47.5954L61.3461 46.8296L61.8307 47.3655C62.5014 48.107 63.0314 49.0559 63.4806 50.3197C63.8234 51.2843 63.862 51.5711 63.8594 53.1386C63.8568 54.6774 63.814 55 63.4974 55.8682C62.9983 57.2373 62.3788 58.208 61.3392 59.2501C59.4712 61.1228 57.0696 62.1596 53.6039 62.5896C53.0015 62.6643 51.2456 62.7902 49.7019 62.8693C45.8118 63.0686 43.2515 63.4803 40.9508 64.276C40.6201 64.3905 40.3247 64.4601 40.2948 64.4305C40.2017 64.3393 41.768 63.4195 43.0618 62.8056C44.8862 61.94 46.7021 61.4676 50.7709 60.8002C52.7809 60.4704 54.8566 60.0704 55.3837 59.9112C60.3612 58.4079 62.9197 54.5286 62.1008 49.7268Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M66.7886 57.9275C65.4299 55.0505 65.1179 52.2726 65.8623 49.6821C65.942 49.4053 66.07 49.1787 66.1471 49.1787C66.224 49.1787 66.5447 49.3495 66.8594 49.5581C67.4855 49.9732 68.7412 50.6725 72.0866 52.4692C76.2612 54.7111 78.6414 56.4472 80.2599 58.4306C81.6775 60.1677 82.5547 62.1459 82.9769 64.5583C83.2159 65.9248 83.0759 69.2128 82.7199 70.5889C81.5975 74.9275 78.9889 78.3356 75.2682 80.3242C74.7231 80.6155 74.2337 80.8547 74.1807 80.8558C74.1278 80.8569 74.3264 80.3594 74.6222 79.7503C75.8738 77.173 76.0163 74.6661 75.07 71.8756C74.4906 70.1671 73.3092 68.0823 70.924 64.5588C68.1507 60.4623 67.4708 59.3721 66.7886 57.9275Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{d:\"M28.3782 73.4506C32.173 70.2943 36.8948 68.0521 41.1958 67.3639C43.0494 67.0672 46.1372 67.185 47.8537 67.6178C50.605 68.3113 53.0662 69.8648 54.3462 71.7156C55.5971 73.5245 56.1338 75.1008 56.6925 78.6081C56.913 79.9916 57.1527 81.3809 57.2252 81.6954C57.6449 83.5131 58.4614 84.966 59.4733 85.6957C61.0805 86.8544 63.8479 86.9265 66.5704 85.8804C67.0325 85.7028 67.4336 85.5801 67.4618 85.6078C67.5605 85.7044 66.1896 86.6083 65.2225 87.0842C63.9212 87.7245 62.8864 87.972 61.5115 87.972C59.0181 87.972 56.948 86.7226 55.2206 84.175C54.8807 83.6736 54.1167 82.1718 53.5228 80.8378C51.699 76.7403 50.7984 75.4921 48.6809 74.126C46.8381 72.9374 44.4615 72.7245 42.6736 73.588C40.325 74.7223 39.6698 77.6786 41.3518 79.5521C42.0204 80.2967 43.2671 80.939 44.2865 81.0638C46.1936 81.2975 47.8326 79.8684 47.8326 77.9717C47.8326 76.7402 47.352 76.0374 46.1423 75.4996C44.4901 74.7652 42.7141 75.6237 42.7226 77.1526C42.7263 77.8045 43.0145 78.214 43.6779 78.5097C44.1036 78.6994 44.1134 78.7144 43.7664 78.6434C42.2504 78.3337 41.8952 76.5335 43.1141 75.3383C44.5776 73.9036 47.6037 74.5367 48.6428 76.4951C49.0794 77.3177 49.1301 78.956 48.7495 79.9452C47.8976 82.1593 45.4138 83.3237 42.8941 82.6901C41.1787 82.2587 40.4801 81.7915 38.4119 79.6931C34.8179 76.0462 33.4226 75.3396 28.2413 74.5428L27.2484 74.3902L28.3782 73.4506Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M11.5147 8.18128C23.517 22.5305 31.7835 28.4507 32.7022 29.7015C33.4607 30.7343 33.1752 31.6628 31.8758 32.3905C31.1532 32.7951 29.6676 33.205 28.9238 33.205C28.0825 33.205 27.7936 32.8853 27.7936 32.8853C27.3058 32.4296 27.0311 32.5093 24.5261 28.1293C21.0483 22.8137 18.1379 18.4041 18.0585 18.3303C17.8749 18.1596 17.878 18.1653 24.1715 29.2574C25.1883 31.5693 24.3737 32.4179 24.3737 32.7471C24.3737 33.417 24.1882 33.7691 23.3494 34.6907C21.951 36.2274 21.3259 37.954 20.8746 41.5274C20.3687 45.5332 18.9462 48.3629 15.0041 53.2057C12.6965 56.0406 12.3189 56.5602 11.7366 57.7028C11.0032 59.1416 10.8015 59.9475 10.7198 61.7645C10.6334 63.6855 10.8016 64.9265 11.3975 66.7632C11.9191 68.3712 12.4636 69.433 13.8555 71.5567C15.0568 73.3894 15.7484 74.7513 15.7484 75.2841C15.7484 75.708 15.8306 75.7085 17.692 75.2945C22.1466 74.3036 25.7638 72.5609 27.7981 70.4252C29.0571 69.1033 29.3527 68.3733 29.3623 66.5619C29.3686 65.377 29.3263 65.1289 29.0011 64.4473C28.4718 63.3379 27.5083 62.4154 25.3845 60.9853C22.6019 59.1115 21.4133 57.603 21.085 55.5285C20.8157 53.8263 21.1282 52.6253 22.6676 49.4472C24.2609 46.1575 24.6558 44.7557 24.9229 41.4399C25.0954 39.2977 25.3343 38.4528 25.9591 37.7747C26.6108 37.0676 27.1975 36.8281 28.8103 36.611C31.4396 36.2572 33.1139 35.5871 34.4901 34.3379C35.6839 33.2543 36.1835 32.2101 36.2602 30.6382L36.3184 29.4468L35.6512 28.6806C33.2352 25.9057 9.89667 6 9.74799 6C9.71623 6 10.5113 6.98164 11.5147 8.18128ZM17.1047 63.9381C17.6509 62.9852 17.3607 61.7601 16.447 61.1617C15.5836 60.5962 14.2424 60.8625 14.2424 61.5994C14.2424 61.8243 14.3687 61.9879 14.6532 62.1322C15.1322 62.375 15.167 62.648 14.7901 63.2061C14.4084 63.7712 14.4392 64.2681 14.877 64.6057C15.5826 65.15 16.5815 64.8507 17.1047 63.9381Z\",fill:\"#F50DB4\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M37.9777 37.236C36.7433 37.6095 35.5435 38.8981 35.172 40.2493C34.9454 41.0736 35.074 42.5196 35.4134 42.9662C35.9617 43.6874 36.492 43.8774 37.9277 43.8675C40.7388 43.8482 43.1825 42.6606 43.4666 41.176C43.6994 39.9591 42.6262 38.2726 41.1478 37.5321C40.385 37.1502 38.7626 36.9987 37.9777 37.236ZM41.2638 39.7671C41.6973 39.1604 41.5076 38.5047 40.7704 38.0611C39.3664 37.2167 37.2432 37.9155 37.2432 39.222C37.2432 39.8724 38.3504 40.5819 39.3653 40.5819C40.0408 40.5819 40.9652 40.1851 41.2638 39.7671Z\",fill:\"#F50DB4\"})]})]}),displayName:\"Uniswap Wallet\",rdns:\"org.uniswap.app\"},okx_wallet:{displayName:\"OKX Wallet\",rdns:\"com.okex.wallet\",logo:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJDSURBVHgB7Zq9jtpAEMfHlhEgQLiioXEkoAGECwoKxMcTRHmC5E3IoyRPkPAEkI7unJYmTgEFTYwA8a3NTKScLnCHN6c9r1e3P2llWQy7M/s1Gv1twCP0ej37dDq9x+Zut1t3t9vZjDEHIiSRSPg4ZpDL5fxkMvn1cDh8m0wmfugfO53OoFQq/crn8wxfY9EymQyrVCqMfHvScZx1p9ls3pFxXBy/bKlUipGPrVbLuQqAfsCliq3zl0H84zwtjQrOw4Mt1W63P5LvBm2d+Xz+YzqdgkqUy+WgWCy+Mc/nc282m4FqLBYL+3g8fjDxenq72WxANZbLJeA13zDX67UDioL5ybXwafMYu64Ltn3bdDweQ5R97fd7GyhBQMipx4POeEDHIu2LfDdBIGGz+hJ9CQ1ABjoA2egAZPM6AgiCAEQhsi/C4jHyPA/6/f5NG3Ks2+3CYDC4aTccDrn6ojG54MnEvG00GoVmWLIRNZ7wTCwDHYBsdACy0QHIhiuRETxlICWpMMhGZHmqS8qH6JLyGegAZKMDkI0uKf8X4SWlaZo+Pp1bRrwlJU8ZKLIvUjKh0WiQ3sRUbNVq9c5Ebew7KEo2m/1p4jJ4qAmDaqDQBzj5XyiAT4VCQezJigAU+IDU+z8vJFnGWeC+bKQV/5VZ71FV6L7PA3gg3tXrdQ+DgLhC+75Wq3no69P3MC0NFQpx2lL04Ql9gHK1bRDjsSBIvScBnDTk1WrlGIZBorIDEYJj+rhdgnQ67VmWRe0zlplXl81vcyEt0rSoYDUAAAAASUVORK5CYII=\"},rabby_wallet:{logo:e=>(0,m.jsxs)(\"svg\",{width:\"52\",height:\"52\",viewBox:\"0 0 52 52\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...e,children:[(0,m.jsx)(\"rect\",{width:\"52\",height:\"52\",rx:\"26\",fill:\"#7084FF\"}),(0,m.jsx)(\"path\",{d:\"M43.6781 28.2954C45.1053 25.0988 38.0498 16.168 31.3094 12.4472C27.0608 9.56481 22.6337 9.96081 21.737 11.2264C19.7693 14.0039 28.2527 16.3574 33.9263 19.1037C32.7067 19.6348 31.5574 20.5879 30.8816 21.8067C28.7664 19.4915 24.1239 17.4977 18.6765 19.1037C15.0056 20.186 11.9547 22.7374 10.7756 26.5911C10.4891 26.4635 10.1719 26.3925 9.83814 26.3925C8.56192 26.3925 7.52734 27.4298 7.52734 28.7094C7.52734 29.989 8.56192 31.0263 9.83814 31.0263C10.0747 31.0263 10.8143 30.8672 10.8143 30.8672L22.6337 30.953C17.9068 38.4713 14.1713 39.5704 14.1713 40.8729C14.1713 42.1754 17.7455 41.8224 19.0876 41.3369C25.5121 39.0127 32.4123 31.7692 33.5964 29.6841C38.5688 30.3061 42.7476 30.3796 43.6781 28.2954Z\",fill:\"url(#paint0_linear_81034_11443)\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M33.8741 19.076C33.8926 19.084 33.911 19.092 33.9294 19.1001C34.1923 18.9962 34.1498 18.6068 34.0776 18.301C33.9116 17.5981 31.0479 14.7629 28.3588 13.493C24.6934 11.762 21.9946 11.8518 21.5972 12.65C22.3407 14.1849 25.8031 15.6258 29.4193 17.1308C30.9407 17.7639 32.4893 18.4084 33.8741 19.076Z\",fill:\"url(#paint1_linear_81034_11443)\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M29.272 34.5374C28.5323 34.2543 27.697 33.9945 26.7477 33.7587C27.7625 31.9382 27.9754 29.2432 27.0171 27.5392C25.6721 25.1478 23.9838 23.875 20.0605 23.875C17.9027 23.875 12.093 24.6037 11.9899 29.4663C11.9791 29.9743 11.9895 30.44 12.026 30.8685L22.6335 30.9456C21.2017 33.2229 19.8609 34.9113 18.6873 36.1947C20.0979 36.5571 21.2615 36.8612 22.3297 37.1404C23.3394 37.4043 24.2638 37.646 25.2309 37.8934C26.6941 36.8249 28.0698 35.6597 29.272 34.5374Z\",fill:\"url(#paint2_linear_81034_11443)\"}),(0,m.jsx)(\"path\",{d:\"M10.6324 30.3712C11.0658 34.065 13.1596 35.5127 17.4381 35.9411C21.7166 36.3695 24.1708 36.0821 27.4381 36.3801C30.167 36.6291 32.6036 38.0233 33.5075 37.5415C34.321 37.1079 33.8659 35.5412 32.7774 34.5361C31.3663 33.2333 29.4135 32.3274 25.9773 32.006C26.6621 30.1261 26.4702 27.4903 25.4067 26.0562C23.8689 23.9827 21.0305 23.0453 17.4381 23.4549C13.6848 23.8828 10.0885 25.7354 10.6324 30.3712Z\",fill:\"url(#paint3_linear_81034_11443)\"}),(0,m.jsxs)(\"defs\",{children:[(0,m.jsxs)(\"linearGradient\",{id:\"paint0_linear_81034_11443\",x1:\"18.249\",y1:\"25.4646\",x2:\"43.3806\",y2:\"32.5728\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"white\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"white\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint1_linear_81034_11443\",x1:\"39.1432\",y1:\"24.9813\",x2:\"20.9691\",y2:\"6.81008\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#8697FF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8697FF\",stopOpacity:\"0\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint2_linear_81034_11443\",x1:\"29.7761\",y1:\"35.1727\",x2:\"12.345\",y2:\"25.1792\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#8697FF\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#8697FF\",stopOpacity:\"0\"})]}),(0,m.jsxs)(\"linearGradient\",{id:\"paint3_linear_81034_11443\",x1:\"19.7472\",y1:\"25.2716\",x2:\"31.5549\",y2:\"40.2352\",gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"white\"}),(0,m.jsx)(\"stop\",{offset:\"0.983895\",stopColor:\"#D1D8FF\"})]})]})]}),displayName:\"Rabby Wallet\",rdns:\"io.rabby.wallet\"}},aS=(e,t,r)=>aA[e]?.displayName?\"coinbase_wallet\"===e?aA[r].displayName:aA[e].displayName:\"wallet_connect_v2\"===t&&\"wallet_connect\"===e?\"Wallet Connect\":void 0,aT=(e,t,r)=>aA[e]?.logo?\"coinbase_wallet\"===e?aA[r].logo:aA[e].logo:\"wallet_connect_v2\"===t&&\"wallet_connect\"===e?nw:void 0,aP=(e,t)=>{let r=t?.height||16,n=t?.width||16;return 8453===e?(0,m.jsx)(aE,{height:r,width:n}):(0,m.jsx)(g.Z,{height:r,width:n})};function aN(e){let t=e.toLowerCase();return!!window?.webkit?.messageHandlers?.ReactNativeWebView||!!window?.ReactNativeWebView||[\"fbav\",\"fban\",\"instagram\",\"snapchat\",\"linkedinapp\"].some(e=>t.includes(e))}var aR=(0,o.createContext)({}),aM=({children:e})=>{let t=nh(),[r,n]=(0,o.useState)({});return nG(\"login\",{onComplete:(e,r,i,a,o)=>{o&&\"passkey\"!==o.type&&\"cross_app\"!==o.type&&(\"wallet\"!==o.type||\"privy\"!==o.walletClientType)&&(to.put(aO(t.id),o.type),\"wallet\"===o.type?(to.put(aI(t.id),o.walletClientType),n({accountType:o.type,walletClientType:o.walletClientType})):(to.del(aI(t.id)),n({accountType:o.type})))}}),(0,o.useEffect)(()=>{if(!t.id)return;let e=to.get(aO(t.id)),r=to.get(aI(t.id));e&&n(\"wallet\"===e?{accountType:e,walletClientType:r}:{accountType:e})},[t.id]),(0,m.jsx)(aR.Provider,{value:r,children:e})},aO=e=>`privy:${e}:recent-login-method`,aI=e=>`privy:${e}:recent-login-wallet-client`,aW=()=>(0,o.useContext)(aR),aL=({provider:e,displayName:t,logo:r,connectOnly:n,connector:i})=>{let{navigate:a}=ny(),{connectWallet:o}=nZ(),l=aW(),c=\"wallet_connect_v2\"===i.connectorType?e:i.walletClientType,d=window.matchMedia(\"(display-mode: standalone)\").matches,h;return h=\"phantom\"===i.connectorType?()=>{tc()?(o(i,c),a(n?\"AWAITING_CONNECT_ONLY_CONNECTION\":\"AWAITING_CONNECTION\")):a(s.tq?\"PHANTOM_INTERSTITIAL_SCREEN\":\"INSTALL_PHANTOM_SCREEN\")}:\"coinbase_wallet\"!==i.connectorType||\"eoaOnly\"!==i.connectionOptions||!s.tq||d||td()?()=>{aN(window.navigator.userAgent)&&!event?.isTrusted||(o(i,c),a(n?\"AWAITING_CONNECT_ONLY_CONNECTION\":\"AWAITING_CONNECTION\"))}:()=>{window.location.href=`https://go.cb-w.com/dapp?cb_url=${encodeURI(window.location.href)}`},(0,m.jsxs)(aF,{onClick:h,children:[(0,m.jsx)(aC,{icon:aT(e,i.connectorType,i.walletClientType)??r,name:i.walletClientType}),(0,m.jsx)(\"span\",{children:aS(e,i.connectorType,i.walletClientType)||t||i.walletClientType}),l?.walletClientType===c?(0,m.jsx)(aU,{color:\"gray\",children:\"Recent\"}):(0,m.jsx)(\"span\",{id:\"connect-text\",children:\"Connect\"})]})},aF=(0,A.ZP)(i_)`\n  /* Show \"Connect\" on hover */\n  > #connect-text {\n    font-weight: 500;\n    text-align: right;\n    flex: none;\n    order: 2;\n    flex-grow: 1;\n    color: var(--privy-color-accent);\n    opacity: 0;\n    transition: opacity 0.1s ease-out;\n  }\n\n  :hover > #connect-text {\n    opacity: 1;\n  }\n\n  @media (max-width: 440px) {\n    > #connect-text {\n      display: none;\n    }\n  }\n`,aU=(0,A.ZP)(aj)`\n  margin-left: auto;\n`,aD=[\"coinbase_wallet\"],aZ=[\"metamask\",\"okx_wallet\",\"rainbow\",\"uniswap\",\"zerion\",\"rabby_wallet\",\"cryptocom\"],az=[],a$=[\"phantom\"],aH=({connectOnly:e})=>{let{connectors:t}=nZ(),{app:r}=ny(),n=aB(r.appearance.walletList,t,e,r.appearance.walletList,r.externalWallets.walletConnect.enabled);return(0,m.jsxs)(m.Fragment,{children:[...n]})},aB=(e,t,r,n,i)=>{let a=[],o=[],s=[],l=t.find(e=>\"wallet_connect_v2\"===e.connectorType);for(let c of e)if(\"detected_wallets\"===c)for(let e of t.filter(({connectorType:e,walletClientType:t})=>\"uniswap_wallet_extension\"===t?!n.includes(\"uniswap\"):\"crypto.com_wallet_extension\"===t?!n.includes(\"cryptocom\"):\"injected\"===e&&!n.includes(t))){let{walletClientType:t,walletBranding:n}=e;(\"unknown\"===t?o:a).push((0,m.jsx)(aL,{connectOnly:r,provider:t,logo:n.icon,displayName:n.name,connector:e},`${c}-${t}`))}else if(a$.includes(c)){let e=t.find(e=>\"injected\"===e.connectorType&&e.walletClientType===c||e.connectorType===c);e&&a.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:e},c))}else if(aZ.includes(c)){let e=t.find(e=>\"uniswap\"===c?\"uniswap_wallet_extension\"===e.walletClientType:\"cryptocom\"===c?\"crypto.com_wallet_extension\"===e.walletClientType:\"injected\"===e.connectorType&&e.walletClientType===c);i&&!e&&(e=l),e&&a.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:e},c))}else if(aD.includes(c)){let e=t.find(({connectorType:e})=>e===c);e&&a.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:e},c))}else az.includes(c)?l&&s.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:l},c)):\"wallet_connect\"===c&&l&&s.push((0,m.jsx)(aL,{connectOnly:r,provider:c,connector:l},c));return[...o,...a,...s]},aq=(e,t)=>{let r=(0,o.useRef)(()=>{});(0,o.useEffect)(()=>{r.current=e}),(0,o.useEffect)(()=>{if(null!==t){let e=setInterval(()=>r.current(),t||0);return()=>clearInterval(e)}},[t])},aV=e=>e?.privyErrorCode===\"linked_to_another_user\"?rL.ERROR_USER_EXISTS:e instanceof rW&&!e.details.default?e.details:e instanceof rR?rL.ERROR_TIMED_OUT:e instanceof rM?rL.ERROR_USER_REJECTED_CONNECTION:rL.ERROR_WALLET_CONNECTION,aG=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,aK=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n\n  > div {\n    position: relative;\n  }\n\n  > div > span {\n    position: absolute;\n    left: -41px;\n    top: -41px;\n  }\n\n  > div > :last-child {\n    position: absolute;\n    left: -19px;\n    top: -19px;\n  }\n`,aY=e=>{let t=e.walletLogo;return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(aK,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:e.success,fail:e.fail}),\"string\"==typeof t?(0,m.jsx)(\"span\",{style:{background:`url('${t}')`,height:\"38px\",width:\"38px\",borderRadius:\"6px\",margin:\"auto\",backgroundSize:\"cover\"}}):(0,m.jsx)(t,{style:{width:\"38px\",height:\"38px\"}})]})})})},aQ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,aX=({name:e,logoUrl:t})=>{let r=`${e??\"Provider app\"} logo`;return\"string\"==typeof t?(0,m.jsx)(\"img\",{src:t,alt:r,style:{width:\"38px\",height:\"38px\",maxHeight:\"90px\",maxWidth:\"180px\",borderRadius:\"8px\"}}):(0,m.jsx)(\"span\",{})},aJ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,a0=()=>(0,m.jsx)(a1,{children:(0,m.jsxs)(a2,{children:[(0,m.jsx)(a3,{}),(0,m.jsx)(a4,{})]})}),a1=A.ZP.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-grow: 1;\n\n  margin: 12px;\n  padding: 16px;\n\n  @media all and (display-mode: standalone) {\n    margin-bottom: 30px;\n  }\n`,a2=A.ZP.div`\n  position: relative;\n  height: 140px;\n  width: 140px;\n\n  opacity: 1;\n  animation: fadein 200ms ease;\n`,a3=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 140px;\n  height: 140px;\n\n  && {\n    border: 4px solid var(--privy-color-accent-light);\n    border-radius: 50%;\n  }\n`,a4=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 140px;\n  height: 140px;\n  animation: spin 1200ms linear infinite;\n\n  && {\n    border: 4px solid;\n    border-color: var(--privy-color-accent) transparent transparent transparent;\n    border-radius: 50%;\n  }\n\n  @keyframes spin {\n    from {\n      transform: rotate(0deg);\n    }\n    to {\n      transform: rotate(360deg);\n    }\n  }\n`,a5=[\"error\",\"invalid_request_arguments\",\"wallet_not_on_device\",\"invalid_recovery_pin\",\"insufficient_funds\",\"missing_or_invalid_mfa\",\"mfa_verification_max_attempts_reached\",\"mfa_timeout\",\"twilio_verification_failed\"],a6=class extends Error{constructor(e,t){super(t),this.type=e}};function a7(e){let t=e.type;return\"string\"==typeof t&&a5.includes(t)}function a8(e){return a7(e)&&\"wallet_not_on_device\"===e.type}function a9(e){return!!(a7(e)&&\"mfa_timeout\"===e.type)}function oe(e){return!!(a7(e)&&\"missing_or_invalid_mfa\"===e.type)}function ot(e){return!!(a7(e)&&e.message.includes(\"code 429\"))}function or(e){let t;return!!(\"string\"==typeof(t=e.type)&&\"client_error\"===t&&\"MFA canceled\"===e.message)}function on({isCreatingWallet:e,skipSplashScreen:t}){return e?\"EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN\":t?\"EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN\":\"EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN\"}function oi({walletAction:e,availableRecoveryMethods:t,legacySetWalletPasswordFlow:r,isResettingPassword:n,showAutomaticRecovery:i}){return i?\"EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN\":r||1===t.length?on({isCreatingWallet:\"create\"===e,skipSplashScreen:n}):\"EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN\"}function oa(e){switch(e){case\"user-passcode\":return\"EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN\";case\"google-drive\":case\"icloud\":return\"EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN\";default:throw Error(\"Recovery method not supported\")}}async function oo({api:e,provider:t}){let r=t4(),n=t4(),i=await t5(r);try{return\"icloud\"===t?{url:(await e.post(\"/api/v1/recovery/oauth/init_icloud\",{client_type:\"web\"})).url}:{url:(await e.post(\"/api/v1/recovery/oauth/init\",{redirect_to:window.location.href,code_challenge:i,state_code:n})).url,codeVerifier:r,stateCode:n,provider:t}}catch(e){throw eX(e)}}async function os({api:e,provider:t,stateCode:r,codeVerifier:n,authorizationCode:i}){if(!i||!r)throw new eK(\"[OAuth AuthFlow] Authorization and state codes code must be set prior to calling authenicate.\");if(\"undefined\"===i)throw new eK(\"User denied confirmation during OAuth flow\");try{return(await e.post(\"/api/v1/recovery/oauth/authenticate\",{authorization_code:i,state_code:r,code_verifier:n,provider:t})).access_token}catch(t){let e=eX(t);throw e.privyErrorCode?new eK(e.message||\"Invalid code during OAuth flow.\",void 0,e.privyErrorCode):\"User denied confirmation during OAuth flow\"===e.message?new eK(\"Invalid code during oauth flow.\",void 0,\"oauth_user_denied\"):new eK(\"Invalid code during OAuth flow.\",void 0,\"unknown_auth_error\")}}var ol=A.ZP.div`\n  height: 44px;\n`,oc=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n`,od=A.ZP.span`\n  color: var(--privy-color-foreground-3);\n  font-size: 0.875rem;\n  font-weight: 400;\n  line-height: 1.375rem; /* 157.143% */\n`;function oh(e){let[t,r]=(0,o.useState)(!1);return t?(0,m.jsxs)(\"div\",{className:\"gap-1.75 flex items-center\",children:[(0,m.jsx)(M.Z,{color:\"var(--privy-color-success)\"}),(0,m.jsx)(\"span\",{children:\"Copied Address\"})]}):(0,m.jsx)(D.Z,{color:\"var(--privy-color-foreground-3)\",onClick:async()=>{await navigator.clipboard.writeText(e.address),r(!0),setTimeout(()=>r(!1),2500)}})}function ou(e){let[t,r]=(0,o.useState)(e.dimensions.width),[n,i]=(0,o.useState)(void 0),a=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(a.current&&void 0===t){let{width:e}=a.current.getBoundingClientRect();r(e)}let e=getComputedStyle(document.documentElement);i({background:e.getPropertyValue(\"--privy-color-background\"),background2:e.getPropertyValue(\"--privy-color-background-2\"),foreground3:e.getPropertyValue(\"--privy-color-foreground-3\"),foregroundAccent:e.getPropertyValue(\"--privy-color-foreground-accent\"),accent:e.getPropertyValue(\"--privy-color-accent\"),accentDark:e.getPropertyValue(\"--privy-color-accent-dark\"),success:e.getPropertyValue(\"--privy-color-success\")})},[]),(0,m.jsx)(\"div\",{ref:a,children:t&&(0,m.jsxs)(ox,{children:[(0,m.jsx)(\"iframe\",{style:{position:\"absolute\",zIndex:1},width:t,height:e.dimensions.height,allow:\"clipboard-write self *\",src:ty(e.origin,`/apps/${e.appId}/embedded-wallets/export`,{client_id:e.appClientId,address:e.wallet.address,width:`${t}px`,caid:e.clientAnalyticsId,phrase_export:!0,...n},{token:e.accessToken})}),(0,m.jsx)(ov,{children:\"Loading...\"}),!e.wallet.imported&&(0,m.jsx)(ov,{children:\"Loading...\"})]})})}var op=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n`,om=A.ZP.span`\n  && a {\n    color: var(--privy-color-accent);\n    text-decoration: underline;\n  }\n`,og=A.ZP.div`\n  background: var(--privy-color-warn-light);\n  display: flex;\n  align-items: start;\n  gap: 0.625rem;\n  padding: 0.75rem;\n  border-radius: 8px;\n  && svg {\n    width: 1.25rem;\n    height: 1.25rem;\n  }\n`,of=A.ZP.div`\n  && > div {\n    border-radius: var(--privy-border-radius-md);\n    border-width: 1px;\n    border-color: var(--privy-color-foreground-4);\n  }\n`,oy=A.ZP.div`\n  display: flex;\n  align-items: center;\n  gap: 0.625rem;\n  && svg {\n    width: 0.875rem;\n    height: 0.875rem;\n    cursor: pointer;\n  }\n`,ow=A.ZP.div`\n  display: flex;\n  margin-top: 1.5rem;\n  margin-bottom: 1rem;\n  padding: 0.75rem 1rem;\n`,ox=A.ZP.div`\n  overflow: visible;\n  position: relative;\n  overflow: none;\n  height: 44px;\n  display: flex;\n  gap: 12px;\n`,ov=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  height: 100%;\n  font-size: 16px;\n  font-weight: 500;\n  border-radius: var(--privy-border-radius-md);\n  background-color: var(--privy-color-background-2);\n  color: var(--privy-color-foreground-3);\n`;function oC(){let{refreshUser:e,createAnalyticsEvent:t,initializeWalletProxy:r}=nZ(),n=(0,o.useRef)(!1);return{createWallet:(0,o.useCallback)(async i=>{let a=await uK();if(!a)throw t({eventName:\"embedded_wallet_creation_failed\",payload:{error:\"Missing access token for user.\"}}),Error(\"An error has occured, please login again.\");try{t({eventName:\"embedded_wallet_creation_started\"});let o=await r(3e4);if(!o)throw Error(\"walletProxy does not exist.\");let s=new Promise((e,t)=>{setTimeout(()=>{t(Error(\"walletProxy.create timed out.\"))},2e4)});if(!await Promise.race([o.create({accessToken:a,recoveryPassword:i}),s]))throw Error(\"walletProxy.create did not send a response.\");let l=await e();if(!l)throw Error(\"Failed to refresh user.\");let c=rC(l);if(!c)throw Error(\"Updated user is missing embedded wallet.\");return t({eventName:\"embedded_wallet_creation_completed\",payload:{walletAddress:c.address}}),n.current=!0,c}catch(e){if(n.current)return;throw t({eventName:\"embedded_wallet_creation_failed\",payload:{error:e.toString()}}),console.warn(e),e}},[])}}var ob=A.ZP.div`\n  height: 44px;\n`,o_=(0,A.iv)`\n  font-size: 14px;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 20px;\n  letter-spacing: -0.008px;\n  text-align: left;\n  transition: color 0.1s ease-in;\n`,oj=A.ZP.span`\n  ${o_}\n  transition: color 0.1s ease-in;\n  color: ${({error:e})=>e?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  text-transform: ${({error:e})=>e?\"\":\"capitalize\"};\n\n  &[aria-hidden='true'] {\n    visibility: hidden;\n  }\n`,ok=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  flex-grow: 1;\n`,oE=(0,A.ZP)(n3)`\n  ${e=>e.hideAnimations&&(0,A.iv)`\n      && {\n        transition: none;\n      }\n    `}\n`,oA=(0,A.iv)`\n  && {\n    width: 100%;\n    border-width: 1px;\n    border-radius: var(--privy-border-radius-md);\n    border-color: var(--privy-color-foreground-3);\n    background: var(--privy-color-background);\n    color: var(--privy-color-foreground);\n\n    padding: 12px;\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 300;\n    line-height: 22px; /* 137.5% */\n  }\n`,oS=A.ZP.input`\n  ${oA}\n\n  &::placeholder {\n    color: var(--privy-color-foreground-3);\n    font-style: italic;\n    font-size: 14px;\n  }\n\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n`,oT=A.ZP.div`\n  ${oA}\n`,oP=A.ZP.div`\n  position: relative;\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: ${({centered:e})=>e?\"center\":\"space-between\"};\n`,oN=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin: 32px 0;\n  gap: 4px;\n\n  & h3 {\n    font-size: 18px;\n    font-style: normal;\n    font-weight: 600;\n    line-height: 24px;\n  }\n\n  & p {\n    max-width: 300px;\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 400;\n    line-height: 20px;\n  }\n`,oR=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n  padding-bottom: 1rem;\n`,oM=A.ZP.div`\n  display: flex;\n  text-align: left;\n  align-items: center;\n\n  gap: 8px;\n  max-width: 300px;\n\n  font-size: 14px;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 20px;\n  letter-spacing: -0.008px;\n\n  margin: 0 8px;\n  color: var(--privy-color-foreground-2);\n\n  > :first-child {\n    min-width: 24px;\n  }\n`,oO=(A.ZP.div`\n  height: var(--privy-height-modal-full);\n\n  @media (max-width: 440px) {\n    height: var(--privy-height-modal-compact);\n  }\n`,(0,A.ZP)(n2)`\n  display: flex;\n  flex: 1;\n  gap: 4px;\n  justify-content: center;\n\n  && {\n    background: var(--privy-color-background);\n    border-radius: var(--privy-border-radius-md);\n    border-color: var(--privy-color-foreground-3);\n    border-width: 1px;\n  }\n`),oI=A.ZP.div`\n  position: absolute;\n  right: 0.5rem;\n\n  display: flex;\n  flex-direction: row;\n  justify-content: space-around;\n  align-items: center;\n`,oW=(0,A.ZP)(Z.Z)`\n  height: 1.25rem;\n  width: 1.25rem;\n  stroke: var(--privy-color-accent);\n  cursor: pointer;\n\n  :active {\n    stroke: var(--privy-color-accent-light);\n  }\n`,oL=(0,A.ZP)($.Z)`\n  height: 1.25rem;\n  width: 1.25rem;\n  stroke: var(--privy-color-accent);\n  cursor: pointer;\n\n  :active {\n    stroke: var(--privy-color-accent-light);\n  }\n`,oF=(0,A.ZP)(z.Z)`\n  height: 1.25rem;\n  width: 1.25rem;\n  stroke: var(--privy-color-accent);\n  cursor: pointer;\n\n  :active {\n    stroke: var(--privy-color-accent-light);\n  }\n`,oU=A.ZP.progress`\n  height: 4px;\n  width: 100%;\n  margin: 8px 0;\n\n  /* border-radius: 9999px; */\n  ::-webkit-progress-bar {\n    border-radius: 8px;\n    background: var(--privy-color-foreground-4);\n  }\n\n  ::-webkit-progress-value {\n    border-radius: 8px;\n    transition: all 0.1s ease-out;\n    background: ${({label:e})=>\"Strong\"===e&&\"#78dca6\"||\"Medium\"===e&&\"var(--privy-color-warn)\"||\"var(--privy-color-error)\"};\n  }\n`,oD=({buttonHideAnimations:e,buttonLoading:t,password:r,onSubmit:n,onBack:i})=>{let[a,s]=(0,o.useState)(!0),[l,c]=(0,o.useState)(!1),[d,h]=(0,o.useState)(\"\"),u=r===d;return(0,o.useEffect)(()=>{d&&!l&&c(!0)},[d]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1,backFn:i}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(U.Z,{height:48,width:48,stroke:\"var(--privy-color-background)\",fill:\"var(--privy-color-accent)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Confirm your password\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Please re-enter your password below to continue.\"})]}),(0,m.jsxs)(oP,{children:[(0,m.jsx)(oS,{value:d,onChange:e=>h(e.target.value),onBlur:()=>c(!0),placeholder:\"confirm your password\",type:a?\"password\":\"text\",style:{paddingRight:\"2.3rem\"}}),(0,m.jsx)(oI,{style:{right:\"0.75rem\"},children:a?(0,m.jsx)(oL,{onClick:()=>s(!1)}):(0,m.jsx)(oF,{onClick:()=>s(!0)})})]}),(0,m.jsx)(oj,{\"aria-hidden\":!l||u,error:!0,children:\"Passwords do not match\"})]}),(0,m.jsx)(oE,{onClick:n,loading:t,disabled:!u,hideAnimations:e,children:\"Continue\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},oZ=({className:e,checked:t,color:r=\"var(--privy-color-accent)\",...n})=>(0,m.jsx)(\"label\",{children:(0,m.jsxs)(oz,{className:e,children:[(0,m.jsx)(oH,{checked:t,...n}),(0,m.jsx)(oB,{color:r,checked:t,children:(0,m.jsx)(o$,{viewBox:\"0 0 24 24\",children:(0,m.jsx)(\"polyline\",{points:\"20 6 9 17 4 12\"})})})]})});A.ZP.label`\n  && {\n    cursor: pointer;\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    padding: 0.75rem 1rem;\n    text-align: left;\n    border-radius: 0.5rem;\n    border: 1px solid var(--privy-color-foreground-4);\n    width: 100%;\n  }\n`;var oz=A.ZP.div`\n  display: inline-block;\n  vertical-align: middle;\n`,o$=A.ZP.svg`\n  fill: none;\n  stroke: white;\n  stroke-width: 3px;\n`,oH=A.ZP.input.attrs({type:\"checkbox\"})`\n  border: 0;\n  clip: rect(0 0 0 0);\n  clippath: inset(50%);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  white-space: nowrap;\n  width: 1px;\n`,oB=A.ZP.div`\n  display: inline-block;\n  width: 18px;\n  height: 18px;\n  transition: all 150ms;\n  cursor: pointer;\n  border-color: ${e=>e.color};\n  border-radius: 3px;\n  background: ${e=>e.checked?e.color:\"var(--privy-color-background)\"};\n\n  && {\n    /* This is necessary to override css reset for border width */\n    border-width: 1px;\n  }\n\n  ${oH}:focus + & {\n    box-shadow: 0 0 0 1px ${e=>e.color};\n  }\n\n  ${o$} {\n    visibility: ${e=>e.checked?\"visible\":\"hidden\"};\n  }\n`,oq=({buttonHideAnimations:e,buttonLoading:t,onSubmit:r,onBack:n,config:i})=>{let[a,s]=(0,o.useState)(!1);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1,backFn:n}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(U.Z,{height:48,width:48,stroke:\"var(--privy-color-background)\",fill:\"var(--privy-color-error)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Confirm you have saved\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Losing access to your password means you will lose access to your account.\"})]}),(0,m.jsx)(oR,{children:(0,m.jsxs)(oM,{style:{color:\"var(--privy-color-error)\",cursor:\"pointer\"},onClick:e=>{e.preventDefault(),s(e=>!e)},children:[(0,m.jsx)(oZ,{color:\"var(--privy-color-error)\",readOnly:!0,checked:a}),(0,m.jsx)(m.Fragment,{children:\"I understand that if I lose my password and device, I will lose access to my account and my assets.\"})]})})]}),(0,m.jsxs)(oV,{children:[\"user\"===i.initiatedBy&&(0,m.jsx)(n8,{onClick:i.onCancel,disabled:t,children:\"Cancel\"}),(0,m.jsx)(oE,{onClick:r,loading:t,hideAnimations:e,disabled:!a,children:\"Set Password\"})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},oV=A.ZP.div`\n  display: flex;\n  gap: 10px;\n`,oG=/[a-z]/,oK=/[A-Z]/,oY=/[0-9]/,oQ=\"!@#$%^&*()\\\\-_+.\",oX=`a-zA-Z0-9${oQ}`,oJ=RegExp(`[${oQ}]`),o0=RegExp(`[${oX}]`),o1=RegExp(`^[${oX}]{6,}$`),o2=(e=\"\")=>[...new Set(e.split(\"\").filter(e=>!o0.test(e)).map(e=>e.replace(\" \",\"SPACE\")))],o3=()=>V.OW(4,G.k),o4=({buttonHideAnimations:e,buttonLoading:t,password:r=\"\",config:n,isResettingPassword:i,onSubmit:a,onClose:s,onBack:l,onPasswordChange:c,onPasswordGenerate:d})=>{let[h,u]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1);(0,o.useEffect)(()=>{r&&!p&&g(!0)},[r]);let f=(0,o.useMemo)(()=>p?6>(r?.length||0)?\"Password must be at least 6 characters\":o1.test(r||\"\")?null:`Invalid characters used ( ${o2(r).join(\" \")} )`:null,[r,p]),y=(0,o.useMemo)(()=>f?{value:0,label:\"Weak\"}:function(e=\"\"){let t=function(e=\"\"){return(.3*function(e){if(e.length<8)return 0;let t=0;return oG.test(e)&&(t+=1),oK.test(e)&&(t+=1),oY.test(e)&&(t+=1),oJ.test(e)&&(t+=1),Math.max(0,Math.min(1,t/3))}(e)+q()(e)/95)/2}(e);return{value:t,label:t>.9?\"Strong\":t>.5?\"Medium\":\"Weak\"}}(r),[r,f]),w=(0,o.useMemo)(()=>!!(!r?.length||f),[f,r]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:s,closeable:\"user\"===n.initiatedBy,backFn:l}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(H.Z,{height:48,width:48,stroke:\"var(--privy-color-accent)\"}),(0,m.jsxs)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:[i?\"Reset\":\"Set\",\" your password\"]}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Select a strong, memorable password to secure your account.\"})]}),(0,m.jsxs)(oP,{children:[(0,m.jsx)(oS,{value:r,onChange:e=>c(e.target.value),placeholder:\"enter or generate a strong password\",type:h?\"password\":\"text\",style:{paddingRight:\"3.8rem\"}}),(0,m.jsxs)(oI,{style:{width:\"3.5rem\"},children:[h?(0,m.jsx)(oL,{onClick:()=>u(!1)}):(0,m.jsx)(oF,{onClick:()=>u(!0)}),(0,m.jsx)(oW,{onClick:d})]})]}),(0,m.jsx)(oU,{value:0===y.value?.01:y.value,label:y.label}),(0,m.jsx)(oj,{error:!!f,children:f||`Password Strength: ${p?y.label:\"--\"}`}),(0,m.jsxs)(o6,{children:[(0,m.jsx)(o5,{children:(0,m.jsxs)(oR,{children:[(0,m.jsxs)(oM,{children:[(0,m.jsx)(W.Z,{width:24,height:24,fill:\"var(--privy-color-accent)\"}),\"This password is used to secure your account.\"]}),(0,m.jsxs)(oM,{children:[(0,m.jsx)(W.Z,{width:24,height:24,fill:\"var(--privy-color-accent)\"}),\"Use it to log in on a new environment, like another browser or device.\"]})]})}),(0,m.jsx)(oE,{onClick:a,loading:t,disabled:w,hideAnimations:e,children:\"Continue\"})]})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},o5=(0,A.ZP)(oR)`\n  flex: 1;\n  padding-top: 1rem;\n`,o6=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n`,o7=({buttonHideAnimations:e,buttonLoading:t,appName:r,password:n,onSubmit:i,onBack:a})=>{let[s,l]=(0,o.useState)(!1),c=(0,o.useCallback)(()=>{l(!0),n&&navigator.clipboard.writeText(n)},[n]),d=(0,o.useCallback)(()=>{let e=document.createElement(\"a\"),t=r.toLowerCase().replace(/[^a-z\\s]/g,\"\").replace(/\\s/g,\"-\"),i=new Blob([o8(r,n)],{type:\"text/plain\"}),a=URL.createObjectURL(i);e.href=a,e.target=\"_blank\",e.download=`${t}-privy-wallet-recovery.txt`,document.body.appendChild(e),e.click(),setTimeout(()=>{e.remove(),URL.revokeObjectURL(a)},5e3)},[n]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:a,closeable:!1}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ok,{children:[(0,m.jsxs)(oN,{children:[(0,m.jsx)(U.Z,{height:48,width:48,stroke:\"var(--privy-color-background)\",fill:\"var(--privy-color-accent)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Save your password\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"For your security, this password cannot be reset, so keep it somewhere safe.\"})]}),(0,m.jsx)(oP,{centered:!0,children:(0,m.jsx)(oT,{children:n})}),(0,m.jsxs)(\"div\",{style:{display:\"flex\",margin:\"12px 0\",gap:\"12px\"},children:[(0,m.jsx)(oO,{onClick:c,children:s?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Y.Z,{style:{width:24,height:24},stroke:\"var(--privy-color-accent)\"}),\"Copied\"]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Q.Z,{style:{width:24,height:24},stroke:\"var(--privy-color-accent)\"}),\"Copy\"]})}),(0,m.jsxs)(oO,{onClick:d,children:[(0,m.jsx)(K.Z,{style:{width:24,height:24},stroke:\"var(--privy-color-accent)\"}),\"Download\"]})]})]}),(0,m.jsx)(oE,{onClick:i,loading:t,hideAnimations:e,children:\"Continue\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},o8=(e,t)=>`Your wallet recovery password for ${e} is\n\n${t}\n\nYou will need this password to access your ${e} wallet on a new device. Please keep it somewhere safe.`,o9=({error:e,onClose:t})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1}),(0,m.jsx)(ae,{}),e?(0,m.jsxs)(i6,{children:[(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Something went wrong\",description:e})]}):(0,m.jsxs)(i6,{children:[(0,m.jsx)(W.Z,{fill:\"var(--privy-color-success)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Success\"})]}),(0,m.jsx)(n3,{onClick:t,children:\"Close\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}),se=(e,t)=>{switch(e){case\"creating\":return\"back\"===t?e:\"saving\";case\"saving\":return\"back\"===t?\"creating\":\"confirming\";case\"confirming\":return\"back\"===t?\"saving\":\"finalizing\";case\"finalizing\":return\"back\"===t?\"confirming\":\"done\";default:return e}},st=()=>{let[e,t]=(0,o.useReducer)(se,\"creating\");return{send:t,state:e}},sr=({onSubmit:e,...t})=>{let{lastScreen:r,navigate:n}=ny(),{send:i,state:a}=st(),s=(0,o.useCallback)(async()=>{\"finalizing\"===a&&await e(),i(\"next\")},[a,i,e]);(0,o.useEffect)(()=>{let e;return\"done\"===a&&\"automatic\"===t.config.initiatedBy&&(e=setTimeout(()=>t.onClose?.(),1400)),()=>{e&&clearTimeout(e)}},[a,t.config.initiatedBy,t.onClose]);let l=(0,o.useCallback)(()=>{i(\"back\")},[i]),c=(0,o.useCallback)(()=>{n(\"EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN\")},[r,n]);return\"creating\"===a?(0,m.jsx)(o4,{...t,onSubmit:s,onBack:\"EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN\"===r?c:void 0}):\"saving\"===a?(0,m.jsx)(o7,{...t,onSubmit:s,onBack:l}):\"confirming\"===a?(0,m.jsx)(oD,{...t,onSubmit:s,onBack:l}):\"finalizing\"===a?(0,m.jsx)(oq,{...t,onSubmit:s,onBack:l}):\"done\"===a?(0,m.jsx)(o9,{...t,onSubmit:s}):null},sn=e=>{let t=(0,m.jsx)(U.Z,{height:38,width:38,stroke:\"var(--privy-color-error)\"});if(e instanceof eK)switch(e.privyErrorCode){case\"client_request_timeout\":return{title:\"Timed out\",detail:e.message,ctaText:\"Try again\",icon:t};case\"insufficient_balance\":return{title:\"Insufficient balance\",detail:e.message,ctaText:\"Try again\",icon:t};default:return{title:\"Something went wrong\",detail:\"Try again later\",ctaText:\"Try again\",icon:t}}else{if(e instanceof a6&&\"twilio_verification_failed\"===e.type)return{title:\"Something went wrong\",detail:e.message,ctaText:\"Try again\",icon:(0,m.jsx)(I.Z,{height:38,width:38,stroke:\"var(--privy-color-error)\"})};if(!(e instanceof eV))return e instanceof eG&&422===e.status?{title:\"Something went wrong\",detail:e.message,ctaText:\"Try again\",icon:t}:{title:\"Something went wrong\",detail:\"Try again later\",ctaText:\"Try again\",icon:t};switch(e.privyErrorCode){case\"invalid_captcha\":return{title:\"Something went wrong\",detail:\"Please try again.\",ctaText:\"Try again\",icon:t};case\"disallowed_login_method\":return{title:\"Not allowed\",detail:e.message,ctaText:\"Try another method\",icon:t};case\"allowlist_rejected\":return{title:\"You don't have access to this app\",detail:\"Have you been invited?\",ctaText:\"Try another account\",icon:(0,m.jsx)(iJ,{style:{width:\"38px\",height:\"38px\",strokeWidth:\"1\",stroke:\"var(--privy-color-accent)\",fill:\"var(--privy-color-accent)\"}})};case\"captcha_failure\":return{title:\"Something went wrong\",detail:\"You did not pass CAPTCHA. Please try again.\",ctaText:\"Try again\",icon:(0,m.jsx)(\"span\",{})};case\"captcha_timeout\":return{title:\"Something went wrong\",detail:\"Something went wrong! Please try again later.\",ctaText:\"Try again\",icon:(0,m.jsx)(\"span\",{})};case\"linked_to_another_user\":return{title:\"Authentication failed\",detail:\"This account has already been linked to another user.\",ctaText:\"Try again\",icon:t};case\"not_supported\":return{title:\"This region is not supported\",detail:\"SMS authentication from this region is not available\",ctaText:\"Try another method\",icon:t};case\"too_many_requests\":return{title:\"Request failed\",detail:\"Too many attempts.\",ctaText:\"Try again later\",icon:t};default:return{title:\"Something went wrong\",detail:\"Try again later\",ctaText:\"Try again\",icon:t}}}},si=({error:e,backFn:t,onClick:r})=>{let{reset:n}=nF(),i=sn(e);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:t}),(0,m.jsxs)(sa,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iX,{color:\"var(--privy-color-error)\"}),i.icon]})}),(0,m.jsxs)(so,{children:[(0,m.jsx)(\"h3\",{children:i.title}),(0,m.jsx)(\"p\",{children:i.detail})]}),(0,m.jsx)(n3,{color:\"var(--privy-color-error)\",onClick:()=>{e instanceof eV&&\"invalid_captcha\"===e.privyErrorCode&&n(),r?.()},children:i.ctaText})]})]})},sa=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-bottom: 16px;\n`,so=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,ss=({style:e,color:t,...r})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",strokeWidth:\"1.5\",stroke:t||\"currentColor\",style:{height:\"1.5rem\",width:\"1.5rem\",...e},...r,children:(0,m.jsx)(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M4.5 12.75l6 6 9-13.5\"})}),sl=({color:e,...t})=>(0,m.jsx)(\"svg\",{version:\"1.1\",id:\"Layer_1\",xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",x:\"0px\",y:\"0px\",viewBox:\"0 0 115.77 122.88\",xmlSpace:\"preserve\",...t,children:(0,m.jsx)(\"g\",{children:(0,m.jsx)(\"path\",{fill:e||\"currentColor\",className:\"st0\",d:\"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z\"})})}),sc=e=>{let[t,r]=(0,o.useState)(!1);return(0,m.jsxs)(sd,{color:e.color,onClick:()=>{r(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>r(!1),1500)},justCopied:t,children:[t?(0,m.jsx)(ss,{style:{height:\"14px\",width:\"14px\"},strokeWidth:\"2\"}):(0,m.jsx)(sl,{style:{height:\"14px\",width:\"14px\"}}),t?\"Copied\":\"Copy\",\" \",e.itemName?e.itemName:\"to Clipboard\"]})},sd=A.ZP.button`\n  display: flex;\n  align-items: center;\n  gap: 6px;\n\n  && {\n    margin: 8px 2px;\n    font-size: 14px;\n    color: ${e=>e.justCopied?\"var(--privy-color-foreground)\":e.color||\"var(--privy-color-foreground-3)\"};\n    font-weight: ${e=>e.justCopied?\"medium\":\"normal\"};\n    transition: color 350ms ease;\n\n    :focus,\n    :active {\n      background-color: transparent;\n      border: none;\n      outline: none;\n      box-shadow: none;\n    }\n\n    :hover {\n      color: ${e=>e.justCopied?\"var(--privy-color-foreground)\":\"var(--privy-color-foreground-2)\"};\n    }\n\n    :active {\n      color: 'var(--privy-color-foreground)';\n      font-weight: medium;\n    }\n\n    @media (max-width: 440px) {\n      margin: 12px 2px;\n    }\n  }\n\n  svg {\n    width: 14px;\n    height: 14px;\n  }\n`,sh=e=>{let[t,r]=(0,o.useState)(!1);return(0,m.jsx)(su,{color:e.color,href:e.url,target:\"_blank\",rel:\"noreferrer noopener\",onClick:()=>{r(!0),setTimeout(()=>r(!1),1500)},justOpened:t,children:e.text})},su=A.ZP.a`\n  display: flex;\n  align-items: center;\n  gap: 6px;\n\n  && {\n    margin: 8px 2px;\n    font-size: 14px;\n    color: ${e=>e.justOpened?\"var(--privy-color-foreground)\":e.color||\"var(--privy-color-foreground-3)\"};\n    font-weight: ${e=>e.justOpened?\"medium\":\"normal\"};\n    transition: color 350ms ease;\n\n    :focus,\n    :active {\n      background-color: transparent;\n      border: none;\n      outline: none;\n      box-shadow: none;\n    }\n\n    :hover {\n      color: ${e=>e.justOpened?\"var(--privy-color-foreground)\":\"var(--privy-color-foreground-2)\"};\n    }\n\n    :active {\n      color: 'var(--privy-color-foreground)';\n      font-weight: medium;\n    }\n\n    @media (max-width: 440px) {\n      margin: 12px 2px;\n    }\n  }\n\n  svg {\n    width: 14px;\n    height: 14px;\n  }\n`,sp=()=>(0,m.jsx)(\"svg\",{width:\"200\",height:\"200\",viewBox:\"-77 -77 200 200\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"28px\",width:\"28px\"},children:(0,m.jsx)(\"rect\",{width:\"50\",height:\"50\",fill:\"black\",rx:10,ry:10})}),sm=(e,t,r,n,i)=>{for(let a=t;a<t+n;a++)for(let t=r;t<r+i;t++){let r=e?.[t];r&&r[a]&&(r[a]=0)}return e},sg=(e,t)=>{let r=ee.create(e,{errorCorrectionLevel:t}).modules,n=tp(Array.from(r.data),r.size);return n=sm(n,0,0,7,7),n=sm(n,n.length-7,0,7,7),n=sm(n,0,n.length-7,7,7)},sf=({x:e,y:t,cellSize:r,bgColor:n,fgColor:i})=>(0,m.jsx)(m.Fragment,{children:[0,1,2].map(a=>(0,m.jsx)(\"circle\",{r:r*(7-2*a)/2,cx:e+7*r/2,cy:t+7*r/2,fill:a%2!=0?n:i},`finder-${e}-${t}-${a}`))}),sy=({cellSize:e,matrixSize:t,bgColor:r,fgColor:n})=>{let i=[[0,0],[(t-7)*e,0],[0,(t-7)*e]];return(0,m.jsx)(m.Fragment,{children:i.map(([t,i])=>(0,m.jsx)(sf,{x:t,y:i,cellSize:e,bgColor:r,fgColor:n},`finder-${t}-${i}`))})},sw=({matrix:e,cellSize:t,color:r})=>(0,m.jsx)(m.Fragment,{children:e.map((e,n)=>e.map((e,i)=>e?(0,m.jsx)(\"rect\",{height:t-.4,width:t-.4,x:n*t+.1*t,y:i*t+.1*t,rx:.5*t,ry:.5*t,fill:r},`cell-${n}-${i}`):(0,m.jsx)(o.Fragment,{},`circle-${n}-${i}`)))}),sx=({cellSize:e,matrixSize:t,element:r,sizePercentage:n,bgColor:i})=>{if(!r)return(0,m.jsx)(m.Fragment,{});let a=t*(n||.14),o=Math.floor(t/2-a/2),s=Math.floor(t/2+a/2);(s-o)%2!=t%2&&(s+=1);let l=(s-o)*e,c=l-.2*l,d=o*e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(\"rect\",{x:o*e,y:o*e,width:l,height:l,fill:i}),(0,m.jsx)(r,{x:d+.1*l,y:d+.1*l,height:c,width:c})]})},sv=e=>{let t=e.outputSize,r=sg(e.url,e.errorCorrectionLevel),n=t/r.length,i=function(e,{min:t,max:r}){return Math.min(Math.max(e,t),r)}(2*n,{min:.025*t,max:.036*t});return(0,m.jsxs)(\"svg\",{height:e.outputSize,width:e.outputSize,viewBox:`0 0 ${e.outputSize} ${e.outputSize}`,style:{height:\"100%\",width:\"100%\",padding:`${i}px`},children:[(0,m.jsx)(sw,{matrix:r,cellSize:n,color:e.fgColor}),(0,m.jsx)(sy,{cellSize:n,matrixSize:r.length,fgColor:e.fgColor,bgColor:e.bgColor}),(0,m.jsx)(sx,{cellSize:n,element:e.logo?.element,bgColor:e.bgColor,matrixSize:r.length})]})},sC=A.ZP.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: ${e=>`${e.size}px`};\n  width: ${e=>`${e.size}px`};\n  margin: auto;\n  background-color: ${e=>e.bgColor};\n\n  && {\n    border-width: 2px;\n    border-color: ${e=>e.borderColor};\n    border-radius: var(--privy-border-radius-md);\n  }\n`,sb=e=>{let{appearance:t}=nh(),r=e.bgColor||\"#FFFFFF\",n=e.fgColor||\"#000000\",i=e.size||160,a=\"dark\"===t.palette.colorScheme?r:n;return(0,m.jsx)(sC,{size:i,bgColor:r,fgColor:n,borderColor:a,children:(0,m.jsx)(sv,{url:e.url,logo:{element:e.squareLogoElement??sp},outputSize:i,bgColor:r,fgColor:n,errorCorrectionLevel:e.errorCorrectionLevel||\"Q\"})})},s_=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"1000\",height:\"1000\",viewBox:\"0 0 1000 1000\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"24px\",...e},...t,children:[(0,m.jsx)(\"rect\",{width:\"1000\",height:\"1000\",rx:\"200\",fill:\"#855DCD\"}),(0,m.jsx)(\"path\",{d:\"M257.778 155.556H742.222V844.444H671.111V528.889H670.414C662.554 441.677 589.258 373.333 500 373.333C410.742 373.333 337.446 441.677 329.586 528.889H328.889V844.444H257.778V155.556Z\",fill:\"white\"}),(0,m.jsx)(\"path\",{d:\"M128.889 253.333L157.778 351.111H182.222V746.667C169.949 746.667 160 756.616 160 768.889V795.556H155.556C143.283 795.556 133.333 805.505 133.333 817.778V844.444H382.222V817.778C382.222 805.505 372.273 795.556 360 795.556H355.556V768.889C355.556 756.616 345.606 746.667 333.333 746.667H306.667V253.333H128.889Z\",fill:\"white\"}),(0,m.jsx)(\"path\",{d:\"M675.556 746.667C663.283 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.556V817.778C875.556 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.556Z\",fill:\"white\"})]}),sj=\"#8a63d2\",sk=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,sE=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`,sA=\"#8a63d2\",sS=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,sT=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`;function sP({title:e}){let{currentScreen:t,navigateBack:r,navigate:n,data:i}=ny(),a;return a=\"FUNDING_MANUAL_TRANSFER_SCREEN\"===t?r:t===i?.funding?.methodScreen?i.funding.comingFromSendTransactionScreen?()=>n(\"EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN\"):void 0:i?.funding?.methodScreen?()=>n(i.funding.methodScreen):void 0,(0,m.jsx)(il,{title:e,backFn:a})}var sN=()=>(0,m.jsx)(sR,{children:(0,m.jsxs)(sM,{children:[(0,m.jsx)(sO,{}),(0,m.jsx)(sI,{})]})}),sR=A.ZP.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-grow: 1;\n\n  @media all and (display-mode: standalone) {\n    margin-bottom: 30px;\n  }\n`,sM=A.ZP.div`\n  position: relative;\n  height: 96px;\n  width: 96px;\n\n  opacity: 1;\n  animation: fadein 200ms ease;\n`,sO=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 96px;\n  height: 96px;\n\n  && {\n    border: 4px solid #f1f2f9;\n    border-radius: 50%;\n  }\n`,sI=A.ZP.div`\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  width: 96px;\n  height: 96px;\n  animation: spin 1200ms linear infinite;\n\n  && {\n    border: 4px solid;\n    border-color: #cbcde1 transparent transparent transparent;\n    border-radius: 50%;\n  }\n\n  @keyframes spin {\n    from {\n      transform: rotate(0deg);\n    }\n    to {\n      transform: rotate(360deg);\n    }\n  }\n`,sW=A.ZP.span`\n  display: flex;\n  flex-direction: column;\n  gap: 0.35rem;\n  width: 100%;\n`,sL=A.ZP.span`\n  display: flex;\n  width: 100%;\n  justify-content: space-between;\n`,sF=A.ZP.span`\n  color: var(--privy-color-foreground);\n  font-size: 0.875rem;\n  font-weight: 500;\n  line-height: 1.375rem; /* 157.143% */\n\n  ${a_}\n`;async function sU(e,t,r,n,i,a){!function(e){for(let t of[\"gasLimit\",\"gasPrice\",\"value\",\"maxPriorityFeePerGas\",\"maxFeePerGas\"]){let r=e[t];if(!(typeof r>\"u\")&&!function(e){let t=\"number\"==typeof e,r=\"bigint\"==typeof e,n=\"string\"==typeof e&&/^-?0x[a-f0-9]+$/i.test(e);return t||r||n}(r))throw Error(`Transaction request property '${t}' must be a valid number, bigint, or hex string representing a quantity`)}if(\"number\"!=typeof e.chainId)throw Error(\"Transaction request property 'chainId' must be a number\")}(n=Object.assign({chainId:t0},n));let o=(await r.rpc({address:t,accessToken:e,requesterAppId:a,request:{method:\"eth_signTransaction\",params:[n]}})).response.data;return await i.sendTransaction(o)}async function sD(e,t,r,n){let i=await n.getBalance(e),a=t.value||0,o=!i.sub((0,en.uq)(a)).sub(r).isNegative();return{balance:i,hasSufficientFunds:o}}function sZ(e){return{to:e.to,from:e.from,contractAddress:e.contractAddress,transactionIndex:e.transactionIndex,root:e.root,logsBloom:e.logsBloom,blockHash:e.blockHash,transactionHash:e.transactionHash,logs:e.logs,blockNumber:e.blockNumber,confirmations:e.confirmations,byzantium:e.byzantium,type:e.type,status:e.status,gasUsed:e.gasUsed.toHexString(),cumulativeGasUsed:e.cumulativeGasUsed.toHexString(),effectiveGasPrice:e.effectiveGasPrice?e.effectiveGasPrice.toHexString():void 0}}var sz=e=>{let{showFiatPrices:t,getUsdTokenPrice:r,chains:n}=nZ(),[i,a]=(0,o.useState)(!0),[s,l]=(0,o.useState)(void 0),[c,d]=(0,o.useState)(void 0);return(0,o.useEffect)(()=>{let i=e.chainId||t0,o=n.find(e=>e.id===Number(i));if(!o)throw new eQ(`Unsupported chain: ${i}`);(async()=>{if(!t){a(!1);return}try{a(!0);let e=await r(o);e?d(e):l(Error(`Unable to fetch token price on chain id ${o.id}`))}catch(e){l(e)}finally{a(!1)}})()},[e.chainId]),{tokenPrice:c,isTokenPriceLoading:i,tokenPriceError:s}},s$=(0,o.createContext)(null);function sH(){let e=(0,o.useContext)(s$);if(null===e)throw Error(\"`useWallets` was called outside the PrivyProvider component\");return e}function sB(e){let t=new RegExp(/^eip155:(?<chainId>\\d+)$/gm).exec(e)?.groups?.chainId;if(t)return parseInt(t);throw Error(\"Chain ID not compatible with CAIP-2 format.\")}var sq=new Intl.NumberFormat(void 0,{style:\"currency\",currency:\"USD\",maximumFractionDigits:2}),sV=e=>sq.format(e),sG=(e,t)=>{let r=sV(t*parseFloat(e));return\"$0.00\"!==r?r:\"<$0.01\"},sK=(e,t)=>{let r=sV(t*parseFloat((0,et.dF)(e)));return\"$0.00\"===r?\"<$0.01\":r},sY=(e,t,r=6,n=!1)=>{let i=parseFloat((0,et.dF)(e)).toFixed(r).replace(/0+$/,\"\").replace(/\\.$/,\"\");return n?`${i} ${t}`:`${\"0\"===i?\"<0.001\":i} ${t}`},sQ=e=>e.map(en.uq).reduce((e,t)=>e.add(t),ei.O$.from(0)).toHexString(),sX=(e,t)=>{let{chains:r}=nZ(),n=`https://etherscan.io/address/${t}`,i=`${tj(e,r)}/address/${t}`;if(!i)return n;try{new URL(i)}catch{return n}return i},sJ=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 4px;\n`;async function s0({api:e,requesterAppId:t,providerAppId:r}){let n=(await e.get(`/api/v1/apps/${t}/cross-app/connections`)).connections.find(e=>e.provider_app_id===r);if(!n)throw new eK(\"Invalid connected app\");return{name:n.provider_app_name,logoUrl:n.provider_app_icon_url||void 0,apiUrl:n.provider_app_custom_api_url,readOnly:n.read_only}}async function s1({api:e,appId:t}){let r=t4(),n=t4(),i=await t5(r);try{let{url:a}=await e.post(e7,{provider:`privy:${t}`,redirect_to:window.location.href,code_challenge:i,state_code:n});return{url:a,stateCode:n,codeVerifier:r}}catch(e){throw eX(e)}}async function s2({api:e,appId:t,stateCode:r,codeVerifier:n,authorizationCode:i}){if(!i||!r)throw new eK(\"[Cross-App AuthFlow] Authorization and state codes code must be set prior to calling authenicate.\");if(\"undefined\"===i)throw new eK(\"User denied confirmation during cross-app auth flow\");try{return(await e.post(e8,{authorization_code:i,state_code:r,code_verifier:n,provider:`privy:${t}`})).oauth_tokens?.access_token}catch(t){let e=eX(t);throw e.privyErrorCode?new eK(e.message||\"Invalid code during cross-app auth flow.\",void 0,e.privyErrorCode):\"User denied confirmation during cross-app auth flow\"===e.message?new eK(\"Invalid code during cross-app auth flow.\",void 0,\"oauth_user_denied\"):new eK(\"Invalid code during cross-app auth flow.\",void 0,\"unknown_auth_error\")}}var s3=async({user:e,address:t,client:r,request:n,requesterAppId:i,reconnect:a})=>{r.createAnalyticsEvent({eventName:\"cross_app_request_started\",payload:{address:t,method:n.method}});let o=e?.linkedAccounts.find(e=>!!(\"cross_app\"===e.type&&e.embeddedWallets.find(e=>e.address===t)));if(!e||!o)throw r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Cannot request a signature with this wallet address\",address:t}}),new eK(\"Cannot request a signature with this wallet address\");let s=r.getProviderAccessToken(o.providerApp.id),l=await s0({api:r.api,requesterAppId:i,providerAppId:o.providerApp.id});if(!s){if(l.readOnly)throw console.error(\"cannot transact against a read-only provider app\"),new eK(\"Cannot transact against a read-only provider app\");await a({appId:o.providerApp.id})&&(s=r.getProviderAccessToken(o.providerApp.id))}if(!s)throw r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Transactions require a valid token\",address:t}}),new eK(\"Transactions require a valid token\");let c=window.open(void 0,void 0,s5({w:400,h:680}));if(!c)throw r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Missing token\",address:t}}),new eK(\"Failed to initialize signature request\");let d=new URL(`${l.apiUrl}/oauth/transact`);return d.searchParams.set(\"token\",s||\"\"),d.searchParams.set(\"request\",s4(n)),c.location=d.href,new Promise((e,i)=>{let a=setTimeout(()=>{d(),i(new eK(\"Request timeout\")),r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"Request timeout\",address:t}})},12e4),s=setInterval(()=>{c.closed&&(d(),i(new eK(\"User rejected request\")),r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:\"User rejected request\",address:t}}))},300),l=a=>{a.data&&(a.data.token?.action===\"set\"&&a.data.token?.value!==void 0?r.storeProviderAccessToken(o.providerApp.id,a.data.token.value):a.data.token?.action===\"clear\"&&r.storeProviderAccessToken(o.providerApp.id,null),\"PRIVY_CROSS_APP_ACTION_RESPONSE\"===a.data.type&&a.data.result&&(d(),e(a.data.result),r.createAnalyticsEvent({eventName:\"cross_app_request_success\",payload:{address:t,method:n.method}})),\"PRIVY_CROSS_APP_ACTION_ERROR\"===a.data.type&&a.data.error&&(d(),i(a.data.error),r.createAnalyticsEvent({eventName:\"cross_app_request_error\",payload:{error:a.data.error,address:t}})))};window.addEventListener(\"message\",l);let d=()=>{c.close(),clearInterval(s),clearTimeout(a),window.removeEventListener(\"message\",l)}})},s4=e=>JSON.stringify({content:{request:{request:e}},timestamp:Date.now(),callbackUrl:window.origin}),s5=({w:e,h:t})=>{let r=void 0!==window.screenLeft?window.screenLeft:window.screenX,n=void 0!==window.screenTop?window.screenTop:window.screenY,i=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,a=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,o=i/window.screen.availWidth,s=a/window.screen.availHeight;return`toolbar=0,location=0,menubar=0,height=${t},width=${e},popup=1,left=${(i-e)/2/o+r},top=${(a-t)/2/s+n}`},s6=\"sdk_fiat_on_ramp_completed_with_status\",s7={1:\"ethereum\",8453:\"base\",10:\"optimism\",137:\"polygon\",42161:\"arbitrum\"},s8=e=>!!s7[e],s9=({input:e,amount:t,blockchain:r})=>{let n=new URL(\"https://pay.coinbase.com/buy/select-asset\");return n.searchParams.set(\"appId\",e.app_id),n.searchParams.set(\"sessionToken\",e.session_token),n.searchParams.set(\"defaultExperience\",\"buy\"),n.searchParams.set(\"presetCryptoAmount\",t),n.searchParams.set(\"defaultNetwork\",r),n.searchParams.set(\"partnerUserId\",e.partner_user_id),{url:n}},le=Math.floor(160),lt=e=>e?{title:\"You've funded your account!\",body:\"It may take a few minutes for the assets to appear.\",cta:\"Continue\"}:{title:\"In Progress\",body:\"Go back to Coinbase Onramp to finish funding your account.\",cta:\"\"},lr=({isSucccess:e,onClickCta:t})=>{let{title:r,body:n,cta:i}=(0,o.useMemo)(()=>lt(e),[e]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(ls,{children:[(0,m.jsx)(la,{isSucccess:e}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:r}),(0,m.jsx)(lo,{children:n})]})]}),i&&(0,m.jsx)(n3,{onClick:t,children:i})]})},ln=e=>e?\"var(--privy-color-success)\":\"var(--privy-color-foreground-4)\",li=e=>e?W.Z:()=>(0,m.jsx)(ea.Z,{width:\"3rem\",height:\"3rem\",style:{backgroundColor:\"var(--privy-color-foreground-4)\",color:\"var(--privy-color-background)\",borderRadius:\"100%\",padding:\"0.5rem\",margin:\"0.5rem\"}}),la=({isSucccess:e})=>{if(!e){let e=\"var(--privy-color-foreground-4)\";return(0,m.jsxs)(\"div\",{style:{position:\"relative\"},children:[(0,m.jsx)(nX,{color:e,style:{position:\"absolute\"}}),(0,m.jsx)(nJ,{color:e}),(0,m.jsx)(rT,{style:{position:\"absolute\",width:\"2.8rem\",height:\"2.8rem\",top:\"1.2rem\",left:\"1.2rem\"}})]})}let t=li(e),r=ln(e);return(0,m.jsx)(\"div\",{style:{borderColor:r,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:\"100%\",borderWidth:2,padding:\"0.5rem\",marginBottom:\"0.5rem\"},children:t&&(0,m.jsx)(t,{width:\"4rem\",height:\"4rem\",color:r})})},lo=A.ZP.p`\n  font-size: 1rem;\n  color: var(--privy-color-foreground-3);\n  margin-bottom: 1rem;\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n`,ls=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 1.75rem;\n  margin-right: 1.75rem;\n  padding: 2rem 0;\n`,ll=({children:e})=>(0,m.jsxs)(lc,{children:[(0,m.jsx)(U.Z,{width:\"3rem\",color:\"var(--privy-color-error)\"}),e]}),lc=A.ZP.div`\n  display: flex;\n  gap: 0.5rem;\n  background-color: var(--privy-color-error-light);\n\n  align-items: flex-start;\n  text-align: left;\n  padding: 0.5rem 0.75rem;\n\n  font-size: 0.75rem;\n  font-weight: 400;\n  line-height: 1.125rem; /* 150% */\n\n  padding: 0.5rem 0.75rem;\n\n  && {\n    border: 1px solid var(--privy-color-error);\n    border-radius: var(--privy-border-radius-sm);\n  }\n`,ld=({size:e=61,...t})=>(0,m.jsx)(\"svg\",{width:e,height:e,viewBox:\"0 0 61 61\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...t,children:(0,m.jsxs)(\"g\",{id:\"moonpay_symbol_wht 2\",children:[(0,m.jsx)(\"rect\",{x:\"1.3374\",y:\"1\",width:\"59\",height:\"59\",rx:\"11.5\",fill:\"#7715F5\"}),(0,m.jsx)(\"path\",{id:\"Vector\",d:\"M43.8884 23.3258C45.0203 23.3258 46.1268 22.9901 47.068 22.3613C48.0091 21.7324 48.7427 20.8386 49.1759 19.7928C49.6091 18.747 49.7224 17.5962 49.5016 16.4861C49.2807 15.3759 48.7357 14.3561 47.9353 13.5557C47.1349 12.7553 46.1151 12.2102 45.0049 11.9893C43.8947 11.7685 42.7439 11.8819 41.6982 12.3151C40.6524 12.7482 39.7585 13.4818 39.1297 14.423C38.5008 15.3641 38.1651 16.4707 38.1651 17.6026C38.165 18.3542 38.3131 19.0985 38.6007 19.7929C38.8883 20.4873 39.3098 21.1182 39.8413 21.6496C40.3728 22.1811 41.0037 22.6027 41.6981 22.8903C42.3925 23.1778 43.1367 23.3259 43.8884 23.3258ZM26.3395 49.1017C23.5804 49.1017 20.8832 48.2836 18.5891 46.7507C16.295 45.2178 14.5069 43.039 13.4511 40.49C12.3952 37.9409 12.1189 35.1359 12.6572 32.4298C13.1955 29.7237 14.5241 27.238 16.4751 25.287C18.4262 23.336 20.9118 22.0074 23.6179 21.4691C26.324 20.9308 29.129 21.2071 31.6781 22.2629C34.2272 23.3189 36.406 25.1069 37.9389 27.401C39.4717 29.6952 40.2899 32.3923 40.2899 35.1514C40.2899 36.9835 39.9291 38.7975 39.2281 40.49C38.527 42.1826 37.4994 43.7205 36.204 45.0159C34.9086 46.3113 33.3707 47.3389 31.6781 48.04C29.9856 48.741 28.1715 49.1018 26.3395 49.1017Z\",fill:\"white\"})]})}),lh=({style:e,...t})=>(0,m.jsx)(\"svg\",{x:0,y:0,width:\"65\",height:\"64\",viewBox:\"0 0 65 64\",style:{height:\"64px\",width:\"65px\",...e},fill:\"currentColor\",xmlns:\"http://www.w3.org/2000/svg\",...t,children:(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M3.71369 17.5625V10.375C3.71369 6.44625 6.85845 3.25 10.7238 3.25H17.7953C18.6783 3.25 19.3941 2.52244 19.3941 1.625C19.3941 0.727562 18.6783 0 17.7953 0H10.7238C5.09529 0 0.516113 4.65419 0.516113 10.375V17.5625C0.516113 18.4599 1.23194 19.1875 2.1149 19.1875C2.99787 19.1875 3.71369 18.4599 3.71369 17.5625ZM17.7953 60.7501C18.6783 60.7501 19.3941 61.4777 19.3941 62.3751C19.3941 63.2726 18.6783 64.0001 17.7953 64.0001H10.7238C5.09529 64.0001 0.516113 59.3459 0.516113 53.6251V46.4376C0.516113 45.5402 1.23194 44.8126 2.1149 44.8126C2.99787 44.8126 3.71369 45.5402 3.71369 46.4376V53.6251C3.71369 57.5538 6.85845 60.7501 10.7238 60.7501H17.7953ZM63.4839 46.4376V53.6251C63.4839 59.3459 58.9048 64.0001 53.2763 64.0001H46.2047C45.3217 64.0001 44.6059 63.2726 44.6059 62.3751C44.6059 61.4777 45.3217 60.7501 46.2047 60.7501H53.2763C57.1416 60.7501 60.2864 57.5538 60.2864 53.6251V46.4376C60.2864 45.5402 61.0022 44.8126 61.8851 44.8126C62.7681 44.8126 63.4839 45.5402 63.4839 46.4376ZM63.4839 10.375V17.5625C63.4839 18.4599 62.7681 19.1875 61.8851 19.1875C61.0022 19.1875 60.2864 18.4599 60.2864 17.5625V10.375C60.2864 6.44625 57.1416 3.25 53.2763 3.25H46.2047C45.3217 3.25 44.6059 2.52244 44.6059 1.625C44.6059 0.727562 45.3217 0 46.2047 0H53.2763C58.9048 0 63.4839 4.65419 63.4839 10.375ZM43.0331 47.3022C43.7067 46.6698 43.7483 45.6022 43.1262 44.9176C42.5039 44.233 41.4536 44.1906 40.78 44.823C38.3832 47.0732 35.265 48.3125 31.9997 48.3125C28.7344 48.3125 25.6162 47.0732 23.2194 44.823C22.5457 44.1906 21.4955 44.233 20.8732 44.9176C20.251 45.6022 20.2927 46.6698 20.9663 47.3022C23.9784 50.1301 27.8968 51.6875 31.9997 51.6875C36.1026 51.6875 40.021 50.1301 43.0331 47.3022ZM35.3207 24.1249V36.1249C35.3207 38.5029 33.4173 40.4374 31.0777 40.4374H29.7249C28.8079 40.4374 28.0646 39.6819 28.0646 38.7499C28.0646 37.8179 28.8079 37.0624 29.7249 37.0624H31.0777C31.5863 37.0624 32.0001 36.6419 32.0001 36.1249V24.1249C32.0001 23.1929 32.7434 22.4374 33.6604 22.4374C34.5774 22.4374 35.3207 23.1929 35.3207 24.1249ZM46.7581 28.8437V24.0312C46.7581 23.151 46.056 22.4374 45.19 22.4374C44.324 22.4374 43.622 23.151 43.622 24.0312V28.8437C43.622 29.7239 44.324 30.4374 45.19 30.4374C46.056 30.4374 46.7581 29.7239 46.7581 28.8437ZM17.6109 28.8437C17.6109 29.7239 18.313 30.4374 19.1789 30.4374C20.0449 30.4374 20.747 29.7239 20.747 28.8437V24.0312C20.747 23.151 20.0449 22.4374 19.1789 22.4374C18.313 22.4374 17.6109 23.151 17.6109 24.0312V28.8437Z\"})}),lu=({style:e,...t})=>(0,m.jsxs)(\"svg\",{x:0,y:0,width:\"65\",height:\"64\",viewBox:\"0 0 65 64\",style:{height:\"64px\",width:\"65px\",...e},xmlns:\"http://www.w3.org/2000/svg\",...t,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_113_33841)\",children:[(0,m.jsx)(\"path\",{d:\"M39.1193 0.943398C34.636 -0.174912 29.9185 -0.334713 25.328 0.656273C24.9732 0.732859 24.7477 1.08253 24.8243 1.43729C24.9009 1.79205 25.2506 2.01756 25.6053 1.94097C30.0015 0.991934 34.53 1.14842 38.8375 2.22802C49.1385 4.80983 57.7129 12.5548 60.9786 22.6718C62.2416 26.5843 62.7781 30.7505 62.8855 35.1167C62.8945 35.4795 63.1958 35.7664 63.5586 35.7575C63.9215 35.7485 64.2083 35.4472 64.1994 35.0843C64.0905 30.6582 63.5477 26.3849 62.2536 22.3432C58.8621 11.7515 49.9005 3.63265 39.1193 0.943398Z\"}),(0,m.jsx)(\"path\",{d:\"M21.9931 2.93163C22.343 2.83511 22.5484 2.47325 22.4518 2.12339C22.3553 1.77352 21.9935 1.56815 21.6436 1.66466C16.8429 2.98903 10.0898 7.56519 5.91628 13.6786C5.91465 13.681 5.91304 13.6834 5.91145 13.6858C2.24684 19.2083 -0.0503572 26.1484 0.591012 32.8828C0.591623 32.8892 0.592328 32.8956 0.593127 32.902C0.746837 34.1317 1.00488 35.3591 1.26323 36.5879C1.80735 39.1761 2.35282 41.7706 1.92765 44.4064C1.86986 44.7647 2.11347 45.102 2.47177 45.1598C2.83007 45.2176 3.16738 44.974 3.22518 44.6157C3.66961 41.8605 3.11776 39.173 2.56581 36.4851C2.31054 35.2419 2.05525 33.9987 1.89847 32.7486C1.29525 26.3851 3.46802 19.7466 7.00418 14.416C11.0189 8.5373 17.5201 4.16562 21.9931 2.93163Z\"}),(0,m.jsx)(\"path\",{d:\"M30.6166 4.39985C38.8671 3.89603 47.1159 7.26314 52.6556 13.7139C52.8921 13.9893 52.8605 14.4042 52.5852 14.6406C52.3099 14.8771 51.895 14.8455 51.6585 14.5702C46.3904 8.43576 38.541 5.23144 30.6927 5.71195C30.6899 5.71212 30.6871 5.71227 30.6843 5.71241C20.7592 6.19265 11.4643 12.9257 8.04547 22.3603C7.92183 22.7016 7.54498 22.8779 7.20375 22.7543C6.86253 22.6306 6.68616 22.2538 6.80981 21.9126C10.4114 11.9735 20.1717 4.90702 30.6166 4.39985Z\"}),(0,m.jsx)(\"path\",{d:\"M54.6576 16.5848C54.4553 16.2836 54.047 16.2033 53.7457 16.4057C53.4444 16.608 53.3642 17.0163 53.5665 17.3176C56.6376 21.8904 57.9074 26.8665 58.4094 32.7717C58.4401 33.1333 58.7582 33.4016 59.1199 33.3708C59.4815 33.3401 59.7497 33.022 59.719 32.6604C59.206 26.6261 57.8965 21.4076 54.6576 16.5848Z\"}),(0,m.jsx)(\"path\",{d:\"M59.2796 35.4504C59.6419 35.4277 59.9539 35.703 59.9765 36.0653C60.2242 40.0279 60.2265 44.5112 59.7881 47.8243C59.7405 48.1841 59.4102 48.4372 59.0504 48.3896C58.6906 48.342 58.4376 48.0117 58.4852 47.6519C58.9077 44.4586 58.91 40.0704 58.6648 36.1473C58.6421 35.785 58.9174 35.473 59.2796 35.4504Z\"}),(0,m.jsx)(\"path\",{d:\"M7.05311 25.5432C7.13829 25.1904 6.92135 24.8354 6.56855 24.7502C6.21576 24.665 5.86071 24.882 5.77553 25.2348C5.2932 27.2325 5.0428 29.2847 5.03288 31.3388C5.02266 33.4559 5.41742 35.5225 5.81234 37.5899C6.1354 39.2811 6.45855 40.9728 6.5602 42.6932C6.69373 44.9531 6.21839 47.2163 5.39698 49.3703C5.26766 49.7094 5.43774 50.0891 5.77685 50.2184C6.11596 50.3477 6.4957 50.1777 6.62502 49.8386C7.49325 47.5617 8.01954 45.1092 7.87221 42.6157C7.77126 40.9071 7.44813 39.2252 7.12512 37.5439C6.73099 35.4925 6.33704 33.442 6.34716 31.3451C6.35659 29.3933 6.59455 27.4425 7.05311 25.5432Z\"}),(0,m.jsx)(\"path\",{d:\"M24.2964 10.94C24.4317 11.2768 24.2683 11.6595 23.9315 11.7947C17.1187 14.5307 12.0027 20.7047 10.959 27.9852C10.523 31.0269 10.9941 34.0398 11.465 37.052C11.7303 38.7483 11.9954 40.4443 12.0985 42.1451C12.3221 45.833 11.902 49.8839 9.50192 53.5696C9.30387 53.8737 8.89677 53.9597 8.59264 53.7617C8.28851 53.5636 8.20251 53.1565 8.40056 52.8524C10.5873 49.4944 11.0012 45.7644 10.7867 42.2246C10.6821 40.499 10.4185 38.7833 10.1552 37.0686C9.68265 33.9923 9.21067 30.9195 9.65804 27.7987C10.7724 20.025 16.221 13.4748 23.4417 10.5751C23.7785 10.4399 24.1612 10.6032 24.2964 10.94Z\"}),(0,m.jsx)(\"path\",{d:\"M47.3662 14.6814C41.9915 9.64741 34.2017 7.89046 27.122 9.4433C26.7675 9.52105 26.5432 9.87147 26.6209 10.226C26.6987 10.5805 27.0491 10.8048 27.4036 10.7271C34.1075 9.25665 41.4426 10.934 46.4677 15.6406C50.7033 19.6077 53.1628 25.38 53.8066 31.6779C53.8435 32.0389 54.1661 32.3017 54.5272 32.2648C54.8883 32.2279 55.151 31.9053 55.1141 31.5442C54.4456 25.0047 51.8822 18.9111 47.3662 14.6814Z\"}),(0,m.jsx)(\"path\",{d:\"M54.9766 34.6738C55.3376 34.6368 55.6604 34.8994 55.6975 35.2604C56.3216 41.337 56.0526 47.9003 55.1104 54.2496C55.0571 54.6086 54.7229 54.8565 54.3639 54.8032C54.0049 54.7499 53.7571 54.4157 53.8103 54.0567C54.7394 47.7957 55.001 41.3439 54.39 35.3947C54.353 35.0336 54.6156 34.7109 54.9766 34.6738Z\"}),(0,m.jsx)(\"path\",{d:\"M32.0659 13.3553C21.9959 13.3553 13.814 21.3892 13.814 31.3219C13.814 32.3829 13.9081 33.4225 14.0876 34.4334C14.1511 34.7907 14.4922 35.029 14.8495 34.9655C15.2069 34.9021 15.4451 34.561 15.3817 34.2036C15.2155 33.2677 15.1283 32.305 15.1283 31.3219C15.1283 22.1352 22.7014 14.6696 32.0659 14.6696C36.2978 14.6696 40.1642 16.1949 43.1319 18.7152C43.4086 18.9501 43.8233 18.9163 44.0582 18.6396C44.2931 18.363 44.2593 17.9483 43.9827 17.7134C40.7847 14.9975 36.6188 13.3553 32.0659 13.3553Z\"}),(0,m.jsx)(\"path\",{d:\"M45.455 20.1635C45.717 19.9123 46.133 19.921 46.3842 20.183C49.2843 23.2072 50.2126 27.9605 50.8269 31.9494C51.5188 36.4426 51.6244 40.826 51.6244 42.8585C51.6244 43.2214 51.3302 43.5156 50.9673 43.5156C50.6044 43.5156 50.3101 43.2214 50.3101 42.8585C50.3101 40.8589 50.2055 36.5497 49.5279 32.1494C48.9577 28.4462 48.1356 23.9082 45.4356 21.0927C45.1844 20.8307 45.1931 20.4147 45.455 20.1635Z\"}),(0,m.jsx)(\"path\",{d:\"M51.4576 46.6219C51.4864 46.2601 51.2165 45.9435 50.8547 45.9146C50.493 45.8858 50.1763 46.1557 50.1474 46.5175C49.8247 50.5654 49.403 54.6088 48.5474 58.3439C48.4663 58.6977 48.6874 59.0502 49.0412 59.1312C49.3949 59.2123 49.7474 58.9912 49.8285 58.6374C50.7067 54.8039 51.134 50.6806 51.4576 46.6219Z\"}),(0,m.jsx)(\"path\",{d:\"M15.1454 36.852C15.5015 36.7819 15.847 37.0137 15.9171 37.3698C17.3066 44.4257 16.3467 50.8355 12.6672 56.4502C12.4682 56.7537 12.0609 56.8385 11.7573 56.6396C11.4538 56.4407 11.369 56.0333 11.5679 55.7298C15.0299 50.4469 15.9617 44.3985 14.6276 37.6238C14.5575 37.2677 14.7893 36.9221 15.1454 36.852Z\"}),(0,m.jsx)(\"path\",{d:\"M32.0659 17.631C25.5291 17.631 19.1165 22.691 18.462 29.0504C18.1754 31.8345 18.578 34.5769 18.9807 37.3204C19.3323 39.7159 19.684 42.1124 19.5772 44.5381C19.3328 50.0898 17.7039 54.6726 14.905 58.4471C14.6888 58.7386 14.7499 59.1502 15.0414 59.3663C15.333 59.5825 15.7445 59.5214 15.9607 59.2299C18.9293 55.2266 20.6354 50.386 20.8903 44.5959C20.9966 42.1811 20.6438 39.7923 20.2912 37.4051C19.888 34.6752 19.4851 31.9473 19.7694 29.1849C20.3444 23.5983 26.0946 18.9453 32.0659 18.9453C34.851 18.9453 42.057 20.4534 44.3492 27.9205C45.7856 32.5998 46.1774 38.9326 45.8295 45.0849C45.4816 51.2364 44.3994 57.12 42.9442 60.8928C42.8136 61.2314 42.9822 61.6118 43.3208 61.7424C43.6594 61.873 44.0398 61.7044 44.1704 61.3658C45.6929 57.4186 46.7895 51.386 47.1417 45.1591C47.4938 38.9329 47.1068 32.4249 45.6056 27.5348C43.0612 19.2461 35.0851 17.631 32.0659 17.631Z\"}),(0,m.jsx)(\"path\",{d:\"M21.9529 56.4512C22.2569 56.6494 22.3426 57.0566 22.1444 57.3606C21.7369 57.9854 21.3784 58.6391 21.0199 59.2928C20.6614 59.9465 20.3028 60.6004 19.8953 61.2253C19.697 61.5293 19.2898 61.615 18.9858 61.4167C18.6819 61.2184 18.5962 60.8113 18.7944 60.5073C19.2019 59.8825 19.5604 59.2288 19.9189 58.5751C20.2774 57.9213 20.636 57.2675 21.0435 56.6426C21.2418 56.3386 21.649 56.2529 21.9529 56.4512Z\"}),(0,m.jsx)(\"path\",{d:\"M27.5799 24.4525C27.8816 24.2508 27.9625 23.8426 27.7608 23.541C27.559 23.2393 27.1509 23.1583 26.8492 23.3601C24.247 25.1006 22.6505 27.494 22.6505 31.0002C22.6505 33.088 23.0203 34.7946 23.3997 36.5449C23.9674 39.1641 24.3524 41.7777 24.2832 44.468C24.1992 47.7349 23.56 50.7201 22.3313 53.564C22.1873 53.8971 22.3407 54.2839 22.6739 54.4278C23.0071 54.5718 23.3938 54.4184 23.5378 54.0852C24.8369 51.0784 25.509 47.9266 25.5971 44.5018C25.6689 41.7062 25.2732 38.9892 24.6845 36.267C24.3042 34.509 23.9648 32.9394 23.9648 31.0002C23.9648 27.9961 25.2863 25.9866 27.5799 24.4525Z\"}),(0,m.jsx)(\"path\",{d:\"M30.1447 22.1436C32.8717 21.5877 35.8061 22.2746 37.966 24.0228C41.8241 27.1455 42.3372 32.8403 42.753 37.4549L42.7742 37.69C43.3115 43.6385 42.6964 49.4163 41.4575 55.2186C41.3817 55.5736 41.0326 55.7999 40.6776 55.7241C40.3227 55.6483 40.0964 55.2991 40.1722 54.9442C41.3926 49.2288 41.9873 43.5885 41.4652 37.8082C41.4479 37.6169 41.4307 37.4228 41.4133 37.2264L41.4131 37.2235C41.0438 33.0534 40.5812 27.8304 37.1392 25.0444C35.2926 23.5498 32.7599 22.9518 30.4073 23.4314C30.0517 23.5039 29.7046 23.2744 29.6321 22.9188C29.5596 22.5632 29.7891 22.2161 30.1447 22.1436Z\"}),(0,m.jsx)(\"path\",{d:\"M40.5287 58.4885C40.6183 58.1368 40.4057 57.7791 40.054 57.6896C39.7023 57.6 39.3446 57.8126 39.2551 58.1643C38.8578 59.7247 38.2456 61.1333 37.4695 62.4301C37.2831 62.7415 37.3844 63.145 37.6958 63.3314C38.0072 63.5178 38.4108 63.4165 38.5972 63.1051C39.4336 61.7075 40.0977 60.1816 40.5287 58.4885Z\"}),(0,m.jsx)(\"path\",{d:\"M37.3152 48.9521C37.6756 48.9948 37.9332 49.3215 37.8906 49.682C37.2699 54.9267 35.8688 59.6042 33.6205 63.6613C33.4446 63.9787 33.0446 64.0934 32.7272 63.9175C32.4097 63.7416 32.295 63.3417 32.4709 63.0242C34.6226 59.1416 35.9811 54.6339 36.5854 49.5275C36.6281 49.1671 36.9548 48.9095 37.3152 48.9521Z\"}),(0,m.jsx)(\"path\",{d:\"M37.1798 30.6556C36.7242 28.2212 34.6349 26.3591 32.0985 26.3591C28.6638 26.3591 26.254 29.8212 27.1032 33.0422C28.54 38.7279 28.7759 44.2077 27.8032 49.4855L27.8025 49.4893C26.9584 54.228 25.3374 58.4908 23.1263 62.1031C22.9368 62.4127 23.0342 62.8172 23.3437 63.0067C23.6533 63.1962 24.0578 63.0988 24.2473 62.7893C26.5488 59.0292 28.2249 54.6109 29.0961 49.7218C30.106 44.2403 29.8558 38.5684 28.3765 32.7168L28.3748 32.7099C27.7378 30.3005 29.5133 27.6734 32.0985 27.6734C33.9641 27.6734 35.5393 29.0459 35.8871 30.8929C36.8436 36.4411 37.3418 41.5862 36.9871 46.016C36.9581 46.3778 37.2279 46.6945 37.5897 46.7235C37.9515 46.7525 38.2682 46.4827 38.2972 46.1209C38.6649 41.5294 38.1459 36.2576 37.1815 30.6648C37.1809 30.6617 37.1804 30.6586 37.1798 30.6556Z\"}),(0,m.jsx)(\"path\",{d:\"M30.1376 59.1171C30.4604 59.283 30.5876 59.6792 30.4217 60.002L28.6804 63.3906C28.5145 63.7134 28.1184 63.8406 27.7956 63.6747C27.4728 63.5088 27.3456 63.1127 27.5114 62.7899L29.2527 59.4013C29.4186 59.0785 29.8147 58.9513 30.1376 59.1171Z\"}),(0,m.jsx)(\"path\",{d:\"M32.5872 31.2892C32.5042 30.9359 32.1505 30.7168 31.7972 30.7998C31.4439 30.8828 31.2247 31.2365 31.3077 31.5898C33.5238 41.0232 33.2194 49.3066 30.5201 56.363C30.3905 56.702 30.5602 57.0819 30.8991 57.2115C31.2381 57.3412 31.618 57.1715 31.7477 56.8326C34.5622 49.475 34.8483 40.9141 32.5872 31.2892Z\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_113_33841\",children:(0,m.jsx)(\"rect\",{width:\"64\",height:\"64\",fill:\"white\",transform:\"translate(0.483887)\"})})})]}),lp=({passkeys:e,expanded:t,onUnlink:r,onExpand:n})=>{let[i,a]=(0,o.useState)([]),s=t?e.length:2,l=e=>e.authenticatorName?e.createdWithBrowser?`${e.authenticatorName} on ${e.createdWithBrowser}`:e.authenticatorName:e.createdWithBrowser?e.createdWithOs?`${e.createdWithBrowser} on ${e.createdWithOs}`:`${e.createdWithBrowser}`:\"Unknown device\",c=async e=>{a(t=>t.concat([e])),await r(e),a(t=>t.filter(t=>t!==e))};return(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(l_,{children:\"Your passkeys\"}),(0,m.jsxs)(lx,{children:[e.slice(0,s).map(e=>(0,m.jsxs)(lE,{children:[(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(lj,{children:l(e)}),(0,m.jsxs)(lk,{children:[\"Last used: \",(e.latestVerifiedAt??e.verifiedAt).toLocaleString()]})]}),(0,m.jsx)(lS,{disabled:i.includes(e.credentialId),onClick:()=>c(e.credentialId),children:i.includes(e.credentialId)?(0,m.jsx)(n0,{}):(0,m.jsx)(el.Z,{height:\"1.6em\"})})]},e.credentialId)),e.length>2&&!t&&(0,m.jsx)(lw,{onClick:n,children:\"View all\"})]})]})},lm=()=>(0,m.jsxs)(lx,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(ec.Z,{})}),\"Log in with Touch ID, Face ID, or a security key.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(J.Z,{})}),\"More secure than a password.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(es.Z,{})}),\"Takes seconds to set up and use.\"]})]}),lg=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 180px;\n  height: 90px;\n  border-radius: 50%;\n  svg + svg {\n    margin-left: 12px;\n  }\n  > svg {\n    z-index: 2;\n    color: var(--privy-color-accent) !important;\n    stroke: var(--privy-color-accent) !important;\n    fill: var(--privy-color-accent) !important;\n  }\n`,lf=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: ${e=>e.success?\"var(--privy-color-success)\":e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  display: flex;\n  justify-content: flex-beginngin;\n  width: 100%;\n`,ly=(0,A.iv)`\n  && {\n    width: 100%;\n    font-size: 0.875rem;\n    line-height: 1rem;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    justify-content: center;\n\n    padding: 6px 8px;\n    background-color: var(--privy-color-background);\n    transition: background-color 200ms ease;\n    color: var(--privy-color-accent) !important;\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n`,lw=A.ZP.button`\n  ${ly}\n`,lx=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 0.8rem;\n  padding: 0.5rem 0rem 0rem;\n  flex-grow: 1;\n  width: 100%;\n`,lv=A.ZP.div`\n  font-size: 18px;\n  line-height: 18px;\n  text-align: center;\n  font-weight: 600;\n`,lC=A.ZP.div`\n  font-size: 0.875rem;\n  text-align: center;\n  margin-top: 10px;\n`,lb=A.ZP.div`\n  height: 32px;\n`,l_=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 1em;\n  font-weight: 450;\n  display: flex;\n  justify-content: flex-beginning;\n  width: 100%;\n`,lj=A.ZP.div`\n  font-size: 1em;\n  line-height: 1.3em;\n  font-weight: 500;\n  color: var(--privy-color-foreground-2);\n  padding: 0.2em 0;\n`,lk=A.ZP.div`\n  font-size: 0.875rem;\n  line-height: 1rem;\n  color: #64668b;\n  padding: 0.2em 0;\n`,lE=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 1em;\n  gap: 10px;\n  font-size: 0.875rem;\n  line-height: 1rem;\n  text-align: left;\n  border-radius: 8px;\n  border: 1px solid #e2e3f0 !important;\n  width: 100%;\n  height: 5em;\n`,lA=(0,A.iv)`\n  :focus,\n  :hover,\n  :active {\n    outline: none;\n  }\n  display: flex;\n  width: 2em;\n  height: 2em;\n  justify-content: center;\n  align-items: center;\n  svg {\n    color: var(--privy-color-error);\n  }\n  svg:hover {\n    color: var(--privy-color-foreground-3);\n  }\n`,lS=A.ZP.button`\n  ${lA}\n`,lT=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  padding-top: 24px;\n  padding-bottom: 24px;\n`,lP=A.ZP.div`\n  width: 24px;\n  height: 24px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  svg {\n    border-radius: var(--privy-border-radius-sm);\n  }\n`,lN=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: 8px;\n`,lR=A.ZP.div`\n  display: flex;\n  align-items: baseline;\n  gap: 4px;\n`,lM=A.ZP.div`\n  font-size: 42px !important;\n`,lO=A.ZP.input`\n  font-size: 42px !important;\n  text-align: right;\n  background-color: var(--privy-color-background);\n\n  // HACK: The only way this is centerable is to set a content-based width.\n  // The --funding-input-length is updated via the component.\n  // Note that 'ch' has 98.25% global browser adoption\n  width: calc(1ch * var(--funding-input-length));\n\n  &:focus {\n    outline: none !important;\n    border: none !important;\n    box-shadow: none !important;\n  }\n`,lI=A.ZP.div`\n  cursor: pointer;\n  padding-left: 4px;\n`,lW=A.ZP.div`\n  font-size: 18px;\n`,lL=A.ZP.div`\n  font-size: 12px;\n  color: var(--privy-color-foreground-3);\n  // we need this container to maintain a static height if there's no content\n  height: 20px;\n`,lF=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  line-height: 22px;\n  font-size: 16px;\n  text-align: center;\n  svg {\n    margin-right: 6px;\n    margin: auto;\n  }\n`,lU=(0,A.ZP)(lw)`\n  margin-top: 16px;\n`,lD=(0,A.F4)`\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n`,lZ=(0,A.ZP)(ie)`\n  border-radius: var(--privy-border-radius-md) !important;\n  animation: ${lD} 0.3s ease-in-out;\n`,lz=A.ZP.span`\n  text-align: left;\n  font-size: 0.75rem;\n  font-weight: 500;\n  line-height: 1.125rem; /* 150% */\n\n  color: var(--privy-color-error);\n`,l$=A.ZP.span`\n  color: var(--privy-color-foreground-3);\n  font-size: 0.75rem;\n  font-weight: 500;\n  line-height: 1.125rem; /* 150% */\n`,lH=({address:e,showCopyIcon:t,url:r,className:n})=>r?(0,m.jsx)(\"a\",{title:e,className:n,href:`${r}/address/${e}`,target:\"_blank\",children:tm(e)}):(0,m.jsxs)(\"button\",{title:e,className:n,onClick:()=>navigator.clipboard.writeText(e).catch(console.error),children:[tm(e),t&&(0,m.jsx)(lB,{})]}),lB=(0,A.ZP)(D.Z)`\n  && {\n    display: inline;\n  }\n  stroke-width: 2;\n  height: 0.875rem;\n  width: 0.875rem;\n  margin-left: 0.125rem;\n  color: var(--privy-color-foreground-3);\n`,lq=({errMsg:e,balance:t,address:r,isLoading:n,className:i,title:a,isPulsing:o,statusColor:s=\"green\"})=>{let l;return l=s||(e?\"red\":\"green\"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(lV,{className:i,$state:e?\"error\":void 0,children:[(0,m.jsxs)(oc,{children:[(0,m.jsx)(l$,{children:a||\"Pay with\"}),(0,m.jsx)(lH,{address:r,showCopyIcon:!!e})]}),(0,m.jsx)(aj,{isLoading:n,isPulsing:o,color:l,children:t})]}),e&&(0,m.jsx)(lz,{style:{marginTop:\"0.25rem\"},children:e})]})},lV=A.ZP.div`\n  && {\n    border-width: 1px;\n  }\n\n  text-align: left;\n  border: solid 1px var(--privy-color-foreground-4);\n  border-radius: var(--privy-border-radius-md);\n  padding: 0.5rem 1rem;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n\n  ${e=>\"error\"===e.$state?\"border-color: var(--privy-color-error);\":\"\"}\n`,lG=({...e})=>(0,m.jsx)(rG,{color:\"black\",...e}),lK=e=>{let[t,r]=(0,o.useState)(!1);return(0,m.jsx)(l1,{onClick:()=>{r(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>r(!1),1500)},children:(0,m.jsxs)(l0,{children:[t?(0,m.jsx)(ss,{style:{height:\"16px\",width:\"16px\"},strokeWidth:\"2\"}):(0,m.jsx)(Q.Z,{style:{height:\"16px\",width:\"16px\"}}),t?\"Copied\":\"Copy address\"]})})},lY=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  gap: 8px;\n`,lQ=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  padding: 8px;\n  background-color: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  svg {\n    margin-right: 12px;\n  }\n`,lX=A.ZP.div`\n    line-height: 20px;\n    font-size: 18px\n    text-align: center;\n`,lJ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  background-color: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  svg {\n    margin-right: 6px;\n  }\n  padding: 16px;\n  gap: 8px;\n`,l0=A.ZP.span`\n  display: flex;\n  align-items: center;\n  margin: auto;\n`,l1=A.ZP.button`\n  display: flex;\n  align-items: center;\n  width: 100%;\n\n  && {\n    border-radius: var(--privy-border-radius-md);\n    border: 1px solid var(--privy-color-foreground-4);\n    background-color: white;\n    line-height: 18px;\n    text-align: center;\n    padding: 8px;\n    font-size: 14px;\n    background-color: var(--privy-color-background);\n    color: ${e=>e.justCopied?\"var(--privy-color-foreground-2)\":\"var(--privy-color-foreground-accent-dark)\"};\n    font-weight: ${e=>e.justCopied?\"medium\":\"normal\"};\n    transition: color 350ms ease;\n\n    :active {\n      outline: none;\n      box-shadow: none;\n    }\n\n    :hover {\n      color: ${e=>e.justCopied?\"var(--privy-color-foreground-2)\":\"var(--privy-color-foreground-accent-dark)\"};\n    }\n\n    :active {\n      color: 'var(--privy-color-foreground-accent-dark)';\n      font-weight: medium;\n    }\n  }\n\n  svg {\n    width: 18px;\n    height: 18px;\n  }\n`,l2=({title:e,desc:t,icon:r})=>(0,m.jsxs)(l9,{children:[(0,m.jsx)(ct,{children:r}),(0,m.jsxs)(ce,{children:[(0,m.jsx)(l7,{children:e}),(0,m.jsx)(l8,{children:t})]})]}),l3=({app:e,signedUrl:t,onContinue:r})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(l5,{children:[(0,m.jsx)(ld,{size:\"3.75rem\"}),(0,m.jsxs)(l6,{children:[e?.name,\" uses \",(0,m.jsx)(\"span\",{style:{fontWeight:\"bold\"},children:\"Moonpay\"}),\" to fund your account\"]}),(0,m.jsxs)(cr,{children:[(0,m.jsx)(l2,{icon:(0,m.jsx)(eu.Z,{width:\"1rem\"}),title:\"Purchase assets to fund your account\",desc:(0,m.jsxs)(m.Fragment,{children:[\"Connect a payment method (\",(0,m.jsx)(\"strong\",{children:\"debit card recommended\"}),\") to purchase digital assets.\"]})}),(0,m.jsx)(l2,{icon:(0,m.jsx)(es.Z,{width:\"1rem\"}),title:\"Compliance takes time\",desc:\"Funding a new account may take a few hours. You'll be good to go thereafter.\"}),(0,m.jsx)(l2,{icon:(0,m.jsx)($.Z,{width:\"1rem\"}),title:\"Your data belongs to you\",desc:\"MoonPay does not sell your data and will only use it with your permission.\"})]}),(0,m.jsx)(cn,{className:\"mobile-only\"})]}),(0,m.jsx)(l4,{children:\"By clicking continue, you will be taken to MoonPay in a new tab.\"}),(0,m.jsx)(n6,{disabled:!t,href:t??\"#\",target:\"_blank\",rel:\"noopener noreferrer\",onClick:r,children:\"Continue to Moonpay\"})]}),l4=A.ZP.span`\n  display: inline-block;\n  color: var(--privy-color-foreground-3);\n  text-align: center;\n  font-size: 0.625rem;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 140%; /* 0.875rem */\n  margin-bottom: 0.25rem;\n`,l5=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  padding: 1.5rem 0;\n`,l6=A.ZP.span`\n  color: var(--privy-color-foreground);\n  text-align: center;\n  font-size: 1.125rem;\n  font-weight: 500;\n  line-height: 1.25rem; /* 111.111% */\n  margin: 1.5rem 0;\n  text-align: center;\n  max-width: 19.5rem;\n`,l7=A.ZP.span`\n  color: var(--privy-color-foreground);\n  font-size: 0.875rem;\n  font-weight: 500;\n  line-height: 1.225rem;\n  width: 100%;\n`,l8=A.ZP.span`\n  color: var(--privy-color-foreground-2);\n  font-size: 0.875rem;\n  font-weight: 400;\n  line-height: 1.225rem;\n`,l9=A.ZP.div`\n  display: flex;\n  align-items: flex-start;\n  gap: 0.5rem;\n  align-self: stretch;\n`,ce=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 0.25rem;\n  align-items: flex-start;\n  text-align: left;\n  flex: 1 0 0;\n`,ct=A.ZP.div`\n  padding-top: 2px;\n`,cr=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 1.25rem;\n  margin: 0 0.5rem;\n`,cn=A.ZP.div`\n  margin: 30px 0;\n`,ci=\"moonpay\";function ca(e){return!!e&&(void 0!==e.chain||void 0!==e.amount)}async function co(e,t,r,n,i=!1){let a=r.currencyCode?{}:{defaultCurrencyCode:\"ETH_ETHEREUM\"},o=r.uiConfig||{accentColor:n.accent,theme:n.colorScheme};return e.signMoonpayOnRampUrl({address:t,useSandbox:i,config:{...r,...a,...o}})}async function cs(e,t){return(0,_.Wg)(`https://api.moonpay.com/v1/transactions/ext/${e}`,{query:{apiKey:t?\"pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI\":\"pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL\"}})}var cl=e=>{switch(e){case\"completed\":return{title:\"You've funded your account!\",body:\"It may take a few minutes for the assets to appear.\",cta:\"Continue\"};case\"waitingAuthorization\":return{title:\"Processing payment\",body:\"This may take up to a few hours. You will receive an email when the purchase is complete.\",cta:\"Continue\"};default:return{title:\"In Progress\",body:\"Go back to MoonPay to finish funding your account.\",cta:\"\"}}},cc=({status:e,onClickCta:t})=>{let{title:r,body:n,cta:i}=(0,o.useMemo)(()=>cl(e),[e]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(cm,{children:[(0,m.jsx)(cu,{status:e}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:r}),(0,m.jsx)(cp,{children:n})]})]}),i&&(0,m.jsx)(n3,{onClick:t,children:i})]})},cd=e=>e?({completed:\"var(--privy-color-success)\",failed:\"var(--privy-color-error)\",serviceFailure:\"var(--privy-color-error)\",waitingAuthorization:\"var(--privy-color-accent)\",pending:\"var(--privy-color-foreground-4)\"})[e]:\"var(--privy-color-foreground-4)\",ch=e=>{switch(e){case\"completed\":return W.Z;case\"waitingAuthorization\":return()=>(0,m.jsx)(ea.Z,{width:\"3rem\",height:\"3rem\",style:{backgroundColor:\"var(--privy-color-foreground-4)\",color:\"var(--privy-color-background)\",borderRadius:\"100%\",padding:\"0.5rem\",margin:\"0.5rem\"}});default:return}},cu=({status:e})=>{if(!e||\"pending\"===e){let e=\"var(--privy-color-foreground-4)\";return(0,m.jsxs)(\"div\",{style:{position:\"relative\"},children:[(0,m.jsx)(nX,{color:e,style:{position:\"absolute\"}}),(0,m.jsx)(nJ,{color:e}),(0,m.jsx)(ld,{size:\"3rem\",style:{position:\"absolute\",top:\"1rem\",left:\"1rem\"}})]})}let t=ch(e),r=cd(e);return(0,m.jsx)(\"div\",{style:{borderColor:r,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:\"100%\",borderWidth:2,padding:\"0.5rem\",marginBottom:\"0.5rem\"},children:t&&(0,m.jsx)(t,{width:\"4rem\",height:\"4rem\",color:r})})},cp=A.ZP.p`\n  font-size: 1rem;\n  color: var(--privy-color-foreground-3);\n  margin-bottom: 1rem;\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n`,cm=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 1.75rem;\n  margin-right: 1.75rem;\n  padding: 2rem 0;\n`,cg=A.ZP.span`\n  margin-top: 4px;\n  color: var(--privy-color-foreground);\n  text-align: center;\n\n  font-size: 0.875rem;\n  font-weight: 400;\n  line-height: 1.375rem; /* 157.143% */\n`,cf=()=>{let{enabled:e,token:t}=nF(),{navigate:r,setModalData:n}=ny(),{initLoginWithPasskey:i}=nZ();return(0,m.jsx)(cw,{onClick:async()=>{e&&!t?(n({captchaModalData:{callback:e=>i(e),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSKEY_SYSTEM_DIALOGUE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),r(\"CAPTCHA_SCREEN\")):(await i(),r(\"AWAITING_PASSKEY_SYSTEM_DIALOGUE\"))},children:\"I have a passkey\"})},cy=(0,A.iv)`\n  && {\n    width: 100%;\n    font-size: 0.875rem;\n    line-height: 1rem;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    justify-content: center;\n\n    padding: 6px 8px;\n    background-color: var(--privy-color-background);\n    transition: background-color 200ms ease;\n    color: var(--privy-color-accent) !important;\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n`,cw=A.ZP.button`\n  ${cy}\n`,cx=({onClick:e,text:t})=>(0,m.jsxs)(i_,{onClick:e,children:[(0,m.jsx)(F.Z,{}),(0,m.jsx)(iy,{children:t}),(0,m.jsx)(ep.Z,{})]}),cv=A.ZP.div`\n  border-radius: 50%;\n  height: 68px;\n  width: 68px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--privy-color-accent);\n  color: white;\n  margin: 0 auto 24px auto;\n`,cC=({style:e,...t})=>(0,m.jsx)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",width:\"17\",height:\"17\",viewBox:\"0 0 17 17\",style:{height:\"1.25rem\",width:\"1.25rem\",...e},...t,children:(0,m.jsx)(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M16.5 8.67993C16.5 9.82986 15.853 10.8287 14.9032 11.3322C15.2188 12.3599 14.97 13.5237 14.1569 14.3368C13.3437 15.1499 12.18 15.3987 11.1523 15.0831C10.6488 16.0329 9.64993 16.6799 8.5 16.6799C7.35007 16.6799 6.35126 16.0329 5.84771 15.0831C4.82003 15.3987 3.65627 15.1499 2.84314 14.3368C2.03001 13.5237 1.78124 12.3599 2.09681 11.3322C1.14699 10.8287 0.5 9.82986 0.5 8.67993C0.5 7.53 1.14699 6.53119 2.0968 6.02764C1.78125 4.99996 2.03003 3.83621 2.84315 3.02309C3.65627 2.20997 4.82002 1.96119 5.8477 2.27675C6.35125 1.32692 7.35007 0.679932 8.5 0.679932C9.64992 0.679932 10.6487 1.32691 11.1523 2.27672C12.18 1.96115 13.3437 2.20993 14.1569 3.02305C14.97 3.83618 15.2188 4.99996 14.9032 6.02764C15.853 6.53119 16.5 7.53 16.5 8.67993ZM12.2659 6.68856C12.5654 6.40238 12.5761 5.92763 12.29 5.62818C12.0038 5.32873 11.529 5.31797 11.2296 5.60416C9.73022 7.03711 8.40877 8.65489 7.3018 10.4211L5.78033 8.89963C5.48744 8.60673 5.01256 8.60673 4.71967 8.89963C4.42678 9.19252 4.42678 9.66739 4.71967 9.96029L6.92031 12.1609C7.08544 12.3261 7.31807 12.4048 7.54957 12.374C7.78106 12.3432 7.98499 12.2064 8.1012 12.0038C9.23027 10.0356 10.6362 8.24613 12.2659 6.68856Z\",fill:\"var(--privy-color-accent)\"})}),cb=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  gap: 4px;\n`,c_=A.ZP.div`\n  &&& {\n    margin-left: 7px; /* TODO: This is a total hack */\n    border-left: 2px solid var(--privy-color-foreground-4);\n    height: 12px;\n  }\n`,cj=({children:e})=>(0,m.jsxs)(ck,{children:[(0,m.jsx)(cC,{style:{width:\"16px\",height:\"16px\"}}),e]}),ck=A.ZP.div`\n  display: flex;\n  justify-content: flex-start;\n  justify-items: center;\n  text-align: left;\n  gap: 8px;\n\n  && {\n    a {\n      text-decoration: underline;\n      color: var(--privy-color-accent);\n    }\n\n    svg {\n      margin-top: auto;\n      margin-bottom: auto;\n    }\n  }\n`,cE=()=>(0,m.jsxs)(cA,{children:[(0,m.jsx)(aa,{title:\"Create a Phantom wallet\",description:\"Follow the instructions below to get started.\"}),(0,m.jsx)(i3,{children:(0,m.jsx)(rX,{style:{width:\"152px\",height:\"152px\"}})}),(0,m.jsxs)(cb,{children:[(0,m.jsx)(cj,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(\"span\",{children:\"Install the \"}),(0,m.jsx)(\"a\",{href:s.vU?\"https://addons.mozilla.org/en-US/firefox/addon/phantom-app/\":\"https://chrome.google.com/webstore/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa?hl=en\",target:\"_blank\",children:\"Phantom browser extension\"})]})}),(0,m.jsx)(c_,{}),(0,m.jsx)(cj,{children:\"Set up your first wallet\"}),(0,m.jsx)(c_,{}),(0,m.jsx)(cj,{children:\"Store your recovery phrase in a safe place!\"})]}),(0,m.jsx)(ie,{onClick:()=>window.location.reload(),children:\"Reload the page to use your wallet\"})]}),cA=(0,A.ZP)(i3)`\n  gap: 30px;\n\n  > :first-child > svg {\n    margin-top: 20px;\n  }\n`,cS={apple_oauth:\"apple\",custom_auth:\"custom\",discord_oauth:\"discord\",email:\"email\",farcaster:\"farcaster\",github_oauth:\"github\",google_oauth:\"google\",instagram_oauth:\"instagram\",linkedin_oauth:\"linkedin\",passkey:\"passkey\",phone:\"sms\",spotify_oauth:\"spotify\",telegram:\"telegram\",tiktok_oauth:\"tiktok\",twitter_oauth:\"twitter\",wallet:\"siwe\",cross_app:\"privy:\",guest:\"guest\"},cT=e=>{let t=cS[e];return\"wallet\"===e||\"phone\"===e?{displayName:e,loginMethod:t}:{displayName:t,loginMethod:t}},cP=()=>{let{app:e}=ny(),t=e?.appearance?.logo,r=`${e?.name} logo`,n={maxHeight:\"90px\",maxWidth:\"180px\"};return t?\"string\"==typeof t?(0,m.jsx)(\"img\",{src:t,alt:r,style:n}):\"svg\"===t.type||\"img\"===t.type?o.cloneElement(t,{alt:r,style:n}):(console.warn(\"`config.appearance.logo` must be a string, or an SVG / IMG element. Nothing will be rendered.\"),null):null},cN=e=>{let{app:t}=ny();return t?.appearance.logo?(0,m.jsx)(cR,{...e,children:(0,m.jsx)(cP,{})}):null},cR=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding: 24px 0;\n  flex-grow: 1;\n  justify-content: center;\n`,cM=(0,o.forwardRef)((e,t)=>{let[r,n]=(0,o.useState)(\"\"),[i,a]=(0,o.useState)(!1),{authenticated:s}=n$(),{initLoginWithEmail:l}=nZ(),{navigate:c,setModalData:d,currentScreen:h}=ny(),{enabled:u,token:p}=nF(),[g,f]=(0,o.useState)(!1),{accountType:y}=aW(),w=tu(r),x=i||!w,v=e=>{a(!0),l(r,e).then(()=>{c(\"AWAITING_PASSWORDLESS_CODE\")}).catch(e=>{d({errorModalData:{error:e,previousScreen:h||\"LANDING\"}}),c(\"ERROR_SCREEN\")}).finally(()=>{a(!1)})},C=()=>{!u||p||s?v(p):(d({captchaModalData:{callback:e=>l(r,e),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSWORDLESS_CODE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),c(\"CAPTCHA_SCREEN\"))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(cO,{children:(0,m.jsxs)(cI,{stacked:e.stacked,children:[(0,m.jsx)(O.Z,{}),(0,m.jsx)(\"input\",{ref:t,id:\"email-input\",type:\"email\",placeholder:\"your@email.com\",onFocus:()=>f(!0),onChange:e=>n(e.target.value),onKeyUp:e=>{\"Enter\"===e.key&&C()},value:r,autoComplete:\"email\"}),\"email\"!==y||g?e.stacked?(0,m.jsx)(\"span\",{}):(0,m.jsx)(it,{isSubmitting:i,onClick:C,disabled:x,children:\"Submit\"}):(0,m.jsx)(aj,{color:\"gray\",children:\"Recent\"})]})}),e.stacked?(0,m.jsx)(n3,{loadingText:null,loading:i,disabled:x,onClick:C,children:\"Submit\"}):null]})}),cO=A.ZP.div`\n  width: 100%;\n`,cI=A.ZP.label`\n  display: block;\n  position: relative;\n  width: 100%;\n\n  > svg {\n    position: absolute;\n    margin: 13px 17px;\n    height: 24px;\n    width: 24px;\n    color: var(--privy-color-foreground-3);\n  }\n\n  && > input {\n    font-size: 16px;\n    line-height: 24px;\n\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n\n    padding: 12px 88px 12px 52px;\n    padding-right: ${e=>e.stacked?\"16px\":\"88px\"};\n    flex-grow: 1;\n    background: var(--privy-color-background);\n    border: 1px solid var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-mdlg);\n    width: 100%;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      padding-right: 78px;\n    }\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n\n    :autofill,\n    :-webkit-autofill {\n      background: var(--privy-color-background);\n    }\n  }\n\n  && > :last-child {\n    right: 16px;\n    position: absolute;\n    top: 50%;\n    transform: translate(0, -50%);\n  }\n\n  && > button:last-child {\n    right: 0px;\n    line-height: 24px;\n    padding: 13px 17px;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n  }\n\n  && > input::placeholder {\n    color: var(--privy-color-foreground-3);\n  }\n`,cW=({isEditable:e,setIsEditable:t})=>{let r=(0,o.useRef)(null);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ik,{if:!e,children:(0,m.jsx)(cM,{ref:r})}),(0,m.jsx)(ik,{if:e,children:(0,m.jsxs)(i_,{onClick:()=>{t(),setTimeout(()=>{r.current?.focus()},0)},children:[(0,m.jsx)(O.Z,{}),\" Continue with Email\"]})})]})},cL=()=>{let[e,t]=(0,o.useState)(!1),{currentScreen:r,navigate:n,setModalData:i}=ny(),{enabled:a,token:s}=nF(),{initLoginWithFarcaster:l}=nZ(),{accountType:c}=aW();return(0,m.jsxs)(i_,{onClick:async()=>{t(!0);try{a&&!s?(i({captchaModalData:{callback:e=>l(e),userIntentRequired:!0,onSuccessNavigateTo:\"AWAITING_FARCASTER_CONNECTION\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),n(\"CAPTCHA_SCREEN\")):(await l(s),n(\"AWAITING_FARCASTER_CONNECTION\"))}catch(e){i({errorModalData:{error:e,previousScreen:r||\"LANDING\"}}),n(\"ERROR_SCREEN\")}finally{t(!1)}},disabled:!1,children:[(0,m.jsx)(s_,{}),\" Farcaster\",e&&(0,m.jsx)(\"span\",{children:(0,m.jsx)(n0,{})}),\"farcaster\"===c&&(0,m.jsx)(cF,{color:\"gray\",children:\"Recent\"})]})},cF=(0,A.ZP)(aj)`\n  margin-left: auto;\n`,cU=(e,t)=>(0,eg.t)(String(e),t),cD=(e,t)=>`+${(0,ef.G)(t)} ${e}`,cZ=e=>`*${e.replaceAll(\"-\",\"\").slice(-4)}`,cz=e=>new ey.R(e),c$=(0,ew.o)().map(e=>({code:e,callCode:(0,ef.G)(e)})),cH=e=>{let t=ex.L(e,em.Z)?.formatInternational();return t?.substring(t.indexOf(\" \")+1)},cB=({value:e,onChange:t})=>(0,m.jsx)(\"select\",{value:e,onChange:t,children:c$.map(e=>(0,m.jsxs)(\"option\",{value:e.code,children:[e.code,\" +\",e.callCode]},e.code))}),cq=(0,o.forwardRef)((e,t)=>{let{app:r}=ny(),[n,i]=(0,o.useState)(!1),{accountType:a}=aW(),[s,l]=(0,o.useState)(\"\"),[c,d]=(0,o.useState)(r?.intl.defaultCountry??\"US\"),h=cU(s,c),u=cz(c),p=cH(c),g=(0,ef.G)(c),f=!h,[y,w]=(0,o.useState)(!1),x=g.length,v=t=>{try{let r=t.replace(/\\D/g,\"\"),n=s.replace(/\\D/g,\"\"),i=r===n?t:u.input(t);l(i),e.onChange&&e.onChange({rawPhoneNumber:i,qualifiedPhoneNumber:cD(t,c),countryCode:c,isValid:cU(t,c)})}catch(e){console.error(\"Error processing phone number:\",e)}},C=()=>{w(!0);let t=cD(s,c);e.onSubmit({rawPhoneNumber:s,qualifiedPhoneNumber:t,countryCode:c,isValid:cU(s,c)}).finally(()=>w(!1))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(cV,{children:(0,m.jsxs)(cG,{callingCodeLength:x,stacked:e.stacked,children:[(0,m.jsx)(cB,{value:c,onChange:t=>{let r=t.target.value;d(r),l(\"\"),e.onChange&&e.onChange({rawPhoneNumber:s,qualifiedPhoneNumber:cD(s,r),countryCode:r,isValid:cU(s,c)})}}),(0,m.jsx)(\"input\",{ref:t,id:\"phone-number-input\",type:\"tel\",placeholder:p,onFocus:()=>i(!0),onChange:e=>{v(e.target.value)},onKeyUp:e=>{\"Enter\"===e.key&&C()},value:s,autoComplete:\"tel\"}),\"phone\"!==a||n||e.hideRecent?e.stacked||e.noIncludeSubmitButton?(0,m.jsx)(\"span\",{}):(0,m.jsx)(it,{isSubmitting:y,onClick:C,disabled:f,children:\"Submit\"}):(0,m.jsx)(aj,{color:\"gray\",children:\"Recent\"})]})}),e.stacked&&!e.noIncludeSubmitButton?(0,m.jsx)(n3,{loading:y,loadingText:null,onClick:C,disabled:f,children:\"Submit\"}):null]})}),cV=A.ZP.div`\n  width: 100%;\n`,cG=A.ZP.label`\n  --country-code-dropdown-width: calc(54px + calc(12 * ${e=>e.callingCodeLength}px));\n  --phone-input-extra-padding-left: calc(12px + calc(3 * ${e=>e.callingCodeLength}px));\n  display: block;\n  position: relative;\n  width: 100%;\n\n  /* Tablet and Up */\n  @media (min-width: 441px) {\n    --country-code-dropdown-width: calc(52px + calc(10 * ${e=>e.callingCodeLength}px));\n  }\n\n  && > select {\n    font-size: 16px;\n    height: 24px;\n    position: absolute;\n    margin: 13px calc(var(--country-code-dropdown-width) / 4);\n    line-height: 24px;\n    width: var(--country-code-dropdown-width);\n    background-color: var(--privy-color-background);\n    background-size: auto;\n    background-position-x: right;\n    cursor: pointer;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      width: var(--country-code-dropdown-width);\n    }\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n\n  && > input {\n    font-size: 16px;\n    line-height: 24px;\n\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n\n    width: calc(100% - var(--country-code-dropdown-width));\n\n    padding: 12px 88px 12px\n      calc(var(--country-code-dropdown-width) + var(--phone-input-extra-padding-left));\n    padding-right: ${e=>e.stacked?\"16px\":\"88px\"};\n    flex-grow: 1;\n    background: var(--privy-color-background);\n    border: 1px solid var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-mdlg);\n    width: 100%;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n\n    :autofill,\n    :-webkit-autofill {\n      background: var(--privy-color-background);\n    }\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      padding-right: 78px;\n    }\n  }\n\n  && > :last-child {\n    right: 16px;\n    position: absolute;\n    top: 50%;\n    transform: translate(0, -50%);\n  }\n\n  && > button:last-child {\n    right: 0px;\n    line-height: 24px;\n    padding: 13px 17px;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n  }\n\n  && > input::placeholder {\n    color: var(--privy-color-foreground-3);\n  }\n`,cK=({isEditable:e,setIsEditable:t})=>{let r=(0,o.useRef)(null),{authenticated:n}=n$(),{navigate:i,setModalData:a,currentScreen:s}=ny(),{initLoginWithSms:l}=nZ(),{enabled:c,token:d}=nF();async function h({qualifiedPhoneNumber:e}){if(!c||d||n)try{await l(e,d),i(\"AWAITING_PASSWORDLESS_CODE\")}catch(e){a({errorModalData:{error:e,previousScreen:s||\"LANDING\"}}),i(\"ERROR_SCREEN\")}else a({captchaModalData:{callback:t=>l(e,t),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSWORDLESS_CODE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),i(\"CAPTCHA_SCREEN\")}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ik,{if:!e,children:(0,m.jsx)(cq,{ref:r,onSubmit:h})}),(0,m.jsx)(ik,{if:e,children:(0,m.jsxs)(i_,{onClick:()=>{t(),setTimeout(()=>{r.current?.focus()},0)},children:[(0,m.jsx)(I.Z,{}),\" Continue with SMS\"]})})]})},cY={apple:{logo:(0,m.jsx)(t8,{}),displayName:\"Apple\"},discord:{logo:(0,m.jsx)(t9,{}),displayName:\"Discord\"},github:{logo:(0,m.jsx)(re,{}),displayName:\"GitHub\"},google:{logo:(0,m.jsx)(rr,{}),displayName:\"Google\"},linkedin:{logo:(0,m.jsx)(ri,{}),displayName:\"LinkedIn\"},spotify:{logo:(0,m.jsx)(ra,{}),displayName:\"Spotify\"},instagram:{logo:(0,m.jsx)(rn,{}),displayName:\"Instagram\"},twitter:{logo:(0,m.jsx)(rs,{}),displayName:\"Twitter\"},tiktok:{logo:(0,m.jsx)(ro,{}),displayName:\"TikTok\"}},cQ=({provider:e})=>{let{enabled:t,token:r}=nF(),{navigate:n,setModalData:i}=ny(),[a,s]=(0,o.useState)(!1),{initLoginWithOAuth:l}=nZ(),{accountType:c}=aW(),d=c?cT(c):null,{displayName:h,logo:u}=cY[e];return(0,m.jsxs)(i_,{onClick:()=>{s(!0),t&&!r?(i({captchaModalData:{callback:t=>l(e,t),userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:\"ERROR_SCREEN\"}}),n(\"CAPTCHA_SCREEN\")):l(e)},disabled:a,children:[u,\" \",h,d?.loginMethod===e&&(0,m.jsx)(cX,{color:\"gray\",children:\"Recent\"})]})},cX=(0,A.ZP)(aj)`\n  margin-left: auto;\n`;function cJ(e){return(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlnsXlink:\"http://www.w3.org/1999/xlink\",viewBox:\"0 0 240 240\",...e,children:[(0,m.jsx)(\"defs\",{children:(0,m.jsxs)(\"linearGradient\",{x1:\"120\",y1:\"240\",x2:\"120\",gradientUnits:\"userSpaceOnUse\",id:\"telegram-linear-gradient\",children:[(0,m.jsx)(\"stop\",{offset:\"0\",stopColor:\"#1d93d2\"}),(0,m.jsx)(\"stop\",{offset:\"1\",stopColor:\"#38b0e3\"})]})}),(0,m.jsx)(\"title\",{children:\"Telegram_logo\"}),(0,m.jsx)(\"circle\",{cx:\"120\",cy:\"120\",r:\"120\",fill:\"url(#telegram-linear-gradient)\"}),(0,m.jsx)(\"path\",{d:\"M81.229,128.772l14.237,39.406s1.78,3.687,3.686,3.687,30.255-29.492,30.255-29.492l31.525-60.89L81.737,118.6Z\",fill:\"#c8daea\"}),(0,m.jsx)(\"path\",{d:\"M100.106,138.878l-2.733,29.046s-1.144,8.9,7.754,0,17.415-15.763,17.415-15.763\",fill:\"#a9c6d8\"}),(0,m.jsx)(\"path\",{d:\"M81.486,130.178,52.2,120.636s-3.5-1.42-2.373-4.64c.232-.664.7-1.229,2.1-2.2,6.489-4.523,120.106-45.36,120.106-45.36s3.208-1.081,5.1-.362a2.766,2.766,0,0,1,1.885,2.055,9.357,9.357,0,0,1,.254,2.585c-.009.752-.1,1.449-.169,2.542-.692,11.165-21.4,94.493-21.4,94.493s-1.239,4.876-5.678,5.043A8.13,8.13,0,0,1,146.1,172.5c-8.711-7.493-38.819-27.727-45.472-32.177a1.27,1.27,0,0,1-.546-.9c-.093-.469.417-1.05.417-1.05s52.426-46.6,53.821-51.492c.108-.379-.3-.566-.848-.4-3.482,1.281-63.844,39.4-70.506,43.607A3.21,3.21,0,0,1,81.486,130.178Z\",fill:\"#fff\"})]})}var c0=()=>{let{enabled:e,token:t}=nF(),{navigate:r,setModalData:n}=ny(),[i,a]=(0,o.useState)(!1),{initLoginWithTelegram:s}=nZ(),{accountType:l}=aW();async function c(e){try{await s(e),r(\"TELEGRAM_AUTH_SCREEN\")}catch(e){console.error(e),a(!1)}}async function d(){if(a(!0),e&&!t){n({captchaModalData:{callback:c,userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:\"ERROR_SCREEN\"}}),r(\"CAPTCHA_SCREEN\");return}await c()}return(0,m.jsxs)(i_,{onClick:d,disabled:i,children:[(0,m.jsx)(cJ,{}),\"Telegram\",\"telegram\"===l&&(0,m.jsx)(c1,{color:\"gray\",children:\"Recent\"})]})},c1=(0,A.ZP)(aj)`\n  margin-left: auto;\n`,c2=({onClick:e,text:t,icon:r})=>(0,m.jsxs)(i_,{onClick:e,children:[r,(0,m.jsx)(iy,{children:t}),(0,m.jsx)(ep.Z,{})]}),c3=({connectOnly:e})=>{let{closePrivyModal:t,connectors:r}=nZ(),{app:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),{appearance:{palette:{colorScheme:a}}}=nh(),{accountType:l,walletClientType:c}=aW(),d=l?cT(l):null,h=n.loginMethodsAndOrder?.primary??[],u=n.loginMethodsAndOrder?.overflow??[],p=[...h,...u],g=n.loginMethods.passkey,f=[];c&&p.includes(c)?f.push(c):l&&p.includes(d?.loginMethod)&&f.push(d?.loginMethod);let[y,w]=(0,o.useState)(\"default\"),[x,v]=(0,o.useState)(\"phone\"===l?\"sms\":\"email\");(0,o.useEffect)(()=>{\"phone\"===l&&v(\"sms\");let e=p.indexOf(\"sms\"),t=p.indexOf(\"email\");e>-1&&e<t&&v(\"sms\")},[l,h,u]);let C=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{w(\"default\")},150)};i.current=C;let b=t=>\"email\"===t?(0,m.jsx)(cW,{isEditable:\"email\"===x,setIsEditable:()=>{v(\"email\")}},t):\"sms\"===t?(0,m.jsx)(cK,{isEditable:\"sms\"===x,setIsEditable:()=>{v(\"sms\")}},t):\"apple\"===t?(0,m.jsx)(cQ,{provider:\"apple\"},t):\"discord\"===t?(0,m.jsx)(cQ,{provider:\"discord\"},t):\"farcaster\"===t?(0,m.jsx)(cL,{},t):\"github\"===t?(0,m.jsx)(cQ,{provider:\"github\"},t):\"google\"===t?(0,m.jsx)(cQ,{provider:\"google\"},t):\"linkedin\"===t?(0,m.jsx)(cQ,{provider:\"linkedin\"},t):\"tiktok\"===t?(0,m.jsx)(cQ,{provider:\"tiktok\"},t):\"twitter\"===t&&(!s.tq||n?.loginConfig.twitterOAuthOnMobileEnabled)?(0,m.jsx)(cQ,{provider:\"twitter\"},t):\"telegram\"===t?(0,m.jsx)(c0,{},t):aB([t],r,e,p,n.externalWallets.walletConnect.enabled),_=f.flatMap(b),j=h.filter(e=>e!==c&&e!==d?.loginMethod).flatMap(b),k=u.filter(e=>e!==c&&e!==d?.loginMethod).flatMap(b),[E,A]=th([..._,...j,...k],c4({primary:j.length+_.length,overflow:k.length}));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:n.appearance.landingHeader,onClose:C,backFn:\"default\"===y?void 0:()=>{w(\"default\")}}),\"default\"===y&&(0,m.jsx)(c5,{}),\"default\"===y&&(\"string\"==typeof n.appearance.loginMessage?(0,m.jsx)(ib,{children:n.appearance.loginMessage}):n.appearance.loginMessage),(0,m.jsx)(iw,{style:{overflow:\"hidden\"},children:(0,m.jsxs)(iv,{colorScheme:a,style:{maxHeight:400,overflowY:\"scroll\",padding:2},children:[\"default\"===y&&(0,m.jsxs)(m.Fragment,{children:[...E,A.length>0&&(0,m.jsx)(c2,{text:\"More options\",icon:(0,m.jsx)(X.Z,{}),onClick:()=>w(\"overflow\")})]}),\"overflow\"===y&&(0,m.jsxs)(m.Fragment,{children:[...A]}),g&&\"default\"===y&&(0,m.jsx)(cf,{})]})}),n&&(0,m.jsx)(iT,{app:n}),(0,m.jsx)(iP,{})]})},c4=({primary:e,overflow:t})=>e<5?e:5===e&&0===t?5:4,c5=(0,A.ZP)(cN)`\n  margin-bottom: 16px;\n`,c6=({...e})=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"25\",height:\"25\",viewBox:\"0 0 25 25\",fill:\"none\",...e,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_2856_1743)\",children:[(0,m.jsx)(\"path\",{d:\"M22.1673 8.24075V16.3642C22.1673 17.3256 21.3421 18.105 20.3241 18.105H17.0028M22.1673 8.24075C22.1673 7.27936 21.3421 6.5 20.3241 6.5H11.5302M22.1673 8.24075V8.42852C22.1673 9.03302 21.8352 9.59423 21.2901 9.91105L15.1463 13.4818C14.5539 13.8261 13.8067 13.8261 13.2143 13.4818L10.1621 11.5401\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),(0,m.jsx)(\"path\",{d:\"M3.12913 6.64816C0.508085 12.9507 3.49251 20.1847 9.79504 22.8057L11.5068 23.5176C12.4522 23.9108 13.7783 23.2222 14.1714 22.2768L14.6054 21.2333C14.7687 20.8406 14.6438 20.3871 14.3024 20.1334L11.2872 17.8927C10.9878 17.6702 10.5843 17.6488 10.2632 17.8384L9.11575 18.5156C8.78274 18.7121 8.3597 18.6844 8.07552 18.4221C5.94293 16.4542 4.77629 13.6264 4.90096 10.7273C4.91757 10.3409 5.19796 10.023 5.57269 9.92753L6.86381 9.59869C7.22522 9.50664 7.49627 9.20696 7.55169 8.83815L8.10986 5.12321C8.17306 4.70259 7.94188 4.29293 7.54915 4.1296L6.50564 3.69564C5.56026 3.30248 4.23416 3.99103 3.84101 4.9364L3.12913 6.64816Z\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_2856_1743\",children:(0,m.jsx)(\"rect\",{x:\"0.5\",y:\"0.5\",width:\"24\",height:\"24\",rx:\"6\",fill:\"white\"})})})]}),c7=({connectOnly:e})=>{let{closePrivyModal:t,connectors:r}=nZ(),{data:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),a=nh(),{accountType:l,walletClientType:c}=aW(),d=l?cT(l):null,h=n?.login,{email:u,sms:p,google:g,twitter:f,discord:y,github:w,spotify:x,instagram:v,tiktok:C,linkedin:b,apple:_,wallet:j,farcaster:k,telegram:E}=(0,o.useMemo)(()=>h?.loginMethods?(0,ev.W)(h.loginMethods,!0):null,[h])??a.loginMethods,{passkey:A}=a.loginMethods,S=[u&&\"email\",p&&\"sms\",g&&\"google\",f&&\"twitter\",y&&\"discord\",w&&\"github\",x&&\"spotify\",v&&\"instagram\",C&&\"tiktok\",b&&\"linkedin\",_&&\"apple\",k&&\"farcaster\",E&&\"telegram\"].filter(e=>!!e),T=S.length>0,P=(0,o.useMemo)(()=>j&&!T?\"web3-first\":j&&a?.appearance.loginGroupPriority||\"web2-first\",[j,T,a?.appearance.loginGroupPriority]),N=a?.appearance.hideDirectWeb2Inputs,[R,M]=(0,o.useState)(\"default\"),[O,I]=(0,o.useState)(dr({accountType:l,sms:p,email:u}));(0,o.useEffect)(()=>{I(dr({accountType:l,sms:p,email:u}))},[u,p,l]);let W=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{M(\"default\")},150)};i.current=W;let L=[];c&&j?L.push(c):d?.loginMethod&&S.includes(d.loginMethod)&&L.push(d.loginMethod);let F=t=>\"email\"===t?(0,m.jsx)(cW,{isEditable:\"email\"===O,setIsEditable:()=>{I(\"email\")}},t):\"sms\"===t?(0,m.jsx)(cK,{isEditable:\"sms\"===O,setIsEditable:()=>{I(\"sms\")}},t):\"apple\"===t?(0,m.jsx)(cQ,{provider:\"apple\"},t):\"discord\"===t?(0,m.jsx)(cQ,{provider:\"discord\"},t):\"farcaster\"===t?(0,m.jsx)(cL,{},t):\"github\"===t?(0,m.jsx)(cQ,{provider:\"github\"},t):\"google\"===t?(0,m.jsx)(cQ,{provider:\"google\"},t):\"linkedin\"===t?(0,m.jsx)(cQ,{provider:\"linkedin\"},t):\"tiktok\"===t?(0,m.jsx)(cQ,{provider:\"tiktok\"},t):\"twitter\"===t&&(!s.tq||a?.loginConfig.twitterOAuthOnMobileEnabled)?(0,m.jsx)(cQ,{provider:\"twitter\"},t):\"telegram\"===t?(0,m.jsx)(c0,{},t):aB([t],r,e,[],a.externalWallets.walletConnect.enabled),U=aB(a.appearance.walletList.filter(e=>e!==c),r,e,[...a.appearance.walletList,c],a.externalWallets.walletConnect.enabled),D=S.filter(e=>e!==d?.loginMethod).flatMap(F),Z=L.flatMap(F);\"web3-first\"===P&&\"default\"===R?U.unshift(...Z):\"web2-first\"===P&&D.unshift(...Z);let z=S.filter(e=>\"email\"!==e&&\"sms\"!==e),$=c9({priority:P,email:u,sms:p,social:z}),H=de({priority:P,email:u,sms:p,social:z}),B=dt({priority:P}),q=(0,m.jsx)(cx,{text:B,onClick:()=>M(\"web3-overflow\")}),V=(0,m.jsx)(c2,{text:$,icon:H,onClick:()=>M(\"web2-overflow\")}),G=N?0:1;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:a.appearance.landingHeader,onClose:W,backFn:\"default\"===R?void 0:()=>{M(\"default\")}}),\"default\"===R&&(0,m.jsx)(c8,{}),\"default\"===R&&(\"string\"==typeof a.appearance.loginMessage?(0,m.jsx)(ib,{children:a.appearance.loginMessage}):a.appearance.loginMessage),(0,m.jsx)(iw,{style:{overflow:\"hidden\",padding:2},children:(0,m.jsxs)(ix,{children:[\"default\"===R&&\"web2-first\"===P&&(0,m.jsxs)(m.Fragment,{children:[...D.length>4?D.slice(0,3):D,D.length>4&&V,j&&q]}),\"default\"===R&&\"web3-first\"===P&&(0,m.jsxs)(m.Fragment,{children:[j&&(0,m.jsxs)(m.Fragment,{children:[...U.length>4?U.slice(0,3):U,U.length>4&&q]}),D.length>G&&V,D.length===G&&D[0]]}),\"web2-overflow\"===R&&(0,m.jsxs)(m.Fragment,{children:[...\"web3-first\"===P?D:D.slice(3)]}),...\"web3-overflow\"===R?U:[],A&&\"default\"===R&&(0,m.jsx)(cf,{})]})}),a&&(0,m.jsx)(iT,{app:a}),(0,m.jsx)(iP,{})]})},c8=(0,A.ZP)(cN)`\n  margin-bottom: 16px;\n`,c9=({priority:e,email:t,sms:r,social:n})=>\"web2-first\"===e?\"Other socials\":t&&r&&n.length>0||t&&n.length>0?\"Log in with email or socials\":r&&n.length>0?\"Log in with sms or socials\":t&&r?\"Continue with email or sms\":t?\"Continue with email\":r?\"Continue with sms\":\"Log in with a social account\",de=({priority:e,email:t,sms:r,social:n})=>\"web2-first\"===e||n.length>0?(0,m.jsx)(X.Z,{}):t&&r?(0,m.jsx)(c6,{}):t?(0,m.jsx)(O.Z,{}):r?(0,m.jsx)(I.Z,{}):null,dt=({priority:e})=>\"web2-first\"===e?\"Continue with a wallet\":\"Other wallets\",dr=({accountType:e,sms:t,email:r})=>\"email\"===e&&r?\"email\":\"phone\"===e&&t||t&&!r?\"sms\":\"email\",dn=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"164\",height:\"164\",viewBox:\"0 0 164 164\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"26px\",width:\"26px\",...e},...t,children:[(0,m.jsx)(\"circle\",{cx:\"82\",cy:\"82\",r:\"80\",stroke:\"#EC6351\",\"stroke-width\":\"4\",\"stroke-linecap\":\"round\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M81.9999 100.788C93.3288 100.788 102.513 91.6043 102.513 80.2754C102.513 68.9465 93.3288 59.7626 81.9999 59.7626C70.671 59.7626 61.4871 68.9465 61.4871 80.2754C61.4871 91.6043 70.671 100.788 81.9999 100.788ZM88.3236 71.8304C88.9093 71.2446 89.8591 71.2446 90.4449 71.8304C91.0307 72.4161 91.0307 73.3659 90.4449 73.9517L84.121 80.2756L90.445 86.5996C91.0308 87.1854 91.0308 88.1351 90.445 88.7209C89.8592 89.3067 88.9095 89.3067 88.3237 88.7209L81.9997 82.3969L75.6756 88.7209C75.0899 89.3067 74.1401 89.3067 73.5543 88.7209C72.9685 88.1351 72.9685 87.1854 73.5543 86.5996L79.8783 80.2756L73.5544 73.9517C72.9686 73.3659 72.9686 72.4161 73.5544 71.8304C74.1402 71.2446 75.09 71.2446 75.6758 71.8304L81.9997 78.1543L88.3236 71.8304Z\",fill:\"#EC6351\"})]});function di(){let{promptMfa:e,init:t,submit:r,cancel:n,mfaMethods:i}=(0,o.useContext)(nz);return{promptMfa:e,init:t,submit:r,cancel:n,mfaMethods:i}}function da(){let{initEnrollmentWithSms:e,initEnrollmentWithTotp:t,initEnrollmentWithPasskey:r,submitEnrollmentWithSms:n,submitEnrollmentWithTotp:i,submitEnrollmentWithPasskey:a,unenroll:s,enrollInMfa:l}=(0,o.useContext)(nz);return{initEnrollmentWithSms:e,initEnrollmentWithTotp:t,initEnrollmentWithPasskey:r,submitEnrollmentWithSms:n,submitEnrollmentWithTotp:i,submitEnrollmentWithPasskey:a,unenrollWithSms:()=>s(\"sms\"),unenrollWithTotp:()=>s(\"totp\"),unenrollWithPasskey:()=>s(\"passkey\"),showMfaEnrollmentModal:()=>l(!0),closeMfaEnrollmentModal:()=>l(!1)}}var ds=e=>(0,m.jsxs)(dl,{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",width:\"88\",height:\"89\",viewBox:\"0 0 88 89\",...e,children:[(0,m.jsx)(\"rect\",{y:\"0.666016\",width:\"88\",height:\"88\",rx:\"44\"}),(0,m.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M45.2463 20.9106C44.5473 20.2486 43.4527 20.2486 42.7537 20.9106C37.8798 25.5263 31.3034 28.3546 24.0625 28.3546C23.9473 28.3546 23.8323 28.3539 23.7174 28.3525C22.9263 28.3427 22.2202 28.8471 21.9731 29.5987C20.9761 32.6311 20.4375 35.8693 20.4375 39.2297C20.4375 53.5896 30.259 65.651 43.5482 69.0714C43.8446 69.1477 44.1554 69.1477 44.4518 69.0714C57.741 65.651 67.5625 53.5896 67.5625 39.2297C67.5625 35.8693 67.0239 32.6311 66.0269 29.5987C65.7798 28.8471 65.0737 28.3427 64.2826 28.3525C64.1677 28.3539 64.0527 28.3546 63.9375 28.3546C56.6966 28.3546 50.1202 25.5263 45.2463 20.9106ZM52.7249 40.2829C53.3067 39.4683 53.1181 38.3363 52.3035 37.7545C51.4889 37.1726 50.3569 37.3613 49.7751 38.1759L41.9562 49.1223L38.0316 45.1977C37.3238 44.4899 36.1762 44.4899 35.4684 45.1977C34.7605 45.9056 34.7605 47.0532 35.4684 47.761L40.9059 53.1985C41.2826 53.5752 41.806 53.7671 42.337 53.7232C42.868 53.6792 43.3527 53.4039 43.6624 52.9704L52.7249 40.2829Z\"})]}),dl=A.ZP.svg`\n  height: 90px;\n  width: 90px;\n\n  > rect {\n    ${e=>\"success\"===e.color?\"fill: var(--privy-color-success);\":\"fill: var(--privy-color-accent);\"}\n  }\n\n  > path {\n    fill: white;\n  }\n`,dc=({showIntro:e,userMfaMethods:t,appMfaMethods:r,userHasAuthSms:n,isTotpLoading:i,isPasskeyLoading:a,error:o,onClose:s,onBackToIntro:l,handleSelectMethod:c,setRemovingMfaMethod:d})=>{let h=t.reduce((e,t)=>({...e,[t]:!0}),{}),u=r.reduce((e,t)=>({...e,[t]:!0}),{});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e?l:void 0,onClose:s},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ek.Z,{})})}),(0,m.jsx)(iM,{children:\"Choose a verification method\"}),t.length>0?(0,m.jsx)(iO,{children:\"To add or delete verification methods, verification is required.\"}):(0,m.jsx)(iO,{children:\"How would you like to verify your identity? You can change this later.\"}),o&&(0,m.jsx)(iK,{style:{marginTop:\"1.25rem\"},children:o.message}),(0,m.jsxs)(iD,{children:[(u.totp||h.totp)&&(0,m.jsxs)(iZ,{children:[(0,m.jsx)(i_,{style:{justifyContent:\"center\"},disabled:h.totp||i,onClick:()=>c(\"totp\"),children:i?(0,m.jsx)(nX,{style:{height:24,width:24,borderWidth:2},color:\"var(--privy-color-foreground-3)\"}):(0,m.jsxs)(iB,{children:[(0,m.jsxs)(i$,{children:[(0,m.jsx)(eE.Z,{}),\"Authenticator App\"]}),h.totp?(0,m.jsxs)(iH,{children:[(0,m.jsx)(M.Z,{}),\"Added\"]}):(0,m.jsx)(iH,{children:\"Recommended\"})]})}),h.totp&&(0,m.jsx)(iz,{onClick:()=>d(\"totp\"),children:(0,m.jsx)(el.Z,{})})]},\"totp\"),(u.sms||h.sms)&&(0,m.jsxs)(iZ,{children:[(0,m.jsx)(i_,{disabled:h.sms||n,onClick:()=>c(\"sms\"),children:(0,m.jsxs)(iB,{children:[(0,m.jsxs)(i$,{children:[(0,m.jsx)(I.Z,{}),\"SMS\"]}),h.sms&&(0,m.jsxs)(iH,{children:[(0,m.jsx)(M.Z,{}),\"Added\"]}),n&&(0,m.jsx)(iH,{children:\"Disabled\"})]})}),h.sms&&(0,m.jsx)(iz,{onClick:()=>d(\"sms\"),children:(0,m.jsx)(el.Z,{})})]},\"sms\"),(u.passkey||h.passkey)&&(0,m.jsxs)(iZ,{children:[(0,m.jsx)(i_,{style:{justifyContent:\"center\"},onClick:()=>c(\"passkey\"),disabled:h.passkey||a,children:a?(0,m.jsx)(nX,{style:{height:24,width:24,borderWidth:2},color:\"var(--privy-color-foreground-3)\"}):(0,m.jsxs)(iB,{children:[(0,m.jsxs)(i$,{children:[(0,m.jsx)(eA.Z,{}),\"Passkey\"]}),h.passkey?(0,m.jsxs)(iH,{children:[(0,m.jsx)(M.Z,{}),\"Added\"]}):(0,m.jsx)(iH,{isAccent:!0,children:(0,m.jsx)(ep.Z,{})})]})}),h.passkey&&(0,m.jsx)(iz,{onClick:()=>d(\"passkey\"),children:(0,m.jsx)(el.Z,{})})]},\"passkey\")]}),(0,m.jsx)(iN,{})]})},dd=({onComplete:e,onClose:t,onReset:r})=>{let{user:n}=n$(),{data:i}=ny(),{initLinkWithPasskey:a,linkWithPasskey:s}=nZ(),{initEnrollmentWithPasskey:l,submitEnrollmentWithPasskey:c}=da(),[d,h]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),[g,f]=(0,o.useState)(!1),[y,w]=(0,o.useState)(null),x=(0,o.useMemo)(()=>n?.linkedAccounts.filter(e=>\"passkey\"===e.type)??[],[n]),v=()=>{i?.mfaEnrollmentFlow?.onSuccess(),e()},C=async e=>{h(!0);try{await l(),await c({credentialIds:e}),f(!0)}catch(e){w(e)}finally{h(!1)}},b=async()=>{p(!0),w(null);try{await a();let e=(await s())?.linkedAccounts.filter(e=>\"passkey\"===e.type).map(e=>e.credentialId)??[];await C(e)}catch(e){w(e)}finally{p(!1)}};return 0===x.length||u?(0,m.jsx)(dh,{onReset:r,onClose:t,onClick:b,isCreating:u}):g?(0,m.jsx)(dp,{onClick:v,onClose:v}):y?(0,m.jsx)(si,{error:y,backFn:()=>w(null),onClick:()=>w(null)}):(0,m.jsx)(du,{passkeys:x,isSubmitting:d,isCreating:u,onReset:r,onClose:t,onSubmitEnrollment:()=>C(x.map(e=>e.credentialId)),onAddPasskey:b})},dh=({onReset:e,onClose:t,onClick:r,isCreating:n})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e,onClose:t},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsxs)(lg,{children:[(0,m.jsx)(lh,{}),(0,m.jsx)(lu,{})]})}),(0,m.jsx)(iM,{children:\"Set up passkey verification\"}),(0,m.jsxs)(iW,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eT.Z,{})}),\"Verify with Touch ID, Face ID, PIN, or hardware key\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(es.Z,{})}),\"Takes seconds to set up and use\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eS.Z,{})}),\"Use your passkey to verify transactions and login to your account\"]})]}),(0,m.jsx)(n3,{style:{marginTop:\"2.25rem\"},onClick:r,loading:n,children:\"Add a new passkey\"}),(0,m.jsx)(iN,{})]}),du=({onReset:e,onClose:t,onAddPasskey:r,onSubmitEnrollment:n,passkeys:i,isSubmitting:a,isCreating:s})=>{let[l,c]=(0,o.useState)(!1),d=l?i.length:i.length>3?2:3;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:l?()=>c(!1):e,onClose:t},\"header\"),!l&&(0,m.jsx)(iR,{children:(0,m.jsxs)(lg,{children:[(0,m.jsx)(lh,{}),(0,m.jsx)(lu,{})]})}),(0,m.jsx)(iM,{children:\"Enable your passkeys for verification\"}),(0,m.jsxs)(iW,{children:[i.slice(0,d).map(e=>(0,m.jsxs)(dm,{children:[(0,m.jsx)(dg,{children:dy(e)}),(0,m.jsxs)(df,{children:[\"Last used: \",e.latestVerifiedAt?.toLocaleString()]})]},e.credentialId)),!l&&i.length>3&&(0,m.jsx)(dw,{onClick:()=>c(!0),children:\"View All\"})]}),(0,m.jsx)(n3,{style:{marginTop:\"1.5rem\"},onClick:n,loading:a,children:\"Enable passkeys\"}),i.length<5&&(0,m.jsx)(dw,{style:{marginTop:\"0.5rem\"},onClick:r,disabled:s,children:s?(0,m.jsx)(nX,{style:{height:\"1rem\",width:\"1rem\",borderWidth:2}}):\"Add new passkey\"}),(0,m.jsx)(iN,{})]})},dp=({onClick:e,onClose:t})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:t},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(iM,{children:\"Passkey verification added\"}),(0,m.jsx)(iO,{children:\"From now on, you'll use the passkey whenever you use your Privy wallet.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:e,children:\"Done\"})}),(0,m.jsx)(iN,{})]}),dm=A.ZP.div`\n  && {\n    padding: 0.75rem 1rem;\n    text-align: left;\n    border-radius: 0.5rem;\n    border: 1px solid var(--privy-color-foreground-4);\n    width: 100%;\n  }\n`,dg=A.ZP.div`\n  font-size: 0.875rem;\n  line-height: 1.375rem;\n  font-weight: 500;\n\n  color: var(--privy-color-foreground-1);\n`,df=A.ZP.div`\n  font-size: 0.75rem;\n  font-weight: 400;\n  line-height: 1.125rem;\n\n  color: var(--privy-color-foreground-2);\n`,dy=e=>e.authenticatorName?e.createdWithBrowser?`${e.authenticatorName} on ${e.createdWithBrowser}`:e.authenticatorName:e.createdWithBrowser?e.createdWithOs?`${e.createdWithBrowser} on ${e.createdWithOs}`:`${e.createdWithBrowser}`:\"Unknown device\",dw=A.ZP.button`\n  && {\n    width: 100%;\n    font-size: 0.875rem;\n    line-height: 1rem;\n\n    /* Tablet and Up */\n    @media (min-width: 440px) {\n      font-size: 14px;\n    }\n\n    display: flex;\n    gap: 12px;\n    justify-content: center;\n\n    padding: 0.75rem 1rem;\n    background-color: var(--privy-color-background);\n    transition: background-color 200ms ease;\n    color: var(--privy-color-accent);\n\n    :focus {\n      outline: none;\n      box-shadow: none;\n    }\n  }\n`,dx=Array(6).fill(\"\");function dv(e){return/^[0-9]{1}$/.test(e)}function dC(e){return 6===e.length&&e.every(dv)}var db=({onChange:e,disabled:t,errorReasonOverride:r,success:n})=>{let[i,a]=(0,o.useState)(dx),[l,c]=(0,o.useState)(null),[d,h]=(0,o.useState)(null),u=async t=>{t.preventDefault();let r=t.currentTarget.value.replace(/\\s+/g,\"\");if(\"\"===r)return;let n=i.reduce((e,t)=>e+Number(dv(t)),0),o=r.split(\"\"),s=!o.every(dv),l=o.length+n>6;if(s){c(\"Passcode can only be numbers\"),h(1);return}if(l){c(\"Passcode must be exactly 6 numbers\"),h(1);return}c(null),h(null);let d=Number(t.currentTarget.name?.charAt(4)),u=[...r||[\"\"]].slice(0,6-d),p=[...i.slice(0,d),...u,...i.slice(d+u.length)];a(p);let m=Math.min(Math.max(d+u.length,0),5);if(document.querySelector(`input[name=pin-${m}]`)?.focus(),dC(p))try{await e(p.join(\"\")),document.querySelector(`input[name=pin-${m}]`)?.blur()}catch(e){h(1),c(e.message)}else try{await e(null)}catch(e){h(1),c(e.message)}},p=t=>{1===d&&(c(null),h(null));let r=[...i.slice(0,t),\"\",...i.slice(t+1)];a(r),t>0&&document.querySelector(`input[name=pin-${t-1}]`)?.focus(),dC(r)?e(r.join(\"\")):e(null)},g=n?\"success\":r||l?\"fail\":\"\";return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(d_,{children:[(0,m.jsx)(\"div\",{children:i.map((e,r)=>(0,m.jsx)(\"input\",{name:`pin-${r}`,type:\"text\",value:i[r],onChange:u,onKeyUp:e=>{\"Backspace\"===e.key&&p(r)},inputMode:\"numeric\",autoFocus:0===r,pattern:\"[0-9]\",className:g,autoComplete:s.tq?\"one-time-code\":\"off\",disabled:t},r))}),(0,m.jsx)(\"div\",{children:(0,m.jsx)(dj,{fail:!!r||!!l,children:r||l})})]})})},d_=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  gap: 8px;\n\n  @media (max-width: 440px) {\n    margin-top: 8px;\n    margin-bottom: 8px;\n  }\n\n  > div:nth-child(1) {\n    display: flex;\n    justify-content: center;\n    gap: 0.5rem;\n    width: 100%;\n    border-radius: var(--privy-border-radius-md);\n\n    > input {\n      border: 1px solid var(--privy-color-foreground-4);\n      background: var(--privy-color-background);\n      border-radius: var(--privy-border-radius-md);\n      padding: 8px 10px;\n      height: 58px;\n      width: 46px;\n      text-align: center;\n      font-size: 18px;\n    }\n\n    > input:disabled {\n      /* Use light-theme-bg-2 instead of disabled-bg for consistency with\n      the callout bubble */\n      background: var(--privy-color-background-2);\n    }\n\n    > input:focus {\n      border: 1px solid var(--privy-color-accent);\n    }\n\n    > input:invalid {\n      border: 1px solid var(--privy-color-error);\n    }\n\n    > input.success {\n      border: 1px solid var(--privy-color-success);\n    }\n\n    > input.fail {\n      border: 1px solid var(--privy-color-error);\n      animation: shake 180ms;\n      animation-iteration-count: 2;\n    }\n  }\n\n  @keyframes shake {\n    0% {\n      transform: translate(1px, 0px);\n    }\n    33% {\n      transform: translate(-1px, 0px);\n    }\n    67% {\n      transform: translate(-1px, 0px);\n    }\n    100% {\n      transform: translate(1px, 0px);\n    }\n  }\n`,dj=A.ZP.div`\n  line-height: 20px;\n  font-size: 13px;\n  display: flex;\n  justify-content: flex-start;\n  width: 100%;\n\n  color: ${e=>e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n`,dk=({onComplete:e,onReset:t,onClose:r})=>{let[n,i]=(0,o.useState)(\"\"),[a,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(null),[d,h]=(0,o.useState)(\"enroll\"),{initEnrollmentWithSms:u,submitEnrollmentWithSms:p}=da(),{app:g,data:f}=ny();function y(){f?.mfaEnrollmentFlow?.onSuccess(),e()}async function w({qualifiedPhoneNumber:e}){try{await u({phoneNumber:e}),i(e),h(\"verify\")}catch(e){c(e)}}async function x(e){try{if(!e)return;await p({phoneNumber:n,mfaCode:e}),s(!0)}catch(e){throw ot(e)?Error(\"You have exceeded the maximum number of attempts. Please close this window and try again in 10 seconds.\"):oe(e)?Error(\"The code you entered is not valid\"):a9(e)?Error(\"You have exceeded the time limit for code entry. Please try again in 30 seconds.\"):or(e)?Error(\"Verification canceled\"):Error(\"Unknown error\")}}return l?(0,m.jsx)(si,{error:l,backFn:()=>c(null),onClick:()=>c(null)}):\"enroll\"===d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:t,onClose:r},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Set up SMS verification\"}),(0,m.jsx)(iO,{children:\"We'll text a verification code to this mobile device whenever you use your Privy wallet.\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(cq,{onSubmit:w,hideRecent:!0}),(0,m.jsxs)(iq,{children:[\"By providing your mobile number, you agree to receive text messages from \",g?.name,\". Some carrier charges may apply\"]})]}),(0,m.jsx)(iN,{})]}):a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:y},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(iM,{children:\"SMS verification added\"}),(0,m.jsx)(iO,{children:\"From now on, you'll enter the verification code sent to your mobile device whenever you use your Privy wallet.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:y,children:\"Done\"})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:function(){\"verify\"===d?h(\"enroll\"):t()},onClose:r},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter enrollment code\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(db,{onChange:x}),(0,m.jsxs)(iO,{children:[\"To continue, enter the 6-digit code sent to \",(0,m.jsx)(\"strong\",{children:cZ(n)})]})]}),(0,m.jsx)(iN,{})]})},dE=({size:e,authUrl:t})=>(0,m.jsx)(sb,{url:t,squareLogoElement:ek.Z,size:e,fgColor:\"#1F1F1F\"}),dA=({onComplete:e,onClose:t,onReset:r,totpInfo:n})=>{let[i,a]=(0,o.useState)(\"enroll\"),[s,l]=(0,o.useState)(!1),{submitEnrollmentWithTotp:c}=da(),{data:d}=ny();function h(){d?.mfaEnrollmentFlow?.onSuccess(),e()}async function u(e){try{if(!e)return;await c({mfaCode:e}),l(!0)}catch(e){throw ot(e)?Error(\"You have exceeded the maximum number of attempts. Please close this window and try again in 10 seconds.\"):oe(e)?Error(\"The code you entered is not valid\"):a9(e)?Error(\"You have exceeded the time limit for code entry. Please try again in 30 seconds.\"):or(e)?Error(\"Verification canceled\"):Error(\"Unknown error\")}}return\"enroll\"===i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:r,onClose:t},\"header\"),(0,m.jsx)(iM,{children:\"Scan QR code\"}),(0,m.jsx)(iO,{children:\"Open your authenticator app and scan the QR code to continue.\"}),(0,m.jsx)(i5,{children:(0,m.jsx)(dE,{authUrl:n.authUrl,size:200})}),(0,m.jsxs)(iU,{children:[(0,m.jsx)(i3,{children:(0,m.jsx)(sc,{itemName:\"secret\",text:n.secret})}),(0,m.jsx)(n3,{onClick:function(){a(\"verify\")},children:\"Continue\"})]}),(0,m.jsx)(iN,{})]}):s?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:h},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(iM,{children:\"Authenticator app verification added\"}),(0,m.jsx)(iO,{children:\"From now on, you'll enter the verification code generated by your authenticator app whenever you use your Privy wallet.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:h,children:\"Done\"})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:function(){\"verify\"===i?a(\"enroll\"):r()},onClose:t},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eC.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter enrollment code\"}),(0,m.jsx)(iI,{children:(0,m.jsx)(db,{onChange:u})}),(0,m.jsxs)(iO,{children:[\"To continue, enter the 6-digit code generated from your \",(0,m.jsx)(\"strong\",{children:\"authenticator app\"})]}),(0,m.jsx)(iN,{})]})},dS=({label:e,children:t,valueStyles:r})=>(0,m.jsxs)(dT,{children:[(0,m.jsx)(\"div\",{children:e}),(0,m.jsx)(dP,{style:{...r},children:t})]}),dT=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  width: 100%;\n\n  > :first-child {\n    color: var(--privy-color-foreground-3);\n    text-align: left;\n  }\n\n  > :last-child {\n    color: var(--privy-color-foreground-2);\n    text-align: right;\n  }\n`,dP=A.ZP.div`\n  font-size: 14px;\n  line-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: var(--privy-border-radius-full);\n  background-color: var(--privy-color-background-2);\n  padding: 4px 8px;\n`,dN=({weiQuantities:e,tokenPrice:t,tokenSymbol:r})=>{let n=sQ(e),i=t?sK(n,t):void 0,a=sY(n,r);return(0,m.jsx)(dM,{children:i||a})},dR=({weiQuantities:e,tokenPrice:t,tokenSymbol:r})=>{let n=sQ(e),i=t?sK(n,t):void 0,a=sY(n,r);return(0,m.jsx)(dM,{children:i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(dO,{children:\"USD\"}),\"<$0.01\"===i?(0,m.jsxs)(dW,{children:[(0,m.jsx)(dI,{children:\"<\"}),\"$0.01\"]}):i]}):a})},dM=A.ZP.span`\n  font-size: 14px;\n  line-height: 140%;\n  display: flex;\n  gap: 4px;\n  align-items: center;\n`,dO=A.ZP.span`\n  font-size: 12px;\n  line-height: 12px;\n  color: var(--privy-color-foreground-3);\n`,dI=A.ZP.span`\n  font-size: 10px;\n`,dW=A.ZP.span`\n  display: flex;\n  align-items: center;\n`,dL=({gas:e,tokenPrice:t,tokenSymbol:r})=>(0,m.jsxs)(i7,{style:{paddingBottom:\"12px\"},children:[(0,m.jsxs)(dU,{children:[(0,m.jsx)(dZ,{children:\"Est. Fees\"}),(0,m.jsx)(\"div\",{children:(0,m.jsx)(dR,{weiQuantities:[e],tokenPrice:t,tokenSymbol:r})})]}),t&&(0,m.jsx)(dD,{children:`${sY(e,r)}`})]}),dF=({transactionData:e,gas:t,tokenPrice:r,tokenSymbol:n})=>{let i=(0,en.uq)(e.value||0).add((0,en.uq)(t)).toHexString();return(0,m.jsxs)(i7,{children:[(0,m.jsxs)(dU,{children:[(0,m.jsx)(dZ,{children:\"Total (including fees)\"}),(0,m.jsx)(\"div\",{children:(0,m.jsx)(dR,{weiQuantities:[e.value||0,t],tokenPrice:r,tokenSymbol:n})})]}),r&&(0,m.jsx)(dD,{children:sY(i,n)})]})},dU=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  align-items: center;\n  padding-top: 4px;\n`,dD=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  height: 12px;\n\n  font-size: 12px;\n  line-height: 12px;\n  color: var(--privy-color-foreground-3);\n  font-weight: 400;\n`,dZ=A.ZP.div`\n  font-size: 14px;\n  line-height: 22.4px;\n  font-weight: 400;\n`,dz=(0,o.createContext)(void 0),d$=(0,o.createContext)(void 0),dH=({defaultValue:e,children:t})=>{let[r,n]=(0,o.useState)(e||null);return(0,m.jsx)(dz.Provider,{value:{activePanel:r,togglePanel:e=>{n(r===e?null:e)}},children:(0,m.jsx)(dK,{children:t})})},dB=({value:e,children:t})=>{let{activePanel:r,togglePanel:n}=(0,o.useContext)(dz),i=r===e;return(0,m.jsx)(d$.Provider,{value:{onToggle:()=>n(e),value:e},children:(0,m.jsx)(dJ,{isActive:i,\"data-open\":i,children:t})})},dq=({children:e})=>{let{activePanel:t}=(0,o.useContext)(dz),{onToggle:r,value:n}=(0,o.useContext)(d$),i=t===n;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(dY,{onClick:r,\"data-open\":i,children:[(0,m.jsx)(dX,{children:e}),(0,m.jsx)(d2,{isactive:i,children:(0,m.jsx)(eP.Z,{height:\"16px\",width:\"16px\",strokeWidth:\"2\"})})]}),(0,m.jsx)(dQ,{})]})},dV=({children:e})=>{let{activePanel:t}=(0,o.useContext)(dz),{value:r}=(0,o.useContext)(d$);return(0,m.jsx)(d0,{\"data-open\":t===r,children:(0,m.jsx)(d1,{children:e})})},dG=({children:e})=>{let{activePanel:t}=(0,o.useContext)(dz),{value:r}=(0,o.useContext)(d$);return(0,m.jsx)(d1,{children:\"function\"==typeof e?e({isActive:t===r}):e})},dK=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  gap: 8px;\n`,dY=A.ZP.div`\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n  cursor: pointer;\n  padding-bottom: 8px;\n`,dQ=A.ZP.div`\n  width: 100%;\n\n  && {\n    border-top: 1px solid;\n    border-color: var(--privy-color-foreground-4);\n  }\n  padding-bottom: 12px;\n`,dX=A.ZP.div`\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 19.6px;\n  width: 100%;\n  padding-right: 8px;\n`,dJ=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  overflow: hidden;\n  padding: 12px;\n\n  && {\n    border: 1px solid;\n    border-color: var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-md);\n  }\n`,d0=A.ZP.div`\n  position: relative;\n  overflow: hidden;\n  transition: max-height 25ms ease-out;\n\n  &[data-open='true'] {\n    max-height: 700px;\n  }\n\n  &[data-open='false'] {\n    max-height: 0;\n  }\n`,d1=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  flex: 1 1 auto;\n  min-height: 1px;\n`,d2=A.ZP.div`\n  transform: ${e=>e.isactive?\"rotate(180deg)\":\"rotate(0deg)\"};\n`,d3=({walletAddress:e,chainId:t=t0})=>(0,m.jsx)(d4,{href:sX(t,e),target:\"_blank\",children:tm(e)}),d4=A.ZP.a`\n  &:hover {\n    text-decoration: underline;\n  }\n`,d5=({from:e,to:t,txn:r,transactionInfo:n,tokenPrice:i,gas:a,tokenSymbol:o})=>{let s=r?.value||0,l=nh();return(0,m.jsx)(dH,{...l.render.standalone?{defaultValue:\"details\"}:{},children:(0,m.jsxs)(dB,{value:\"details\",children:[(0,m.jsx)(dq,{children:(0,m.jsxs)(d6,{children:[(0,m.jsx)(\"div\",{children:n?.title||n?.actionDescription||\"Details\"}),(0,m.jsx)(d7,{children:(0,m.jsx)(dN,{weiQuantities:[s],tokenPrice:i,tokenSymbol:o})})]})}),(0,m.jsxs)(dV,{children:[(0,m.jsx)(dS,{label:\"From\",children:(0,m.jsx)(d3,{walletAddress:e,chainId:r.chainId||t0})}),(0,m.jsx)(dS,{label:\"To\",children:(0,m.jsx)(d3,{walletAddress:t,chainId:r.chainId||t0})}),n&&n.action&&(0,m.jsx)(dS,{label:\"Action\",children:n.action}),a&&(0,m.jsx)(dL,{transactionData:r,gas:a,tokenPrice:i,tokenSymbol:o})]}),(0,m.jsx)(dG,{children:({isActive:e})=>(0,m.jsx)(dF,{transactionData:r,displayFee:e,gas:a||\"0x0\",tokenPrice:i,tokenSymbol:o})})]})})},d6=A.ZP.div`\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n`,d7=A.ZP.div`\n  flex-shrink: 0;\n  padding-left: 8px;\n`,d8=A.ZP.img`\n  && {\n    height: ${e=>\"sm\"===e.size?\"65px\":\"140px\"};\n    width: ${e=>\"sm\"===e.size?\"65px\":\"140px\"};\n    border-radius: 16px;\n    margin-bottom: 12px;\n  }\n`,d9=({pendingTransaction:e})=>{let{getAccessToken:t}=n$(),{wallets:r}=sH(),{walletProxy:n,rpcConfig:i,chains:a,appId:s,nativeTokenSymbolForChainId:d}=nZ(),[h,u]=(0,o.useState)(null),[p,g]=(0,o.useState)(e),{tokenPrice:f}=sz(p),y=d(e.chainId)||\"ETH\",w=(0,o.useMemo)(()=>r.find(e=>\"privy\"===e.walletClientType),[r]);return(0,o.useEffect)(()=>{(async function(){if(!await t()||!n||!w)return p;let e=tk(p.chainId,a,i,{appId:s}),r=await (0,l.vT)(w.address,p,e),{totalGasEstimate:o}=await (0,c.gM)(r,e);return u(o.toHexString()),r})().then(g).catch(console.error)},[n]),w?(0,m.jsx)(he,{children:(0,m.jsx)(d5,{from:w.address,to:p.to,txn:p,gas:h??void 0,tokenPrice:f,tokenSymbol:y})}):null},he=A.ZP.div`\n  width: 100%;\n  padding: 1rem 0;\n`,ht=({hasBlockingError:e,error:t,onClose:r,onBack:n,handleSubmit:i,account:a,submitSuccess:o})=>{let{pendingTransaction:s}=nZ();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:r},\"header\"),(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:o,fail:!!t}),t?(0,m.jsx)(U.Z,{style:{width:\"38px\",height:\"38px\"}}):(0,m.jsx)(lh,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsx)(iM,{style:{marginTop:\"1rem\"},children:\"Verifying with passkey\"}),(0,m.jsxs)(iW,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eT.Z,{})}),\"Approve this action using your touch, face, PIN, or hardware key.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eN.Z,{})}),\"You last added a passkey on\",\" \",a?.firstVerifiedAt?.toLocaleDateString(void 0,{month:\"short\",day:\"numeric\",year:\"numeric\"}),\".\"]})]}),s&&(0,m.jsx)(iI,{children:(0,m.jsx)(d9,{pendingTransaction:s})}),t&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(iK,{style:{marginTop:\"1.25rem\"},children:t.message}),(0,m.jsx)(n3,{disabled:e,onClick:i,style:{marginTop:\"1.25rem\"},children:\"Try again\"})]}),n&&(0,m.jsx)(iV,{style:{marginTop:\"1rem\"},onClick:n,children:\"Choose another method\"}),(0,m.jsx)(iN,{})]})},hr=({open:e,onClose:t})=>{let{user:r}=n$(),[n,i]=(0,o.useState)(null),{init:a,cancel:s,submit:l}=di(),[c,d]=(0,o.useState)(!1),[h,u]=(0,o.useState)(!1),[p,g]=(0,o.useState)(null),[f,y]=(0,o.useState)(null);(0,o.useEffect)(()=>{e&&r?.mfaMethods&&r.mfaMethods.length>0?v(r.mfaMethods[0]):i(null)},[r?.mfaMethods,e]);let w=e=>a7(e)&&\"mfa_verification_max_attempts_reached\"===e.type?(d(!0),Error(\"You have exceeded the maximum number of attempts. Please close this window and try again in 10 seconds.\")):oe(e)?(d(!1),Error(\"The code you entered is not valid\")):a9(e)?(d(!0),Error(\"You have exceeded the time limit for code entry. Please try again in 30 seconds.\")):(console.error(e),d(!1),Error(\"Something went wrong.\"));async function x(e){y(null);try{if(!e||!n)return;await l(n,e),u(!0),d(!1),t()}catch(e){throw w(e)}}async function v(e){if(\"passkey\"===e){try{i(e);let r=await a(e);if(!r)throw Error(\"something went wrong\");g(r),await l(e,r),u(!0),d(!1),t()}catch(e){y(w(e))}return}try{i(e),await a(e)}catch(e){console.error(e)}}let C=()=>{i(null),y(null),s(),t()};if(!e||!r)return null;if(\"passkey\"===n){let e=r.linkedAccounts.filter(e=>\"passkey\"===e.type&&e.enrolledInMfa).sort((e,t)=>t.firstVerifiedAt.valueOf()-e.firstVerifiedAt.valueOf())[0];return(0,m.jsx)(ht,{account:e,selectedMethod:n,submitSuccess:h,hasBlockingError:c,error:f,onClose:C,onBack:()=>{i(null),y(null)},handleSubmit:()=>x(p).catch(y)})}return n?(0,m.jsx)(hn,{submitSuccess:h,hasBlockingError:c,handleSubmitCode:x,selectedMethod:n,onClose:C,onBack:r.mfaMethods.length>1?()=>i(null):void 0}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:C},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eT.Z,{})})}),(0,m.jsx)(iM,{children:\"Verify your identity\"}),(0,m.jsx)(iO,{children:\"Choose a verification method\"}),(0,m.jsxs)(iD,{children:[r.mfaMethods.includes(\"totp\")&&(0,m.jsxs)(i_,{onClick:()=>v(\"totp\"),children:[(0,m.jsx)(eE.Z,{}),\"Authenticator App\"]},\"totp\"),r.mfaMethods.includes(\"sms\")&&(0,m.jsxs)(i_,{onClick:()=>v(\"sms\"),children:[(0,m.jsx)(I.Z,{}),\"SMS\"]},\"sms\"),r.mfaMethods.includes(\"passkey\")&&(0,m.jsxs)(i_,{onClick:()=>v(\"passkey\"),children:[(0,m.jsx)(eA.Z,{}),\"Passkey\"]},\"passkey\")]}),(0,m.jsx)(iN,{})]})},hn=({selectedMethod:e,submitSuccess:t,hasBlockingError:r,onClose:n,onBack:i,handleSubmitCode:a})=>{let{app:o}=ny(),{pendingTransaction:s}=nZ();switch(e){case\"sms\":return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter verification code\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(db,{success:t,disabled:r,onChange:a}),(0,m.jsxs)(iO,{children:[\"To continue, please enter the 6-digit code sent to your \",(0,m.jsx)(\"strong\",{children:\"mobile device\"})]}),s&&(0,m.jsx)(d9,{pendingTransaction:s})]}),i&&(0,m.jsx)(iV,{theme:o?.appearance.palette.colorScheme,onClick:i,children:\"Choose another method\"}),(0,m.jsx)(n8,{onClick:n,children:\"Not now\"}),(0,m.jsx)(iN,{})]});case\"totp\":return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eC.Z,{})})}),(0,m.jsx)(iM,{children:\"Enter verification code\"}),(0,m.jsxs)(iI,{children:[(0,m.jsx)(db,{success:t,disabled:r,onChange:a}),(0,m.jsxs)(iO,{children:[\"To continue, please enter the 6-digit code generated from your\",\" \",(0,m.jsx)(\"strong\",{children:\"authenticator app\"})]}),s&&(0,m.jsx)(d9,{pendingTransaction:s})]}),i&&(0,m.jsx)(iV,{theme:o?.appearance.palette.colorScheme,onClick:i,children:\"Choose another method\"}),(0,m.jsx)(n8,{onClick:n,children:\"Not now\"}),(0,m.jsx)(iN,{})]});default:return null}},hi=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,ha=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n`;A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 180px;\n  height: 90px;\n  border-radius: 50%;\n  svg + svg {\n    margin-left: 12px;\n  }\n  > svg {\n    z-index: 2;\n    color: var(--privy-color-accent) !important;\n    stroke: var(--privy-color-accent) !important;\n    fill: var(--privy-color-accent) !important;\n  }\n`;var ho=(e,t)=>{let r=encodeURIComponent(new URL(window.location.href).href.replace(/\\/$/g,\"\")+`?privy_token=${e}&privy_connector=injected&privy_wallet_client=phantom`);if(!tc()&&s.tq)return`${t?\"phantom://\":\"https://phantom.app/ul/\"}browse/${r}?ref=${r}`},hs=(0,A.ZP)(i3)`\n  margin: 16px auto;\n`,hl=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin: 20px 0;\n  gap: 4px;\n\n  & h3 {\n    font-size: 18px;\n    font-style: normal;\n    font-weight: 600;\n    line-height: 24px;\n  }\n\n  & p {\n    max-width: 300px;\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 400;\n    line-height: 20px;\n  }\n`,hc=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n`,hd=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: var(--privy-color-error);\n  text-align: left;\n  margin-top: 0.5rem;\n`,hh=(0,A.ZP)(n3)`\n  ${e=>e.hideAnimations&&(0,A.iv)`\n      && {\n        // Remove animations because the recoverWallet task on the iframe partially\n        // blocks the renderer, so the animation stutters and doesn't look good\n        transition: none;\n      }\n    `}\n`,hu=e=>(0,m.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 21 20\",...e,children:[(0,m.jsx)(\"path\",{fill:\"url(#icloud-gradient)\",d:\"M12.34 7.315a4.26 4.26 0 0 0-3.707 2.18 2.336 2.336 0 0 0-1.02-.236 2.336 2.336 0 0 0-2.3 1.963 3.217 3.217 0 0 0 1.244 6.181c.135-.001.27-.01.404-.029h8.943c.047.004.094.006.141.007.045-.001.09-.004.135-.007h.214v-.016a2.99 2.99 0 0 0 1.887-.988c.487-.55.757-1.261.757-1.998v-.006a3.017 3.017 0 0 0-.69-1.915 2.992 2.992 0 0 0-1.748-1.034 4.26 4.26 0 0 0-4.26-4.102Z\"}),(0,m.jsx)(\"defs\",{children:(0,m.jsxs)(\"linearGradient\",{id:\"icloud-gradient\",x1:19.086,x2:3.333,y1:14.38,y2:14.163,gradientUnits:\"userSpaceOnUse\",children:[(0,m.jsx)(\"stop\",{stopColor:\"#3E82F4\"}),(0,m.jsx)(\"stop\",{offset:1,stopColor:\"#93DCF7\"})]})})]}),hp=({style:e,...t})=>(0,m.jsxs)(\"svg\",{width:\"16\",height:\"14\",style:e,viewBox:\"0 0 16 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",...t,children:[(0,m.jsxs)(\"g\",{clipPath:\"url(#clip0_2115_829)\",children:[(0,m.jsx)(\"path\",{d:\"M2.34709 12.9404L2.3471 12.9404L2.34565 12.938L1.64031 11.7448L1.64004 11.7444L0.651257 10.0677C0.640723 10.0496 0.630746 10.0314 0.621325 10.0129H4.16461L2.39424 13.0139C2.3775 12.9901 2.36178 12.9656 2.34709 12.9404Z\",fill:\"#0066DA\",stroke:\"#6366F1\"}),(0,m.jsx)(\"path\",{d:\"M8 4.48713L5.47995 0.215332C5.23253 0.358922 5.02176 0.556358 4.87514 0.80764L0.219931 8.70508C0.076007 8.95094 0.000191627 9.22937 0 9.51277H5.04009L8 4.48713Z\",fill:\"#00AC47\"}),(0,m.jsx)(\"path\",{d:\"M13.48 13.7847C13.7274 13.6411 13.9382 13.4437 14.0848 13.1924L14.3781 12.6988L15.7801 10.3206C15.9267 10.0693 16.0001 9.79114 16.0001 9.51294H10.9596L12.0321 11.577L13.48 13.7847Z\",fill:\"#EA4335\"}),(0,m.jsx)(\"path\",{d:\"M8.00003 4.48718L10.5201 0.215385C10.2726 0.0717949 9.98857 0 9.69533 0H6.30472C6.01148 0 5.7274 0.0807692 5.47998 0.215385L8.00003 4.48718Z\",fill:\"#00832D\"}),(0,m.jsx)(\"path\",{d:\"M10.9599 9.51294H5.04007L2.52002 13.7847C2.76744 13.9283 3.05152 14.0001 3.34476 14.0001H12.6552C12.9484 14.0001 13.2325 13.9194 13.4799 13.7847L10.9599 9.51294Z\",fill:\"#2684FC\"}),(0,m.jsx)(\"path\",{d:\"M13.4525 4.75636L11.1249 0.80764C10.9782 0.556358 10.7675 0.358922 10.52 0.215332L8 4.48713L10.9599 9.51277H15.9908C15.9908 9.23456 15.9175 8.95636 15.7709 8.70508L13.4525 4.75636Z\",fill:\"#FFBA00\"})]}),(0,m.jsx)(\"defs\",{children:(0,m.jsx)(\"clipPath\",{id:\"clip0_2115_829\",children:(0,m.jsx)(\"rect\",{width:\"16\",height:\"14\",fill:\"white\"})})})]}),hm=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  padding-top: 24px;\n  padding-bottom: 24px;\n`,hg=A.ZP.div`\n  padding-bottom: 24px;\n`,hf={\"google-drive\":{name:\"Google Drive\",component:hp},icloud:{name:\"iCloud\",component:hu}},hy=A.ZP.div`\n  width: 24px;\n  height: 24px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n`,hw={\"google-drive\":\"Google Drive\",icloud:\"iCloud\",\"user-passcode\":\"password\",privy:\"Privy\"},hx=({onClose:e})=>(0,m.jsxs)(hg,{children:[(0,m.jsx)(as,{title:\"Why do I need to secure my account?\",icon:(0,m.jsx)(S.Z,{width:48}),description:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(\"p\",{children:\"Your app uses cryptography to secure your account. App secrets are split and encrypted so only you can access them.\"}),(0,m.jsx)(\"p\",{children:\"To use this app on new devices, secure account secrets using a password, your Google or your Apple account. It’s important you don’t lose access to the method you choose.\"})]})}),(0,m.jsx)(n3,{onClick:e,children:\"Select backup method\"})]}),hv=A.ZP.div`\n  && {\n    border-width: 4px;\n  }\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 1rem;\n  aspect-ratio: 1;\n  border-style: solid;\n  border-color: ${e=>e.$color??\"var(--privy-color-accent)\"};\n  border-radius: 50%;\n`,hC=A.ZP.span`\n  color: var(--privy-color-foreground);\n  font-size: 1.125rem;\n  font-weight: 600;\n  line-height: 1.875rem; /* 166.667% */\n  text-align: center;\n`,hb=[\"FUNDING_METHOD_SELECTION_SCREEN\",\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\",\"FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN\",\"FUNDING_MANUAL_TRANSFER_SCREEN\",\"MOONPAY_PROMPT_SCREEN\",\"MOONPAY_STATUS_SCREEN\"],h_={FUNDING_METHOD_SELECTION_SCREEN:null,FUNDING_TRANSFER_FROM_WALLET_SCREEN:\"external\",FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN:\"external\",FUNDING_MANUAL_TRANSFER_SCREEN:\"manual\",MOONPAY_PROMPT_SCREEN:\"moonpay\",MOONPAY_STATUS_SCREEN:\"moonpay\"},hj={moonpay:\"MOONPAY_PROMPT_SCREEN\",\"coinbase-onramp\":\"COINBASE_ONRAMP_STATUS_SCREEN\",external:\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\"};function hk({fundingMethods:e}){if(0===e.length)throw Error(\"Wallet funding is not enabled\");return 1===e.length?hj[e[0]]:\"FUNDING_METHOD_SELECTION_SCREEN\"}var hE=({img:e,submitError:t,prepareError:r,onClose:n,action:i,amount:a,title:o,subtitle:s,total:l,to:c,network:d,hasFunds:h,fee:u,from:p,cta:g,chain:f,isSubmitting:y,isPreparing:w,isTokenPriceLoading:x,isTokenContractInfoLoading:v,symbol:C,balance:b,onClick:_,spender:j})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n}),e&&(0,m.jsx)(hP,{children:e}),(0,m.jsx)(hC,{style:{marginTop:e?\"1.5rem\":0},children:o}),(0,m.jsx)(cg,{children:s}),(0,m.jsxs)(sW,{style:{marginTop:\"2rem\"},children:[l&&(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Total\"}),(0,m.jsx)(sF,{$isLoading:w||x,children:l})]}),i&&\"transaction\"!==i&&(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Action\"}),(0,m.jsx)(sF,{children:i})]}),a?(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Amount\"}),(0,m.jsxs)(sF,{$isLoading:v,children:[hT(a),\" \",C]})]}):null,j?(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Spender\"}),(0,m.jsx)(sF,{children:(0,m.jsx)(lH,{address:j,url:f?.blockExplorers?.default?.url,showCopyIcon:!1})})]}):null,c&&(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"To\"}),(0,m.jsx)(sF,{children:(0,m.jsx)(lH,{address:c,url:f?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Network\"}),(0,m.jsx)(sF,{children:d})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Estimated fee\"}),(0,m.jsx)(sF,{$isLoading:w||x,children:u})]})]}),(0,m.jsx)(iy,{}),t?(0,m.jsx)(lz,{style:{marginTop:\"2rem\"},children:t.message}):r?(0,m.jsx)(lz,{style:{marginTop:\"2rem\"},children:hS}):null,(0,m.jsx)(hA,{$useSmallMargins:!!(r||t),address:p,balance:b,isLoading:w||x,errMsg:w||r||t||h?void 0:`Add funds on ${f?.name} to complete transaction.`}),(0,m.jsx)(n4,{style:{marginTop:\"1rem\"},loading:y,onClick:_,children:g}),(0,m.jsx)(iP,{})]}),hA=(0,A.ZP)(lq)`\n  ${e=>e.$useSmallMargins?\"margin-top: 0.5rem;\":\"margin-top: 2rem;\"}\n`,hS=\"There was an error preparing your transaction. Your transaction request will likely fail.\",hT=e=>e.toLocaleString(),hP=A.ZP.div`\n  display: flex;\n  width: 100%;\n  justify-content: center;\n  max-height: 40px;\n\n  > img {\n    object-fit: contain;\n    border-radius: var(--privy-border-radius-sm);\n  }\n`,hN=new Set([v.jK.CALL_EXCEPTION,v.jK.NONCE_EXPIRED,v.jK.REPLACEMENT_UNDERPRICED,v.jK.TRANSACTION_REPLACED]),hR=e=>{let t;return e.code&&-32e3!==e.code&&hN.has(e.code)&&(t=e.transactionHash),t},hM=e=>\"SERVER_ERROR\"===e.code?e.error?.message??e.reason??e.message??\"unknown error\":e.error?.code===\"SERVER_ERROR\"?e.error?.error?.message??e.reason??e.message??\"unknown error\":e.reason??e.message??\"unknown error\",hO=e=>({errorCode:e.code?e.code?.toString().charAt(0)+e.code?.toString().slice(1).replace(\"_\",\" \").toLowerCase():\"Something went wrong.\",transactionHash:hR(e),errorMessage:hM(e)}),hI=()=>(0,m.jsxs)(hD,{children:[(0,m.jsx)(hz,{}),(0,m.jsx)(hZ,{})]}),hW=({transactionError:e,chainId:t,onClose:r,onRetry:n})=>{let{chains:i}=nZ(),[a,s]=(0,o.useState)(!1),{errorCode:l,transactionHash:c,errorMessage:d}=hO(e),h=i.find(e=>e.id===t)?.blockExplorers?.default.url??\"https://etherscan.io\";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:r}),(0,m.jsxs)(hL,{children:[(0,m.jsx)(hI,{}),(0,m.jsx)(hF,{children:l}),(0,m.jsx)(hU,{children:\"Please try again.\"}),(0,m.jsxs)(hB,{children:[(0,m.jsx)(hH,{children:\"Error message\"}),(0,m.jsx)(hV,{clickable:!1,children:d})]}),c&&(0,m.jsxs)(hB,{children:[(0,m.jsx)(hH,{children:\"Transaction hash\"}),(0,m.jsxs)(hq,{children:[\"Copy this hash to view details about the transaction on a\",\" \",(0,m.jsx)(\"u\",{children:(0,m.jsx)(\"a\",{href:h,children:\"block explorer\"})}),\".\"]}),(0,m.jsxs)(hV,{clickable:!0,onClick:async()=>{await navigator.clipboard.writeText(c),s(!0)},children:[c,(0,m.jsx)(hY,{clicked:a})]})]}),(0,m.jsx)(h$,{onClick:()=>n({resetNonce:!!c}),children:\"Retry transaction\"})]}),(0,m.jsx)(iN,{})]})},hL=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n`,hF=A.ZP.span`\n  color: var(--privy-color-foreground);\n  text-align: center;\n  font-size: 1.125rem;\n  font-weight: 500;\n  line-height: 1.25rem; /* 111.111% */\n  text-align: center;\n  margin: 10px;\n`,hU=A.ZP.span`\n  margin-top: 4px;\n  margin-bottom: 10px;\n  color: var(--privy-color-foreground-3);\n  text-align: center;\n\n  font-size: 0.875rem;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 20px; /* 142.857% */\n  letter-spacing: -0.008px;\n`,hD=A.ZP.div`\n  position: relative;\n  width: 60px;\n  height: 60px;\n  margin: 10px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n`,hZ=(0,A.ZP)(eI.Z)`\n  position: absolute;\n  width: 35px;\n  height: 35px;\n  color: var(--privy-color-error);\n`,hz=A.ZP.div`\n  position: absolute;\n  width: 60px;\n  height: 60px;\n  border-radius: 50%;\n  background-color: var(--privy-color-error);\n  opacity: 0.1;\n`,h$=(0,A.ZP)(n3)`\n  && {\n    margin-top: 24px;\n  }\n  transition: color 350ms ease, background-color 350ms ease;\n`,hH=A.ZP.span`\n  width: 100%;\n  text-align: left;\n  font-size: 0.825rem;\n  color: var(--privy-color-foreground);\n  padding: 4px;\n`,hB=A.ZP.div`\n  width: 100%;\n  margin: 5px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n`,hq=A.ZP.text`\n  position: relative;\n  width: 100%;\n  padding: 5px;\n  font-size: 0.8rem;\n  color: var(--privy-color-foreground-3);\n  text-align: left;\n  word-wrap: break-word;\n`,hV=A.ZP.span`\n  position: relative;\n  width: 100%;\n  background-color: var(--privy-color-background-2);\n  padding: 8px 12px;\n  border-radius: 10px;\n  margin-top: 5px;\n  font-size: 14px;\n  color: var(--privy-color-foreground-3);\n  text-align: left;\n  word-wrap: break-word;\n  ${e=>e.clickable&&`cursor: pointer;\n  transition: background-color 0.3s;\n  padding-right: 45px;\n\n  &:hover {\n    background-color: var(--privy-color-foreground-4);\n  }`}\n`,hG=(0,A.ZP)(eO.Z)`\n  position: absolute;\n  top: 13px;\n  right: 13px;\n  width: 24px;\n  height: 24px;\n`,hK=(0,A.ZP)(Y.Z)`\n  position: absolute;\n  top: 13px;\n  right: 13px;\n  width: 24px;\n  height: 24px;\n`,hY=({clicked:e})=>e?(0,m.jsx)(hK,{}):(0,m.jsx)(hG,{}),hQ=(e,t)=>{if(e.gasUsed&&e.effectiveGasPrice)try{let r=ei.O$.from(e.gasUsed),n=ei.O$.from(e.effectiveGasPrice),i=r.mul(n);if(t){let e=ei.O$.from(t);i=i.add(e)}return i.toString()}catch{return}},hX=({txn:e,receipt:t,transactionInfo:r,onClose:n,tokenPrice:i,tokenSymbol:a,l1GasEstimate:o,receiptHeader:s,receiptDescription:l})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:n}),(0,m.jsx)(aa,{title:s??\"Transaction complete!\",description:l??\"You're all set.\"}),(0,m.jsx)(d5,{tokenPrice:i,from:t.from,to:t.to,gas:hQ(t,o),txn:e,transactionInfo:r,tokenSymbol:a}),(0,m.jsx)(iy,{}),(0,m.jsx)(hJ,{loading:!1,onClick:n,children:\"All Done\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}),hJ=(0,A.ZP)(n3)`\n  && {\n    margin-top: 24px;\n  }\n  transition: color 350ms ease, background-color 350ms ease;\n`,h0=(e,t)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e/Math.pow(10,t)),h1=[{inputs:[],name:\"decimals\",outputs:[{internalType:\"uint8\",name:\"\",type:\"uint8\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"}],h2=async({address:e,chain:t,amount:r,rpcConfig:n,privyAppId:i})=>{if(!r)return{value:\"\",symbol:\"\"};try{let a=(0,eW.v)({chain:t,transport:(0,eL.d)(t_(t,n,i))}),[o,s]=await Promise.all([a.readContract({abi:h1,address:e,functionName:\"symbol\"}),a.readContract({abi:h1,address:e,functionName:\"decimals\"})]);return{value:h0(parseFloat(r.toString()),s),symbol:o}}catch(e){return console.log(e),{value:r.toString(),symbol:\"\"}}},h3=e=>{let t=h5(e);if(t)return{action:\"approve\",isErc20Ish:!0,functionName:t.functionName,spender:t.args[0],amount:t.args[1]};let r=h7(e);return r?{action:\"transfer\",isErc20Ish:!0,functionName:r.functionName,amount:r.args[1]}:{action:\"transaction\",isErc20Ish:!1}},h4=[{constant:!1,inputs:[{name:\"spender\",type:\"address\"},{name:\"value\",type:\"uint256\"}],name:\"approve\",outputs:[{name:\"\",type:\"bool\"}],payable:!1,stateMutability:\"nonpayable\",type:\"function\"}],h5=e=>{try{return(0,eF.p)({abi:h4,data:e})}catch{return null}},h6=[{constant:!1,inputs:[{name:\"to\",type:\"address\"},{name:\"value\",type:\"uint256\"}],name:\"transfer\",outputs:[{name:\"\",type:\"bool\"}],payable:!1,stateMutability:\"nonpayable\",type:\"function\"}],h7=e=>{try{return(0,eF.p)({abi:h6,data:e})}catch{return null}},h8=(e,t)=>{let[r,n]=(0,o.useState)(null),{getAccessToken:i,user:a}=n$(),{walletProxy:s}=nZ(),d=rC(a),h=async()=>{if(!await i()||!s||!d)return null;let r=[],n=await (0,l.vT)(d.address,e,t).catch(t=>(r.push(t),e)),{totalGasEstimate:a,l1ExecutionFeeEstimate:o}=await (0,c.gM)(n,t).catch(e=>(r.push(e),{totalGasEstimate:null,l1ExecutionFeeEstimate:null})),{balance:h,hasSufficientFunds:u}=await sD(d.address,n,a??ei.O$.from(0),t).catch(e=>(r.push(e),{balance:null,hasSufficientFunds:!1}));return{tx:n,totalGasEstimate:a,l1ExecutionFeeEstimate:o,balance:h,hasFunds:u,errors:r}};return(0,o.useEffect)(()=>{r&&n(null),h().then(n)},[e]),r},h9=new rW(new rI(\"There was an issue preparing your transaction\",d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode)),ue=e=>{if(!(0,y.A7)(e))return e;try{return(0,eU.ZN)(e)}catch{return e}},ut=e=>JSON.stringify(e,null,2),ur=({data:e})=>{let t=e=>\"object\"==typeof e&&null!==e?(0,m.jsx)(ua,{children:Object.entries(e).map(([e,r])=>(0,m.jsxs)(\"li\",{children:[(0,m.jsxs)(\"strong\",{children:[e,\":\"]}),\" \",t(r)]},e))}):(0,m.jsx)(\"span\",{children:String(e)});return(0,m.jsx)(\"div\",{children:t(e)})},un=e=>{let{types:t,primaryType:r,...n}=e.typedData;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ui,{children:(0,m.jsx)(ur,{data:n})}),(0,m.jsx)(sc,{text:ut(e.typedData),itemName:\"full payload to clipboard\"}),\" \"]})},ui=A.ZP.div`\n  margin-top: 1.5rem;\n  background-color: var(--privy-color-background-2);\n  border-radius: var(--privy-border-radius-md);\n  padding: 12px;\n  text-align: left;\n  max-height: 310px;\n  overflow: scroll;\n  white-space: pre-wrap;\n  width: 100%;\n\n  // hide the scrollbars\n  -ms-overflow-style: none; /* Internet Explorer 10+ */\n  scrollbar-width: none; /* Firefox */\n\n  &::-webkit-scrollbar {\n    display: none; /* Safari and Chrome */\n  }\n}\n`,ua=A.ZP.ul`\n  margin-left: 12px !important;\n  white-space: nowrap;\n\n  &:first-child {\n    margin-left: 0 !important;\n  }\n\n  strong {\n    font-weight: 500 !important;\n  }\n}\n`,uo=A.ZP.div`\n  line-height: 20px;\n  height: 20px;\n  font-size: 13px;\n  color: ${e=>e.fail?\"var(--privy-color-error)\":\"var(--privy-color-foreground-3)\"};\n  display: flex;\n  justify-content: flex-start;\n  width: 100%;\n  margin-top: 16px;\n  margin-bottom: 4px;\n`,us=A.ZP.span`\n  display: flex;\n  align-items: center;\n  gap: 8px;\n`,ul=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 82px;\n`,uc=A.ZP.div`\n  flex-grow: 1;\n`,ud=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 27px;\n  margin-right: 27px;\n  gap: 24px;\n`,uh=(0,o.forwardRef)((e,t)=>{let[r,n]=(0,o.useState)(\"\"),[i,a]=(0,o.useState)(!1),{authenticated:s,user:l}=n$(),{initUpdateEmail:c}=nZ(),{navigate:d,setModalData:h,currentScreen:u}=ny(),{enabled:p,token:g}=nF(),f=tu(r),y=i||!f,w=async e=>{if(!l?.email)throw Error(\"User is required to have an email address to update it.\");a(!0);try{await c(l.email.address,r,e),d(\"AWAITING_PASSWORDLESS_CODE\")}catch(e){h({errorModalData:{error:e,previousScreen:u||\"LANDING\"}})}a(!1)},x=()=>{!p||g||s?w(g):(h({captchaModalData:{callback:e=>{if(!l?.email)throw Error(\"User is required to have an email address to update it.\");return c(l.email.address,r,e)},userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_PASSWORDLESS_CODE\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),d(\"CAPTCHA_SCREEN\"))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(uu,{children:(0,m.jsxs)(up,{children:[(0,m.jsx)(O.Z,{}),(0,m.jsx)(\"input\",{ref:t,id:\"email-input\",type:\"email\",placeholder:\"your@email.com\",onChange:e=>n(e.target.value),onKeyUp:e=>{\"Enter\"===e.key&&x()},value:r,autoComplete:\"email\"}),e.stacked?null:(0,m.jsx)(it,{isSubmitting:i,onClick:x,disabled:y,children:\"Submit\"})]})}),e.stacked?(0,m.jsx)(n3,{loadingText:null,loading:i,disabled:y,onClick:x,children:\"Submit\"}):null]})}),uu=A.ZP.div`\n  width: 100%;\n`,up=A.ZP.label`\n  display: block;\n  position: relative;\n  width: 100%;\n  background-color: var(--privy-color-background);\n  transition: background-color 200ms ease;\n\n  > svg {\n    position: absolute;\n    margin: 13px 17px;\n    height: 24px;\n    width: 24px;\n    color: var(--privy-color-foreground-3);\n  }\n\n  && > input {\n    font-size: 16px;\n    line-height: 24px;\n\n    padding: 12px 88px 12px 52px;\n    flex-grow: 1;\n    background: var(--privy-color-background);\n    border: 1px solid var(--privy-color-foreground-4);\n    border-radius: var(--privy-border-radius-mdlg);\n    width: 100%;\n\n    /* Tablet and Up */\n    @media (min-width: 441px) {\n      font-size: 14px;\n      padding-right: 78px;\n    }\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n\n    :autofill,\n    :-webkit-autofill {\n      background: var(--privy-color-background);\n    }\n  }\n\n  && > button {\n    right: 0;\n    line-height: 24px;\n    position: absolute;\n    padding: 13px 17px;\n\n    :focus {\n      outline: none;\n      border-color: var(--privy-color-accent);\n    }\n  }\n\n  && > input::placeholder {\n    color: var(--privy-color-foreground-3);\n  }\n`,um=({style:e,...t})=>(0,m.jsx)(\"svg\",{width:\"40\",height:\"40\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{height:\"38px\",width:\"38px\",...e},...t,children:(0,m.jsx)(\"path\",{d:\"M20 13.6V20M20 26.4H20.016M36 20C36 28.8365 28.8366 36 20 36C11.1635 36 4.00001 28.8365 4.00001 20C4.00001 11.1634 11.1635 3.99999 20 3.99999C28.8366 3.99999 36 11.1634 36 20Z\",stroke:\"currentColor\",strokeWidth:\"3.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),ug=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 24px;\n  width: 100%;\n  padding-top: 8px;\n  padding-bottom: 32px;\n`,uf=A.ZP.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 72px;\n  aspect-ratio: 1;\n  color: var(--privy-color-error);\n  background-color: var(--privy-color-error-light);\n  border-radius: 50%;\n`,uy=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n`,uw=`\n  *,\n  ::before,\n  ::after {\n    box-sizing: border-box;\n    border-width: 0;\n    border-style: solid;\n  }\n\n  line-height: 1.15;\n  -webkit-text-size-adjust: 100%;\n  -moz-tab-size: 4;\n  tab-size: 4;\n  font-feature-settings: normal;\n\n  margin: 0;\n  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n    'Apple Color Emoji', 'Segoe UI Emoji';\n\n  hr {\n    height: 0;\n    color: inherit;\n    border-top-width: 1px;\n  }\n\n  abbr:where([title]) {\n    text-decoration: underline dotted;\n  }\n\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n    font-size: inherit;\n    font-weight: inherit;\n    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n    'Apple Color Emoji', 'Segoe UI Emoji';\n    display: inline;\n  }\n\n  a {\n    color: inherit;\n    text-decoration: inherit;\n  }\n\n  b,\n  strong {\n    font-weight: bolder;\n  }\n\n  code,\n  kbd,\n  samp,\n  pre {\n    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;\n    font-size: 1em;\n  }\n\n  small {\n    font-size: 80%;\n  }\n\n  sub,\n  sup {\n    font-size: 75%;\n    line-height: 0;\n    position: relative;\n    vertical-align: baseline;\n  }\n\n  sub {\n    bottom: -0.25em;\n  }\n\n  sup {\n    top: -0.5em;\n  }\n\n  table {\n    text-indent: 0;\n    border-color: inherit;\n    border-collapse: collapse;\n  }\n\n  button,\n  input,\n  optgroup,\n  select,\n  textarea {\n    font-family: inherit;\n    font-size: 100%;\n    font-weight: inherit;\n    line-height: inherit;\n    color: inherit;\n    margin: 0;\n    padding: 0;\n  }\n\n  button,\n  select {\n    text-transform: none;\n  }\n\n  button,\n  [type='button'],\n  [type='reset'],\n  [type='submit'] {\n    -webkit-appearance: button;\n    background-color: transparent;\n    background-image: none;\n  }\n\n  ::-moz-focus-inner {\n    border-style: none;\n    padding: 0;\n  }\n\n  :-moz-focusring {\n    outline: 1px dotted ButtonText;\n  }\n\n  :-moz-ui-invalid {\n    box-shadow: none;\n  }\n\n  legend {\n    padding: 0;\n  }\n\n  progress {\n    vertical-align: baseline;\n  }\n\n  ::-webkit-inner-spin-button,\n  ::-webkit-outer-spin-button {\n    height: auto;\n  }\n\n  [type='search'] {\n    -webkit-appearance: textfield;\n    outline-offset: -2px;\n  }\n\n  ::-webkit-search-decoration {\n    -webkit-appearance: none;\n  }\n\n  ::-webkit-file-upload-button {\n    -webkit-appearance: button;\n    font: inherit;\n  }\n\n  summary {\n    display: list-item;\n  }\n\n  blockquote,\n  dl,\n  dd,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  hr,\n  figure,\n  p,\n  pre {\n    margin: 0;\n  }\n\n  fieldset {\n    margin: 0;\n    padding: 0;\n  }\n\n  legend {\n    padding: 0;\n  }\n\n  ol,\n  ul,\n  menu {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n  }\n\n  textarea {\n    resize: vertical;\n  }\n\n  input::placeholder,\n  textarea::placeholder {\n    opacity: 1;\n    color: #9ca3af;\n  }\n\n  button,\n  [role='button'] {\n    cursor: pointer;\n  }\n\n  :disabled {\n    cursor: default;\n  }\n\n  img,\n  svg,\n  video,\n  canvas,\n  audio,\n  iframe,\n  embed,\n  object {\n    display: block;\n  }\n\n  img,\n  video {\n    max-width: 100%;\n    height: auto;\n  }\n\n  [hidden] {\n    display: none;\n  }\n`,ux=(0,A.vJ)`\n  :root {\n     // Borders\n     --privy-border-radius-sm: 6px;\n     --privy-border-radius-md: 12px;\n     --privy-border-radius-mdlg: 16px;\n     --privy-border-radius-lg: 24px;\n     --privy-border-radius-full: 9999px;\n\n     // Colors\n     --privy-color-background: ${e=>e.theme.background};\n     --privy-color-background-2: ${e=>e.theme.background2};\n\n     --privy-color-foreground: ${e=>e.theme.foreground};\n     --privy-color-foreground-2: ${e=>e.theme.foreground2};\n     --privy-color-foreground-3: ${e=>e.theme.foreground3};\n     --privy-color-foreground-4: ${e=>e.theme.foreground4};\n     --privy-color-foreground-accent: ${e=>e.theme.foregroundAccent};\n\n     --privy-color-accent: ${e=>e.theme.accent};\n     --privy-color-accent-light: ${e=>e.theme.accentLight};\n     --privy-color-accent-dark: ${e=>e.theme.accentDark};\n\n     --privy-color-success: ${e=>e.theme.success};\n     --privy-color-success-dark: ${e=>e.theme.successDark};\n     --privy-color-success-light: ${e=>e.theme.successLight};\n     --privy-color-error: ${e=>e.theme.error};\n     --privy-color-error-light: ${e=>e.theme.errorLight};\n     --privy-color-warn: ${e=>e.theme.warn};\n     --privy-color-warn-light: ${e=>e.theme.warnLight};\n\n     // Space\n     --privy-height-modal-full: 620px;\n     --privy-height-modal-compact: 480px;\n  };\n`,uv=A.ZP.div`\n  // css normalize only the privy application to avoid conflicts\n  // with consuming application\n  ${uw}\n\n  // Privy styles\n  color: var(--privy-color-foreground-2);\n\n  h3 {\n    font-size: 16px;\n    line-height: 24px;\n    font-weight: 500;\n    color: var(--privy-color-foreground-2);\n  }\n\n  h4 {\n    font-size: 14px;\n    line-height: 20px;\n    font-weight: 500;\n    color: var(--privy-color-foreground);\n  }\n\n  p {\n    font-size: 13px;\n    line-height: 20px;\n    color: var(--privy-color-foreground-2);\n  }\n\n  button:focus,\n  input:focus,\n  optgroup:focus,\n  select:focus,\n  textarea:focus {\n    outline: none;\n    border-color: var(--privy-color-accent-light);\n    box-shadow: 0 0 0 1px var(--privy-color-accent-light);\n  }\n\n  .mobile-only {\n    @media (min-width: 441px) {\n      display: none;\n    }\n  }\n\n  /* Animations */\n\n  @keyframes fadein {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 1;\n    }\n  }\n`,uC=({children:e,open:t,onClick:r,...n})=>(0,m.jsx)(eD.u,{show:t,as:o.Fragment,children:(0,m.jsxs)(eZ.V,{onClose:r,...n,as:u_,children:[(0,m.jsx)(eD.u.Child,{as:o.Fragment,enterFrom:\"entering\",leaveTo:\"leaving\",children:(0,m.jsx)(ub,{id:\"privy-dialog-backdrop\",\"aria-hidden\":\"true\"})}),(0,m.jsx)(uj,{children:(0,m.jsx)(eD.u.Child,{as:o.Fragment,enterFrom:\"entering\",leaveTo:\"leaving\",children:(0,m.jsx)(eZ.V.Panel,{as:uk,children:e})})})]})}),ub=A.ZP.div`\n  position: fixed;\n  inset: 0;\n\n  transition: backdrop-filter 100ms ease;\n  backdrop-filter: blur(3px);\n  -webkit-backdrop-filter: blur(3px);\n\n  &.entering,\n  &.leaving {\n    backdrop-filter: unset;\n    -webkit-backdrop-filter: unset;\n  }\n`,u_=A.ZP.div`\n  position: relative;\n  z-index: 999999;\n`,uj=A.ZP.div`\n  position: fixed;\n  inset: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100vw;\n  min-height: 100vh;\n`,uk=A.ZP.div`\n  // reset some default dialog styles\n  padding: 0;\n  background: transparent;\n  border: none;\n  width: 100%;\n  pointer-events: auto;\n\n  outline: none;\n  display: block;\n\n  /*\n   * Normally it is bad to mix media queries like this We are doing\n   * this here specifically for animations to avoid weird jank.\n   */\n  /* Mobile animation is a bottom drawer */\n  @media (max-width: 440px) {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n    transition: transform 200ms ease-in;\n    position: fixed;\n    bottom: 0;\n\n    &.entering,\n    &.leaving {\n      opacity: 0;\n      transform: translate3d(0, 100%, 0);\n      transition: transform 150ms ease-in 0ms, opacity 0ms ease 150ms;\n    }\n  }\n\n  /* Tablet/Desktop animation is a fade in */\n  @media (min-width: 441px) {\n    opacity: 1;\n    transition: opacity 100ms ease-in;\n\n    &.entering,\n    &.leaving {\n      opacity: 0;\n      transition-delay: 5ms;\n    }\n\n    margin: auto;\n    width: 360px;\n    box-shadow: 0px 8px 36px rgba(55, 65, 81, 0.15);\n    border-radius: var(--privy-border-radius-lg);\n  }\n`,uE=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 100%;\n`,uA={LANDING:()=>{let{app:e}=ny();return e.loginMethodsAndOrder&&e.loginMethodsAndOrder.primary.length>0?(0,m.jsx)(c3,{connectOnly:!1}):(0,m.jsx)(c7,{connectOnly:!1})},CONNECT_OR_CREATE:()=>{let{app:e}=ny();return e.loginMethodsAndOrder&&e.loginMethodsAndOrder.primary.length>0?(0,m.jsx)(c3,{connectOnly:!0}):(0,m.jsx)(c7,{connectOnly:!0})},AWAITING_PASSWORDLESS_CODE:()=>{let{app:e,navigate:t,lastScreen:r,navigateBack:n,setModalData:i,onUserCloseViaDialogOrKeybindRef:a}=ny(),{closePrivyModal:l,resendEmailCode:c,resendSmsCode:d,getAuthMeta:h,loginWithCode:u,updateWallets:p,createAnalyticsEvent:g}=nZ(),{authenticated:f,logout:y,user:w}=n$(),[x,v]=(0,o.useState)(ad),[C,b]=(0,o.useState)(!1),[_,j]=(0,o.useState)(null),[k,E]=(0,o.useState)(null),[A,S]=(0,o.useState)(0);a.current=()=>null;let T=h()?.email?0:1;(0,o.useEffect)(()=>{if(A){let e=setTimeout(()=>{S(A-1)},1e3);return()=>clearTimeout(e)}},[A]),(0,o.useEffect)(()=>{if(f&&C&&w){if(e?.legal.requireUsersAcceptTerms&&!w.hasAcceptedTerms){let e=setTimeout(()=>{t(\"AFFIRMATIVE_CONSENT_SCREEN\")},900);return()=>clearTimeout(e)}if(rk(w,e?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{i({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"AwaitingPasswordlessCodeScreen\"}}),y()},callAuthOnSuccessOnClose:!0}}),t(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},900);return()=>clearTimeout(e)}{p();let e=setTimeout(()=>l({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return()=>clearTimeout(e)}}},[f,C,w]),(0,o.useEffect)(()=>{if(_&&0===k){let e=setTimeout(()=>{v(ad),j(null),document.querySelector(\"input[name=code-0]\")?.focus()},1400);return()=>clearTimeout(e)}},[_]);let P=e=>{e.preventDefault();let n=e.currentTarget.value.replace(\" \",\"\");if(\"\"===n)return;if(isNaN(Number(n))){j(\"Code should be numeric\"),E(1);return}j(null),E(null);let a=Number(e.currentTarget.name?.charAt(5)),o=[...n||[\"\"]].slice(0,6-a),s=[...x.slice(0,a),...o,...x.slice(a+o.length)];v(s);let l=Math.min(Math.max(a+o.length,0),5);isNaN(Number(e.currentTarget.value))||document.querySelector(`input[name=code-${l}]`)?.focus(),s.every(e=>e&&!isNaN(+e))&&(document.querySelector(`input[name=code-${l}]`)?.blur(),u(s.join(\"\")).then(()=>b(!0)).catch(e=>{if(e?.status===422)j(\"Invalid or expired verification code\");else if(e instanceof eG&&\"cannot_link_more_of_type\"===e.privyErrorCode)j(e.message);else if(e instanceof eG&&\"max_accounts_reached\"===e.privyErrorCode){console.error(new e3(e).toString()),t(\"USER_LIMIT_REACHED_SCREEN\");return}else if(e instanceof eG&&\"user_does_not_exist\"===e.privyErrorCode){t(\"ACCOUNT_NOT_FOUND_SCREEN\");return}else if(e instanceof eG&&\"linked_to_another_user\"===e.privyErrorCode){i({errorModalData:{error:e,previousScreen:r??\"AWAITING_PASSWORDLESS_CODE\"}}),t(\"ERROR_SCREEN\",!1);return}else j(\"Issue verifying code\");E(0)}))},N=e=>{1===k&&(j(null),E(null)),v([...x.slice(0,e),\"\",...x.slice(e+1)]),e>0&&document.querySelector(`input[name=code-${e-1}]`)?.focus()},R=0==T?(0,m.jsx)(O.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"}):(0,m.jsx)(I.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"40px\",width:\"40px\"}),W=0==T?(0,m.jsxs)(\"p\",{children:[\"Please check \",(0,m.jsx)(ay,{children:h()?.email}),\" for an email from privy.io and enter your code below.\"]}):(0,m.jsxs)(\"p\",{children:[\"Please check \",(0,m.jsx)(ay,{children:h()?.phoneNumber}),\" for a message from \",e?.name||\"Privy\",\" and enter your code below.\"]});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>n()},\"header\"),(0,m.jsxs)(ah,{children:[(0,m.jsx)(as,{title:\"Enter confirmation code\",description:W,icon:R}),(0,m.jsxs)(i4,{children:[(0,m.jsxs)(au,{children:[(0,m.jsx)(ap,{fail:!!_,success:C,children:(0,m.jsx)(\"span\",{children:_||(C?\"Success!\":\"\")})}),(0,m.jsx)(\"div\",{children:x.map((e,t)=>(0,m.jsx)(\"input\",{name:`code-${t}`,type:\"text\",value:x[t],onChange:P,onKeyUp:e=>{\"Backspace\"===e.key&&N(t)},inputMode:\"numeric\",autoFocus:0===t,pattern:\"[0-9]\",className:`${C?\"success\":\"\"} ${_?\"fail\":\"\"}`,autoComplete:s.tq?\"one-time-code\":\"off\"},t))})]}),(0,m.jsxs)(am,{children:[(0,m.jsxs)(\"span\",{children:[\"Didn't get \",0==T?\"an email\":\"a message\",\"?\"]}),A?(0,m.jsxs)(af,{children:[(0,m.jsx)(M.Z,{color:\"var(--privy-color-foreground)\",strokeWidth:1.33,height:\"12px\",width:\"12px\"}),(0,m.jsx)(\"span\",{children:\"Code sent\"})]}):(0,m.jsx)(ag,{children:(0,m.jsx)(\"button\",{onClick:async()=>{S(30),0==T?await c():await d()},children:\"Resend code\"})})]})]})]}),(0,m.jsx)(iP,{})]})},AWAITING_CONNECTION:()=>{let[e,t]=(0,o.useState)(!1),[r,n]=(0,o.useState)(!1),[i,a]=(0,o.useState)(void 0),{authenticated:l,logout:c}=n$(),{app:d,navigate:h,navigateBack:u,lastScreen:p,currentScreen:g,setModalData:f}=ny(),{getAuthFlow:y,walletConnectionStatus:w,closePrivyModal:x,initLoginWithWallet:v,loginWithWallet:C,updateWallets:b,createAnalyticsEvent:_}=nZ(),{walletConnectors:j}=n$(),[k,E]=(0,o.useState)(0),{user:A}=n$(),[S]=(0,o.useState)(A?.linkedAccounts.length||0),[T,P]=(0,o.useState)(\"\"),[N,R]=(0,o.useState)(\"\"),[M,O]=(0,o.useState)(!1),{hasTabbedAway:I}=function(){let[e,t]=(0,o.useState)(!1),r=(0,o.useCallback)(()=>{document.hidden&&t(!0)},[]);return(0,o.useEffect)(()=>(document.addEventListener(\"visibilitychange\",r),()=>document.removeEventListener(\"visibilitychange\",r)),[r]),{hasTabbedAway:e,reset:()=>t(!1)}}(),{enabled:W,token:L}=nF(),F=s.tq&&w?.connector?.connectorType===\"wallet_connect_v2\"||s.tq&&w?.connector?.connectorType===\"coinbase_wallet\"||s.tq&&w?.connector?.connectorType===\"injected\"&&w?.connector?.walletClientType===\"phantom\",U=w?.status===\"connected\",D=w?.status===\"switching_to_supported_chain\";(0,o.useEffect)(()=>{let e=y(),t=e instanceof rp?e:void 0;if(U&&!t&&(!W||L||l?v(w.connectedWallet,L).then(()=>{O(!0)}):(f({captchaModalData:{callback:e=>v(w.connectedWallet,e).then(()=>{O(!0)}),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_CONNECTION\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),h(\"CAPTCHA_SCREEN\",!1))),t&&F&&U&&!t.preparedMessage){t.buildSiweMessage();return}!t||F||!U||r||(async()=>{n(!0),a(void 0);try{w?.connector?.connectorType===\"wallet_connect_v2\"&&w?.connector?.walletClientType===\"metamask\"&&await tg(2500),await z()}catch(e){console.warn(\"Auto-prompted signature failed\",e)}finally{n(!1)}})()},[k,U,M]),(0,o.useEffect)(()=>{if(A&&e){if(d?.legal.requireUsersAcceptTerms&&!A.hasAcceptedTerms){let e=setTimeout(()=>{h(\"AFFIRMATIVE_CONSENT_SCREEN\")},900);return()=>clearTimeout(e)}if(rk(A,d?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{f({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),_({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"ConnectionStatusScreen\"}}),c()},callAuthOnSuccessOnClose:!0}}),h(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},900);return()=>clearTimeout(e)}b();let e=setTimeout(()=>x({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return()=>clearTimeout(e)}},[A,e]);let Z=e=>{if(e?.privyErrorCode===\"allowlist_rejected\"){h(\"ALLOWLIST_REJECTION_SCREEN\");return}if(e?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(e).toString()),h(\"USER_LIMIT_REACHED_SCREEN\");return}if(e?.privyErrorCode===\"user_does_not_exist\"){h(\"ACCOUNT_NOT_FOUND_SCREEN\");return}a(aV(e))};async function z(){try{await C(),t(!0)}catch(e){Z(e)}finally{n(!1)}}(0,o.useEffect)(()=>{w?.connectError&&Z(w?.connectError)},[w]),aq(()=>{let e=\"wallet_connect_v2\"===$&&w?.connector instanceof nx?w.connector.redirectUri:void 0;e&&P(e);let t=\"wallet_connect_v2\"===$&&w?.connector instanceof nx?w.connector.fallbackUniversalRedirectUri:void 0;t&&R(t)},w?.connector instanceof nx&&!T?500:null);let $=w?.connector?.connectorType||\"injected\",H=w?.connector?.walletClientType||\"unknown\",B=aA[H]?.displayName||w?.connector?.walletBranding.name||\"Browser Extension\",q=aA[H]?.logo||w?.connector?.walletBranding.icon||(e=>(0,m.jsx)(rY,{...e})),V=\"Browser Extension\"===B?B.toLowerCase():B,G;G=e?`Successfully connected with ${V}`:i?i.message:D?\"Switching networks\":U?r&&F?\"Signing\":\"Sign to verify\":`Waiting for ${V}`;let K=\"Don’t see your wallet? Check your other browser windows.\";e?K=S===(A?.linkedAccounts.length||0)?\"Wallet was already linked.\":\"You’re good to go!\":k>=2&&i?K=\"Unable to connect wallet\":i?K=i.detail:D?K=\"Switch your wallet to the requested network.\":U&&F?K=\"Sign the message in your wallet to verify it belongs to you.\":\"metamask\"===H&&s.tq?K=\"Click continue to open and connect MetaMask.\":\"metamask\"===H?K=\"For the best experience, connect only one wallet at a time.\":\"wallet_connect\"===$?K=\"Open your mobile wallet app to continue\":\"coinbase_wallet\"===$&&(td()||(K=nv(A)?\"Continue with the Coinbase app. Not the right wallet? Reset your connection below.\":\"Open the Coinbase app on your phone to continue.\"));let Y=j?.walletConnectors?.find(e=>\"coinbase_wallet\"===e.walletClientType),Q=\"coinbase_wallet\"===H&&(nv(A)||i===rL.ERROR_USER_EXISTS);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:p&&g!==p?u:void 0}),(0,m.jsxs)(aG,{children:[(0,m.jsx)(aY,{walletLogo:q,success:e,fail:!!i}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:G}),(0,m.jsx)(\"p\",{children:K}),U||!T||I?null:(0,m.jsxs)(\"p\",{children:[\"Still here?\",\" \",(0,m.jsx)(\"a\",{href:T,target:\"_blank\",style:{textDecoration:\"underline\"},children:\"Try connecting again\"}),N&&(0,m.jsxs)(m.Fragment,{children:[\" \",\"or\",\" \",(0,m.jsx)(\"a\",{href:N,target:\"_blank\",style:{textDecoration:\"underline\"},children:\"use this different link\"})]})]})]}),Q?(0,m.jsx)(n3,{onClick:()=>Y&&Y?.disconnect(),disabled:e,children:\"Use a different wallet\"}):i==rL.ERROR_USER_EXISTS&&g!==p?(0,m.jsx)(n3,{onClick:u,children:\"Use a different wallet\"}):U&&!e&&F?(0,m.jsx)(n3,{onClick:()=>{n(!0),z()},disabled:r,children:r?\"Signing\":\"Sign with your wallet\"}):!e&&i?.retryable&&k<2?(0,m.jsx)(n3,{onClick:()=>{E(k+1),a(void 0),U?(n(!0),z()):w?.connectRetry()},disabled:!e&&(!i?.retryable||k>=2),children:\"Retry\"}):e||i?null:(0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Connecting\"})]}),(0,m.jsx)(iN,{})]})},AWAITING_CONNECT_ONLY_CONNECTION:()=>{let{navigateBack:e,navigate:t,lastScreen:r,currentScreen:n,data:i}=ny(),{walletConnectionStatus:a,closePrivyModal:l}=nZ(),[c,d]=(0,o.useState)(void 0),[h,u]=(0,o.useState)(0),p=a?.status===\"connected\",g=a?.status===\"switching_to_supported_chain\";(0,o.useEffect)(()=>{if(p){let e;if(i?.externalConnectWallet?.onCompleteNavigateTo){let r=i.externalConnectWallet.onCompleteNavigateTo;e=setTimeout(()=>{t(r)},1400)}else e=setTimeout(l,1400);return()=>clearTimeout(e)}},[p]);let f=e=>{d(aV(e))};(0,o.useEffect)(()=>{a?.connectError&&f(a?.connectError)},[a]);let y=a?.connector?.connectorType||\"injected\",w=a?.connector?.walletClientType||\"unknown\",x=aA[w]?.displayName||a?.connector?.walletBranding.name||\"Browser Extension\",v=aA[w]?.logo||a?.connector?.walletBranding.icon||(e=>(0,m.jsx)(rY,{...e})),C=\"Browser Extension\"===x?x.toLowerCase():x,b;b=p?`Successfully connected with ${C}`:c?c.message:g?\"Switching networks\":`Waiting for ${C}`;let _=\"Don’t see your wallet? Check your other browser windows.\";return p?_=\"You’re good to go!\":h>=2&&c?_=\"Unable to connect wallet\":c?_=c.detail:g?_=\"Switch your wallet to the requested network.\":\"metamask\"===w&&s.tq?_=\"Click to continue to open and connect MetaMask.\":\"metamask\"===w?_=\"For the best experience, connect only one wallet at a time.\":\"wallet_connect_v2\"===y?_=\"Open your mobile wallet app to continue\":\"coinbase_wallet\"===y&&(_=\"Open the Coinbase app on your phone to continue.\"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:n===r?void 0:e}),(0,m.jsxs)(aQ,{children:[(0,m.jsx)(aY,{walletLogo:v,success:p,fail:!!c}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:b}),(0,m.jsx)(\"p\",{children:_})]}),c==rL.ERROR_USER_EXISTS?(0,m.jsx)(n3,{onClick:e,children:\"Use a different wallet\"}):!p&&c?.retryable&&h<2?(0,m.jsx)(n3,{onClick:()=>{u(h+1),d(void 0),a?.connectRetry()},disabled:!p&&(!c?.retryable||h>=2),children:\"Retry\"}):!p&&c&&h>=2?(0,m.jsx)(n3,{onClick:e,children:\"Use a different wallet\"}):null]}),(0,m.jsx)(iN,{})]})},AWAITING_FARCASTER_CONNECTION:()=>{let{authenticated:e,logout:t,ready:r,user:n}=n$(),{lastScreen:i,navigate:a,navigateBack:l,setModalData:c,app:d}=ny(),{getAuthFlow:h,loginWithFarcaster:u,closePrivyModal:p,createAnalyticsEvent:g}=nZ(),[f,y]=(0,o.useState)(void 0),[w,x]=(0,o.useState)(!1),[v,C]=(0,o.useState)(!1),b=(0,o.useRef)([]),_=h(),j=_?.meta.connectUri;return(0,o.useEffect)(()=>{let e=Date.now(),t=setInterval(async()=>{let r=await _.pollForReady.execute(),n=Date.now()-e;if(r){clearInterval(t),x(!0);try{await u(),C(!0)}catch(t){let e={retryable:!1,message:\"Authentication failed\"};if(t?.privyErrorCode===\"allowlist_rejected\"){a(\"ALLOWLIST_REJECTION_SCREEN\");return}if(t?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(t).toString()),a(\"USER_LIMIT_REACHED_SCREEN\");return}if(t?.privyErrorCode===\"user_does_not_exist\"){a(\"ACCOUNT_NOT_FOUND_SCREEN\");return}t?.privyErrorCode===\"linked_to_another_user\"?e.detail=\"This account has already been linked to another user.\":t?.privyErrorCode===\"invalid_credentials\"?(e.retryable=!0,e.detail=\"Something went wrong. Try again.\"):t?.privyErrorCode===\"too_many_requests\"&&(e.detail=\"Too many requests. Please wait before trying again.\");y(e)}}else n>12e4&&(clearInterval(t),y({retryable:!0,message:\"Authentication failed\",detail:\"The request timed out. Try again.\"}))},2e3);return()=>{clearInterval(t),b.current.forEach(e=>clearTimeout(e))}},[]),(0,o.useEffect)(()=>{if(r&&e&&v&&n){if(d?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{a(\"AFFIRMATIVE_CONSENT_SCREEN\")},1400);return()=>clearTimeout(e)}v&&(rk(n,d?.embeddedWallets.createOnLogin)?b.current.push(setTimeout(()=>{c({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"FarcasterConnectStatusScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),a(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},1400)):b.current.push(setTimeout(()=>p({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400)))}},[v,r,e,n]),s.tq||w?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:i?l:void 0,onClose:p},\"header\"),(0,m.jsx)(ae,{}),s.gn?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sE,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:v,fail:!!f}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:f?f.message:\"Sign in with Farcaster\"}),(0,m.jsx)(iO,{children:f?f.detail:\"To sign in with Farcaster, please open the Warpcast app.\"})]}),j&&(0,m.jsx)(n3,{onClick:e=>{e.preventDefault(),window.location.href=j},children:\"Open Warpcast app\"})]})}):(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sk,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:v,fail:!!f}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:f?f.message:\"Signing in with Farcaster\"}),(0,m.jsx)(iO,{children:f?f.detail:\"This should only take a moment\"}),(0,m.jsx)(i3,{children:j&&s.tq&&(0,m.jsx)(sh,{text:\"Take me to Warpcast\",url:j,color:sj})})]})]})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:i?l:void 0,onClose:p},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(sk,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iM,{children:\"Sign in with Farcaster\"}),(0,m.jsx)(iO,{children:\"Scan with your phone's camera to continue.\"}),(0,m.jsx)(i5,{children:j?(0,m.jsx)(sb,{url:j,size:275,squareLogoElement:s_}):(0,m.jsx)(nX,{})}),(0,m.jsxs)(i3,{children:[(0,m.jsx)(iO,{children:\"Or copy this link and paste it into a phone browser to open the Warpcast app.\"}),j&&(0,m.jsx)(sc,{text:j,itemName:\"link\",color:sj})]})]})}),(0,m.jsx)(iN,{})]})},AWAITING_FARCASTER_SIGNER:()=>{let{lastScreen:e,navigateBack:t,data:r,app:n}=ny(),{requestFarcasterSignerStatus:i,closePrivyModal:a}=nZ(),[l,c]=(0,o.useState)(void 0),[d,h]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),g=(0,o.useRef)([]),f=r?.farcasterSigner;(0,o.useEffect)(()=>{let e=Date.now(),t=setInterval(async()=>{if(!f?.public_key){clearInterval(t),c({retryable:!0,message:\"Connect failed\",detail:\"Something went wrong. Please try again.\"});return}\"approved\"===f.status&&(clearInterval(t),h(!1),p(!0),g.current.push(setTimeout(()=>a({shouldCallAuthOnSuccess:!1,isSuccess:!0}),1400)));let r=await i(f?.public_key),n=Date.now()-e;\"approved\"===r.status?(clearInterval(t),h(!1),p(!0),g.current.push(setTimeout(()=>a({shouldCallAuthOnSuccess:!1,isSuccess:!0}),1400))):n>3e5?(clearInterval(t),c({retryable:!0,message:\"Connect failed\",detail:\"The request timed out. Try again.\"})):\"revoked\"===r.status&&(clearInterval(t),c({retryable:!0,message:\"Request rejected\",detail:\"The request was rejected. Please try again.\"}))},2e3);return()=>{clearInterval(t),g.current.forEach(e=>clearTimeout(e))}},[]);let y=f?.status===\"pending_approval\"?f.signer_approval_url:void 0;return s.tq||d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e?t:void 0,onClose:a},\"header\"),(0,m.jsx)(ae,{}),s.gn?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sT,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:u,fail:!!l}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:l?l.message:\"Add a signer to Farcaster\"}),(0,m.jsx)(iO,{children:l?l.detail:\"This will allow \"+n.name+\" to add casts, likes, follows, and more on your behalf.\"})]}),y&&(0,m.jsx)(n3,{onClick:e=>{e.preventDefault(),window.location.href=y},children:\"Open Warpcast app\"})]})}):(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sS,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:u,fail:!!l}),(0,m.jsx)(s_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(iM,{children:l?l.message:\"Requesting signer from Farcaster\"}),(0,m.jsx)(iO,{children:l?l.detail:\"This should only take a moment\"}),(0,m.jsx)(i3,{children:y&&s.tq&&(0,m.jsx)(sh,{text:\"Take me to Warpcast\",url:y,color:sA})})]})]})}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e?t:void 0,onClose:a},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(sS,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iM,{children:\"Add a signer to Farcaster\"}),(0,m.jsxs)(iO,{children:[\"This will allow \",n.name,\" to add casts, likes, follows, and more on your behalf.\"]}),(0,m.jsx)(i5,{children:f?.status===\"pending_approval\"?(0,m.jsx)(sb,{url:f.signer_approval_url,size:275,squareLogoElement:s_}):(0,m.jsx)(nX,{})}),(0,m.jsxs)(i3,{children:[(0,m.jsx)(iO,{children:\"Or copy this link and paste it into a phone browser to open the Warpcast app.\"}),f?.status===\"pending_approval\"&&(0,m.jsx)(sc,{text:f.signer_approval_url,itemName:\"link\",color:sA})]})]})}),(0,m.jsx)(iN,{})]})},AWAITING_PASSKEY_SYSTEM_DIALOGUE:()=>{let{lastScreen:e,currentScreen:t,navigateBack:r}=ny(),{loginWithPasskey:n,closePrivyModal:i}=nZ(),[a,s]=(0,o.useState)(\"loading\"),[l,c]=(0,o.useState)(null),d=(0,o.useRef)([]),h=e=>{d.current=[e,...d.current]};(0,o.useEffect)(()=>()=>{d.current.forEach(e=>clearTimeout(e)),d.current=[]},[]);let u=async()=>{s(\"loading\");try{await n(),s(\"success\")}catch(e){c(e),s(\"error\")}};return(0,o.useEffect)(()=>{\"success\"===a&&h(setTimeout(()=>{i({shouldCallAuthOnSuccess:!0,isSuccess:!0})},1400))},[a]),(0,o.useEffect)(()=>{u()},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e&&t!==e?r:void 0}),(0,m.jsxs)(ha,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:\"success\"===a,fail:\"error\"===a}),(0,m.jsx)(lu,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:(()=>{switch(a){case\"loading\":return\"Waiting for passkey\";case\"success\":return\"Success\";case\"error\":return\"Something went wrong\"}})()}),(0,m.jsx)(\"p\",{style:{whiteSpace:\"pre-wrap\"},children:(()=>{switch(a){case\"loading\":return`Please follow prompts to verify your passkey.\nYou will have to sign up with another method first to register a passkey for your account.`;case\"success\":return\"You've successfully logged in with your passkey.\";case\"error\":if(l instanceof eV){if(\"cannot_link_more_of_type\"===l.privyErrorCode)return\"Cannot link more passkeys to account.\";if(\"passkey_not_allowed\"===l.privyErrorCode)return`Passkey request timed out or rejected by user.\nYou will have to sign up with another method first to register a passkey for your account.`}return`An unknown error occurred.\nYou will have to sign up with another method first to register a passkey for your account.`}})()})]}),(()=>{switch(a){case\"loading\":case\"success\":return(0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Continue\"});case\"error\":return(0,m.jsx)(n3,{onClick:u,disabled:!1,children:\"Retry\"})}})()]}),(0,m.jsx)(iN,{})]})},PHANTOM_INTERSTITIAL_SCREEN:()=>{let{forkSession:e,ready:t,authenticated:r}=n$(),[n,i]=(0,o.useState)(\"\"),[a,s]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&r&&e().then(i)},[t,r]);let l=ho(n,!a),c={title:\"Redirecting to Phantom Mobile Wallet\",description:\"We'll take you to the Phantom Mobile Wallet app to continue your login experience.\",footnote:\"\"};return t&&(c.description=\"For the best experience, we'll automatically log you into the Phantom Mobile Wallet in-app browser.\",c.footnote=\"Once you're done, you can always return here and refresh to view your updated account.\"),a&&(c.title=\"Still here?\",c.description=\"You may need to install the Phantom mobile app.\",c.footnote=\"Once you're done, you can return here or connect via Phantom's in-app browser.\"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(ao,{title:c.title,description:c.description}),(0,m.jsxs)(i2,{children:[(0,m.jsx)(hs,{children:(0,m.jsx)(rX,{style:{width:\"72px\",height:\"72px\"}})}),(0,m.jsx)(n6,{href:l,onClick:()=>{setTimeout(()=>s(!0),1e3)},loading:t&&!l,children:a?\"Go to App Store\":\"Continue\"}),c.footnote?(0,m.jsx)(\"p\",{children:c.footnote}):null]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},LOGIN_FAILED_SCREEN:()=>{let{closePrivyModal:e}=nZ(),{navigate:t}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(dn,{style:{width:\"160px\",height:\"160px\",margin:\"0 auto 20px\"}}),(0,m.jsx)(ao,{title:\"Could not connect with wallet\",description:\"Please check that Phantom multichain is enabled and try again.\",style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\"}}),(0,m.jsxs)(i2,{children:[(0,m.jsx)(n3,{onClick:()=>t(\"LANDING\"),children:\"Try again\"}),(0,m.jsx)(n8,{onClick:()=>e(),children:\"Cancel\"})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},AWAITING_OAUTH_SCREEN:()=>{let{authenticated:e,logout:t,ready:r,user:n}=n$(),{app:i,setModalData:a,navigate:s,resetNavigation:l}=ny(),{getAuthMeta:c,initLoginWithOAuth:d,loginWithOAuth:h,updateWallets:u,setReadyToTrue:p,closePrivyModal:g,createAnalyticsEvent:f}=nZ(),[y,w]=(0,o.useState)(!1),[x,v]=(0,o.useState)(void 0),C=c()?.provider||\"google\",{name:b,component:_}=rc(C),j=nY();(0,o.useEffect)(()=>{h(C).then(e=>{w(!0),p(!0),e&&j(\"login\",\"onOAuthLoginComplete\",e)}).catch(e=>{if(p(!1),e?.privyErrorCode===\"allowlist_rejected\"){v(void 0),l(),s(\"ALLOWLIST_REJECTION_SCREEN\");return}if(e?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(e).toString()),v(void 0),l(),s(\"USER_LIMIT_REACHED_SCREEN\");return}if(e?.privyErrorCode===\"user_does_not_exist\"){v(void 0),l(),s(\"ACCOUNT_NOT_FOUND_SCREEN\");return}let{retryable:t,detail:r}=function(e,t){let r={detail:\"\",retryable:!1},n=t.charAt(0).toUpperCase()+t.slice(1);if(e?.privyErrorCode===\"linked_to_another_user\"&&(r.detail=\"This account has already been linked to another user.\"),e?.privyErrorCode===\"invalid_credentials\"&&(r.retryable=!0,r.detail=\"Something went wrong. Try again.\"),\"oauth_user_denied\"===e.privyErrorCode&&(r.detail=`Retry and check ${n} to finish connecting your account.`,r.retryable=!0),e?.privyErrorCode===\"too_many_requests\"&&(r.detail=\"Too many requests. Please wait before trying again.\"),e?.privyErrorCode===\"too_many_requests\"&&e.message.includes(\"provider rate limit\")){let e=rc(t).name;r.detail=`Request limit reached for ${e}. Please wait a moment and try again.`}if(e?.privyErrorCode===\"oauth_account_suspended\"){let e=rc(t).name;r.detail=`Your ${e} account is suspended. Please try another login method.`}return e?.privyErrorCode===\"cannot_link_more_of_type\"&&(r.detail=\"You cannot authorize more than one account for this user.\"),e?.privyErrorCode===\"oauth_unexpected\"&&t.startsWith(\"privy:\")&&(r.detail=\"Something went wrong. Please try again.\"),r}(e,C);v({retryable:t,detail:r,message:\"Authentication failed\"})}).finally(()=>{rd()})},[b,C]),(0,o.useEffect)(()=>{if(r&&e&&y&&n){if(i?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{s(\"AFFIRMATIVE_CONSENT_SCREEN\")},1400);return()=>clearTimeout(e)}if(rk(n,i?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{a({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),f({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,provider:C,screen:\"OAuthStatusScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),s(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},1400);return()=>clearTimeout(e)}{let e=setTimeout(()=>g({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return u(),()=>clearTimeout(e)}}},[r,e,y,n]);let k=y?`Successfully connected with ${b}`:x?x.message:`Verifying connection to ${b}`,E=\"\";return E=y?\"You’re good to go!\":x?x.detail:\"Just a few moments more\",(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsx)(ae,{}),(0,m.jsxs)(hi,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:y,fail:!!x}),(0,m.jsx)(_,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:k}),(0,m.jsx)(\"p\",{children:E})]}),x&&x?.retryable?(0,m.jsx)(ie,{onClick:()=>{rd(),d(C),v(void 0)},disabled:!y&&!x?.retryable,children:\"Retry\"}):null]}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]})},CROSS_APP_AUTH_SCREEN:()=>{let{data:e,onUserCloseViaDialogOrKeybindRef:t}=ny(),{crossAppAuthFlow:r,updateWallets:n,closePrivyModal:i}=nZ(),[a,s]=(0,o.useState)({}),l={id:e?.crossAppAuth?.appId??\"\",name:e?.crossAppAuth?.name??\"app\",logoUrl:e?.crossAppAuth?.logoUrl},c=new eK(`There was an issue connecting your ${l.name} account. Please try again.`),d=new tI(async t=>{if(!e?.crossAppAuth?.popup){s({error:c});return}try{let n=await r({appId:t,popup:e.crossAppAuth.popup});s({data:n})}catch(t){t instanceof eK?s({error:t}):(t instanceof eG&&e?.crossAppAuth?.popup&&e.crossAppAuth.popup.close(),s({error:c}))}}),h=()=>{a.data&&(n(),e?.crossAppAuth?.onSuccess(a.data),i({shouldCallAuthOnSuccess:!0,isSuccess:!0})),e?.crossAppAuth?.onError(a.error??new eK(\"User canceled flow\")),i({shouldCallAuthOnSuccess:!1,isSuccess:!1})};t.current=h,(0,o.useEffect)(()=>{l.id.length&&d.execute(l.id)},[l.id]),(0,o.useEffect)(()=>{if(!a.data)return;let e=setTimeout(h,1400);return()=>clearTimeout(e)},[a.data]);let{title:u,subtitle:p}=(0,o.useMemo)(()=>a.data?{title:`Successfully connected with ${l.name}`,subtitle:\"You're good to go!\"}:a.error?{title:\"Authentication failed\",subtitle:a.error.message}:{title:`Connecting to ${l.name}`,subtitle:`Please check the pop-up from ${l.name} to continue`},[a,l.name]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:h}),(0,m.jsx)(ae,{}),(0,m.jsxs)(aJ,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:!!a.data,fail:!!a.error}),(0,m.jsx)(aX,{name:l.name,logoUrl:l.logoUrl})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:u}),(0,m.jsx)(\"p\",{children:p})]})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]})},ALLOWLIST_REJECTION_SCREEN:()=>{let{navigate:e,app:t}=ny(),r=t?.allowlistConfig.errorTitle||\"You don't have access to this app\",n=t?.allowlistConfig.errorDetail||\"Have you been invited?\",i=t?.allowlistConfig.errorCtaText||\"Try another account\";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsxs)(i0,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iX,{}),(0,m.jsx)(iJ,{style:{width:\"38px\",height:\"38px\",strokeWidth:\"1\",stroke:\"var(--privy-color-accent)\",fill:\"var(--privy-color-accent)\"}})]})}),(0,m.jsxs)(i1,{children:[\"string\"==typeof r?(0,m.jsx)(\"h3\",{children:r}):(0,m.jsx)(m.Fragment,{children:r}),\"string\"==typeof n?(0,m.jsx)(\"p\",{children:n}):(0,m.jsx)(m.Fragment,{children:n})]}),t?.allowlistConfig.errorCtaLink?(0,m.jsx)(n3,{as:\"a\",href:t.allowlistConfig.errorCtaLink,children:i}):(0,m.jsx)(n3,{onClick:()=>{e(\"LANDING\")},children:i})]})]})},ACCOUNT_NOT_FOUND_SCREEN:()=>{let{navigate:e,app:t}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsxs)(iE,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(ii,{color:\"var(--privy-color-warn-light)\"}),(0,m.jsx)(S.Z,{height:38,width:38,strokeWidth:2,stroke:\"var(--privy-color-warn)\"})]})}),(0,m.jsxs)(iA,{children:[(0,m.jsx)(\"h3\",{children:\"Account not found\"}),(0,m.jsxs)(\"p\",{children:[\"Please try logging in again or go to \",t.name,\" to create an account.\"]})]}),(0,m.jsx)(iy,{}),(0,m.jsx)(n3,{onClick:()=>e(\"LANDING\"),children:\"Try logging in again\"})]})]})},USER_LIMIT_REACHED_SCREEN:()=>{let{navigate:e}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsxs)(ug,{children:[(0,m.jsx)(uf,{children:(0,m.jsx)(um,{})}),(0,m.jsxs)(uy,{children:[(0,m.jsx)(\"h3\",{children:\"Unable to sign in\"}),(0,m.jsx)(\"p\",{children:\"This application has reached its user limit and cannot sign in new users.\"})]}),(0,m.jsx)(n3,{onClick:()=>{e(\"LANDING\")},children:\"Go back\"})]}),(0,m.jsx)(iP,{})]})},INSTALL_PHANTOM_SCREEN:()=>{let{navigateBack:e}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(cE,{}),(0,m.jsx)(at,{}),(0,m.jsxs)(iN,{children:[(0,m.jsx)(\"span\",{children:\"Still not sure? \"}),(0,m.jsx)(\"a\",{target:\"_blank\",href:\"https://ethereum.org/en/wallets/\",children:\"Learn more\"})]})]})},LINK_EMAIL_SCREEN:()=>{let{app:e}=ny();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Connect your email\",description:`Add your email to your ${e?.name} account`,icon:(0,m.jsx)(O.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(cM,{stacked:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},LINK_PHONE_SCREEN:()=>{let{app:e,currentScreen:t,data:r,navigate:n,setModalData:i}=ny(),{initLoginWithSms:a}=nZ();async function o({qualifiedPhoneNumber:e}){try{await a(e),n(\"AWAITING_PASSWORDLESS_CODE\")}catch(e){i({errorModalData:{error:e,previousScreen:r?.errorModalData?.previousScreen||t||\"LINK_PHONE_SCREEN\"}}),n(\"ERROR_SCREEN\")}}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Connect your phone\",description:`Add your number to your ${e?.name} account`,icon:(0,m.jsx)(I.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"40px\",width:\"40px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(cq,{stacked:!0,onSubmit:o,hideRecent:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},LINK_WALLET_SCREEN:()=>{let{linkingOrConnectingHint:e}=nZ(),{app:t}=ny(),r=e?`Link the wallet with address ${tm(e)} ${t?.name?`to ${t.name}.`:\".\"}`:`Link a wallet to your ${t?.name} account`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ao,{title:\"Link your wallet\",description:r}),(0,m.jsx)(ix,{children:(0,m.jsx)(aH,{connectOnly:!1})}),(0,m.jsx)(iP,{})]})},LINK_PASSKEY_SCREEN:()=>{let{user:e,unlinkPasskey:t}=n$(),{linkWithPasskey:r,closePrivyModal:n}=nZ(),i=e?.linkedAccounts.filter(e=>\"passkey\"===e.type),[a,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(\"\"),[d,h]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{0===i.length&&p(!1)},[i.length]);let g=async e=>(s(!0),await t(e).then(()=>h(!0)).catch(e=>{if(e instanceof eV&&\"missing_or_invalid_mfa\"===e.privyErrorCode){c(\"Cannot unlink a passkey enrolled in MFA\");return}c(\"Unknown error occurred.\")}).finally(()=>{s(!1)}));return d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:()=>n()},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{status:\"success\",children:(0,m.jsx)(W.Z,{})})}),(0,m.jsx)(lv,{children:\"Passkey added\"}),(0,m.jsx)(lC,{children:\"From now on, you can use your passkey to log in.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:()=>n(),children:\"Done\"})}),(0,m.jsx)(iN,{})]}):u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>p(!1),onClose:()=>n()},\"header\"),(0,m.jsx)(lp,{passkeys:i,expanded:u,onUnlink:g,onExpand:()=>p(!0)}),(0,m.jsx)(iN,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:()=>n()},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsxs)(lg,{children:[(0,m.jsx)(lh,{}),(0,m.jsx)(lu,{})]})}),(0,m.jsx)(lv,{children:\"Secure your account with a passkey\"}),(0,m.jsx)(lb,{}),0===i.length?(0,m.jsx)(lm,{}):(0,m.jsx)(lp,{passkeys:i,expanded:u,onUnlink:g,onExpand:()=>p(!0)}),(0,m.jsxs)(iU,{style:{marginTop:\"12px\"},children:[l&&(0,m.jsx)(lf,{fail:!0,children:l}),(0,m.jsx)(n3,{onClick:()=>{s(!0),r().then(()=>h(!0)).catch(e=>{if(e instanceof eV){if(\"cannot_link_more_of_type\"===e.privyErrorCode){c(\"Cannot link more passkeys to account.\");return}if(\"passkey_not_allowed\"===e.privyErrorCode){c(\"Passkey request timed out or rejected by user.\");return}}c(\"Unknown error occurred.\")}).finally(()=>{s(!1)})},loading:a,children:\"Add new passkey\"})]}),(0,m.jsx)(iN,{})]})},UPDATE_EMAIL_SCREEN:()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Update your email\",description:\"Add the email address you'd like to use going forward. We'll send you a confirmation code\",icon:(0,m.jsx)(O.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(uh,{stacked:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}),UPDATE_PHONE_SCREEN:()=>{let{currentScreen:e,data:t,navigate:r,setModalData:n}=ny(),{user:i}=n$(),{initUpdatePhone:a}=nZ();async function o({qualifiedPhoneNumber:o}){try{if(!i?.phone?.number)throw Error(\"User is required to have an phone number to update it.\");await a(i?.phone?.number,o),r(\"AWAITING_PASSWORDLESS_CODE\")}catch(i){n({errorModalData:{error:i,previousScreen:t?.errorModalData?.previousScreen||e||\"LINK_PHONE_SCREEN\"}}),r(\"ERROR_SCREEN\")}}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ae,{}),(0,m.jsx)(as,{title:\"Update your phone number\",description:\"Add the phone number you'd like to use going forward. We'll send you a confirmation code\",icon:(0,m.jsx)(I.Z,{color:\"var(--privy-color-accent)\",strokeWidth:2,height:\"48px\",width:\"48px\"})}),(0,m.jsx)(i2,{children:(0,m.jsx)(cq,{stacked:!0,onSubmit:o,hideRecent:!0})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},CONNECT_ONLY_LANDING_SCREEN:()=>{let{app:e}=ny(),{linkingOrConnectingHint:t}=nZ(),r=t?`Connect the wallet with address ${tm(t)} ${e?.name?`to ${e.name}.`:\".\"}`:`Connect a wallet to ${e?.name}`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(aa,{title:\"Connect your wallet\",description:r}),(0,m.jsx)(ix,{children:(0,m.jsx)(aH,{connectOnly:!0})}),e&&(0,m.jsx)(iT,{app:e,alwaysShowImplicitConsent:!0}),(0,m.jsx)(iP,{})]})},CONNECT_ONLY_AUTHENTICATED_SCREEN:()=>{let{app:e}=ny(),{linkingOrConnectingHint:t}=nZ(),r=t?`Connect the wallet with address ${tm(t)} ${e?.name?`to ${e.name}.`:\".\"}`:`Connect a wallet to ${e?.name}`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(ao,{title:\"Connect your wallet\",description:r}),(0,m.jsx)(ix,{children:(0,m.jsx)(aH,{connectOnly:!0})}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN:()=>{let{app:e,setModalData:t,navigate:r,data:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),[a,s]=(0,o.useState)(\"\"),{embeddedWallets:l}=nh(),{authenticated:c}=n$(),{closePrivyModal:d}=nZ(),{onSuccess:h,onFailure:u,callAuthOnSuccessOnClose:p}=n.createWallet,g=e?.embeddedWallets.requireUserOwnedRecoveryOnCreate===!0,{createWallet:f}=oC(),[y,w]=(0,o.useState)(null),x=new tI(async()=>{try{let e=await f();if(!e)return;w(e),r(\"EMBEDDED_WALLET_CREATED_SCREEN\")}catch(e){s(e.message)}});return(0,o.useEffect)(()=>{if(!c){r(\"LANDING\"),u(Error(\"User must be authenticated before creating a Privy wallet\"));return}if(g)return t({...n,recoverySelection:{...n?.recoverySelection,isInAccountCreateFlow:!0}}),r(oi({walletAction:\"create\",showAutomaticRecovery:!1,availableRecoveryMethods:l.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:!1,isResettingPassword:!1}));x.execute()},[g,c]),i.current=()=>null,a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{closeable:!1}),(0,m.jsxs)(i6,{children:[(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Something went wrong\",description:a})]}),(0,m.jsx)(n3,{onClick:()=>{y?(h(y),d({shouldCallAuthOnSuccess:p})):(u(new e1(\"User wallet creation failed\")),d({shouldCallAuthOnSuccess:!1}))},children:\"Close\"}),(0,m.jsx)(ob,{})]}):(0,m.jsx)(a0,{})},EMBEDDED_WALLET_CREATED_SCREEN:()=>{let{user:e}=n$(),{closePrivyModal:t,isNewUserThisSession:r,updateWallets:n}=nZ(),{app:i,data:a,onUserCloseViaDialogOrKeybindRef:s}=ny(),{onSuccess:l,onFailure:c,callAuthOnSuccessOnClose:d}=a.createWallet,h=()=>{let r=rC(e);r?(n(),l(r)):c(Error(\"Failed to create wallet\")),t({shouldCallAuthOnSuccess:d})};return(0,o.useEffect)(()=>{let e=setTimeout(h,2500);return()=>clearTimeout(e)},[]),s.current=h,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:h}),(0,m.jsx)(ae,{}),(0,m.jsxs)(i6,{children:[(0,m.jsx)(W.Z,{fill:\"var(--privy-color-accent)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:r?`Welcome${i?.name?` to ${i?.name}`:\"\"}`:\"All set!\",description:r?\"You’ve successfully created an account.\":\"Your account is secured.\"})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_CONNECTING_SCREEN:()=>{let{authenticated:e,user:t,getAccessToken:r}=n$(),{closePrivyModal:n,createAnalyticsEvent:i,walletProxy:a}=nZ(),{navigate:s,data:l,setModalData:c,onUserCloseViaDialogOrKeybindRef:d}=ny(),h=(0,o.useMemo)(()=>Date.now(),[]),[u,p]=(0,o.useState)(!1),{onCompleteNavigateTo:g,onFailure:f,shouldForceMFA:y,address:w}=l?.connectWallet,x=e=>{u||(p(!0),f(\"string\"==typeof e?Error(e):e))};(0,o.useEffect)(()=>{let o=w?t?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&e.address===w):rC(t),d;return e&&o?a?((async()=>{let e=await r();if(!e)return x(\"User must be authenticated and have a Privy wallet before it can be connected\");try{await a.connect({accessToken:e,address:o.address}),y&&await a.verifyMfa({accessToken:e});let t=(Date.now()-h)/1e3;\"EMBEDDED_WALLET_KEY_EXPORT_SCREEN\"===g&&t<1?d=setTimeout(()=>{s(g,!1)},(1-t)*1e3):s(g,!1)}catch(e){if(a8(e)&&\"privy\"===o.recoveryMethod){let e=await r();if(!e)return x(\"User must be authenticated and have a Privy wallet before it can be recovered\");try{i({eventName:\"embedded_wallet_pinless_recovery_started\",payload:{walletAddress:o.address}}),(await a?.recover({address:o.address,accessToken:e,recoveryMethod:o.recoveryMethod}))?.address||x(Error(\"Unable to recover wallet\")),g?s(g):n({shouldCallAuthOnSuccess:!1}),i({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:o.address}}),s(g)}catch{x(\"An error has occurred, please try again.\")}}else a8(e)&&\"privy\"!==o.recoveryMethod?(c({...l,recoverWallet:{privyWallet:o,onCompleteNavigateTo:g,onFailure:f},recoveryOAuthStatus:{provider:o.recoveryMethod,action:\"recover\",isInAccountCreateFlow:!1}}),s(oa(o.recoveryMethod))):x(e)}})(),()=>clearTimeout(d)):void 0:x(\"User must be authenticated and have a Privy wallet before it can be connected\")},[e,t,a]);let v=()=>{x(\"User exited before wallet could be connected\"),n({shouldCallAuthOnSuccess:!1})};return d.current=v,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:v}),u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(i6,{children:[(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Something went wrong\",description:\"We’re on it. Please try again later.\"})]}),(0,m.jsx)(n3,{onClick:()=>n({shouldCallAuthOnSuccess:!1}),children:\"Close\"})]}):(0,m.jsx)(a0,{}),(0,m.jsx)(ol,{})]})},EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN:()=>{let[e,t]=(0,o.useState)(!0),{authenticated:r,getAccessToken:n}=n$(),{walletProxy:i,closePrivyModal:a,createAnalyticsEvent:s}=nZ(),{navigate:l,data:c,onUserCloseViaDialogOrKeybindRef:d}=ny(),[h,u]=(0,o.useState)(void 0),[p,g]=(0,o.useState)(\"\"),[f,y]=(0,o.useState)(!1),{privyWallet:w,onCompleteNavigateTo:x,onSuccess:v,onFailure:C}=c.recoverWallet,b=(e=\"User exited before their wallet could be recovered\")=>{a({shouldCallAuthOnSuccess:!1}),C(\"string\"==typeof e?new e1(e):e)};d.current=b,(0,o.useEffect)(()=>{if(!r||!w)return b(\"User must be authenticated and have a Privy wallet before it can be recovered\")},[r]);let _=e=>{e&&u(e)};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b}),(0,m.jsx)(ae,{}),(0,m.jsxs)(hc,{children:[(0,m.jsxs)(hl,{children:[(0,m.jsx)(eT.Z,{height:48,width:48,stroke:\"var(--privy-color-accent)\"}),(0,m.jsx)(\"h3\",{style:{color:\"var(--privy-color-foreground)\"},children:\"Enter your password\"}),(0,m.jsx)(\"p\",{style:{color:\"var(--privy-color-foreground-2)\"},children:\"Please provision your account on this new device. To continue, enter your recovery password.\"})]}),(0,m.jsxs)(\"div\",{children:[(0,m.jsxs)(oP,{children:[(0,m.jsx)(oS,{type:e?\"password\":\"text\",onChange:e=>_(e.target.value),disabled:f,style:{paddingRight:\"2.3rem\"}}),(0,m.jsx)(oI,{style:{right:\"0.75rem\"},children:e?(0,m.jsx)(oL,{onClick:()=>t(!1)}):(0,m.jsx)(oF,{onClick:()=>t(!0)})})]}),!!p&&(0,m.jsx)(hd,{children:p})]}),(0,m.jsxs)(\"div\",{children:[(0,m.jsxs)(i9,{children:[(0,m.jsx)(\"h4\",{children:\"Why is this necessary?\"}),(0,m.jsx)(\"p\",{children:\"You previously set a password for this wallet. This helps ensure only you can access it\"})]}),(0,m.jsx)(hh,{loading:f||!i,disabled:!h,onClick:async()=>{y(!0);let e=await n();if(!e||!w||null===h)return b(\"User must be authenticated and have a Privy wallet before it can be recovered\");try{s({eventName:\"embedded_wallet_recovery_started\",payload:{walletAddress:w.address}}),await i?.recover({address:w.address,accessToken:e,recoveryPin:h,recoveryMethod:w.recoveryMethod}),g(\"\"),x?l(x):a({shouldCallAuthOnSuccess:!1}),v?.(w),s({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:w.address}})}catch(e){a7(e)&&(\"invalid_recovery_pin\"===e.type||\"invalid_request_arguments\"===e.type)?g(\"Invalid recovery password, please try again.\"):g(\"An error has occurred, please try again.\")}finally{y(!1)}},warn:!1,hideAnimations:!w&&f,children:\"Recover your account\"})]})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN:()=>{let[e,t]=(0,o.useState)(!1),{navigate:r,lastScreen:n,navigateBack:i,setModalData:a,data:s,onUserCloseViaDialogOrKeybindRef:l}=ny(),{user:c}=n$(),{embeddedWallets:d}=nh(),{closePrivyModal:h}=nZ(),u=rC(c),p=null===u,{isInAccountCreateFlow:g,isResettingPassword:f}=s.recoverySelection,y=u&&\"privy\"!==u.recoveryMethod,w=y?(0,m.jsxs)(\"span\",{children:[\"Your account is currently secured using\",\" \",(0,m.jsx)(\"strong\",{children:hw[u?.recoveryMethod||\"user-passcode\"]}),\".\"]}):\"Select a method for logging in on new devices and recovering your account.\";function x(e){a({recoveryOAuthStatus:{provider:e,action:p?\"create-wallet\":\"set-recovery\",isInAccountCreateFlow:g}}),r(\"EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN\")}function v(){s?.setWalletPassword?.onFailure(Error(\"User exited set recovery flow\")),h({shouldCallAuthOnSuccess:s?.setWalletPassword?.callAuthOnSuccessOnClose??!1})}return l.current=v,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:v,backFn:e?()=>t(!1):n?i:void 0,infoFn:n||e?void 0:()=>t(!0)},\"header\"),e?(0,m.jsx)(hx,{onClose:()=>t(!1)}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(as,{title:y?\"Update backup method\":\"Secure your account\",icon:(0,m.jsx)(eR.Z,{width:48}),description:w}),(0,m.jsx)(hm,{children:d.userOwnedRecoveryOptions.filter(e=>![\"icloud\",\"google-drive\"].includes(u?.recoveryMethod||\"\")||e!==u?.recoveryMethod).sort().map(e=>{switch(e){case\"google-drive\":return(0,m.jsxs)(i_,{onClick:()=>x(\"google-drive\"),children:[(0,m.jsx)(hy,{children:(0,m.jsx)(hp,{style:{width:18}})}),\"Back up to Google Drive\"]},e);case\"icloud\":return(0,m.jsxs)(i_,{onClick:()=>x(\"icloud\"),children:[(0,m.jsx)(hy,{children:(0,m.jsx)(hu,{style:{width:24}})}),\"Back up to Apple iCloud\"]},e);case\"user-passcode\":return(0,m.jsxs)(i_,{onClick:()=>{r(on({isCreatingWallet:p,skipSplashScreen:!0}))},children:[(0,m.jsx)(hy,{children:(0,m.jsx)(eM.Z,{style:{width:18}})}),f?\"Reset your\":\"Set a\",\" password\"]},e);default:return null}})})]}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN:()=>{let{user:e,getAccessToken:t}=n$(),r=rC(e),{walletProxy:n,refreshUser:i,closePrivyModal:a}=nZ(),s=nh(),l=ny(),[c,d]=(0,o.useState)(!1),[h,u]=(0,o.useState)(null),[p,g]=(0,o.useState)(null);function f(){if(!c){if(p){l.data?.setWalletPassword?.onFailure(p),a();return}if(!h){l.data?.setWalletPassword?.onFailure(Error(\"User exited set recovery flow\")),a();return}}}async function y(){d(!0);try{let e=await t();if(!e||!n||!r)return;if(!(await n.setRecovery({recoveryMethod:\"privy\",address:r.address,accessToken:e})).address)throw Error(\"Unable to set recovery on wallet\");let o=await i();if(!o)throw Error(\"Unable to set recovery on wallet\");let s=rC(o);if(!s)throw Error(\"Unabled to set recovery on wallet\");u(!!o),setTimeout(()=>{l.data?.setWalletPassword?.onSuccess(s),a()},1400)}catch(e){g(e)}finally{d(!1)}}l.onUserCloseViaDialogOrKeybindRef.current=f;let w=!!(c||h);return p?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:f},\"header\"),(0,m.jsx)(hv,{$color:\"var(--privy-color-error)\",style:{alignSelf:\"center\"},children:(0,m.jsx)(U.Z,{height:38,width:38,stroke:\"var(--privy-color-error)\"})}),(0,m.jsx)(hC,{style:{marginTop:\"0.5rem\"},children:\"Something went wrong\"}),(0,m.jsx)(iy,{style:{minHeight:\"2rem\"}}),(0,m.jsx)(n4,{onClick:()=>g(null),children:\"Try again\"}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:f},\"header\"),(0,m.jsx)(eR.Z,{style:{width:\"3rem\",height:\"3rem\",alignSelf:\"center\"}}),(0,m.jsx)(hC,{style:{marginTop:\"0.5rem\"},children:\"Automatically secure your account\"}),(0,m.jsx)(cg,{style:{marginTop:\"1rem\"},children:\"When you log into a new device, you’ll only need to authenticate to access your account. Never get logged out if you forget your password.\"}),(0,m.jsx)(iy,{style:{minHeight:\"2rem\"}}),(0,m.jsx)(n4,{loading:c,disabled:w,onClick:()=>y(),children:h?\"Success\":\"Confirm\"}),(0,m.jsx)(n2,{disabled:w,onClick:()=>{let e=oi({walletAction:\"update\",availableRecoveryMethods:s.embeddedWallets.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:!1,isResettingPassword:r?.recoveryMethod===\"user-passcode\",showAutomaticRecovery:!1});l.navigate(e)},style:{marginTop:\"0.5rem\"},children:\"More recovery options\"}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN:()=>{let{logout:e}=n$(),{navigate:t,setModalData:r,data:n}=ny(),{recoveryOAuthFlow:i,closePrivyModal:a,createAnalyticsEvent:s}=nZ(),[l,c]=(0,o.useState)(!1),{provider:d,action:h,isInAccountCreateFlow:u}=n?.recoveryOAuthStatus,[p,g]=(0,o.useState)(void 0),[f,y]=(0,o.useState)(\"create-wallet\"===h);if(\"user-passcode\"===d)throw Error(\"RecoveryOAuthScreen should never be called with a wallet that specifies recoveryMethod: `user-passcode`\");let w=hf[d].name,x=hf[d].component,v=n?.recoverWallet?.onCompleteNavigateTo,C=new tI(async(e=\"create-wallet\")=>(y(!0),new Promise((t,r)=>{setTimeout(async()=>{try{let r=window.open();await i(d,e,r),c(!0),t()}catch{g({message:`${\"recover\"===e?\"Recovery\":\"Back up\"} with ${w} unsuccessful`,detail:\"recover\"===h?`Please verify that you are selecting the ${w} account associated with your backup.`:\"\",retryable:!0}),r()}},0)})));(0,o.useEffect)(()=>{\"recover\"!==h&&C.execute(u?\"create-wallet\":\"set-recovery\")},[]),(0,o.useEffect)(()=>{if(!l)return;let n=setTimeout(()=>{u?(r({createWallet:{onSuccess:()=>{},onFailure:t=>{s({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:t,screen:\"RecoveryOAuthScreen\"}}),e()},callAuthOnSuccessOnClose:!0}}),t(\"EMBEDDED_WALLET_CREATED_SCREEN\")):a({shouldCallAuthOnSuccess:!1})},1400);return()=>clearTimeout(n)},[l]);let b=(0,o.useCallback)(async()=>{await C.execute(\"recover\"),v?t(v):c(!0)},[]),_=\"google-drive\"===d?\"Google Drive\":\"Apple iCloud\",j=l&&`Successfully ${\"recover\"===h?\"recovered\":\"backed up\"} with ${_}.`||p&&p.message||`${\"recover\"===h?\"Recovering\":\"Backing up\"} with ${_}...`,k=p?p.detail:\"\";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),f?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(hm,{children:[(0,m.jsx)(as,{title:j,icon:(0,m.jsx)(x,{style:{width:\"38px\",height:\"38px\"}}),description:k}),p&&p?.retryable?(0,m.jsx)(n3,{onClick:()=>{rd(),g(void 0),\"create-wallet\"===h?C.execute(\"create-wallet\"):b()},disabled:!l&&!p?.retryable,children:\"Try again\"}):null]})}):(0,m.jsxs)(hm,{children:[(0,m.jsx)(as,{title:\"Confirm it's really you\",icon:(0,m.jsx)(x,{style:{height:42,width:48}}),description:`To confirm your identity, please log in to ${_} where your account is backed up.`}),(0,m.jsxs)(n3,{onClick:b,children:[\"Confirm with \",_]})]}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_KEY_EXPORT_SCREEN:()=>{let[e,t]=(0,o.useState)(null),{authenticated:r,user:n,getAccessToken:i}=n$(),{closePrivyModal:a,createAnalyticsEvent:s,clientAnalyticsId:l}=nZ(),{data:c,onUserCloseViaDialogOrKeybindRef:d}=ny(),h=rC(n),{onFailure:u,onSuccess:p,origin:g,appId:f,appClientId:y}=c.keyExport,w=e=>{a({shouldCallAuthOnSuccess:!1}),u(\"string\"==typeof e?Error(e):e)},x=()=>{a({shouldCallAuthOnSuccess:!1}),p(),s({eventName:\"embedded_wallet_key_export_completed\",payload:{walletAddress:h?.address}})};return(0,o.useEffect)(()=>{if(!r||!h)return w(\"User must be authenticated before exporting their wallet\");i().then(t,w)},[r,n]),d.current=x,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:x}),(0,m.jsxs)(op,{children:[(0,m.jsx)(as,{title:\"Transfer wallet\",description:(0,m.jsxs)(om,{children:[\"Either copy your private key or seed phrase to transfer your wallet.\",\" \",(0,m.jsx)(\"a\",{href:\"https://privy-io.notion.site/Transferring-your-account-9dab9e16c6034a7ab1ff7fa479b02828\",target:\"blank\",rel:\"noopener noreferrer\",children:\"Learn more\"})]})}),(0,m.jsxs)(og,{children:[(0,m.jsx)(U.Z,{color:\"var(--privy-color-warn)\"}),(0,m.jsx)(\"p\",{children:\"Never share your private key or seed phrase with anyone.\"})]}),(0,m.jsx)(of,{children:(0,m.jsx)(ow,{children:(0,m.jsxs)(oc,{children:[(0,m.jsx)(od,{children:\"Your wallet\"}),(0,m.jsxs)(oy,{children:[tm(h?.address,4,4),(0,m.jsx)(oh,{address:h?.address??\"\"})]})]})})}),(0,m.jsx)(\"div\",{style:{width:\"100%\"},children:e&&!!h&&(0,m.jsx)(ou,{origin:g,appId:f,appClientId:y,accessToken:e,clientAnalyticsId:l,wallet:h,dimensions:{height:\"44px\"}})})]}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_SIGN_REQUEST_SCREEN:()=>{let{authenticated:e}=n$(),{initializeWalletProxy:t,closePrivyModal:r}=nZ(),{navigate:n,data:i,onUserCloseViaDialogOrKeybindRef:a}=ny(),[s,l]=(0,o.useState)(!0),[c,h]=(0,o.useState)(\"\"),[u,p]=(0,o.useState)(),[g,f]=(0,o.useState)(null),[y,w]=(0,o.useState)(!1),x=null!==g;(0,o.useEffect)(()=>{e||n(\"LANDING\")},[e]),(0,o.useEffect)(()=>{t(3e4).then(e=>{l(!1),e||(h(\"An error has occurred, please try again.\"),p(new rW(new rI(c,d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))))})},[]);let{method:v,data:C,confirmAndSign:b,onSuccess:_,onFailure:j,uiOptions:k}=i.signMessage,E={title:k.title||\"Sign message\",description:k.description||\"Signing this message will not cost you any fees.\",buttonText:k.buttonText||\"Sign and continue\"},A=e=>{e?_(e):j(u||new rW(new rI(\"The user rejected the request.\",d.M_.E4001_USER_REJECTED_REQUEST.eipCode))),r({shouldCallAuthOnSuccess:!1}),setTimeout(()=>{f(null),h(\"\"),p(void 0)},200)};return a.current=()=>{A(g)},(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:()=>A(g)}),(0,m.jsx)(ae,{}),k.iconUrl&&\"string\"==typeof k.iconUrl?(0,m.jsx)(ul,{children:(0,m.jsx)(d8,{size:\"sm\",src:k.iconUrl,alt:\"app image\"})}):null,(0,m.jsx)(hC,{children:E.title}),(0,m.jsx)(cg,{children:E.description}),\"personal_sign\"===v&&(0,m.jsx)(ui,{children:ue(C)}),\"eth_signTypedData_v4\"===v&&(0,m.jsx)(un,{typedData:C}),\"solana_signMessage\"===v&&(0,m.jsx)(ui,{children:C}),(0,m.jsx)(uc,{}),(0,m.jsx)(uo,{fail:!0,children:c}),(0,m.jsx)(n4,{disabled:y||x||s,loading:y,onClick:async()=>{w(!0),h(\"\");try{let e=await b();f(e),w(!1),setTimeout(()=>{A(e)},1400)}catch(e){console.error(e),h(\"An error has occurred, please try again.\"),p(new rW(new rI(c,d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))),w(!1)}},children:y?\"Signing...\":x?(0,m.jsxs)(us,{children:[(0,m.jsx)(ss,{style:{height:\"0.9rem\",width:\"0.9rem\"},strokeWidth:2}),\" \",(0,m.jsx)(\"span\",{children:\"Success\"})]}):E.buttonText}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN:()=>{let{data:e,onUserCloseViaDialogOrKeybindRef:t,setModalData:r,navigate:i}=ny(),{rpcConfig:a,chains:s,closePrivyModal:l,walletProxy:c}=nZ(),{getAccessToken:h,user:u}=n$(),{wallets:p}=sH(),g=nh(),[f,y]=(0,o.useState)(e?.sendTransaction?.transactionRequest),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)(!1),[b,_]=(0,o.useState)(null),[j,k]=(0,o.useState)(null);if(!f||!e?.sendTransaction)return(0,m.jsx)(si,{error:Error(\"Invalid transaction request\"),onClick:()=>{e?.sendTransaction?.onFailure(h9),l({shouldCallAuthOnSuccess:!1})}});let E=(0,o.useMemo)(()=>f.from?p.find(e=>(0,n.Kn)(e.address)===(0,n.Kn)(f.from)):rC(u),[f.from]),A=(0,o.useMemo)(()=>s.find(e=>Number(e.id)===Number(f.chainId)),[f.chainId]),S=A?.nativeCurrency.symbol??\"ETH\",{action:T,amount:P,spender:N,isErc20Ish:R}=(0,o.useMemo)(()=>h3(f.data),[f.data]);(0,o.useEffect)(()=>{f.to&&A&&R&&h2({amount:P,address:f.to,chain:A,rpcConfig:g.rpcConfig,privyAppId:g.id}).then(x).catch(console.error)},[f.to,P,A]);let{tokenPrice:M,isTokenPriceLoading:O}=sz(f),I=(0,o.useMemo)(()=>tk(Number(f.chainId),s,a,{appId:g.id}),[f.chainId,a]),W=h8(f,I),L=()=>{if(!v)return b?e?.sendTransaction?.onSuccess(b.response):j||W?.errors[0]?e?.sendTransaction?.onFailure(j??W?.errors[0]??h9):e?.sendTransaction?.onFailure(new rW(new rI(\"The user rejected the request\",d.M_.E4001_USER_REJECTED_REQUEST.eipCode))),l({shouldCallAuthOnSuccess:!1})};t.current=L;let F=async()=>{C(!0);try{let t=await h();if(v||!t||!E||!c)return;let r=await sU(t,E.address,c,W?.tx??f,I,e.sendTransaction?.requesterAppId),n=await r.wait();_({receipt:sZ(n),response:r})}catch(e){console.warn({transaction:W?.tx??f,error:e}),k(e)}finally{C(!1)}},U=async()=>{if(!rC(u))return;if(!g.fundingConfig||0===g.fundingConfig.methods.length||!e.funding)throw Error(\"Funding wallet is not enabled\");let t=hk({fundingMethods:g.fundingConfig?.methods});r({...e,funding:{...e?.funding,methodScreen:t}}),i(t)},D=\"fiat-currency\"===g.embeddedWallets.priceDisplay.primary,Z=(0,en.uq)(W?.tx.value??0).add((0,en.uq)(W?.totalGasEstimate?.toBigInt()??0)).toHexString(),z=sY(Z,S),$=D&&M?sK(Z,M):void 0,H=sY(W?.totalGasEstimate?.toString()??0,S),B=D&&M?sK(W?.totalGasEstimate?.toString()??0,M):void 0,q=sY(W?.balance?.toString()??0,S,void 0,!0),V=D&&M?sK(W?.balance?.toString()??0,M):void 0,G=e.sendTransaction?.uiOptions?.transactionInfo?.title||(\"approve\"===T?\"Confirm address\":`Approve ${T}`),K=e.sendTransaction?.uiOptions?.description||`${g.name} wants your permission to approve the following transaction.`,Y=e.sendTransaction?.uiOptions?.transactionInfo?.contractInfo?.imgUrl?(0,m.jsx)(\"img\",{src:e.sendTransaction.uiOptions.transactionInfo.contractInfo.imgUrl,alt:e.sendTransaction.uiOptions.transactionInfo.contractInfo.imgAltText}):null,Q=W&&!W.errors[0]&&!W.hasFunds&&g.fundingConfig&&g.fundingConfig.methods.length>0,X=Q?\"Add funds\":e.sendTransaction?.uiOptions?.buttonText||\"Approve\";return b?.receipt?(0,m.jsx)(hX,{txn:W?.tx??f,onClose:L,receipt:b.receipt,transactionInfo:e.sendTransaction?.uiOptions.transactionInfo,tokenPrice:M,tokenSymbol:S,l1GasEstimate:W?.l1ExecutionFeeEstimate?.toString(),receiptHeader:e.sendTransaction?.uiOptions.successHeader,receiptDescription:e.sendTransaction?.uiOptions.successDescription}):j?(0,m.jsx)(hW,{transactionError:j,chainId:W?.tx.chainId??f.chainId,onClose:L,onRetry:({resetNonce:e})=>{k(null);let t={...W?.tx??f};e&&(t.nonce=void 0),y(t)}}):(0,m.jsx)(hE,{isSubmitting:v,submitError:j,isPreparing:!W,isTokenPriceLoading:O,isTokenContractInfoLoading:!w,prepareError:W?.errors[0],symbol:w?.symbol,chain:A,img:Y,title:G,subtitle:K,spender:N,total:f.value?$??z:void 0,fee:B??H,to:f.to,network:g.chains.find(e=>e.id===f.chainId)?.name??\"\",from:E?.address??\"\",cta:X,hasFunds:W?.hasFunds,action:T,balance:V??q,amount:w?.value??P,onClose:L,onClick:Q?U:F})},FUNDING_METHOD_SELECTION_SCREEN:()=>{let{wallets:e}=sH(),{app:t,navigate:r,data:i,setModalData:a}=ny(),s=i?.funding,l=(0,o.useRef)(null),[c,d]=(0,o.useState)(!1);(0,o.useEffect)(()=>{l.current&&l.current.style.setProperty(\"--funding-input-length\",Math.max(s.amount.length,1).toString())},[s.amount]);let h=t.fundingConfig?.methods.slice()??[],{tokenPrice:u}=sz({chainId:s.chain.id}),p=u?sG(s.amount,u):void 0,g=e.find(e=>(0,n.Kn)(e.address)===(0,n.Kn)(s.address)),f=g&&\"privy\"!==g.walletClientType?aS(g.walletClientType,g.connectorType,g.walletClientType):t.name,y=parseFloat(s.amount),w=!isNaN(y)&&y>0;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsxs)(\"h3\",{children:[\"Add funds to your\",\" \",f?.toLowerCase().endsWith(\"wallet\")?f:f+\" wallet\"]}),(0,m.jsx)(i7,{style:{marginTop:\"32px\"},children:(0,m.jsxs)(lN,{children:[(0,m.jsxs)(lR,{onClick:()=>l.current?.focus(),children:[(0,m.jsx)(lO,{ref:l,value:s.amount,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{let t=e.target.value;/^[0-9.]*$/.test(t)&&t.split(\".\").length-1<=1&&a({...i,funding:{...s,amount:t}})}}),(0,m.jsx)(lW,{children:s.chain.nativeCurrency.symbol}),!c&&(0,m.jsx)(lI,{children:(0,m.jsx)(eo.Z,{width:12,height:12})})]}),(0,m.jsx)(lL,{children:p&&w?p:\"\"})]})}),(0,m.jsxs)(lT,{children:[s.errorMessage&&(0,m.jsx)(ll,{children:s.errorMessage}),h.sort().map(e=>{switch(e){case\"moonpay\":return(0,m.jsxs)(i_,{disabled:!w,onClick:()=>{r(\"MOONPAY_PROMPT_SCREEN\")},children:[(0,m.jsx)(lP,{children:(0,m.jsx)(ld,{style:{width:24}})}),\"Moonpay\"]},e);case\"coinbase-onramp\":return s8(Number(s.chain.id))?(0,m.jsxs)(i_,{disabled:!w,onClick:()=>{r(\"COINBASE_ONRAMP_STATUS_SCREEN\")},children:[(0,m.jsx)(lP,{children:(0,m.jsx)(rT,{style:{width:24}})}),\"Coinbase Onramp\"]},e):null;case\"external\":return(0,m.jsxs)(i_,{disabled:!w,onClick:()=>{r(\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\")},children:[(0,m.jsx)(lP,{children:(0,m.jsx)(F.Z,{style:{width:24}})}),\"Transfer from wallet\"]},e)}}),(0,m.jsx)(lU,{disabled:!w,onClick:()=>r(\"FUNDING_MANUAL_TRANSFER_SCREEN\"),children:\"Send funds manually\"})]}),(0,m.jsx)(iP,{})]})},MOONPAY_PROMPT_SCREEN:()=>{let{app:e,data:t,navigate:r,setModalData:n}=ny(),{createAnalyticsEvent:i,getMoonpaySignedUrl:a}=nZ(),[s,l]=(0,o.useState)(null),c=t?.funding;return(0,o.useEffect)(()=>{!s&&c&&r();async function r(){if(!e.fundingConfig)return;let{signedUrl:r,externalTransactionId:i}=await a(c.address,{...e.fundingMethodConfig.moonpay,...c.moonpayConfigOverride,currencyCode:c.moonpayConfigOverride?.currencyCode??function(e){switch(e){case\"eip155:42161\":return\"ETH_ARBITRUM\";case\"eip155:43114\":return\"AVAX_CCHAIN\";case\"eip155:8453\":return\"ETH_BASE\";case\"eip155:42220\":return\"CELO_CELO\";case\"eip155:137\":return\"MATIC_POLYGON\";case\"eip155:1\":return\"ETH_ETHEREUM\";default:return console.warn(`Chain ${e} not supported by Moonpay, defaulting to Ethereum mainnet`),\"ETH_ETHEREUM\"}}(`eip155:${c.chain.id}`),quoteCurrencyAmount:c.moonpayConfigOverride?.quoteCurrencyAmount??parseFloat(c.amount)});l(r),n({moonpayStatus:{externalTransactionId:i},funding:t?.funding})}},[s,c]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(l3,{app:e,signedUrl:s,onContinue:()=>{i({eventName:\"sdk_fiat_on_ramp_started\",payload:{provider:ci}}),r(\"MOONPAY_STATUS_SCREEN\")}}),(0,m.jsx)(iP,{})]})},MOONPAY_STATUS_SCREEN:()=>{let{app:e,data:t}=ny(),{closePrivyModal:r}=nZ(),{externalTransactionId:n}=t?.moonpayStatus,i=function(e,t=!1){let[r,n]=(0,o.useState)(null),{createAnalyticsEvent:i}=nZ(),{data:a,navigate:s,setModalData:l}=ny(),c=a?.funding,d=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let r=setInterval(async()=>{if(e)try{let[a]=await cs(e,t),o=\"waitingAuthorization\"===a.status&&\"credit_debit_card\"===a.paymentMethod?\"pending\":a.status;if([\"failed\",\"completed\",\"awaitingAuthorization\"].includes(o)&&(i({eventName:s6,payload:{status:o,provider:ci,paymentMethod:a.paymentMethod,cardPaymentType:a.cardPaymentType,currency:a.currency?.code,baseCurrencyAmount:a.baseCurrencyAmount,quoteCurrencyAmount:a.quoteCurrencyAmount,feeAmount:a.feeAmount,extraFeeAmount:a.extraFeeAmount,networkFeeAmount:a.networkFeeAmount}}),clearInterval(r)),\"failed\"===o||\"serviceFailure\"===o){l({funding:{...c,errorMessage:\"Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet.\"}}),s(\"FUNDING_METHOD_SELECTION_SCREEN\");return}n(o)}catch(e){e.response?.status!==404&&(d.current+=1),d.current>=3&&(i({eventName:s6,payload:{status:\"serviceFailure\",provider:ci}}),clearInterval(r),l({funding:{...c,errorMessage:\"Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet.\"}}),s(\"FUNDING_METHOD_SELECTION_SCREEN\"))}},3e3);return()=>clearInterval(r)},[e,d]),r}(n||null,e.fundingMethodConfig.moonpay.useSandbox??!1);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:\"Fund account\"},\"header\"),(0,m.jsx)(cc,{status:i,onClickCta:r}),(0,m.jsx)(iP,{})]})},COINBASE_ONRAMP_STATUS_SCREEN:()=>{let{data:e,setModalData:t,navigate:r}=ny(),{closePrivyModal:n,createAnalyticsEvent:i,initCoinbaseOnRamp:a,getCoinbaseOnRampStatus:s}=nZ(),l=e?.funding,[c,d]=(0,o.useState)(!1),[h,u]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(c)return;d(!0);let e=async()=>{try{i({eventName:\"sdk_fiat_on_ramp_started\",payload:{provider:\"coinbase-onramp\"}});let e=window.open(void 0,void 0,s5({w:440,h:680})),t=function(e){let t=s7[e];if(!t)throw new eK(`Unsupported chainId: ${e} for Coinbase Onramp`);return t}(l.chain.id),r=await a({addresses:[{address:l.address,blockchains:[t]}]}),{url:n}=s9({input:r,amount:l.amount,blockchain:t});if(!e)throw Error(\"Unable to initiate Coinbase Onramp flow.\");e.location=n.toString();let o=0,c=!1;for(;o<le;){o++;let{status:t}=await s({partnerUserId:r.partner_user_id});if(\"success\"===t){c=!0;break}if(\"failure\"===t)throw Error(\"There was an error completing Coinbase Onramp flow.\");if(e.closed)throw Error(\"User exited Coinbase Onramp flow before transaction response.\");await new Promise(e=>setTimeout(e,1500))}if(!c)throw Error(\"Timed out waiting for transaction response from Coinbase Onramp.\");i({eventName:s6,payload:{status:\"success\",provider:\"coinbase-onramp\"}}),u(!0)}catch(e){console.error(e),i({eventName:s6,payload:{status:\"failure\",provider:\"coinbase-onramp\",error:e.message}}),t({funding:{...l,errorMessage:\"Something went wrong adding funds from Coinbase Onramp. Please try again or use another method to fund your wallet.\"}}),r(\"FUNDING_METHOD_SELECTION_SCREEN\")}finally{d(!1)}},n=setTimeout(()=>void e(),500);return()=>clearTimeout(n)},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{title:\"Fund account\"},\"header\"),(0,m.jsx)(lr,{isSucccess:h,onClickCta:n}),(0,m.jsx)(iP,{})]})},FUNDING_TRANSFER_FROM_WALLET_SCREEN:()=>{let{connectors:e}=nZ(),{app:t,setModalData:r,data:n,navigate:i}=ny(),[a,s]=(0,o.useState)(\"default\"),l=aB(t.appearance.walletList,e,!0,t.appearance.walletList,t.externalWallets.walletConnect.enabled),c=(0,m.jsx)(cx,{text:\"More wallets\",onClick:()=>s(\"overflow\")});return(0,o.useEffect)(()=>{r({...n,externalConnectWallet:{onCompleteNavigateTo:\"FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN\"}})},[]),\"overflow\"===a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>s(\"default\")},\"header\"),(0,m.jsxs)(ix,{children:[(0,m.jsx)(cg,{style:{color:\"var(--privy-color-foreground-3)\",textAlign:\"left\"},children:\"More wallets\"}),l]}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(as,{title:\"Transfer from wallet\",description:\"Connect a wallet to deposit funds or send funds manually to your wallet address.\"}),(0,m.jsxs)(ix,{children:[...l.length>3?l.slice(0,2):l,l.length>3&&c,(0,m.jsx)(cw,{onClick:()=>i(\"FUNDING_MANUAL_TRANSFER_SCREEN\"),children:\"Send funds manually\"})]}),(0,m.jsx)(iP,{})]})},FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN:()=>{let{chains:e,rpcConfig:t,appId:r,closePrivyModal:n}=nZ(),{navigate:i,setModalData:a,app:s,data:d}=ny(),[h,u]=(0,o.useState)(null),[p,g]=(0,o.useState)(null),[f,y]=(0,o.useState)(null),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)(!1),b=d?.funding&&(0,et.vz)(d.funding.amount,\"ether\").toHexString(),_=d?.funding&&d.funding.chain.id,{wallets:j}=sH(),{tokenPrice:k,isTokenPriceLoading:E}=sz({chainId:h?.chainId&&sB(h.chainId)?sB(h.chainId):void 0}),A=async e=>{for(let t of e)_&&sB(t.chainId)!==_&&await t.switchChain(_)},S=new tI(async()=>{let n=j[0];if(!n){console.error(\"Connected wallet wasn't found.\"),i(\"ERROR_SCREEN\",!1);return}if(u(n),!_){console.error(`Chain ID not found for input ${d?.funding?.chain.id}.`),i(\"ERROR_SCREEN\",!1);return}let a=d?.funding?.address;if(!a){console.error(\"Address to fund not found.\"),i(\"ERROR_SCREEN\",!1);return}g(a);let o=tk(_,e,t,{appId:r}),s={from:n.address,to:p||void 0,value:b,chainId:_},h=await (0,l.vT)(n.address,s,o),{totalGasEstimate:m}=await (0,c.gM)(h,o),{balance:f,hasSufficientFunds:w}=await sD(n.address,h,m,o);if(x({gas:m.toHexString(),balance:f.toHexString()}),!w){y(new eK(`Wallet ${tm(n.address)} does not have enough funds.`,void 0,\"insufficient_balance\"));return}await A([n]);try{let e=await (await n.getEthersProvider()).getSigner(),{wait:t}=await e.sendTransaction(h);await t(1),C(!0)}catch(e){y(e)}});(0,o.useEffect)(()=>{S.execute()},[]),(0,o.useEffect)(()=>{f&&(a({funding:d?.funding,sendTransaction:d?.sendTransaction,errorModalData:{error:f,previousScreen:\"FUNDING_TRANSFER_FROM_WALLET_SCREEN\"}}),i(\"ERROR_SCREEN\",!1))},[f]);let T=h?aS(h.walletClientType,h.connectorType,h.walletClientType)||\"wallet\":null,P=!h||!w||E||!d?.funding||!b,N=P?void 0:sQ([w.gas,b]),R=N&&k?sK(N,k):void 0,M=N?sY(N,\"ETH\"):void 0,O=w&&k?sK(w.gas,k):void 0,I=w?sY(w.gas,\"ETH\"):void 0;return(0,o.useEffect)(()=>{if(!v)return;let e=setTimeout(n,2500);return()=>clearTimeout(e)},[v]),P?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(sN,{}),(0,m.jsx)(\"div\",{style:{marginTop:\"1rem\"}}),(0,m.jsx)(iP,{})]}):v?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(ae,{}),(0,m.jsxs)(i6,{children:[(0,m.jsx)(er.Z,{color:\"var(--privy-color-success)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(as,{title:\"Success!\",description:`You\\u2019ve successfully added ${(0,et.bM)(b,\"ether\")} ETH to your ${s.name} wallet. It may take a minute before the funds are available to use.`})]}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(sN,{}),(0,m.jsx)(i3,{style:{marginTop:\"16px\"},children:(0,m.jsx)(aC,{icon:aT(h.walletClientType,h.connectorType,h.walletClientType),name:h.walletClientType})}),(0,m.jsx)(as,{style:{marginTop:\"8px\",marginBottom:\"12px\"},title:`Confirming with ${T}`}),w&&p&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(sW,{children:[(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Total\"}),(0,m.jsx)(sF,{children:R||M})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"To\"}),(0,m.jsx)(sF,{children:tm(p)})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Network\"}),(0,m.jsx)(sF,{children:(0,m.jsxs)(sJ,{children:[aP(d.funding.chain.id),\" \",d.funding.chain.name]})})]}),(0,m.jsxs)(sL,{children:[(0,m.jsx)(od,{children:\"Estimated fee\"}),(0,m.jsx)(sF,{children:O||I})]})]})}),(0,m.jsx)(an,{height:24}),(0,m.jsx)(iP,{})]})},FUNDING_MANUAL_TRANSFER_SCREEN:()=>{let{wallets:e}=sH(),{app:t,data:r,setModalData:n,navigate:i,lastScreen:a}=ny(),{chains:s,rpcConfig:l,appId:c,closePrivyModal:d}=nZ(),[h,u]=(0,o.useState)(\"default\"),[p,g]=(0,o.useState)(void 0),f=r?.funding,{tokenPrice:y}=sz({chainId:f.chain.id}),w=y?sG(f.amount,y):void 0,x=e.find(e=>tm(e.address)===tm(f.address)),v=x&&\"privy\"!==x.walletClientType?aS(x.walletClientType,x.connectorType,x.walletClientType):t.name;if(!f)return n({errorModalData:{error:Error(\"Couldn't find funding config\"),previousScreen:a||\"FUNDING_METHOD_SELECTION_SCREEN\"},funding:r?.funding,sendTransaction:r?.sendTransaction}),i(\"ERROR_SCREEN\"),(0,m.jsx)(m.Fragment,{});(0,o.useEffect)(()=>{let e=tk(f.chain.id,s,l,{appId:c});function t(){e.getBalance(f.address).then(e=>g(parseFloat((0,et.bM)(e,\"ether\")))).catch(()=>g(void 0))}let r=setInterval(t,2e3);return t(),()=>clearInterval(r)},[]);let C=(0,o.useMemo)(()=>void 0!==p&&p>=parseFloat(f.amount),[p,f.amount]),b=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(lq,{title:\"Your wallet\",errMsg:void 0,isLoading:!f||void 0===p,isPulsing:!C,balance:`${void 0!==p?p.toPrecision(2):\"\"} ETH`,address:f.address,statusColor:C?\"green\":\"gray\"}),C&&(0,m.jsx)(lZ,{onClick:()=>d(),children:\"Close\"})]});return\"qr-code\"===h?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:()=>u(\"default\")}),(0,m.jsxs)(i7,{style:{gap:\"24px\",marginBottom:\"24px\"},children:[(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(iM,{children:\"Scan QR code\"}),(0,m.jsxs)(iO,{children:[\"Scan this code using your mobile wallet to send funds to your \",v,\" \",\"wallet.\"]})]}),(0,m.jsx)(sb,{url:f.address,size:200,squareLogoElement:lG}),b]}),(0,m.jsx)(iP,{})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(sP,{}),(0,m.jsx)(as,{title:\"Send funds\",description:\"Send funds directly to your wallet by copying your wallet address or scanning a QR code.\"}),(0,m.jsxs)(i7,{style:{gap:\"16px\"},children:[(0,m.jsxs)(lQ,{children:[(0,m.jsx)(ed.Z,{height:\"20px\",width:\"20px\",color:\"var(--privy-color-accent-light)\"}),(0,m.jsxs)(lX,{children:[\"Make sure to send on \",f.chain.name,\".\"]})]}),(0,m.jsxs)(lJ,{children:[(0,m.jsx)(an,{height:16}),(0,m.jsxs)(lN,{children:[(0,m.jsxs)(lR,{children:[(0,m.jsx)(lM,{children:f.amount}),(0,m.jsx)(lW,{children:f.chain.nativeCurrency.symbol})]}),(0,m.jsx)(lL,{children:w?`${w} USD`:\"...\"}),(0,m.jsxs)(lF,{children:[aP(f.chain.id),f.chain.name]})]}),(0,m.jsx)(an,{height:8}),(0,m.jsxs)(lY,{children:[(0,m.jsx)(lK,{text:f.address}),(0,m.jsx)(l1,{onClick:()=>u(\"qr-code\"),children:(0,m.jsxs)(l0,{children:[(0,m.jsx)(eh.Z,{height:\"16px\",width:\"16px\"}),\"Scan code\"]})})]})]}),b]}),(0,m.jsx)(an,{height:16}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN:()=>{let{closePrivyModal:e}=nZ(),{data:t,setModalData:r,navigate:n,onUserCloseViaDialogOrKeybindRef:i}=ny(),{onSuccess:a,onFailure:o}=t.setWalletPassword,s=()=>{o(new e1(\"Exited before password was added to wallet\")),e({shouldCallAuthOnSuccess:!1})};return i.current=s,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:s}),(0,m.jsx)(ae,{}),(0,m.jsxs)(i6,{children:[(0,m.jsxs)(ar,{children:[(0,m.jsx)(X.Z,{stroke:\"var(--privy-color-accent)\",width:\"64px\",height:\"64px\"}),(0,m.jsx)(ai,{style:{width:24,height:24,position:\"absolute\",bottom:0,right:0},children:(0,m.jsx)(J.Z,{width:\"12px\",height:\"12px\",fill:\"white\"})})]}),(0,m.jsxs)(as,{title:\"Secure Your Account\",children:[\"Please set a password to secure your account.\",(0,m.jsx)(\"p\",{children:\"Losing access to this password and this device will make your account inaccessible.\"})]})]}),(0,m.jsx)(n3,{onClick:()=>{r({createWallet:{onFailure:o,onSuccess:a,callAuthOnSuccessOnClose:!1,addPasswordToExistingWallet:!0}}),n(\"EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN\")},children:\"Add password\"}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN:()=>{let[e,t]=(0,o.useState)(null),[r,n]=(0,o.useState)(!1),[i,a]=(0,o.useState)(null),[s,l]=(0,o.useState)(\"\"),{authenticated:c,getAccessToken:d,user:h}=n$(),{walletProxy:u,refreshUser:p,closePrivyModal:g,createAnalyticsEvent:f}=nZ(),{app:y,navigate:w,data:x,onUserCloseViaDialogOrKeybindRef:v}=ny(),{onSuccess:C,onFailure:b}=x.createWallet,_=rC(h),j=e?.recoveryMethod===\"user-passcode\",k=_?.recoveryMethod===\"user-passcode\";(0,o.useEffect)(()=>{c||(w(\"LANDING\"),b(new e2(\"User must be authenticated before setting a password on a Privy wallet\")))},[c]);let E=()=>{if(i){b(i),g({shouldCallAuthOnSuccess:!1});return}if(!j){b(new e1(\"Exited before password was added to wallet\")),g({shouldCallAuthOnSuccess:!1});return}C(e),g({shouldCallAuthOnSuccess:!1})};v.current=E;let A=async()=>{let e=await d();if(e&&_?.address&&s&&u)try{if(f({eventName:\"embedded_wallet_set_recovery_started\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k}}),!(await u.setRecovery({accessToken:e,address:_.address,recoveryPassword:s,recoveryMethod:\"user-passcode\"})).address){a(new e1(\"Error setting password on privy wallet\")),f({eventName:\"embedded_wallet_set_recovery_failed\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k,reason:\"error setting password\"}});return}let r=await p(),n=rC(r);if(!n){a(new e1(\"Error setting password on privy wallet\")),f({eventName:\"embedded_wallet_set_recovery_failed\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k,reason:\"wallet disconnected\"}});return}t(n),f({eventName:\"embedded_wallet_set_recovery_completed\",payload:{walletAddress:_.address,existingRecoveryMethod:_.recoveryMethod,targetRecoveryMethod:\"user-passcode\",isResettingPassword:k}})}catch(e){console.warn(e),a(e instanceof Error?e:Error(\"Error setting password on privy wallet\")),f({eventName:\"embedded_wallet_set_password_failed\",payload:{walletAddress:_.address,reason:e}})}},S=async()=>{j?(C(e),g({shouldCallAuthOnSuccess:!1})):(n(!0),a(null),await A(),n(!1))};return(0,m.jsx)(sr,{appName:y?.name||\"privy\",config:{initiatedBy:\"user\",onCancel:E},error:i?\"An error has occurred, please try again.\":void 0,buttonLoading:r,buttonHideAnimations:!1,password:s,isResettingPassword:k,onPasswordGenerate:()=>l(o3()),onPasswordChange:l,onSubmit:S,onClose:E})},EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN:()=>{let{app:e,navigate:t,data:r,onUserCloseViaDialogOrKeybindRef:n}=ny(),[i,a]=(0,o.useState)(\"\"),[s,l]=(0,o.useState)(!1),[c,d]=(0,o.useState)(),[h,u]=(0,o.useState)(null),{authenticated:p}=n$(),{closePrivyModal:g,isNewUserThisSession:f,initializeWalletProxy:y}=nZ(),{onSuccess:w,onFailure:x,callAuthOnSuccessOnClose:v}=r.createWallet,{createWallet:C}=oC(),[b,_]=(0,o.useState)(null),j=new tI(async()=>{try{let e=await C(c);if(!e)return;_(e),f?t(\"EMBEDDED_WALLET_CREATED_SCREEN\"):(w(e),g({shouldCallAuthOnSuccess:v}))}catch(e){a(e.message)}});(0,o.useEffect)(()=>{h||y(3e4).then(e=>u(e))},[h]),(0,o.useEffect)(()=>{if(!p){t(\"LANDING\"),x(Error(\"User must be authenticated before creating a Privy wallet\"));return}},[p]),n.current=()=>null;let k=async()=>(l(!0),j.execute().then(()=>new Promise(e=>setTimeout(e,250))).finally(()=>l(!1)));return(0,m.jsx)(sr,{config:{initiatedBy:\"automatic\"},appName:e?.name||\"privy\",loading:!h,buttonLoading:s,buttonHideAnimations:!b&&s,isResettingPassword:!1,error:i,password:c||\"\",onClose:()=>{b&&b?.recoveryMethod!==\"user-passcode\"?(x(new e1(\"User created a wallet but failed to set a password for it\")),g({shouldCallAuthOnSuccess:!1})):b?(w(b),g({shouldCallAuthOnSuccess:v})):(x(new e1(\"User wallet creation failed\")),g({shouldCallAuthOnSuccess:!1}))},onPasswordChange:d,onPasswordGenerate:()=>d(o3()),onSubmit:k})},MFA_ENROLLMENT_FLOW_SCREEN:()=>{let{user:e,enrollInMfa:t}=n$(),[r,n]=(0,o.useState)(null),{unenrollWithSms:i,unenrollWithTotp:a,unenrollWithPasskey:s}=da(),{app:l,ready:c,data:d,onUserCloseViaDialogOrKeybindRef:h}=ny(),{closePrivyModal:u}=nZ(),{promptMfa:p}=di(),{initEnrollmentWithTotp:g}=da(),[f,y]=(0,o.useState)(!1),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)(null),b=()=>{u({shouldCallAuthOnSuccess:!0}),t(!1),setTimeout(()=>{n(null),x(null)},500)},{initEnrollmentWithPasskey:_,submitEnrollmentWithPasskey:j}=da(),[k,E]=(0,o.useState)(!1),[A,S]=(0,o.useState)(null);h.current=b;let T=e?.mfaMethods.includes(\"sms\"),P=!!e?.phone,N=e?.mfaMethods.includes(\"totp\"),R=e?.mfaMethods.includes(\"passkey\"),M=T||N||R,O=e?.linkedAccounts.filter(e=>\"passkey\"===e.type).map(e=>e.credentialId)??[];function I(){n(null),x(null)}async function W(){E(!0);try{await _(),await j({credentialIds:O})}catch(e){S(e)}finally{E(!1)}}async function L(e){if(await p().catch(S),\"totp\"===e){x(e),C(null),g().then(e=>{C(e)}).catch(()=>{C(null),I()});return}if(\"passkey\"===e&&1===O.length)return await W();x(e)}if((0,o.useEffect)(()=>{M&&y(!0)},[M]),!c||!e||!l)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(ds,{})}),(0,m.jsx)(iI,{children:(0,m.jsx)(nX,{})}),(0,m.jsx)(iN,{})]});async function F(){n(null);try{await i()}catch{n(null)}}async function U(){n(null);try{await a()}catch{n(null)}}async function D(){n(null);try{await p(),await s()}catch{n(null)}}if(\"sms\"===r)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:I,onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(e_.Z,{})})}),(0,m.jsx)(iM,{children:\"Remove SMS verification?\"}),(0,m.jsxs)(iO,{children:[\"MFA adds an extra layer of security to your \",l?.name,\" account. Make sure you have other methods to secure your account.\"]}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{warn:!0,onClick:F,children:\"Remove SMS for MFA\"})}),(0,m.jsx)(iN,{})]});if(\"totp\"===r)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:I,onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(eC.Z,{})})}),(0,m.jsx)(iM,{children:\"Remove Authenticator App verification?\"}),(0,m.jsxs)(iO,{children:[\"MFA adds an extra layer of security to your \",l?.name,\" account. Make sure you have other methods to secure your account.\"]}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{warn:!0,onClick:U,children:\"Remove Authenticator App for MFA\"})}),(0,m.jsx)(iN,{})]});if(\"passkey\"===r)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:I,onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ej.Z,{})})}),(0,m.jsx)(iM,{children:\"Are you sure you want to remove passkey verification?\"}),(0,m.jsx)(iO,{children:\"This will disable any passkeys you have set up for verification. You’ll still be able to login with your passkeys if you’ve set up passkey login.\"}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{warn:!0,onClick:D,children:\"Yes, remove\"})}),(0,m.jsx)(iN,{})]});if(0===d.mfaEnrollmentFlow.mfaMethods.length&&!M)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ek.Z,{})})}),(0,m.jsx)(iM,{children:\"Add more security\"}),(0,m.jsxs)(iO,{children:[l?.name,\" does not have any verification methods enabled.\"]}),(0,m.jsx)(iU,{children:(0,m.jsx)(n3,{onClick:b,children:\"Close\"})}),(0,m.jsx)(iN,{})]});let Z=!M&&!f;return Z?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{onClose:b},\"header\"),(0,m.jsx)(iR,{children:(0,m.jsx)(iG,{children:(0,m.jsx)(ek.Z,{})})}),(0,m.jsx)(iM,{children:\"Transaction Protection\"}),(0,m.jsx)(iO,{children:\"Set up transaction protection to add an extra layer of security to your account\"}),(0,m.jsxs)(iW,{children:[(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(ec.Z,{})}),\"Enable 2-Step verification for your \",l?.name,\" wallet.\"]}),(0,m.jsxs)(iF,{children:[(0,m.jsx)(iL,{children:(0,m.jsx)(eb.Z,{})}),\"You'll be prompted to authenticate to complete transactions.\"]})]}),(0,m.jsxs)(iU,{children:[(0,m.jsx)(n3,{onClick:()=>y(!0),children:\"Continue\"}),(0,m.jsx)(n8,{onClick:b,children:\"Not now\"})]}),(0,m.jsx)(iN,{})]}):\"sms\"===w?(0,m.jsx)(dk,{onComplete:b,onReset:I,onClose:b}):\"totp\"===w&&v?(0,m.jsx)(dA,{onComplete:b,onClose:b,onReset:I,totpInfo:v}):\"passkey\"===w?(0,m.jsx)(dd,{onComplete:b,onReset:I,onClose:b}):(0,m.jsx)(dc,{showIntro:Z,userMfaMethods:e.mfaMethods,appMfaMethods:l.mfa.methods,userHasAuthSms:P,onBackToIntro:function(){y(!1)},handleSelectMethod:L,isTotpLoading:\"totp\"===w&&!v,isPasskeyLoading:k,error:A,onClose:b,setRemovingMfaMethod:n})},CAPTCHA_SCREEN:()=>{let{lastScreen:e,currentScreen:t,data:r,navigateBack:n,navigate:i,setModalData:a}=ny(),{status:s,token:l,waitForResult:c,reset:d,execute:h}=nF(),u=(0,o.useRef)([]),p=e=>{u.current=[e,...u.current]},[g,f]=(0,o.useState)(!0);(0,o.useEffect)(()=>(p(setTimeout(f,1e3,!1)),()=>{u.current.forEach(e=>clearTimeout(e)),u.current=[]}),[]);let[y,w]=(0,o.useState)(\"\"),[x,v]=(0,o.useState)(\"Checking that you are a human...\"),[C,b]=(0,o.useState)((0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Continue\"})),[_,j]=(0,o.useState)(!1),[k,E]=(0,o.useState)(3),A=r?.captchaModalData,S=async t=>{try{await A?.callback(t),A?.onSuccessNavigateTo&&i(A?.onSuccessNavigateTo,!1)}catch(t){if(t instanceof nW)return;a({errorModalData:{error:t,previousScreen:e||\"LANDING\"}}),i(A?.onErrorNavigateTo||\"ERROR_SCREEN\",!1)}};(0,o.useEffect)(()=>{\"success\"===s?p(setTimeout(async()=>{let e=await c();!e||A?.userIntentRequired||S(e)},1e3)):\"ready\"===s&&p(setTimeout(()=>{\"ready\"===s&&h()},500))},[s]),(0,o.useEffect)(()=>{if(!g)switch(s){case\"success\":w(\"Success!\"),v(\"CAPTCHA passed successfully.\"),b((0,m.jsx)(n3,{onClick:()=>{j(!0),S(l)},disabled:!A?.userIntentRequired,loading:_,children:A?.userIntentRequired?\"Continue\":\"Continuing...\"}));break;case\"loading\":w(\"\"),v(\"Checking that you are a human...\"),b((0,m.jsx)(n3,{onClick:()=>{},disabled:!0,children:\"Continue\"}));break;case\"error\":w(\"Something went wrong\"),k<=0?(v(\"If you use an adblocker or VPN, try disabling and re-attempting.\"),b(null)):(v(\"You did not pass CAPTCHA. Please try again.\"),b((0,m.jsx)(n3,{onClick:T,children:\"Retry\"})))}},[s,g,_]);let T=async()=>{if(k<=0)return;E(e=>e-1),d(),h();let e=await c();!e||A?.userIntentRequired||S(e)};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{backFn:e&&t!==e?n:void 0}),(0,m.jsxs)(av,{children:[\"success\"===s?(0,m.jsx)(W.Z,{fill:\"var(--privy-color-success)\",width:\"64px\",height:\"64px\"}):\"error\"===s?(0,m.jsx)(L.Z,{fill:\"var(--privy-color-error)\",width:\"64px\",height:\"64px\"}):(0,m.jsx)(aw,{}),(0,m.jsxs)(i8,{children:[y?(0,m.jsx)(\"h3\",{children:y}):null,(0,m.jsx)(\"p\",{children:x})]}),C]}),(0,m.jsx)(iN,{})]})},ERROR_SCREEN:()=>{let{navigate:e,navigateBack:t,data:r,lastScreen:n,currentScreen:i}=ny(),a=r?.errorModalData?.previousScreen||(n===i?void 0:n);return(0,m.jsx)(si,{error:r?.errorModalData?.error||Error(),backFn:()=>a?e(a,!1):t(),onClick:()=>e(a||\"LANDING\",!1)})},IN_APP_BROWSER_LOGIN_NOT_POSSIBLE:()=>{let{closePrivyModal:e}=nZ();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{},\"header\"),(0,m.jsx)(cv,{children:(0,m.jsx)(N.Z,{style:{width:32,height:32}})}),(0,m.jsx)(ao,{title:\"Could not log in with provider\",description:\"It looks like you're using an in-app browser.  To log in, please try again using an external browser.\",style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\"}}),(0,m.jsx)(i2,{children:(0,m.jsx)(n3,{onClick:()=>e(),children:\"Close\"})}),(0,m.jsx)(at,{}),(0,m.jsx)(iP,{})]})},AFFIRMATIVE_CONSENT_SCREEN:()=>{let{user:e,logout:t}=n$(),{app:r,onUserCloseViaDialogOrKeybindRef:n,setModalData:i,navigate:a}=ny(),{acceptTerms:o,closePrivyModal:s,createAnalyticsEvent:l}=nZ(),c=e=>{e?.preventDefault(),s({shouldCallAuthOnSuccess:!1}),t()};n.current=c;let d=async n=>{n.preventDefault(),await o(),e&&rk(e,r?.embeddedWallets?.createOnLogin)?(i({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),l({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,screen:\"AffirmativeConsentScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),a(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")):s()};return(0,m.jsx)(iY,{termsAndConditionsUrl:r?.legal.termsAndConditionsUrl,privacyPolicyUrl:r?.legal.privacyPolicyUrl,onAccept:d,onDecline:c})},TELEGRAM_AUTH_SCREEN:()=>{let{authenticated:e,logout:t,ready:r,user:n}=n$(),{app:i,setModalData:a,navigate:s,resetNavigation:l}=ny(),{initLoginWithTelegram:c,loginWithTelegram:d,updateWallets:h,setReadyToTrue:u,closePrivyModal:p,createAnalyticsEvent:g}=nZ(),[f,y]=(0,o.useState)(!1),[w,x]=(0,o.useState)(void 0);async function v(){try{await d(),y(!0),u(!0)}catch(r){if(r?.privyErrorCode===\"allowlist_rejected\"){x(void 0),l(),s(\"ALLOWLIST_REJECTION_SCREEN\");return}if(r?.privyErrorCode===\"max_accounts_reached\"){console.error(new e3(r).toString()),x(void 0),l(),s(\"USER_LIMIT_REACHED_SCREEN\");return}if(r?.privyErrorCode===\"user_does_not_exist\"){x(void 0),l(),s(\"ACCOUNT_NOT_FOUND_SCREEN\");return}let{retryable:e,detail:t}=ry(r);x({retryable:e,detail:t,message:\"Authentication failed\"})}}(0,o.useEffect)(()=>{v()},[]),(0,o.useEffect)(()=>{if(!(r&&e&&f&&n))return;if(i?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{s(\"AFFIRMATIVE_CONSENT_SCREEN\")},1400);return()=>clearTimeout(e)}if(rk(n,i?.embeddedWallets?.createOnLogin)){let e=setTimeout(()=>{a({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:\"embedded_wallet_creation_failure_logout\",payload:{error:e,provider:\"telegram\",screen:\"TelegramAuthScreen\"}}),t()},callAuthOnSuccessOnClose:!0}}),s(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")},1400);return()=>clearTimeout(e)}h();let o=setTimeout(()=>p({shouldCallAuthOnSuccess:!0,isSuccess:!0}),1400);return()=>clearTimeout(o)},[r,e,f,n]);let C=f?\"Successfully connected with Telegram\":w?w.message:\"Verifying connection to Telegram\",b=\"\";return b=f?\"You’re good to go!\":w?w.detail:\"Just a few moments more\",(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsx)(ae,{}),(0,m.jsxs)(ud,{children:[(0,m.jsx)(ig,{children:(0,m.jsxs)(\"div\",{children:[(0,m.jsx)(nQ,{success:f,fail:!!w}),(0,m.jsx)(cJ,{style:{width:\"38px\",height:\"38px\"}})]})}),(0,m.jsxs)(i8,{children:[(0,m.jsx)(\"h3\",{children:C}),(0,m.jsx)(\"p\",{children:b})]}),w&&w?.retryable?(0,m.jsx)(ie,{onClick:()=>{c().then(async()=>v()).catch(e=>{let{retryable:t,detail:r}=ry(e);x({retryable:t,detail:r,message:\"Authentication failed\"})}),x(void 0)},disabled:!f&&!w?.retryable,children:\"Retry\"}):null]}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]})}},uS=[\"LANDING\",\"AWAITING_CONNECTION\"],uT=({isMfaVerifying:e,onMfaVerificationComplete:t})=>{let{ready:r,isModalOpen:n}=n$(),{headless:i}=nh(),{ready:a,currentScreen:s}=ny(),{status:l,execute:c,reset:d,enabled:h}=nF(),u=n&&s&&uS.includes(s)&&!i&&\"ready\"===l;if((0,o.useEffect)(()=>{u&&c()},[u]),(0,o.useEffect)(()=>{!n&&h&&d()},[n,h]),(!r||!a)&&\"AWAITING_OAUTH_SCREEN\"!==s&&\"CROSS_APP_AUTH_SCREEN\"!==s&&\"TELEGRAM_AUTH_SCREEN\"!==s)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(il,{}),(0,m.jsx)(ae,{}),(0,m.jsx)(uE,{children:(0,m.jsx)(nX,{})}),(0,m.jsx)(at,{}),(0,m.jsx)(iN,{})]});if(!s&&e)return(0,m.jsx)(hr,{open:e,onClose:t});if(!s)return null;let p=uA[s];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ik,{if:!!e,children:(0,m.jsx)(p,{})}),(0,m.jsx)(ik,{if:!e,children:(0,m.jsx)(hr,{open:e,onClose:t})})]})},uP=({isMfaVerifying:e,onMfaVerificationComplete:t})=>{let r=(0,o.useRef)(null),n=nH(r);return(0,m.jsx)(uO,{style:{height:n},id:\"privy-modal-content\",children:(0,m.jsx)(\"div\",{ref:r,children:(0,m.jsx)(uT,{isMfaVerifying:e,onMfaVerificationComplete:t})})})},uN=()=>{let{closePrivyModal:e}=nZ(),{onUserCloseViaDialogOrKeybindRef:t}=ny();return{gracefulClosePrivyModal:(0,o.useCallback)(()=>{if(!t?.current)return e({shouldCallAuthOnSuccess:!1});t.current()},[e])}},uR=({open:e})=>{let{app:t}=ny(),{gracefulClosePrivyModal:r}=uN(),[n,i]=(0,o.useState)(!1);nG(\"configureMfa\",{onMfaRequired:()=>{t?.mfa.noPromptOnMfaRequired||i(!0)}});let a=e||n;return t.render.standalone?(0,m.jsx)(uv,{children:(0,m.jsx)(uM,{id:\"privy-modal-content\",children:(0,m.jsx)(uT,{isMfaVerifying:n,onMfaVerificationComplete:()=>i(!1)})})}):(0,m.jsx)(uC,{open:a,id:\"privy-dialog\",\"aria-label\":\"log in or sign up\",\"aria-labelledby\":\"privy-dialog-title\",onClick:()=>r(),children:(0,m.jsx)(uv,{children:(0,m.jsx)(uP,{isMfaVerifying:n,onMfaVerificationComplete:()=>i(!1)})})})},uM=A.ZP.div`\n  display: flex;\n  flex-direction: column;\n  text-align: center;\n  font-size: 14px;\n  line-height: 20px;\n  width: 100%;\n  background: var(--privy-color-background);\n  padding: 0 16px;\n`,uO=(0,A.ZP)(uM)`\n  transition: height 150ms ease-out;\n  overflow: hidden;\n\n  // Ensure the modal gets pinned to the top if it ever gets too tall\n  max-height: calc(100svh - 48px);\n\n  border-radius: var(--privy-border-radius-lg) var(--privy-border-radius-lg) 0 0;\n  box-shadow: 0px 0px 36px rgba(55, 65, 81, 0.15);\n\n  @media (min-width: 441px) {\n    box-shadow: 0px 8px 36px rgba(55, 65, 81, 0.15);\n    border-radius: var(--privy-border-radius-lg);\n  }\n`;function uI(e){let t=(0,o.useRef)(null),r=(0,o.useRef)();return(0,o.useEffect)(()=>{r.current?.remove(),r.current=function({botUsername:e,scriptHost:t}){let r=document.createElement(\"script\"),{origin:n}=new URL(t);return r.async=!0,r.src=`${n}/js/telegram-login.js`,r.setAttribute(\"data-telegram-login\",e),r.setAttribute(\"data-request-access\",\"write\"),r.setAttribute(\"data-lang\",\"en\"),r}(e),t.current?.after(r.current)},[e]),(0,m.jsx)(\"div\",{ref:t,hidden:!0})}async function uW(e,t,r,n,i,a=!1){let o=a,s=async s=>{if(o&&t&&t.length>0){s===(a?0:1)?i(\"configureMfa\",\"onMfaRequired\",t):n.current?.reject(new a6(\"missing_or_invalid_mfa\",\"MFA verification failed, retry.\"));let o=await new Promise((e,t)=>{r.current={resolve:e,reject:t},setTimeout(()=>{let e=new a6(\"mfa_timeout\",\"Timed out waiting for MFA code\");n.current?.reject(e),t(e)},3e5)});return await e(o)}return await e()},l=null;for(let e=0;e<4;e++)try{l=await s(e),n.current?.resolve(void 0);break}catch(e){if(\"missing_or_invalid_mfa\"===e.type)o=!0;else throw n.current?.resolve(void 0),e}if(null===l){let e=new a6(\"mfa_verification_max_attempts_reached\",\"Max MFA verification attempts reached\");throw n.current?.reject(e),e}return l}var uL=(uY=0,()=>`id-${uY++}`);function uF(e){return void 0!==e.error}var uU=new class{constructor(){this.callbacks={}}enqueue(e,t){this.callbacks[e]=t}dequeue(e,t){let r=this.callbacks[t];if(!r)throw Error(`cannot dequeue ${e} event: no event found for id ${t}`);switch(delete this.callbacks[t],e){case\"privy:iframe:ready\":case\"privy:wallet:create\":case\"privy:wallet:import\":case\"privy:wallet:connect\":case\"privy:wallet:recover\":case\"privy:wallet:rpc\":case\"privy:wallet:set-recovery\":case\"privy:mfa:verify\":case\"privy:mfa:init-enrollment\":case\"privy:mfa:submit-enrollment\":case\"privy:mfa:unenroll\":case\"privy:mfa:clear\":case\"privy:farcaster:init-signer\":case\"privy:farcaster:sign\":case\"privy:solana-wallet:create\":case\"privy:solana-wallet:connect\":case\"privy:solana-wallet:recover\":case\"privy:solana-wallet:rpc\":return r;default:throw Error(`invalid wallet event type ${e}`)}}},uD=new Map,uZ=(e,t)=>\"bigint\"==typeof t?t.toString():t,uz=(e,t)=>`${e}${JSON.stringify(t,uZ)}`;function u$(e,t,r,n){let i=r.contentWindow;if(!i)throw Error(\"iframe not initialized\");let a=uz(e,t);if(\"privy:wallet:create\"===e){let e=uD.get(a);if(e)return e}let o=new Promise((r,a)=>{let o=uL();uU.enqueue(o,{resolve:r,reject:a}),i.postMessage({id:o,event:e,data:t},n)}).finally(()=>{uD.delete(a)});return uD.set(a,o),o}function uH(e){let t=(0,o.useRef)(null),r=(0,o.useRef)(e.mfaMethods),n=nY(),[i,a]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{r.current=e.mfaMethods},[e.mfaMethods]),(0,o.useEffect)(()=>{if(!i)return;let a=t.current;if(!a)return;function o(t){var r;t&&t.origin===e.origin&&\"string\"==typeof(r=t.data).event&&/^privy:.+/.test(r.event)&&function(e){switch(e.event){case\"privy:iframe:ready\":let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data);case\"privy:wallet:create\":let r=uU.dequeue(e.event,e.id);return uF(e)?r.reject(new a6(e.error.type,e.error.message)):r.resolve(e.data);case\"privy:wallet:import\":let n=uU.dequeue(e.event,e.id);return uF(e)?n.reject(new a6(e.error.type,e.error.message)):n.resolve(e.data);case\"privy:wallet:connect\":let i=uU.dequeue(e.event,e.id);return uF(e)?i.reject(new a6(e.error.type,e.error.message)):i.resolve(e.data);case\"privy:wallet:recover\":let a=uU.dequeue(e.event,e.id);return uF(e)?a.reject(new a6(e.error.type,e.error.message)):a.resolve(e.data);case\"privy:wallet:rpc\":let o=uU.dequeue(e.event,e.id);return uF(e)?o.reject(new a6(e.error.type,e.error.message)):o.resolve(e.data);case\"privy:wallet:set-recovery\":let s=uU.dequeue(e.event,e.id);return uF(e)?s.reject(new a6(e.error.type,e.error.message)):s.resolve(e.data);case\"privy:mfa:verify\":let l=uU.dequeue(e.event,e.id);return uF(e)?l.reject(new a6(e.error.type,e.error.message)):l.resolve(e.data);case\"privy:mfa:init-enrollment\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:mfa:submit-enrollment\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:mfa:unenroll\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:mfa:clear\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:farcaster:init-signer\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:farcaster:sign\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}case\"privy:solana-wallet:create\":let c=uU.dequeue(e.event,e.id);return uF(e)?c.reject(new a6(e.error.type,e.error.message)):c.resolve(e.data);case\"privy:solana-wallet:connect\":let d=uU.dequeue(e.event,e.id);return uF(e)?d.reject(new a6(e.error.type,e.error.message)):d.resolve(e.data);case\"privy:solana-wallet:recover\":let h=uU.dequeue(e.event,e.id);return uF(e)?h.reject(new a6(e.error.type,e.error.message)):h.resolve(e.data);case\"privy:solana-wallet:rpc\":{let t=uU.dequeue(e.event,e.id);return uF(e)?t.reject(new a6(e.error.type,e.error.message)):t.resolve(e.data)}default:console.warn(\"Unsupported wallet proxy method:\",e)}}(t.data)}let s={create:t=>u$(\"privy:wallet:create\",t,a,e.origin),import:t=>u$(\"privy:wallet:import\",t,a,e.origin),connect:t=>u$(\"privy:wallet:connect\",t,a,e.origin),recover:t=>uW(r=>u$(\"privy:wallet:recover\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n,!t.recoveryMethod||\"privy\"===t.recoveryMethod),rpc:t=>uW(r=>u$(\"privy:wallet:rpc\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),createSolana:t=>u$(\"privy:solana-wallet:create\",t,a,e.origin),connectSolana:t=>u$(\"privy:solana-wallet:connect\",t,a,e.origin),recoverSolana:t=>u$(\"privy:solana-wallet:recover\",t,a,e.origin),rpcSolana:t=>u$(\"privy:solana-wallet:rpc\",t,a,e.origin),setRecovery:t=>uW(r=>u$(\"privy:wallet:set-recovery\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),verifyMfa:t=>uW(r=>u$(\"privy:mfa:verify\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n,!0),initEnrollMfa:t=>uW(r=>u$(\"privy:mfa:init-enrollment\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),submitEnrollMfa:t=>uW(r=>u$(\"privy:mfa:submit-enrollment\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n),unenrollMfa:t=>uW(r=>u$(\"privy:mfa:unenroll\",{...t,...r},a,e.origin),r.current,e.mfaPromise,e.mfaSubmitPromise,n,!0),clearMfa:t=>u$(\"privy:mfa:clear\",t,a,e.origin),initFarcasterSigner:t=>u$(\"privy:farcaster:init-signer\",t,a,e.origin),signFarcasterMessage:t=>u$(\"privy:farcaster:sign\",t,a,e.origin)};window.addEventListener(\"message\",o);let l=new AbortController;return tf(()=>u$(\"privy:iframe:ready\",{},a,e.origin),{abortSignal:l.signal}).then(()=>e.onLoad(s),(...t)=>{console.warn(\"Privy iframe failed to load: \",...t),e.onLoadFailed()}),()=>{window.removeEventListener(\"message\",o),l.abort()}},[i]),(0,m.jsx)(\"iframe\",{ref:t,width:\"0\",height:\"0\",style:{display:\"none\",height:\"0px\",width:\"0px\"},onLoad:()=>a(!0),src:ty(e.origin,`/apps/${e.appId}/embedded-wallets`,{caid:e.clientAnalyticsId,client_id:e.appClientId})})}var uB=class{constructor(e,t){this.walletProxy=e,this.address=t}async handleSignMessage(e){if(!e.params||\"string\"!=typeof e.params.message)throw Error(\"Message must be provided as a string for Solana signMessage RPC\");return await u9({message:e.params.message})}async request(e){if(console.debug(\"EmbeddedSolanaProvider.request() called with args\",e),!await uK())throw Error(\"User must be authenticated to use embedded Solana wallet\");if(!await u8())throw new eK(\"Unable to connect to Solana embedded wallet\");if(\"signMessage\"===e.method)return await this.handleSignMessage(e);throw Error(\"Embedded Solana provider does not yet support this RPC method.\")}};async function uq({url:e,popup:t}){return t.location=e,new Promise((e,r)=>{let n=setTimeout(()=>{r(new eK(\"Authorization request timed out after 2 minutes.\")),i()},12e4);function i(){t?.close(),window.removeEventListener(\"message\",s)}let a,o=setInterval(()=>{t?.closed&&!a&&(i(),clearInterval(o),clearTimeout(n),r(new eK(\"User rejected request\")))},300);function s(t){t.data&&(\"PRIVY_OAUTH_RESPONSE\"===t.data.type&&t.data.stateCode&&t.data.authorizationCode&&(clearTimeout(n),e(t.data),i()),\"PRIVY_OAUTH_ERROR\"===t.data.type&&(clearTimeout(n),r(new eK(t.data.error)),i()),\"PRIVY_OAUTH_USE_BROADCAST_CHANNEL\"===t.data.type&&((a=new BroadcastChannel(\"popup-privy-oauth\")).onmessage=s))}window.addEventListener(\"message\",s)})}async function uV({url:e,popup:t,provider:r}){return t.location=e,new Promise((e,r)=>{function n(){t?.close(),window.removeEventListener(\"message\",i)}function i(t){t.data&&(\"PRIVY_OAUTH_RESPONSE\"===t.data.type&&t.data.stateCode&&t.data.authorizationCode&&(e(t.data),n()),\"https://cdn.apple-cloudkit.com\"===t.origin&&t.data.ckSession&&(e({type:\"PRIVY_OAUTH_RESPONSE\",ckWebAuthToken:t.data.ckSession}),n()),\"PRIVY_OAUTH_ERROR\"===t.data.type&&(r(t.data.error),n()))}window.addEventListener(\"message\",i)})}var uG=e=>({id:e.id,raw_id:e.rawId,response:{client_data_json:e.response.clientDataJSON,authenticator_data:e.response.authenticatorData,signature:e.response.signature,user_handle:e.response.userHandle},authenticator_attachment:e.authenticatorAttachment,client_extension_results:{app_id:e.clientExtensionResults.appid,cred_props:e.clientExtensionResults.credProps,hmac_create_secret:e.clientExtensionResults.hmacCreateSecret},type:e.type});function uK(){return uQ?uQ.getAccessToken():Promise.resolve(to.get(tF)||null)}var uY,uQ,uX,uJ,u0,u1,u2,u3,u4=(e,t,r)=>uX(e,t,r),u5=(e,t)=>uJ(e,t),u6=(e,t)=>u0(e,t),u7=()=>u1(),u8=()=>u2(),u9=({message:e})=>u3({message:e}),pe=()=>{let e=new URLSearchParams(window.location.search).get(\"privy_token\");if(!e)return;to.put(tH,e);let t=new URL(window.location.href);t.searchParams.delete(\"privy_token\"),window.history.pushState({},\"\",t)},pt=({config:e,...t})=>{var r;if(!(\"string\"==typeof(r=t.appId)&&25===r.length))throw new eK(\"Cannot initialize the Privy provider with an invalid Privy app ID\");uQ||(uQ=new nO({appId:t.appId,appClientId:t.clientId,apiUrl:t.apiUrl}));let n=Object.assign({},e);return void 0!==t.createPrivyWalletOnLogin&&n.embeddedWallets?.createOnLogin===void 0&&(n.embeddedWallets||(n.embeddedWallets={}),n.embeddedWallets.createOnLogin=t.createPrivyWalletOnLogin?\"users-without-wallets\":\"off\"),void 0!==t.createPrivyWalletOnLogin&&e?.embeddedWallets?.createOnLogin&&console.warn(\"Both `createPrivyWalletOnLogin` and `config.embeddedWallets.createOnLogin` are set. `createPrivyWalletOnLogin` is deprecated and should be removed.\"),(0,m.jsx)(nd,{client:uQ,clientConfig:n,legacyCreateEmbeddedWalletFlag:t.createPrivyWalletOnLogin,children:(0,m.jsx)(pr,{...t,client:uQ})})},pr=e=>{let t=e.client,[h,u]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),[f,y]=(0,o.useState)(!1),[w,x]=(0,o.useState)(null),[v,C]=(0,o.useState)([]),[b,_]=(0,o.useState)(null),j=(0,o.useRef)(v),[k,E]=(0,o.useState)(!1),[A,S]=(0,o.useState)(null),[T,P]=(0,o.useState)(!1),[N,R]=(0,o.useState)({status:\"disconnected\",connectedWallet:null,connectError:null,connector:null,connectRetry:np}),[M,O]=(0,o.useState)({status:\"initial\"}),[I,W]=(0,o.useState)(null),[L,F]=(0,o.useState)(null),U=nh(),D=nu(),[Z,z]=(0,o.useState)(!0),[$,H]=(0,o.useState)({}),[B,q]=(0,o.useState)(null),[V,G]=(0,o.useState)(null),[K,Y]=(0,o.useState)(!1),[Q,X]=(0,o.useState)(!1),J=(0,o.useRef)(null),ee=(0,o.useRef)(null),et=(0,o.useRef)(nB),[er,en]=(0,o.useState)(!1);t.onStoreToken=e=>{e&&nK(et,\"accessToken\",\"onAccessTokenGranted\",e)},t.onDeleteToken=()=>{x(null),y(!1),nK(et,\"accessToken\",\"onAccessTokenRemoved\")};let ei=(0,o.useRef)(null),ea=(0,o.useRef)(null),eo=e=>{S(e),setTimeout(()=>{u(!0)},15),t.createAnalyticsEvent({eventName:\"modal_open\",payload:{initialScreen:e}})},es=e=>{\"off\"!==U.embeddedWallets.createOnLogin&&z(!0),eo(e)};(0,o.useEffect)(()=>{let e=rb(w);e&&L&&_({address:e.address,connectedAt:Date.now(),walletClientType:\"privy\",connectorType:\"embedded\",meta:{name:\"Privy Wallet\",icon:rG,id:\"io.privy.solana.wallet\"},getProvider:async()=>new uB(L,e.address)})},[L,w]),(0,o.useEffect)(()=>{if(!w){t.connectors?.removeEmbeddedWalletConnector();return}let r=rC(w),n=r_(w);if(r||t.connectors?.removeEmbeddedWalletConnector(),n||t.connectors?.removeImportedWalletConnector(),!t.connectors){console.debug(\"Failed to add embedded wallet connector: Client connectors not initialized\");return}if(!L){console.debug(\"Failed to add embedded wallet connector: Wallet proxy not initialized\");return}r&&t.connectors.addEmbeddedWalletConnector(L,r.address,U.defaultChain,e.appId),n&&t.connectors.addImportedWalletConnector(L,n.address,U.defaultChain,e.appId)},[L,w]),(0,o.useEffect)(()=>{L&&V?.(L)},[L]),(0,o.useEffect)(()=>{(async()=>{if(!U.customAuth?.enabled)return;z(!0);let{getCustomAccessToken:e,isLoading:r}=U.customAuth;if(!(!p||r))try{let r=await e();if(!r&&f){await eP.logout();return}if(!r||f)return;t.startAuthFlow(new te(r));let{user:n,isNewUser:i}=await t.authenticate();if(!n){await eP.logout();return}x(n||null),E(i||!1),y(!0),X(!0)}catch(e){console.warn(e),f&&await eP.logout()}})()},[U.customAuth?.enabled,U.customAuth?.getCustomAccessToken,U.customAuth?.isLoading,p,f]),(0,o.useEffect)(()=>{Q&&L&&w&&rk(w,U.embeddedWallets.createOnLogin)&&(X(!1),ev(w,3e4).catch(console.error))},[Q&&L&&w]),(0,o.useEffect)(()=>{async function e(){let e,r=el(),n=ec();pe();let i=(0,a.M)();t.initializeConnectorManager({walletConnectCloudProjectId:U.walletConnectCloudProjectId,rpcConfig:U.rpcConfig,chains:U.chains,defaultChain:U.defaultChain,store:i,walletList:U.appearance.walletList,shouldEnforceDefaultChainOnConnect:U.shouldEnforceDefaultChainOnConnect,externalWalletConfig:U.externalWallets,appName:U.name??\"Privy\"}),t.connectors?.on(\"connectorInitialized\",()=>{e&&clearTimeout(e);let r=t.connectors.walletConnectors.length,n=t.connectors.walletConnectors.reduce((e,t)=>e+(t.initialized?1:0),0);n===r?en(!0):e=setTimeout(()=>{console.debug({message:\"Unable to initialize all expected connectors before timeout\",initialized:n,expected:r}),en(!0)},1500)}),t.connectors?.initialize().then(()=>{ep()});let o=await t.getAuthenticatedUser(),s=!!o;if(U.customAuth?.enabled||(y(!!o),o&&nK(et,\"login\",\"onComplete\",o,!1,!0,null,null),x(o)),r){ea.current=s?\"link\":\"login\";return}if(n&&!s){ea.current=\"login\",es(\"TELEGRAM_AUTH_SCREEN\");return}eN.setReadyToTrue(!!o)}!p&&D&&e()},[t,B,p,D]),(0,o.useEffect)(()=>{if(p){if(!w||!w.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType)){Y(!0);return}Y(!!v.find(e=>\"privy\"===e.walletClientType))}},[p,w,v]);let el=()=>{let e=function(){let e=new URLSearchParams(window.location.search),t=e.get(\"privy_oauth_code\"),r=e.get(\"privy_oauth_state\"),n=e.get(\"privy_oauth_provider\");if(!t||!r||!n)return{inProgress:!1};let i=!1;try{i=!!window.opener.location.origin}catch{}return{inProgress:!0,authorizationCode:t,stateCode:r,provider:n,headless:t6(),popupFlow:null!==window.opener&&i}}();if(e.inProgress&&e.popupFlow){if(window.opener.location.origin!==window.location.origin){window.opener.postMessage({type:\"PRIVY_OAUTH_ERROR\",error:\"Origins between parent and child windows do not match.\"});return}if(\"error\"===e.authorizationCode){window.opener.postMessage({type:\"PRIVY_OAUTH_ERROR\",error:\"Something went wrong. Try again.\"});return}window.opener.postMessage({type:\"PRIVY_OAUTH_RESPONSE\",stateCode:e.stateCode,authorizationCode:e.authorizationCode});return}return e.inProgress&&e.provider.startsWith(\"privy:\")&&!e.popupFlow&&(new BroadcastChannel(\"popup-privy-oauth\").postMessage({type:\"PRIVY_OAUTH_RESPONSE\",stateCode:e.stateCode,authorizationCode:e.authorizationCode}),window.close()),!!e.inProgress&&!e.headless&&(t.startAuthFlow(new t7(e)),es(\"AWAITING_OAUTH_SCREEN\"),!0)},ec=()=>{let e;let r=(e=function(){let e=new URLSearchParams(window.location.search),t=Number(e.get(\"id\")||\"\"),r=e.get(\"hash\"),n=Number(e.get(\"auth_date\")||\"\"),i=e.get(\"first_name\"),a=e.get(\"last_name\")||void 0,o=e.get(\"username\")||void 0,s=e.get(\"photo_url\")||void 0;if(!(!t||!i||!n||!r))return{id:t,first_name:i,last_name:a,username:o,photo_url:s,auth_date:n,hash:r}}())?(rw(),{...e,flowType:\"login-url\"}):(e=function(){let e=window.location.hash;if(!e||!e.startsWith(\"#tgWebAppData\"))return;let t=new URLSearchParams(decodeURIComponent(e.replace(\"#tgWebAppData=\",\"\"))),r=t.get(\"query_id\"),n=t.get(\"user\"),i=Number(t.get(\"auth_date\")||\"\"),a=t.get(\"hash\");if(!(!r||!n||!i||!a))return{query_id:r,user:n,auth_date:i,hash:a}}())?(rw(),{...e,flowType:\"web-app\"}):void 0;if(!r||!U.loginMethods.telegram||!U.loginConfig.telegramAuthConfiguration?.seamlessAuthEnabled)return;let n=new rf;return t.startAuthFlow(n),\"login-url\"===r.flowType&&(n.meta.telegramWebAppData=void 0,n.meta.telegramAuthResult={id:r.id,first_name:r.first_name,last_name:r.last_name,auth_date:r.auth_date,username:r.username,photo_url:r.photo_url,hash:r.hash}),\"web-app\"===r.flowType&&(n.meta.telegramAuthResult=void 0,n.meta.telegramWebAppData={query_id:r.query_id,user:r.user,auth_date:r.auth_date,hash:r.hash}),!0},ed=async(e,r,n,i)=>{eh(await t.connectors?.createWalletConnector(e,r)||null,r,n,i)};async function eh(e,t,r,n){if(!e)return R({status:\"disconnected\",connectedWallet:null,connectError:new eQ(\"Unable to connect to wallet.\"),connector:null,connectRetry:np}),n?.(null,r);R({status:\"disconnected\",connectedWallet:null,connectError:null,connector:e,connectRetry:np}),e instanceof nx&&t&&await e.resetConnection(t),R({connector:e,status:\"connecting\",connectedWallet:null,connectError:null,connectRetry:()=>eh(e,t,r,n)});try{let t=await e.connect({showPrompt:!0});if(U.shouldEnforceDefaultChainOnConnect&&!U.chains.find(e=>e.id===Number(t?.chainId.replace(\"eip155:\",\"\")))&&!(t?.connectorType===\"wallet_connect_v2\"&&t?.walletClientType===\"metamask\")){R(t=>({...t,connector:e,status:\"switching_to_supported_chain\",connectedWallet:null,connectError:null,connectRetry:np}));try{await t?.switchChain(U.defaultChain.id),t&&(t.chainId=tC(tx(U.defaultChain.id)))}catch{console.warn(`Unable to switch to default chain: ${U.defaultChain.id}`)}}return R(e=>({...e,status:\"connected\",connectedWallet:t,connectError:null,connectRetry:np})),t&&nK(et,\"connectWallet\",\"onSuccess\",t),n?.(t,r)}catch(e){return e instanceof eV?(console.warn(e.cause?e.cause:e.message),nK(et,\"connectWallet\",\"onError\",e.privyErrorCode||\"generic_connect_wallet_error\")):(console.warn(e),nK(et,\"connectWallet\",\"onError\",\"unknown_connect_wallet_error\")),R(t=>({...t,status:\"disconnected\",connectedWallet:null,connectError:e})),n?.(null,r)}}let eu=async(e,r)=>{if(null===e)return;let n=new rp(e,t,r);t.startAuthFlow(n)},ep=()=>{let e=new URLSearchParams(window.location.search),r=e.get(\"privy_connector\"),n=e.get(\"privy_wallet_client\");if(!r||!n)return;if(\"phantom\"!==n||tc()||es(\"LOGIN_FAILED_SCREEN\"),!t.connectors)throw new eK(\"Connector not initialized\");eo(\"AWAITING_CONNECTION\");let i=new URL(window.location.href);i.searchParams.delete(\"privy_connector\"),i.searchParams.delete(\"privy_wallet_client\"),window.history.pushState({},\"\",i),ed(r,n,void 0,eu)};(0,o.useEffect)(()=>{p&&f&&null===w&&t.getAuthenticatedUser().then(x)},[p,f,w,t]);let em=e=>{if(!f)throw nK(et,\"linkAccount\",\"onError\",\"must_be_authenticated\",{linkMethod:e}),new eK(\"User must be authenticated before linking an account.\")},eg=()=>{em(\"siwe\"),ei.current=\"siwe\",ea.current=\"link\",eo(\"LINK_WALLET_SCREEN\")},ef=e=>{if(!f||!w)return!1;if(\"privy\"===e.walletClientType)return!0;for(let t of w.linkedAccounts)if(\"wallet\"===t.type&&t.address===e.address&&\"privy\"!==t.walletClientType)return!0;return!1},ey=async e=>{if(!t.connectors)throw new eK(\"Connector not initialized\");let r=t.connectors.findWalletConnector(e.connectorType,e.walletClientType)||null;(R(t=>({...t,connector:r,status:\"connected\",connectedWallet:e,connectError:null,connectRetry:np})),U.captchaEnabled&&!f)?(H({captchaModalData:{callback:t=>eu(e,t),userIntentRequired:!1,onSuccessNavigateTo:\"AWAITING_CONNECTION\",onErrorNavigateTo:\"ERROR_SCREEN\"}}),es(\"CAPTCHA_SCREEN\")):(await eu(e),es(\"AWAITING_CONNECTION\"))},ew=async(e,r)=>{let{signedUrl:n,externalTransactionId:i}=await co(t,e,r??{},U.appearance.palette,U.fundingMethodConfig?.moonpay.useSandbox??!1);return{signedUrl:n,externalTransactionId:i}},ex=()=>{C(e=>{let r=t.connectors?.wallets.map(e=>({...e,linked:ef(e),loginOrLink:async()=>{if(!await e.isConnected())throw new eK(\"Wallet is not connected\");if(\"embedded\"===e.connectorType&&\"privy\"===e.walletClientType)throw new eK(\"Cannot link or login with embedded wallet\");ey(e)},fund:async t=>{await eN.fundWallet(e.address,t)},unlink:async()=>{if(!f)throw new eK(\"User is not authenticated.\");if(\"embedded\"===e.connectorType&&\"privy\"===e.walletClientType)throw new eK(\"Cannot unlink an embedded wallet\");x(await t.unlinkWallet(e.address))}}))||[];return n_(e,r)?e:r})};(0,o.useEffect)(()=>{ex()},[w?.linkedAccounts,f,p]),(0,o.useEffect)(()=>{if(p){if(!t.connectors)throw new eK(\"Connector not initialized\");ex(),t.connectors.on(\"walletsUpdated\",ex)}},[p]),(0,o.useEffect)(()=>{if(!v[0])return;let e=v[0],t=j.current.find(t=>t.address===e.address),r;if(r=\"privy\"===e.walletClientType?w?.linkedAccounts.find(t=>\"wallet\"===t.type&&t.address===e.address&&\"privy\"===t.walletClientType):w?.linkedAccounts.find(t=>\"wallet\"===t.type&&t.address===e.address&&\"privy\"!==t.walletClientType),!t&&r){let e=Object.assign({},w);e.wallet=r&&{address:r.address,chainType:r.chainType,chainId:r.chainId,walletClient:r.walletClient,walletClientType:r.walletClientType,connectorType:r.connectorType,imported:r.imported},x(e)}j.current=v},[v]);let ev=async(e,t)=>{if(rC(e))throw nK(et,\"createWallet\",\"onError\",\"embedded_wallet_already_exists\"),Error(\"Only one Privy wallet per user is currently allowed\");let[r,n]=await Promise.all([eN.initializeWalletProxy(t),uK()]);if(!r&&U.customAuth?.enabled)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to connect to wallet proxy\");if(!r||!n||U.embeddedWallets?.requireUserOwnedRecoveryOnCreate)return new Promise((e,t)=>{z(!0),H({createWallet:{onSuccess:t=>{nK(et,\"createWallet\",\"onSuccess\",t),e(t)},onFailure:e=>{nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),t(e)},callAuthOnSuccessOnClose:!1}}),eo(\"EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN\")});{await r.create({accessToken:n});let e=rC(await eN.refreshUser());if(!e)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to create wallet\");return nK(et,\"createWallet\",\"onSuccess\",e),e}},eC=e=>{if(!U.chains.map(e=>e.id).includes(e))throw new eQ(`Chain ID ${e} is not supported. It must be added to the config.supportedChains property of the PrivyProvider.`,\"unsupported_chain_id\")},eb=(r,i,a)=>new Promise(async(o,s)=>{let{requesterAppId:h}=i||{};if(!f||!w){nK(et,\"sendTransaction\",\"onError\",\"must_be_authenticated\"),s(Error(\"User must be authenticated before signing with a Privy wallet\"));return}let u=r.from,p=u?w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&n.Kn(e.address)===n.Kn(u)):rC(w);if(!p){nK(et,\"sendTransaction\",\"onError\",\"embedded_wallet_not_found\"),s(Error(\"Must have a Privy wallet before signing\"));return}z(!0);let m=t.connectors?.findWalletConnector(\"embedded\",\"privy\")?.proxyProvider,g=r.chainId?Number(r.chainId):m.chainId;eC(g);let y=Object.assign({},r,{chainId:g}),x=async()=>{let t=await uK();if(!t||!L){nK(et,\"sendTransaction\",\"onError\",\"embedded_wallet_not_found\"),s(Error(\"Must have valid access token and Privy wallet to send transaction\"));return}try{if(!await eN.recoverEmbeddedEthereumWallet()){nK(et,\"sendTransaction\",\"onError\",\"unknown_connect_wallet_error\"),s(Error(\"Unable to connect to wallet\"));return}let r=tk(y.chainId,U.chains,U.rpcConfig,{appId:e.appId}),n=await (0,l.vT)(p.address,y,r);if(U.embeddedWallets.noPromptOnSignature){let{totalGasEstimate:e}=await (0,c.gM)(n,r),{hasSufficientFunds:t}=await sD(p.address,n,e,r);if(!t)throw new rW(new rI(\"Wallet has insufficient funds for this transaction.\",d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))}let i=await sU(t,p.address,L,n,r,h);nK(et,\"sendTransaction\",\"onSuccess\",i),o(i)}catch(e){nK(et,\"sendTransaction\",\"onError\",\"transaction_failure\"),s(e)}};if(U.embeddedWallets.noPromptOnSignature)i&&console.warn(\"uiOptions defined with `noPromptOnSignature` set to true in app config\"),x();else{let e=eA({address:p.address,fundWalletConfig:a,chainIdOverride:y.chainId,comingFromSendTransactionScreen:!0});H({connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN\",onFailure:e=>{nK(et,\"sendTransaction\",\"onError\",\"unknown_connect_wallet_error\"),s(e)}},sendTransaction:{transactionRequest:y,onSuccess:e=>{nK(et,\"sendTransaction\",\"onSuccess\",e),o(e)},onFailure:e=>{nK(et,\"sendTransaction\",\"onError\",\"transaction_failure\"),s(e)},uiOptions:i||{},fundWalletConfig:a,requesterAppId:h},funding:e}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}});function e_(){return new Promise(async(e,t)=>{let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");try{await L.verifyMfa({accessToken:r}),e()}catch(e){t(e)}})}let ej=e=>e?.linkedAccounts.filter(e=>null!==e.latestVerifiedAt&&!(\"wallet\"===e.type&&\"privy\"===e.walletClientType)).sort((e,t)=>t.latestVerifiedAt.getTime()-e.latestVerifiedAt.getTime())[0],ek=e=>{let t=w?.linkedAccounts.filter(t=>t.type===e).length??0,{displayName:r,loginMethod:n}=cT(e);if(\"passkey\"===e&&t>=5||\"passkey\"!==e&&t>=1)throw nK(et,\"linkAccount\",\"onError\",\"cannot_link_more_of_type\",{linkMethod:n}),new eK(`User already has an account of type ${r} linked.`)},eE=()=>{if(!U.loginConfig.telegramAuthConfiguration?.linkEnabled)throw nK(et,\"linkAccount\",\"onError\",\"cannot_link_more_of_type\",{linkMethod:\"telegram\"}),new eK(\"User can't link an account because Telegram linking is disabled.\")},eA=({address:e,fundWalletConfig:t,methodScreen:r,chainIdOverride:n=null,comingFromSendTransactionScreen:i=!1})=>{if(!U.fundingConfig||0===U.fundingConfig.methods.length)return;let a=ca(t)&&t.amount?t.amount:U.fundingConfig.defaultRecommendedAmount,o=ca(t)&&t.chain?t.chain.id:sB(U.fundingConfig.defaultRecommendedCurrency.chain),s=ca(t)&&t.chain?t.chain:U.chains.find(e=>e.id===o);if(n&&U.chains.find(e=>e.id===n)&&(s=U.chains.find(e=>e.id===n)),!s)throw new eK(\"Funding chain is not in PrivyProvider chains list\");return{address:e,amount:a,chain:s,methodScreen:r,comingFromSendTransactionScreen:i,...t&&void 0!==t.config&&void 0!==t.provider?{moonpayConfigOverride:t.config}:{}}};async function eS({showAutomaticRecovery:e=!1,legacySetWalletPasswordFlow:t=!1}){S(null);let r=t?\"setWalletPassword\":\"setWalletRecovery\";if(!f||!w)throw nK(et,r,\"onError\",\"must_be_authenticated\"),Error(\"User must be authenticated before adding recovery method to Privy wallet\");let n=rC(w);if(!n||!L)throw nK(et,r,\"onError\",\"embedded_wallet_not_found\"),Error(\"Must have a Privy wallet to add a recovery method\");if(rb(w))throw Error(\"Cannot set user-controlled recovery for user with Solana.\");try{await e_()}catch(e){throw nK(et,r,\"onError\",\"missing_or_invalid_mfa\"),e}return new Promise((i,a)=>{z(!0);let o={onSuccess:e=>{nK(et,r,\"onSuccess\",\"user-passcode\",e),i(e)},onFailure:e=>{nK(et,r,\"onError\",\"user_exited_set_password_flow\"),a(e)},callAuthOnSuccessOnClose:!1},s=\"user-passcode\"===n.recoveryMethod;H({setWalletPassword:o,createWallet:o,connectWallet:{onCompleteNavigateTo:oi({walletAction:\"update\",availableRecoveryMethods:U.embeddedWallets.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:t,isResettingPassword:s,showAutomaticRecovery:e}),shouldForceMFA:!1,onFailure:e=>{nK(et,r,\"onError\",\"unknown_connect_wallet_error\"),a(e)}},recoverySelection:{isInAccountCreateFlow:!1,isResettingPassword:s}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")})}async function eT({appId:e}){em(`privy:${e}`),ei.current=`privy:${e}`,ea.current=\"link\";let r=window.open(void 0,void 0,s5({w:440,h:680}));return t.createAnalyticsEvent({eventName:\"cross_app_auth_started\",payload:{appId:e}}),new Promise(async(n,i)=>{let{name:a,logoUrl:o}=await s0({api:t.api,providerAppId:e,requesterAppId:U.id});H({crossAppAuth:{appId:e,name:a,logoUrl:o,popup:r,onSuccess:n,onError:i}}),es(\"CROSS_APP_AUTH_SCREEN\")})}let eP={ready:p,authenticated:f,user:w,walletConnectors:t.connectors||null,connectWallet:e=>{e&&\"suggestedAddress\"in e&&e.suggestedAddress&&W((0,n.Kn)(e.suggestedAddress)),eo(f?\"CONNECT_ONLY_AUTHENTICATED_SCREEN\":\"CONNECT_ONLY_LANDING_SCREEN\")},importWallet:async({privateKey:e})=>{em(\"siwe\");let[t,r]=await Promise.all([eN.initializeWalletProxy(15e3),uK()]);if(t&&r){await t.import({privateKey:e,accessToken:r});let n=r_(await eN.refreshUser());if(!n)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to import wallet\");return nK(et,\"createWallet\",\"onSuccess\",n),n}throw new eK(\"User is not authenticated\")},linkWallet:eg,linkCrossAppAccount:eT,linkEmail:()=>{em(\"email\"),ek(\"email\"),ei.current=\"email\",ea.current=\"link\",eo(\"LINK_EMAIL_SCREEN\")},linkPhone:()=>{em(\"sms\"),ek(\"phone\"),ei.current=\"sms\",ea.current=\"link\",eo(\"LINK_PHONE_SCREEN\")},linkGoogle:async()=>{em(\"google\"),ek(\"google_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"google\")},linkTwitter:async()=>{em(\"twitter\"),ek(\"twitter_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"twitter\")},linkDiscord:async()=>{em(\"discord\"),ek(\"discord_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"discord\")},linkGithub:async()=>{em(\"github\"),ek(\"github_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"github\")},linkSpotify:async()=>{em(\"spotify\"),ek(\"spotify_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"spotify\")},linkInstagram:async()=>{em(\"instagram\"),ek(\"instagram_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"instagram\")},linkTiktok:async()=>{em(\"tiktok\"),ek(\"tiktok_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"tiktok\")},linkLinkedIn:async()=>{em(\"linkedin\"),ek(\"linkedin_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"linkedin\")},linkApple:async()=>{em(\"apple\"),ek(\"apple_oauth\"),ea.current=\"link\",await eN.initLoginWithOAuth(\"apple\")},linkPasskey:async()=>{em(\"passkey\"),ek(\"passkey\"),await eN.initLinkWithPasskey(),eo(\"LINK_PASSKEY_SCREEN\")},linkTelegram:async()=>{em(\"telegram\"),ek(\"telegram\"),eE(),ea.current=\"link\",ei.current=\"telegram\",await eN.initLoginWithTelegram(),eo(\"TELEGRAM_AUTH_SCREEN\")},linkFarcaster:async()=>{em(\"farcaster\"),ek(\"farcaster\"),await eN.initLoginWithFarcaster(),ea.current=\"link\",ei.current=\"farcaster\",eo(\"AWAITING_FARCASTER_CONNECTION\")},updateEmail:()=>{if(em(\"email\"),!w?.email)throw new eK(\"User does not have an email linked to their account.\");ea.current=\"link\",ei.current=\"email\",eo(\"UPDATE_EMAIL_SCREEN\")},updatePhone:()=>{if(em(\"sms\"),!w?.phone)throw new eK(\"User does not have a phone number linked to their account.\");ea.current=\"link\",ei.current=\"sms\",eo(\"UPDATE_PHONE_SCREEN\")},login:async e=>{e&&\"target\"in e&&e&&(e=void 0);let t=\"Attempted to log in, but user is already logged in. Use a `link` helper instead.\";if(!p){let e=await new Promise(e=>{q(t=>e.bind(t))});if(q(null),e){console.warn(t);return}}if(w&&!w.isGuest){console.warn(t);return}ea.current=\"login\",H({login:e}),es(\"LANDING\")},connectOrCreateWallet:async()=>{if(p||(await new Promise(e=>{q(()=>e)}),q(null)),f){console.warn(\"User must be unauthenticated to `connectOrCreateWallet`\");return}if(v[0]){console.warn(\"User must have no connected wallets to `connectOrCreateWallet`\");return}es(\"CONNECT_OR_CREATE\")},logout:async()=>{if(w&&t.clearProviderAcccessTokens(w),S(null),await t.logout(),w&&L)try{await L.clearMfa({userId:w.id})}catch{}x(null),y(!1),nK(et,\"logout\",\"onSuccess\"),ea.current=null,ei.current=null,u(!1),to.del(tB),to.del(tq(U.id))},getAccessToken:()=>t.getAccessToken(),getEthereumProvider:()=>{if(!w||!w.wallet)return new rF;let e=v.find(e=>w.wallet&&e.address===w.wallet.address),r=t.connectors?.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return e&&r?r.proxyProvider:new rF},getEthersProvider:()=>{if(!w||!w.wallet)return new i.Q(new rZ(new rF));let e=v.find(e=>w.wallet&&e.address===w.wallet.address),r=t.connectors?.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return new i.Q(new rZ(e&&r?r.proxyProvider:new rF))},getWeb3jsProvider:()=>{if(!w||!w.wallet)return new rz(new rF);let e=v.find(e=>w.wallet&&e.address===w.wallet.address),r=t.connectors?.walletConnectors.find(t=>t.wallets.find(t=>t.address===e?.address));return new rz(e&&r?r.proxyProvider:new rF)},unlinkWallet:async e=>{let r=await t.unlinkWallet(e);return x(r),r},unlinkEmail:async e=>{let r=await t.unlinkEmail(e);return x(r),r},unlinkPhone:async e=>{let r=await t.unlinkPhone(e);return x(r),r},unlinkGoogle:async e=>{let r=await t.unlinkOAuth(\"google\",e);return x(r),r},unlinkTwitter:async e=>{let r=await t.unlinkOAuth(\"twitter\",e);return x(r),r},unlinkDiscord:async e=>{let r=await t.unlinkOAuth(\"discord\",e);return x(r),r},unlinkGithub:async e=>{let r=await t.unlinkOAuth(\"github\",e);return x(r),r},unlinkSpotify:async e=>{let r=await t.unlinkOAuth(\"spotify\",e);return x(r),r},unlinkInstagram:async e=>{let r=await t.unlinkOAuth(\"instagram\",e);return x(r),r},unlinkTiktok:async e=>{let r=await t.unlinkOAuth(\"tiktok\",e);return x(r),r},unlinkLinkedIn:async e=>{let r=await t.unlinkOAuth(\"linkedin\",e);return x(r),r},unlinkApple:async e=>{let r=await t.unlinkOAuth(\"apple\",e);return x(r),r},unlinkFarcaster:async e=>{let r=await t.unlinkFarcaster(e);return x(r),r},unlinkTelegram:async e=>{let r=await t.unlinkTelegram(e);return x(r),r},unlinkPasskey:async e=>{let r=await t.unlinkPasskey(e);return x(r),r},unlinkCrossAppAccount:async({subject:e})=>{let r=w?.linkedAccounts.find(t=>\"cross_app\"===t.type&&t.subject===e)?.providerApp;if(!r)throw new eK(\"Invalid subject\");t.storeProviderAccessToken(r.id,null);let n=await t.unlinkOAuth(`privy:${r.id}`,e);return x(n),n},setActiveWallet:async e=>{let t=v.find(t=>(0,n.Kn)(t.address)===(0,n.Kn)(e)),r=w?.linkedAccounts.find(t=>\"wallet\"===t.type&&n.Kn(t.address)===n.Kn(e));if(t&&await t.isConnected()){if(t.linked){let e=Object.assign({},w);e.wallet=r&&{address:r.address,chainType:r.chainType,chainId:r.chainId,walletClient:r.walletClient,walletClientType:r.walletClientType,connectorType:r.connectorType,imported:r.imported},x(e)}else t.loginOrLink()}else W(e),eg()},forkSession:()=>t.forkSession(),createWallet:async()=>{if(!f||!w)throw nK(et,\"createWallet\",\"onError\",\"must_be_authenticated\"),Error(\"User must be authenticated before creating a Privy wallet\");return ev(w,15e3)},setWalletRecovery:async e=>eS({legacySetWalletPasswordFlow:!1,showAutomaticRecovery:e?.showAutomaticRecovery??!1}),setWalletPassword:async()=>eS({legacySetWalletPasswordFlow:!0,showAutomaticRecovery:!1}),signMessage:(e,r,i)=>new Promise(async(a,o)=>{let{requesterAppId:s}=r||{};if(!f||!w){nK(et,\"signMessage\",\"onError\",\"must_be_authenticated\"),o(Error(\"User must be authenticated before signing with a Privy wallet\"));return}let l=i?w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType&&n.Kn(e.address)===n.Kn(i)):rC(w);if(!l){nK(et,\"signMessage\",\"onError\",\"embedded_wallet_not_found\"),o(Error(\"Must have a Privy wallet before signing\"));return}if(\"string\"!=typeof e||e.length<1){nK(et,\"signMessage\",\"onError\",\"invalid_message\"),o(Error(\"Message must be a non-empty string\"));return}z(!0);let c=async()=>{if(!f)throw Error(\"User must be authenticated before signing with a Privy wallet\");let r=await uK();if(!L||!r||!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_message_started\",payload:{walletAddress:l.address,requesterAppId:s}});let{response:n}=await L.rpc({accessToken:r,address:l.address,requesterAppId:s,request:{method:\"personal_sign\",params:[e,l.address]}}),i=n.data;return t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_message_completed\",payload:{walletAddress:l.address,requesterAppId:s}}),i};if(U.embeddedWallets.noPromptOnSignature){r&&console.warn(\"uiOptions defined with `noPromptOnSignature` set to true in app config\");try{let e=await c();nK(et,\"signMessage\",\"onSuccess\",e),a(e)}catch(e){nK(et,\"signMessage\",\"onError\",\"unable_to_sign\"),o(e??new rW(\"Unable to sign message\"))}}else H({signMessage:{method:\"personal_sign\",data:e,confirmAndSign:c,onSuccess:e=>{nK(et,\"signMessage\",\"onSuccess\",e),a(e)},onFailure:e=>{nK(et,\"signMessage\",\"onError\",\"unable_to_sign\"),o(e)},uiOptions:r||{}},connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_SIGN_REQUEST_SCREEN\",onFailure:e=>{nK(et,\"signMessage\",\"onError\",\"unknown_connect_wallet_error\"),o(e)},address:l.address}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}),signTypedData:(e,r)=>new Promise(async(n,i)=>{let{requesterAppId:a}=r||{};if(!f||!w){nK(et,\"signTypedData\",\"onError\",\"must_be_authenticated\"),i(Error(\"User must be authenticated before signing with a Privy wallet\"));return}let o=rC(w);if(!o){nK(et,\"signTypedData\",\"onError\",\"embedded_wallet_not_found\"),i(Error(\"Must have a Privy wallet before signing\"));return}z(!0);let s=tE(e),l=async()=>{if(!f)throw Error(\"User must be authenticated before signing with a Privy wallet\");let e=await uK();if(!L||!e||!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_typed_data_started\",payload:{walletAddress:o.address,requesterAppId:a}});let{response:r}=await L.rpc({accessToken:e,address:o.address,requesterAppId:a,request:{method:\"eth_signTypedData_v4\",params:[o.address,s]}}),n=r.data;return t.createAnalyticsEvent({eventName:\"embedded_wallet_sign_typed_data_completed\",payload:{walletAddress:o.address,requesterAppId:a}}),n};if(U.embeddedWallets.noPromptOnSignature||U.legacyWalletUiConfig){r&&console.warn(\"uiOptions defined with `noPromptOnSignature` set to true in app config\");try{let e=await l();nK(et,\"signTypedData\",\"onSuccess\",e),n(e)}catch(e){nK(et,\"signTypedData\",\"onError\",\"unable_to_sign\"),i(e??new rW(\"Unable to sign message\"))}}else H({signMessage:{method:\"eth_signTypedData_v4\",data:s,confirmAndSign:l,onSuccess:e=>{nK(et,\"signTypedData\",\"onSuccess\",e),n(e)},onFailure:e=>{nK(et,\"signTypedData\",\"onError\",\"unable_to_sign\"),i(e)},uiOptions:r||{}},connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_SIGN_REQUEST_SCREEN\",onFailure:e=>{nK(et,\"signMessage\",\"onError\",\"unknown_connect_wallet_error\"),i(e)}}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}),sendTransaction:async(e,t,r)=>sZ(await (await eb(e,t,r)).wait()),exportWallet:()=>new Promise(async(r,n)=>{if(!f||!w){n(Error(\"User must be authenticated before exporting their Privy wallet\"));return}if(!rC(w)){n(Error(\"Must have a Privy wallet before exporting\"));return}if(z(!0),H($),!await uK()||!L){n(Error(\"Must have valid access token to enroll in MFA\"));return}if(!L){n(Error(\"Must have a Privy wallet before exporting\"));return}H({keyExport:{appId:e.appId,appClientId:e.clientId,origin:t.apiUrl,onSuccess:r,onFailure:n},connectWallet:{onCompleteNavigateTo:\"EMBEDDED_WALLET_KEY_EXPORT_SCREEN\",onFailure:n,shouldForceMFA:!0}}),eo(\"EMBEDDED_WALLET_CONNECTING_SCREEN\")}),promptMfa:e_,async init(e){switch(e){case\"sms\":await t.initMfaSmsVerification();return;case\"passkey\":return await t.initMfaPasskeyVerification();case\"totp\":return;default:throw Error(`Unsupported MFA method: ${e}`)}},async submit(e,t){switch(e){case\"totp\":case\"sms\":if(\"string\"!=typeof t)throw new eK(\"Invalid MFA code\");J.current?.resolve({mfaMethod:e,mfaCode:t,relyingParty:window.origin}),await new Promise((e,t)=>{ee.current={resolve:e,reject:t}});break;case\"passkey\":if(\"string\"==typeof t)throw new eK(\"Invalid authenticator response\");let n=uG(await (await r.e(550).then(r.bind(r,74550))).startAuthentication(t));J.current?.resolve({mfaMethod:e,mfaCode:n,relyingParty:window.origin}),await new Promise((e,t)=>{ee.current={resolve:e,reject:t}});break;default:throw J.current?.reject(new eK(\"Unsupported MFA method\")),new eK(`Unsupported MFA method: ${e}`)}},cancel(){J.current?.reject(new eK(\"MFA canceled\"))},async initEnrollmentWithSms(e){let t=await uK();if(!t||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.initEnrollMfa({method:\"sms\",accessToken:t,phoneNumber:e.phoneNumber})},enrollInMfa:e=>new Promise((t,r)=>{if(!e){eN.closePrivyModal(),t();return}U.mfa.noPromptOnMfaRequired&&console.warn(\"[Privy Warning] Triggering the 'showMfaEnrollmentModal' function when 'noPromptOnMfaRequired' is set to true is unexpected. If this is intentional, ensure that you are building custom UIs for MFA verification.\"),H({mfaEnrollmentFlow:{mfaMethods:U.mfa.methods,onSuccess:t,onFailure:r}}),eo(\"MFA_ENROLLMENT_FLOW_SCREEN\")}),async initEnrollmentWithTotp(){let e=await uK();if(!e||!L)throw Error(\"Must have valid access token to enroll in MFA\");let t=await L.initEnrollMfa({method:\"totp\",accessToken:e});return{secret:t.secret,authUrl:t.authUrl}},async submitEnrollmentWithSms(e){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.submitEnrollMfa({method:\"sms\",accessToken:r,phoneNumber:e.phoneNumber,code:e.mfaCode}),x(await t.getAuthenticatedUser())},async submitEnrollmentWithTotp(e){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.submitEnrollMfa({method:\"totp\",accessToken:r,code:e.mfaCode}),x(await t.getAuthenticatedUser())},async initEnrollmentWithPasskey(){},async submitEnrollmentWithPasskey({credentialIds:e}){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to enroll in MFA\");await L.submitEnrollMfa({method:\"passkey\",accessToken:r,credentialIds:e}),x(await t.getAuthenticatedUser())},async unenroll(e){let r=await uK();if(!r||!L)throw Error(\"Must have valid access token to remove MFA\");\"passkey\"===e?await L.submitEnrollMfa({method:\"passkey\",accessToken:r,credentialIds:[]}):await L.unenrollMfa({method:e,accessToken:r}),x(await t.getAuthenticatedUser())},requestFarcasterSignerFromWarpcast:async()=>{let e=await uK(),r=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!e)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!r)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");if(!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");let n=await L.initFarcasterSigner({address:r.address,hdWalletIndex:null,accessToken:e,mfaCode:null,mfaMethod:null,relyingParty:window.origin});\"approved\"===n.status&&x(await t.getAuthenticatedUser()||w||null),H({farcasterSigner:n}),eo(\"AWAITING_FARCASTER_SIGNER\")},getFarcasterSignerPublicKey:async()=>{let e,t=await uK(),r=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!t)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!r)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");if(!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");if(!w.farcaster?.signerPublicKey)throw Error(\"Must have a Farcaster signer public key to sign\");return e=w.farcaster.signerPublicKey.slice(2),Uint8Array.from(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},signFarcasterMessage:async e=>{let t=await uK(),n=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!t)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!n)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");if(!await eN.recoverEmbeddedEthereumWallet())throw Error(\"Unable to connect to wallet\");if(!w.farcaster?.signerPublicKey)throw Error(\"Must have a Farcaster signer public key to sign\");let i=await r.e(550).then(r.bind(r,74550)),a=await L.signFarcasterMessage({address:n.address,hdWalletIndex:null,accessToken:t,mfaCode:null,mfaMethod:null,payload:{hash:i.bufferToBase64URLString(e)},fid:BigInt(w.farcaster.fid),relyingParty:window.origin});return new Uint8Array(i.base64URLStringToBuffer(a.signature))},createGuestAccount:async()=>{if(w&&!w.isGuest)throw Error(\"User cannot already be authenticated to create a guest account\");return w?.isGuest?w:eN.loginWithGuestAccountFlow()},isHeadlessOAuthLoading:T,loginWithCode:e=>eN.loginWithCode(e),initLoginWithEmail:e=>eN.initLoginWithEmail(e),initLoginWithSms:e=>eN.initLoginWithSms(e),otpState:M,fundWallet:(e,t)=>eN.fundWallet(e,t),initLoginWithHeadlessOAuth:(e,t)=>eN.initLoginWithHeadlessOAuth(e,t),loginWithHeadlessOAuth:e=>eN.loginWithHeadlessOAuth(e),generateSiweMessage:({address:e,chainId:t})=>eN.generateSiweMessage({address:e,chainId:t}),linkWithSiwe:({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})=>(em(\"siwe\"),eN.linkWithSiwe({message:e,signature:t,chainId:r,walletClientType:n,connectorType:i})),signMessageWithCrossAppWallet:(e,{address:r})=>s3({user:w,client:t,address:r,requesterAppId:U.id,request:{method:\"personal_sign\",params:[e,r]},reconnect:eT}),signTypedDataWithCrossAppWallet(e,{address:r}){let n=tE(e);return s3({user:w,client:t,address:r,requesterAppId:U.id,request:{method:\"eth_signTypedData_v4\",params:[r,n]},reconnect:eT})},sendTransactionWithCrossAppWallet:(e,{address:r})=>s3({user:w,client:t,address:r,requesterAppId:U.id,request:{method:\"eth_sendTransaction\",params:[e]},reconnect:eT}),isModalOpen:h,mfaMethods:U.mfa.methods};uX=eP.signMessage,uJ=eP.signTypedData,u0=async(...e)=>{let t=await eb(...e);return U.embeddedWallets.waitForTransactionConfirmation&&await t.wait(),t};let eN={isNewUserThisSession:k,linkingOrConnectingHint:I,pendingTransaction:null,walletConnectionStatus:N,connectors:t.connectors?.walletConnectors??[],rpcConfig:U.rpcConfig,chains:U.chains,appId:e.appId,showFiatPrices:\"native-token\"!==U.embeddedWallets.priceDisplay.primary,clientAnalyticsId:t.clientAnalyticsId,nativeTokenSymbolForChainId:e=>U.chains.find(t=>t.id===Number(e))?.nativeCurrency.symbol,initializeWalletProxy:async e=>{if(L)return L;let t=new Promise(e=>{G(()=>t=>e(t))}),r=new Promise(t=>setTimeout(()=>t(null),e)),n=await Promise.race([t,r]);return G(null),n},getAuthFlow:()=>t.authFlow,getAuthMeta:()=>t.authFlow?.meta,closePrivyModal:async(r={shouldCallAuthOnSuccess:!0,isSuccess:!1})=>{let n=p&&f&&w,i;if(n&&ei.current&&(i=ej(w)),\"login\"===ea.current?r.shouldCallAuthOnSuccess&&n&&ei.current?(nK(et,\"login\",\"onComplete\",w,k,!1,ei.current,i??null),e.onSuccess?.(w,k)):nK(et,\"login\",\"onError\",\"exited_auth_flow\"):\"link\"===ea.current&&i&&(r.isSuccess&&n&&ei.current?nK(et,\"linkAccount\",\"onSuccess\",w,ei.current,i):ei.current&&nK(et,\"linkAccount\",\"onError\",\"exited_link_flow\",{linkMethod:ei.current})),A&&hb.includes(A)&&$.funding){let t=h_[A]??null,r=tk($.funding.chain.id,U.chains,U.rpcConfig,{appId:e.appId}),n;try{n=(await r.getBalance($.funding.address)).toBigInt()}catch{console.error(\"Unable to pull wallet balance\")}nK(et,\"fundWallet\",\"onUserExited\",{address:$.funding.address,chain:$.funding.chain,fundingMethod:t,balance:n})}W(null),ea.current=null,ei.current=null,E(!1),u(!1),setTimeout(()=>{t.authFlow=void 0},200),t.createAnalyticsEvent({eventName:\"modal_closed\"})},solanaSignMessage:async({message:e})=>new Promise(async(r,n)=>{let i=async()=>{let r=await t.getAccessToken();if(!r)throw Error(\"User must be authenticated to use their embedded wallet.\");if(!b)throw Error(\"User must have an embedded Solana wallet to sign messages for Solana.\");let n=eN.walletProxy??await eN.initializeWalletProxy(15e3);if(!n)throw Error(\"Failed to initialize embedded wallet proxy.\");let{response:i}=await n.rpcSolana({accessToken:r,publicKey:b.address,request:{method:\"signMessage\",params:{message:e}}});return i.data.signature};if(U.embeddedWallets.noPromptOnSignature)try{let e=await i();r({signature:e})}catch(e){n(e)}else H({signMessage:{method:\"solana_signMessage\",data:e,confirmAndSign:i,onSuccess:e=>{r({signature:e})},onFailure:e=>{n(e)},uiOptions:{}}}),es(\"EMBEDDED_WALLET_SIGN_REQUEST_SCREEN\")}),openPrivyModal:eo,connectWallet:eh,initLoginWithWallet:async(e,t)=>{ei.current=\"siwe\",eu(e,t)},loginWithWallet:async()=>{let e,r;if(!p)throw new e0;if(!(t.authFlow instanceof rp))throw new eK(\"Must initialize SIWE flow first.\");if(f)try{({user:e}=await t.link()),ei.current=\"siwe\"}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"siwe\"}),e}else try{({user:e,isNewUser:r}=await t.authenticate()),ei.current=\"siwe\"}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"generic_connect_wallet_error\"),e}x(e||w||null),E(r||!1),y(!0)},initLoginWithFarcaster:async e=>{let r=new tW(e);t.startAuthFlow(r);try{ei.current=\"farcaster\",await r.initializeFarcasterConnect()}catch(e){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"unknown_auth_error\",{linkMethod:\"farcaster\"}),e}},loginWithFarcaster:async()=>{let e,r;if(!p)throw new e0;if(!(t.authFlow instanceof tW))throw new eK(\"Must initialize Farcaster flow first.\");if(f)try{({user:e}=await t.link()),ei.current=\"farcaster\"}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"farcaster\"}),e}else try{({user:e,isNewUser:r}=await t.authenticate()),ei.current=\"farcaster\"}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}x(e||null),E(r||!1),y(!0)},async loginWithGuestAccountFlow(){let e=new t3(this.appId);t.startAuthFlow(e);try{ea.current=\"login\",ei.current=\"guest\";let{user:e,isNewUser:r}=await t.authenticate();if(r=r||!1,!e)throw new eK(\"Unable to authenticate guest account\");if(rk(e,U.embeddedWallets.createOnLogin))try{await ev(e,15e3),e=await eN.refreshUser()}catch{x(e),console.warn(\"Unable to create embedded wallet for guest account\")}else x(e);return E(r),y(!0),nK(et,\"login\",\"onComplete\",e,r,!1,\"guest\",null),e}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}},async crossAppAuthFlow({appId:e,popup:r}){let n=`privy:${e}`;ei.current=n;let{url:i,stateCode:a,codeVerifier:o}=await s1({api:t.api,appId:e});if(!i)throw t.createAnalyticsEvent({eventName:\"cross_app_auth_error\",payload:{error:\"Unable to open cross-app auth popup\",appId:e}}),new eK(\"No authorization URL returned for cross-app auth.\");try{let s=await uq({url:i,popup:r,provider:n}),l=s.stateCode,c=s.authorizationCode;if(l!==a)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:n,storedStateCode:a??\"\",returnedStateCode:l??\"\"}}),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\");let d=await s2({api:uQ.api,appId:e,codeVerifier:o,stateCode:l,authorizationCode:c});d&&t.storeProviderAccessToken(e,d);let h=await eN.refreshUser();if(!h)throw new eK(\"Unable to update user\");return t.createAnalyticsEvent({eventName:\"cross_app_auth_completed\",payload:{appId:e}}),h}catch(e){throw t.createAnalyticsEvent({eventName:\"cross_app_auth_error\",payload:{error:e.toString(),provider:n}}),e}},async initLoginWithOAuth(e,r){if(ei.current=e,ta()){if(\"google\"===e&&aN(window.navigator.userAgent)){es(\"IN_APP_BROWSER_LOGIN_NOT_POSSIBLE\");return}}else{es(\"IN_APP_BROWSER_LOGIN_NOT_POSSIBLE\");return}\"twitter\"===e&&window.opener&&window.opener.postMessage({type:\"PRIVY_OAUTH_USE_BROADCAST_CHANNEL\"},\"*\"),to.del(tY);let n=new t7({provider:e});r&&n.addCaptchaToken(r),t.startAuthFlow(n);let i=await t.authFlow.getAuthorizationUrl();i&&i.url&&(\"twitter\"===e&&s.Dt&&(i.url=i.url.replace(\"x.com\",\"twitter.com\")),window.location.assign(i.url))},async initLoginWithTelegram(e){if(!p)throw new e0;ei.current=\"telegram\";let r=new rf(e);t.startAuthFlow(r),r.meta.telegramWebAppData=void 0,r.meta.telegramAuthResult=await new Promise((e,t)=>U.loginConfig.telegramAuthConfiguration?window.Telegram?void window.Telegram.Login.auth({bot_id:U.loginConfig.telegramAuthConfiguration.botId,request_access:!0},r=>r?e(r):t(new eK(\"Telegram auth failed or was canceled by the client\"))):t(new eK(\"Telegram was not initialized\")):t(new eK(\"Telegram Auth configuration is not loaded\")))},async loginWithTelegram(){let e,r;if(!(t.authFlow instanceof rf))throw new eK(\"Must initialize Telegram flow before calling loginWithTelegram\");if(f)try{({user:e}=await t.link()),ei.current=\"telegram\"}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"telegram\"}),e}else try{let n=await t.authenticate();e=n.user,r=n.isNewUser,ei.current=\"telegram\"}catch(e){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"telegram\"}),e}x(e),E(r||!1),y(!0)},async recoveryOAuthFlow(e,r,n){let i,a;function o(r){if(!r)throw t.createAnalyticsEvent({eventName:\"recovery_oauth_error\",payload:{error:\"Unable to open recovery OAuth popup\",provider:e}}),new eK(\"Recovery OAuth failed\")}switch(e){case\"google-drive\":{let r,s,{url:l,codeVerifier:c,stateCode:d}=await oo({api:uQ.api,provider:e});o(l);try{let i=await uV({url:l,popup:n,provider:e});if(r=i.stateCode,s=i.authorizationCode,r!==d)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:e,storedStateCode:d??\"\",returnedStateCode:r??\"\"}}),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\")}catch(r){throw t.createAnalyticsEvent({eventName:\"recovery_oauth_error\",payload:{error:r.toString(),provider:e}}),new eK(\"Recovery OAuth failed\")}[i,a]=await Promise.all([uK(),os({api:uQ.api,provider:e,codeVerifier:c,stateCode:r,authorizationCode:s})]);break}case\"icloud\":{let{url:t}=await oo({api:uQ.api,provider:e});o(t);let{ckWebAuthToken:r}=await uV({url:t,popup:n,provider:e});a=r,i=await uK()}}if(!L)throw new eK(\"Cannot connect to wallet proxy\");if(!i)throw new eK(\"Unable to authorize user\");switch(r){case\"recover\":let s=$.recoverWallet?.privyWallet?.address;if(!s)throw new eK(\"Recovery OAuth failed\");t.createAnalyticsEvent({eventName:\"embedded_wallet_recovery_started\",payload:{walletAddress:s,recoveryMethod:e}}),await L.recover({address:s,accessToken:i,recoveryAccessToken:a,recoveryMethod:e}),t.createAnalyticsEvent({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:s,recoveryMethod:e}});break;case\"create-wallet\":t.createAnalyticsEvent({eventName:\"embedded_wallet_creation_started\"}),await L.create({accessToken:i,recoveryAccessToken:a,recoveryMethod:e});let l=rC(await eN.refreshUser());if(!l)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to create wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_creation_completed\",payload:{walletAddress:l.address}}),nK(et,\"createWallet\",\"onSuccess\",l);break;case\"set-recovery\":let c=rC(w);if(!c)throw nK(et,\"setWalletRecovery\",\"onError\",\"embedded_wallet_not_found\"),Error(\"Embedded wallet not found\");t.createAnalyticsEvent({eventName:\"embedded_wallet_set_recovery_started\",payload:{walletAddress:c.address,existingRecoveryMethod:c.recoveryMethod,targetRecoveryMethod:e}}),await L.setRecovery({address:c.address,accessToken:i,recoveryAccessToken:a,recoveryMethod:e});let d=rC(await eN.refreshUser());if(!d)throw nK(et,\"createWallet\",\"onError\",\"unknown_embedded_wallet_error\"),Error(\"Failed to set recovery on wallet\");t.createAnalyticsEvent({eventName:\"embedded_wallet_set_recovery_completed\",payload:{walletAddress:c.address,existingRecoveryMethod:c.recoveryMethod,targetRecoveryMethod:e}}),nK(et,\"setWalletRecovery\",\"onSuccess\",e,d);break;default:throw new eK(\"Unsupported recovery action\")}},async loginWithOAuth(e){let r,n,i;if(!(t.authFlow instanceof t7))throw new eK(\"Must initialize OAuth flow before calling loginWithOAuth\");let a=to.get(tG),o=t.authFlow.meta.stateCode;if(a!==o)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:e,storedStateCode:a??\"\",returnedStateCode:o??\"\"}}),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\");if(f)try{let n=await t.link();r=n.user,i=n.oAuthTokens,ei.current=e}catch(t){throw nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e}),t}else try{let a=await t.authenticate();r=a.user,n=a.isNewUser,i=a.oAuthTokens,ei.current=e}catch(t){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",t.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e}),t}return x(r),E(n||!1),y(!0),i&&r&&nK(et,\"oAuthAuthorization\",\"onOAuthTokenGrant\",i,{user:r}),i},async initLoginWithPasskey(e){let r=new rh(e);t.startAuthFlow(r),ea.current=\"login\";try{ei.current=\"passkey\",await r.initAuthenticationFlow()}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}},async loginWithPasskey(){let e,r;if(!p)throw new e0;if(!(t.authFlow instanceof rh))throw new eK(\"Must initialize Passkey flow first.\");if(\"passkey\"!==ei.current)throw new eK(\"Must init login with Passkey flow first.\");try{ei.current=\"passkey\",{user:e,isNewUser:r}=await t.authenticate()}catch(e){throw nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}x(e),E(r||!1),y(!0)},async initLinkWithPasskey(e){let r=new rh(e);t.startAuthFlow(r),ea.current=\"link\",ei.current=\"passkey\";try{await r.initLinkFlow()}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"unknown_auth_error\",{linkMethod:\"passkey\"}),e}},async linkWithPasskey(){let e;if(!p)throw new e0;if(!(t.authFlow instanceof rh))throw new eK(\"Must initialize Passkey flow first.\");if(\"passkey\"!==ei.current)throw new eK(\"Must init login with Passkey flow first.\");try{ei.current=\"passkey\",{user:e}=await t.link()}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"passkey\"}),e}return x(e||w||null),e},async initLoginWithHeadlessOAuth(e,r){if(ta()){if(\"google\"===e&&aN(window.navigator.userAgent))throw Error(\"It looks like you're using an in-app browser.  To log in, please try again using an external browser.\")}else throw Error(\"It looks like you're using an in-app browser.  To log in, please try again using an external browser.\");let n=new t7({provider:e,headless:!0});r&&n.addCaptchaToken(r);let i=await t.startAuthFlow(n).getAuthorizationUrl();i?.url&&window.location.assign(i.url)},async loginWithHeadlessOAuth(e){let r,n;P(!0),t.startAuthFlow(new t7(e));let i=to.get(tG),a=e.stateCode;if(i!==a)throw t.createAnalyticsEvent({eventName:\"possible_phishing_attempt\",payload:{provider:e.provider,storedStateCode:i??\"\",returnedStateCode:a??\"\"}}),P(!1),new eK(\"Unexpected auth flow. This may be a phishing attempt.\",void 0,\"oauth_unexpected\");if(f)try{({user:r}=await t.link()),ei.current=e.provider}catch(t){throw nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e.provider}),t}else try{({user:r,isNewUser:n}=await t.authenticate()),ei.current=e.provider}catch(t){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",t.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",t.privyErrorCode||\"failed_to_link_account\",{linkMethod:e.provider}),t}return x(r),E(n||!1),y(!0),P(!1),r??void 0},initLoginWithEmail:async(e,r)=>{let n=new tt(e,r);t.startAuthFlow(n);try{ei.current=\"email\",await n.sendCodeEmail()}catch(e){throw\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"email\"}),e}},initUpdateEmail:async(e,r,n)=>{let i=new tr(e,r,n);t.startAuthFlow(i),await i.sendCodeEmail()},initUpdatePhone:async(e,r,n)=>{let i=new rg(e,r,n);t.startAuthFlow(i),await i.sendSmsCode()},initLoginWithSms:async(e,r)=>{O({status:\"sending-code\"});let n=new rm(e,r);t.startAuthFlow(n);try{ei.current=\"sms\",await n.sendSmsCode(),O({status:\"awaiting-code-input\"})}catch(e){throw O({status:\"error\",error:e}),\"login\"===ea.current?nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"):\"link\"===ea.current&&nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"sms\"}),e}},resendEmailCode:async()=>{await t.authFlow?.sendCodeEmail()},resendSmsCode:async()=>{await t.authFlow?.sendSmsCode()},loginWithCode:async e=>{let r,n;if(O({status:\"submitting-code\"}),!p){let e=new e0;throw O({status:\"error\",error:e}),e}if(t.authFlow instanceof tt)t.authFlow.meta.emailCode=e.trim();else if(t.authFlow instanceof rm)t.authFlow.meta.smsCode=e.trim();else{let e=new eK(\"Must initialize a passwordless code flow first\");throw O({status:\"error\",error:e}),e}if(await uK(),\"link\"===ea.current)try{({user:r}=await t.link())}catch(e){throw O({status:\"error\",error:e}),nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:ei.current}),e}else try{({user:r,isNewUser:n}=await t.authenticate())}catch(e){throw O({status:\"error\",error:e}),nK(et,\"login\",\"onError\",e.privyErrorCode||\"unknown_auth_error\"),e}x(r||w||null),E(n||!1),y(!0),O({status:\"done\"})},generateSiweMessage:async({address:e,chainId:r,captchaToken:n})=>{ea.current=\"link\",ei.current=\"siwe\";let i=await t.generateSiweNonce({address:e,captchaToken:n});return ru({address:e,chainId:r.replace(\"eip155:\",\"\"),nonce:i})},linkWithSiwe:async({message:e,signature:r,chainId:n,walletClientType:i,connectorType:a})=>{let o;try{if(\"link\"!==ea.current||\"siwe\"!==ei.current)throw new eK(\"Must ensure no other auth flow is in progress other than the SIWE signature flow.\");o=await t.linkWithSiwe({message:e,signature:r,chainId:n,walletClientType:i,connectorType:a}),o=await eN.refreshUser()??o;let s=ej(o);s&&nK(et,\"linkAccount\",\"onSuccess\",o,\"siwe\",s)}catch(e){throw nK(et,\"linkAccount\",\"onError\",e.privyErrorCode||\"failed_to_link_account\",{linkMethod:\"siwe\"}),ea.current=null,ei.current=null,e}x(o||w||null),ea.current=null,ei.current=null},refreshUser:async()=>{let e=await t.getAuthenticatedUser();return x(e),e},walletProxy:L,createAnalyticsEvent:({eventName:e,payload:r,timestamp:n})=>t.createAnalyticsEvent({eventName:e,payload:r,timestamp:n}),acceptTerms:async()=>{let e=await t.acceptTerms();return x(e),e},getUsdTokenPrice:e=>t.getUsdTokenPrice(e),recoverEmbeddedEthereumWallet:async()=>new Promise(async(e,r)=>{let n=rC(w)||r_(w),i=await uK();if(!i||!L||!n){r(Error(\"Must have valid access token and Privy wallet to recover wallet\"));return}z(!0);try{await L.connect({accessToken:i,address:n.address}),e(!0)}catch(a){a8(a)&&\"privy\"===n.recoveryMethod?(t.createAnalyticsEvent({eventName:\"embedded_wallet_pinless_recovery_started\",payload:{walletAddress:n.address}}),(await L.recover({address:n.address,accessToken:i,recoveryMethod:n.recoveryMethod})).address||r(Error(\"Unable to recover wallet\")),t.createAnalyticsEvent({eventName:\"embedded_wallet_recovery_completed\",payload:{walletAddress:n.address}}),e(!0)):a8(a)&&\"privy\"!==n.recoveryMethod?(H({recoverWallet:{privyWallet:n,onFailure:r,onSuccess:()=>e(!0)},recoveryOAuthStatus:{provider:n.recoveryMethod,action:\"recover\"}}),eo(oa(n.recoveryMethod))):r(a)}}),embeddedSolanaWallet:b,createEmbeddedSolanaWallet:async()=>{z(!0);let e=await uK(),r=rb(w),n=rC(w);if(!w||!e)throw new eK(\"User must be logged in to create a Solana wallet\");if(r)throw new eK(\"User already has an embedded Solana wallet.\");if(n){if(\"privy\"===n.recoveryMethod)await eN.recoverEmbeddedEthereumWallet();else throw new eK(\"Cannot create an embedded Solana wallet for a user with an existing Ethereum wallet with user-controlled recovery.\")}let i=await eN.initializeWalletProxy(15e3);if(!i)throw new eK(\"Unable to initialize wallet proxy\");t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_creation_started\"});try{await i.createSolana({accessToken:e,ethereumAddress:n?.address});let r=await eN.refreshUser(),a=rb(r);if(!a)throw new eK(\"Could not get Solana wallet for user\");return t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_creation_completed\",payload:{walletAddress:a.address}}),a}catch(e){throw t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_creation_failed\"}),new eK(\"Failed to create Solana embedded wallet with error \",e)}},recoverEmbeddedSolanaWallet:async()=>new Promise(async(e,r)=>{let n=rb(w),i=await uK();if(!i||!L||!n){r(Error(\"Must have valid access token and Privy wallet to recover wallet\"));return}z(!0);try{await L.connectSolana({accessToken:i,publicKey:n.address}),e(!0)}catch(a){a8(a)&&\"privy\"===n.recoveryMethod?(t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_pinless_recovery_started\",payload:{walletAddress:n.address}}),(await L.recoverSolana({publicKey:n.address,accessToken:i})).publicKey||r(Error(\"Unable to recover wallet\")),t.createAnalyticsEvent({eventName:\"embedded_solana_wallet_recovery_completed\",payload:{walletAddress:n.address}}),e(!0)):r(a)}}),getMoonpaySignedUrl:ew,initCoinbaseOnRamp:t.initCoinbaseOnRamp.bind(t),getCoinbaseOnRampStatus:t.getCoinbaseOnRampStatus.bind(t),setReadyToTrue:e=>{g(!0),B?.(e)},updateWallets:()=>ex(),fundWallet:async(e,t)=>{if(!U.fundingConfig||0===U.fundingConfig.methods.length)throw Error(\"Wallet funding is not enabled\");let r=hk({fundingMethods:U.fundingConfig.methods});H({funding:eA({address:e,fundWalletConfig:t,methodScreen:r})}),eo(r)},requestFarcasterSignerStatus:async e=>{let r=await uK(),n=w?.linkedAccounts.find(e=>\"wallet\"===e.type&&\"privy\"===e.walletClientType);if(!r)throw Error(\"Must have valid access token to connect with Farcaster\");if(!L||!n)throw Error(\"Must have an embedded wallet to use Farcaster signers\");if(!w?.farcaster?.fid)throw Error(\"Must have Farcaster account to use Farcaster signers\");let i=await t.requestFarcasterSignerStatus(e);return\"approved\"===i.status&&x(await t.getAuthenticatedUser()||w||null),i}};u1=eN.recoverEmbeddedEthereumWallet,u2=eN.recoverEmbeddedSolanaWallet,u3=eN.solanaSignMessage;let eR=(0,o.useMemo)(()=>({wallets:v,ready:K&&er}),[v,K,er]);return(0,m.jsx)(nz.Provider,{value:eP,children:(0,m.jsx)(nq.Provider,{value:et,children:(0,m.jsx)(s$.Provider,{value:eR,children:(0,m.jsx)(nL,{...U,children:(0,m.jsxs)(nD.Provider,{value:eN,children:[(0,m.jsx)(aM,{children:(0,m.jsxs)(nf,{data:$,setModalData:H,setInitialScreen:S,initialScreen:A,authenticated:f,open:h,children:[e.children,!U.headless&&U.captchaEnabled&&p&&!f&&(0,m.jsx)(nU,{delayedExecution:!1}),(0,m.jsx)(ux,{theme:{...U.appearance.palette||{}}}),!U.render.standalone&&(0,m.jsx)(uR,{open:h})]})}),Z&&D?(0,m.jsx)(uH,{appId:e.appId,appClientId:e.clientId,clientAnalyticsId:t.clientAnalyticsId,origin:t.apiUrl,mfaMethods:w?.mfaMethods,mfaPromise:J,mfaSubmitPromise:ee,onLoad:F,onLoadFailed:()=>null}):null,U.loginMethods.telegram&&U.loginConfig.telegramAuthConfiguration&&(0,m.jsx)(ik,{if:!0,children:(0,m.jsx)(uI,{scriptHost:e.apiUrl||tL,botUsername:U.loginConfig.telegramAuthConfiguration.botName})})]})})})})})}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/3d47b92a-88f28c2ab0026672.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[614],{28196:function(t,a,n){n.d(a,{In4:function(){return u}});var h=n(91810);function u(t){return(0,h.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"path\",attr:{d:\"M12.71 2.29a1 1 0 0 0-1.42 0l-9 9a1 1 0 0 0 0 1.42A1 1 0 0 0 3 13h1v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7h1a1 1 0 0 0 1-1 1 1 0 0 0-.29-.71zM6 20v-9.59l6-6 6 6V20z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/53c13509-fd73beeb7afe2e31.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[240],{63872:function(c,t,s){s.d(t,{P$5:function(){return n},d1A:function(){return r}});var l=s(91810);function n(c){return(0,l.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z\"},child:[]}]})(c)}function r(c){return(0,l.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160H352c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96h32V64c0-12.9 7.8-24.6 19.8-29.6zM164 282.7L204 336l-31.2 41.6C154.7 401.8 126.2 416 96 416H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H96c10.1 0 19.6-4.7 25.6-12.8L164 282.7zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V416H352c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H96c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8h32V320c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z\"},child:[]}]})(c)}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/550.78062c8e0f31c7e4.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[550],{74550:function(e,t,r){function n(e){let t=new Uint8Array(e),r=\"\";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\\+/g,\"-\").replace(/\\//g,\"_\").replace(/=/g,\"\")}function a(e){let t=e.replace(/-/g,\"+\").replace(/_/g,\"/\"),r=(4-t.length%4)%4,n=atob(t.padEnd(t.length+r,\"=\")),a=new ArrayBuffer(n.length),o=new Uint8Array(a);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return a}function o(){return window?.PublicKeyCredential!==void 0&&\"function\"==typeof window.PublicKeyCredential}function i(e){let{id:t}=e;return{...e,id:a(t),transports:e.transports}}function s(e){return\"localhost\"===e||/^([a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}$/i.test(e)}r.r(t),r.d(t,{WebAuthnAbortService:function(){return u},WebAuthnError:function(){return l},base64URLStringToBuffer:function(){return a},browserSupportsWebAuthn:function(){return o},browserSupportsWebAuthnAutofill:function(){return E},bufferToBase64URLString:function(){return n},platformAuthenticatorIsAvailable:function(){return A},startAuthentication:function(){return w},startRegistration:function(){return f}});class l extends Error{constructor({message:e,code:t,cause:r,name:n}){super(e,{cause:r}),this.name=n??r.name,this.code=t}}class c{createNewAbortSignal(){if(this.controller){let e=Error(\"Cancelling existing WebAuthn API call for new one\");e.name=\"AbortError\",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(\"Manually cancelling existing WebAuthn API call\");e.name=\"AbortError\",this.controller.abort(e),this.controller=void 0}}}let u=new c,d=[\"cross-platform\",\"platform\"];function h(e){if(!(!e||0>d.indexOf(e)))return e}async function f(e){var t;let r,c,d,f,E;if(!o())throw Error(\"WebAuthn is not supported in this browser\");let w={publicKey:{...e,challenge:a(e.challenge),user:{...e.user,id:(t=e.user.id,new TextEncoder().encode(t))},excludeCredentials:e.excludeCredentials?.map(i)}};w.signal=u.createNewAbortSignal();try{r=await navigator.credentials.create(w)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error(\"options was missing required publicKey property\");if(\"AbortError\"===e.name){if(t.signal instanceof AbortSignal)return new l({message:\"Registration ceremony was sent an abort signal\",code:\"ERROR_CEREMONY_ABORTED\",cause:e})}else if(\"ConstraintError\"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new l({message:\"Discoverable credentials were required but no available authenticator supported it\",code:\"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT\",cause:e});if(r.authenticatorSelection?.userVerification===\"required\")return new l({message:\"User verification was required but no available authenticator supported it\",code:\"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT\",cause:e})}else if(\"InvalidStateError\"===e.name)return new l({message:\"The authenticator was previously registered\",code:\"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED\",cause:e});else if(\"NotAllowedError\"===e.name)return new l({message:e.message,code:\"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY\",cause:e});else if(\"NotSupportedError\"===e.name)return new l(0===r.pubKeyCredParams.filter(e=>\"public-key\"===e.type).length?{message:'No entry in pubKeyCredParams was of type \"public-key\"',code:\"ERROR_MALFORMED_PUBKEYCREDPARAMS\",cause:e}:{message:\"No available authenticator supported any of the specified pubKeyCredParams algorithms\",code:\"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG\",cause:e});else if(\"SecurityError\"===e.name){let t=window.location.hostname;if(!s(t))return new l({message:`${window.location.hostname} is an invalid domain`,code:\"ERROR_INVALID_DOMAIN\",cause:e});if(r.rp.id!==t)return new l({message:`The RP ID \"${r.rp.id}\" is invalid for this domain`,code:\"ERROR_INVALID_RP_ID\",cause:e})}else if(\"TypeError\"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new l({message:\"User ID was not between 1 and 64 characters\",code:\"ERROR_INVALID_USER_ID_LENGTH\",cause:e})}else if(\"UnknownError\"===e.name)return new l({message:\"The authenticator was unable to process the specified options, or could not create a new credential\",code:\"ERROR_AUTHENTICATOR_GENERAL_ERROR\",cause:e});return e}({error:e,options:w})}if(!r)throw Error(\"Registration was not completed\");let{id:A,rawId:g,response:p,type:b}=r;if(\"function\"==typeof p.getTransports&&(d=p.getTransports()),\"function\"==typeof p.getPublicKeyAlgorithm)try{f=p.getPublicKeyAlgorithm()}catch(e){R(\"getPublicKeyAlgorithm()\",e)}if(\"function\"==typeof p.getPublicKey)try{let e=p.getPublicKey();null!==e&&(E=n(e))}catch(e){R(\"getPublicKey()\",e)}if(\"function\"==typeof p.getAuthenticatorData)try{c=n(p.getAuthenticatorData())}catch(e){R(\"getAuthenticatorData()\",e)}return{id:A,rawId:n(g),response:{attestationObject:n(p.attestationObject),clientDataJSON:n(p.clientDataJSON),transports:d,publicKeyAlgorithm:f,publicKey:E,authenticatorData:c},type:b,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:h(r.authenticatorAttachment)}}function R(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.\n`,t)}function E(){let e=window.PublicKeyCredential;return void 0===e.isConditionalMediationAvailable?new Promise(e=>e(!1)):e.isConditionalMediationAvailable()}async function w(e,t=!1){let r,c,d;if(!o())throw Error(\"WebAuthn is not supported in this browser\");e.allowCredentials?.length!==0&&(r=e.allowCredentials?.map(i));let f={...e,challenge:a(e.challenge),allowCredentials:r},R={};if(t){if(!await E())throw Error(\"Browser does not support WebAuthn autofill\");if(document.querySelectorAll(\"input[autocomplete$='webauthn']\").length<1)throw Error('No <input> with \"webauthn\" as the only or last value in its `autocomplete` attribute was detected');R.mediation=\"conditional\",f.allowCredentials=[]}R.publicKey=f,R.signal=u.createNewAbortSignal();try{c=await navigator.credentials.get(R)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error(\"options was missing required publicKey property\");if(\"AbortError\"===e.name){if(t.signal instanceof AbortSignal)return new l({message:\"Authentication ceremony was sent an abort signal\",code:\"ERROR_CEREMONY_ABORTED\",cause:e})}else if(\"NotAllowedError\"===e.name)return new l({message:e.message,code:\"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY\",cause:e});else if(\"SecurityError\"===e.name){let t=window.location.hostname;if(!s(t))return new l({message:`${window.location.hostname} is an invalid domain`,code:\"ERROR_INVALID_DOMAIN\",cause:e});if(r.rpId!==t)return new l({message:`The RP ID \"${r.rpId}\" is invalid for this domain`,code:\"ERROR_INVALID_RP_ID\",cause:e})}else if(\"UnknownError\"===e.name)return new l({message:\"The authenticator was unable to process the specified options, or could not create a new assertion signature\",code:\"ERROR_AUTHENTICATOR_GENERAL_ERROR\",cause:e});return e}({error:e,options:R})}if(!c)throw Error(\"Authentication was not completed\");let{id:w,rawId:A,response:g,type:p}=c;if(g.userHandle){var b;b=g.userHandle,d=new TextDecoder(\"utf-8\").decode(b)}return{id:w,rawId:n(A),response:{authenticatorData:n(g.authenticatorData),clientDataJSON:n(g.clientDataJSON),signature:n(g.signature),userHandle:d},type:p,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:h(c.authenticatorAttachment)}}function A(){return o()?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable():new Promise(e=>e(!1))}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/5ab80550-22a236d451c69b50.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{50499:function(t,e,r){let i,n;r.d(e,{$0m:function(){return J},AWt:function(){return il},Au2:function(){return im},B95:function(){return nh},Bvr:function(){return iL},BwD:function(){return ti},D6H:function(){return iG},DJo:function(){return r4},DQe:function(){return x},DaH:function(){return Q},DdM:function(){return i6},E0T:function(){return tn},E12:function(){return iH},EJd:function(){return nr},ENt:function(){return iI},Ggh:function(){return nd},GqV:function(){return tt},H1S:function(){return W},H4H:function(){return ni},HIp:function(){return iw},HhN:function(){return ts},IPd:function(){return V},Ih8:function(){return i$},IkP:function(){return ii},JTI:function(){return no},KCv:function(){return Y},L5o:function(){return iV},Llj:function(){return iS},M_r:function(){return iX},Maj:function(){return ij},NmC:function(){return r5},O6B:function(){return nv},ONw:function(){return nc},PMr:function(){return nt},Q01:function(){return ne},Q8x:function(){return iN},UGU:function(){return q},WGe:function(){return ib},X_B:function(){return K},Y31:function(){return is},YmJ:function(){return iA},Z26:function(){return i9},Z42:function(){return $},_HE:function(){return iB},alS:function(){return nf},b$m:function(){return z},bW6:function(){return tu},c4l:function(){return r7},cOS:function(){return iC},eGA:function(){return to},gn4:function(){return tr},gpE:function(){return iz},guN:function(){return O},h1R:function(){return i3},hA9:function(){return ih},hFY:function(){return X},hHR:function(){return nn},heJ:function(){return iF},iPz:function(){return te},ing:function(){return i7},jUY:function(){return j},jdp:function(){return ig},jvJ:function(){return i1},kCb:function(){return iJ},m$A:function(){return iv},naP:function(){return i5},nfW:function(){return ns},o8e:function(){return iW},ouN:function(){return iu},p8o:function(){return nu},peR:function(){return iM},qJM:function(){return io},qt8:function(){return iY},rFo:function(){return na},rVF:function(){return ip},rjm:function(){return iy},uwg:function(){return nm},vBi:function(){return iE},wvx:function(){return r9},xWS:function(){return i2}});var o,s,u,f,h,a,l,c,d,p,m,g=r(52159),v=r(54574),A=r(25527),y=r(70053),b=r(61179),w=r(23518),M=r(67878),E=r(24861),S=r(67929),I=r(89414),N=r(39613),B=r(57711),C=r(25566),_=r(9109).Buffer;function x(t){let[e,r]=t.split(\":\");return{namespace:e,reference:r}}function O(t,e=[]){let r=[];return Object.keys(t).forEach(i=>{if(e.length&&!e.includes(i))return;let n=t[i];r.push(...n.accounts)}),r}function R(t,e){return t.includes(\":\")?[t]:e.chains||[]}var k=Object.defineProperty,P=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(t,e,r)=>e in t?k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))U.call(e,r)&&D(t,r,e[r]);if(P)for(var r of P(e))T.call(e,r)&&D(t,r,e[r]);return t};let L={reactNative:\"react-native\",node:\"node\",browser:\"browser\",unknown:\"unknown\"};function q(){return\"u\">typeof C&&\"u\">typeof C.versions&&\"u\">typeof C.versions.node}function z(){return!(0,A.getDocument)()&&!!(0,A.getNavigator)()&&\"ReactNative\"===navigator.product}function j(){return!q()&&!!(0,A.getNavigator)()&&!!(0,A.getDocument)()}function H(){return z()?L.reactNative:q()?L.node:j()?L.browser:L.unknown}function K(){var t;try{return z()&&\"u\">typeof r.g&&\"u\">typeof(null==r.g?void 0:r.g.Application)?null==(t=r.g.Application)?void 0:t.applicationId:void 0}catch{return}}function Q(){return(0,y.D)()||{name:\"\",description:\"\",url:\"\",icons:[\"\"]}}function J({protocol:t,version:e,relayUrl:i,sdkVersion:n,auth:o,projectId:s,useOnCloseEvent:u,bundleId:f}){var h,a;let l;let c=i.split(\"?\"),d=function(t,e,i){let n=function(){if(H()===L.reactNative&&\"u\">typeof r.g&&\"u\">typeof(null==r.g?void 0:r.g.Platform)){let{OS:t,Version:e}=r.g.Platform;return[t,e].join(\"-\")}let t=(0,g.qY)();if(null===t)return\"unknown\";let e=t.os?t.os.replace(\" \",\"\").toLowerCase():\"unknown\";return\"browser\"===t.type?[e,t.name,t.version].join(\"-\"):[e,t.version].join(\"-\")}(),o=function(){var t;let e=H();return e===L.browser?[e,(null==(t=(0,A.getLocation)())?void 0:t.host)||\"unknown\"].join(\":\"):e}();return[[t,e].join(\"-\"),[\"js\",i].join(\"-\"),n,o].join(\"/\")}(t,e,n),p=(h=c[1]||\"\",a={auth:o,ua:d,projectId:s,useOnCloseEvent:u||void 0,origin:f||void 0},l=F(F({},l=b.parse(h)),a),h=b.stringify(l));return c[0]+\"?\"+p}function G(t,e){return t.filter(t=>e.includes(t)).length===t.length}function Y(t){return Object.fromEntries(t.entries())}function V(t){return new Map(Object.entries(t))}function W(t=v.FIVE_MINUTES,e){let r,i,n;let o=(0,v.toMiliseconds)(t||v.FIVE_MINUTES);return{resolve:t=>{n&&r&&(clearTimeout(n),r(t))},reject:t=>{n&&i&&(clearTimeout(n),i(t))},done:()=>new Promise((t,s)=>{n=setTimeout(()=>{s(Error(e))},o),r=t,i=s})}}function X(t,e,r){return new Promise(async(i,n)=>{let o=setTimeout(()=>n(Error(r)),e);try{let e=await t;i(e)}catch(t){n(t)}clearTimeout(o)})}function Z(t,e){if(\"string\"==typeof e&&e.startsWith(`${t}:`))return e;if(\"topic\"===t.toLowerCase()){if(\"string\"!=typeof e)throw Error('Value must be \"string\" for expirer target type: topic');return`topic:${e}`}if(\"id\"===t.toLowerCase()){if(\"number\"!=typeof e)throw Error('Value must be \"number\" for expirer target type: id');return`id:${e}`}throw Error(`Unknown expirer target type: ${t}`)}function $(t){return Z(\"topic\",t)}function tt(t){return Z(\"id\",t)}function te(t){let[e,r]=t.split(\":\"),i={id:void 0,topic:void 0};if(\"topic\"===e&&\"string\"==typeof r)i.topic=r;else if(\"id\"===e&&Number.isInteger(Number(r)))i.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);return i}function tr(t,e){return(0,v.fromMiliseconds)((e||Date.now())+(0,v.toMiliseconds)(t))}function ti(t){return Date.now()>=(0,v.toMiliseconds)(t)}function tn(t,e){return`${t}${e?`:${e}`:\"\"}`}function to(t=[],e=[]){return[...new Set([...t,...e])]}async function ts({id:t,topic:e,wcDeepLink:i}){try{if(!i)return;let n=\"string\"==typeof i?JSON.parse(i):i,o=n?.href;if(\"string\"!=typeof o)return;o.endsWith(\"/\")&&(o=o.slice(0,-1));let s=`${o}/wc?requestId=${t}&sessionTopic=${e}`,u=H();u===L.browser?s.startsWith(\"https://\")||s.startsWith(\"http://\")?window.open(s,\"_blank\",\"noreferrer noopener\"):window.open(s,\"_self\",\"noreferrer noopener\"):u===L.reactNative&&\"u\">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(s)}catch(t){console.error(t)}}async function tu(t,e){try{return await t.getItem(e)||(j()?localStorage.getItem(e):void 0)}catch(t){console.error(t)}}var tf=\"u\">typeof globalThis?globalThis:\"u\">typeof window?window:\"u\">typeof r.g?r.g:\"u\">typeof self?self:{},th={exports:{}};!function(){var t=\"input is invalid type\",e=\"object\"==typeof window,r=e?window:{};r.JS_SHA3_NO_WINDOW&&(e=!1);var i=!e&&\"object\"==typeof self;!r.JS_SHA3_NO_NODE_JS&&\"object\"==typeof C&&C.versions&&C.versions.node?r=tf:i&&(r=self);var n=!r.JS_SHA3_NO_COMMON_JS&&th.exports,o=!r.JS_SHA3_NO_ARRAY_BUFFER&&\"u\">typeof ArrayBuffer,s=\"0123456789abcdef\".split(\"\"),u=[4,1024,262144,67108864],f=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=[224,256,384,512],l=[128,256],c=[\"hex\",\"buffer\",\"arrayBuffer\",\"array\",\"digest\"],d={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return\"[object Array]\"===Object.prototype.toString.call(t)}),o&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return\"object\"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var p=function(t,e,r){return function(i){return new x(t,e,t).update(i)[r]()}},m=function(t,e,r){return function(i,n){return new x(t,e,n).update(i)[r]()}},g=function(t,e,r){return function(e,i,n,o){return w[\"cshake\"+t].update(e,i,n,o)[r]()}},v=function(t,e,r){return function(e,i,n,o){return w[\"kmac\"+t].update(e,i,n,o)[r]()}},A=function(t,e,r,i){for(var n=0;n<c.length;++n){var o=c[n];t[o]=e(r,i,o)}return t},y=function(t,e){var r=p(t,e,\"hex\");return r.create=function(){return new x(t,e,t)},r.update=function(t){return r.create().update(t)},A(r,p,t,e)},b=[{name:\"keccak\",padding:[1,256,65536,16777216],bits:a,createMethod:y},{name:\"sha3\",padding:[6,1536,393216,100663296],bits:a,createMethod:y},{name:\"shake\",padding:[31,7936,2031616,520093696],bits:l,createMethod:function(t,e){var r=m(t,e,\"hex\");return r.create=function(r){return new x(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},A(r,m,t,e)}},{name:\"cshake\",padding:u,bits:l,createMethod:function(t,e){var r=d[t],i=g(t,e,\"hex\");return i.create=function(i,n,o){return n||o?new x(t,e,i).bytepad([n,o],r):w[\"shake\"+t].create(i)},i.update=function(t,e,r,n){return i.create(e,r,n).update(t)},A(i,g,t,e)}},{name:\"kmac\",padding:u,bits:l,createMethod:function(t,e){var r=d[t],i=v(t,e,\"hex\");return i.create=function(i,n,o){return new O(t,e,n).bytepad([\"KMAC\",o],r).bytepad([i],r)},i.update=function(t,e,r,n){return i.create(t,r,n).update(e)},A(i,v,t,e)}}],w={},M=[],E=0;E<b.length;++E)for(var S=b[E],I=S.bits,N=0;N<I.length;++N){var B=S.name+\"_\"+I[N];if(M.push(B),w[B]=S.createMethod(I[N],S.padding),\"sha3\"!==S.name){var _=S.name+I[N];M.push(_),w[_]=w[B]}}function x(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function O(t,e,r){x.call(this,t,e,r)}x.prototype.update=function(e){if(this.finalized)throw Error(\"finalize already called\");var r,i=typeof e;if(\"string\"!==i){if(\"object\"===i){if(null===e)throw Error(t);if(o&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!o||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}for(var n,s,u=this.blocks,h=this.byteCount,a=e.length,l=this.blockCount,c=0,d=this.s;c<a;){if(this.reset)for(this.reset=!1,u[0]=this.block,n=1;n<l+1;++n)u[n]=0;if(r)for(n=this.start;c<a&&n<h;++c)u[n>>2]|=e[c]<<f[3&n++];else for(n=this.start;c<a&&n<h;++c)(s=e.charCodeAt(c))<128?u[n>>2]|=s<<f[3&n++]:(s<2048?u[n>>2]|=(192|s>>6)<<f[3&n++]:(s<55296||s>=57344?u[n>>2]|=(224|s>>12)<<f[3&n++]:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++c)),u[n>>2]|=(240|s>>18)<<f[3&n++],u[n>>2]|=(128|s>>12&63)<<f[3&n++]),u[n>>2]|=(128|s>>6&63)<<f[3&n++]),u[n>>2]|=(128|63&s)<<f[3&n++]);if(this.lastByteIndex=n,n>=h){for(this.start=n-h,this.block=u[l],n=0;n<l;++n)d[n]^=u[n];R(d),this.reset=!0}else this.start=n}return this},x.prototype.encode=function(t,e){var r=255&t,i=1,n=[r];for(t>>=8,r=255&t;r>0;)n.unshift(r),t>>=8,r=255&t,++i;return e?n.push(i):n.unshift(i),this.update(n),n.length},x.prototype.encodeString=function(e){var r,i=typeof e;if(\"string\"!==i){if(\"object\"===i){if(null===e)throw Error(t);if(o&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!o||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}var n=0,s=e.length;if(r)n=s;else for(var u=0;u<e.length;++u){var f=e.charCodeAt(u);f<128?n+=1:f<2048?n+=2:f<55296||f>=57344?n+=3:(f=65536+((1023&f)<<10|1023&e.charCodeAt(++u)),n+=4)}return n+=this.encode(8*n),this.update(e),n},x.prototype.bytepad=function(t,e){for(var r=this.encode(e),i=0;i<t.length;++i)r+=this.encodeString(t[i]);var n=e-r%e,o=[];return o.length=n,this.update(o),this},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,i=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)i[e]^=t[e];R(i)}},x.prototype.toString=x.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,u=0,f=\"\";u<i;){for(o=0;o<e&&u<i;++o,++u)f+=s[(t=r[o])>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];u%e==0&&(R(r),o=0)}return n&&(f+=s[(t=r[o])>>4&15]+s[15&t],n>1&&(f+=s[t>>12&15]+s[t>>8&15]),n>2&&(f+=s[t>>20&15]+s[t>>16&15])),f},x.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,u=this.outputBits>>3;t=new ArrayBuffer(n?i+1<<2:u);for(var f=new Uint32Array(t);s<i;){for(o=0;o<e&&s<i;++o,++s)f[s]=r[o];s%e==0&&R(r)}return n&&(f[o]=r[o],t=t.slice(0,u)),t},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.digest=x.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,i=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,u=0,f=[];u<n;){for(s=0;s<r&&u<n;++s,++u)t=u<<2,e=i[s],f[t]=255&e,f[t+1]=e>>8&255,f[t+2]=e>>16&255,f[t+3]=e>>24&255;u%r==0&&R(i)}return o&&(t=u<<2,e=i[s],f[t]=255&e,o>1&&(f[t+1]=e>>8&255),o>2&&(f[t+2]=e>>16&255)),f},O.prototype=new x,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),x.prototype.finalize.call(this)};var R=function(t){var e,r,i,n,o,s,u,f,a,l,c,d,p,m,g,v,A,y,b,w,M,E,S,I,N,B,C,_,x,O,R,k,P,U,T,D,F,L,q,z,j,H,K,Q,J,G,Y,V,W,X,Z,$,tt,te,tr,ti,tn,to,ts,tu,tf,th,ta;for(i=0;i<48;i+=2)n=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],f=t[4]^t[14]^t[24]^t[34]^t[44],a=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|u>>>31),r=p^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=n^(f<<1|a>>>31),r=o^(a<<1|f>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|c>>>31),r=u^(c<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=f^(d<<1|p>>>31),r=a^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(n<<1|o>>>31),r=c^(o<<1|n>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,Y=t[10]<<4|t[11]>>>28,_=t[20]<<3|t[21]>>>29,x=t[21]<<3|t[20]>>>29,tu=t[31]<<9|t[30]>>>23,tf=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,T=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,A=t[12]<<12|t[13]>>>20,V=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,th=t[42]<<2|t[43]>>>30,ta=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,F=t[15]<<6|t[14]>>>26,y=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,k=t[45]<<29|t[44]>>>3,P=t[44]<<29|t[45]>>>3,I=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,ti=t[17]<<23|t[16]>>>9,tn=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,q=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,Q=t[8]<<27|t[9]>>>5,J=t[9]<<27|t[8]>>>5,B=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,to=t[29]<<7|t[28]>>>25,ts=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,j=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&y,t[1]=g^~A&b,t[10]=I^~B&_,t[11]=N^~C&x,t[20]=U^~D&L,t[21]=T^~F&q,t[30]=Q^~G&V,t[31]=J^~Y&W,t[40]=te^~ti&to,t[41]=tr^~tn&ts,t[2]=v^~y&w,t[3]=A^~b&M,t[12]=B^~_&O,t[13]=C^~x&R,t[22]=D^~L&z,t[23]=F^~q&j,t[32]=G^~V&X,t[33]=Y^~W&Z,t[42]=ti^~to&tu,t[43]=tn^~ts&tf,t[4]=y^~w&E,t[5]=b^~M&S,t[14]=_^~O&k,t[15]=x^~R&P,t[24]=L^~z&H,t[25]=q^~j&K,t[34]=V^~X&$,t[35]=W^~Z&tt,t[44]=to^~tu&th,t[45]=ts^~tf&ta,t[6]=w^~E&m,t[7]=M^~S&g,t[16]=O^~k&I,t[17]=R^~P&N,t[26]=z^~H&U,t[27]=j^~K&T,t[36]=X^~$&Q,t[37]=Z^~tt&J,t[46]=tu^~th&te,t[47]=tf^~ta&tr,t[8]=E^~m&v,t[9]=S^~g&A,t[18]=k^~I&B,t[19]=P^~N&C,t[28]=H^~U&D,t[29]=K^~T&F,t[38]=$^~Q&G,t[39]=tt^~J&Y,t[48]=th^~te&ti,t[49]=ta^~tr&tn,t[0]^=h[i],t[1]^=h[i+1]};if(n)th.exports=w;else for(E=0;E<M.length;++E)r[M[E]]=w[M[E]]}();var ta=th.exports;let tl=!1,tc=!1,td={debug:1,default:2,info:2,warning:3,error:4,off:5},tp=td.default,tm=null,tg=function(){try{let t=[];if([\"NFD\",\"NFC\",\"NFKD\",\"NFKC\"].forEach(e=>{try{if(\"test\"!==\"test\".normalize(e))throw Error(\"bad normalize\")}catch{t.push(e)}}),t.length)throw Error(\"missing \"+t.join(\", \"));if(String.fromCharCode(233).normalize(\"NFD\")!==String.fromCharCode(101,769))throw Error(\"broken implementation\")}catch(t){return t.message}return null}();(s=l||(l={})).DEBUG=\"DEBUG\",s.INFO=\"INFO\",s.WARNING=\"WARNING\",s.ERROR=\"ERROR\",s.OFF=\"OFF\",(u=c||(c={})).UNKNOWN_ERROR=\"UNKNOWN_ERROR\",u.NOT_IMPLEMENTED=\"NOT_IMPLEMENTED\",u.UNSUPPORTED_OPERATION=\"UNSUPPORTED_OPERATION\",u.NETWORK_ERROR=\"NETWORK_ERROR\",u.SERVER_ERROR=\"SERVER_ERROR\",u.TIMEOUT=\"TIMEOUT\",u.BUFFER_OVERRUN=\"BUFFER_OVERRUN\",u.NUMERIC_FAULT=\"NUMERIC_FAULT\",u.MISSING_NEW=\"MISSING_NEW\",u.INVALID_ARGUMENT=\"INVALID_ARGUMENT\",u.MISSING_ARGUMENT=\"MISSING_ARGUMENT\",u.UNEXPECTED_ARGUMENT=\"UNEXPECTED_ARGUMENT\",u.CALL_EXCEPTION=\"CALL_EXCEPTION\",u.INSUFFICIENT_FUNDS=\"INSUFFICIENT_FUNDS\",u.NONCE_EXPIRED=\"NONCE_EXPIRED\",u.REPLACEMENT_UNDERPRICED=\"REPLACEMENT_UNDERPRICED\",u.UNPREDICTABLE_GAS_LIMIT=\"UNPREDICTABLE_GAS_LIMIT\",u.TRANSACTION_REPLACED=\"TRANSACTION_REPLACED\",u.ACTION_REJECTED=\"ACTION_REJECTED\";let tv=\"0123456789abcdef\";class tA{constructor(t){Object.defineProperty(this,\"version\",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==td[r]&&this.throwArgumentError(\"invalid log level name\",\"logLevel\",t),tp>td[r]||console.log.apply(console,e)}debug(...t){this._log(tA.levels.DEBUG,t)}info(...t){this._log(tA.levels.INFO,t)}warn(...t){this._log(tA.levels.WARNING,t)}makeError(t,e,r){if(tc)return this.makeError(\"censored error\",e,{});e||(e=tA.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r=\"\";for(let t=0;t<e.length;t++)r+=tv[e[t]>>4]+tv[15&e[t]];i.push(t+\"=Uint8Array(0x\"+r+\")\")}else i.push(t+\"=\"+JSON.stringify(e))}catch{i.push(t+\"=\"+JSON.stringify(r[t].toString()))}}),i.push(`code=${e}`),i.push(`version=${this.version}`);let n=t,o=\"\";switch(e){case c.NUMERIC_FAULT:{o=\"NUMERIC_FAULT\";let e=t;switch(e){case\"overflow\":case\"underflow\":case\"division-by-zero\":o+=\"-\"+e;break;case\"negative-power\":case\"negative-width\":o+=\"-unsupported\";break;case\"unbound-bitwise-result\":o+=\"-unbound-result\"}break}case c.CALL_EXCEPTION:case c.INSUFFICIENT_FUNDS:case c.MISSING_NEW:case c.NONCE_EXPIRED:case c.REPLACEMENT_UNDERPRICED:case c.TRANSACTION_REPLACED:case c.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=\" [ See: https://links.ethers.org/v5-errors-\"+o+\" ]\"),i.length&&(t+=\" (\"+i.join(\", \")+\")\");let s=Error(t);return s.reason=n,s.code=e,Object.keys(r).forEach(function(t){s[t]=r[t]}),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,tA.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,i){t||this.throwError(e,r,i)}assertArgument(t,e,r,i){t||this.throwArgumentError(e,r,i)}checkNormalize(t){tg&&this.throwError(\"platform missing String.prototype.normalize\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"String.prototype.normalize\",form:tg})}checkSafeUint53(t,e){\"number\"==typeof t&&(null==e&&(e=\"value not safe\"),(t<0||t>=9007199254740991)&&this.throwError(e,tA.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"out-of-safe-range\",value:t}),t%1&&this.throwError(e,tA.errors.NUMERIC_FAULT,{operation:\"checkSafeInteger\",fault:\"non-integer\",value:t}))}checkArgumentCount(t,e,r){r=r?\": \"+r:\"\",t<e&&this.throwError(\"missing argument\"+r,tA.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError(\"too many arguments\"+r,tA.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError(\"missing new\",tA.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError(\"cannot instantiate abstract class \"+JSON.stringify(e.name)+\" directly; use a sub-class\",tA.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:\"new\"}):(t===Object||null==t)&&this.throwError(\"missing new\",tA.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return tm||(tm=new tA(\"logger/5.7.0\")),tm}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError(\"cannot permanently disable censorship\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"}),tl){if(!t)return;this.globalLogger().throwError(\"error censorship permanent\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"setCensorship\"})}tc=!!t,tl=!!e}static setLogLevel(t){let e=td[t.toLowerCase()];if(null==e){tA.globalLogger().warn(\"invalid log level - \"+t);return}tp=e}static from(t){return new tA(t)}}tA.errors=c,tA.levels=l;let ty=new tA(\"bytes/5.7.0\");function tb(t){return!!t.toHexString}function tw(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return tw(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function tM(t){return\"number\"==typeof t&&t==t&&t%1==0}function tE(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if(\"string\"==typeof t||!tM(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!tM(r)||r<0||r>=256)return!1}return!0}function tS(t,e){if(e||(e={}),\"number\"==typeof t){ty.checkSafeUint53(t,\"invalid arrayify value\");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),tw(new Uint8Array(e))}if(e.allowMissingPrefix&&\"string\"==typeof t&&\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),tb(t)&&(t=t.toHexString()),tI(t)){let r=t.substring(2);r.length%2&&(\"left\"===e.hexPad?r=\"0\"+r:\"right\"===e.hexPad?r+=\"0\":ty.throwArgumentError(\"hex data is odd-length\",\"value\",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return tw(new Uint8Array(i))}return tE(t)?tw(new Uint8Array(t)):ty.throwArgumentError(\"invalid arrayify value\",\"value\",t)}function tI(t,e){return!(\"string\"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}let tN=\"0123456789abcdef\";function tB(t,e){if(e||(e={}),\"number\"==typeof t){ty.checkSafeUint53(t,\"invalid hexlify value\");let e=\"\";for(;t;)e=tN[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e=\"0\"+e),\"0x\"+e):\"0x00\"}if(\"bigint\"==typeof t)return(t=t.toString(16)).length%2?\"0x0\"+t:\"0x\"+t;if(e.allowMissingPrefix&&\"string\"==typeof t&&\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),tb(t))return t.toHexString();if(tI(t))return t.length%2&&(\"left\"===e.hexPad?t=\"0x0\"+t.substring(2):\"right\"===e.hexPad?t+=\"0\":ty.throwArgumentError(\"hex data is odd-length\",\"value\",t)),t.toLowerCase();if(tE(t)){let e=\"0x\";for(let r=0;r<t.length;r++){let i=t[r];e+=tN[(240&i)>>4]+tN[15&i]}return e}return ty.throwArgumentError(\"invalid hexlify value\",\"value\",t)}function tC(t,e,r){return\"string\"!=typeof t?t=tB(t):(!tI(t)||t.length%2)&&ty.throwArgumentError(\"invalid hexData\",\"value\",t),e=2+2*e,null!=r?\"0x\"+t.substring(e,2+2*r):\"0x\"+t.substring(e)}function t_(t,e){for(\"string\"!=typeof t?t=tB(t):tI(t)||ty.throwArgumentError(\"invalid hex string\",\"value\",t),t.length>2*e+2&&ty.throwArgumentError(\"value out of range\",\"value\",arguments[1]);t.length<2*e+2;)t=\"0x0\"+t.substring(2);return t}function tx(t){let e={r:\"0x\",s:\"0x\",_vs:\"0x\",recoveryParam:0,v:0,yParityAndS:\"0x\",compact:\"0x\"};if(tI(t)&&!(t.length%2)||tE(t)){let r=tS(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=tB(r.slice(0,32)),e.s=tB(r.slice(32,64))):65===r.length?(e.r=tB(r.slice(0,32)),e.s=tB(r.slice(32,64)),e.v=r[64]):ty.throwArgumentError(\"invalid signature string\",\"signature\",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:ty.throwArgumentError(\"signature invalid v byte\",\"signature\",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=tB(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=tS(t)).length>e&&ty.throwArgumentError(\"value out of range\",\"value\",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),tw(r)}(tS(e._vs),32);e._vs=tB(r);let i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&ty.throwArgumentError(\"signature recoveryParam mismatch _vs\",\"signature\",t),r[0]&=127;let n=tB(r);null==e.s?e.s=n:e.s!==n&&ty.throwArgumentError(\"signature v mismatch _vs\",\"signature\",t)}if(null==e.recoveryParam)null==e.v?ty.throwArgumentError(\"signature missing v and recoveryParam\",\"signature\",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&ty.throwArgumentError(\"signature recoveryParam mismatch v\",\"signature\",t)}null!=e.r&&tI(e.r)?e.r=t_(e.r,32):ty.throwArgumentError(\"signature missing or invalid r\",\"signature\",t),null!=e.s&&tI(e.s)?e.s=t_(e.s,32):ty.throwArgumentError(\"signature missing or invalid s\",\"signature\",t);let r=tS(e.s);r[0]>=128&&ty.throwArgumentError(\"signature s out of range\",\"signature\",t),e.recoveryParam&&(r[0]|=128);let i=tB(r);e._vs&&(tI(e._vs)||ty.throwArgumentError(\"signature invalid _vs\",\"signature\",t),e._vs=t_(e._vs,32)),null==e._vs?e._vs=i:e._vs!==i&&ty.throwArgumentError(\"signature _vs mismatch v and s\",\"signature\",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function tO(t){return\"0x\"+ta.keccak_256(tS(t))}var tR={exports:{}},tk=function(t){var e=t.default;if(\"function\"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,\"__esModule\",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}(Object.freeze({__proto__:null,default:{}}));!function(t,e){function r(t,e){if(!t)throw Error(e||\"Assertion failed\")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function n(t,e,r){if(n.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&((\"le\"===e||\"be\"===e)&&(r=e,e=10),this._init(t||0,e||10,r||\"be\"))}\"object\"==typeof t?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;try{a=\"u\">typeof window&&\"u\">typeof window.Buffer?window.Buffer:tk.Buffer}catch{}function o(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void r(!1,\"Invalid character in \"+t)}function s(t,e,r){var i=o(t,r);return r-1>=e&&(i|=o(t,r-1)<<4),i}function u(t,e,i,n){for(var o=0,s=0,u=Math.min(t.length,i),f=e;f<u;f++){var h=t.charCodeAt(f)-48;o*=n,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<n,\"Invalid character\"),o+=s}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(n.isBN=function(t){return t instanceof n||null!==t&&\"object\"==typeof t&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,e){return t.cmp(e)>0?t:e},n.min=function(t,e){return 0>t.cmp(e)?t:e},n.prototype._init=function(t,e,i){if(\"number\"==typeof t)return this._initNumber(t,e,i);if(\"object\"==typeof t)return this._initArray(t,e,i);\"hex\"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;\"-\"===(t=t.toString().replace(/\\s+/g,\"\"))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),\"le\"===i&&this._initArray(this.toArray(),e,i)))},n.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),\"le\"===i&&this._initArray(this.toArray(),e,i)},n.prototype._initArray=function(t,e,i){if(r(\"number\"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,s,u=0;if(\"be\"===i)for(n=t.length-1,o=0;n>=0;n-=3)s=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if(\"le\"===i)for(n=0,o=0;n<t.length;n+=3)s=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},n.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o=0,u=0;if(\"be\"===r)for(i=t.length-1;i>=e;i-=2)n=s(t,e,i)<<o,this.words[u]|=67108863&n,o>=18?(o-=18,u+=1,this.words[u]|=n>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=s(t,e,i)<<o,this.words[u]|=67108863&n,o>=18?(o-=18,u+=1,this.words[u]|=n>>>26):o+=8;this._strip()},n.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=e)i++;i--,n=n/e|0;for(var o=t.length-r,s=o%i,f=Math.min(o,o-s)+r,h=0,a=r;a<f;a+=i)h=u(t,a,a+i,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var l=1;for(h=u(t,a,t.length,e),a=0;a<s;a++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},n.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},n.prototype._move=function(t){f(t,this)},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},\"u\">typeof Symbol&&\"function\"==typeof Symbol.for)try{n.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=h}catch{n.prototype.inspect=h}else n.prototype.inspect=h;function h(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var a,l=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var i=t.length+e.length|0;r.length=i,i=i-1|0;var n=0|t.words[0],o=0|e.words[0],s=n*o,u=67108863&s,f=s/67108864|0;r.words[0]=u;for(var h=1;h<i;h++){for(var a=f>>>26,l=67108863&f,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var p=h-d|0;a+=(s=(n=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&s}r.words[h]=0|l,f=0|a}return 0!==f?r.words[h]=0|f:r.length--,r._strip()}n.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||\"hex\"===t){i=\"\";for(var i,n=0,o=0,s=0;s<this.length;s++){var u=this.words[s],f=((u<<n|o)&16777215).toString(16);o=u>>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),i=0!==o||s!==this.length-1?l[6-f.length]+f+i:f+i}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i=\"0\"+i;return 0!==this.negative&&(i=\"-\"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],a=d[t];i=\"\";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(a).toString(t);i=(p=p.idivn(a)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i=\"0\"+i);i.length%e!=0;)i=\"0\"+i;return 0!==this.negative&&(i=\"-\"+i),i}r(!1,\"Base should be between 2 and 36\")},n.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-t:t},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),n.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},n.prototype.toArrayLike=function(t,e,i){this._strip();var n=this.byteLength(),o=i||Math.max(1,n);r(n<=o,\"byte array longer than desired length\"),r(o>0,\"Requested array length <= 0\");var s=t.allocUnsafe?t.allocUnsafe(o):new t(o);return this[\"_toArrayLike\"+(\"le\"===e?\"LE\":\"BE\")](s,n),s},n.prototype._toArrayLikeLE=function(t,e){for(var r=0,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<t.length)for(t[r++]=i;r<t.length;)t[r++]=0},n.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(t[r--]=i;r>=0;)t[r--]=0},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},n.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},n.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return 0!==this.negative},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},n.prototype.ior=function(t){return r((this.negative|t.negative)==0),this.iuor(t)},n.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},n.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},n.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},n.prototype.iand=function(t){return r((this.negative|t.negative)==0),this.iuand(t)},n.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},n.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},n.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},n.prototype.ixor=function(t){return r((this.negative|t.negative)==0),this.iuxor(t)},n.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},n.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},n.prototype.inotn=function(t){r(\"number\"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,e){r(\"number\"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),e?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this._strip()},n.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e,r,i,n=0,o=0;o<i.length;o++)e=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<r.length;o++)e=(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},n.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},n.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<e.length;s++)o=(i=(0|e.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var i,n,o,s=t.words,u=e.words,f=r.words,h=0,a=0|s[0],l=8191&a,c=a>>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,A=g>>>13,y=0|s[3],b=8191&y,w=y>>>13,M=0|s[4],E=8191&M,S=M>>>13,I=0|s[5],N=8191&I,B=I>>>13,C=0|s[6],_=8191&C,x=C>>>13,O=0|s[7],R=8191&O,k=O>>>13,P=0|s[8],U=8191&P,T=P>>>13,D=0|s[9],F=8191&D,L=D>>>13,q=0|u[0],z=8191&q,j=q>>>13,H=0|u[1],K=8191&H,Q=H>>>13,J=0|u[2],G=8191&J,Y=J>>>13,V=0|u[3],W=8191&V,X=V>>>13,Z=0|u[4],$=8191&Z,tt=Z>>>13,te=0|u[5],tr=8191&te,ti=te>>>13,tn=0|u[6],to=8191&tn,ts=tn>>>13,tu=0|u[7],tf=8191&tu,th=tu>>>13,ta=0|u[8],tl=8191&ta,tc=ta>>>13,td=0|u[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19,i=Math.imul(l,z),n=(n=Math.imul(l,j))+Math.imul(c,z)|0,o=Math.imul(c,j);var tg=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tg>>>26)|0,tg&=67108863,i=Math.imul(p,z),n=(n=Math.imul(p,j))+Math.imul(m,z)|0,o=Math.imul(m,j),i=i+Math.imul(l,K)|0,n=(n=n+Math.imul(l,Q)|0)+Math.imul(c,K)|0,o=o+Math.imul(c,Q)|0;var tv=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tv>>>26)|0,tv&=67108863,i=Math.imul(v,z),n=(n=Math.imul(v,j))+Math.imul(A,z)|0,o=Math.imul(A,j),i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,Q)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Q)|0,i=i+Math.imul(l,G)|0,n=(n=n+Math.imul(l,Y)|0)+Math.imul(c,G)|0,o=o+Math.imul(c,Y)|0;var tA=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tA>>>26)|0,tA&=67108863,i=Math.imul(b,z),n=(n=Math.imul(b,j))+Math.imul(w,z)|0,o=Math.imul(w,j),i=i+Math.imul(v,K)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Q)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0,i=i+Math.imul(l,W)|0,n=(n=n+Math.imul(l,X)|0)+Math.imul(c,W)|0,o=o+Math.imul(c,X)|0;var ty=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(ty>>>26)|0,ty&=67108863,i=Math.imul(E,z),n=(n=Math.imul(E,j))+Math.imul(S,z)|0,o=Math.imul(S,j),i=i+Math.imul(b,K)|0,n=(n=n+Math.imul(b,Q)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Q)|0,i=i+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,i=i+Math.imul(p,W)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0,i=i+Math.imul(l,$)|0,n=(n=n+Math.imul(l,tt)|0)+Math.imul(c,$)|0,o=o+Math.imul(c,tt)|0;var tb=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tb>>>26)|0,tb&=67108863,i=Math.imul(N,z),n=(n=Math.imul(N,j))+Math.imul(B,z)|0,o=Math.imul(B,j),i=i+Math.imul(E,K)|0,n=(n=n+Math.imul(E,Q)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,Q)|0,i=i+Math.imul(b,G)|0,n=(n=n+Math.imul(b,Y)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,Y)|0,i=i+Math.imul(v,W)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,X)|0,i=i+Math.imul(p,$)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,tt)|0,i=i+Math.imul(l,tr)|0,n=(n=n+Math.imul(l,ti)|0)+Math.imul(c,tr)|0,o=o+Math.imul(c,ti)|0;var tw=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tw>>>26)|0,tw&=67108863,i=Math.imul(_,z),n=(n=Math.imul(_,j))+Math.imul(x,z)|0,o=Math.imul(x,j),i=i+Math.imul(N,K)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Q)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,Y)|0,i=i+Math.imul(b,W)|0,n=(n=n+Math.imul(b,X)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,X)|0,i=i+Math.imul(v,$)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(p,tr)|0,n=(n=n+Math.imul(p,ti)|0)+Math.imul(m,tr)|0,o=o+Math.imul(m,ti)|0,i=i+Math.imul(l,to)|0,n=(n=n+Math.imul(l,ts)|0)+Math.imul(c,to)|0,o=o+Math.imul(c,ts)|0;var tM=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tM>>>26)|0,tM&=67108863,i=Math.imul(R,z),n=(n=Math.imul(R,j))+Math.imul(k,z)|0,o=Math.imul(k,j),i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,Q)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Q)|0,i=i+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,i=i+Math.imul(E,W)|0,n=(n=n+Math.imul(E,X)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,X)|0,i=i+Math.imul(b,$)|0,n=(n=n+Math.imul(b,tt)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(v,tr)|0,n=(n=n+Math.imul(v,ti)|0)+Math.imul(A,tr)|0,o=o+Math.imul(A,ti)|0,i=i+Math.imul(p,to)|0,n=(n=n+Math.imul(p,ts)|0)+Math.imul(m,to)|0,o=o+Math.imul(m,ts)|0,i=i+Math.imul(l,tf)|0,n=(n=n+Math.imul(l,th)|0)+Math.imul(c,tf)|0,o=o+Math.imul(c,th)|0;var tE=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tE>>>26)|0,tE&=67108863,i=Math.imul(U,z),n=(n=Math.imul(U,j))+Math.imul(T,z)|0,o=Math.imul(T,j),i=i+Math.imul(R,K)|0,n=(n=n+Math.imul(R,Q)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,Q)|0,i=i+Math.imul(_,G)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,Y)|0,i=i+Math.imul(N,W)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,X)|0,i=i+Math.imul(E,$)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,i=i+Math.imul(b,tr)|0,n=(n=n+Math.imul(b,ti)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,ti)|0,i=i+Math.imul(v,to)|0,n=(n=n+Math.imul(v,ts)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ts)|0,i=i+Math.imul(p,tf)|0,n=(n=n+Math.imul(p,th)|0)+Math.imul(m,tf)|0,o=o+Math.imul(m,th)|0,i=i+Math.imul(l,tl)|0,n=(n=n+Math.imul(l,tc)|0)+Math.imul(c,tl)|0,o=o+Math.imul(c,tc)|0;var tS=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tS>>>26)|0,tS&=67108863,i=Math.imul(F,z),n=(n=Math.imul(F,j))+Math.imul(L,z)|0,o=Math.imul(L,j),i=i+Math.imul(U,K)|0,n=(n=n+Math.imul(U,Q)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Q)|0,i=i+Math.imul(R,G)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,i=i+Math.imul(_,W)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,X)|0,i=i+Math.imul(N,$)|0,n=(n=n+Math.imul(N,tt)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,tt)|0,i=i+Math.imul(E,tr)|0,n=(n=n+Math.imul(E,ti)|0)+Math.imul(S,tr)|0,o=o+Math.imul(S,ti)|0,i=i+Math.imul(b,to)|0,n=(n=n+Math.imul(b,ts)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ts)|0,i=i+Math.imul(v,tf)|0,n=(n=n+Math.imul(v,th)|0)+Math.imul(A,tf)|0,o=o+Math.imul(A,th)|0,i=i+Math.imul(p,tl)|0,n=(n=n+Math.imul(p,tc)|0)+Math.imul(m,tl)|0,o=o+Math.imul(m,tc)|0,i=i+Math.imul(l,tp)|0,n=(n=n+Math.imul(l,tm)|0)+Math.imul(c,tp)|0,o=o+Math.imul(c,tm)|0;var tI=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tI>>>26)|0,tI&=67108863,i=Math.imul(F,K),n=(n=Math.imul(F,Q))+Math.imul(L,K)|0,o=Math.imul(L,Q),i=i+Math.imul(U,G)|0,n=(n=n+Math.imul(U,Y)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Y)|0,i=i+Math.imul(R,W)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,X)|0,i=i+Math.imul(_,$)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,tt)|0,i=i+Math.imul(N,tr)|0,n=(n=n+Math.imul(N,ti)|0)+Math.imul(B,tr)|0,o=o+Math.imul(B,ti)|0,i=i+Math.imul(E,to)|0,n=(n=n+Math.imul(E,ts)|0)+Math.imul(S,to)|0,o=o+Math.imul(S,ts)|0,i=i+Math.imul(b,tf)|0,n=(n=n+Math.imul(b,th)|0)+Math.imul(w,tf)|0,o=o+Math.imul(w,th)|0,i=i+Math.imul(v,tl)|0,n=(n=n+Math.imul(v,tc)|0)+Math.imul(A,tl)|0,o=o+Math.imul(A,tc)|0,i=i+Math.imul(p,tp)|0,n=(n=n+Math.imul(p,tm)|0)+Math.imul(m,tp)|0,o=o+Math.imul(m,tm)|0;var tN=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tN>>>26)|0,tN&=67108863,i=Math.imul(F,G),n=(n=Math.imul(F,Y))+Math.imul(L,G)|0,o=Math.imul(L,Y),i=i+Math.imul(U,W)|0,n=(n=n+Math.imul(U,X)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,X)|0,i=i+Math.imul(R,$)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,tr)|0,n=(n=n+Math.imul(_,ti)|0)+Math.imul(x,tr)|0,o=o+Math.imul(x,ti)|0,i=i+Math.imul(N,to)|0,n=(n=n+Math.imul(N,ts)|0)+Math.imul(B,to)|0,o=o+Math.imul(B,ts)|0,i=i+Math.imul(E,tf)|0,n=(n=n+Math.imul(E,th)|0)+Math.imul(S,tf)|0,o=o+Math.imul(S,th)|0,i=i+Math.imul(b,tl)|0,n=(n=n+Math.imul(b,tc)|0)+Math.imul(w,tl)|0,o=o+Math.imul(w,tc)|0,i=i+Math.imul(v,tp)|0,n=(n=n+Math.imul(v,tm)|0)+Math.imul(A,tp)|0,o=o+Math.imul(A,tm)|0;var tB=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tB>>>26)|0,tB&=67108863,i=Math.imul(F,W),n=(n=Math.imul(F,X))+Math.imul(L,W)|0,o=Math.imul(L,X),i=i+Math.imul(U,$)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,i=i+Math.imul(R,tr)|0,n=(n=n+Math.imul(R,ti)|0)+Math.imul(k,tr)|0,o=o+Math.imul(k,ti)|0,i=i+Math.imul(_,to)|0,n=(n=n+Math.imul(_,ts)|0)+Math.imul(x,to)|0,o=o+Math.imul(x,ts)|0,i=i+Math.imul(N,tf)|0,n=(n=n+Math.imul(N,th)|0)+Math.imul(B,tf)|0,o=o+Math.imul(B,th)|0,i=i+Math.imul(E,tl)|0,n=(n=n+Math.imul(E,tc)|0)+Math.imul(S,tl)|0,o=o+Math.imul(S,tc)|0,i=i+Math.imul(b,tp)|0,n=(n=n+Math.imul(b,tm)|0)+Math.imul(w,tp)|0,o=o+Math.imul(w,tm)|0;var tC=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tC>>>26)|0,tC&=67108863,i=Math.imul(F,$),n=(n=Math.imul(F,tt))+Math.imul(L,$)|0,o=Math.imul(L,tt),i=i+Math.imul(U,tr)|0,n=(n=n+Math.imul(U,ti)|0)+Math.imul(T,tr)|0,o=o+Math.imul(T,ti)|0,i=i+Math.imul(R,to)|0,n=(n=n+Math.imul(R,ts)|0)+Math.imul(k,to)|0,o=o+Math.imul(k,ts)|0,i=i+Math.imul(_,tf)|0,n=(n=n+Math.imul(_,th)|0)+Math.imul(x,tf)|0,o=o+Math.imul(x,th)|0,i=i+Math.imul(N,tl)|0,n=(n=n+Math.imul(N,tc)|0)+Math.imul(B,tl)|0,o=o+Math.imul(B,tc)|0,i=i+Math.imul(E,tp)|0,n=(n=n+Math.imul(E,tm)|0)+Math.imul(S,tp)|0,o=o+Math.imul(S,tm)|0;var t_=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(t_>>>26)|0,t_&=67108863,i=Math.imul(F,tr),n=(n=Math.imul(F,ti))+Math.imul(L,tr)|0,o=Math.imul(L,ti),i=i+Math.imul(U,to)|0,n=(n=n+Math.imul(U,ts)|0)+Math.imul(T,to)|0,o=o+Math.imul(T,ts)|0,i=i+Math.imul(R,tf)|0,n=(n=n+Math.imul(R,th)|0)+Math.imul(k,tf)|0,o=o+Math.imul(k,th)|0,i=i+Math.imul(_,tl)|0,n=(n=n+Math.imul(_,tc)|0)+Math.imul(x,tl)|0,o=o+Math.imul(x,tc)|0,i=i+Math.imul(N,tp)|0,n=(n=n+Math.imul(N,tm)|0)+Math.imul(B,tp)|0,o=o+Math.imul(B,tm)|0;var tx=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tx>>>26)|0,tx&=67108863,i=Math.imul(F,to),n=(n=Math.imul(F,ts))+Math.imul(L,to)|0,o=Math.imul(L,ts),i=i+Math.imul(U,tf)|0,n=(n=n+Math.imul(U,th)|0)+Math.imul(T,tf)|0,o=o+Math.imul(T,th)|0,i=i+Math.imul(R,tl)|0,n=(n=n+Math.imul(R,tc)|0)+Math.imul(k,tl)|0,o=o+Math.imul(k,tc)|0,i=i+Math.imul(_,tp)|0,n=(n=n+Math.imul(_,tm)|0)+Math.imul(x,tp)|0,o=o+Math.imul(x,tm)|0;var tO=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tO>>>26)|0,tO&=67108863,i=Math.imul(F,tf),n=(n=Math.imul(F,th))+Math.imul(L,tf)|0,o=Math.imul(L,th),i=i+Math.imul(U,tl)|0,n=(n=n+Math.imul(U,tc)|0)+Math.imul(T,tl)|0,o=o+Math.imul(T,tc)|0,i=i+Math.imul(R,tp)|0,n=(n=n+Math.imul(R,tm)|0)+Math.imul(k,tp)|0,o=o+Math.imul(k,tm)|0;var tR=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tR>>>26)|0,tR&=67108863,i=Math.imul(F,tl),n=(n=Math.imul(F,tc))+Math.imul(L,tl)|0,o=Math.imul(L,tc),i=i+Math.imul(U,tp)|0,n=(n=n+Math.imul(U,tm)|0)+Math.imul(T,tp)|0,o=o+Math.imul(T,tm)|0;var tk=(h+i|0)+((8191&n)<<13)|0;h=(o+(n>>>13)|0)+(tk>>>26)|0,tk&=67108863,i=Math.imul(F,tp),n=(n=Math.imul(F,tm))+Math.imul(L,tp)|0,o=Math.imul(L,tm);var tP=(h+i|0)+((8191&n)<<13)|0;return h=(o+(n>>>13)|0)+(tP>>>26)|0,tP&=67108863,f[0]=tg,f[1]=tv,f[2]=tA,f[3]=ty,f[4]=tb,f[5]=tw,f[6]=tM,f[7]=tE,f[8]=tS,f[9]=tI,f[10]=tN,f[11]=tB,f[12]=tC,f[13]=t_,f[14]=tx,f[15]=tO,f[16]=tR,f[17]=tk,f[18]=tP,0!==h&&(f[19]=h,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var u=67108863&i,f=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=f;h++){var a=o-h,l=(0|t.words[a])*(0|e.words[h]),c=67108863&l;s=s+(l/67108864|0)|0,u=67108863&(c=c+u|0),n+=(s=s+(c>>>26)|0)>>>26,s&=67108863}r.words[o]=u,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r._strip()}Math.imul||(m=p),n.prototype.mulTo=function(t,e){var r,i=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):i<63?p(this,t,e):g(this,t,e)},n.prototype.mul=function(t){var e=new n(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},n.prototype.mulf=function(t){var e=new n(null);return e.words=Array(this.length+t.length),g(this,t,e)},n.prototype.imul=function(t){return this.clone().mulTo(t,this)},n.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r(\"number\"==typeof t),r(t<67108864);for(var i=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(67108863&o)+(67108863&i);i>>=26,i+=(o/67108864|0)+(s>>>26),this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),e?this.ineg():this},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=t.words[i]>>>n&1}return e}(t);if(0===e.length)return new n(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var o=r.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(r=r.mul(o));return r},n.prototype.iushln=function(t){r(\"number\"==typeof t&&t>=0);var e,i=t%26,n=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,f=(0|this.words[e])-u<<i;this.words[e]=f|s,s=u>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this._strip()},n.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},n.prototype.iushrn=function(t,e,i){r(\"number\"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o;if(n-=s,n=Math.max(0,n),i){for(var f=0;f<s;f++)i.words[f]=this.words[f];i.length=s}if(0!==s){if(this.length>s)for(this.length-=s,f=0;f<this.length;f++)this.words[f]=this.words[f+s];else this.words[0]=0,this.length=1}var h=0;for(f=this.length-1;f>=0&&(0!==h||f>=n);f--){var a=0|this.words[f];this.words[f]=h<<26-o|a>>>o,h=a&u}return i&&0!==h&&(i.words[i.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){r(\"number\"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i)&&!!(this.words[i]&1<<e)},n.prototype.imaskn=function(t){r(\"number\"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return(r(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=i)?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return r(\"number\"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},n.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},n.prototype.isubn=function(t){if(r(\"number\"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,e,i){var n,o=t.length+i;this._expand(o);var s,u=0;for(n=0;n<t.length;n++){s=(0|this.words[n+i])+u;var f=(0|t.words[n])*e;s-=67108863&f,u=(s>>26)-(f/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)u=(s=(0|this.words[n+i])+u)>>26,this.words[n+i]=67108863&s;if(0===u)return this._strip();for(r(-1===u),u=0,n=0;n<this.length;n++)u=(s=-(0|this.words[n])+u)>>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},n.prototype._wordDiv=function(t,e){var r=this.length-t.length,i=this.clone(),o=t,s=0|o.words[o.length-1];0!=(r=26-this._countBits(s))&&(o=o.ushln(r),i.iushln(r),s=0|o.words[o.length-1]);var u,f=i.length-o.length;if(\"mod\"!==e){(u=new n(null)).length=f+1,u.words=Array(u.length);for(var h=0;h<u.length;h++)u.words[h]=0}var a=i.clone()._ishlnsubmul(o,1,f);0===a.negative&&(i=a,u&&(u.words[f]=1));for(var l=f-1;l>=0;l--){var c=(0|i.words[o.length+l])*67108864+(0|i.words[o.length+l-1]);for(c=Math.min(c/s|0,67108863),i._ishlnsubmul(o,c,l);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,l),i.isZero()||(i.negative^=1);u&&(u.words[l]=c)}return u&&u._strip(),i._strip(),\"div\"!==e&&0!==r&&i.iushrn(r),{div:u||null,mod:i}},n.prototype.divmod=function(t,e,i){var o,s,u;return(r(!t.isZero()),this.isZero())?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),\"mod\"!==e&&(o=u.div.neg()),\"div\"!==e&&(s=u.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),\"mod\"!==e&&(o=u.div.neg()),{div:o,mod:u.mod}):this.negative&t.negative?(u=this.neg().divmod(t.neg(),e),\"div\"!==e&&(s=u.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new n(0),mod:this}:1===t.length?\"div\"===e?{div:this.divn(t.words[0]),mod:null}:\"mod\"===e?{div:null,mod:new n(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modrn(t.words[0]))}:this._wordDiv(t,e)},n.prototype.div=function(t){return this.divmod(t,\"div\",!1).div},n.prototype.mod=function(t){return this.divmod(t,\"mod\",!1).mod},n.prototype.umod=function(t){return this.divmod(t,\"mod\",!0).mod},n.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),n=t.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},n.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var i=67108864%t,n=0,o=this.length-1;o>=0;o--)n=(i*n+(0|this.words[o]))%t;return e?-n:n},n.prototype.modn=function(t){return this.modrn(t)},n.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*i;this.words[n]=o/t|0,i=o%t}return this._strip(),e?this.ineg():this},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new n(1),s=new n(0),u=new n(0),f=new n(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var a=i.clone(),l=e.clone();!e.isZero();){for(var c=0,d=1;!(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(a),s.isub(l)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;!(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(u.isOdd()||f.isOdd())&&(u.iadd(a),f.isub(l)),u.iushrn(1),f.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(u),s.isub(f)):(i.isub(e),u.isub(o),f.isub(s))}return{a:u,b:f,gcd:i.iushln(h)}},n.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,i=this,o=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var s=new n(1),u=new n(0),f=o.clone();i.cmpn(1)>0&&o.cmpn(1)>0;){for(var h=0,a=1;!(i.words[0]&a)&&h<26;++h,a<<=1);if(h>0)for(i.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var l=0,c=1;!(o.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(o.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(f),u.iushrn(1);i.cmp(o)>=0?(i.isub(o),s.isub(u)):(o.isub(i),u.isub(s))}return 0>(e=0===i.cmpn(1)?s:u).cmpn(0)&&e.iadd(t),e},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var o=e;e=r,r=o}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return(1&this.words[0])==0},n.prototype.isOdd=function(){return(1&this.words[0])==1},n.prototype.andln=function(t){return this.words[0]&t},n.prototype.bincn=function(t){r(\"number\"==typeof t);var e=t%26,i=(t-e)/26,n=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var o=n,s=i;0!==o&&s<this.length;s++){var u=0|this.words[s];u+=o,o=u>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,\"Number is too big\");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},n.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},n.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},n.prototype.gtn=function(t){return 1===this.cmpn(t)},n.prototype.gt=function(t){return 1===this.cmp(t)},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return -1===this.cmpn(t)},n.prototype.lt=function(t){return -1===this.cmp(t)},n.prototype.lten=function(t){return 0>=this.cmpn(t)},n.prototype.lte=function(t){return 0>=this.cmp(t)},n.prototype.eqn=function(t){return 0===this.cmpn(t)},n.prototype.eq=function(t){return 0===this.cmp(t)},n.red=function(t){return new E(t)},n.prototype.toRed=function(t){return r(!this.red,\"Already a number in reduction context\"),r(0===this.negative,\"red works only with positives\"),t.convertTo(this)._forceRed(t)},n.prototype.fromRed=function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},n.prototype._forceRed=function(t){return this.red=t,this},n.prototype.forceRed=function(t){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(t)},n.prototype.redAdd=function(t){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,t)},n.prototype.redIAdd=function(t){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,t)},n.prototype.redSub=function(t){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,t)},n.prototype.redISub=function(t){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,t)},n.prototype.redShl=function(t){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,t)},n.prototype.redMul=function(t){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.mul(this,t)},n.prototype.redIMul=function(t){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.imul(this,t)},n.prototype.redSqr=function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(t){return r(this.red&&!t.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){A.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function b(){A.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function w(){A.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function M(){A.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function E(t){if(\"string\"==typeof t){var e=n._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),\"modulus must be greater than 1\"),this.m=t,this.prime=null}function S(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new n(null);return t.words=Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},i(y,A),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var n=t.words[9];for(e.words[e.length++]=4194303&n,i=10;i<t.length;i++){var o=0|t.words[i];t.words[i-10]=(4194303&o)<<4|n>>>22,n=o}n>>>=22,t.words[i-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var i=0|t.words[r];e+=977*i,t.words[r]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,A),i(w,A),i(M,A),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=(0|t.words[r])*19+e,n=67108863&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},n._prime=function(t){var e;if(v[t])return v[t];if(\"k256\"===t)e=new y;else if(\"p224\"===t)e=new b;else if(\"p192\"===t)e=new w;else if(\"p25519\"===t)e=new M;else throw Error(\"Unknown prime \"+t);return v[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,\"red works only with positives\"),r(t.red,\"red works only with red numbers\")},E.prototype._verify2=function(t,e){r((t.negative|e.negative)==0,\"red works only with positives\"),r(t.red&&t.red===e.red,\"red works only with red numbers\")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new n(1)).iushrn(2);return this.pow(t,i)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var u=new n(1).toRed(this),f=u.redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new n(2*a*a).toRed(this);0!==this.pow(a,h).cmp(f);)a.redIAdd(f);for(var l=this.pow(a,o),c=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(u);){for(var m=d,g=0;0!==m.cmp(u);g++)m=m.redSqr();r(g<p);var v=this.pow(l,new n(1).iushln(p-g-1));c=c.redMul(v),l=v.redSqr(),d=d.redMul(l),p=g}return c},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new n(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new n(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var o=r[0],s=0,u=0,f=e.bitLength()%26;for(0===f&&(f=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],a=f-1;a>=0;a--){var l=h>>a&1;if(o!==r[0]&&(o=this.sqr(o)),0===l&&0===s){u=0;continue}s<<=1,s|=l,4!=++u&&(0!==i||0!==a)||(o=this.mul(o,r[s]),u=0,s=0)}f=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},n.mont=function(t){return new S(t)},i(S,E),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new n(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):0>o.cmpn(0)&&(s=o.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(tR,tf);var tP=tR.exports;let tU=\"bignumber/5.7.0\";var tT=tP.BN;let tD=new tA(tU),tF={},tL=!1;class tq{constructor(t,e){t!==tF&&tD.throwError(\"cannot call constructor directly; use BigNumber.from\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"new (BigNumber)\"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return tj(tH(this).fromTwos(t))}toTwos(t){return tj(tH(this).toTwos(t))}abs(){return\"-\"===this._hex[0]?tq.from(this._hex.substring(1)):this}add(t){return tj(tH(this).add(tH(t)))}sub(t){return tj(tH(this).sub(tH(t)))}div(t){return tq.from(t).isZero()&&tK(\"division-by-zero\",\"div\"),tj(tH(this).div(tH(t)))}mul(t){return tj(tH(this).mul(tH(t)))}mod(t){let e=tH(t);return e.isNeg()&&tK(\"division-by-zero\",\"mod\"),tj(tH(this).umod(e))}pow(t){let e=tH(t);return e.isNeg()&&tK(\"negative-power\",\"pow\"),tj(tH(this).pow(e))}and(t){let e=tH(t);return(this.isNegative()||e.isNeg())&&tK(\"unbound-bitwise-result\",\"and\"),tj(tH(this).and(e))}or(t){let e=tH(t);return(this.isNegative()||e.isNeg())&&tK(\"unbound-bitwise-result\",\"or\"),tj(tH(this).or(e))}xor(t){let e=tH(t);return(this.isNegative()||e.isNeg())&&tK(\"unbound-bitwise-result\",\"xor\"),tj(tH(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&tK(\"negative-width\",\"mask\"),tj(tH(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&tK(\"negative-width\",\"shl\"),tj(tH(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&tK(\"negative-width\",\"shr\"),tj(tH(this).shrn(t))}eq(t){return tH(this).eq(tH(t))}lt(t){return tH(this).lt(tH(t))}lte(t){return tH(this).lte(tH(t))}gt(t){return tH(this).gt(tH(t))}gte(t){return tH(this).gte(tH(t))}isNegative(){return\"-\"===this._hex[0]}isZero(){return tH(this).isZero()}toNumber(){try{return tH(this).toNumber()}catch{tK(\"overflow\",\"toNumber\",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return tD.throwError(\"this platform does not support BigInt\",tA.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?tL||(tL=!0,tD.warn(\"BigNumber.toString does not accept any parameters; base-10 is assumed\")):16===arguments[0]?tD.throwError(\"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()\",tA.errors.UNEXPECTED_ARGUMENT,{}):tD.throwError(\"BigNumber.toString does not accept parameters\",tA.errors.UNEXPECTED_ARGUMENT,{})),tH(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:\"BigNumber\",hex:this.toHexString()}}static from(t){if(t instanceof tq)return t;if(\"string\"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new tq(tF,tz(t)):t.match(/^-?[0-9]+$/)?new tq(tF,tz(new tT(t))):tD.throwArgumentError(\"invalid BigNumber string\",\"value\",t);if(\"number\"==typeof t)return t%1&&tK(\"underflow\",\"BigNumber.from\",t),(t>=9007199254740991||t<=-9007199254740991)&&tK(\"overflow\",\"BigNumber.from\",t),tq.from(String(t));if(\"bigint\"==typeof t)return tq.from(t.toString());if(tE(t))return tq.from(tB(t));if(t){if(t.toHexString){let e=t.toHexString();if(\"string\"==typeof e)return tq.from(e)}else{let e=t._hex;if(null==e&&\"BigNumber\"===t.type&&(e=t.hex),\"string\"==typeof e&&(tI(e)||\"-\"===e[0]&&tI(e.substring(1))))return tq.from(e)}}return tD.throwArgumentError(\"invalid BigNumber value\",\"value\",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function tz(t){if(\"string\"!=typeof t)return tz(t.toString(16));if(\"-\"===t[0])return\"-\"===(t=t.substring(1))[0]&&tD.throwArgumentError(\"invalid hex\",\"value\",t),\"0x00\"===(t=tz(t))?t:\"-\"+t;if(\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),\"0x\"===t)return\"0x00\";for(t.length%2&&(t=\"0x0\"+t.substring(2));t.length>4&&\"0x00\"===t.substring(0,4);)t=\"0x\"+t.substring(4);return t}function tj(t){return tq.from(tz(t))}function tH(t){let e=tq.from(t).toHexString();return\"-\"===e[0]?new tT(\"-\"+e.substring(3),16):new tT(e.substring(2),16)}function tK(t,e,r){let i={fault:t,operation:e};return null!=r&&(i.value=r),tD.throwError(t,tA.errors.NUMERIC_FAULT,i)}let tQ=new tA(tU),tJ={},tG=tq.from(0),tY=tq.from(-1);function tV(t,e,r,i){let n={fault:e,operation:r};return void 0!==i&&(n.value=i),tQ.throwError(t,tA.errors.NUMERIC_FAULT,n)}let tW=\"0\";for(;tW.length<256;)tW+=tW;function tX(t){if(\"number\"!=typeof t)try{t=tq.from(t).toNumber()}catch{}return\"number\"==typeof t&&t>=0&&t<=256&&!(t%1)?\"1\"+tW.substring(0,t):tQ.throwArgumentError(\"invalid decimal size\",\"decimals\",t)}function tZ(t,e){null==e&&(e=0);let r=tX(e),i=(t=tq.from(t)).lt(tG);i&&(t=t.mul(tY));let n=t.mod(r).toString();for(;n.length<r.length-1;)n=\"0\"+n;n=n.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=t.div(r).toString();return t=1===r.length?o:o+\".\"+n,i&&(t=\"-\"+t),t}function t$(t,e){null==e&&(e=0);let r=tX(e);\"string\"==typeof t&&t.match(/^-?[0-9.]+$/)||tQ.throwArgumentError(\"invalid decimal value\",\"value\",t);let i=\"-\"===t.substring(0,1);i&&(t=t.substring(1)),\".\"===t&&tQ.throwArgumentError(\"missing value\",\"value\",t);let n=t.split(\".\");n.length>2&&tQ.throwArgumentError(\"too many decimal points\",\"value\",t);let o=n[0],s=n[1];for(o||(o=\"0\"),s||(s=\"0\");\"0\"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&tV(\"fractional component exceeds decimals\",\"underflow\",\"parseFixed\"),\"\"===s&&(s=\"0\");s.length<r.length-1;)s+=\"0\";let u=tq.from(o),f=tq.from(s),h=u.mul(r).add(f);return i&&(h=h.mul(tY)),h}class t0{constructor(t,e,r,i){t!==tJ&&tQ.throwError(\"cannot use FixedFormat constructor; use FixedFormat.from\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.signed=e,this.width=r,this.decimals=i,this.name=(e?\"\":\"u\")+\"fixed\"+String(r)+\"x\"+String(i),this._multiplier=tX(i),Object.freeze(this)}static from(t){if(t instanceof t0)return t;\"number\"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,i=18;if(\"string\"==typeof t){if(\"fixed\"!==t){if(\"ufixed\"===t)e=!1;else{let n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);n||tQ.throwArgumentError(\"invalid fixed format\",\"format\",t),e=\"u\"!==n[1],r=parseInt(n[2]),i=parseInt(n[3])}}}else if(t){let n=(e,r,i)=>null==t[e]?i:(typeof t[e]!==r&&tQ.throwArgumentError(\"invalid fixed format (\"+e+\" not \"+r+\")\",\"format.\"+e,t[e]),t[e]);e=n(\"signed\",\"boolean\",e),r=n(\"width\",\"number\",r),i=n(\"decimals\",\"number\",i)}return r%8&&tQ.throwArgumentError(\"invalid fixed format width (not byte aligned)\",\"format.width\",r),i>80&&tQ.throwArgumentError(\"invalid fixed format (decimals too large)\",\"format.decimals\",i),new t0(tJ,e,r,i)}}class t1{constructor(t,e,r,i){t!==tJ&&tQ.throwError(\"cannot use FixedNumber constructor; use FixedNumber.from\",tA.errors.UNSUPPORTED_OPERATION,{operation:\"new FixedFormat\"}),this.format=i,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&tQ.throwArgumentError(\"incompatible format; use fixedNumber.toFormat\",\"other\",t)}addUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);let e=t$(this._value,this.format.decimals),r=t$(t._value,t.format.decimals);return t1.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let t=this.toString().split(\".\");1===t.length&&t.push(\"0\");let e=t1.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(t2.toFormat(e.format))),e}ceiling(){let t=this.toString().split(\".\");1===t.length&&t.push(\"0\");let e=t1.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(t2.toFormat(e.format))),e}round(t){null==t&&(t=0);let e=this.toString().split(\".\");if(1===e.length&&e.push(\"0\"),(t<0||t>80||t%1)&&tQ.throwArgumentError(\"invalid decimal count\",\"decimals\",t),e[1].length<=t)return this;let r=t1.from(\"1\"+tW.substring(0,t),this.format),i=t3.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return\"0.0\"===this._value||\"0\"===this._value}isNegative(){return\"-\"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&tQ.throwArgumentError(\"invalid byte width\",\"width\",t),t_(tq.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return t1.fromString(this._value,t)}static fromValue(t,e,r){var i;return null!=r||null==e||null!=(i=e)&&(tq.isBigNumber(i)||\"number\"==typeof i&&i%1==0||\"string\"==typeof i&&i.match(/^-?[0-9]+$/)||tI(i)||\"bigint\"==typeof i||tE(i))||(r=e,e=null),null==e&&(e=0),null==r&&(r=\"fixed\"),t1.fromString(tZ(t,e),t0.from(r))}static fromString(t,e){null==e&&(e=\"fixed\");let r=t0.from(e),i=t$(t,r.decimals);!r.signed&&i.lt(tG)&&tV(\"unsigned value cannot be negative\",\"overflow\",\"value\",t);let n=null;return new t1(tJ,r.signed?i.toTwos(r.width).toHexString():t_(i.toHexString(),r.width/8),tZ(i,r.decimals),r)}static fromBytes(t,e){null==e&&(e=\"fixed\");let r=t0.from(e);if(tS(t).length>r.width/8)throw Error(\"overflow\");let i=tq.from(t);return r.signed&&(i=i.fromTwos(r.width)),new t1(tJ,i.toTwos((r.signed?0:1)+r.width).toHexString(),tZ(i,r.decimals),r)}static from(t,e){if(\"string\"==typeof t)return t1.fromString(t,e);if(tE(t))return t1.fromBytes(t,e);try{return t1.fromValue(t,0,e)}catch(t){if(t.code!==tA.errors.INVALID_ARGUMENT)throw t}return tQ.throwArgumentError(\"invalid FixedNumber value\",\"value\",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}let t2=t1.from(1),t3=t1.from(\"0.5\"),t6=new tA(\"strings/5.7.0\");function t8(t,e,r,i,n){if(t===p.BAD_PREFIX||t===p.UNEXPECTED_CONTINUE){let t=0;for(let i=e+1;i<r.length&&r[i]>>6==2;i++)t++;return t}return t===p.OVERRUN?r.length-e-1:0}function t4(t,e=d.current){e!=d.current&&(t6.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if((64512&i)==55296){e++;let n=t.charCodeAt(e);if(e>=t.length||(64512&n)!=56320)throw Error(\"invalid utf-8 string\");let o=65536+((1023&i)<<10)+(1023&n);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return tS(r)}function t5(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,i={};return t.split(\",\").forEach(t=>{let n=t.split(\":\");i[r+=parseInt(n[0],16)]=e(n[1])}),i}function t7(t){let e=0;return t.split(\",\").map(t=>{let r=t.split(\"-\");return 1===r.length?r[1]=\"0\":\"\"===r[1]&&(r[1]=\"1\"),{l:e+parseInt(r[0],16),h:e=parseInt(r[1],16)}})}(f=d||(d={})).current=\"\",f.NFC=\"NFC\",f.NFD=\"NFD\",f.NFKC=\"NFKC\",f.NFKD=\"NFKD\",(h=p||(p={})).UNEXPECTED_CONTINUE=\"unexpected continuation byte\",h.BAD_PREFIX=\"bad codepoint prefix\",h.OVERRUN=\"string overrun\",h.MISSING_CONTINUE=\"missing continuation byte\",h.OUT_OF_RANGE=\"out of UTF-8 range\",h.UTF16_SURROGATE=\"UTF-16 surrogate\",h.OVERLONG=\"overlong representation\",Object.freeze({error:function(t,e,r,i,n){return t6.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,\"bytes\",r)},ignore:t8,replace:function(t,e,r,i,n){return t===p.OVERLONG?(i.push(n),0):(i.push(65533),t8(t,e,r))}}),t7(\"221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d\"),\"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff\".split(\",\").map(t=>parseInt(t,16)),t5(\"b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3\"),t5(\"179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7\"),t5(\"df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D\",function(t){if(t.length%4!=0)throw Error(\"bad data\");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}),t7(\"80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001\");let t9=\"hash/5.7.0\";function et(t,e){null==e&&(e=1);let r=[],i=r.forEach,n=function(t,e){i.call(t,function(t){e>0&&Array.isArray(t)?n(t,e-1):r.push(t)})};return n(t,e),r}function ee(t,e){let r=Array(t);for(let i=0,n=-1;i<t;i++)r[i]=n+=1+e();return r}function er(t,e){let r=ee(t(),t),i=t(),n=ee(i,t),o=function(t,e){let r=Array(t);for(let i=0;i<t;i++)r[i]=1+e();return r}(i,t);for(let t=0;t<i;t++)for(let e=0;e<o[t];e++)r.push(n[t]+e);return e?r.map(t=>e[t]):r}function ei(t,e,r){let i=Array(t).fill(void 0).map(()=>[]);for(let n=0;n<e;n++)(function(t,e){let r=Array(t);for(let n=0,o=0;n<t;n++){var i;r[n]=o+=1&(i=e())?~i>>1:i>>1}return r})(t,r).forEach((t,e)=>i[e].push(t));return i}let en=(o=function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let i=r(),n=1,o=[0,1];for(let t=1;t<i;t++)o.push(n+=r());let s=r(),u=e;e+=s;let f=0,h=0;function a(){return 0==f&&(h=h<<8|t[e++],f=8),h>>--f&1}let l=0;for(let t=0;t<31;t++)l=l<<1|a();let c=[],d=0,p=2147483648;for(;;){let t=Math.floor(((l-d+1)*n-1)/p),e=0,r=i;for(;r-e>1;){let i=e+r>>>1;t<o[i]?r=i:e=i}if(0==e)break;c.push(e);let s=d+Math.floor(p*o[e]/n),u=d+Math.floor(p*o[e+1]/n)-1;for(;!((s^u)&1073741824);)l=l<<1&2147483647|a(),s=s<<1&2147483647,u=u<<1&2147483647|1;for(;s&~u&536870912;)l=1073741824&l|l<<1&1073741823|a(),s=s<<1^1073741824,u=(1073741824^u)<<1|1073741824|1;d=s,p=1+u-s}let m=i-4;return c.map(e=>{switch(e-m){case 3:return m+65792+(t[u++]<<16|t[u++]<<8|t[u++]);case 2:return m+256+(t[u++]<<8|t[u++]);case 1:return m+t[u++];default:return e-1}})}(function(t){t=atob(t);let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return tS(e)}(\"AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==\")),n=0,()=>o[n++]);er(en),er(en),function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(function(t,e){let r=1+e(),i=e(),n=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return et(ei(n.length,1+t,e).map((t,e)=>{let o=t[0],s=t.slice(1);return Array(n[e]).fill(void 0).map((t,e)=>{let n=e*i;return[o+e*r,s.map(t=>t+n)]})}))}(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(ei(1+t(),1+r,t).map(t=>[t[0],t.slice(1)]))}(function(t){let e={};for(let r=0;r<t.length;r++){let i=t[r];e[i[0]]=i[1]}})(et(e))}(en),i=er(en).sort((t,e)=>t-e),function t(){let e=[];for(;;){let r=er(en,i);if(0==r.length)break;e.push({set:new Set(r),node:t()})}e.sort((t,e)=>e.set.size-t.set.size);let r=en();return{branches:e,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}(),new tA(t9),new Uint8Array(32).fill(0);let eo=`\u0019Ethereum Signed Message:\n`;function es(t){return\"string\"==typeof t&&(t=t4(t)),tO(function(t){let e=t.map(t=>tS(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),tw(r)}([t4(eo),t4(String(t.length)),t]))}new tA(\"rlp/5.7.0\");let eu=new tA(\"address/5.7.0\");function ef(t){tI(t,20)||eu.throwArgumentError(\"invalid address\",\"address\",t);let e=(t=t.toLowerCase()).substring(2).split(\"\"),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let i=tS(tO(r));for(let t=0;t<40;t+=2)i[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&i[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return\"0x\"+e.join(\"\")}let eh={};for(let t=0;t<10;t++)eh[String(t)]=String(t);for(let t=0;t<26;t++)eh[String.fromCharCode(65+t)]=String(10+t);let ea=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function el(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}new tA(\"properties/5.7.0\"),new tA(t9),new Uint8Array(32).fill(0),tq.from(-1);let ec=tq.from(0),ed=tq.from(1);tq.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),t_(ed.toHexString(),32),t_(ec.toHexString(),32);var ep={},em={};function eg(t,e){if(!t)throw Error(e||\"Assertion failed\")}eg.equal=function(t,e,r){if(t!=e)throw Error(r||\"Assertion failed: \"+t+\" != \"+e)};var ev={exports:{}};\"function\"==typeof Object.create?ev.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ev.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};var eA=ev.exports;function ey(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function eb(t){return 1===t.length?\"0\"+t:t}function ew(t){return 7===t.length?\"0\"+t:6===t.length?\"00\"+t:5===t.length?\"000\"+t:4===t.length?\"0000\"+t:3===t.length?\"00000\"+t:2===t.length?\"000000\"+t:1===t.length?\"0000000\"+t:t}em.inherits=eA,em.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(\"string\"==typeof t){if(e){if(\"hex\"===e)for((t=t.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(t=\"0\"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var i=0,n=0;n<t.length;n++){var o,s,u=t.charCodeAt(n);u<128?r[i++]=u:(u<2048?r[i++]=u>>6|192:((o=t,s=n,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length||(64512&o.charCodeAt(s+1))!=56320)?r[i++]=u>>12|224:(u=65536+((1023&u)<<10)+(1023&t.charCodeAt(++n)),r[i++]=u>>18|240,r[i++]=u>>12&63|128),r[i++]=u>>6&63|128),r[i++]=63&u|128)}}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r},em.toHex=function(t){for(var e=\"\",r=0;r<t.length;r++)e+=eb(t[r].toString(16));return e},em.htonl=ey,em.toHex32=function(t,e){for(var r=\"\",i=0;i<t.length;i++){var n=t[i];\"little\"===e&&(n=ey(n)),r+=ew(n.toString(16))}return r},em.zero2=eb,em.zero8=ew,em.join32=function(t,e,r,i){var n,o=r-e;eg(o%4==0);for(var s=Array(o/4),u=0,f=e;u<s.length;u++,f+=4)n=\"big\"===i?t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]:t[f+3]<<24|t[f+2]<<16|t[f+1]<<8|t[f],s[u]=n>>>0;return s},em.split32=function(t,e){for(var r=Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var o=t[i];\"big\"===e?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},em.rotr32=function(t,e){return t>>>e|t<<32-e},em.rotl32=function(t,e){return t<<e|t>>>32-e},em.sum32=function(t,e){return t+e>>>0},em.sum32_3=function(t,e,r){return t+e+r>>>0},em.sum32_4=function(t,e,r,i){return t+e+r+i>>>0},em.sum32_5=function(t,e,r,i,n){return t+e+r+i+n>>>0},em.sum64=function(t,e,r,i){var n=t[e],o=i+t[e+1]>>>0;t[e]=(o<i?1:0)+r+n>>>0,t[e+1]=o},em.sum64_hi=function(t,e,r,i){return(e+i>>>0<e?1:0)+t+r>>>0},em.sum64_lo=function(t,e,r,i){return e+i>>>0},em.sum64_4_hi=function(t,e,r,i,n,o,s,u){var f,h=e;return t+r+n+s+(0+((h=h+i>>>0)<e?1:0)+((h=h+o>>>0)<o?1:0)+((h=h+u>>>0)<u?1:0))>>>0},em.sum64_4_lo=function(t,e,r,i,n,o,s,u){return e+i+o+u>>>0},em.sum64_5_hi=function(t,e,r,i,n,o,s,u,f,h){var a,l=e;return t+r+n+s+f+(0+((l=l+i>>>0)<e?1:0)+((l=l+o>>>0)<o?1:0)+((l=l+u>>>0)<u?1:0)+((l=l+h>>>0)<h?1:0))>>>0},em.sum64_5_lo=function(t,e,r,i,n,o,s,u,f,h){return e+i+o+u+h>>>0},em.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},em.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},em.shr64_hi=function(t,e,r){return t>>>r},em.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var eM={};function eE(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}eM.BlockHash=eE,eE.prototype.update=function(t,e){if(t=em.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=em.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},eE.prototype.digest=function(t){return this.update(this._pad()),eg(null===this.pending),this._digest(t)},eE.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,i=Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(t<<=3,\"big\"===this.endian){for(var o=8;o<this.padLength;o++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=t>>>24&255,i[n++]=t>>>16&255,i[n++]=t>>>8&255,i[n++]=255&t}else for(i[n++]=255&t,i[n++]=t>>>8&255,i[n++]=t>>>16&255,i[n++]=t>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o<this.padLength;o++)i[n++]=0;return i};var eS={},eI={},eN=em.rotr32;function eB(t,e,r){return t&e^t&r^e&r}eI.ft_1=function(t,e,r,i){return 0===t?e&r^~e&i:1===t||3===t?e^r^i:2===t?eB(e,r,i):void 0},eI.ch32=function(t,e,r){return t&e^~t&r},eI.maj32=eB,eI.p32=function(t,e,r){return t^e^r},eI.s0_256=function(t){return eN(t,2)^eN(t,13)^eN(t,22)},eI.s1_256=function(t){return eN(t,6)^eN(t,11)^eN(t,25)},eI.g0_256=function(t){return eN(t,7)^eN(t,18)^t>>>3},eI.g1_256=function(t){return eN(t,17)^eN(t,19)^t>>>10};var eC=em.rotl32,e_=em.sum32,ex=em.sum32_5,eO=eI.ft_1,eR=eM.BlockHash,ek=[1518500249,1859775393,2400959708,3395469782];function eP(){if(!(this instanceof eP))return new eP;eR.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}em.inherits(eP,eR),eP.blockSize=512,eP.outSize=160,eP.hmacStrength=80,eP.padLength=64,eP.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=eC(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],f=this.h[4];for(i=0;i<r.length;i++){var h=~~(i/20),a=ex(eC(n,5),eO(h,o,s,u),f,r[i],ek[h]);f=u,u=s,s=eC(o,30),o=n,n=a}this.h[0]=e_(this.h[0],n),this.h[1]=e_(this.h[1],o),this.h[2]=e_(this.h[2],s),this.h[3]=e_(this.h[3],u),this.h[4]=e_(this.h[4],f)},eP.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"big\"):em.split32(this.h,\"big\")};var eU=em.sum32,eT=em.sum32_4,eD=em.sum32_5,eF=eI.ch32,eL=eI.maj32,eq=eI.s0_256,ez=eI.s1_256,ej=eI.g0_256,eH=eI.g1_256,eK=eM.BlockHash,eQ=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function eJ(){if(!(this instanceof eJ))return new eJ;eK.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=eQ,this.W=Array(64)}function eG(){if(!(this instanceof eG))return new eG;eJ.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}em.inherits(eJ,eK),eJ.blockSize=512,eJ.outSize=256,eJ.hmacStrength=192,eJ.padLength=64,eJ.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=eT(eH(r[i-2]),r[i-7],ej(r[i-15]),r[i-16]);var n=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],f=this.h[4],h=this.h[5],a=this.h[6],l=this.h[7];for(eg(this.k.length===r.length),i=0;i<r.length;i++){var c=eD(l,ez(f),eF(f,h,a),this.k[i],r[i]),d=eU(eq(n),eL(n,o,s));l=a,a=h,h=f,f=eU(u,c),u=s,s=o,o=n,n=eU(c,d)}this.h[0]=eU(this.h[0],n),this.h[1]=eU(this.h[1],o),this.h[2]=eU(this.h[2],s),this.h[3]=eU(this.h[3],u),this.h[4]=eU(this.h[4],f),this.h[5]=eU(this.h[5],h),this.h[6]=eU(this.h[6],a),this.h[7]=eU(this.h[7],l)},eJ.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"big\"):em.split32(this.h,\"big\")},em.inherits(eG,eJ),eG.blockSize=512,eG.outSize=224,eG.hmacStrength=192,eG.padLength=64,eG.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h.slice(0,7),\"big\"):em.split32(this.h.slice(0,7),\"big\")};var eY=em.rotr64_hi,eV=em.rotr64_lo,eW=em.shr64_hi,eX=em.shr64_lo,eZ=em.sum64,e$=em.sum64_hi,e0=em.sum64_lo,e1=em.sum64_4_hi,e2=em.sum64_4_lo,e3=em.sum64_5_hi,e6=em.sum64_5_lo,e8=eM.BlockHash,e4=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function e5(){if(!(this instanceof e5))return new e5;e8.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=e4,this.W=Array(160)}function e7(){if(!(this instanceof e7))return new e7;e5.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}em.inherits(e5,e8),e5.blockSize=1024,e5.outSize=512,e5.hmacStrength=192,e5.padLength=128,e5.prototype._prepareBlock=function(t,e){for(var r=this.W,i=0;i<32;i++)r[i]=t[e+i];for(;i<r.length;i+=2){var n=function(t,e){var r=eY(t,e,19)^eY(e,t,29)^eW(t,e,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),o=function(t,e){var r=eV(t,e,19)^eV(e,t,29)^eX(t,e,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),s=r[i-14],u=r[i-13],f=function(t,e){var r=eY(t,e,1)^eY(t,e,8)^eW(t,e,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),h=function(t,e){var r=eV(t,e,1)^eV(t,e,8)^eX(t,e,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),a=r[i-32],l=r[i-31];r[i]=e1(n,o,s,u,f,h,a,l),r[i+1]=e2(n,o,s,u,f,h,a,l)}},e5.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],f=this.h[5],h=this.h[6],a=this.h[7],l=this.h[8],c=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],A=this.h[15];eg(this.k.length===r.length);for(var y=0;y<r.length;y+=2){var b=v,w=A,M=function(t,e){var r=eY(t,e,14)^eY(t,e,18)^eY(e,t,9);return r<0&&(r+=4294967296),r}(l,c),E=function(t,e){var r=eV(t,e,14)^eV(t,e,18)^eV(e,t,9);return r<0&&(r+=4294967296),r}(l,c),S=function(t,e,r,i,n){var o=t&r^~t&n;return o<0&&(o+=4294967296),o}(l,0,d,0,m),I=function(t,e,r,i,n,o){var s=e&i^~e&o;return s<0&&(s+=4294967296),s}(0,c,0,p,0,g),N=this.k[y],B=this.k[y+1],C=r[y],_=r[y+1],x=e3(b,w,M,E,S,I,N,B,C,_),O=e6(b,w,M,E,S,I,N,B,C,_);b=function(t,e){var r=eY(t,e,28)^eY(e,t,2)^eY(e,t,7);return r<0&&(r+=4294967296),r}(i,n);var R=e$(b,w=function(t,e){var r=eV(t,e,28)^eV(e,t,2)^eV(e,t,7);return r<0&&(r+=4294967296),r}(i,n),M=function(t,e,r,i,n){var o=t&r^t&n^r&n;return o<0&&(o+=4294967296),o}(i,0,o,0,u),E=function(t,e,r,i,n,o){var s=e&i^e&o^i&o;return s<0&&(s+=4294967296),s}(0,n,0,s,0,f)),k=e0(b,w,M,E);v=m,A=g,m=d,g=p,d=l,p=c,l=e$(h,a,x,O),c=e0(a,a,x,O),h=u,a=f,u=o,f=s,o=i,s=n,i=e$(x,O,R,k),n=e0(x,O,R,k)}eZ(this.h,0,i,n),eZ(this.h,2,o,s),eZ(this.h,4,u,f),eZ(this.h,6,h,a),eZ(this.h,8,l,c),eZ(this.h,10,d,p),eZ(this.h,12,m,g),eZ(this.h,14,v,A)},e5.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"big\"):em.split32(this.h,\"big\")},em.inherits(e7,e5),e7.blockSize=1024,e7.outSize=384,e7.hmacStrength=192,e7.padLength=128,e7.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h.slice(0,12),\"big\"):em.split32(this.h.slice(0,12),\"big\")},eS.sha1=eP,eS.sha224=eG,eS.sha256=eJ,eS.sha384=e7,eS.sha512=e5;var e9={},rt=em.rotl32,re=em.sum32,rr=em.sum32_3,ri=em.sum32_4,rn=eM.BlockHash;function ro(){if(!(this instanceof ro))return new ro;rn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}function rs(t,e,r,i){return t<=15?e^r^i:t<=31?e&r|~e&i:t<=47?(e|~r)^i:t<=63?e&i|r&~i:e^(r|~i)}em.inherits(ro,rn),e9.ripemd160=ro,ro.blockSize=512,ro.outSize=160,ro.hmacStrength=192,ro.padLength=64,ro.prototype._update=function(t,e){for(var r=this.h[0],i=this.h[1],n=this.h[2],o=this.h[3],s=this.h[4],u=r,f=i,h=n,a=o,l=s,c=0;c<80;c++){var d,p,m=re(rt(ri(r,rs(c,i,n,o),t[ru[c]+e],(d=c)<=15?0:d<=31?1518500249:d<=47?1859775393:d<=63?2400959708:2840853838),rh[c]),s);r=s,s=o,o=rt(n,10),n=i,i=m,m=re(rt(ri(u,rs(79-c,f,h,a),t[rf[c]+e],(p=c)<=15?1352829926:p<=31?1548603684:p<=47?1836072691:p<=63?2053994217:0),ra[c]),l),u=l,l=a,a=rt(h,10),h=f,f=m}m=rr(this.h[1],n,a),this.h[1]=rr(this.h[2],o,l),this.h[2]=rr(this.h[3],s,u),this.h[3]=rr(this.h[4],r,f),this.h[4]=rr(this.h[0],i,h),this.h[0]=m},ro.prototype._digest=function(t){return\"hex\"===t?em.toHex32(this.h,\"little\"):em.split32(this.h,\"little\")};var ru=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rf=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],rh=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ra=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function rl(t,e,r){if(!(this instanceof rl))return new rl(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(em.toArray(e,r))}function rc(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(t,e??r.path)}},r.exports),r.exports}rl.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),eg(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=new this.Hash().update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=new this.Hash().update(t)},rl.prototype.update=function(t,e){return this.inner.update(t,e),this},rl.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},ep.utils=em,ep.common=eM,ep.sha=eS,ep.ripemd=e9,ep.hmac=rl,ep.sha1=ep.sha.sha1,ep.sha256=ep.sha.sha256,ep.sha224=ep.sha.sha224,ep.sha384=ep.sha.sha384,ep.sha512=ep.sha.sha512,ep.ripemd160=ep.ripemd.ripemd160;var rd=rp;function rp(t,e){if(!t)throw Error(e||\"Assertion failed\")}rp.equal=function(t,e,r){if(t!=e)throw Error(r||\"Assertion failed: \"+t+\" != \"+e)};var rm=rc(function(t,e){function r(t){return 1===t.length?\"0\"+t:t}function i(t){for(var e=\"\",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(\"string\"!=typeof t){for(var i=0;i<t.length;i++)r[i]=0|t[i];return r}if(\"hex\"===e){(t=t.replace(/[^a-z0-9]+/ig,\"\")).length%2!=0&&(t=\"0\"+t);for(var i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var i=0;i<t.length;i++){var n=t.charCodeAt(i),o=n>>8,s=255&n;o?r.push(o,s):r.push(s)}return r},e.zero2=r,e.toHex=i,e.encode=function(t,e){return\"hex\"===e?i(t):t}}),rg=rc(function(t,e){e.assert=rd,e.toArray=rm.toArray,e.zero2=rm.zero2,e.toHex=rm.toHex,e.encode=rm.encode,e.getNAF=function(t,e,r){var i=Array(Math.max(t.bitLength(),r)+1);i.fill(0);for(var n=1<<e+1,o=t.clone(),s=0;s<i.length;s++){var u,f=o.andln(n-1);o.isOdd()?(u=f>(n>>1)-1?(n>>1)-f:f,o.isubn(u)):u=0,i[s]=u,o.iushrn(1)}return i},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var i,n=0,o=0;t.cmpn(-n)>0||e.cmpn(-o)>0;){var s,u,f=t.andln(3)+n&3,h=e.andln(3)+o&3;3===f&&(f=-1),3===h&&(h=-1),s=1&f?(3==(i=t.andln(7)+n&7)||5===i)&&2===h?-f:f:0,r[0].push(s),u=1&h?(3==(i=e.andln(7)+o&7)||5===i)&&2===f?-h:h:0,r[1].push(u),2*n===s+1&&(n=1-n),2*o===u+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var i=\"_\"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},e.parseBytes=function(t){return\"string\"==typeof t?e.toArray(t,\"hex\"):t},e.intFromLE=function(t){return new tP(t,\"hex\",\"le\")}}),rv=rg.getNAF,rA=rg.getJSF,ry=rg.assert;function rb(t,e){this.type=t,this.p=new tP(e.p,16),this.red=e.prime?tP.red(e.prime):tP.mont(this.p),this.zero=new tP(0).toRed(this.red),this.one=new tP(1).toRed(this.red),this.two=new tP(2).toRed(this.red),this.n=e.n&&new tP(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function rw(t,e){this.curve=t,this.type=e,this.precomputed=null}rb.prototype.point=function(){throw Error(\"Not implemented\")},rb.prototype.validate=function(){throw Error(\"Not implemented\")},rb.prototype._fixedNafMul=function(t,e){ry(t.precomputed);var r=t._getDoubles(),i=rv(e,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;var o,s,u=[];for(o=0;o<i.length;o+=r.step){s=0;for(var f=o+r.step-1;f>=o;f--)s=(s<<1)+i[f];u.push(s)}for(var h=this.jpoint(null,null,null),a=this.jpoint(null,null,null),l=n;l>0;l--){for(o=0;o<u.length;o++)(s=u[o])===l?a=a.mixedAdd(r.points[o]):s===-l&&(a=a.mixedAdd(r.points[o].neg()));h=h.add(a)}return h.toP()},rb.prototype._wnafMul=function(t,e){var r=4,i=t._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=rv(e,r,this._bitLength),s=this.jpoint(null,null,null),u=o.length-1;u>=0;u--){for(var f=0;u>=0&&0===o[u];u--)f++;if(u>=0&&f++,s=s.dblp(f),u<0)break;var h=o[u];ry(0!==h),s=\"affine\"===t.type?h>0?s.mixedAdd(n[h-1>>1]):s.mixedAdd(n[-h-1>>1].neg()):h>0?s.add(n[h-1>>1]):s.add(n[-h-1>>1].neg())}return\"affine\"===t.type?s.toP():s},rb.prototype._wnafMulAdd=function(t,e,r,i,n){var o,s,u,f=this._wnafT1,h=this._wnafT2,a=this._wnafT3,l=0;for(o=0;o<i;o++){var c=(u=e[o])._getNAFPoints(t);f[o]=c.wnd,h[o]=c.points}for(o=i-1;o>=1;o-=2){var d=o-1,p=o;if(1!==f[d]||1!==f[p]){a[d]=rv(r[d],f[d],this._bitLength),a[p]=rv(r[p],f[p],this._bitLength),l=Math.max(a[d].length,l),l=Math.max(a[p].length,l);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=rA(r[d],r[p]);for(l=Math.max(v[0].length,l),a[d]=Array(l),a[p]=Array(l),s=0;s<l;s++){var A=0|v[0][s],y=0|v[1][s];a[d][s]=g[(A+1)*3+(y+1)],a[p][s]=0,h[d]=m}}var b=this.jpoint(null,null,null),w=this._wnafT4;for(o=l;o>=0;o--){for(var M=0;o>=0;){var E=!0;for(s=0;s<i;s++)w[s]=0|a[s][o],0!==w[s]&&(E=!1);if(!E)break;M++,o--}if(o>=0&&M++,b=b.dblp(M),o<0)break;for(s=0;s<i;s++){var S=w[s];0!==S&&(S>0?u=h[s][S-1>>1]:S<0&&(u=h[s][-S-1>>1].neg()),b=\"affine\"===u.type?b.mixedAdd(u):b.add(u))}}for(o=0;o<i;o++)h[o]=null;return n?b:b.toP()},rb.BasePoint=rw,rw.prototype.eq=function(){throw Error(\"Not implemented\")},rw.prototype.validate=function(){return this.curve.validate(this)},rb.prototype.decodePoint=function(t,e){t=rg.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?ry(t[t.length-1]%2==0):7===t[0]&&ry(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error(\"Unknown point format\")},rw.prototype.encodeCompressed=function(t){return this.encode(t,!0)},rw.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray(\"be\",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray(\"be\",e))},rw.prototype.encode=function(t,e){return rg.encode(this._encode(e),t)},rw.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},rw.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},rw.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<e;n+=t){for(var o=0;o<t;o++)i=i.dbl();r.push(i)}return{step:t,points:r}},rw.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)e[n]=e[n-1].add(i);return{wnd:t,points:e}},rw.prototype._getBeta=function(){return null},rw.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var rM=rc(function(t){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),rE=rg.assert;function rS(t){rb.call(this,\"short\",t),this.a=new tP(t.a,16).toRed(this.red),this.b=new tP(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function rI(t,e,r,i){rb.BasePoint.call(this,t,\"affine\"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new tP(e,16),this.y=new tP(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function rN(t,e,r,i){rb.BasePoint.call(this,t,\"jacobian\"),null===e&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new tP(0)):(this.x=new tP(e,16),this.y=new tP(r,16),this.z=new tP(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}rM(rS,rb),rS.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||1!==this.p.modn(3))){if(t.beta)e=new tP(t.beta,16).toRed(this.red);else{var e,r,i,n=this._getEndoRoots(this.p);e=(e=0>n[0].cmp(n[1])?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new tP(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],rE(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return i=t.basis?t.basis.map(function(t){return{a:new tP(t.a,16),b:new tP(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:i}}},rS.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:tP.mont(t),r=new tP(2).toRed(e).redInvm(),i=r.redNeg(),n=new tP(3).toRed(e).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},rS.prototype._getEndoBasis=function(t){for(var e,r,i,n,o,s,u,f,h,a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,c=this.n.clone(),d=new tP(1),p=new tP(0),m=new tP(0),g=new tP(1),v=0;0!==l.cmpn(0);){var A=c.div(l);f=c.sub(A.mul(l)),h=m.sub(A.mul(d));var y=g.sub(A.mul(p));if(!i&&0>f.cmp(a))e=u.neg(),r=d,i=f.neg(),n=h;else if(i&&2==++v)break;u=f,c=l,l=f,m=d,d=h,g=p,p=y}o=f.neg(),s=h;var b=i.sqr().add(n.sqr());return o.sqr().add(s.sqr()).cmp(b)>=0&&(o=e,s=r),i.negative&&(i=i.neg(),n=n.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:n},{a:o,b:s}]},rS.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],i=e[1],n=i.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=n.mul(r.a),u=o.mul(i.a),f=n.mul(r.b),h=o.mul(i.b);return{k1:t.sub(s).sub(u),k2:f.add(h).neg()}},rS.prototype.pointFromX=function(t,e){(t=new tP(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error(\"invalid point\");var n=i.fromRed().isOdd();return(e&&!n||!e&&n)&&(i=i.redNeg()),this.point(t,i)},rS.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,i=this.a.redMul(e),n=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},rS.prototype._endoWnafMulAdd=function(t,e,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),u=t[o],f=u._getBeta();s.k1.negative&&(s.k1.ineg(),u=u.neg(!0)),s.k2.negative&&(s.k2.ineg(),f=f.neg(!0)),i[2*o]=u,i[2*o+1]=f,n[2*o]=s.k1,n[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,i,n,2*o,r),a=0;a<2*o;a++)i[a]=null,n[a]=null;return h},rM(rI,rb.BasePoint),rS.prototype.point=function(t,e,r){return new rI(this,t,e,r)},rS.prototype.pointFromJSON=function(t,e){return rI.fromJSON(this,t,e)},rI.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,i=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},rI.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},rI.fromJSON=function(t,e,r){\"string\"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;function n(e){return t.point(e[0],e[1],r)}var o=e[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},rI.prototype.inspect=function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\">\"},rI.prototype.isInfinity=function(){return this.inf},rI.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t)||0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},rI.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),i=t.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},rI.prototype.getX=function(){return this.x.fromRed()},rI.prototype.getY=function(){return this.y.fromRed()},rI.prototype.mul=function(t){return t=new tP(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},rI.prototype.mulAdd=function(t,e,r){var i=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},rI.prototype.jmulAdd=function(t,e,r){var i=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},rI.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},rI.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return e},rI.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},rM(rN,rb.BasePoint),rS.prototype.jpoint=function(t,e,r){return new rN(this,t,e,r)},rN.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(r,i)},rN.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},rN.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(e),n=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),u=i.redSub(n),f=o.redSub(s);if(0===u.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=u.redSqr(),a=h.redMul(u),l=i.redMul(h),c=f.redSqr().redIAdd(a).redISub(l).redISub(l),d=f.redMul(l.redISub(c)).redISub(o.redMul(a)),p=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(c,d,p)},rN.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,i=t.x.redMul(e),n=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(i),u=n.redSub(o);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),h=f.redMul(s),a=r.redMul(f),l=u.redSqr().redIAdd(h).redISub(a).redISub(a),c=u.redMul(a.redISub(l)).redISub(n.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(l,c,d)},rN.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var i=this.curve.a,n=this.curve.tinv,o=this.x,s=this.y,u=this.z,f=u.redSqr().redSqr(),h=s.redAdd(s);for(e=0;e<t;e++){var a=o.redSqr(),l=h.redSqr(),c=l.redSqr(),d=a.redAdd(a).redIAdd(a).redIAdd(i.redMul(f)),p=o.redMul(l),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=d.redMul(g);v=v.redIAdd(v).redISub(c);var A=h.redMul(u);e+1<t&&(f=f.redMul(c)),o=m,u=A,h=v}return this.curve.jpoint(o,h.redMul(n),u)},rN.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},rN.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var u=i.redAdd(i).redIAdd(i),f=u.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),t=f,e=u.redMul(s.redISub(f)).redISub(h),r=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),l=this.y.redSqr(),c=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(a).redISub(c);d=d.redIAdd(d);var p=a.redAdd(a).redIAdd(a),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},rN.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var u=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),f=u.redSqr().redISub(s).redISub(s);t=f;var h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),e=u.redMul(s.redISub(f)).redISub(h),r=this.y.redAdd(this.y)}else{var a=this.z.redSqr(),l=this.y.redSqr(),c=this.x.redMul(l),d=this.x.redSub(a).redMul(this.x.redAdd(a));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(a);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},rN.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(n)),f=e.redAdd(e),h=(f=f.redIAdd(f)).redMul(s),a=u.redSqr().redISub(h.redAdd(h)),l=h.redISub(a),c=s.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=u.redMul(l).redISub(c),p=r.redAdd(r).redMul(i);return this.curve.jpoint(a,d,p)},rN.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),i=e.redSqr(),n=t.redAdd(t).redIAdd(t),o=n.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(i),u=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),f=i.redIAdd(i);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=n.redIAdd(s).redSqr().redISub(o).redISub(u).redISub(f),a=e.redMul(h);a=(a=a.redIAdd(a)).redIAdd(a);var l=this.x.redMul(u).redISub(a);l=(l=l.redIAdd(l)).redIAdd(l);var c=this.y.redMul(h.redMul(f.redISub(h)).redISub(s.redMul(u)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(u);return this.curve.jpoint(l,c,d)},rN.prototype.mul=function(t,e){return t=new tP(t,e),this.curve._wnafMul(this,t)},rN.prototype.eq=function(t){if(\"affine\"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var i=e.redMul(this.z),n=r.redMul(t.z);return 0===this.y.redMul(n).redISub(t.y.redMul(i)).cmpn(0)},rN.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},rN.prototype.inspect=function(){return this.isInfinity()?\"<EC JPoint Infinity>\":\"<EC JPoint x: \"+this.x.toString(16,2)+\" y: \"+this.y.toString(16,2)+\" z: \"+this.z.toString(16,2)+\">\"},rN.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var rB=rc(function(t,e){e.base=rb,e.short=rS,e.mont=null,e.edwards=null}),rC=rc(function(t,e){var r,i=rg.assert;function n(t){\"short\"===t.type?this.curve=new rB.short(t):\"edwards\"===t.type?this.curve=new rB.edwards(t):this.curve=new rB.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),\"Invalid curve\"),i(this.g.mul(this.n).isInfinity(),\"Invalid curve, G*N != O\")}function o(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var i=new n(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:i}),i}})}e.PresetCurve=n,o(\"p192\",{type:\"short\",prime:\"p192\",p:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc\",b:\"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1\",n:\"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831\",hash:ep.sha256,gRed:!1,g:[\"188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012\",\"07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811\"]}),o(\"p224\",{type:\"short\",prime:\"p224\",p:\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\",a:\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe\",b:\"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4\",n:\"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d\",hash:ep.sha256,gRed:!1,g:[\"b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21\",\"bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34\"]}),o(\"p256\",{type:\"short\",prime:null,p:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff\",a:\"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc\",b:\"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b\",n:\"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551\",hash:ep.sha256,gRed:!1,g:[\"6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296\",\"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5\"]}),o(\"p384\",{type:\"short\",prime:null,p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff\",a:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc\",b:\"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef\",n:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973\",hash:ep.sha384,gRed:!1,g:[\"aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7\",\"3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f\"]}),o(\"p521\",{type:\"short\",prime:null,p:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\",a:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc\",b:\"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00\",n:\"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409\",hash:ep.sha512,gRed:!1,g:[\"000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66\",\"00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650\"]}),o(\"curve25519\",{type:\"mont\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"76d06\",b:\"1\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:ep.sha256,gRed:!1,g:[\"9\"]}),o(\"ed25519\",{type:\"edwards\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"-1\",c:\"1\",d:\"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:ep.sha256,gRed:!1,g:[\"216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\",\"6666666666666666666666666666666666666666666666666666666666666658\"]});try{r=null.crash()}catch{r=void 0}o(\"secp256k1\",{type:\"short\",prime:\"k256\",p:\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\",a:\"0\",b:\"7\",n:\"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141\",h:\"1\",hash:ep.sha256,beta:\"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\",lambda:\"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72\",basis:[{a:\"3086d221a7d46bcde86c90e49284eb15\",b:\"-e4437ed6010e88286f547fa90abfe4c3\"},{a:\"114ca50f7a8e2f3f657c1108d9d44cfd8\",b:\"3086d221a7d46bcde86c90e49284eb15\"}],gRed:!1,g:[\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\",r]})});function r_(t){if(!(this instanceof r_))return new r_(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=rm.toArray(t.entropy,t.entropyEnc||\"hex\"),r=rm.toArray(t.nonce,t.nonceEnc||\"hex\"),i=rm.toArray(t.pers,t.persEnc||\"hex\");rd(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._init(e,r,i)}r_.prototype._init=function(t,e,r){var i=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},r_.prototype._hmac=function(){return new ep.hmac(this.hash,this.K)},r_.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r_.prototype.reseed=function(t,e,r,i){\"string\"!=typeof e&&(i=r,r=e,e=null),t=rm.toArray(t,e),r=rm.toArray(r,i),rd(t.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._update(t.concat(r||[])),this._reseed=1},r_.prototype.generate=function(t,e,r,i){if(this._reseed>this.reseedInterval)throw Error(\"Reseed is required\");\"string\"!=typeof e&&(i=r,r=e,e=null),r&&(r=rm.toArray(r,i||\"hex\"),this._update(r));for(var n=[];n.length<t;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var o=n.slice(0,t);return this._update(r),this._reseed++,rm.encode(o,e)};var rx=rg.assert;function rO(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}rO.fromPublic=function(t,e,r){return e instanceof rO?e:new rO(t,{pub:e,pubEnc:r})},rO.fromPrivate=function(t,e,r){return e instanceof rO?e:new rO(t,{priv:e,privEnc:r})},rO.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:\"Invalid public key\"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:\"Public key * N != O\"}:{result:!1,reason:\"Public key is not a point\"}},rO.prototype.getPublic=function(t,e){return\"string\"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},rO.prototype.getPrivate=function(t){return\"hex\"===t?this.priv.toString(16,2):this.priv},rO.prototype._importPrivate=function(t,e){this.priv=new tP(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},rO.prototype._importPublic=function(t,e){if(t.x||t.y){\"mont\"===this.ec.curve.type?rx(t.x,\"Need x coordinate\"):(\"short\"===this.ec.curve.type||\"edwards\"===this.ec.curve.type)&&rx(t.x&&t.y,\"Need both x and y coordinate\"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},rO.prototype.derive=function(t){return t.validate()||rx(t.validate(),\"public point not validated\"),t.mul(this.priv).getX()},rO.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},rO.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},rO.prototype.inspect=function(){return\"<Key priv: \"+(this.priv&&this.priv.toString(16,2))+\" pub: \"+(this.pub&&this.pub.inspect())+\" >\"};var rR=rg.assert;function rk(t,e){if(t instanceof rk)return t;this._importDER(t,e)||(rR(t.r&&t.s,\"Signature without r or s\"),this.r=new tP(t.r,16),this.s=new tP(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function rP(){this.place=0}function rU(t,e){var r=t[e.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,o=0,s=e.place;o<i;o++,s++)n<<=8,n|=t[s],n>>>=0;return!(n<=127)&&(e.place=s,n)}function rT(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function rD(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}rk.prototype._importDER=function(t,e){t=rg.toArray(t,e);var r=new rP;if(48!==t[r.place++])return!1;var i=rU(t,r);if(!1===i||i+r.place!==t.length||2!==t[r.place++])return!1;var n=rU(t,r);if(!1===n)return!1;var o=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var s=rU(t,r);if(!1===s||t.length!==s+r.place)return!1;var u=t.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new tP(o),this.s=new tP(u),this.recoveryParam=null,!0},rk.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=rT(e),r=rT(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];rD(i,e.length),(i=i.concat(e)).push(2),rD(i,r.length);var n=i.concat(r),o=[48];return rD(o,n.length),o=o.concat(n),rg.encode(o,t)};var rF=function(){throw Error(\"unsupported\")},rL=rg.assert;function rq(t){if(!(this instanceof rq))return new rq(t);\"string\"==typeof t&&(rL(Object.prototype.hasOwnProperty.call(rC,t),\"Unknown curve \"+t),t=rC[t]),t instanceof rC.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}rq.prototype.keyPair=function(t){return new rO(this,t)},rq.prototype.keyFromPrivate=function(t,e){return rO.fromPrivate(this,t,e)},rq.prototype.keyFromPublic=function(t,e){return rO.fromPublic(this,t,e)},rq.prototype.genKeyPair=function(t){t||(t={});for(var e=new r_({hash:this.hash,pers:t.pers,persEnc:t.persEnc||\"utf8\",entropy:t.entropy||rF(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||\"utf8\",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new tP(2));;){var n=new tP(e.generate(r));if(!(n.cmp(i)>0))return n.iaddn(1),this.keyFromPrivate(n)}},rq.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},rq.prototype.sign=function(t,e,r,i){\"object\"==typeof r&&(i=r,r=null),i||(i={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new tP(t,16));for(var n=this.n.byteLength(),o=e.getPrivate().toArray(\"be\",n),s=t.toArray(\"be\",n),u=new r_({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||\"utf8\"}),f=this.n.sub(new tP(1)),h=0;;h++){var a=i.k?i.k(h):new tP(u.generate(this.n.byteLength()));if(!(0>=(a=this._truncateToN(a,!0)).cmpn(1)||a.cmp(f)>=0)){var l=this.g.mul(a);if(!l.isInfinity()){var c=l.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=a.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(l.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return i.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new rk({r:d,s:p,recoveryParam:m})}}}}}},rq.prototype.verify=function(t,e,r,i){t=this._truncateToN(new tP(t,16)),r=this.keyFromPublic(r,i);var n=(e=new rk(e,\"hex\")).r,o=e.s;if(0>n.cmpn(1)||n.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),f=u.mul(t).umod(this.n),h=u.mul(n).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(f,r.getPublic(),h)).isInfinity()&&s.eqXToP(n):!(s=this.g.mulAdd(f,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(n)},rq.prototype.recoverPubKey=function(t,e,r,i){rL((3&r)===r,\"The recovery param is more than two bits\"),e=new rk(e,i);var n=this.n,o=new tP(t),s=e.r,u=e.s,f=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error(\"Unable to find sencond key candinate\");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var a=e.r.invm(n),l=n.sub(o).mul(a).umod(n),c=u.mul(a).umod(n);return this.g.mulAdd(l,s,c)},rq.prototype.getKeyRecoveryParam=function(t,e,r,i){if(null!==(e=new rk(e,i)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch{continue}if(n.eq(r))return o}throw Error(\"Unable to find valid recovery factor\")};var rz=rc(function(t,e){e.version=\"6.5.4\",e.utils=rg,e.rand=function(){throw Error(\"unsupported\")},e.curve=rB,e.curves=rC,e.ec=rq,e.eddsa=null}).ec;let rj=new tA(\"signing-key/5.7.0\"),rH=null;function rK(){return rH||(rH=new rz(\"secp256k1\")),rH}class rQ{constructor(t){el(this,\"curve\",\"secp256k1\"),el(this,\"privateKey\",tB(t)),32!==function(t){if(\"string\"!=typeof t)t=tB(t);else if(!tI(t)||t.length%2)return null;return(t.length-2)/2}(this.privateKey)&&rj.throwArgumentError(\"invalid private key\",\"privateKey\",\"[[ REDACTED ]]\");let e=rK().keyFromPrivate(tS(this.privateKey));el(this,\"publicKey\",\"0x\"+e.getPublic(!1,\"hex\")),el(this,\"compressedPublicKey\",\"0x\"+e.getPublic(!0,\"hex\")),el(this,\"_isSigningKey\",!0)}_addPoint(t){let e=rK().keyFromPublic(tS(this.publicKey)),r=rK().keyFromPublic(tS(t));return\"0x\"+e.pub.add(r.pub).encodeCompressed(\"hex\")}signDigest(t){let e=rK().keyFromPrivate(tS(this.privateKey)),r=tS(t);32!==r.length&&rj.throwArgumentError(\"bad digest length\",\"digest\",t);let i=e.sign(r,{canonical:!0});return tx({recoveryParam:i.recoveryParam,r:t_(\"0x\"+i.r.toString(16),32),s:t_(\"0x\"+i.s.toString(16),32)})}computeSharedSecret(t){let e=rK().keyFromPrivate(tS(this.privateKey)),r=rK().keyFromPublic(tS(rJ(t)));return t_(\"0x\"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function rJ(t,e){let r=tS(t);if(32===r.length){let t=new rQ(r);return e?\"0x\"+rK().keyFromPrivate(r).getPublic(!0,\"hex\"):t.publicKey}return 33===r.length?e?tB(r):\"0x\"+rK().keyFromPublic(r).getPublic(!1,\"hex\"):65===r.length?e?\"0x\"+rK().keyFromPublic(r).getPublic(!0,\"hex\"):tB(r):rj.throwArgumentError(\"invalid public or private key\",\"key\",\"[REDACTED]\")}async function rG(t,e,r,i,n,o){switch(r.t){case\"eip191\":var s;return s=r.s,(function(t){let e=null;if(\"string\"!=typeof t&&eu.throwArgumentError(\"invalid address\",\"address\",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))\"0x\"!==t.substring(0,2)&&(t=\"0x\"+t),e=ef(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&eu.throwArgumentError(\"bad address checksum\",\"address\",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+\"00\").split(\"\").map(t=>eh[t]).join(\"\");for(;e.length>=ea;){let t=e.substring(0,ea);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r=\"0\"+r;return r}(t)&&eu.throwArgumentError(\"bad icap checksum\",\"address\",t),e=new tT(t.substring(4),36).toString(16);e.length<40;)e=\"0\"+e;e=ef(\"0x\"+e)}else eu.throwArgumentError(\"invalid address\",\"address\",t);return e})(tC(tO(tC(rJ(function(t,e){let r=tx(e),i={r:tS(r.r),s:tS(r.s)};return\"0x\"+rK().recoverPubKey(tS(t),i,r.recoveryParam).encode(\"hex\",!1)}(tS(es(e)),s)),1)),12)).toLowerCase()===t.toLowerCase();case\"eip1271\":return await rY(t,e,r.s,i,n,o);default:throw Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function rY(t,e,r,i,n,o){try{let s=\"0x1626ba7e\",u=r.substring(2),f=es(e).substring(2),h=await fetch(`${o||\"https://rpc.walletconnect.com/v1\"}/?chainId=${i}&projectId=${n}`,{method:\"POST\",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:\"2.0\",method:\"eth_call\",params:[{to:t,data:s+f+\"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041\"+u},\"latest\"]})}),{result:a}=await h.json();return!!a&&a.slice(0,s.length).toLowerCase()===s.toLowerCase()}catch(t){return console.error(\"isValidEip1271Signature: \",t),!1}}new tA(\"transactions/5.7.0\"),(a=m||(m={}))[a.legacy=0]=\"legacy\",a[a.eip2930=1]=\"eip2930\",a[a.eip1559=2]=\"eip1559\";var rV=Object.defineProperty,rW=Object.defineProperties,rX=Object.getOwnPropertyDescriptors,rZ=Object.getOwnPropertySymbols,r$=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable,r1=(t,e,r)=>e in t?rV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,r2=(t,e)=>{for(var r in e||(e={}))r$.call(e,r)&&r1(t,r,e[r]);if(rZ)for(var r of rZ(e))r0.call(e,r)&&r1(t,r,e[r]);return t},r3=(t,e)=>rW(t,rX(e));let r6=t=>t?.split(\":\"),r8=t=>{let e=t&&r6(t);if(e)return t.includes(\"did:pkh:\")?e[3]:e[1]},r4=t=>{let e=t&&r6(t);if(e)return e[2]+\":\"+e[3]},r5=t=>{let e=t&&r6(t);if(e)return e.pop()};async function r7(t){let{cacao:e,projectId:r}=t,{s:i,p:n}=e,o=r9(n,n.iss),s=r5(n.iss);return await rG(s,o,i,r8(n.iss),r)}let r9=(t,e)=>{let r=`${t.domain} wants you to sign in with your Ethereum account:`,i=r5(e);if(!t.aud&&!t.uri)throw Error(\"Either `aud` or `uri` is required to construct the message\");let n=t.statement||void 0,o=`URI: ${t.aud||t.uri}`,s=`Version: ${t.version}`,u=`Chain ID: ${r8(e)}`,f=`Nonce: ${t.nonce}`,h=`Issued At: ${t.iat}`,a=t.exp?`Expiration Time: ${t.exp}`:void 0,l=t.nbf?`Not Before: ${t.nbf}`:void 0,c=t.requestId?`Request ID: ${t.requestId}`:void 0,d=t.resources?`Resources:${t.resources.map(t=>`\n- ${t}`).join(\"\")}`:void 0,p=ih(t.resources);return p&&(n=function(t=\"\",e){it(e);let r=\"I further authorize the stated URI to perform the following actions on my behalf: \";if(t.includes(r))return t;let i=[],n=0;Object.keys(e.att).forEach(t=>{let r=Object.keys(e.att[t]).map(t=>({ability:t.split(\"/\")[0],action:t.split(\"/\")[1]}));r.sort((t,e)=>t.action.localeCompare(e.action));let o={};r.forEach(t=>{o[t.ability]||(o[t.ability]=[]),o[t.ability].push(t.action)});let s=Object.keys(o).map(e=>(n++,`(${n}) '${e}': '${o[e].join(\"', '\")}' for '${t}'.`));i.push(s.join(\", \").replace(\".,\",\".\"))});let o=i.join(\" \"),s=`${r}${o}`;return`${t?t+\" \":\"\"}${s}`}(n,ir(p))),[r,i,\"\",n,\"\",o,s,u,f,h,a,l,c,d].filter(t=>null!=t).join(`\n`)};function it(t){if(!t)throw Error(\"No recap provided, value is undefined\");if(!t.att)throw Error(\"No `att` property found\");let e=Object.keys(t.att);if(!(null!=e&&e.length))throw Error(\"No resources found in `att` property\");e.forEach(e=>{let r=t.att[e];if(Array.isArray(r)||\"object\"!=typeof r)throw Error(`Resource must be an object: ${e}`);if(!Object.keys(r).length)throw Error(`Resource object is empty: ${e}`);Object.keys(r).forEach(t=>{let e=r[t];if(!Array.isArray(e))throw Error(`Ability limits ${t} must be an array of objects, found: ${e}`);if(!e.length)throw Error(`Value of ${t} is empty array, must be an array with objects`);e.forEach(e=>{if(\"object\"!=typeof e)throw Error(`Ability limits (${t}) must be an array of objects, found: ${e}`)})})})}function ie(t){return it(t),`urn:recap:${_.from(JSON.stringify(t)).toString(\"base64\").replace(/=/g,\"\")}`}function ir(t){var e;let r=(e=t.replace(\"urn:recap:\",\"\"),JSON.parse(_.from(e,\"base64\").toString(\"utf-8\")));return it(r),r}function ii(t,e,r){return ie(function(t,e,r,i={}){return r?.sort((t,e)=>t.localeCompare(e)),{att:{[t]:function(t,e,r={}){return Object.assign({},...(e=e?.sort((t,e)=>t.localeCompare(e))).map(e=>({[`${t}/${e}`]:[r]})))}(e,r,i)}}}(t,e,r))}function io(t,e){return ie(function(t,e){it(t),it(e);let r=Object.keys(t.att).concat(Object.keys(e.att)).sort((t,e)=>t.localeCompare(e)),i={att:{}};return r.forEach(r=>{var n,o;Object.keys((null==(n=t.att)?void 0:n[r])||{}).concat(Object.keys((null==(o=e.att)?void 0:o[r])||{})).sort((t,e)=>t.localeCompare(e)).forEach(n=>{var o,s;i.att[r]=r3(r2({},i.att[r]),{[n]:(null==(o=t.att[r])?void 0:o[n])||(null==(s=e.att[r])?void 0:s[n])})})}),i}(ir(t),ir(e)))}function is(t){var e;let r=ir(t);it(r);let i=null==(e=r.att)?void 0:e.eip155;return i?Object.keys(i).map(t=>t.split(\"/\")[1]):[]}function iu(t){let e=ir(t);it(e);let r=[];return Object.values(e.att).forEach(t=>{Object.values(t).forEach(t=>{var e;null!=(e=t?.[0])&&e.chains&&r.push(t[0].chains)})}),[...new Set(r.flat())]}function ih(t){if(!t)return;let e=t?.[t.length-1];return e&&e.includes(\"urn:recap:\")?e:void 0}let ia=\"base10\",il=\"base16\",ic=\"base64pad\",id=\"utf8\",ip=1;function im(){let t=I.Au();return{privateKey:(0,N.BB)(t.secretKey,il),publicKey:(0,N.BB)(t.publicKey,il)}}function ig(){let t=(0,E.randomBytes)(32);return(0,N.BB)(t,il)}function iv(t,e){let r=I.gi((0,N.mL)(t,il),(0,N.mL)(e,il),!0),i=new M.t(S.mE,r).expand(32);return(0,N.BB)(i,il)}function iA(t){let e=(0,S.vp)((0,N.mL)(t,il));return(0,N.BB)(e,il)}function iy(t){let e=(0,S.vp)((0,N.mL)(t,id));return(0,N.BB)(e,il)}function ib(t){return Number((0,N.BB)(t,ia))}function iw(t){var e;let r=(e=\"u\">typeof t.type?t.type:0,(0,N.mL)(`${e}`,ia));if(ib(r)===ip&&typeof t.senderPublicKey>\"u\")throw Error(\"Missing sender public key for type 1 envelope\");let i=\"u\">typeof t.senderPublicKey?(0,N.mL)(t.senderPublicKey,il):void 0,n=\"u\">typeof t.iv?(0,N.mL)(t.iv,il):(0,E.randomBytes)(12);return function(t){if(ib(t.type)===ip){if(typeof t.senderPublicKey>\"u\")throw Error(\"Missing sender public key for type 1 envelope\");return(0,N.BB)((0,N.zo)([t.type,t.senderPublicKey,t.iv,t.sealed]),ic)}return(0,N.BB)((0,N.zo)([t.type,t.iv,t.sealed]),ic)}({type:r,sealed:new w.OK((0,N.mL)(t.symKey,il)).seal(n,(0,N.mL)(t.message,id)),iv:n,senderPublicKey:i})}function iM(t){let e=new w.OK((0,N.mL)(t.symKey,il)),{sealed:r,iv:i}=iE(t.encoded),n=e.open(i,r);if(null===n)throw Error(\"Failed to decrypt\");return(0,N.BB)(n,id)}function iE(t){let e=(0,N.mL)(t,ic),r=e.slice(0,1);if(ib(r)===ip){let t=e.slice(1,33),i=e.slice(33,45);return{type:r,sealed:e.slice(45),iv:i,senderPublicKey:t}}let i=e.slice(1,13);return{type:r,sealed:e.slice(13),iv:i}}function iS(t,e){let r=iE(t);return iI({type:ib(r.type),senderPublicKey:\"u\">typeof r.senderPublicKey?(0,N.BB)(r.senderPublicKey,il):void 0,receiverPublicKey:e?.receiverPublicKey})}function iI(t){let e=t?.type||0;if(e===ip){if(typeof t?.senderPublicKey>\"u\")throw Error(\"missing sender public key\");if(typeof t?.receiverPublicKey>\"u\")throw Error(\"missing receiver public key\")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function iN(t){return t.type===ip&&\"string\"==typeof t.senderPublicKey&&\"string\"==typeof t.receiverPublicKey}function iB(t){return t?.relay||{protocol:\"irn\"}}function iC(t){let e=B.iO[t];if(typeof e>\"u\")throw Error(`Relay Protocol not supported: ${t}`);return e}var i_=Object.defineProperty,ix=Object.defineProperties,iO=Object.getOwnPropertyDescriptors,iR=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,iP=Object.prototype.propertyIsEnumerable,iU=(t,e,r)=>e in t?i_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,iT=(t,e)=>{for(var r in e||(e={}))ik.call(e,r)&&iU(t,r,e[r]);if(iR)for(var r of iR(e))iP.call(e,r)&&iU(t,r,e[r]);return t},iD=(t,e)=>ix(t,iO(e));function iF(t){var e;let r=(t=(t=t.includes(\"wc://\")?t.replace(\"wc://\",\"\"):t).includes(\"wc:\")?t.replace(\"wc:\",\"\"):t).indexOf(\":\"),i=-1!==t.indexOf(\"?\")?t.indexOf(\"?\"):void 0,n=t.substring(0,r),o=t.substring(r+1,i).split(\"@\"),s=\"u\">typeof i?t.substring(i):\"\",u=b.parse(s),f=\"string\"==typeof u.methods?u.methods.split(\",\"):void 0;return{protocol:n,topic:(e=o[0]).startsWith(\"//\")?e.substring(2):e,version:parseInt(o[1],10),symKey:u.symKey,relay:function(t,e=\"-\"){let r={},i=\"relay\"+e;return Object.keys(t).forEach(e=>{if(e.startsWith(i)){let n=e.replace(i,\"\"),o=t[e];r[n]=o}}),r}(u),methods:f,expiryTimestamp:u.expiryTimestamp?parseInt(u.expiryTimestamp,10):void 0}}function iL(t){return`${t.protocol}:${t.topic}@${t.version}?`+b.stringify(iT(iD(iT({symKey:t.symKey},function(t,e=\"-\"){let r={};return Object.keys(t).forEach(i=>{t[i]&&(r[\"relay\"+e+i]=t[i])}),r}(t.relay)),{expiryTimestamp:t.expiryTimestamp}),t.methods?{methods:t.methods.join(\",\")}:{}))}function iq(t){let e=[];return t.forEach(t=>{let[r,i]=t.split(\":\");e.push(`${r}:${i}`)}),e}function iz(t){return t.includes(\":\")}function ij(t){return iz(t)?t.split(\":\")[0]:t}function iH(t,e){let r=function(t){let e={};return t?.forEach(t=>{let[r,i]=t.split(\":\");e[r]||(e[r]={accounts:[],chains:[],events:[]}),e[r].accounts.push(t),e[r].chains.push(`${r}:${i}`)}),e}(e=e.map(t=>t.replace(\"did:pkh:\",\"\")));for(let[e,i]of Object.entries(r))i.methods?i.methods=to(i.methods,t):i.methods=t,i.events=[\"chainChanged\",\"accountsChanged\"];return r}Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let iK={INVALID_METHOD:{message:\"Invalid method.\",code:1001},INVALID_EVENT:{message:\"Invalid event.\",code:1002},INVALID_UPDATE_REQUEST:{message:\"Invalid update request.\",code:1003},INVALID_EXTEND_REQUEST:{message:\"Invalid extend request.\",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:\"Invalid session settle request.\",code:1005},UNAUTHORIZED_METHOD:{message:\"Unauthorized method.\",code:3001},UNAUTHORIZED_EVENT:{message:\"Unauthorized event.\",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:\"Unauthorized update request.\",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:\"Unauthorized extend request.\",code:3004},USER_REJECTED:{message:\"User rejected.\",code:5e3},USER_REJECTED_CHAINS:{message:\"User rejected chains.\",code:5001},USER_REJECTED_METHODS:{message:\"User rejected methods.\",code:5002},USER_REJECTED_EVENTS:{message:\"User rejected events.\",code:5003},UNSUPPORTED_CHAINS:{message:\"Unsupported chains.\",code:5100},UNSUPPORTED_METHODS:{message:\"Unsupported methods.\",code:5101},UNSUPPORTED_EVENTS:{message:\"Unsupported events.\",code:5102},UNSUPPORTED_ACCOUNTS:{message:\"Unsupported accounts.\",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:\"Unsupported namespace key.\",code:5104},USER_DISCONNECTED:{message:\"User disconnected.\",code:6e3},SESSION_SETTLEMENT_FAILED:{message:\"Session settlement failed.\",code:7e3},WC_METHOD_UNSUPPORTED:{message:\"Unsupported wc_ method.\",code:10001}},iQ={NOT_INITIALIZED:{message:\"Not initialized.\",code:1},NO_MATCHING_KEY:{message:\"No matching key.\",code:2},RESTORE_WILL_OVERRIDE:{message:\"Restore will override.\",code:3},RESUBSCRIBED:{message:\"Resubscribed.\",code:4},MISSING_OR_INVALID:{message:\"Missing or invalid.\",code:5},EXPIRED:{message:\"Expired.\",code:6},UNKNOWN_TYPE:{message:\"Unknown type.\",code:7},MISMATCHED_TOPIC:{message:\"Mismatched topic.\",code:8},NON_CONFORMING_NAMESPACES:{message:\"Non conforming namespaces.\",code:9}};function iJ(t,e){let{message:r,code:i}=iQ[t];return{message:e?`${r} ${e}`:r,code:i}}function iG(t,e){let{message:r,code:i}=iK[t];return{message:e?`${r} ${e}`:r,code:i}}function iY(t,e){return!!Array.isArray(t)&&(!(\"u\">typeof e)||!t.length||t.every(e))}function iV(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function iW(t){return typeof t>\"u\"}function iX(t,e){return!!(e&&iW(t))||\"string\"==typeof t&&!!t.trim().length}function iZ(t,e){return!!(e&&iW(t))||\"number\"==typeof t&&!isNaN(t)}function i$(t,e){let{requiredNamespaces:r}=e,i=Object.keys(t.namespaces),n=Object.keys(r),o=!0;return!!G(n,i)&&(i.forEach(e=>{let{accounts:i,methods:n,events:s}=t.namespaces[e],u=iq(i),f=r[e];G(R(e,f),u)&&G(f.methods,n)&&G(f.events,s)||(o=!1)}),o)}function i0(t){return!!(iX(t,!1)&&t.includes(\":\"))&&2===t.split(\":\").length}function i1(t){if(iX(t,!1))try{return\"u\">typeof new URL(t)}catch{}return!1}function i2(t){var e;return null==(e=t?.proposer)?void 0:e.publicKey}function i3(t){return t?.topic}function i6(t,e){let r=null;return iX(t?.publicKey,!1)||(r=iJ(\"MISSING_OR_INVALID\",`${e} controller public key should be a string`)),r}function i8(t){let e=!0;return iY(t)?t.length&&(e=t.every(t=>iX(t,!1))):e=!1,e}function i4(t,e){let r=null;return Object.values(t).forEach(t=>{var i;let n;if(r)return;let o=(i=`${e}, namespace`,n=null,i8(t?.methods)?i8(t?.events)||(n=iG(\"UNSUPPORTED_EVENTS\",`${i}, events should be an array of strings or empty array for no events`)):n=iG(\"UNSUPPORTED_METHODS\",`${i}, methods should be an array of strings or empty array for no methods`),n);o&&(r=o)}),r}function i5(t,e,r){let i=null;if(t&&iV(t)){let n;let o=i4(t,e);o&&(i=o);let s=(n=null,Object.entries(t).forEach(([t,i])=>{var o,s;let u;if(n)return;let f=(o=R(t,i),s=`${e} ${r}`,u=null,iY(o)&&o.length?o.forEach(t=>{u||i0(t)||(u=iG(\"UNSUPPORTED_CHAINS\",`${s}, chain ${t} should be a string and conform to \"namespace:chainId\" format`))}):i0(t)||(u=iG(\"UNSUPPORTED_CHAINS\",`${s}, chains must be defined as \"namespace:chainId\" e.g. \"eip155:1\": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: [\"eip155:1\", \"eip155:5\"] }`)),u);f&&(n=f)}),n);s&&(i=s)}else i=iJ(\"MISSING_OR_INVALID\",`${e}, ${r} should be an object with data`);return i}function i7(t,e){let r=null;if(t&&iV(t)){let i;let n=i4(t,e);n&&(r=n);let o=(i=null,Object.values(t).forEach(t=>{var r,n;let o;if(i)return;let s=(r=t?.accounts,n=`${e} namespace`,o=null,iY(r)?r.forEach(t=>{o||function(t){if(iX(t,!1)&&t.includes(\":\")){let e=t.split(\":\");if(3===e.length){let t=e[0]+\":\"+e[1];return!!e[2]&&i0(t)}}return!1}(t)||(o=iG(\"UNSUPPORTED_ACCOUNTS\",`${n}, account ${t} should be a string and conform to \"namespace:chainId:address\" format`))}):o=iG(\"UNSUPPORTED_ACCOUNTS\",`${n}, accounts should be an array of strings conforming to \"namespace:chainId:address\" format`),o);s&&(i=s)}),i);o&&(r=o)}else r=iJ(\"MISSING_OR_INVALID\",`${e}, namespaces should be an object with data`);return r}function i9(t){return iX(t.protocol,!0)}function nt(t,e){let r=!1;return e&&!t?r=!0:t&&iY(t)&&t.length&&t.forEach(t=>{r=i9(t)}),r}function ne(t){return\"number\"==typeof t}function nr(t){return\"u\">typeof t}function ni(t){return!(!t||\"object\"!=typeof t||!t.code||!iZ(t.code,!1)||!t.message||!iX(t.message,!1))}function nn(t){return!(iW(t)||!iX(t.method,!1))}function no(t){return!(iW(t)||iW(t.result)&&iW(t.error)||!iZ(t.id,!1)||!iX(t.jsonrpc,!1))}function ns(t){return!(iW(t)||!iX(t.name,!1))}function nu(t,e){return!(!i0(e)||!(function(t){let e=[];return Object.values(t).forEach(t=>{e.push(...iq(t.accounts))}),e})(t).includes(e))}function nf(t,e,r){return!!iX(r,!1)&&(function(t,e){let r=[];return Object.values(t).forEach(t=>{iq(t.accounts).includes(e)&&r.push(...t.methods)}),r})(t,e).includes(r)}function nh(t,e,r){return!!iX(r,!1)&&(function(t,e){let r=[];return Object.values(t).forEach(t=>{iq(t.accounts).includes(e)&&r.push(...t.events)}),r})(t,e).includes(r)}function na(t,e,r){let i=null,n=function(t){let e={};return Object.keys(t).forEach(r=>{var i;r.includes(\":\")?e[r]=t[r]:null==(i=t[r].chains)||i.forEach(i=>{e[i]={methods:t[r].methods,events:t[r].events}})}),e}(t),o=function(t){let e={};return Object.keys(t).forEach(r=>{if(r.includes(\":\"))e[r]=t[r];else{let i=iq(t[r].accounts);i?.forEach(i=>{e[i]={accounts:t[r].accounts.filter(t=>t.includes(`${i}:`)),methods:t[r].methods,events:t[r].events}})}}),e}(e),s=Object.keys(n),u=Object.keys(o),f=nl(Object.keys(t)),h=nl(Object.keys(e)),a=f.filter(t=>!h.includes(t));return a.length&&(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces keys don't satisfy requiredNamespaces.\n      Required: ${a.toString()}\n      Received: ${Object.keys(e).toString()}`)),G(s,u)||(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces chains don't satisfy required namespaces.\n      Required: ${s.toString()}\n      Approved: ${u.toString()}`)),Object.keys(e).forEach(t=>{if(!t.includes(\":\")||i)return;let n=iq(e[t].accounts);n.includes(t)||(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces accounts don't satisfy namespace accounts for ${t}\n        Required: ${t}\n        Approved: ${n.toString()}`))}),s.forEach(t=>{i||(G(n[t].methods,o[t].methods)?G(n[t].events,o[t].events)||(i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces events don't satisfy namespace events for ${t}`)):i=iJ(\"NON_CONFORMING_NAMESPACES\",`${r} namespaces methods don't satisfy namespace methods for ${t}`))}),i}function nl(t){return[...new Set(t.map(t=>t.includes(\":\")?t.split(\":\")[0]:t))]}function nc(t,e){return iZ(t,!1)&&t<=e.max&&t>=e.min}function nd(){let t=H();return new Promise(e=>{switch(t){case L.browser:e(j()&&navigator?.onLine);break;case L.reactNative:e(np());break;case L.node:default:e(!0)}})}async function np(){if(z()&&\"u\">typeof r.g&&null!=r.g&&r.g.NetInfo){let t=await (null==r.g?void 0:r.g.NetInfo.fetch());return t?.isConnected}return!0}function nm(t){switch(H()){case L.browser:!z()&&j()&&(window.addEventListener(\"online\",()=>t(!0)),window.addEventListener(\"offline\",()=>t(!1)));break;case L.reactNative:z()&&\"u\">typeof r.g&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener(e=>t(e?.isConnected));case L.node:}}let ng={};class nv{static get(t){return ng[t]}static set(t,e){ng[t]=e}static delete(t){delete ng[t]}}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/5e22fd23-a888f1085fc13e55.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[452],{69824:function(t,c,n){n.d(c,{Vmf:function(){return a}});var u=n(91810);function a(t){return(0,u.w_)({tag:\"svg\",attr:{viewBox:\"0 0 512 512\"},child:[{tag:\"path\",attr:{d:\"M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/795d4814-3c1aeb3c4a7db891.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51],{16356:function(t,h,a){a.d(h,{Dk$:function(){return v},FH3:function(){return l}});var n=a(91810);function l(t){return(0,n.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"path\",attr:{fill:\"none\",d:\"M0 0h24v24H0z\"},child:[]},{tag:\"path\",attr:{fill:\"none\",d:\"M0 0h24v24H0V0z\"},child:[]},{tag:\"path\",attr:{d:\"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z\"},child:[]}]})(t)}function v(t){return(0,n.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"path\",attr:{fill:\"none\",d:\"M0 0h24v24H0z\"},child:[]},{tag:\"path\",attr:{d:\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 7h7v2H7V7zm3 8H7v-2h3v2zm-3-3v-2h7v2H7zm12 3h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z\"},child:[]}]})(t)}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/866.ab29f905adb91a5f.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[866],{80866:function(e,t,r){let i;r.r(t),r.d(t,{WcmModal:function(){return ih},WcmQrCode:function(){return rw}});/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let o=window,l=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,a=Symbol(),n=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==a)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(l&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=n.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&n.set(t,e))}return e}toString(){return this.cssText}}let c=e=>new s(\"string\"==typeof e?e:e+\"\",void 0,a),d=(e,...t)=>new s(1===e.length?e[0]:t.reduce((t,r,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(\"number\"==typeof e)return e;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+e+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(r)+e[i+1],e[0]),e,a),h=(e,t)=>{l?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{let r=document.createElement(\"style\"),i=o.litNonce;void 0!==i&&r.setAttribute(\"nonce\",i),r.textContent=t.cssText,e.appendChild(r)})},m=l?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=\"\";for(let r of e.cssRules)t+=r.cssText;return c(t)})(e):e,p=window,u=p.trustedTypes,w=u?u.emptyScript:\"\",g=p.reactiveElementPolyfillSupport,v={toAttribute(e,t){switch(t){case Boolean:e=e?w:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},f=(e,t)=>t!==e&&(t==t||e==e),b={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:f},y=\"finalized\";class x extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,r)=>{let i=this._$Ep(r,t);void 0!==i&&(this._$Ev.set(i,r),e.push(i))}),e}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let r=\"symbol\"==typeof e?Symbol():\"__\"+e,i=this.getPropertyDescriptor(e,r,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(i){let o=this[e];this[t]=i,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||b}static finalize(){if(this.hasOwnProperty(y))return!1;this[y]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty(\"properties\")){let e=this.properties;for(let t of[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)])this.createProperty(t,e[t])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(m(r));else void 0!==e&&t.push(m(e));return t}static _$Ep(e,t){let r=t.attribute;return!1===r?void 0:\"string\"==typeof r?r:\"string\"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=b){var i;let o=this.constructor._$Ep(e,r);if(void 0!==o&&!0===r.reflect){let l=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:v).toAttribute(t,r.type);this._$El=e,null==l?this.removeAttribute(o):this.setAttribute(o,l),this._$El=null}}_$AK(e,t){var r;let i=this.constructor,o=i._$Ev.get(e);if(void 0!==o&&this._$El!==o){let e=i.getPropertyOptions(o),l=\"function\"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:v;this._$El=o,this[o]=l.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let i=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||f)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}x[y]=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:\"open\"},null==g||g({ReactiveElement:x}),(null!==(ef=p.reactiveElementVersions)&&void 0!==ef?ef:p.reactiveElementVersions=[]).push(\"1.6.3\");let $=window,C=$.trustedTypes,A=C?C.createPolicy(\"lit-html\",{createHTML:e=>e}):void 0,_=\"$lit$\",O=`lit$${(Math.random()+\"\").slice(9)}$`,E=\"?\"+O,k=`<${E}>`,I=document,T=()=>I.createComment(\"\"),P=e=>null===e||\"object\"!=typeof e&&\"function\"!=typeof e,M=Array.isArray,S=e=>M(e)||\"function\"==typeof(null==e?void 0:e[Symbol.iterator]),R=\"[ \t\\n\\f\\r]\",L=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,W=/-->/g,j=/>/g,D=RegExp(`>|${R}(?:([^\\\\s\"'>=/]+)(${R}*=${R}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),N=/'/g,U=/\"/g,z=/^(?:script|style|textarea|title)$/i,H=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Z=H(1),B=H(2),V=Symbol.for(\"lit-noChange\"),q=Symbol.for(\"lit-nothing\"),F=new WeakMap,K=I.createTreeWalker(I,129,null,!1);function Q(e,t){if(!Array.isArray(e)||!e.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==A?A.createHTML(t):t}let Y=(e,t)=>{let r=e.length-1,i=[],o,l=2===t?\"<svg>\":\"\",a=L;for(let t=0;t<r;t++){let r=e[t],n,s,c=-1,d=0;for(;d<r.length&&(a.lastIndex=d,null!==(s=a.exec(r)));)d=a.lastIndex,a===L?\"!--\"===s[1]?a=W:void 0!==s[1]?a=j:void 0!==s[2]?(z.test(s[2])&&(o=RegExp(\"</\"+s[2],\"g\")),a=D):void 0!==s[3]&&(a=D):a===D?\">\"===s[0]?(a=null!=o?o:L,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?D:'\"'===s[3]?U:N):a===U||a===N?a=D:a===W||a===j?a=L:(a=D,o=void 0);let h=a===D&&e[t+1].startsWith(\"/>\")?\" \":\"\";l+=a===L?r+k:c>=0?(i.push(n),r.slice(0,c)+_+r.slice(c)+O+h):r+O+(-2===c?(i.push(void 0),t):h)}return[Q(e,l+(e[r]||\"<?>\")+(2===t?\"</svg>\":\"\")),i]};class G{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,l=0,a=e.length-1,n=this.parts,[s,c]=Y(e,t);if(this.el=G.createElement(s,r),K.currentNode=this.el.content,2===t){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=K.nextNode())&&n.length<a;){if(1===i.nodeType){if(i.hasAttributes()){let e=[];for(let t of i.getAttributeNames())if(t.endsWith(_)||t.startsWith(O)){let r=c[l++];if(e.push(t),void 0!==r){let e=i.getAttribute(r.toLowerCase()+_).split(O),t=/([.?@])?(.*)/.exec(r);n.push({type:1,index:o,name:t[2],strings:e,ctor:\".\"===t[1]?er:\"?\"===t[1]?eo:\"@\"===t[1]?el:et})}else n.push({type:6,index:o})}for(let t of e)i.removeAttribute(t)}if(z.test(i.tagName)){let e=i.textContent.split(O),t=e.length-1;if(t>0){i.textContent=C?C.emptyScript:\"\";for(let r=0;r<t;r++)i.append(e[r],T()),K.nextNode(),n.push({type:2,index:++o});i.append(e[t],T())}}}else if(8===i.nodeType){if(i.data===E)n.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(O,e+1));)n.push({type:7,index:o}),e+=O.length-1}}o++}}static createElement(e,t){let r=I.createElement(\"template\");return r.innerHTML=e,r}}function X(e,t,r=e,i){var o,l,a;if(t===V)return t;let n=void 0!==i?null===(o=r._$Co)||void 0===o?void 0:o[i]:r._$Cl,s=P(t)?void 0:t._$litDirective$;return(null==n?void 0:n.constructor)!==s&&(null===(l=null==n?void 0:n._$AO)||void 0===l||l.call(n,!1),void 0===s?n=void 0:(n=new s(e))._$AT(e,r,i),void 0!==i?(null!==(a=r._$Co)&&void 0!==a?a:r._$Co=[])[i]=n:r._$Cl=n),void 0!==n&&(t=X(e,n._$AS(e,t.values),n,i)),t}class J{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:r},parts:i}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:I).importNode(r,!0);K.currentNode=o;let l=K.nextNode(),a=0,n=0,s=i[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new ee(l,l.nextSibling,this,e):1===s.type?t=new s.ctor(l,s.name,s.strings,this,e):6===s.type&&(t=new ea(l,this,e)),this._$AV.push(t),s=i[++n]}a!==(null==s?void 0:s.index)&&(l=K.nextNode(),a++)}return K.currentNode=I,o}v(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ee{constructor(e,t,r,i){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cp=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){P(e=X(this,e,t))?e===q||null==e||\"\"===e?(this._$AH!==q&&this._$AR(),this._$AH=q):e!==this._$AH&&e!==V&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):S(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==q&&P(this._$AH)?this._$AA.nextSibling.data=e:this.$(I.createTextNode(e)),this._$AH=e}g(e){var t;let{values:r,_$litType$:i}=e,o=\"number\"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=G.createElement(Q(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(r);else{let e=new J(o,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=F.get(e.strings);return void 0===t&&F.set(e.strings,t=new G(e)),t}T(e){M(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,i=0;for(let o of e)i===t.length?t.push(r=new ee(this.k(T()),this.k(T()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class et{constructor(e,t,r,i,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||\"\"!==r[0]||\"\"!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,i){let o=this.strings,l=!1;if(void 0===o)(l=!P(e=X(this,e,t,0))||e!==this._$AH&&e!==V)&&(this._$AH=e);else{let i,a;let n=e;for(e=o[0],i=0;i<o.length-1;i++)(a=X(this,n[r+i],t,i))===V&&(a=this._$AH[i]),l||(l=!P(a)||a!==this._$AH[i]),a===q?e=q:e!==q&&(e+=(null!=a?a:\"\")+o[i+1]),this._$AH[i]=a}l&&!i&&this.j(e)}j(e){e===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:\"\")}}class er extends et{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===q?void 0:e}}let ei=C?C.emptyScript:\"\";class eo extends et{constructor(){super(...arguments),this.type=4}j(e){e&&e!==q?this.element.setAttribute(this.name,ei):this.element.removeAttribute(this.name)}}class el extends et{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var r;if((e=null!==(r=X(this,e,t,0))&&void 0!==r?r:q)===V)return;let i=this._$AH,o=e===q&&i!==q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,l=e!==q&&(i===q||o);o&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;\"function\"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class ea{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){X(this,e)}}let en=$.litHtmlPolyfillSupport;null==en||en(G,ee),(null!==(eb=$.litHtmlVersions)&&void 0!==eb?eb:$.litHtmlVersions=[]).push(\"2.8.0\");let es=(e,t,r)=>{var i,o;let l=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:t,a=l._$litPart$;if(void 0===a){let e=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;l._$litPart$=a=new ee(t.insertBefore(T(),e),e,void 0,null!=r?r:{})}return a._$AI(e),a};class ec extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=es(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return V}}ec.finalized=!0,ec._$litElement$=!0,null===(ey=globalThis.litElementHydrateSupport)||void 0===ey||ey.call(globalThis,{LitElement:ec});let ed=globalThis.litElementPolyfillSupport;null==ed||ed({LitElement:ec}),(null!==(ex=globalThis.litElementVersions)&&void 0!==ex?ex:globalThis.litElementVersions=[]).push(\"3.3.3\");/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let eh=e=>t=>\"function\"==typeof t?(customElements.define(e,t),t):((e,t)=>{let{kind:r,elements:i}=t;return{kind:r,elements:i,finisher(t){customElements.define(e,t)}}})(e,t),em=(e,t)=>\"method\"!==t.kind||!t.descriptor||\"value\"in t.descriptor?{kind:\"field\",key:Symbol(),placement:\"own\",descriptor:{},originalKey:t.key,initializer(){\"function\"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}}:{...t,finisher(r){r.createProperty(t.key,e)}},ep=(e,t,r)=>{t.constructor.createProperty(r,e)};function eu(e){return(t,r)=>void 0!==r?ep(e,t,r):em(e,t)}/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function ew(e){return eu({...e,state:!0})}null!=(null===(e$=window.HTMLSlotElement)||void 0===e$?void 0:e$.prototype.assignedElements)||((e,t)=>e.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE));class eg{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let ev=(i=class extends eg{constructor(e){var t;if(super(e),1!==e.type||\"class\"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(e){return\" \"+Object.keys(e).filter(t=>e[t]).join(\" \")+\" \"}update(e,[t]){var r,i;if(void 0===this.it){for(let i in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(\" \").split(/\\s/).filter(e=>\"\"!==e))),t)!t[i]||(null===(r=this.nt)||void 0===r?void 0:r.has(i))||this.it.add(i);return this.render(t)}let o=e.element.classList;for(let e in this.it.forEach(e=>{e in t||(o.remove(e),this.it.delete(e))}),t){let r=!!t[e];r===this.it.has(e)||(null===(i=this.nt)||void 0===i?void 0:i.has(e))||(r?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return V}},(...e)=>({_$litDirective$:i,values:e}));var ef,eb,ey,ex,e$,eC=r(11481);let eA={duration:.3,delay:0,endDelay:0,repeat:0,easing:\"ease\"},e_={ms:e=>1e3*e,s:e=>e/1e3},eO=()=>{},eE=e=>e;function ek(e,t=!0){if(e&&\"finished\"!==e.playState)try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(e){}}let eI=e=>e(),eT=(e,t,r=eA.duration)=>new Proxy({animations:e.map(eI).filter(Boolean),duration:r,options:t},eM),eP=e=>e.animations[0],eM={get:(e,t)=>{let r=eP(e);switch(t){case\"duration\":return e.duration;case\"currentTime\":return e_.s((null==r?void 0:r[t])||0);case\"playbackRate\":case\"playState\":return null==r?void 0:r[t];case\"finished\":return e.finished||(e.finished=Promise.all(e.animations.map(eS)).catch(eO)),e.finished;case\"stop\":return()=>{e.animations.forEach(e=>ek(e))};case\"forEachNative\":return t=>{e.animations.forEach(r=>t(r,e))};default:return void 0===(null==r?void 0:r[t])?void 0:()=>e.animations.forEach(e=>e[t]())}},set:(e,t,r)=>{switch(t){case\"currentTime\":r=e_.ms(r);case\"playbackRate\":for(let i=0;i<e.animations.length;i++)e.animations[i][t]=r;return!0}return!1}},eS=e=>e.finished,eR=e=>\"object\"==typeof e&&!!e.createAnimation,eL=e=>\"number\"==typeof e,eW=e=>Array.isArray(e)&&!eL(e[0]),ej=(e,t,r)=>-r*e+r*t+e,eD=(e,t,r)=>t-e==0?1:(r-e)/(t-e);function eN(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let o=eD(0,t,i);e.push(ej(r,1,o))}}let eU=(e,t,r)=>{let i=t-e;return((r-e)%i+i)%i+e},ez=(e,t,r)=>Math.min(Math.max(r,e),t),eH=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eZ(e,t,r,i){if(e===t&&r===i)return eE;let o=t=>(function(e,t,r,i,o){let l,a;let n=0;do(l=eH(a=t+(r-t)/2,i,o)-e)>0?r=a:t=a;while(Math.abs(l)>1e-7&&++n<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:eH(o(e),t,i)}let eB=(e,t=\"end\")=>r=>{let i=(r=\"end\"===t?Math.min(r,.999):Math.max(r,.001))*e;return ez(0,1,(\"end\"===t?Math.floor(i):Math.ceil(i))/e)},eV=e=>\"function\"==typeof e,eq=e=>Array.isArray(e)&&eL(e[0]),eF={ease:eZ(.25,.1,.25,1),\"ease-in\":eZ(.42,0,1,1),\"ease-in-out\":eZ(.42,0,.58,1),\"ease-out\":eZ(0,0,.58,1)},eK=/\\((.*?)\\)/;function eQ(e){if(eV(e))return e;if(eq(e))return eZ(...e);let t=eF[e];if(t)return t;if(e.startsWith(\"steps\")){let t=eK.exec(e);if(t){let e=t[1].split(\",\");return eB(parseFloat(e[0]),e[1].trim())}}return eE}class eY{constructor(e,t=[0,1],{easing:r,duration:i=eA.duration,delay:o=eA.delay,endDelay:l=eA.endDelay,repeat:a=eA.repeat,offset:n,direction:s=\"normal\",autoplay:c=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=eE,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState=\"idle\",this.finished=new Promise((e,t)=>{this.resolve=e,this.reject=t}),eR(r=r||eA.easing)){let e=r.createAnimation(t);r=e.easing,t=e.keyframes||t,i=e.duration||i}this.repeat=a,this.easing=eW(r)?eE:eQ(r),this.updateDuration(i);let d=function(e,t=function(e){let t=[0];return eN(t,e-1),t}(e.length),r=eE){let i=e.length,o=i-t.length;return o>0&&eN(t,o),o=>{var l;let a=0;for(;a<i-2&&!(o<t[a+1]);a++);let n=ez(0,1,eD(t[a],t[a+1],o));return n=(l=a,eW(r)?r[eU(0,r.length,l)]:r)(n),ej(e[a],e[a+1],n)}}(t,n,eW(r)?r.map(eQ):eE);this.tick=t=>{var r;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-o,0),\"finished\"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);let a=i/this.duration,n=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&n--;let h=n%2;(\"reverse\"===s||\"alternate\"===s&&h||\"alternate-reverse\"===s&&!h)&&(c=1-c);let m=i>=this.totalDuration?1:Math.min(c,1),p=d(this.easing(m));e(p),void 0===this.pauseTime&&(\"finished\"===this.playState||i>=this.totalDuration+l)?(this.playState=\"finished\",null===(r=this.resolve)||void 0===r||r.call(this,p)):\"idle\"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},c&&this.play()}play(){let e=performance.now();this.playState=\"running\",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState=\"paused\",this.pauseTime=this.t}finish(){this.playState=\"finished\",this.tick(0)}stop(){var e;this.playState=\"idle\",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}var eG=function(){};class eX{setAnimation(e){this.animation=e,null==e||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}let eJ=new WeakMap;function e0(e){return eJ.has(e)||eJ.set(e,{transforms:[],values:new Map}),eJ.get(e)}let e1=[\"\",\"X\",\"Y\",\"Z\"],e2={x:\"translateX\",y:\"translateY\",z:\"translateZ\"},e5={syntax:\"<angle>\",initialValue:\"0deg\",toDefaultUnit:e=>e+\"deg\"},e3={translate:{syntax:\"<length-percentage>\",initialValue:\"0px\",toDefaultUnit:e=>e+\"px\"},rotate:e5,scale:{syntax:\"<number>\",initialValue:1,toDefaultUnit:eE},skew:e5},e4=new Map,e7=e=>`--motion-${e}`,e6=[\"x\",\"y\",\"z\"];[\"translate\",\"scale\",\"rotate\",\"skew\"].forEach(e=>{e1.forEach(t=>{e6.push(e+t),e4.set(e7(e+t),e3[e])})});let e8=(e,t)=>e6.indexOf(e)-e6.indexOf(t),e9=new Set(e6),te=e=>e9.has(e),tt=(e,t)=>{var r;e2[t]&&(t=e2[t]);let{transforms:i}=e0(e);r=t,-1===i.indexOf(r)&&i.push(r),e.style.transform=tr(i)},tr=e=>e.sort(e8).reduce(ti,\"\").trim(),ti=(e,t)=>`${e} ${t}(var(${e7(t)}))`,to=e=>e.startsWith(\"--\"),tl=new Set,ta=(e,t)=>document.createElement(\"div\").animate(e,t),tn={cssRegisterProperty:()=>\"undefined\"!=typeof CSS&&Object.hasOwnProperty.call(CSS,\"registerProperty\"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"),partialKeyframes:()=>{try{ta({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!ta({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{ta({opacity:0},{easing:\"linear(0, 1)\"})}catch(e){return!1}return!0}},ts={},tc={};for(let e in tn)tc[e]=()=>(void 0===ts[e]&&(ts[e]=tn[e]()),ts[e]);let td=(e,t)=>{let r=\"\",i=Math.round(t/.015);for(let t=0;t<i;t++)r+=e(eD(0,i-1,t))+\", \";return r.substring(0,r.length-2)},th=(e,t)=>eV(e)?tc.linearEasing()?`linear(${td(e,t)})`:eA.easing:eq(e)?tm(e):e,tm=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,tp=e=>Array.isArray(e)?e:[e];function tu(e){return e2[e]&&(e=e2[e]),te(e)?e7(e):e}let tw={get:(e,t)=>{let r=to(t=tu(t))?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&0!==r){let e=e4.get(t);e&&(r=e.initialValue)}return r},set:(e,t,r)=>{to(t=tu(t))?e.style.setProperty(t,r):e.style[t]=r}},tg=e=>\"string\"==typeof e,tv=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e),tf=function(e,t,r={}){var i,o,l;\"string\"==typeof(i=e)?i=document.querySelectorAll(i):i instanceof Element&&(i=[i]);let a=(e=Array.from(i||[])).length;eG(!!a,\"No valid element provided.\"),eG(!!t,\"No keyframes defined.\");let n=[];for(let i=0;i<a;i++){let s=e[i];for(let e in t){let c=tv(r,e);c.delay=(o=c.delay,l=i,eV(o)?o(l,a):o);let d=function(e,t,r,i={},o){var l;let a;let n=window.__MOTION_DEV_TOOLS_RECORD,s=!1!==i.record&&n,{duration:c=eA.duration,delay:d=eA.delay,endDelay:h=eA.endDelay,repeat:m=eA.repeat,easing:p=eA.easing,persist:u=!1,direction:w,offset:g,allowWebkitAcceleration:v=!1,autoplay:f=!0}=i,b=e0(e),y=te(t),x=tc.waapi();y&&tt(e,t);let $=tu(t),C=((l=b.values).has($)||l.set($,new eX),l.get($)),A=e4.get($);return ek(C.animation,!(eR(p)&&C.generator)&&!1!==i.record),()=>{let l=()=>{var t,r;return null!==(r=null!==(t=tw.get(e,$))&&void 0!==t?t:null==A?void 0:A.initialValue)&&void 0!==r?r:0},b=function(e,t){for(let r=0;r<e.length;r++)null===e[r]&&(e[r]=r?e[r-1]:t());return e}(tp(r),l),_=function(e,t){var r;let i=(null==t?void 0:t.toDefaultUnit)||eE,o=e[e.length-1];if(tg(o)){let e=(null===(r=o.match(/(-?[\\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||\"\";e&&(i=t=>t+e)}return i}(b,A);if(eR(p)){let e=p.createAnimation(b,\"opacity\"!==t,l,$,C);p=e.easing,b=e.keyframes||b,c=e.duration||c}if(to($)&&(tc.cssRegisterProperty()?function(e){if(!tl.has(e)){tl.add(e);try{let{syntax:t,initialValue:r}=e4.has(e)?e4.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch(e){}}}($):x=!1),y&&!tc.linearEasing()&&(eV(p)||eW(p)&&p.some(eV))&&(x=!1),x){A&&(b=b.map(e=>eL(e)?A.toDefaultUnit(e):e)),1===b.length&&(!tc.partialKeyframes()||s)&&b.unshift(l());let t={delay:e_.ms(d),duration:e_.ms(c),endDelay:e_.ms(h),easing:eW(p)?void 0:th(p,c),direction:w,iterations:m+1,fill:\"both\"};(a=e.animate({[$]:b,offset:g,easing:eW(p)?p.map(e=>th(e,c)):void 0},t)).finished||(a.finished=new Promise((e,t)=>{a.onfinish=e,a.oncancel=t}));let r=b[b.length-1];a.finished.then(()=>{u||(tw.set(e,$,r),a.cancel())}).catch(eO),v||(a.playbackRate=1.000001)}else if(o&&y)1===(b=b.map(e=>\"string\"==typeof e?parseFloat(e):e)).length&&b.unshift(parseFloat(l())),a=new o(t=>{tw.set(e,$,_?_(t):t)},b,Object.assign(Object.assign({},i),{duration:c,easing:p}));else{let t=b[b.length-1];tw.set(e,$,A&&eL(t)?A.toDefaultUnit(t):t)}return s&&n(e,t,b,{duration:c,delay:d,easing:p,repeat:m,offset:g},\"motion-one\"),C.setAnimation(a),a&&!f&&a.pause(),a}}(s,e,t[e],c,eY);n.push(d)}}return eT(n,r,r.duration)};function tb(e,t,r){return(eV(e)?function(e,t={}){return eT([()=>{let r=new eY(e,[0,1],t);return r.finished.catch(()=>{}),r}],t,t.duration)}:tf)(e,t,r)}/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */let ty=e=>null!=e?e:q;var tx=r(19783),t$=Object.defineProperty,tC=Object.getOwnPropertySymbols,tA=Object.prototype.hasOwnProperty,t_=Object.prototype.propertyIsEnumerable,tO=(e,t,r)=>t in e?t$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tE=(e,t)=>{for(var r in t||(t={}))tA.call(t,r)&&tO(e,r,t[r]);if(tC)for(var r of tC(t))t_.call(t,r)&&tO(e,r,t[r]);return e};function tk(){return{\"--wcm-accent-color\":\"#3396FF\",\"--wcm-accent-fill-color\":\"#FFFFFF\",\"--wcm-z-index\":\"89\",\"--wcm-background-color\":\"#3396FF\",\"--wcm-background-border-radius\":\"8px\",\"--wcm-container-border-radius\":\"30px\",\"--wcm-wallet-icon-border-radius\":\"15px\",\"--wcm-wallet-icon-large-border-radius\":\"30px\",\"--wcm-wallet-icon-small-border-radius\":\"7px\",\"--wcm-input-border-radius\":\"28px\",\"--wcm-button-border-radius\":\"10px\",\"--wcm-notification-border-radius\":\"36px\",\"--wcm-secondary-button-border-radius\":\"28px\",\"--wcm-icon-button-border-radius\":\"50%\",\"--wcm-button-hover-highlight-border-radius\":\"10px\",\"--wcm-text-big-bold-size\":\"20px\",\"--wcm-text-big-bold-weight\":\"600\",\"--wcm-text-big-bold-line-height\":\"24px\",\"--wcm-text-big-bold-letter-spacing\":\"-0.03em\",\"--wcm-text-big-bold-text-transform\":\"none\",\"--wcm-text-xsmall-bold-size\":\"10px\",\"--wcm-text-xsmall-bold-weight\":\"700\",\"--wcm-text-xsmall-bold-line-height\":\"12px\",\"--wcm-text-xsmall-bold-letter-spacing\":\"0.02em\",\"--wcm-text-xsmall-bold-text-transform\":\"uppercase\",\"--wcm-text-xsmall-regular-size\":\"12px\",\"--wcm-text-xsmall-regular-weight\":\"600\",\"--wcm-text-xsmall-regular-line-height\":\"14px\",\"--wcm-text-xsmall-regular-letter-spacing\":\"-0.03em\",\"--wcm-text-xsmall-regular-text-transform\":\"none\",\"--wcm-text-small-thin-size\":\"14px\",\"--wcm-text-small-thin-weight\":\"500\",\"--wcm-text-small-thin-line-height\":\"16px\",\"--wcm-text-small-thin-letter-spacing\":\"-0.03em\",\"--wcm-text-small-thin-text-transform\":\"none\",\"--wcm-text-small-regular-size\":\"14px\",\"--wcm-text-small-regular-weight\":\"600\",\"--wcm-text-small-regular-line-height\":\"16px\",\"--wcm-text-small-regular-letter-spacing\":\"-0.03em\",\"--wcm-text-small-regular-text-transform\":\"none\",\"--wcm-text-medium-regular-size\":\"16px\",\"--wcm-text-medium-regular-weight\":\"600\",\"--wcm-text-medium-regular-line-height\":\"20px\",\"--wcm-text-medium-regular-letter-spacing\":\"-0.03em\",\"--wcm-text-medium-regular-text-transform\":\"none\",\"--wcm-font-family\":\"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif\",\"--wcm-font-feature-settings\":\"'tnum' on, 'lnum' on, 'case' on\",\"--wcm-success-color\":\"rgb(38,181,98)\",\"--wcm-error-color\":\"rgb(242, 90, 103)\",\"--wcm-overlay-background-color\":\"rgba(0, 0, 0, 0.3)\",\"--wcm-overlay-backdrop-filter\":\"none\"}}let tI={getPreset:e=>tk()[e],setTheme(){let e=document.querySelector(\":root\"),{themeVariables:t}=eC.ThemeCtrl.state;e&&Object.entries(tE(tE(tE({},function(){var e;let t={light:{foreground:{1:\"rgb(20,20,20)\",2:\"rgb(121,134,134)\",3:\"rgb(158,169,169)\"},background:{1:\"rgb(255,255,255)\",2:\"rgb(241,243,243)\",3:\"rgb(228,231,231)\"},overlay:\"rgba(0,0,0,0.1)\"},dark:{foreground:{1:\"rgb(228,231,231)\",2:\"rgb(148,158,158)\",3:\"rgb(110,119,119)\"},background:{1:\"rgb(20,20,20)\",2:\"rgb(39,42,42)\",3:\"rgb(59,64,64)\"},overlay:\"rgba(255,255,255,0.1)\"}}[null!=(e=eC.ThemeCtrl.state.themeMode)?e:\"dark\"];return{\"--wcm-color-fg-1\":t.foreground[1],\"--wcm-color-fg-2\":t.foreground[2],\"--wcm-color-fg-3\":t.foreground[3],\"--wcm-color-bg-1\":t.background[1],\"--wcm-color-bg-2\":t.background[2],\"--wcm-color-bg-3\":t.background[3],\"--wcm-color-overlay\":t.overlay}}()),tk()),t)).forEach(([t,r])=>e.style.setProperty(t,r))},globalCss:d`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},tT=d`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var tP=Object.defineProperty,tM=Object.getOwnPropertyDescriptor,tS=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?tM(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tP(t,r,l),l};let tR=class extends ec{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant=\"default\"}render(){let e={\"wcm-icon-left\":void 0!==this.iconLeft,\"wcm-icon-right\":void 0!==this.iconRight,\"wcm-ghost\":\"ghost\"===this.variant,\"wcm-outline\":\"outline\"===this.variant},t=\"inverse\";return\"ghost\"===this.variant&&(t=\"secondary\"),\"outline\"===this.variant&&(t=\"accent\"),Z`<button class=\"${ev(e)}\" ?disabled=\"${this.disabled}\" @click=\"${this.onClick}\">${this.iconLeft}<wcm-text variant=\"small-regular\" color=\"${t}\"><slot></slot></wcm-text>${this.iconRight}</button>`}};tR.styles=[tI.globalCss,tT],tS([eu({type:Boolean})],tR.prototype,\"disabled\",2),tS([eu()],tR.prototype,\"iconLeft\",2),tS([eu()],tR.prototype,\"iconRight\",2),tS([eu()],tR.prototype,\"onClick\",2),tS([eu()],tR.prototype,\"variant\",2),tR=tS([eh(\"wcm-button\")],tR);let tL=d`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var tW=Object.defineProperty,tj=Object.getOwnPropertyDescriptor,tD=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?tj(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tW(t,r,l),l};let tN=class extends ec{constructor(){super(...arguments),this.disabled=!1,this.variant=\"primary\"}render(){let e={\"wcm-secondary\":\"secondary\"===this.variant};return Z`<button ?disabled=\"${this.disabled}\" class=\"${ev(e)}\"><slot></slot></button>`}};tN.styles=[tI.globalCss,tL],tD([eu({type:Boolean})],tN.prototype,\"disabled\",2),tD([eu()],tN.prototype,\"variant\",2),tN=tD([eh(\"wcm-button-big\")],tN);let tU=d`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var tz=Object.defineProperty,tH=Object.getOwnPropertyDescriptor;let tZ=class extends ec{render(){return Z`<div><slot></slot></div>`}};tZ.styles=[tI.globalCss,tU],tZ=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tH(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tz(t,r,l),l})([eh(\"wcm-info-footer\")],tZ);let tB={CROSS_ICON:B`<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><path d=\"M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z\" fill=\"#fff\"/></svg>`,WALLET_CONNECT_LOGO:B`<svg width=\"178\" height=\"29\" viewBox=\"0 0 178 29\" id=\"wcm-wc-logo\"><path d=\"M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z\" fill=\"#fff\"/></svg>`,WALLET_CONNECT_ICON:B`<svg width=\"28\" height=\"20\" viewBox=\"0 0 28 20\"><g clip-path=\"url(#a)\"><path d=\"M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z\" fill=\"#000000\"/></g><defs><clipPath id=\"a\"><path fill=\"#ffffff\" d=\"M0 0h28v20H0z\"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:B`<svg width=\"96\" height=\"96\" fill=\"none\"><path fill=\"#fff\" d=\"M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z\"/><path stroke=\"#000\" d=\"M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z\"/></svg>`,BACK_ICON:B`<svg width=\"10\" height=\"18\" viewBox=\"0 0 10 18\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z\" fill=\"#fff\"/></svg>`,COPY_ICON:B`<svg width=\"24\" height=\"24\" fill=\"none\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z\" clip-rule=\"evenodd\"/></svg>`,RETRY_ICON:B`<svg width=\"15\" height=\"16\" viewBox=\"0 0 15 16\"><path d=\"M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z\" fill=\"#fff\"/></svg>`,DESKTOP_ICON:B`<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z\" fill=\"#fff\"/><path d=\"M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z\" fill=\"#fff\"/></svg>`,MOBILE_ICON:B`<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z\" fill=\"#fff\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z\" fill=\"#fff\"/></svg>`,ARROW_DOWN_ICON:B`<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><path d=\"M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z\" fill=\"#fff\"/></svg>`,ARROW_UP_RIGHT_ICON:B`<svg width=\"15\" height=\"14\" fill=\"none\"><path d=\"M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z\" fill=\"#fff\"/></svg>`,ARROW_RIGHT_ICON:B`<svg width=\"6\" height=\"14\" viewBox=\"0 0 6 14\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z\" fill=\"#fff\"/></svg>`,QRCODE_ICON:B`<svg width=\"25\" height=\"24\" viewBox=\"0 0 25 24\"><path d=\"M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z\" fill=\"#fff\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z\" fill=\"#fff\"/><path d=\"M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z\" fill=\"#fff\"/></svg>`,SCAN_ICON:B`<svg width=\"16\" height=\"16\" fill=\"none\"><path fill=\"#fff\" d=\"M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z\"/></svg>`,CHECKMARK_ICON:B`<svg width=\"13\" height=\"12\" viewBox=\"0 0 13 12\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z\" fill=\"#fff\"/></svg>`,SEARCH_ICON:B`<svg width=\"20\" height=\"21\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z\" fill=\"#949E9E\"/></svg>`,WALLET_PLACEHOLDER:B`<svg width=\"60\" height=\"60\" fill=\"none\" viewBox=\"0 0 60 60\"><g clip-path=\"url(#q)\"><path id=\"wallet-placeholder-fill\" fill=\"#fff\" d=\"M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z\"/><path id=\"wallet-placeholder-dash\" stroke=\"#000\" stroke-dasharray=\"4 4\" stroke-width=\"1.5\" d=\"M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z\"/><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z\" clip-rule=\"evenodd\"/><path fill=\"#9EA9A9\" fill-rule=\"evenodd\" d=\"M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z\" clip-rule=\"evenodd\"/></g><defs><clipPath id=\"q\"><path fill=\"#fff\" d=\"M0 0h60v60H0z\"/></clipPath></defs></svg>`,GLOBE_ICON:B`<svg width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z\" clip-rule=\"evenodd\"/></svg>`},tV=d`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var tq=Object.defineProperty,tF=Object.getOwnPropertyDescriptor;let tK=class extends ec{render(){return Z`<div class=\"wcm-toolbar-placeholder\"></div><div class=\"wcm-toolbar\">${tB.WALLET_CONNECT_LOGO} <button @click=\"${eC.jb.close}\">${tB.CROSS_ICON}</button></div>`}};tK.styles=[tI.globalCss,tV],tK=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tF(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tq(t,r,l),l})([eh(\"wcm-modal-backcard\")],tK);let tQ=d`main{padding:20px;padding-top:0;width:100%}`;var tY=Object.defineProperty,tG=Object.getOwnPropertyDescriptor;let tX=class extends ec{render(){return Z`<main><slot></slot></main>`}};tX.styles=[tI.globalCss,tQ],tX=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tG(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tY(t,r,l),l})([eh(\"wcm-modal-content\")],tX);let tJ=d`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var t0=Object.defineProperty,t1=Object.getOwnPropertyDescriptor;let t2=class extends ec{render(){return Z`<footer><slot></slot></footer>`}};t2.styles=[tI.globalCss,tJ],t2=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?t1(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&t0(t,r,l),l})([eh(\"wcm-modal-footer\")],t2);let t5=d`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var t3=Object.defineProperty,t4=Object.getOwnPropertyDescriptor,t7=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?t4(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&t3(t,r,l),l};let t6=class extends ec{constructor(){super(...arguments),this.title=\"\",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return Z`<button class=\"wcm-back-btn\" @click=\"${eC.AV.goBack}\">${tB.BACK_ICON}</button>`}actionBtnTemplate(){return Z`<button class=\"wcm-action-btn\" @click=\"${this.onAction}\">${this.actionIcon}</button>`}render(){let e={\"wcm-border\":this.border},t=eC.AV.state.history.length>1,r=this.title?Z`<wcm-text variant=\"big-bold\">${this.title}</wcm-text>`:Z`<slot></slot>`;return Z`<header class=\"${ev(e)}\">${t?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}</header>`}};t6.styles=[tI.globalCss,t5],t7([eu()],t6.prototype,\"title\",2),t7([eu()],t6.prototype,\"onAction\",2),t7([eu()],t6.prototype,\"actionIcon\",2),t7([eu({type:Boolean})],t6.prototype,\"border\",2),t6=t7([eh(\"wcm-modal-header\")],t6);let t8={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:\"WCM_RECENT_WALLET_DATA\",EXPLORER_WALLET_URL:\"https://explorer.walletconnect.com/?type=wallet\",getShadowRootElement(e,t){let r=e.renderRoot.querySelector(t);if(!r)throw Error(`${t} not found`);return r},getWalletIcon({id:e,image_id:t}){let{walletImages:r}=eC.ConfigCtrl.state;return null!=r&&r[e]?r[e]:t?eC.ExplorerCtrl.getWalletImageUrl(t):\"\"},getWalletName:(e,t=!1)=>t&&e.length>8?`${e.substring(0,8)}..`:e,isMobileAnimation:()=>window.innerWidth<=t8.MOBILE_BREAKPOINT,preloadImage:async e=>Promise.race([new Promise((t,r)=>{let i=new Image;i.onload=t,i.onerror=r,i.crossOrigin=\"anonymous\",i.src=e}),eC.zv.wait(3e3)]),getErrorMessage:e=>e instanceof Error?e.message:\"Unknown Error\",debounce(e,t=500){let r;return(...i)=>{r&&clearTimeout(r),r=setTimeout(function(){e(...i)},t)}},handleMobileLinking(e){let t;let{walletConnectUri:r}=eC.OptionsCtrl.state,{mobile:i,name:o}=e,l=i?.native,a=i?.universal;t8.setRecentWallet(e),r&&(t=\"\",l?t=eC.zv.formatUniversalUrl(l,r,o):a&&(t=eC.zv.formatNativeUrl(a,r,o)),eC.zv.openHref(t,\"_self\"))},handleAndroidLinking(){let{walletConnectUri:e}=eC.OptionsCtrl.state;e&&(eC.zv.setWalletConnectAndroidDeepLink(e),eC.zv.openHref(e,\"_self\"))},async handleUriCopy(){let{walletConnectUri:e}=eC.OptionsCtrl.state;if(e)try{await navigator.clipboard.writeText(e),eC.ToastCtrl.openToast(\"Link copied\",\"success\")}catch{eC.ToastCtrl.openToast(\"Failed to copy\",\"error\")}},getCustomImageUrls(){let{walletImages:e}=eC.ConfigCtrl.state;return Object.values(Object.values(e??{}))},truncate:(e,t=8)=>e.length<=t?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`,setRecentWallet(e){try{localStorage.setItem(t8.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info(\"Unable to set recent wallet\")}},getRecentWallet(){try{let e=localStorage.getItem(t8.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info(\"Unable to get recent wallet\")}},caseSafeIncludes:(e,t)=>e.toUpperCase().includes(t.toUpperCase()),openWalletExplorerUrl(){eC.zv.openHref(t8.EXPLORER_WALLET_URL,\"_blank\")},getCachedRouterWalletPlatforms(){let{desktop:e,mobile:t}=eC.zv.getWalletRouterData(),r=!!e?.native,i=!!e?.universal;return{isDesktop:r,isMobile:!!t?.native||!!t?.universal,isWeb:i}},goToConnectingView(e){eC.AV.setData({Wallet:e});let t=eC.zv.isMobile(),{isDesktop:r,isWeb:i,isMobile:o}=t8.getCachedRouterWalletPlatforms();t?o?eC.AV.push(\"MobileConnecting\"):i?eC.AV.push(\"WebConnecting\"):eC.AV.push(\"InstallWallet\"):r?eC.AV.push(\"DesktopConnecting\"):i?eC.AV.push(\"WebConnecting\"):o?eC.AV.push(\"MobileQrcodeConnecting\"):eC.AV.push(\"InstallWallet\")}},t9=d`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var re=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,rr=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rt(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&re(t,r,l),l};let ri=class extends ec{constructor(){super(),this.view=eC.AV.state.view,this.prevView=eC.AV.state.view,this.unsubscribe=void 0,this.oldHeight=\"0px\",this.resizeObserver=void 0,this.unsubscribe=eC.AV.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e.contentRect.height}px`;\"0px\"!==this.oldHeight&&tb(this.routerEl,{height:[this.oldHeight,t]},{duration:.2}),this.oldHeight=t}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,t;null==(e=this.unsubscribe)||e.call(this),null==(t=this.resizeObserver)||t.disconnect()}get routerEl(){return t8.getShadowRootElement(this,\".wcm-router\")}get contentEl(){return t8.getShadowRootElement(this,\".wcm-content\")}viewTemplate(){switch(this.view){case\"ConnectWallet\":return Z`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case\"DesktopConnecting\":return Z`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case\"MobileConnecting\":return Z`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case\"WebConnecting\":return Z`<wcm-web-connecting-view></wcm-web-connecting-view>`;case\"MobileQrcodeConnecting\":return Z`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case\"WalletExplorer\":return Z`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case\"Qrcode\":return Z`<wcm-qrcode-view></wcm-qrcode-view>`;case\"InstallWallet\":return Z`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return Z`<div>Not Found</div>`}}async onChangeRoute(){await tb(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=eC.AV.state.view,tb(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return Z`<div class=\"wcm-router\"><div class=\"wcm-content\">${this.viewTemplate()}</div></div>`}};ri.styles=[tI.globalCss,t9],rr([ew()],ri.prototype,\"view\",2),rr([ew()],ri.prototype,\"prevView\",2),ri=rr([eh(\"wcm-modal-router\")],ri);let ro=d`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var rl=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,rn=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?ra(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rl(t,r,l),l};let rs=class extends ec{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=eC.ToastCtrl.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>eC.ToastCtrl.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;null==(e=this.unsubscribe)||e.call(this),clearTimeout(this.timeout),eC.ToastCtrl.closeToast()}render(){let{message:e,variant:t}=eC.ToastCtrl.state;return this.open?Z`<div class=\"${ev({\"wcm-success\":\"success\"===t,\"wcm-error\":\"error\"===t})}\">${\"success\"===t?tB.CHECKMARK_ICON:null} ${\"error\"===t?tB.CROSS_ICON:null}<wcm-text variant=\"small-regular\">${e}</wcm-text></div>`:null}};function rc(e,t,r){return e!==t&&(e-t<0?t-e:e-t)<=r+.1}rs.styles=[tI.globalCss,ro],rn([ew()],rs.prototype,\"open\",2),rs=rn([eh(\"wcm-modal-toast\")],rs);let rd={generate(e,t,r){let i=\"#141414\",o=[],l=function(e,t){let r=Array.prototype.slice.call(tx.create(e,{errorCorrectionLevel:\"Q\"}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((e,t,r)=>(r%i==0?e.push([t]):e[e.length-1].push(t))&&e,[])}(e,0),a=t/l.length,n=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];n.forEach(({x:e,y:t})=>{let r=(l.length-7)*a*e,s=(l.length-7)*a*t;for(let e=0;e<n.length;e+=1){let t=a*(7-2*e);o.push(B`<rect fill=\"${e%2==0?i:\"#ffffff\"}\" height=\"${t}\" rx=\"${.45*t}\" ry=\"${.45*t}\" width=\"${t}\" x=\"${r+a*e}\" y=\"${s+a*e}\">`)}});let s=Math.floor((r+25)/a),c=l.length/2-s/2,d=l.length/2+s/2-1,h=[];l.forEach((e,t)=>{e.forEach((e,r)=>{!l[t][r]||t<7&&r<7||t>l.length-8&&r<7||t<7&&r>l.length-8||t>c&&t<d&&r>c&&r<d||h.push([t*a+a/2,r*a+a/2])})});let m={};return h.forEach(([e,t])=>{m[e]?m[e].push(t):m[e]=[t]}),Object.entries(m).map(([e,t])=>{let r=t.filter(e=>t.every(t=>!rc(e,t,a)));return[Number(e),r]}).forEach(([e,t])=>{t.forEach(t=>{o.push(B`<circle cx=\"${e}\" cy=\"${t}\" fill=\"${i}\" r=\"${a/2.5}\">`)})}),Object.entries(m).filter(([e,t])=>t.length>1).map(([e,t])=>{let r=t.filter(e=>t.some(t=>rc(e,t,a)));return[Number(e),r]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let r=[];for(let e of t){let t=r.find(t=>t.some(t=>rc(e,t,a)));t?t.push(e):r.push([e])}return[e,r.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,r])=>{o.push(B`<line x1=\"${e}\" x2=\"${e}\" y1=\"${t}\" y2=\"${r}\" stroke=\"${i}\" stroke-width=\"${a/1.25}\" stroke-linecap=\"round\">`)})}),o}},rh=d`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var rm=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,ru=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rp(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rm(t,r,l),l};let rw=class extends ec{constructor(){super(...arguments),this.uri=\"\",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){let e=\"light\"===eC.ThemeCtrl.state.themeMode?this.size:this.size-36;return B`<svg height=\"${e}\" width=\"${e}\">${rd.generate(this.uri,e,e/4)}</svg>`}render(){let e={\"wcm-dark\":\"dark\"===eC.ThemeCtrl.state.themeMode};return Z`<div style=\"${`width: ${this.size}px`}\" class=\"${ev(e)}\">${this.walletId||this.imageUrl?Z`<wcm-wallet-image walletId=\"${ty(this.walletId)}\" imageId=\"${ty(this.imageId)}\" imageUrl=\"${ty(this.imageUrl)}\"></wcm-wallet-image>`:tB.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};rw.styles=[tI.globalCss,rh],ru([eu()],rw.prototype,\"uri\",2),ru([eu({type:Number})],rw.prototype,\"size\",2),ru([eu()],rw.prototype,\"imageId\",2),ru([eu()],rw.prototype,\"walletId\",2),ru([eu()],rw.prototype,\"imageUrl\",2),rw=ru([eh(\"wcm-qrcode\")],rw);let rg=d`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var rv=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,rb=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rf(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rv(t,r,l),l};let ry=class extends ec{constructor(){super(...arguments),this.onChange=()=>null}render(){return Z`<input type=\"text\" @input=\"${this.onChange}\" placeholder=\"Search wallets\"> ${tB.SEARCH_ICON}`}};ry.styles=[tI.globalCss,rg],rb([eu()],ry.prototype,\"onChange\",2),ry=rb([eh(\"wcm-search-input\")],ry);let rx=d`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var r$=Object.defineProperty,rC=Object.getOwnPropertyDescriptor;let rA=class extends ec{render(){return Z`<svg viewBox=\"0 0 50 50\" width=\"24\" height=\"24\"><circle cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\" stroke=\"#fff\"/></svg>`}};rA.styles=[tI.globalCss,rx],rA=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?rC(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&r$(t,r,l),l})([eh(\"wcm-spinner\")],rA);let r_=d`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var rO=Object.defineProperty,rE=Object.getOwnPropertyDescriptor,rk=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rE(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rO(t,r,l),l};let rI=class extends ec{constructor(){super(...arguments),this.variant=\"medium-regular\",this.color=\"primary\"}render(){let e={\"wcm-big-bold\":\"big-bold\"===this.variant,\"wcm-medium-regular\":\"medium-regular\"===this.variant,\"wcm-small-regular\":\"small-regular\"===this.variant,\"wcm-small-thin\":\"small-thin\"===this.variant,\"wcm-xsmall-regular\":\"xsmall-regular\"===this.variant,\"wcm-xsmall-bold\":\"xsmall-bold\"===this.variant,\"wcm-color-primary\":\"primary\"===this.color,\"wcm-color-secondary\":\"secondary\"===this.color,\"wcm-color-tertiary\":\"tertiary\"===this.color,\"wcm-color-inverse\":\"inverse\"===this.color,\"wcm-color-accnt\":\"accent\"===this.color,\"wcm-color-error\":\"error\"===this.color};return Z`<span><slot class=\"${ev(e)}\"></slot></span>`}};rI.styles=[tI.globalCss,r_],rk([eu()],rI.prototype,\"variant\",2),rk([eu()],rI.prototype,\"color\",2),rI=rk([eh(\"wcm-text\")],rI);let rT=d`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var rP=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,rS=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rM(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rP(t,r,l),l};let rR=class extends ec{constructor(){super(...arguments),this.onClick=()=>null,this.name=\"\",this.walletId=\"\",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?Z`<wcm-text class=\"wcm-sublabel\" variant=\"xsmall-bold\" color=\"tertiary\">RECENT</wcm-text>`:this.installed?Z`<wcm-text class=\"wcm-sublabel\" variant=\"xsmall-bold\" color=\"tertiary\">INSTALLED</wcm-text>`:null}handleClick(){eC.uA.click({name:\"WALLET_BUTTON\",walletId:this.walletId}),this.onClick()}render(){var e;return Z`<button @click=\"${this.handleClick.bind(this)}\"><div><wcm-wallet-image walletId=\"${this.walletId}\" imageId=\"${ty(this.imageId)}\"></wcm-wallet-image><wcm-text variant=\"xsmall-regular\">${null!=(e=this.label)?e:t8.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};rR.styles=[tI.globalCss,rT],rS([eu()],rR.prototype,\"onClick\",2),rS([eu()],rR.prototype,\"name\",2),rS([eu()],rR.prototype,\"walletId\",2),rS([eu()],rR.prototype,\"label\",2),rS([eu()],rR.prototype,\"imageId\",2),rS([eu({type:Boolean})],rR.prototype,\"installed\",2),rS([eu({type:Boolean})],rR.prototype,\"recent\",2),rR=rS([eh(\"wcm-wallet-button\")],rR);let rL=d`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var rW=Object.defineProperty,rj=Object.getOwnPropertyDescriptor,rD=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rj(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rW(t,r,l),l};let rN=class extends ec{constructor(){super(...arguments),this.walletId=\"\",this.imageId=void 0,this.imageUrl=void 0}render(){var e;let t=null!=(e=this.imageUrl)&&e.length?this.imageUrl:t8.getWalletIcon({id:this.walletId,image_id:this.imageId});return Z`${t.length?Z`<div><img crossorigin=\"anonymous\" src=\"${t}\" alt=\"${this.id}\"></div>`:tB.WALLET_PLACEHOLDER}`}};rN.styles=[tI.globalCss,rL],rD([eu()],rN.prototype,\"walletId\",2),rD([eu()],rN.prototype,\"imageId\",2),rD([eu()],rN.prototype,\"imageUrl\",2),rN=rD([eh(\"wcm-wallet-image\")],rN);var rU=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,rH=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rz(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rU(t,r,l),l};let rZ=class extends ec{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map(async e=>t8.preloadImage(e)))}catch{console.info(\"Unsuccessful attempt at preloading some images\",e)}}async preloadListings(){if(eC.ConfigCtrl.state.enableExplorer){await eC.ExplorerCtrl.getRecomendedWallets(),eC.OptionsCtrl.setIsDataLoaded(!0);let{recomendedWallets:e}=eC.ExplorerCtrl.state,t=e.map(e=>t8.getWalletIcon(e));await this.loadImages(t)}else eC.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){let e=t8.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),eC.ToastCtrl.openToast(\"Failed preloading\",\"error\")}}};rH([ew()],rZ.prototype,\"preload\",2),rZ=rH([eh(\"wcm-explorer-context\")],rZ);var rB=Object.defineProperty,rV=Object.getOwnPropertyDescriptor;let rq=class extends ec{constructor(){super(),this.unsubscribeTheme=void 0,tI.setTheme(),this.unsubscribeTheme=eC.ThemeCtrl.subscribe(tI.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};rq=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?rV(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rB(t,r,l),l})([eh(\"wcm-theme-context\")],rq);let rF=d`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var rK=Object.defineProperty,rQ=Object.getOwnPropertyDescriptor;let rY=class extends ec{onGoToQrcode(){eC.AV.push(\"Qrcode\")}render(){let{recomendedWallets:e}=eC.ExplorerCtrl.state,t=[...e,...e],r=2*eC.zv.RECOMMENDED_WALLET_AMOUNT;return Z`<wcm-modal-header title=\"Connect your wallet\" .onAction=\"${this.onGoToQrcode}\" .actionIcon=\"${tB.QRCODE_ICON}\"></wcm-modal-header><wcm-modal-content><div class=\"wcm-title\">${tB.MOBILE_ICON}<wcm-text variant=\"small-regular\" color=\"accent\">WalletConnect</wcm-text></div><div class=\"wcm-slider\"><div class=\"wcm-track\">${[...Array(r)].map((e,r)=>{let i=t[r%t.length];return i?Z`<wcm-wallet-image walletId=\"${i.id}\" imageId=\"${i.image_id}\"></wcm-wallet-image>`:tB.WALLET_PLACEHOLDER})}</div><wcm-button-big @click=\"${t8.handleAndroidLinking}\"><wcm-text variant=\"medium-regular\" color=\"inverse\">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};rY.styles=[tI.globalCss,rF],rY=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?rQ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rK(t,r,l),l})([eh(\"wcm-android-wallet-selection\")],rY);let rG=d`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var rX=Object.defineProperty,rJ=Object.getOwnPropertyDescriptor,r0=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?rJ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&rX(t,r,l),l};let r1=class extends ec{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=\"\"}svgLoaderTemplate(){var e,t;let r=null!=(t=null==(e=eC.ThemeCtrl.state.themeVariables)?void 0:e[\"--wcm-wallet-icon-large-border-radius\"])?t:tI.getPreset(\"--wcm-wallet-icon-large-border-radius\"),i=0,o=317-1.57*(i=(r.includes(\"%\")?.88*parseInt(r,10):parseInt(r,10))*1.17),l=425-1.8*i;return Z`<svg viewBox=\"0 0 110 110\" width=\"110\" height=\"110\"><rect id=\"wcm-loader\" x=\"2\" y=\"2\" width=\"106\" height=\"106\" rx=\"${i}\"/><use xlink:href=\"#wcm-loader\" stroke-dasharray=\"106 ${o}\" stroke-dashoffset=\"${l}\"></use></svg>`}render(){let e={\"wcm-error\":this.isError,\"wcm-stale\":this.isStale};return Z`<div class=\"${ev(e)}\">${this.svgLoaderTemplate()}<wcm-wallet-image walletId=\"${ty(this.walletId)}\" imageId=\"${ty(this.imageId)}\"></wcm-wallet-image></div><wcm-text variant=\"medium-regular\" color=\"${this.isError?\"error\":\"primary\"}\">${this.isError?\"Connection declined\":this.label}</wcm-text>`}};r1.styles=[tI.globalCss,rG],r0([eu()],r1.prototype,\"walletId\",2),r0([eu()],r1.prototype,\"imageId\",2),r0([eu({type:Boolean})],r1.prototype,\"isError\",2),r0([eu({type:Boolean})],r1.prototype,\"isStale\",2),r0([eu()],r1.prototype,\"label\",2),r1=r0([eh(\"wcm-connector-waiting\")],r1);let r2={manualWallets(){var e,t;let{mobileWallets:r,desktopWallets:i}=eC.ConfigCtrl.state,o=null==(e=r2.recentWallet())?void 0:e.id,l=eC.zv.isMobile()?r:i,a=l?.filter(e=>o!==e.id);return null!=(t=eC.zv.isMobile()?a?.map(({id:e,name:t,links:r})=>({id:e,name:t,mobile:r,links:r})):a?.map(({id:e,name:t,links:r})=>({id:e,name:t,desktop:r,links:r})))?t:[]},recentWallet:()=>t8.getRecentWallet(),recomendedWallets(e=!1){var t;let r=e||null==(t=r2.recentWallet())?void 0:t.id,{recomendedWallets:i}=eC.ExplorerCtrl.state;return i.filter(e=>r!==e.id)}},r5={onConnecting(e){t8.goToConnectingView(e)},manualWalletsTemplate(){return r2.manualWallets().map(e=>Z`<wcm-wallet-button walletId=\"${e.id}\" name=\"${e.name}\" .onClick=\"${()=>this.onConnecting(e)}\"></wcm-wallet-button>`)},recomendedWalletsTemplate(e=!1){return r2.recomendedWallets(e).map(e=>Z`<wcm-wallet-button name=\"${e.name}\" walletId=\"${e.id}\" imageId=\"${e.image_id}\" .onClick=\"${()=>this.onConnecting(e)}\"></wcm-wallet-button>`)},recentWalletTemplate(){let e=r2.recentWallet();if(e)return Z`<wcm-wallet-button name=\"${e.name}\" walletId=\"${e.id}\" imageId=\"${ty(e.image_id)}\" .recent=\"${!0}\" .onClick=\"${()=>this.onConnecting(e)}\"></wcm-wallet-button>`}},r3=d`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var r4=Object.defineProperty,r7=Object.getOwnPropertyDescriptor;let r6=class extends ec{render(){let{explorerExcludedWalletIds:e,enableExplorer:t}=eC.ConfigCtrl.state,r=r5.manualWalletsTemplate(),i=r5.recomendedWalletsTemplate(),o=[r5.recentWalletTemplate(),...r,...i],l=(o=o.filter(Boolean)).length>4||\"ALL\"!==e&&t,a=[],n=!!(a=l?o.slice(0,3):o).length;return Z`<wcm-modal-header .border=\"${!0}\" title=\"Connect your wallet\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><div class=\"wcm-mobile-title\"><div class=\"wcm-subtitle\">${tB.MOBILE_ICON}<wcm-text variant=\"small-regular\" color=\"accent\">Mobile</wcm-text></div><div class=\"wcm-subtitle\">${tB.SCAN_ICON}<wcm-text variant=\"small-regular\" color=\"secondary\">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${n?Z`<wcm-modal-footer><div class=\"wcm-desktop-title\">${tB.DESKTOP_ICON}<wcm-text variant=\"small-regular\" color=\"accent\">Desktop</wcm-text></div><div class=\"wcm-grid\">${a} ${l?Z`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};r6.styles=[tI.globalCss,r3],r6=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?r7(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&r4(t,r,l),l})([eh(\"wcm-desktop-wallet-selection\")],r6);let r8=d`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var r9=Object.defineProperty,ie=Object.getOwnPropertyDescriptor;let it=class extends ec{render(){let{termsOfServiceUrl:e,privacyPolicyUrl:t}=eC.ConfigCtrl.state;return e??t?Z`<div><wcm-text variant=\"small-regular\" color=\"secondary\">By connecting your wallet to this app, you agree to the app's ${e?Z`<a href=\"${e}\" target=\"_blank\" rel=\"noopener noreferrer\">Terms of Service</a>`:null} ${e&&t?\"and\":null} ${t?Z`<a href=\"${t}\" target=\"_blank\" rel=\"noopener noreferrer\">Privacy Policy</a>`:null}</wcm-text></div>`:null}};it.styles=[tI.globalCss,r8],it=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?ie(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&r9(t,r,l),l})([eh(\"wcm-legal-notice\")],it);let ir=d`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var ii=Object.defineProperty,io=Object.getOwnPropertyDescriptor;let il=class extends ec{onQrcode(){eC.AV.push(\"Qrcode\")}render(){let{explorerExcludedWalletIds:e,enableExplorer:t}=eC.ConfigCtrl.state,r=r5.manualWalletsTemplate(),i=r5.recomendedWalletsTemplate(),o=[r5.recentWalletTemplate(),...r,...i],l=(o=o.filter(Boolean)).length>8||\"ALL\"!==e&&t,a=[],n=!!(a=l?o.slice(0,7):o).length;return Z`<wcm-modal-header title=\"Connect your wallet\" .onAction=\"${this.onQrcode}\" .actionIcon=\"${tB.QRCODE_ICON}\"></wcm-modal-header>${n?Z`<wcm-modal-content><div>${a} ${l?Z`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};il.styles=[tI.globalCss,ir],il=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?io(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&ii(t,r,l),l})([eh(\"wcm-mobile-wallet-selection\")],il);let ia=d`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var is=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,id=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?ic(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&is(t,r,l),l};let ih=class extends ec{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=eC.jb.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return t8.getShadowRootElement(this,\".wcm-overlay\")}get containerEl(){return t8.getShadowRootElement(this,\".wcm-container\")}toggleBodyScroll(e){if(document.querySelector(\"body\")){if(e){let e=document.getElementById(\"wcm-styles\");e?.remove()}else document.head.insertAdjacentHTML(\"beforeend\",'<style id=\"wcm-styles\">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>')}}onCloseModal(e){e.target===e.currentTarget&&eC.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{let e=t8.isMobileAnimation()?{y:[\"50vh\",\"0vh\"]}:{scale:[.98,1]};await Promise.all([tb(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,tb(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();let e=t8.isMobileAnimation()?{y:[\"0vh\",\"50vh\"]}:{scale:[1,.98]};await Promise.all([tb(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,tb(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute(\"style\"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener(\"keydown\",e=>{var t;\"Escape\"===e.key?eC.jb.close():\"Tab\"===e.key&&(null!=(t=e.target)&&t.tagName.includes(\"wcm-\")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){let e={\"wcm-overlay\":!0,\"wcm-active\":this.active};return Z`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id=\"wcm-modal\" class=\"${ev(e)}\" @click=\"${this.onCloseModal}\" role=\"alertdialog\" aria-modal=\"true\"><div class=\"wcm-container\" tabindex=\"0\">${this.open?Z`<wcm-modal-backcard></wcm-modal-backcard><div class=\"wcm-card\"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};ih.styles=[tI.globalCss,ia],id([ew()],ih.prototype,\"open\",2),id([ew()],ih.prototype,\"active\",2),ih=id([eh(\"wcm-modal\")],ih);let im=d`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var ip=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,iw=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iu(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&ip(t,r,l),l};let ig=class extends ec{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){eC.zv.isMobile()?eC.AV.replace(\"MobileConnecting\"):eC.AV.replace(\"MobileQrcodeConnecting\")}onDesktop(){eC.AV.replace(\"DesktopConnecting\")}onWeb(){eC.AV.replace(\"WebConnecting\")}render(){return Z`<div>${this.isRetry?Z`<slot></slot>`:null} ${this.isMobile?Z`<wcm-button .onClick=\"${this.onMobile}\" .iconLeft=\"${tB.MOBILE_ICON}\" variant=\"outline\">Mobile</wcm-button>`:null} ${this.isDesktop?Z`<wcm-button .onClick=\"${this.onDesktop}\" .iconLeft=\"${tB.DESKTOP_ICON}\" variant=\"outline\">Desktop</wcm-button>`:null} ${this.isWeb?Z`<wcm-button .onClick=\"${this.onWeb}\" .iconLeft=\"${tB.GLOBE_ICON}\" variant=\"outline\">Web</wcm-button>`:null}</div>`}};ig.styles=[tI.globalCss,im],iw([eu({type:Boolean})],ig.prototype,\"isMobile\",2),iw([eu({type:Boolean})],ig.prototype,\"isDesktop\",2),iw([eu({type:Boolean})],ig.prototype,\"isWeb\",2),iw([eu({type:Boolean})],ig.prototype,\"isRetry\",2),ig=iw([eh(\"wcm-platform-selection\")],ig);let iv=d`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var ib=Object.defineProperty,iy=Object.getOwnPropertyDescriptor;let ix=class extends ec{onClick(){eC.AV.push(\"WalletExplorer\")}render(){let{recomendedWallets:e}=eC.ExplorerCtrl.state,t=[...e,...r2.manualWallets()].reverse().slice(0,4);return Z`<button @click=\"${this.onClick}\"><div class=\"wcm-icons\">${t.map(e=>{let t=t8.getWalletIcon(e);if(t)return Z`<img crossorigin=\"anonymous\" src=\"${t}\">`;let r=t8.getWalletIcon({id:e.id});return r?Z`<img crossorigin=\"anonymous\" src=\"${r}\">`:tB.WALLET_PLACEHOLDER})} ${[...Array(4-t.length)].map(()=>tB.WALLET_PLACEHOLDER)}</div><wcm-text variant=\"xsmall-regular\">View All</wcm-text></button>`}};ix.styles=[tI.globalCss,iv],ix=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?iy(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&ib(t,r,l),l})([eh(\"wcm-view-all-wallets-button\")],ix);let i$=d`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var iC=Object.defineProperty,iA=Object.getOwnPropertyDescriptor,i_=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iA(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iC(t,r,l),l};let iO=class extends ec{constructor(){super(),this.walletId=\"\",this.imageId=\"\",this.uri=\"\",setTimeout(()=>{let{walletConnectUri:e}=eC.OptionsCtrl.state;this.uri=e},0)}get overlayEl(){return t8.getShadowRootElement(this,\".wcm-qr-container\")}render(){return Z`<div class=\"wcm-qr-container\">${this.uri?Z`<wcm-qrcode size=\"${this.overlayEl.offsetWidth}\" uri=\"${this.uri}\" walletId=\"${ty(this.walletId)}\" imageId=\"${ty(this.imageId)}\"></wcm-qrcode>`:Z`<wcm-spinner></wcm-spinner>`}</div>`}};iO.styles=[tI.globalCss,i$],i_([eu()],iO.prototype,\"walletId\",2),i_([eu()],iO.prototype,\"imageId\",2),i_([ew()],iO.prototype,\"uri\",2),iO=i_([eh(\"wcm-walletconnect-qr\")],iO);var iE=Object.defineProperty,ik=Object.getOwnPropertyDescriptor;let iI=class extends ec{viewTemplate(){return eC.zv.isAndroid()?Z`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:eC.zv.isMobile()?Z`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:Z`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return Z`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};iI.styles=[tI.globalCss],iI=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?ik(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iE(t,r,l),l})([eh(\"wcm-connect-wallet-view\")],iI);let iT=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var iP=Object.defineProperty,iM=Object.getOwnPropertyDescriptor,iS=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iM(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iP(t,r,l),l};let iR=class extends ec{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){let{desktop:t,name:r}=eC.zv.getWalletRouterData(),i=t?.native;if(i){let t=eC.zv.formatNativeUrl(i,e,r);eC.zv.openHref(t,\"_self\")}}openDesktopApp(){let{walletConnectUri:e}=eC.OptionsCtrl.state,t=eC.zv.getWalletRouterData();t8.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:t,image_id:r}=eC.zv.getWalletRouterData(),{isMobile:i,isWeb:o}=t8.getCachedRouterWalletPlatforms();return Z`<wcm-modal-header title=\"${e}\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"${`Continue in ${e}...`}\" .isError=\"${this.isError}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`Connection can continue loading if ${e} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile=\"${i}\" .isWeb=\"${o}\" .isRetry=\"${!0}\"><wcm-button .onClick=\"${this.openDesktopApp.bind(this)}\" .iconRight=\"${tB.RETRY_ICON}\">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};iR.styles=[tI.globalCss,iT],iS([ew()],iR.prototype,\"isError\",2),iR=iS([eh(\"wcm-desktop-connecting-view\")],iR);let iL=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var iW=Object.defineProperty,ij=Object.getOwnPropertyDescriptor;let iD=class extends ec{onInstall(e){e&&eC.zv.openHref(e,\"_blank\")}render(){let{name:e,id:t,image_id:r,homepage:i}=eC.zv.getWalletRouterData();return Z`<wcm-modal-header title=\"${e}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"Not Detected\" .isStale=\"${!0}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}</wcm-text><wcm-button .onClick=\"${()=>this.onInstall(i)}\" .iconLeft=\"${tB.ARROW_DOWN_ICON}\">Download</wcm-button></wcm-info-footer>`}};iD.styles=[tI.globalCss,iL],iD=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?ij(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iW(t,r,l),l})([eh(\"wcm-install-wallet-view\")],iD);let iN=d`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var iU=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,iH=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iz(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iU(t,r,l),l};let iZ=class extends ec{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,t=!1){let{mobile:r,name:i}=eC.zv.getWalletRouterData(),o=r?.native,l=r?.universal;if(o&&!t){let t=eC.zv.formatNativeUrl(o,e,i);eC.zv.openHref(t,\"_self\")}else if(l){let t=eC.zv.formatUniversalUrl(l,e,i);eC.zv.openHref(t,\"_self\")}}openMobileApp(e=!1){let{walletConnectUri:t}=eC.OptionsCtrl.state,r=eC.zv.getWalletRouterData();t8.setRecentWallet(r),t&&this.onFormatAndRedirect(t,e)}onGoToAppStore(e){e&&eC.zv.openHref(e,\"_blank\")}render(){let{name:e,id:t,image_id:r,app:i,mobile:o}=eC.zv.getWalletRouterData(),{isWeb:l}=t8.getCachedRouterWalletPlatforms(),a=i?.ios,n=o?.universal;return Z`<wcm-modal-header title=\"${e}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"Tap 'Open' to continue…\" .isError=\"${this.isError}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class=\"wcm-note\"><wcm-platform-selection .isWeb=\"${l}\" .isRetry=\"${!0}\"><wcm-button .onClick=\"${()=>this.openMobileApp(!1)}\" .iconRight=\"${tB.RETRY_ICON}\">Retry</wcm-button></wcm-platform-selection>${n?Z`<wcm-text color=\"secondary\" variant=\"small-thin\">Still doesn't work? <span tabindex=\"0\" @click=\"${()=>this.openMobileApp(!0)}\">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class=\"wcm-app-store\"><div><wcm-wallet-image walletId=\"${t}\" imageId=\"${ty(r)}\"></wcm-wallet-image><wcm-text>${`Get ${e}`}</wcm-text></div><wcm-button .iconRight=\"${tB.ARROW_RIGHT_ICON}\" .onClick=\"${()=>this.onGoToAppStore(a)}\" variant=\"ghost\">App Store</wcm-button></wcm-info-footer>`}};iZ.styles=[tI.globalCss,iN],iH([ew()],iZ.prototype,\"isError\",2),iZ=iH([eh(\"wcm-mobile-connecting-view\")],iZ);let iB=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var iV=Object.defineProperty,iq=Object.getOwnPropertyDescriptor;let iF=class extends ec{render(){let{name:e,id:t,image_id:r}=eC.zv.getWalletRouterData(),{isDesktop:i,isWeb:o}=t8.getCachedRouterWalletPlatforms();return Z`<wcm-modal-header title=\"${e}\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId=\"${t}\" imageId=\"${ty(r)}\"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`Scan this QR Code with your phone's camera or inside ${e} app`}</wcm-text><wcm-platform-selection .isDesktop=\"${i}\" .isWeb=\"${o}\"></wcm-platform-selection></wcm-info-footer>`}};iF.styles=[tI.globalCss,iB],iF=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?iq(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iV(t,r,l),l})([eh(\"wcm-mobile-qr-connecting-view\")],iF);var iK=Object.defineProperty,iQ=Object.getOwnPropertyDescriptor;let iY=class extends ec{render(){return Z`<wcm-modal-header title=\"Scan the code\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};iY.styles=[tI.globalCss],iY=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?iQ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iK(t,r,l),l})([eh(\"wcm-qrcode-view\")],iY);let iG=d`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var iX=Object.defineProperty,iJ=Object.getOwnPropertyDescriptor,i0=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?iJ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&iX(t,r,l),l};let i1=class extends ec{constructor(){super(...arguments),this.loading=!eC.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!eC.ExplorerCtrl.state.wallets.listings.length,this.search=\"\",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=t8.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,eC.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search=\"\",this.endReached=this.isLastPage(),eC.ExplorerCtrl.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return t8.getShadowRootElement(this,\".wcm-placeholder-block\")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:e,search:t}=eC.ExplorerCtrl.state,{listings:r,total:i}=this.search?t:e;return i<=40||r.length>=i}async fetchWallets(){var e;let{wallets:t,search:r}=eC.ExplorerCtrl.state,{listings:i,total:o,page:l}=this.search?r:t;if(!this.endReached&&(this.firstFetch||o>40&&i.length<o))try{this.loading=!0;let t=null==(e=eC.OptionsCtrl.state.chains)?void 0:e.join(\",\"),{listings:r}=await eC.ExplorerCtrl.getWallets({page:this.firstFetch?1:l+1,entries:40,search:this.search,version:2,chains:t}),i=r.map(e=>t8.getWalletIcon(e));await Promise.all([...i.map(async e=>t8.preloadImage(e)),eC.zv.wait(300)]),this.endReached=this.isLastPage()}catch(e){console.error(e),eC.ToastCtrl.openToast(t8.getErrorMessage(e),\"error\")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){eC.zv.isAndroid()?t8.handleMobileLinking(e):t8.goToConnectingView(e)}onSearchChange(e){let{value:t}=e.target;this.searchDebounce(t)}render(){let{wallets:e,search:t}=eC.ExplorerCtrl.state,{listings:r}=this.search?t:e,i=this.loading&&!r.length,o=this.search.length>=3,l=r5.manualWalletsTemplate(),a=r5.recomendedWalletsTemplate(!0);o&&(l=l.filter(({values:e})=>t8.caseSafeIncludes(e[0],this.search)),a=a.filter(({values:e})=>t8.caseSafeIncludes(e[0],this.search)));let n=!this.loading&&!r.length&&!a.length,s={\"wcm-loading\":i,\"wcm-end-reached\":this.endReached||!this.loading,\"wcm-empty\":n};return Z`<wcm-modal-header><wcm-search-input .onChange=\"${this.onSearchChange.bind(this)}\"></wcm-search-input></wcm-modal-header><wcm-modal-content class=\"${ev(s)}\"><div class=\"wcm-grid\">${i?null:l} ${i?null:a} ${i?null:r.map(e=>Z`${e?Z`<wcm-wallet-button imageId=\"${e.image_id}\" name=\"${e.name}\" walletId=\"${e.id}\" .onClick=\"${()=>this.onConnect(e)}\"></wcm-wallet-button>`:null}`)}</div><div class=\"wcm-placeholder-block\">${n?Z`<wcm-text variant=\"big-bold\" color=\"secondary\">No results found</wcm-text>`:null} ${!n&&this.loading?Z`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};i1.styles=[tI.globalCss,iG],i0([ew()],i1.prototype,\"loading\",2),i0([ew()],i1.prototype,\"firstFetch\",2),i0([ew()],i1.prototype,\"search\",2),i0([ew()],i1.prototype,\"endReached\",2),i1=i0([eh(\"wcm-wallet-explorer-view\")],i1);let i2=d`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var i5=Object.defineProperty,i3=Object.getOwnPropertyDescriptor,i4=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?i3(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&i5(t,r,l),l};let i7=class extends ec{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){let{desktop:t,name:r}=eC.zv.getWalletRouterData(),i=t?.universal;if(i){let t=eC.zv.formatUniversalUrl(i,e,r);eC.zv.openHref(t,\"_blank\")}}openWebWallet(){let{walletConnectUri:e}=eC.OptionsCtrl.state,t=eC.zv.getWalletRouterData();t8.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:t,image_id:r}=eC.zv.getWalletRouterData(),{isMobile:i,isDesktop:o}=t8.getCachedRouterWalletPlatforms(),l=eC.zv.isMobile();return Z`<wcm-modal-header title=\"${e}\" .onAction=\"${t8.handleUriCopy}\" .actionIcon=\"${tB.COPY_ICON}\"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId=\"${t}\" imageId=\"${ty(r)}\" label=\"${`Continue in ${e}...`}\" .isError=\"${this.isError}\"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color=\"secondary\" variant=\"small-thin\">${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile=\"${i}\" .isDesktop=\"${!l&&o}\" .isRetry=\"${!0}\"><wcm-button .onClick=\"${this.openWebWallet.bind(this)}\" .iconRight=\"${tB.RETRY_ICON}\">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};i7.styles=[tI.globalCss,i2],i4([ew()],i7.prototype,\"isError\",2),i7=i4([eh(\"wcm-web-connecting-view\")],i7)}}]);"
  },
  {
    "path": "docs/_next/static/chunks/app/_not-found/page-55d3376e1599fe3a.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{67589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/_not-found/page\",function(){return n(35457)}])},35457:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return s}}),n(99920);let i=n(57437);n(2265);let o={fontFamily:'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',height:\"100vh\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\"},l={display:\"inline-block\"},r={display:\"inline-block\",margin:\"0 20px 0 0\",padding:\"0 23px 0 0\",fontSize:24,fontWeight:500,verticalAlign:\"top\",lineHeight:\"49px\"},d={fontSize:14,fontWeight:400,lineHeight:\"49px\",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(\"title\",{children:\"404: This page could not be found.\"}),(0,i.jsx)(\"div\",{style:o,children:(0,i.jsxs)(\"div\",{children:[(0,i.jsx)(\"style\",{dangerouslySetInnerHTML:{__html:\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}),(0,i.jsx)(\"h1\",{className:\"next-error-h1\",style:r,children:\"404\"}),(0,i.jsx)(\"div\",{style:l,children:(0,i.jsx)(\"h2\",{style:d,children:\"This page could not be found.\"})})]})})]})}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,23,744],function(){return e(e.s=67589)}),_N_E=e.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/app/layout-696be0f0413601fb.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{35883:function(){},46601:function(){},52361:function(){},94616:function(){},81592:function(e,t,n){Promise.resolve().then(n.t.bind(n,75326,23)),Promise.resolve().then(n.bind(n,27776)),Promise.resolve().then(n.t.bind(n,53054,23)),Promise.resolve().then(n.bind(n,29635)),Promise.resolve().then(n.bind(n,61559)),Promise.resolve().then(n.bind(n,90037))},29635:function(e,t,n){\"use strict\";n.d(t,{default:function(){return l}});var r=n(57437),o=n(76437);n(27776);let i={id:80002,network:\"Polygon Amoy Testnet\",name:\"Amoy\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ankr.com/polygon_amoy\"]},public:{http:[\"https://rpc.ankr.com/polygon_amoy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://amoy.polygonscan.com/\"}}},a={appId:\"clz007cw406bz3iq8dwolge41\",config:{logo:\"https://your.logo.url\",loginMethods:[\"wallet\"],appearance:{walletList:[\"metamask\",\"detected_wallets\",\"rainbow\"],theme:\"dark\"},defaultChain:i,supportedChains:[i],embeddedWallets:{createOnLogin:\"users-without-wallets\"}}};var l=e=>{let{children:t}=e;return(0,r.jsx)(o.rr,{...a,children:t})}},99782:function(e,t,n){\"use strict\";n.d(t,{SK:function(){return l}});let r=(0,n(66862).oM)({name:\"musicPlayer\",initialState:{uri:\"/audio/chin-tapak-dum-dum.mp3\",isPlaying:!0,index:0,coverImage:\"\",title:\"\",artist:\"\"},reducers:{setUri:(e,t)=>{e.uri=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIndex:(e,t)=>{e.index=t.payload},setMusicPlayer:(e,t)=>({...e,...t.payload})}}),{setUri:o,setIsPlaying:i,setIndex:a,setMusicPlayer:l}=r.actions;t.ZP=r.reducer},61559:function(e,t,n){\"use strict\";n.d(t,{default:function(){return s}});var r=n(57437),o=n(11444),i=n(66862),a=n(99782);let l=(0,i.xC)({reducer:{musicPlayer:a.ZP}});function s(e){let{children:t}=e;return(0,r.jsx)(o.zt,{store:l,children:t})}},90037:function(e,t,n){\"use strict\";n.d(t,{ThemeProvider:function(){return i}});var r=n(57437);n(2265);var o=n(79512);function i(e){let{children:t,...n}=e;return(0,r.jsx)(o.f,{...n,children:t})}},53054:function(){},75326:function(e){e.exports={style:{fontFamily:\"'__Inter_d65c78', '__Inter_Fallback_d65c78'\",fontStyle:\"normal\"},className:\"__className_d65c78\"}}},function(e){e.O(0,[370,269,764,202,971,23,744],function(){return e(e.s=81592)}),_N_E=e.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/app/page-bbd1448002907ff3.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{35883:function(){},46601:function(){},24654:function(){},52361:function(){},94616:function(){},84285:function(e,t,a){Promise.resolve().then(a.bind(a,94484))},94484:function(e,t,a){\"use strict\";a.r(t),a.d(t,{default:function(){return ta}});var n=a(57437),i=a(98094),s=a(24841),r=a(75027),l=a(63872),o=a(2265);let d=()=>\"https://picsum.photos/200/300?random=\".concat(Math.floor(1e3*Math.random()));d(),d(),d(),d(),d();let c=[{name:\"Relaxation Sounds\",description:\"Soothing sounds to help you relax and unwind.\",creator:\"John Doe\",image:d(),tracks:[{title:\"Peaceful Ambience\",artist:\"Ownsound\",soundUri:\"/audio/sample-9s.mp3\",cover:d()},{title:\"Rainy Day Meditation\",artist:\"Ownsound\",soundUri:\"/audio/sample-1s.mp3\",cover:d()},{title:\"Forest Soundscape\",artist:\"Ownsound\",soundUri:\"/audio/sample-9s.mp3\",cover:d()},{title:\"Ocean Waves\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-4s.mp3\",cover:d()}]},{name:\"Nature Sounds\",description:\"Immerse yourself in the sounds of nature.\",creator:\"Jane Smith\",image:d(),tracks:[{title:\"Mountain Stream\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-7s.mp3\",cover:d()},{title:\"Birdsong\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-5s.mp3\",cover:d()},{title:\"Night Crickets\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-2s.mp3\",cover:d()},{title:\"Morning Dew\",artist:\"Nature Tunes\",soundUri:\"/audio/sample-3s.mp3\",cover:d()}]},{name:\"Instrumental Calm\",description:\"Relaxing instrumental tracks to help you focus.\",creator:\"Alex Johnson\",image:d(),tracks:[{title:\"Calm Piano\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-8s.mp3\",cover:d()},{title:\"Evening Serenity\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-6s.mp3\",cover:d()},{title:\"Gentle Guitar\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-10s.mp3\",cover:d()},{title:\"Soft Strings\",artist:\"Relaxation Music\",soundUri:\"/audio/sample-11s.mp3\",cover:d()}]}];function p(e){let{url:t}=e,a=(0,o.useRef)(null),[d,c]=(0,o.useState)(!1),[p,u]=(0,o.useState)(0),[m,y]=(0,o.useState)(0);(0,o.useEffect)(()=>{if(t){let e=a.current;u(0),c(!1),a.current.play(),c(!0);let t=()=>{y(e.duration)},n=()=>{u(e.currentTime)},i=()=>{c(!1),u(0)};return e&&(e.addEventListener(\"loadedmetadata\",t),e.addEventListener(\"timeupdate\",n),e.addEventListener(\"ended\",i)),()=>{e&&(e.removeEventListener(\"loadedmetadata\",t),e.removeEventListener(\"timeupdate\",n),e.removeEventListener(\"ended\",i))}}},[t]);let x=e=>{if(isNaN(e))return\"00:00\";let t=Math.floor(e%60);return\"\".concat(Math.floor(e/60),\":\").concat(t<10?\"0\"+t:t)};return console.log(t),(0,n.jsxs)(\"div\",{className:\"px-4 py-2 w-full flex items-center justify-between gap-3\",children:[(0,n.jsx)(\"audio\",{ref:a,src:t},t),(0,n.jsx)(\"div\",{className:\"controls flex items-center gap-2\",children:(0,n.jsx)(\"button\",{onClick:()=>{let e=a.current;d?e.pause():e.play(),c(!d)},className:\"bg-primary text-white rounded-full p-1.5 flex items-center justify-center\",children:d?(0,n.jsx)(s.Z,{className:\"w-3 h-3\"}):(0,n.jsx)(i.Z,{className:\"w-3 h-3\"})})}),(0,n.jsxs)(\"div\",{className:\"flex-1 flex items-center gap-2\",children:[(0,n.jsx)(\"span\",{className:\"text-sm\",children:x(p)}),(0,n.jsx)(\"input\",{type:\"range\",min:\"0\",max:\"100\",value:p/m*100||0,onChange:e=>{let t=a.current,n=e.target.value/100*m;t.currentTime=n},className:\"flex-1 range accent-primary\"}),(0,n.jsx)(\"span\",{className:\"text-sm\",children:x(m)})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-2\",children:[(0,n.jsx)(l.d1A,{className:\"cursor-pointer\"}),(0,n.jsx)(r.U6L,{className:\"cursor-pointer\"}),(0,n.jsx)(r.t00,{className:\"cursor-pointer\"}),(0,n.jsx)(l.P$5,{className:\"cursor-pointer\"})]})]})}var u=a(3274),m=e=>{let{noWidth:t=!1}=e;return t?(0,n.jsx)(u.Z,{className:\"animate-spin text-primary\"}):(0,n.jsx)(u.Z,{className:\"animate-spin text-primary w-40\"})},y=a(71322),x=a(41505),h=a(44839),f=a(96164);function g(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,f.m6)((0,h.W)(t))}let v=e=>{let{className:t,...a}=e;return(0,n.jsx)(x.eh,{className:g(\"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\",t),...a})},b=x.s_,w=e=>{let{withHandle:t,className:a,...i}=e;return(0,n.jsx)(x.OT,{className:g(\"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90\",a),...i,children:t&&(0,n.jsx)(\"div\",{className:\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\",children:(0,n.jsx)(y.Z,{className:\"h-2.5 w-2.5\"})})})};var j=a(76437),N=a(89896);function T(e,t,a){if(e.length<=t+a)return e;let n=e.slice(0,t),i=e.slice(-a);return\"\".concat(n,\".........\").concat(i)}var k=a(21246),E=a(87592),S=a(22468),P=a(28165);let C=k.fC,R=k.xz;k.ZA,k.Uv,k.Tr,k.Ee,o.forwardRef((e,t)=>{let{className:a,inset:i,children:s,...r}=e;return(0,n.jsxs)(k.fF,{ref:t,className:g(\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",i&&\"pl-8\",a),...r,children:[s,(0,n.jsx)(E.Z,{className:\"ml-auto h-4 w-4\"})]})}).displayName=k.fF.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(k.tu,{ref:t,className:g(\"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",a),...i})}).displayName=k.tu.displayName;let M=o.forwardRef((e,t)=>{let{className:a,sideOffset:i=4,...s}=e;return(0,n.jsx)(k.Uv,{children:(0,n.jsx)(k.VY,{ref:t,sideOffset:i,className:g(\"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",a),...s})})});M.displayName=k.VY.displayName;let F=o.forwardRef((e,t)=>{let{className:a,inset:i,...s}=e;return(0,n.jsx)(k.ck,{ref:t,className:g(\"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",i&&\"pl-8\",a),...s})});F.displayName=k.ck.displayName,o.forwardRef((e,t)=>{let{className:a,children:i,checked:s,...r}=e;return(0,n.jsxs)(k.oC,{ref:t,className:g(\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",a),checked:s,...r,children:[(0,n.jsx)(\"span\",{className:\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\",children:(0,n.jsx)(k.wU,{children:(0,n.jsx)(S.Z,{className:\"h-4 w-4\"})})}),i]})}).displayName=k.oC.displayName,o.forwardRef((e,t)=>{let{className:a,children:i,...s}=e;return(0,n.jsxs)(k.Rk,{ref:t,className:g(\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",a),...s,children:[(0,n.jsx)(\"span\",{className:\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\",children:(0,n.jsx)(k.wU,{children:(0,n.jsx)(P.Z,{className:\"h-2 w-2 fill-current\"})})}),i]})}).displayName=k.Rk.displayName,o.forwardRef((e,t)=>{let{className:a,inset:i,...s}=e;return(0,n.jsx)(k.__,{ref:t,className:g(\"px-2 py-1.5 text-sm font-semibold\",i&&\"pl-8\",a),...s})}).displayName=k.__.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(k.Z0,{ref:t,className:g(\"-mx-1 my-1 h-px bg-muted\",a),...i})}).displayName=k.Z0.displayName;var I=a(66648),A=a(71538),D=a(12218);let B=(0,D.j)(\"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",{variants:{variant:{default:\"bg-primary text-primary-foreground hover:bg-primary/90\",destructive:\"bg-destructive text-destructive-foreground hover:bg-destructive/90\",outline:\"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",secondary:\"bg-secondary text-secondary-foreground hover:bg-secondary/80\",ghost:\"hover:bg-accent hover:text-accent-foreground\",link:\"text-primary underline-offset-4 hover:underline\"},size:{default:\"h-10 px-4 py-2\",sm:\"h-9 rounded-md px-3\",lg:\"h-11 rounded-md px-8\",icon:\"h-10 w-10\"}},defaultVariants:{variant:\"default\",size:\"default\"}}),L=o.forwardRef((e,t)=>{let{className:a,variant:i,size:s,asChild:r=!1,...l}=e,o=r?A.g7:\"button\";return(0,n.jsx)(o,{className:g(B({variant:i,size:s,className:a})),ref:t,...l})});L.displayName=\"Button\";var Z=a(38296),O=a(92699),z=a(79512);function U(){let{setTheme:e}=(0,z.F)();return(0,n.jsxs)(C,{children:[(0,n.jsx)(R,{asChild:!0,children:(0,n.jsxs)(L,{variant:\"outline\",size:\"icon\",children:[(0,n.jsx)(Z.Z,{className:\"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0\"}),(0,n.jsx)(O.Z,{className:\"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100\"}),(0,n.jsx)(\"span\",{className:\"sr-only\",children:\"Toggle theme\"})]})}),(0,n.jsxs)(M,{align:\"end\",children:[(0,n.jsx)(F,{onClick:()=>e(\"light\"),children:\"Light\"}),(0,n.jsx)(F,{onClick:()=>e(\"dark\"),children:\"Dark\"}),(0,n.jsx)(F,{onClick:()=>e(\"system\"),children:\"System\"})]})]})}var H=e=>{let{w0:t}=e,{login:a,authenticated:i,logout:s}=(0,j.sv)();return(0,n.jsx)(\"div\",{className:\"p-6\",children:i?(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3\",children:[(0,n.jsxs)(C,{className:\"w-full\",children:[(0,n.jsx)(R,{className:\"w-full bg-primary rounded-md\",children:(0,n.jsxs)(\"div\",{className:\"py-2 flex items-center justify-between px-4 w-full\",children:[(0,n.jsx)(\"div\",{children:(0,n.jsx)(I.default,{src:\"/icons/connect-wallet.svg\",width:20,height:20,alt:\"wallet\"})}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3\",children:[(0,n.jsx)(\"p\",{className:\"text-white\",children:(null==t?void 0:t.address)&&T(t.address,4,4)}),(0,n.jsx)(I.default,{src:\"/icons/down-arrow.svg\",width:10,height:10})]})]})}),(0,n.jsx)(M,{className:\"min-w-[18rem]\",children:(0,n.jsx)(F,{children:(0,n.jsxs)(\"div\",{className:\"flex items-center justify-between w-full\",onClick:s,children:[(0,n.jsx)(\"p\",{children:\"Logout\"}),(0,n.jsx)(N.Z,{className:\"w-4\"})]})})})]}),(0,n.jsx)(U,{})]}):(0,n.jsx)(L,{className:\"w-full\",onClick:a,children:\"Connect Wallet\"})})};let V=(0,D.j)(\"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",{variants:{variant:{default:\"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",secondary:\"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",destructive:\"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",outline:\"text-foreground\"}},defaultVariants:{variant:\"default\"}});function G(e){let{className:t,variant:a,...i}=e;return(0,n.jsx)(\"div\",{className:g(V({variant:a}),t),...i})}var _=a(14504),W=a(95137),Y=a(98141),q=a(34446),X=a(52022),K=a(28196),J=a(3003),$=a(18422),Q=a(38364);let ee=(0,D.j)(\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"),et=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(Q.f,{ref:t,className:g(ee(),a),...i})});et.displayName=Q.f.displayName;let ea=o.forwardRef((e,t)=>{let{className:a,type:i,...s}=e;return(0,n.jsx)(\"input\",{type:i,className:g(\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",a),ref:t,...s})});ea.displayName=\"Input\";var en=e=>{let{items:t,renderItem:a,containerId:i}=e,s=(0,o.useRef)(null),[r,l]=(0,o.useState)(!1),[d,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=()=>{if(s.current){let{scrollLeft:e,scrollWidth:t,clientWidth:a}=s.current;l(e>0),c(e+a<t)}};return e(),s.current&&s.current.addEventListener(\"scroll\",e),window.addEventListener(\"resize\",e),()=>{s.current&&s.current.removeEventListener(\"scroll\",e),window.removeEventListener(\"resize\",e)}},[]),(0,n.jsxs)(\"div\",{className:\"relative\",children:[r&&(0,n.jsx)(\"button\",{className:\"absolute left-0 top-20 transform bg-primary rounded-full z-10 text-white w-6 h-6 flex items-center justify-center drop-shadow-md\",onClick:()=>{s.current.scrollBy({left:-200,behavior:\"smooth\"})},children:(0,n.jsx)(W.Z,{className:\"w-3\"})}),d&&(0,n.jsx)(\"button\",{className:\"absolute right-0 top-20 transform bg-primary rounded-full z-10 text-white w-6 h-6 flex items-center justify-center drop-shadow-md\",onClick:()=>{s.current.scrollBy({left:200,behavior:\"smooth\"})},children:(0,n.jsx)(W.Z,{className:\"w-3 rotate-180\"})}),(0,n.jsx)(\"div\",{className:\"px-4\",children:(0,n.jsx)(\"div\",{id:i,ref:s,className:\"flex space-x-4 overflow-x-auto scrollbar-hide py-2\",children:t.map((e,t)=>(0,n.jsx)(\"div\",{className:\"space-y-2 flex-shrink-0\",children:a(e)},t))})})]})},ei=a(20920),es=a(6538);let er=es.fC,el=es.xz,eo=es.h_,ed=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.aV,{className:g(\"fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",a),...i,ref:t})});ed.displayName=es.aV.displayName;let ec=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsxs)(eo,{children:[(0,n.jsx)(ed,{}),(0,n.jsx)(es.VY,{ref:t,className:g(\"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",a),...i})]})});ec.displayName=es.VY.displayName;let ep=e=>{let{className:t,...a}=e;return(0,n.jsx)(\"div\",{className:g(\"flex flex-col space-y-2 text-center sm:text-left\",t),...a})};ep.displayName=\"AlertDialogHeader\";let eu=e=>{let{className:t,...a}=e;return(0,n.jsx)(\"div\",{className:g(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",t),...a})};eu.displayName=\"AlertDialogFooter\";let em=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.Dx,{ref:t,className:g(\"text-lg font-semibold\",a),...i})});em.displayName=es.Dx.displayName;let ey=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.dk,{ref:t,className:g(\"text-sm text-muted-foreground\",a),...i})});ey.displayName=es.dk.displayName;let ex=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.aU,{ref:t,className:g(B(),a),...i})});ex.displayName=es.aU.displayName;let eh=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(es.$j,{ref:t,className:g(B({variant:\"outline\"}),\"mt-2 sm:mt-0\",a),...i})});eh.displayName=es.$j.displayName;let ef=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(\"textarea\",{className:g(\"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",a),ref:t,...i})});ef.displayName=\"Textarea\";var eg=a(9646);let ev=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsx)(eg.fC,{className:g(\"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",a),...i,ref:t,children:(0,n.jsx)(eg.bU,{className:g(\"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\")})})});ev.displayName=eg.fC.displayName;var eb=a(16356),ew=a(22584),ej=a(38401),eN=a(38472);let eT=\"0xaD4b216C20Ac6a06D67d03c8176C047BB81CB7A0\",ek=[{inputs:[{internalType:\"address\",name:\"musicxTokenAddress\",type:\"address\"},{internalType:\"address\",name:\"protocolFeeAddress\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"spender\",type:\"address\"},{indexed:!0,internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"Approval\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"operator\",type:\"address\"},{indexed:!1,internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"ApprovalForAll\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"creator\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"CreatorPayoutWithdrawn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"newCreator\",type:\"address\"}],name:\"FullRoyaltyBought\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"creator\",type:\"address\"}],name:\"NFTMinted\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"buyer\",type:\"address\"}],name:\"NFTPurchased\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"renter\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"duration\",type:\"uint256\"}],name:\"NFTRented\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!1,internalType:\"uint256\",name:\"rentBaseAmount\",type:\"uint256\"},{indexed:!1,internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"}],name:\"RentInfoSet\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{indexed:!0,internalType:\"address\",name:\"creator\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"RoyaltyPaid\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"from\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!0,internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"Transfer\",type:\"event\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"approve\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"balanceOf\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{internalType:\"bool\",name:\"_fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"_fullRoyaltyBuyoutPrice\",type:\"uint256\"}],name:\"buyFullRoyalty\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"buyNFT\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"}],internalType:\"struct OwnSound.CreateNFTParams\",name:\"params\",type:\"tuple\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],name:\"createNFT\",outputs:[{internalType:\"uint256\",name:\"newTokenId\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"\",type:\"address\"}],name:\"creatorPayouts\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getAllTokensInfo\",outputs:[{components:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"metadata\",type:\"tuple\"},{internalType:\"address\",name:\"creator\",type:\"address\"}],internalType:\"struct OwnSound.TokenInfo[]\",name:\"\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],name:\"getApproved\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"getNFTMetadata\",outputs:[{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],name:\"getNFTMetadataByRandomNumber\",outputs:[{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"getRentInfo\",outputs:[{components:[{internalType:\"bool\",name:\"purchased\",type:\"bool\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"address\",name:\"renter\",type:\"address\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentEndTime\",type:\"uint256\"}],internalType:\"struct OwnSound.OwnershipInfo\",name:\"\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getRentableTokens\",outputs:[{components:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"metadata\",type:\"tuple\"},{internalType:\"uint256\",name:\"rentBaseAmount\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"address\",name:\"currentOwner\",type:\"address\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"}],internalType:\"struct OwnSound.RentableTokenInfo[]\",name:\"\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"buyer\",type:\"address\"}],name:\"getWalletPurchasedNFTs\",outputs:[{internalType:\"uint256[]\",name:\"\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_wallet\",type:\"address\"}],name:\"getWalletTokensWithMetadata\",outputs:[{components:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{components:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],internalType:\"struct OwnSound.NFTMetadata\",name:\"metadata\",type:\"tuple\"},{components:[{internalType:\"bool\",name:\"purchased\",type:\"bool\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"address\",name:\"renter\",type:\"address\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentEndTime\",type:\"uint256\"}],internalType:\"struct OwnSound.OwnershipInfo\",name:\"ownershipInfo\",type:\"tuple\"}],internalType:\"struct OwnSound.WalletTokenInfo[]\",name:\"\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"\",type:\"address\"},{internalType:\"address\",name:\"\",type:\"address\"}],name:\"isApprovedForAll\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],name:\"nftMetadata\",outputs:[{internalType:\"uint256\",name:\"basePrice\",type:\"uint256\"},{internalType:\"bool\",name:\"fullRoyaltyAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"fullRoyaltyBuyoutPrice\",type:\"uint256\"},{internalType:\"string\",name:\"title\",type:\"string\"},{internalType:\"string\",name:\"description\",type:\"string\"},{internalType:\"string\",name:\"coverImage\",type:\"string\"},{internalType:\"string\",name:\"mp3FileLocationId\",type:\"string\"},{internalType:\"bool\",name:\"isRentingAllowed\",type:\"bool\"},{internalType:\"uint256\",name:\"supply\",type:\"uint256\"},{internalType:\"uint256\",name:\"royaltyPercentage\",type:\"uint256\"},{internalType:\"address\",name:\"creator\",type:\"address\"},{internalType:\"uint256\",name:\"remainingSupply\",type:\"uint256\"},{internalType:\"uint256\",name:\"randomNumber\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"ownerOf\",outputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"},{internalType:\"address\",name:\"\",type:\"address\"}],name:\"ownershipInfo\",outputs:[{internalType:\"bool\",name:\"purchased\",type:\"bool\"},{internalType:\"bool\",name:\"isRenting\",type:\"bool\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"address\",name:\"renter\",type:\"address\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentEndTime\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],name:\"randomNumberToTokenId\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"}],name:\"rentNFT\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"safeTransferFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"safeTransferFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"operator\",type:\"address\"},{internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"setApprovalForAll\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"tokenId\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentPrice\",type:\"uint256\"},{internalType:\"uint256\",name:\"rentDuration\",type:\"uint256\"}],name:\"setRentInfo\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes4\",name:\"interfaceId\",type:\"bytes4\"}],name:\"supportsInterface\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"tokenURI\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"id\",type:\"uint256\"}],name:\"transferFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"withdrawCreatorPayout\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"}],eE=\"0x9b344Cc9f7Bfa905cc6eBCF87AbC03338785b70B\",eS=[{inputs:[{internalType:\"address\",name:\"initialOwner\",type:\"address\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[],name:\"ECDSAInvalidSignature\",type:\"error\"},{inputs:[{internalType:\"uint256\",name:\"length\",type:\"uint256\"}],name:\"ECDSAInvalidSignatureLength\",type:\"error\"},{inputs:[{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"ECDSAInvalidSignatureS\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"allowance\",type:\"uint256\"},{internalType:\"uint256\",name:\"needed\",type:\"uint256\"}],name:\"ERC20InsufficientAllowance\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"sender\",type:\"address\"},{internalType:\"uint256\",name:\"balance\",type:\"uint256\"},{internalType:\"uint256\",name:\"needed\",type:\"uint256\"}],name:\"ERC20InsufficientBalance\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"approver\",type:\"address\"}],name:\"ERC20InvalidApprover\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"receiver\",type:\"address\"}],name:\"ERC20InvalidReceiver\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"sender\",type:\"address\"}],name:\"ERC20InvalidSender\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"}],name:\"ERC20InvalidSpender\",type:\"error\"},{inputs:[{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"}],name:\"ERC2612ExpiredSignature\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"signer\",type:\"address\"},{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"ERC2612InvalidSigner\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"},{internalType:\"uint256\",name:\"currentNonce\",type:\"uint256\"}],name:\"InvalidAccountNonce\",type:\"error\"},{inputs:[],name:\"InvalidShortString\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"OwnableInvalidOwner\",type:\"error\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"OwnableUnauthorizedAccount\",type:\"error\"},{inputs:[{internalType:\"string\",name:\"str\",type:\"string\"}],name:\"StringTooLong\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"spender\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Approval\",type:\"event\"},{anonymous:!1,inputs:[],name:\"EIP712DomainChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"previousOwner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"OwnershipTransferred\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"from\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Transfer\",type:\"event\"},{inputs:[],name:\"DOMAIN_SEPARATOR\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"}],name:\"allowance\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"approve\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"burn\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"burnFrom\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"decimals\",outputs:[{internalType:\"uint8\",name:\"\",type:\"uint8\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{internalType:\"bytes1\",name:\"fields\",type:\"bytes1\"},{internalType:\"string\",name:\"name\",type:\"string\"},{internalType:\"string\",name:\"version\",type:\"string\"},{internalType:\"uint256\",name:\"chainId\",type:\"uint256\"},{internalType:\"address\",name:\"verifyingContract\",type:\"address\"},{internalType:\"bytes32\",name:\"salt\",type:\"bytes32\"},{internalType:\"uint256[]\",name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"mint\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"nonces\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"owner\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"permit\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"renounceOwnership\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"totalSupply\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transfer\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transferFrom\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"transferOwnership\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"}];var eP=a(22554),eC=a(27776),eR=a(85068);let eM=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,n.jsxs)(eR.fC,{ref:t,className:g(\"relative flex w-full touch-none select-none items-center\",a),...i,children:[(0,n.jsx)(eR.fQ,{className:\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\",children:(0,n.jsx)(eR.e6,{className:\"absolute h-full bg-primary\"})}),(0,n.jsx)(eR.bU,{className:\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"})]})});eM.displayName=eR.fC.displayName;var eF=e=>{let{getSongs:t}=e,[a,i]=(0,o.useState)(!1),[s,r]=(0,o.useState)(!1),[l,d]=(0,o.useState)(!1),[c,p]=(0,o.useState)(\"\"),{wallets:u}=(0,j.rB)(),y=u[0],[x,h]=(0,o.useState)(null),[f,g]=(0,o.useState)(1),[v,b]=(0,o.useState)(!1),[w,N]=(0,o.useState)(null),[T,k]=(0,o.useState)(\"\"),[E,S]=(0,o.useState)(\"\"),[P,C]=(0,o.useState)(\"\"),[R,M]=(0,o.useState)(\"\"),[F,A]=(0,o.useState)(\"\"),[D,B]=(0,o.useState)(0),[Z,O]=(0,o.useState)(\"\"),[z,U]=(0,o.useState)(!1),[H,V]=(0,o.useState)(!1),[G,_]=(0,o.useState)({songName:\"\",songDescription:\"\",basePrice:\"\",royaltyPrice:\"\",royaltyPercentage:\"\",isRentingAllowed:!1}),W=async e=>{let t=e.target.files[0];if(t){i(!0);try{let e=new FormData;Object.keys(G).forEach(t=>{e.append(t,G[t])}),e.append(\"musicFile\",t),e.append(\"userAddress\",y.address);let a=await eN.Z.post(\"/api/endpoint\",e,{headers:{\"Content-Type\":\"multipart/form-data\"}});console.log(\"Response:\",a.data),console.log(\"Response:\",a.data.value),p(a.data.value),h(t),k(t.name)}catch(e){eC.A.error(\"Error uploading file\"),console.error(\"Error uploading file:\",e)}finally{i(!1)}}},Y=async e=>{let t=e.target.files[0];if(t){r(!0);try{let e=new FormData;e.append(\"file\",t),e.append(\"upload_preset\",\"fi0lxkc1\"),e.append(\"api_key\",\"697773597345229\");let a=await fetch(\"https://api.cloudinary.com/v1_1/da9h8exvs/image/upload\",{method:\"POST\",body:e});if(!a.ok){let e=await a.json();throw Error(\"Upload failed: \".concat(e.error.message))}let n=await a.json();N(n.secure_url)}catch(e){console.error(\"Error uploading image:\",e)}finally{r(!1)}}},q=async()=>{1===f&&T&&x&&g(2)},X=async()=>{O(\"\"),U(!0),console.log(c);try{let e=await (null==y?void 0:y.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let a=await e.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.createNFT({basePrice:R,fullRoyaltyAllowed:H,fullRoyaltyBuyoutPrice:F,title:E,description:P,coverImage:w,mp3FileLocationId:c,isRentingAllowed:v,supply:100,royaltyPercentage:D},c);await i.wait(1),console.log(i),U(!1),d(!1),await t(y.address),eC.A.success(\"Successfully published the song\")}catch(e){U(!1),console.error(\"Error creating NFT:\",e),O(\"Failed to create NFT. Please try again.\")}};return(0,n.jsxs)(er,{open:l,onOpenChange:e=>d(e),children:[(0,n.jsx)(el,{children:(0,n.jsx)(L,{variant:\"outline\",className:\"w-full h-full\",children:\"Publish Audio\"})}),(0,n.jsxs)(ec,{children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{children:1===f?\"Upload Music\":\"Song Details\"}),(0,n.jsx)(ey,{children:1===f?\"Upload your music file and proceed to enter the song details.\":\"Enter the details of your song and finalize your submission.\"})]}),(0,n.jsxs)(\"div\",{className:\"space-y-3\",children:[1===f&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(\"div\",{className:\"relative h-24 w-full border border-muted-foreground border-dashed rounded-md flex items-center justify-center gap-2 cursor-pointer transition-transform duration-300 ease-in-out transform hover:scale-105\",children:[(0,n.jsx)(\"input\",{type:\"file\",accept:\"audio/*\",className:\"absolute inset-0 opacity-0 cursor-pointer\",onChange:W,disabled:a}),a?(0,n.jsxs)(\"div\",{className:\"flex items-center gap-2\",children:[(0,n.jsx)(\"div\",{className:\"buffering\"}),(0,n.jsx)(m,{})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ew.Z,{className:\"text-muted-foreground w-8 h-8\"}),(0,n.jsx)(\"p\",{className:\"text-muted-foreground\",children:T?\"Selected File: \".concat(T):\"Upload Music File\"})]})]})}),2===f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{className:\"flex gap-3 items-center\",children:[(0,n.jsx)(\"div\",{className:\"w-24 h-24 bg-muted rounded-md overflow-hidden relative\",children:w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(\"img\",{src:w,alt:\"Uploaded\",className:\"w-full h-full object-cover\"}),(0,n.jsx)(\"button\",{onClick:()=>{N(null)},className:\"absolute z-[99999999999] bottom-1 right-1 bg-red-600 text-white rounded-full p-1 transition-opacity\",children:(0,n.jsx)(eb.FH3,{})})]}):(0,n.jsx)(\"div\",{className:\"relative h-full w-full flex items-center justify-center\",children:s?(0,n.jsxs)(\"div\",{className:\"flex flex-col items-center\",children:[(0,n.jsx)(\"div\",{className:\"buffering\"}),(0,n.jsx)(m,{})]}):(0,n.jsxs)(\"div\",{className:\"relative h-full w-full flex items-center justify-center\",children:[(0,n.jsx)(\"div\",{children:(0,n.jsx)(ew.Z,{className:\"text-muted-foreground\"})}),(0,n.jsx)(\"label\",{className:\"absolute cursor-pointer flex items-center justify-center w-full h-full text-muted\",children:(0,n.jsx)(\"input\",{type:\"file\",accept:\"image/*\",className:\"hidden\",onChange:Y})})]})})}),\" \",(0,n.jsxs)(\"div\",{className:\"h-16 flex flex-col justify-between\",children:[(0,n.jsx)(et,{children:\"Song Name\"}),(0,n.jsx)(ea,{placeholder:\"Enter song name\",value:E,onChange:e=>S(e.target.value)})]})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Song Description\"}),(0,n.jsx)(ef,{placeholder:\"Enter song description\",className:\"mt-2.5\",value:P,onChange:e=>C(e.target.value)})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center justify-between\",children:[(0,n.jsxs)(\"div\",{className:\"flex items-center space-x-2 pt-2\",children:[(0,n.jsx)(et,{htmlFor:\"isRentingAllowed\",children:\"Renting Allowed?\"}),(0,n.jsx)(ev,{id:\"isRentingAllowed\",onCheckedChange:e=>b(e)})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center space-x-2 pt-2\",children:[(0,n.jsx)(et,{htmlFor:\"full-royalty\",children:\"Full Royalty Allowed?\"}),(0,n.jsx)(ev,{id:\"full-royalty\",onCheckedChange:e=>V(e)})]})]}),(0,n.jsxs)(\"div\",{className:\"grid grid-cols-2 gap-4\",children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Base Price\"}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 w-full mt-2.5\",children:[(0,n.jsx)(ea,{placeholder:\"Enter Base Price\",type:\"number\",value:R,onChange:e=>M(e.target.value)}),(0,n.jsx)(I.default,{src:\"/icons/token-coin.svg\",width:20,height:20,alt:\"coin\"})]})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Royalty Price\"}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 w-full mt-2.5\",children:[(0,n.jsx)(ea,{placeholder:\"Enter Royalty Price\",type:\"number\",value:F,onChange:e=>A(e.target.value)}),(0,n.jsx)(I.default,{src:\"/icons/token-coin.svg\",width:20,height:20,alt:\"coin\"})]})]})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(et,{children:\"Royalty Percentage\"}),(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 w-full mt-2.5\",children:[(0,n.jsx)(eM,{defaultValue:[0],max:20,step:5,className:\"\",onValueChange:e=>B(e)}),(0,n.jsxs)(\"div\",{className:\"flex text-muted-foreground\",children:[D,(0,n.jsx)(ej.Z,{className:\"text-muted-foreground w-4\"})]})]})]}),Z&&(0,n.jsx)(\"div\",{className:\"text-red-500 text-sm mt-2\",children:Z})]})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{children:\"Cancel\"}),1===f&&(0,n.jsx)(L,{onClick:q,disabled:!T,children:\"Next\"}),2===f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L,{variant:\"outline\",onClick:()=>{2===f&&g(1)},children:\"Back\"}),(0,n.jsx)(L,{onClick:X,disabled:!E||!P||z,children:z?\"Uploading...\":\"Upload\"})]})]})]})]})},eI=a(43393),eA=a.n(eI),eD=JSON.parse('{\"nm\":\"Comp 1\",\"mn\":\"\",\"layers\":[{\"ty\":3,\"nm\":\"Null 1\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":1,\"k\":[{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[250,245,0],\"t\":0,\"ti\":[0,0,0],\"to\":[0,1.667,0]},{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[250,255,0],\"t\":60,\"ti\":[0,1.667,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.167,\"y\":0.167},\"i\":{\"x\":0.833,\"y\":0.833},\"s\":[250,245,0],\"t\":120}],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":0,\"ix\":11}},\"ef\":[],\"ind\":1},{\"ty\":4,\"nm\":\"face\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[250,250,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":1,\"k\":[{\"o\":{\"x\":0.748,\"y\":0},\"i\":{\"x\":0.667,\"y\":1},\"s\":[0,0,0],\"t\":30,\"ti\":[0,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.178,\"y\":0},\"i\":{\"x\":0.352,\"y\":1},\"s\":[8,0,0],\"t\":45,\"ti\":[0,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.077,\"y\":0},\"i\":{\"x\":0.491,\"y\":1},\"s\":[-8,0,0],\"t\":60,\"ti\":[-1.333,0,0],\"to\":[0,0,0]},{\"o\":{\"x\":0.333,\"y\":0},\"i\":{\"x\":0.491,\"y\":1},\"s\":[3,0,0],\"t\":73,\"ti\":[0.5,0,0],\"to\":[1.333,0,0]},{\"o\":{\"x\":0.167,\"y\":0.167},\"i\":{\"x\":0.833,\"y\":0.833},\"s\":[0,0,0],\"t\":84}],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":100,\"ix\":11}},\"ef\":[],\"shapes\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":1,\"it\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0.964,0],[0.926,1.269],[-2.109,1.537],[-12.421,0],[-9.638,-6.507],[1.46,-2.163],[2.164,1.463],[9.78,0],[8.382,-6.108]],\"o\":[[-1.46,0],[-1.537,-2.109],[10.009,-7.294],[11.67,0],[2.163,1.46],[-1.458,2.163],[-8.071,-5.448],[-10.408,0],[-0.84,0.612]],\"v\":[[-30.712,9.847],[-34.536,7.904],[-33.499,1.302],[0.788,-9.847],[33.361,0.099],[34.633,6.66],[28.073,7.932],[0.788,-0.396],[-27.934,8.941]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[250,273.902],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 2\",\"ix\":2,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,-5.22],[5.22,0],[0,5.22],[-5.22,0]],\"o\":[[0,5.22],[-5.22,0],[0,-5.22],[5.22,0]],\"v\":[[9.451,0],[0,9.451],[-9.451,0],[0,-9.451]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[212.197,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 2\",\"ix\":2,\"cix\":2,\"np\":2,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,-5.22],[5.22,0],[0,5.22],[-5.22,0]],\"o\":[[0,5.22],[-5.22,0],[0,-5.22],[5.22,0]],\"v\":[[9.451,0],[0,9.451],[-9.451,0],[0,-9.451]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[287.803,225.702],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]}],\"ind\":2,\"parent\":1},{\"ty\":4,\"nm\":\"magnification glass\",\"mn\":\"\",\"sr\":1,\"st\":0,\"op\":121,\"ip\":0,\"hd\":false,\"cl\":\"\",\"ln\":\"\",\"ddd\":0,\"bm\":0,\"hasMask\":false,\"ao\":0,\"ks\":{\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6},\"sk\":{\"a\":0,\"k\":0},\"p\":{\"a\":0,\"k\":[27,24,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"sa\":{\"a\":0,\"k\":0},\"o\":{\"a\":0,\"k\":100,\"ix\":11}},\"ef\":[],\"shapes\":[{\"ty\":\"gr\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Group\",\"nm\":\"Group 1\",\"ix\":1,\"cix\":2,\"np\":3,\"it\":[{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 1\",\"ix\":1,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[14.17,-15.84],[0.87,-0.89],[25.14,0],[0,49.35],[-49.35,0],[0,-49.35]],\"o\":[[-0.82,0.93],[-16.27,16.75],[-49.35,0],[0,-49.35],[49.35,0],[0,22.88]],\"v\":[[39.949,35.36],[37.419,38.08],[-26.751,65.25],[-116.251,-24.25],[-26.751,-113.75],[62.749,-24.25]]},\"ix\":2}},{\"ty\":\"sh\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Shape - Group\",\"nm\":\"Path 2\",\"ix\":2,\"d\":1,\"ks\":{\"a\":0,\"k\":{\"c\":true,\"i\":[[0,0],[0,25.41],[60.93,0],[0,-60.93],[-60.93,0],[-19.48,17.2]],\"o\":[[14.48,-18.69],[0,-60.93],[-60.93,0],[0,60.93],[27.96,0],[0,0]],\"v\":[[60.639,43.3],[83.749,-24.25],[-26.751,-134.75],[-137.251,-24.25],[-26.751,86.25],[46.269,58.61]]},\"ix\":2}},{\"ty\":\"fl\",\"bm\":0,\"cl\":\"\",\"ln\":\"\",\"hd\":false,\"mn\":\"ADBE Vector Graphic - Fill\",\"nm\":\"Fill 1\",\"c\":{\"a\":0,\"k\":[0.4275,0.3176,0.8157],\"ix\":4},\"r\":1,\"o\":{\"a\":0,\"k\":100,\"ix\":5}},{\"ty\":\"tr\",\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"o\":{\"a\":0,\"k\":100,\"ix\":7}}]}],\"ind\":3,\"parent\":1}],\"ddd\":0,\"h\":500,\"w\":500,\"meta\":{\"a\":\"\",\"k\":\"\",\"d\":\"\",\"g\":\"LottieFiles AE 3.2.2\",\"tc\":\"#000000\"},\"v\":\"4.8.0\",\"fr\":60,\"op\":121,\"ip\":0,\"assets\":[]}'),eB=a(40472),eL=a(11444),eZ=a(99782),eO=e=>{let{song:t}=e,a=(0,eL.I0)(),[i,s,r]=t;console.log(i.toString());let l=async(e,t)=>{let n=Number(t[12].toString());try{a((0,eZ.SK)({uri:\"/api/hashsong/\".concat(n),isPlaying:!0,index:0,coverImage:t[5],title:t[3],artist:t[4]}))}catch(e){console.error(\"Error playing song:\",e),eC.A.error(\"Failed to play song. Please try again.\")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{className:\"relative flex\",children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:s[5],className:\"aspect-square rounded-md w-full h-full object-cover\",alt:s[3]})}),(0,n.jsx)(\"div\",{className:\"w-10 h-10 cursor-pointer bg-primary z-10 -bottom-3 -right-2 absolute rounded-full flex items-center justify-center text-white\",onClick:()=>{l(\"bafybeic5zcykf7fpg7c2zuf76p2gddegxlt64hbfp76qqs7l4l6yx3nraa\",s)},children:(0,n.jsx)(eB.Z,{})})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:s[3],children:s[3]}),(0,n.jsx)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:s[4]})]})]})},ez=e=>{let{playlist:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:t.image,className:\"aspect-square rounded-md w-full h-full object-cover\",alt:t.name})}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:t.name,children:t.name}),(0,n.jsx)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:t.creator})]})]})},eU=()=>{let{authenticated:e,ready:t}=(0,j.sv)(),{wallets:a}=(0,j.rB)(),i=a[0],[s,r]=(0,o.useState)([]),[l,d]=(0,o.useState)(!0),[p,u]=(0,o.useState)(!1),y=async e=>{if(!e){toast.error(\"Address is not provided\"),u(!0),d(!1);return}try{let t=await (null==i?void 0:i.getEthersProvider());if(!t)throw console.error(\"Provider is not available:\",t),Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw console.error(\"Signer is not available:\",a),Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),s=await n.getWalletTokensWithMetadata(e);console.log(s),r(s),d(!1)}catch(e){console.error(\"Error fetching songs:\",e),u(!0),d(!1)}};(0,o.useEffect)(()=>{t&&e&&(null==i?void 0:i.address)!==void 0&&(console.log(\"Wallet Address: \",i.address),y(i.address))},[i,t,e]);let x={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}};return(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:[(0,n.jsxs)(Y.E.div,{className:\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\",variants:x,children:[\"GM Ser!\",(0,n.jsx)(eF,{getSongs:y,w0:i})]}),(0,n.jsxs)(Y.E.div,{className:\"flex w-full gap-3 items-center\",variants:x,children:[(0,n.jsxs)(Y.E.div,{className:\"w-24 h-24 relative\",children:[(0,n.jsx)(\"img\",{src:\"/nft.avif\",className:\"rounded-lg\"}),(0,n.jsx)(Y.E.div,{className:\"w-6 h-6 flex items-center justify-center absolute bg-muted z-10 -bottom-2 -right-2 rounded-full cursor-pointer drop-shadow\",whileHover:{scale:1.1},whileTap:{scale:.9},children:(0,n.jsx)($.Z,{className:\"w-3\"})})]}),(0,n.jsxs)(Y.E.div,{className:\"flex flex-col gap-3\",variants:x,children:[(0,n.jsx)(et,{children:\"Username\"}),(0,n.jsx)(ea,{placeholder:\"Change username\",className:\"max-w-xs\"})]})]}),(0,n.jsx)(Y.E.div,{className:\"scroll-m-20 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\",variants:x,children:\"Your NFS's\"}),(0,n.jsx)(q.M,{children:l?(0,n.jsx)(Y.E.div,{className:\"grid place-items-center min-h-32\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:(0,n.jsx)(m,{})}):p?(0,n.jsx)(Y.E.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:\"Error loading songs\"}):0===s.length?(0,n.jsxs)(Y.E.div,{className:\"w-full h-32 flex items-center justify-center\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,n.jsx)(\"div\",{className:\"w-20 h-20\",children:(0,n.jsx)(eA(),{animationData:eD})}),(0,n.jsx)(\"p\",{className:\"text-muted-foreground\",children:\"No NFS's found!\"})]}):(0,n.jsx)(Y.E.div,{variants:x,children:(0,n.jsx)(en,{items:s,renderItem:e=>(0,n.jsx)(eO,{song:e}),containerId:\"scrollContainer-\".concat((0,ei.Z)())})})}),(0,n.jsx)(Y.E.div,{className:\"scroll-m-20 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\",variants:x,children:\"Your Playlist\"}),(0,n.jsx)(Y.E.div,{variants:x,children:(0,n.jsx)(en,{items:c,renderItem:e=>(0,n.jsx)(ez,{playlist:e}),containerId:\"scrollContainer-\".concat((0,ei.Z)())})})]})},eH=e=>{let{track:t,setSelectedLayout:a}=e;return(0,n.jsxs)(\"div\",{className:\"p-3 hover:bg-muted rounded-lg cursor-pointer\",onClick:()=>a(\"view-song/\".concat(t.id)),children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:t.cover,className:\"aspect-square rounded-md w-full h-full object-cover\",alt:t.title})}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:t.title,children:t.title}),(0,n.jsx)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:t.artist})]})]})},eV=e=>{let{playlist:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(\"div\",{className:\"w-36 h-36\",children:(0,n.jsx)(\"img\",{src:t.image,className:\"aspect-square rounded-md w-full h-full object-cover\",alt:t.name})}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"p\",{className:\"w-full text-center truncate max-w-xs mx-auto\",title:t.name,children:t.name}),(0,n.jsxs)(\"p\",{className:\"text-sm text-center text-muted-foreground\",children:[t.tracks.length,\" songs\"]})]})]})},eG=e=>{let{setSelectedLayout:t,w0:a}=e,{authenticated:i,ready:s}=(0,j.sv)(),[r,l]=(0,o.useState)(\"\"),[d,p]=(0,o.useState)([]),[u,y]=(0,o.useState)(!0),[x,h]=(0,o.useState)(!0),f=async()=>{try{y(!0);let e=await (null==a?void 0:a.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,t),i=(await n.getAllTokensInfo()).map(e=>({id:e[0].toNumber(),title:e[1][3],artist:e[1][4],cover:e[1][5],price:e[1][0].toNumber(),owner:e[2]})).reverse();p(i)}catch(e){console.log(e)}finally{y(!1)}},g=async()=>{h(!0),setTimeout(()=>{h(!1)},1e3)};(0,o.useEffect)(()=>{s&&i&&(null==a?void 0:a.address)!==void 0&&(f(),g())},[a,s,i]);let v=(e,t)=>e.filter(e=>{let a=e.title||\"\",n=e.artist||\"\";return a.toLowerCase().includes(t.toLowerCase())||n.toLowerCase().includes(t.toLowerCase())}),b=v(d,r),w=v(c,r),N={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}};return(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide mt-2\",initial:\"hidden\",animate:\"visible\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},children:[(0,n.jsxs)(Y.E.div,{className:\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 sticky top-0 z-[50] bg-background w-full flex items-center justify-between\",variants:N,children:[\"Explore\",(0,n.jsx)(Y.E.div,{className:\"w-auto p-1\",whileHover:{scale:1.05},whileTap:{scale:.95},children:(0,n.jsx)(ea,{type:\"text\",placeholder:\"Search...\",value:r,onChange:e=>{l(e.target.value)}})})]}),(0,n.jsx)(Y.E.div,{variants:N,children:u?(0,n.jsx)(\"div\",{className:\"text-center h-32 grid place-items-center\",children:(0,n.jsx)(m,{})}):b.length>0?(0,n.jsx)(en,{items:b,renderItem:e=>(0,n.jsx)(eH,{track:e,setSelectedLayout:t}),containerId:\"scrollContainer-\".concat((0,ei.Z)())}):(0,n.jsx)(\"div\",{className:\"text-center\",children:\"No tracks found\"})}),(0,n.jsxs)(Y.E.div,{variants:N,children:[(0,n.jsx)(Y.E.div,{className:\"scroll-m-20 mb-5 border-b pb-2 text-xl font-semibold tracking-tight transition-colors first:mt-0\",variants:N,children:\"Popular Playlists\"}),x?(0,n.jsx)(\"div\",{className:\"text-center h-32 grid place-items-center\",children:(0,n.jsx)(m,{})}):w.length>0?(0,n.jsx)(en,{items:w,renderItem:e=>(0,n.jsx)(eV,{playlist:e,setSelectedLayout:t}),containerId:\"scrollContainer-\".concat((0,ei.Z)())}):(0,n.jsx)(\"div\",{className:\"text-center\",children:\"No playlists found\"})]})]})};function e_(){return(0,n.jsxs)(er,{children:[(0,n.jsx)(el,{asChild:!0,children:(0,n.jsx)(L,{variant:\"outline\",className:\"dark:text-white\",children:\"Need MCX ?\"})}),(0,n.jsxs)(ec,{children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{children:\"Need some MusicX(MCX) Token?\"}),(0,n.jsx)(ey,{className:\"dark:text-white text-black\",children:\"Follow @0xabhii and DM your Polygon Amoy Wallet Address to receive 20 MusicX tokens!\"})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{children:\"Cancel\"}),(0,n.jsx)(ex,{onClick:()=>window.open(\"https://x.com/0xabhii\",\"_blank\"),children:\"Continue \"})]})]})]})}var eW=a(69824),eY=a(58789);function eq(e){let{metadata:t,songId:a,isowner:i}=e,[s,r]=(0,o.useState)(a),[l,d]=(0,o.useState)(\"\"),[c,p]=(0,o.useState)(\"\"),{authenticated:u,ready:m}=(0,j.sv)(),{wallets:y}=(0,j.rB)(),x=y[0],h=async()=>{try{let e=await (null==x?void 0:x.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let a=new eP.CH(eT,ek,t),n=await a.setRentInfo(s,l,c,{gasLimit:7e5});await n.wait(),console.log(\"Rent set successfully:\",n),eC.A.success(\"Rent set successfully!\")}catch(e){eC.A.error(\"Failed to set rent. Please try again.\"),console.error(\"Error setting rent:\",e)}},f=async()=>{try{let e=await (null==x?void 0:x.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let a=new eP.CH(eT,ek,t);if(i){let e=await a.rentNFT(s,{value:l,gasLimit:7e5});await e.wait(),console.log(\"NFT rentInfo updated successfully:\",e),eC.A.success(\"NFT rentInfo updated successfully!\")}else{let e=await a.rentNFT(s,{gasLimit:7e5});await e.wait(),console.log(\"NFT rented successfully:\",e),eC.A.success(\"NFT rented successfully!\")}}catch(e){eC.A.error(\"Failed to rent NFT. Please try again.\"),console.error(\"Error renting NFT:\",e)}};return(0,n.jsxs)(er,{children:[(0,n.jsx)(el,{asChild:!0,children:(0,n.jsx)(Y.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:\"mt-6 border dark:text-white text-black font-semibold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:-translate-y-1 hover:shadow-xl\",children:i?\"Set Rent\":\"Rent\"})}),(0,n.jsxs)(ec,{children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{children:i?\"Set Rent for \".concat(t.name):\"Rent \".concat(t.name)}),(0,n.jsx)(ey,{children:i?\"Set the rental parameters for your NFT. This action can be modified later.\":\"Rent this NFT for the specified duration.\"}),(0,n.jsxs)(\"div\",{className:\"space-y-4 mt-4\",children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"tokenId\",className:\"block text-sm font-medium text-gray-700\",children:\"Token ID\"}),(0,n.jsx)(ea,{id:\"tokenId\",value:s,onChange:e=>r(e.target.value),placeholder:\"Token ID\",className:\"mt-1\",readOnly:!0})]}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentPrice\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Price (in wei)\"}),(0,n.jsx)(ea,{id:\"rentPrice\",value:l,onChange:e=>d(e.target.value),placeholder:\"Rent Price\",className:\"mt-1\"})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentDuration\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Duration (in seconds)\"}),(0,n.jsx)(ea,{id:\"rentDuration\",value:c,onChange:e=>p(e.target.value),placeholder:\"Rent Duration\",className:\"mt-1\"})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentPrice\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Price\"}),(0,n.jsx)(ea,{id:\"rentPrice\",value:t.rentPrice||\"Not set\",className:\"mt-1\",readOnly:!0})]}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(\"label\",{htmlFor:\"rentDuration\",className:\"block text-sm font-medium text-gray-700\",children:\"Rent Duration\"}),(0,n.jsx)(ea,{id:\"rentDuration\",value:t.rentDuration||\"Not set\",className:\"mt-1\",readOnly:!0})]})]})]})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{children:\"Cancel\"}),(0,n.jsx)(ex,{onClick:i?h:f,children:i?\"Set Rent\":\"Rent Now\"})]})]})]})}var eX=e=>{let{selectedLayout:t,setSelectedLayout:a,getMusicXTokenBalance:i}=e,{authenticated:s,ready:r}=(0,j.sv)(),{wallets:l}=(0,j.rB)(),[d,c]=(0,o.useState)(!0),[p,u]=(0,o.useState)(!1),[y,x]=(0,o.useState)(!1),[h,f]=(0,o.useState)(!1),g=l[0],[v,b]=(0,o.useState)(null),w=t.split(\"view-song/\")[1],N=async e=>{try{c(!0);let t=await (null==g?void 0:g.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.getNFTMetadata(e);console.log(i);let s={id:i[0].toNumber(),isListed:i[1],price:i[0].toNumber(),name:i[3],description:i[4],imageUrl:i[5],audioUrl:i[6],isRentable:i[7],rentPrice:i[8].toNumber(),royaltyPercentage:i[9].toNumber(),creator:i[10],totalRents:i[11].toNumber(),createdAt:new Date().toLocaleDateString()};console.log(s);let r=await n.getRentableTokens();if(0===r.length){console.log(\"No rentable tokens\"),b({...s,rentPrice:0});return}console.log(r);let l=r[0][1],o={songName:l[3],songSymbol:l[4],imageUrl:l[5],isRentable:l[8],rentPrice:l[9].toString(),rentDuration:l[10],ownerAddress:l[11],rentStartTime:l[13]};console.log(o);let d=eY.fi(s.price.toString());console.log(d.toString()),b({...s,rentPrice:o.rentPrice})}catch(e){console.error(\"Error fetching song details:\",e),eC.A.error(\"Failed to fetch song details\")}finally{c(!1)}},T=async e=>{try{let t=await (null==g?void 0:g.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.ownershipInfo(e,g.address);console.log(i),f(i[0])}catch(e){console.error(\"Error fetching ownership info:\",e),eC.A.error(\"Failed to fetch ownership information\")}};console.log(w),(0,o.useEffect)(()=>{r&&s&&(null==g?void 0:g.address)!==void 0&&(T(w),N(w))},[w,r,s,null==g?void 0:g.address]);let k=async e=>{try{x(!0);let t=await (null==g?void 0:g.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=new eP.CH(eE,eS,a);if((await i.allowance(await a.getAddress(),eT)).lt(eY.fi(v.price.toString()))){u(!0);let e=await i.approve(eT,eY.fi(v.price.toString()),{gasLimit:3e5});await e.wait(1),u(!1)}let s=await n.buyNFT(e,{gasLimit:3e5});await s.wait(1),await N(e),eC.A.success(\"NFT purchased successfully!\")}catch(e){console.error(\"Error buying NFT:\",e),e.message.includes(\"ERC20: insufficient allowance\")||e.message.includes(\"user denied transaction signature\")?eC.A.error(\"You need to approve the contract to spend your tokens. Click the 'Approve' button to continue.\"):eC.A.error(\"Failed to purchase NFT. Please try again later.\")}finally{x(!1)}};return d?(0,n.jsx)(\"div\",{className:\"text-center mt-80 w-full grid place-items-center\",children:(0,n.jsx)(m,{})}):v?(0,n.jsxs)(\"div\",{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",children:[(0,n.jsxs)(Y.E.div,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.5},className:\"scroll-m-20 border-b pb-4 pt-2 text-3xl font-semibold tracking-tight sticky top-0 z-[50] bg-background w-full flex items-center gap-4\",children:[(0,n.jsx)(\"div\",{className:\"hover:bg-muted text-foreground p-1.5 cursor-pointer rounded-full\",onClick:()=>a(\"explore\"),children:(0,n.jsx)(eW.Vmf,{size:24,className:\"-rotate-90\"})}),\"Song Details\"]}),(0,n.jsxs)(\"div\",{className:\"flex flex-col md:flex-row gap-8 px-4 md:px-8\",children:[(0,n.jsx)(Y.E.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},className:\"w-full md:w-1/3\",children:(0,n.jsx)(\"img\",{src:v.imageUrl,alt:v.name,className:\"w-full h-auto rounded-lg shadow-lg hover:shadow-2xl transition-shadow duration-300\"})}),(0,n.jsxs)(Y.E.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},className:\"w-full md:w-2/3 space-y-4\",children:[(0,n.jsx)(\"h2\",{className:\"text-4xl font-bold text-primary\",children:v.name}),(0,n.jsxs)(\"p\",{className:\"text-xl text-muted-foreground\",children:[\"Creator: \",v.creator]}),(0,n.jsx)(\"p\",{className:\"text-muted-foreground\",children:v.description}),(0,n.jsxs)(\"div\",{className:\"grid grid-cols-2 gap-4 mt-6\",children:[(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Price\"}),(0,n.jsxs)(\"p\",{className:\"text-2xl font-semibold text-green-400\",children:[v.price,\" MSX\"]})]}),(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Royalty\"}),(0,n.jsxs)(\"p\",{className:\"text-2xl font-semibold text-yellow-400\",children:[v.royaltyPercentage,\"%\"]})]}),(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Rentable\"}),(0,n.jsx)(\"p\",{className:\"text-xl font-semibold text-blue-400\",children:v.isRentable?\"Yes\":\"No\"})]}),(0,n.jsxs)(\"div\",{className:\"border dark:border-none dark:bg-gray-800 bg-muted p-4 rounded-lg\",children:[(0,n.jsx)(\"p\",{className:\"text-foreground dark:text-gray-400\",children:\"Rent Price\"}),(0,n.jsxs)(\"p\",{className:\"text-xl font-semibold text-pink-400\",children:[v.rentPrice,\" MSX\"]})]})]}),(0,n.jsxs)(\"p\",{className:\"text-muted-foreground mt-4\",children:[\"Created on: \",v.createdAt]}),console.log(w),v.creator!==g.address?(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3\",children:[v.isRentable&&(0,n.jsx)(eq,{metadata:v,songId:w,isowner:h}),!h&&v.isListed&&(0,n.jsx)(Y.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:\"mt-6 bg-primary hover:bg-purple-700 text-white font-semibold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:-translate-y-1 hover:shadow-xl\",onClick:()=>k(w),disabled:y||p,children:y?\"Purchasing...\":p?\"Approving...\":\"Purchase Now\"})]}):(0,n.jsx)(\"p\",{className:\"text-red-500\",children:\"You cannot purchase your own song. You are the creator of this\"})]})]})]}):(0,n.jsx)(\"div\",{className:\"text-center mt-8\",children:\"No song details available.\"})},eK=a(45282),eJ=a(80847),e$=()=>{let[e,t]=(0,o.useState)(\"https://images.tv9hindi.com/wp-content/uploads/2024/08/chin-tapak-dum-dum-1.png\"),[a,i]=(0,o.useState)(16/9),s=(0,eK.c)(0),r=(0,eK.c)(0),l=(0,eJ.H)(r,[-500,500],[5,-5]),d=(0,eJ.H)(s,[-500,500],[-5,5]);return(0,o.useEffect)(()=>{{let t=new window.Image;t.onload=()=>{i(t.width/t.height)},t.src=e}},[e]),(0,n.jsx)(\"div\",{className:\"w-full h-screen px-10 flex items-center justify-center overflow-hidden -mt-20\",onMouseMove:function(e){let t=e.currentTarget.getBoundingClientRect();s.set(e.clientX-t.left-t.width/2),r.set(e.clientY-t.top-t.height/2)},children:(0,n.jsxs)(Y.E.div,{className:\"w-full h-full flex flex-col items-center justify-center\",style:{rotateX:l,rotateY:d,perspective:1e3},initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},transition:{duration:1.5},children:[(0,n.jsxs)(Y.E.div,{className:\"relative\",whileHover:{scale:1.05},transition:{type:\"spring\",stiffness:300,damping:20},children:[(0,n.jsx)(Y.E.div,{className:\"absolute inset-0 bg-purple-500 rounded-full opacity-30 blur-xl\",animate:{scale:[1,1.2,1],rotate:[0,180,360]},transition:{duration:10,repeat:1/0,ease:\"linear\"}}),(0,n.jsx)(\"div\",{style:{width:\"min(80vw, \".concat(60*a,\"vh)\"),height:\"min(\".concat(80/a,\"vw, 60vh)\"),position:\"relative\"},children:(0,n.jsx)(\"img\",{src:e,alt:\"Home Page Image\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"},className:\"rounded-full shadow-2xl z-10 relative\"})}),(0,n.jsx)(Y.E.div,{className:\"absolute inset-0 rounded-full\",style:{background:\"linear-gradient(45deg, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%)\",zIndex:20},animate:{rotate:360},transition:{duration:20,repeat:1/0,ease:\"linear\"}})]}),(0,n.jsx)(Y.E.h1,{className:\"mt-8 text-4xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-600\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.8}})]})})},eQ=a(74697),e0=()=>{let[e,t]=(0,o.useState)([]),[a,i]=(0,o.useState)(!1),[s,r]=(0,o.useState)(\"\"),[l,d]=(0,o.useState)([]),[c,p]=(0,o.useState)(!1),[m,y]=(0,o.useState)(null),{authenticated:x,ready:h}=(0,j.sv)(),{wallets:f}=(0,j.rB)(),g=f[0],v=async a=>{a.preventDefault(),p(!0),y(null);try{let a=e.map(e=>e.id),{data:n}=await eN.Z.post(\"/api/playlist\",{playName:s,playArray:a,rentalAdd:g.address});console.log(\"Playlist created:\",n),eC.A.success(\"Playlist created successfully!\"),i(!1),r(\"\"),t([])}catch(e){var n,l;console.error(\"Error creating playlist:\",e),y((null===(l=e.response)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:n.message)||\"Failed to create playlist. Please try again.\"),eC.A.error(\"Failed to create playlist. Please try again.\")}finally{p(!1)}},b=async()=>{try{let e=await (null==g?void 0:g.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let t=await e.getSigner();if(!t)throw Error(\"Signer is not available\");let a=new eP.CH(eT,ek,t),n=await a.getWalletPurchasedNFTs(g.address);console.log(n);let i=n.map(e=>a.nftMetadata(e)),s=(await Promise.all(i)).map((e,t)=>({id:t,title:e[3],description:e[4],image:e[5]}));d(s)}catch(e){console.error(\"Error fetching purchased songs:\",e)}};(0,o.useEffect)(()=>{h&&x&&(null==g?void 0:g.address)!==void 0&&b()},[h,x,null==g?void 0:g.address]);let w=e=>{t(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])};return(0,n.jsxs)(er,{open:a,onOpenChange:e=>i(e),children:[(0,n.jsx)(el,{asChild:!0,children:(0,n.jsx)(Y.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:\"bg-primary hover:bg-primary/70 text-white font-bold py-2 px-4 rounded-full shadow-lg\",children:\"Create Playlist\"})}),(0,n.jsxs)(ec,{className:\"max-w-md bg-gradient-to-br from-gray-50 to-gray-100\",children:[(0,n.jsxs)(ep,{children:[(0,n.jsx)(em,{className:\"text-2xl font-bold text-gray-800\",children:\"Create New Playlist\"}),(0,n.jsx)(ey,{className:\"text-gray-600\",children:\"Craft your perfect playlist by adding a name and selecting your favorite tracks.\"}),(0,n.jsxs)(\"div\",{className:\"mt-6 space-y-6\",children:[(0,n.jsxs)(\"div\",{className:\"space-y-2\",children:[(0,n.jsx)(\"label\",{htmlFor:\"playlist-name\",className:\"text-sm font-medium text-gray-700\",children:\"Playlist Name\"}),(0,n.jsx)(ea,{id:\"playlist-name\",placeholder:\"Enter playlist name\",value:s,onChange:e=>r(e.target.value),className:\"border-gray-300 focus:ring-purple-500 focus:border-purple-500\"})]}),m&&(0,n.jsx)(\"div\",{className:\"text-red-500 text-sm mt-2\",children:m}),(0,n.jsxs)(\"div\",{className:\"space-y-2\",children:[(0,n.jsx)(\"h4\",{className:\"text-sm font-medium text-gray-700\",children:\"Select Audio Tracks:\"}),(0,n.jsx)(\"div\",{className:\"max-h-48 overflow-y-auto overflow-x-hidden border border-gray-200 rounded-md bg-white\",children:l.map(t=>(0,n.jsxs)(Y.E.div,{className:\"flex items-center p-3 cursor-pointer \".concat(e.some(e=>e.id===t.id)?\"bg-purple-100\":\"hover:bg-gray-50\"),onClick:()=>w(t),whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,n.jsx)(\"img\",{src:t.image,alt:t.title,className:\"w-12 h-12 object-cover rounded-md mr-3\"}),(0,n.jsxs)(\"div\",{className:\"flex-grow\",children:[(0,n.jsx)(\"h3\",{className:\"text-sm font-medium text-gray-800\",children:t.title}),(0,n.jsx)(\"p\",{className:\"text-xs text-gray-500\",children:t.description})]}),e.some(e=>e.id===t.id)&&(0,n.jsx)(S.Z,{className:\"h-5 w-5 text-purple-500 ml-2\"})]},t.id))})]}),(0,n.jsx)(q.M,{children:e.length>0&&(0,n.jsxs)(Y.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:\"space-y-2 max-h-24 overflow-y-auto\",children:[(0,n.jsx)(\"h4\",{className:\"text-sm font-medium text-gray-700\",children:\"Selected Tracks:\"}),(0,n.jsx)(\"div\",{className:\"flex flex-wrap gap-2\",children:e.map(e=>(0,n.jsxs)(Y.E.div,{className:\"bg-purple-100 text-purple-800 text-sm font-medium px-3 py-1 rounded-full flex items-center\",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},children:[e.title,(0,n.jsx)(eQ.Z,{className:\"h-4 w-4 ml-2 cursor-pointer text-purple-600 hover:text-purple-800\",onClick:t=>{t.stopPropagation(),w(e)}})]},e.id))})]})})]})]}),(0,n.jsxs)(eu,{children:[(0,n.jsx)(eh,{className:\"bg-gray-200 text-gray-800 hover:bg-gray-300\",children:\"Cancel\"}),(0,n.jsx)(ex,{className:\"bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600\",disabled:!s||0===e.length,onClick:v,children:c?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.Z,{className:\"animate-spin text-white w-20\"})}):\"Create Playlist\"})]})]})]})},e2=a(40933),e1=a(51077),e5=a(97334),e6=a.n(e5);let e3=e=>{let{song:t,isPlaying:a,onPlay:i}=e;return(0,n.jsxs)(Y.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:\"bg-white rounded-lg shadow-md overflow-hidden flex items-center p-4 mb-4 hover:shadow-lg transition-shadow duration-300\",children:[(0,n.jsx)(\"img\",{src:t.imageUrl,alt:t.name,className:\"w-16 h-16 rounded-md object-cover mr-4\"}),(0,n.jsxs)(\"div\",{className:\"flex-grow\",children:[(0,n.jsx)(\"h3\",{className:\"text-lg font-semibold mb-1\",children:t.name}),(0,n.jsx)(\"p\",{className:\"text-sm text-gray-600 line-clamp-1\",children:t.description})]}),(0,n.jsxs)(\"div\",{className:\"flex items-center space-x-4\",children:[(0,n.jsxs)(\"div\",{className:\"text-right\",children:[(0,n.jsxs)(\"p\",{className:\"text-sm text-gray-500 flex items-center\",children:[(0,n.jsx)(e2.Z,{className:\"w-4 h-4 mr-1\"}),\" \",t.rentDuration.toString(),\" \",\"days\"]}),(0,n.jsxs)(\"p\",{className:\"text-sm text-gray-500 flex items-center\",children:[(0,n.jsx)(e1.Z,{className:\"w-4 h-4 mr-1\"}),\" \",eY.dF(t.price),\" MSX\"]})]}),(0,n.jsx)(L,{onClick:()=>i(t.cid,t),size:\"sm\",variant:a?\"default\":\"outline\",className:\"min-w-[40px]\",children:a?(0,n.jsx)(s.Z,{className:\"h-4 w-4\"}):(0,n.jsx)(eB.Z,{className:\"h-4 w-4\"})})]})]})};var e4=()=>{let{ready:e,authenticated:t}=(0,j.sv)(),{wallets:a}=(0,j.rB)(),i=a[0],[s,r]=(0,o.useState)(null),[l,d]=(0,o.useState)([]),[c,p]=(0,o.useState)(null),u=async e=>{try{let t=await (null==i?void 0:i.getEthersProvider());if(!t)throw Error(\"Provider is not available\");let a=await t.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),s=e.map(async e=>{let t=await n.getNFTMetadata(e);return{tokenId:e,price:t[0],name:t[3],description:t[4],imageUrl:t[5],rentPrice:t[8],rentDuration:t[9],owner:t[10],cid:t[12].toString()}}),r=await Promise.all(s);d(r)}catch(e){console.error(\"Error fetching metadata:\",e)}},m=async()=>{try{let{data:e}=await eN.Z.get(\"/api/getPlaylist/\".concat(i.address));if(console.log(\"Playlist data:\",e),r(e),e.playlistame&&e.playlistame.length>0){let t=e.playlistame[0],a=e.Randomsalt;console.log(\"Sending to backend:\",{playlistName:t,random:a});try{let e=await eN.Z.post(\"/api/getSound\",e6().stringify({random:a,playName:t}),{headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"}});if(console.log(\"Response from getSound:\",e.data),e.data.playlistData){let t=e.data.playlistData.split(\",\").map(Number);await u(t)}}catch(e){console.error(\"Error sending data:\",e)}}else console.log(\"No playlists found\")}catch(e){console.error(\"Error fetching playlist:\",e)}},y=(0,eL.I0)(),x=(e,t)=>{console.log(e);let a=Number(e);console.log(a),console.log(t),y((0,eZ.SK)({uri:\"/api/hashsong/\".concat(a),isPlaying:!0,index:0,coverImage:t.imageUrl,title:t.name,artist:t.description}))};return((0,o.useEffect)(()=>{e&&t&&(null==i?void 0:i.address)!==void 0&&m()},[i,e,t]),e&&t&&(null==i?void 0:i.address)!==void 0)?(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:[(0,n.jsx)(Y.E.div,{className:\"mt-10 scroll-m-20 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\",variants:{hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}},children:s&&s.playlistame&&s.playlistame.length>0?s.playlistame[0]:\"Your Playlist\"}),(0,n.jsx)(\"div\",{className:\"container mx-auto px-4 py-8 max-w-3xl\",children:(0,n.jsx)(Y.E.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},children:s&&s.playlistame&&s.playlistame.length>0?(0,n.jsx)(\"div\",{children:l.length>0?(0,n.jsx)(\"div\",{className:\"space-y-4\",children:l.map(e=>(0,n.jsx)(e3,{song:e,isPlaying:c===e.tokenId,onPlay:x},e.tokenId))}):(0,n.jsx)(\"p\",{className:\"text-xl text-center text-gray-600\",children:\"No tracks in this playlist yet.\"})}):(0,n.jsxs)(\"div\",{className:\"text-center\",children:[(0,n.jsx)(\"h2\",{className:\"text-3xl font-bold mb-4\",children:\"No Playlists Yet\"}),(0,n.jsx)(\"p\",{className:\"text-xl text-gray-600 mb-4\",children:\"Create your first playlist to get started!\"}),(0,n.jsx)(\"p\",{className:\"mb-8 max-w-md mx-auto text-gray-500\",children:\"Note: you can only create playlist when you have at least one track purchased.\"}),(0,n.jsx)(e0,{})]})})})]}):(0,n.jsx)(\"div\",{children:\"Loading...\"})},e8=()=>{let[e,t]=(0,o.useState)([]),[a,i]=(0,o.useState)(!0),[r,l]=(0,o.useState)(null),[d,c]=(0,o.useState)({}),{authenticated:p,ready:m}=(0,j.sv)(),{wallets:y}=(0,j.rB)(),x=y[0],h=(0,eL.I0)(),f=async()=>{try{let e=await (null==x?void 0:x.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let a=await e.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a),i=await n.getWalletPurchasedNFTs(x.address),s=i.map(e=>n.nftMetadata(e)),r=(await Promise.all(s)).map((e,t)=>({id:i[t].toString(),tokenId:e[2],title:e[3],description:e[4],image:e[5],price:e[0],rentPrice:e[8],rentDuration:e[9],owner:e[10],cid:e[12].toString()}));t(r)}catch(e){console.error(\"Error fetching purchased songs:\",e),eC.A.error(\"Failed to fetch purchased songs. Please try again.\")}finally{i(!1)}};(0,o.useEffect)(()=>{m&&p&&(null==x?void 0:x.address)&&f()},[m,p,null==x?void 0:x.address]);let g=e=>{let t=Number(e.cid);console.log(t),h((0,eZ.SK)({uri:\"/api/hashsong/\".concat(t),isPlaying:!0,index:0,coverImage:e.image,title:e.title,artist:e.description})),l(r===e.id?null:e.id)};return m&&p&&(null==x?void 0:x.address)?(0,n.jsxs)(Y.E.div,{className:\"w-full flex flex-col gap-6 pb-32 h-[85vh] overflow-y-auto scrollbar-hide\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:[(0,n.jsx)(Y.E.div,{className:\"mt-10 scroll-m-20 mb-6 border-b pb-4 text-3xl font-semibold tracking-tight transition-colors first:mt-0 w-full flex items-center justify-between sticky top-0 z-50 bg-background\",variants:{hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}},children:\"Your Purchased Songs\"}),a?(0,n.jsx)(\"div\",{className:\"flex justify-center items-center h-64\",children:(0,n.jsx)(u.Z,{className:\"animate-spin text-purple-500 w-8 h-8\"})}):e.length>0?(0,n.jsx)(\"div\",{className:\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 p-6\",children:e.map(e=>(0,n.jsxs)(Y.E.div,{className:\"bg-white rounded-xl border overflow-hidden hover:shadow-xl transition-all duration-300\",whileHover:{y:-5,scale:1.02},children:[(0,n.jsxs)(\"div\",{className:\"aspect-w-1 aspect-h-1 relative\",children:[!d[e.id]&&(0,n.jsx)(\"div\",{className:\"absolute inset-0 flex items-center justify-center bg-gray-100\",children:(0,n.jsx)(u.Z,{className:\"animate-spin text-purple-500 w-10 h-10\"})}),console.log(e),(0,n.jsx)(\"img\",{src:e.image,alt:e.title,className:\"w-full h-full object-cover aspect-square transition-opacity duration-300 \".concat(d[e.id]?\"opacity-100\":\"opacity-0\"),onLoad:()=>c(t=>({...t,[e.id]:!0})),onError:t=>{console.error(\"Image load error:\",t),t.target.onerror=null,t.target.src=\"/path/to/default-image.jpg\",c(t=>({...t,[e.id]:!0}))}})]}),(0,n.jsxs)(\"div\",{className:\"p-3\",children:[(0,n.jsx)(\"h3\",{className:\"text-xl font-bold text-gray-800 mb-1 truncate\",children:e.title}),(0,n.jsx)(\"p\",{className:\"text-gray-600 text-sm mb-4 line-clamp-2\",children:e.description}),(0,n.jsxs)(\"div\",{className:\"flex items-center justify-between\",children:[(0,n.jsx)(\"span\",{className:\"text-sm text-purple-600 font-medium\",children:T(e.owner,4,4)||\"Unknown Artist\"}),(0,n.jsx)(L,{onClick:()=>g(e),size:\"sm\",variant:r===e.id?\"default\":\"outline\",className:\"rounded-full hover:bg-purple-100 hover:text-black transition-colors\",children:r===e.id?(0,n.jsx)(s.Z,{className:\"h-5 w-5 text-white\"}):(0,n.jsx)(eB.Z,{className:\"h-5 w-5 text-purple-700\"})})]})]})]},e.id))}):(0,n.jsxs)(\"div\",{className:\"text-center text-gray-600\",children:[(0,n.jsx)(_.Z,{className:\"mx-auto text-gray-400 w-16 h-16 mb-4\"}),(0,n.jsx)(\"p\",{className:\"text-xl\",children:\"You haven't purchased any songs yet.\"})]})]}):(0,n.jsx)(\"div\",{className:\"flex justify-center items-center h-64\",children:(0,n.jsx)(u.Z,{className:\"animate-spin text-purple-500 w-8 h-8\"})})};function e9(e){let{w0:t,selectedMode:a,setSelectedMode:i,selectedLayout:s,setSelectedLayout:r}=e,{authenticated:l,ready:d}=(0,j.sv)(),p=(0,eL.I0)(),[u,y]=(0,o.useState)(0),x=(0,eL.v9)(e=>e.musicPlayer),[h,f]=(0,o.useState)(0),[g,N]=(0,o.useState)(!0),[T,k]=(0,o.useState)([]),E=async e=>{N(!0);try{let a=await (null==t?void 0:t.getEthersProvider());if(!a)throw Error(\"Provider is not available\");let n=await a.getSigner();if(!n)throw Error(\"Signer is not available\");let i=new eP.CH(eE,eS,n),s=await i.balanceOf(e);f(s.toString())}catch(e){console.error(\"Error fetching MusicX balance:\",e),f(0)}finally{N(!1)}},S=async()=>{try{let e=await (null==t?void 0:t.getEthersProvider());if(!e)throw Error(\"Provider is not available\");let a=await e.getSigner();if(!a)throw Error(\"Signer is not available\");let n=new eP.CH(eT,ek,a);console.log(\"hdbs\");let i=await n.getWalletPurchasedNFTs(t.address),s=i.map(e=>n.nftMetadata(e));console.log(s);let r=(await Promise.all(s)).map((e,t)=>({id:i[t].toString(),title:e[3],description:e[4],image:e[5],cid:e[12].toString()}));k(r)}catch(e){console.error(\"Error fetching purchased songs:\",e)}};(0,o.useEffect)(()=>{d&&l&&(null==t?void 0:t.address)!==void 0&&(console.log(\"Wallet Address: \",t.address),E(t.address),S())},[t,d,l,a]);let P=e=>{let{title:t,artist:a,soundUri:n,cover:i}=e;p((0,eZ.SK)({uri:n,isPlaying:!0,index:0,coverImage:i,title:t,artist:a}))},C=[{name:\"Home\",icon:K.In4},{name:\"Explore\",icon:J.Mam},{name:\"Profile\",icon:X.Z},{name:\"Playlist\",icon:eb.Dk$},{name:\"My Songs\",icon:_.Z}],R=e=>{r(e.toLowerCase())};return(0,n.jsxs)(v,{direction:\"horizontal\",children:[(0,n.jsxs)(b,{defaultSize:50,children:[(0,n.jsxs)(Y.E.div,{className:\"w-full p-6 dark:bg-muted/10 bg-muted border-b flex items-center justify-between\",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:[(0,n.jsx)(Y.E.div,{className:\"flex items-center gap-3\",initial:{x:-20,opacity:0},animate:{x:0,opacity:1},transition:{delay:.2},children:(0,n.jsx)(\"p\",{className:\"\",children:\"OwnSound\"})}),(0,n.jsx)(q.M,{mode:\"wait\",children:g?(0,n.jsx)(Y.E.div,{className:\"grid items-center justify-end\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},children:(0,n.jsx)(\"div\",{className:\"flex\",children:(0,n.jsx)(m,{noWidth:!0})})},\"loader\"):h<=0?(0,n.jsx)(Y.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},children:(0,n.jsx)(e_,{})},\"contact\"):(0,n.jsxs)(Y.E.div,{className:\"flex items-center gap-2 font-semibold text-primary\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},children:[(0,n.jsx)(Y.E.p,{className:\"text-primary\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:\"0\"===h?\"0\":h.slice(0,-18)}),(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.4,type:\"spring\",stiffness:200},children:(0,n.jsx)(I.default,{src:\"/icons/token-coin.svg\",width:25,height:25,alt:\"coin\"})})]},\"balance\")})]}),(0,n.jsx)(Y.E.div,{className:\"flex flex-col space-y-6 p-4 mt-4\",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,staggerChildren:.1},children:C.map((e,t)=>{let a=e.icon;return(0,n.jsxs)(Y.E.div,{className:\"flex items-center space-x-2 cursor-pointer transition-transform transform \".concat(s===e.name.toLowerCase()?\"text-primary\":\"text-muted-foreground\"),onClick:()=>R(e.name),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6+.1*t},whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,n.jsx)(a,{className:\"h-6 w-6\"}),(0,n.jsx)(\"span\",{children:e.name})]},e.name)})})]}),(0,n.jsx)(w,{}),(0,n.jsx)(b,{defaultSize:120,children:(0,n.jsxs)(\"div\",{className:\"p-6\",children:[\"home\"===s&&(0,n.jsx)(\"div\",{className:\"mt-10\",children:(0,n.jsx)(e$,{})}),\"song\"===s&&(0,n.jsx)(\"div\",{className:\"h-full flex items-center justify-center mt-10\",children:(0,n.jsx)(\"img\",{src:x.coverImage||\"/nft.avif\",width:600,height:600,className:\"rounded-lg drop-shadow-md aspect-square\"})}),\"profile\"===s&&(0,n.jsx)(eU,{}),\"explore\"===s&&(0,n.jsx)(eG,{setSelectedLayout:r,w0:t}),s.includes(\"view-song\")&&(0,n.jsx)(eX,{selectedLayout:s,setSelectedLayout:r,getMusicXTokenBalance:E}),\"playlist\"===s&&(0,n.jsx)(e4,{selectedLayout:s,setSelectedLayout:r}),\"my songs\"===s&&(0,n.jsx)(e8,{selectedLayout:s,setSelectedLayout:r})]})}),(0,n.jsx)(w,{}),(0,n.jsx)(b,{defaultSize:50,children:(0,n.jsx)(v,{direction:\"vertical\",children:(0,n.jsxs)(b,{defaultSize:75,children:[(0,n.jsx)(H,{w0:t}),(0,n.jsxs)(\"div\",{className:\"p-6 flex items-center gap-4\",children:[(0,n.jsx)(G,{className:\"songs\"===a?\"bg-primary text-white cursor-pointer\":\"bg-transparent text-foreground hover:bg-muted cursor-pointer\",onClick:()=>i(\"songs\"),children:\"Songs\"}),(0,n.jsx)(G,{className:\"playlists\"===a?\"bg-primary text-white cursor-pointer\":\"bg-transparent text-foreground hover:bg-muted cursor-pointer\",onClick:()=>i(\"playlists\"),children:\"Playlists\"})]}),(0,n.jsx)(\"div\",{className:\"h-[85vh] overflow-y-auto scrollbar-hide\",children:\"playlists\"===a?(0,n.jsx)(e7,{playlists:c,clickedIdx:u,handleSelectedMusicPlay:P,setClickedIdx:y}):(0,n.jsx)(te,{purchasedSongs:T,clickedIdx:u,handleSelectedMusicPlay:P,setClickedIdx:y})})]})})})]})}let e7=e=>{let{playlists:t,clickedIdx:a,setClickedIdx:r,handleSelectedMusicPlay:l}=e,[d,c]=(0,o.useState)(null),p=e=>{c(e)},u={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},m={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}};return(0,n.jsx)(Y.E.div,{className:\"px-6\",variants:u,initial:\"hidden\",animate:\"visible\",children:(0,n.jsx)(q.M,{mode:\"wait\",children:d?(0,n.jsxs)(Y.E.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{type:\"spring\",stiffness:300,damping:30},className:\"space-y-4\",children:[(0,n.jsxs)(\"div\",{className:\"flex items-center gap-3 mb-6\",children:[(0,n.jsx)(Y.E.div,{whileHover:{scale:1.1},whileTap:{scale:.9},children:(0,n.jsx)(W.Z,{className:\"w-4 h-4 cursor-pointer\",onClick:()=>c(null)})}),(0,n.jsx)(Y.E.h2,{className:\"text-xl font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:d.name})]}),(0,n.jsx)(Y.E.div,{variants:u,initial:\"hidden\",animate:\"visible\",className:\"space-y-4\",children:d.tracks.map((e,t)=>(0,n.jsxs)(Y.E.div,{variants:m,whileHover:{scale:1.02},className:\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border\",children:[(0,n.jsxs)(\"div\",{className:\"w-full flex items-center gap-4\",children:[(0,n.jsx)(Y.E.img,{src:e.cover,alt:e.title,className:\"w-12 h-12 rounded-md\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{className:\"font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:e.title}),(0,n.jsx)(Y.E.p,{className:\"text-sm text-gray-500\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:e.artist})]})]}),(0,n.jsx)(\"div\",{className:\"grid place-items-center\",children:(0,n.jsx)(Y.E.div,{className:\"rounded-full p-1.5 bg-primary cursor-pointer\",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>{l(t),r(t)},children:(0,n.jsx)(q.M,{mode:\"wait\",children:a===t?(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(s.Z,{className:\"w-3 h-3 text-white\"})},\"pause\"):(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(i.Z,{className:\"w-3 h-3 text-white\"})},\"play\")})})})]},t))})]},\"playlist\"):(0,n.jsx)(Y.E.div,{variants:u,className:\"space-y-4\",children:t.map((e,t)=>(0,n.jsx)(Y.E.div,{variants:m,whileHover:{scale:1.02},className:\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border cursor-pointer\",onClick:()=>p(e),children:(0,n.jsxs)(\"div\",{className:\"w-full flex items-center gap-4\",children:[(0,n.jsx)(Y.E.img,{src:e.image,alt:\"cover\",className:\"w-12 h-12 rounded-md\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{className:\"font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:e.name}),(0,n.jsxs)(Y.E.p,{className:\"text-sm text-gray-500\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:[e.tracks.length,\" songs\"]})]})]})},t))},\"playlists\")})})},te=e=>{let{purchasedSongs:t,clickedIdx:a,setClickedIdx:r,handleSelectedMusicPlay:l}=e;console.log(t);let o={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:24}}};return(0,n.jsx)(Y.E.div,{className:\"px-6 space-y-4\",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:\"hidden\",animate:\"visible\",children:t.length>0?t.map((e,t)=>(0,n.jsxs)(Y.E.div,{variants:o,whileHover:{scale:1.02},className:\"flex w-full items-center justify-between p-4 hover:bg-muted rounded-md border\",children:[(0,n.jsxs)(\"div\",{className:\"w-full flex items-center gap-4\",children:[(0,n.jsx)(Y.E.img,{src:e.image,alt:e.title,className:\"w-12 h-12 rounded-md object-cover\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{className:\"font-semibold\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:e.title}),(0,n.jsx)(Y.E.p,{className:\"text-sm text-gray-500\",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:e.description})]})]}),(0,n.jsx)(\"div\",{className:\"grid place-items-center\",children:(0,n.jsx)(Y.E.div,{className:\"rounded-full p-1.5 bg-primary cursor-pointer\",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>{l({title:e.title,artist:e.description,soundUri:\"/api/hashsong/\".concat(Number(e.cid)),cover:e.image}),r(t)},children:(0,n.jsx)(q.M,{mode:\"wait\",children:a===t?(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(s.Z,{className:\"w-3 h-3 text-white\"})},\"pause\"):(0,n.jsx)(Y.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:(0,n.jsx)(i.Z,{className:\"w-3 h-3 text-white\"})},\"play\")})})})]},e.id)):(0,n.jsx)(Y.E.div,{variants:o,className:\"text-center text-gray-500 py-8\",children:\"No purchased songs found.\"})})};var tt=a(87138),ta=()=>{let e=(0,eL.v9)(e=>e.musicPlayer),[t,a]=(0,o.useState)(\"home\"),[i,s]=(0,o.useState)(\"songs\"),{ready:r,authenticated:l,login:d}=(0,j.sv)(),{wallets:c}=(0,j.rB)(),u=c[0];return r?l?(0,n.jsxs)(\"div\",{className:\"h-screen\",children:[(0,n.jsx)(e9,{w0:u,musicPlayer:e,selectedMode:i,setSelectedMode:s,selectedLayout:t,setSelectedLayout:a}),(0,n.jsxs)(Y.E.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:\"spring\",stiffness:300,damping:30},className:\"fixed w-full bottom-0 border-t p-4 bg-background backdrop-blur-xl grid grid-cols-3\",children:[(0,n.jsx)(q.M,{children:(0,n.jsxs)(Y.E.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},className:\"flex gap-3 items-center z-50\",children:[(0,n.jsx)(Y.E.img,{src:e.coverImage||\"/nft.avif\",alt:\"cover\",className:\"w-12 h-12 rounded-md\",whileHover:{scale:1.1},whileTap:{scale:.9}}),(0,n.jsxs)(\"div\",{children:[(0,n.jsx)(Y.E.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},className:\"font-semibold\",children:e.title||\"Yo! Click on music to play\"}),(0,n.jsx)(Y.E.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:\"text-sm\",children:e.artist||\"Follow Qoneqt on instagram\"})]})]})}),(0,n.jsx)(Y.E.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.1},className:\"w-[36rem] h-full\",children:(0,n.jsx)(\"div\",{children:(0,n.jsx)(p,{url:e.uri,musicPlayer:e})})}),(0,n.jsx)(\"div\",{})]})]}):(0,n.jsxs)(\"div\",{className:\"relative flex min-h-screen flex-col items-center justify-center p-3.5\",children:[(0,n.jsxs)(\"main\",{className:\"flex flex-col items-center gap-y-9\",children:[(0,n.jsxs)(\"div\",{className:\"max-w-lg space-y-3.5 text-center\",children:[(0,n.jsx)(\"h1\",{className:\"text-5xl font-semibold tracking-tight md:text-7xl\",children:\"OwnSound\"}),(0,n.jsx)(\"p\",{className:\"md:text-balance text-muted-foreground md:text-xl\",children:\"Encrypted Melodies Unlimited Possibilities. Leveraging MusicX, Polygon, Inco & The Graph.\"})]}),(0,n.jsx)(\"div\",{className:\"flex items-center gap-3.5\",children:(0,n.jsx)(L,{onClick:d,children:\"Connect Wallet\"})})]}),(0,n.jsxs)(\"footer\",{className:\"absolute bottom-3.5 mx-auto flex items-center gap-[0.5ch] text-center text-muted-foreground\",children:[(0,n.jsx)(\"span\",{children:\"Powered by\"}),(0,n.jsx)(tt.default,{href:\"https://qoneqt.com/\",target:\"_blank\",className:\"group flex items-center text-primary font-semibold gap-[0.5ch] underline-offset-4 hover:underline\",children:\"Qoneqt.\"})]})]}):(0,n.jsx)(\"div\",{className:\"w-full grid items-center justify-center min-h-screen\",children:(0,n.jsx)(m,{})})}},99782:function(e,t,a){\"use strict\";a.d(t,{SK:function(){return l}});let n=(0,a(66862).oM)({name:\"musicPlayer\",initialState:{uri:\"/audio/chin-tapak-dum-dum.mp3\",isPlaying:!0,index:0,coverImage:\"\",title:\"\",artist:\"\"},reducers:{setUri:(e,t)=>{e.uri=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIndex:(e,t)=>{e.index=t.payload},setMusicPlayer:(e,t)=>({...e,...t.payload})}}),{setUri:i,setIsPlaying:s,setIndex:r,setMusicPlayer:l}=n.actions;t.ZP=n.reducer}},function(e){e.O(0,[269,764,51,452,505,240,994,614,705,202,112,971,23,744],function(){return e(e.s=84285)}),_N_E=e.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/dc112a36-9245e58b51327391.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{71451:function(module,exports,__webpack_require__){\"undefined\"!=typeof navigator&&function(t,e){module.exports=e()}(0,function(){\"use strict\";var svgNS=\"http://www.w3.org/2000/svg\",locationHref=\"\",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,s,r=t.length;for(i=0;i<r;i+=1)for(var a in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,a)&&(e.prototype[a]=s[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,s=0,r=[];switch(t){case\"int16\":case\"uint8c\":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)r.push(i);return r}function e(e,i){return\"float32\"===e?new Float32Array(i):\"int16\"===e?new Int16Array(i):\"uint8c\"===e?new Uint8ClampedArray(i):t(e,i)}return\"function\"==typeof Uint8ClampedArray&&\"function\"==typeof Float32Array?e:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1=\"\",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=[\"abs\",\"acos\",\"acosh\",\"asin\",\"asinh\",\"atan\",\"atanh\",\"atan2\",\"ceil\",\"cbrt\",\"expm1\",\"clz32\",\"cos\",\"cosh\",\"exp\",\"floor\",\"fround\",\"hypot\",\"imul\",\"log\",\"log1p\",\"log2\",\"log10\",\"max\",\"min\",\"pow\",\"random\",\"round\",\"sign\",\"sin\",\"sinh\",\"sqrt\",\"tan\",\"tanh\",\"trunc\",\"E\",\"LN10\",\"LN2\",\"LOG10E\",\"LOG2E\",\"PI\",\"SQRT1_2\",\"SQRT2\"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if(\"object\"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position=\"absolute\",t.style.top=0,t.style.left=0,t.style.display=\"block\",t.style.transformOrigin=\"0 0\",t.style.webkitTransformOrigin=\"0 0\",t.style.backfaceVisibility=\"visible\",t.style.webkitBackfaceVisibility=\"visible\",t.style.transformStyle=\"preserve-3d\",t.style.webkitTransformStyle=\"preserve-3d\",t.style.mozTransformStyle=\"preserve-3d\"}function BMEnterFrameEvent(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type=\"renderFrameError\",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type=\"configError\",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return t+=1,idPrefix$1+\"__lottie_element_\"+t}}();function HSVtoRGB(t,e,i){var s,r,a,n,o,h,l,p;switch(n=Math.floor(6*t),o=6*t-n,h=i*(1-e),l=i*(1-o*e),p=i*(1-(1-o)*e),n%6){case 0:s=i,r=p,a=h;break;case 1:s=l,r=i,a=h;break;case 2:s=h,r=i,a=p;break;case 3:s=h,r=l,a=i;break;case 4:s=p,r=h,a=i;break;case 5:s=i,r=h,a=l}return[s,r,a]}function RGBtoHSV(t,e,i){var s,r=Math.max(t,e,i),a=Math.min(t,e,i),n=r-a,o=0===r?0:n/r,h=r/255;switch(r){case a:s=0;break;case t:s=(e-i+n*(e<i?6:0))/(6*n);break;case e:s=(i-t+2*n)/(6*n);break;case i:s=(t-e+4*n)/(6*n)}return[s,o,h]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?\"0\"+e:e;return function(t,e,s){return t<0&&(t=0),e<0&&(e=0),s<0&&(s=0),\"#\"+i[t]+i[e]+i[s]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var dataManager=function(){var t,e,i=1,s=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function n(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob([\"var _workerSelf = self; self.onmessage = \",e.toString()],{type:\"text/javascript\"});return new Worker(URL.createObjectURL(i))}return t=e,r}function o(){e||((e=n(function(t){function e(){function t(e,i){var n,o,h,l,p,f,c=e.length;for(o=0;o<c;o+=1)if(\"ks\"in(n=e[o])&&!n.completed){if(n.completed=!0,n.hasMask){var u=n.masksProperties;for(h=0,l=u.length;h<l;h+=1)if(u[h].pt.k.i)a(u[h].pt.k);else for(p=0,f=u[h].pt.k.length;p<f;p+=1)u[h].pt.k[p].s&&a(u[h].pt.k[p].s[0]),u[h].pt.k[p].e&&a(u[h].pt.k[p].e[0])}0===n.ty?(n.layers=s(n.refId,i),t(n.layers,i)):4===n.ty?r(n.shapes):5===n.ty&&m(n)}}function e(e,i){if(e){var r=0,a=e.length;for(r=0;r<a;r+=1)1===e[r].t&&(e[r].data.layers=s(e[r].data.refId,i),t(e[r].data.layers,i))}}function i(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}function s(t,e){var s=i(t,e);return s?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function r(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if(\"sh\"===t[e].ty){if(t[e].ks.k.i)a(t[e].ks.k);else for(i=0,s=t[e].ks.k.length;i<s;i+=1)t[e].ks.k[i].s&&a(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&a(t[e].ks.k[i].e[0])}else\"gr\"===t[e].ty&&r(t[e].it)}function a(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split(\".\"):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),h=function(){var t=[4,7,99];return function(e){if(e.chars&&!n(t,e.v)){var i,s=e.chars.length;for(i=0;i<s;i+=1){var a=e.chars[i];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[i].t||(a.data.shapes.push({ty:\"no\"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:\"tr\"})))}}}}(),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;\"number\"==typeof e.a&&(e.a={a:0,k:e.a}),\"number\"==typeof e.p&&(e.p={a:0,k:e.p}),\"number\"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var i,s,r,a=t.length;for(i=0;i<a;i+=1)if(\"gr\"===t[i].ty)e(t[i].it);else if(\"fl\"===t[i].ty||\"st\"===t[i].ty){if(t[i].c.k&&t[i].c.k[0].i)for(s=0,r=t[i].c.k.length;s<r;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),f=function(){var t=[4,4,18];function e(t){var i,s,r;for(i=t.length-1;i>=0;i-=1)if(\"sh\"===t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(s=0,r=t[i].ks.k.length;s<r;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed)}else\"gr\"===t[i].ty&&e(t[i].it)}function i(t){var i,s,r,a,n,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=0,a=l.length;r<a;r+=1)if(l[r].pt.k.i)l[r].pt.k.c=l[r].cl;else for(n=0,o=l[r].pt.k.length;n<o;n+=1)l[r].pt.k[n].s&&(l[r].pt.k[n].s[0].c=l[r].cl),l[r].pt.k[n].e&&(l[r].pt.k[n].e[0].c=l[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}();function c(i){i.__complete||(p(i),o(i),h(i),l(i),f(i),t(i.layers,i.assets),e(i.chars,i.assets),i.__complete=!0)}function m(t){0===t.t.a.length&&t.t.p}var u={};return u.completeData=c,u.checkColors=p,u.checkChars=h,u.checkPathProperties=l,u.checkShapes=f,u.completeLayers=t,u}if(a.dataManager||(a.dataManager=e()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader(\"content-type\");return e&&\"json\"===t.responseType&&-1!==e.indexOf(\"json\")||t.response&&\"object\"===_typeof$5(t.response)?t.response:t.response&&\"string\"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,r){var a,n=new XMLHttpRequest;try{n.responseType=\"json\"}catch(t){}n.onreadystatechange=function(){if(4===n.readyState){if(200===n.status)s(a=t(n));else try{a=t(n),s(a)}catch(t){r&&r(t)}}};try{n.open(\"GET\",e,!0)}catch(t){n.open(\"GET\",i+\"/\"+e,!0)}n.send()}}}()),\"loadAnimation\"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:\"success\"})},function(){a.postMessage({id:t.data.id,status:\"error\"})});else if(\"complete\"===t.data.type){var i=t.data.animation;a.dataManager.completeData(i),a.postMessage({id:t.data.id,payload:i,status:\"success\"})}else\"loadData\"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.postMessage({id:t.data.id,payload:e,status:\"success\"})},function(){a.postMessage({id:t.data.id,status:\"error\"})})})).onmessage=function(t){var e=t.data,i=e.id,r=s[i];s[i]=null,\"success\"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function h(t,e){var r=\"processId_\"+(i+=1);return s[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,s){o();var r=h(i,s);e.postMessage({type:\"loadAnimation\",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,s){o();var r=h(i,s);e.postMessage({type:\"loadData\",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,s){o();var r=h(i,s);e.postMessage({type:\"complete\",animation:t,id:r})}}}(),ImagePreloader=function(){var t=function(){var t=createTag(\"canvas\");t.width=1,t.height=1;var e=t.getContext(\"2d\");return e.fillStyle=\"rgba(0,0,0,0)\",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s=\"\";if(t.e)s=t.p;else if(e){var r=t.p;-1!==r.indexOf(\"images/\")&&(r=r.split(\"/\")[1]),s=e+r}else s=i+(t.u?t.u:\"\")+t.p;return s}function r(t){var e=0,i=setInterval((function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function a(e){var i=s(e,this.assetsPath,this.path),r=createNS(\"image\");isSafari?this.testImageLoaded(r):r.addEventListener(\"load\",this._imageLoaded,!1),r.addEventListener(\"error\",(function(){a.img=t,this._imageLoaded()}).bind(this),!1),r.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var a={img:r,assetData:e};return a}function n(e){var i=s(e,this.assetsPath,this.path),r=createTag(\"img\");r.crossOrigin=\"anonymous\",r.addEventListener(\"load\",this._imageLoaded,!1),r.addEventListener(\"error\",(function(){a.img=t,this._imageLoaded()}).bind(this),!1),r.src=i;var a={img:r,assetData:e};return a}function o(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return dataManager.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function h(t,e){this.imagesLoadedCb=e;var i,s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&\"seq\"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))}function l(t){this.path=t||\"\"}function p(t){this.assetsPath=t||\"\"}function f(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function c(){this.imagesLoadedCb=null,this.images.length=0}function m(){return this.totalImages===this.loadedAssets}function u(){return this.totalFootages===this.loadedFootagesCount}function d(t,e){\"svg\"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function g(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=o.bind(this),this.assetsPath=\"\",this.path=\"\",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return g.prototype={loadAssets:h,setAssetsPath:p,setPath:l,loadedImages:m,loadedFootages:u,destroy:c,getAsset:f,createImgData:n,createImageData:a,imageLoaded:e,footageLoaded:i,setCacheType:d},g}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),(function(){this.removeEventListener(t,e)}).bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split(\"\\r\\n\"),s={},r=0,a=0;a<i.length;a+=1)2===(e=i[a].split(\":\")).length&&(s[e[0]]=e[1].trim(),r+=1);if(0===r)throw Error();return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var r=e[s],a={time:r.tm,duration:r.dr};try{a.payload=JSON.parse(e[s].cm)}catch(i){try{a.payload=t(e[s].cm)}catch(t){a.payload={name:e[s].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return\"canvas\";for(var t in renderers)if(renderers[t])return t;return\"\"}function _typeof$4(t){return(_typeof$4=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name=\"\",this.path=\"\",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath=\"\",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent(\"drawnFrame\",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=\"svg\";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,\"\"===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!(\"autoplay\"in t)||t.autoplay,this.name=t.name?t.name:\"\",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,\"autoloadSegments\")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf(\"\\\\\")?this.path=t.path.substr(0,t.path.lastIndexOf(\"\\\\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf(\"/\")+1),this.fileName=t.path.substr(t.path.lastIndexOf(\"/\")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(\".json\")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger(\"data_failed\")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&\"object\"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem(\"data-animation-path\")?s.getNamedItem(\"data-animation-path\").value:s.getNamedItem(\"data-bm-path\")?s.getNamedItem(\"data-bm-path\").value:s.getNamedItem(\"bm-path\")?s.getNamedItem(\"bm-path\").value:\"\",i.animType=s.getNamedItem(\"data-anim-type\")?s.getNamedItem(\"data-anim-type\").value:s.getNamedItem(\"data-bm-type\")?s.getNamedItem(\"data-bm-type\").value:s.getNamedItem(\"bm-type\")?s.getNamedItem(\"bm-type\").value:s.getNamedItem(\"data-bm-renderer\")?s.getNamedItem(\"data-bm-renderer\").value:s.getNamedItem(\"bm-renderer\")?s.getNamedItem(\"bm-renderer\").value:getRegisteredRenderer()||\"canvas\";var r=s.getNamedItem(\"data-anim-loop\")?s.getNamedItem(\"data-anim-loop\").value:s.getNamedItem(\"data-bm-loop\")?s.getNamedItem(\"data-bm-loop\").value:s.getNamedItem(\"bm-loop\")?s.getNamedItem(\"bm-loop\").value:\"\";\"false\"===r?i.loop=!1:\"true\"===r?i.loop=!0:\"\"!==r&&(i.loop=parseInt(r,10));var a=s.getNamedItem(\"data-anim-autoplay\")?s.getNamedItem(\"data-anim-autoplay\").value:s.getNamedItem(\"data-bm-autoplay\")?s.getNamedItem(\"data-bm-autoplay\").value:!s.getNamedItem(\"bm-autoplay\")||s.getNamedItem(\"bm-autoplay\").value;i.autoplay=\"false\"!==a,i.name=s.getNamedItem(\"data-name\")?s.getNamedItem(\"data-name\").value:s.getNamedItem(\"data-bm-name\")?s.getNamedItem(\"data-bm-name\").value:s.getNamedItem(\"bm-name\")?s.getNamedItem(\"bm-name\").value:\"\",\"false\"===(s.getNamedItem(\"data-anim-prerender\")?s.getNamedItem(\"data-anim-prerender\").value:s.getNamedItem(\"data-bm-prerender\")?s.getNamedItem(\"data-bm-prerender\").value:s.getNamedItem(\"bm-prerender\")?s.getNamedItem(\"bm-prerender\").value:\"\")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger(\"destroy\")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,r=s.length,a=t.layers,n=a.length;for(i=0;i<n;i+=1)for(e=0;e<r;){if(s[e].id===a[i].id){s[e]=a[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(e=0,r=t.assets.length;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments){this.trigger(\"data_ready\"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+\"_\"+this.segmentPos+\".json\";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger(\"data_failed\")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger(\"loaded_images\"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger(\"config_ready\"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||\"canvas\"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger(\"DOMLoaded\")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i=\"number\"==typeof t?t:void 0,s=\"number\"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger(\"enterFrame\"),this.renderFrame(),this.trigger(\"drawnFrame\")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){(!t||this.name===t)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger(\"_play\"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger(\"_active\")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1!==this.isPaused||(this.isPaused=!0,this.trigger(\"_pause\"),this._idle=!0,this.trigger(\"_idle\"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){if(isNaN(Number(t))){var s=this.getMarkerData(t);s&&this.goToAndStop(s.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger(\"loopComplete\"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger(\"loopComplete\"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger(\"complete\"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger(\"segmentStart\")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),\"object\"===_typeof$4(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){(!t||this.name===t)&&this.renderer&&(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(\"destroy\"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e=\"\";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf(\"images/\")&&(i=i.split(\"/\")[1]),e=this.assetsPath+i}else e=this.path+(t.u?t.u:\"\")+t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case\"enterFrame\":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case\"drawnFrame\":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case\"loopComplete\":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case\"complete\":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case\"segmentStart\":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case\"destroy\":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}\"enterFrame\"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),\"loopComplete\"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),\"complete\"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),\"segmentStart\"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),\"destroy\"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent(\"error\",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent(\"error\",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,s=0,r=0,a=!0,n=!1;function o(t){for(var i=0,r=t.target;i<s;)e[i].animation!==r||(e.splice(i,1),i-=1,s-=1,r.isPaused||f()),i+=1}function h(t,i){if(!t)return null;for(var r=0;r<s;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var a=new AnimationItem;return c(a,t),a.setData(t,i),a}function l(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s}function p(){r+=1,w()}function f(){r-=1}function c(t,i){t.addEventListener(\"destroy\",o),t.addEventListener(\"_active\",p),t.addEventListener(\"_idle\",f),e.push({elem:i,animation:t}),s+=1}function m(t){var e=new AnimationItem;return c(e,null),e.setParams(t),e}function u(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setSpeed(t,i)}function d(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setDirection(t,i)}function g(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)}function y(t){var o,h=t-i;for(o=0;o<s;o+=1)e[o].animation.advanceTime(h);i=t,r&&!n?window.requestAnimationFrame(y):a=!0}function v(t){i=t,window.requestAnimationFrame(y)}function b(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)}function x(t,i,r){var a;for(a=0;a<s;a+=1)e[a].animation.goToAndStop(t,i,r)}function _(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)}function k(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)}function C(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)}function P(t,e,i){var s,r=[].concat([].slice.call(document.getElementsByClassName(\"lottie\")),[].slice.call(document.getElementsByClassName(\"bodymovin\"))),a=r.length;for(s=0;s<a;s+=1)i&&r[s].setAttribute(\"data-bm-type\",i),h(r[s],t);if(e&&0===a){i||(i=\"svg\");var n=document.getElementsByTagName(\"body\")[0];n.innerText=\"\";var o=createTag(\"div\");o.style.width=\"100%\",o.style.height=\"100%\",o.setAttribute(\"data-bm-type\",i),n.appendChild(o),h(o,t)}}function A(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()}function w(){!n&&r&&a&&(window.requestAnimationFrame(v),a=!1)}function S(){n=!0}function D(){n=!1,w()}function T(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setVolume(t,i)}function M(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)}function E(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)}return t.registerAnimation=h,t.loadAnimation=m,t.setSpeed=u,t.setDirection=d,t.play=g,t.pause=b,t.stop=_,t.togglePause=k,t.searchAnimations=P,t.resize=A,t.goToAndStop=x,t.destroy=C,t.freeze=S,t.unfreeze=D,t.setVolume=T,t.mute=M,t.unmute=E,t.getRegisteredAnimations=l,t}(),BezierFactory=function(){var t={};t.getBezierEasing=i;var e={};function i(t,i,s,r,a){var n=a||(\"bez_\"+t+\"_\"+i+\"_\"+s+\"_\"+r).replace(/\\./g,\"p\");if(e[n])return e[n];var o=new y([t,i,s,r]);return e[n]=o,o}var s=4,r=.001,a=1e-7,n=10,o=11,h=.1,l=\"function\"==typeof Float32Array;function p(t,e){return 1-3*e+3*t}function f(t,e){return 3*e-6*t}function c(t){return 3*t}function m(t,e,i){return((p(e,i)*t+f(e,i))*t+c(e))*t}function u(t,e,i){return 3*p(e,i)*t*t+2*f(e,i)*t+c(e)}function d(t,e,i,s,r){var o,h,l=0;do(o=m(h=e+(i-e)/2,s,r)-t)>0?i=h:e=h;while(Math.abs(o)>a&&++l<n);return h}function g(t,e,i,r){for(var a=0;a<s;++a){var n=u(e,i,r);if(0===n)break;var o=m(e,i,r)-t;e-=o/n}return e}function y(t){this._p=t,this._mSampleValues=l?new Float32Array(o):Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],r=this._p[3];return(this._precomputed||this._precompute(),e===i&&s===r)?t:0===t?0:1===t?1:m(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,(t!==e||i!==s)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<o;++i)this._mSampleValues[i]=m(i*h,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,a=0,n=1,l=o-1;n!==l&&s[n]<=t;++n)a+=h;var p=a+(t-s[--n])/(s[n+1]-s[n])*h,f=u(p,e,i);return f>=r?g(t,p,e,i):0===f?p:d(t,a,a+h,e,i)}},t}(),pooling=function(){return{double:function(t){return t.concat(createSizedArray(t.length))}}}(),poolFactory=function(){return function(t,e,i){var s=0,r=t,a=createSizedArray(r);return{newElement:function(){var t;return s?(s-=1,t=a[s]):t=e(),t},release:function(t){s===r&&(a=pooling.double(a),r*=2),i&&i(t),a[s]=t,s+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray(\"float32\",getDefaultCurveSegments()),lengths:createTypedArray(\"float32\",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0})}();function bezFunction(){var t=Math;function e(t,e,i,s,r,a){var n=t*s+e*r+i*a-r*s-a*t-i*e;return n>-.001&&n<.001}function i(i,s,r,a,n,o,h,l,p){if(0===r&&0===o&&0===p)return e(i,s,a,n,h,l);var f,c=t.sqrt(t.pow(a-i,2)+t.pow(n-s,2)+t.pow(o-r,2)),m=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-r,2)),u=t.sqrt(t.pow(h-a,2)+t.pow(l-n,2)+t.pow(p-o,2));return(f=c>m?c>u?c-m-u:u-m-c:u>m?u-m-c:m-c-u)>-.0001&&f<1e-4}var s=function(){return function(t,e,i,s){var r,a,n,o,h,l,p=getDefaultCurveSegments(),f=0,c=[],m=[],u=bezierLengthPool.newElement();for(r=0,n=i.length;r<p;r+=1){for(a=0,h=r/(p-1),l=0;a<n;a+=1)o=bmPow(1-h,3)*t[a]+3*bmPow(1-h,2)*h*i[a]+3*(1-h)*bmPow(h,2)*s[a]+bmPow(h,3)*e[a],c[a]=o,null!==m[a]&&(l+=bmPow(c[a]-m[a],2)),m[a]=c[a];l&&(f+=l=bmSqrt(l)),u.percents[r]=h,u.lengths[r]=f}return u.addedLength=f,u}}();function r(t){var e,i=segmentsLengthPool.newElement(),r=t.c,a=t.v,n=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=s(a[e],a[e+1],n[e],o[e+1]),p+=l[e].addedLength;return r&&h&&(l[e]=s(a[e],a[0],n[e],o[0]),p+=l[e].addedLength),i.totalLength=p,i}function a(t){this.segmentLength=0,this.points=Array(t)}function n(t,e){this.partialLength=t,this.point=e}var o=function(){var t={};return function(i,s,r,o){var h=(i[0]+\"_\"+i[1]+\"_\"+s[0]+\"_\"+s[1]+\"_\"+r[0]+\"_\"+r[1]+\"_\"+o[0]+\"_\"+o[1]).replace(/\\./g,\"p\");if(!t[h]){var l,p,f,c,m,u,d,g=getDefaultCurveSegments(),y=0,v=null;2===i.length&&(i[0]!==s[0]||i[1]!==s[1])&&e(i[0],i[1],s[0],s[1],i[0]+r[0],i[1]+r[1])&&e(i[0],i[1],s[0],s[1],s[0]+o[0],s[1]+o[1])&&(g=2);var b=new a(g);for(l=0,f=r.length;l<g;l+=1){for(p=0,d=createSizedArray(f),m=l/(g-1),u=0;p<f;p+=1)c=bmPow(1-m,3)*i[p]+3*bmPow(1-m,2)*m*(i[p]+r[p])+3*(1-m)*bmPow(m,2)*(s[p]+o[p])+bmPow(m,3)*s[p],d[p]=c,null!==v&&(u+=bmPow(d[p]-v[p],2));y+=u=bmSqrt(u),b.points[l]=new n(u,d),v=d}b.segmentLength=y,t[h]=b}return t[h]}}();function h(t,e){var i=e.percents,s=e.lengths,r=i.length,a=bmFloor((r-1)*t),n=t*e.addedLength,o=0;if(a===r-1||0===a||n===s[a])return i[a];for(var h=s[a]>n?-1:1,l=!0;l;)if(s[a]<=n&&s[a+1]>n?(o=(n-s[a])/(s[a+1]-s[a]),l=!1):a+=h,a<0||a>=r-1){if(a===r-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}function l(e,i,s,r,a,n){var o=h(a,n),l=1-o;return[t.round((l*l*l*e[0]+(o*l*l+l*o*l+l*l*o)*s[0]+(o*o*l+l*o*o+o*l*o)*r[0]+o*o*o*i[0])*1e3)/1e3,t.round((l*l*l*e[1]+(o*l*l+l*o*l+l*l*o)*s[1]+(o*o*l+l*o*o+o*l*o)*r[1]+o*o*o*i[1])*1e3)/1e3]}var p=createTypedArray(\"float32\",8);return{getSegmentsLength:r,getNewSegment:function(e,i,s,r,a,n,o){a<0?a=0:a>1&&(a=1);var l,f=h(a,o),c=h(n=n>1?1:n,o),m=e.length,u=1-f,d=1-c,g=u*u*u,y=f*u*u*3,v=f*f*u*3,b=f*f*f,x=u*u*d,_=f*u*d+u*f*d+u*u*c,k=f*f*d+u*f*c+f*u*c,C=f*f*c,P=u*d*d,A=f*d*d+u*c*d+u*d*c,w=f*c*d+u*c*c+f*d*c,S=f*c*c,D=d*d*d,T=c*d*d+d*c*d+d*d*c,M=c*c*d+d*c*c+c*d*c,E=c*c*c;for(l=0;l<m;l+=1)p[4*l]=t.round((g*e[l]+y*s[l]+v*r[l]+b*i[l])*1e3)/1e3,p[4*l+1]=t.round((x*e[l]+_*s[l]+k*r[l]+C*i[l])*1e3)/1e3,p[4*l+2]=t.round((P*e[l]+A*s[l]+w*r[l]+S*i[l])*1e3)/1e3,p[4*l+3]=t.round((D*e[l]+T*s[l]+M*r[l]+E*i[l])*1e3)/1e3;return p},getPointInSegment:l,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,s,r,a,n,o=this.offsetTime;\"multidimensional\"===this.propType&&(g=createTypedArray(\"float32\",this.pv.length));for(var h=e.lastIndex,l=h,p=this.keyframes.length-1,f=!0;f;){if(y=this.keyframes[l],v=this.keyframes[l+1],l===p-1&&t>=v.t-o){y.h&&(y=v),h=0;break}if(v.t-o>t){h=l;break}l<p-1?l+=1:(h=0,f=!1)}b=this.keyframesMetadata[l]||{};var c=v.t-o,m=y.t-o;if(y.to){b.bezierData||(b.bezierData=bez.buildBezierData(y.s,v.s||y.e,y.to,y.ti));var u=b.bezierData;if(t>=c||t<m){var d=t>=c?u.points.length-1:0;for(x=0,_=u.points[d].point.length;x<_;x+=1)g[x]=u.points[d].point[x]}else{b.__fnct?A=b.__fnct:(A=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,b.__fnct=A),k=A((t-m)/(c-m));var g,y,v,b,x,_,k,C,P,A,w,S,D=u.segmentLength*k,T=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastAddedLength:0;for(P=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastPoint:0,f=!0,C=u.points.length;f;){if(T+=u.points[P].partialLength,0===D||0===k||P===u.points.length-1){for(x=0,_=u.points[P].point.length;x<_;x+=1)g[x]=u.points[P].point[x];break}if(D>=T&&D<T+u.points[P+1].partialLength){for(x=0,S=(D-T)/u.points[P+1].partialLength,_=u.points[P].point.length;x<_;x+=1)g[x]=u.points[P].point[x]+(u.points[P+1].point[x]-u.points[P].point[x])*S;break}P<C-1?P+=1:f=!1}e._lastPoint=P,e._lastAddedLength=T-u.points[P].partialLength,e._lastKeyframeIndex=l}}else if(p=y.s.length,w=v.s||y.e,this.sh&&1!==y.h)t>=c?(g[0]=w[0],g[1]=w[1],g[2]=w[2]):t<=m?(g[0]=y.s[0],g[1]=y.s[1],g[2]=y.s[2]):quaternionToEuler(g,slerp(createQuaternion(y.s),createQuaternion(w),(t-m)/(c-m)));else for(l=0;l<p;l+=1)1!==y.h&&(t>=c?k=1:t<m?k=0:(y.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[l]?A=b.__fnct[l]:(i=void 0===y.o.x[l]?y.o.x[0]:y.o.x[l],s=void 0===y.o.y[l]?y.o.y[0]:y.o.y[l],r=void 0===y.i.x[l]?y.i.x[0]:y.i.x[l],a=void 0===y.i.y[l]?y.i.y[0]:y.i.y[l],A=BezierFactory.getBezierEasing(i,s,r,a).get,b.__fnct[l]=A)):b.__fnct?A=b.__fnct:(i=y.o.x,s=y.o.y,r=y.i.x,a=y.i.y,A=BezierFactory.getBezierEasing(i,s,r,a).get,y.keyframeMetadata=A),k=A((t-m)/(c-m)))),w=v.s||y.e,n=1===y.h?y.s[l]:y.s[l]+(w[l]-y.s[l])*k,\"multidimensional\"===this.propType?g[l]=n:g=n;return e.lastIndex=h,g}function slerp(t,e,i){var s,r,a,n,o,h=[],l=t[0],p=t[1],f=t[2],c=t[3],m=e[0],u=e[1],d=e[2],g=e[3];return(r=l*m+p*u+f*d+c*g)<0&&(r=-r,m=-m,u=-u,d=-d,g=-g),1-r>1e-6?(a=Math.sin(s=Math.acos(r)),n=Math.sin((1-i)*s)/a,o=Math.sin(i*s)/a):(n=1-i,o=i),h[0]=n*l+o*m,h[1]=n*p+o*u,h[2]=n*f+o*d,h[3]=n*c+o*g,h}function quaternionToEuler(t,e){var i=e[0],s=e[1],r=e[2],a=e[3],n=Math.atan2(2*s*a-2*i*r,1-2*s*s-2*r*r),o=Math.asin(2*i*s+2*r*a),h=Math.atan2(2*i*a-2*s*r,1-2*i*i-2*r*r);t[0]=n/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,s=t[2]*degToRads,r=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2),p=r*a*n-o*h*l;return[o*h*n+r*a*l,o*a*n+r*h*l,r*h*n-o*a*l,p]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(\"unidimensional\"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,s){this.propType=\"unidimensional\",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,s){this.propType=\"multidimensional\",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,a=e.k.length;for(r=0,this.v=createTypedArray(\"float32\",a),this.pv=createTypedArray(\"float32\",a),this.vel=createTypedArray(\"float32\",a);r<a;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,s){this.propType=\"unidimensional\",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,s){this.propType=\"multidimensional\";var r,a,n,o,h,l=e.k.length;for(r=0;r<l-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(a=e.k[r].s,n=e.k[r+1].s,o=e.k[r].to,h=e.k[r].ti,(2===a.length&&!(a[0]===n[0]&&a[1]===n[1])&&bez.pointOnLine2D(a[0],a[1],n[0],n[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],n[0],n[1],n[0]+h[0],n[1]+h[1])||3===a.length&&!(a[0]===n[0]&&a[1]===n[1]&&a[2]===n[2])&&bez.pointOnLine3D(a[0],a[1],a[2],n[0],n[1],n[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],n[0],n[1],n[2],n[0]+h[0],n[1]+h[1],n[2]+h[2]))&&(e.k[r].to=null,e.k[r].ti=null),a[0]===n[0]&&a[1]===n[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===a.length||a[2]===n[2]&&0===o[2]&&0===h[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=e.k[0].s.length;for(r=0,this.v=createTypedArray(\"float32\",p),this.pv=createTypedArray(\"float32\",p);r<p;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray(\"float32\",p)},this.addEffect=addEffect}var PropertyFactory=function(){return{getProp:function(t,e,i,s,r){var a;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length){if(\"number\"==typeof e.k[0])a=new MultiDimensionalProperty(t,e,s,r);else switch(i){case 0:a=new KeyframedValueProperty(t,e,s,r);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,s,r)}}else a=new ValueProperty(t,e,s,r);return a.effectsSequence.length&&r.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){return poolFactory(8,function(){return createTypedArray(\"float32\",2)})}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,s,r){var a;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case\"v\":a=this.v;break;case\"i\":a=this.i;break;case\"o\":a=this.o;break;default:a=[]}a[s]&&(!a[s]||r)||(a[s]=pointPool.newElement()),a[s][0]=t,a[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,r,a,n,o){this.setXYAt(t,e,\"v\",n,o),this.setXYAt(i,s,\"o\",n,o),this.setXYAt(r,a,\"i\",n,o)},ShapePath.prototype.reverse=function(){var t,e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,s=this.o,r=this.i,a=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],s[0][0],s[0][1],0,!1),a=1);var n=this._length-1,o=this._length;for(t=a;t<o;t+=1)e.setTripleAt(i[n][0],i[n][1],r[n][0],r[n][1],s[n][0],s[n][1],t,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function t(t){var i,s=e.newElement(),r=void 0===t._length?t.v.length:t._length;for(s.setLength(r),s.c=t.c,i=0;i<r;i+=1)s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return s}var e=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1});return e.clone=t,e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:r,release:a},e=0,i=4,s=createSizedArray(4);function r(){var t;return e?(e-=1,t=s[e]):t=new ShapeCollection,t}function a(t){var r,a=t._length;for(r=0;r<a;r+=1)shapePool.release(t.shapes[r]);t._length=0,e===i&&(s=pooling.double(s),i*=2),s[e]=t,e+=1}return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var s=i.lastIndex,r=this.keyframes;if(t<r[0].t-this.offsetTime)a=r[0].s[0],o=!0,s=0;else if(t>=r[r.length-1].t-this.offsetTime)a=r[r.length-1].s?r[r.length-1].s[0]:r[r.length-2].e[0],o=!0;else{for(var a,n,o,h,l,p,f,c,m,u,d,g,y,v=s,b=r.length-1,x=!0;x&&(u=r[v],!((d=r[v+1]).t-this.offsetTime>t));)v<b-1?v+=1:x=!1;g=this.keyframesMetadata[v]||{},o=1===u.h,s=v,o||(t>=d.t-this.offsetTime?c=1:t<u.t-this.offsetTime?c=0:(g.__fnct?y=g.__fnct:(y=BezierFactory.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,g.__fnct=y),c=y((t-(u.t-this.offsetTime))/(d.t-this.offsetTime-(u.t-this.offsetTime)))),n=d.s?d.s[0]:u.e[0]),a=u.s[0]}for(h=0,p=e._length,f=a.i[0].length,i.lastIndex=s;h<p;h+=1)for(l=0;l<f;l+=1)m=o?a.i[h][l]:a.i[h][l]+(n.i[h][l]-a.i[h][l])*c,e.i[h][l]=m,m=o?a.o[h][l]:a.o[h][l]+(n.o[h][l]-a.o[h][l])*c,e.o[h][l]=m,m=o?a.v[h][l]:a.v[h][l]+(n.v[h][l]-a.v[h][l])*c,e.v[h][l]=m}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>s&&e>s)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function r(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0}function a(t){r(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var t,e,i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t,e,i){this.propType=\"shape\",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,a){this.propType=\"shape\",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=n,o.prototype.setVValue=a,o.prototype.addEffect=h,l.prototype.getValue=n,l.prototype.interpolateShape=e,l.prototype.setVValue=a,l.prototype.addEffect=h;var p=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,a=3!==this.d,n=this.v;n.v[0][0]=e,n.v[0][1]=i-r,n.v[1][0]=a?e+s:e-s,n.v[1][1]=i,n.v[2][0]=e,n.v[2][1]=i+r,n.v[3][0]=a?e-s:e+s,n.v[3][1]=i,n.i[0][0]=a?e-s*t:e+s*t,n.i[0][1]=i-r,n.i[1][0]=a?e+s:e-s,n.i[1][1]=i-r*t,n.i[2][0]=a?e+s*t:e-s*t,n.i[2][1]=i+r,n.i[3][0]=a?e-s:e+s,n.i[3][1]=i+r*t,n.o[0][0]=a?e+s*t:e-s*t,n.o[0][1]=i-r,n.o[1][0]=a?e+s:e-s,n.o[1][1]=i+r*t,n.o[2][0]=a?e-s*t:e+s*t,n.o[2][1]=i+r,n.o[3][0]=a?e-s:e+s,n.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),f=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,r=2*Math.floor(this.pt.v),a=2*Math.PI/r,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,f=2*Math.PI*o/(2*r),c=2*Math.PI*h/(2*r),m=-Math.PI/2;m+=this.r.v;var u=3===this.data.d?-1:1;for(t=0,this.v._length=0;t<r;t+=1){e=n?o:h,i=n?l:p,s=n?f:c;var d=e*Math.cos(m),g=e*Math.sin(m),y=0===d&&0===g?0:g/Math.sqrt(d*d+g*g),v=0===d&&0===g?0:-d/Math.sqrt(d*d+g*g);d+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(d,g,d-y*s*i*u,g-v*s*i*u,d+y*s*i*u,g+v*s*i*u,t,!0),n=!n,m+=a*u}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,r=this.os.v,a=2*Math.PI*s/(4*e),n=-(.5*Math.PI),o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(n),l=s*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),f=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*r*o,l-f*a*r*o,h+p*a*r*o,l+f*a*r*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=bmMin(i,s,this.r.v),a=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+r,t+i,e-s+a,0,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-a,t+i,e+s-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+s,t+i-r,e+s,t+i-a,e+s,2,!0),this.v.setTripleAt(t-i+r,e+s,t-i+a,e+s,t-i+r,e+s,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-r,t-i,e+s-a,4,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+a,t-i,e-s+r,5,!0),this.v.setTripleAt(t-i+r,e-s,t-i+r,e-s,t-i+a,e-s,6,!0),this.v.setTripleAt(t+i-r,e-s,t+i-a,e-s,t+i-r,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+a,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+a,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+a,t+i,e-s+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-s,t+i-r,e-s,t+i-a,e-s,1,!0),this.v.setTripleAt(t-i+r,e-s,t-i+a,e-s,t-i+r,e-s,2,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+r,t-i,e-s+a,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-a,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i+r,e+s,t-i+r,e+s,t-i+a,e+s,5,!0),this.v.setTripleAt(t+i-r,e+s,t+i-a,e+s,t+i-r,e+s,6,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-r,t+i,e+s-a,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+a,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-a,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-a,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],t),t}();function m(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new f(t,e)),s.k&&t.addDynamicProperty(s),s}function u(){return o}function d(){return l}var g={};return g.getShapeProp=m,g.getConstructorFunction=u,g.getKeyframedConstructorFunction=d,g}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function n(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(i(t),i(e))}function f(s,r){var a=t(r),n=e(r);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function c(t,e,i){return(i||0===i||(i=1),1===t&&1===e&&1===i)?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function m(t,e,i,s,r,a,n,o,h,l,p,f,c,m,u,d){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=f,this.props[12]=c,this.props[13]=m,this.props[14]=u,this.props[15]=d,this}function u(t,e,i){return(i=i||0,0!==t||0!==e||0!==i)?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function d(t,e,i,s,r,a,n,o,h,l,p,f,c,m,u,d){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===r&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===f)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*a+g[15]*m,g[14]=g[14]*p+g[15]*u,g[15]*=d,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],_=g[4],k=g[5],C=g[6],P=g[7],A=g[8],w=g[9],S=g[10],D=g[11],T=g[12],M=g[13],E=g[14],F=g[15];return g[0]=y*t+v*r+b*h+x*c,g[1]=y*e+v*a+b*l+x*m,g[2]=y*i+v*n+b*p+x*u,g[3]=y*s+v*o+b*f+x*d,g[4]=_*t+k*r+C*h+P*c,g[5]=_*e+k*a+C*l+P*m,g[6]=_*i+k*n+C*p+P*u,g[7]=_*s+k*o+C*f+P*d,g[8]=A*t+w*r+S*h+D*c,g[9]=A*e+w*a+S*l+D*m,g[10]=A*i+w*n+S*p+D*u,g[11]=A*s+w*o+S*f+D*d,g[12]=T*t+M*r+E*h+F*c,g[13]=T*e+M*a+E*l+F*m,g[14]=T*i+M*n+E*p+F*u,g[15]=T*s+M*o+E*f+F*d,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function _(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function k(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function C(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function P(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function A(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,r=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=r,o.props[12]=a,o.props[13]=n,o}function w(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function S(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=w(t[e]);return s}function D(t,e,i){var s=createTypedArray(\"float32\",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var r=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];s[0]=t[0]*r+t[1]*n+h,s[1]=t[0]*a+t[1]*o+l,s[2]=e[0]*r+e[1]*n+h,s[3]=e[0]*a+e[1]*o+l,s[4]=i[0]*r+i[1]*n+h,s[5]=i[0]*a+i[1]*o+l}return s}function T(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+\",\"+e;var i=this.props;return Math.round((t*i[0]+e*i[4]+i[12])*100)/100+\",\"+Math.round((t*i[1]+e*i[5]+i[13])*100)/100}function E(){for(var t=0,e=this.props,i=\"matrix3d(\",r=1e4;t<16;)i+=s(e[t]*r)/r+(15===t?\")\":\",\"),t+=1;return i}function F(t){var e=1e4;return t<1e-6&&t>0||t>-.000001&&t<0?s(t*e)/e:t}function I(){var t=this.props;return\"matrix(\"+F(t[0])+\",\"+F(t[1])+\",\"+F(t[4])+\",\"+F(t[5])+\",\"+F(t[12])+\",\"+F(t[13])+\")\"}return function(){this.reset=r,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=c,this.setTransform=m,this.translate=u,this.transform=d,this.multiply=g,this.applyToPoint=_,this.applyToX=k,this.applyToY=C,this.applyToZ=P,this.applyToPointArray=T,this.applyToTriplePoints=D,this.applyToPointStringified=M,this.toCSS=E,this.to2dCSS=I,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=S,this.inversePoint=w,this.getInverseMatrix=A,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray(\"float32\",16),this.reset()}}();function _typeof$3(t){return(_typeof$3=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var lottie={},standalone=\"__[STANDALONE]__\",animationData=\"__[ANIMATIONDATA]__\",renderer=\"\";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(\"string\"==typeof t)switch(t){case\"high\":setDefaultCurveSegments(200);break;default:case\"medium\":setDefaultCurveSegments(50);break;case\"low\":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return\"undefined\"!=typeof navigator}function installPlugin(t,e){\"expressions\"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case\"propertyFactory\":return PropertyFactory;case\"shapePropertyFactory\":return ShapePropertyFactory;case\"matrix\":return Matrix;default:return null}}function checkReady(){\"complete\"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split(\"&\"),i=0;i<e.length;i+=1){var s=e[i].split(\"=\");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version=\"5.12.2\";var queryString=\"\";if(standalone){var scripts=document.getElementsByTagName(\"script\"),index=scripts.length-1,myScript=scripts[index]||{src:\"\"};queryString=myScript.src?myScript.src.replace(/^[^\\?]+\\??/,\"\"):\"\",renderer=getQueryVariable(\"renderer\")}var readyStateCheckInterval=setInterval(checkReady,100);try{\"object\"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var t={},e={};function i(t,i){e[t]||(e[t]=i)}function s(t,i,s){return new e[t](i,s)}return t.registerModifier=i,t.getModifier=s,t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,s,r){var a,n,o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var h=[],l=o.length;for(a=0;a<l;a+=1)(n=o[a]).e*r<s||n.s*r>s+i||h.push([n.s*r<=s?0:(n.s*r-s)/i,n.e*r>=s+i?1:(n.e*r-s)/i]);return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){if(this._mdf||t){var e=this.o.v%360/360;if(e<0&&(e+=1),(a=this.s.v>1?1+e:this.s.v<0?0+e:this.s.v+e)>(n=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var i=a;a=n,n=i}a=1e-4*Math.round(1e4*a),n=1e-4*Math.round(1e4*n),this.sValue=a,this.eValue=n}else a=this.sValue,n=this.eValue;var s=this.shapes.length,r=0;if(n===a)for(h=0;h<s;h+=1)this.shapes[h].localShapeCollection.releaseShapes(),this.shapes[h].shape._mdf=!0,this.shapes[h].shape.paths=this.shapes[h].localShapeCollection,this._mdf&&(this.shapes[h].pathsData.length=0);else if(1===n&&0===a||0===n&&1===a){if(this._mdf)for(h=0;h<s;h+=1)this.shapes[h].pathsData.length=0,this.shapes[h].shape._mdf=!0}else{var a,n,o,h,l,p,f,c,m,u,d,g,y=[];for(h=0;h<s;h+=1)if((u=this.shapes[h]).shape._mdf||this._mdf||t||2===this.m){if(p=(o=u.shape.paths)._length,m=0,!u.shape._mdf&&u.pathsData.length)m=u.totalShapeLength;else{for(l=0,f=this.releasePathsData(u.pathsData);l<p;l+=1)c=bez.getSegmentsLength(o.shapes[l]),f.push(c),m+=c.totalLength;u.totalShapeLength=m,u.pathsData=f}r+=m,u.shape._mdf=!0}else u.shape.paths=u.localShapeCollection;var v=a,b=n,x=0;for(h=s-1;h>=0;h-=1)if((u=this.shapes[h]).shape._mdf){for((d=u.localShapeCollection).releaseShapes(),2===this.m&&s>1?(g=this.calculateShapeEdges(a,n,u.totalShapeLength,x,r),x+=u.totalShapeLength):g=[[v,b]],p=g.length,l=0;l<p;l+=1){v=g[l][0],b=g[l][1],y.length=0,b<=1?y.push({s:u.totalShapeLength*v,e:u.totalShapeLength*b}):v>=1?y.push({s:u.totalShapeLength*(v-1),e:u.totalShapeLength*(b-1)}):(y.push({s:u.totalShapeLength*v,e:u.totalShapeLength}),y.push({s:0,e:u.totalShapeLength*(b-1)}));var _=this.addShapes(u,y[0]);if(y[0].s!==y[0].e){if(y.length>1){if(u.shape.paths.shapes[u.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,d),_=this.addShapes(u,y[1],k)}else this.addPaths(_,d),_=this.addShapes(u,y[1])}this.addPaths(_,d)}}u.shape.paths=d}}},TrimModifier.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,s,r,a,n){r.setXYAt(e[0],e[1],\"o\",a),r.setXYAt(i[0],i[1],\"i\",a+1),n&&r.setXYAt(t[0],t[1],\"v\",a),r.setXYAt(s[0],s[1],\"v\",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],\"o\",i),e.setXYAt(t[2],t[6],\"i\",i+1),s&&e.setXYAt(t[0],t[4],\"v\",i),e.setXYAt(t[3],t[7],\"v\",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var s,r,a,n,o,h,l,p,f=t.pathsData,c=t.shape.paths.shapes,m=t.shape.paths._length,u=0,d=[],g=!0;for(i?(o=i._length,p=i._length):(i=shapePool.newElement(),o=0,p=0),d.push(i),s=0;s<m;s+=1){for(r=1,h=f[s].lengths,i.c=c[s].c,a=c[s].c?h.length:h.length+1;r<a;r+=1)if(u+(n=h[r-1]).addedLength<e.s)u+=n.addedLength,i.c=!1;else if(u>e.e){i.c=!1;break}else e.s<=u&&e.e>=u+n.addedLength?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[r],c[s].v[r],i,o,g),g=!1):(l=bez.getNewSegment(c[s].v[r-1],c[s].v[r],c[s].o[r-1],c[s].i[r],(e.s-u)/n.addedLength,(e.e-u)/n.addedLength,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),u+=n.addedLength,o+=1;if(c[s].c&&h.length){if(n=h[r-1],u<=e.e){var y=h[r-1].addedLength;e.s<=u&&e.e>=u+y?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=bez.getNewSegment(c[s].v[r-1],c[s].v[0],c[s].o[r-1],c[s].i[0],(e.s-u)/y,(e.e-u)/y,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;u+=n.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],\"i\",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],\"o\",i._length-1)),u>e.e)break;s<m-1&&(i=shapePool.newElement(),g=!0,d.push(i),o=0)}return d},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i,s,r,a,n,o,h=e/100,l=[0,0],p=t._length,f=0;for(f=0;f<p;f+=1)l[0]+=t.v[f][0],l[1]+=t.v[f][1];l[0]/=p,l[1]/=p;var c=shapePool.newElement();for(f=0,c.c=t.c;f<p;f+=1)i=t.v[f][0]+(l[0]-t.v[f][0])*h,s=t.v[f][1]+(l[1]-t.v[f][1])*h,r=t.o[f][0]+-((l[0]-t.o[f][0])*h),a=t.o[f][1]+-((l[1]-t.o[f][1])*h),n=t.i[f][0]+-((l[0]-t.i[f][0])*h),o=t.i[f][1]+-((l[1]-t.i[f][1])*h),c.setTripleAt(i,s,r,a,n,o,f);return c},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],r=[];var s,r,a=this.px,n=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(s[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),r[0]=a.getValueAtTime(a.keyframes[0].t/i,0),r[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(s[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),r[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),r[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[a.pv,n.pv],r[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),r[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else s=r=t;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function s(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function a(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function n(t,e,i){if(this.elem=t,this.frameId=-1,this.propType=\"transform\",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var s,r=e.or.k.length;for(s=0;s<r;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return n.prototype={applyToMatrix:e,getValue:i,precalculateMatrix:s,autoOrient:r},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=a,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new n(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return 1e-5>=Math.abs(t)}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var r=-e/(2*t);if(0===s)return[r];var a=Math.sqrt(s)/(2*t);return[r-a,r+a]}function polynomialCoefficients(t,e,i,s){return[-t+3*e-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,s,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),r&&pointEqual(i,s)&&(i=lerpPoint(t,s,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],s[0]),n=polynomialCoefficients(t[1],e[1],i[1],s[1]);this.a=[a[0],n[0]],this.b=[a[1],n[1]],this.c=[a[2],n[2]],this.d=[a[3],n[3]],this.points=[t,e,i,s]}function extrema(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var r=s;s=i,i=r}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n<a.length;n+=1)if(a[n]>0&&a[n]<1){var o=t.point(a[n])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function intersectData(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,s,r,a){if(boxIntersect(t,e)){if(i>=a||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s){r.push([t.t,e.t]);return}var n=splitData(t),o=splitData(e);intersectsImpl(n[0],o[0],i+1,s,r,a),intersectsImpl(n[0],o[1],i+1,s,r,a),intersectsImpl(n[1],o[0],i+1,s,r,a),intersectsImpl(n[1],o[1],i+1,s,r,a)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,s){var r=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],o=[s[0],s[1],1],h=crossProduct(crossProduct(r,a),crossProduct(n,o));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,s,r,a,n){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*r,p=e[1]-Math.sin(i)*s*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],s=-(.5*Math.PI);return[Math.cos(s)*i[0]-Math.sin(s)*i[1],Math.sin(s)*i[0]+Math.cos(s)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,s=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[s]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,s,r,a,n){var o=getProjectingAngle(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],f=2===a?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===a?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;setPoint(t,e.v[i%e._length],o,n,s,c/((r+1)*2),f/((r+1)*2),a)}function zigZagSegment(t,e,i,s,r,a){for(var n=0;n<s;n+=1){var o=(n+1)/(s+1),h=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);setPoint(t,e.point(o),l,a,i,h/((s+1)*2),h/((s+1)*2),r),a=-a}return a}function linearOffset(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,i),polarOffset(e,s,i)]}function offsetSegment(t,e){i=(h=linearOffset(t.points[0],t.points[1],e))[0],s=h[1],r=(h=linearOffset(t.points[1],t.points[2],e))[0],a=h[1],n=(h=linearOffset(t.points[2],t.points[3],e))[0],o=h[1];var i,s,r,a,n,o,h,l=lineIntersection(i,s,r,a);null===l&&(l=s);var p=lineIntersection(n,o,r,a);return null===p&&(p=n),new PolynomialBezier(i,l,p,o)}function joinLines(t,e,i,s,r){var a=e.points[3],n=i.points[0];if(3===s||pointEqual(a,n))return a;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),n,polarOffset(n,o+Math.PI/2,100)),p=l?pointDistance(l,a):pointDistance(a,n)/2,f=polarOffset(a,o,2*p*roundCorner);return t.setXYAt(f[0],f[1],\"o\",t.length()-1),f=polarOffset(n,h,2*p*roundCorner),t.setTripleAt(n[0],n[1],n[0],n[1],f[0],f[1],t.length()),n}var c=pointEqual(a,e.points[2])?e.points[0]:e.points[2],m=pointEqual(n,i.points[1])?i.points[3]:i.points[1],u=lineIntersection(c,a,n,m);return u&&pointDistance(u,a)<r?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):a}function getIntersection(t,e){var i=t.intersections(e);return(i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length)?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),s=e.slice(),r=getIntersection(t[t.length-1],e[0]);return(r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],s[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1])))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,s]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,s,r,a,n=t.inflectionPoints();if(0===n.length)return[offsetSegment(t,e)];if(1===n.length||floatEqual(n[1],1))return i=(r=t.split(n[0]))[0],s=r[1],[offsetSegment(i,e),offsetSegment(s,e)];i=(r=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return a=(r=r[1].split(o))[0],s=r[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(s,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(\" \"):[],i=\"normal\",s=\"normal\",r=e.length,a=0;a<r;a+=1)switch(e[a].toLowerCase()){case\"italic\":s=\"italic\";break;case\"bold\":i=\"700\";break;case\"black\":i=\"900\";break;case\"medium\":i=\"500\";break;case\"regular\":case\"normal\":i=\"400\";break;case\"light\":case\"thin\":i=\"200\"}return{style:s,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,s,r,a){var n=a?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),h=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*n*r,s.p.v[1]*n*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*n*r),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(a?1/o:o,a?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,\"gr\"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,\"gr\"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e=!1;if(this._mdf||t){var i,s,r,a,n,o,h,l,p=Math.ceil(this.c.v);if(this._groups.length<p){for(;this._groups.length<p;){var f={it:this.cloneElements(this._elements),ty:\"gr\"};f.it.push({a:{a:0,ix:1,k:[0,0]},nm:\"Transform\",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:\"tr\"}),this.arr.splice(0,0,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),e=!0}for(r=0,n=0;r<=this._groups.length-1;r+=1){if(o=n<p,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var c=this.elemsData[r].it,m=c[c.length-1];0!==m.transform.op.v?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}n+=1}this._currentCopies=p;var u=this.o.v,d=u%1,g=u>0?Math.floor(u):Math.ceil(u),y=this.pMatrix.props,v=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(u>0){for(;x<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),x+=d)}else if(u<0){for(;x>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),x-=d)}for(r=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,n=this._currentCopies;n;){if(l=(s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===a||r!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),h=0;h<l;h+=1)s[h]=this.matrix.props[h];this.matrix.reset()}else for(this.matrix.reset(),h=0;h<l;h+=1)s[h]=this.matrix.props[h];x+=1,n-=1,r+=a}}else for(n=this._currentCopies,r=0,a=1;n;)s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,n-=1,r+=a;return e},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,s,r,a,n,o,h,l,p,f,c,m,u,d=shapePool.newElement();d.c=t.c;var g=t._length,y=0;for(i=0;i<g;i+=1)s=t.v[i],a=t.o[i],r=t.i[i],s[0]===a[0]&&s[1]===a[1]&&s[0]===r[0]&&s[1]===r[1]?0!==i&&i!==g-1||t.c?(n=0===i?t.v[g-1]:t.v[i-1],h=(o=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(o/2,e)/o:0,l=m=s[0]+(n[0]-s[0])*h,p=u=s[1]-(s[1]-n[1])*h,f=l-(l-s[0])*roundCorner,c=p-(p-s[1])*roundCorner,d.setTripleAt(l,p,f,c,m,u,y),y+=1,n=i===g-1?t.v[0]:t.v[i+1],h=(o=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(o/2,e)/o:0,l=f=s[0]+(n[0]-s[0])*h,p=c=s[1]+(n[1]-s[1])*h,m=l-(l-s[0])*roundCorner,u=p-(p-s[1])*roundCorner,d.setTripleAt(l,p,f,c,m,u,y)):d.setTripleAt(s[0],s[1],a[0],a[1],r[0],r[1],y):d.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1;return d},RoundCornersModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return floatZero(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),s=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),a=lerpPoint(i,s,t),n=lerpPoint(r,a,t);return[new PolynomialBezier(this.points[0],e,r,n,!0),new PolynomialBezier(n,a,s,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,s,i),s},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,s){var r=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(r-=1),0===r)return a;var n=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,s,n);for(var h=0;h<r;h+=1)n=zigZagSegment(a,o,e,i,s,-n),o=h!==r-1||t.c?PolynomialBezier.shapeSegment(t,(h+1)%r):null,zigZagCorner(a,t,h+1,e,i,s,n);return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h,l,p));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,s){var r,a,n,o=shapePool.newElement();o.c=t.c;var h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)n=PolynomialBezier.shapeSegment(t,r),l.push(offsetSegmentSplit(n,e));if(!t.c)for(r=h-1;r>=0;r-=1)n=PolynomialBezier.shapeSegmentInverted(t,r),l.push(offsetSegmentSplit(n,e));l=pruneIntersections(l);var p=null,f=null;for(r=0;r<l.length;r+=1){var c=l[r];for(f&&(p=joinLines(o,f,c[0],i,s)),f=c[c.length-1],a=0;a<c.length;a+=1)n=c[a],p&&pointEqual(n.points[0],p)?o.setXYAt(n.points[1][0],n.points[1][1],\"o\",o.length()-1):o.setTripleAt(n.points[0][0],n.points[0][1],n.points[1][0],n.points[1][1],n.points[0][0],n.points[0][1],o.length()),o.setTripleAt(n.points[3][0],n.points[3][1],n.points[3][0],n.points[3][1],n.points[2][0],n.points[2][1],o.length()),p=n.points[3]}return l.length&&joinLines(o,f,l[0][0],i,s),o},OffsetPathModifier.prototype.processShapes=function(t){var e,i,s,r,a,n,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)n.addShape(this.processPath(e[s],h,p,l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var s=127988,r=917631,a=917601,n=917626,o=65039,h=8205,l=127462,p=127487,f=[\"d83cdffb\",\"d83cdffc\",\"d83cdffd\",\"d83cdffe\",\"d83cdfff\"];function c(t){var e,i=t.split(\",\"),s=i.length,r=[];for(e=0;e<s;e+=1)\"sans-serif\"!==i[e]&&\"monospace\"!==i[e]&&r.push(i[e]);return r.join(\",\")}function m(t,e){var i=createTag(\"span\");i.setAttribute(\"aria-hidden\",!0),i.style.fontFamily=e;var s=createTag(\"span\");s.innerText=\"giItT1WQy@!-/#\",i.style.position=\"absolute\",i.style.left=\"-10000px\",i.style.top=\"-10000px\",i.style.fontSize=\"300px\",i.style.fontVariant=\"normal\",i.style.fontStyle=\"normal\",i.style.fontWeight=\"normal\",i.style.letterSpacing=\"0\",i.appendChild(s),document.body.appendChild(i);var r=s.offsetWidth;return s.style.fontFamily=c(t)+\", \"+e,{node:s,w:r,parent:i}}function u(){var e,i,s,r=this.fonts.length,a=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?a-=1:\"n\"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,s=this.fonts[e].monoCase.w,i.offsetWidth!==s?(a-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,s=this.fonts[e].sansCase.w,i.offsetWidth!==s&&(a-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==a&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function d(t,e){var i,s=document.body&&e?\"svg\":\"canvas\",r=getFontProperties(t);if(\"svg\"===s){var a=createNS(\"text\");a.style.fontSize=\"100px\",a.setAttribute(\"font-family\",t.fFamily),a.setAttribute(\"font-style\",r.style),a.setAttribute(\"font-weight\",r.weight),a.textContent=\"1\",t.fClass?(a.style.fontFamily=\"inherit\",a.setAttribute(\"class\",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),i=a}else{var n=new OffscreenCanvas(500,500).getContext(\"2d\");n.font=r.style+\" \"+r.weight+\" 100px \"+t.fFamily,i=n}return{measureText:function(t){return\"svg\"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function g(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}if(!document.body){this.isLoaded=!0,t.list.forEach(function(t){t.helper=d(t),t.cache={}}),this.fonts=t.list;return}var i=t.list,s=i.length,r=s;for(a=0;a<s;a+=1){var a,n,o,h=!0;if(i[a].loaded=!1,i[a].monoCase=m(i[a].fFamily,\"monospace\"),i[a].sansCase=m(i[a].fFamily,\"sans-serif\"),i[a].fPath){if(\"p\"===i[a].fOrigin||3===i[a].origin){if((n=document.querySelectorAll('style[f-forigin=\"p\"][f-family=\"'+i[a].fFamily+'\"], style[f-origin=\"3\"][f-family=\"'+i[a].fFamily+'\"]')).length>0&&(h=!1),h){var l=createTag(\"style\");l.setAttribute(\"f-forigin\",i[a].fOrigin),l.setAttribute(\"f-origin\",i[a].origin),l.setAttribute(\"f-family\",i[a].fFamily),l.type=\"text/css\",l.innerText=\"@font-face {font-family: \"+i[a].fFamily+\"; font-style: normal; src: url('\"+i[a].fPath+\"');}\",e.appendChild(l)}}else if(\"g\"===i[a].fOrigin||1===i[a].origin){for(o=0,n=document.querySelectorAll('link[f-forigin=\"g\"], link[f-origin=\"1\"]');o<n.length;o+=1)-1!==n[o].href.indexOf(i[a].fPath)&&(h=!1);if(h){var p=createTag(\"link\");p.setAttribute(\"f-forigin\",i[a].fOrigin),p.setAttribute(\"f-origin\",i[a].origin),p.type=\"text/css\",p.rel=\"stylesheet\",p.href=i[a].fPath,document.body.appendChild(p)}}else if(\"t\"===i[a].fOrigin||2===i[a].origin){for(o=0,n=document.querySelectorAll('script[f-forigin=\"t\"], script[f-origin=\"2\"]');o<n.length;o+=1)i[a].fPath===n[o].src&&(h=!1);if(h){var f=createTag(\"link\");f.setAttribute(\"f-forigin\",i[a].fOrigin),f.setAttribute(\"f-origin\",i[a].origin),f.setAttribute(\"rel\",\"stylesheet\"),f.setAttribute(\"href\",i[a].fPath),e.appendChild(f)}}}else i[a].loaded=!0,r-=1;i[a].helper=d(i[a],e),i[a].cache={},this.fonts.push(i[a])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function y(t){if(t){this.chars||(this.chars=[]);var e,i,s,r=t.length,a=this.chars.length;for(e=0;e<r;e+=1){for(i=0,s=!1;i<a;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),a+=1)}}}function v(t,i,s){for(var r=0,a=this.chars.length;r<a;){if(this.chars[r].ch===t&&this.chars[r].style===i&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return(\"string\"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn(\"Missing character from exported characters list: \",t,i,s)),e}function b(t,e,i){var s=this.getFontByName(e),r=t;if(!s.cache[r]){var a=s.helper;if(\" \"===t){var n=a.measureText(\"|\"+t+\"|\"),o=a.measureText(\"||\");s.cache[r]=(n-o)/100}else s.cache[r]=a.measureText(t)/100}return s.cache[r]*i}function x(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function _(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=(i-55296)*1024+s-56320+65536)}return e}function k(t,e){var i=t.toString(16)+e.toString(16);return -1!==f.indexOf(i)}function C(t){return t===h}function P(t){return t===o}function A(t){var e=_(t);return e>=l&&e<=p}function w(t){return A(t.substr(0,2))&&A(t.substr(2,2))}function S(t){return -1!==i.indexOf(t)}function D(t,e){var i=_(t.substr(e,2));if(i!==s)return!1;var o=0;for(e+=2;o<5;){if((i=_(t.substr(e,2)))<a||i>n)return!1;o+=1,e+=2}return _(t.substr(e,2))===r}function T(){this.isLoaded=!0}var M=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};M.isModifier=k,M.isZeroWidthJoiner=C,M.isFlagEmoji=w,M.isRegionalCode=A,M.isCombinedCharacter=S,M.isRegionalFlag=D,M.isVariationSelector=P,M.BLACK_FLAG_CODE_POINT=s;var E={addChars:y,addFonts:g,getCharData:v,getFontByName:x,measureText:b,checkLoadedFonts:u,setIsLoaded:T};return M.prototype=E,M}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var t={0:\"source-over\",1:\"multiply\",2:\"screen\",3:\"overlay\",4:\"darken\",5:\"lighten\",6:\"color-dodge\",7:\"color-burn\",8:\"hard-light\",9:\"soft-light\",10:\"difference\",11:\"exclusion\",12:\"hue\",13:\"saturation\",14:\"color\",15:\"luminosity\"};return function(e){return t[e]||\"\"}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,s,r=t.ef||[];this.effectElements=[];var a=r.length;for(i=0;i<a;i+=1)s=new GroupEffect(r[i],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s,r=this.data.ef.length,a=this.data.ef;for(i=0;i<r;i+=1){switch(s=null,a[i].ty){case 0:s=new SliderEffect(a[i],e,this);break;case 1:s=new AngleEffect(a[i],e,this);break;case 2:s=new ColorEffect(a[i],e,this);break;case 3:s=new PointEffect(a[i],e,this);break;case 4:case 7:s=new CheckboxEffect(a[i],e,this);break;case 10:s=new LayerIndexEffect(a[i],e,this);break;case 11:s=new MaskIndexEffect(a[i],e,this);break;case 5:s=new EffectsManager(a[i],e,this);break;default:s=new NoValueEffect(a[i],e,this)}s&&this.effectElements.push(s)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(\"n\"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t(\"layer\"),i=t(\"effects\"),s=t(\"shape\"),r=t(\"text\"),a=t(\"comp\");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var n=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(n),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style[\"mix-blend-mode\"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&\"transform\"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t(\"footage\");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)!this.elements[e]&&(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw Error(\"You're using a 3d camera. Try the html renderer.\")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,s=t.length,r=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,r=this.layers,a=0,n=r.length;a<n;)r[a].ind==e&&(s[a]&&!0!==s[a]?(i.push(s[a]),s[a].setAsParent(),void 0!==r[a].parent?this.buildElementParenting(t,r[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift();if(\"number\"==typeof e)i=this.elements[e];else{var i,s,r=this.elements.length;for(s=0;s<r;s+=1)if(this.elements[s].data.nm===e){i=this.elements[s];break}}return 0===t.length?i:i.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:\"transformEFfect\"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath=\"\";var a=this.masksProperties,n=0,o=[],h=createElementID(),l=\"clipPath\",p=\"clip-path\";for(f=0;f<r;f+=1)if((\"a\"!==a[f].mode&&\"n\"!==a[f].mode||a[f].inv||100!==a[f].o.k||a[f].o.x)&&(l=\"mask\",p=\"mask\"),(\"s\"===a[f].mode||\"i\"===a[f].mode)&&0===n?((d=createNS(\"rect\")).setAttribute(\"fill\",\"#ffffff\"),d.setAttribute(\"width\",this.element.comp.data.w||0),d.setAttribute(\"height\",this.element.comp.data.h||0),o.push(d)):d=null,c=createNS(\"path\"),\"n\"===a[f].mode)this.viewData[f]={op:PropertyFactory.getProp(this.element,a[f].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[f],3),elem:c,lastPath:\"\"},s.appendChild(c);else{if(n+=1,c.setAttribute(\"fill\",\"s\"===a[f].mode?\"#000000\":\"#ffffff\"),c.setAttribute(\"clip-rule\",\"nonzero\"),0!==a[f].x.k?(l=\"mask\",p=\"mask\",v=PropertyFactory.getProp(this.element,a[f].x,0,null,this.element),b=createElementID(),(g=createNS(\"filter\")).setAttribute(\"id\",b),(y=createNS(\"feMorphology\")).setAttribute(\"operator\",\"erode\"),y.setAttribute(\"in\",\"SourceGraphic\"),y.setAttribute(\"radius\",\"0\"),g.appendChild(y),s.appendChild(g),c.setAttribute(\"stroke\",\"s\"===a[f].mode?\"#000000\":\"#ffffff\")):(y=null,v=null),this.storedData[f]={elem:c,x:v,expan:y,lastPath:\"\",lastOperator:\"\",filterId:b,lastRadius:0},\"i\"===a[f].mode){u=o.length;var f,c,m,u,d,g,y,v,b,x=createNS(\"g\");for(m=0;m<u;m+=1)x.appendChild(o[m]);var _=createNS(\"mask\");_.setAttribute(\"mask-type\",\"alpha\"),_.setAttribute(\"id\",h+\"_\"+n),_.appendChild(c),s.appendChild(_),x.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+h+\"_\"+n+\")\"),o.length=0,o.push(x)}else o.push(c);a[f].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[f]={elem:c,lastPath:\"\",op:PropertyFactory.getProp(this.element,a[f].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[f],3),invRect:d},this.viewData[f].prop.k||this.drawPath(a[f],this.viewData[f].prop.v,this.viewData[f])}for(f=0,this.maskElement=createNS(l),r=o.length;f<r;f+=1)this.maskElement.appendChild(o[f]);n>0&&(this.maskElement.setAttribute(\"id\",h),this.element.maskedElement.setAttribute(p,\"url(\"+getLocationHref()+\"#\"+h+\")\"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e,i,s=[];s.push(this.finalTransform);for(var r=!0,a=this.comp;r;)a.finalTransform?(a.data.hasMask&&s.splice(0,0,a.finalTransform),a=a.comp):r=!1;var n=s.length;for(e=0;e<n;e+=1)i=s[e].mat.applyToPointArray(0,0,0),t=[t[0]-i[0],t[1]-i[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute(\"fill-opacity\",this.viewData[e].op.v),\"n\"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute(\"transform\",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?(\"erode\"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator=\"erode\",this.storedData[e].elem.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+this.storedData[e].filterId+\")\")),r.setAttribute(\"radius\",-this.storedData[e].x.v)):(\"dilate\"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator=\"dilate\",this.storedData[e].elem.setAttribute(\"filter\",null)),this.storedData[e].elem.setAttribute(\"stroke-width\",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){return\"M0,0 \"+(\" h\"+this.globalData.compSize.w+\" v\"+this.globalData.compSize.h+\" h-\"+this.globalData.compSize.w+\" v-\"+this.globalData.compSize.h)+\" \"},MaskElement.prototype.drawPath=function(t,e,i){var s,r,a=\" M\"+e.v[0][0]+\",\"+e.v[0][1];for(s=1,r=e._length;s<r;s+=1)a+=\" C\"+e.o[s-1][0]+\",\"+e.o[s-1][1]+\" \"+e.i[s][0]+\",\"+e.i[s][1]+\" \"+e.v[s][0]+\",\"+e.v[s][1];if(e.c&&r>1&&(a+=\" C\"+e.o[s-1][0]+\",\"+e.o[s-1][1]+\" \"+e.i[0][0]+\",\"+e.i[0][1]+\" \"+e.v[0][0]+\",\"+e.v[0][1]),i.lastPath!==a){var n=\"\";i.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),i.elem.setAttribute(\"d\",n)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};function e(t,e){var i=createNS(\"filter\");return i.setAttribute(\"id\",t),!0!==e&&(i.setAttribute(\"filterUnits\",\"objectBoundingBox\"),i.setAttribute(\"x\",\"0%\"),i.setAttribute(\"y\",\"0%\"),i.setAttribute(\"width\",\"100%\"),i.setAttribute(\"height\",\"100%\")),i}function i(){var t=createNS(\"feColorMatrix\");return t.setAttribute(\"type\",\"matrix\"),t.setAttribute(\"color-interpolation-filters\",\"sRGB\"),t.setAttribute(\"values\",\"0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1\"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=i,t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:\"undefined\"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\\/\\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix=\"filter_result_\";function SVGEffects(t){var e,i,s=\"SourceGraphic\",r=t.data.ef?t.data.ef.length:0,a=createElementID(),n=filtersFactory.createFilter(a,!0),o=0;for(e=0,this.filters=[];e<r;e+=1){i=null;var h=t.data.ef[e].ty;registeredEffects$1[h]&&(i=new registeredEffects$1[h].effect(n,t.effectsManager.effectElements[e],t,idPrefix+o,s),s=idPrefix+o,registeredEffects$1[h].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+a+\")\")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS(\"g\")},createContainerElements:function(){this.matteElement=createNS(\"g\"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS(\"g\");e.setAttribute(\"id\",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS(\"clipPath\"),s=createNS(\"path\");s.setAttribute(\"d\",\"M0,0 L\"+this.data.w+\",0 L\"+this.data.w+\",\"+this.data.h+\" L0,\"+this.data.h+\"z\");var r=createElementID();if(i.setAttribute(\"id\",r),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS(\"g\");a.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+r+\")\"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+r+\")\")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute(\"transform\",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute(\"opacity\",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,r,a=this.layerId+\"_\"+t;if(1===t||3===t){var n=createNS(\"mask\");n.setAttribute(\"id\",a),n.setAttribute(\"mask-type\",3===t?\"luminance\":\"alpha\"),(s=createNS(\"use\")).setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",\"#\"+this.layerId),n.appendChild(s),this.globalData.defs.appendChild(n),featureSupport.maskType||1!==t||(n.setAttribute(\"mask-type\",\"luminance\"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS(\"g\")).appendChild(s),n.appendChild(r),r.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+e+\")\"))}else if(2===t){var o=createNS(\"mask\");o.setAttribute(\"id\",a),o.setAttribute(\"mask-type\",\"alpha\");var h=createNS(\"g\");o.appendChild(h),e=createElementID(),i=filtersFactory.createFilter(e);var l=createNS(\"feComponentTransfer\");l.setAttribute(\"in\",\"SourceGraphic\"),i.appendChild(l);var p=createNS(\"feFuncA\");p.setAttribute(\"type\",\"table\"),p.setAttribute(\"tableValues\",\"1.0 0.0\"),l.appendChild(p),this.globalData.defs.appendChild(i);var f=createNS(\"rect\");f.setAttribute(\"width\",this.comp.data.w),f.setAttribute(\"height\",this.comp.data.h),f.setAttribute(\"x\",\"0\"),f.setAttribute(\"y\",\"0\"),f.setAttribute(\"fill\",\"#ffffff\"),f.setAttribute(\"opacity\",\"0\"),h.setAttribute(\"filter\",\"url(\"+getLocationHref()+\"#\"+e+\")\"),h.appendChild(f),(s=createNS(\"use\")).setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",\"#\"+this.layerId),h.appendChild(s),featureSupport.maskType||(o.setAttribute(\"mask-type\",\"luminance\"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS(\"g\"),h.appendChild(f),r.appendChild(this.layerElement),h.appendChild(r)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+t+\")\")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display=\"none\",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display=\"block\"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS(\"image\"),this.innerElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.innerElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.innerElem.setAttribute(\"preserveAspectRatio\",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t){i[s].pos=e;return}i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:\"butt\",2:\"round\",3:\"square\"},lineJoinEnum={1:\"miter\",2:\"round\",3:\"bevel\"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr=\"\",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,r=t.length;s<r;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d=\"\",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS(\"path\"),this.msElem=null}function DashProperty(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr=\"\",this.dashArray=createTypedArray(\"float32\",e.length?e.length-1:0),this.dashoffset=createTypedArray(\"float32\",1),this.initDynamicPropertyContainer(s);var r,a,n=e.length||0;for(r=0;r<n;r+=1)a=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=a.k||this.k,this.dataProps[r]={n:e[r].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},\"svg\",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray(\"uint8c\",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray(\"float32\",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},\"svg\",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS(\"g\")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d=\"\",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for(\"svg\"===this.renderer&&(this.dashStr=\"\"),e=0;e<i;e+=1)\"o\"!==this.dataProps[e].n?\"svg\"===this.renderer?this.dashStr+=\" \"+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i,s,r,a=createElementID(),n=createNS(1===e.t?\"linearGradient\":\"radialGradient\");n.setAttribute(\"id\",a),n.setAttribute(\"spreadMethod\",\"pad\"),n.setAttribute(\"gradientUnits\",\"userSpaceOnUse\");var o=[];for(s=0,r=4*e.g.p;s<r;s+=4)i=createNS(\"stop\"),n.appendChild(i),o.push(i);t.setAttribute(\"gf\"===e.ty?\"fill\":\"stroke\",\"url(\"+getLocationHref()+\"#\"+a+\")\"),this.gf=n,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,r,a=createNS(\"mask\"),n=createNS(\"path\");a.appendChild(n);var o=createElementID(),h=createElementID();a.setAttribute(\"id\",h);var l=createNS(1===t.t?\"linearGradient\":\"radialGradient\");l.setAttribute(\"id\",o),l.setAttribute(\"spreadMethod\",\"pad\"),l.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(s=4*t.g.p;s<r;s+=2)(i=createNS(\"stop\")).setAttribute(\"stop-color\",\"rgb(255,255,255)\"),l.appendChild(i),p.push(i);n.setAttribute(\"gf\"===t.ty?\"fill\":\"stroke\",\"url(\"+getLocationHref()+\"#\"+o+\")\"),\"gs\"===t.ty&&(n.setAttribute(\"stroke-linecap\",lineCapEnum[t.lc||2]),n.setAttribute(\"stroke-linejoin\",lineJoinEnum[t.lj||2]),1===t.lj&&n.setAttribute(\"stroke-miterlimit\",t.ml)),this.of=l,this.ms=a,this.ost=p,this.maskId=h,e.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,s){if(0===e)return\"\";var r,a=t.o,n=t.i,o=t.v,h=\" M\"+s.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<e;r+=1)h+=\" C\"+s.applyToPointStringified(a[r-1][0],a[r-1][1])+\" \"+s.applyToPointStringified(n[r][0],n[r][1])+\" \"+s.applyToPointStringified(o[r][0],o[r][1]);return i&&e&&(h+=\" C\"+s.applyToPointStringified(a[r-1][0],a[r-1][1])+\" \"+s.applyToPointStringified(n[0][0],n[0][1])+\" \"+s.applyToPointStringified(o[0][0],o[0][1])+\"z\"),h},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute(\"opacity\",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute(\"transform\",e.transform.mProps.v.to2dCSS())}function s(){}function r(i,s,r){var a,n,o,h,l,p,f,c,m,u,d=s.styles.length,g=s.lvl;for(p=0;p<d;p+=1){if(h=s.sh._mdf||r,s.styles[p].lvl<g){for(c=e.reset(),m=g-s.styles[p].lvl,u=s.transformers.length-1;!h&&m>0;)h=s.transformers[u].mProps._mdf||h,m-=1,u-=1;if(h)for(m=g-s.styles[p].lvl,u=s.transformers.length-1;m>0;)c.multiply(s.transformers[u].mProps.v),m-=1,u-=1}else c=t;if(n=(f=s.sh.paths)._length,h){for(a=0,o=\"\";a<n;a+=1)(l=f.shapes[a])&&l._length&&(o+=buildShapeString(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?\"\":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function a(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute(\"fill\",\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i)&&s.pElem.setAttribute(\"fill-opacity\",e.o.v)}function n(t,e,i){o(t,e,i),h(t,e,i)}function o(t,e,i){var s,r,a,n,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,f=e.e.v;if(e.o._mdf||i){var c=\"gf\"===t.ty?\"fill-opacity\":\"stroke-opacity\";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var m=1===t.t?\"x1\":\"cx\",u=\"x1\"===m?\"y1\":\"cy\";h.setAttribute(m,p[0]),h.setAttribute(u,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(m,p[0]),e.of.setAttribute(u,p[1]))}if(e.g._cmdf||i){s=e.cst;var d=e.g.c;for(r=0,a=s.length;r<a;r+=1)(n=s[r]).setAttribute(\"offset\",d[4*r]+\"%\"),n.setAttribute(\"stop-color\",\"rgb(\"+d[4*r+1]+\",\"+d[4*r+2]+\",\"+d[4*r+3]+\")\")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=0,a=(s=e.g._collapsable?e.cst:e.ost).length;r<a;r+=1)n=s[r],e.g._collapsable||n.setAttribute(\"offset\",g[2*r]+\"%\"),n.setAttribute(\"stop-opacity\",g[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute(\"x2\",f[0]),h.setAttribute(\"y2\",f[1]),l&&!e.g._collapsable&&(e.of.setAttribute(\"x2\",f[0]),e.of.setAttribute(\"y2\",f[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)),h.setAttribute(\"r\",o),l&&!e.g._collapsable&&e.of.setAttribute(\"r\",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)));var y=Math.atan2(f[1]-p[1],f[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,x=Math.cos(y+e.a.v)*b+p[0],_=Math.sin(y+e.a.v)*b+p[1];h.setAttribute(\"fx\",x),h.setAttribute(\"fy\",_),l&&!e.g._collapsable&&(e.of.setAttribute(\"fx\",x),e.of.setAttribute(\"fy\",_))}}function h(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(s.pElem.setAttribute(\"stroke-dasharray\",r.dashStr),s.pElem.setAttribute(\"stroke-dashoffset\",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute(\"stroke\",\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i)&&s.pElem.setAttribute(\"stroke-opacity\",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute(\"stroke-width\",e.w.v),s.msElem&&s.msElem.setAttribute(\"stroke-width\",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case\"fl\":return a;case\"gf\":return o;case\"gs\":return n;case\"st\":return h;case\"sh\":case\"el\":case\"rc\":case\"sr\":return r;case\"tr\":return i;case\"no\":return s;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,s,r,a){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=r,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv=\"\",this.v=\"\",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:\"\",fStyle:\"\",fWeight:\"\",fc:\"\",j:\"\",justifyOffset:\"\",l:[],lh:0,lineWidths:[],ls:\"\",of:\"\",s:\"\",sc:\"\",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,s,r=this.shapes.length,a=this.stylesList.length,n=[],o=!1;for(i=0;i<a;i+=1){for(t=0,s=this.stylesList[i],o=!1,n.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,s=new SVGStyleData(t,e),r=s.pElem;return\"st\"===t.ty?i=new SVGStrokeStyleData(this,t,s):\"fl\"===t.ty?i=new SVGFillStyleData(this,t,s):\"gf\"===t.ty||\"gs\"===t.ty?(i=new(\"gf\"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+i.maskId+\")\"))):\"no\"===t.ty&&(i=new SVGNoStyleData(this,t,s)),(\"st\"===t.ty||\"gs\"===t.ty)&&(r.setAttribute(\"stroke-linecap\",lineCapEnum[t.lc||2]),r.setAttribute(\"stroke-linejoin\",lineJoinEnum[t.lj||2]),r.setAttribute(\"fill-opacity\",\"0\"),1===t.lj&&r.setAttribute(\"stroke-miterlimit\",t.ml)),2===t.r&&r.setAttribute(\"fill-rule\",\"evenodd\"),t.ln&&r.setAttribute(\"id\",t.ln),t.cl&&r.setAttribute(\"class\",t.cl),t.bm&&(r.style[\"mix-blend-mode\"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute(\"id\",t.ln),t.cl&&e.gr.setAttribute(\"class\",t.cl),t.bm&&(e.gr.style[\"mix-blend-mode\"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),s=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var s=4;\"rc\"===t.ty?s=5:\"el\"===t.ty?s=6:\"sr\"===t.ty&&(s=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,s,r,a,n){var o,h,l,p,f,c,m=[].concat(a),u=t.length-1,d=[],g=[];for(o=u;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=n,\"fl\"===t[o].ty||\"st\"===t[o].ty||\"gf\"===t[o].ty||\"gs\"===t[o].ty||\"no\"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),d.push(e[o].style);else if(\"gr\"===t[o].ty){if(c)for(h=0,l=e[o].it.length;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,r+1,m,n),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else\"tr\"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,m.push(p)):\"sh\"===t[o].ty||\"rc\"===t[o].ty||\"el\"===t[o].ty||\"sr\"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],m,r)),this.setElementStyles(e[o])):\"tm\"===t[o].ty||\"rd\"===t[o].ty||\"ms\"===t[o].ty||\"pb\"===t[o].ty||\"zz\"===t[o].ty||\"op\"===t[o].ty?(c?(f=e[o]).closed=!1:((f=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=f,this.shapeModifiers.push(f)),g.push(f)):\"rp\"===t[o].ty&&(c?(f=e[o]).closed=!0:(f=ShapeModifiers.getModifier(t[o].ty),e[o]=f,f.init(this,t,o,e),this.shapeModifiers.push(f),n=!1),g.push(f));this.addProcessedElement(t[o],o+1)}for(o=0,u=d.length;o<u;o+=1)d[o].closed=!0;for(o=0,u=g.length;o<u;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute(\"d\",this.stylesList[t].d),this.stylesList[t].d=\"M0 0\"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute(\"d\",this.stylesList[t].d||\"M0 0\"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,s,r,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,n=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,n=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,n=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,n=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e,i=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(e=0;e<r;e+=1)a=s!==this.keysIndex?this.effectsSequence[e](a,a.t):this.effectsSequence[e](this.currentData,a.t);i!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&i!==s-1&&!(t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,s=[],r=0,a=t.length,n=!1,o=!1,h=\"\";r<a;)n=o,o=!1,e=t.charCodeAt(r),h=t.charAt(r),FontManager.isCombinedCharacter(e)?n=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,r)?h=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(h=t.substr(r,2),n=!0):h=FontManager.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),FontManager.isVariationSelector(e)&&(n=!0)):FontManager.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(s[s.length-1]+=h,n=!1):s.push(h),r+=h.length;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,s=[],r=0,a=i.m.g,n=0,o=0,h=0,l=[],p=0,f=0,c=e.getFontByName(t.f),m=0,u=getFontProperties(c);t.fWeight=u.weight,t.fStyle=u.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),y=t.finalText.length,t.finalLineHeight=t.lh;var d=t.tr/1e3*t.finalSize;if(t.sz)for(var g,y,v,b,x,_,k,C,P,A,w=!0,S=t.sz[0],D=t.sz[1];w;){A=this.buildFinalText(t.t),P=0,p=0,y=A.length,d=t.tr/1e3*t.finalSize;var T=-1;for(g=0;g<y;g+=1)C=A[g].charCodeAt(0),v=!1,\" \"===A[g]?T=g:(13===C||3===C)&&(p=0,v=!0,P+=t.finalLineHeight||1.2*t.finalSize),e.chars?(k=e.getCharData(A[g],c.fStyle,c.fFamily),m=v?0:k.w*t.finalSize/100):m=e.measureText(A[g],t.f,t.finalSize),p+m>S&&\" \"!==A[g]?(-1===T?y+=1:g=T,P+=t.finalLineHeight||1.2*t.finalSize,A.splice(g,T===g?1:0,\"\\r\"),T=-1,p=0):p+=m+d;P+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&D<P?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=A,y=t.finalText.length,w=!1)}p=-d,m=0;var M=0;for(g=0;g<y;g+=1)if(v=!1,13===(C=(I=t.finalText[g]).charCodeAt(0))||3===C?(M=0,l.push(p),f=p>f?p:f,p=-2*d,b=\"\",v=!0,h+=1):b=I,e.chars?(k=e.getCharData(I,c.fStyle,e.getFontByName(t.f).fFamily),m=v?0:k.w*t.finalSize/100):m=e.measureText(b,t.f,t.finalSize),\" \"===I?M+=m+d:(p+=m+d+M,M=0),s.push({l:m,an:m,add:n,n:v,anIndexes:[],val:b,line:h,animatorJustifyOffset:0}),2==a){if(n+=m,\"\"===b||\" \"===b||g===y-1){for((\"\"===b||\" \"===b)&&(n-=m);o<=g;)s[o].an=n,s[o].ind=r,s[o].extra=m,o+=1;r+=1,n=0}}else if(3==a){if(n+=m,\"\"===b||g===y-1){for(\"\"===b&&(n-=m);o<=g;)s[o].an=n,s[o].ind=r,s[o].extra=m,o+=1;n=0,r+=1}}else s[r].ind=r,s[r].extra=0,r+=1;if(t.l=s,f=p>f?p:f,l.push(p),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=f,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=l;var E=i.a;_=E.length;var F=[];for(x=0;x<_;x+=1){for((L=E[x]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),V=0,R=L.s.b,g=0;g<y;g+=1)(B=s[g]).anIndexes[x]=V,(1==R&&\"\"!==B.val||2==R&&\"\"!==B.val&&\" \"!==B.val||3==R&&(B.n||\" \"==B.val||g==y-1)||4==R&&(B.n||g==y-1))&&(1===L.s.rn&&F.push(V),V+=1);i.a[x].s.totalChars=V;var I,L,B,R,V,z,O=-1;if(1===L.s.rn)for(g=0;g<y;g+=1)O!=(B=s[g]).anIndexes[x]&&(O=B.anIndexes[x],z=F.splice(Math.floor(Math.random()*F.length),1)[0]),B.anIndexes[x]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=c.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),\"e\"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,a=0,n=1,o=1;this.ne.v>0?r=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(r,a,n,o).get,l=0,p=this.finalS,f=this.finalE,c=this.data.sh;if(2===c)l=h(l=f===p?s>=f?1:0:t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(3===c)l=h(l=f===p?s>=f?0:1:1-t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(4===c)f===p?l=0:(l=t(0,e(.5/(f-p)+(s-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(f===p)l=0;else{var m=f-p,u=-m/2+(s=e(t(0,s+.5-p),f-p)),d=m/2;l=Math.sqrt(1-u*u/(d*d))}l=h(l)}else 6===c?l=h(l=f===p?0:(1+Math.cos(Math.PI+2*Math.PI*(s=e(t(0,s+.5-p),f-p))/(f-p)))/2):(s>=i(p)&&(l=s-p<0?t(0,e(e(f,1)-(p-s),1)):t(0,e(f-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l<y?l=0:(l=(l-y)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,r=this.e.v/e+i;if(s>r){var a=s;s=r,r=a}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(t,e,i){return new s(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var s={propType:!1},r=PropertyFactory.getProp,a=e.a;this.a={r:a.r?r(t,a.r,0,degToRads,i):s,rx:a.rx?r(t,a.rx,0,degToRads,i):s,ry:a.ry?r(t,a.ry,0,degToRads,i):s,sk:a.sk?r(t,a.sk,0,degToRads,i):s,sa:a.sa?r(t,a.sa,0,degToRads,i):s,s:a.s?r(t,a.s,1,.01,i):s,a:a.a?r(t,a.a,1,0,i):s,o:a.o?r(t,a.o,0,.01,i):s,p:a.p?r(t,a.p,1,0,i):s,sw:a.sw?r(t,a.sw,0,0,i):s,sc:a.sc?r(t,a.sc,1,0,i):s,fc:a.fc?r(t,a.fc,1,0,i):s,fh:a.fh?r(t,a.fh,0,0,i):s,fs:a.fs?r(t,a.fs,0,.01,i):s,fb:a.fb?r(t,a.fb,0,.01,i):s,t:a.t?r(t,a.t,0,0,i):s},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&\"m\"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,r,a,n,o,h,l,p,f,c,m,u,d,g,y,v,b,x=this._moreOptions.alignment.v,_=this._animatorsData,k=this._textData,C=this.mHelper,P=this._renderType,A=this.renderedLetters.length,w=t.l;if(this._hasMaskedPath){if(W=this._pathData.m,!this._pathData.n||this._pathData._mdf){var S,D,T,M,E,F,I,L,B,R,V,z,O,N,G,j,q,W,Y,H=W.v;for(this._pathData.r.v&&(H=H.reverse()),E={tLength:0,segments:[]},M=H._length-1,j=0,T=0;T<M;T+=1)Y=bez.buildBezierData(H.v[T],H.v[T+1],[H.o[T][0]-H.v[T][0],H.o[T][1]-H.v[T][1]],[H.i[T+1][0]-H.v[T+1][0],H.i[T+1][1]-H.v[T+1][1]]),E.tLength+=Y.segmentLength,E.segments.push(Y),j+=Y.segmentLength;T=M,W.v.c&&(Y=bez.buildBezierData(H.v[T],H.v[0],[H.o[T][0]-H.v[T][0],H.o[T][1]-H.v[T][1]],[H.i[0][0]-H.v[0][0],H.i[0][1]-H.v[0][1]]),E.tLength+=Y.segmentLength,E.segments.push(Y),j+=Y.segmentLength),this._pathData.pi=E}if(E=this._pathData.pi,F=this._pathData.f.v,V=0,R=1,L=0,B=!0,N=E.segments,F<0&&W.v.c)for(E.tLength<Math.abs(F)&&(F=-Math.abs(F)%E.tLength),V=N.length-1,R=(O=N[V].points).length-1;F<0;)F+=O[R].partialLength,(R-=1)<0&&(V-=1,R=(O=N[V].points).length-1);z=(O=N[V].points)[R-1],G=(I=O[R]).partialLength}M=w.length,S=0,D=0;var X=1.2*t.finalSize*.714,J=!0;a=_.length;var K=-1,Z=F,U=V,Q=R,$=-1,tt=\"\",te=this.defaultPropsArray;if(2===t.j||1===t.j){var ti=0,ts=0,tr=2===t.j?-.5:-1,ta=0,tn=!0;for(T=0;T<M;T+=1)if(w[T].n){for(ti&&(ti+=ts);ta<T;)w[ta].animatorJustifyOffset=ti,ta+=1;ti=0,tn=!0}else{for(r=0;r<a;r+=1)(i=_[r].a).t.propType&&(tn&&2===t.j&&(ts+=i.t.v*tr),(o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?ti+=i.t.v*o[0]*tr:ti+=i.t.v*o*tr);tn=!1}for(ti&&(ti+=ts);ta<T;)w[ta].animatorJustifyOffset=ti,ta+=1}for(T=0;T<M;T+=1){if(C.reset(),f=1,w[T].n)S=0,D+=t.yOffset+(J?1:0),F=Z,J=!1,this._hasMaskedPath&&(V=U,R=Q,z=(O=N[V].points)[R-1],G=(I=O[R]).partialLength,L=0),tt=\"\",v=\"\",g=\"\",b=\"\",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==w[T].line){switch(t.j){case 1:F+=j-t.lineWidths[w[T].line];break;case 2:F+=(j-t.lineWidths[w[T].line])/2}$=w[T].line}K!==w[T].ind&&(w[K]&&(F+=w[K].extra),F+=w[T].an/2,K=w[T].ind),F+=x[0]*w[T].an*.005;var to=0;for(r=0;r<a;r+=1)(i=_[r].a).p.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?to+=i.p.v[0]*o[0]:to+=i.p.v[0]*o),i.a.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?to+=i.a.v[0]*o[0]:to+=i.a.v[0]*o);for(B=!0,this._pathData.a.v&&(F=.5*w[0].an+(j-this._pathData.f.v-.5*w[0].an-.5*w[w.length-1].an)*K/(M-1)+this._pathData.f.v);B;)L+G>=F+to||!O?(q=(F+to-L)/I.partialLength,l=z.point[0]+(I.point[0]-z.point[0])*q,p=z.point[1]+(I.point[1]-z.point[1])*q,C.translate(-x[0]*w[T].an*.005,-(x[1]*X*.01)),B=!1):O&&(L+=I.partialLength,(R+=1)>=O.length&&(R=0,N[V+=1]?O=N[V].points:W.v.c?(R=0,O=N[V=0].points):(L-=I.partialLength,O=null)),O&&(z=I,G=(I=O[R]).partialLength));h=w[T].an/2-w[T].add,C.translate(-h,0,0)}else h=w[T].an/2-w[T].add,C.translate(-h,0,0),C.translate(-x[0]*w[T].an*.005,-x[1]*X*.01,0);for(r=0;r<a;r+=1)(i=_[r].a).t.propType&&(o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars),(0!==S||0!==t.j)&&(this._hasMaskedPath?o.length?F+=i.t.v*o[0]:F+=i.t.v*o:o.length?S+=i.t.v*o[0]:S+=i.t.v*o));for(t.strokeWidthAnim&&(m=t.sw||0),t.strokeColorAnim&&(c=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(u=[t.fc[0],t.fc[1],t.fc[2]]),r=0;r<a;r+=1)(i=_[r].a).a.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?C.translate(-i.a.v[0]*o[0],-i.a.v[1]*o[1],i.a.v[2]*o[2]):C.translate(-i.a.v[0]*o,-i.a.v[1]*o,i.a.v[2]*o));for(r=0;r<a;r+=1)(i=_[r].a).s.propType&&((o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars)).length?C.scale(1+(i.s.v[0]-1)*o[0],1+(i.s.v[1]-1)*o[1],1):C.scale(1+(i.s.v[0]-1)*o,1+(i.s.v[1]-1)*o,1));for(r=0;r<a;r+=1){if(i=_[r].a,o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars),i.sk.propType&&(o.length?C.skewFromAxis(-i.sk.v*o[0],i.sa.v*o[1]):C.skewFromAxis(-i.sk.v*o,i.sa.v*o)),i.r.propType&&(o.length?C.rotateZ(-i.r.v*o[2]):C.rotateZ(-i.r.v*o)),i.ry.propType&&(o.length?C.rotateY(i.ry.v*o[1]):C.rotateY(i.ry.v*o)),i.rx.propType&&(o.length?C.rotateX(i.rx.v*o[0]):C.rotateX(i.rx.v*o)),i.o.propType&&(o.length?f+=(i.o.v*o[0]-f)*o[0]:f+=(i.o.v*o-f)*o),t.strokeWidthAnim&&i.sw.propType&&(o.length?m+=i.sw.v*o[0]:m+=i.sw.v*o),t.strokeColorAnim&&i.sc.propType)for(d=0;d<3;d+=1)o.length?c[d]+=(i.sc.v[d]-c[d])*o[0]:c[d]+=(i.sc.v[d]-c[d])*o;if(t.fillColorAnim&&t.fc){if(i.fc.propType)for(d=0;d<3;d+=1)o.length?u[d]+=(i.fc.v[d]-u[d])*o[0]:u[d]+=(i.fc.v[d]-u[d])*o;i.fh.propType&&(u=o.length?addHueToRGB(u,i.fh.v*o[0]):addHueToRGB(u,i.fh.v*o)),i.fs.propType&&(u=o.length?addSaturationToRGB(u,i.fs.v*o[0]):addSaturationToRGB(u,i.fs.v*o)),i.fb.propType&&(u=o.length?addBrightnessToRGB(u,i.fb.v*o[0]):addBrightnessToRGB(u,i.fb.v*o))}}for(r=0;r<a;r+=1)(i=_[r].a).p.propType&&(o=(s=_[r].s).getMult(w[T].anIndexes[r],k.a[r].s.totalChars),this._hasMaskedPath?o.length?C.translate(0,i.p.v[1]*o[0],-i.p.v[2]*o[1]):C.translate(0,i.p.v[1]*o,-i.p.v[2]*o):o.length?C.translate(i.p.v[0]*o[0],i.p.v[1]*o[1],-i.p.v[2]*o[2]):C.translate(i.p.v[0]*o,i.p.v[1]*o,-i.p.v[2]*o));if(t.strokeWidthAnim&&(g=m<0?0:m),t.strokeColorAnim&&(y=\"rgb(\"+Math.round(255*c[0])+\",\"+Math.round(255*c[1])+\",\"+Math.round(255*c[2])+\")\"),t.fillColorAnim&&t.fc&&(v=\"rgb(\"+Math.round(255*u[0])+\",\"+Math.round(255*u[1])+\",\"+Math.round(255*u[2])+\")\"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,x[1]*X*.01+D,0),this._pathData.p.v){var th=180*Math.atan((I.point[1]-z.point[1])/(I.point[0]-z.point[0]))/Math.PI;I.point[0]<z.point[0]&&(th+=180),C.rotate(-th*Math.PI/180)}C.translate(l,p,0),F-=x[0]*w[T].an*.005,w[T+1]&&K!==w[T+1].ind&&(F+=w[T].an/2+.001*t.tr*t.finalSize)}else{switch(C.translate(S,D,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(w[T].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[T].line]),0,0);break;case 2:C.translate(w[T].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[T].line])/2,0,0)}C.translate(0,-t.ls),C.translate(h,0,0),C.translate(x[0]*w[T].an*.005,x[1]*X*.01,0),S+=w[T].l+.001*t.tr*t.finalSize}\"html\"===P?tt=C.toCSS():\"svg\"===P?tt=C.to2dCSS():te=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],b=f}A<=T?(n=new LetterProps(b,g,y,v,tt,te),this.renderedLetters.push(n),A+=1,this.lettersChangedFlag=!0):(n=this.renderedLetters[T],this.lettersChangedFlag=n.update(b,g,y,v,tt,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,s,r=e.length,a=\"\";for(i=0;i<r;i+=1)\"sh\"===e[i].ty&&(a+=buildShapeString(s=e[i].ks.k,s.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,r,0)},ITextElement.prototype.buildColor=function(t){return\"rgb(\"+Math.round(255*t[0])+\",\"+Math.round(255*t[1])+\",\"+Math.round(255*t[2])+\")\"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType=\"svg\",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS(\"svg\");var i=\"\";if(e&&e.title){var s=createNS(\"title\"),r=createElementID();s.setAttribute(\"id\",r),s.textContent=e.title,this.svgElement.appendChild(s),i+=r}if(e&&e.description){var a=createNS(\"desc\"),n=createElementID();a.setAttribute(\"id\",n),a.textContent=e.description,this.svgElement.appendChild(a),i+=\" \"+n}i&&this.svgElement.setAttribute(\"aria-labelledby\",i);var o=createNS(\"defs\");this.svgElement.appendChild(o);var h=createNS(\"g\");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:e&&e.contentVisibility||\"visible\",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||\"\",id:e&&e.id||\"\",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"100%\",height:e&&e.filterSize&&e.filterSize.height||\"100%\",x:e&&e.filterSize&&e.filterSize.x||\"0%\",y:e&&e.filterSize&&e.filterSize.y||\"0%\"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType=\"svg\"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS(\"text\"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],r=\"\";e<i;)\"\\r\"===t[e]||\"\\x03\"===t[e]?(s.push(r),r=\"\"):r+=t[e],e+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t?t.l.length:0),t.fc?this.layerElement.setAttribute(\"fill\",this.buildColor(t.fc)):this.layerElement.setAttribute(\"fill\",\"rgba(0,0,0,0)\"),t.sc&&(this.layerElement.setAttribute(\"stroke\",this.buildColor(t.sc)),this.layerElement.setAttribute(\"stroke-width\",t.sw)),this.layerElement.setAttribute(\"font-size\",t.finalSize);var e=this.globalData.fontManager.getFontByName(t.f);if(e.fClass)this.layerElement.setAttribute(\"class\",e.fClass);else{this.layerElement.setAttribute(\"font-family\",e.fFamily);var i=t.fWeight,s=t.fStyle;this.layerElement.setAttribute(\"font-style\",s),this.layerElement.setAttribute(\"font-weight\",i)}this.layerElement.setAttribute(\"aria-label\",t.t);var r=t.l||[],a=!!this.globalData.fontManager.chars;g=r.length;var n=this.mHelper,o=\"\",h=this.data.singleShape,l=0,p=0,f=!0,c=.001*t.tr*t.finalSize;if(!h||a||t.sz){var m=this.textSpans.length;for(d=0;d<g;d+=1){if(this.textSpans[d]||(this.textSpans[d]={span:null,childSpan:null,glyph:null}),!a||!h||0===d){if(y=m>d?this.textSpans[d].span:createNS(a?\"g\":\"text\"),m<=d){if(y.setAttribute(\"stroke-linecap\",\"butt\"),y.setAttribute(\"stroke-linejoin\",\"round\"),y.setAttribute(\"stroke-miterlimit\",\"4\"),this.textSpans[d].span=y,a){var u=createNS(\"g\");y.appendChild(u),this.textSpans[d].childSpan=u}this.textSpans[d].span=y,this.layerElement.appendChild(y)}y.style.display=\"inherit\"}if(n.reset(),h&&(r[d].n&&(l=-c,p+=t.yOffset+(f?1:0),f=!1),this.applyTextPropertiesToMatrix(t,n,r[d].line,l,p),l+=(r[d].l||0)+c),a){if(1===(v=this.globalData.fontManager.getCharData(t.finalText[d],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)b=new SVGCompElement(v.data,this.globalData,this);else{var d,g,y,v,b,x=emptyShapeData;v.data&&v.data.shapes&&(x=this.buildShapeData(v.data,t.finalSize)),b=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[d].glyph){var _=this.textSpans[d].glyph;this.textSpans[d].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[d].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[d].childSpan.appendChild(b.layerElement),1===v.t&&this.textSpans[d].childSpan.setAttribute(\"transform\",\"scale(\"+t.finalSize/100+\",\"+t.finalSize/100+\")\")}else h&&y.setAttribute(\"transform\",\"translate(\"+n.props[12]+\",\"+n.props[13]+\")\"),y.textContent=r[d].val,y.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\")}h&&y&&y.setAttribute(\"d\",o)}else{var k=this.textContainer,C=\"start\";switch(t.j){case 1:C=\"end\";break;case 2:C=\"middle\";break;default:C=\"start\"}k.setAttribute(\"text-anchor\",C),k.setAttribute(\"letter-spacing\",c);var P=this.buildTextContents(t.finalText);for(d=0,g=P.length,p=t.ps?t.ps[1]+t.ascent:0;d<g;d+=1)(y=this.textSpans[d].span||createNS(\"tspan\")).textContent=P[d],y.setAttribute(\"x\",0),y.setAttribute(\"y\",p),y.style.display=\"inherit\",k.appendChild(y),this.textSpans[d]||(this.textSpans[d]={span:null,glyph:null}),this.textSpans[d].span=y,p+=t.finalLineHeight;this.layerElement.appendChild(k)}for(;d<this.textSpans.length;)this.textSpans[d].span.style.display=\"none\",d+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(t=0,this.renderedFrame=this.comp.renderedFrame;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,i,s,r,a=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(t=0,e=n.length;t<e;t+=1)!n[t].n&&(i=a[t],s=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&s.setAttribute(\"transform\",i.m),i._mdf.o&&s.setAttribute(\"opacity\",i.o),i._mdf.sw&&s.setAttribute(\"stroke-width\",i.sw),i._mdf.sc&&s.setAttribute(\"stroke\",i.sc),i._mdf.fc&&s.setAttribute(\"fill\",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS(\"rect\");t.setAttribute(\"width\",this.data.sw),t.setAttribute(\"height\",this.data.sh),t.setAttribute(\"fill\",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),this.svgElement.setAttribute(\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute(\"viewBox\",this.renderConfig.viewBoxSize):this.svgElement.setAttribute(\"viewBox\",\"0 0 \"+t.w+\" \"+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute(\"width\",t.w),this.svgElement.setAttribute(\"height\",t.h),this.svgElement.style.width=\"100%\",this.svgElement.style.height=\"100%\",this.svgElement.style.transform=\"translate3d(0,0,0)\",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute(\"width\",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute(\"height\",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute(\"id\",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute(\"focusable\",this.renderConfig.focusable),this.svgElement.setAttribute(\"preserveAspectRatio\",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS(\"clipPath\"),s=createNS(\"rect\");s.setAttribute(\"width\",t.w),s.setAttribute(\"height\",t.h),s.setAttribute(\"x\",0),s.setAttribute(\"y\",0);var r=createElementID();i.setAttribute(\"id\",r),i.appendChild(s),this.layerElement.setAttribute(\"clip-path\",\"url(\"+getLocationHref()+\"#\"+r+\")\"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return -1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s=\"tp\"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var r=e[s].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(s),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s=\"tp\"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i,s=t.getBaseElement();if(s){for(var r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(s,i):this.layerElement.appendChild(s)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display=\"none\"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display=\"block\"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e,i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=s-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,s=\"_\";for(e=0;e<i;e+=1)s+=t[e].transform.key+\"_\";var r=this.sequences[s];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i=0,s=t.transforms.length,r=e;i<s&&!e;){if(t.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=r},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,\"_\"+this.transform_key_count}};var lumaLoader=function(){var t=\"__lottie_element_luma_buffer\",e=null,i=null,s=null;function r(){var e=createNS(\"svg\"),i=createNS(\"filter\"),s=createNS(\"feColorMatrix\");return i.setAttribute(\"id\",t),s.setAttribute(\"type\",\"matrix\"),s.setAttribute(\"color-interpolation-filters\",\"sRGB\"),s.setAttribute(\"values\",\"0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0\"),i.appendChild(s),e.appendChild(i),e.setAttribute(\"id\",t+\"_svg\"),featureSupport.svgLumaHidden&&(e.style.display=\"none\"),e}function a(){e||(s=r(),document.body.appendChild(s),(i=(e=createTag(\"canvas\")).getContext(\"2d\")).filter=\"url(#\"+t+\")\",i.fillStyle=\"rgba(0,0,0,0)\",i.fillRect(0,0,1,1))}function n(s){return e||a(),e.width=s.width,e.height=s.height,i.filter=\"url(#\"+t+\")\",e}return{load:a,get:n}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag(\"canvas\");return i.width=t,i.height=e,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas}}(),registeredEffects={};function CVEffects(t){var e,i,s=t.data.ef?t.data.ef.length:0;for(e=0,this.filters=[];e<s;e+=1){i=null;var r=t.data.ef[e].ty;registeredEffects[r]&&(i=new registeredEffects[r].effect(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,s=this.masksProperties.length,r=!1;for(i=0;i<s;i+=1)\"n\"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,i=this.masksProperties.length;for(e.beginPath(),s=0;s<i;s+=1)if(\"n\"!==this.masksProperties[s].mode){this.masksProperties[s].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),n=this.viewData[s].v,r=t.applyToPointArray(n.v[0][0],n.v[0][1],0),e.moveTo(r[0],r[1]);var s,r,a,n,o,h=n._length;for(o=1;o<h;o+=1)a=t.applyToTriplePoints(n.o[o-1],n.i[o],n.v[o]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=t.applyToTriplePoints(n.o[o-1],n.i[0],n.v[0]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),e.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:\"source-in\",2:\"source-out\",3:\"source-in\",4:\"source-out\"};function CVShapeData(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,a,n=4;\"rc\"===e.ty?n=5:\"el\"===e.ty?n=6:\"sr\"===e.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,n,t);var o=i.length;for(r=0;r<o;r+=1)i[r].closed||(a={transforms:s.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(a),i[r].elements.push(a))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType=\"canvas\",this.values={fill:\"rgba(0,0,0,0)\",stroke:\"rgba(0,0,0,0)\",sWidth:0,fValue:\"\"},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray(\"float32\",16),this.fillStyle=\"\",this.strokeStyle=\"\",this.lineWidth=\"\",this.lineCap=\"\",this.lineJoin=\"\",this.miterLimit=\"\",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t<e;t+=1){var i=new CanvasContext;this.stack[t]=i}this._length=e,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle=\"\",this.appliedFillStyle=\"\",this.currentStrokeStyle=\"\",this.appliedStrokeStyle=\"\",this.currentLineWidth=\"\",this.appliedLineWidth=\"\",this.currentLineCap=\"\",this.appliedLineCap=\"\",this.currentLineJoin=\"\",this.appliedLineJoin=\"\",this.appliedMiterLimit=\"\",this.currentMiterLimit=\"\"}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||\"xMidYMid meet\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",contentVisibility:e&&e.contentVisibility||\"visible\",className:e&&e.className||\"\",id:e&&e.id||\"\",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType=\"canvas\",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS(\"g\"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType=\"svg\",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var s=PropertyFactory.getProp;if(this.pe=s(this,t.pe,0,0,this),t.ks.p.s?(this.px=s(this,t.ks.p.x,1,0,this),this.py=s(this,t.ks.p.y,1,0,this),this.pz=s(this,t.ks.p.z,1,0,this)):this.p=s(this,t.ks.p,1,0,this),t.ks.a&&(this.a=s(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,a=t.ks.or.k.length;for(r=0;r<a;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=s(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=s(this,t.ks.rx,0,degToRads,this),this.ry=s(this,t.ks.ry,0,degToRads,this),this.rz=s(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||\"\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"400%\",height:e&&e.filterSize&&e.filterSize.height||\"400%\",x:e&&e.filterSize&&e.filterSize.x||\"-100%\",y:e&&e.filterSize&&e.filterSize.y||\"-100%\"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=\"html\"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||\"\",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||\"xMidYMid slice\",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||\"400%\",height:e&&e.filterSize&&e.filterSize.height||\"400%\",x:e&&e.filterSize&&e.filterSize.x||\"-100%\",y:e&&e.filterSize&&e.filterSize.y||\"-100%\"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=\"html\"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext(\"2d\");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext(\"2d\");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById(\"tp\"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext(\"2d\").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation=\"destination-over\",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation=\"source-over\"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},s={};if(\"fl\"===t.ty||\"st\"===t.ty?(s.c=PropertyFactory.getProp(this,t.c,1,255,this),s.c.k||(i.co=\"rgb(\"+bmFloor(s.c.v[0])+\",\"+bmFloor(s.c.v[1])+\",\"+bmFloor(s.c.v[2])+\")\")):(\"gf\"===t.ty||\"gs\"===t.ty)&&(s.s=PropertyFactory.getProp(this,t.s,1,null,this),s.e=PropertyFactory.getProp(this,t.e,1,null,this),s.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,t.g,this)),s.o=PropertyFactory.getProp(this,t.o,0,.01,this),\"st\"===t.ty||\"gs\"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),s.w=PropertyFactory.getProp(this,t.w,0,null,this),s.w.k||(i.wi=s.w.v),t.d){var r=new DashProperty(this,t.d,\"canvas\",this);s.d=r,s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0])}}else i.r=2===t.r?\"evenodd\":\"nonzero\";return this.stylesList.push(i),s.style=i,s},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,s,r){var a,n,o,h,l,p,f=t.length-1,c=[],m=[],u=[].concat(r);for(a=f;a>=0;a-=1){if((h=this.searchProcessedElement(t[a]))?e[a]=i[h-1]:t[a]._shouldRender=s,\"fl\"===t[a].ty||\"st\"===t[a].ty||\"gf\"===t[a].ty||\"gs\"===t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],u),c.push(e[a].style);else if(\"gr\"===t[a].ty){if(h)for(n=0,o=e[a].it.length;n<o;n+=1)e[a].prevViewData[n]=e[a].it[n];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,s,u)}else\"tr\"===t[a].ty?(h||(p=this.createTransformElement(t[a]),e[a]=p),u.push(e[a]),this.addTransformToStyleList(e[a])):\"sh\"===t[a].ty||\"rc\"===t[a].ty||\"el\"===t[a].ty||\"sr\"===t[a].ty?h||(e[a]=this.createShapeElement(t[a])):\"tm\"===t[a].ty||\"rd\"===t[a].ty||\"pb\"===t[a].ty||\"zz\"===t[a].ty||\"op\"===t[a].ty?(h?(l=e[a]).closed=!1:((l=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=l,this.shapeModifiers.push(l)),m.push(l)):\"rp\"===t[a].ty&&(h?(l=e[a]).closed=!0:(l=ShapeModifiers.getModifier(t[a].ty),e[a]=l,l.init(this,t,a,e),this.shapeModifiers.push(l),s=!1),m.push(l));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),f=m.length,a=0;a<f;a+=1)m[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,s,r,a,n,o,h,l=this.stylesList.length,p=this.globalData.renderer,f=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(!((\"st\"===(o=(h=this.stylesList[t]).type)||\"gs\"===o)&&0===h.wi||!h.data._shouldRender||0===h.coOp||0===this.globalData.currentGlobalAlpha)){for(p.save(),a=h.elements,\"st\"===o||\"gs\"===o?(p.ctxStrokeStyle(\"st\"===o?h.co:h.grd),p.ctxLineWidth(h.wi),p.ctxLineCap(h.lc),p.ctxLineJoin(h.lj),p.ctxMiterLimit(h.ml||0)):p.ctxFillStyle(\"fl\"===o?h.co:h.grd),p.ctxOpacity(h.coOp),\"st\"!==o&&\"gs\"!==o&&f.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),i=a.length,e=0;e<i;e+=1){for((\"st\"===o||\"gs\"===o)&&(f.beginPath(),h.da&&(f.setLineDash(h.da),f.lineDashOffset=h.do)),r=(n=a[e].trNodes).length,s=0;s<r;s+=1)\"m\"===n[s].t?f.moveTo(n[s].p[0],n[s].p[1]):\"c\"===n[s].t?f.bezierCurveTo(n[s].pts[0],n[s].pts[1],n[s].pts[2],n[s].pts[3],n[s].pts[4],n[s].pts[5]):f.closePath();(\"st\"===o||\"gs\"===o)&&(p.ctxStroke(),h.da&&f.setLineDash(this.dashResetter))}\"st\"!==o&&\"gs\"!==o&&this.globalData.renderer.ctxFill(h.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,s){var r,a,n=e.length-1;for(a=t,r=n;r>=0;r-=1)\"tr\"===e[r].ty?(a=i[r].transform,this.renderShapeTransform(t,a)):\"sh\"===e[r].ty||\"el\"===e[r].ty||\"rc\"===e[r].ty||\"sr\"===e[r].ty?this.renderPath(e[r],i[r]):\"fl\"===e[r].ty?this.renderFill(e[r],i[r],a):\"st\"===e[r].ty?this.renderStroke(e[r],i[r],a):\"gf\"===e[r].ty||\"gs\"===e[r].ty?this.renderGradientFill(e[r],i[r],a):\"gr\"===e[r].ty?this.renderShape(a,e[r].it,i[r].it):e[r].ty;s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,s,r,a=t.trNodes,n=e.paths,o=n._length;a.length=0;var h=t.transforms.finalTransform;for(r=0;r<o;r+=1){var l=n.shapes[r];if(l&&l.v){for(i=1,s=l._length;i<s;i+=1)1===i&&a.push({t:\"m\",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),a.push({t:\"c\",pts:h.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===s&&a.push({t:\"m\",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&s&&(a.push({t:\"c\",pts:h.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),a.push({t:\"z\"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,s=e.styledShapes.length;for(i=0;i<s;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co=\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var r,a,n=this.globalData.canvasContext,o=e.s.v,h=e.e.v;if(1===t.t)r=n.createLinearGradient(o[0],o[1],h[0],h[1]);else{var l=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),p=Math.atan2(h[1]-o[1],h[0]-o[0]),f=e.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var c=l*f,m=Math.cos(p+e.a.v)*c+o[0],u=Math.sin(p+e.a.v)*c+o[1];r=n.createRadialGradient(m,u,0,o[0],o[1],l)}var d=t.g.p,g=e.g.c,y=1;for(a=0;a<d;a+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*a+1]),r.addColorStop(g[4*a]/100,\"rgba(\"+g[4*a+1]+\",\"+g[4*a+2]+\",\"+g[4*a+3]+\",\"+y+\")\");s.grd=r}s.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co=\"rgb(\"+bmFloor(e.c.v[0])+\",\"+bmFloor(e.c.v[1])+\",\"+bmFloor(e.c.v[2])+\")\"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag(\"canvas\").getContext(\"2d\"),CVTextElement.prototype.buildNewText=function(){var t,e,i,s,r,a,n,o,h,l,p,f,c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var m=!1;c.fc?(m=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill=\"rgba(0,0,0,0)\",this.fill=m;var u=!1;c.sc&&(u=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var d=this.globalData.fontManager.getFontByName(c.f),g=c.l,y=this.mHelper;this.stroke=u,this.values.fValue=c.finalSize+\"px \"+this.globalData.fontManager.getFontByName(c.f).fFamily,e=c.finalText.length;var v=this.data.singleShape,b=.001*c.tr*c.finalSize,x=0,_=0,k=!0,C=0;for(t=0;t<e;t+=1){s=(i=this.globalData.fontManager.getCharData(c.finalText[t],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily))&&i.data||{},y.reset(),v&&g[t].n&&(x=-b,_+=c.yOffset+(k?1:0),k=!1),h=(n=s.shapes?s.shapes[0].it:[]).length,y.scale(c.finalSize/100,c.finalSize/100),v&&this.applyTextPropertiesToMatrix(c,y,g[t].line,x,_),p=createSizedArray(h-1);var P=0;for(o=0;o<h;o+=1)if(\"sh\"===n[o].ty){for(r=1,a=n[o].ks.k.i.length,l=n[o].ks.k,f=[];r<a;r+=1)1===r&&f.push(y.applyToX(l.v[0][0],l.v[0][1],0),y.applyToY(l.v[0][0],l.v[0][1],0)),f.push(y.applyToX(l.o[r-1][0],l.o[r-1][1],0),y.applyToY(l.o[r-1][0],l.o[r-1][1],0),y.applyToX(l.i[r][0],l.i[r][1],0),y.applyToY(l.i[r][0],l.i[r][1],0),y.applyToX(l.v[r][0],l.v[r][1],0),y.applyToY(l.v[r][0],l.v[r][1],0));f.push(y.applyToX(l.o[r-1][0],l.o[r-1][1],0),y.applyToY(l.o[r-1][0],l.o[r-1][1],0),y.applyToX(l.i[0][0],l.i[0][1],0),y.applyToY(l.i[0][0],l.i[0][1],0),y.applyToX(l.v[0][0],l.v[0][1],0),y.applyToY(l.v[0][0],l.v[0][1],0)),p[P]=f,P+=1}v&&(x+=g[t].l+b),this.textSpans[C]?this.textSpans[C].elem=p:this.textSpans[C]={elem:p},C+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap(\"butt\"),this.globalData.renderer.ctxLineJoin(\"miter\"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,e,i,s,r,a,n,o,h,l=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;e=p.length;var f=null,c=null,m=null,u=this.globalData.renderer;for(t=0;t<e;t+=1)if(!p[t].n){if((n=l[t])&&(u.save(),u.ctxTransform(n.p),u.ctxOpacity(n.o)),this.fill){for(n&&n.fc?f!==n.fc&&(u.ctxFillStyle(n.fc),f=n.fc):f!==this.values.fill&&(f=this.values.fill,u.ctxFillStyle(this.values.fill)),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(a=(h=o[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<a;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),u.ctxFill()}if(this.stroke){for(n&&n.sw?m!==n.sw&&(m=n.sw,u.ctxLineWidth(n.sw)):m!==this.values.sWidth&&(m=this.values.sWidth,u.ctxLineWidth(this.values.sWidth)),n&&n.sc?c!==n.sc&&(c=n.sc,u.ctxStrokeStyle(n.sc)):c!==this.values.stroke&&(c=this.values.stroke,u.ctxStrokeStyle(this.values.stroke)),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(a=(h=o[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<a;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),u.ctxStroke()}n&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t,e,i=createTag(\"canvas\");i.width=this.assetData.w,i.height=this.assetData.h;var s=i.getContext(\"2d\"),r=this.img.width,a=this.img.height,n=r/a,o=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>o&&\"xMidYMid slice\"===h||n<o&&\"xMidYMid slice\"!==h?t=(e=a)*o:e=(t=r)/o,s.drawImage(this.img,(r-t)/2,(a-e)/2,t,e,0,0,this.assetData.w,this.assetData.h),this.img=i}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,s){this.canvasContext.fillRect(t,e,i,s)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode=\"source-over\"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag(\"canvas\");var e=this.animationItem.container.style;e.width=\"100%\",e.height=\"100%\";var i=\"0px 0px 0px\";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e[\"-webkit-transform\"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext(\"2d\"),this.renderConfig.className&&this.animationItem.container.setAttribute(\"class\",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute(\"id\",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){if(this.reset(),t?(i=t,s=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=s):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,s=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf(\"meet\")||-1!==this.renderConfig.preserveAspectRatio.indexOf(\"slice\")){var i,s,r,a,n=this.renderConfig.preserveAspectRatio.split(\" \"),o=n[1]||\"meet\",h=n[0]||\"xMidYMid\",l=h.substr(0,4),p=h.substr(4);r=i/s,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&\"meet\"===o||a<r&&\"slice\"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),\"xMid\"===l&&(a<r&&\"meet\"===o||a>r&&\"slice\"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:\"xMax\"===l&&(a<r&&\"meet\"===o||a>r&&\"slice\"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,\"YMid\"===p&&(a>r&&\"meet\"===o||a<r&&\"slice\"===o)?this.transformCanvas.ty=(s-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:\"YMax\"===p&&(a>r&&\"meet\"===o||a<r&&\"slice\"===o)?this.transformCanvas.ty=(s-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else\"none\"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,s=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display=\"none\"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display=\"block\"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],s=i.transform,r=this.cTr.props;for(e=0;e<16;e+=1)r[e]=s[e];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(s[0],s[1],s[4],s[5],s[12],s[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e,i=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var s=this.stack[this.cArrPos];for(e=0;e<16;e+=1)s.transform[e]=i[e];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=s.opacity,r.fillStyle=s.fillStyle,r.strokeStyle=s.strokeStyle,r.lineWidth=s.lineWidth,r.lineCap=s.lineCap,r.lineJoin=s.lineJoin,r.miterLimit=s.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,s){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,s)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||\"div\"),this.data.hasMask?(this.svgElement=createNS(\"svg\"),this.layerElement=createNS(\"g\"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute(\"id\",this.data.ln),this.data.cl&&this.layerElement.setAttribute(\"class\",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS(\"rect\")).setAttribute(\"width\",this.data.sw),t.setAttribute(\"height\",this.data.sh),t.setAttribute(\"fill\",this.data.sc),this.svgElement.setAttribute(\"width\",this.data.sw),this.svgElement.setAttribute(\"height\",this.data.sh)):((t=createTag(\"div\")).style.width=this.data.sw+\"px\",t.style.height=this.data.sh+\"px\",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS(\"svg\");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute(\"width\",e.w),t.setAttribute(\"height\",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,s,r,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)s=this.getTransformedPoint(h,o.v[i]),r=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[i+1]),n=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(s,r,a,n,e);o.c&&(s=this.getTransformedPoint(h,o.v[i]),r=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(s,r,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,s,r){this.getBoundsOfCurve(t,e,i,s);var a=this.shapeBoundingBox;r.x=bmMin(a.left,r.x),r.xMax=bmMax(a.right,r.xMax),r.y=bmMin(a.top,r.y),r.yMax=bmMax(a.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,s){for(var r,a,n,o,h,l,p,f=[[t[0],s[0]],[t[1],s[1]]],c=0;c<2;++c)a=6*t[c]-12*e[c]+6*i[c],r=-3*t[c]+9*e[c]-9*i[c]+3*s[c],n=3*e[c]-3*t[c],a|=0,n|=0,0==(r|=0)&&0===a||(0===r?(o=-n/a)>0&&o<1&&f[c].push(this.calculateF(o,t,e,i,s,c)):(h=a*a-4*n*r)>=0&&((l=(-a+bmSqrt(h))/(2*r))>0&&l<1&&f[c].push(this.calculateF(l,t,e,i,s,c)),(p=(-a-bmSqrt(h))/(2*r))>0&&p<1&&f[c].push(this.calculateF(p,t,e,i,s,c))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1])},HShapeElement.prototype.calculateF=function(t,e,i,s,r,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*s[a]+bmPow(t,3)*r[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var s=0;s<t.keyframes.length;s+=1){var r=t.keyframes[s].s;r>i&&(i=r)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,!this.currentBoxContains(t)){var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute(\"width\",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute(\"height\",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute(\"viewBox\",this.currentBBox.x+\" \"+this.currentBBox.y+\" \"+this.currentBBox.w+\" \"+this.currentBBox.h);var s=this.shapeCont.style,r=\"translate(\"+this.currentBBox.x+\"px,\"+this.currentBBox.y+\"px)\";s.transform=r,s.webkitTransform=r}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType=\"svg\",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute(\"width\",this.compW),this.svgElement.setAttribute(\"height\",this.compH);var t=createNS(\"g\");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType=\"html\",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):\"rgba(0,0,0,0)\";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+\"px\");var s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars){if(e.fontSize=t.finalSize+\"px\",e.lineHeight=t.finalSize+\"px\",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var r=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=r}}var n=t.l;f=n.length;var o=this.mHelper,h=\"\",l=0;for(p=0;p<f;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[l]?c=this.textPaths[l]:((c=createNS(\"path\")).setAttribute(\"stroke-linecap\",lineCapEnum[1]),c.setAttribute(\"stroke-linejoin\",lineJoinEnum[2]),c.setAttribute(\"stroke-miterlimit\",\"4\")),this.isMasked||(this.textSpans[l]?u=(m=this.textSpans[l]).children[0]:((m=createTag(\"div\")).style.lineHeight=0,(u=createNS(\"svg\")).appendChild(c),styleDiv(m)))):this.isMasked?c=this.textPaths[l]?this.textPaths[l]:createNS(\"text\"):this.textSpans[l]?(m=this.textSpans[l],c=this.textPaths[l]):(styleDiv(m=createTag(\"span\")),styleDiv(c=createTag(\"span\")),m.appendChild(c)),this.globalData.fontManager.chars){var p,f,c,m,u,d,g,y=this.globalData.fontManager.getCharData(t.finalText[p],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=y?y.data:null,o.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,o.scale(t.finalSize/100,t.finalSize/100),h=this.createPathShape(o,d),c.setAttribute(\"d\",h)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(m),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute(\"width\",v.width+2),u.setAttribute(\"height\",v.height+2),u.setAttribute(\"viewBox\",v.x-1+\" \"+(v.y-1)+\" \"+(v.width+2)+\" \"+(v.height+2));var b=u.style,x=\"translate(\"+(v.x-1)+\"px,\"+(v.y-1)+\"px)\";b.transform=x,b.webkitTransform=x,n[p].yOffset=v.y-1}else u.setAttribute(\"width\",1),u.setAttribute(\"height\",1);m.appendChild(u)}}else if(c.textContent=n[p].val,c.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(m);var _=c.style,k=\"translate3d(0,\"+-t.finalSize/1.2+\"px,0)\";_.transform=k,_.webkitTransform=k}this.isMasked?this.textSpans[l]=c:this.textSpans[l]=m,this.textSpans[l].style.display=\"block\",this.textPaths[l]=c,l+=1}for(;l<this.textSpans.length;)this.textSpans[l].style.display=\"none\",l+=1},HTextElement.prototype.renderInnerContent=function(){if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute(\"viewBox\",-this.finalTransform.mProp.p.v[0]+\" \"+-this.finalTransform.mProp.p.v[1]+\" \"+this.compW+\" \"+this.compH),t=this.svgElement.style;var t,e,i,s,r,a,n=\"translate(\"+-this.finalTransform.mProp.p.v[0]+\"px,\"+-this.finalTransform.mProp.p.v[1]+\"px)\";t.transform=n,t.webkitTransform=n}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var o=0,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(e=0,i=l.length;e<i;e+=1)l[e].n?o+=1:(r=this.textSpans[e],a=this.textPaths[e],s=h[o],o+=1,s._mdf.m&&(this.isMasked?r.setAttribute(\"transform\",s.m):(r.style.webkitTransform=s.m,r.style.transform=s.m)),r.style.opacity=s.o,s.sw&&s._mdf.sw&&a.setAttribute(\"stroke-width\",s.sw),s.sc&&s._mdf.sc&&a.setAttribute(\"stroke\",s.sc),s.fc&&s._mdf.fc&&(a.setAttribute(\"fill\",s.fc),a.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute(\"width\",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute(\"height\",p.height));var f=1;if(this.currentBBox.w!==p.width+2*f||this.currentBBox.h!==p.height+2*f||this.currentBBox.x!==p.x-f||this.currentBBox.y!==p.y-f){this.currentBBox.w=p.width+2*f,this.currentBBox.h=p.height+2*f,this.currentBBox.x=p.x-f,this.currentBBox.y=p.y-f,this.svgElement.setAttribute(\"viewBox\",this.currentBBox.x+\" \"+this.currentBBox.y+\" \"+this.currentBBox.w+\" \"+this.currentBBox.h),t=this.svgElement.style;var c=\"translate(\"+this.currentBBox.x+\"px,\"+this.currentBBox.y+\"px)\";t.transform=c,t.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,s,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)if(\"3d\"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,s=e.container.style;var a=this.pe.v+\"px\",n=\"0px 0px 0px\",o=\"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)\";i.perspective=a,i.webkitPerspective=a,s.transformOrigin=n,s.mozTransformOrigin=n,s.webkitTransformOrigin=n,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(i=0,s=this.hierarchy.length;i<s;i+=1)t=this.hierarchy[i].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=s=this.hierarchy.length-1;i>=0;i-=1){var e=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i,s,r,a=Math.sqrt(Math.pow((r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]])[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),n=[r[0]/a,r[1]/a,r[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),h=Math.atan2(n[1],o),l=Math.atan2(n[0],-n[2]);this.mat.rotateY(l).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){for(i=0,s=this.comp.threeDElements.length;i<s;i+=1)if(\"3d\"===(f=this.comp.threeDElements[i]).type){if(p){var f,c,m,u=this.mat.toCSS();(m=f.container.style).transform=u,m.webkitTransform=u}this.pe._mdf&&((c=f.perspectiveElem.style).perspective=this.pe.v+\"px\",c.webkitPerspective=this.pe.v+\"px\")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS(\"image\"),this.imageElem.setAttribute(\"width\",this.assetData.w+\"px\"),this.imageElem.setAttribute(\"height\",this.assetData.h+\"px\"),this.imageElem.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute(\"width\",this.assetData.w),this.baseElement.setAttribute(\"height\",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin=\"anonymous\",e.src=t,this.data.ln&&this.baseElement.setAttribute(\"id\",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var s=this.layers[e];if(s.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var r,a,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement&&(a=this.elements[n],r=(this.layers[n].ddd?this.getThreeDContainerByPos(n):a.getBaseElement())||r),n+=1;r?s.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):s.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,s,r=createTag(\"div\");styleDiv(r);var a=createTag(\"div\");if(styleDiv(a),\"3d\"===e){(i=r.style).width=this.globalData.compSize.w+\"px\",i.height=this.globalData.compSize.h+\"px\";var n=\"50% 50%\";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n;var o=\"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)\";(s=a.style).transform=o,s.webkitTransform=o}r.appendChild(a);var h={container:a,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,s=\"\";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?\"3d\"!==s&&(s=\"3d\",e=this.createThreeDContainer(t,\"3d\")):\"2d\"!==s&&(s=\"2d\",e=this.createThreeDContainer(t,\"2d\")),e.endPos=Math.max(e.endPos,t);for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,s=this.threeDElements.length;i<s;){if(e<=this.threeDElements[i].endPos){for(var r,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag(\"div\"),i=this.animationItem.wrapper,s=e.style;s.width=t.w+\"px\",s.height=t.h+\"px\",this.resizerElem=e,styleDiv(e),s.transformStyle=\"flat\",s.mozTransformStyle=\"flat\",s.webkitTransformStyle=\"flat\",this.renderConfig.className&&e.setAttribute(\"class\",this.renderConfig.className),i.appendChild(e),s.overflow=\"hidden\";var r=createNS(\"svg\");r.setAttribute(\"width\",\"1\"),r.setAttribute(\"height\",\"1\"),styleDiv(r),this.resizerElem.appendChild(r);var a=createNS(\"defs\");r.appendChild(a),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=\"\"),this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,s,r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,n=r/a;this.globalData.compSize.w/this.globalData.compSize.h>n?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,s=(a-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,s=0);var o=this.resizerElem.style;o.webkitTransform=\"matrix3d(\"+t+\",0,0,0,0,\"+e+\",0,0,0,0,1,0,\"+i+\",\"+s+\",0,1)\",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display=\"none\"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display=\"block\"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,s=this.threeDElements.length;for(t=0;t<s;t+=1){var r=this.threeDElements[t].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+\"px\",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,s=createTag(\"div\");for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e],s,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute(\"width\",this.data.w),this.svgElement.setAttribute(\"height\",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,s=0;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(){return function(t){function e(e){for(var i=0,s=t.layers.length;i<s;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,\"_name\",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}}();function _typeof$2(t){return(_typeof$2=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function seedRandom(t,e){var i,s=this,r=256,a=6,n=52,o=\"random\",h=e.pow(r,a),l=e.pow(2,n),p=2*l,f=r-1;function c(i,s,n){var f=[],c=g(d((s=!0===s?{entropy:!0}:s||{}).entropy?[i,v(t)]:null===i?y():i,3),f),b=new m(f),x=function(){for(var t=b.g(a),e=h,i=0;t<l;)t=(t+i)*r,e*=r,i=b.g(1);for(;t>=p;)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,g(v(b.S),t),(s.pass||n||function(t,i,s,r){return(r&&(r.S&&u(r,b),t.state=function(){return u(b,{})}),s)?(e[o]=t,i):t})(x,c,\"global\"in s?s.global:this==e,s.state)}function m(t){var e,i=t.length,s=this,a=0,n=s.i=s.j=0,o=s.S=[];for(i||(t=[i++]);a<r;)o[a]=a++;for(a=0;a<r;a++)o[a]=o[n=f&n+t[a%i]+(e=o[a])],o[n]=e;s.g=function(t){for(var e,i=0,a=s.i,n=s.j,o=s.S;t--;)e=o[a=f&a+1],i=i*r+o[f&(o[a]=o[n=f&n+e])+(o[n]=e)];return s.i=a,s.j=n,i}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function d(t,e){var i,s=[],r=_typeof$2(t);if(e&&\"object\"==r)for(i in t)try{s.push(d(t[i],e-1))}catch(t){}return s.length?s:\"string\"==r?t:t+\"\\0\"}function g(t,e){for(var i,s=t+\"\",r=0;r<s.length;)e[f&r]=f&(i^=19*e[f&r])+s.charCodeAt(r++);return v(e)}function y(){try{if(i)return v(i.randomBytes(r));var e=new Uint8Array(r);return(s.crypto||s.msCrypto).getRandomValues(e),v(e)}catch(e){var a=s.navigator,n=a&&a.plugins;return[+new Date,s,n,s.screen,v(t)]}}function v(t){return String.fromCharCode.apply(0,t)}e[\"seed\"+o]=c,g(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:\"shape\"};function _typeof$1(t){return(_typeof$1=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return\"number\"===t||e instanceof Number||\"boolean\"===t||\"string\"===t}function $bm_neg(t){var e=_typeof$1(t);if(\"number\"===e||t instanceof Number||\"boolean\"===e)return-t;if($bm_isInstanceOfArray(t)){var i,s=t.length,r=[];for(i=0;i<s;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,\"easeIn\").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,\"easeOut\").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,\"easeInOut\").get;function sum(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e)||\"string\"===i||\"string\"===s)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,a=t.length,n=e.length,o=[];r<a||r<n;)(\"number\"==typeof t[r]||t[r]instanceof Number)&&(\"number\"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]+e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e))return\"string\"===i&&(t=parseInt(t,10)),\"string\"===s&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,a=t.length,n=e.length,o=[];r<a||r<n;)(\"number\"==typeof t[r]||t[r]instanceof Number)&&(\"number\"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]-e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i,s,r,a=_typeof$1(t),n=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=0,i=createTypedArray(\"float32\",r=t.length);s<r;s+=1)i[s]=t[s]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=0,i=createTypedArray(\"float32\",r=e.length);s<r;s+=1)i[s]=t*e[s];return i}return 0}function div(t,e){var i,s,r,a=_typeof$1(t),n=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=0,i=createTypedArray(\"float32\",r=t.length);s<r;s+=1)i[s]=t[s]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=0,i=createTypedArray(\"float32\",r=e.length);s<r;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return\"string\"==typeof t&&(t=parseInt(t,10)),\"string\"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var s=i;i=e,e=s}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(\"number\"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,s=Math.min(t.length,e.length),r=0;for(i=0;i<s;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,s=t[0],r=t[1],a=t[2],n=Math.max(s,r,a),o=Math.min(s,r,a),h=(n+o)/2;if(n===o)e=0,i=0;else{var l=n-o;switch(i=h>.5?l/(2-n-o):l/(n+o),n){case s:e=(r-a)/l+(r<a?6:0);break;case r:e=(a-s)/l+2;break;case a:e=(s-r)/l+4}e/=6}return[e,i,h,t[3]]}function hue2rgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,s,r=t[0],a=t[1],n=t[2];if(0===a)e=n,s=n,i=n;else{var o=n<.5?n*(1+a):n+a-n*a,h=2*n-o;e=hue2rgb(h,o,r+1/3),i=hue2rgb(h,o,r),s=hue2rgb(h,o,r-1/3)}return[e,i,s,t[3]]}function linear(t,e,i,s,r){if((void 0===s||void 0===r)&&(s=e,r=i,e=0,i=1),i<e){var a,n=i;i=e,e=n}if(t<=e)return s;if(t>=i)return r;var o=i===e?0:(t-e)/(i-e);if(!s.length)return s+(r-s)*o;var h=s.length,l=createTypedArray(\"float32\",h);for(a=0;a<h;a+=1)l[a]=s[a]+(r[a]-s[a])*o;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,s=e.length;t||(t=createTypedArray(\"float32\",s));var r=createTypedArray(\"float32\",s),a=BMMath.random();for(i=0;i<s;i+=1)r[i]=t[i]+a*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,s){var r,a,n,o=t.length,h=shapePool.newElement();h.setPathData(!!s,o);var l=[0,0];for(r=0;r<o;r+=1)a=e&&e[r]?e[r]:l,n=i&&i[r]?i[r]:l,h.setTripleAt(t[r][0],t[r][1],n[0]+t[r][0],n[1]+t[r][1],a[0]+t[r][0],a[1]+t[r][1],r,!0);return h}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var transform,$bm_transform,content,effect,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,time,velocity,value,text,textIndex,textTotal,selectorValue,parent,val=data.x,needsVelocity=/velocity(?![\\w\\d])/.test(val),_needsRandom=-1!==val.indexOf(\"random\"),elemType=elem.data.ty,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,\"value\",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,expression_function=eval(\"[function _expression_function(){\"+val+\";scoped_bm_rt=$bm_rt}]\")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=(function(t,e){var i,s,r=this.pv.length?this.pv.length:1,a=createTypedArray(\"float32\",r);t=5;var n=Math.floor(time*t);for(i=0,s=0;i<n;){for(s=0;s<r;s+=1)a[s]+=-e+2*e*BMMath.random();i+=1}var o=time*t,h=o-Math.floor(o),l=createTypedArray(\"float32\",r);if(r>1){for(s=0;s<r;s+=1)l[s]=this.pv[s]+a[s]+(-e+2*e*BMMath.random())*h;return l}return this.pv+a[0]+(-e+2*e*BMMath.random())*h}).bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loop_in=loopIn=thisProperty.loopIn.bind(thisProperty)),thisProperty.loopOut&&(loop_out=loopOut=thisProperty.loopOut.bind(thisProperty)),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],s=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,s,0]}function easeOut(t,e,i,s,r){return applyEase(easeOutBez,t,e,i,s,r)}function easeIn(t,e,i,s,r){return applyEase(easeInBez,t,e,i,s,r)}function ease(t,e,i,s,r){return applyEase(easeInOutBez,t,e,i,s,r)}function applyEase(t,e,i,s,r,a){void 0===r?(r=i,a=s):e=(e-i)/(s-i),e>1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(r)){var o,h=r.length,l=createTypedArray(\"float32\",h);for(o=0;o<h;o+=1)l[o]=(a[o]-r[o])*n+r[o];return l}return(a-r)*n+r}function nearestKey(t){var e,i,s,r=data.k.length;if(data.k.length&&\"number\"!=typeof data.k[0]){if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,s=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,s=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}}-1===i&&(i=e+1,s=data.k[e].t)}}else i=0,s=0;var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(t){if(!data.k.length||\"number\"==typeof data.k[0])throw Error(\"The property has no keyframe at index \"+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var e,i,s,r=Object.prototype.hasOwnProperty.call(data.k[t],\"s\")?data.k[t].s:data.k[t-1].e;for(i=0,s=r.length;i<s;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return\"string\"==typeof value?void 0===e?value.substring(t):value.substring(t,e):\"\"}function substr(t,e){return\"string\"==typeof value?void 0===e?value.substr(t):value.substr(t,e):\"\"}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return(value=t,this.frameExpressionId===elem.globalData.frameId&&\"textSelector\"!==this.propType)?value:(\"textSelector\"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),!transform&&($bm_transform=transform=elem.layerInterface(\"ADBE Transform Group\"),transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer(\"ADBE Root Vectors Group\")),effect||(effect=thisLayer(4)),(hasParent=!!(elem.hierarchy&&elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={};function e(t){var e=0,i=[];function s(){e+=1}function r(){0==(e-=1)&&n()}function a(t){-1===i.indexOf(t)&&i.push(t)}function n(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=s,t.renderer.globalData.popExpression=r,t.renderer.globalData.registerExpressionProperty=a}return t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,\"maskPath\",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,\"maskOpacity\",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,s=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)s[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return s[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,\"velocity\",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(s){if(!t.numKeys)return 0;var r=\"\";r=\"s\"in e.keyframes[s-1]?e.keyframes[s-1].s:\"e\"in e.keyframes[s-2]?e.keyframes[s-2].e:e.keyframes[s-2].s;var a=\"unidimensional\"===i?new Number(r):Object.assign({},r);return a.time=e.keyframes[s-1].t/e.elem.comp.globalData.frameRate,a.value=\"unidimensional\"===i?r[0]:r,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function s(e){e&&\"pv\"in e||(e=t);var s=1/e.mult,r=e.pv*s,a=new Number(r);return a.value=r,i(a,e,\"unidimensional\"),function(){return e.k&&e.getValue(),r=e.v*s,a.value!==r&&((a=new Number(r)).value=r,i(a,e,\"unidimensional\")),a}}function r(t){t&&\"pv\"in t||(t=e);var s=1/t.mult,r=t.data&&t.data.l||t.pv.length,a=createTypedArray(\"float32\",r),n=createTypedArray(\"float32\",r);return a.value=n,i(a,t,\"multidimensional\"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)n[e]=t.v[e]*s,a[e]=n[e];return a}}function a(){return t}return function(t){return t?\"unidimensional\"===t.propType?s(t):r(t):a}}(),TransformExpressionInterface=function(){return function(t){var e,i,s,r;function a(t){switch(t){case\"scale\":case\"Scale\":case\"ADBE Scale\":case 6:return a.scale;case\"rotation\":case\"Rotation\":case\"ADBE Rotation\":case\"ADBE Rotate Z\":case 10:return a.rotation;case\"ADBE Rotate X\":return a.xRotation;case\"ADBE Rotate Y\":return a.yRotation;case\"position\":case\"Position\":case\"ADBE Position\":case 2:return a.position;case\"ADBE Position_0\":return a.xPosition;case\"ADBE Position_1\":return a.yPosition;case\"ADBE Position_2\":return a.zPosition;case\"anchorPoint\":case\"AnchorPoint\":case\"Anchor Point\":case\"ADBE AnchorPoint\":case 1:return a.anchorPoint;case\"opacity\":case\"Opacity\":case 11:return a.opacity;default:return null}}return Object.defineProperty(a,\"rotation\",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(a,\"zRotation\",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(a,\"xRotation\",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(a,\"yRotation\",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(a,\"scale\",{get:ExpressionPropertyInterface(t.s)}),t.p?r=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(a,\"position\",{get:function(){return t.p?r():[e(),i(),s?s():0]}}),Object.defineProperty(a,\"xPosition\",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(a,\"yPosition\",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(a,\"zPosition\",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(a,\"anchorPoint\",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(a,\"opacity\",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(a,\"skew\",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(a,\"skewAxis\",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(a,\"orientation\",{get:ExpressionPropertyInterface(t.or)}),a}}(),LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function s(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(l){function p(t){c.mask=new MaskManagerInterface(t,l)}function f(t){c.effect=t}function c(t){switch(t){case\"ADBE Root Vectors Group\":case\"Contents\":case 2:return c.shapeInterface;case 1:case 6:case\"Transform\":case\"transform\":case\"ADBE Transform Group\":return m;case 4:case\"ADBE Effect Parade\":case\"effects\":case\"Effects\":return c.effect;case\"ADBE Text Properties\":return c.textInterface;default:return null}}c.getMatrix=t,c.invertPoint=n,c.applyPoint=a,c.toWorld=i,c.toWorldVec=e,c.fromWorld=r,c.fromWorldVec=s,c.toComp=i,c.fromComp=o,c.sampleImage=h,c.sourceRectAtTime=l.sourceRectAtTime.bind(l),c._elem=l;var m,u=getDescriptor(m=TransformExpressionInterface(l.finalTransform.mProp),\"anchorPoint\");return Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(m,\"rotation\"),scale:getDescriptor(m,\"scale\"),position:getDescriptor(m,\"position\"),opacity:getDescriptor(m,\"opacity\"),anchorPoint:u,anchor_point:u,transform:{get:function(){return m}},active:{get:function(){return l.isInRange}}}),c.startTime=l.data.st,c.index=l.data.ind,c.source=l.data.refId,c.height=0===l.data.ty?l.data.h:100,c.width=0===l.data.ty?l.data.w:100,c.inPoint=l.data.ip/l.comp.globalData.frameRate,c.outPoint=l.data.op/l.comp.globalData.frameRate,c._name=l.data.nm,c.registerMaskInterface=p,c.registerEffectsInterface=f,c}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}}}(),EffectsExpressionInterface=function(){function t(i,s,r,a){function n(t){for(var e=i.ef,s=0,r=e.length;s<r;){if(t===e[s].nm||t===e[s].mn||t===e[s].ix){if(5===e[s].ty)return l[s];return l[s]()}s+=1}throw Error()}var o,h=propertyGroupFactory(n,r),l=[],p=i.ef.length;for(o=0;o<p;o+=1)5===i.ef[o].ty?l.push(t(i.ef[o],s.effectElements[o],s.effectElements[o].propertyGroup,a)):l.push(e(s.effectElements[o],i.ef[o].ty,a,h));return\"ADBE Color Control\"===i.mn&&Object.defineProperty(n,\"color\",{get:function(){return l[0]()}}),Object.defineProperties(n,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:h}}),n.enabled=0!==i.en,n.active=n.enabled,n}function e(t,e,i,s){var r=ExpressionPropertyInterface(t.p);function a(){return 10===e?i.comp.compInterface(t.p.v):r()}return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface(\"\",s)),a}return{createEffectsInterface:function(e,i){if(e.effectsManager){var s,r=[],a=e.data.ef,n=e.effectsManager.effectElements.length;for(s=0;s<n;s+=1)r.push(t(a[s],e.effectsManager.effectElements[s],i,e));var o=e.data.ef||[],h=function(t){for(s=0,n=o.length;s<n;){if(t===o[s].nm||t===o[s].mn||t===o[s].ix)return r[s];s+=1}return null};return Object.defineProperty(h,\"numProperties\",{get:function(){return o.length}}),h}return null}}}(),ShapePathInterface=function(){return function(t,e,i){var s=e.sh;function r(t){return\"Shape\"===t||\"shape\"===t||\"Path\"===t||\"path\"===t||\"ADBE Vector Shape\"===t||2===t?r.path:null}var a=propertyGroupFactory(r,i);return s.setGroupProperty(PropertyInterface(\"Path\",a)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),ShapeExpressionInterface=function(){function t(t,e,h){var u,d=[],g=t?t.length:0;for(u=0;u<g;u+=1)\"gr\"===t[u].ty?d.push(i(t[u],e[u],h)):\"fl\"===t[u].ty?d.push(s(t[u],e[u],h)):\"st\"===t[u].ty?d.push(n(t[u],e[u],h)):\"tm\"===t[u].ty?d.push(o(t[u],e[u],h)):\"tr\"===t[u].ty||(\"el\"===t[u].ty?d.push(l(t[u],e[u],h)):\"sr\"===t[u].ty?d.push(p(t[u],e[u],h)):\"sh\"===t[u].ty?d.push(ShapePathInterface(t[u],e[u],h)):\"rc\"===t[u].ty?d.push(f(t[u],e[u],h)):\"rd\"===t[u].ty?d.push(c(t[u],e[u],h)):\"rp\"===t[u].ty?d.push(m(t[u],e[u],h)):\"gf\"===t[u].ty?d.push(r(t[u],e[u],h)):d.push(a(t[u],e[u],h)));return d}function e(e,i,s){var r,a=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return\"number\"==typeof t?r[t-1]:null};a.propertyGroup=propertyGroupFactory(a,s),r=t(e.it,i.it,a.propertyGroup),a.numProperties=r.length;var n=h(e.it[e.it.length-1],i.it[i.it.length-1],a.propertyGroup);return a.transform=n,a.propertyIndex=e.cix,a._name=e.nm,a}function i(t,i,s){var r=function(t){switch(t){case\"ADBE Vectors Group\":case\"Contents\":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,s);var a=e(t,i,r.propertyGroup),n=h(t.it[t.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=a,r.transform=n,Object.defineProperty(r,\"_name\",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}function s(t,e,i){function s(t){return\"Color\"===t||\"color\"===t?s.color:\"Opacity\"===t||\"opacity\"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface(\"Color\",i)),e.o.setGroupProperty(PropertyInterface(\"Opacity\",i)),s}function r(t,e,i){function s(t){return\"Start Point\"===t||\"start point\"===t?s.startPoint:\"End Point\"===t||\"end point\"===t?s.endPoint:\"Opacity\"===t||\"opacity\"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return\"a\"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface(\"Start Point\",i)),e.e.setGroupProperty(PropertyInterface(\"End Point\",i)),e.o.setGroupProperty(PropertyInterface(\"Opacity\",i)),s}function a(){return function(){return null}}function n(t,e,i){var s,r=propertyGroupFactory(l,i),a=propertyGroupFactory(h,r);function n(i){Object.defineProperty(h,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,h={};for(s=0;s<o;s+=1)n(s),e.d.dataProps[s].p.setGroupProperty(a);function l(t){return\"Color\"===t||\"color\"===t?l.color:\"Opacity\"===t||\"opacity\"===t?l.opacity:\"Stroke Width\"===t||\"stroke width\"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface(\"Color\",r)),e.o.setGroupProperty(PropertyInterface(\"Opacity\",r)),e.w.setGroupProperty(PropertyInterface(\"Stroke Width\",r)),l}function o(t,e,i){function s(e){return e===t.e.ix||\"End\"===e||\"end\"===e?s.end:e===t.s.ix?s.start:e===t.o.ix?s.offset:null}var r=propertyGroupFactory(s,i);return s.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface(\"Start\",r)),e.e.setGroupProperty(PropertyInterface(\"End\",r)),e.o.setGroupProperty(PropertyInterface(\"Offset\",r)),s.propertyIndex=t.ix,s.propertyGroup=i,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function h(t,e,i){function s(e){return t.a.ix===e||\"Anchor Point\"===e?s.anchorPoint:t.o.ix===e||\"Opacity\"===e?s.opacity:t.p.ix===e||\"Position\"===e?s.position:t.r.ix===e||\"Rotation\"===e||\"ADBE Vector Rotation\"===e?s.rotation:t.s.ix===e||\"Scale\"===e?s.scale:t.sk&&t.sk.ix===e||\"Skew\"===e?s.skew:t.sa&&t.sa.ix===e||\"Skew Axis\"===e?s.skewAxis:null}var r=propertyGroupFactory(s,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface(\"Opacity\",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface(\"Position\",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface(\"Anchor Point\",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface(\"Scale\",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface(\"Rotation\",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface(\"Skew\",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface(\"Skew Angle\",r))),e.transform.op.setGroupProperty(PropertyInterface(\"Opacity\",r)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),s.ty=\"tr\",s.mn=t.mn,s.propertyGroup=i,s}function l(t,e,i){function s(e){return t.p.ix===e?s.position:t.s.ix===e?s.size:null}var r=propertyGroupFactory(s,i);s.propertyIndex=t.ix;var a=\"tm\"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface(\"Size\",r)),a.p.setGroupProperty(PropertyInterface(\"Position\",r)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),s.mn=t.mn,s}function p(t,e,i){function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.rotation:t.pt.ix===e?s.points:t.or.ix===e||\"ADBE Vector Star Outer Radius\"===e?s.outerRadius:t.os.ix===e?s.outerRoundness:t.ir&&(t.ir.ix===e||\"ADBE Vector Star Inner Radius\"===e)?s.innerRadius:t.is&&t.is.ix===e?s.innerRoundness:null}var r=propertyGroupFactory(s,i),a=\"tm\"===e.sh.ty?e.sh.prop:e.sh;return s.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface(\"Outer Radius\",r)),a.os.setGroupProperty(PropertyInterface(\"Outer Roundness\",r)),a.pt.setGroupProperty(PropertyInterface(\"Points\",r)),a.p.setGroupProperty(PropertyInterface(\"Position\",r)),a.r.setGroupProperty(PropertyInterface(\"Rotation\",r)),t.ir&&(a.ir.setGroupProperty(PropertyInterface(\"Inner Radius\",r)),a.is.setGroupProperty(PropertyInterface(\"Inner Roundness\",r))),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),s.mn=t.mn,s}function f(t,e,i){function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.roundness:t.s.ix===e||\"Size\"===e||\"ADBE Vector Rect Size\"===e?s.size:null}var r=propertyGroupFactory(s,i),a=\"tm\"===e.sh.ty?e.sh.prop:e.sh;return s.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface(\"Position\",r)),a.s.setGroupProperty(PropertyInterface(\"Size\",r)),a.r.setGroupProperty(PropertyInterface(\"Rotation\",r)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),s.mn=t.mn,s}function c(t,e,i){function s(e){return t.r.ix===e||\"Round Corners 1\"===e?s.radius:null}var r=propertyGroupFactory(s,i),a=e;return s.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface(\"Radius\",r)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),s.mn=t.mn,s}function m(t,e,i){function s(e){return t.c.ix===e||\"Copies\"===e?s.copies:t.o.ix===e||\"Offset\"===e?s.offset:null}var r=propertyGroupFactory(s,i),a=e;return s.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface(\"Copies\",r)),a.o.setGroupProperty(PropertyInterface(\"Offset\",r)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),s.mn=t.mn,s}return function(e,i,s){var r;function a(t){if(\"number\"==typeof t)return 0===(t=void 0===t?1:t)?s:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}function n(){return s}return a.propertyGroup=propertyGroupFactory(a,n),r=t(e,i,a.propertyGroup),a.numProperties=r.length,a._name=\"Contents\",a}}(),TextExpressionInterface=function(){return function(t){var e;function i(t){return\"ADBE Text Document\"===t?i.sourceText:null}return Object.defineProperty(i,\"sourceText\",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,\"style\",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i}}();function _typeof(t){return(_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var FootageInterface=function(){var t=function(t){var e=\"\",i=t.getFootageData();function s(t){if(i[t])return(e=t,i=i[t],\"object\"===_typeof(i))?s:i;var r=t.indexOf(e);return -1!==r?(i=i[parseInt(t.substr(r+e.length),10)],\"object\"===_typeof(i))?s:i:\"\"}return function(){return e=\"\",i=t.getFootageData(),s}},e=function(e){function i(t){return\"Outline\"===t?i.outlineInterface():null}return i._name=\"Outline\",i.outlineInterface=t(e),i};return function(t){function i(t){return\"Data\"===t?i.dataInterface:null}return i._name=\"Data\",i.dataInterface=e(t),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=function(){return{searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e,i=-.01,s=this.getValueAtTime(t),r=this.getValueAtTime(t+i),a=0;if(s.length){for(e=0;e<s.length;e+=1)a+=Math.pow(r[e]-s[e],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,s=-.001,r=this.getValueAtTime(t),a=this.getValueAtTime(t+s);if(r.length)for(i=0,e=createTypedArray(\"float32\",r.length);i<r.length;i+=1)e[i]=(a[i]-r[i])/s;else e=(a-r)/s;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}}}();function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():\"\";var s,r,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?(s=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip),r=p-s):((!e||e>l.length-1)&&(e=l.length-1),s=p-(r=l[l.length-1-e].t)),\"pingpong\"===t){if(Math.floor((h-r)/s)%2!=0)return this.getValueAtTime((s-(h-r)%s+r)/this.comp.globalData.frameRate,0)}else if(\"offset\"===t){var f=this.getValueAtTime(r/this.comp.globalData.frameRate,0),c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),m=this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0),u=Math.floor((h-r)/s);if(this.pv.length){for(a=0,n=(o=Array(f.length)).length;a<n;a+=1)o[a]=(c[a]-f[a])*u+m[a];return o}return(c-f)*u+m}else if(\"continue\"===t){var d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=0,n=(o=Array(d.length)).length;a<n;a+=1)o[a]=d[a]+(d[a]-g[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return d+(h-p)/.001*(d-g)}return this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():\"\";var s,r,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(i?(s=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p),r=p+s):((!e||e>l.length-1)&&(e=l.length-1),s=(r=l[e].t)-p),\"pingpong\"===t){if(Math.floor((p-h)/s)%2==0)return this.getValueAtTime(((p-h)%s+p)/this.comp.globalData.frameRate,0)}else if(\"offset\"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(r/this.comp.globalData.frameRate,0),m=this.getValueAtTime((s-(p-h)%s+p)/this.comp.globalData.frameRate,0),u=Math.floor((p-h)/s)+1;if(this.pv.length){for(a=0,n=(o=Array(f.length)).length;a<n;a+=1)o[a]=m[a]-(c[a]-f[a])*u;return o}return m-(c-f)*u}else if(\"continue\"===t){var d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=0,n=(o=Array(d.length)).length;a<n;a+=1)o[a]=d[a]+(d[a]-g[a])*(p-h)/.001;return o}return d+(d-g)*(p-h)/.001}return this.getValueAtTime((s-((p-h)%s+p))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k||(t=.5*(t||.4),(e=Math.floor(e||5))<=1))return this.pv;var i,s,r=this.comp.renderedFrame/this.comp.globalData.frameRate,a=r-t,n=r+t,o=e>1?(n-a)/(e-1):1,h=0,l=0;for(i=this.pv.length?createTypedArray(\"float32\",this.pv.length):0;h<e;){if(s=this.getValueAtTime(a+h*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=s[l];else i+=s;h+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function s(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var s=this.s.getValueAtTime(t);e.scale(s[0]*this.s.mult,s[1]*this.s.mult,s[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var n=this.r.getValueAtTime(t);e.rotate(-n*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),h=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var f=this.px.getValueAtTime(t),c=this.py.getValueAtTime(t);if(this.data.p.z){var m=this.pz.getValueAtTime(t);e.translate(f*this.px.mult,c*this.py.mult,-m*this.pz.mult)}else e.translate(f*this.px.mult,c*this.py.mult,0)}else{var u=this.p.getValueAtTime(t);e.translate(u[0]*this.p.mult,u[1]*this.p.mult,-u[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var n=a(t,e,i);return n.dynamicProperties.length?n.getValueAtTime=s.bind(n):n.getValueAtTime=r.bind(n),n.setGroupProperty=expressionHelpers.setGroupProperty,n};var n=PropertyFactory.getProp;function o(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}PropertyFactory.getProp=function(s,r,a,o,h){var l=n(s,r,a,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=i,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===r.a?r.k.length:0,l.propertyIndex=r.ix;var p=0;return 0!==a&&(p=createTypedArray(\"float32\",1===r.a?r.k[0].s.length:r.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(s,r,l),l.k&&h.addDynamicProperty(l),l};var h=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(t,e){this.k&&this.getValue();var i,s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));var r=s._length,a=s[t],n=s.v,o=createSizedArray(r);for(i=0;i<r;i+=1)\"i\"===t||\"o\"===t?o[i]=[a[i][0]-n[i][0],a[i][1]-n[i][1]]:o[i]=[a[i][0],a[i][1]];return o},points:function(t){return this.vertices(\"v\",t)},inTangents:function(t){return this.vertices(\"i\",t)},outTangents:function(t){return this.vertices(\"o\",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i,s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(s));for(var r=this._segmentsLength,a=r.lengths,n=r.totalLength*t,o=0,h=a.length,l=0;o<h;){if(l+a[o].addedLength>n){var p=o,f=s.c&&o===h-1?0:o+1,c=(n-l)/a[o].addedLength;i=bez.getPointInSegment(s.v[p],s.v[f],s.o[p],s.i[f],c,a[o]);break}l+=a[o].addedLength,o+=1}return i||(i=s.c?[s.v[0][0],s.v[0][1]]:[s.v[s._length-1][0],s.v[s._length-1][1]]),i},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),a=r[0]-s[0],n=r[1]-s[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0===o?[0,0]:\"tangent\"===i?[a/o,n/o]:[-n/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,\"tangent\")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,\"normal\")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],h),extendPrototype([p],l),l.prototype.getValueAtTime=o,l.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,s,r){var a=f(t,e,i,s,r);return a.propertyIndex=e.ix,a.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,a):4===i&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,s,r=createNS(\"feMerge\");for(r.setAttribute(\"result\",t),s=0;s<e.length;s+=1)(i=createNS(\"feMergeNode\")).setAttribute(\"in\",e[s]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue=\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0\";function SVGTintFilter(t,e,i,s,r){this.filterManager=e;var a=createNS(\"feColorMatrix\");a.setAttribute(\"type\",\"matrix\"),a.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),a.setAttribute(\"values\",linearFilterValue+\" 1 0\"),this.linearFilter=a,a.setAttribute(\"result\",s+\"_tint_1\"),t.appendChild(a),(a=createNS(\"feColorMatrix\")).setAttribute(\"type\",\"matrix\"),a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),a.setAttribute(\"result\",s+\"_tint_2\"),t.appendChild(a),this.matrixFilter=a;var n=this.createMergeNode(s,[r,s+\"_tint_1\",s+\"_tint_2\"]);t.appendChild(n)}function SVGFillFilter(t,e,i,s){this.filterManager=e;var r=createNS(\"feColorMatrix\");r.setAttribute(\"type\",\"matrix\"),r.setAttribute(\"color-interpolation-filters\",\"sRGB\"),r.setAttribute(\"values\",\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"),r.setAttribute(\"result\",s),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,s){this.filterManager=e;var r=createNS(\"feColorMatrix\");r.setAttribute(\"type\",\"matrix\"),r.setAttribute(\"color-interpolation-filters\",\"linearRGB\"),r.setAttribute(\"values\",\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\"),t.appendChild(r);var a=createNS(\"feComponentTransfer\");a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"result\",s),this.matrixFilter=a;var n=createNS(\"feFuncR\");n.setAttribute(\"type\",\"table\"),a.appendChild(n),this.feFuncR=n;var o=createNS(\"feFuncG\");o.setAttribute(\"type\",\"table\"),a.appendChild(o),this.feFuncG=o;var h=createNS(\"feFuncB\");h.setAttribute(\"type\",\"table\"),a.appendChild(h),this.feFuncB=h,t.appendChild(a)}function SVGProLevelsFilter(t,e,i,s){this.filterManager=e;var r=this.filterManager.effectElements,a=createNS(\"feComponentTransfer\");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc(\"feFuncR\",a)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc(\"feFuncG\",a)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc(\"feFuncB\",a)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc(\"feFuncA\",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute(\"color-interpolation-filters\",\"sRGB\"),t.appendChild(a)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((a=createNS(\"feComponentTransfer\")).setAttribute(\"color-interpolation-filters\",\"sRGB\"),a.setAttribute(\"result\",s),t.appendChild(a),this.feFuncRComposed=this.createFeFunc(\"feFuncR\",a),this.feFuncGComposed=this.createFeFunc(\"feFuncG\",a),this.feFuncBComposed=this.createFeFunc(\"feFuncB\",a))}function SVGDropShadowEffect(t,e,i,s,r){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute(\"x\",n.x||a.x),t.setAttribute(\"y\",n.y||a.y),t.setAttribute(\"width\",n.width||a.width),t.setAttribute(\"height\",n.height||a.height),this.filterManager=e;var o=createNS(\"feGaussianBlur\");o.setAttribute(\"in\",\"SourceAlpha\"),o.setAttribute(\"result\",s+\"_drop_shadow_1\"),o.setAttribute(\"stdDeviation\",\"0\"),this.feGaussianBlur=o,t.appendChild(o);var h=createNS(\"feOffset\");h.setAttribute(\"dx\",\"25\"),h.setAttribute(\"dy\",\"0\"),h.setAttribute(\"in\",s+\"_drop_shadow_1\"),h.setAttribute(\"result\",s+\"_drop_shadow_2\"),this.feOffset=h,t.appendChild(h);var l=createNS(\"feFlood\");l.setAttribute(\"flood-color\",\"#00ff00\"),l.setAttribute(\"flood-opacity\",\"1\"),l.setAttribute(\"result\",s+\"_drop_shadow_3\"),this.feFlood=l,t.appendChild(l);var p=createNS(\"feComposite\");p.setAttribute(\"in\",s+\"_drop_shadow_3\"),p.setAttribute(\"in2\",s+\"_drop_shadow_2\"),p.setAttribute(\"operator\",\"in\"),p.setAttribute(\"result\",s+\"_drop_shadow_4\"),t.appendChild(p);var f=this.createMergeNode(s,[s+\"_drop_shadow_4\",r]);t.appendChild(f)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute(\"values\",linearFilterValue+\" \"+s+\" 0\"),this.matrixFilter.setAttribute(\"values\",i[0]-e[0]+\" 0 0 0 \"+e[0]+\" \"+(i[1]-e[1])+\" 0 0 0 \"+e[1]+\" \"+(i[2]-e[2])+\" 0 0 0 \"+e[2]+\" 0 0 0 1 0\")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute(\"values\",\"0 0 0 0 \"+e[0]+\" 0 0 0 0 \"+e[1]+\" 0 0 0 0 \"+e[2]+\" 0 0 0 \"+i+\" 0\")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS(\"g\")).setAttribute(\"fill\",\"none\"),e.setAttribute(\"stroke-linecap\",\"round\"),e.setAttribute(\"stroke-dashoffset\",1);i<s;i+=1)t=createNS(\"path\"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS(\"mask\"),n=createElementID();a.setAttribute(\"id\",n),a.setAttribute(\"mask-type\",\"alpha\"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var o=createNS(\"g\");for(o.setAttribute(\"mask\",\"url(\"+getLocationHref()+\"#\"+n+\")\");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute(\"stroke\",\"#fff\")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute(\"mask\"),e.setAttribute(\"stroke\",\"#fff\")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e=this.paths.length;for(i=0;i<e;i+=1)if(-1!==this.paths[i].m&&(s=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,(t||this.filterManager._mdf||s.prop._mdf)&&r.setAttribute(\"d\",s.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||s.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var i,s,r,a,n,o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),h=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();a=\"0 0 0 \"+l*o+\" \";var p=Math.floor(l*(h-o)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(n=0;n<p;n+=1)a+=\"1 \"+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+\" \";a+=\"0 \"+10*l+\" 0 0\"}else a=\"1 \"+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute(\"stroke-dasharray\",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute(\"stroke-width\",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute(\"opacity\",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute(\"stroke\",\"rgb(\"+bmFloor(255*f[0])+\",\"+bmFloor(255*f[1])+\",\"+bmFloor(255*f[2])+\")\")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,r=s[0]+\" \"+i[0]+\" \"+e[0],a=s[1]+\" \"+i[1]+\" \"+e[1],n=s[2]+\" \"+i[2]+\" \"+e[2];this.feFuncR.setAttribute(\"tableValues\",r),this.feFuncG.setAttribute(\"tableValues\",a),this.feFuncB.setAttribute(\"tableValues\",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute(\"type\",\"table\"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,s,r){for(var a,n,o=0,h=256,l=Math.min(t,e),p=Math.max(t,e),f=Array.call(null,{length:256}),c=0,m=r-s,u=e-t;o<=256;)n=(a=o/256)<=l?u<0?r:s:a>=p?u<0?s:r:s+m*Math.pow((a-t)/u,1/i),f[c]=n,c+=1,o+=256/(h-1);return f.join(\" \")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute(\"tableValues\",e),this.feFuncGComposed.setAttribute(\"tableValues\",e),this.feFuncBComposed.setAttribute(\"tableValues\",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute(\"tableValues\",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute(\"tableValues\",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute(\"tableValues\",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute(\"tableValues\",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute(\"stdDeviation\",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute(\"flood-color\",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute(\"flood-opacity\",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(s),a=i*Math.sin(s);this.feOffset.setAttribute(\"dx\",r),this.feOffset.setAttribute(\"dy\",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS(\"g\"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,s){t.setAttribute(\"x\",\"-100%\"),t.setAttribute(\"y\",\"-100%\"),t.setAttribute(\"width\",\"300%\"),t.setAttribute(\"height\",\"300%\"),this.filterManager=e;var r=createNS(\"feGaussianBlur\");r.setAttribute(\"result\",s),t.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i,s=t.layerElement.parentNode;if(s){for(var r=s.children,a=0,n=r.length;a<n&&r[a]!==t.layerElement;)a+=1;a<=n-2&&(i=r[a+1]);var o=createNS(\"use\");o.setAttribute(\"href\",\"#\"+e),i?s.insertBefore(o,i):s.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),s=createNS(\"mask\");s.setAttribute(\"id\",e.layerId),s.setAttribute(\"mask-type\",\"alpha\"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(s);var a=createNS(\"symbol\");a.setAttribute(\"id\",i),this.replaceInParent(e,i),a.appendChild(e.layerElement),r.appendChild(a);var n=createNS(\"use\");n.setAttribute(\"href\",\"#\"+i),s.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,s=e.length;i<s;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,i=this.filterManager.effectElements[0].p.v*e,s=this.filterManager.effectElements[1].p.v,r=3==s?0:i,a=2==s?0:i;this.feGaussianBlur.setAttribute(\"stdDeviation\",r+\" \"+a);var n=1==this.filterManager.effectElements[2].p.v?\"wrap\":\"duplicate\";this.feGaussianBlur.setAttribute(\"edgeMode\",n)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,s=e[1].p.v,r=1===e[2].p.v,a=e[3].p.v,n=r?a:e[4].p.v,o=e[5].p.v,h=e[6].p.v,l=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*n,.01*a,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-o*degToRads,(h+90)*degToRads),this.matrix.translate(s[0],s[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer(\"canvas\",CanvasRenderer),registerRenderer(\"html\",HybridRenderer),registerRenderer(\"svg\",SVGRenderer),ShapeModifiers.registerModifier(\"tm\",TrimModifier),ShapeModifiers.registerModifier(\"pb\",PuckerAndBloatModifier),ShapeModifiers.registerModifier(\"rp\",RepeaterModifier),ShapeModifiers.registerModifier(\"rd\",RoundCornersModifier),ShapeModifiers.registerModifier(\"zz\",ZigZagModifier),ShapeModifiers.registerModifier(\"op\",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}}]);"
  },
  {
    "path": "docs/_next/static/chunks/e34aaff9-73cdc0c2aa38fff5.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[994],{3003:function(a,t,h){h.d(t,{Mam:function(){return n}});var m=h(91810);function n(a){return(0,m.w_)({tag:\"svg\",attr:{viewBox:\"0 0 24 24\"},child:[{tag:\"g\",attr:{id:\"Globe\"},child:[{tag:\"path\",attr:{d:\"M14.645,2.428a8.1,8.1,0,0,0-1.61-.3,9.332,9.332,0,0,0-3.6.28l-.07.02a9.928,9.928,0,0,0,.01,19.15,9.091,9.091,0,0,0,2.36.34,1.274,1.274,0,0,0,.27.02,9.65,9.65,0,0,0,2.63-.36,9.931,9.931,0,0,0,.01-19.15Zm-.27.96a8.943,8.943,0,0,1,5.84,5.11h-4.26a13.778,13.778,0,0,0-2.74-5.35A8.254,8.254,0,0,1,14.375,3.388Zm-2.37-.09a12.78,12.78,0,0,1,2.91,5.2H9.075A12.545,12.545,0,0,1,12.005,3.3Zm3.16,6.2a13.193,13.193,0,0,1,0,5.01H8.845a12.185,12.185,0,0,1-.25-2.5,12.353,12.353,0,0,1,.25-2.51Zm-5.6-6.09.07-.02a9.152,9.152,0,0,1,1.16-.23A13.618,13.618,0,0,0,8.045,8.5H3.8A9,9,0,0,1,9.565,3.408Zm-6.5,8.6a8.71,8.71,0,0,1,.37-2.51h4.39a13.95,13.95,0,0,0-.23,2.51,13.757,13.757,0,0,0,.23,2.5H3.435A8.591,8.591,0,0,1,3.065,12.008Zm6.57,8.61a8.9,8.9,0,0,1-5.84-5.11h4.24a13.632,13.632,0,0,0,2.77,5.35A8.1,8.1,0,0,1,9.635,20.618Zm-.56-5.11h5.84a12.638,12.638,0,0,1-2.91,5.21A12.872,12.872,0,0,1,9.075,15.508Zm5.3,5.11a11.551,11.551,0,0,1-1.17.24,13.8,13.8,0,0,0,2.75-5.35h4.26A8.924,8.924,0,0,1,14.375,20.618Zm1.8-6.11a13.611,13.611,0,0,0,0-5.01h4.39a8.379,8.379,0,0,1,.37,2.51,8.687,8.687,0,0,1-.36,2.5Z\"},child:[]}]}]})(a)}}}]);"
  },
  {
    "path": "docs/_next/static/chunks/fd9d1056-819464016f7ad85c.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{84417:function(e,t,n){var r,l=n(2265),a=n(85689),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){var t=\"https://react.dev/errors/\"+e;if(1<arguments.length){t+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n])}return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var u=Object.assign,s=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=s.ReactCurrentDispatcher,f={pending:!1,data:null,method:null,action:null},d=[],p=-1;function m(e){return{current:e}}function h(e){0>p||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for(\"react.element\"),v=Symbol.for(\"react.portal\"),b=Symbol.for(\"react.fragment\"),k=Symbol.for(\"react.strict_mode\"),w=Symbol.for(\"react.profiler\"),S=Symbol.for(\"react.provider\"),C=Symbol.for(\"react.consumer\"),E=Symbol.for(\"react.context\"),x=Symbol.for(\"react.forward_ref\"),z=Symbol.for(\"react.suspense\"),P=Symbol.for(\"react.suspense_list\"),N=Symbol.for(\"react.memo\"),_=Symbol.for(\"react.lazy\"),L=Symbol.for(\"react.scope\");Symbol.for(\"react.debug_trace_mode\");var T=Symbol.for(\"react.offscreen\"),F=Symbol.for(\"react.legacy_hidden\"),M=Symbol.for(\"react.cache\");Symbol.for(\"react.tracing_marker\");var O=Symbol.iterator;function R(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=O&&e[O]||e[\"@@iterator\"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),B={$$typeof:E,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null};function V(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=s3(e=s2(e),t);else switch(t){case\"svg\":t=1;break;case\"math\":t=2;break;default:t=0}}h(D),g(D,t)}function Q(){h(D),h(A),h(I)}function $(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=s3(t,e.type);t!==n&&(g(A,e),g(D,n))}function j(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),B._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=a.log,er=a.unstable_setDisableYieldValue,el=null,ea=null;function eo(e){if(\"function\"==typeof en&&er(e),ea&&\"function\"==typeof ea.setStrictMode)try{ea.setStrictMode(el,e)}catch(e){}}var ei=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eu(e)/es|0)|0},eu=Math.log,es=Math.LN2,ec=128,ef=4194304;function ed(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ep(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=ed(n):0!=(e&=a)&&(r=ed(e)):0!=(n&=~l)?r=ed(n):0!==e&&(r=ed(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function em(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function eh(){var e=ec;return 0==(4194176&(ec<<=1))&&(ec=128),e}function eg(){var e=ef;return 0==(62914560&(ef<<=1))&&(ef=4194304),e}function ey(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ev(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ei(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ei(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ek=0;function ew(e){return 2<(e&=-e)?8<e?0!=(134217727&e)?32:268435456:8:2}var eS=Object.prototype.hasOwnProperty,eC=Math.random().toString(36).slice(2),eE=\"__reactFiber$\"+eC,ex=\"__reactProps$\"+eC,ez=\"__reactContainer$\"+eC,eP=\"__reactEvents$\"+eC,eN=\"__reactListeners$\"+eC,e_=\"__reactHandles$\"+eC,eL=\"__reactResources$\"+eC,eT=\"__reactMarker$\"+eC;function eF(e){delete e[eE],delete e[ex],delete e[eP],delete e[eN],delete e[e_]}function eM(e){var t=e[eE];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ez]||n[eE]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[eE])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function eO(e){if(e=e[eE]||e[ez]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function eR(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function eD(e){return e[ex]||null}function eA(e){var t=e[eL];return t||(t=e[eL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function eI(e){e[eT]=!0}var eU=new Set,eB={};function eV(e,t){eQ(e,t),eQ(e+\"Capture\",t)}function eQ(e,t){for(eB[e]=t,e=0;e<t.length;e++)eU.add(t[e])}var e$=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),ej=RegExp(\"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"),eW={},eH={};function eq(e,t,n){if(eS.call(eH,t)||!eS.call(eW,t)&&(ej.test(t)?eH[t]=!0:(eW[t]=!0,!1))){if(null===n)e.removeAttribute(t);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":e.removeAttribute(t);return;case\"boolean\":var r=t.toLowerCase().slice(0,5);if(\"data-\"!==r&&\"aria-\"!==r){e.removeAttribute(t);return}}e.setAttribute(t,\"\"+n)}}}function eK(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":e.removeAttribute(t);return}e.setAttribute(t,\"\"+n)}}function eY(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":e.removeAttribute(n);return}e.setAttributeNS(t,n,\"\"+r)}}function eX(e){if(void 0===iY)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);iY=t&&t[1]||\"\"}return\"\\n\"+iY+e}var eG=!1;function eZ(e,t){if(!e||eG)return\"\";eG=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&\"function\"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&\"string\"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,\"name\");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});try{var a=r.DetermineComponentFrameRoot(),o=a[0],i=a[1];if(o&&i){var u=o.split(\"\\n\"),s=i.split(\"\\n\");for(l=r=0;r<u.length&&!u[r].includes(\"DetermineComponentFrameRoot\");)r++;for(;l<s.length&&!s[l].includes(\"DetermineComponentFrameRoot\");)l++;if(r===u.length||l===s.length)for(r=u.length-1,l=s.length-1;1<=r&&0<=l&&u[r]!==s[l];)l--;for(;1<=r&&0<=l;r--,l--)if(u[r]!==s[l]){if(1!==r||1!==l)do if(r--,l--,0>l||u[r]!==s[l]){var c=\"\\n\"+u[r].replace(\" at new \",\" at \");return e.displayName&&c.includes(\"<anonymous>\")&&(c=c.replace(\"<anonymous>\",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eG=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:\"\")?eX(n):\"\"}function eJ(e){try{var t=\"\";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return eX(e.type);case 16:return eX(\"Lazy\");case 13:return eX(\"Suspense\");case 19:return eX(\"SuspenseList\");case 0:case 2:case 15:return e=eZ(e.type,!1);case 11:return e=eZ(e.type.render,!1);case 1:return e=eZ(e.type,!0);default:return\"\"}}(e),e=e.return;while(e);return t}catch(e){return\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}}var e0=Symbol.for(\"react.client.reference\");function e1(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function e2(e){var t=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===t||\"radio\"===t)}function e3(e){e._valueTracker||(e._valueTracker=function(e){var t=e2(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&\"function\"==typeof n.get&&\"function\"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=e2(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e6(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e8=/[\\n\"\\\\]/g;function e5(e){return e.replace(e8,function(e){return\"\\\\\"+e.charCodeAt(0).toString(16)+\" \"})}function e7(e,t,n,r,l,a,o,i){e.name=\"\",null!=o&&\"function\"!=typeof o&&\"symbol\"!=typeof o&&\"boolean\"!=typeof o?e.type=o:e.removeAttribute(\"type\"),null!=t?\"number\"===o?(0===t&&\"\"===e.value||e.value!=t)&&(e.value=\"\"+e1(t)):e.value!==\"\"+e1(t)&&(e.value=\"\"+e1(t)):\"submit\"!==o&&\"reset\"!==o||e.removeAttribute(\"value\"),null!=t?te(e,o,e1(t)):null!=n?te(e,o,e1(n)):null!=r&&e.removeAttribute(\"value\"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&\"function\"!=typeof l&&\"symbol\"!=typeof l),null!=i&&\"function\"!=typeof i&&\"symbol\"!=typeof i&&\"boolean\"!=typeof i?e.name=\"\"+e1(i):e.removeAttribute(\"name\")}function e9(e,t,n,r,l,a,o,i){if(null!=a&&\"function\"!=typeof a&&\"symbol\"!=typeof a&&\"boolean\"!=typeof a&&(e.type=a),null!=t||null!=n){if(!(\"submit\"!==a&&\"reset\"!==a||null!=t))return;n=null!=n?\"\"+e1(n):\"\",t=null!=t?\"\"+e1(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r=\"function\"!=typeof(r=null!=r?r:l)&&\"symbol\"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&\"function\"!=typeof o&&\"symbol\"!=typeof o&&\"boolean\"!=typeof o&&(e.name=o)}function te(e,t,n){\"number\"===t&&e6(e.ownerDocument)===e||e.defaultValue===\"\"+n||(e.defaultValue=\"\"+n)}var tt=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t[\"$\"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(l=0,n=\"\"+e1(n),t=null;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function tr(e,t,n){if(null!=t&&((t=\"\"+e1(t))!==e.value&&(e.value=t),null==n)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=null!=n?\"\"+e1(n):\"\"}function tl(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(tt(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=\"\"),t=n}n=e1(t),e.defaultValue=n,(r=e.textContent)===n&&\"\"!==r&&null!==r&&(e.value=r)}function ta(e,t){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=t;else{for((iX=iX||document.createElement(\"div\")).innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=iX.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var to=ta;\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(to=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return ta(e,t)})});var ti=to;function tu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ts=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \"));function tc(e,t,n){var r=0===t.indexOf(\"--\");null==n||\"boolean\"==typeof n||\"\"===n?r?e.setProperty(t,\"\"):\"float\"===t?e.cssFloat=\"\":e[t]=\"\":r?e.setProperty(t,n):\"number\"!=typeof n||0===n||ts.has(t)?\"float\"===t?e.cssFloat=n:e[t]=(\"\"+n).trim():e[t]=n+\"px\"}function tf(e,t,n){if(null!=t&&\"object\"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf(\"--\")?e.setProperty(r,\"\"):\"float\"===r?e.cssFloat=\"\":e[r]=\"\");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&tc(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&tc(e,a,t[a])}function td(e){if(-1===e.indexOf(\"-\"))return!1;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var tp=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),tm=null;function th(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tg=null,ty=null;function tv(e){var t=eO(e);if(t&&(e=t.stateNode)){var n=eD(e);switch(e=t.stateNode,t.type){case\"input\":if(e7(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\"'+e5(\"\"+t)+'\"][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=eD(r);if(!l)throw Error(i(90));e7(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&e4(r)}break;case\"textarea\":tr(e,n.value,n.defaultValue);break;case\"select\":null!=(t=n.value)&&tn(e,!!n.multiple,t,!1)}}}function tb(e){tg?ty?ty.push(e):ty=[e]:tg=e}function tk(){if(tg){var e=tg,t=ty;if(ty=tg=null,tv(e),t)for(e=0;e<t.length;e++)tv(t[e])}}function tw(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function tS(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function tC(e){if(tw(e)!==e)throw Error(i(188))}function tE(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=tw(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){n=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return tC(l),e;if(a===r)return tC(l),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=l,r=a;else{for(var o=!1,u=l.child;u;){if(u===n){o=!0,n=l,r=a;break}if(u===r){o=!0,r=l,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=l;break}if(u===r){o=!0,r=a,n=l;break}u=u.sibling}if(!o)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?function e(t){var n=t.tag;if(5===n||26===n||27===n||6===n)return t;for(t=t.child;null!==t;){if(null!==(n=e(t)))return n;t=t.sibling}return null}(e):null}var tx={},tz=m(tx),tP=m(!1),tN=tx;function t_(e,t){var n=e.type.contextTypes;if(!n)return tx;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function tL(e){return null!=(e=e.childContextTypes)}function tT(){h(tP),h(tz)}function tF(e,t,n){if(tz.current!==tx)throw Error(i(168));g(tz,t),g(tP,n)}function tM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,\"function\"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in t))throw Error(i(108,function(e){var t=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(t.displayName||\"Context\")+\".Consumer\";case 10:return(t._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=t.render).displayName||e.name||\"\",t.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 26:case 27:case 5:return t;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return function e(t){if(null==t)return null;if(\"function\"==typeof t)return t.$$typeof===e0?null:t.displayName||t.name||null;if(\"string\"==typeof t)return t;switch(t){case b:return\"Fragment\";case v:return\"Portal\";case w:return\"Profiler\";case k:return\"StrictMode\";case z:return\"Suspense\";case P:return\"SuspenseList\";case M:return\"Cache\"}if(\"object\"==typeof t)switch(t.$$typeof){case S:return(t._context.displayName||\"Context\")+\".Provider\";case E:return(t.displayName||\"Context\")+\".Consumer\";case x:var n=t.render;return(t=t.displayName)||(t=\"\"!==(t=n.displayName||n.name||\"\")?\"ForwardRef(\"+t+\")\":\"ForwardRef\"),t;case N:return null!==(n=t.displayName||null)?n:e(t.type)||\"Memo\";case _:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===k?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"==typeof t)return t.displayName||t.name||null;if(\"string\"==typeof t)return t}return null}(e)||\"Unknown\",l));return u({},n,r)}function tO(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tx,tN=tz.current,g(tz,e),g(tP,tP.current),!0}function tR(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=tM(e,t,tN),r.__reactInternalMemoizedMergedChildContext=e,h(tP),h(tz),g(tz,e)):h(tP),g(tP,n)}var tD=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},tA=[],tI=0,tU=null,tB=0,tV=[],tQ=0,t$=null,tj=1,tW=\"\";function tH(e,t){tA[tI++]=tB,tA[tI++]=tU,tU=e,tB=t}function tq(e,t,n){tV[tQ++]=tj,tV[tQ++]=tW,tV[tQ++]=t$,t$=e;var r=tj;e=tW;var l=32-ei(r)-1;r&=~(1<<l),n+=1;var a=32-ei(t)+l;if(30<a){var o=l-l%5;a=(r&(1<<o)-1).toString(32),r>>=o,l-=o,tj=1<<32-ei(t)+l|n<<l|r,tW=a+e}else tj=1<<a|n<<l|r,tW=e}function tK(e){null!==e.return&&(tH(e,1),tq(e,1,0))}function tY(e){for(;e===tU;)tU=tA[--tI],tA[tI]=null,tB=tA[--tI],tA[tI]=null;for(;e===t$;)t$=tV[--tQ],tV[tQ]=null,tW=tV[--tQ],tV[tQ]=null,tj=tV[--tQ],tV[tQ]=null}var tX=null,tG=null,tZ=!1,tJ=null,t0=!1;function t1(e,t){var n=iS(5,null,null,0);n.elementType=\"DELETED\",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function t2(e,t){t.flags=-4097&t.flags|2}function t3(e,t){return null!==(t=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(\"INPUT\"!==e.nodeName||\"hidden\"!==e.type))break}else if(r){if(!e[eT])switch(t){case\"meta\":if(!e.hasAttribute(\"itemprop\"))break;return e;case\"link\":if(\"stylesheet\"===(l=e.getAttribute(\"rel\"))&&e.hasAttribute(\"data-precedence\")||l!==n.rel||e.getAttribute(\"href\")!==(null==n.href?null:n.href)||e.getAttribute(\"crossorigin\")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute(\"title\")!==(null==n.title?null:n.title))break;return e;case\"style\":if(e.hasAttribute(\"data-precedence\"))break;return e;case\"script\":if(((l=e.getAttribute(\"src\"))!==(null==n.src?null:n.src)||e.getAttribute(\"type\")!==(null==n.type?null:n.type)||e.getAttribute(\"crossorigin\")!==(null==n.crossOrigin?null:n.crossOrigin))&&l&&e.hasAttribute(\"async\")&&!e.hasAttribute(\"itemprop\"))break;return e;default:return e}}else{if(\"input\"!==t||\"hidden\"!==e.type)return e;var l=null==n.name?null:\"\"+n.name;if(\"hidden\"===n.type&&e.getAttribute(\"name\")===l)return e}if(null===(e=ca(e)))break}return null}(t,e.type,e.pendingProps,t0))&&(e.stateNode=t,tX=e,tG=cl(t.firstChild),t0=!1,!0)}function t4(e,t){return null!==(t=function(e,t,n){if(\"\"===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||\"INPUT\"!==e.nodeName||\"hidden\"!==e.type)&&!n||null===(e=ca(e)))return null;return e}(t,e.pendingProps,t0))&&(e.stateNode=t,tX=e,tG=null,!0)}function t6(e,t){e:{var n=t;for(t=t0;8!==n.nodeType;)if(!t||null===(n=ca(n))){t=null;break e}t=n}return null!==t&&(n=null!==t$?{id:tj,overflow:tW}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:536870912},(n=iS(18,null,null,0)).stateNode=t,n.return=e,e.child=n,tX=e,tG=null,!0)}function t8(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function t5(){throw Error(i(418))}function t7(e){for(tX=e.return;tX;)switch(tX.tag){case 3:case 27:t0=!0;return;case 5:case 13:t0=!1;return;default:tX=tX.return}}function t9(e){if(e!==tX)return!1;if(!tZ)return t7(e),tZ=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!(\"form\"!==(t=e.type)&&\"button\"!==t)||s4(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&(n=tG)){if(t8(e))ne(),t5();else for(;n;)t1(e,n),n=ca(n)}if(t7(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(n=0,e=e.nextSibling;e;){if(8===e.nodeType){if(\"/$\"===(t=e.data)){if(0===n){tG=ca(e);break e}n--}else\"$\"!==t&&\"$!\"!==t&&\"$?\"!==t||n++}e=e.nextSibling}tG=null}}else tG=tX?ca(e.stateNode):null;return!0}function ne(){for(var e=tG;e;)e=ca(e)}function nt(){tG=tX=null,tZ=!1}function nn(e){null===tJ?tJ=[e]:tJ.push(e)}var nr=[],nl=0,na=0;function no(){for(var e=nl,t=na=nl=0;t<e;){var n=nr[t];nr[t++]=null;var r=nr[t];nr[t++]=null;var l=nr[t];nr[t++]=null;var a=nr[t];if(nr[t++]=null,null!==r&&null!==l){var o=r.pending;null===o?l.next=l:(l.next=o.next,o.next=l),r.pending=l}0!==a&&nc(n,l,a)}}function ni(e,t,n,r){nr[nl++]=e,nr[nl++]=t,nr[nl++]=n,nr[nl++]=r,na|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function nu(e,t,n,r){return ni(e,t,n,r),nf(e)}function ns(e,t){return ni(e,null,null,t),nf(e)}function nc(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var l=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(l=!0)),e=a,a=a.return;l&&null!==t&&3===e.tag&&(a=e.stateNode,l=31-ei(n),null===(e=(a=a.hiddenUpdates)[l])?a[l]=[t]:e.push(t),t.lane=536870912|n)}function nf(e){ik();for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var nd=null,np=null,nm=!1,nh=!1,ng=!1,ny=0;function nv(e){e!==np&&null===e.next&&(null===np?nd=np=e:np=np.next=e),nh=!0,nm||(nm=!0,nC(nw))}function nb(e){if(!ng&&nh){var t=null;ng=!0;do for(var n=!1,r=nd;null!==r;){if(!e||0===r.tag){var l=oS,a=ep(r,r===ok?l:0);if(0!=(3&a))try{if(n=!0,l=r,0!=(6&ob))throw Error(i(327));if(!id()){var o=il(l,a);if(0!==l.tag&&2===o){var u=a,s=em(l,u);0!==s&&(a=s,o=oJ(l,u,s))}if(1===o)throw u=oN,o5(l,0),o3(l,a,0),nv(l),u;6===o?o3(l,a,oF):(l.finishedWork=l.current.alternate,l.finishedLanes=a,is(l,oO,oU,oR,oF))}nv(l)}catch(e){null===t?t=[e]:t.push(e)}}r=r.next}while(n);if(ng=!1,null!==t){if(1<t.length){if(\"function\"==typeof AggregateError)throw AggregateError(t);for(e=1;e<t.length;e++)nC(nk.bind(null,t[e]))}throw t[0]}}}function nk(e){throw e}function nw(){nh=nm=!1;for(var e=Y(),t=null,n=nd;null!==n;){var r=n.next;if(0!==ny&&function(){var e=window.event;return e&&\"popstate\"===e.type?e!==s6&&(s6=e,!0):(s6=null,!1)}()){var l=n,a=ny;l.pendingLanes|=2,l.entangledLanes|=2,l.entanglements[1]|=a}0===(l=nS(n,e))?(n.next=null,null===t?nd=r:t.next=r,null===r&&(np=t)):(t=n,0!=(3&l)&&(nh=!0)),n=r}ny=0,nb(!1)}function nS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ei(a),i=1<<o,u=l[o];-1===u?(0==(i&n)||0!=(i&r))&&(l[o]=function(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(i,t)):u<=t&&(e.expiredLanes|=i),a&=~i}if(t=ok,n=oS,n=ep(e,e===t?n:0),r=e.callbackNode,0===n||e===t&&2===oC||null!==e.cancelPendingCommit)return null!==r&&null!==r&&H(r),e.callbackNode=null,e.callbackPriority=0;if(0!=(3&n))return null!==r&&null!==r&&H(r),e.callbackPriority=2,e.callbackNode=null,2;if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&H(r),ew(n)){case 2:n=G;break;case 8:n=Z;break;case 32:default:n=J;break;case 268435456:n=et}return n=W(n,r=oZ.bind(null,e)),e.callbackPriority=t,e.callbackNode=n,t}function nC(e){s9(function(){0!=(6&ob)?W(G,e):e()})}function nE(){return 0===ny&&(ny=eh()),ny}var nx=null,nz=0,nP=0,nN=null;function n_(){if(null!==nx&&0==--nz){null!==nN&&(nN.status=\"fulfilled\");var e=nx;nx=null,nP=0,nN=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var nL=!1;function nT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nM(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nO(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&ob)){var l=r.pending;return null===l?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=nf(e),nc(e,null,n),t}return ni(e,r,t,n),nf(e)}function nR(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194176&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eb(e,n)}}function nD(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var nA=!1;function nI(){if(nA){var e=nN;if(null!==e)throw e}}function nU(e,t,n,r){nA=!1;var l=e.updateQueue;nL=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(null!==i){l.shared.pending=null;var s=i,c=s.next;s.next=null,null===o?a=c:o.next=c,o=s;var f=e.alternate;null!==f&&(i=(f=f.updateQueue).lastBaseUpdate)!==o&&(null===i?f.firstBaseUpdate=c:i.next=c,f.lastBaseUpdate=s)}if(null!==a){var d=l.baseState;for(o=0,f=c=s=null,i=a;;){var p=-536870913&i.lane,m=p!==i.lane;if(m?(oS&p)===p:(r&p)===p){0!==p&&p===nP&&(nA=!0),null!==f&&(f=f.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var h=e,g=i;switch(p=t,g.tag){case 1:if(\"function\"==typeof(h=g.payload)){d=h.call(n,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p=\"function\"==typeof(h=g.payload)?h.call(n,d,p):h))break e;d=u({},d,p);break e;case 2:nL=!0}}null!==(p=i.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=l.callbacks)?l.callbacks=[p]:m.push(p))}else m={lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(c=f=m,s=d):f=f.next=m,o|=p;if(null===(i=i.next)){if(null===(i=l.shared.pending))break;i=(m=i).next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}null===f&&(s=d),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=f,null===a&&(l.shared.lanes=0),o_|=o,e.lanes=o,e.memoizedState=d}}function nB(e,t){if(\"function\"!=typeof e)throw Error(i(191,e));e.call(t)}function nV(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)nB(n[e],t)}function nQ(e,t){if(tD(e,t))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!eS.call(t,l)||!tD(e[l],t[l]))return!1}return!0}var n$=Error(i(460)),nj=Error(i(474)),nW={then:function(){}};function nH(e){return\"fulfilled\"===(e=e.status)||\"rejected\"===e}function nq(){}function nK(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(nq,nq),t=n),t.status){case\"fulfilled\":return t.value;case\"rejected\":if((e=t.reason)===n$)throw Error(i(483));throw e;default:if(\"string\"==typeof t.status)t.then(nq,nq);else{if(null!==(e=ok)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status=\"pending\",e.then(function(e){if(\"pending\"===t.status){var n=t;n.status=\"fulfilled\",n.value=e}},function(e){if(\"pending\"===t.status){var n=t;n.status=\"rejected\",n.reason=e}})}switch(t.status){case\"fulfilled\":return t.value;case\"rejected\":if((e=t.reason)===n$)throw Error(i(483));throw e}throw nY=t,n$}}var nY=null;function nX(){if(null===nY)throw Error(i(459));var e=nY;return nY=null,e}var nG=null,nZ=0;function nJ(e){var t=nZ;return nZ+=1,null===nG&&(nG=[]),nK(nG,e,t)}function n0(e,t,n,r){var l=r.ref;e=null!==l&&\"function\"!=typeof l&&\"object\"!=typeof l?function(e,t,n,r){function l(e){var t=o.refs;null===e?delete t[a]:t[a]=e}if(!(e=n._owner)){if(\"string\"!=typeof r)throw Error(i(284));throw Error(i(290,r))}if(1!==e.tag)throw Error(i(309));var a=\"\"+r,o=e.stateNode;if(!o)throw Error(i(147,a));return null!==t&&null!==t.ref&&\"function\"==typeof t.ref&&t.ref._stringRef===a?t.ref:(l._stringRef=a,l)}(e,t,r,l):l,n.ref=e}function n1(e,t){throw Error(i(31,\"[object Object]\"===(e=Object.prototype.toString.call(t))?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function n2(e){return(0,e._init)(e._payload)}function n3(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=iE(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function u(e,t,n,r){return null===t||6!==t.tag?(t=i_(n,e.mode,r)).return=e:(t=l(t,n)).return=e,t}function s(e,t,n,r){var a=n.type;return a===b?f(e,t,n.props.children,r,n.key):(r=null!==t&&(t.elementType===a||\"object\"==typeof a&&null!==a&&a.$$typeof===_&&n2(a)===t.type)?l(t,n.props):iz(n.type,n.key,n.props,null,e.mode,r),n0(e,t,r,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=iL(n,e.mode,r)).return=e:(t=l(t,n.children||[])).return=e,t}function f(e,t,n,r,a){return null===t||7!==t.tag?(t=iP(n,e.mode,r,a)).return=e:(t=l(t,n)).return=e,t}function d(e,t,n){if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return(t=i_(\"\"+t,e.mode,n)).return=e,t;if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case y:return n=iz(t.type,t.key,t.props,null,e.mode,n),n0(e,null,n,t),n.return=e,n;case v:return(t=iL(t,e.mode,n)).return=e,t;case _:return d(e,(0,t._init)(t._payload),n)}if(tt(t)||R(t))return(t=iP(t,e.mode,n,null)).return=e,t;if(\"function\"==typeof t.then)return d(e,nJ(t),n);if(t.$$typeof===E)return d(e,ai(e,t,n),n);n1(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return null!==l?null:u(e,t,\"\"+n,r);if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===l?s(e,t,n,r):null;case v:return n.key===l?c(e,t,n,r):null;case _:return p(e,t,(l=n._init)(n._payload),r)}if(tt(n)||R(n))return null!==l?null:f(e,t,n,r,null);if(\"function\"==typeof n.then)return p(e,t,nJ(n),r);if(n.$$typeof===E)return p(e,t,ai(e,n,r),r);n1(e,n)}return null}function m(e,t,n,r,l){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r)return u(t,e=e.get(n)||null,\"\"+r,l);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case y:return s(t,e=e.get(null===r.key?n:r.key)||null,r,l);case v:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l);case _:return m(e,t,n,(0,r._init)(r._payload),l)}if(tt(r)||R(r))return f(t,e=e.get(n)||null,r,l,null);if(\"function\"==typeof r.then)return m(e,t,n,nJ(r),l);if(r.$$typeof===E)return m(e,t,n,ai(t,r,l),l);n1(t,r)}return null}return function(u,s,c,f){return nZ=0,u=function u(s,c,f,h){if(\"object\"==typeof f&&null!==f&&f.type===b&&null===f.key&&(f=f.props.children),\"object\"==typeof f&&null!==f){switch(f.$$typeof){case y:e:{for(var g=f.key,k=c;null!==k;){if(k.key===g){if((g=f.type)===b){if(7===k.tag){n(s,k.sibling),(c=l(k,f.props.children)).return=s,s=c;break e}}else if(k.elementType===g||\"object\"==typeof g&&null!==g&&g.$$typeof===_&&n2(g)===k.type){n(s,k.sibling),c=l(k,f.props),n0(s,k,c,f),c.return=s,s=c;break e}n(s,k);break}t(s,k),k=k.sibling}f.type===b?((c=iP(f.props.children,s.mode,h,f.key)).return=s,s=c):(h=iz(f.type,f.key,f.props,null,s.mode,h),n0(s,c,h,f),h.return=s,s=h)}return o(s);case v:e:{for(k=f.key;null!==c;){if(c.key===k){if(4===c.tag&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(s,c.sibling),(c=l(c,f.children||[])).return=s,s=c;break e}n(s,c);break}t(s,c),c=c.sibling}(c=iL(f,s.mode,h)).return=s,s=c}return o(s);case _:return u(s,c,(k=f._init)(f._payload),h)}if(tt(f))return function(l,o,i,u){for(var s=null,c=null,f=o,h=o=0,g=null;null!==f&&h<i.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tZ&&tH(l,h),s;if(null===f){for(;h<i.length;h++)null!==(f=d(l,i[h],u))&&(o=a(f,o,h),null===c?s=f:c.sibling=f,c=f);return tZ&&tH(l,h),s}for(f=r(l,f);h<i.length;h++)null!==(g=m(f,l,h,i[h],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),o=a(g,o,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(l,e)}),tZ&&tH(l,h),s}(s,c,f,h);if(R(f))return function(l,o,u,s){var c=R(u);if(\"function\"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,h=o,g=o=0,y=null,v=u.next();null!==h&&!v.done;g++,v=u.next()){h.index>g?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tZ&&tH(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tZ&&tH(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tZ&&tH(l,g),c}(s,c,f,h);if(\"function\"==typeof f.then)return u(s,c,nJ(f),h);if(f.$$typeof===E)return u(s,c,ai(s,f,h),h);n1(s,f)}return\"string\"==typeof f&&\"\"!==f||\"number\"==typeof f?(f=\"\"+f,null!==c&&6===c.tag?(n(s,c.sibling),(c=l(c,f)).return=s):(n(s,c),(c=i_(f,s.mode,h)).return=s),o(s=c)):n(s,c)}(u,s,c,f),nG=null,u}}var n4=n3(!0),n6=n3(!1),n8=m(null),n5=m(0);function n7(e,t){g(n5,e=oz),g(n8,t),oz=e|t.baseLanes}function n9(){g(n5,oz),g(n8,n8.current)}function re(){oz=n5.current,h(n8),h(n5)}var rt=m(null),rn=null;function rr(e){var t=e.alternate;g(ri,1&ri.current),g(rt,e),null===rn&&(null===t||null!==n8.current?rn=e:null!==t.memoizedState&&(rn=e))}function rl(e){if(22===e.tag){if(g(ri,ri.current),g(rt,e),null===rn){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rn=e)}}else ra(e)}function ra(){g(ri,ri.current),g(rt,rt.current)}function ro(e){h(rt),rn===e&&(rn=null),h(ri)}var ri=m(0);function ru(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||\"$?\"===n.data||\"$!\"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=s.ReactCurrentDispatcher,rc=s.ReactCurrentBatchConfig,rf=0,rd=null,rp=null,rm=null,rh=!1,rg=!1,ry=!1,rv=0,rb=0,rk=null,rw=0;function rS(){throw Error(i(321))}function rC(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tD(e[n],t[n]))return!1;return!0}function rE(e,t,n,r,l,a){return rf=a,rd=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rs.current=null===e||null===e.memoizedState?lg:ly,ry=!1,e=n(r,l),ry=!1,rg&&(e=rz(t,n,r,l)),rx(),e}function rx(){rs.current=lh;var e=null!==rp&&null!==rp.next;if(rf=0,rm=rp=rd=null,rh=!1,rb=0,rk=null,e)throw Error(i(300))}function rz(e,t,n,r){rd=e;var l=0;do{if(rg&&(rk=null),rb=0,rg=!1,25<=l)throw Error(i(301));l+=1,rm=rp=null,e.updateQueue=null,rs.current=lv;var a=t(n,r)}while(rg);return a}function rP(){var e=rs.current.useState()[0];return\"function\"==typeof e.then?rM(e):e}function rN(){var e=0!==rv;return rv=0,e}function r_(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rL(e){if(rh){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}rh=!1}rf=0,rm=rp=rd=null,rg=!1,rb=rv=0,rk=null}function rT(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rm?rd.memoizedState=rm=e:rm=rm.next=e,rm}function rF(){if(null===rp){var e=rd.alternate;e=null!==e?e.memoizedState:null}else e=rp.next;var t=null===rm?rd.memoizedState:rm.next;if(null!==t)rm=t,rp=e;else{if(null===e){if(null===rd.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(rp=e).memoizedState,baseState:rp.baseState,baseQueue:rp.baseQueue,queue:rp.queue,next:null},null===rm?rd.memoizedState=rm=e:rm=rm.next=e}return rm}function rM(e){var t=rb;return rb+=1,null===rk&&(rk=[]),e=nK(rk,e,t),null===rd.alternate&&(null===rm?null===rd.memoizedState:null===rm.next)&&(rs.current=lg),e}function rO(e){if(null!==e&&\"object\"==typeof e){if(\"function\"==typeof e.then)return rM(e);if(e.$$typeof===E)return ao(e)}throw Error(i(438,String(e)))}function rR(e,t){return\"function\"==typeof t?t(e):t}function rD(e){return rA(rF(),rp,e)}function rA(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var l=e.baseQueue,a=r.pending;if(null!==a){if(null!==l){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,r.pending=null}if(a=e.baseState,null===l)e.memoizedState=a;else{t=l.next;var u=o=null,s=null,c=t,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(oS&d)===d:(rf&d)===d){var p=c.revertLane;if(0===p)null!==s&&(s=s.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===nP&&(f=!0);else if((rf&p)===p){c=c.next,p===nP&&(f=!0);continue}else d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=d,o=a):s=s.next=d,rd.lanes|=p,o_|=p;d=c.action,ry&&n(a,d),a=c.hasEagerState?c.eagerState:n(a,d)}else p={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=p,o=a):s=s.next=p,rd.lanes|=d,o_|=d;c=c.next}while(null!==c&&c!==t);if(null===s?o=a:s.next=u,!tD(a,e.memoizedState)&&(lR=!0,f&&null!==(n=nN)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=s,r.lastRenderedState=a}return null===l&&(r.lanes=0),[e.memoizedState,r.dispatch]}function rI(e){var t=rF(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tD(a,t.memoizedState)||(lR=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function rU(e,t,n){var r=rd,l=rF(),a=tZ;if(a){if(void 0===n)throw Error(i(407));n=n()}else n=t();var o=!tD((rp||l).memoizedState,n);if(o&&(l.memoizedState=n,lR=!0),l=l.queue,r4(rQ.bind(null,r,l,e),[e]),l.getSnapshot!==t||o||null!==rm&&1&rm.memoizedState.tag){if(r.flags|=2048,rJ(9,rV.bind(null,r,l,n,t),{destroy:void 0},null),null===ok)throw Error(i(349));a||0!=(60&rf)||rB(r,t,n)}return n}function rB(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rd.updateQueue)?(t=iG(),rd.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function rV(e,t,n,r){t.value=n,t.getSnapshot=r,r$(t)&&rj(e)}function rQ(e,t,n){return n(function(){r$(t)&&rj(e)})}function r$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tD(e,n)}catch(e){return!0}}function rj(e){var t=ns(e,2);null!==t&&oG(t,e,2)}function rW(e){var t=rT();if(\"function\"==typeof e){var n=e;e=n(),ry&&(eo(!0),n(),eo(!1))}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rR,lastRenderedState:e},t}function rH(e,t,n,r){return e.baseState=n,rA(e,rp,\"function\"==typeof r?r:rR)}function rq(e,t,n,r){if(ld(e))throw Error(i(485));null===(e=t.pending)?((e={payload:r,next:null}).next=t.pending=e,rK(t,n,r)):t.pending=e.next={payload:r,next:e.next}}function rK(e,t,n){var r=e.action,l=e.state,a=rc.transition,o={_callbacks:new Set};rc.transition=o;try{var i=r(l,n);null!==i&&\"object\"==typeof i&&\"function\"==typeof i.then?(av(o,i),i.then(function(n){e.state=n,rY(e,t)},function(){return rY(e,t)}),t(i)):(t(i),e.state=i,rY(e,t))}catch(n){t({then:function(){},status:\"rejected\",reason:n}),rY(e,t)}finally{rc.transition=a}}function rY(e,t){var n=e.pending;if(null!==n){var r=n.next;r===n?e.pending=null:(r=r.next,n.next=r,rK(e,t,r.payload))}}function rX(e,t){return t}function rG(e,t,n){e=\"object\"==typeof(e=rA(e,t,rX)[0])&&null!==e&&\"function\"==typeof e.then?rM(e):e;var r=(t=rF()).queue,l=r.dispatch;return n!==t.memoizedState&&(rd.flags|=2048,rJ(9,rZ.bind(null,r,n),{destroy:void 0},null)),[e,l]}function rZ(e,t){e.action=t}function rJ(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=rd.updateQueue)?(t=iG(),rd.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function r0(){return rF().memoizedState}function r1(e,t,n,r){var l=rT();rd.flags|=e,l.memoizedState=rJ(1|t,n,{destroy:void 0},void 0===r?null:r)}function r2(e,t,n,r){var l=rF();r=void 0===r?null:r;var a=l.memoizedState.inst;null!==rp&&null!==r&&rC(r,rp.memoizedState.deps)?l.memoizedState=rJ(t,n,a,r):(rd.flags|=e,l.memoizedState=rJ(1|t,n,a,r))}function r3(e,t){r1(8390656,8,e,t)}function r4(e,t){r2(2048,8,e,t)}function r6(e,t){return r2(4,2,e,t)}function r8(e,t){return r2(4,4,e,t)}function r5(e,t){return\"function\"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function r7(e,t,n){n=null!=n?n.concat([e]):null,r2(4,4,r5.bind(null,t,e),n)}function r9(){}function le(e,t){var n=rF();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&rC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lt(e,t){var n=rF();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&rC(t,r[1])?r[0]:(r=e(),ry&&(eo(!0),e(),eo(!1)),n.memoizedState=[r,t],r)}function ln(e,t,n){return tD(n,t)?n:null!==n8.current?(e.memoizedState=n,tD(n,t)||(lR=!0),n):0==(42&rf)?(lR=!0,e.memoizedState=n):(0===oF&&(oF=0==(536870912&oS)||tZ?eh():536870912),null!==(e=rt.current)&&(e.flags|=32),e=oF,rd.lanes|=e,o_|=e,t)}function lr(e,t,n,r,l){var a=ek;ek=0!==a&&8>a?a:8;var o=rc.transition,i={_callbacks:new Set};rc.transition=i,lf(e,!1,t,n);try{var u=l();if(null!==u&&\"object\"==typeof u&&\"function\"==typeof u.then){av(i,u);var s,c,f=(s=[],c={status:\"pending\",value:null,reason:null,then:function(e){s.push(e)}},u.then(function(){c.status=\"fulfilled\",c.value=r;for(var e=0;e<s.length;e++)(0,s[e])(r)},function(e){for(c.status=\"rejected\",c.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),c);lc(e,t,f)}else lc(e,t,r)}catch(n){lc(e,t,{then:function(){},status:\"rejected\",reason:n})}finally{ek=a,rc.transition=o}}function ll(e,t,n,r){if(5!==e.tag)throw Error(i(476));if(null===e.memoizedState){var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rR,lastRenderedState:f},a=l;l={memoizedState:f,baseState:f,baseQueue:null,queue:l,next:null},e.memoizedState=l;var o=e.alternate;null!==o&&(o.memoizedState=l)}else a=e.memoizedState.queue;lr(e,a,t,f,function(){return n(r)})}function la(){var e=ao(B);return null!==e?e:f}function lo(){return rF().memoizedState}function li(){return rF().memoizedState}function lu(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=oX(t),r=nO(t,e=nM(n),n);null!==r&&(oG(r,t,n),nR(r,t,n)),t={cache:ap()},e.payload=t;return}t=t.return}}function ls(e,t,n){var r=oX(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ld(e)?lp(t,n):null!==(n=nu(e,t,n,r))&&(oG(n,e,r),lm(n,t,r))}function lc(e,t,n){var r=oX(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ld(e))lp(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tD(i,o)){ni(e,t,l,0),null===ok&&no();return}}catch(e){}finally{}null!==(n=nu(e,t,l,r))&&(oG(n,e,r),lm(n,t,r))}}function lf(e,t,n,r){if(ag(),r={lane:2,revertLane:nE(),action:r,hasEagerState:!1,eagerState:null,next:null},ld(e)){if(t)throw Error(i(479))}else null!==(t=nu(e,n,r,2))&&oG(t,e,2)}function ld(e){var t=e.alternate;return e===rd||null!==t&&t===rd}function lp(e,t){rg=rh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if(0!=(4194176&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eb(e,n)}}iG=function(){return{lastEffect:null,events:null,stores:null}};var lh={readContext:ao,use:rO,useCallback:rS,useContext:rS,useEffect:rS,useImperativeHandle:rS,useInsertionEffect:rS,useLayoutEffect:rS,useMemo:rS,useReducer:rS,useRef:rS,useState:rS,useDebugValue:rS,useDeferredValue:rS,useTransition:rS,useSyncExternalStore:rS,useId:rS};lh.useCacheRefresh=rS,lh.useHostTransitionStatus=rS,lh.useFormState=rS,lh.useOptimistic=rS;var lg={readContext:ao,use:rO,useCallback:function(e,t){return rT().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:r3,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,r1(4194308,4,r5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return r1(4194308,4,e,t)},useInsertionEffect:function(e,t){r1(4,2,e,t)},useMemo:function(e,t){var n=rT();t=void 0===t?null:t;var r=e();return ry&&(eo(!0),e(),eo(!1)),n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rT();if(void 0!==n){var l=n(t);ry&&(eo(!0),n(t),eo(!1))}else l=t;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=ls.bind(null,rd,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rT().memoizedState=e},useState:function(e){var t=(e=rW(e)).queue,n=lc.bind(null,rd,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r9,useDeferredValue:function(e){return rT().memoizedState=e,e},useTransition:function(){var e=rW(!1);return e=lr.bind(null,rd,e.queue,!0,!1),rT().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=rd,l=rT();if(tZ){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===ok)throw Error(i(349));0!=(60&oS)||rB(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,r3(rQ.bind(null,r,a,e),[e]),r.flags|=2048,rJ(9,rV.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rT(),t=ok.identifierPrefix;if(tZ){var n=tW,r=tj;t=\":\"+t+\"R\"+(n=(r&~(1<<32-ei(r)-1)).toString(32)+n),0<(n=rv++)&&(t+=\"H\"+n.toString(32)),t+=\":\"}else t=\":\"+t+\"r\"+(n=rw++).toString(32)+\":\";return e.memoizedState=t},useCacheRefresh:function(){return rT().memoizedState=lu.bind(null,rd)}};lg.useHostTransitionStatus=la,lg.useFormState=function(e,t){if(tZ){var n=ok.formState;if(null!==n){e:{if(tZ){if(tG){t:{for(var r=tG,l=t0;8!==r.nodeType;)if(!l||null===(r=ca(r))){r=null;break t}r=\"F!\"===(l=r.data)||\"F\"===l?r:null}if(r){tG=ca(r),r=\"F!\"===r.data;break e}}t5()}r=!1}r&&(t=n[0])}}return(n=rT()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rX,lastRenderedState:t},n.queue=r,n=lc.bind(null,rd,r),r.dispatch=n,r=rT(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,n=rq.bind(null,rd,l,n),l.dispatch=n,r.memoizedState=e,[t,n]},lg.useOptimistic=function(e){var t=rT();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lf.bind(null,rd,!0,n),n.dispatch=t,[e,t]};var ly={readContext:ao,use:rO,useCallback:le,useContext:ao,useEffect:r4,useImperativeHandle:r7,useInsertionEffect:r6,useLayoutEffect:r8,useMemo:lt,useReducer:rD,useRef:r0,useState:function(){return rD(rR)},useDebugValue:r9,useDeferredValue:function(e){return ln(rF(),rp.memoizedState,e)},useTransition:function(){var e=rD(rR)[0],t=rF().memoizedState;return[\"boolean\"==typeof e?e:rM(e),t]},useSyncExternalStore:rU,useId:lo};ly.useCacheRefresh=li,ly.useHostTransitionStatus=la,ly.useFormState=function(e){return rG(rF(),rp,e)},ly.useOptimistic=function(e,t){return rH(rF(),rp,e,t)};var lv={readContext:ao,use:rO,useCallback:le,useContext:ao,useEffect:r4,useImperativeHandle:r7,useInsertionEffect:r6,useLayoutEffect:r8,useMemo:lt,useReducer:rI,useRef:r0,useState:function(){return rI(rR)},useDebugValue:r9,useDeferredValue:function(e){var t=rF();return null===rp?(t.memoizedState=e,e):ln(t,rp.memoizedState,e)},useTransition:function(){var e=rI(rR)[0],t=rF().memoizedState;return[\"boolean\"==typeof e?e:rM(e),t]},useSyncExternalStore:rU,useId:lo};function lb(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function lk(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}lv.useCacheRefresh=li,lv.useHostTransitionStatus=la,lv.useFormState=function(e){var t=rF(),n=rp;if(null!==n)return rG(t,n,e);t=t.memoizedState;var r=(n=rF()).queue.dispatch;return n.memoizedState=e,[t,r]},lv.useOptimistic=function(e,t){var n=rF();return null!==rp?rH(n,rp,e,t):(n.baseState=e,[e,n.queue.dispatch])};var lw={isMounted:function(e){return!!(e=e._reactInternals)&&tw(e)===e},enqueueSetState:function(e,t,n){var r=oX(e=e._reactInternals),l=nM(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=nO(e,l,r))&&(oG(t,e,r),nR(t,e,r))},enqueueReplaceState:function(e,t,n){var r=oX(e=e._reactInternals),l=nM(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=nO(e,l,r))&&(oG(t,e,r),nR(t,e,r))},enqueueForceUpdate:function(e,t){var n=oX(e=e._reactInternals),r=nM(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=nO(e,r,n))&&(oG(t,e,n),nR(t,e,n))}};function lS(e,t,n,r,l,a,o){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nQ(n,r)||!nQ(l,a)}function lC(e,t,n){var r=!1,l=tx,a=t.contextType;return\"object\"==typeof a&&null!==a?a=ao(a):(l=tL(t)?tN:tz.current,a=(r=null!=(r=t.contextTypes))?t_(e,l):tx),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=lw,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function lE(e,t,n,r){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lw.enqueueReplaceState(t,t.state,null)}function lx(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},nT(e);var a=t.contextType;\"object\"==typeof a&&null!==a?l.context=ao(a):(a=tL(t)?tN:tz.current,l.context=t_(e,a)),l.state=e.memoizedState,\"function\"==typeof(a=t.getDerivedStateFromProps)&&(lk(e,t,a,n),l.state=e.memoizedState),\"function\"==typeof t.getDerivedStateFromProps||\"function\"==typeof l.getSnapshotBeforeUpdate||\"function\"!=typeof l.UNSAFE_componentWillMount&&\"function\"!=typeof l.componentWillMount||(t=l.state,\"function\"==typeof l.componentWillMount&&l.componentWillMount(),\"function\"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&lw.enqueueReplaceState(l,l.state,null),nU(e,n,l,r),nI(),l.state=e.memoizedState),\"function\"==typeof l.componentDidMount&&(e.flags|=4194308)}var lz=new WeakMap;function lP(e,t){if(\"object\"==typeof e&&null!==e){var n=lz.get(e);\"string\"!=typeof n&&(n=eJ(t),lz.set(e,n))}else n=eJ(t);return{value:e,source:t,stack:n,digest:null}}function lN(e,t,n){return\"string\"==typeof n&&lz.set(e,n),{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function l_(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lL(e,t,n){(n=nM(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oB||(oB=!0,oV=r),l_(e,t)},n}function lT(e,t,n){(n=nM(n)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){l_(e,t)}}var a=e.stateNode;return null!==a&&\"function\"==typeof a.componentDidCatch&&(n.callback=function(){l_(e,t),\"function\"!=typeof r&&(null===oQ?oQ=new Set([this]):oQ.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:\"\"})}),n}function lF(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nM(2)).tag=2,nO(n,t,2))),n.lanes|=2):(e.flags|=65536,e.lanes=l),e}var lM=s.ReactCurrentOwner,lO=Error(i(461)),lR=!1;function lD(e,t,n,r){t.child=null===e?n6(t,null,n,r):n4(t,e.child,n,r)}function lA(e,t,n,r,l){n=n.render;var a=t.ref;return(aa(t,l),r=rE(e,t,n,r,a,l),n=rN(),null===e||lR)?(tZ&&n&&tK(t),t.flags|=1,lD(e,t,r,l),t.child):(r_(e,t,l),l6(e,t,l))}function lI(e,t,n,r,l){if(null===e){var a=n.type;return\"function\"!=typeof a||iC(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=iz(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,lU(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nQ)(o,r)&&e.ref===t.ref)return l6(e,t,l)}return t.flags|=1,(e=iE(a,r)).ref=t.ref,e.return=t,t.child=e}function lU(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nQ(a,r)&&e.ref===t.ref){if(lR=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,l6(e,t,l);0!=(131072&e.flags)&&(lR=!0)}}return l$(e,t,n,r,l)}function lB(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lQ(e,t),\"hidden\"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lV(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&aw(t,null),n9(),rl(t);else{if(0==(536870912&n))return t.lanes=t.childLanes=536870912,lV(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&aw(t,null!==o?o.cachePool:null),null!==o?n7(t,o):n9(),rl(t)}}else null!==o?(aw(t,o.cachePool),n7(t,o),ra(t),t.memoizedState=null):(null!==e&&aw(t,null),n9(),ra(t));return lD(e,t,l,n),t.child}function lV(e,t,n){var r=ak();return r=null===r?null:{parent:ad._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&aw(t,null),n9(),rl(t),null}function lQ(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function l$(e,t,n,r,l){var a=tL(n)?tN:tz.current;return(a=t_(t,a),aa(t,l),n=rE(e,t,n,r,a,l),r=rN(),null===e||lR)?(tZ&&r&&tK(t),t.flags|=1,lD(e,t,n,l),t.child):(r_(e,t,l),l6(e,t,l))}function lj(e,t,n,r,l,a){return(aa(t,a),n=rz(t,r,n,l),rx(),r=rN(),null===e||lR)?(tZ&&r&&tK(t),t.flags|=1,lD(e,t,n,a),t.child):(r_(e,t,a),l6(e,t,a))}function lW(e,t,n,r,l){if(tL(n)){var a=!0;tO(t)}else a=!1;if(aa(t,l),null===t.stateNode)l4(e,t),lC(t,n,r),lx(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s=\"object\"==typeof s&&null!==s?ao(s):t_(t,s=tL(n)?tN:tz.current);var c=n.getDerivedStateFromProps,f=\"function\"==typeof c||\"function\"==typeof o.getSnapshotBeforeUpdate;f||\"function\"!=typeof o.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&lE(t,o,r,s),nL=!1;var d=t.memoizedState;o.state=d,nU(t,r,o,l),nI(),u=t.memoizedState,i!==r||d!==u||tP.current||nL?(\"function\"==typeof c&&(lk(t,n,c,r),u=t.memoizedState),(i=nL||lS(t,n,i,r,d,u,s))?(f||\"function\"!=typeof o.UNSAFE_componentWillMount&&\"function\"!=typeof o.componentWillMount||(\"function\"==typeof o.componentWillMount&&o.componentWillMount(),\"function\"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),\"function\"==typeof o.componentDidMount&&(t.flags|=4194308)):(\"function\"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):(\"function\"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,nF(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:lb(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u=\"object\"==typeof(u=n.contextType)&&null!==u?ao(u):t_(t,u=tL(n)?tN:tz.current);var p=n.getDerivedStateFromProps;(c=\"function\"==typeof p||\"function\"==typeof o.getSnapshotBeforeUpdate)||\"function\"!=typeof o.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&lE(t,o,r,u),nL=!1,d=t.memoizedState,o.state=d,nU(t,r,o,l),nI();var m=t.memoizedState;i!==f||d!==m||tP.current||nL?(\"function\"==typeof p&&(lk(t,n,p,r),m=t.memoizedState),(s=nL||lS(t,n,s,r,d,m,u)||!1)?(c||\"function\"!=typeof o.UNSAFE_componentWillUpdate&&\"function\"!=typeof o.componentWillUpdate||(\"function\"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),\"function\"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),\"function\"==typeof o.componentDidUpdate&&(t.flags|=4),\"function\"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):(\"function\"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),\"function\"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):(\"function\"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),\"function\"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return lH(e,t,n,r,a,l)}function lH(e,t,n,r,l,a){lQ(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tR(t,n,!1),l6(e,t,a);r=t.stateNode,lM.current=t;var i=o&&\"function\"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=n4(t,e.child,null,a),t.child=n4(t,null,i,a)):lD(e,t,i,a),t.memoizedState=r.state,l&&tR(t,n,!0),t.child}function lq(e){var t=e.stateNode;t.pendingContext?tF(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tF(e,t.context,!1),V(e,t.containerInfo)}function lK(e,t,n,r,l){return nt(),nn(l),t.flags|=256,lD(e,t,n,r),t.child}var lY={dehydrated:null,treeContext:null,retryLane:0};function lX(e){return{baseLanes:e,cachePool:aS()}}function lG(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=oF),e}function lZ(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&ri.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(tZ){if(a?rr(t):ra(t),tZ){var u=o=tG;if(u){if(!t6(t,u)){t8(t)&&t5(),tG=ca(u);var s=tX;tG&&t6(t,tG)?t1(s,u):(t2(tX,t),tZ=!1,tX=t,tG=o)}}else t8(t)&&t5(),t2(tX,t),tZ=!1,tX=t,tG=o}if(null!==(o=t.memoizedState)&&null!==(o=o.dehydrated))return 0==(1&t.mode)?t.lanes=2:\"$!\"===o.data?t.lanes=16:t.lanes=536870912,null;ro(t)}return(o=l.children,l=l.fallback,a)?(ra(t),a=t.mode,u=t.child,o={mode:\"hidden\",children:o},0==(1&a)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=iN(o,a,0,null),l=iP(l,a,n,null),u.return=t,l.return=t,u.sibling=l,t.child=u,(a=t.child).memoizedState=lX(n),a.childLanes=lG(e,r,n),t.memoizedState=lY,l):(rr(t),lJ(t,o))}if(null!==(u=e.memoizedState)&&null!==(s=u.dehydrated))return function(e,t,n,r,l,a,o,u){if(n)return 256&t.flags?(rr(t),t.flags&=-257,l0(e,t,u,a=lN(Error(i(422))))):null!==t.memoizedState?(ra(t),t.child=e.child,t.flags|=128,null):(ra(t),a=l.fallback,o=t.mode,l=iN({mode:\"visible\",children:l.children},o,0,null),a=iP(a,o,u,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,0!=(1&t.mode)&&n4(t,e.child,null,u),(o=t.child).memoizedState=lX(u),o.childLanes=lG(e,r,u),t.memoizedState=lY,a);if(rr(t),0==(1&t.mode))return l0(e,t,u,null);if(\"$!\"===a.data){if(a=a.nextSibling&&a.nextSibling.dataset)var s=a.dgst;return a=s,(r=Error(i(419))).digest=a,l0(e,t,u,a=lN(r,a,void 0))}if(r=0!=(u&e.childLanes),lR||r){if(null!==(r=ok)){if(0!=(42&(l=u&-u)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==o.retryLane)throw o.retryLane=l,ns(e,l),oG(r,e,l),lO}return\"$?\"!==a.data&&ir(),l0(e,t,u,null)}return\"$?\"===a.data?(t.flags|=128,t.child=e.child,t=iv.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,tG=cl(a.nextSibling),tX=t,tZ=!0,tJ=null,t0=!1,null!==e&&(tV[tQ++]=tj,tV[tQ++]=tW,tV[tQ++]=t$,tj=e.id,tW=e.overflow,t$=t),t=lJ(t,l.children),t.flags|=4096,t)}(e,t,o,r,l,s,u,n);if(a){ra(t),a=l.fallback,o=t.mode,s=(u=e.child).sibling;var c={mode:\"hidden\",children:l.children};return 0==(1&o)&&t.child!==u?((l=t.child).childLanes=0,l.pendingProps=c,t.deletions=null):(l=iE(u,c)).subtreeFlags=31457280&u.subtreeFlags,null!==s?a=iE(s,a):(a=iP(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lX(n):(null!==(u=o.cachePool)?(s=ad._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=aS(),o={baseLanes:o.baseLanes|n,cachePool:u}),a.memoizedState=o,a.childLanes=lG(e,r,n),t.memoizedState=lY,l}return rr(t),e=(r=e.child).sibling,r=iE(r,{mode:\"visible\",children:l.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lJ(e,t){return(t=iN({mode:\"visible\",children:t},e.mode,0,null)).return=e,e.child=t}function l0(e,t,n,r){return null!==r&&nn(r),n4(t,e.child,null,n),e=lJ(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function l1(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ar(e.return,t,n)}function l2(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function l3(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(lD(e,t,r.children,n),0!=(2&(r=ri.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&l1(e,n,t);else if(19===e.tag)l1(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(g(ri,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case\"forwards\":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===ru(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),l2(t,!1,l,n,a);break;case\"backwards\":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===ru(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}l2(t,!0,n,null,a);break;case\"together\":l2(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function l4(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function l6(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),o_|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=iE(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=iE(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var l8=m(null),l5=null,l7=null,l9=null;function ae(){l9=l7=l5=null}function at(e,t,n){g(l8,t._currentValue),t._currentValue=n}function an(e){e._currentValue=l8.current,h(l8)}function ar(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function al(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=nM(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),ar(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),ar(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function aa(e,t){l5=e,l9=l7=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lR=!0),e.firstContext=null)}function ao(e){return au(l5,e)}function ai(e,t,n){return null===l5&&aa(e,n),au(e,t)}function au(e,t){var n=t._currentValue;if(l9!==t){if(t={context:t,memoizedValue:n,next:null},null===l7){if(null===e)throw Error(i(308));l7=t,e.dependencies={lanes:0,firstContext:t}}else l7=l7.next=t}return n}var as=\"undefined\"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ac=a.unstable_scheduleCallback,af=a.unstable_NormalPriority,ad={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ap(){return{controller:new as,data:new Map,refCount:0}}function am(e){e.refCount--,0===e.refCount&&ac(af,function(){e.controller.abort()})}var ah=s.ReactCurrentBatchConfig;function ag(){var e=ah.transition;return null!==e&&e._callbacks.add(ay),e}function ay(e,t){!function(e,t){if(null===nx){var n=nx=[];nz=0,nP=nE(),nN={status:\"pending\",value:void 0,then:function(e){n.push(e)}}}nz++,t.then(n_,n_)}(0,t)}function av(e,t){e._callbacks.forEach(function(n){return n(e,t)})}var ab=m(null);function ak(){var e=ab.current;return null!==e?e:ok.pooledCache}function aw(e,t){null===t?g(ab,ab.current):g(ab,t.pool)}function aS(){var e=ak();return null===e?null:{parent:ad._currentValue,pool:e}}function aC(e){e.flags|=4}function aE(e,t){if(\"stylesheet\"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&oS)&&!(t=\"stylesheet\"!==t.type||0!=(3&t.state.loading))){if(o9())e.flags|=8192;else throw nY=nW,nj}}function ax(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?eg():536870912,e.lanes|=t)}function az(e,t){if(!tZ)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function aP(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aN(e,t){switch(tY(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tT();break;case 3:an(ad),Q(),h(tP),h(tz);break;case 26:case 27:case 5:j(t);break;case 4:Q();break;case 13:ro(t);break;case 19:h(ri);break;case 10:an(t.type._context);break;case 22:case 23:ro(t),re(),null!==e&&h(ab);break;case 24:an(ad)}}function a_(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var aL=!1,aT=null,aF=!1,aM=null,aO={onError:function(e){aL=!0,aT=e}};function aR(e,t,n,r,l,a,o,i,u){aL=!1,aT=null,a_.apply(aO,arguments)}var aD=!1,aA=!1,aI=\"function\"==typeof WeakSet?WeakSet:Set,aU=null;function aB(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}\"function\"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){im(e,t,n)}}function aV(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if(\"function\"==typeof r)try{r()}catch(n){im(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if(\"function\"==typeof n)try{n(null)}catch(n){im(e,t,n)}else n.current=null}}function aQ(e,t,n){try{n()}catch(n){im(e,t,n)}}var a$=!1;function aj(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,aQ(t,n,o))}l=l.next}while(l!==r)}}function aW(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function aH(e,t){try{aW(t,e)}catch(t){im(e,e.return,t)}}function aq(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{nV(t,n)}catch(t){im(e,e.return,t)}}}function aK(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case\"button\":case\"input\":case\"select\":case\"textarea\":n.autoFocus&&r.focus();break;case\"img\":n.src&&(r.src=n.src)}}catch(t){im(e,e.return,t)}}function aY(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:a9(e,n),4&r&&aH(n,5);break;case 1:if(a9(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){im(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:lb(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){im(n,n.return,e)}}}64&r&&aq(n),512&r&&aB(n,n.return);break;case 3:if(a9(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{nV(r,e)}catch(e){im(n,n.return,e)}}break;case 26:a9(e,n),512&r&&aB(n,n.return);break;case 27:case 5:a9(e,n),null===t&&4&r&&aK(n),512&r&&aB(n,n.return);break;case 12:default:a9(e,n);break;case 13:a9(e,n),4&r&&a3(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||aD)){t=null!==t&&null!==t.memoizedState||aA;var a=aD,o=aA;aD=l,(aA=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),aH(o,4);break;case 1:if(e(a,o,r),\"function\"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){im(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l<u.length;l++)nB(u[l],a)}r&&64&i&&aq(o),aB(o,o.return);break;case 26:case 27:case 5:e(a,o,r),r&&null===l&&4&i&&aK(o),aB(o,o.return);break;case 12:default:e(a,o,r);break;case 13:e(a,o,r),r&&4&i&&a3(a,o);break;case 22:null===o.memoizedState&&e(a,o,r),aB(o,o.return)}n=n.sibling}}(e,n,0!=(8772&n.subtreeFlags)):a9(e,n),aD=a,aA=o}}else a9(e,n);512&r&&(\"manual\"===n.memoizedProps.mode?aB(n,n.return):aV(n,n.return))}}function aX(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function aG(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||aX(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function aZ(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(aZ(e,t,n),e=e.sibling;null!==e;)aZ(e,t,n),e=e.sibling}var aJ=null,a0=!1;function a1(e,t,n){for(n=n.child;null!==n;)a2(e,t,n),n=n.sibling}function a2(e,t,n){if(ea&&\"function\"==typeof ea.onCommitFiberUnmount)try{ea.onCommitFiberUnmount(el,n)}catch(e){}switch(n.tag){case 26:aA||aV(n,t),a1(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:aA||aV(n,t);var r=aJ,l=a0;for(aJ=n.stateNode,a1(e,t,n),e=(n=n.stateNode).attributes;e.length;)n.removeAttributeNode(e[0]);eF(n),aJ=r,a0=l;break;case 5:aA||aV(n,t);case 6:r=aJ,l=a0,aJ=null,a1(e,t,n),aJ=r,a0=l,null!==aJ&&(a0?(e=aJ,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):aJ.removeChild(n.stateNode));break;case 18:null!==aJ&&(a0?(e=aJ,n=n.stateNode,8===e.nodeType?ct(e.parentNode,n):1===e.nodeType&&ct(e,n),uL(e)):ct(aJ,n.stateNode));break;case 4:r=aJ,l=a0,aJ=n.stateNode.containerInfo,a0=!0,a1(e,t,n),aJ=r,a0=l;break;case 0:case 11:case 14:case 15:if(!aA&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l.tag,o=l.inst,i=o.destroy;void 0!==i&&(0!=(2&a)?(o.destroy=void 0,aQ(n,t,i)):0!=(4&a)&&(o.destroy=void 0,aQ(n,t,i))),l=l.next}while(l!==r)}a1(e,t,n);break;case 1:if(!aA&&(aV(n,t),\"function\"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){im(n,t,e)}a1(e,t,n);break;case 21:default:a1(e,t,n);break;case 22:aV(n,t),1&n.mode?(aA=(r=aA)||null!==n.memoizedState,a1(e,t,n),aA=r):a1(e,t,n)}}function a3(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{uL(e)}catch(e){im(t,t.return,e)}}function a4(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new aI),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new aI),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){var r=ib.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function a6(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];try{var a=t,o=a;e:for(;null!==o;){switch(o.tag){case 27:case 5:aJ=o.stateNode,a0=!1;break e;case 3:case 4:aJ=o.stateNode.containerInfo,a0=!0;break e}o=o.return}if(null===aJ)throw Error(i(160));a2(e,a,l),aJ=null,a0=!1;var u=l.alternate;null!==u&&(u.return=null),l.return=null}catch(e){im(l,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)a5(t,e),t=t.sibling}var a8=null;function a5(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a6(t,e),a7(e),4&r){try{aj(3,e,e.return),aW(3,e)}catch(t){im(e,e.return,t)}try{aj(5,e,e.return)}catch(t){im(e,e.return,t)}}break;case 1:a6(t,e),a7(e),512&r&&null!==n&&aV(n,n.return),64&r&&aD&&null!==(e=e.updateQueue)&&null!==(n=e.callbacks)&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===r?n:r.concat(n));break;case 26:var l=a8;if(a6(t,e),a7(e),512&r&&null!==n&&aV(n,n.return),4&r){if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n){if(null===r){if(null===e.stateNode){e:{n=e.type,r=e.memoizedProps,t=l.ownerDocument||l;t:switch(n){case\"title\":(!(l=t.getElementsByTagName(\"title\")[0])||l[eT]||l[eE]||\"http://www.w3.org/2000/svg\"===l.namespaceURI||l.hasAttribute(\"itemprop\"))&&(l=t.createElement(n),t.head.insertBefore(l,t.querySelector(\"head > title\"))),sG(l,n,r),l[eE]=e,eI(l),n=l;break e;case\"link\":var a=cE(\"link\",\"href\",t).get(n+(r.href||\"\"));if(a){for(var o=0;o<a.length;o++)if((l=a[o]).getAttribute(\"href\")===(null==r.href?null:r.href)&&l.getAttribute(\"rel\")===(null==r.rel?null:r.rel)&&l.getAttribute(\"title\")===(null==r.title?null:r.title)&&l.getAttribute(\"crossorigin\")===(null==r.crossOrigin?null:r.crossOrigin)){a.splice(o,1);break t}}sG(l=t.createElement(n),n,r),t.head.appendChild(l);break;case\"meta\":if(a=cE(\"meta\",\"content\",t).get(n+(r.content||\"\"))){for(o=0;o<a.length;o++)if((l=a[o]).getAttribute(\"content\")===(null==r.content?null:\"\"+r.content)&&l.getAttribute(\"name\")===(null==r.name?null:r.name)&&l.getAttribute(\"property\")===(null==r.property?null:r.property)&&l.getAttribute(\"http-equiv\")===(null==r.httpEquiv?null:r.httpEquiv)&&l.getAttribute(\"charset\")===(null==r.charSet?null:r.charSet)){a.splice(o,1);break t}}sG(l=t.createElement(n),n,r),t.head.appendChild(l);break;default:throw Error(i(468,n))}l[eE]=e,eI(l),n=l}e.stateNode=n}else cx(l,e.type,e.stateNode)}else e.stateNode=cb(l,r,e.memoizedProps)}else if(t!==r)null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?cx(l,e.type,e.stateNode):cb(l,r,e.memoizedProps);else if(null===r&&null!==e.stateNode){e.updateQueue=null;try{var u=e.stateNode,s=e.memoizedProps;sZ(u,e.type,n.memoizedProps,s),u[ex]=s}catch(t){im(e,e.return,t)}}}break;case 27:if(4&r&&null===e.alternate){for(l=e.stateNode,a=e.memoizedProps,o=l.firstChild;o;){var c=o.nextSibling,f=o.nodeName;o[eT]||\"HEAD\"===f||\"BODY\"===f||\"SCRIPT\"===f||\"STYLE\"===f||\"LINK\"===f&&\"stylesheet\"===o.rel.toLowerCase()||l.removeChild(o),o=c}for(o=e.type,c=l.attributes;c.length;)l.removeAttributeNode(c[0]);sG(l,o,a),l[eE]=e,l[ex]=a}case 5:if(a6(t,e),a7(e),512&r&&null!==n&&aV(n,n.return),32&e.flags){t=e.stateNode;try{tu(t,\"\")}catch(t){im(e,e.return,t)}}if(4&r&&null!=(r=e.stateNode)){t=e.memoizedProps,n=null!==n?n.memoizedProps:t,l=e.type,e.updateQueue=null;try{sZ(r,l,n,t),r[ex]=t}catch(t){im(e,e.return,t)}}break;case 6:if(a6(t,e),a7(e),4&r){if(null===e.stateNode)throw Error(i(162));n=e.stateNode,r=e.memoizedProps;try{n.nodeValue=r}catch(t){im(e,e.return,t)}}break;case 3:if(cC=null,l=a8,a8=cf(t.containerInfo),a6(t,e),a8=l,a7(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{uL(t.containerInfo)}catch(t){im(e,e.return,t)}break;case 4:n=a8,a8=cf(e.stateNode.containerInfo),a6(t,e),a7(e),a8=n;break;case 13:a6(t,e),a7(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(oA=Y()),4&r&&null!==(n=e.updateQueue)&&(e.updateQueue=null,a4(e,n));break;case 22:if(512&r&&null!==n&&aV(n,n.return),u=null!==e.memoizedState,s=null!==n&&null!==n.memoizedState,1&e.mode){var d=aD,p=aA;aD=d||u,aA=p||s,a6(t,e),aA=p,aD=d}else a6(t,e);if(a7(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=u?-2&t._visibility:1|t._visibility,u&&(t=aD||aA,null===n||s||t||0!=(1&e.mode)&&function e(t){for(t=t.child;null!==t;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:aj(4,n,n.return),e(n);break;case 1:aV(n,n.return);var r=n.stateNode;if(\"function\"==typeof r.componentWillUnmount){var l=n.return;try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){im(n,l,e)}}e(n);break;case 26:case 27:case 5:aV(n,n.return),e(n);break;case 22:aV(n,n.return),null===n.memoizedState&&e(n);break;default:e(n)}t=t.sibling}}(e)),null===e.memoizedProps||\"manual\"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){n=t;try{l=t.stateNode,u?(a=l.style,\"function\"==typeof a.setProperty?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\"):(o=t.stateNode,f=null!=(c=t.memoizedProps.style)&&c.hasOwnProperty(\"display\")?c.display:null,o.style.display=null==f||\"boolean\"==typeof f?\"\":(\"\"+f).trim())}catch(t){im(e,e.return,t)}}}else if(6===t.tag){if(null===n)try{t.stateNode.nodeValue=u?\"\":t.memoizedProps}catch(t){im(e,e.return,t)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(n=e.updateQueue)&&null!==(r=n.retryQueue)&&(n.retryQueue=null,a4(e,r));break;case 19:a6(t,e),a7(e),4&r&&null!==(n=e.updateQueue)&&(e.updateQueue=null,a4(e,n));break;case 21:break;default:a6(t,e),a7(e)}}function a7(e){var t=e.flags;if(2&t){try{if(27!==e.tag){t:{for(var n=e.return;null!==n;){if(aX(n)){var r=n;break t}n=n.return}throw Error(i(160))}switch(r.tag){case 27:var l=r.stateNode,a=aG(e);aZ(e,a,l);break;case 5:var o=r.stateNode;32&r.flags&&(tu(o,\"\"),r.flags&=-33);var u=aG(e);aZ(e,u,o);break;case 3:case 4:var s=r.stateNode.containerInfo,c=aG(e);!function e(t,n,r){var l=t.tag;if(5===l||6===l)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=sK));else if(4!==l&&27!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,c,s);break;default:throw Error(i(161))}}}catch(t){im(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function a9(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)aY(e,t.alternate,t),t=t.sibling}function oe(e,t){try{aW(t,e)}catch(t){im(e,e.return,t)}}function ot(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&am(n))}function on(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&am(e))}function or(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ol(e,t,n,r),t=t.sibling}function ol(e,t,n,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:or(e,t,n,r),2048&l&&oe(t,9);break;case 3:or(e,t,n,r),2048&l&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&am(e)));break;case 23:break;case 22:var a=t.stateNode;null!==t.memoizedState?4&a._visibility?or(e,t,n,r):1&t.mode?oa(e,t):(a._visibility|=4,or(e,t,n,r)):4&a._visibility?or(e,t,n,r):(a._visibility|=4,function e(t,n,r,l,a){for(a=a&&0!=(10256&n.subtreeFlags),n=n.child;null!==n;){var o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(t,o,r,l,a),oe(o,8);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?4&u._visibility?e(t,o,r,l,a):1&o.mode?oa(t,o):(u._visibility|=4,e(t,o,r,l,a)):(u._visibility|=4,e(t,o,r,l,a)),a&&2048&i&&ot(o.alternate,o);break;case 24:e(t,o,r,l,a),a&&2048&i&&on(o.alternate,o);break;default:e(t,o,r,l,a)}n=n.sibling}}(e,t,n,r,0!=(10256&t.subtreeFlags))),2048&l&&ot(t.alternate,t);break;case 24:or(e,t,n,r),2048&l&&on(t.alternate,t);break;default:or(e,t,n,r)}}function oa(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=t,r=n.flags;switch(n.tag){case 22:oa(e,n),2048&r&&ot(n.alternate,n);break;case 24:oa(e,n),2048&r&&on(n.alternate,n);break;default:oa(e,n)}t=t.sibling}}var oo=8192;function oi(e){if(e.subtreeFlags&oo)for(e=e.child;null!==e;)ou(e),e=e.sibling}function ou(e){switch(e.tag){case 26:oi(e),e.flags&oo&&null!==e.memoizedState&&function(e,t,n){if(null===cz)throw Error(i(475));var r=cz;if(\"stylesheet\"===t.type&&(\"string\"!=typeof n.media||!1!==matchMedia(n.media).matches)&&0==(4&t.state.loading)){if(null===t.instance){var l=cm(n.href),a=e.querySelector(ch(l));if(a){null!==(e=a._p)&&\"object\"==typeof e&&\"function\"==typeof e.then&&(r.count++,r=cN.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,eI(a);return}a=e.ownerDocument||e,n=cg(n),(l=cs.get(l))&&cw(n,l),eI(a=a.createElement(\"link\"));var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sG(a,\"link\",n),t.instance=a}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0==(3&t.state.loading)&&(r.count++,t=cN.bind(r),e.addEventListener(\"load\",t),e.addEventListener(\"error\",t))}}(a8,e.memoizedState,e.memoizedProps);break;case 5:default:oi(e);break;case 3:case 4:var t=a8;a8=cf(e.stateNode.containerInfo),oi(e),a8=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=oo,oo=16777216,oi(e),oo=t):oi(e))}}function os(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(null!==e)}}function oc(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];aU=r,od(r,e)}os(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)of(e),e=e.sibling}function of(e){switch(e.tag){case 0:case 11:case 15:oc(e),2048&e.flags&&aj(9,e,e.return);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,function e(t){var n=t.deletions;if(0!=(16&t.flags)){if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];aU=l,od(l,t)}os(t)}for(t=t.child;null!==t;){switch((n=t).tag){case 0:case 11:case 15:aj(8,n,n.return),e(n);break;case 22:4&(r=n.stateNode)._visibility&&(r._visibility&=-5,e(n));break;default:e(n)}t=t.sibling}}(e)):oc(e);break;default:oc(e)}}function od(e,t){for(;null!==aU;){var n=aU;switch(n.tag){case 0:case 11:case 15:aj(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:am(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,aU=r;else for(n=e;null!==aU;){var l=(r=aU).sibling,a=r.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&eF(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(r),r===n){aU=null;break}if(null!==l){l.return=a,aU=l;break}aU=a}}}var op={getCacheSignal:function(){return ao(ad).controller.signal},getCacheForType:function(e){var t=ao(ad),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},om=\"function\"==typeof WeakMap?WeakMap:Map,oh=s.ReactCurrentDispatcher,og=s.ReactCurrentCache,oy=s.ReactCurrentOwner,ov=s.ReactCurrentBatchConfig,ob=0,ok=null,ow=null,oS=0,oC=0,oE=null,ox=!1,oz=0,oP=0,oN=null,o_=0,oL=0,oT=0,oF=0,oM=null,oO=null,oR=!1,oD=!1,oA=0,oI=1/0,oU=null,oB=!1,oV=null,oQ=null,o$=!1,oj=null,oW=0,oH=0,oq=null,oK=0,oY=null;function oX(e){return 0==(1&e.mode)?2:0!=(2&ob)&&0!==oS?oS&-oS:null!==ag()?0!==(e=nP)?e:nE():0!==(e=ek)?e:e=void 0===(e=window.event)?32:uU(e.type)}function oG(e,t,n){(e===ok&&2===oC||null!==e.cancelPendingCommit)&&(o5(e,0),o3(e,oS,oF)),o2(e,n),(0==(2&ob)||e!==ok)&&(e===ok&&(0==(2&ob)&&(oL|=n),4===oP&&o3(e,oS,oF)),nv(e),2===n&&0===ob&&0==(1&t.mode)&&(oI=Y()+500,nb(!0)))}function oZ(e,t){if(0!=(6&ob))throw Error(i(327));var n=e.callbackNode;if(id()&&e.callbackNode!==n)return null;var r=ep(e,e===ok?oS:0);if(0===r)return null;var l=0==(60&r)&&0==(r&e.expiredLanes)&&!t;if(0!==(t=l?function(e,t){var n=ob;ob|=2;var r=ie(),l=it();(ok!==e||oS!==t)&&(oU=null,oI=Y()+500,o5(e,t));e:for(;;)try{if(0!==oC&&null!==ow){t=ow;var a=oE;t:switch(oC){case 1:case 6:oC=0,oE=null,ii(e,t,a);break;case 2:if(nH(a)){oC=0,oE=null,io(t);break}t=function(){2===oC&&ok===e&&(oC=7),nv(e)},a.then(t,t);break e;case 3:oC=7;break e;case 4:oC=5;break e;case 7:nH(a)?(oC=0,oE=null,io(t)):(oC=0,oE=null,ii(e,t,a));break;case 5:switch(ow.tag){case 5:case 26:case 27:t=ow,oC=0,oE=null;var o=t.sibling;if(null!==o)ow=o;else{var u=t.return;null!==u?(ow=u,iu(u)):ow=null}break t}oC=0,oE=null,ii(e,t,a);break;case 8:o8(),oP=6;break e;default:throw Error(i(462))}}!function(){for(;null!==ow&&!q();)ia(ow)}();break}catch(t){o7(e,t)}return(ae(),oh.current=r,og.current=l,ob=n,null!==ow)?0:(ok=null,oS=0,no(),oP)}(e,r):il(e,r)))for(var a=l;;){if(6===t)o3(e,r,0);else{if(l=e.current.alternate,a&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var l=n[r],a=l.getSnapshot;l=l.value;try{if(!tD(a(),l))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)){t=il(e,r),a=!1;continue}if(2===t){var o=em(e,a=r);0!==o&&(r=o,t=oJ(e,a,o))}if(1===t)throw n=oN,o5(e,0),o3(e,r,0),nv(e),n;e.finishedWork=l,e.finishedLanes=r;e:{switch(a=e,t){case 0:case 1:throw Error(i(345));case 4:if((4194176&r)===r){o3(a,r,oF);break e}break;case 2:case 3:case 5:break;default:throw Error(i(329))}if((62914560&r)===r&&10<(t=oA+300-Y())){if(o3(a,r,oF),0!==ep(a,0))break e;a.timeoutHandle=s8(o1.bind(null,a,l,oO,oU,oR,r,oF),t);break e}o1(a,l,oO,oU,oR,r,oF)}}break}return nv(e),nS(e,Y()),e=e.callbackNode===n?oZ.bind(null,e):null}function oJ(e,t,n){var r=oM,l=e.current.memoizedState.isDehydrated;if(l&&(o5(e,n).flags|=256),2!==(n=il(e,n))){if(ox&&!l)return e.errorRecoveryDisabledLanes|=t,oL|=t,4;e=oO,oO=r,null!==e&&o0(e)}return n}function o0(e){null===oO?oO=e:oO.push.apply(oO,e)}function o1(e,t,n,r,l,a,o){if(0==(42&a)&&(cz={stylesheets:null,count:0,unsuspend:cP},ou(t),null!==(t=function(){if(null===cz)throw Error(i(475));var e=cz;return e.stylesheets&&0===e.count&&cL(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&cL(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}()))){e.cancelPendingCommit=t(is.bind(null,e,n,r,l)),o3(e,a,o);return}is(e,n,r,l,o)}function o2(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0),2&ob?oR=!0:4&ob&&(oD=!0),ik()}function o3(e,t,n){t&=~oT,t&=~oL,e.suspendedLanes|=t,e.pingedLanes&=~t;for(var r=e.expirationTimes,l=t;0<l;){var a=31-ei(l),o=1<<a;r[a]=-1,l&=~o}0!==n&&ev(e,n,t)}function o4(e,t){var n=ob;ob|=1;try{return e(t)}finally{0===(ob=n)&&(oI=Y()+500,nb(!0))}}function o6(e){null!==oj&&0===oj.tag&&0==(6&ob)&&id();var t=ob;ob|=1;var n=ov.transition,r=ek;try{if(ov.transition=null,ek=2,e)return e()}finally{ek=r,ov.transition=n,0==(6&(ob=t))&&nb(!1)}}function o8(){if(null!==ow){if(0===oC)var e=ow.return;else e=ow,ae(),rL(e),nG=null,nZ=0,e=ow;for(;null!==e;)aN(e.alternate,e),e=e.return;ow=null}}function o5(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,s5(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),o8(),ok=e,ow=n=iE(e.current,null),oS=t,oC=0,oE=null,ox=!1,oP=0,oN=null,oF=oT=oL=o_=0,oO=oM=null,oR=!1,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var l=31-ei(r),a=1<<l;t|=e[l],r&=~a}return oz=t,no(),n}function o7(e,t){rd=null,rs.current=lh,oy.current=null,t===n$?(t=nX(),oC=o9()&&0==(134217727&o_)&&0==(134217727&oL)?2:3):t===nj?(t=nX(),oC=4):oC=t===lO?8:null!==t&&\"object\"==typeof t&&\"function\"==typeof t.then?6:1,oE=t,null===ow&&(oP=1,oN=t)}function o9(){var e=rt.current;return null===e||((4194176&oS)===oS?null===rn:((62914560&oS)===oS||0!=(536870912&oS))&&e===rn)}function ie(){var e=oh.current;return oh.current=lh,null===e?lh:e}function it(){var e=og.current;return og.current=op,e}function ir(){oP=4,0==(134217727&o_)&&0==(134217727&oL)||null===ok||o3(ok,oS,oF)}function il(e,t){var n=ob;ob|=2;var r=ie(),l=it();(ok!==e||oS!==t)&&(oU=null,o5(e,t)),t=!1;e:for(;;)try{if(0!==oC&&null!==ow){var a=ow,o=oE;switch(oC){case 8:o8(),oP=6;break e;case 3:case 2:t||null!==rt.current||(t=!0);default:oC=0,oE=null,ii(e,a,o)}}!function(){for(;null!==ow;)ia(ow)}();break}catch(t){o7(e,t)}if(t&&e.shellSuspendCounter++,ae(),ob=n,oh.current=r,og.current=l,null!==ow)throw Error(i(261));return ok=null,oS=0,no(),oP}function ia(e){var t=iZ(e.alternate,e,oz);e.memoizedProps=e.pendingProps,null===t?iu(e):ow=t,oy.current=null}function io(e){var t=e.alternate;switch(e.tag){case 2:e.tag=0;case 15:case 0:var n=e.type,r=e.pendingProps;r=e.elementType===n?r:lb(n,r);var l=tL(n)?tN:tz.current;l=t_(e,l),t=lj(t,e,r,n,l,oS);break;case 11:n=e.type.render,r=e.pendingProps,r=e.elementType===n?r:lb(n,r),t=lj(t,e,r,n,e.ref,oS);break;case 5:rL(e);default:aN(t,e),e=ow=ix(e,oz),t=iZ(t,e,oz)}e.memoizedProps=e.pendingProps,null===t?iu(e):ow=t,oy.current=null}function ii(e,t,n){ae(),rL(t),nG=null,nZ=0;var r=t.return;try{if(function(e,t,n,r,l){if(n.flags|=32768,null!==r&&\"object\"==typeof r&&\"function\"==typeof r.then){var a=n.tag;if(0!=(1&n.mode)||0!==a&&11!==a&&15!==a||((a=n.alternate)?(n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.lanes=a.lanes):(n.updateQueue=null,n.memoizedState=null)),null!==(a=rt.current)){switch(a.tag){case 13:return 1&n.mode&&(null===rn?ir():null===a.alternate&&0===oP&&(oP=3)),a.flags&=-257,lF(a,t,n,e,l),r===nW?a.flags|=16384:(null===(t=a.updateQueue)?a.updateQueue=new Set([r]):t.add(r),1&a.mode&&ih(e,r,l)),!1;case 22:if(1&a.mode)return a.flags|=65536,r===nW?a.flags|=16384:(null===(t=a.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),ih(e,r,l)),!1}throw Error(i(435,a.tag))}if(1===e.tag)return ih(e,r,l),ir(),!1;r=Error(i(426))}if(tZ&&1&n.mode&&null!==(a=rt.current))return 0==(65536&a.flags)&&(a.flags|=256),lF(a,t,n,e,l),nn(lP(r,n)),!1;if(e=r=lP(r,n),4!==oP&&(oP=2),null===oM?oM=[e]:oM.push(e),null===t)return!0;e=t;do{switch(e.tag){case 3:return e.flags|=65536,l&=-l,e.lanes|=l,l=lL(e,r,l),nD(e,l),!1;case 1:if(t=r,n=e.type,a=e.stateNode,0==(128&e.flags)&&(\"function\"==typeof n.getDerivedStateFromError||null!==a&&\"function\"==typeof a.componentDidCatch&&(null===oQ||!oQ.has(a))))return e.flags|=65536,l&=-l,e.lanes|=l,l=lT(e,t,l),nD(e,l),!1}e=e.return}while(null!==e);return!1}(e,r,t,n,oS)){oP=1,oN=n,ow=null;return}}catch(e){if(null!==r)throw ow=r,e;oP=1,oN=n,ow=null;return}if(32768&t.flags)e:{e=t;do{if(null!==(t=function(e,t){switch(tY(t),t.tag){case 1:return tL(t.type)&&tT(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return an(ad),Q(),h(tP),h(tz),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return j(t),null;case 13:if(ro(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));nt()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return h(ri),null;case 4:return Q(),null;case 10:return an(t.type._context),null;case 22:case 23:return ro(t),re(),null!==e&&h(ab),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return an(ad),null;default:return null}}(e.alternate,e))){t.flags&=32767,ow=t;break e}null!==(e=e.return)&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),ow=e}while(null!==e);oP=6,ow=null}else iu(t)}function iu(e){var t=e;do{e=t.return;var n=function(e,t,n){var r=t.pendingProps;switch(tY(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return aP(t),null;case 1:case 17:return tL(t.type)&&tT(),aP(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),an(ad),Q(),h(tP),h(tz),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(t9(t)?aC(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==tJ&&(o0(tJ),tJ=null))),aP(t),null;case 26:if(n=t.memoizedState,null===e)aC(t),null!==n?(aP(t),aE(t,n)):(aP(t),t.flags&=-16777217);else{var l=e.memoizedState;n!==l&&aC(t),null!==n?(aP(t),n===l?t.flags&=-16777217:aE(t,n)):(e.memoizedProps!==r&&aC(t),aP(t),t.flags&=-16777217)}return null;case 27:if(j(t),n=I.current,l=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return aP(t),null}e=D.current,t9(t)?co(t.stateNode,t.type,t.memoizedProps,e,t):(e=cu(l,r,n),t.stateNode=e,aC(t))}return aP(t),null;case 5:if(j(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return aP(t),null}if(e=D.current,t9(t))co(t.stateNode,t.type,t.memoizedProps,e,t);else{switch(l=s1(I.current),e){case 1:e=l.createElementNS(\"http://www.w3.org/2000/svg\",n);break;case 2:e=l.createElementNS(\"http://www.w3.org/1998/Math/MathML\",n);break;default:switch(n){case\"svg\":e=l.createElementNS(\"http://www.w3.org/2000/svg\",n);break;case\"math\":e=l.createElementNS(\"http://www.w3.org/1998/Math/MathML\",n);break;case\"script\":(e=l.createElement(\"div\")).innerHTML=\"<script></script>\",e=e.removeChild(e.firstChild);break;case\"select\":e=\"string\"==typeof r.is?l.createElement(\"select\",{is:r.is}):l.createElement(\"select\"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=\"string\"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eE]=t,e[ex]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sG(e,n,r),n){case\"button\":case\"input\":case\"select\":case\"textarea\":e=!!r.autoFocus;break;case\"img\":e=!0;break;default:e=!1}e&&aC(t)}}return aP(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if(\"string\"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t9(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[eE]=t,(r=e.nodeValue!==n)&&null!==(l=tX))switch(l.tag){case 3:if(l=0!=(1&l.mode),sq(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sq(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&aC(t)}else(e=s1(e).createTextNode(r))[eE]=t,t.stateNode=e}return aP(t),null;case 13:if(ro(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tZ&&null!==tG&&0!=(1&t.mode)&&0==(128&t.flags))ne(),nt(),t.flags|=384,l=!1;else if(l=t9(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eE]=t}else nt(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aP(t),l=!1}else null!==tJ&&(o0(tJ),tJ=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ax(t,t.updateQueue),aP(t),null;case 4:return Q(),null===e&&sA(t.stateNode.containerInfo),aP(t),null;case 10:return an(t.type._context),aP(t),null;case 19:if(h(ri),null===(l=t.memoizedState))return aP(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)az(l,!1);else{if(0!==oP||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ru(e))){for(t.flags|=128,az(l,!1),e=a.updateQueue,t.updateQueue=e,ax(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ix(n,e),n=n.sibling;return g(ri,1&ri.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oI&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ru(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ax(t,e),az(l,!0),null===l.tail&&\"hidden\"===l.tailMode&&!a.alternate&&!tZ)return aP(t),null}else 2*Y()-l.renderingStartTime>oI&&536870912!==n&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=ri.current,g(ri,r?1&e|2:1&e),t;return aP(t),null;case 22:case 23:return ro(t),re(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(aP(t),6&t.subtreeFlags&&(t.flags|=8192)):aP(t),null!==(n=t.updateQueue)&&ax(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(ab),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(ad),aP(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oz);if(null!==n){ow=n;return}if(null!==(t=t.sibling)){ow=t;return}ow=t=e}while(null!==t);0===oP&&(oP=5)}function is(e,t,n,r,l){var a=ek,o=ov.transition;try{ov.transition=null,ek=2,function(e,t,n,r,l,a){do id();while(null!==oj);if(0!=(6&ob))throw Error(i(327));var o,u=e.finishedWork,s=e.finishedLanes;if(null!==u){if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0<r;){var o=31-ei(r),i=1<<o;t[o]=0,l[o]=-1;var u=a[o];if(null!==u)for(a[o]=null,o=0;o<u.length;o++){var s=u[o];null!==s&&(s.lane&=-536870913)}r&=~i}0!==n&&ev(e,n,0)}(e,c|=na,a),oD=!1,e===ok&&(ow=ok=null,oS=0),0==(10256&u.subtreeFlags)&&0==(10256&u.flags)||o$||(o$=!0,oH=c,oq=n,o=function(){return id(),null},W(J,o)),n=0!=(15990&u.flags),0!=(15990&u.subtreeFlags)||n){n=ov.transition,ov.transition=null,a=ek,ek=2;var f=ob;ob|=4,oy.current=null,function(e,t){if(sJ=uF,ss(e=su())){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var l,a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var u=0,s=-1,c=-1,f=0,d=0,p=e,m=null;t:for(;;){for(;p!==n||0!==a&&3!==p.nodeType||(s=u+a),p!==o||0!==r&&3!==p.nodeType||(c=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(l=p.firstChild);)m=p,p=l;for(;;){if(p===e)break t;if(m===n&&++f===a&&(s=u),m===o&&++d===r&&(c=u),null!==(l=p.nextSibling))break;m=(p=m).parentNode}p=l}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(s0={focusedElem:e,selectionRange:n},uF=!1,aU=t;null!==aU;)if(e=(t=aU).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,aU=e;else for(;null!==aU;){t=aU;try{var h=t.alternate,g=t.flags;switch(t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&g)&&null!==h){var y=h.memoizedProps,v=h.memoizedState,b=t.stateNode,k=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:lb(t.type,y),v);b.__reactInternalSnapshotBeforeUpdate=k}break;case 3:0!=(1024&g)&&cn(t.stateNode.containerInfo);break;default:if(0!=(1024&g))throw Error(i(163))}}catch(e){im(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,aU=e;break}aU=t.return}h=a$,a$=!1}(e,u),a5(u,e),function(e){var t=su(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):\"contains\"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&ss(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),\"selectionStart\"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var l=n.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=si(n,a);var o=si(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(s0),uF=!!sJ,s0=sJ=null,e.current=u,aY(e,u.alternate,u),K(),ob=f,ek=a,ov.transition=n}else e.current=u;if(o$?(o$=!1,oj=e,oW=s):ic(e,c),0===(c=e.pendingLanes)&&(oQ=null),function(e){if(ea&&\"function\"==typeof ea.onCommitFiberRoot)try{ea.onCommitFiberRoot(el,e,void 0,128==(128&e.current.flags))}catch(e){}}(u.stateNode,l),nv(e),null!==t)for(l=e.onRecoverableError,u=0;u<t.length;u++)n={digest:(c=t[u]).digest,componentStack:c.stack},l(c.value,n);if(oB)throw oB=!1,e=oV,oV=null,e;0!=(3&oW)&&0!==e.tag&&id(),c=e.pendingLanes,r||oD||0!=(4194218&s)&&0!=(42&c)?e===oY?oK++:(oK=0,oY=e):oK=0,nb(!1)}}(e,t,n,r,a,l)}finally{ov.transition=o,ek=a}return null}function ic(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,am(t))}function id(){if(null!==oj){var e=oj,t=oH;oH=0;var n=ew(oW),r=32>n?32:n;n=ov.transition;var l=ek;try{if(ov.transition=null,ek=r,null===oj)var a=!1;else{r=oq,oq=null;var o=oj,u=oW;if(oj=null,oW=0,0!=(6&ob))throw Error(i(331));var s=ob;if(ob|=4,of(o.current),ol(o,o.current,u,r),ob=s,nb(!1),ea&&\"function\"==typeof ea.onPostCommitFiberRoot)try{ea.onPostCommitFiberRoot(el,o)}catch(e){}a=!0}return a}finally{ek=l,ov.transition=n,ic(e,t)}}return!1}function ip(e,t,n){t=lL(e,t=lP(n,t),2),null!==(e=nO(e,t,2))&&(o2(e,2),nv(e))}function im(e,t,n){if(3===e.tag)ip(e,e,n);else for(;null!==t;){if(3===t.tag){ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if(\"function\"==typeof t.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===oQ||!oQ.has(r))){e=lT(t,e=lP(n,e),2),null!==(t=nO(t,e,2))&&(o2(t,2),nv(t));break}}t=t.return}}function ih(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new om;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ox=!0,l.add(n),e=ig.bind(null,e,t,n),t.then(e,e))}function ig(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,2&ob?oR=!0:4&ob&&(oD=!0),ik(),ok===e&&(oS&n)===n&&(4===oP||3===oP&&(62914560&oS)===oS&&300>Y()-oA?0==(2&ob)&&o5(e,0):oT|=n),nv(e)}function iy(e,t){0===t&&(t=0==(1&e.mode)?2:eg()),null!==(e=ns(e,t))&&(o2(e,t),nv(e))}function iv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iy(e,n)}function ib(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iy(e,n)}function ik(){if(50<oK)throw oK=0,oY=null,2&ob&&null!==ok&&(ok.errorRecoveryDisabledLanes|=oS),Error(i(185))}function iw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function iS(e,t,n,r){return new iw(e,t,n,r)}function iC(e){return!(!(e=e.prototype)||!e.isReactComponent)}function iE(e,t){var n=e.alternate;return null===n?((n=iS(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ix(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iz(e,t,n,r,l,a){var o=2;if(r=e,\"function\"==typeof e)iC(e)&&(o=1);else if(\"string\"==typeof e)o=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case\"meta\":case\"title\":return!0;case\"style\":if(\"string\"!=typeof t.precedence||\"string\"!=typeof t.href||\"\"===t.href)break;return!0;case\"link\":if(\"string\"!=typeof t.rel||\"string\"!=typeof t.href||\"\"===t.href||t.onLoad||t.onError)break;if(\"stylesheet\"===t.rel)return e=t.disabled,\"string\"==typeof t.precedence&&null==e;return!0;case\"script\":if(!0===t.async&&!t.onLoad&&!t.onError&&\"string\"==typeof t.src&&t.src)return!0}return!1}(e,n,D.current)?\"html\"===e||\"head\"===e||\"body\"===e?27:5:26;else e:switch(e){case b:return iP(n.children,l,a,t);case k:o=8,0!=(1&(l|=8))&&(l|=16);break;case w:return(e=iS(12,n,t,2|l)).elementType=w,e.lanes=a,e;case z:return(e=iS(13,n,t,l)).elementType=z,e.lanes=a,e;case P:return(e=iS(19,n,t,l)).elementType=P,e.lanes=a,e;case T:return iN(n,l,a,t);case F:case L:case M:return(e=iS(24,n,t,l)).elementType=M,e.lanes=a,e;default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case S:o=10;break e;case E:o=9;break e;case C:case x:o=11;break e;case N:o=14;break e;case _:o=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,\"\"))}return(t=iS(o,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function iP(e,t,n,r){return(e=iS(7,e,r,t)).lanes=n,e}function iN(e,t,n,r){(e=iS(22,e,r,t)).elementType=T,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=ns(e,2);null!==t&&(l._pendingVisibility|=2,oG(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=ns(e,2);null!==t&&(l._pendingVisibility&=-3,oG(t,e,2))}}};return e.stateNode=l,e}function i_(e,t,n){return(e=iS(6,e,null,t)).lanes=n,e}function iL(e,t,n){return(t=iS(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iT(e,t,n,r,l,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ey(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ey(0),this.hiddenUpdates=ey(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function iF(e,t,n,r,l,a,o,i,u,s,c){return e=new iT(e,t,n,i,u,c),1===t?(t=1,!0===a&&(t|=24)):t=0,a=iS(3,null,null,t),e.current=a,a.stateNode=e,t=ap(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},nT(a),e}function iM(e){if(!e)return tx;e=e._reactInternals;e:{if(tw(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tL(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tL(n))return tM(e,n,t)}return t}function iO(e,t,n,r,l,a,o,i,u,s,c){return(e=iF(n,r,!0,e,l,a,o,i,u,s,c)).context=iM(null),(l=nM(r=oX(n=e.current))).callback=null!=t?t:null,nO(n,l,r),e.current.lanes=r,o2(e,r),nv(e),e}function iR(e,t,n,r){var l=t.current,a=oX(l);return n=iM(n),null===t.context?t.context=n:t.pendingContext=n,(t=nM(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=nO(l,t,a))&&(oG(e,l,a),nR(e,l,a)),a}function iD(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function iA(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function iI(e,t){iA(e,t),(e=e.alternate)&&iA(e,t)}function iU(e){if(13===e.tag){var t=ns(e,67108864);null!==t&&oG(t,e,67108864),iI(e,67108864)}}iZ=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||tP.current)lR=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return lR=!1,function(e,t,n){switch(t.tag){case 3:lq(t),at(t,ad,e.memoizedState.cache),nt();break;case 27:case 5:$(t);break;case 1:tL(t.type)&&tO(t);break;case 4:V(t,t.stateNode.containerInfo);break;case 10:at(t,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return rr(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return lZ(e,t,n);return rr(t),null!==(e=l6(e,t,n))?e.sibling:null}rr(t);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return l3(e,t,n);t.flags|=128}var l=t.memoizedState;if(null!==l&&(l.rendering=null,l.tail=null,l.lastEffect=null),g(ri,ri.current),!r)return null;break;case 22:case 23:return t.lanes=0,lB(e,t,n);case 24:at(t,ad,e.memoizedState.cache)}return l6(e,t,n)}(e,t,n);lR=0!=(131072&e.flags)}}else lR=!1,tZ&&0!=(1048576&t.flags)&&tq(t,tB,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;l4(e,t),e=t.pendingProps;var l=t_(t,tz.current);aa(t,n),l=rE(null,t,r,e,l,n);var a=rN();return t.flags|=1,\"object\"==typeof l&&null!==l&&\"function\"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tL(r)?(a=!0,tO(t)):a=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,nT(t),l.updater=lw,t.stateNode=l,l._reactInternals=t,lx(t,r,e,n),t=lH(null,t,r,!0,a,n)):(t.tag=0,tZ&&a&&tK(t),lD(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(l4(e,t),e=t.pendingProps,r=(l=r._init)(r._payload),t.type=r,l=t.tag=function(e){if(\"function\"==typeof e)return iC(e)?1:0;if(null!=e){if((e=e.$$typeof)===x)return 11;if(e===N)return 14}return 2}(r),e=lb(r,e),l){case 0:t=l$(null,t,r,e,n);break e;case 1:t=lW(null,t,r,e,n);break e;case 11:t=lA(null,t,r,e,n);break e;case 14:t=lI(null,t,r,lb(r.type,e),n);break e}throw Error(i(306,r,\"\"))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),l$(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),lW(e,t,r,l,n);case 3:e:{if(lq(t),null===e)throw Error(i(387));l=t.pendingProps,r=(a=t.memoizedState).element,nF(e,t),nU(t,l,null,n);var o=t.memoizedState;if(at(t,ad,l=o.cache),l!==a.cache&&al(t,ad,n),nI(),l=o.element,a.isDehydrated){if(a={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){r=lP(Error(i(423)),t),t=lK(e,t,l,n,r);break e}if(l!==r){r=lP(Error(i(424)),t),t=lK(e,t,l,n,r);break e}for(tG=cl(t.stateNode.containerInfo.firstChild),tX=t,tZ=!0,tJ=null,t0=!0,n=n6(t,null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(nt(),l===r){t=l6(e,t,n);break e}lD(e,t,l,n)}t=t.child}return t;case 26:return lQ(e,t),n=t.memoizedState=function(e,t,n){if(!(t=(t=I.current)?cf(t):null))throw Error(i(446));switch(e){case\"meta\":case\"title\":return null;case\"style\":return\"string\"==typeof n.precedence&&\"string\"==typeof n.href?(n=cm(n.href),(e=(t=eA(t).hoistableStyles).get(n))||(e={type:\"style\",instance:null,count:0,state:null},t.set(n,e)),e):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(\"stylesheet\"===n.rel&&\"string\"==typeof n.href&&\"string\"==typeof n.precedence){e=cm(n.href);var r,l,a,o,u=eA(t).hoistableStyles,s=u.get(e);return s||(t=t.ownerDocument||t,s={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),cs.has(e)||(r=t,l=e,a={rel:\"preload\",as:\"style\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},o=s.state,cs.set(l,a),r.querySelector(ch(l))||(r.querySelector('link[rel=\"preload\"][as=\"style\"]['+l+\"]\")?o.loading=1:(l=r.createElement(\"link\"),o.preload=l,l.addEventListener(\"load\",function(){return o.loading|=1}),l.addEventListener(\"error\",function(){return o.loading|=2}),sG(l,\"link\",a),eI(l),r.head.appendChild(l))))),s}return null;case\"script\":return\"string\"==typeof n.src&&!0===n.async?(n=cy(n.src),(e=(t=eA(t).hoistableScripts).get(n))||(e={type:\"script\",instance:null,count:0,state:null},t.set(n,e)),e):{type:\"void\",instance:null,count:0,state:null};default:throw Error(i(444,e))}}(t.type,null===e?null:e.memoizedProps,t.pendingProps),null!==e||tZ||null!==n||(n=t.type,e=t.pendingProps,(r=s1(I.current).createElement(n))[eE]=t,r[ex]=e,sG(r,n,e),eI(r),t.stateNode=r),null;case 27:return $(t),null===e&&tZ&&(r=t.stateNode=cu(t.type,t.pendingProps,I.current),tX=t,t0=!0,tG=cl(r.firstChild)),r=t.pendingProps.children,null!==e||tZ?lD(e,t,r,n):t.child=n4(t,null,r,n),lQ(e,t),t.child;case 5:return null===e&&tZ&&((l=r=tG)?t3(t,l)||(t8(t)&&t5(),tG=ca(l),a=tX,tG&&t3(t,tG)?t1(a,l):(t2(tX,t),tZ=!1,tX=t,tG=r)):(t8(t)&&t5(),t2(tX,t),tZ=!1,tX=t,tG=r)),$(t),l=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,s4(l,a)?r=null:null!==o&&s4(l,o)&&(t.flags|=32),null!==t.memoizedState&&(l=rE(e,t,rP,null,null,n),B._currentValue=l,lR&&null!==e&&e.memoizedState.memoizedState!==l&&al(t,B,n)),lQ(e,t),lD(e,t,r,n),t.child;case 6:return null===e&&tZ&&((r=\"\"!==t.pendingProps,(e=n=tG)&&r)?t4(t,e)||(t8(t)&&t5(),tG=ca(e),r=tX,tG&&t4(t,tG)?t1(r,e):(t2(tX,t),tZ=!1,tX=t,tG=n)):(t8(t)&&t5(),t2(tX,t),tZ=!1,tX=t,tG=n)),null;case 13:return lZ(e,t,n);case 4:return V(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=n4(t,null,r,n):lD(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),lA(e,t,r,l,n);case 7:return lD(e,t,t.pendingProps,n),t.child;case 8:case 12:return lD(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,a=t.memoizedProps,at(t,r,o=l.value),null!==a){if(tD(a.value,o)){if(a.children===l.children&&!tP.current){t=l6(e,t,n);break e}}else al(t,r,n)}lD(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,aa(t,n),r=r(l=ao(l)),t.flags|=1,lD(e,t,r,n),t.child;case 14:return l=lb(r=t.type,t.pendingProps),l=lb(r.type,l),lI(e,t,r,l,n);case 15:return lU(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lb(r,l),l4(e,t),t.tag=1,tL(r)?(e=!0,tO(t)):e=!1,aa(t,n),lC(t,r,l),lx(t,r,l,n),lH(null,t,r,!0,e,n);case 19:return l3(e,t,n);case 22:return lB(e,t,n);case 24:return aa(t,n),r=ao(ad),null===e?(null===(l=ak())&&(l=ok,a=ap(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:r,cache:l},nT(t),at(t,ad,l)):(0!=(e.lanes&n)&&(nF(e,t),nU(t,null,null,n),nI()),l=e.memoizedState,a=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=l),at(t,ad,r)):(at(t,ad,r=a.cache),r!==l.cache&&al(t,ad,n))),lD(e,t,t.pendingProps.children,n),t.child}throw Error(i(156,t.tag))};var iB=!1;function iV(e,t,n){if(iB)return e(t,n);iB=!0;try{return o4(e,t,n)}finally{iB=!1,(null!==tg||null!==ty)&&(o6(),tk())}}function iQ(e,t){var n=e.stateNode;if(null===n)return null;var r=eD(n);if(null===r)return null;switch(n=r[t],t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&\"function\"!=typeof n)throw Error(i(231,t,typeof n));return n}var i$=!1;if(e$)try{var ij={};Object.defineProperty(ij,\"passive\",{get:function(){i$=!0}}),window.addEventListener(\"test\",ij,ij),window.removeEventListener(\"test\",ij,ij)}catch(e){i$=!1}function iW(e){var t=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function iH(){return!0}function iq(){return!1}function iK(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?iH:iq,this.isPropagationStopped=iq,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=iH)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=iH)},persist:function(){},isPersistent:iH}),t}var iY,iX,iG,iZ,iJ,i0,i1,i2={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},i3=iK(i2),i4=u({},i2,{view:0,detail:0}),i6=iK(i4),i8=u({},i4,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ui,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==i1&&(i1&&\"mousemove\"===e.type?(iJ=e.screenX-i1.screenX,i0=e.screenY-i1.screenY):i0=iJ=0,i1=e),iJ)},movementY:function(e){return\"movementY\"in e?e.movementY:i0}}),i5=iK(i8),i7=iK(u({},i8,{dataTransfer:0})),i9=iK(u({},i4,{relatedTarget:0})),ue=iK(u({},i2,{animationName:0,elapsedTime:0,pseudoElement:0})),ut=iK(u({},i2,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}})),un=iK(u({},i2,{data:0})),ur={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},ul={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},ua={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function uo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ua[e])&&!!t[e]}function ui(){return uo}var uu=iK(u({},i4,{key:function(e){if(e.key){var t=ur[e.key]||e.key;if(\"Unidentified\"!==t)return t}return\"keypress\"===e.type?13===(e=iW(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?ul[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ui,charCode:function(e){return\"keypress\"===e.type?iW(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?iW(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}})),us=iK(u({},i8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),uc=iK(u({},i4,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ui})),uf=iK(u({},i2,{propertyName:0,elapsedTime:0,pseudoElement:0})),ud=iK(u({},i8,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),up=!1,um=null,uh=null,ug=null,uy=new Map,uv=new Map,ub=[],uk=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \");function uw(e,t){switch(e){case\"focusin\":case\"focusout\":um=null;break;case\"dragenter\":case\"dragleave\":uh=null;break;case\"mouseover\":case\"mouseout\":ug=null;break;case\"pointerover\":case\"pointerout\":uy.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":uv.delete(t.pointerId)}}function uS(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==t&&null!==(t=eO(t))&&iU(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l)),e}function uC(e){var t=eM(e.target);if(null!==t){var n=tw(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=tS(n))){e.blockedOn=t,function(e,t){var n=ek;try{return ek=e,t()}finally{ek=n}}(e.priority,function(){if(13===n.tag){var e=oX(n),t=ns(n,e);null!==t&&oG(t,n,e),iI(n,e)}});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function uE(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uD(e.nativeEvent);if(null!==n)return null!==(t=eO(n))&&iU(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tm=r,n.target.dispatchEvent(r),tm=null,t.shift()}return!0}function ux(e,t,n){uE(e)&&n.delete(t)}function uz(){up=!1,null!==um&&uE(um)&&(um=null),null!==uh&&uE(uh)&&(uh=null),null!==ug&&uE(ug)&&(ug=null),uy.forEach(ux),uv.forEach(ux)}function uP(e,t){e.blockedOn===t&&(e.blockedOn=null,up||(up=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,uz)))}var uN=null;function u_(e){uN!==e&&(uN=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){uN===e&&(uN=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],l=e[t+2];if(\"function\"!=typeof r){if(null===uI(r||n))continue;break}var a=eO(n);null!==a&&(e.splice(t,3),t-=3,ll(a,{pending:!0,data:l,method:n.method,action:r},r,l))}}))}function uL(e){function t(t){return uP(t,e)}null!==um&&uP(um,e),null!==uh&&uP(uh,e),null!==ug&&uP(ug,e),uy.forEach(t),uv.forEach(t);for(var n=0;n<ub.length;n++){var r=ub[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ub.length&&null===(n=ub[0]).blockedOn;)uC(n),null===n.blockedOn&&ub.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var l=n[r],a=n[r+1],o=eD(l);if(\"function\"==typeof a)o||u_(n);else if(o){var i=null;if(a&&a.hasAttribute(\"formAction\")){if(l=a,o=eD(a))i=o.formAction;else if(null!==uI(l))continue}else i=o.action;\"function\"==typeof i?n[r+1]=i:(n.splice(r,3),r-=3),u_(n)}}}var uT=s.ReactCurrentBatchConfig,uF=!0;function uM(e,t,n,r){var l=ek,a=uT.transition;uT.transition=null;try{ek=2,uR(e,t,n,r)}finally{ek=l,uT.transition=a}}function uO(e,t,n,r){var l=ek,a=uT.transition;uT.transition=null;try{ek=8,uR(e,t,n,r)}finally{ek=l,uT.transition=a}}function uR(e,t,n,r){if(uF){var l=uD(r);if(null===l)sU(e,t,r,uA,n),uw(e,r);else if(function(e,t,n,r,l){switch(t){case\"focusin\":return um=uS(um,e,t,n,r,l),!0;case\"dragenter\":return uh=uS(uh,e,t,n,r,l),!0;case\"mouseover\":return ug=uS(ug,e,t,n,r,l),!0;case\"pointerover\":var a=l.pointerId;return uy.set(a,uS(uy.get(a)||null,e,t,n,r,l)),!0;case\"gotpointercapture\":return a=l.pointerId,uv.set(a,uS(uv.get(a)||null,e,t,n,r,l)),!0}return!1}(l,e,t,n,r))r.stopPropagation();else if(uw(e,r),4&t&&-1<uk.indexOf(e)){for(;null!==l;){var a=eO(l);if(null!==a&&function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ed(t.pendingLanes);0!==n&&(function(e,t){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-ei(t);e.entanglements[1]|=n,t&=~n}}(t,n),nv(t),0==(6&ob)&&(oI=Y()+500,nb(!1)))}break;case 13:o6(function(){var t=ns(e,2);null!==t&&oG(t,e,2)}),iI(e,2)}}(a),null===(a=uD(r))&&sU(e,t,r,uA,n),a===l)break;l=a}null!==l&&r.stopPropagation()}else sU(e,t,r,null,n)}}function uD(e){return uI(e=th(e))}var uA=null;function uI(e){if(uA=null,null!==(e=eM(e))){var t=tw(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=tS(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uA=e,null}function uU(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 2;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 8;case\"message\":switch(X()){case G:return 2;case Z:return 8;case J:case ee:return 32;case et:return 268435456;default:return 32}default:return 32}}var uB=null,uV=null,uQ=null;function u$(){if(uQ)return uQ;var e,t,n=uV,r=n.length,l=\"value\"in uB?uB.value:uB.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return uQ=l.slice(e,1<t?1-t:void 0)}var uj=[9,13,27,32],uW=e$&&\"CompositionEvent\"in window,uH=null;e$&&\"documentMode\"in document&&(uH=document.documentMode);var uq=e$&&\"TextEvent\"in window&&!uH,uK=e$&&(!uW||uH&&8<uH&&11>=uH),uY=!1;function uX(e,t){switch(e){case\"keyup\":return -1!==uj.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function uG(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}var uZ=!1,uJ={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===t?!!uJ[e.type]:\"textarea\"===t}function u1(e,t,n,r){tb(r),0<(t=sV(t,\"onChange\")).length&&(n=new i3(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var u2=null,u3=null;function u4(e){sM(e,0)}function u6(e){if(e4(eR(e)))return e}function u8(e,t){if(\"change\"===e)return t}var u5=!1;if(e$){if(e$){var u7=\"oninput\"in document;if(!u7){var u9=document.createElement(\"div\");u9.setAttribute(\"oninput\",\"return;\"),u7=\"function\"==typeof u9.oninput}r=u7}else r=!1;u5=r&&(!document.documentMode||9<document.documentMode)}function se(){u2&&(u2.detachEvent(\"onpropertychange\",st),u3=u2=null)}function st(e){if(\"value\"===e.propertyName&&u6(u3)){var t=[];u1(t,u3,e,th(e)),iV(u4,t)}}function sn(e,t,n){\"focusin\"===e?(se(),u2=t,u3=n,u2.attachEvent(\"onpropertychange\",st)):\"focusout\"===e&&se()}function sr(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return u6(u3)}function sl(e,t){if(\"click\"===e)return u6(t)}function sa(e,t){if(\"input\"===e||\"change\"===e)return u6(t)}function so(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function si(e,t){var n,r=so(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=so(r)}}function su(){for(var e=window,t=e6();t instanceof e.HTMLIFrameElement;){try{var n=\"string\"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e6(e.document)}return t}function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}var sc=e$&&\"documentMode\"in document&&11>=document.documentMode,sf=null,sd=null,sp=null,sm=!1;function sh(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sm||null==sf||sf!==e6(r)||(r=\"selectionStart\"in(r=sf)&&ss(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sp&&nQ(sp,r)||(sp=r,0<(r=sV(sd,\"onSelect\")).length&&(t=new i3(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=sf)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var sy={animationend:sg(\"Animation\",\"AnimationEnd\"),animationiteration:sg(\"Animation\",\"AnimationIteration\"),animationstart:sg(\"Animation\",\"AnimationStart\"),transitionend:sg(\"Transition\",\"TransitionEnd\")},sv={},sb={};function sk(e){if(sv[e])return sv[e];if(!sy[e])return e;var t,n=sy[e];for(t in n)if(n.hasOwnProperty(t)&&t in sb)return sv[e]=n[t];return e}e$&&(sb=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete sy.animationend.animation,delete sy.animationiteration.animation,delete sy.animationstart.animation),\"TransitionEvent\"in window||delete sy.transitionend.transition);var sw=sk(\"animationend\"),sS=sk(\"animationiteration\"),sC=sk(\"animationstart\"),sE=sk(\"transitionend\"),sx=new Map,sz=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel\".split(\" \");function sP(e,t){sx.set(e,t),eV(t,[e])}for(var sN=0;sN<sz.length;sN++){var s_=sz[sN];sP(s_.toLowerCase(),\"on\"+(s_[0].toUpperCase()+s_.slice(1)))}sP(sw,\"onAnimationEnd\"),sP(sS,\"onAnimationIteration\"),sP(sC,\"onAnimationStart\"),sP(\"dblclick\",\"onDoubleClick\"),sP(\"focusin\",\"onFocus\"),sP(\"focusout\",\"onBlur\"),sP(sE,\"onTransitionEnd\"),eQ(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),eQ(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),eQ(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),eQ(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),eV(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),eV(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),eV(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),eV(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),eV(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),eV(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var sL=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),sT=new Set(\"cancel close invalid load scroll scrollend toggle\".split(\" \").concat(sL));function sF(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=n,function(e,t,n,r,l,a,o,u,s){if(aR.apply(this,arguments),aL){if(aL){var c=aT;aL=!1,aT=null}else throw Error(i(198));aF||(aF=!0,aM=c)}}(r,t,void 0,e),e.currentTarget=null}function sM(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==a&&l.isPropagationStopped())break e;sF(l,i,s),a=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==a&&l.isPropagationStopped())break e;sF(l,i,s),a=u}}}if(aF)throw e=aM,aF=!1,aM=null,e}function sO(e,t){var n=t[eP];void 0===n&&(n=t[eP]=new Set);var r=e+\"__bubble\";n.has(r)||(sI(t,e,2,!1),n.add(r))}function sR(e,t,n){var r=0;t&&(r|=4),sI(n,e,r,t)}var sD=\"_reactListening\"+Math.random().toString(36).slice(2);function sA(e){if(!e[sD]){e[sD]=!0,eU.forEach(function(t){\"selectionchange\"!==t&&(sT.has(t)||sR(t,!1,e),sR(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[sD]||(t[sD]=!0,sR(\"selectionchange\",!1,t))}}function sI(e,t,n,r){switch(uU(t)){case 2:var l=uM;break;case 8:l=uO;break;default:l=uR}n=l.bind(null,t,n,e),l=void 0,i$&&(\"touchstart\"===t||\"touchmove\"===t||\"wheel\"===t)&&(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function sU(e,t,n,r,l){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===l||8===i.nodeType&&i.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===l||8===u.nodeType&&u.parentNode===l))return;o=o.return}for(;null!==i;){if(null===(o=eM(i)))return;if(5===(u=o.tag)||6===u||26===u||27===u){r=a=o;continue e}i=i.parentNode}}r=r.return}iV(function(){var r=a,l=th(n),o=[];e:{var i=sx.get(e);if(void 0!==i){var u=i3,s=e;switch(e){case\"keypress\":if(0===iW(n))break e;case\"keydown\":case\"keyup\":u=uu;break;case\"focusin\":s=\"focus\",u=i9;break;case\"focusout\":s=\"blur\",u=i9;break;case\"beforeblur\":case\"afterblur\":u=i9;break;case\"click\":if(2===n.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":u=i5;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":u=i7;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":u=uc;break;case sw:case sS:case sC:u=ue;break;case sE:u=uf;break;case\"scroll\":case\"scrollend\":u=i6;break;case\"wheel\":u=ud;break;case\"copy\":case\"cut\":case\"paste\":u=ut;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":u=us}var c=0!=(4&t),f=!c&&(\"scroll\"===e||\"scrollend\"===e),d=c?null!==i?i+\"Capture\":null:i;c=[];for(var p,m=r;null!==m;){var h=m;if(p=h.stateNode,5!==(h=h.tag)&&26!==h&&27!==h||null===p||null===d||null!=(h=iQ(m,d))&&c.push(sB(m,h,p)),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,l),o.push({event:i,listeners:c}))}}if(0==(7&t)){if(i=\"mouseover\"===e||\"pointerover\"===e,u=\"mouseout\"===e||\"pointerout\"===e,!(i&&n!==tm&&(s=n.relatedTarget||n.fromElement)&&(eM(s)||s[ez]))&&(u||i)&&(i=l.window===l?l:(i=l.ownerDocument)?i.defaultView||i.parentWindow:window,u?(s=n.relatedTarget||n.toElement,u=r,null!==(s=s?eM(s):null)&&(f=tw(s),c=s.tag,s!==f||5!==c&&27!==c&&6!==c)&&(s=null)):(u=null,s=r),u!==s)){if(c=i5,h=\"onMouseLeave\",d=\"onMouseEnter\",m=\"mouse\",(\"pointerout\"===e||\"pointerover\"===e)&&(c=us,h=\"onPointerLeave\",d=\"onPointerEnter\",m=\"pointer\"),f=null==u?i:eR(u),p=null==s?i:eR(s),(i=new c(h,m+\"leave\",u,n,l)).target=f,i.relatedTarget=p,h=null,eM(l)===r&&((c=new c(d,m+\"enter\",s,n,l)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)t:{for(c=u,d=s,m=0,p=c;p;p=sQ(p))m++;for(p=0,h=d;h;h=sQ(h))p++;for(;0<m-p;)c=sQ(c),m--;for(;0<p-m;)d=sQ(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break t;c=sQ(c),d=sQ(d)}c=null}else c=null;null!==u&&s$(o,i,u,c,!1),null!==s&&null!==f&&s$(o,f,s,c,!0)}e:{if(\"select\"===(u=(i=r?eR(r):window).nodeName&&i.nodeName.toLowerCase())||\"input\"===u&&\"file\"===i.type)var g,y=u8;else if(u0(i)){if(u5)y=sa;else{y=sr;var v=sn}}else(u=i.nodeName)&&\"input\"===u.toLowerCase()&&(\"checkbox\"===i.type||\"radio\"===i.type)&&(y=sl);if(y&&(y=y(e,r))){u1(o,y,n,l);break e}v&&v(e,i,r),\"focusout\"===e&&r&&\"number\"===i.type&&null!=r.memoizedProps.value&&te(i,\"number\",i.value)}switch(v=r?eR(r):window,e){case\"focusin\":(u0(v)||\"true\"===v.contentEditable)&&(sf=v,sd=r,sp=null);break;case\"focusout\":sp=sd=sf=null;break;case\"mousedown\":sm=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":sm=!1,sh(o,n,l);break;case\"selectionchange\":if(sc)break;case\"keydown\":case\"keyup\":sh(o,n,l)}if(uW)t:{switch(e){case\"compositionstart\":var b=\"onCompositionStart\";break t;case\"compositionend\":b=\"onCompositionEnd\";break t;case\"compositionupdate\":b=\"onCompositionUpdate\";break t}b=void 0}else uZ?uX(e,n)&&(b=\"onCompositionEnd\"):\"keydown\"===e&&229===n.keyCode&&(b=\"onCompositionStart\");b&&(uK&&\"ko\"!==n.locale&&(uZ||\"onCompositionStart\"!==b?\"onCompositionEnd\"===b&&uZ&&(g=u$()):(uV=\"value\"in(uB=l)?uB.value:uB.textContent,uZ=!0)),0<(v=sV(r,b)).length&&(b=new un(b,e,null,n,l),o.push({event:b,listeners:v}),g?b.data=g:null!==(g=uG(n))&&(b.data=g))),(g=uq?function(e,t){switch(e){case\"compositionend\":return uG(t);case\"keypress\":if(32!==t.which)return null;return uY=!0,\" \";case\"textInput\":return\" \"===(e=t.data)&&uY?null:e;default:return null}}(e,n):function(e,t){if(uZ)return\"compositionend\"===e||!uW&&uX(e,t)?(e=u$(),uQ=uV=uB=null,uZ=!1,e):null;switch(e){case\"paste\":default:return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return uK&&\"ko\"!==t.locale?null:t.data}}(e,n))&&0<(b=sV(r,\"onBeforeInput\")).length&&(v=new un(\"onBeforeInput\",\"beforeinput\",null,n,l),o.push({event:v,listeners:b}),v.data=g),function(e,t,n,r,l){if(\"submit\"===t&&n&&n.stateNode===l){var a=eD(l).action,o=r.submitter;if(o&&null!=(t=(t=eD(o))?t.formAction:o.getAttribute(\"formAction\"))&&(a=t,o=null),\"function\"==typeof a){var i=new i3(\"action\",\"action\",null,r,l);e.push({event:i,listeners:[{instance:null,listener:function(){if(!r.defaultPrevented){if(i.preventDefault(),o){var e=o.ownerDocument.createElement(\"input\");e.name=o.name,e.value=o.value,o.parentNode.insertBefore(e,o);var t=new FormData(l);e.parentNode.removeChild(e)}else t=new FormData(l);ll(n,{pending:!0,data:t,method:l.method,action:a},a,t)}},currentTarget:l}]})}}}(o,e,r,n,l)}sM(o,t)})}function sB(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sV(e,t){for(var n=t+\"Capture\",r=[];null!==e;){var l=e,a=l.stateNode;5!==(l=l.tag)&&26!==l&&27!==l||null===a||(null!=(l=iQ(e,n))&&r.unshift(sB(e,l,a)),null!=(l=iQ(e,t))&&r.push(sB(e,l,a))),e=e.return}return r}function sQ(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag);return e||null}function s$(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(i=i.tag,null!==u&&u===r)break;5!==i&&26!==i&&27!==i||null===s||(u=s,l?null!=(s=iQ(n,a))&&o.unshift(sB(n,s,u)):l||null!=(s=iQ(n,a))&&o.push(sB(n,s,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var sj=/\\r\\n?/g,sW=/\\u0000|\\uFFFD/g;function sH(e){return(\"string\"==typeof e?e:\"\"+e).replace(sj,\"\\n\").replace(sW,\"\")}function sq(e,t,n){if(t=sH(t),sH(e)!==t&&n)throw Error(i(425))}function sK(){}function sY(e,t,n,r,l,a){switch(n){case\"children\":\"string\"==typeof r?\"body\"===t||\"textarea\"===t&&\"\"===r||tu(e,r):\"number\"==typeof r&&\"body\"!==t&&tu(e,\"\"+r);break;case\"className\":eK(e,\"class\",r);break;case\"tabIndex\":eK(e,\"tabindex\",r);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":eK(e,n,r);break;case\"style\":tf(e,r,a);break;case\"src\":case\"href\":if(null==r||\"function\"==typeof r||\"symbol\"==typeof r||\"boolean\"==typeof r){e.removeAttribute(n);break}e.setAttribute(n,\"\"+r);break;case\"action\":case\"formAction\":if(\"function\"==typeof r){e.setAttribute(n,\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\");break}if(\"function\"==typeof a&&(\"formAction\"===n?(\"input\"!==t&&sY(e,t,\"name\",l.name,l,null),sY(e,t,\"formEncType\",l.formEncType,l,null),sY(e,t,\"formMethod\",l.formMethod,l,null),sY(e,t,\"formTarget\",l.formTarget,l,null)):(sY(e,t,\"encType\",l.encType,l,null),sY(e,t,\"method\",l.method,l,null),sY(e,t,\"target\",l.target,l,null))),null==r||\"symbol\"==typeof r||\"boolean\"==typeof r){e.removeAttribute(n);break}e.setAttribute(n,\"\"+r);break;case\"onClick\":null!=r&&(e.onclick=sK);break;case\"onScroll\":null!=r&&sO(\"scroll\",e);break;case\"onScrollEnd\":null!=r&&sO(\"scrollend\",e);break;case\"dangerouslySetInnerHTML\":if(null!=r){if(\"object\"!=typeof r||!(\"__html\"in r))throw Error(i(61));if(null!=(r=r.__html)){if(null!=l.children)throw Error(i(60));ti(e,r)}}break;case\"multiple\":e.multiple=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r;break;case\"muted\":e.muted=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r;break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":case\"autoFocus\":break;case\"xlinkHref\":if(null==r||\"function\"==typeof r||\"boolean\"==typeof r||\"symbol\"==typeof r){e.removeAttribute(\"xlink:href\");break}e.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",\"\"+r);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,\"\"+r):e.removeAttribute(n);break;case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,\"\"):e.removeAttribute(n);break;case\"capture\":case\"download\":!0===r?e.setAttribute(n,\"\"):!1!==r&&null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case\"cols\":case\"rows\":case\"size\":case\"span\":null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case\"rowSpan\":case\"start\":null==r||\"function\"==typeof r||\"symbol\"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case\"xlinkActuate\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",r);break;case\"xlinkArcrole\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",r);break;case\"xlinkRole\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:role\",r);break;case\"xlinkShow\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:show\",r);break;case\"xlinkTitle\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:title\",r);break;case\"xlinkType\":eY(e,\"http://www.w3.org/1999/xlink\",\"xlink:type\",r);break;case\"xmlBase\":eY(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",r);break;case\"xmlLang\":eY(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",r);break;case\"xmlSpace\":eY(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",r);break;case\"is\":eq(e,\"is\",r);break;default:2<n.length&&(\"o\"===n[0]||\"O\"===n[0])&&(\"n\"===n[1]||\"N\"===n[1])||eq(e,l=tp.get(n)||n,r)}}function sX(e,t,n,r,l,a){switch(n){case\"style\":tf(e,r,a);break;case\"dangerouslySetInnerHTML\":if(null!=r){if(\"object\"!=typeof r||!(\"__html\"in r))throw Error(i(61));if(null!=(t=r.__html)){if(null!=l.children)throw Error(i(60));ti(e,t)}}break;case\"children\":\"string\"==typeof r?tu(e,r):\"number\"==typeof r&&tu(e,\"\"+r);break;case\"onScroll\":null!=r&&sO(\"scroll\",e);break;case\"onScrollEnd\":null!=r&&sO(\"scrollend\",e);break;case\"onClick\":null!=r&&(e.onclick=sK);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;default:eB.hasOwnProperty(n)||(\"boolean\"==typeof r&&(r=\"\"+r),eq(e,n,r))}}function sG(e,t,n){switch(t){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":sO(\"invalid\",e);var r=null,l=null,a=null,o=null,u=null,s=null;for(f in n)if(n.hasOwnProperty(f)){var c=n[f];if(null!=c)switch(f){case\"name\":r=c;break;case\"type\":l=c;break;case\"checked\":u=c;break;case\"defaultChecked\":s=c;break;case\"value\":a=c;break;case\"defaultValue\":o=c;break;case\"children\":case\"dangerouslySetInnerHTML\":if(null!=c)throw Error(i(137,t));break;default:sY(e,t,f,c,n,null)}}e9(e,a,o,u,s,l,r,!1),e3(e);return;case\"select\":sO(\"invalid\",e);var f=l=a=null;for(r in n)if(n.hasOwnProperty(r)&&null!=(o=n[r]))switch(r){case\"value\":a=o;break;case\"defaultValue\":l=o;break;case\"multiple\":f=o;default:sY(e,t,r,o,n,null)}t=a,n=l,e.multiple=!!f,null!=t?tn(e,!!f,t,!1):null!=n&&tn(e,!!f,n,!0);return;case\"textarea\":for(l in sO(\"invalid\",e),a=r=f=null,n)if(n.hasOwnProperty(l)&&null!=(o=n[l]))switch(l){case\"value\":f=o;break;case\"defaultValue\":r=o;break;case\"children\":a=o;break;case\"dangerouslySetInnerHTML\":if(null!=o)throw Error(i(91));break;default:sY(e,t,l,o,n,null)}tl(e,f,r,a),e3(e);return;case\"option\":for(o in n)n.hasOwnProperty(o)&&null!=(f=n[o])&&(\"selected\"===o?e.selected=f&&\"function\"!=typeof f&&\"symbol\"!=typeof f:sY(e,t,o,f,n,null));return;case\"dialog\":sO(\"cancel\",e),sO(\"close\",e);break;case\"iframe\":case\"object\":sO(\"load\",e);break;case\"video\":case\"audio\":for(f=0;f<sL.length;f++)sO(sL[f],e);break;case\"image\":sO(\"error\",e),sO(\"load\",e);break;case\"details\":sO(\"toggle\",e);break;case\"embed\":case\"source\":case\"img\":case\"link\":sO(\"error\",e),sO(\"load\",e);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(u in n)if(n.hasOwnProperty(u)&&null!=(f=n[u]))switch(u){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(137,t));default:sY(e,t,u,f,n,null)}return;default:if(td(t)){for(s in n)n.hasOwnProperty(s)&&null!=(f=n[s])&&sX(e,t,s,f,n,null);return}}for(a in n)n.hasOwnProperty(a)&&null!=(f=n[a])&&sY(e,t,a,f,n,null)}function sZ(e,t,n,r){switch(t){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var l=null,a=null,o=null,u=null,s=null,c=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&null!=d)switch(m){case\"checked\":case\"value\":break;case\"defaultValue\":s=d;default:r.hasOwnProperty(m)||sY(e,t,m,null,r,d)}}for(var p in r){var m=r[p];if(d=n[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case\"type\":a=m;break;case\"name\":l=m;break;case\"checked\":c=m;break;case\"defaultChecked\":f=m;break;case\"value\":o=m;break;case\"defaultValue\":u=m;break;case\"children\":case\"dangerouslySetInnerHTML\":if(null!=m)throw Error(i(137,t));break;default:m!==d&&sY(e,t,p,m,r,d)}}e7(e,o,u,s,c,f,a,l);return;case\"select\":for(a in m=o=u=p=null,n)if(s=n[a],n.hasOwnProperty(a)&&null!=s)switch(a){case\"value\":break;case\"multiple\":m=s;default:r.hasOwnProperty(a)||sY(e,t,a,null,r,s)}for(l in r)if(a=r[l],s=n[l],r.hasOwnProperty(l)&&(null!=a||null!=s))switch(l){case\"value\":p=a;break;case\"defaultValue\":u=a;break;case\"multiple\":o=a;default:a!==s&&sY(e,t,l,a,r,s)}t=u,n=o,r=m,null!=p?tn(e,!!n,p,!1):!!r!=!!n&&(null!=t?tn(e,!!n,t,!0):tn(e,!!n,n?[]:\"\",!1));return;case\"textarea\":for(u in m=p=null,n)if(l=n[u],n.hasOwnProperty(u)&&null!=l&&!r.hasOwnProperty(u))switch(u){case\"value\":case\"children\":break;default:sY(e,t,u,null,r,l)}for(o in r)if(l=r[o],a=n[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case\"value\":p=l;break;case\"defaultValue\":m=l;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(null!=l)throw Error(i(91));break;default:l!==a&&sY(e,t,o,l,r,a)}tr(e,p,m);return;case\"option\":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&(\"selected\"===h?e.selected=!1:sY(e,t,h,null,r,p));for(s in r)p=r[s],m=n[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)&&(\"selected\"===s?e.selected=p&&\"function\"!=typeof p&&\"symbol\"!=typeof p:sY(e,t,s,p,r,m));return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&sY(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":if(null!=p)throw Error(i(137,t));break;default:sY(e,t,c,p,r,m)}return;default:if(td(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&sX(e,t,y,null,r,p);for(f in r)p=r[f],m=n[f],r.hasOwnProperty(f)&&p!==m&&(null!=p||null!=m)&&sX(e,t,f,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&sY(e,t,v,null,r,p);for(d in r)p=r[d],m=n[d],r.hasOwnProperty(d)&&p!==m&&(null!=p||null!=m)&&sY(e,t,d,p,r,m)}var sJ=null,s0=null;function s1(e){return 9===e.nodeType?e:e.ownerDocument}function s2(e){switch(e){case\"http://www.w3.org/2000/svg\":return 1;case\"http://www.w3.org/1998/Math/MathML\":return 2;default:return 0}}function s3(e,t){if(0===e)switch(t){case\"svg\":return 1;case\"math\":return 2;default:return 0}return 1===e&&\"foreignObject\"===t?0:e}function s4(e,t){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof t.children||\"number\"==typeof t.children||\"object\"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var s6=null,s8=\"function\"==typeof setTimeout?setTimeout:void 0,s5=\"function\"==typeof clearTimeout?clearTimeout:void 0,s7=\"function\"==typeof Promise?Promise:void 0,s9=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==s7?function(e){return s7.resolve(null).then(e).catch(ce)}:s8;function ce(e){setTimeout(function(){throw e})}function ct(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&8===l.nodeType){if(\"/$\"===(n=l.data)){if(0===r){e.removeChild(l),uL(t);return}r--}else\"$\"!==n&&\"$?\"!==n&&\"$!\"!==n||r++}n=l}while(n);uL(t)}function cn(e){var t=e.nodeType;if(9===t)cr(e);else if(1===t)switch(e.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":cr(e);break;default:e.textContent=\"\"}}function cr(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":cr(n),eF(n);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(\"stylesheet\"===n.rel.toLowerCase())continue}e.removeChild(n)}}function cl(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if(\"$\"===(t=e.data)||\"$!\"===t||\"$?\"===t||\"F!\"===t||\"F\"===t)break;if(\"/$\"===t)return null}}return e}function ca(e){return cl(e.nextSibling)}function co(e,t,n,r,l){switch(e[eE]=l,e[ex]=n,r=0!=(1&l.mode),t){case\"dialog\":sO(\"cancel\",e),sO(\"close\",e);break;case\"iframe\":case\"object\":case\"embed\":sO(\"load\",e);break;case\"video\":case\"audio\":for(l=0;l<sL.length;l++)sO(sL[l],e);break;case\"source\":sO(\"error\",e);break;case\"img\":case\"image\":case\"link\":sO(\"error\",e),sO(\"load\",e);break;case\"details\":sO(\"toggle\",e);break;case\"input\":sO(\"invalid\",e),e9(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),e3(e);break;case\"select\":sO(\"invalid\",e);break;case\"textarea\":sO(\"invalid\",e),tl(e,n.value,n.defaultValue,n.children),e3(e)}\"string\"!=typeof(l=n.children)&&\"number\"!=typeof l||e.textContent===\"\"+l||(!0!==n.suppressHydrationWarning&&sq(e.textContent,l,r),r||\"body\"===t||(e.textContent=l)),null!=n.onScroll&&sO(\"scroll\",e),null!=n.onScrollEnd&&sO(\"scrollend\",e),null!=n.onClick&&(e.onclick=sK)}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(\"$\"===n||\"$!\"===n||\"$?\"===n){if(0===t)return e;t--}else\"/$\"===n&&t++}e=e.previousSibling}return null}function cu(e,t,n){switch(t=s1(n),e){case\"html\":if(!(e=t.documentElement))throw Error(i(452));return e;case\"head\":if(!(e=t.head))throw Error(i(453));return e;case\"body\":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}var cs=new Map,cc=new Set;function cf(e){return\"function\"==typeof e.getRootNode?e.getRootNode():e.ownerDocument}var cd={prefetchDNS:function(e){cp(\"dns-prefetch\",e,null)},preconnect:function(e,t){cp(\"preconnect\",e,t)},preload:function(e,t,n){var r=document;if(e&&t&&r){var l='link[rel=\"preload\"][as=\"'+e5(t)+'\"]';\"image\"===t&&n&&n.imageSrcSet?(l+='[imagesrcset=\"'+e5(n.imageSrcSet)+'\"]',\"string\"==typeof n.imageSizes&&(l+='[imagesizes=\"'+e5(n.imageSizes)+'\"]')):l+='[href=\"'+e5(e)+'\"]';var a=l;switch(t){case\"style\":a=cm(e);break;case\"script\":a=cy(e)}cs.has(a)||(e=u({rel:\"preload\",href:\"image\"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),cs.set(a,e),null!==r.querySelector(l)||\"style\"===t&&r.querySelector(ch(a))||\"script\"===t&&r.querySelector(cv(a))||(sG(t=r.createElement(\"link\"),\"link\",e),eI(t),r.head.appendChild(t)))}},preloadModule:function(e,t){var n=document;if(e){var r=t&&\"string\"==typeof t.as?t.as:\"script\",l='link[rel=\"modulepreload\"][as=\"'+e5(r)+'\"][href=\"'+e5(e)+'\"]',a=l;switch(r){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":a=cy(e)}if(!cs.has(a)&&(e=u({rel:\"modulepreload\",href:e},t),cs.set(a,e),null===n.querySelector(l))){switch(r){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(n.querySelector(cv(a)))return}sG(r=n.createElement(\"link\"),\"link\",e),eI(r),n.head.appendChild(r)}}},preinitStyle:function(e,t,n){var r=document;if(e){var l=eA(r).hoistableStyles,a=cm(e);t=t||\"default\";var o=l.get(a);if(!o){var i={loading:0,preload:null};if(o=r.querySelector(ch(a)))i.loading=5;else{e=u({rel:\"stylesheet\",href:e,\"data-precedence\":t},n),(n=cs.get(a))&&cw(e,n);var s=o=r.createElement(\"link\");eI(s),sG(s,\"link\",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener(\"load\",function(){i.loading|=1}),s.addEventListener(\"error\",function(){i.loading|=2}),i.loading|=4,ck(o,t,r)}o={type:\"stylesheet\",instance:o,count:1,state:i},l.set(a,o)}}},preinitScript:function(e,t){var n=document;if(e){var r=eA(n).hoistableScripts,l=cy(e),a=r.get(l);a||((a=n.querySelector(cv(l)))||(e=u({src:e,async:!0},t),(t=cs.get(l))&&cS(e,t),eI(a=n.createElement(\"script\")),sG(a,\"link\",e),n.head.appendChild(a)),a={type:\"script\",instance:a,count:1,state:null},r.set(l,a))}},preinitModuleScript:function(e,t){var n=document;if(e){var r=eA(n).hoistableScripts,l=cy(e),a=r.get(l);a||((a=n.querySelector(cv(l)))||(e=u({src:e,async:!0,type:\"module\"},t),(t=cs.get(l))&&cS(e,t),eI(a=n.createElement(\"script\")),sG(a,\"link\",e),n.head.appendChild(a)),a={type:\"script\",instance:a,count:1,state:null},r.set(l,a))}}};function cp(e,t,n){var r=document;if(\"string\"==typeof t&&t){var l=e5(t);l='link[rel=\"'+e+'\"][href=\"'+l+'\"]',\"string\"==typeof n&&(l+='[crossorigin=\"'+n+'\"]'),cc.has(l)||(cc.add(l),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(l)&&(sG(t=r.createElement(\"link\"),\"link\",e),eI(t),r.head.appendChild(t)))}}function cm(e){return'href=\"'+e5(e)+'\"'}function ch(e){return'link[rel=\"stylesheet\"]['+e+\"]\"}function cg(e){return u({},e,{\"data-precedence\":e.precedence,precedence:null})}function cy(e){return'[src=\"'+e5(e)+'\"]'}function cv(e){return\"script[async]\"+e}function cb(e,t,n){if(t.count++,null===t.instance)switch(t.type){case\"style\":var r=e.querySelector('style[data-href~=\"'+e5(n.href)+'\"]');if(r)return t.instance=r,eI(r),r;var l=u({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return eI(r=(e.ownerDocument||e).createElement(\"style\")),sG(r,\"style\",l),ck(r,n.precedence,e),t.instance=r;case\"stylesheet\":l=cm(n.href);var a=e.querySelector(ch(l));if(a)return t.state.loading|=4,t.instance=a,eI(a),a;r=cg(n),(l=cs.get(l))&&cw(r,l),eI(a=(e.ownerDocument||e).createElement(\"link\"));var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sG(a,\"link\",r),t.state.loading|=4,ck(a,n.precedence,e),t.instance=a;case\"script\":if(a=cy(n.src),l=e.querySelector(cv(a)))return t.instance=l,eI(l),l;return r=n,(l=cs.get(a))&&cS(r=u({},n),l),eI(l=(e=e.ownerDocument||e).createElement(\"script\")),sG(l,\"link\",r),e.head.appendChild(l),t.instance=l;case\"void\":return null;default:throw Error(i(443,t.type))}else\"stylesheet\"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,ck(r,n.precedence,e));return t.instance}function ck(e,t,n){for(var r=n.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o<r.length;o++){var i=r[o];if(i.dataset.precedence===t)a=i;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function cw(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function cS(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var cC=null;function cE(e,t,n){if(null===cC){var r=new Map,l=cC=new Map;l.set(n,r)}else(r=(l=cC).get(n))||(r=new Map,l.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[eT]||a[eE]||\"link\"===e&&\"stylesheet\"===a.getAttribute(\"rel\"))&&\"http://www.w3.org/2000/svg\"!==a.namespaceURI){var o=a.getAttribute(t)||\"\";o=e+o;var i=r.get(o);i?i.push(a):r.set(o,[a])}}return r}function cx(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,\"title\"===t?e.querySelector(\"head > title\"):null)}var cz=null;function cP(){}function cN(){if(this.count--,0===this.count){if(this.stylesheets)cL(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var c_=null;function cL(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,c_=new Map,t.forEach(cT,e),c_=null,cN.call(e))}function cT(e,t){if(!(4&t.state.loading)){var n=c_.get(e);if(n)var r=n.get(null);else{n=new Map,c_.set(e,n);for(var l=e.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),a=0;a<l.length;a++){var o=l[a];(\"link\"===o.nodeName||\"not all\"!==o.getAttribute(\"media\"))&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}o=(l=t.instance).getAttribute(\"data-precedence\"),(a=n.get(o)||r)===r&&n.set(null,l),n.set(o,l),this.count++,r=cN.bind(this),l.addEventListener(\"load\",r),l.addEventListener(\"error\",r),a?a.parentNode.insertBefore(l,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(l,e.firstChild),t.state.loading|=4}}var cF=o.Dispatcher;\"undefined\"!=typeof document&&(cF.current=cd);var cM=\"function\"==typeof reportError?reportError:function(e){console.error(e)};function cO(e){this._internalRoot=e}function cR(e){this._internalRoot=e}function cD(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function cA(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function cI(){}function cU(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a;if(\"function\"==typeof l){var i=l;l=function(){var e=iD(o);i.call(e)}}iR(t,o,e,l)}else o=function(e,t,n,r,l){if(l){if(\"function\"==typeof r){var a=r;r=function(){var e=iD(o);a.call(e)}}var o=iO(t,r,e,0,null,!1,!1,\"\",cI,null,null);return e._reactRootContainer=o,e[ez]=o.current,sA(8===e.nodeType?e.parentNode:e),o6(),o}if(cn(e),\"function\"==typeof r){var i=r;r=function(){var e=iD(u);i.call(e)}}var u=iF(e,0,!1,null,null,!1,!1,\"\",cI,null,null);return e._reactRootContainer=u,e[ez]=u.current,sA(8===e.nodeType?e.parentNode:e),o6(function(){iR(t,u,n,r)}),u}(n,t,e,l,r);return iD(o)}function cB(e,t){return\"font\"===e?\"\":\"string\"==typeof t?\"use-credentials\"===t?t:\"\":void 0}cR.prototype.render=cO.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));iR(e,t,null,null)},cR.prototype.unmount=cO.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;o6(function(){iR(null,e,null,null)}),t[ez]=null}},cR.prototype.unstable_scheduleHydration=function(e){if(e){var t=ek;e={blockedOn:null,target:e,priority:t};for(var n=0;n<ub.length&&0!==t&&t<ub[n].priority;n++);ub.splice(n,0,e),0===n&&uC(e)}};var cV=o.Dispatcher;o.Events=[eO,eR,eD,tb,tk,o4];var cQ={findFiberByHostInstance:eM,bundleType:0,version:\"18.3.0-canary-14898b6a9-20240318\",rendererPackageName:\"react-dom\"},c$={bundleType:cQ.bundleType,version:cQ.version,rendererPackageName:cQ.rendererPackageName,rendererConfig:cQ.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tE(e))?null:e.stateNode},findFiberByHostInstance:cQ.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.0-canary-14898b6a9-20240318\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cj=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cj.isDisabled&&cj.supportsFiber)try{el=cj.inject(c$),ea=cj}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!cD(t))throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:v,key:null==r?null:\"\"+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!cD(e))throw Error(i(299));var n=!1,r=\"\",l=cM,a=null;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&(a=t.unstable_transitionCallbacks)),t=iF(e,1,!1,null,null,n,!1,r,l,a,null),e[ez]=t.current,cF.current=cd,sA(8===e.nodeType?e.parentNode:e),new cO(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if(\"function\"==typeof e.render)throw Error(i(188));throw Error(i(268,e=Object.keys(e).join(\",\")))}return e=null===(e=tE(t))?null:e.stateNode},t.flushSync=function(e){return o6(e)},t.hydrate=function(e,t,n){if(!cA(t))throw Error(i(299));return cU(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!cD(e))throw Error(i(299));var r=!1,l=\"\",a=cM,o=null,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&(o=n.unstable_transitionCallbacks),void 0!==n.formState&&(u=n.formState)),t=iO(t,null,e,1,null!=n?n:null,r,!1,l,a,o,u),e[ez]=t.current,cF.current=cd,sA(e),new cR(t)},t.preconnect=function(e,t){var n=cV.current;n&&\"string\"==typeof e&&(t=t?\"string\"==typeof(t=t.crossOrigin)?\"use-credentials\"===t?t:\"\":void 0:null,n.preconnect(e,t))},t.prefetchDNS=function(e){var t=cV.current;t&&\"string\"==typeof e&&t.prefetchDNS(e)},t.preinit=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e&&t&&\"string\"==typeof t.as){var r=t.as,l=cB(r,t.crossOrigin),a=\"string\"==typeof t.integrity?t.integrity:void 0,o=\"string\"==typeof t.fetchPriority?t.fetchPriority:void 0;\"style\"===r?n.preinitStyle(e,\"string\"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:o}):\"script\"===r&&n.preinitScript(e,{crossOrigin:l,integrity:a,fetchPriority:o,nonce:\"string\"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e){if(\"object\"==typeof t&&null!==t){if(null==t.as||\"script\"===t.as){var r=cB(t.as,t.crossOrigin);n.preinitModuleScript(e,{crossOrigin:r,integrity:\"string\"==typeof t.integrity?t.integrity:void 0,nonce:\"string\"==typeof t.nonce?t.nonce:void 0})}}else null==t&&n.preinitModuleScript(e)}},t.preload=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e&&\"object\"==typeof t&&null!==t&&\"string\"==typeof t.as){var r=t.as,l=cB(r,t.crossOrigin);n.preload(e,r,{crossOrigin:l,integrity:\"string\"==typeof t.integrity?t.integrity:void 0,nonce:\"string\"==typeof t.nonce?t.nonce:void 0,type:\"string\"==typeof t.type?t.type:void 0,fetchPriority:\"string\"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:\"string\"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:\"string\"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:\"string\"==typeof t.imageSizes?t.imageSizes:void 0})}},t.preloadModule=function(e,t){var n=cV.current;if(n&&\"string\"==typeof e){if(t){var r=cB(t.as,t.crossOrigin);n.preloadModule(e,{as:\"string\"==typeof t.as&&\"script\"!==t.as?t.as:void 0,crossOrigin:r,integrity:\"string\"==typeof t.integrity?t.integrity:void 0})}else n.preloadModule(e)}},t.render=function(e,t,n){if(!cA(t))throw Error(i(299));return cU(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!cA(e))throw Error(i(299));return!!e._reactRootContainer&&(o6(function(){cU(null,null,e,!1,function(){e._reactRootContainer=null,e[ez]=null})}),!0)},t.unstable_batchedUpdates=o4,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cA(n))throw Error(i(299));if(null==e||void 0===e._reactInternals)throw Error(i(38));return cU(e,t,n,!1,r)},t.useFormState=function(e,t,n){return c.current.useFormState(e,t,n)},t.useFormStatus=function(){return c.current.useHostTransitionStatus()},t.version=\"18.3.0-canary-14898b6a9-20240318\"}}]);"
  },
  {
    "path": "docs/_next/static/chunks/framework-00a8ba1a63cfdc9e.js",
    "content": "\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{64448:function(e,n,t){/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var r,l,a,u,o,i,s=t(67294),c=t(63840);function f(e){for(var n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,t=1;t<arguments.length;t++)n+=\"&args[]=\"+encodeURIComponent(arguments[t]);return\"Minified React error #\"+e+\"; visit \"+n+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var d=new Set,p={};function m(e,n){h(e,n),h(e+\"Capture\",n)}function h(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var g=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),v=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,b={},k={};function w(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}var S={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){S[e]=new w(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var n=e[0];S[n]=new w(n,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){S[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){S[e]=new w(e,2,!1,e,null,!1,!1)}),\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){S[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){S[e]=new w(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){S[e]=new w(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){S[e]=new w(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){S[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function _(e,n,t,r){var l,a=S.hasOwnProperty(n)?S[n]:null;(null!==a?0!==a.type:r||!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])&&(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case\"function\":case\"symbol\":return!0;case\"boolean\":if(r)return!1;if(null!==t)return!t.acceptsBooleans;return\"data-\"!==(e=e.toLowerCase().slice(0,5))&&\"aria-\"!==e;default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,a,r)&&(t=null),r||null===a?(l=n,(!!v.call(k,l)||!v.call(b,l)&&(y.test(l)?k[l]=!0:(b[l]=!0,!1)))&&(null===t?e.removeAttribute(n):e.setAttribute(n,\"\"+t))):a.mustUseProperty?e[a.propertyName]=null===t?3!==a.type&&\"\":t:(n=a.attributeName,r=a.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(a=a.type)||4===a&&!0===t?\"\":\"\"+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)});var C=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for(\"react.element\"),N=Symbol.for(\"react.portal\"),z=Symbol.for(\"react.fragment\"),T=Symbol.for(\"react.strict_mode\"),L=Symbol.for(\"react.profiler\"),R=Symbol.for(\"react.provider\"),M=Symbol.for(\"react.context\"),F=Symbol.for(\"react.forward_ref\"),O=Symbol.for(\"react.suspense\"),D=Symbol.for(\"react.suspense_list\"),I=Symbol.for(\"react.memo\"),U=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\"),Symbol.for(\"react.debug_trace_mode\");var V=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.cache\"),Symbol.for(\"react.tracing_marker\");var $=Symbol.iterator;function A(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=$&&e[$]||e[\"@@iterator\"])?e:null}var j,B=Object.assign;function H(e){if(void 0===j)try{throw Error()}catch(e){var n=e.stack.trim().match(/\\n( *(at )?)/);j=n&&n[1]||\"\"}return\"\\n\"+j+e}var W=!1;function Q(e,n){if(!e||W)return\"\";W=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n){if(n=function(){throw Error()},Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&\"string\"==typeof n.stack){for(var l=n.stack.split(\"\\n\"),a=r.stack.split(\"\\n\"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do if(u--,0>--o||l[u]!==a[o]){var i=\"\\n\"+l[u].replace(\" at new \",\" at \");return e.displayName&&i.includes(\"<anonymous>\")&&(i=i.replace(\"<anonymous>\",e.displayName)),i}while(1<=u&&0<=o);break}}}finally{W=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:\"\")?H(e):\"\"}function q(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function K(e){var n=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===n||\"radio\"===n)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var n=K(e)?\"checked\":\"value\",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=\"\"+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&\"function\"==typeof t.get&&\"function\"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function X(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r=\"\";return e&&(r=K(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==t&&(n.setValue(e),!0)}function G(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Z(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function J(e,n){var t=null==n.defaultValue?\"\":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=q(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:\"checkbox\"===n.type||\"radio\"===n.type?null!=n.checked:null!=n.value}}function ee(e,n){null!=(n=n.checked)&&_(e,\"checked\",n,!1)}function en(e,n){ee(e,n);var t=q(n.value),r=n.type;if(null!=t)\"number\"===r?(0===t&&\"\"===e.value||e.value!=t)&&(e.value=\"\"+t):e.value!==\"\"+t&&(e.value=\"\"+t);else if(\"submit\"===r||\"reset\"===r){e.removeAttribute(\"value\");return}n.hasOwnProperty(\"value\")?er(e,n.type,t):n.hasOwnProperty(\"defaultValue\")&&er(e,n.type,q(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function et(e,n,t){if(n.hasOwnProperty(\"value\")||n.hasOwnProperty(\"defaultValue\")){var r=n.type;if(!(\"submit\"!==r&&\"reset\"!==r||void 0!==n.value&&null!==n.value))return;n=\"\"+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}\"\"!==(t=e.name)&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,\"\"!==t&&(e.name=t)}function er(e,n,t){(\"number\"!==n||G(e.ownerDocument)!==e)&&(null==t?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+t&&(e.defaultValue=\"\"+t))}var el=Array.isArray;function ea(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n[\"$\"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty(\"$\"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(l=0,t=\"\"+q(t),n=null;l<e.length;l++){if(e[l].value===t){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function eu(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(f(91));return B({},n,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function eo(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(f(92));if(el(t)){if(1<t.length)throw Error(f(93));t=t[0]}n=t}null==n&&(n=\"\"),t=n}e._wrapperState={initialValue:q(t)}}function ei(e,n){var t=q(n.value),r=q(n.defaultValue);null!=t&&((t=\"\"+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=\"\"+r)}function es(e){var n=e.textContent;n===e._wrapperState.initialValue&&\"\"!==n&&null!==n&&(e.value=n)}function ec(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function ef(e,n){return null==e||\"http://www.w3.org/1999/xhtml\"===e?ec(n):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===n?\"http://www.w3.org/1999/xhtml\":e}var ed,ep,em=(ed=function(e,n){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=n;else{for((ep=ep||document.createElement(\"div\")).innerHTML=\"<svg>\"+n.valueOf().toString()+\"</svg>\",n=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction(function(){return ed(e,n,t,r)})}:ed);function eh(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType){t.nodeValue=n;return}}e.textContent=n}var eg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ev=[\"Webkit\",\"ms\",\"Moz\",\"O\"];function ey(e,n,t){return null==n||\"boolean\"==typeof n||\"\"===n?\"\":t||\"number\"!=typeof n||0===n||eg.hasOwnProperty(e)&&eg[e]?(\"\"+n).trim():n+\"px\"}function eb(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf(\"--\"),l=ey(t,n[t],r);\"float\"===t&&(t=\"cssFloat\"),r?e.setProperty(t,l):e[t]=l}}Object.keys(eg).forEach(function(e){ev.forEach(function(n){eg[n=n+e.charAt(0).toUpperCase()+e.substring(1)]=eg[e]})});var ek=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ew(e,n){if(n){if(ek[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(f(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(f(60));if(\"object\"!=typeof n.dangerouslySetInnerHTML||!(\"__html\"in n.dangerouslySetInnerHTML))throw Error(f(61))}if(null!=n.style&&\"object\"!=typeof n.style)throw Error(f(62))}}function eS(e,n){if(-1===e.indexOf(\"-\"))return\"string\"==typeof n.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var ex=null;function eE(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var e_=null,eC=null,eP=null;function eN(e){if(e=rD(e)){if(\"function\"!=typeof e_)throw Error(f(280));var n=e.stateNode;n&&(n=rU(n),e_(e.stateNode,e.type,n))}}function ez(e){eC?eP?eP.push(e):eP=[e]:eC=e}function eT(){if(eC){var e=eC,n=eP;if(eP=eC=null,eN(e),n)for(e=0;e<n.length;e++)eN(n[e])}}function eL(e,n){return e(n)}function eR(){}var eM=!1;function eF(e,n,t){if(eM)return e(n,t);eM=!0;try{return eL(e,n,t)}finally{eM=!1,(null!==eC||null!==eP)&&(eR(),eT())}}function eO(e,n){var t=e.stateNode;if(null===t)return null;var r=rU(t);if(null===r)return null;switch(t=r[n],n){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break;default:e=!1}if(e)return null;if(t&&\"function\"!=typeof t)throw Error(f(231,n,typeof t));return t}var eD=!1;if(g)try{var eI={};Object.defineProperty(eI,\"passive\",{get:function(){eD=!0}}),window.addEventListener(\"test\",eI,eI),window.removeEventListener(\"test\",eI,eI)}catch(e){eD=!1}function eU(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var eV=!1,e$=null,eA=!1,ej=null,eB={onError:function(e){eV=!0,e$=e}};function eH(e,n,t,r,l,a,u,o,i){eV=!1,e$=null,eU.apply(eB,arguments)}function eW(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function eQ(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function eq(e){if(eW(e)!==e)throw Error(f(188))}function eK(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=eW(e)))throw Error(f(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return eq(l),e;if(a===r)return eq(l),n;a=a.sibling}throw Error(f(188))}if(t.return!==r.return)t=l,r=a;else{for(var u=!1,o=l.child;o;){if(o===t){u=!0,t=l,r=a;break}if(o===r){u=!0,r=l,t=a;break}o=o.sibling}if(!u){for(o=a.child;o;){if(o===t){u=!0,t=a,r=l;break}if(o===r){u=!0,r=a,t=l;break}o=o.sibling}if(!u)throw Error(f(189))}}if(t.alternate!==r)throw Error(f(190))}if(3!==t.tag)throw Error(f(188));return t.stateNode.current===t?e:n}(e))?function e(n){if(5===n.tag||6===n.tag)return n;for(n=n.child;null!==n;){var t=e(n);if(null!==t)return t;n=n.sibling}return null}(e):null}var eY=c.unstable_scheduleCallback,eX=c.unstable_cancelCallback,eG=c.unstable_shouldYield,eZ=c.unstable_requestPaint,eJ=c.unstable_now,e0=c.unstable_getCurrentPriorityLevel,e1=c.unstable_ImmediatePriority,e2=c.unstable_UserBlockingPriority,e3=c.unstable_NormalPriority,e4=c.unstable_LowPriority,e8=c.unstable_IdlePriority,e6=null,e5=null,e9=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(e7(e)/ne|0)|0},e7=Math.log,ne=Math.LN2,nn=64,nt=4194304;function nr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=nr(o):0!=(a&=u)&&(r=nr(a))}else 0!=(u=t&~l)?r=nr(u):0!==a&&(r=nr(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-e9(n)),r|=e[t],n&=~l;return r}function na(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function nu(){var e=nn;return 0==(4194240&(nn<<=1))&&(nn=64),e}function no(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function ni(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-e9(n)]=t}function ns(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-e9(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var nc=0;function nf(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var nd,np,nm,nh,ng,nv=!1,ny=[],nb=null,nk=null,nw=null,nS=new Map,nx=new Map,nE=[],n_=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");function nC(e,n){switch(e){case\"focusin\":case\"focusout\":nb=null;break;case\"dragenter\":case\"dragleave\":nk=null;break;case\"mouseover\":case\"mouseout\":nw=null;break;case\"pointerover\":case\"pointerout\":nS.delete(n.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":nx.delete(n.pointerId)}}function nP(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&null!==(n=rD(n))&&np(n)):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l)),e}function nN(e){var n=rO(e.target);if(null!==n){var t=eW(n);if(null!==t){if(13===(n=t.tag)){if(null!==(n=eQ(t))){e.blockedOn=n,ng(e.priority,function(){nm(t)});return}}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===t.tag?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nz(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=n$(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=rD(t))&&np(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);ex=r,t.target.dispatchEvent(r),ex=null,n.shift()}return!0}function nT(e,n,t){nz(e)&&t.delete(n)}function nL(){nv=!1,null!==nb&&nz(nb)&&(nb=null),null!==nk&&nz(nk)&&(nk=null),null!==nw&&nz(nw)&&(nw=null),nS.forEach(nT),nx.forEach(nT)}function nR(e,n){e.blockedOn===n&&(e.blockedOn=null,nv||(nv=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,nL)))}function nM(e){function n(n){return nR(n,e)}if(0<ny.length){nR(ny[0],e);for(var t=1;t<ny.length;t++){var r=ny[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==nb&&nR(nb,e),null!==nk&&nR(nk,e),null!==nw&&nR(nw,e),nS.forEach(n),nx.forEach(n),t=0;t<nE.length;t++)(r=nE[t]).blockedOn===e&&(r.blockedOn=null);for(;0<nE.length&&null===(t=nE[0]).blockedOn;)nN(t),null===t.blockedOn&&nE.shift()}var nF=C.ReactCurrentBatchConfig,nO=!0;function nD(e,n,t,r){var l=nc,a=nF.transition;nF.transition=null;try{nc=1,nU(e,n,t,r)}finally{nc=l,nF.transition=a}}function nI(e,n,t,r){var l=nc,a=nF.transition;nF.transition=null;try{nc=4,nU(e,n,t,r)}finally{nc=l,nF.transition=a}}function nU(e,n,t,r){if(nO){var l=n$(e,n,t,r);if(null===l)ro(e,n,r,nV,t),nC(e,r);else if(function(e,n,t,r,l){switch(n){case\"focusin\":return nb=nP(nb,e,n,t,r,l),!0;case\"dragenter\":return nk=nP(nk,e,n,t,r,l),!0;case\"mouseover\":return nw=nP(nw,e,n,t,r,l),!0;case\"pointerover\":var a=l.pointerId;return nS.set(a,nP(nS.get(a)||null,e,n,t,r,l)),!0;case\"gotpointercapture\":return a=l.pointerId,nx.set(a,nP(nx.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(nC(e,r),4&n&&-1<n_.indexOf(e)){for(;null!==l;){var a=rD(l);if(null!==a&&nd(a),null===(a=n$(e,n,t,r))&&ro(e,n,r,nV,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else ro(e,n,r,null,t)}}var nV=null;function n$(e,n,t,r){if(nV=null,null!==(e=rO(e=eE(r)))){if(null===(n=eW(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=eQ(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}return nV=e,null}function nA(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 1;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 4;case\"message\":switch(e0()){case e1:return 1;case e2:return 4;case e3:case e4:return 16;case e8:return 536870912;default:return 16}default:return 16}}var nj=null,nB=null,nH=null;function nW(){if(nH)return nH;var e,n,t=nB,r=t.length,l=\"value\"in nj?nj.value:nj.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return nH=l.slice(e,1<n?1-n:void 0)}function nQ(e){var n=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function nq(){return!0}function nK(){return!1}function nY(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?nq:nK,this.isPropagationStopped=nK,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nq)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nq)},persist:function(){},isPersistent:nq}),n}var nX,nG,nZ,nJ={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},n0=nY(nJ),n1=B({},nJ,{view:0,detail:0}),n2=nY(n1),n3=B({},n1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tl,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==nZ&&(nZ&&\"mousemove\"===e.type?(nX=e.screenX-nZ.screenX,nG=e.screenY-nZ.screenY):nG=nX=0,nZ=e),nX)},movementY:function(e){return\"movementY\"in e?e.movementY:nG}}),n4=nY(n3),n8=nY(B({},n3,{dataTransfer:0})),n6=nY(B({},n1,{relatedTarget:0})),n5=nY(B({},nJ,{animationName:0,elapsedTime:0,pseudoElement:0})),n9=nY(B({},nJ,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}})),n7=nY(B({},nJ,{data:0})),te={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},tn={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},tt={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function tr(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=tt[e])&&!!n[e]}function tl(){return tr}var ta=nY(B({},n1,{key:function(e){if(e.key){var n=te[e.key]||e.key;if(\"Unidentified\"!==n)return n}return\"keypress\"===e.type?13===(e=nQ(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?tn[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tl,charCode:function(e){return\"keypress\"===e.type?nQ(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?nQ(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}})),tu=nY(B({},n3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),to=nY(B({},n1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tl})),ti=nY(B({},nJ,{propertyName:0,elapsedTime:0,pseudoElement:0})),ts=nY(B({},n3,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),tc=[9,13,27,32],tf=g&&\"CompositionEvent\"in window,td=null;g&&\"documentMode\"in document&&(td=document.documentMode);var tp=g&&\"TextEvent\"in window&&!td,tm=g&&(!tf||td&&8<td&&11>=td),th=!1;function tg(e,n){switch(e){case\"keyup\":return -1!==tc.indexOf(n.keyCode);case\"keydown\":return 229!==n.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function tv(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}var ty=!1,tb={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tk(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===n?!!tb[e.type]:\"textarea\"===n}function tw(e,n,t,r){ez(r),0<(n=rs(n,\"onChange\")).length&&(t=new n0(\"onChange\",\"change\",null,t,r),e.push({event:t,listeners:n}))}var tS=null,tx=null;function tE(e){rn(e,0)}function t_(e){if(X(rI(e)))return e}function tC(e,n){if(\"change\"===e)return n}var tP=!1;if(g){if(g){var tN=\"oninput\"in document;if(!tN){var tz=document.createElement(\"div\");tz.setAttribute(\"oninput\",\"return;\"),tN=\"function\"==typeof tz.oninput}r=tN}else r=!1;tP=r&&(!document.documentMode||9<document.documentMode)}function tT(){tS&&(tS.detachEvent(\"onpropertychange\",tL),tx=tS=null)}function tL(e){if(\"value\"===e.propertyName&&t_(tx)){var n=[];tw(n,tx,e,eE(e)),eF(tE,n)}}function tR(e,n,t){\"focusin\"===e?(tT(),tS=n,tx=t,tS.attachEvent(\"onpropertychange\",tL)):\"focusout\"===e&&tT()}function tM(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return t_(tx)}function tF(e,n){if(\"click\"===e)return t_(n)}function tO(e,n){if(\"input\"===e||\"change\"===e)return t_(n)}var tD=\"function\"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function tI(e,n){if(tD(e,n))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!v.call(n,l)||!tD(e[l],n[l]))return!1}return!0}function tU(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tV(e,n){var t,r=tU(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tU(r)}}function t$(){for(var e=window,n=G();n instanceof e.HTMLIFrameElement;){try{var t=\"string\"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=G(e.document)}return n}function tA(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(\"input\"===n&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===n||\"true\"===e.contentEditable)}var tj=g&&\"documentMode\"in document&&11>=document.documentMode,tB=null,tH=null,tW=null,tQ=!1;function tq(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tQ||null==tB||tB!==G(r)||(r=\"selectionStart\"in(r=tB)&&tA(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tW&&tI(tW,r)||(tW=r,0<(r=rs(tH,\"onSelect\")).length&&(n=new n0(\"onSelect\",\"select\",null,n,t),e.push({event:n,listeners:r}),n.target=tB)))}function tK(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t[\"Webkit\"+e]=\"webkit\"+n,t[\"Moz\"+e]=\"moz\"+n,t}var tY={animationend:tK(\"Animation\",\"AnimationEnd\"),animationiteration:tK(\"Animation\",\"AnimationIteration\"),animationstart:tK(\"Animation\",\"AnimationStart\"),transitionend:tK(\"Transition\",\"TransitionEnd\")},tX={},tG={};function tZ(e){if(tX[e])return tX[e];if(!tY[e])return e;var n,t=tY[e];for(n in t)if(t.hasOwnProperty(n)&&n in tG)return tX[e]=t[n];return e}g&&(tG=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete tY.animationend.animation,delete tY.animationiteration.animation,delete tY.animationstart.animation),\"TransitionEvent\"in window||delete tY.transitionend.transition);var tJ=tZ(\"animationend\"),t0=tZ(\"animationiteration\"),t1=tZ(\"animationstart\"),t2=tZ(\"transitionend\"),t3=new Map,t4=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");function t8(e,n){t3.set(e,n),m(n,[e])}for(var t6=0;t6<t4.length;t6++){var t5=t4[t6];t8(t5.toLowerCase(),\"on\"+(t5[0].toUpperCase()+t5.slice(1)))}t8(tJ,\"onAnimationEnd\"),t8(t0,\"onAnimationIteration\"),t8(t1,\"onAnimationStart\"),t8(\"dblclick\",\"onDoubleClick\"),t8(\"focusin\",\"onFocus\"),t8(\"focusout\",\"onBlur\"),t8(t2,\"onTransitionEnd\"),h(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),h(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),h(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),h(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),m(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),m(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),m(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),m(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),m(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),m(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var t9=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),t7=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(t9));function re(e,n,t){var r=e.type||\"unknown-event\";e.currentTarget=t,function(e,n,t,r,l,a,u,o,i){if(eH.apply(this,arguments),eV){if(eV){var s=e$;eV=!1,e$=null}else throw Error(f(198));eA||(eA=!0,ej=s)}}(r,n,void 0,e),e.currentTarget=null}function rn(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;re(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;re(l,o,s),a=i}}}if(eA)throw e=ej,eA=!1,ej=null,e}function rt(e,n){var t=n[rR];void 0===t&&(t=n[rR]=new Set);var r=e+\"__bubble\";t.has(r)||(ru(n,e,2,!1),t.add(r))}function rr(e,n,t){var r=0;n&&(r|=4),ru(t,e,r,n)}var rl=\"_reactListening\"+Math.random().toString(36).slice(2);function ra(e){if(!e[rl]){e[rl]=!0,d.forEach(function(n){\"selectionchange\"!==n&&(t7.has(n)||rr(n,!1,e),rr(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[rl]||(n[rl]=!0,rr(\"selectionchange\",!1,n))}}function ru(e,n,t,r){switch(nA(n)){case 1:var l=nD;break;case 4:l=nI;break;default:l=nU}t=l.bind(null,n,t,e),l=void 0,eD&&(\"touchstart\"===n||\"touchmove\"===n||\"wheel\"===n)&&(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function ro(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=rO(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}eF(function(){var r=a,l=eE(t),u=[];e:{var o=t3.get(e);if(void 0!==o){var i=n0,s=e;switch(e){case\"keypress\":if(0===nQ(t))break e;case\"keydown\":case\"keyup\":i=ta;break;case\"focusin\":s=\"focus\",i=n6;break;case\"focusout\":s=\"blur\",i=n6;break;case\"beforeblur\":case\"afterblur\":i=n6;break;case\"click\":if(2===t.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":i=n4;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":i=n8;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":i=to;break;case tJ:case t0:case t1:i=n5;break;case t2:i=ti;break;case\"scroll\":i=n2;break;case\"wheel\":i=ts;break;case\"copy\":case\"cut\":case\"paste\":i=n9;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":i=tu}var c=0!=(4&n),f=!c&&\"scroll\"===e,d=c?null!==o?o+\"Capture\":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=eO(m,d))&&c.push(ri(m,h,p))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(o=\"mouseover\"===e||\"pointerover\"===e,i=\"mouseout\"===e||\"pointerout\"===e,!(o&&t!==ex&&(s=t.relatedTarget||t.fromElement)&&(rO(s)||s[rL]))&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(s=t.relatedTarget||t.toElement,i=r,null!==(s=s?rO(s):null)&&(f=eW(s),s!==f||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=n4,h=\"onMouseLeave\",d=\"onMouseEnter\",m=\"mouse\",(\"pointerout\"===e||\"pointerover\"===e)&&(c=tu,h=\"onPointerLeave\",d=\"onPointerEnter\",m=\"pointer\"),f=null==i?o:rI(i),p=null==s?o:rI(s),(o=new c(h,m+\"leave\",i,t,l)).target=f,o.relatedTarget=p,h=null,rO(l)===r&&((c=new c(d,m+\"enter\",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)n:{for(c=i,d=s,m=0,p=c;p;p=rc(p))m++;for(p=0,h=d;h;h=rc(h))p++;for(;0<m-p;)c=rc(c),m--;for(;0<p-m;)d=rc(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break n;c=rc(c),d=rc(d)}c=null}else c=null;null!==i&&rf(u,o,i,c,!1),null!==s&&null!==f&&rf(u,f,s,c,!0)}e:{if(\"select\"===(i=(o=r?rI(r):window).nodeName&&o.nodeName.toLowerCase())||\"input\"===i&&\"file\"===o.type)var g,v=tC;else if(tk(o)){if(tP)v=tO;else{v=tM;var y=tR}}else(i=o.nodeName)&&\"input\"===i.toLowerCase()&&(\"checkbox\"===o.type||\"radio\"===o.type)&&(v=tF);if(v&&(v=v(e,r))){tw(u,v,t,l);break e}y&&y(e,o,r),\"focusout\"===e&&(y=o._wrapperState)&&y.controlled&&\"number\"===o.type&&er(o,\"number\",o.value)}switch(y=r?rI(r):window,e){case\"focusin\":(tk(y)||\"true\"===y.contentEditable)&&(tB=y,tH=r,tW=null);break;case\"focusout\":tW=tH=tB=null;break;case\"mousedown\":tQ=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":tQ=!1,tq(u,t,l);break;case\"selectionchange\":if(tj)break;case\"keydown\":case\"keyup\":tq(u,t,l)}if(tf)n:{switch(e){case\"compositionstart\":var b=\"onCompositionStart\";break n;case\"compositionend\":b=\"onCompositionEnd\";break n;case\"compositionupdate\":b=\"onCompositionUpdate\";break n}b=void 0}else ty?tg(e,t)&&(b=\"onCompositionEnd\"):\"keydown\"===e&&229===t.keyCode&&(b=\"onCompositionStart\");b&&(tm&&\"ko\"!==t.locale&&(ty||\"onCompositionStart\"!==b?\"onCompositionEnd\"===b&&ty&&(g=nW()):(nB=\"value\"in(nj=l)?nj.value:nj.textContent,ty=!0)),0<(y=rs(r,b)).length&&(b=new n7(b,e,null,t,l),u.push({event:b,listeners:y}),g?b.data=g:null!==(g=tv(t))&&(b.data=g))),(g=tp?function(e,n){switch(e){case\"compositionend\":return tv(n);case\"keypress\":if(32!==n.which)return null;return th=!0,\" \";case\"textInput\":return\" \"===(e=n.data)&&th?null:e;default:return null}}(e,t):function(e,n){if(ty)return\"compositionend\"===e||!tf&&tg(e,n)?(e=nW(),nH=nB=nj=null,ty=!1,e):null;switch(e){case\"paste\":default:return null;case\"keypress\":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case\"compositionend\":return tm&&\"ko\"!==n.locale?null:n.data}}(e,t))&&0<(r=rs(r,\"onBeforeInput\")).length&&(l=new n7(\"onBeforeInput\",\"beforeinput\",null,t,l),u.push({event:l,listeners:r}),l.data=g)}rn(u,n)})}function ri(e,n,t){return{instance:e,listener:n,currentTarget:t}}function rs(e,n){for(var t=n+\"Capture\",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=eO(e,t))&&r.unshift(ri(e,a,l)),null!=(a=eO(e,n))&&r.push(ri(e,a,l))),e=e.return}return r}function rc(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rf(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=eO(t,a))&&u.unshift(ri(t,i,o)):l||null!=(i=eO(t,a))&&u.push(ri(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}var rd=/\\r\\n?/g,rp=/\\u0000|\\uFFFD/g;function rm(e){return(\"string\"==typeof e?e:\"\"+e).replace(rd,\"\\n\").replace(rp,\"\")}function rh(e,n,t){if(n=rm(n),rm(e)!==n&&t)throw Error(f(425))}function rg(){}var rv=null,ry=null;function rb(e,n){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof n.children||\"number\"==typeof n.children||\"object\"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var rk=\"function\"==typeof setTimeout?setTimeout:void 0,rw=\"function\"==typeof clearTimeout?clearTimeout:void 0,rS=\"function\"==typeof Promise?Promise:void 0,rx=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==rS?function(e){return rS.resolve(null).then(e).catch(rE)}:rk;function rE(e){setTimeout(function(){throw e})}function r_(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType){if(\"/$\"===(t=l.data)){if(0===r){e.removeChild(l),nM(n);return}r--}else\"$\"!==t&&\"$?\"!==t&&\"$!\"!==t||r++}t=l}while(t);nM(n)}function rC(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if(\"$\"===(n=e.data)||\"$!\"===n||\"$?\"===n)break;if(\"/$\"===n)return null}}return e}function rP(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if(\"$\"===t||\"$!\"===t||\"$?\"===t){if(0===n)return e;n--}else\"/$\"===t&&n++}e=e.previousSibling}return null}var rN=Math.random().toString(36).slice(2),rz=\"__reactFiber$\"+rN,rT=\"__reactProps$\"+rN,rL=\"__reactContainer$\"+rN,rR=\"__reactEvents$\"+rN,rM=\"__reactListeners$\"+rN,rF=\"__reactHandles$\"+rN;function rO(e){var n=e[rz];if(n)return n;for(var t=e.parentNode;t;){if(n=t[rL]||t[rz]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=rP(e);null!==e;){if(t=e[rz])return t;e=rP(e)}return n}t=(e=t).parentNode}return null}function rD(e){return(e=e[rz]||e[rL])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function rI(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(f(33))}function rU(e){return e[rT]||null}var rV=[],r$=-1;function rA(e){return{current:e}}function rj(e){0>r$||(e.current=rV[r$],rV[r$]=null,r$--)}function rB(e,n){rV[++r$]=e.current,e.current=n}var rH={},rW=rA(rH),rQ=rA(!1),rq=rH;function rK(e,n){var t=e.type.contextTypes;if(!t)return rH;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function rY(e){return null!=(e=e.childContextTypes)}function rX(){rj(rQ),rj(rW)}function rG(e,n,t){if(rW.current!==rH)throw Error(f(168));rB(rW,n),rB(rQ,t)}function rZ(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,\"function\"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(f(108,function(e){var n=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(n.displayName||\"Context\")+\".Consumer\";case 10:return(n._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=n.render).displayName||e.name||\"\",n.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return n;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return function e(n){if(null==n)return null;if(\"function\"==typeof n)return n.displayName||n.name||null;if(\"string\"==typeof n)return n;switch(n){case z:return\"Fragment\";case N:return\"Portal\";case L:return\"Profiler\";case T:return\"StrictMode\";case O:return\"Suspense\";case D:return\"SuspenseList\"}if(\"object\"==typeof n)switch(n.$$typeof){case M:return(n.displayName||\"Context\")+\".Consumer\";case R:return(n._context.displayName||\"Context\")+\".Provider\";case F:var t=n.render;return(n=n.displayName)||(n=\"\"!==(n=t.displayName||t.name||\"\")?\"ForwardRef(\"+n+\")\":\"ForwardRef\"),n;case I:return null!==(t=n.displayName||null)?t:e(n.type)||\"Memo\";case U:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(n);case 8:return n===T?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"==typeof n)return n.displayName||n.name||null;if(\"string\"==typeof n)return n}return null}(e)||\"Unknown\",l));return B({},t,r)}function rJ(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rH,rq=rW.current,rB(rW,e),rB(rQ,rQ.current),!0}function r0(e,n,t){var r=e.stateNode;if(!r)throw Error(f(169));t?(e=rZ(e,n,rq),r.__reactInternalMemoizedMergedChildContext=e,rj(rQ),rj(rW),rB(rW,e)):rj(rQ),rB(rQ,t)}var r1=null,r2=!1,r3=!1;function r4(e){null===r1?r1=[e]:r1.push(e)}function r8(){if(!r3&&null!==r1){r3=!0;var e=0,n=nc;try{var t=r1;for(nc=1;e<t.length;e++){var r=t[e];do r=r(!0);while(null!==r)}r1=null,r2=!1}catch(n){throw null!==r1&&(r1=r1.slice(e+1)),eY(e1,r8),n}finally{nc=n,r3=!1}}return null}var r6=[],r5=0,r9=null,r7=0,le=[],ln=0,lt=null,lr=1,ll=\"\";function la(e,n){r6[r5++]=r7,r6[r5++]=r9,r9=e,r7=n}function lu(e,n,t){le[ln++]=lr,le[ln++]=ll,le[ln++]=lt,lt=e;var r=lr;e=ll;var l=32-e9(r)-1;r&=~(1<<l),t+=1;var a=32-e9(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,lr=1<<32-e9(n)+l|t<<l|r,ll=a+e}else lr=1<<a|t<<l|r,ll=e}function lo(e){null!==e.return&&(la(e,1),lu(e,1,0))}function li(e){for(;e===r9;)r9=r6[--r5],r6[r5]=null,r7=r6[--r5],r6[r5]=null;for(;e===lt;)lt=le[--ln],le[ln]=null,ll=le[--ln],le[ln]=null,lr=le[--ln],le[ln]=null}var ls=null,lc=null,lf=!1,ld=null;function lp(e,n){var t=oQ(5,null,null,0);t.elementType=\"DELETED\",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function lm(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,ls=e,lc=rC(n.firstChild),!0);case 6:return null!==(n=\"\"===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,ls=e,lc=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==lt?{id:lr,overflow:ll}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=oQ(18,null,null,0)).stateNode=n,t.return=e,e.child=t,ls=e,lc=null,!0);default:return!1}}function lh(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lg(e){if(lf){var n=lc;if(n){var t=n;if(!lm(e,n)){if(lh(e))throw Error(f(418));n=rC(t.nextSibling);var r=ls;n&&lm(e,n)?lp(r,t):(e.flags=-4097&e.flags|2,lf=!1,ls=e)}}else{if(lh(e))throw Error(f(418));e.flags=-4097&e.flags|2,lf=!1,ls=e}}}function lv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ls=e}function ly(e){if(e!==ls)return!1;if(!lf)return lv(e),lf=!0,!1;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n=\"head\"!==(n=e.type)&&\"body\"!==n&&!rb(e.type,e.memoizedProps)),n&&(n=lc)){if(lh(e))throw lb(),Error(f(418));for(;n;)lp(e,n),n=rC(n.nextSibling)}if(lv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(f(317));e:{for(n=0,e=e.nextSibling;e;){if(8===e.nodeType){var n,t=e.data;if(\"/$\"===t){if(0===n){lc=rC(e.nextSibling);break e}n--}else\"$\"!==t&&\"$!\"!==t&&\"$?\"!==t||n++}e=e.nextSibling}lc=null}}else lc=ls?rC(e.stateNode.nextSibling):null;return!0}function lb(){for(var e=lc;e;)e=rC(e.nextSibling)}function lk(){lc=ls=null,lf=!1}function lw(e){null===ld?ld=[e]:ld.push(e)}var lS=C.ReactCurrentBatchConfig;function lx(e,n,t){if(null!==(e=t.ref)&&\"function\"!=typeof e&&\"object\"!=typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(f(309));var r=t.stateNode}if(!r)throw Error(f(147,e));var l=r,a=\"\"+e;return null!==n&&null!==n.ref&&\"function\"==typeof n.ref&&n.ref._stringRef===a?n.ref:((n=function(e){var n=l.refs;null===e?delete n[a]:n[a]=e})._stringRef=a,n)}if(\"string\"!=typeof e)throw Error(f(284));if(!t._owner)throw Error(f(290,e))}return e}function lE(e,n){throw Error(f(31,\"[object Object]\"===(e=Object.prototype.toString.call(n))?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}function l_(e){return(0,e._init)(e._payload)}function lC(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function l(e,n){return(e=oK(e,n)).index=0,e.sibling=null,e}function a(n,t,r){return(n.index=r,e)?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function u(n){return e&&null===n.alternate&&(n.flags|=2),n}function o(e,n,t,r){return null===n||6!==n.tag?(n=oZ(t,e.mode,r)).return=e:(n=l(n,t)).return=e,n}function i(e,n,t,r){var a=t.type;return a===z?c(e,n,t.props.children,r,t.key):(null!==n&&(n.elementType===a||\"object\"==typeof a&&null!==a&&a.$$typeof===U&&l_(a)===n.type)?(r=l(n,t.props)).ref=lx(e,n,t):(r=oY(t.type,t.key,t.props,null,e.mode,r)).ref=lx(e,n,t),r.return=e,r)}function s(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?(n=oJ(t,e.mode,r)).return=e:(n=l(n,t.children||[])).return=e,n}function c(e,n,t,r,a){return null===n||7!==n.tag?(n=oX(t,e.mode,r,a)).return=e:(n=l(n,t)).return=e,n}function d(e,n,t){if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return(n=oZ(\"\"+n,e.mode,t)).return=e,n;if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case P:return(t=oY(n.type,n.key,n.props,null,e.mode,t)).ref=lx(e,null,n),t.return=e,t;case N:return(n=oJ(n,e.mode,t)).return=e,n;case U:return d(e,(0,n._init)(n._payload),t)}if(el(n)||A(n))return(n=oX(n,e.mode,t,null)).return=e,n;lE(e,n)}return null}function p(e,n,t,r){var l=null!==n?n.key:null;if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return null!==l?null:o(e,n,\"\"+t,r);if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case P:return t.key===l?i(e,n,t,r):null;case N:return t.key===l?s(e,n,t,r):null;case U:return p(e,n,(l=t._init)(t._payload),r)}if(el(t)||A(t))return null!==l?null:c(e,n,t,r,null);lE(e,t)}return null}function m(e,n,t,r,l){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r)return o(n,e=e.get(t)||null,\"\"+r,l);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case P:return i(n,e=e.get(null===r.key?t:r.key)||null,r,l);case N:return s(n,e=e.get(null===r.key?t:r.key)||null,r,l);case U:return m(e,n,t,(0,r._init)(r._payload),l)}if(el(r)||A(r))return c(n,e=e.get(t)||null,r,l,null);lE(n,r)}return null}return function o(i,s,c,h){if(\"object\"==typeof c&&null!==c&&c.type===z&&null===c.key&&(c=c.props.children),\"object\"==typeof c&&null!==c){switch(c.$$typeof){case P:e:{for(var g=c.key,v=s;null!==v;){if(v.key===g){if((g=c.type)===z){if(7===v.tag){t(i,v.sibling),(s=l(v,c.props.children)).return=i,i=s;break e}}else if(v.elementType===g||\"object\"==typeof g&&null!==g&&g.$$typeof===U&&l_(g)===v.type){t(i,v.sibling),(s=l(v,c.props)).ref=lx(i,v,c),s.return=i,i=s;break e}t(i,v);break}n(i,v),v=v.sibling}c.type===z?((s=oX(c.props.children,i.mode,h,c.key)).return=i,i=s):((h=oY(c.type,c.key,c.props,null,i.mode,h)).ref=lx(i,s,c),h.return=i,i=h)}return u(i);case N:e:{for(v=c.key;null!==s;){if(s.key===v){if(4===s.tag&&s.stateNode.containerInfo===c.containerInfo&&s.stateNode.implementation===c.implementation){t(i,s.sibling),(s=l(s,c.children||[])).return=i,i=s;break e}t(i,s);break}n(i,s),s=s.sibling}(s=oJ(c,i.mode,h)).return=i,i=s}return u(i);case U:return o(i,s,(v=c._init)(c._payload),h)}if(el(c))return function(l,u,o,i){for(var s=null,c=null,f=u,h=u=0,g=null;null!==f&&h<o.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),u=a(v,u,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===o.length)return t(l,f),lf&&la(l,h),s;if(null===f){for(;h<o.length;h++)null!==(f=d(l,o[h],i))&&(u=a(f,u,h),null===c?s=f:c.sibling=f,c=f);return lf&&la(l,h),s}for(f=r(l,f);h<o.length;h++)null!==(g=m(f,l,h,o[h],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),u=a(g,u,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return n(l,e)}),lf&&la(l,h),s}(i,s,c,h);if(A(c))return function(l,u,o,i){var s=A(o);if(\"function\"!=typeof s)throw Error(f(150));if(null==(o=s.call(o)))throw Error(f(151));for(var c=s=null,h=u,g=u=0,v=null,y=o.next();null!==h&&!y.done;g++,y=o.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,i);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),u=a(b,u,g),null===c?s=b:c.sibling=b,c=b,h=v}if(y.done)return t(l,h),lf&&la(l,g),s;if(null===h){for(;!y.done;g++,y=o.next())null!==(y=d(l,y.value,i))&&(u=a(y,u,g),null===c?s=y:c.sibling=y,c=y);return lf&&la(l,g),s}for(h=r(l,h);!y.done;g++,y=o.next())null!==(y=m(h,l,g,y.value,i))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),u=a(y,u,g),null===c?s=y:c.sibling=y,c=y);return e&&h.forEach(function(e){return n(l,e)}),lf&&la(l,g),s}(i,s,c,h);lE(i,c)}return\"string\"==typeof c&&\"\"!==c||\"number\"==typeof c?(c=\"\"+c,null!==s&&6===s.tag?(t(i,s.sibling),(s=l(s,c)).return=i):(t(i,s),(s=oZ(c,i.mode,h)).return=i),u(i=s)):t(i,s)}}var lP=lC(!0),lN=lC(!1),lz=rA(null),lT=null,lL=null,lR=null;function lM(){lR=lL=lT=null}function lF(e){var n=lz.current;rj(lz),e._currentValue=n}function lO(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function lD(e,n){lT=e,lR=lL=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(ua=!0),e.firstContext=null)}function lI(e){var n=e._currentValue;if(lR!==e){if(e={context:e,memoizedValue:n,next:null},null===lL){if(null===lT)throw Error(f(308));lL=e,lT.dependencies={lanes:0,firstContext:e}}else lL=lL.next=e}return n}var lU=null;function lV(e){null===lU?lU=[e]:lU.push(e)}function l$(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,lV(n)):(t.next=l.next,l.next=t),n.interleaved=t,lA(e,r)}function lA(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}var lj=!1;function lB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lH(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lW(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function lQ(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&u2)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,lA(e,t)}return null===(l=r.interleaved)?(n.next=n,lV(r)):(n.next=l.next,l.next=n),r.interleaved=n,lA(e,t)}function lq(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ns(e,t)}}function lK(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=t;return}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function lY(e,n,t,r){var l=e.updateQueue;lj=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if(\"function\"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d=\"function\"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=B({},f,d);break e;case 2:lj=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do u|=l.lane,l=l.next;while(l!==n)}else null===a&&(l.shared.lanes=0);oe|=u,e.lanes=u,e.memoizedState=f}}function lX(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(null!==l){if(r.callback=null,r=t,\"function\"!=typeof l)throw Error(f(191,l));l.call(r)}}}var lG={},lZ=rA(lG),lJ=rA(lG),l0=rA(lG);function l1(e){if(e===lG)throw Error(f(174));return e}function l2(e,n){switch(rB(l0,n),rB(lJ,e),rB(lZ,lG),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ef(null,\"\");break;default:n=ef(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}rj(lZ),rB(lZ,n)}function l3(){rj(lZ),rj(lJ),rj(l0)}function l4(e){l1(l0.current);var n=l1(lZ.current),t=ef(n,e.type);n!==t&&(rB(lJ,e),rB(lZ,t))}function l8(e){lJ.current===e&&(rj(lZ),rj(lJ))}var l6=rA(0);function l5(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||\"$?\"===t.data||\"$!\"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var l9=[];function l7(){for(var e=0;e<l9.length;e++)l9[e]._workInProgressVersionPrimary=null;l9.length=0}var ae=C.ReactCurrentDispatcher,an=C.ReactCurrentBatchConfig,at=0,ar=null,al=null,aa=null,au=!1,ao=!1,ai=0,as=0;function ac(){throw Error(f(321))}function af(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!tD(e[t],n[t]))return!1;return!0}function ad(e,n,t,r,l,a){if(at=a,ar=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,ae.current=null===e||null===e.memoizedState?aY:aX,e=t(r,l),ao){a=0;do{if(ao=!1,ai=0,25<=a)throw Error(f(301));a+=1,aa=al=null,n.updateQueue=null,ae.current=aG,e=t(r,l)}while(ao)}if(ae.current=aK,n=null!==al&&null!==al.next,at=0,aa=al=ar=null,au=!1,n)throw Error(f(300));return e}function ap(){var e=0!==ai;return ai=0,e}function am(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aa?ar.memoizedState=aa=e:aa=aa.next=e,aa}function ah(){if(null===al){var e=ar.alternate;e=null!==e?e.memoizedState:null}else e=al.next;var n=null===aa?ar.memoizedState:aa.next;if(null!==n)aa=n,al=e;else{if(null===e)throw Error(f(310));e={memoizedState:(al=e).memoizedState,baseState:al.baseState,baseQueue:al.baseQueue,queue:al.queue,next:null},null===aa?ar.memoizedState=aa=e:aa=aa.next=e}return aa}function ag(e,n){return\"function\"==typeof n?n(e):n}function av(e){var n=ah(),t=n.queue;if(null===t)throw Error(f(311));t.lastRenderedReducer=e;var r=al,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var o=u=null,i=null,s=a;do{var c=s.lane;if((at&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===i?(o=i=d,u=r):i=i.next=d,ar.lanes|=c,oe|=c}s=s.next}while(null!==s&&s!==a);null===i?u=r:i.next=o,tD(r,n.memoizedState)||(ua=!0),n.memoizedState=r,n.baseState=u,n.baseQueue=i,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do a=l.lane,ar.lanes|=a,oe|=a,l=l.next;while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function ay(e){var n=ah(),t=n.queue;if(null===t)throw Error(f(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var u=l=l.next;do a=e(a,u.action),u=u.next;while(u!==l);tD(a,n.memoizedState)||(ua=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function ab(){}function ak(e,n){var t=ar,r=ah(),l=n(),a=!tD(r.memoizedState,l);if(a&&(r.memoizedState=l,ua=!0),r=r.queue,aR(ax.bind(null,t,r,e),[e]),r.getSnapshot!==n||a||null!==aa&&1&aa.memoizedState.tag){if(t.flags|=2048,aP(9,aS.bind(null,t,r,l,n),void 0,null),null===u3)throw Error(f(349));0!=(30&at)||aw(t,n,l)}return l}function aw(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=ar.updateQueue)?(n={lastEffect:null,stores:null},ar.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function aS(e,n,t,r){n.value=t,n.getSnapshot=r,aE(n)&&a_(e)}function ax(e,n,t){return t(function(){aE(n)&&a_(e)})}function aE(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!tD(e,t)}catch(e){return!0}}function a_(e){var n=lA(e,1);null!==n&&ok(n,e,1,-1)}function aC(e){var n=am();return\"function\"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ag,lastRenderedState:e},n.queue=e,e=e.dispatch=aH.bind(null,ar,e),[n.memoizedState,e]}function aP(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=ar.updateQueue)?(n={lastEffect:null,stores:null},ar.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function aN(){return ah().memoizedState}function az(e,n,t,r){var l=am();ar.flags|=e,l.memoizedState=aP(1|n,t,void 0,void 0===r?null:r)}function aT(e,n,t,r){var l=ah();r=void 0===r?null:r;var a=void 0;if(null!==al){var u=al.memoizedState;if(a=u.destroy,null!==r&&af(r,u.deps)){l.memoizedState=aP(n,t,a,r);return}}ar.flags|=e,l.memoizedState=aP(1|n,t,a,r)}function aL(e,n){return az(8390656,8,e,n)}function aR(e,n){return aT(2048,8,e,n)}function aM(e,n){return aT(4,2,e,n)}function aF(e,n){return aT(4,4,e,n)}function aO(e,n){return\"function\"==typeof n?(n(e=e()),function(){n(null)}):null!=n?(e=e(),n.current=e,function(){n.current=null}):void 0}function aD(e,n,t){return t=null!=t?t.concat([e]):null,aT(4,4,aO.bind(null,n,e),t)}function aI(){}function aU(e,n){var t=ah();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&af(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function aV(e,n){var t=ah();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&af(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function a$(e,n,t){return 0==(21&at)?(e.baseState&&(e.baseState=!1,ua=!0),e.memoizedState=t):(tD(t,n)||(t=nu(),ar.lanes|=t,oe|=t,e.baseState=!0),n)}function aA(e,n){var t=nc;nc=0!==t&&4>t?t:4,e(!0);var r=an.transition;an.transition={};try{e(!1),n()}finally{nc=t,an.transition=r}}function aj(){return ah().memoizedState}function aB(e,n,t){var r=ob(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},aW(e)?aQ(n,t):null!==(t=l$(e,n,t,r))&&(ok(t,e,r,oy()),aq(t,n,r))}function aH(e,n,t){var r=ob(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(aW(e))aQ(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,tD(o,u)){var i=n.interleaved;null===i?(l.next=l,lV(n)):(l.next=i.next,i.next=l),n.interleaved=l;return}}catch(e){}finally{}null!==(t=l$(e,n,l,r))&&(ok(t,e,r,l=oy()),aq(t,n,r))}}function aW(e){var n=e.alternate;return e===ar||null!==n&&n===ar}function aQ(e,n){ao=au=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function aq(e,n,t){if(0!=(4194240&t)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ns(e,t)}}var aK={readContext:lI,useCallback:ac,useContext:ac,useEffect:ac,useImperativeHandle:ac,useInsertionEffect:ac,useLayoutEffect:ac,useMemo:ac,useReducer:ac,useRef:ac,useState:ac,useDebugValue:ac,useDeferredValue:ac,useTransition:ac,useMutableSource:ac,useSyncExternalStore:ac,useId:ac,unstable_isNewReconciler:!1},aY={readContext:lI,useCallback:function(e,n){return am().memoizedState=[e,void 0===n?null:n],e},useContext:lI,useEffect:aL,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,az(4194308,4,aO.bind(null,n,e),t)},useLayoutEffect:function(e,n){return az(4194308,4,e,n)},useInsertionEffect:function(e,n){return az(4,2,e,n)},useMemo:function(e,n){var t=am();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=am();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=aB.bind(null,ar,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},am().memoizedState=e},useState:aC,useDebugValue:aI,useDeferredValue:function(e){return am().memoizedState=e},useTransition:function(){var e=aC(!1),n=e[0];return e=aA.bind(null,e[1]),am().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=ar,l=am();if(lf){if(void 0===t)throw Error(f(407));t=t()}else{if(t=n(),null===u3)throw Error(f(349));0!=(30&at)||aw(r,n,t)}l.memoizedState=t;var a={value:t,getSnapshot:n};return l.queue=a,aL(ax.bind(null,r,a,e),[e]),r.flags|=2048,aP(9,aS.bind(null,r,a,t,n),void 0,null),t},useId:function(){var e=am(),n=u3.identifierPrefix;if(lf){var t=ll,r=lr;n=\":\"+n+\"R\"+(t=(r&~(1<<32-e9(r)-1)).toString(32)+t),0<(t=ai++)&&(n+=\"H\"+t.toString(32)),n+=\":\"}else n=\":\"+n+\"r\"+(t=as++).toString(32)+\":\";return e.memoizedState=n},unstable_isNewReconciler:!1},aX={readContext:lI,useCallback:aU,useContext:lI,useEffect:aR,useImperativeHandle:aD,useInsertionEffect:aM,useLayoutEffect:aF,useMemo:aV,useReducer:av,useRef:aN,useState:function(){return av(ag)},useDebugValue:aI,useDeferredValue:function(e){return a$(ah(),al.memoizedState,e)},useTransition:function(){return[av(ag)[0],ah().memoizedState]},useMutableSource:ab,useSyncExternalStore:ak,useId:aj,unstable_isNewReconciler:!1},aG={readContext:lI,useCallback:aU,useContext:lI,useEffect:aR,useImperativeHandle:aD,useInsertionEffect:aM,useLayoutEffect:aF,useMemo:aV,useReducer:ay,useRef:aN,useState:function(){return ay(ag)},useDebugValue:aI,useDeferredValue:function(e){var n=ah();return null===al?n.memoizedState=e:a$(n,al.memoizedState,e)},useTransition:function(){return[ay(ag)[0],ah().memoizedState]},useMutableSource:ab,useSyncExternalStore:ak,useId:aj,unstable_isNewReconciler:!1};function aZ(e,n){if(e&&e.defaultProps)for(var t in n=B({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}function aJ(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:B({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var a0={isMounted:function(e){return!!(e=e._reactInternals)&&eW(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=oy(),l=ob(e),a=lW(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=lQ(e,a,l))&&(ok(n,e,l,r),lq(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=oy(),l=ob(e),a=lW(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=lQ(e,a,l))&&(ok(n,e,l,r),lq(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=oy(),r=ob(e),l=lW(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=lQ(e,l,r))&&(ok(n,e,r,t),lq(n,e,r))}};function a1(e,n,t,r,l,a,u){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!n.prototype||!n.prototype.isPureReactComponent||!tI(t,r)||!tI(l,a)}function a2(e,n,t){var r=!1,l=rH,a=n.contextType;return\"object\"==typeof a&&null!==a?a=lI(a):(l=rY(n)?rq:rW.current,a=(r=null!=(r=n.contextTypes))?rK(e,l):rH),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=a0,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function a3(e,n,t,r){e=n.state,\"function\"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),\"function\"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&a0.enqueueReplaceState(n,n.state,null)}function a4(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},lB(e);var a=n.contextType;\"object\"==typeof a&&null!==a?l.context=lI(a):(a=rY(n)?rq:rW.current,l.context=rK(e,a)),l.state=e.memoizedState,\"function\"==typeof(a=n.getDerivedStateFromProps)&&(aJ(e,n,a,t),l.state=e.memoizedState),\"function\"==typeof n.getDerivedStateFromProps||\"function\"==typeof l.getSnapshotBeforeUpdate||\"function\"!=typeof l.UNSAFE_componentWillMount&&\"function\"!=typeof l.componentWillMount||(n=l.state,\"function\"==typeof l.componentWillMount&&l.componentWillMount(),\"function\"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&a0.enqueueReplaceState(l,l.state,null),lY(e,t,l,r),l.state=e.memoizedState),\"function\"==typeof l.componentDidMount&&(e.flags|=4194308)}function a8(e,n){try{var t=\"\",r=n;do t+=function(e){switch(e.tag){case 5:return H(e.type);case 16:return H(\"Lazy\");case 13:return H(\"Suspense\");case 19:return H(\"SuspenseList\");case 0:case 2:case 15:return e=Q(e.type,!1);case 11:return e=Q(e.type.render,!1);case 1:return e=Q(e.type,!0);default:return\"\"}}(r),r=r.return;while(r);var l=t}catch(e){l=\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}return{value:e,source:n,stack:l,digest:null}}function a6(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function a5(e,n){try{console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var a9=\"function\"==typeof WeakMap?WeakMap:Map;function a7(e,n,t){(t=lW(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){oi||(oi=!0,os=r),a5(e,n)},t}function ue(e,n,t){(t=lW(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){a5(e,n)}}var a=e.stateNode;return null!==a&&\"function\"==typeof a.componentDidCatch&&(t.callback=function(){a5(e,n),\"function\"!=typeof r&&(null===oc?oc=new Set([this]):oc.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:\"\"})}),t}function un(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new a9;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=oA.bind(null,e,n,t),n.then(e,e))}function ut(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function ur(e,n,t,r,l){return 0==(1&e.mode)?e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=lW(-1,1)).tag=2,lQ(t,n,1))),t.lanes|=1):(e.flags|=65536,e.lanes=l),e}var ul=C.ReactCurrentOwner,ua=!1;function uu(e,n,t,r){n.child=null===e?lN(n,null,t,r):lP(n,e.child,t,r)}function uo(e,n,t,r,l){t=t.render;var a=n.ref;return(lD(n,l),r=ad(e,n,t,r,a,l),t=ap(),null===e||ua)?(lf&&t&&lo(n),n.flags|=1,uu(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,uC(e,n,l))}function ui(e,n,t,r,l){if(null===e){var a=t.type;return\"function\"!=typeof a||oq(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=oY(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,us(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:tI)(u,r)&&e.ref===n.ref)return uC(e,n,l)}return n.flags|=1,(e=oK(a,r)).ref=n.ref,e.return=n,n.child=e}function us(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tI(a,r)&&e.ref===n.ref){if(ua=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,uC(e,n,l);0!=(131072&e.flags)&&(ua=!0)}}return ud(e,n,t,r,l)}function uc(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if(\"hidden\"===r.mode){if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},rB(u5,u6),u6|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,rB(u5,u6),u6|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,rB(u5,u6),u6|=r}}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,rB(u5,u6),u6|=r;return uu(e,n,l,t),n.child}function uf(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function ud(e,n,t,r,l){var a=rY(t)?rq:rW.current;return(a=rK(n,a),lD(n,l),t=ad(e,n,t,r,a,l),r=ap(),null===e||ua)?(lf&&r&&lo(n),n.flags|=1,uu(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,uC(e,n,l))}function up(e,n,t,r,l){if(rY(t)){var a=!0;rJ(n)}else a=!1;if(lD(n,l),null===n.stateNode)u_(e,n),a2(n,t,r),a4(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;s=\"object\"==typeof s&&null!==s?lI(s):rK(n,s=rY(t)?rq:rW.current);var c=t.getDerivedStateFromProps,f=\"function\"==typeof c||\"function\"==typeof u.getSnapshotBeforeUpdate;f||\"function\"!=typeof u.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&a3(n,u,r,s),lj=!1;var d=n.memoizedState;u.state=d,lY(n,r,u,l),i=n.memoizedState,o!==r||d!==i||rQ.current||lj?(\"function\"==typeof c&&(aJ(n,t,c,r),i=n.memoizedState),(o=lj||a1(n,t,o,r,d,i,s))?(f||\"function\"!=typeof u.UNSAFE_componentWillMount&&\"function\"!=typeof u.componentWillMount||(\"function\"==typeof u.componentWillMount&&u.componentWillMount(),\"function\"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),\"function\"==typeof u.componentDidMount&&(n.flags|=4194308)):(\"function\"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):(\"function\"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,lH(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:aZ(n.type,o),u.props=s,f=n.pendingProps,d=u.context,i=\"object\"==typeof(i=t.contextType)&&null!==i?lI(i):rK(n,i=rY(t)?rq:rW.current);var p=t.getDerivedStateFromProps;(c=\"function\"==typeof p||\"function\"==typeof u.getSnapshotBeforeUpdate)||\"function\"!=typeof u.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&a3(n,u,r,i),lj=!1,d=n.memoizedState,u.state=d,lY(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||rQ.current||lj?(\"function\"==typeof p&&(aJ(n,t,p,r),m=n.memoizedState),(s=lj||a1(n,t,s,r,d,m,i)||!1)?(c||\"function\"!=typeof u.UNSAFE_componentWillUpdate&&\"function\"!=typeof u.componentWillUpdate||(\"function\"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),\"function\"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),\"function\"==typeof u.componentDidUpdate&&(n.flags|=4),\"function\"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):(\"function\"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),\"function\"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):(\"function\"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),\"function\"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return um(e,n,t,r,a,l)}function um(e,n,t,r,l,a){uf(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&r0(n,t,!1),uC(e,n,a);r=n.stateNode,ul.current=n;var o=u&&\"function\"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=lP(n,e.child,null,a),n.child=lP(n,null,o,a)):uu(e,n,o,a),n.memoizedState=r.state,l&&r0(n,t,!0),n.child}function uh(e){var n=e.stateNode;n.pendingContext?rG(e,n.pendingContext,n.pendingContext!==n.context):n.context&&rG(e,n.context,!1),l2(e,n.containerInfo)}function ug(e,n,t,r,l){return lk(),lw(l),n.flags|=256,uu(e,n,t,r),n.child}var uv={dehydrated:null,treeContext:null,retryLane:0};function uy(e){return{baseLanes:e,cachePool:null,transitions:null}}function ub(e,n,t){var r,l=n.pendingProps,a=l6.current,u=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(u=!0,n.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),rB(l6,1&a),null===e)return(lg(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&n.mode)?n.lanes=1:\"$!\"===e.data?n.lanes=8:n.lanes=1073741824,null):(o=l.children,e=l.fallback,u?(l=n.mode,u=n.child,o={mode:\"hidden\",children:o},0==(1&l)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=oG(o,l,0,null),e=oX(e,l,t,null),u.return=n,e.return=n,u.sibling=e,n.child=u,n.child.memoizedState=uy(t),n.memoizedState=uv,e):uk(n,o));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,n,t,r,l,a,u){if(t)return 256&n.flags?(n.flags&=-257,uw(e,n,u,r=a6(Error(f(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,l=n.mode,r=oG({mode:\"visible\",children:r.children},l,0,null),a=oX(a,l,u,null),a.flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&lP(n,e.child,null,u),n.child.memoizedState=uy(u),n.memoizedState=uv,a);if(0==(1&n.mode))return uw(e,n,u,null);if(\"$!\"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var o=r.dgst;return r=o,uw(e,n,u,r=a6(a=Error(f(419)),r,void 0))}if(o=0!=(u&e.childLanes),ua||o){if(null!==(r=u3)){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==a.retryLane&&(a.retryLane=l,lA(e,l),ok(r,e,l,-1))}return oM(),uw(e,n,u,r=a6(Error(f(421))))}return\"$?\"===l.data?(n.flags|=128,n.child=e.child,n=oB.bind(null,e),l._reactRetry=n,null):(e=a.treeContext,lc=rC(l.nextSibling),ls=n,lf=!0,ld=null,null!==e&&(le[ln++]=lr,le[ln++]=ll,le[ln++]=lt,lr=e.id,ll=e.overflow,lt=n),n=uk(n,r.children),n.flags|=4096,n)}(e,n,o,l,r,a,t);if(u){u=l.fallback,o=n.mode,r=(a=e.child).sibling;var i={mode:\"hidden\",children:l.children};return 0==(1&o)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=i,n.deletions=null):(l=oK(a,i)).subtreeFlags=14680064&a.subtreeFlags,null!==r?u=oK(r,u):(u=oX(u,o,t,null),u.flags|=2),u.return=n,l.return=n,l.sibling=u,n.child=l,l=u,u=n.child,o=null===(o=e.child.memoizedState)?uy(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},u.memoizedState=o,u.childLanes=e.childLanes&~t,n.memoizedState=uv,l}return e=(u=e.child).sibling,l=oK(u,{mode:\"visible\",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function uk(e,n){return(n=oG({mode:\"visible\",children:n},e.mode,0,null)).return=e,e.child=n}function uw(e,n,t,r){return null!==r&&lw(r),lP(n,e.child,null,t),e=uk(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function uS(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),lO(e.return,n,t)}function ux(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function uE(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(uu(e,n,r.children,t),0!=(2&(r=l6.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&uS(e,t,n);else if(19===e.tag)uS(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rB(l6,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case\"forwards\":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===l5(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ux(n,!1,l,t,a);break;case\"backwards\":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===l5(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ux(n,!0,t,null,a);break;case\"together\":ux(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function u_(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function uC(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),oe|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(f(153));if(null!==n.child){for(t=oK(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=oK(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function uP(e,n){if(!lf)switch(e.tailMode){case\"hidden\":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case\"collapsed\":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uN(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}l=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},a=function(){},u=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,l1(lZ.current);var a,u=null;switch(t){case\"input\":l=Z(e,l),r=Z(e,r),u=[];break;case\"select\":l=B({},l,{value:void 0}),r=B({},r,{value:void 0}),u=[];break;case\"textarea\":l=eu(e,l),r=eu(e,r),u=[];break;default:\"function\"!=typeof l.onClick&&\"function\"==typeof r.onClick&&(e.onclick=rg)}for(s in ew(t,r),t=null,l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&null!=l[s]){if(\"style\"===s){var o=l[s];for(a in o)o.hasOwnProperty(a)&&(t||(t={}),t[a]=\"\")}else\"dangerouslySetInnerHTML\"!==s&&\"children\"!==s&&\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&\"autoFocus\"!==s&&(p.hasOwnProperty(s)?u||(u=[]):(u=u||[]).push(s,null))}for(s in r){var i=r[s];if(o=null!=l?l[s]:void 0,r.hasOwnProperty(s)&&i!==o&&(null!=i||null!=o)){if(\"style\"===s){if(o){for(a in o)!o.hasOwnProperty(a)||i&&i.hasOwnProperty(a)||(t||(t={}),t[a]=\"\");for(a in i)i.hasOwnProperty(a)&&o[a]!==i[a]&&(t||(t={}),t[a]=i[a])}else t||(u||(u=[]),u.push(s,t)),t=i}else\"dangerouslySetInnerHTML\"===s?(i=i?i.__html:void 0,o=o?o.__html:void 0,null!=i&&o!==i&&(u=u||[]).push(s,i)):\"children\"===s?\"string\"!=typeof i&&\"number\"!=typeof i||(u=u||[]).push(s,\"\"+i):\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&(p.hasOwnProperty(s)?(null!=i&&\"onScroll\"===s&&rt(\"scroll\",e),u||o===i||(u=[])):(u=u||[]).push(s,i))}}t&&(u=u||[]).push(\"style\",t);var s=u;(n.updateQueue=s)&&(n.flags|=4)}},o=function(e,n,t,r){t!==r&&(n.flags|=4)};var uz=!1,uT=!1,uL=\"function\"==typeof WeakSet?WeakSet:Set,uR=null;function uM(e,n){var t=e.ref;if(null!==t){if(\"function\"==typeof t)try{t(null)}catch(t){o$(e,n,t)}else t.current=null}}function uF(e,n,t){try{t()}catch(t){o$(e,n,t)}}var uO=!1;function uD(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&uF(n,t,a)}l=l.next}while(l!==r)}}function uI(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function uU(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,\"function\"==typeof n?n(e):n.current=e}}function uV(e){return 5===e.tag||3===e.tag||4===e.tag}function u$(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||uV(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var uA=null,uj=!1;function uB(e,n,t){for(t=t.child;null!==t;)uH(e,n,t),t=t.sibling}function uH(e,n,t){if(e5&&\"function\"==typeof e5.onCommitFiberUnmount)try{e5.onCommitFiberUnmount(e6,t)}catch(e){}switch(t.tag){case 5:uT||uM(t,n);case 6:var r=uA,l=uj;uA=null,uB(e,n,t),uA=r,uj=l,null!==uA&&(uj?(e=uA,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):uA.removeChild(t.stateNode));break;case 18:null!==uA&&(uj?(e=uA,t=t.stateNode,8===e.nodeType?r_(e.parentNode,t):1===e.nodeType&&r_(e,t),nM(e)):r_(uA,t.stateNode));break;case 4:r=uA,l=uj,uA=t.stateNode.containerInfo,uj=!0,uB(e,n,t),uA=r,uj=l;break;case 0:case 11:case 14:case 15:if(!uT&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)?uF(t,n,u):0!=(4&a)&&uF(t,n,u)),l=l.next}while(l!==r)}uB(e,n,t);break;case 1:if(!uT&&(uM(t,n),\"function\"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){o$(t,n,e)}uB(e,n,t);break;case 21:default:uB(e,n,t);break;case 22:1&t.mode?(uT=(r=uT)||null!==t.memoizedState,uB(e,n,t),uT=r):uB(e,n,t)}}function uW(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new uL),n.forEach(function(n){var r=oH.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function uQ(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var l=t[r];try{var a=n,u=a;e:for(;null!==u;){switch(u.tag){case 5:uA=u.stateNode,uj=!1;break e;case 3:case 4:uA=u.stateNode.containerInfo,uj=!0;break e}u=u.return}if(null===uA)throw Error(f(160));uH(e,a,l),uA=null,uj=!1;var o=l.alternate;null!==o&&(o.return=null),l.return=null}catch(e){o$(l,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)uq(n,e),n=n.sibling}function uq(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(uQ(n,e),uK(e),4&r){try{uD(3,e,e.return),uI(3,e)}catch(n){o$(e,e.return,n)}try{uD(5,e,e.return)}catch(n){o$(e,e.return,n)}}break;case 1:uQ(n,e),uK(e),512&r&&null!==t&&uM(t,t.return);break;case 5:if(uQ(n,e),uK(e),512&r&&null!==t&&uM(t,t.return),32&e.flags){var l=e.stateNode;try{eh(l,\"\")}catch(n){o$(e,e.return,n)}}if(4&r&&null!=(l=e.stateNode)){var a=e.memoizedProps,u=null!==t?t.memoizedProps:a,o=e.type,i=e.updateQueue;if(e.updateQueue=null,null!==i)try{\"input\"===o&&\"radio\"===a.type&&null!=a.name&&ee(l,a),eS(o,u);var s=eS(o,a);for(u=0;u<i.length;u+=2){var c=i[u],d=i[u+1];\"style\"===c?eb(l,d):\"dangerouslySetInnerHTML\"===c?em(l,d):\"children\"===c?eh(l,d):_(l,c,d,s)}switch(o){case\"input\":en(l,a);break;case\"textarea\":ei(l,a);break;case\"select\":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ea(l,!!a.multiple,m,!1):!!a.multiple!==p&&(null!=a.defaultValue?ea(l,!!a.multiple,a.defaultValue,!0):ea(l,!!a.multiple,a.multiple?[]:\"\",!1))}l[rT]=a}catch(n){o$(e,e.return,n)}}break;case 6:if(uQ(n,e),uK(e),4&r){if(null===e.stateNode)throw Error(f(162));l=e.stateNode,a=e.memoizedProps;try{l.nodeValue=a}catch(n){o$(e,e.return,n)}}break;case 3:if(uQ(n,e),uK(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{nM(n.containerInfo)}catch(n){o$(e,e.return,n)}break;case 4:default:uQ(n,e),uK(e);break;case 13:uQ(n,e),uK(e),8192&(l=e.child).flags&&(a=null!==l.memoizedState,l.stateNode.isHidden=a,a&&(null===l.alternate||null===l.alternate.memoizedState)&&(oa=eJ())),4&r&&uW(e);break;case 22:if(c=null!==t&&null!==t.memoizedState,1&e.mode?(uT=(s=uT)||c,uQ(n,e),uT=s):uQ(n,e),uK(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!c&&0!=(1&e.mode))for(uR=e,c=e.child;null!==c;){for(d=uR=c;null!==uR;){switch(m=(p=uR).child,p.tag){case 0:case 11:case 14:case 15:uD(4,p,p.return);break;case 1:uM(p,p.return);var h=p.stateNode;if(\"function\"==typeof h.componentWillUnmount){r=p,t=p.return;try{n=r,h.props=n.memoizedProps,h.state=n.memoizedState,h.componentWillUnmount()}catch(e){o$(r,t,e)}}break;case 5:uM(p,p.return);break;case 22:if(null!==p.memoizedState){uX(d);continue}}null!==m?(m.return=p,uR=m):uX(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{l=d.stateNode,s?(a=l.style,\"function\"==typeof a.setProperty?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\"):(o=d.stateNode,u=null!=(i=d.memoizedProps.style)&&i.hasOwnProperty(\"display\")?i.display:null,o.style.display=ey(\"display\",u))}catch(n){o$(e,e.return,n)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=s?\"\":d.memoizedProps}catch(n){o$(e,e.return,n)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:uQ(n,e),uK(e),4&r&&uW(e);case 21:}}function uK(e){var n=e.flags;if(2&n){try{e:{for(var t=e.return;null!==t;){if(uV(t)){var r=t;break e}t=t.return}throw Error(f(160))}switch(r.tag){case 5:var l=r.stateNode;32&r.flags&&(eh(l,\"\"),r.flags&=-33);var a=u$(e);!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?r.insertBefore(n,t):r.appendChild(n);else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,a,l);break;case 3:case 4:var u=r.stateNode.containerInfo,o=u$(e);!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(n,t):r.insertBefore(n,t):(8===r.nodeType?(t=r.parentNode).insertBefore(n,r):(t=r).appendChild(n),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=rg));else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,o,u);break;default:throw Error(f(161))}}catch(n){o$(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function uY(e){for(;null!==uR;){var n=uR;if(0!=(8772&n.flags)){var t=n.alternate;try{if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:uT||uI(5,n);break;case 1:var r=n.stateNode;if(4&n.flags&&!uT){if(null===t)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:aZ(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var a=n.updateQueue;null!==a&&lX(n,a,r);break;case 3:var u=n.updateQueue;if(null!==u){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}lX(n,u,t)}break;case 5:var o=n.stateNode;if(null===t&&4&n.flags){t=o;var i=n.memoizedProps;switch(n.type){case\"button\":case\"input\":case\"select\":case\"textarea\":i.autoFocus&&t.focus();break;case\"img\":i.src&&(t.src=i.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===n.memoizedState){var s=n.alternate;if(null!==s){var c=s.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&nM(d)}}}break;default:throw Error(f(163))}uT||512&n.flags&&uU(n)}catch(e){o$(n,n.return,e)}}if(n===e){uR=null;break}if(null!==(t=n.sibling)){t.return=n.return,uR=t;break}uR=n.return}}function uX(e){for(;null!==uR;){var n=uR;if(n===e){uR=null;break}var t=n.sibling;if(null!==t){t.return=n.return,uR=t;break}uR=n.return}}function uG(e){for(;null!==uR;){var n=uR;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{uI(4,n)}catch(e){o$(n,t,e)}break;case 1:var r=n.stateNode;if(\"function\"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){o$(n,l,e)}}var a=n.return;try{uU(n)}catch(e){o$(n,a,e)}break;case 5:var u=n.return;try{uU(n)}catch(e){o$(n,u,e)}}}catch(e){o$(n,n.return,e)}if(n===e){uR=null;break}var o=n.sibling;if(null!==o){o.return=n.return,uR=o;break}uR=n.return}}var uZ=Math.ceil,uJ=C.ReactCurrentDispatcher,u0=C.ReactCurrentOwner,u1=C.ReactCurrentBatchConfig,u2=0,u3=null,u4=null,u8=0,u6=0,u5=rA(0),u9=0,u7=null,oe=0,on=0,ot=0,or=null,ol=null,oa=0,ou=1/0,oo=null,oi=!1,os=null,oc=null,of=!1,od=null,op=0,om=0,oh=null,og=-1,ov=0;function oy(){return 0!=(6&u2)?eJ():-1!==og?og:og=eJ()}function ob(e){return 0==(1&e.mode)?1:0!=(2&u2)&&0!==u8?u8&-u8:null!==lS.transition?(0===ov&&(ov=nu()),ov):0!==(e=nc)?e:e=void 0===(e=window.event)?16:nA(e.type)}function ok(e,n,t,r){if(50<om)throw om=0,oh=null,Error(f(185));ni(e,t,r),(0==(2&u2)||e!==u3)&&(e===u3&&(0==(2&u2)&&(on|=t),4===u9&&o_(e,u8)),ow(e,r),1===t&&0===u2&&0==(1&n.mode)&&(ou=eJ()+500,r2&&r8()))}function ow(e,n){var t,r=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-e9(a),o=1<<u,i=l[u];-1===i?(0==(o&t)||0!=(o&r))&&(l[u]=function(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return -1}}(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var l=nl(e,e===u3?u8:0);if(0===l)null!==r&&eX(r),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(null!=r&&eX(r),1===n)0===e.tag?(t=oC.bind(null,e),r2=!0,r4(t)):r4(oC.bind(null,e)),rx(function(){0==(6&u2)&&r8()}),r=null;else{switch(nf(l)){case 1:r=e1;break;case 4:r=e2;break;case 16:default:r=e3;break;case 536870912:r=e8}r=eY(r,oS.bind(null,e))}e.callbackPriority=n,e.callbackNode=r}}function oS(e,n){if(og=-1,ov=0,0!=(6&u2))throw Error(f(327));var t=e.callbackNode;if(oU()&&e.callbackNode!==t)return null;var r=nl(e,e===u3?u8:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||n)n=oF(e,r);else{n=r;var l=u2;u2|=2;var a=oR();for((u3!==e||u8!==n)&&(oo=null,ou=eJ()+500,oT(e,n));;)try{!function(){for(;null!==u4&&!eG();)oO(u4)}();break}catch(n){oL(e,n)}lM(),uJ.current=a,u2=l,null!==u4?n=0:(u3=null,u8=0,n=u9)}if(0!==n){if(2===n&&0!==(l=na(e))&&(r=l,n=ox(e,l)),1===n)throw t=u7,oT(e,0),o_(e,r),ow(e,eJ()),t;if(6===n)o_(e,r);else{if(l=e.current.alternate,0==(30&r)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!tD(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(l)&&(2===(n=oF(e,r))&&0!==(a=na(e))&&(r=a,n=ox(e,a)),1===n))throw t=u7,oT(e,0),o_(e,r),ow(e,eJ()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(f(345));case 2:case 5:oI(e,ol,oo);break;case 3:if(o_(e,r),(130023424&r)===r&&10<(n=oa+500-eJ())){if(0!==nl(e,0))break;if(((l=e.suspendedLanes)&r)!==r){oy(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rk(oI.bind(null,e,ol,oo),n);break}oI(e,ol,oo);break;case 4:if(o_(e,r),(4194240&r)===r)break;for(l=-1,n=e.eventTimes;0<r;){var u=31-e9(r);a=1<<u,(u=n[u])>l&&(l=u),r&=~a}if(r=l,10<(r=(120>(r=eJ()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uZ(r/1960))-r)){e.timeoutHandle=rk(oI.bind(null,e,ol,oo),r);break}oI(e,ol,oo);break;default:throw Error(f(329))}}}return ow(e,eJ()),e.callbackNode===t?oS.bind(null,e):null}function ox(e,n){var t=or;return e.current.memoizedState.isDehydrated&&(oT(e,n).flags|=256),2!==(e=oF(e,n))&&(n=ol,ol=t,null!==n&&oE(n)),e}function oE(e){null===ol?ol=e:ol.push.apply(ol,e)}function o_(e,n){for(n&=~ot,n&=~on,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-e9(n),r=1<<t;e[t]=-1,n&=~r}}function oC(e){if(0!=(6&u2))throw Error(f(327));oU();var n=nl(e,0);if(0==(1&n))return ow(e,eJ()),null;var t=oF(e,n);if(0!==e.tag&&2===t){var r=na(e);0!==r&&(n=r,t=ox(e,r))}if(1===t)throw t=u7,oT(e,0),o_(e,n),ow(e,eJ()),t;if(6===t)throw Error(f(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,oI(e,ol,oo),ow(e,eJ()),null}function oP(e,n){var t=u2;u2|=1;try{return e(n)}finally{0===(u2=t)&&(ou=eJ()+500,r2&&r8())}}function oN(e){null!==od&&0===od.tag&&0==(6&u2)&&oU();var n=u2;u2|=1;var t=u1.transition,r=nc;try{if(u1.transition=null,nc=1,e)return e()}finally{nc=r,u1.transition=t,0==(6&(u2=n))&&r8()}}function oz(){u6=u5.current,rj(u5)}function oT(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,rw(t)),null!==u4)for(t=u4.return;null!==t;){var r=t;switch(li(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&rX();break;case 3:l3(),rj(rQ),rj(rW),l7();break;case 5:l8(r);break;case 4:l3();break;case 13:case 19:rj(l6);break;case 10:lF(r.type._context);break;case 22:case 23:oz()}t=t.return}if(u3=e,u4=e=oK(e.current,null),u8=u6=n,u9=0,u7=null,ot=on=oe=0,ol=or=null,null!==lU){for(n=0;n<lU.length;n++)if(null!==(r=(t=lU[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}lU=null}return e}function oL(e,n){for(;;){var t=u4;try{if(lM(),ae.current=aK,au){for(var r=ar.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}au=!1}if(at=0,aa=al=ar=null,ao=!1,ai=0,u0.current=null,null===t||null===t.return){u9=1,u7=n,u4=null;break}e:{var a=e,u=t.return,o=t,i=n;if(n=u8,o.flags|=32768,null!==i&&\"object\"==typeof i&&\"function\"==typeof i.then){var s=i,c=o,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=ut(u);if(null!==m){m.flags&=-257,ur(m,u,o,a,n),1&m.mode&&un(a,s,n),n=m,i=s;var h=n.updateQueue;if(null===h){var g=new Set;g.add(i),n.updateQueue=g}else h.add(i);break e}if(0==(1&n)){un(a,s,n),oM();break e}i=Error(f(426))}else if(lf&&1&o.mode){var v=ut(u);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ur(v,u,o,a,n),lw(a8(i,o));break e}}a=i=a8(i,o),4!==u9&&(u9=2),null===or?or=[a]:or.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,n&=-n,a.lanes|=n;var y=a7(a,i,n);lK(a,y);break e;case 1:o=i;var b=a.type,k=a.stateNode;if(0==(128&a.flags)&&(\"function\"==typeof b.getDerivedStateFromError||null!==k&&\"function\"==typeof k.componentDidCatch&&(null===oc||!oc.has(k)))){a.flags|=65536,n&=-n,a.lanes|=n;var w=ue(a,o,n);lK(a,w);break e}}a=a.return}while(null!==a)}oD(t)}catch(e){n=e,u4===t&&null!==t&&(u4=t=t.return);continue}break}}function oR(){var e=uJ.current;return uJ.current=aK,null===e?aK:e}function oM(){(0===u9||3===u9||2===u9)&&(u9=4),null===u3||0==(268435455&oe)&&0==(268435455&on)||o_(u3,u8)}function oF(e,n){var t=u2;u2|=2;var r=oR();for((u3!==e||u8!==n)&&(oo=null,oT(e,n));;)try{!function(){for(;null!==u4;)oO(u4)}();break}catch(n){oL(e,n)}if(lM(),u2=t,uJ.current=r,null!==u4)throw Error(f(261));return u3=null,u8=0,u9}function oO(e){var n=i(e.alternate,e,u6);e.memoizedProps=e.pendingProps,null===n?oD(e):u4=n,u0.current=null}function oD(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=function(e,n,t){var r=n.pendingProps;switch(li(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return uN(n),null;case 1:case 17:return rY(n.type)&&rX(),uN(n),null;case 3:return r=n.stateNode,l3(),rj(rQ),rj(rW),l7(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&(ly(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==ld&&(oE(ld),ld=null))),a(e,n),uN(n),null;case 5:l8(n);var i=l1(l0.current);if(t=n.type,null!==e&&null!=n.stateNode)u(e,n,t,r,i),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(f(166));return uN(n),null}if(e=l1(lZ.current),ly(n)){r=n.stateNode,t=n.type;var s=n.memoizedProps;switch(r[rz]=n,r[rT]=s,e=0!=(1&n.mode),t){case\"dialog\":rt(\"cancel\",r),rt(\"close\",r);break;case\"iframe\":case\"object\":case\"embed\":rt(\"load\",r);break;case\"video\":case\"audio\":for(i=0;i<t9.length;i++)rt(t9[i],r);break;case\"source\":rt(\"error\",r);break;case\"img\":case\"image\":case\"link\":rt(\"error\",r),rt(\"load\",r);break;case\"details\":rt(\"toggle\",r);break;case\"input\":J(r,s),rt(\"invalid\",r);break;case\"select\":r._wrapperState={wasMultiple:!!s.multiple},rt(\"invalid\",r);break;case\"textarea\":eo(r,s),rt(\"invalid\",r)}for(var c in ew(t,s),i=null,s)if(s.hasOwnProperty(c)){var d=s[c];\"children\"===c?\"string\"==typeof d?r.textContent!==d&&(!0!==s.suppressHydrationWarning&&rh(r.textContent,d,e),i=[\"children\",d]):\"number\"==typeof d&&r.textContent!==\"\"+d&&(!0!==s.suppressHydrationWarning&&rh(r.textContent,d,e),i=[\"children\",\"\"+d]):p.hasOwnProperty(c)&&null!=d&&\"onScroll\"===c&&rt(\"scroll\",r)}switch(t){case\"input\":Y(r),et(r,s,!0);break;case\"textarea\":Y(r),es(r);break;case\"select\":case\"option\":break;default:\"function\"==typeof s.onClick&&(r.onclick=rg)}r=i,n.updateQueue=r,null!==r&&(n.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,\"http://www.w3.org/1999/xhtml\"===e&&(e=ec(t)),\"http://www.w3.org/1999/xhtml\"===e?\"script\"===t?((e=c.createElement(\"div\")).innerHTML=\"<script></script>\",e=e.removeChild(e.firstChild)):\"string\"==typeof r.is?e=c.createElement(t,{is:r.is}):(e=c.createElement(t),\"select\"===t&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,t),e[rz]=n,e[rT]=r,l(e,n,!1,!1),n.stateNode=e;e:{switch(c=eS(t,r),t){case\"dialog\":rt(\"cancel\",e),rt(\"close\",e),i=r;break;case\"iframe\":case\"object\":case\"embed\":rt(\"load\",e),i=r;break;case\"video\":case\"audio\":for(i=0;i<t9.length;i++)rt(t9[i],e);i=r;break;case\"source\":rt(\"error\",e),i=r;break;case\"img\":case\"image\":case\"link\":rt(\"error\",e),rt(\"load\",e),i=r;break;case\"details\":rt(\"toggle\",e),i=r;break;case\"input\":J(e,r),i=Z(e,r),rt(\"invalid\",e);break;case\"option\":default:i=r;break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),rt(\"invalid\",e);break;case\"textarea\":eo(e,r),i=eu(e,r),rt(\"invalid\",e)}for(s in ew(t,i),d=i)if(d.hasOwnProperty(s)){var m=d[s];\"style\"===s?eb(e,m):\"dangerouslySetInnerHTML\"===s?null!=(m=m?m.__html:void 0)&&em(e,m):\"children\"===s?\"string\"==typeof m?(\"textarea\"!==t||\"\"!==m)&&eh(e,m):\"number\"==typeof m&&eh(e,\"\"+m):\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&\"autoFocus\"!==s&&(p.hasOwnProperty(s)?null!=m&&\"onScroll\"===s&&rt(\"scroll\",e):null!=m&&_(e,s,m,c))}switch(t){case\"input\":Y(e),et(e,r,!1);break;case\"textarea\":Y(e),es(e);break;case\"option\":null!=r.value&&e.setAttribute(\"value\",\"\"+q(r.value));break;case\"select\":e.multiple=!!r.multiple,null!=(s=r.value)?ea(e,!!r.multiple,s,!1):null!=r.defaultValue&&ea(e,!!r.multiple,r.defaultValue,!0);break;default:\"function\"==typeof i.onClick&&(e.onclick=rg)}switch(t){case\"button\":case\"input\":case\"select\":case\"textarea\":r=!!r.autoFocus;break e;case\"img\":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return uN(n),null;case 6:if(e&&null!=n.stateNode)o(e,n,e.memoizedProps,r);else{if(\"string\"!=typeof r&&null===n.stateNode)throw Error(f(166));if(t=l1(l0.current),l1(lZ.current),ly(n)){if(r=n.stateNode,t=n.memoizedProps,r[rz]=n,(s=r.nodeValue!==t)&&null!==(e=ls))switch(e.tag){case 3:rh(r.nodeValue,t,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rh(r.nodeValue,t,0!=(1&e.mode))}s&&(n.flags|=4)}else(r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[rz]=n,n.stateNode=r}return uN(n),null;case 13:if(rj(l6),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(lf&&null!==lc&&0!=(1&n.mode)&&0==(128&n.flags))lb(),lk(),n.flags|=98560,s=!1;else if(s=ly(n),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(f(318));if(!(s=null!==(s=n.memoizedState)?s.dehydrated:null))throw Error(f(317));s[rz]=n}else lk(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;uN(n),s=!1}else null!==ld&&(oE(ld),ld=null),s=!0;if(!s)return 65536&n.flags?n:null}if(0!=(128&n.flags))return n.lanes=t,n;return(r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&l6.current)?0===u9&&(u9=3):oM())),null!==n.updateQueue&&(n.flags|=4),uN(n),null;case 4:return l3(),a(e,n),null===e&&ra(n.stateNode.containerInfo),uN(n),null;case 10:return lF(n.type._context),uN(n),null;case 19:if(rj(l6),null===(s=n.memoizedState))return uN(n),null;if(r=0!=(128&n.flags),null===(c=s.rendering)){if(r)uP(s,!1);else{if(0!==u9||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(c=l5(e))){for(n.flags|=128,uP(s,!1),null!==(r=c.updateQueue)&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;null!==t;)s=t,e=r,s.flags&=14680066,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return rB(l6,1&l6.current|2),n.child}e=e.sibling}null!==s.tail&&eJ()>ou&&(n.flags|=128,r=!0,uP(s,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=l5(c))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),uP(s,!0),null===s.tail&&\"hidden\"===s.tailMode&&!c.alternate&&!lf)return uN(n),null}else 2*eJ()-s.renderingStartTime>ou&&1073741824!==t&&(n.flags|=128,r=!0,uP(s,!1),n.lanes=4194304)}s.isBackwards?(c.sibling=n.child,n.child=c):(null!==(t=s.last)?t.sibling=c:n.child=c,s.last=c)}if(null!==s.tail)return n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=eJ(),n.sibling=null,t=l6.current,rB(l6,r?1&t|2:1&t),n;return uN(n),null;case 22:case 23:return oz(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&u6)&&(uN(n),6&n.subtreeFlags&&(n.flags|=8192)):uN(n),null;case 24:case 25:return null}throw Error(f(156,n.tag))}(t,n,u6))){u4=t;return}}else{if(null!==(t=function(e,n){switch(li(n),n.tag){case 1:return rY(n.type)&&rX(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return l3(),rj(rQ),rj(rW),l7(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return l8(n),null;case 13:if(rj(l6),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(f(340));lk()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return rj(l6),null;case 4:return l3(),null;case 10:return lF(n.type._context),null;case 22:case 23:return oz(),null;default:return null}}(t,n))){t.flags&=32767,u4=t;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{u9=6,u4=null;return}}if(null!==(n=n.sibling)){u4=n;return}u4=n=e}while(null!==n);0===u9&&(u9=5)}function oI(e,n,t){var r=nc,l=u1.transition;try{u1.transition=null,nc=1,function(e,n,t,r){do oU();while(null!==od);if(0!=(6&u2))throw Error(f(327));t=e.finishedWork;var l=e.finishedLanes;if(null!==t){if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0;var a=t.lanes|t.childLanes;if(function(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-e9(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,a),e===u3&&(u4=u3=null,u8=0),0==(2064&t.subtreeFlags)&&0==(2064&t.flags)||of||(of=!0,u=e3,o=function(){return oU(),null},eY(u,o)),a=0!=(15990&t.flags),0!=(15990&t.subtreeFlags)||a){a=u1.transition,u1.transition=null;var u,o,i,s,c,d=nc;nc=1;var p=u2;u2|=4,u0.current=null,function(e,n){if(rv=nO,tA(e=t$())){if(\"selectionStart\"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l,a=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(e){t=null;break e}var o=0,i=-1,s=-1,c=0,d=0,p=e,m=null;n:for(;;){for(;p!==t||0!==a&&3!==p.nodeType||(i=o+a),p!==u||0!==r&&3!==p.nodeType||(s=o+r),3===p.nodeType&&(o+=p.nodeValue.length),null!==(l=p.firstChild);)m=p,p=l;for(;;){if(p===e)break n;if(m===t&&++c===a&&(i=o),m===u&&++d===r&&(s=o),null!==(l=p.nextSibling))break;m=(p=m).parentNode}p=l}t=-1===i||-1===s?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ry={focusedElem:e,selectionRange:t},nO=!1,uR=n;null!==uR;)if(e=(n=uR).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,uR=e;else for(;null!==uR;){n=uR;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:aZ(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent=\"\":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(f(163))}}catch(e){o$(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,uR=e;break}uR=n.return}h=uO,uO=!1}(e,t),uq(t,e),function(e){var n=t$(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&function e(n,t){return!!n&&!!t&&(n===t||(!n||3!==n.nodeType)&&(t&&3===t.nodeType?e(n,t.parentNode):\"contains\"in n?n.contains(t):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(t))))}(t.ownerDocument.documentElement,t)){if(null!==r&&tA(t)){if(n=r.start,void 0===(e=r.end)&&(e=n),\"selectionStart\"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=tV(t,a);var u=tV(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(ry),nO=!!rv,ry=rv=null,e.current=t,i=t,s=e,c=l,uR=i,function e(n,t,r){for(var l=0!=(1&n.mode);null!==uR;){var a=uR,u=a.child;if(22===a.tag&&l){var o=null!==a.memoizedState||uz;if(!o){var i=a.alternate,s=null!==i&&null!==i.memoizedState||uT;i=uz;var c=uT;if(uz=o,(uT=s)&&!c)for(uR=a;null!==uR;)s=(o=uR).child,22===o.tag&&null!==o.memoizedState?uG(a):null!==s?(s.return=o,uR=s):uG(a);for(;null!==u;)uR=u,e(u,t,r),u=u.sibling;uR=a,uz=i,uT=c}uY(n,t,r)}else 0!=(8772&a.subtreeFlags)&&null!==u?(u.return=a,uR=u):uY(n,t,r)}}(i,s,c),eZ(),u2=p,nc=d,u1.transition=a}else e.current=t;if(of&&(of=!1,od=e,op=l),0===(a=e.pendingLanes)&&(oc=null),function(e){if(e5&&\"function\"==typeof e5.onCommitFiberRoot)try{e5.onCommitFiberRoot(e6,e,void 0,128==(128&e.current.flags))}catch(e){}}(t.stateNode,r),ow(e,eJ()),null!==n)for(r=e.onRecoverableError,t=0;t<n.length;t++)r((l=n[t]).value,{componentStack:l.stack,digest:l.digest});if(oi)throw oi=!1,e=os,os=null,e;0!=(1&op)&&0!==e.tag&&oU(),0!=(1&(a=e.pendingLanes))?e===oh?om++:(om=0,oh=e):om=0,r8()}}(e,n,t,r)}finally{u1.transition=l,nc=r}return null}function oU(){if(null!==od){var e=nf(op),n=u1.transition,t=nc;try{if(u1.transition=null,nc=16>e?16:e,null===od)var r=!1;else{if(e=od,od=null,op=0,0!=(6&u2))throw Error(f(331));var l=u2;for(u2|=4,uR=e.current;null!==uR;){var a=uR,u=a.child;if(0!=(16&uR.flags)){var o=a.deletions;if(null!==o){for(var i=0;i<o.length;i++){var s=o[i];for(uR=s;null!==uR;){var c=uR;switch(c.tag){case 0:case 11:case 15:uD(8,c,a)}var d=c.child;if(null!==d)d.return=c,uR=d;else for(;null!==uR;){var p=(c=uR).sibling,m=c.return;if(!function e(n){var t=n.alternate;null!==t&&(n.alternate=null,e(t)),n.child=null,n.deletions=null,n.sibling=null,5===n.tag&&null!==(t=n.stateNode)&&(delete t[rz],delete t[rT],delete t[rR],delete t[rM],delete t[rF]),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}(c),c===s){uR=null;break}if(null!==p){p.return=m,uR=p;break}uR=m}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}uR=a}}if(0!=(2064&a.subtreeFlags)&&null!==u)u.return=a,uR=u;else for(;null!==uR;){if(a=uR,0!=(2048&a.flags))switch(a.tag){case 0:case 11:case 15:uD(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,uR=y;break}uR=a.return}}var b=e.current;for(uR=b;null!==uR;){var k=(u=uR).child;if(0!=(2064&u.subtreeFlags)&&null!==k)k.return=u,uR=k;else for(u=b;null!==uR;){if(o=uR,0!=(2048&o.flags))try{switch(o.tag){case 0:case 11:case 15:uI(9,o)}}catch(e){o$(o,o.return,e)}if(o===u){uR=null;break}var w=o.sibling;if(null!==w){w.return=o.return,uR=w;break}uR=o.return}}if(u2=l,r8(),e5&&\"function\"==typeof e5.onPostCommitFiberRoot)try{e5.onPostCommitFiberRoot(e6,e)}catch(e){}r=!0}return r}finally{nc=t,u1.transition=n}}return!1}function oV(e,n,t){n=a7(e,n=a8(t,n),1),e=lQ(e,n,1),n=oy(),null!==e&&(ni(e,1,n),ow(e,n))}function o$(e,n,t){if(3===e.tag)oV(e,e,t);else for(;null!==n;){if(3===n.tag){oV(n,e,t);break}if(1===n.tag){var r=n.stateNode;if(\"function\"==typeof n.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===oc||!oc.has(r))){e=ue(n,e=a8(t,e),1),n=lQ(n,e,1),e=oy(),null!==n&&(ni(n,1,e),ow(n,e));break}}n=n.return}}function oA(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=oy(),e.pingedLanes|=e.suspendedLanes&t,u3===e&&(u8&t)===t&&(4===u9||3===u9&&(130023424&u8)===u8&&500>eJ()-oa?oT(e,0):ot|=t),ow(e,n)}function oj(e,n){0===n&&(0==(1&e.mode)?n=1:(n=nt,0==(130023424&(nt<<=1))&&(nt=4194304)));var t=oy();null!==(e=lA(e,n))&&(ni(e,n,t),ow(e,t))}function oB(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),oj(e,t)}function oH(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(f(314))}null!==r&&r.delete(n),oj(e,t)}function oW(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oQ(e,n,t,r){return new oW(e,n,t,r)}function oq(e){return!(!(e=e.prototype)||!e.isReactComponent)}function oK(e,n){var t=e.alternate;return null===t?((t=oQ(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function oY(e,n,t,r,l,a){var u=2;if(r=e,\"function\"==typeof e)oq(e)&&(u=1);else if(\"string\"==typeof e)u=5;else e:switch(e){case z:return oX(t.children,l,a,n);case T:u=8,l|=8;break;case L:return(e=oQ(12,t,n,2|l)).elementType=L,e.lanes=a,e;case O:return(e=oQ(13,t,n,l)).elementType=O,e.lanes=a,e;case D:return(e=oQ(19,t,n,l)).elementType=D,e.lanes=a,e;case V:return oG(t,l,a,n);default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case R:u=10;break e;case M:u=9;break e;case F:u=11;break e;case I:u=14;break e;case U:u=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,\"\"))}return(n=oQ(u,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function oX(e,n,t,r){return(e=oQ(7,e,r,n)).lanes=t,e}function oG(e,n,t,r){return(e=oQ(22,e,r,n)).elementType=V,e.lanes=t,e.stateNode={isHidden:!1},e}function oZ(e,n,t){return(e=oQ(6,e,null,n)).lanes=t,e}function oJ(e,n,t){return(n=oQ(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function o0(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function o1(e,n,t,r,l,a,u,o,i){return e=new o0(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=oQ(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},lB(a),e}function o2(e){if(!e)return rH;e=e._reactInternals;e:{if(eW(e)!==e||1!==e.tag)throw Error(f(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(rY(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(f(171))}if(1===e.tag){var t=e.type;if(rY(t))return rZ(e,t,n)}return n}function o3(e,n,t,r,l,a,u,o,i){return(e=o1(t,r,!0,e,l,a,u,o,i)).context=o2(null),t=e.current,(a=lW(r=oy(),l=ob(t))).callback=null!=n?n:null,lQ(t,a,l),e.current.lanes=l,ni(e,l,r),ow(e,r),e}function o4(e,n,t,r){var l=n.current,a=oy(),u=ob(l);return t=o2(t),null===n.context?n.context=t:n.pendingContext=t,(n=lW(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=lQ(l,n,u))&&(ok(e,l,u,a),lq(e,l,u)),u}function o8(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function o6(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function o5(e,n){o6(e,n),(e=e.alternate)&&o6(e,n)}i=function(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps||rQ.current)ua=!0;else{if(0==(e.lanes&t)&&0==(128&n.flags))return ua=!1,function(e,n,t){switch(n.tag){case 3:uh(n),lk();break;case 5:l4(n);break;case 1:rY(n.type)&&rJ(n);break;case 4:l2(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;rB(lz,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState)){if(null!==r.dehydrated)return rB(l6,1&l6.current),n.flags|=128,null;if(0!=(t&n.child.childLanes))return ub(e,n,t);return rB(l6,1&l6.current),null!==(e=uC(e,n,t))?e.sibling:null}rB(l6,1&l6.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return uE(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),rB(l6,l6.current),!r)return null;break;case 22:case 23:return n.lanes=0,uc(e,n,t)}return uC(e,n,t)}(e,n,t);ua=0!=(131072&e.flags)}}else ua=!1,lf&&0!=(1048576&n.flags)&&lu(n,r7,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;u_(e,n),e=n.pendingProps;var l=rK(n,rW.current);lD(n,t),l=ad(null,n,r,e,l,t);var a=ap();return n.flags|=1,\"object\"==typeof l&&null!==l&&\"function\"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,rY(r)?(a=!0,rJ(n)):a=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,lB(n),l.updater=a0,n.stateNode=l,l._reactInternals=n,a4(n,r,e,t),n=um(null,n,r,!0,a,t)):(n.tag=0,lf&&a&&lo(n),uu(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(u_(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=function(e){if(\"function\"==typeof e)return oq(e)?1:0;if(null!=e){if((e=e.$$typeof)===F)return 11;if(e===I)return 14}return 2}(r),e=aZ(r,e),l){case 0:n=ud(null,n,r,e,t);break e;case 1:n=up(null,n,r,e,t);break e;case 11:n=uo(null,n,r,e,t);break e;case 14:n=ui(null,n,r,aZ(r.type,e),t);break e}throw Error(f(306,r,\"\"))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),ud(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),up(e,n,r,l,t);case 3:e:{if(uh(n),null===e)throw Error(f(387));r=n.pendingProps,l=(a=n.memoizedState).element,lH(e,n),lY(n,r,null,t);var u=n.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){l=a8(Error(f(423)),n),n=ug(e,n,r,t,l);break e}if(r!==l){l=a8(Error(f(424)),n),n=ug(e,n,r,t,l);break e}for(lc=rC(n.stateNode.containerInfo.firstChild),ls=n,lf=!0,ld=null,t=lN(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(lk(),r===l){n=uC(e,n,t);break e}uu(e,n,r,t)}n=n.child}return n;case 5:return l4(n),null===e&&lg(n),r=n.type,l=n.pendingProps,a=null!==e?e.memoizedProps:null,u=l.children,rb(r,l)?u=null:null!==a&&rb(r,a)&&(n.flags|=32),uf(e,n),uu(e,n,u,t),n.child;case 6:return null===e&&lg(n),null;case 13:return ub(e,n,t);case 4:return l2(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=lP(n,null,r,t):uu(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),uo(e,n,r,l,t);case 7:return uu(e,n,n.pendingProps,t),n.child;case 8:case 12:return uu(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,a=n.memoizedProps,u=l.value,rB(lz,r._currentValue),r._currentValue=u,null!==a){if(tD(a.value,u)){if(a.children===l.children&&!rQ.current){n=uC(e,n,t);break e}}else for(null!==(a=n.child)&&(a.return=n);null!==a;){var o=a.dependencies;if(null!==o){u=a.child;for(var i=o.firstContext;null!==i;){if(i.context===r){if(1===a.tag){(i=lW(-1,t&-t)).tag=2;var s=a.updateQueue;if(null!==s){var c=(s=s.shared).pending;null===c?i.next=i:(i.next=c.next,c.next=i),s.pending=i}}a.lanes|=t,null!==(i=a.alternate)&&(i.lanes|=t),lO(a.return,t,n),o.lanes|=t;break}i=i.next}}else if(10===a.tag)u=a.type===n.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(f(341));u.lanes|=t,null!==(o=u.alternate)&&(o.lanes|=t),lO(u,t,n),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===n){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}}uu(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,lD(n,t),r=r(l=lI(l)),n.flags|=1,uu(e,n,r,t),n.child;case 14:return l=aZ(r=n.type,n.pendingProps),l=aZ(r.type,l),ui(e,n,r,l,t);case 15:return us(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:aZ(r,l),u_(e,n),n.tag=1,rY(r)?(e=!0,rJ(n)):e=!1,lD(n,t),a2(n,r,l),a4(n,r,l,t),um(null,n,r,!0,e,t);case 19:return uE(e,n,t);case 22:return uc(e,n,t)}throw Error(f(156,n.tag))};var o9=\"function\"==typeof reportError?reportError:function(e){console.error(e)};function o7(e){this._internalRoot=e}function ie(e){this._internalRoot=e}function it(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ir(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function il(){}function ia(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if(\"function\"==typeof l){var o=l;l=function(){var e=o8(u);o.call(e)}}o4(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if(\"function\"==typeof r){var a=r;r=function(){var e=o8(u);a.call(e)}}var u=o3(n,r,e,0,null,!1,!1,\"\",il);return e._reactRootContainer=u,e[rL]=u.current,ra(8===e.nodeType?e.parentNode:e),oN(),u}for(;l=e.lastChild;)e.removeChild(l);if(\"function\"==typeof r){var o=r;r=function(){var e=o8(i);o.call(e)}}var i=o1(e,0,!1,null,null,!1,!1,\"\",il);return e._reactRootContainer=i,e[rL]=i.current,ra(8===e.nodeType?e.parentNode:e),oN(function(){o4(n,i,t,r)}),i}(t,n,e,l,r);return o8(u)}ie.prototype.render=o7.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(f(409));o4(e,n,null,null)},ie.prototype.unmount=o7.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;oN(function(){o4(null,e,null,null)}),n[rL]=null}},ie.prototype.unstable_scheduleHydration=function(e){if(e){var n=nh();e={blockedOn:null,target:e,priority:n};for(var t=0;t<nE.length&&0!==n&&n<nE[t].priority;t++);nE.splice(t,0,e),0===t&&nN(e)}},nd=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=nr(n.pendingLanes);0!==t&&(ns(n,1|t),ow(n,eJ()),0==(6&u2)&&(ou=eJ()+500,r8()))}break;case 13:oN(function(){var n=lA(e,1);null!==n&&ok(n,e,1,oy())}),o5(e,1)}},np=function(e){if(13===e.tag){var n=lA(e,134217728);null!==n&&ok(n,e,134217728,oy()),o5(e,134217728)}},nm=function(e){if(13===e.tag){var n=ob(e),t=lA(e,n);null!==t&&ok(t,e,n,oy()),o5(e,n)}},nh=function(){return nc},ng=function(e,n){var t=nc;try{return nc=e,n()}finally{nc=t}},e_=function(e,n,t){switch(n){case\"input\":if(en(e,t),n=t.name,\"radio\"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+n)+'][type=\"radio\"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=rU(r);if(!l)throw Error(f(90));X(r),en(r,l)}}}break;case\"textarea\":ei(e,t);break;case\"select\":null!=(n=t.value)&&ea(e,!!t.multiple,n,!1)}},eL=oP,eR=oN;var iu={findFiberByHostInstance:rO,bundleType:0,version:\"18.3.1\",rendererPackageName:\"react-dom\"},io={bundleType:iu.bundleType,version:iu.version,rendererPackageName:iu.rendererPackageName,rendererConfig:iu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=eK(e))?null:e.stateNode},findFiberByHostInstance:iu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.1-next-f1338f8080-20240426\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ii.isDisabled&&ii.supportsFiber)try{e6=ii.inject(io),e5=ii}catch(e){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[rD,rI,rU,ez,eT,oP]},n.createPortal=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!it(n))throw Error(f(200));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:N,key:null==r?null:\"\"+r,children:e,containerInfo:n,implementation:t}}(e,n,null,t)},n.createRoot=function(e,n){if(!it(e))throw Error(f(299));var t=!1,r=\"\",l=o9;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),n=o1(e,1,!1,null,null,t,!1,r,l),e[rL]=n.current,ra(8===e.nodeType?e.parentNode:e),new o7(n)},n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if(\"function\"==typeof e.render)throw Error(f(188));throw Error(f(268,e=Object.keys(e).join(\",\")))}return e=null===(e=eK(n))?null:e.stateNode},n.flushSync=function(e){return oN(e)},n.hydrate=function(e,n,t){if(!ir(n))throw Error(f(200));return ia(null,e,n,!0,t)},n.hydrateRoot=function(e,n,t){if(!it(e))throw Error(f(405));var r=null!=t&&t.hydratedSources||null,l=!1,a=\"\",u=o9;if(null!=t&&(!0===t.unstable_strictMode&&(l=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(u=t.onRecoverableError)),n=o3(n,null,e,1,null!=t?t:null,l,!1,a,u),e[rL]=n.current,ra(e),r)for(e=0;e<r.length;e++)l=(l=(t=r[e])._getVersion)(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new ie(n)},n.render=function(e,n,t){if(!ir(n))throw Error(f(200));return ia(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!ir(e))throw Error(f(40));return!!e._reactRootContainer&&(oN(function(){ia(null,null,e,!1,function(){e._reactRootContainer=null,e[rL]=null})}),!0)},n.unstable_batchedUpdates=oP,n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!ir(t))throw Error(f(200));if(null==e||void 0===e._reactInternals)throw Error(f(38));return ia(e,n,t,!1,r)},n.version=\"18.3.1-next-f1338f8080-20240426\"},20745:function(e,n,t){var r=t(73935);n.createRoot=r.createRoot,n.hydrateRoot=r.hydrateRoot},73935:function(e,n,t){!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(64448)},75251:function(e,n,t){/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var r=t(67294),l=Symbol.for(\"react.element\"),a=Symbol.for(\"react.fragment\"),u=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,a={},s=null,c=null;for(r in void 0!==t&&(s=\"\"+t),void 0!==n.key&&(s=\"\"+n.key),void 0!==n.ref&&(c=n.ref),n)u.call(n,r)&&!i.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:o.current}}n.Fragment=a,n.jsx=s,n.jsxs=s},72408:function(e,n){/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var t=Symbol.for(\"react.element\"),r=Symbol.for(\"react.portal\"),l=Symbol.for(\"react.fragment\"),a=Symbol.for(\"react.strict_mode\"),u=Symbol.for(\"react.profiler\"),o=Symbol.for(\"react.provider\"),i=Symbol.for(\"react.context\"),s=Symbol.for(\"react.forward_ref\"),c=Symbol.for(\"react.suspense\"),f=Symbol.for(\"react.memo\"),d=Symbol.for(\"react.lazy\"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}function y(){}function b(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,n,\"setState\")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},y.prototype=v.prototype;var k=b.prototype=new y;k.constructor=b,h(k,v.prototype),k.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,n,r){var l,a={},u=null,o=null;if(null!=n)for(l in void 0!==n.ref&&(o=n.ref),void 0!==n.key&&(u=\"\"+n.key),n)S.call(n,l)&&!E.hasOwnProperty(l)&&(a[l]=n[l]);var i=arguments.length-2;if(1===i)a.children=r;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(l in i=e.defaultProps)void 0===a[l]&&(a[l]=i[l]);return{$$typeof:t,type:e,key:u,ref:o,props:a,_owner:x.current}}function C(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===t}var P=/\\/+/g;function N(e,n){var t,r;return\"object\"==typeof e&&null!==e&&null!=e.key?(t=\"\"+e.key,r={\"=\":\"=0\",\":\":\"=2\"},\"$\"+t.replace(/[=:]/g,function(e){return r[e]})):n.toString(36)}function z(e,n,l){if(null==e)return e;var a=[],u=0;return!function e(n,l,a,u,o){var i,s,c,f=typeof n;(\"undefined\"===f||\"boolean\"===f)&&(n=null);var d=!1;if(null===n)d=!0;else switch(f){case\"string\":case\"number\":d=!0;break;case\"object\":switch(n.$$typeof){case t:case r:d=!0}}if(d)return o=o(d=n),n=\"\"===u?\".\"+N(d,0):u,w(o)?(a=\"\",null!=n&&(a=n.replace(P,\"$&/\")+\"/\"),e(o,l,a,\"\",function(e){return e})):null!=o&&(C(o)&&(i=o,s=a+(!o.key||d&&d.key===o.key?\"\":(\"\"+o.key).replace(P,\"$&/\")+\"/\")+n,o={$$typeof:t,type:i.type,key:s,ref:i.ref,props:i.props,_owner:i._owner}),l.push(o)),1;if(d=0,u=\"\"===u?\".\":u+\":\",w(n))for(var m=0;m<n.length;m++){var h=u+N(f=n[m],m);d+=e(f,l,a,h,o)}else if(\"function\"==typeof(h=null===(c=n)||\"object\"!=typeof c?null:\"function\"==typeof(c=p&&c[p]||c[\"@@iterator\"])?c:null))for(n=h.call(n),m=0;!(f=n.next()).done;)h=u+N(f=f.value,m++),d+=e(f,l,a,h,o);else if(\"object\"===f)throw Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===(l=String(n))?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":l)+\"). If you meant to render a collection of children, use an array instead.\");return d}(e,a,\"\",\"\",function(e){return n.call(l,e,u++)}),a}function T(e){if(-1===e._status){var n=e._result;(n=n()).then(function(n){(0===e._status||-1===e._status)&&(e._status=1,e._result=n)},function(n){(0===e._status||-1===e._status)&&(e._status=2,e._result=n)}),-1===e._status&&(e._status=0,e._result=n)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},R={transition:null};function M(){throw Error(\"act(...) is not supported in production builds of React.\")}n.Children={map:z,forEach:function(e,n,t){z(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return z(e,function(){n++}),n},toArray:function(e){return z(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},n.Component=v,n.Fragment=l,n.Profiler=u,n.PureComponent=b,n.StrictMode=a,n.Suspense=c,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:R,ReactCurrentOwner:x},n.act=M,n.cloneElement=function(e,n,r){if(null==e)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+e+\".\");var l=h({},e.props),a=e.key,u=e.ref,o=e._owner;if(null!=n){if(void 0!==n.ref&&(u=n.ref,o=x.current),void 0!==n.key&&(a=\"\"+n.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in n)S.call(n,s)&&!E.hasOwnProperty(s)&&(l[s]=void 0===n[s]&&void 0!==i?i[s]:n[s])}var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){i=Array(s);for(var c=0;c<s;c++)i[c]=arguments[c+2];l.children=i}return{$$typeof:t,type:e.type,key:a,ref:u,props:l,_owner:o}},n.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},n.createElement=_,n.createFactory=function(e){var n=_.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:s,render:e}},n.isValidElement=C,n.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},n.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},n.startTransition=function(e){var n=R.transition;R.transition={};try{e()}finally{R.transition=n}},n.unstable_act=M,n.useCallback=function(e,n){return L.current.useCallback(e,n)},n.useContext=function(e){return L.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return L.current.useDeferredValue(e)},n.useEffect=function(e,n){return L.current.useEffect(e,n)},n.useId=function(){return L.current.useId()},n.useImperativeHandle=function(e,n,t){return L.current.useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return L.current.useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return L.current.useLayoutEffect(e,n)},n.useMemo=function(e,n){return L.current.useMemo(e,n)},n.useReducer=function(e,n,t){return L.current.useReducer(e,n,t)},n.useRef=function(e){return L.current.useRef(e)},n.useState=function(e){return L.current.useState(e)},n.useSyncExternalStore=function(e,n,t){return L.current.useSyncExternalStore(e,n,t)},n.useTransition=function(){return L.current.useTransition()},n.version=\"18.3.1\"},67294:function(e,n,t){e.exports=t(72408)},85893:function(e,n,t){e.exports=t(75251)},60053:function(e,n){/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */function t(e,n){var t=e.length;for(e.push(n);0<t;){var r=t-1>>>1,l=e[r];if(0<a(l,n))e[r]=n,e[t]=l,t=r;else break}}function r(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;for(var r=0,l=e.length,u=l>>>1;r<u;){var o=2*(r+1)-1,i=e[o],s=o+1,c=e[s];if(0>a(i,t))s<l&&0>a(c,i)?(e[r]=c,e[s]=t,r=s):(e[r]=i,e[o]=t,r=o);else if(s<l&&0>a(c,t))e[r]=c,e[s]=t,r=s;else break}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if(\"object\"==typeof performance&&\"function\"==typeof performance.now){var u,o=performance;n.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();n.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,v=!1,y=\"function\"==typeof setTimeout?setTimeout:null,b=\"function\"==typeof clearTimeout?clearTimeout:null,k=\"undefined\"!=typeof setImmediate?setImmediate:null;function w(e){for(var n=r(f);null!==n;){if(null===n.callback)l(f);else if(n.startTime<=e)l(f),n.sortIndex=n.expirationTime,t(c,n);else break;n=r(f)}}function S(e){if(v=!1,w(e),!g){if(null!==r(c))g=!0,M(x);else{var n=r(f);null!==n&&F(S,n.startTime-e)}}}function x(e,t){g=!1,v&&(v=!1,b(C),C=-1),h=!0;var a=m;try{for(w(t),p=r(c);null!==p&&(!(p.expirationTime>t)||e&&!z());){var u=p.callback;if(\"function\"==typeof u){p.callback=null,m=p.priorityLevel;var o=u(p.expirationTime<=t);t=n.unstable_now(),\"function\"==typeof o?p.callback=o:p===r(c)&&l(c),w(t)}else l(c);p=r(c)}if(null!==p)var i=!0;else{var s=r(f);null!==s&&F(S,s.startTime-t),i=!1}return i}finally{p=null,m=a,h=!1}}\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,_=null,C=-1,P=5,N=-1;function z(){return!(n.unstable_now()-N<P)}function T(){if(null!==_){var e=n.unstable_now();N=e;var t=!0;try{t=_(!0,e)}finally{t?u():(E=!1,_=null)}}else E=!1}if(\"function\"==typeof k)u=function(){k(T)};else if(\"undefined\"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=T,u=function(){R.postMessage(null)}}else u=function(){y(T,0)};function M(e){_=e,E||(E=!0,u())}function F(e,t){C=y(function(){e(n.unstable_now())},t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){g||h||(g=!0,M(x))},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return m},n.unstable_getFirstCallbackNode=function(){return r(c)},n.unstable_next=function(e){switch(m){case 1:case 2:case 3:var n=3;break;default:n=m}var t=m;m=n;try{return e()}finally{m=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=m;m=e;try{return n()}finally{m=t}},n.unstable_scheduleCallback=function(e,l,a){var u=n.unstable_now();switch(a=\"object\"==typeof a&&null!==a&&\"number\"==typeof(a=a.delay)&&0<a?u+a:u,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:d++,callback:l,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>u?(e.sortIndex=a,t(f,e),null===r(c)&&e===r(f)&&(v?(b(C),C=-1):v=!0,F(S,a-u))):(e.sortIndex=o,t(c,e),g||h||(g=!0,M(x))),e},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(e){var n=m;return function(){var t=m;m=n;try{return e.apply(this,arguments)}finally{m=t}}}},63840:function(e,n,t){e.exports=t(60053)}}]);"
  },
  {
    "path": "docs/_next/static/chunks/main-0fb83ae612d5aa4d.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{84878:function(e,t){\"use strict\";function r(){return\"\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getDeploymentIdQueryOrEmptyString\",{enumerable:!0,get:function(){return r}})},40037:function(){\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var e=/\\((.*)\\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if(\"function\"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(e),t)})},6220:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addBasePath\",{enumerable:!0,get:function(){return a}});let n=r(70679),o=r(51297);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,\"\"))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38109:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addLocale\",{enumerable:!0,get:function(){return n}}),r(51297);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3782:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION:function(){return n},FLIGHT_PARAMETERS:function(){return l},NEXT_DID_POSTPONE_HEADER:function(){return c},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return s},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return u},RSC_HEADER:function(){return r}});let r=\"RSC\",n=\"Next-Action\",o=\"Next-Router-State-Tree\",a=\"Next-Router-Prefetch\",i=\"Next-Url\",u=\"text/x-component\",l=[[r],[o],[a]],s=\"_rsc\",c=\"x-nextjs-postponed\";(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66937:function(e,t){\"use strict\";let r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addMessageListener:function(){return o},connectHMR:function(){return u},sendMessage:function(){return a}});let n=[];function o(e){n.push(e)}function a(e){if(r&&r.readyState===r.OPEN)return r.send(e)}let i=0;function u(e){!function t(){let o;function a(){if(r.onerror=null,r.onclose=null,r.close(),++i>25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return\"http:\"===t?\"ws\":\"wss\"}(e.assetPrefix||\"\"),c=e.assetPrefix.replace(/^\\/+/,\"\"),f=s+\"://\"+u+\":\"+l+(c?\"/\"+c:\"\");c.startsWith(\"http\")&&(f=s+\"://\"+c.split(\"://\",2)[1]),(r=new window.WebSocket(\"\"+f+e.path)).onopen=function(){i=0,window.console.log(\"[HMR] connected\")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(t)}}()}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27448:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"detectDomainLocale\",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71447:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"hasBasePath\",{enumerable:!0,get:function(){return o}});let n=r(37459);function o(e){return(0,n.pathHasPrefix)(e,\"\")}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6166:function(e,t){\"use strict\";let r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return n},default:function(){return i},isEqualNode:function(){return a}});let n={acceptCharset:\"accept-charset\",className:\"class\",htmlFor:\"for\",httpEquiv:\"http-equiv\",noModule:\"noModule\"};function o(e){let{type:t,props:r}=e,o=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||\"children\"===e||\"dangerouslySetInnerHTML\"===e||void 0===r[e])continue;let a=n[e]||e.toLowerCase();\"script\"===t&&(\"async\"===a||\"defer\"===a||\"noModule\"===a)?o[a]=!!r[e]:o.setAttribute(a,r[e])}let{children:a,dangerouslySetInnerHTML:i}=r;return i?o.innerHTML=i.__html||\"\":a&&(o.textContent=\"string\"==typeof a?a:Array.isArray(a)?a.join(\"\"):\"\"),o}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute(\"nonce\");if(r&&!e.getAttribute(\"nonce\")){let n=t.cloneNode(!0);return n.setAttribute(\"nonce\",\"\"),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if(\"link\"===e.type&&e.props[\"data-optimized-fonts\"]){if(document.querySelector('style[data-href=\"'+e.props[\"data-href\"]+'\"]'))return;e.props.href=e.props[\"data-href\"],e.props[\"data-href\"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o=\"\";if(n){let{children:e}=n.props;o=\"string\"==typeof e?e:Array.isArray(e)?e.join(\"\"):\"\"}o!==document.title&&(document.title=o),[\"meta\",\"base\",\"link\",\"style\",\"script\"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName(\"head\")[0],n=r.querySelector(\"meta[name=next-head-count]\"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t<i;t++,r=(null==r?void 0:r.previousElementSibling)||null){var l;(null==r?void 0:null==(l=r.tagName)?void 0:l.toLowerCase())===e&&u.push(r)}let s=t.map(o).filter(e=>{for(let t=0,r=u.length;t<r;t++)if(a(u[t],e))return u.splice(t,1),!1;return!0});u.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51844:function(e,t,r){\"use strict\";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,\"__esModule\",{value:!0});let m=r(61757);Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return z},hydrate:function(){return ef},initialize:function(){return Y},router:function(){return n},version:function(){return G}});let _=r(38754),g=r(85893);r(40037);let y=_._(r(67294)),v=_._(r(20745)),b=r(32201),P=_._(r(88483)),E=r(54494),S=r(31079),O=r(21979),R=r(61979),j=r(34723),w=r(84350),T=r(21201),x=_._(r(6166)),A=_._(r(41503)),C=_._(r(55708)),M=r(95454),I=r(26036),N=r(80676),L=r(29146),D=r(15287),k=r(71447),U=r(55716),F=r(38863),B=r(77353),H=_._(r(11889)),W=_._(r(74529)),q=_._(r(5223)),G=\"14.2.5\",z=(0,P.default)(),V=e=>[].slice.call(e),X=!1;class $ extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search,1)||o.props&&o.props.__N_SSG&&(location.search,1))&&n.replace(n.pathname+\"?\"+String((0,R.assign)((0,R.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function Y(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById(\"__NEXT_DATA__\").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||\"\";if(self.__next_set_public_path__(\"\"+t+\"/_next/\"),(0,j.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,w.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(90069);e(o.scriptLoader)}i=new A.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,x.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById(\"__next\"),{assetPrefix:t}}function K(e,t){return(0,g.jsx)(e,{...t})}function Q(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,F.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)($,{fn:e=>Z({App:f,err:e}).catch(e=>console.error(\"Error rendering page: \",e)),children:(0,g.jsx)(U.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(B.SearchParamsContext.Provider,{value:(0,F.adaptForSearchParams)(n),children:(0,g.jsx)(F.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(B.PathParamsContext.Provider,{value:(0,F.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,g.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(L.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let J=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(Q,{children:K(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error(\"A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred\"),i.loadPage(\"/_error\").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(83387))).then(n=>Promise.resolve().then(()=>m._(r(52239))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=J(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,w.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:\"navigationStart\",beforeRender:\"beforeRender\",afterRender:\"afterRender\",afterHydrate:\"afterHydrate\",routeChange:\"routeChange\"},er={hydration:\"Next.js-hydration\",beforeHydration:\"Next.js-before-hydration\",routeChangeToRender:\"Next.js-route-change-to-render\",render:\"Next.js-render\"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){w.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,\"mark\").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!w.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,\"mark\");e.length&&(performance.getEntriesByName(et.beforeRender,\"mark\").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,C.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l=\"initial\"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error(\"Cancel rendering route\");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=new Set(V(document.querySelectorAll(\"style[data-n-href]\")).map(e=>e.getAttribute(\"data-n-href\"))),t=document.querySelector(\"noscript[data-n-css]\"),r=null==t?void 0:t.getAttribute(\"data-n-css\");l.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement(\"style\");e.setAttribute(\"data-n-href\",n),e.setAttribute(\"media\",\"x\"),r&&e.setAttribute(\"nonce\",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(document.querySelectorAll(\"style[data-n-href]\")),r=t.map(e=>e.getAttribute(\"data-n-href\"));for(let n=0;n<r.length;++n)e.has(r[n])?t[n].removeAttribute(\"media\"):t[n].setAttribute(\"media\",\"x\");let n=document.querySelector(\"noscript[data-n-css]\");n&&l.forEach(e=>{let{href:t}=e,r=document.querySelector('style[data-n-href=\"'+t+'\"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll(\"link[data-n-p]\")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(Q,{children:[K(r,f),(0,g.jsx)(T.Portal,{type:\"next-route-announcer\",children:(0,g.jsx)(M.RouteAnnouncer,{})})]})]});return!function(e,t){w.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=v.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await Z(e);return}try{await es(e)}catch(r){let t=(0,N.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint(\"/_app\");if(\"error\"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+\"-\"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:\"mark\"===l||\"measure\"===l?\"custom\":\"web-vital\"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if(\"error\"in n)throw n.error;p=n.component}catch(e){t=(0,N.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,I.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:J,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25178:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(5975);let n=r(51844);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51297:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizePathTrailingSlash\",{enumerable:!0,get:function(){return a}});let n=r(5608),o=r(37070),a=e=>{if(!e.startsWith(\"/\"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return\"\"+(0,n.removeTrailingSlash)(t)+r+a};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11889:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return o}});let n=r(87633);function o(e){let t=\"function\"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41503:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return d}});let n=r(38754),o=r(6220),a=r(4574),i=n._(r(54967)),u=r(38109),l=r(21979),s=r(95909),c=r(5608),f=r(49586);r(15875);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if(\"/\"!==m[0])throw Error('Route name should start with a \"/\", got \"'+m+'\"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),\".json\");return(0,o.addBasePath)(\"/_next/data/\"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if(\"component\"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55708:function(e,t,r){\"use strict\";let n;Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return u}});let o=[\"CLS\",\"FCP\",\"FID\",\"INP\",\"LCP\",\"TTFB\"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(78018)),t[\"on\"+e](i)}catch(t){console.warn(\"Failed to track \"+e+\" web-vital\",t)}};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21201:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"Portal\",{enumerable:!0,get:function(){return a}});let n=r(67294),o=r(73935),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15287:function(e,t,r){\"use strict\";function n(e){return e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeBasePath\",{enumerable:!0,get:function(){return n}}),r(71447),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32979:function(e,t,r){\"use strict\";function n(e,t){return e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeLocale\",{enumerable:!0,get:function(){return n}}),r(37070),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40460:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r=\"undefined\"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n=\"undefined\"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69975:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"resolveHref\",{enumerable:!0,get:function(){return f}});let n=r(61979),o=r(28547),a=r(71576),i=r(84350),u=r(51297),l=r(92712),s=r(21939),c=r(4574);function f(e,t,r){let f;let d=\"string\"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\\/\\//),h=p?d.slice(p[0].length):d;if((h.split(\"?\",1)[0]||\"\").match(/(\\/\\/|\\\\)/)){console.error(\"Invalid href '\"+d+\"' passed to next/router in page: '\"+e.pathname+\"'. Repeated forward-slashes (//) or backslashes \\\\ are not valid in the href.\");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:\"\")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith(\"#\")?e.asPath:e.pathname,\"http://n\")}catch(e){f=new URL(\"/\",\"http://n\")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t=\"\";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95454:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(38754),o=r(85893),a=n._(r(67294)),i=r(26036),u={border:0,clip:\"rect(0 0 0 0)\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",padding:0,position:\"absolute\",top:0,width:\"1px\",whiteSpace:\"nowrap\",wordWrap:\"normal\"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(\"\"),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector(\"h1\");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)(\"p\",{\"aria-live\":\"assertive\",id:\"__next-route-announcer__\",role:\"alert\",style:u,children:t})},s=l;(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49586:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return p},isAssetError:function(){return s},markAssetError:function(){return l}}),r(38754),r(54967);let n=r(16953),o=r(40460),a=r(84878);function i(e,t,r){let n,o=t.get(e);if(o)return\"future\"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol(\"ASSET_LOAD_ERROR\");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=function(e){try{return e=document.createElement(\"link\"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports(\"prefetch\")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error(\"Failed to load client build manifest\")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error(\"Failed to lookup route: \"+t));let o=r[t].map(t=>e+\"/_next/\"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(\".js\")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(\".css\")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^=\"'+e+'\"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement(\"script\")).onload=r,t.onerror=()=>n(l(Error(\"Failed to load script: \"+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:\"same-origin\"}).then(t=>{if(!t.ok)throw Error(\"Failed to load stylesheet: \"+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&\"resolve\"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error(\"Route did not complete loading: \"+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return\"error\"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r=\"script\",new Promise((e,o)=>{if(document.querySelector('\\n      link[rel=\"prefetch\"][href^=\"'+t+'\"],\\n      link[rel=\"preload\"][href^=\"'+t+'\"],\\n      script[src^=\"'+t+'\"]'))return e();n=document.createElement(\"link\"),r&&(n.as=r),n.rel=\"prefetch\",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error(\"Failed to prefetch: \"+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26036:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return m},default:function(){return p},makePublicRouterInstance:function(){return _},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(38754),o=n._(r(67294)),a=n._(r(34595)),i=r(54494),u=n._(r(80676)),l=n._(r(8395)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=[\"pathname\",\"route\",\"query\",\"asPath\",\"components\",\"isFallback\",\"basePath\",\"locale\",\"locales\",\"defaultLocale\",\"isReady\",\"isPreview\",\"isLocaleDomain\",\"domainLocales\"],f=[\"push\",\"replace\",\"reload\",\"back\",\"prefetch\",\"beforePopState\"];function d(){if(!s.router)throw Error('No router instance found.\\nYou should only use \"next/router\" on the client side of your app.\\n');return s.router}Object.defineProperty(s,\"events\",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return d()[e](...r)}}),[\"routeChangeStart\",\"beforeHistoryChange\",\"routeChangeComplete\",\"routeChangeError\",\"hashChangeStart\",\"hashChangeComplete\"].forEach(e=>{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=\"on\"+e.charAt(0).toUpperCase()+e.substring(1);if(s[o])try{s[o](...r)}catch(e){console.error(\"Error when running the Router event: \"+o),console.error((0,u.default)(e)?e.message+\"\\n\"+e.stack:e+\"\")}})})});let p=s;function h(){let e=o.default.useContext(i.RouterContext);if(!e)throw Error(\"NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted\");return e}function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.router=new a.default(...t),s.readyCallbacks.forEach(e=>e()),s.readyCallbacks=[],s.router}function _(e){let t={};for(let r of c){if(\"object\"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return e[r](...n)}}),t}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90069:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return g}});let n=r(38754),o=r(61757),a=r(85893),i=n._(r(73935)),u=o._(r(67294)),l=r(32201),s=r(6166),c=r(40460),f=new Map,d=new Set,p=[\"onLoad\",\"onReady\",\"dangerouslySetInnerHTML\",\"children\",\"onError\",\"strategy\",\"stylesheets\"],h=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:\"style\"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement(\"link\");r.type=\"text/css\",r.rel=\"stylesheet\",r.href=e,t.appendChild(r)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i=\"\",strategy:u=\"afterInteractive\",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement(\"script\"),y=new Promise((e,t)=>{g.addEventListener(\"load\",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener(\"error\",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||\"\",_()):i?(g.textContent=\"string\"==typeof i?i:Array.isArray(i)?i.join(\"\"):\"\",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}\"worker\"===u&&g.setAttribute(\"type\",\"text/partytown\"),g.setAttribute(\"data-nscript\",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t=\"afterInteractive\"}=e;\"lazyOnload\"===t?window.addEventListener(\"load\",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript=\"beforeInteractive\"]'),...document.querySelectorAll('[data-nscript=\"beforePageRender\"]')].forEach(e=>{let t=e.id||e.getAttribute(\"src\");d.add(t)})}function y(e){let{id:t,src:r=\"\",onLoad:n=()=>{},onReady:o=null,strategy:s=\"afterInteractive\",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:v,nonce:b}=(0,u.useContext)(l.HeadManagerContext),P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&(\"afterInteractive\"===s?m(e):\"lazyOnload\"===s&&(\"complete\"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener(\"load\",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),(\"beforeInteractive\"===s||\"worker\"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),v){if(p&&p.forEach(e=>{i.default.preinit(e,{as:\"style\"})}),\"beforeInteractive\"===s)return r?(i.default.preload(r,h.integrity?{as:\"script\",integrity:h.integrity,nonce:b}:{as:\"script\",nonce:b}),(0,a.jsx)(\"script\",{nonce:b,dangerouslySetInnerHTML:{__html:\"(self.__next_s=self.__next_s||[]).push(\"+JSON.stringify([r,{...h,id:t}])+\")\"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)(\"script\",{nonce:b,dangerouslySetInnerHTML:{__html:\"(self.__next_s=self.__next_s||[]).push(\"+JSON.stringify([0,{...h,id:t}])+\")\"}}));\"afterInteractive\"===s&&r&&i.default.preload(r,h.integrity?{as:\"script\",integrity:h.integrity,nonce:b}:{as:\"script\",nonce:b})}return null}Object.defineProperty(y,\"__nextScript\",{value:!0});let v=y;(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5223:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return o}});let n=r(66937);function o(e){if(\"ended\"!==e.state.state)throw Error(\"Expected span to be ended\");(0,n.sendMessage)(JSON.stringify({event:\"span-end\",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74529:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return i}});let n=r(38754)._(r(88483));class o{end(e){if(\"ended\"===this.state.state)throw Error(\"Span has already ended\");this.state={state:\"ended\",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:\"inprogress\"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on(\"spanend\",e),()=>{this._emitter.off(\"spanend\",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit(\"spanend\",e)}}}let i=new a;(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16953:function(e,t){\"use strict\";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy(\"nextjs\",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"__unsafeCreateTrustedScriptURL\",{enumerable:!0,get:function(){return n}}),(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5975:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(84878),self.__next_set_public_path__=e=>{r.p=e},(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8395:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return a}}),r(38754);let n=r(85893);r(67294);let o=r(26036);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52239:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return l}});let n=r(38754),o=r(85893),a=n._(r(67294)),i=r(84350);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83387:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return c}});let n=r(38754),o=r(85893),a=n._(r(67294)),i=n._(r(37219)),u={400:\"Bad Request\",404:\"This page could not be found\",405:\"Method Not Allowed\",500:\"Internal Server Error\"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={error:{fontFamily:'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',height:\"100vh\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\"},desc:{lineHeight:\"48px\"},h1:{display:\"inline-block\",margin:\"0 20px 0 0\",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:\"top\"},h2:{fontSize:14,fontWeight:400,lineHeight:\"28px\"},wrap:{display:\"inline-block\"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||\"An unexpected error has occurred\";return(0,o.jsxs)(\"div\",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)(\"title\",{children:e?e+\": \"+r:\"Application error: a client-side exception has occurred\"})}),(0,o.jsxs)(\"div\",{style:s.desc,children:[(0,o.jsx)(\"style\",{dangerouslySetInnerHTML:{__html:\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\"+(t?\"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\":\"\")}}),e?(0,o.jsx)(\"h1\",{className:\"next-error-h1\",style:s.h1,children:e}):null,(0,o.jsx)(\"div\",{style:s.wrap,children:(0,o.jsxs)(\"h2\",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:\"Application error: a client-side exception has occurred (see the browser console for more information)\"}),\".\"]})})]})]})}}c.displayName=\"ErrorPage\",c.getInitialProps=l,c.origGetInitialProps=l,(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49686:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"AmpStateContext\",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext({})},92241:function(e,t){\"use strict\";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isInAmpMode\",{enumerable:!0,get:function(){return r}})},55716:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(38754)._(r(67294)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},8331:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"BloomFilter\",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),1540483477),t^=t>>>13,t=Math.imul(t,1540483477);return t>>>0}(\"\"+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},15875:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return v},APP_CLIENT_INTERNALS:function(){return K},APP_PATHS_MANIFEST:function(){return _},APP_PATH_ROUTES_MANIFEST:function(){return g},AUTOMATIC_FONT_OPTIMIZATION_MANIFEST:function(){return I},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return k},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return U},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return $},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return et},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return Z},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return L},DEFAULT_RUNTIME_WEBPACK:function(){return er},DEFAULT_SANS_SERIF_FONT:function(){return es},DEFAULT_SERIF_FONT:function(){return el},DEV_CLIENT_PAGES_MANIFEST:function(){return x},DEV_MIDDLEWARE_MANIFEST:function(){return C},EDGE_RUNTIME_WEBPACK:function(){return en},EDGE_UNSUPPORTED_NODE_APIS:function(){return eh},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return b},GOOGLE_FONT_PROVIDER:function(){return ei},IMAGES_MANIFEST:function(){return w},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return X},INTERNAL_HEADERS:function(){return a},MIDDLEWARE_BUILD_MANIFEST:function(){return z},MIDDLEWARE_MANIFEST:function(){return A},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return E},OPTIMIZED_FONT_PROVIDERS:function(){return eu},PAGES_MANIFEST:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return f},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return R},REACT_LOADABLE_MANIFEST:function(){return M},ROUTES_MANIFEST:function(){return j},RSC_MODULE_TYPES:function(){return ep},SERVER_DIRECTORY:function(){return N},SERVER_FILES_MANIFEST:function(){return T},SERVER_PROPS_ID:function(){return ea},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return eo},STATIC_STATUS_PAGES:function(){return ec},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return P},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ef},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ed},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l}});let n=r(38754)._(r(14083)),o={client:\"client\",server:\"server\",edgeServer:\"edge-server\"},a=[\"x-invoke-error\",\"x-invoke-output\",\"x-invoke-path\",\"x-invoke-query\",\"x-invoke-status\",\"x-middleware-invoke\"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u=\"/_not-found\",l=\"\"+u+\"/page\",s=\"phase-export\",c=\"phase-production-build\",f=\"phase-production-server\",d=\"phase-development-server\",p=\"phase-test\",h=\"phase-info\",m=\"pages-manifest.json\",_=\"app-paths-manifest.json\",g=\"app-path-routes-manifest.json\",y=\"build-manifest.json\",v=\"app-build-manifest.json\",b=\"functions-config-manifest.json\",P=\"subresource-integrity-manifest\",E=\"next-font-manifest\",S=\"export-marker.json\",O=\"export-detail.json\",R=\"prerender-manifest.json\",j=\"routes-manifest.json\",w=\"images-manifest.json\",T=\"required-server-files.json\",x=\"_devPagesManifest.json\",A=\"middleware-manifest.json\",C=\"_devMiddlewareManifest.json\",M=\"react-loadable-manifest.json\",I=\"font-manifest.json\",N=\"server\",L=[\"next.config.js\",\"next.config.mjs\"],D=\"BUILD_ID\",k=[\"/_document\",\"/_app\",\"/_error\"],U=\"public\",F=\"static\",B=\"__NEXT_DROP_CLIENT_FILE__\",H=\"__NEXT_BUILTIN_DOCUMENT__\",W=\"__barrel_optimize__\",q=\"client-reference-manifest\",G=\"server-reference-manifest\",z=\"middleware-build-manifest\",V=\"middleware-react-loadable-manifest\",X=\"interception-route-rewrite-manifest\",$=\"main\",Y=\"\"+$+\"-app\",K=\"app-pages-internals\",Q=\"react-refresh\",J=\"amp\",Z=\"webpack\",ee=\"polyfills\",et=Symbol(ee),er=\"webpack-runtime\",en=\"edge-runtime-webpack\",eo=\"__N_SSG\",ea=\"__N_SSP\",ei=\"https://fonts.googleapis.com/\",eu=[{url:ei,preconnect:\"https://fonts.gstatic.com\"},{url:\"https://use.typekit.net\",preconnect:\"https://use.typekit.net\"}],el={name:\"Times New Roman\",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},es={name:\"Arial\",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ec=[\"/500\"],ef=1,ed=6e3,ep={client:\"client\",server:\"server\"},eh=[\"clearImmediate\",\"setImmediate\",\"BroadcastChannel\",\"ByteLengthQueuingStrategy\",\"CompressionStream\",\"CountQueuingStrategy\",\"DecompressionStream\",\"DomException\",\"MessageChannel\",\"MessageEvent\",\"MessagePort\",\"ReadableByteStreamController\",\"ReadableStreamBYOBRequest\",\"ReadableStreamDefaultController\",\"TransformStreamDefaultController\",\"WritableStreamDefaultController\"],em=new Set([$,Q,J,Y]);(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60491:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"escapeStringRegexp\",{enumerable:!0,get:function(){return o}});let r=/[|\\\\{}()[\\]^$+*?.-]/,n=/[|\\\\{}()[\\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,\"\\\\$&\"):e}},32201:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"HeadManagerContext\",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext({})},37219:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return f}});let n=r(38754),o=r(61757),a=r(85893),i=o._(r(67294)),u=n._(r(8457)),l=r(49686),s=r(32201),c=r(92241);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)(\"meta\",{charSet:\"utf-8\"})];return e||t.push((0,a.jsx)(\"meta\",{name:\"viewport\",content:\"width=device-width\"})),t}function d(e,t){return\"string\"==typeof t||\"number\"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>\"string\"==typeof t||\"number\"==typeof t?e:e.concat(t),[])):e.concat(t)}r(42723);let p=[\"name\",\"httpEquiv\",\"charSet\",\"itemProp\"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&\"number\"!=typeof o.key&&o.key.indexOf(\"$\")>0){i=!0;let t=o.key.slice(o.key.indexOf(\"$\")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case\"title\":case\"base\":t.has(o.type)?a=!1:t.add(o.type);break;case\"meta\":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t)){if(\"charSet\"===t)r.has(t)?a=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;(\"name\"!==t||!i)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}}return a}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&\"link\"===e.type&&e.props.href&&[\"https://fonts.googleapis.com/css\",\"https://use.typekit.net/\"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t[\"data-href\"]=t.href,t.href=void 0,t[\"data-optimized-fonts\"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};(\"function\"==typeof t.default||\"object\"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,\"__esModule\",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77353:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(67294),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},75934:function(e,t){\"use strict\";function r(e,t){let r;let n=e.split(\"/\");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join(\"/\")||\"/\",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizeLocalePath\",{enumerable:!0,get:function(){return r}})},29146:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ImageConfigContext\",{enumerable:!0,get:function(){return a}});let n=r(38754)._(r(67294)),o=r(76252),a=n.default.createContext(o.imageConfigDefault)},76252:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=[\"default\",\"imgix\",\"cloudinary\",\"akamai\",\"custom\"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:\"/_next/image\",loader:\"default\",loaderFile:\"\",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:[\"image/webp\"],dangerouslyAllowSVG:!1,contentSecurityPolicy:\"script-src 'none'; frame-src 'none'; sandbox;\",contentDispositionType:\"inline\",remotePatterns:[],unoptimized:!1}},21728:function(e,t){\"use strict\";function r(e){return Object.prototype.toString.call(e)}function n(e){if(\"[object Object]\"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty(\"isPrototypeOf\")}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},87633:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r=\"BAILOUT_TO_CLIENT_SIDE_RENDERING\";class n extends Error{constructor(e){super(\"Bail out to client-side rendering: \"+e),this.reason=e,this.digest=r}}function o(e){return\"object\"==typeof e&&null!==e&&\"digest\"in e&&e.digest===r}},88483:function(e,t){\"use strict\";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return r}})},14083:function(e){\"use strict\";e.exports=[\"chrome 64\",\"edge 79\",\"firefox 67\",\"opera 51\",\"safari 12\"]},39312:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"denormalizePagePath\",{enumerable:!0,get:function(){return a}});let n=r(21939),o=r(32491);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith(\"/index/\")&&!(0,n.isDynamicRoute)(t)?t.slice(6):\"/index\"!==t?t:\"/\"}},49952:function(e,t){\"use strict\";function r(e){return e.startsWith(\"/\")?e:\"/\"+e}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"ensureLeadingSlash\",{enumerable:!0,get:function(){return r}})},32491:function(e,t){\"use strict\";function r(e){return e.replace(/\\\\/g,\"/\")}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"normalizePathSep\",{enumerable:!0,get:function(){return r}})},54494:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"RouterContext\",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext(null)},38863:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(61757),o=r(85893),a=n._(r(67294)),i=r(77353),u=r(21939),l=r(92085),s=r(40001);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},fastRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,\"http://f\")}catch(e){return\"/\"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},34595:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return X},matchesMiddleware:function(){return D}});let n=r(38754),o=r(61757),a=r(5608),i=r(49586),u=r(90069),l=o._(r(80676)),s=r(39312),c=r(75934),f=n._(r(88483)),d=r(84350),p=r(21979),h=r(95909),m=n._(r(78192)),_=r(88272),g=r(40001),y=r(28547);r(27448);let v=r(37070),b=r(38109),P=r(32979),E=r(15287),S=r(6220),O=r(71447),R=r(69975),j=r(79423),w=r(28995),T=r(95701),x=r(69574),A=r(92712),C=r(41147),M=r(71576),I=r(4574),N=r(31079);function L(){return Object.assign(Error(\"Route Cancelled\"),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,v.parsePath)(e.asPath),n=(0,O.hasBasePath)(r)?(0,E.removeBasePath)(r):r,o=(0,S.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function k(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function U(e,t,r){let[n,o]=(0,R.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=k(n),o=o?k(o):o;let l=i?n:(0,S.addBasePath)(n),s=r?k((0,R.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,S.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return\"/404\"===r||\"/_error\"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get(\"x-nextjs-rewrite\"),u=o||t.headers.get(\"x-nextjs-matched-path\"),l=t.headers.get(\"x-matched-path\");if(!l||u||l.includes(\"__next_data_catchall\")||l.includes(\"/_error\")||l.includes(\"/404\")||(u=l),u){if(u.startsWith(\"/\")){let t=(0,h.parseRelativeUrl)(u),l=(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(n=>{let[a,{__rewrites:i}]=n,u=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(u)||!o&&a.includes((0,c.normalizeLocalePath)((0,E.removeBasePath)(u),r.router.locales).pathname)){let r=(0,w.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0});u=(0,S.addBasePath)(r.pathname),t.pathname=u}{let e=(0,m.default)(u,a,i,t.query,e=>F(e,a),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,u=t.pathname,Object.assign(t.query,e.parsedAs.query))}let f=a.includes(s)?s:F((0,c.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,p.isDynamicRoute)(f)){let e=(0,_.getRouteMatcher)((0,g.getRouteRegex)(f))(u);Object.assign(t.query,e||{})}return{type:\"rewrite\",parsedAs:t,resolvedHref:f}})}let t=(0,v.parsePath)(e);return Promise.resolve({type:\"redirect-external\",destination:\"\"+(0,T.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:\"\"})+t.query+t.hash})}let s=t.headers.get(\"x-nextjs-redirect\");if(s){if(s.startsWith(\"/\")){let e=(0,v.parsePath)(s),t=(0,T.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:\"\"});return Promise.resolve({type:\"redirect-internal\",newAs:\"\"+t+e.query+e.hash,newUrl:\"\"+t+e.query+e.hash})}return Promise.resolve({type:\"redirect-external\",destination:s})}return Promise.resolve({type:\"next\"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol(\"SSG_DATA_NOT_FOUND\");function W(e){try{return JSON.parse(e)}catch(e){return null}}function q(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:\"same-origin\",method:n.method||\"GET\",headers:Object.assign({},n.headers,{\"x-nextjs-data\":\"1\"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:\"prefetch\"}:{},n&&o?{\"x-middleware-prefetch\":\"1\"}:{}),method:null!=(s=null==e?void 0:e.method)?s:\"GET\"}).then(r=>r.ok&&(null==e?void 0:e.method)===\"HEAD\"?{dataHref:t,response:r,text:\"\",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=W(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let u=Error(\"Failed to load static props\");throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?W(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&\"no-cache\"!==e.response.headers.get(\"x-middleware-cache\")||delete r[f],e)).catch(e=>{throw c||delete r[f],(\"Failed to fetch\"===e.message||\"NetworkError when attempting to fetch resource.\"===e.message||\"Load failed\"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>(r[f]=Promise.resolve(e),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:\"HEAD\"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function z(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error(\"Invariant: attempted to hard navigate to the same URL \"+t+\" \"+location.href);window.location.href=t}let V=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: \"'+t+'\"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class X{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change(\"pushState\",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change(\"replaceState\",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,\"http://n\").pathname),f=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,\"http://n\").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split(\"/\");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join(\"/\");if(r&&(null==(u=this._bfl_d)?void 0:u.contains(r))){s=!0;break}}}if(l||s){if(n)return!0;return z({url:(0,S.addBasePath)((0,b.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,R,j,w,T,C,N;let k,B;if(!(0,A.isLocalURL)(t))return z({url:t,router:this}),!1;let W=1===n._h;W||n.shallow||await this._bfl(r,void 0,n.locale);let q=W||n._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(r).pathname,G={...this.state},V=!0!==this.isReady;this.isReady=!0;let $=this.isSsr;if(W||(this.isSsr=!1),W&&this.clc)return!1;let Y=G.locale;d.ST&&performance.mark(\"routeChange\");let{shallow:K=!1,scroll:Q=!0}=n,J={shallow:K};this._inFlightRoute&&this.clc&&($||X.events.emit(\"routeChangeError\",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,O.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n.locale,this.defaultLocale));let Z=(0,P.removeLocale)((0,O.hasBasePath)(r)?(0,E.removeBasePath)(r):r,G.locale);this._inFlightRoute=r;let ee=Y!==G.locale;if(!W&&this.onlyAHashChange(Z)&&!ee){G.asPath=Z,X.events.emit(\"hashChangeStart\",r,J),this.changeState(e,t,r,{...n,scroll:!1}),Q&&this.scrollToHash(Z);try{await this.set(G,this.components[G.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&X.events.emit(\"routeChangeError\",e,Z,J),e}return X.events.emit(\"hashChangeComplete\",r,J),!0}let et=(0,h.parseRelativeUrl)(t),{pathname:er,query:en}=et;try{[k,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return z({url:r,router:this}),!1}this.urlIsNew(Z)||ee||(e=\"replaceState\");let eo=r;er=er?(0,a.removeTrailingSlash)((0,E.removeBasePath)(er)):er;let ea=(0,a.removeTrailingSlash)(er),ei=r.startsWith(\"/\")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[er])?void 0:s.__appRouter)return z({url:r,router:this}),new Promise(()=>{});let eu=!!(ei&&ea!==ei&&(!(0,p.isDynamicRoute)(ea)||!(0,_.getRouteMatcher)((0,g.getRouteRegex)(ea))(ei))),el=!n.shallow&&await D({asPath:r,locale:G.locale,router:this});if(W&&el&&(q=!1),q&&\"/_error\"!==er){if(n._shouldResolveHref=!0,r.startsWith(\"/\")){let e=(0,m.default)((0,S.addBasePath)((0,b.addLocale)(Z,G.locale),!0),k,B,en,e=>F(e,k),this.locales);if(e.externalDest)return z({url:r,router:this}),!0;el||(eo=e.asPath),e.matchedPage&&e.resolvedHref&&(er=e.resolvedHref,et.pathname=(0,S.addBasePath)(er),el||(t=(0,y.formatWithValidation)(et)))}else et.pathname=F(er,k),et.pathname===er||(er=et.pathname,et.pathname=(0,S.addBasePath)(er),el||(t=(0,y.formatWithValidation)(et)))}if(!(0,A.isLocalURL)(r))return z({url:r,router:this}),!1;eo=(0,P.removeLocale)((0,E.removeBasePath)(eo),G.locale),ea=(0,a.removeTrailingSlash)(er);let es=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,h.parseRelativeUrl)(eo),n=e.pathname,o=(0,g.getRouteRegex)(ea);es=(0,_.getRouteMatcher)(o)(n);let a=ea===n,i=a?(0,I.interpolateAs)(ea,n,en):{};if(es&&(!a||i.result))a?r=(0,y.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,M.omit)(en,i.params)})):Object.assign(en,es);else{let e=Object.keys(o.groups).filter(e=>!en[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?\"The provided `href` (\"+t+\") value is missing query values (\"+e.join(\", \")+\") to be interpolated properly. \":\"The provided `as` value (\"+n+\") is incompatible with the `href` value (\"+ea+\"). \")+\"Read more: https://nextjs.org/docs/messages/\"+(a?\"href-interpolation-failed\":\"incompatible-href-as\"))}}W||X.events.emit(\"routeChangeStart\",r,J);let ec=\"/404\"===this.pathname||\"/_error\"===this.pathname;try{let a=await this.getRouteInfo({route:ea,pathname:er,query:en,as:r,resolvedAs:eo,routeProps:J,locale:G.locale,isPreview:G.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:W&&!this.isFallback,isMiddlewareRewrite:eu});if(W||n.shallow||await this._bfl(r,\"resolvedAs\"in a?a.resolvedAs:void 0,G.locale),\"route\"in a&&el){ea=er=a.route||ea,J.shallow||(en=Object.assign({},a.query||{},en));let e=(0,O.hasBasePath)(et.pathname)?(0,E.removeBasePath)(et.pathname):et.pathname;if(es&&er!==e&&Object.keys(es).forEach(e=>{es&&en[e]===es[e]&&delete en[e]}),(0,p.isDynamicRoute)(er)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,G.locale),!0);(0,O.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,g.getRouteRegex)(er),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(en,n)}}if(\"type\"in a){if(\"redirect-internal\"===a.type)return this.change(e,a.newUrl,a.newAs,n);return z({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith(\"/\")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,k);let{url:o,as:a}=U(this,t,t);return this.change(e,o,a,n)}return z({url:t,router:this}),new Promise(()=>{})}if(G.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent(\"/404\"),e=\"/404\"}catch(t){e=\"/_error\"}if(a=await this.getRouteInfo({route:e,pathname:e,query:en,as:r,resolvedAs:eo,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isNotFound:!0}),\"type\"in a)throw Error(\"Unexpected middleware effect on /404\")}}W&&\"/_error\"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(R=a.props)?void 0:R.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&G.route===(null!=(j=a.route)?j:ea),d=null!=(w=n.scroll)?w:!W&&!s,m=null!=o?o:d?{x:0,y:0}:null,y={...G,route:ea,pathname:er,query:en,asPath:Z,isFallback:!1};if(W&&ec){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:r,resolvedAs:eo,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isQueryUpdating:W&&!this.isFallback}),\"type\"in a)throw Error(\"Unexpected middleware effect on \"+this.pathname);\"/_error\"===this.pathname&&(null==(C=self.__NEXT_DATA__.props)?void 0:null==(T=C.pageProps)?void 0:T.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,m)}catch(e){throw(0,l.default)(e)&&e.cancelled&&X.events.emit(\"routeChangeError\",e,Z,J),e}return!0}if(X.events.emit(\"beforeHistoryChange\",r,J),this.changeState(e,t,r,n),!(W&&!m&&!V&&!ee&&(0,x.compareRouterStates)(y,this.state))){try{await this.set(y,a,m)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw W||X.events.emit(\"routeChangeError\",a.error,Z,J),a.error;W||X.events.emit(\"routeChangeComplete\",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),(\"pushState\"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key=\"pushState\"!==e?this._key:G()},\"\",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw X.events.emit(\"routeChangeError\",e,n,o),z({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent(\"/_error\"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error(\"Error in error page `getInitialProps`: \",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+\"\"),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,g=t;try{var v,b,P,S;let e=this.components[g];if(u.shallow&&e&&this.route===g)return e;let t=V({route:g,router:this});f&&(e=void 0);let l=!e||\"initial\"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?\"/404\":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},R=h&&!m?null:await B({fetchData:()=>q(O),asPath:_?\"/404\":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(R&&(\"/_error\"===r||\"/404\"===r)&&(R.effect=void 0),h&&(R?R.json=self.__NEXT_DATA__.props:R={json:self.__NEXT_DATA__.props}),t(),(null==R?void 0:null==(v=R.effect)?void 0:v.type)===\"redirect-internal\"||(null==R?void 0:null==(b=R.effect)?void 0:b.type)===\"redirect-external\")return R.effect;if((null==R?void 0:null==(P=R.effect)?void 0:P.type)===\"rewrite\"){let t=(0,a.removeTrailingSlash)(R.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(g=t,r=R.effect.resolvedHref,n={...n,...R.effect.parsedAs.query},i=(0,E.removeBasePath)((0,c.normalizeLocalePath)(R.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],u.shallow&&e&&this.route===g&&!f))return{...e,route:g}}if((0,j.isAPIRoute)(g))return z({url:o,router:this}),new Promise(()=>{});let w=l||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==R?void 0:null==(S=R.response)?void 0:S.headers.get(\"x-middleware-skip\"),x=w.__N_SSG||w.__N_SSP;T&&(null==R?void 0:R.dataHref)&&delete this.sdc[R.dataHref];let{props:A,cacheKey:C}=await this._getData(async()=>{if(x){if((null==R?void 0:R.json)&&!T)return{cacheKey:R.cacheKey,props:R.json};let e=(null==R?void 0:R.dataHref)?R.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await q({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(w.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return w.__N_SSP&&O.dataHref&&C&&delete this.sdc[C],this.isPreview||!w.__N_SSG||h||q(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),A.pageProps=Object.assign({},A.pageProps),w.props=A,w.route=g,w.query=n,w.resolvedAs=i,this.components[g]=w,w}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components[\"/_app\"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split(\"#\",2),[n,o]=e.split(\"#\",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=\"\"]=e.split(\"#\",2);(0,N.handleSmoothScroll)(()=>{if(\"\"===t||\"top\"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,C.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:u,query:l}=n,s=u,c=await this.pageLoader.getPageList(),f=t,d=void 0!==r.locale?r.locale||void 0:this.locale,O=await D({asPath:t,locale:d,router:this});if(t.startsWith(\"/\")){let r;({__rewrites:r}=await (0,i.getClientBuildManifest)());let o=(0,m.default)((0,S.addBasePath)((0,b.addLocale)(t,this.locale),!0),c,r,n.query,e=>F(e,c),this.locales);if(o.externalDest)return;O||(f=(0,P.removeLocale)((0,E.removeBasePath)(o.asPath),this.locale)),o.matchedPage&&o.resolvedHref&&(u=o.resolvedHref,n.pathname=u,O||(e=(0,y.formatWithValidation)(n)))}n.pathname=F(n.pathname,c),(0,p.isDynamicRoute)(n.pathname)&&(u=n.pathname,n.pathname=u,Object.assign(l,(0,_.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,v.parsePath)(t).pathname)||{}),O||(e=(0,y.formatWithValidation)(n)));let R=await B({fetchData:()=>q({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:f,locale:d}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==R?void 0:R.effect.type)===\"rewrite\"&&(n.pathname=R.effect.resolvedHref,u=R.effect.resolvedHref,l={...l,...R.effect.parsedAs.query},f=R.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(n)),(null==R?void 0:R.effect.type)===\"redirect-external\")return;let j=(0,a.removeTrailingSlash)(u);await this._bfl(t,f,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(j).then(t=>!!t&&q({dataHref:(null==R?void 0:R.json)?null==R?void 0:R.dataHref:this.pageLoader.getDataHref({href:e,asPath:f,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?\"loadPage\":\"prefetch\"](j)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error(\"Loading initial props cancelled\");throw e.cancelled=!0,e}return e})}_getFlightData(e){return q({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components[\"/_app\"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:g,defaultLocale:v,domainLocales:b,isPreview:P}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState(\"replaceState\",(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,S.addBasePath)(this.asPath)||l!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change(\"replaceState\",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let E=(0,a.removeTrailingSlash)(e);this.components={},\"/_error\"!==e&&(this.components[E]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components[\"/_app\"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(8331),t={numItems:3,errorRate:1e-4,numBits:58,numHashes:14,bitArray:[1,1,0,1,0,1,1,0,1,1,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,1,1,1,0,1,1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,1,1]},n={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=X.events,this.pageLoader=i;let O=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=\"\",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||(O||self.location.search,0)),this.state={route:E,pathname:e,query:t,asPath:O?e:n,isPreview:!!P,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith(\"//\")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState(\"replaceState\",a?o:(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),o,r),a))}window.addEventListener(\"popstate\",this.onPopState)}}X.events=(0,f.default)()},92528:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addLocale\",{enumerable:!0,get:function(){return a}});let n=r(70679),o=r(37459);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,\"/api\")||(0,o.pathHasPrefix)(i,\"/\"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,\"/\"+t)}},70679:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addPathPrefix\",{enumerable:!0,get:function(){return o}});let n=r(37070);function o(e,t){if(!e.startsWith(\"/\")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return\"\"+t+r+o+a}},35999:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"addPathSuffix\",{enumerable:!0,get:function(){return o}});let n=r(37070);function o(e,t){if(!e.startsWith(\"/\")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return\"\"+r+t+o+a}},33e3:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(49952),o=r(74565);function a(e){return(0,n.ensureLeadingSlash)(e.split(\"/\").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||\"@\"===t[0]||(\"page\"===t||\"route\"===t)&&r===n.length-1?e:e+\"/\"+t,\"\"))}function i(e){return e.replace(/\\.rsc($|\\?)/,\"$1\")}},92085:function(e,t){\"use strict\";function r(e){return new URL(e,\"http://n\").searchParams}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"asPathToSearchParams\",{enumerable:!0,get:function(){return r}})},69574:function(e,t){\"use strict\";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if(\"query\"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"compareRouterStates\",{enumerable:!0,get:function(){return r}})},95701:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"formatNextPathnameInfo\",{enumerable:!0,get:function(){return u}});let n=r(5608),o=r(70679),a=r(35999),i=r(92528);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,\"/_next/data/\"+e.buildId),\"/\"===e.pathname?\"index.json\":\".json\")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith(\"/\")?t:(0,a.addPathSuffix)(t,\"/\"):(0,n.removeTrailingSlash)(t)}},28547:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(61757)._(r(61979)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||\"\",i=e.pathname||\"\",u=e.hash||\"\",l=e.query||\"\",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,\":\")+\"@\":\"\",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(\":\")?\"[\"+r+\"]\":r),e.port&&(s+=\":\"+e.port)),l&&\"object\"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&\"?\"+l||\"\";return a&&!a.endsWith(\":\")&&(a+=\":\"),e.slashes||(!a||o.test(a))&&!1!==s?(s=\"//\"+(s||\"\"),i&&\"/\"!==i[0]&&(i=\"/\"+i)):s||(s=\"\"),u&&\"#\"!==u[0]&&(u=\"#\"+u),c&&\"?\"!==c[0]&&(c=\"?\"+c),\"\"+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace(\"#\",\"%23\"))+u}let i=[\"auth\",\"hash\",\"host\",\"hostname\",\"href\",\"path\",\"pathname\",\"port\",\"protocol\",\"query\",\"search\",\"slashes\"];function u(e){return a(e)}},54967:function(e,t){\"use strict\";function r(e,t){return void 0===t&&(t=\"\"),(\"/\"===e?\"/index\":/^\\/index(\\/|$)/.test(e)?\"/index\"+e:e)+t}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return r}})},28995:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getNextPathnameInfo\",{enumerable:!0,get:function(){return i}});let n=r(75934),o=r(58668),a=r(37459);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:\"/\"!==e?e.endsWith(\"/\"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith(\"/_next/data/\")&&c.pathname.endsWith(\".json\")){let e=c.pathname.replace(/^\\/_next\\/data\\//,\"\").replace(/\\.json$/,\"\").split(\"/\"),r=e[0];c.buildId=r,f=\"index\"!==e[1]?\"/\"+e.slice(1).join(\"/\"):\"/\",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},31079:function(e,t){\"use strict\";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior=\"auto\",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"handleSmoothScroll\",{enumerable:!0,get:function(){return r}})},21939:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(92186),o=r(21979)},4574:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"interpolateAs\",{enumerable:!0,get:function(){return a}});let n=r(88272),o=r(40001);function a(e,t,r){let a=\"\",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):\"\")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||\"\",{repeat:r,optional:n}=u[e],o=\"[\"+(r?\"...\":\"\")+e+\"]\";return n&&(o=(t?\"\":\"/\")+\"[\"+o+\"]\"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join(\"/\"):encodeURIComponent(t))||\"/\")})||(a=\"\"),{params:s,result:a}}},41147:function(e,t){\"use strict\";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isBot\",{enumerable:!0,get:function(){return r}})},21979:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isDynamicRoute\",{enumerable:!0,get:function(){return a}});let n=r(92407),o=/\\/\\[[^/]+?\\](?=\\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},92712:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isLocalURL\",{enumerable:!0,get:function(){return a}});let n=r(84350),o=r(71447);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},71576:function(e,t){\"use strict\";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"omit\",{enumerable:!0,get:function(){return r}})},37070:function(e,t){\"use strict\";function r(e){let t=e.indexOf(\"#\"),r=e.indexOf(\"?\"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):\"\",hash:t>-1?e.slice(t):\"\"}:{pathname:e,query:\"\",hash:\"\"}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parsePath\",{enumerable:!0,get:function(){return r}})},95909:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parseRelativeUrl\",{enumerable:!0,get:function(){return a}});let n=r(84350),o=r(61979);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(\".\")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error(\"invariant: invalid relative URL, router received \"+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},82104:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"parseUrl\",{enumerable:!0,get:function(){return a}});let n=r(61979),o=r(95909);function a(e){if(e.startsWith(\"/\"))return(0,o.parseRelativeUrl)(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:t.search}}},37459:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"pathHasPrefix\",{enumerable:!0,get:function(){return o}});let n=r(37070);function o(e,t){if(\"string\"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+\"/\")}},33926:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getPathMatch\",{enumerable:!0,get:function(){return o}});let n=r(74329);function o(e,t){let r=[],o=(0,n.pathToRegexp)(e,r,{delimiter:\"/\",sensitive:\"boolean\"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),a=(0,n.regexpToFunction)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,r);return(e,n)=>{if(\"string\"!=typeof e)return!1;let o=a(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)\"number\"==typeof e.name&&delete o.params[e.name];return{...n,...o.params}}}},74061:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{compileNonPath:function(){return f},matchHas:function(){return c},prepareDestination:function(){return d}});let n=r(74329),o=r(60491),a=r(82104),i=r(92407),u=r(3782),l=r(11730);function s(e){return e.replace(/__ESC_COLON_/gi,\":\")}function c(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=[]);let o={},a=r=>{let n;let a=r.key;switch(r.type){case\"header\":a=a.toLowerCase(),n=e.headers[a];break;case\"cookie\":n=\"cookies\"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case\"query\":n=t[a];break;case\"host\":{let{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(\":\",1)[0].toLowerCase()}}if(!r.value&&n)return o[function(e){let t=\"\";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(a)]=n,!0;if(n){let e=RegExp(\"^\"+r.value+\"$\"),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{o[e]=t.groups[e]}):\"host\"===r.type&&t[0]&&(o.host=t[0])),!0}return!1};return!!r.every(e=>a(e))&&!n.some(e=>a(e))&&o}function f(e,t){if(!e.includes(\":\"))return e;for(let r of Object.keys(t))e.includes(\":\"+r)&&(e=e.replace(RegExp(\":\"+r+\"\\\\*\",\"g\"),\":\"+r+\"--ESCAPED_PARAM_ASTERISKS\").replace(RegExp(\":\"+r+\"\\\\?\",\"g\"),\":\"+r+\"--ESCAPED_PARAM_QUESTION\").replace(RegExp(\":\"+r+\"\\\\+\",\"g\"),\":\"+r+\"--ESCAPED_PARAM_PLUS\").replace(RegExp(\":\"+r+\"(?!\\\\w)\",\"g\"),\"--ESCAPED_PARAM_COLON\"+r));return e=e.replace(/(:|\\*|\\?|\\+|\\(|\\)|\\{|\\})/g,\"\\\\$1\").replace(/--ESCAPED_PARAM_PLUS/g,\"+\").replace(/--ESCAPED_PARAM_COLON/g,\":\").replace(/--ESCAPED_PARAM_QUESTION/g,\"?\").replace(/--ESCAPED_PARAM_ASTERISKS/g,\"*\"),(0,n.compile)(\"/\"+e,{validate:!1})(t).slice(1)}function d(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq,delete r.__nextInferredLocaleFromDefault,delete r[u.NEXT_RSC_UNION_QUERY];let l=e.destination;for(let t of Object.keys({...e.params,...r}))l=l.replace(RegExp(\":\"+(0,o.escapeStringRegexp)(t),\"g\"),\"__ESC_COLON_\"+t);let c=(0,a.parseUrl)(l),d=c.query,p=s(\"\"+c.pathname+(c.hash||\"\")),h=s(c.hostname||\"\"),m=[],_=[];(0,n.pathToRegexp)(p,m),(0,n.pathToRegexp)(h,_);let g=[];m.forEach(e=>g.push(e.name)),_.forEach(e=>g.push(e.name));let y=(0,n.compile)(p,{validate:!1}),v=(0,n.compile)(h,{validate:!1});for(let[t,r]of Object.entries(d))Array.isArray(r)?d[t]=r.map(t=>f(s(t),e.params)):\"string\"==typeof r&&(d[t]=f(s(r),e.params));let b=Object.keys(e.params).filter(e=>\"nextInternalLocale\"!==e);if(e.appendParamsToQuery&&!b.some(e=>g.includes(e)))for(let t of b)t in d||(d[t]=e.params[t]);if((0,i.isInterceptionRouteAppPath)(p))for(let t of p.split(\"/\")){let r=i.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){e.params[\"0\"]=r;break}}try{let[r,n]=(t=y(e.params)).split(\"#\",2);c.hostname=v(e.params),c.pathname=r,c.hash=(n?\"#\":\"\")+(n||\"\"),delete c.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Error(\"To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match\");throw e}return c.query={...r,...c.query},{newUrl:t,destQuery:d,parsedDestination:c}}},61979:function(e,t){\"use strict\";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return\"string\"!=typeof e&&(\"number\"!=typeof e||isNaN(e))&&\"boolean\"!=typeof e?\"\":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},58668:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removePathPrefix\",{enumerable:!0,get:function(){return o}});let n=r(37459);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith(\"/\")?r:\"/\"+r}},5608:function(e,t){\"use strict\";function r(e){return e.replace(/\\/$/,\"\")||\"/\"}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"removeTrailingSlash\",{enumerable:!0,get:function(){return r}})},78192:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return s}});let n=r(33926),o=r(74061),a=r(5608),i=r(75934),u=r(15287),l=r(95909);function s(e,t,r,s,c,f){let d,p=!1,h=!1,m=(0,l.parseRelativeUrl)(e),_=(0,a.removeTrailingSlash)((0,i.normalizeLocalePath)((0,u.removeBasePath)(m.pathname),f).pathname),g=r=>{let l=(0,n.getPathMatch)(r.source+\"\",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,o.matchHas)({headers:{host:document.location.hostname,\"user-agent\":navigator.userAgent},cookies:document.cookie.split(\"; \").reduce((e,t)=>{let[r,...n]=t.split(\"=\");return e[r]=n.join(\"=\"),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return h=!0,!0;let n=(0,o.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:s});if(m=n.parsedDestination,e=n.newUrl,Object.assign(s,n.parsedDestination.query),_=(0,a.removeTrailingSlash)((0,i.normalizeLocalePath)((0,u.removeBasePath)(e),f).pathname),t.includes(_))return p=!0,d=_,!0;if((d=c(_))!==e&&t.includes(d))return p=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)g(r.beforeFiles[e]);if(!(p=t.includes(_))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(g(r.afterFiles[e])){y=!0;break}}if(y||(d=c(_),y=p=t.includes(d)),!y){for(let e=0;e<r.fallback.length;e++)if(g(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:p,resolvedHref:d,externalDest:h}}},88272:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getRouteMatcher\",{enumerable:!0,get:function(){return o}});let n=r(84350);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError(\"failed to decode param\")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf(\"/\")?n.split(\"/\").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},40001:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l}});let n=r(92407),o=r(60491),a=r(5608);function i(e){let t=e.startsWith(\"[\")&&e.endsWith(\"]\");t&&(e=e.slice(1,-1));let r=e.startsWith(\"...\");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split(\"/\"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},\"/\"+(0,o.escapeStringRegexp)(t)+\"([^/]+?)\"}if(!a)return\"/\"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?\"(?:/(.+?))?\":\"/(.+?)\":\"/([^/]+?)\"}}).join(\"\"),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp(\"^\"+t+\"(?:/)?$\"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\\W/g,\"\");u&&(f=\"\"+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=\"\"+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):\"\";return c?s?\"(?:/\"+p+\"(?<\"+f+\">.+?))?\":\"/\"+p+\"(?<\"+f+\">.+?)\":\"/\"+p+\"(?<\"+f+\">[^/]+?)\"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split(\"/\"),u=(r=0,()=>{let e=\"\",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\\[((?:\\[.*\\])|.+)\\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?\"nxtI\":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?\"nxtP\":void 0}):\"/\"+(0,o.escapeStringRegexp)(e)}).join(\"\"),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:\"^\"+r.namedParameterizedRoute+\"(?:/)?$\",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if(\"/\"===r)return{namedRegex:\"^/\"+(n?\".*\":\"\")+\"$\"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:\"^\"+o+(n?\"(?:(/.*)?)\":\"\")+\"$\"}}},92186:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getSortedRoutes\",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split(\"/\").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e=\"/\");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf(\"[]\"),1),null!==this.restSlugName&&t.splice(t.indexOf(\"[...]\"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf(\"[[...]]\"),1);let r=t.map(t=>this.children.get(t)._smoosh(\"\"+e+t+\"/\")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get(\"[]\")._smoosh(e+\"[\"+this.slugName+\"]/\")),!this.placeholder){let t=\"/\"===e?\"/\":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route (\"'+t+'\" and \"'+t+\"[[...\"+this.optionalRestSlugName+']]\").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get(\"[...]\")._smoosh(e+\"[...\"+this.restSlugName+\"]/\")),null!==this.optionalRestSlugName&&r.push(...this.children.get(\"[[...]]\")._smoosh(e+\"[[...\"+this.optionalRestSlugName+\"]]/\")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error(\"Catch-all must be the last part of the URL.\");let o=e[0];if(o.startsWith(\"[\")&&o.endsWith(\"]\")){let r=o.slice(1,-1),i=!1;if(r.startsWith(\"[\")&&r.endsWith(\"]\")&&(r=r.slice(1,-1),i=!0),r.startsWith(\"...\")&&(r=r.substring(3),n=!0),r.startsWith(\"[\")||r.endsWith(\"]\"))throw Error(\"Segment names may not start or end with extra brackets ('\"+r+\"').\");if(r.startsWith(\".\"))throw Error(\"Segment names may not start with erroneous periods ('\"+r+\"').\");function a(e,r){if(null!==e&&e!==r)throw Error(\"You cannot use different slug names for the same dynamic path ('\"+e+\"' !== '\"+r+\"').\");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name \"'+r+'\" repeat within a single dynamic path');if(e.replace(/\\W/g,\"\")===o.replace(/\\W/g,\"\"))throw Error('You cannot have the slug names \"'+e+'\" and \"'+r+'\" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level (\"[...'+this.restSlugName+']\" and \"'+e[0]+'\" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o=\"[[...]]\"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level (\"[[...'+this.optionalRestSlugName+']]\" and \"'+e[0]+'\").');a(this.restSlugName,r),this.restSlugName=r,o=\"[...]\"}}else{if(i)throw Error('Optional route parameters are not yet supported (\"'+e[0]+'\").');a(this.slugName,r),this.slugName=r,o=\"[]\"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},34723:function(e,t){\"use strict\";let r;Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},74565:function(e,t){\"use strict\";function r(e){return\"(\"===e[0]&&e.endsWith(\")\")}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return r}});let n=\"__PAGE__\",o=\"__DEFAULT__\"},8457:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return i}});let n=r(67294),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},84350:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return _},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=[\"CLS\",\"FCP\",\"FID\",\"INP\",\"LCP\",\"TTFB\"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\\d+\\-.]*?:/,a=e=>o.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+\"//\"+t+(r?\":\"+r:\"\")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return\"string\"==typeof e?e:e.displayName||e.name||\"Unknown\"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split(\"?\");return t[0].replace(/\\\\/g,\"/\").replace(/\\/\\/+/g,\"/\")+(t[1]?\"?\"+t.slice(1).join(\"?\"):\"\")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('\"'+l(e)+'.getInitialProps()\" should resolve to an object. But found \"'+n+'\" instead.');return n}let d=\"undefined\"!=typeof performance,p=d&&[\"mark\",\"measure\",\"getEntriesByName\"].every(e=>\"function\"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code=\"ENOENT\",this.name=\"PageNotFoundError\",this.message=\"Cannot find module for page: \"+e}}class g extends Error{constructor(e,t){super(),this.message=\"Failed to load static file for page: \"+e+\" \"+t}}class y extends Error{constructor(){super(),this.code=\"ENOENT\",this.message=\"Cannot find the middleware module\"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},42723:function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"warnOnce\",{enumerable:!0,get:function(){return r}});let r=e=>{}},20738:function(e){var t,r,n,o,a;\"undefined\"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=\"//\"),/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */(t={}).parse=function(e,t){if(\"string\"!=typeof e)throw TypeError(\"argument str must be a string\");for(var n={},a=e.split(o),i=(t||{}).decode||r,u=0;u<a.length;u++){var l=a[u],s=l.indexOf(\"=\");if(!(s<0)){var c=l.substr(0,s).trim(),f=l.substr(++s,l.length).trim();'\"'==f[0]&&(f=f.slice(1,-1)),void 0==n[c]&&(n[c]=function(e,t){try{return t(e)}catch(t){return e}}(f,i))}}return n},t.serialize=function(e,t,r){var o=r||{},i=o.encode||n;if(\"function\"!=typeof i)throw TypeError(\"option encode is invalid\");if(!a.test(e))throw TypeError(\"argument name is invalid\");var u=i(t);if(u&&!a.test(u))throw TypeError(\"argument val is invalid\");var l=e+\"=\"+u;if(null!=o.maxAge){var s=o.maxAge-0;if(isNaN(s)||!isFinite(s))throw TypeError(\"option maxAge is invalid\");l+=\"; Max-Age=\"+Math.floor(s)}if(o.domain){if(!a.test(o.domain))throw TypeError(\"option domain is invalid\");l+=\"; Domain=\"+o.domain}if(o.path){if(!a.test(o.path))throw TypeError(\"option path is invalid\");l+=\"; Path=\"+o.path}if(o.expires){if(\"function\"!=typeof o.expires.toUTCString)throw TypeError(\"option expires is invalid\");l+=\"; Expires=\"+o.expires.toUTCString()}if(o.httpOnly&&(l+=\"; HttpOnly\"),o.secure&&(l+=\"; Secure\"),o.sameSite)switch(\"string\"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case\"strict\":l+=\"; SameSite=Strict\";break;case\"lax\":l+=\"; SameSite=Lax\";break;case\"none\":l+=\"; SameSite=None\";break;default:throw TypeError(\"option sameSite is invalid\")}return l},r=decodeURIComponent,n=encodeURIComponent,o=/; */,a=/^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/,e.exports=t},74329:function(e,t){\"use strict\";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(\"*\"===n||\"+\"===n||\"?\"===n){t.push({type:\"MODIFIER\",index:r,value:e[r++]});continue}if(\"\\\\\"===n){t.push({type:\"ESCAPED_CHAR\",index:r++,value:e[r++]});continue}if(\"{\"===n){t.push({type:\"OPEN\",index:r,value:e[r++]});continue}if(\"}\"===n){t.push({type:\"CLOSE\",index:r,value:e[r++]});continue}if(\":\"===n){for(var o=\"\",a=r+1;a<e.length;){var i=e.charCodeAt(a);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){o+=e[a++];continue}break}if(!o)throw TypeError(\"Missing parameter name at \"+r);t.push({type:\"NAME\",index:r,value:o}),r=a;continue}if(\"(\"===n){var u=1,l=\"\",a=r+1;if(\"?\"===e[a])throw TypeError('Pattern cannot start with \"?\" at '+a);for(;a<e.length;){if(\"\\\\\"===e[a]){l+=e[a++]+e[a++];continue}if(\")\"===e[a]){if(0==--u){a++;break}}else if(\"(\"===e[a]&&(u++,\"?\"!==e[a+1]))throw TypeError(\"Capturing groups are not allowed at \"+a);l+=e[a++]}if(u)throw TypeError(\"Unbalanced pattern at \"+r);if(!l)throw TypeError(\"Missing pattern at \"+r);t.push({type:\"PATTERN\",index:r,value:l}),r=a;continue}t.push({type:\"CHAR\",index:r,value:e[r++]})}return t.push({type:\"END\",index:r,value:\"\"}),t}(e),n=t.prefixes,o=void 0===n?\"./\":n,i=\"[^\"+a(t.delimiter||\"/#?\")+\"]+?\",u=[],l=0,s=0,c=\"\",f=function(e){if(s<r.length&&r[s].type===e)return r[s++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var n=r[s];throw TypeError(\"Unexpected \"+n.type+\" at \"+n.index+\", expected \"+e)},p=function(){for(var e,t=\"\";e=f(\"CHAR\")||f(\"ESCAPED_CHAR\");)t+=e;return t};s<r.length;){var h=f(\"CHAR\"),m=f(\"NAME\"),_=f(\"PATTERN\");if(m||_){var g=h||\"\";-1===o.indexOf(g)&&(c+=g,g=\"\"),c&&(u.push(c),c=\"\"),u.push({name:m||l++,prefix:g,suffix:\"\",pattern:_||i,modifier:f(\"MODIFIER\")||\"\"});continue}var y=h||f(\"ESCAPED_CHAR\");if(y){c+=y;continue}if(c&&(u.push(c),c=\"\"),f(\"OPEN\")){var g=p(),v=f(\"NAME\")||\"\",b=f(\"PATTERN\")||\"\",P=p();d(\"CLOSE\"),u.push({name:v||(b?l++:\"\"),pattern:v&&!b?i:b,prefix:g,suffix:P,modifier:f(\"MODIFIER\")||\"\"});continue}d(\"END\")}return u}function n(e,t){void 0===t&&(t={});var r=i(t),n=t.encode,o=void 0===n?function(e){return e}:n,a=t.validate,u=void 0===a||a,l=e.map(function(e){if(\"object\"==typeof e)return RegExp(\"^(?:\"+e.pattern+\")$\",r)});return function(t){for(var r=\"\",n=0;n<e.length;n++){var a=e[n];if(\"string\"==typeof a){r+=a;continue}var i=t?t[a.name]:void 0,s=\"?\"===a.modifier||\"*\"===a.modifier,c=\"*\"===a.modifier||\"+\"===a.modifier;if(Array.isArray(i)){if(!c)throw TypeError('Expected \"'+a.name+'\" to not repeat, but got an array');if(0===i.length){if(s)continue;throw TypeError('Expected \"'+a.name+'\" to not be empty')}for(var f=0;f<i.length;f++){var d=o(i[f],a);if(u&&!l[n].test(d))throw TypeError('Expected all \"'+a.name+'\" to match \"'+a.pattern+'\", but got \"'+d+'\"');r+=a.prefix+d+a.suffix}continue}if(\"string\"==typeof i||\"number\"==typeof i){var d=o(String(i),a);if(u&&!l[n].test(d))throw TypeError('Expected \"'+a.name+'\" to match \"'+a.pattern+'\", but got \"'+d+'\"');r+=a.prefix+d+a.suffix;continue}if(!s){var p=c?\"an array\":\"a string\";throw TypeError('Expected \"'+a.name+'\" to be '+p)}}return r}}function o(e,t,r){void 0===r&&(r={});var n=r.decode,o=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],i=n.index,u=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];\"*\"===r.modifier||\"+\"===r.modifier?u[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return o(e,r)}):u[r.name]=o(n[e],r)}}(l);return{path:a,index:i,params:u}}}function a(e){return e.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g,\"\\\\$1\")}function i(e){return e&&e.sensitive?\"\":\"i\"}function u(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,u=r.start,l=r.end,s=r.encode,c=void 0===s?function(e){return e}:s,f=\"[\"+a(r.endsWith||\"\")+\"]|$\",d=\"[\"+a(r.delimiter||\"/#?\")+\"]\",p=void 0===u||u?\"^\":\"\",h=0;h<e.length;h++){var m=e[h];if(\"string\"==typeof m)p+=a(c(m));else{var _=a(c(m.prefix)),g=a(c(m.suffix));if(m.pattern){if(t&&t.push(m),_||g){if(\"+\"===m.modifier||\"*\"===m.modifier){var y=\"*\"===m.modifier?\"?\":\"\";p+=\"(?:\"+_+\"((?:\"+m.pattern+\")(?:\"+g+_+\"(?:\"+m.pattern+\"))*)\"+g+\")\"+y}else p+=\"(?:\"+_+\"(\"+m.pattern+\")\"+g+\")\"+m.modifier}else p+=\"(\"+m.pattern+\")\"+m.modifier}else p+=\"(?:\"+_+g+\")\"+m.modifier}}if(void 0===l||l)o||(p+=d+\"?\"),p+=r.endsWith?\"(?=\"+f+\")\":\"$\";else{var v=e[e.length-1],b=\"string\"==typeof v?d.indexOf(v[v.length-1])>-1:void 0===v;o||(p+=\"(?:\"+d+\"(?=\"+f+\"))?\"),b||(p+=\"(?=\"+d+\"|\"+f+\")\")}return new RegExp(p,i(r))}function l(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\\((?!\\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:\"\",suffix:\"\",modifier:\"\",pattern:\"\"});return e}(e,t):Array.isArray(e)?RegExp(\"(?:\"+e.map(function(e){return l(e,t,n).source}).join(\"|\")+\")\",i(n)):u(r(e,n),t,n)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.parse=r,t.compile=function(e,t){return n(r(e,t),t)},t.tokensToFunction=n,t.match=function(e,t){var r=[];return o(l(e,r,t),r,t)},t.regexpToFunction=o,t.tokensToRegexp=u,t.pathToRegexp=l},78018:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,v,b,P,E,S,O,R,j,w,T,x,A,C,M,I,N,L,D,k,U,F,B,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},void 0!==t&&(t.ab=\"//\"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return b},getFID:function(){return A},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return b},onFID:function(){return A},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener(\"pageshow\",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n=\"navigate\";return l>=0?n=\"back-forward-cache\":r&&(n=document.prerendering||f()>0?\"prerender\":r.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){\"pagehide\"!==n.type&&\"hidden\"!==document.visibilityState||(e(n),t&&(removeEventListener(\"visibilitychange\",r,!0),removeEventListener(\"pagehide\",r,!0)))};addEventListener(\"visibilitychange\",r,!0),addEventListener(\"pagehide\",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?\"poor\":u>r[0]?\"needs-improvement\":\"good\",e(t))}},_=-1,g=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},v=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},b=function(e,t){t=t||{};var r,n=[1800,3e3],o=v(),a=d(\"FCP\"),i=function(e){e.forEach(function(e){\"first-contentful-paint\"===e.name&&(l&&l.disconnect(),e.startTime<o.firstHiddenTime&&(a.value=e.startTime-f(),a.entries.push(e),r(!0)))})},u=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName(\"first-contentful-paint\")[0],l=u?null:p(\"paint\",i);(u||l)&&(r=m(e,a,n,t.reportAllChanges),u&&i([u]),s(function(o){r=m(e,a=d(\"FCP\"),n,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-o.timeStamp,r(!0)})})}))},P=!1,E=-1,S=function(e,t){t=t||{};var r=[.1,.25];P||(b(function(e){E=e.value}),P=!0);var n,o=function(t){E>-1&&e(t)},a=d(\"CLS\",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p(\"layout-shift\",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d(\"CLS\",0),r,t.reportAllChanges)}))},O={passive:!0,capture:!0},R=new Date,j=function(e,t){n||(n=t,o=e,a=new Date,x(removeEventListener),w())},w=function(){if(o>=0&&o<a-R){var e={entryType:\"first-input\",name:n.type,target:n.target,cancelable:n.cancelable,startTime:n.timeStamp,processingStart:n.timeStamp+o};i.forEach(function(t){t(e)}),i=[]}},T=function(e){if(e.cancelable){var t,r,n,o=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?(t=function(){j(o,e),n()},r=function(){n()},n=function(){removeEventListener(\"pointerup\",t,O),removeEventListener(\"pointercancel\",r,O)},addEventListener(\"pointerup\",t,O),addEventListener(\"pointercancel\",r,O)):j(o,e)}},x=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach(function(t){return e(t,T,O)})},A=function(e,t){t=t||{};var r,a=[100,300],u=v(),l=d(\"FID\"),c=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),r(!0))},f=function(e){e.forEach(c)},_=p(\"first-input\",f);r=m(e,l,a,t.reportAllChanges),_&&h(function(){f(_.takeRecords()),_.disconnect()},!0),_&&s(function(){r=m(e,l=d(\"FID\"),a,t.reportAllChanges),i=[],o=-1,n=null,x(addEventListener),i.push(c),w()})},C=0,M=1/0,I=0,N=function(e){e.forEach(function(e){e.interactionId&&(M=Math.min(M,e.interactionId),C=(I=Math.max(I,e.interactionId))?(I-M)/7+1:0)})},L=function(){return u?C:performance.interactionCount||0},D=function(){\"interactionCount\"in performance||u||(u=p(\"event\",N,{type:\"event\",buffered:!0,durationThreshold:0}))},k=0,U=function(){return L()-k},F=[],B={},H=function(e){var t=F[F.length-1],r=B[e.interactionId];if(r||F.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};B[n.id]=n,F.push(n)}F.sort(function(e,t){return t.latency-e.latency}),F.splice(10).forEach(function(e){delete B[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d(\"INP\"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),\"first-input\"!==e.entryType||F.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(F.length-1,Math.floor(U()/50)),F[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p(\"event\",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:\"first-input\",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&U()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){F=[],k=L(),n=m(e,o=d(\"INP\"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=v(),a=d(\"LCP\"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();n<o.firstHiddenTime&&(a.value=n,a.entries=[t],r())}},u=p(\"largest-contentful-paint\",i);if(u){r=m(e,a,n,t.reportAllChanges);var l=function(){q[a.id]||(i(u.takeRecords()),u.disconnect(),q[a.id]=!0,r(!0))};[\"keydown\",\"click\"].forEach(function(e){addEventListener(e,l,{once:!0,capture:!0})}),h(l,!0),s(function(o){r=m(e,a=d(\"LCP\"),n,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-o.timeStamp,q[a.id]=!0,r(!0)})})})}},z=function e(t){document.prerendering?addEventListener(\"prerenderingchange\",function(){return e(t)},!0):\"complete\"!==document.readyState?addEventListener(\"load\",function(){return e(t)},!0):setTimeout(t,0)},V=function(e,t){t=t||{};var r=[800,1800],n=d(\"TTFB\"),o=m(e,n,r,t.reportAllChanges);z(function(){var a=c();if(a){if(n.value=Math.max(a.responseStart-f(),0),n.value<0||n.value>performance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d(\"TTFB\",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},79423:function(e,t){\"use strict\";function r(e){return\"/api\"===e||!!(null==e?void 0:e.startsWith(\"/api/\"))}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"isAPIRoute\",{enumerable:!0,get:function(){return r}})},80676:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(21728);function o(e){return\"object\"==typeof e&&null!==e&&\"name\"in e&&\"message\"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+\"\")}},11730:function(e,t,r){\"use strict\";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(20738);return n(Array.isArray(t)?t.join(\"; \"):t)}}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"getCookieParser\",{enumerable:!0,get:function(){return n}})},92407:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(33e3),o=[\"(..)(..)\",\"(.)\",\"(..)\",\"(...)\"];function a(e){return void 0!==e.split(\"/\").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split(\"/\"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,n.normalizeAppPath)(t),r){case\"(.)\":a=\"/\"===t?`/${a}`:t+\"/\"+a;break;case\"(..)\":if(\"/\"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split(\"/\").slice(0,-1).concat(a).join(\"/\");break;case\"(...)\":a=\"/\"+a;break;case\"(..)(..)\":let i=t.split(\"/\");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join(\"/\");break;default:throw Error(\"Invariant: unexpected marker\")}return{interceptingRoute:t,interceptedRoute:a}}},38754:function(e,t,r){\"use strict\";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},61757:function(e,t,r){\"use strict\";function n(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(\"default\"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=25178)}),_N_E=e.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/main-app-0e53d5b0820fa726.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{3389:function(e,n,t){Promise.resolve().then(t.t.bind(t,95751,23)),Promise.resolve().then(t.t.bind(t,66513,23)),Promise.resolve().then(t.t.bind(t,76130,23)),Promise.resolve().then(t.t.bind(t,39275,23)),Promise.resolve().then(t.t.bind(t,16585,23)),Promise.resolve().then(t.t.bind(t,61343,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[971,23],function(){return n(11028),n(3389)}),_N_E=e.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/pages/_app-037b5d058bd9a820.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{41597:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/_app\",function(){return u(52239)}])}},function(n){var _=function(_){return n(n.s=_)};n.O(0,[774,179],function(){return _(41597),_(26036)}),_N_E=n.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/pages/_error-6ae619510b1539d6.js",
    "content": "(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{81981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/_error\",function(){return u(83387)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=81981)}),_N_E=n.O()}]);"
  },
  {
    "path": "docs/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js",
    "content": "!function(){var t=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r(\"object\"==typeof globalThis&&globalThis)||r(\"object\"==typeof window&&window)||r(\"object\"==typeof self&&self)||r(\"object\"==typeof t&&t)||Function(\"return this\")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s=u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a,c={f:s},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p=\"\".split,d=o(function(){return!Object(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"==h(t)?p.call(t,\"\"):Object(t)}:Object,v=function(t){if(null==t)throw TypeError(\"Can't call method on \"+t);return t},g=function(t){return d(v(t))},y=function(t){return\"object\"==typeof t?null!==t:\"function\"==typeof t},m=function(t,e){if(!y(t))return t;var r,n;if(e&&\"function\"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if(\"function\"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&\"function\"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError(\"Can't convert object to primitive value\")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},S=n.document,E=y(S)&&y(S.createElement),x=function(t){return E?S.createElement(t):{}},A=!i&&!o(function(){return 7!=Object.defineProperty(x(\"div\"),\"a\",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,R={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),A)try{return O(t,e)}catch(t){}if(w(t,e))return f(!c.f.call(t,e),t[e])}},j=function(t){if(!y(t))throw TypeError(String(t)+\" is not an object\");return t},P=Object.defineProperty,I={f:i?P:function(t,e,r){if(j(t),e=m(e,!0),j(r),A)try{return P(t,e,r)}catch(t){}if(\"get\"in r||\"set\"in r)throw TypeError(\"Accessors not supported\");return\"value\"in r&&(t[e]=r.value),t}},T=i?function(t,e,r){return I.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},k=function(t,e){try{T(n,t,e)}catch(r){n[t]=e}return e},L=\"__core-js_shared__\",U=n[L]||k(L,{}),M=Function.toString;\"function\"!=typeof U.inspectSource&&(U.inspectSource=function(t){return M.call(t)});var _,N,C,F=U.inspectSource,B=n.WeakMap,D=\"function\"==typeof B&&/native code/.test(F(B)),q=!1,z=e(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.6.5\",mode:\"global\",copyright:\"© 2020 Denis Pushkarev (zloirock.ru)\"})}),W=0,K=Math.random(),G=function(t){return\"Symbol(\"+String(void 0===t?\"\":t)+\")_\"+(++W+K).toString(36)},$=z(\"keys\"),V=function(t){return $[t]||($[t]=G(t))},H={};if(D){var X=new(0,n.WeakMap),Y=X.get,J=X.has,Q=X.set;_=function(t,e){return Q.call(X,t,e),e},N=function(t){return Y.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var Z=V(\"state\");H[Z]=!0,_=function(t,e){return T(t,Z,e),e},N=function(t){return w(t,Z)?t[Z]:{}},C=function(t){return w(t,Z)}}var tt,et={set:_,get:N,has:C,enforce:function(t){return C(t)?N(t):_(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=N(e)).type!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required\");return r}}},rt=e(function(t){var e=et.get,r=et.enforce,o=String(String).split(\"String\");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;\"function\"==typeof i&&(\"string\"!=typeof e||w(i,\"name\")||T(i,\"name\",e),r(i).source=o.join(\"string\"==typeof e?e:\"\")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:T(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,\"toString\",function(){return\"function\"==typeof this&&e(this).source||F(this)})}),nt=n,ot=function(t){return\"function\"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(nt[t])||ot(n[t]):nt[t]&&nt[t][e]||n[t]&&n[t][e]},at=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ct=Math.min,ft=function(t){return t>0?ct(st(t),9007199254740991):0},lt=Math.max,ht=Math.min,pt=function(t,e){var r=st(t);return r<0?lt(r+e,0):ht(r,e)},dt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=pt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vt={includes:dt(!0),indexOf:dt(!1)},gt=vt.indexOf,yt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(H,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},mt=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],bt=mt.concat(\"length\",\"prototype\"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,bt)}},St={f:Object.getOwnPropertySymbols},Et=it(\"Reflect\",\"ownKeys\")||function(t){var e=wt.f(j(t)),r=St.f;return r?e.concat(r(t)):e},xt=function(t,e){for(var r=Et(e),n=I.f,o=R.f,i=0;i<r.length;i++){var a=r[i];w(t,a)||n(t,a,o(e,a))}},At=/#|\\.prototype\\./,Ot=function(t,e){var r=jt[Rt(t)];return r==It||r!=Pt&&(\"function\"==typeof e?o(e):!!e)},Rt=Ot.normalize=function(t){return String(t).replace(At,\".\").toLowerCase()},jt=Ot.data={},Pt=Ot.NATIVE=\"N\",It=Ot.POLYFILL=\"P\",Tt=Ot,kt=R.f,Lt=function(t,e){var r,o,i,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?n:f?n[s]||k(s,{}):(n[s]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(u=kt(r,o))&&u.value:r[o],!Tt(c?o:s+(f?\".\":\"#\")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;xt(a,i)}(t.sham||i&&i.sham)&&T(a,\"sham\",!0),rt(r,o,a,t)}},Ut=function(t){return Object(v(t))},Mt=Math.min,_t=[].copyWithin||function(t,e){var r=Ut(this),n=ft(r.length),o=pt(t,n),i=pt(e,n),a=arguments.length>2?arguments[2]:void 0,u=Mt((void 0===a?n:pt(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Nt=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Ct=Nt&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,Ft=z(\"wks\"),Bt=n.Symbol,Dt=Ct?Bt:Bt&&Bt.withoutSetter||G,qt=function(t){return w(Ft,t)||(Ft[t]=Nt&&w(Bt,t)?Bt[t]:Dt(\"Symbol.\"+t)),Ft[t]},zt=Object.keys||function(t){return yt(t,mt)},Wt=i?Object.defineProperties:function(t,e){j(t);for(var r,n=zt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Kt=it(\"document\",\"documentElement\"),Gt=\"prototype\",$t=\"script\",Vt=V(\"IE_PROTO\"),Ht=function(){},Xt=function(t){return\"<\"+$t+\">\"+t+\"</\"+$t+\">\"},Yt=function(){try{tt=document.domain&&new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,r;Yt=tt?function(t){t.write(Xt(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):(e=x(\"iframe\"),r=\"java\"+$t+\":\",e.style.display=\"none\",Kt.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xt(\"document.F=Object\")),t.close(),t.F);for(var n=mt.length;n--;)delete Yt[Gt][mt[n]];return Yt()};H[Vt]=!0;var Jt=Object.create||function(t,e){var r;return null!==t?(Ht[Gt]=j(t),r=new Ht,Ht[Gt]=null,r[Vt]=t):r=Yt(),void 0===e?r:Wt(r,e)},Qt=qt(\"unscopables\"),Zt=Array.prototype;null==Zt[Qt]&&I.f(Zt,Qt,{configurable:!0,value:Jt(null)});var te=function(t){Zt[Qt][t]=!0};Lt({target:\"Array\",proto:!0},{copyWithin:_t}),te(\"copyWithin\");var ee=function(t){if(\"function\"!=typeof t)throw TypeError(String(t)+\" is not a function\");return t},re=function(t,e,r){if(ee(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},ne=Function.call,oe=function(t,e,r){return re(ne,n[t].prototype[e],r)};oe(\"Array\",\"copyWithin\"),Lt({target:\"Array\",proto:!0},{fill:function(t){for(var e=Ut(this),r=ft(e.length),n=arguments.length,o=pt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:pt(i,r);a>o;)e[o++]=t;return e}}),te(\"fill\"),oe(\"Array\",\"fill\");var ie=Array.isArray||function(t){return\"Array\"==h(t)},ae=qt(\"species\"),ue=function(t,e){var r;return ie(t)&&(\"function\"!=typeof(r=t.constructor)||r!==Array&&!ie(r.prototype)?y(r)&&null===(r=r[ae])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},se=[].push,ce=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,s,c,f){for(var l,h,p=Ut(u),v=d(p),g=re(s,c,3),y=ft(v.length),m=0,b=f||ue,w=e?b(u,y):r?b(u,0):void 0;y>m;m++)if((a||m in v)&&(h=g(l=v[m],m,p),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:se.call(w,l)}else if(o)return!1;return i?-1:n||o?o:w}},fe={forEach:ce(0),map:ce(1),filter:ce(2),some:ce(3),every:ce(4),find:ce(5),findIndex:ce(6)},le=Object.defineProperty,he={},pe=function(t){throw t},de=function(t,e){if(w(he,t))return he[t];e||(e={});var r=[][t],n=!!w(e,\"ACCESSORS\")&&e.ACCESSORS,a=w(e,0)?e[0]:pe,u=w(e,1)?e[1]:void 0;return he[t]=!!r&&!o(function(){if(n&&!i)return!0;var t={length:-1};n?le(t,1,{enumerable:!0,get:pe}):t[1]=1,r.call(t,a,u)})},ve=fe.find,ge=\"find\",ye=!0,me=de(ge);ge in[]&&Array(1)[ge](function(){ye=!1}),Lt({target:\"Array\",proto:!0,forced:ye||!me},{find:function(t){return ve(this,t,arguments.length>1?arguments[1]:void 0)}}),te(ge),oe(\"Array\",\"find\");var be=fe.findIndex,we=\"findIndex\",Se=!0,Ee=de(we);we in[]&&Array(1)[we](function(){Se=!1}),Lt({target:\"Array\",proto:!0,forced:Se||!Ee},{findIndex:function(t){return be(this,t,arguments.length>1?arguments[1]:void 0)}}),te(we),oe(\"Array\",\"findIndex\");var xe=function(t,e,r,n,o,i,a,u){for(var s,c=o,f=0,l=!!a&&re(a,u,3);f<n;){if(f in r){if(s=l?l(r[f],f,e):r[f],i>0&&ie(s))c=xe(t,e,s,ft(s.length),c,i-1)-1;else{if(c>=9007199254740991)throw TypeError(\"Exceed the acceptable array length\");t[c]=s}c++}f++}return c},Ae=xe;Lt({target:\"Array\",proto:!0},{flatMap:function(t){var e,r=Ut(this),n=ft(r.length);return ee(t),(e=ue(r,0)).length=Ae(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),te(\"flatMap\"),oe(\"Array\",\"flatMap\"),Lt({target:\"Array\",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Ut(this),r=ft(e.length),n=ue(e,0);return n.length=Ae(n,e,e,r,0,void 0===t?1:st(t)),n}}),te(\"flat\"),oe(\"Array\",\"flat\");var Oe,Re,je,Pe=function(t){return function(e,r){var n,o,i=String(v(e)),a=st(r),u=i.length;return a<0||a>=u?t?\"\":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Ie={codeAt:Pe(!1),charAt:Pe(!0)},Te=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),ke=V(\"IE_PROTO\"),Le=Object.prototype,Ue=Te?Object.getPrototypeOf:function(t){return t=Ut(t),w(t,ke)?t[ke]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Le:null},Me=qt(\"iterator\"),_e=!1;[].keys&&(\"next\"in(je=[].keys())?(Re=Ue(Ue(je)))!==Object.prototype&&(Oe=Re):_e=!0),null==Oe&&(Oe={}),w(Oe,Me)||T(Oe,Me,function(){return this});var Ne={IteratorPrototype:Oe,BUGGY_SAFARI_ITERATORS:_e},Ce=I.f,Fe=qt(\"toStringTag\"),Be=function(t,e,r){t&&!w(t=r?t:t.prototype,Fe)&&Ce(t,Fe,{configurable:!0,value:e})},De={},qe=Ne.IteratorPrototype,ze=function(){return this},We=function(t,e,r){var n=e+\" Iterator\";return t.prototype=Jt(qe,{next:f(1,r)}),Be(t,n,!1),De[n]=ze,t},Ke=function(t){if(!y(t)&&null!==t)throw TypeError(\"Can't set \"+String(t)+\" as a prototype\");return t},Ge=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),Ke(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),$e=Ne.IteratorPrototype,Ve=Ne.BUGGY_SAFARI_ITERATORS,He=qt(\"iterator\"),Xe=\"keys\",Ye=\"values\",Je=\"entries\",Qe=function(){return this},Ze=function(t,e,r,n,o,i,a){We(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!Ve&&t in p)return p[t];switch(t){case Xe:case Ye:case Je:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+\" Iterator\",h=!1,p=t.prototype,d=p[He]||p[\"@@iterator\"]||o&&p[o],v=!Ve&&d||f(o),g=\"Array\"==e&&p.entries||d;if(g&&(u=Ue(g.call(new t)),$e!==Object.prototype&&u.next&&(Ue(u)!==$e&&(Ge?Ge(u,$e):\"function\"!=typeof u[He]&&T(u,He,Qe)),Be(u,l,!0))),o==Ye&&d&&d.name!==Ye&&(h=!0,v=function(){return d.call(this)}),p[He]!==v&&T(p,He,v),De[e]=v,o)if(s={values:f(Ye),keys:i?v:f(Xe),entries:f(Je)},a)for(c in s)(Ve||h||!(c in p))&&rt(p,c,s[c]);else Lt({target:e,proto:!0,forced:Ve||h},s);return s},tr=Ie.charAt,er=\"String Iterator\",rr=et.set,nr=et.getterFor(er);Ze(String,\"String\",function(t){rr(this,{type:er,string:String(t),index:0})},function(){var t,e=nr(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=tr(r,n),e.index+=t.length,{value:t,done:!1})});var or=function(t,e,r,n){try{return n?e(j(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&j(o.call(t)),e}},ir=qt(\"iterator\"),ar=Array.prototype,ur=function(t){return void 0!==t&&(De.Array===t||ar[ir]===t)},sr=function(t,e,r){var n=m(e);n in t?I.f(t,n,f(0,r)):t[n]=r},cr={};cr[qt(\"toStringTag\")]=\"z\";var fr=\"[object z]\"===String(cr),lr=qt(\"toStringTag\"),hr=\"Arguments\"==h(function(){return arguments}()),pr=fr?h:function(t){var e,r,n;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),lr))?r:hr?h(e):\"Object\"==(n=h(e))&&\"function\"==typeof e.callee?\"Arguments\":n},dr=qt(\"iterator\"),vr=function(t){if(null!=t)return t[dr]||t[\"@@iterator\"]||De[pr(t)]},gr=function(t){var e,r,n,o,i,a,u=Ut(t),s=\"function\"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=vr(u),p=0;if(l&&(f=re(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&ur(h))for(r=new s(e=ft(u.length));e>p;p++)a=l?f(u[p],p):u[p],sr(r,p,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;p++)a=l?or(o,f,[n.value,p],!0):n.value,sr(r,p,a);return r.length=p,r},yr=qt(\"iterator\"),mr=!1;try{var br=0,wr={next:function(){return{done:!!br++}},return:function(){mr=!0}};wr[yr]=function(){return this},Array.from(wr,function(){throw 2})}catch(t){}var Sr=function(t,e){if(!e&&!mr)return!1;var r=!1;try{var n={};n[yr]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Er=!Sr(function(t){Array.from(t)});Lt({target:\"Array\",stat:!0,forced:Er},{from:gr});var xr=vt.includes,Ar=de(\"indexOf\",{ACCESSORS:!0,1:0});Lt({target:\"Array\",proto:!0,forced:!Ar},{includes:function(t){return xr(this,t,arguments.length>1?arguments[1]:void 0)}}),te(\"includes\"),oe(\"Array\",\"includes\");var Or=\"Array Iterator\",Rr=et.set,jr=et.getterFor(Or),Pr=Ze(Array,\"Array\",function(t,e){Rr(this,{type:Or,target:g(t),index:0,kind:e})},function(){var t=jr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):\"keys\"==r?{value:n,done:!1}:\"values\"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},\"values\");De.Arguments=De.Array,te(\"keys\"),te(\"values\"),te(\"entries\"),oe(\"Array\",\"values\");var Ir=o(function(){function t(){}return!(Array.of.call(t)instanceof t)});Lt({target:\"Array\",stat:!0,forced:Ir},{of:function(){for(var t=0,e=arguments.length,r=new(\"function\"==typeof this?this:Array)(e);e>t;)sr(r,t,arguments[t++]);return r.length=e,r}});var Tr=qt(\"hasInstance\"),kr=Function.prototype;Tr in kr||I.f(kr,Tr,{value:function(t){if(\"function\"!=typeof this||!y(t))return!1;if(!y(this.prototype))return t instanceof this;for(;t=Ue(t);)if(this.prototype===t)return!0;return!1}}),qt(\"hasInstance\");var Lr=Function.prototype,Ur=Lr.toString,Mr=/^\\s*function ([^ (]*)/,_r=\"name\";i&&!(_r in Lr)&&(0,I.f)(Lr,_r,{configurable:!0,get:function(){try{return Ur.call(this).match(Mr)[1]}catch(t){return\"\"}}});var Nr=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),Cr=e(function(t){var e=I.f,r=G(\"meta\"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:\"O\"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!w(t,r)){if(!o(t))return\"F\";if(!e)return\"E\";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!w(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Nr&&a.REQUIRED&&o(t)&&!w(t,r)&&i(t),t}};H[r]=!0}),Fr=e(function(t){var e=function(t,e){this.stopped=t,this.result=e},r=t.exports=function(t,r,n,o,i){var a,u,s,c,f,l,h,p=re(r,n,o?2:1);if(i)a=t;else{if(\"function\"!=typeof(u=vr(t)))throw TypeError(\"Target is not iterable\");if(ur(u)){for(s=0,c=ft(t.length);c>s;s++)if((f=o?p(j(h=t[s])[0],h[1]):p(t[s]))&&f instanceof e)return f;return new e(!1)}a=u.call(t)}for(l=a.next;!(h=l.call(a)).done;)if(\"object\"==typeof(f=or(a,p,h.value,o))&&f&&f instanceof e)return f;return new e(!1)};r.stop=function(t){return new e(!0,t)}}),Br=function(t,e,r){if(!(t instanceof e))throw TypeError(\"Incorrect \"+(r?r+\" \":\"\")+\"invocation\");return t},Dr=function(t,e,r){var n,o;return Ge&&\"function\"==typeof(n=e.constructor)&&n!==r&&y(o=n.prototype)&&o!==r.prototype&&Ge(t,o),t},qr=function(t,e,r){var i=-1!==t.indexOf(\"Map\"),a=-1!==t.indexOf(\"Weak\"),u=i?\"set\":\"add\",s=n[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=c[t];rt(c,t,\"add\"==t?function(t){return e.call(this,0===t?0:t),this}:\"delete\"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:\"get\"==t?function(t){return a&&!y(t)?void 0:e.call(this,0===t?0:t)}:\"has\"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(Tt(t,\"function\"!=typeof s||!(a||c.forEach&&!o(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,i,u),Cr.REQUIRED=!0;else if(Tt(t,!0)){var p=new f,d=p[u](a?{}:-0,1)!=p,v=o(function(){p.has(1)}),g=Sr(function(t){new s(t)}),m=!a&&o(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(e,r){Br(e,f,t);var n=Dr(new s,e,f);return null!=r&&Fr(r,n[u],n,i),n})).prototype=c,c.constructor=f),(v||m)&&(h(\"delete\"),h(\"has\"),i&&h(\"get\")),(m||d)&&h(u),a&&c.clear&&delete c.clear}return l[t]=f,Lt({global:!0,forced:f!=s},l),Be(f,t),a||r.setStrong(f,t,i),f},zr=function(t,e,r){for(var n in e)rt(t,n,e[n],r);return t},Wr=qt(\"species\"),Kr=function(t){var e=it(t);i&&e&&!e[Wr]&&(0,I.f)(e,Wr,{configurable:!0,get:function(){return this}})},Gr=I.f,$r=Cr.fastKey,Vr=et.set,Hr=et.getterFor,Xr={getConstructor:function(t,e,r,n){var o=t(function(t,a){Br(t,o,e),Vr(t,{type:e,index:Jt(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=a&&Fr(a,t[n],t,r)}),a=Hr(e),u=function(t,e,r){var n,o,u=a(t),c=s(t,e);return c?c.value=r:(u.last=c={index:o=$r(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=c),n&&(n.next=c),i?u.size++:t.size++,\"F\"!==o&&(u.index[o]=c)),t},s=function(t,e){var r,n=a(t),o=$r(e);if(\"F\"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return zr(o.prototype,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,i?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=s(e,t);if(n){var o=n.next,u=n.previous;delete r.index[n.index],n.removed=!0,u&&(u.next=o),o&&(o.previous=u),r.first==n&&(r.first=o),r.last==n&&(r.last=u),i?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=re(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),zr(o.prototype,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&Gr(o.prototype,\"size\",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+\" Iterator\",o=Hr(e),i=Hr(n);Ze(t,e,function(t,e){Vr(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?\"keys\"==e?{value:r.key,done:!1}:\"values\"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?\"entries\":\"values\",!r,!0),Kr(e)}},Yr=qr(\"Map\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xr);fr||rt(Object.prototype,\"toString\",fr?{}.toString:function(){return\"[object \"+pr(this)+\"]\"},{unsafe:!0});var Jr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qr=qt(\"iterator\"),Zr=qt(\"toStringTag\"),tn=Pr.values;for(var en in Jr){var rn=n[en],nn=rn&&rn.prototype;if(nn){if(nn[Qr]!==tn)try{T(nn,Qr,tn)}catch(t){nn[Qr]=tn}if(nn[Zr]||T(nn,Zr,en),Jr[en])for(var on in Pr)if(nn[on]!==Pr[on])try{T(nn,on,Pr[on])}catch(t){nn[on]=Pr[on]}}}var an=function(t){var e,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return ee(this),(e=void 0!==a)&&ee(a),null==t?new this:(r=[],e?(n=0,o=re(a,i>2?arguments[2]:void 0,2),Fr(t,function(t){r.push(o(t,n++))})):Fr(t,r.push,r),new this(r))};Lt({target:\"Map\",stat:!0},{from:an});var un=function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)};Lt({target:\"Map\",stat:!0},{of:un});var sn=function(){for(var t,e=j(this),r=ee(e.delete),n=!0,o=0,i=arguments.length;o<i;o++)t=r.call(e,arguments[o]),n=n&&t;return!!n};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}});var cn=function(t){var e=vr(t);if(\"function\"!=typeof e)throw TypeError(String(t)+\" is not iterable\");return j(e.call(t))},fn=function(t){return Map.prototype.entries.call(t)};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return!Fr(r,function(t,r){if(!n(r,t,e))return Fr.stop()},void 0,!0,!0).stopped}});var ln=qt(\"species\"),hn=function(t,e){var r,n=j(t).constructor;return void 0===n||null==(r=j(n)[ln])?e:ee(r)};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Map\"))),i=ee(o.set);return Fr(r,function(t,r){n(r,t,e)&&i.call(o,t,r)},void 0,!0,!0),o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop(r)},void 0,!0,!0).result}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{findKey:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop(t)},void 0,!0,!0).result}}),Lt({target:\"Map\",stat:!0},{groupBy:function(t,e){var r=new this;ee(e);var n=ee(r.has),o=ee(r.get),i=ee(r.set);return Fr(t,function(t){var a=e(t);n.call(r,a)?o.call(r,a).push(t):i.call(r,a,[t])}),r}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{includes:function(t){return Fr(fn(j(this)),function(e,r){if((n=r)===(o=t)||n!=n&&o!=o)return Fr.stop();var n,o},void 0,!0,!0).stopped}}),Lt({target:\"Map\",stat:!0},{keyBy:function(t,e){var r=new this;ee(e);var n=ee(r.set);return Fr(t,function(t){n.call(r,e(t),t)}),r}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{keyOf:function(t){return Fr(fn(j(this)),function(e,r){if(r===t)return Fr.stop(e)},void 0,!0,!0).result}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{mapKeys:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Map\"))),i=ee(o.set);return Fr(r,function(t,r){i.call(o,n(r,t,e),r)},void 0,!0,!0),o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{mapValues:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Map\"))),i=ee(o.set);return Fr(r,function(t,r){i.call(o,t,n(r,t,e))},void 0,!0,!0),o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{merge:function(t){for(var e=j(this),r=ee(e.set),n=0;n<arguments.length;)Fr(arguments[n++],r,e,!0);return e}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=fn(e),n=arguments.length<2,o=n?void 0:arguments[1];if(ee(t),Fr(r,function(r,i){n?(n=!1,o=i):o=t(o,i,r,e)},void 0,!0,!0),n)throw TypeError(\"Reduce of empty map with no initial value\");return o}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=fn(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t,r){if(n(r,t,e))return Fr.stop()},void 0,!0,!0).stopped}}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{update:function(t,e){var r=j(this),n=arguments.length;ee(e);var o=r.has(t);if(!o&&n<3)throw TypeError(\"Updating absent value\");var i=o?r.get(t):ee(n>2?arguments[2]:void 0)(t,r);return r.set(t,e(i,t,r)),r}});var pn=function(t,e){var r,n=j(this),o=arguments.length>2?arguments[2]:void 0;if(\"function\"!=typeof e&&\"function\"!=typeof o)throw TypeError(\"At least one callback required\");return n.has(t)?(r=n.get(t),\"function\"==typeof e&&(r=e(r),n.set(t,r))):\"function\"==typeof o&&(r=o(),n.set(t,r)),r};Lt({target:\"Map\",proto:!0,real:!0,forced:q},{upsert:pn}),Lt({target:\"Map\",proto:!0,real:!0,forced:q},{updateOrInsert:pn});var dn=\"\\t\\n\\v\\f\\r                　\\u2028\\u2029\\ufeff\",vn=\"[\"+dn+\"]\",gn=RegExp(\"^\"+vn+vn+\"*\"),yn=RegExp(vn+vn+\"*$\"),mn=function(t){return function(e){var r=String(v(e));return 1&t&&(r=r.replace(gn,\"\")),2&t&&(r=r.replace(yn,\"\")),r}},bn={start:mn(1),end:mn(2),trim:mn(3)},wn=wt.f,Sn=R.f,En=I.f,xn=bn.trim,An=\"Number\",On=n[An],Rn=On.prototype,jn=h(Jt(Rn))==An,Pn=function(t){var e,r,n,o,i,a,u,s,c=m(t,!1);if(\"string\"==typeof c&&c.length>2)if(43===(e=(c=xn(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;u<a;u++)if((s=i.charCodeAt(u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(Tt(An,!On(\" 0o1\")||!On(\"0b1\")||On(\"+0x1\"))){for(var In,Tn=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Tn&&(jn?o(function(){Rn.valueOf.call(r)}):h(r)!=An)?Dr(new On(Pn(e)),r,Tn):Pn(e)},kn=i?wn(On):\"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger\".split(\",\"),Ln=0;kn.length>Ln;Ln++)w(On,In=kn[Ln])&&!w(Tn,In)&&En(Tn,In,Sn(On,In));Tn.prototype=Rn,Rn.constructor=Tn,rt(n,An,Tn)}Lt({target:\"Number\",stat:!0},{EPSILON:Math.pow(2,-52)});var Un=n.isFinite;Lt({target:\"Number\",stat:!0},{isFinite:Number.isFinite||function(t){return\"number\"==typeof t&&Un(t)}});var Mn=Math.floor,_n=function(t){return!y(t)&&isFinite(t)&&Mn(t)===t};Lt({target:\"Number\",stat:!0},{isInteger:_n}),Lt({target:\"Number\",stat:!0},{isNaN:function(t){return t!=t}});var Nn=Math.abs;Lt({target:\"Number\",stat:!0},{isSafeInteger:function(t){return _n(t)&&Nn(t)<=9007199254740991}}),Lt({target:\"Number\",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Lt({target:\"Number\",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991});var Cn=bn.trim,Fn=n.parseFloat,Bn=1/Fn(dn+\"-0\")!=-Infinity?function(t){var e=Cn(String(t)),r=Fn(e);return 0===r&&\"-\"==e.charAt(0)?-0:r}:Fn;Lt({target:\"Number\",stat:!0,forced:Number.parseFloat!=Bn},{parseFloat:Bn});var Dn=bn.trim,qn=n.parseInt,zn=/^[+-]?0[Xx]/,Wn=8!==qn(dn+\"08\")||22!==qn(dn+\"0x16\")?function(t,e){var r=Dn(String(t));return qn(r,e>>>0||(zn.test(r)?16:10))}:qn;Lt({target:\"Number\",stat:!0,forced:Number.parseInt!=Wn},{parseInt:Wn});var Kn=c.f,Gn=function(t){return function(e){for(var r,n=g(e),o=zt(n),a=o.length,u=0,s=[];a>u;)r=o[u++],i&&!Kn.call(n,r)||s.push(t?[r,n[r]]:n[r]);return s}},$n={entries:Gn(!0),values:Gn(!1)},Vn=$n.entries;Lt({target:\"Object\",stat:!0},{entries:function(t){return Vn(t)}}),Lt({target:\"Object\",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=g(t),o=R.f,i=Et(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&sr(a,e,r);return a}});var Hn=o(function(){zt(1)});Lt({target:\"Object\",stat:!0,forced:Hn},{keys:function(t){return zt(Ut(t))}});var Xn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Lt({target:\"Object\",stat:!0},{is:Xn});var Yn=$n.values;Lt({target:\"Object\",stat:!0},{values:function(t){return Yn(t)}});var Jn=it(\"Reflect\",\"apply\"),Qn=Function.apply,Zn=!o(function(){Jn(function(){})});Lt({target:\"Reflect\",stat:!0,forced:Zn},{apply:function(t,e,r){return ee(t),j(r),Jn?Jn(t,e,r):Qn.call(t,e,r)}});var to=[].slice,eo={},ro=Function.bind||function(t){var e=ee(this),r=to.call(arguments,1),n=function(){var o=r.concat(to.call(arguments));return this instanceof n?function(t,e,r){if(!(e in eo)){for(var n=[],o=0;o<e;o++)n[o]=\"a[\"+o+\"]\";eo[e]=Function(\"C,a\",\"return new C(\"+n.join(\",\")+\")\")}return eo[e](t,r)}(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(n.prototype=e.prototype),n},no=it(\"Reflect\",\"construct\"),oo=o(function(){function t(){}return!(no(function(){},[],t)instanceof t)}),io=!o(function(){no(function(){})}),ao=oo||io;Lt({target:\"Reflect\",stat:!0,forced:ao,sham:ao},{construct:function(t,e){ee(t),j(e);var r=arguments.length<3?t:ee(arguments[2]);if(io&&!oo)return no(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(ro.apply(t,n))}var o=r.prototype,i=Jt(y(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return y(a)?a:i}});var uo=o(function(){Reflect.defineProperty(I.f({},1,{value:1}),1,{value:2})});Lt({target:\"Reflect\",stat:!0,forced:uo,sham:!i},{defineProperty:function(t,e,r){j(t);var n=m(e,!0);j(r);try{return I.f(t,n,r),!0}catch(t){return!1}}});var so=R.f;Lt({target:\"Reflect\",stat:!0},{deleteProperty:function(t,e){var r=so(j(t),e);return!(r&&!r.configurable)&&delete t[e]}}),Lt({target:\"Reflect\",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return j(e)===i?e[r]:(n=R.f(e,r))?w(n,\"value\")?n.value:void 0===n.get?void 0:n.get.call(i):y(o=Ue(e))?t(o,r,i):void 0}}),Lt({target:\"Reflect\",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return R.f(j(t),e)}}),Lt({target:\"Reflect\",stat:!0,sham:!Te},{getPrototypeOf:function(t){return Ue(j(t))}}),Lt({target:\"Reflect\",stat:!0},{has:function(t,e){return e in t}});var co=Object.isExtensible;Lt({target:\"Reflect\",stat:!0},{isExtensible:function(t){return j(t),!co||co(t)}}),Lt({target:\"Reflect\",stat:!0},{ownKeys:Et}),Lt({target:\"Reflect\",stat:!0,sham:!Nr},{preventExtensions:function(t){j(t);try{var e=it(\"Object\",\"preventExtensions\");return e&&e(t),!0}catch(t){return!1}}});var fo=o(function(){var t=I.f({},\"a\",{configurable:!0});return!1!==Reflect.set(Ue(t),\"a\",1,t)});Lt({target:\"Reflect\",stat:!0,forced:fo},{set:function t(e,r,n){var o,i,a=arguments.length<4?e:arguments[3],u=R.f(j(e),r);if(!u){if(y(i=Ue(e)))return t(i,r,n,a);u=f(0)}if(w(u,\"value\")){if(!1===u.writable||!y(a))return!1;if(o=R.f(a,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,I.f(a,r,o)}else I.f(a,r,f(0,n));return!0}return void 0!==u.set&&(u.set.call(a,n),!0)}}),Ge&&Lt({target:\"Reflect\",stat:!0},{setPrototypeOf:function(t,e){j(t),Ke(e);try{return Ge(t,e),!0}catch(t){return!1}}});var lo=Cr.getWeakData,ho=et.set,po=et.getterFor,vo=fe.find,go=fe.findIndex,yo=0,mo=function(t){return t.frozen||(t.frozen=new bo)},bo=function(){this.entries=[]},wo=function(t,e){return vo(t.entries,function(t){return t[0]===e})};bo.prototype={get:function(t){var e=wo(this,t);if(e)return e[1]},has:function(t){return!!wo(this,t)},set:function(t,e){var r=wo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=go(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var So={getConstructor:function(t,e,r,n){var o=t(function(t,i){Br(t,o,e),ho(t,{type:e,id:yo++,frozen:void 0}),null!=i&&Fr(i,t[n],t,r)}),i=po(e),a=function(t,e,r){var n=i(t),o=lo(j(e),!0);return!0===o?mo(n).set(e,r):o[n.id]=r,t};return zr(o.prototype,{delete:function(t){var e=i(this);if(!y(t))return!1;var r=lo(t);return!0===r?mo(e).delete(t):r&&w(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!y(t))return!1;var r=lo(t);return!0===r?mo(e).has(t):r&&w(r,e.id)}}),zr(o.prototype,r?{get:function(t){var e=i(this);if(y(t)){var r=lo(t);return!0===r?mo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Eo=e(function(t){var e,r=et.enforce,o=!n.ActiveXObject&&\"ActiveXObject\"in n,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},u=t.exports=qr(\"WeakMap\",a,So);if(D&&o){e=So.getConstructor(a,\"WeakMap\",!0),Cr.REQUIRED=!0;var s=u.prototype,c=s.delete,f=s.has,l=s.get,h=s.set;zr(s,{delete:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),c.call(this,t)||n.frozen.delete(t)}return c.call(this,t)},has:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)||n.frozen.has(t)}return f.call(this,t)},get:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)?l.call(this,t):n.frozen.get(t)}return l.call(this,t)},set:function(t,n){if(y(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),f.call(this,t)?h.call(this,t,n):o.frozen.set(t,n)}else h.call(this,t,n);return this}})}}),xo=z(\"metadata\"),Ao=xo.store||(xo.store=new Eo),Oo=function(t,e,r){var n=Ao.get(t);if(!n){if(!r)return;Ao.set(t,n=new Yr)}var o=n.get(e);if(!o){if(!r)return;n.set(e,o=new Yr)}return o},Ro={store:Ao,getMap:Oo,has:function(t,e,r){var n=Oo(e,r,!1);return void 0!==n&&n.has(t)},get:function(t,e,r){var n=Oo(e,r,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,r,n){Oo(r,n,!0).set(t,e)},keys:function(t,e){var r=Oo(t,e,!1),n=[];return r&&r.forEach(function(t,e){n.push(e)}),n},toKey:function(t){return void 0===t||\"symbol\"==typeof t?t:String(t)}},jo=Ro.toKey,Po=Ro.set;Lt({target:\"Reflect\",stat:!0},{defineMetadata:function(t,e,r){var n=arguments.length<4?void 0:jo(arguments[3]);Po(t,e,j(r),n)}});var Io=Ro.toKey,To=Ro.getMap,ko=Ro.store;Lt({target:\"Reflect\",stat:!0},{deleteMetadata:function(t,e){var r=arguments.length<3?void 0:Io(arguments[2]),n=To(j(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var o=ko.get(e);return o.delete(r),!!o.size||ko.delete(e)}});var Lo=Ro.has,Uo=Ro.get,Mo=Ro.toKey,_o=function(t,e,r){if(Lo(t,e,r))return Uo(t,e,r);var n=Ue(e);return null!==n?_o(t,n,r):void 0};Lt({target:\"Reflect\",stat:!0},{getMetadata:function(t,e){var r=arguments.length<3?void 0:Mo(arguments[2]);return _o(t,j(e),r)}});var No=qr(\"Set\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xr),Co=Ro.keys,Fo=Ro.toKey,Bo=function(t,e){var r=Co(t,e),n=Ue(t);if(null===n)return r;var o,i,a=Bo(n,e);return a.length?r.length?(o=new No(r.concat(a)),Fr(o,(i=[]).push,i),i):a:r};Lt({target:\"Reflect\",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:Fo(arguments[1]);return Bo(j(t),e)}});var Do=Ro.get,qo=Ro.toKey;Lt({target:\"Reflect\",stat:!0},{getOwnMetadata:function(t,e){var r=arguments.length<3?void 0:qo(arguments[2]);return Do(t,j(e),r)}});var zo=Ro.keys,Wo=Ro.toKey;Lt({target:\"Reflect\",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:Wo(arguments[1]);return zo(j(t),e)}});var Ko=Ro.has,Go=Ro.toKey,$o=function(t,e,r){if(Ko(t,e,r))return!0;var n=Ue(e);return null!==n&&$o(t,n,r)};Lt({target:\"Reflect\",stat:!0},{hasMetadata:function(t,e){var r=arguments.length<3?void 0:Go(arguments[2]);return $o(t,j(e),r)}});var Vo=Ro.has,Ho=Ro.toKey;Lt({target:\"Reflect\",stat:!0},{hasOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Ho(arguments[2]);return Vo(t,j(e),r)}});var Xo=Ro.toKey,Yo=Ro.set;Lt({target:\"Reflect\",stat:!0},{metadata:function(t,e){return function(r,n){Yo(t,e,j(r),Xo(n))}}});var Jo=qt(\"match\"),Qo=function(t){var e;return y(t)&&(void 0!==(e=t[Jo])?!!e:\"RegExp\"==h(t))},Zo=function(){var t=j(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.dotAll&&(e+=\"s\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e};function ti(t,e){return RegExp(t,e)}var ei=o(function(){var t=ti(\"a\",\"y\");return t.lastIndex=2,null!=t.exec(\"abcd\")}),ri=o(function(){var t=ti(\"^r\",\"gy\");return t.lastIndex=2,null!=t.exec(\"str\")}),ni={UNSUPPORTED_Y:ei,BROKEN_CARET:ri},oi=I.f,ii=wt.f,ai=et.set,ui=qt(\"match\"),si=n.RegExp,ci=si.prototype,fi=/a/g,li=/a/g,hi=new si(fi)!==fi,pi=ni.UNSUPPORTED_Y;if(i&&Tt(\"RegExp\",!hi||pi||o(function(){return li[ui]=!1,si(fi)!=fi||si(li)==li||\"/a/i\"!=si(fi,\"i\")}))){for(var di=function(t,e){var r,n=this instanceof di,o=Qo(t),i=void 0===e;if(!n&&o&&t.constructor===di&&i)return t;hi?o&&!i&&(t=t.source):t instanceof di&&(i&&(e=Zo.call(t)),t=t.source),pi&&(r=!!e&&e.indexOf(\"y\")>-1)&&(e=e.replace(/y/g,\"\"));var a=Dr(hi?new si(t,e):si(t,e),n?this:ci,di);return pi&&r&&ai(a,{sticky:r}),a},vi=function(t){t in di||oi(di,t,{configurable:!0,get:function(){return si[t]},set:function(e){si[t]=e}})},gi=ii(si),yi=0;gi.length>yi;)vi(gi[yi++]);ci.constructor=di,di.prototype=ci,rt(n,\"RegExp\",di)}Kr(\"RegExp\");var mi=\"toString\",bi=RegExp.prototype,wi=bi[mi];(o(function(){return\"/a/b\"!=wi.call({source:\"a\",flags:\"b\"})})||wi.name!=mi)&&rt(RegExp.prototype,mi,function(){var t=j(this),e=String(t.source),r=t.flags;return\"/\"+e+\"/\"+String(void 0===r&&t instanceof RegExp&&!(\"flags\"in bi)?Zo.call(t):r)},{unsafe:!0});var Si=RegExp.prototype.exec,Ei=String.prototype.replace,xi=Si,Ai=function(){var t=/a/,e=/b*/g;return Si.call(t,\"a\"),Si.call(e,\"a\"),0!==t.lastIndex||0!==e.lastIndex}(),Oi=ni.UNSUPPORTED_Y||ni.BROKEN_CARET,Ri=void 0!==/()??/.exec(\"\")[1];(Ai||Ri||Oi)&&(xi=function(t){var e,r,n,o,i=this,a=Oi&&i.sticky,u=Zo.call(i),s=i.source,c=0,f=t;return a&&(-1===(u=u.replace(\"y\",\"\")).indexOf(\"g\")&&(u+=\"g\"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&\"\\n\"!==t[i.lastIndex-1])&&(s=\"(?: \"+s+\")\",f=\" \"+f,c++),r=new RegExp(\"^(?:\"+s+\")\",u)),Ri&&(r=new RegExp(\"^\"+s+\"$(?!\\\\s)\",u)),Ai&&(e=i.lastIndex),n=Si.call(a?r:i,f),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Ai&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),Ri&&n&&n.length>1&&Ei.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var ji=xi;Lt({target:\"RegExp\",proto:!0,forced:/./.exec!==ji},{exec:ji}),i&&(\"g\"!=/./g.flags||ni.UNSUPPORTED_Y)&&I.f(RegExp.prototype,\"flags\",{configurable:!0,get:Zo});var Pi=et.get,Ii=RegExp.prototype;i&&ni.UNSUPPORTED_Y&&(0,I.f)(RegExp.prototype,\"sticky\",{configurable:!0,get:function(){if(this!==Ii){if(this instanceof RegExp)return!!Pi(this).sticky;throw TypeError(\"Incompatible receiver, RegExp required\")}}});var Ti,ki,Li=(Ti=!1,(ki=/[ac]/).exec=function(){return Ti=!0,/./.exec.apply(this,arguments)},!0===ki.test(\"abc\")&&Ti),Ui=/./.test;Lt({target:\"RegExp\",proto:!0,forced:!Li},{test:function(t){if(\"function\"!=typeof this.exec)return Ui.call(this,t);var e=this.exec(t);if(null!==e&&!y(e))throw new Error(\"RegExp exec method returned something other than an Object or null\");return!!e}});var Mi=qt(\"species\"),_i=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$<a>\")}),Ni=\"$0\"===\"a\".replace(/./,\"$0\"),Ci=qt(\"replace\"),Fi=!!/./[Ci]&&\"\"===/./[Ci](\"a\",\"$0\"),Bi=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r=\"ab\".split(t);return 2!==r.length||\"a\"!==r[0]||\"b\"!==r[1]}),Di=function(t,e,r,n){var i=qt(t),a=!o(function(){var e={};return e[i]=function(){return 7},7!=\"\"[t](e)}),u=a&&!o(function(){var e=!1,r=/a/;return\"split\"===t&&((r={}).constructor={},r.constructor[Mi]=function(){return r},r.flags=\"\",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](\"\"),!e});if(!a||!u||\"replace\"===t&&(!_i||!Ni||Fi)||\"split\"===t&&!Bi){var s=/./[i],c=r(i,\"\"[t],function(t,e,r,n,o){return e.exec===ji?a&&!o?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:Ni,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fi}),f=c[1];rt(String.prototype,t,c[0]),rt(RegExp.prototype,i,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&T(RegExp.prototype[i],\"sham\",!0)},qi=Ie.charAt,zi=function(t,e,r){return e+(r?qi(t,e).length:1)},Wi=function(t,e){var r=t.exec;if(\"function\"==typeof r){var n=r.call(t,e);if(\"object\"!=typeof n)throw TypeError(\"RegExp exec method returned something other than an Object or null\");return n}if(\"RegExp\"!==h(t))throw TypeError(\"RegExp#exec called on incompatible receiver\");return ji.call(t,e)};Di(\"match\",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this);if(!o.global)return Wi(o,i);var a=o.unicode;o.lastIndex=0;for(var u,s=[],c=0;null!==(u=Wi(o,i));){var f=String(u[0]);s[c]=f,\"\"===f&&(o.lastIndex=zi(i,ft(o.lastIndex),a)),c++}return 0===c?null:s}]});var Ki=Math.max,Gi=Math.min,$i=Math.floor,Vi=/\\$([$&'`]|\\d\\d?|<[^>]*>)/g,Hi=/\\$([$&'`]|\\d\\d?)/g;Di(\"replace\",2,function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?\"$\":\"$0\";return[function(r,n){var o=v(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||\"string\"==typeof n&&-1===n.indexOf(a)){var s=r(e,t,this,n);if(s.done)return s.value}var c=j(t),f=String(this),l=\"function\"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var v=Wi(c,f);if(null===v)break;if(d.push(v),!h)break;\"\"===String(v[0])&&(c.lastIndex=zi(f,ft(c.lastIndex),p))}for(var g,y=\"\",m=0,b=0;b<d.length;b++){v=d[b];for(var w=String(v[0]),S=Ki(Gi(st(v.index),f.length),0),E=[],x=1;x<v.length;x++)E.push(void 0===(g=v[x])?g:String(g));var A=v.groups;if(l){var O=[w].concat(E,S,f);void 0!==A&&O.push(A);var R=String(n.apply(void 0,O))}else R=u(w,f,S,E,A,n);S>=m&&(y+=f.slice(m,S)+R,m=S+w.length)}return y+f.slice(m)}];function u(t,r,n,o,i,a){var u=n+t.length,s=o.length,c=Hi;return void 0!==i&&(i=Ut(i),c=Vi),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case\"$\":return\"$\";case\"&\":return t;case\"`\":return r.slice(0,n);case\"'\":return r.slice(u);case\"<\":c=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return e;if(f>s){var l=$i(f/10);return 0===l?e:l<=s?void 0===o[l-1]?a.charAt(1):o[l-1]+a.charAt(1):e}c=o[f-1]}return void 0===c?\"\":c})}}),Di(\"search\",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this),a=o.lastIndex;Xn(a,0)||(o.lastIndex=0);var u=Wi(o,i);return Xn(o.lastIndex,a)||(o.lastIndex=a),null===u?-1:u.index}]});var Xi=[].push,Yi=Math.min,Ji=4294967295,Qi=!o(function(){return!RegExp(Ji,\"y\")});Di(\"split\",2,function(t,e,r){var n;return n=\"c\"==\"abbc\".split(/(b)*/)[1]||4!=\"test\".split(/(?:)/,-1).length||2!=\"ab\".split(/(?:ab)*/).length||4!=\".\".split(/(.?)(.?)/).length||\".\".split(/()()/).length>1||\"\".split(/.?/).length?function(t,r){var n=String(v(this)),o=void 0===r?Ji:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Qo(t))return e.call(n,t,o);for(var i,a,u,s=[],c=0,f=new RegExp(t.source,(t.ignoreCase?\"i\":\"\")+(t.multiline?\"m\":\"\")+(t.unicode?\"u\":\"\")+(t.sticky?\"y\":\"\")+\"g\");(i=ji.call(f,n))&&!((a=f.lastIndex)>c&&(s.push(n.slice(c,i.index)),i.length>1&&i.index<n.length&&Xi.apply(s,i.slice(1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===n.length?!u&&f.test(\"\")||s.push(\"\"):s.push(n.slice(c)),s.length>o?s.slice(0,o):s}:\"0\".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=v(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=j(t),u=String(this),s=hn(a,RegExp),c=a.unicode,f=new s(Qi?a:\"^(?:\"+a.source+\")\",(a.ignoreCase?\"i\":\"\")+(a.multiline?\"m\":\"\")+(a.unicode?\"u\":\"\")+(Qi?\"y\":\"g\")),l=void 0===o?Ji:o>>>0;if(0===l)return[];if(0===u.length)return null===Wi(f,u)?[u]:[];for(var h=0,p=0,d=[];p<u.length;){f.lastIndex=Qi?p:0;var v,g=Wi(f,Qi?u:u.slice(p));if(null===g||(v=Yi(ft(f.lastIndex+(Qi?0:p)),u.length))===h)p=zi(u,p,c);else{if(d.push(u.slice(h,p)),d.length===l)return d;for(var y=1;y<=g.length-1;y++)if(d.push(g[y]),d.length===l)return d;p=h=v}}return d.push(u.slice(h)),d}]},!Qi),Lt({target:\"Set\",stat:!0},{from:an}),Lt({target:\"Set\",stat:!0},{of:un});var Zi=function(){for(var t=j(this),e=ee(t.add),r=0,n=arguments.length;r<n;r++)e.call(t,arguments[r]);return t};Lt({target:\"Set\",proto:!0,real:!0,forced:q},{addAll:function(){return Zi.apply(this,arguments)}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}});var ta=function(t){return Set.prototype.values.call(t)};Lt({target:\"Set\",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return!Fr(r,function(t){if(!n(t,t,e))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{difference:function(t){var e=j(this),r=new(hn(e,it(\"Set\")))(e),n=ee(r.delete);return Fr(t,function(t){n.call(r,t)}),r}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Set\"))),i=ee(o.add);return Fr(r,function(t){n(t,t,e)&&i.call(o,t)},void 0,!1,!0),o}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t){if(n(t,t,e))return Fr.stop(t)},void 0,!1,!0).result}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{intersection:function(t){var e=j(this),r=new(hn(e,it(\"Set\"))),n=ee(e.has),o=ee(r.add);return Fr(t,function(t){n.call(e,t)&&o.call(r,t)}),r}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{isDisjointFrom:function(t){var e=j(this),r=ee(e.has);return!Fr(t,function(t){if(!0===r.call(e,t))return Fr.stop()}).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{isSubsetOf:function(t){var e=cn(this),r=j(t),n=r.has;return\"function\"!=typeof n&&(r=new(it(\"Set\"))(t),n=ee(r.has)),!Fr(e,function(t){if(!1===n.call(r,t))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{isSupersetOf:function(t){var e=j(this),r=ee(e.has);return!Fr(t,function(t){if(!1===r.call(e,t))return Fr.stop()}).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{join:function(t){var e=j(this),r=ta(e),n=void 0===t?\",\":String(t),o=[];return Fr(r,o.push,o,!1,!0),o.join(n)}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{map:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3),o=new(hn(e,it(\"Set\"))),i=ee(o.add);return Fr(r,function(t){i.call(o,n(t,t,e))},void 0,!1,!0),o}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=ta(e),n=arguments.length<2,o=n?void 0:arguments[1];if(ee(t),Fr(r,function(r){n?(n=!1,o=r):o=t(o,r,r,e)},void 0,!1,!0),n)throw TypeError(\"Reduce of empty set with no initial value\");return o}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=ta(e),n=re(t,arguments.length>1?arguments[1]:void 0,3);return Fr(r,function(t){if(n(t,t,e))return Fr.stop()},void 0,!1,!0).stopped}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{symmetricDifference:function(t){var e=j(this),r=new(hn(e,it(\"Set\")))(e),n=ee(r.delete),o=ee(r.add);return Fr(t,function(t){n.call(r,t)||o.call(r,t)}),r}}),Lt({target:\"Set\",proto:!0,real:!0,forced:q},{union:function(t){var e=j(this),r=new(hn(e,it(\"Set\")))(e);return Fr(t,ee(r.add),r),r}});var ea,ra,na=it(\"navigator\",\"userAgent\")||\"\",oa=n.process,ia=oa&&oa.versions,aa=ia&&ia.v8;aa?ra=(ea=aa.split(\".\"))[0]+ea[1]:na&&(!(ea=na.match(/Edge\\/(\\d+)/))||ea[1]>=74)&&(ea=na.match(/Chrome\\/(\\d+)/))&&(ra=ea[1]);var ua=ra&&+ra,sa=qt(\"species\"),ca=qt(\"isConcatSpreadable\"),fa=9007199254740991,la=\"Maximum allowed index exceeded\",ha=ua>=51||!o(function(){var t=[];return t[ca]=!1,t.concat()[0]!==t}),pa=ua>=51||!o(function(){var t=[];return(t.constructor={})[sa]=function(){return{foo:1}},1!==t.concat(Boolean).foo}),da=function(t){if(!y(t))return!1;var e=t[ca];return void 0!==e?!!e:ie(t)};Lt({target:\"Array\",proto:!0,forced:!ha||!pa},{concat:function(t){var e,r,n,o,i,a=Ut(this),u=ue(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(da(i=-1===e?a:arguments[e])){if(s+(o=ft(i.length))>fa)throw TypeError(la);for(r=0;r<o;r++,s++)r in i&&sr(u,s,i[r])}else{if(s>=fa)throw TypeError(la);sr(u,s++,i)}return u.length=s,u}});var va=wt.f,ga={}.toString,ya=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ma={f:function(t){return ya&&\"[object Window]\"==ga.call(t)?function(t){try{return va(t)}catch(t){return ya.slice()}}(t):va(g(t))}},ba={f:qt},wa=I.f,Sa=function(t){var e=nt.Symbol||(nt.Symbol={});w(e,t)||wa(e,t,{value:ba.f(t)})},Ea=fe.forEach,xa=V(\"hidden\"),Aa=\"Symbol\",Oa=\"prototype\",Ra=qt(\"toPrimitive\"),ja=et.set,Pa=et.getterFor(Aa),Ia=Object[Oa],Ta=n.Symbol,ka=it(\"JSON\",\"stringify\"),La=R.f,Ua=I.f,Ma=ma.f,_a=c.f,Na=z(\"symbols\"),Ca=z(\"op-symbols\"),Fa=z(\"string-to-symbol-registry\"),Ba=z(\"symbol-to-string-registry\"),Da=z(\"wks\"),qa=n.QObject,za=!qa||!qa[Oa]||!qa[Oa].findChild,Wa=i&&o(function(){return 7!=Jt(Ua({},\"a\",{get:function(){return Ua(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=La(Ia,e);n&&delete Ia[e],Ua(t,e,r),n&&t!==Ia&&Ua(Ia,e,n)}:Ua,Ka=function(t,e){var r=Na[t]=Jt(Ta[Oa]);return ja(r,{type:Aa,tag:t,description:e}),i||(r.description=e),r},Ga=Ct?function(t){return\"symbol\"==typeof t}:function(t){return Object(t)instanceof Ta},$a=function(t,e,r){t===Ia&&$a(Ca,e,r),j(t);var n=m(e,!0);return j(r),w(Na,n)?(r.enumerable?(w(t,xa)&&t[xa][n]&&(t[xa][n]=!1),r=Jt(r,{enumerable:f(0,!1)})):(w(t,xa)||Ua(t,xa,f(1,{})),t[xa][n]=!0),Wa(t,n,r)):Ua(t,n,r)},Va=function(t,e){j(t);var r=g(e),n=zt(r).concat(Ja(r));return Ea(n,function(e){i&&!Ha.call(r,e)||$a(t,e,r[e])}),t},Ha=function(t){var e=m(t,!0),r=_a.call(this,e);return!(this===Ia&&w(Na,e)&&!w(Ca,e))&&(!(r||!w(this,e)||!w(Na,e)||w(this,xa)&&this[xa][e])||r)},Xa=function(t,e){var r=g(t),n=m(e,!0);if(r!==Ia||!w(Na,n)||w(Ca,n)){var o=La(r,n);return!o||!w(Na,n)||w(r,xa)&&r[xa][n]||(o.enumerable=!0),o}},Ya=function(t){var e=Ma(g(t)),r=[];return Ea(e,function(t){w(Na,t)||w(H,t)||r.push(t)}),r},Ja=function(t){var e=t===Ia,r=Ma(e?Ca:g(t)),n=[];return Ea(r,function(t){!w(Na,t)||e&&!w(Ia,t)||n.push(Na[t])}),n};if(Nt||(Ta=function(){if(this instanceof Ta)throw TypeError(\"Symbol is not a constructor\");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=G(t),r=function(t){this===Ia&&r.call(Ca,t),w(this,xa)&&w(this[xa],e)&&(this[xa][e]=!1),Wa(this,e,f(1,t))};return i&&za&&Wa(Ia,e,{configurable:!0,set:r}),Ka(e,t)},rt(Ta[Oa],\"toString\",function(){return Pa(this).tag}),rt(Ta,\"withoutSetter\",function(t){return Ka(G(t),t)}),c.f=Ha,I.f=$a,R.f=Xa,wt.f=ma.f=Ya,St.f=Ja,ba.f=function(t){return Ka(qt(t),t)},i&&(Ua(Ta[Oa],\"description\",{configurable:!0,get:function(){return Pa(this).description}}),rt(Ia,\"propertyIsEnumerable\",Ha,{unsafe:!0}))),Lt({global:!0,wrap:!0,forced:!Nt,sham:!Nt},{Symbol:Ta}),Ea(zt(Da),function(t){Sa(t)}),Lt({target:Aa,stat:!0,forced:!Nt},{for:function(t){var e=String(t);if(w(Fa,e))return Fa[e];var r=Ta(e);return Fa[e]=r,Ba[r]=e,r},keyFor:function(t){if(!Ga(t))throw TypeError(t+\" is not a symbol\");if(w(Ba,t))return Ba[t]},useSetter:function(){za=!0},useSimple:function(){za=!1}}),Lt({target:\"Object\",stat:!0,forced:!Nt,sham:!i},{create:function(t,e){return void 0===e?Jt(t):Va(Jt(t),e)},defineProperty:$a,defineProperties:Va,getOwnPropertyDescriptor:Xa}),Lt({target:\"Object\",stat:!0,forced:!Nt},{getOwnPropertyNames:Ya,getOwnPropertySymbols:Ja}),Lt({target:\"Object\",stat:!0,forced:o(function(){St.f(1)})},{getOwnPropertySymbols:function(t){return St.f(Ut(t))}}),ka){var Qa=!Nt||o(function(){var t=Ta();return\"[null]\"!=ka([t])||\"{}\"!=ka({a:t})||\"{}\"!=ka(Object(t))});Lt({target:\"JSON\",stat:!0,forced:Qa},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(y(e)||void 0!==t)&&!Ga(t))return ie(e)||(e=function(t,e){if(\"function\"==typeof n&&(e=n.call(this,t,e)),!Ga(e))return e}),o[1]=e,ka.apply(null,o)}})}Ta[Oa][Ra]||T(Ta[Oa],Ra,Ta[Oa].valueOf),Be(Ta,Aa),H[xa]=!0,Sa(\"asyncIterator\");var Za=I.f,tu=n.Symbol;if(i&&\"function\"==typeof tu&&(!(\"description\"in tu.prototype)||void 0!==tu().description)){var eu={},ru=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof ru?new tu(t):void 0===t?tu():tu(t);return\"\"===t&&(eu[e]=!0),e};xt(ru,tu);var nu=ru.prototype=tu.prototype;nu.constructor=ru;var ou=nu.toString,iu=\"Symbol(test)\"==String(tu(\"test\")),au=/^Symbol\\((.*)\\)[^)]+$/;Za(nu,\"description\",{configurable:!0,get:function(){var t=y(this)?this.valueOf():this,e=ou.call(t);if(w(eu,t))return\"\";var r=iu?e.slice(7,-1):e.replace(au,\"$1\");return\"\"===r?void 0:r}}),Lt({global:!0,forced:!0},{Symbol:ru})}Sa(\"hasInstance\"),Sa(\"isConcatSpreadable\"),Sa(\"iterator\"),Sa(\"match\"),Sa(\"matchAll\"),Sa(\"replace\"),Sa(\"search\"),Sa(\"species\"),Sa(\"split\"),Sa(\"toPrimitive\"),Sa(\"toStringTag\"),Sa(\"unscopables\"),Be(Math,\"Math\",!0),Be(n.JSON,\"JSON\",!0),Sa(\"asyncDispose\"),Sa(\"dispose\"),Sa(\"observable\"),Sa(\"patternMatch\"),Sa(\"replaceAll\"),ba.f(\"asyncIterator\");var uu=Ie.codeAt;Lt({target:\"String\",proto:!0},{codePointAt:function(t){return uu(this,t)}}),oe(\"String\",\"codePointAt\");var su,cu=function(t){if(Qo(t))throw TypeError(\"The method doesn't accept regular expressions\");return t},fu=qt(\"match\"),lu=function(t){var e=/./;try{\"/./\"[t](e)}catch(r){try{return e[fu]=!1,\"/./\"[t](e)}catch(t){}}return!1},hu=R.f,pu=\"\".endsWith,du=Math.min,vu=lu(\"endsWith\"),gu=!(vu||(su=hu(String.prototype,\"endsWith\"),!su||su.writable));Lt({target:\"String\",proto:!0,forced:!gu&&!vu},{endsWith:function(t){var e=String(v(this));cu(t);var r=arguments.length>1?arguments[1]:void 0,n=ft(e.length),o=void 0===r?n:du(ft(r),n),i=String(t);return pu?pu.call(e,i,o):e.slice(o-i.length,o)===i}}),oe(\"String\",\"endsWith\");var yu=String.fromCharCode,mu=String.fromCodePoint;Lt({target:\"String\",stat:!0,forced:!!mu&&1!=mu.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],pt(e,1114111)!==e)throw RangeError(e+\" is not a valid code point\");r.push(e<65536?yu(e):yu(55296+((e-=65536)>>10),e%1024+56320))}return r.join(\"\")}}),Lt({target:\"String\",proto:!0,forced:!lu(\"includes\")},{includes:function(t){return!!~String(v(this)).indexOf(cu(t),arguments.length>1?arguments[1]:void 0)}}),oe(\"String\",\"includes\");var bu=\"\".repeat||function(t){var e=String(v(this)),r=\"\",n=st(t);if(n<0||Infinity==n)throw RangeError(\"Wrong number of repetitions\");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},wu=Math.ceil,Su=function(t){return function(e,r,n){var o,i,a=String(v(e)),u=a.length,s=void 0===n?\" \":String(n),c=ft(r);return c<=u||\"\"==s?a:((i=bu.call(s,wu((o=c-u)/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},Eu={start:Su(!1),end:Su(!0)},xu=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(na),Au=Eu.start;Lt({target:\"String\",proto:!0,forced:xu},{padStart:function(t){return Au(this,t,arguments.length>1?arguments[1]:void 0)}}),oe(\"String\",\"padStart\");var Ou=Eu.end;Lt({target:\"String\",proto:!0,forced:xu},{padEnd:function(t){return Ou(this,t,arguments.length>1?arguments[1]:void 0)}}),oe(\"String\",\"padEnd\"),Lt({target:\"String\",stat:!0},{raw:function(t){for(var e=g(t.raw),r=ft(e.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(e[i++])),i<n&&o.push(String(arguments[i]));return o.join(\"\")}}),Lt({target:\"String\",proto:!0},{repeat:bu}),oe(\"String\",\"repeat\");var Ru=R.f,ju=\"\".startsWith,Pu=Math.min,Iu=lu(\"startsWith\"),Tu=!Iu&&!!function(){var t=Ru(String.prototype,\"startsWith\");return t&&!t.writable}();Lt({target:\"String\",proto:!0,forced:!Tu&&!Iu},{startsWith:function(t){var e=String(v(this));cu(t);var r=ft(Pu(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return ju?ju.call(e,n,r):e.slice(r,r+n.length)===n}}),oe(\"String\",\"startsWith\");var ku=function(t){return o(function(){return!!dn[t]()||\"​᠎\"!=\"​᠎\"[t]()||dn[t].name!==t})},Lu=bn.start,Uu=ku(\"trimStart\"),Mu=Uu?function(){return Lu(this)}:\"\".trimStart;Lt({target:\"String\",proto:!0,forced:Uu},{trimStart:Mu,trimLeft:Mu}),oe(\"String\",\"trimLeft\");var _u=bn.end,Nu=ku(\"trimEnd\"),Cu=Nu?function(){return _u(this)}:\"\".trimEnd;Lt({target:\"String\",proto:!0,forced:Nu},{trimEnd:Cu,trimRight:Cu}),oe(\"String\",\"trimRight\");var Fu=qt(\"iterator\"),Bu=!o(function(){var t=new URL(\"b?a=1&b=2&c=3\",\"http://a\"),e=t.searchParams,r=\"\";return t.pathname=\"c%20d\",e.forEach(function(t,n){e.delete(\"b\"),r+=n+t}),!e.sort||\"http://a/c%20d?a=1&c=3\"!==t.href||\"3\"!==e.get(\"c\")||\"a=1\"!==String(new URLSearchParams(\"?a=1\"))||!e[Fu]||\"a\"!==new URL(\"https://a@b\").username||\"b\"!==new URLSearchParams(new URLSearchParams(\"a=b\")).get(\"a\")||\"xn--e1aybc\"!==new URL(\"http://тест\").host||\"#%D0%B1\"!==new URL(\"http://a#б\").hash||\"a1c3\"!==r||\"x\"!==new URL(\"http://x\",void 0).host}),Du=Object.assign,qu=Object.defineProperty,zu=!Du||o(function(){if(i&&1!==Du({b:1},Du(qu({},\"a\",{enumerable:!0,get:function(){qu(this,\"b\",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n=\"abcdefghijklmnopqrst\";return t[r]=7,n.split(\"\").forEach(function(t){e[t]=t}),7!=Du({},t)[r]||zt(Du({},e)).join(\"\")!=n})?function(t,e){for(var r=Ut(t),n=arguments.length,o=1,a=St.f,u=c.f;n>o;)for(var s,f=d(arguments[o++]),l=a?zt(f).concat(a(f)):zt(f),h=l.length,p=0;h>p;)s=l[p++],i&&!u.call(f,s)||(r[s]=f[s]);return r}:Du,Wu=2147483647,Ku=/[^\\0-\\u007E]/,Gu=/[.\\u3002\\uFF0E\\uFF61]/g,$u=\"Overflow: input needs wider integers to process\",Vu=Math.floor,Hu=String.fromCharCode,Xu=function(t){return t+22+75*(t<26)},Yu=function(t,e,r){var n=0;for(t=r?Vu(t/700):t>>1,t+=Vu(t/e);t>455;n+=36)t=Vu(t/35);return Vu(n+36*t/(t+38))},Ju=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t);var r,n,o=t.length,i=128,a=0,u=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push(Hu(n));var s=e.length,c=s;for(s&&e.push(\"-\");c<o;){var f=Wu;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>Vu((Wu-a)/l))throw RangeError($u);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>Wu)throw RangeError($u);if(n==i){for(var h=a,p=36;;p+=36){var d=p<=u?1:p>=u+26?26:p-u;if(h<d)break;var v=h-d,g=36-d;e.push(Hu(Xu(d+v%g))),h=Vu(v/g)}e.push(Hu(Xu(h))),u=Yu(a,l,c==s),a=0,++c}}++a,++i}return e.join(\"\")},Qu=it(\"fetch\"),Zu=it(\"Headers\"),ts=qt(\"iterator\"),es=\"URLSearchParams\",rs=es+\"Iterator\",ns=et.set,os=et.getterFor(es),is=et.getterFor(rs),as=/\\+/g,us=Array(4),ss=function(t){return us[t-1]||(us[t-1]=RegExp(\"((?:%[\\\\da-f]{2}){\"+t+\"})\",\"gi\"))},cs=function(t){try{return decodeURIComponent(t)}catch(e){return t}},fs=function(t){var e=t.replace(as,\" \"),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(ss(r--),cs);return e}},ls=/[!'()~]|%20/g,hs={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\"},ps=function(t){return hs[t]},ds=function(t){return encodeURIComponent(t).replace(ls,ps)},vs=function(t,e){if(e)for(var r,n,o=e.split(\"&\"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split(\"=\"),t.push({key:fs(n.shift()),value:fs(n.join(\"=\"))}))},gs=function(t){this.entries.length=0,vs(this.entries,t)},ys=function(t,e){if(t<e)throw TypeError(\"Not enough arguments\")},ms=We(function(t,e){ns(this,{type:rs,iterator:cn(os(t).entries),kind:e})},\"Iterator\",function(){var t=is(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value=\"keys\"===e?n.key:\"values\"===e?n.value:[n.key,n.value]),r}),bs=function(){Br(this,bs,es);var t,e,r,n,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,f=[];if(ns(this,{type:es,entries:f,updateURL:function(){},updateSearchParams:gs}),void 0!==c)if(y(c))if(\"function\"==typeof(t=vr(c)))for(r=(e=t.call(c)).next;!(n=r.call(e)).done;){if((a=(i=(o=cn(j(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError(\"Expected sequence with length 2\");f.push({key:a.value+\"\",value:u.value+\"\"})}else for(s in c)w(c,s)&&f.push({key:s,value:c[s]+\"\"});else vs(f,\"string\"==typeof c?\"?\"===c.charAt(0)?c.slice(1):c:c+\"\")},ws=bs.prototype;zr(ws,{append:function(t,e){ys(arguments.length,2);var r=os(this);r.entries.push({key:t+\"\",value:e+\"\"}),r.updateURL()},delete:function(t){ys(arguments.length,1);for(var e=os(this),r=e.entries,n=t+\"\",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+\"\",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+\"\",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){ys(arguments.length,1);for(var e=os(this).entries,r=t+\"\",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){ys(arguments.length,1);for(var r,n=os(this),o=n.entries,i=!1,a=t+\"\",u=e+\"\",s=0;s<o.length;s++)(r=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=os(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=os(this).entries,n=re(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new ms(this,\"keys\")},values:function(){return new ms(this,\"values\")},entries:function(){return new ms(this,\"entries\")}},{enumerable:!0}),rt(ws,ts,ws.entries),rt(ws,\"toString\",function(){for(var t,e=os(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(ds(t.key)+\"=\"+ds(t.value));return r.join(\"&\")},{enumerable:!0}),Be(bs,es),Lt({global:!0,forced:!Bu},{URLSearchParams:bs}),Bu||\"function\"!=typeof Qu||\"function\"!=typeof Zu||Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&pr(r=e.body)===es&&((n=e.headers?new Zu(e.headers):new Zu).has(\"content-type\")||n.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"),e=Jt(e,{body:f(0,String(r)),headers:f(0,n)})),o.push(e)),Qu.apply(this,o)}});var Ss,Es={URLSearchParams:bs,getState:os},xs=Ie.codeAt,As=n.URL,Os=Es.URLSearchParams,Rs=Es.getState,js=et.set,Ps=et.getterFor(\"URL\"),Is=Math.floor,Ts=Math.pow,ks=\"Invalid scheme\",Ls=\"Invalid host\",Us=\"Invalid port\",Ms=/[A-Za-z]/,_s=/[\\d+-.A-Za-z]/,Ns=/\\d/,Cs=/^(0x|0X)/,Fs=/^[0-7]+$/,Bs=/^\\d+$/,Ds=/^[\\dA-Fa-f]+$/,qs=/[\\u0000\\u0009\\u000A\\u000D #%/:?@[\\\\]]/,zs=/[\\u0000\\u0009\\u000A\\u000D #/:?@[\\\\]]/,Ws=/^[\\u0000-\\u001F ]+|[\\u0000-\\u001F ]+$/g,Ks=/[\\u0009\\u000A\\u000D]/g,Gs=function(t,e){var r,n,o;if(\"[\"==e.charAt(0)){if(\"]\"!=e.charAt(e.length-1))return Ls;if(!(r=Vs(e.slice(1,-1))))return Ls;t.host=r}else if(ec(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(Gu,\".\").split(\".\");for(e=0;e<o.length;e++)n.push(Ku.test(r=o[e])?\"xn--\"+Ju(r):r);return n.join(\".\")}(e),qs.test(e))return Ls;if(null===(r=$s(e)))return Ls;t.host=r}else{if(zs.test(e))return Ls;for(r=\"\",n=gr(e),o=0;o<n.length;o++)r+=Zs(n[o],Xs);t.host=r}},$s=function(t){var e,r,n,o,i,a,u,s=t.split(\".\");if(s.length&&\"\"==s[s.length-1]&&s.pop(),(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(\"\"==(o=s[n]))return t;if(i=10,o.length>1&&\"0\"==o.charAt(0)&&(i=Cs.test(o)?16:8,o=o.slice(8==i?1:2)),\"\"===o)a=0;else{if(!(10==i?Bs:8==i?Fs:Ds).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Ts(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*Ts(256,3-n);return u},Vs=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return t.charAt(l)};if(\":\"==h()){if(\":\"!=t.charAt(1))return;l+=2,f=++c}for(;h();){if(8==c)return;if(\":\"!=h()){for(e=r=0;r<4&&Ds.test(h());)e=16*e+parseInt(h(),16),l++,r++;if(\".\"==h()){if(0==r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!(\".\"==h()&&n<4))return;l++}if(!Ns.test(h()))return;for(;Ns.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(\":\"==h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s},Hs=function(t){var e,r,n,o;if(\"number\"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=Is(t/256);return e.join(\".\")}if(\"object\"==typeof t){for(e=\"\",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?\":\":\"::\",o=!0):(e+=t[r].toString(16),r<7&&(e+=\":\")));return\"[\"+e+\"]\"}return t},Xs={},Ys=zu({},Xs,{\" \":1,'\"':1,\"<\":1,\">\":1,\"`\":1}),Js=zu({},Ys,{\"#\":1,\"?\":1,\"{\":1,\"}\":1}),Qs=zu({},Js,{\"/\":1,\":\":1,\";\":1,\"=\":1,\"@\":1,\"[\":1,\"\\\\\":1,\"]\":1,\"^\":1,\"|\":1}),Zs=function(t,e){var r=xs(t,0);return r>32&&r<127&&!w(e,t)?t:encodeURIComponent(t)},tc={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ec=function(t){return w(tc,t.scheme)},rc=function(t){return\"\"!=t.username||\"\"!=t.password},nc=function(t){return!t.host||t.cannotBeABaseURL||\"file\"==t.scheme},oc=function(t,e){var r;return 2==t.length&&Ms.test(t.charAt(0))&&(\":\"==(r=t.charAt(1))||!e&&\"|\"==r)},ic=function(t){var e;return t.length>1&&oc(t.slice(0,2))&&(2==t.length||\"/\"===(e=t.charAt(2))||\"\\\\\"===e||\"?\"===e||\"#\"===e)},ac=function(t){var e=t.path,r=e.length;!r||\"file\"==t.scheme&&1==r&&oc(e[0],!0)||e.pop()},uc=function(t){return\".\"===t||\"%2e\"===t.toLowerCase()},sc={},cc={},fc={},lc={},hc={},pc={},dc={},vc={},gc={},yc={},mc={},bc={},wc={},Sc={},Ec={},xc={},Ac={},Oc={},Rc={},jc={},Pc={},Ic=function(t,e,r,n){var o,i,a,u,s,c=r||sc,f=0,l=\"\",h=!1,p=!1,d=!1;for(r||(t.scheme=\"\",t.username=\"\",t.password=\"\",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Ws,\"\")),e=e.replace(Ks,\"\"),o=gr(e);f<=o.length;){switch(i=o[f],c){case sc:if(!i||!Ms.test(i)){if(r)return ks;c=fc;continue}l+=i.toLowerCase(),c=cc;break;case cc:if(i&&(_s.test(i)||\"+\"==i||\"-\"==i||\".\"==i))l+=i.toLowerCase();else{if(\":\"!=i){if(r)return ks;l=\"\",c=fc,f=0;continue}if(r&&(ec(t)!=w(tc,l)||\"file\"==l&&(rc(t)||null!==t.port)||\"file\"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(ec(t)&&tc[t.scheme]==t.port&&(t.port=null));l=\"\",\"file\"==t.scheme?c=Sc:ec(t)&&n&&n.scheme==t.scheme?c=lc:ec(t)?c=vc:\"/\"==o[f+1]?(c=hc,f++):(t.cannotBeABaseURL=!0,t.path.push(\"\"),c=Rc)}break;case fc:if(!n||n.cannotBeABaseURL&&\"#\"!=i)return ks;if(n.cannotBeABaseURL&&\"#\"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment=\"\",t.cannotBeABaseURL=!0,c=Pc;break}c=\"file\"==n.scheme?Sc:pc;continue;case lc:if(\"/\"!=i||\"/\"!=o[f+1]){c=pc;continue}c=gc,f++;break;case hc:if(\"/\"==i){c=yc;break}c=Oc;continue;case pc:if(t.scheme=n.scheme,i==Ss)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if(\"/\"==i||\"\\\\\"==i&&ec(t))c=dc;else if(\"?\"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=\"\",c=jc;else{if(\"#\"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),c=Oc;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment=\"\",c=Pc}break;case dc:if(!ec(t)||\"/\"!=i&&\"\\\\\"!=i){if(\"/\"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,c=Oc;continue}c=yc}else c=gc;break;case vc:if(c=gc,\"/\"!=i||\"/\"!=l.charAt(f+1))continue;f++;break;case gc:if(\"/\"!=i&&\"\\\\\"!=i){c=yc;continue}break;case yc:if(\"@\"==i){h&&(l=\"%40\"+l),h=!0,a=gr(l);for(var v=0;v<a.length;v++){var g=a[v];if(\":\"!=g||d){var y=Zs(g,Qs);d?t.password+=y:t.username+=y}else d=!0}l=\"\"}else if(i==Ss||\"/\"==i||\"?\"==i||\"#\"==i||\"\\\\\"==i&&ec(t)){if(h&&\"\"==l)return\"Invalid authority\";f-=gr(l).length+1,l=\"\",c=mc}else l+=i;break;case mc:case bc:if(r&&\"file\"==t.scheme){c=xc;continue}if(\":\"!=i||p){if(i==Ss||\"/\"==i||\"?\"==i||\"#\"==i||\"\\\\\"==i&&ec(t)){if(ec(t)&&\"\"==l)return Ls;if(r&&\"\"==l&&(rc(t)||null!==t.port))return;if(u=Gs(t,l))return u;if(l=\"\",c=Ac,r)return;continue}\"[\"==i?p=!0:\"]\"==i&&(p=!1),l+=i}else{if(\"\"==l)return Ls;if(u=Gs(t,l))return u;if(l=\"\",c=wc,r==bc)return}break;case wc:if(!Ns.test(i)){if(i==Ss||\"/\"==i||\"?\"==i||\"#\"==i||\"\\\\\"==i&&ec(t)||r){if(\"\"!=l){var m=parseInt(l,10);if(m>65535)return Us;t.port=ec(t)&&m===tc[t.scheme]?null:m,l=\"\"}if(r)return;c=Ac;continue}return Us}l+=i;break;case Sc:if(t.scheme=\"file\",\"/\"==i||\"\\\\\"==i)c=Ec;else{if(!n||\"file\"!=n.scheme){c=Oc;continue}if(i==Ss)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if(\"?\"==i)t.host=n.host,t.path=n.path.slice(),t.query=\"\",c=jc;else{if(\"#\"!=i){ic(o.slice(f).join(\"\"))||(t.host=n.host,t.path=n.path.slice(),ac(t)),c=Oc;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment=\"\",c=Pc}}break;case Ec:if(\"/\"==i||\"\\\\\"==i){c=xc;break}n&&\"file\"==n.scheme&&!ic(o.slice(f).join(\"\"))&&(oc(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),c=Oc;continue;case xc:if(i==Ss||\"/\"==i||\"\\\\\"==i||\"?\"==i||\"#\"==i){if(!r&&oc(l))c=Oc;else if(\"\"==l){if(t.host=\"\",r)return;c=Ac}else{if(u=Gs(t,l))return u;if(\"localhost\"==t.host&&(t.host=\"\"),r)return;l=\"\",c=Ac}continue}l+=i;break;case Ac:if(ec(t)){if(c=Oc,\"/\"!=i&&\"\\\\\"!=i)continue}else if(r||\"?\"!=i)if(r||\"#\"!=i){if(i!=Ss&&(c=Oc,\"/\"!=i))continue}else t.fragment=\"\",c=Pc;else t.query=\"\",c=jc;break;case Oc:if(i==Ss||\"/\"==i||\"\\\\\"==i&&ec(t)||!r&&(\"?\"==i||\"#\"==i)){if(\"..\"===(s=(s=l).toLowerCase())||\"%2e.\"===s||\".%2e\"===s||\"%2e%2e\"===s?(ac(t),\"/\"==i||\"\\\\\"==i&&ec(t)||t.path.push(\"\")):uc(l)?\"/\"==i||\"\\\\\"==i&&ec(t)||t.path.push(\"\"):(\"file\"==t.scheme&&!t.path.length&&oc(l)&&(t.host&&(t.host=\"\"),l=l.charAt(0)+\":\"),t.path.push(l)),l=\"\",\"file\"==t.scheme&&(i==Ss||\"?\"==i||\"#\"==i))for(;t.path.length>1&&\"\"===t.path[0];)t.path.shift();\"?\"==i?(t.query=\"\",c=jc):\"#\"==i&&(t.fragment=\"\",c=Pc)}else l+=Zs(i,Js);break;case Rc:\"?\"==i?(t.query=\"\",c=jc):\"#\"==i?(t.fragment=\"\",c=Pc):i!=Ss&&(t.path[0]+=Zs(i,Xs));break;case jc:r||\"#\"!=i?i!=Ss&&(\"'\"==i&&ec(t)?t.query+=\"%27\":t.query+=\"#\"==i?\"%23\":Zs(i,Xs)):(t.fragment=\"\",c=Pc);break;case Pc:i!=Ss&&(t.fragment+=Zs(i,Ys))}f++}},Tc=function(t){var e,r,n=Br(this,Tc,\"URL\"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=js(n,{type:\"URL\"});if(void 0!==o)if(o instanceof Tc)e=Ps(o);else if(r=Ic(e={},String(o)))throw TypeError(r);if(r=Ic(u,a,null,e))throw TypeError(r);var s=u.searchParams=new Os,c=Rs(s);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(s)||null},i||(n.href=Lc.call(n),n.origin=Uc.call(n),n.protocol=Mc.call(n),n.username=_c.call(n),n.password=Nc.call(n),n.host=Cc.call(n),n.hostname=Fc.call(n),n.port=Bc.call(n),n.pathname=Dc.call(n),n.search=qc.call(n),n.searchParams=zc.call(n),n.hash=Wc.call(n))},kc=Tc.prototype,Lc=function(){var t=Ps(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+\":\";return null!==o?(c+=\"//\",rc(t)&&(c+=r+(n?\":\"+n:\"\")+\"@\"),c+=Hs(o),null!==i&&(c+=\":\"+i)):\"file\"==e&&(c+=\"//\"),c+=t.cannotBeABaseURL?a[0]:a.length?\"/\"+a.join(\"/\"):\"\",null!==u&&(c+=\"?\"+u),null!==s&&(c+=\"#\"+s),c},Uc=function(){var t=Ps(this),e=t.scheme,r=t.port;if(\"blob\"==e)try{return new URL(e.path[0]).origin}catch(t){return\"null\"}return\"file\"!=e&&ec(t)?e+\"://\"+Hs(t.host)+(null!==r?\":\"+r:\"\"):\"null\"},Mc=function(){return Ps(this).scheme+\":\"},_c=function(){return Ps(this).username},Nc=function(){return Ps(this).password},Cc=function(){var t=Ps(this),e=t.host,r=t.port;return null===e?\"\":null===r?Hs(e):Hs(e)+\":\"+r},Fc=function(){var t=Ps(this).host;return null===t?\"\":Hs(t)},Bc=function(){var t=Ps(this).port;return null===t?\"\":String(t)},Dc=function(){var t=Ps(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?\"/\"+e.join(\"/\"):\"\"},qc=function(){var t=Ps(this).query;return t?\"?\"+t:\"\"},zc=function(){return Ps(this).searchParams},Wc=function(){var t=Ps(this).fragment;return t?\"#\"+t:\"\"},Kc=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&Wt(kc,{href:Kc(Lc,function(t){var e=Ps(this),r=String(t),n=Ic(e,r);if(n)throw TypeError(n);Rs(e.searchParams).updateSearchParams(e.query)}),origin:Kc(Uc),protocol:Kc(Mc,function(t){var e=Ps(this);Ic(e,String(t)+\":\",sc)}),username:Kc(_c,function(t){var e=Ps(this),r=gr(String(t));if(!nc(e)){e.username=\"\";for(var n=0;n<r.length;n++)e.username+=Zs(r[n],Qs)}}),password:Kc(Nc,function(t){var e=Ps(this),r=gr(String(t));if(!nc(e)){e.password=\"\";for(var n=0;n<r.length;n++)e.password+=Zs(r[n],Qs)}}),host:Kc(Cc,function(t){var e=Ps(this);e.cannotBeABaseURL||Ic(e,String(t),mc)}),hostname:Kc(Fc,function(t){var e=Ps(this);e.cannotBeABaseURL||Ic(e,String(t),bc)}),port:Kc(Bc,function(t){var e=Ps(this);nc(e)||(\"\"==(t=String(t))?e.port=null:Ic(e,t,wc))}),pathname:Kc(Dc,function(t){var e=Ps(this);e.cannotBeABaseURL||(e.path=[],Ic(e,t+\"\",Ac))}),search:Kc(qc,function(t){var e=Ps(this);\"\"==(t=String(t))?e.query=null:(\"?\"==t.charAt(0)&&(t=t.slice(1)),e.query=\"\",Ic(e,t,jc)),Rs(e.searchParams).updateSearchParams(e.query)}),searchParams:Kc(zc),hash:Kc(Wc,function(t){var e=Ps(this);\"\"!=(t=String(t))?(\"#\"==t.charAt(0)&&(t=t.slice(1)),e.fragment=\"\",Ic(e,t,Pc)):e.fragment=null})}),rt(kc,\"toJSON\",function(){return Lc.call(this)},{enumerable:!0}),rt(kc,\"toString\",function(){return Lc.call(this)},{enumerable:!0}),As){var Gc=As.createObjectURL,$c=As.revokeObjectURL;Gc&&rt(Tc,\"createObjectURL\",function(t){return Gc.apply(As,arguments)}),$c&&rt(Tc,\"revokeObjectURL\",function(t){return $c.apply(As,arguments)})}Be(Tc,\"URL\"),Lt({global:!0,forced:!Bu,sham:!i},{URL:Tc}),Lt({target:\"URL\",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}}),Lt({target:\"WeakMap\",stat:!0},{from:an}),Lt({target:\"WeakMap\",stat:!0},{of:un}),Lt({target:\"WeakMap\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}}),Lt({target:\"WeakMap\",proto:!0,real:!0,forced:q},{upsert:pn}),qr(\"WeakSet\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},So),Lt({target:\"WeakSet\",proto:!0,real:!0,forced:q},{addAll:function(){return Zi.apply(this,arguments)}}),Lt({target:\"WeakSet\",proto:!0,real:!0,forced:q},{deleteAll:function(){return sn.apply(this,arguments)}}),Lt({target:\"WeakSet\",stat:!0},{from:an}),Lt({target:\"WeakSet\",stat:!0},{of:un});var Vc,Hc,Xc,Yc=n.Promise,Jc=/(iphone|ipod|ipad).*applewebkit/i.test(na),Qc=n.location,Zc=n.setImmediate,tf=n.clearImmediate,ef=n.process,rf=n.MessageChannel,nf=n.Dispatch,of=0,af={},uf=\"onreadystatechange\",sf=function(t){if(af.hasOwnProperty(t)){var e=af[t];delete af[t],e()}},cf=function(t){return function(){sf(t)}},ff=function(t){sf(t.data)},lf=function(t){n.postMessage(t+\"\",Qc.protocol+\"//\"+Qc.host)};Zc&&tf||(Zc=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return af[++of]=function(){(\"function\"==typeof t?t:Function(t)).apply(void 0,e)},Vc(of),of},tf=function(t){delete af[t]},\"process\"==h(ef)?Vc=function(t){ef.nextTick(cf(t))}:nf&&nf.now?Vc=function(t){nf.now(cf(t))}:rf&&!Jc?(Xc=(Hc=new rf).port2,Hc.port1.onmessage=ff,Vc=re(Xc.postMessage,Xc,1)):!n.addEventListener||\"function\"!=typeof postMessage||n.importScripts||o(lf)||\"file:\"===Qc.protocol?Vc=uf in x(\"script\")?function(t){Kt.appendChild(x(\"script\"))[uf]=function(){Kt.removeChild(this),sf(t)}}:function(t){setTimeout(cf(t),0)}:(Vc=lf,n.addEventListener(\"message\",ff,!1)));var hf,pf,df,vf,gf,yf,mf,bf,wf={set:Zc,clear:tf},Sf=R.f,Ef=wf.set,xf=n.MutationObserver||n.WebKitMutationObserver,Af=n.process,Of=n.Promise,Rf=\"process\"==h(Af),jf=Sf(n,\"queueMicrotask\"),Pf=jf&&jf.value;Pf||(hf=function(){var t,e;for(Rf&&(t=Af.domain)&&t.exit();pf;){e=pf.fn,pf=pf.next;try{e()}catch(t){throw pf?vf():df=void 0,t}}df=void 0,t&&t.enter()},Rf?vf=function(){Af.nextTick(hf)}:xf&&!Jc?(gf=!0,yf=document.createTextNode(\"\"),new xf(hf).observe(yf,{characterData:!0}),vf=function(){yf.data=gf=!gf}):Of&&Of.resolve?(mf=Of.resolve(void 0),bf=mf.then,vf=function(){bf.call(mf,hf)}):vf=function(){Ef.call(n,hf)});var If,Tf,kf,Lf,Uf=Pf||function(t){var e={fn:t,next:void 0};df&&(df.next=e),pf||(pf=e,vf()),df=e},Mf=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError(\"Bad Promise constructor\");e=t,r=n}),this.resolve=ee(e),this.reject=ee(r)},_f={f:function(t){return new Mf(t)}},Nf=function(t,e){if(j(t),y(e)&&e.constructor===t)return e;var r=_f.f(t);return(0,r.resolve)(e),r.promise},Cf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ff=wf.set,Bf=qt(\"species\"),Df=\"Promise\",qf=et.get,zf=et.set,Wf=et.getterFor(Df),Kf=Yc,Gf=n.TypeError,$f=n.document,Vf=n.process,Hf=it(\"fetch\"),Xf=_f.f,Yf=Xf,Jf=\"process\"==h(Vf),Qf=!!($f&&$f.createEvent&&n.dispatchEvent),Zf=\"unhandledrejection\",tl=Tt(Df,function(){if(F(Kf)===String(Kf)){if(66===ua)return!0;if(!Jf&&\"function\"!=typeof PromiseRejectionEvent)return!0}if(ua>=51&&/native code/.test(Kf))return!1;var t=Kf.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Bf]=e,!(t.then(function(){})instanceof e)}),el=tl||!Sr(function(t){Kf.all(t).catch(function(){})}),rl=function(t){var e;return!(!y(t)||\"function\"!=typeof(e=t.then))&&e},nl=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;Uf(function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,s,c,f=n[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&ul(t,e),e.rejection=1),!0===l?u=o:(d&&d.enter(),u=l(o),d&&(d.exit(),c=!0)),u===f.promise?p(Gf(\"Promise-chain cycle\")):(s=rl(u))?s.call(u,h,p):h(u)):p(o)}catch(t){d&&!c&&d.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&il(t,e)})}},ol=function(t,e,r){var o,i;Qf?((o=$f.createEvent(\"Event\")).promise=e,o.reason=r,o.initEvent(t,!1,!0),n.dispatchEvent(o)):o={promise:e,reason:r},(i=n[\"on\"+t])?i(o):t===Zf&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}(\"Unhandled promise rejection\",r)},il=function(t,e){Ff.call(n,function(){var r,n=e.value;if(al(e)&&(r=Cf(function(){Jf?Vf.emit(\"unhandledRejection\",n,t):ol(Zf,t,n)}),e.rejection=Jf||al(e)?2:1,r.error))throw r.value})},al=function(t){return 1!==t.rejection&&!t.parent},ul=function(t,e){Ff.call(n,function(){Jf?Vf.emit(\"rejectionHandled\",t):ol(\"rejectionhandled\",t,e.value)})},sl=function(t,e,r,n){return function(o){t(e,r,o,n)}},cl=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,nl(t,e,!0))},fl=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw Gf(\"Promise can't be resolved itself\");var o=rl(r);o?Uf(function(){var n={done:!1};try{o.call(r,sl(fl,t,n,e),sl(cl,t,n,e))}catch(r){cl(t,n,r,e)}}):(e.value=r,e.state=1,nl(t,e,!1))}catch(r){cl(t,{done:!1},r,e)}}};tl&&(Kf=function(t){Br(this,Kf,Df),ee(t),If.call(this);var e=qf(this);try{t(sl(fl,this,e),sl(cl,this,e))}catch(t){cl(this,e,t)}},(If=function(t){zf(this,{type:Df,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zr(Kf.prototype,{then:function(t,e){var r=Wf(this),n=Xf(hn(this,Kf));return n.ok=\"function\"!=typeof t||t,n.fail=\"function\"==typeof e&&e,n.domain=Jf?Vf.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&nl(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Tf=function(){var t=new If,e=qf(t);this.promise=t,this.resolve=sl(fl,t,e),this.reject=sl(cl,t,e)},_f.f=Xf=function(t){return t===Kf||t===kf?new Tf(t):Yf(t)},\"function\"==typeof Yc&&(Lf=Yc.prototype.then,rt(Yc.prototype,\"then\",function(t,e){var r=this;return new Kf(function(t,e){Lf.call(r,t,e)}).then(t,e)},{unsafe:!0}),\"function\"==typeof Hf&&Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Nf(Kf,Hf.apply(n,arguments))}}))),Lt({global:!0,wrap:!0,forced:tl},{Promise:Kf}),Be(Kf,Df,!1),Kr(Df),kf=it(Df),Lt({target:Df,stat:!0,forced:tl},{reject:function(t){var e=Xf(this);return e.reject.call(void 0,t),e.promise}}),Lt({target:Df,stat:!0,forced:tl},{resolve:function(t){return Nf(this,t)}}),Lt({target:Df,stat:!0,forced:el},{all:function(t){var e=this,r=Xf(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),i=[],a=0,u=1;Fr(t,function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Xf(e),n=r.reject,o=Cf(function(){var o=ee(e.resolve);Fr(t,function(t){o.call(e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Lt({target:\"Promise\",stat:!0},{allSettled:function(t){var e=this,r=_f.f(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),o=[],i=0,a=1;Fr(t,function(t){var u=i++,s=!1;o.push(void 0),a++,r.call(e,t).then(function(t){s||(s=!0,o[u]={status:\"fulfilled\",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:\"rejected\",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var ll=!!Yc&&o(function(){Yc.prototype.finally.call({then:function(){}},function(){})});Lt({target:\"Promise\",proto:!0,real:!0,forced:ll},{finally:function(t){var e=hn(this,it(\"Promise\")),r=\"function\"==typeof t;return this.then(r?function(r){return Nf(e,t()).then(function(){return r})}:t,r?function(r){return Nf(e,t()).then(function(){throw r})}:t)}}),\"function\"!=typeof Yc||Yc.prototype.finally||rt(Yc.prototype,\"finally\",it(\"Promise\").prototype.finally);var hl=et.set,pl=et.getterFor(\"AggregateError\"),dl=function(t,e){var r=this;if(!(r instanceof dl))return new dl(t,e);Ge&&(r=Ge(new Error(e),Ue(r)));var n=[];return Fr(t,n.push,n),i?hl(r,{errors:n,type:\"AggregateError\"}):r.errors=n,void 0!==e&&T(r,\"message\",String(e)),r};dl.prototype=Jt(Error.prototype,{constructor:f(5,dl),message:f(5,\"\"),name:f(5,\"AggregateError\")}),i&&I.f(dl.prototype,\"errors\",{get:function(){return pl(this).errors},configurable:!0}),Lt({global:!0},{AggregateError:dl}),Lt({target:\"Promise\",stat:!0},{try:function(t){var e=_f.f(this),r=Cf(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var vl=\"No one promise resolved\";Lt({target:\"Promise\",stat:!0},{any:function(t){var e=this,r=_f.f(e),n=r.resolve,o=r.reject,i=Cf(function(){var r=ee(e.resolve),i=[],a=0,u=1,s=!1;Fr(t,function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then(function(t){f||s||(s=!0,n(t))},function(t){f||s||(f=!0,i[c]=t,--u||o(new(it(\"AggregateError\"))(i,vl)))})}),--u||o(new(it(\"AggregateError\"))(i,vl))});return i.error&&o(i.value),r.promise}}),oe(\"Promise\",\"finally\");var gl=\"URLSearchParams\"in self,yl=\"Symbol\"in self&&\"iterator\"in Symbol,ml=\"FileReader\"in self&&\"Blob\"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),bl=\"FormData\"in self,wl=\"ArrayBuffer\"in self;if(wl)var Sl=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],El=ArrayBuffer.isView||function(t){return t&&Sl.indexOf(Object.prototype.toString.call(t))>-1};function xl(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError(\"Invalid character in header field name\");return t.toLowerCase()}function Al(t){return\"string\"!=typeof t&&(t=String(t)),t}function Ol(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return yl&&(e[Symbol.iterator]=function(){return e}),e}function Rl(t){this.map={},t instanceof Rl?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function jl(t){if(t.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));t.bodyUsed=!0}function Pl(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function Il(t){var e=new FileReader,r=Pl(e);return e.readAsArrayBuffer(t),r}function Tl(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function kl(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:ml&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:bl&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:gl&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():wl&&ml&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Tl(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):wl&&(ArrayBuffer.prototype.isPrototypeOf(t)||El(t))?this._bodyArrayBuffer=Tl(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText=\"\",this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):gl&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},ml&&(this.blob=function(){var t=jl(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?jl(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Il)}),this.text=function(){var t=jl(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=Pl(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},bl&&(this.formData=function(){return this.text().then(Ml)}),this.json=function(){return this.text().then(JSON.parse)},this}Rl.prototype.append=function(t,e){t=xl(t),e=Al(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},Rl.prototype.delete=function(t){delete this.map[xl(t)]},Rl.prototype.get=function(t){return t=xl(t),this.has(t)?this.map[t]:null},Rl.prototype.has=function(t){return this.map.hasOwnProperty(xl(t))},Rl.prototype.set=function(t,e){this.map[xl(t)]=Al(e)},Rl.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Rl.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),Ol(t)},Rl.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Ol(t)},Rl.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),Ol(t)},yl&&(Rl.prototype[Symbol.iterator]=Rl.prototype.entries);var Ll=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];function Ul(t,e){var r,n,o=(e=e||{}).body;if(t instanceof Ul){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Rl(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new Rl(e.headers)),this.method=(n=(r=e.method||this.method||\"GET\").toUpperCase(),Ll.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&o)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(o)}function Ml(t){var e=new FormData;return t.trim().split(\"&\").forEach(function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),o=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function _l(t,e){e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in e?e.statusText:\"OK\",this.headers=new Rl(e.headers),this.url=e.url||\"\",this._initBody(t)}Ul.prototype.clone=function(){return new Ul(this,{body:this._bodyInit})},kl.call(Ul.prototype),kl.call(_l.prototype),_l.prototype.clone=function(){return new _l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Rl(this.headers),url:this.url})},_l.error=function(){var t=new _l(null,{status:0,statusText:\"\"});return t.type=\"error\",t};var Nl=[301,302,303,307,308];_l.redirect=function(t,e){if(-1===Nl.indexOf(e))throw new RangeError(\"Invalid status code\");return new _l(null,{status:e,headers:{location:t}})};var Cl=self.DOMException;try{new Cl}catch(t){(Cl=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),Cl.prototype.constructor=Cl}function Fl(t,e){return new Promise(function(r,n){var o=new Ul(t,e);if(o.signal&&o.signal.aborted)return n(new Cl(\"Aborted\",\"AbortError\"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||\"\",e=new Rl,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var o=r.join(\":\").trim();e.append(n,o)}}),e)};n.url=\"responseURL\"in i?i.responseURL:n.headers.get(\"X-Request-URL\"),r(new _l(\"response\"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError(\"Network request failed\"))},i.ontimeout=function(){n(new TypeError(\"Network request failed\"))},i.onabort=function(){n(new Cl(\"Aborted\",\"AbortError\"))},i.open(o.method,o.url,!0),\"include\"===o.credentials?i.withCredentials=!0:\"omit\"===o.credentials&&(i.withCredentials=!1),\"responseType\"in i&&ml&&(i.responseType=\"blob\"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener(\"abort\",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener(\"abort\",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}Fl.polyfill=!0,self.fetch||(self.fetch=Fl,self.Headers=Rl,self.Request=Ul,self.Response=_l);var Bl=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,zl=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))Dl.call(r,a)&&(o[a]=r[a]);if(Bl){n=Bl(r);for(var u=0;u<n.length;u++)ql.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o};Object.assign=zl}();\n"
  },
  {
    "path": "docs/_next/static/chunks/webpack-1f4c176689af895b.js",
    "content": "!function(){\"use strict\";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,d.amdO={},e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d.t=function(e,r){if(1&r&&(e=this(e)),8&r||\"object\"==typeof e&&e&&(4&r&&e.__esModule||16&r&&\"function\"==typeof e.then))return e;var o=Object.create(null);d.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;\"object\"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},d.d(o,u),o},d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.f={},d.e=function(e){return Promise.all(Object.keys(d.f).reduce(function(t,n){return d.f[n](e,t),t},[]))},d.u=function(e){return\"static/chunks/\"+e+\".\"+({26:\"1d107b0aeb7c14be\",318:\"67461aab1aa569d4\",550:\"78062c8e0f31c7e4\",866:\"ab29f905adb91a5f\"})[e]+\".js\"},d.miniCssF=function(e){},d.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o=\"_N_E:\",d.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName(\"script\"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute(\"src\")==e||l.getAttribute(\"data-webpack\")==o+n){i=l;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",i.timeout=120,d.nc&&i.setAttribute(\"nonce\",d.nc),i.setAttribute(\"data-webpack\",o+n),i.src=d.tu(e)),r[e]=[t];var s=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),c&&document.head.appendChild(i)},d.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},d.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},d.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},\"undefined\"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy(\"nextjs#bundler\",u))),u},d.tu=function(e){return d.tt().createScriptURL(e)},d.p=\"/_next/\",i={272:0,370:0},d.f.j=function(e,t){var n=d.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(272|370)$/.test(e))i[e]=0;else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=d.p+d.u(e),u=Error();d.l(o,function(t){if(d.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&(\"load\"===t.type?\"missing\":t.type),o=t&&t.target&&t.target.src;u.message=\"Loading chunk \"+e+\" failed.\\n(\"+r+\": \"+o+\")\",u.name=\"ChunkLoadError\",u.type=r,u.request=o,n[1](u)}},\"chunk-\"+e,e)}}},d.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)d.o(u,n)&&(d.m[n]=u[n]);if(c)var a=c(d)}for(e&&e(t);f<o.length;f++)r=o[f],d.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return d.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f)),d.nc=void 0}();"
  },
  {
    "path": "docs/_next/static/css/888b2de5347592df.css",
    "content": "@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/55c55f0601d81cf3-s.woff2) format(\"woff2\");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/26a46d62cd723877-s.woff2) format(\"woff2\");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/97e0cb1ae144a2a9-s.woff2) format(\"woff2\");unicode-range:u+1f??}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/581909926a08bbc8-s.woff2) format(\"woff2\");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/df0a9ae256c0569c-s.woff2) format(\"woff2\");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/6d93bde91c0c2823-s.woff2) format(\"woff2\");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Inter_d65c78;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/a34f9d1faa5f3315-s.p.woff2) format(\"woff2\");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Inter_Fallback_d65c78;src:local(\"Arial\");ascent-override:90.49%;descent-override:22.56%;line-gap-override:0.00%;size-adjust:107.06%}.__className_d65c78{font-family:__Inter_d65c78,__Inter_Fallback_d65c78;font-style:normal}\n\n/*\n! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com\n*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:\"\"}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.75rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-bottom-2{bottom:-.5rem}.-bottom-3{bottom:-.75rem}.-right-2{right:-.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-3\\.5{bottom:.875rem}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.top-0{top:0}.top-20{top:5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50,.z-\\[50\\]{z-index:50}.z-\\[99999999999\\]{z-index:99999999999}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mt-20{margin-top:-5rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-2\\.5{margin-top:.625rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.line-clamp-2{-webkit-line-clamp:2}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1\\.2rem\\]{height:1.2rem}.h-\\[85vh\\]{height:85vh}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-24{max-height:6rem}.max-h-48{max-height:12rem}.max-h-96{max-height:24rem}.min-h-32{min-height:8rem}.min-h-\\[80px\\]{min-height:80px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[1\\.2rem\\]{width:1.2rem}.w-\\[36rem\\]{width:36rem}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-\\[18rem\\]{min-width:18rem}.min-w-\\[40px\\]{min-width:40px}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-3xl{max-width:48rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.translate-x-\\[-50\\%\\],.translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.-rotate-90{--tw-rotate:-90deg}.-rotate-90,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize{resize:both}.scroll-m-20{scroll-margin:5rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-3\\.5{gap:.875rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\\[0\\.5ch\\]{gap:.5ch}.gap-y-9{row-gap:2.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-3\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:rgba(0,0,0,.8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-gray-50{--tw-gradient-from:#f9fafb var(--tw-gradient-from-position);--tw-gradient-to:rgba(249,250,251,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-purple-400{--tw-gradient-from:#c084fc var(--tw-gradient-from-position);--tw-gradient-to:rgba(192,132,252,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from:#a855f7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(168,85,247,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-gray-100{--tw-gradient-to:#f3f4f6 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to:#ec4899 var(--tw-gradient-to-position)}.to-pink-600{--tw-gradient-to:#db2777 var(--tw-gradient-to-position)}.bg-clip-text{background-clip:text}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-3{padding:.75rem}.p-3\\.5{padding:.875rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-32{padding-bottom:8rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-pink-400{--tw-text-opacity:1;color:rgb(244 114 182/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity:1;color:rgb(168 85 247/var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity:1;color:rgb(126 34 206/var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.accent-primary{accent-color:hsl(var(--primary))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.blur-xl{--tw-blur:blur(24px)}.blur-xl,.drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06))}.drop-shadow-md,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.file\\:border-0::file-selector-button{border-width:0}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:w-1:after{content:var(--tw-content);width:.25rem}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\\:mt-0:first-child{margin-top:0}.hover\\:-translate-y-1:hover{--tw-translate-y:-0.25rem}.hover\\:-translate-y-1:hover,.hover\\:scale-105:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:bg-primary\\/70:hover{background-color:hsl(var(--primary)/.7)}.hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\\:bg-purple-100:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.hover\\:bg-purple-700:hover{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\\:from-purple-600:hover{--tw-gradient-from:#9333ea var(--tw-gradient-from-position);--tw-gradient-to:rgba(147,51,234,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:to-pink-600:hover{--tw-gradient-to:#db2777 var(--tw-gradient-to-position)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\\:text-purple-800:hover{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.hover\\:shadow-2xl:hover,.hover\\:shadow-lg:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\\:border-purple-500:focus{--tw-border-opacity:1;border-color:rgb(168 85 247/var(--tw-border-opacity))}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-purple-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity))}.focus\\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group.toaster .group-\\[\\.toaster\\]\\:border-border{border-color:hsl(var(--border))}.group.toast .group-\\[\\.toast\\]\\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\\[\\.toast\\]\\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\\[\\.toaster\\]\\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\\[\\.toaster\\]\\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\\[\\.toaster\\]\\:shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\\:opacity-70{opacity:.7}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked]{--tw-translate-x:1.25rem}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked],.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\\:border-none:is(.dark *){border-style:none}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\\:bg-muted\\/10:is(.dark *){background-color:hsl(var(--muted)/.1)}.dark\\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mt-0{margin-top:0}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width:768px){.md\\:w-1\\/3{width:33.333333%}.md\\:w-2\\/3{width:66.666667%}.md\\:flex-row{flex-direction:row}.md\\:text-balance{text-wrap:balance}.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:text-7xl{font-size:4.5rem;line-height:1}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate:90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}"
  },
  {
    "path": "docs/index.html",
    "content": "<!DOCTYPE html><html lang=\"en\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"stylesheet\" href=\"/_next/static/css/888b2de5347592df.css\" data-precedence=\"next\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/webpack-1f4c176689af895b.js\"/><script src=\"/_next/static/chunks/fd9d1056-819464016f7ad85c.js\" async=\"\"></script><script src=\"/_next/static/chunks/23-a2a6d2cb6c50ca8e.js\" async=\"\"></script><script src=\"/_next/static/chunks/main-app-0e53d5b0820fa726.js\" async=\"\"></script><script src=\"/_next/static/chunks/3ab9597f-9ca74e94c08af310.js\" async=\"\"></script><script src=\"/_next/static/chunks/5ab80550-22a236d451c69b50.js\" async=\"\"></script><script src=\"/_next/static/chunks/795d4814-3c1aeb3c4a7db891.js\" async=\"\"></script><script src=\"/_next/static/chunks/5e22fd23-a888f1085fc13e55.js\" async=\"\"></script><script src=\"/_next/static/chunks/385cb88d-d4d0cd34753b4b85.js\" async=\"\"></script><script src=\"/_next/static/chunks/53c13509-fd73beeb7afe2e31.js\" async=\"\"></script><script src=\"/_next/static/chunks/e34aaff9-73cdc0c2aa38fff5.js\" async=\"\"></script><script src=\"/_next/static/chunks/3d47b92a-88f28c2ab0026672.js\" async=\"\"></script><script src=\"/_next/static/chunks/dc112a36-9245e58b51327391.js\" async=\"\"></script><script src=\"/_next/static/chunks/202-9b05294c1bfbdfa7.js\" async=\"\"></script><script src=\"/_next/static/chunks/112-05ef4e14cff1a5e4.js\" async=\"\"></script><script src=\"/_next/static/chunks/app/page-bbd1448002907ff3.js\" async=\"\"></script><script src=\"/_next/static/chunks/app/layout-696be0f0413601fb.js\" async=\"\"></script><title>Own Sound</title><meta name=\"description\" content=\"Made with love by the Qoneqt team\"/><link rel=\"icon\" href=\"/favicon.ico\" type=\"image/x-icon\" sizes=\"32x32\"/><script src=\"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js\" noModule=\"\"></script></head><body class=\"__className_d65c78\"><script>!function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');var e=localStorage.getItem('theme');if('system'===e||(!e&&false)){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){d.style.colorScheme = 'dark';c.add('dark')}else{d.style.colorScheme = 'light';c.add('light')}}else if(e){c.add(e|| '')}else{c.add('light')}if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'light'}catch(e){}}()</script><div class=\"w-full grid items-center justify-center min-h-screen\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-loader-circle animate-spin text-primary w-40\"><path d=\"M21 12a9 9 0 1 1-6.219-8.56\"></path></svg></div><script src=\"/_next/static/chunks/webpack-1f4c176689af895b.js\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,\"1:HL[\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"style\\\"]\\n\"])</script><script>self.__next_f.push([1,\"2:I[95751,[],\\\"\\\"]\\n4:I[66513,[],\\\"ClientPageRoot\\\"]\\n5:I[94484,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"51\\\",\\\"static/chunks/795d4814-3c1aeb3c4a7db891.js\\\",\\\"452\\\",\\\"static/chunks/5e22fd23-a888f1085fc13e55.js\\\",\\\"505\\\",\\\"static/chunks/385cb88d-d4d0cd34753b4b85.js\\\",\\\"240\\\",\\\"static/chunks/53c13509-fd73beeb7afe2e31.js\\\",\\\"994\\\",\\\"static/chunks/e34aaff9-73cdc0c2aa38fff5.js\\\",\\\"614\\\",\\\"static/chunks/3d47b92a-88f28c2ab0026672.js\\\",\\\"705\\\",\\\"static/chunks/dc112a36-9245e58b51327391.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"112\\\",\\\"static/chunks/112-05ef4e14cff1a5e4.js\\\",\\\"931\\\",\\\"static/chunks/app/page-bbd1448002907ff3.js\\\"],\\\"default\\\"]\\n6:I[29635,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n7:I[61559,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"default\\\"]\\n8:I[90037,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"ThemeProvider\\\"]\\n9:I[39275,[],\\\"\\\"]\\na:I[61343,[],\\\"\\\"]\\nb:I[27776,[\\\"269\\\",\\\"static/chunks/3ab9597f-9ca74e94c08af310.js\\\",\\\"764\\\",\\\"static/chunks/5ab80550-22a236d451c69b50.js\\\",\\\"202\\\",\\\"static/chunks/202-9b05294c1bfbdfa7.js\\\",\\\"185\\\",\\\"static/chunks/app/layout-696be0f0413601fb.js\\\"],\\\"Toaster\\\"]\\nd:I[76130,[],\\\"\\\"]\\ne:[]\\n\"])</script><script>self.__next_f.push([1,\"0:[[[\\\"$\\\",\\\"link\\\",\\\"0\\\",{\\\"rel\\\":\\\"stylesheet\\\",\\\"href\\\":\\\"/_next/static/css/888b2de5347592df.css\\\",\\\"precedence\\\":\\\"next\\\",\\\"crossOrigin\\\":\\\"$undefined\\\"}]],[\\\"$\\\",\\\"$L2\\\",null,{\\\"buildId\\\":\\\"Qvu3_p21LuapbgDau0_w0\\\",\\\"assetPrefix\\\":\\\"\\\",\\\"initialCanonicalUrl\\\":\\\"/\\\",\\\"initialTree\\\":[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]},\\\"$undefined\\\",\\\"$undefined\\\",true],\\\"initialSeedData\\\":[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{},[[\\\"$L3\\\",[\\\"$\\\",\\\"$L4\\\",null,{\\\"props\\\":{\\\"params\\\":{},\\\"searchParams\\\":{}},\\\"Component\\\":\\\"$5\\\"}]],null],null]},[[\\\"$\\\",\\\"html\\\",null,{\\\"lang\\\":\\\"en\\\",\\\"children\\\":[\\\"$\\\",\\\"body\\\",null,{\\\"className\\\":\\\"__className_d65c78\\\",\\\"children\\\":[\\\"$\\\",\\\"$L6\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L7\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$L8\\\",null,{\\\"attribute\\\":\\\"class\\\",\\\"defaultTheme\\\":\\\"light\\\",\\\"children\\\":[[\\\"$\\\",\\\"$L9\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\"],\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$La\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"404: This page could not be found.\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"textAlign\\\":\\\"center\\\",\\\"display\\\":\\\"flex\\\",\\\"flexDirection\\\":\\\"column\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\\"}}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"next-error-h1\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\",\\\"margin\\\":\\\"0 20px 0 0\\\",\\\"padding\\\":\\\"0 23px 0 0\\\",\\\"fontSize\\\":24,\\\"fontWeight\\\":500,\\\"verticalAlign\\\":\\\"top\\\",\\\"lineHeight\\\":\\\"49px\\\"},\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"display\\\":\\\"inline-block\\\"},\\\"children\\\":[\\\"$\\\",\\\"h2\\\",null,{\\\"style\\\":{\\\"fontSize\\\":14,\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"49px\\\",\\\"margin\\\":0},\\\"children\\\":\\\"This page could not be found.\\\"}]}]]}]}]],\\\"notFoundStyles\\\":[],\\\"styles\\\":null}],[\\\"$\\\",\\\"$Lb\\\",null,{}]]}]}]}]}]}],null],null],\\\"couldBeIntercepted\\\":false,\\\"initialHead\\\":[null,\\\"$Lc\\\"],\\\"globalErrorComponent\\\":\\\"$d\\\",\\\"missingSlots\\\":\\\"$We\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"c:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"title\\\",\\\"2\\\",{\\\"children\\\":\\\"Own Sound\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"3\\\",{\\\"name\\\":\\\"description\\\",\\\"content\\\":\\\"Made with love by the Qoneqt team\\\"}],[\\\"$\\\",\\\"link\\\",\\\"4\\\",{\\\"rel\\\":\\\"icon\\\",\\\"href\\\":\\\"/favicon.ico\\\",\\\"type\\\":\\\"image/x-icon\\\",\\\"sizes\\\":\\\"32x32\\\"}]]\\n3:null\\n\"])</script></body></html>"
  },
  {
    "path": "docs/index.txt",
    "content": "2:I[66513,[],\"ClientPageRoot\"]\n3:I[94484,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"51\",\"static/chunks/795d4814-3c1aeb3c4a7db891.js\",\"452\",\"static/chunks/5e22fd23-a888f1085fc13e55.js\",\"505\",\"static/chunks/385cb88d-d4d0cd34753b4b85.js\",\"240\",\"static/chunks/53c13509-fd73beeb7afe2e31.js\",\"994\",\"static/chunks/e34aaff9-73cdc0c2aa38fff5.js\",\"614\",\"static/chunks/3d47b92a-88f28c2ab0026672.js\",\"705\",\"static/chunks/dc112a36-9245e58b51327391.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"112\",\"static/chunks/112-05ef4e14cff1a5e4.js\",\"931\",\"static/chunks/app/page-bbd1448002907ff3.js\"],\"default\"]\n4:I[29635,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"default\"]\n5:I[61559,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"default\"]\n6:I[90037,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"ThemeProvider\"]\n7:I[39275,[],\"\"]\n8:I[61343,[],\"\"]\n9:I[27776,[\"269\",\"static/chunks/3ab9597f-9ca74e94c08af310.js\",\"764\",\"static/chunks/5ab80550-22a236d451c69b50.js\",\"202\",\"static/chunks/202-9b05294c1bfbdfa7.js\",\"185\",\"static/chunks/app/layout-696be0f0413601fb.js\"],\"Toaster\"]\n0:[\"Qvu3_p21LuapbgDau0_w0\",[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L1\",[\"$\",\"$L2\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$3\"}]],null],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_d65c78\",\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"attribute\":\"class\",\"defaultTheme\":\"light\",\"children\":[[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}],[\"$\",\"$L9\",null,{}]]}]}]}]}]}],null],null],[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/888b2de5347592df.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[null,\"$La\"]]]]]\na:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Own Sound\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Made with love by the Qoneqt team\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"32x32\"}]]\n1:null\n"
  },
  {
    "path": "readme.md",
    "content": "\n这个一个学习Web3技术的练习项目。\n\noneNFS 是一个音乐创作 Web3 平台。我们利用区块链技术和先进的加密技术，为艺术家和听众创建一个公平、透明、以用户为中心的生态系统。\n\n演示地址：https://one-nfs.vercel.app/\n\n## 主要功能\n- 🔒 **私人播放列表**： 完全同态加密（FHE）确保您的收听习惯始终属于您自己。\n- 💰**灵活的所有权**： 购买或租用不可篡改声音 (NFS) - 由您选择！\n- 🎨 **创作者控制**： 艺术家自行决定条款、价格和版税。\n- 🌐 **二级市场**： 创作者从每一次转售和出租中获益。\n- 🕵️ **透明出处**： 区块链上清晰的所有权历史。\n\n## 项目测试地址\n\n> **OwnSound合约地址**（部署在Polygon Amoy上）：  \n> `0xaD4b216C20Ac6a06D67d03c8176C047BB81CB7A0`\n\n\n## 技术栈\n- **前端**： Next.js、etherthers.js、Tailwind CSS、Shadcn-ui、Framer Motion\n- **后端**： Node.js、Express.js、fhevmjs\n- **区块链**： Polygon Amoy、Inco FHE、ERC-20 和 ERC-721 智能合约\n- **存储**： 用于去中心化内容存储的 IPFS\n- **加密**： 使用 Inco Fhevm 的全同态加密（FHE）库，AES 加密\n- **NFT 标准**： ERC-721非风声（NFS）\n\n## 工作原理\n1. **内容创建**： 艺术家上传他们的音频内容，创建不可复制的声音（NFS）。\n2. **所有权**： 用户可以直接购买 NFS，或以极低的价格租用 NFS。\n3. **版税**： 智能合约会自动向创作者分配销售和租赁的版税。\n4. **私人播放列表**： 用户创建加密播放列表，确保平台隐私。\n5. **二级市场**： NFS 可在内置市场上交易，创作者可从每笔销售中获得分成。\n\n## 安全功能\n- 完全同态加密，保护播放列表隐私\n- 基于区块链的所有权验证\n- 用于高价值交易的多签名钱包\n- 定期智能合约审计\n\n## 运行步骤\n1. 克隆 repo\n2. 安装依赖项：进入client目录， npm install\n3. 在 .env 文件中设置必要的 API 密钥和合同地址\n4. 运行开发服务器 运行开发服务器\n\n"
  }
]