@motion-studio/cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +299 -2
- package/dist/main.js +56971 -0
- package/dist/mcp-studio.mjs +213 -0
- package/dist/runtime/clock.js +1 -0
- package/dist/runtime/index.html +14 -0
- package/dist/runtime/layer.js +1 -0
- package/dist/runtime/preview.js +62 -0
- package/dist/runtime/runtime.js +1 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/index-CCBNWqgR.css +1 -0
- package/dist/web/assets/index-DCwEfJxp.js +34 -0
- package/dist/web/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- package/dist/web/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
- package/dist/web/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- package/dist/web/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
- package/dist/web/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/dist/web/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- package/dist/web/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- package/dist/web/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
- package/dist/web/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- package/dist/web/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
- package/dist/web/assets/logo-Dd9VMLzB.svg +3 -0
- package/dist/web/assets/logo-dark-Yi8yb5WJ.svg +3 -0
- package/dist/web/assets/logo-horizontal-Blb7HKgj.svg +3 -0
- package/dist/web/assets/logo-horizontal-dark-B16it8f0.svg +3 -0
- package/dist/web/assets/react-VlNyIE0d.js +9 -0
- package/dist/web/assets/schibsted-grotesk-latin-400-normal-BkiRe4WW.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-400-normal-DPhJBilQ.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-500-normal-Ba39e-CX.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-500-normal-rf9C4Thp.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-600-normal-BieE9YjJ.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-600-normal-Czv9Obfv.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-700-normal-BkH0uJ1o.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-700-normal-Dz-okVa0.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-400-normal-DHVTfbSM.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-400-normal-DUPvg9bQ.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-500-normal-BjmYCtCC.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-500-normal-Ch1izu81.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-600-normal-C5pQPdUJ.woff2 +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-600-normal-DQsnXf5q.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-700-normal-DDW2aNyx.woff +0 -0
- package/dist/web/assets/schibsted-grotesk-latin-ext-700-normal-o210KhU4.woff2 +0 -0
- package/dist/web/assets/shared-D-Exbs4c.js +29 -0
- package/dist/web/assets/vendor-CfFIcVU3.css +1 -0
- package/dist/web/assets/vendor-IQO2I6nB.js +57 -0
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +3 -0
- package/dist/web/icon-192.png +0 -0
- package/dist/web/icon-512-maskable.png +0 -0
- package/dist/web/icon-512.png +0 -0
- package/dist/web/index.html +22 -0
- package/dist/web/site.webmanifest +15 -0
- package/package.json +49 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/schibsted-grotesk-latin-ext-400-normal-DHVTfbSM.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-ext-400-normal-DUPvg9bQ.woff) format("woff");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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/schibsted-grotesk-latin-400-normal-DPhJBilQ.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-400-normal-BkiRe4WW.woff) format("woff");unicode-range:U+0000-00FF,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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/schibsted-grotesk-latin-ext-500-normal-Ch1izu81.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-ext-500-normal-BjmYCtCC.woff) format("woff");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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/schibsted-grotesk-latin-500-normal-rf9C4Thp.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-500-normal-Ba39e-CX.woff) format("woff");unicode-range:U+0000-00FF,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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/schibsted-grotesk-latin-ext-600-normal-C5pQPdUJ.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-ext-600-normal-DQsnXf5q.woff) format("woff");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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/schibsted-grotesk-latin-600-normal-Czv9Obfv.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-600-normal-BieE9YjJ.woff) format("woff");unicode-range:U+0000-00FF,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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/schibsted-grotesk-latin-ext-700-normal-o210KhU4.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-ext-700-normal-DDW2aNyx.woff) format("woff");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:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/schibsted-grotesk-latin-700-normal-BkH0uJ1o.woff2) format("woff2"),url(/assets/schibsted-grotesk-latin-700-normal-Dz-okVa0.woff) format("woff");unicode-range:U+0000-00FF,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:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAASIABAAAAAACQQAAAQuAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVF4AdBEICoRkhAALIAABNgIkAzoEIAWFAAeBFAwHG2oHKJ6DceNW4lJEFHn9tEOE37LNsvkjHr7f739rn3u+OSrSxLQytE91Dw2PYtNVq3Qaw/vJ7fUBMdOj/u2ImB98cT5WUx9F13ZKt06mU7tG1sAYcM26yCRX4f/0904bmwq8hwkUUMTRX61pa9C3xlpAGYw1vOu8C2SBZZFlld7DAW82RJWmwYMI1AJCKBNCIASqdZGFmtPSNQRhMpR0EKjWTwm6z6sJ+4jqhxjovTinVdRpZaQjaQzAYjI8NgAKDJCokgunCn9oUQE8VZd/F//+v6P4F1U9gLr58yNI/dJX9BAshEoJbTDogz7ocKoUsPvES8UK/aQIUQgpGgECBVLkOEV6iASTYgNAPKdNXayhDPL7IJuAZnEYSZ0eOLc9i5Rv5/+lEi3sW/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XsIAAHjaY2BiAIP/qQxGQIqRAR3wA7EKw0lGJgYbRmZGFkZWRjZGdgZmRg5GTkYuRm42x6Si1LJU9tK8TAMTR1cI7WoB5btB+Zas6Ym5uYlgnoGjAZNzEF9icmlJanJ+bpJecmJxKg9IxtjADMwBAKDtHJg=) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2) format("woff2"),url(/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2) format("woff2"),url(/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA9UABAAAAAALMAAAA7zAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhWocghYGYD9TVEFUXgCDBBEICrBAp3ILgjgAATYCJAOEKAQgBYUAB4xODAcbIiYzo8LGAQCKfn4o/usELQ4rdj22ABHwitFYjZPqB3XSqAbV3C5dFkHYtTehxpeGbU+3+QexdERCkxARw9oNxAyetvXzdhdjl/7aiBiHgcqBjZywaGPSh4mNFccpF3DHlfyO8Jc/OiSe/kb7/iQYRAE23iScpHngiRRBFETNiZzQwc2HOllJ0fqXIjTY8RTYbDsklKc81hGPQcOJojhD/w80ll1aG/qiQErbzqOXjmvOVKd14tuv+Hxrlbarq/5xH7CiMPjaZXlrfNSp7uqaroZXvYAzc8A0kH2zs3MvHQBU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JvhNmjJtxqw58xYsWrJsxS4Bu61aE7THXvvsFxJ2wEERhxx2xFHHrIs6fuE/r+1vm6/8jhhtDCwnASDGR1h4SGhYwEGU1Y/Xffk5G4u9XgIAYtxyGpZ5y9sDdNbyP142W5DgAhoE7i3q0c5x2vm9v24aZuNohdcxqSEAz8up00My03HSwmqPa8bMecG3Tjzb+f9EelEtg2vpzPeiIEEBwSA8IEDBwAE9F5Z6vQIQjAnLGTgWLO+uZTL/qwGEAYOAQpg3TefgwBCQgBDzqukKDBAOoU3KVtqIbBXK9XpEAAujuudkZN724kIGmrtVaS38ZZLrS9/4fsKMQhN3yXK5gvSBvJ2Y9/Nydbcvb0bm58+e3FhmGfGLJ9u7axl1F1LQTbaCeyrbu7wFCsorFgV4qnh+GUrWtaczqkSBB96AEeKRB94k2SyLuyw3qwrxeg3P5FNR1Av1Gsq2/ds6dPPkBAAA) format("woff2"),url(/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff) format("woff");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:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2) format("woff2"),url(/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff) format("woff");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:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2) format("woff2"),url(/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff) format("woff");unicode-range:U+0000-00FF,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:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAASUABAAAAAACRAAAAQ3AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVEwAdBEICoRkg3oLIAABNgIkAzoEIAWFHgeBFAwHG3AHKB4HzukrRjyF5Gb4kQ/B873d17mv8TWkoqUUGaHodJCtoqntw7m8tiPWyGkfWDU/IMpzVk4zAs9Czv3c7Os5NvKFG1Ht9vBVXySRZpJc4tTrbM3sTRFcLa3zVboKWRIoAksKSKgqUQWEwlSoqjp44V5J9/kjd0+Fi5xaFjwJArgBAIJgIAgCCAI4CdNMqGuYXYUKdADLAkAAJwl6iX0+bZqEm1AH0Hu9rvrJHwxQG1Q/gFYwWYbgTRWgwEESVzbmtjQAt3DXO7Tu/+9Q/KNKWhTCgZ8fQSWoL0CUUgTBjgL8iEAcce7YHBeA8ZvogieCnxI0BCVeACCAAhBD/oDcAdUPABSgAX4kBPBTwjCAjwYSCneiqF65LUo/qXdYFrRwTujtMrKm07plTbSqLQFAiHBN7E4DG5wkiGXhCYBNETh3K/AciHN69iFfQjFOr9EXQQAAQXRNszs8PR0OH4fDV/dwGe76CHdj1MQa11DXYGcfZ6+B1X0OfwjY+i7KpQ1w9d+1z3/HydCB1f3U8A0fRFv+0bXxPWrZu3d9Nn4UcbLs/QCXLH/j3PCKblKOiZxLOR78W9brPo7eGTLz/F27ZPmePQdCB1YP4nJU91o4gU9cy64L3c3SPu8GfDn6ZXD2cGmllVqSxtD5vCXHm5xaeHlnpffx7DcPvXog5NnjA//cPz2btsz3yf+0MI8ri33tuv7upNbYmW5STbosW8bYItV/SPzxvXC0KnpWnFdC91oojit5Lyo6WcJQ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Lj/qGhvoeLREyvvXpEYDgGutFDrFjYEDQ5PK1OcsWs15bt4JgM0uQe2LHAxCRHA9FeNoQnUS+Tsc7JkRXVV03JIZZJcBJRUdHxSmAAQCFZYU3AAEAAAACNgQJCtdkXw889QADA+gAAAAA29KmmgAAAADb2tDy+Tv+1ASSA/wAAAAGAAIAAAAAAAB42mNgZGBg/vPvCgMDy4af1n9rWSYBRVABHwCudAbaAHjaY4pgiAJibSQsC8WBQGyERDNAMQicZmgFAOeFB/4AAAAAGgA7AEYAUQBvAHcAqQCxAOYBCQEJAQkBCQEWAS942mNgZGBg4GfcwZDHsIWBDcxDAGYGJgAtGgH4eNqM0IFGQ2EUB/DfqqJMBZLAFUh0V0MoUBGllKQArHVtN9vu3HuH3iEAPUJP0cP0BD1D3D6zKQqHH9/5n885qHs1qza3iPfaenDNts/gGcs+gmcdeAuem+iZt+EleMGWx+Bl++Jv16jbDJ5Xtxa8om4peNUSbmT6WgbOlFp6Um2XEo9SI333EqmOrrKq0lDhQENDoS2XGioVYoVUTyyT62i4curCuUTpWK4lNVC4lBnI7Ez9dCeRK6TVa6Qp1rRnb0KHzh07/PfMG4mOkZ6W/JdUNM5FU7kTmaFn+Xj3SNNuVZFbXYnoj3nXcpkniXaVPzKqbpjJq86tH/fsSKuOkQextkzf1/Sx2KKPx/+aADN1XKsAeNpjYGIAg/+pDEZAipEBHfADsQrDSUYmBhtGZkYWRlZGNkZ2BmZGDkZORi5GbjbHpKLUslT20rxMAxNHVwjtagHlu0H5lqzpibm5iWCegaMBk3MQX2JyaUlqcn5ukl5yYnEqD0jG2MAMzAEAoO0cmA==) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2) format("woff2"),url(/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2) format("woff2"),url(/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAA/IABAAAAAALMwAAA9mAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEFUTACDBBEICrA8p1ILgjgAATYCJAOEKAQgBYUeB4xODAcbFCYzA/aDkxp0RMXmTMH/IcEUkaXZhe7qAVQoRhtRmOhkzaUYXs3lyzTUlwptwwNGy28PLP/oZewn39g4Jjp8YusISWZ9eNpW788MNQMI7jZprgsqRiJ7imCBYlEWIBhgoWjj7uJGcddednnRIQ/fX77n7i8NtLf08UwEQl3jq59XJCShypU4lMyz3Hb3X0omkAkZCYVNhfN/c3Pmf1nJcDqnj2VE35fYAx+8WYIJhZj4znn1Qbjp9+f4Pab0wOi7JSECzG0o6DRWu/MBgfu/NdPu5O8cUssKSJ1wUyTjq6oWZic7nUsKuIEySsIkzXvdKzArVNkCwvP1lQCgK4yu0BVWFp6vrWVm/6Nt7H82JGhxDyAteCbHZLRdzTsxJqNEUxb+txHysoxjwQzz2p8tU5uFtC4RmcGouCRX3v1195cCAYgBAECRIWSIVNsQCiqEhh6RpxRRzogwaUTYdSCc3AivAcSQCcSkacSCBbQlcbQ9DqAddgyNAFiZilAX9c1OSB/6ZyYgxQCwDgGQoVQGIYAIRvVlRAiR7Ax+jsqKIDacjVExNGWA/MQLk8VzJshTmOztrVbySNyHVnaAiUVpcgdvmnh9FNeAYYXkMl4AqisEoDtIZK0zs6lsSM8yAboEhZ5CFVqD23kNfor49QgAGWwFB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hm4UQEs8eChwPB0BZYOBINbH3Erw0HECzUaokWa42eyGD3PIBIMBSOrfryBQ3G4oHQKi+/kEA0tuaDV40GP3h0+wuAAgXTKy0v5428xUDwksfm538juY9ni9fz2Ggy4iWLMz4qLklle7kcZvOLwy5bXp7fdYrRJlP4l5NDdZPiKVeLnJV7Ohg2VAs/aQwZNVtodX2jki6RU1e/j6GkgZbgAmmogZafuF4mZlb1t+COUyrcnF/CCZzS4MO/dX1T6QQAAAA=) format("woff2"),url(/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff) format("woff");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:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2) format("woff2"),url(/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff) format("woff");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:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2) format("woff2"),url(/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff) format("woff");unicode-range:U+0000-00FF,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}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function je(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ot(e,t="|"){return e.map(n=>Vt(n)).join(t)}function Re(e,t){return typeof t=="bigint"?t.toString():t}class Bn{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function we(e){return new Bn(e)}function Wn(e){return e==null}function Je(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Gn(e,t){const n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const it=Symbol("evaluating");function qn(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==it)return r===void 0&&(r=it,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function M(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ke(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function F(e){return Ke(e._zod.def)??e._zod.def.shape}function Lt(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return M(this,t,r),r},enumerable:!0,configurable:!0})}function xt(e,t,n){t in e?M(e,t,n):e[t]=n}function B(e,t,n,r){const o=F(t);for(const i of n){const s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?Lt(e,i,()=>{const c=t._zod.def.shape[i];return r?r(c,i):c}):xt(e,i,r?r(s.value,i):s.value))}}function Yn(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Lt(e,n,()=>t[n]):xt(e,n,r.value))}}function I(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Hn(e){return JSON.stringify(e)}function Xn(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Jt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function se(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Qn=we(()=>{if(j.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function G(e){if(se(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(se(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Kt(e){return G(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const er=new Set(["string","number","symbol"]);function q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function K(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function _(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Vt(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function tr(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const Bt={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},nr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function rr(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i={};return B(i,e,ze(e,t)),K(e,I(n,{shape:i,checks:[]}))}function ze(e,t){const n=F(e),r=[];for(const o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function or(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=new Set(ze(e,t)),s={};return B(s,e,Reflect.ownKeys(F(e)).filter(c=>!i.has(c))),K(e,I(n,{shape:s,checks:[]}))}function ir(e,t){if(!G(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=F(e);for(const i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return K(e,I(e._zod.def,{shape:Wt(e,t)}))}function Wt(e,t){const n={};return B(n,e,Reflect.ownKeys(F(e))),Yn(n,t),n}function sr(e,t){if(!G(t))throw new Error("Invalid input to safeExtend: expected a plain object");return K(e,I(e._zod.def,{shape:Wt(e,t)}))}function cr(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};B(n,e,Reflect.ownKeys(F(e))),B(n,t,Reflect.ownKeys(F(t)));const r=I(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return K(e,r)}function st(e,t,n,r="partial"){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const c=n?new Set(ze(t,n)):void 0,u={};return B(u,t,Reflect.ownKeys(F(t)),e&&((a,f)=>c&&!c.has(f)?a:new e({type:"optional",innerType:a}))),K(t,I(t._zod.def,{shape:u,checks:[]}))}function ur(e,t,n){const r=n?new Set(ze(t,n)):void 0,o={};return B(o,t,Reflect.ownKeys(F(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),K(t,I(t._zod.def,{shape:o}))}function D(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ar(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function W(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function te(e){return typeof e=="string"?e:e?.message}function ct(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function L(e,t,n){var r;const o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:te(e.inst?._zod.def?.error?.(e))??te(i?.(e))??te(t?.error?.(e))??te(n.customError?.(e))??te(n.localeError?.(e))??"Invalid input",c={};for(const u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(c[u]=e[u]);return c.path??(c.path=[]),c.message=s,t?.reportInput&&(c.input=e.input),c}const fr=/[\uD800-\uDBFF]/;function Ve(e){const t=e.length;if(!fr.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Be(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function lr(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function ce(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function dr(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):pr(e,n,r.value)}}function x(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Gt(e,t,n){return x(e,t,n,!1)}function qt(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return x(this,n,r(this))},set(o){x(this,n,o)}})}return t}function pr(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:x(this,t,n.bind(this))},set(r){x(this,t,r)}})}function hr(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}let Pe,U=!1;const mr={configurable:!0,get(){U=!0}};function y(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Pe!==e._zod){Pe=void 0;return}Pe=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,mr);const o=U;U=!1;try{const i=n(this);return U?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),U=U||o,i}catch(i){throw delete this[t],U=U||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function _r(e,t,n,r){const o=hr(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){const i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}const gr="~constantCatch";function vr(e){const t=()=>e;return t[gr]=!0,t}var ut;const Ee={value:void 0,enumerable:!1};let at="captureStackTrace"in Error?Error:null;function yr(e){const t=at;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return at=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function l(e,t,n,r){const o={};function i(h){this.def=h,this.constr=d,this.traits=new Set}i.prototype=o;const s=n,c=s&&new WeakSet;function u(h,p){if(h._zod){if(h._zod.traits.has(e))return}else{Ee.value=new i(p);try{Object.defineProperty(h,"_zod",Ee)}finally{Ee.value=void 0}}if(h._zod.traits.add(e),t(h,p),c){const g=Object.getPrototypeOf(h),v=h._zod.constr.prototype;let b=g;for(;b&&b!==v;)b=Object.getPrototypeOf(b);const T=b??g;c.has(T)||(c.add(T),dr(T,s))}const m=d.prototype;for(const g in m)Object.prototype.hasOwnProperty.call(m,g)&&(g in h||(h[g]=m[g].bind(h)))}const a=r?.Parent??Object;class f extends a{}Object.defineProperty(f,"name",{value:e});function d(h){const p=r?.Parent?yr(f):this;u(p,h);const m=p._zod.deferred;if(m){for(const v of m)v();p._zod.deferred=void 0}const g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(p),p}return Object.defineProperty(d,"init",{value:u}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}class V extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Yt extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(ut=globalThis).__zod_globalConfig??(ut.__zod_globalConfig={});const j=globalThis.__zod_globalConfig;function C(e){return e&&Object.assign(j,e),j}function br(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Re,2)),e.message}function wr(e){this._zod.message=e}const zr={get:br,set:wr,enumerable:!0,configurable:!0},Ie={value:void 0,enumerable:!1},ft=new WeakSet([Object.prototype,Error.prototype]),kr=(e,t)=>{e.name="$ZodError",Ie.value=t,Object.defineProperty(e,"issues",Ie),Ie.value=void 0,Object.defineProperty(e,"message",zr);const n=Object.getPrototypeOf(e);ft.has(n)||(ft.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},$r=l("$ZodError",kr);function Or(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Zr(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?Or(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Sr(e,t=n=>n.message){const n={_errors:[]},r=(o,i=[])=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>r({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{const c=[...i,...s.path];if(c.length===0)n._errors.push(t(s));else{let u=n,a=0;for(;a<c.length;){const f=c[a],d=a===c.length-1;if(f==="_errors"){d&&u._errors.push(t(s)),a++;continue}Object.prototype.hasOwnProperty.call(u,f)||Object.defineProperty(u,f,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=u[f];d&&h._errors.push(t(s)),u=h,a++}}}};return r(e),n}function ke(e,t){return{callee:t?.callee??e,Err:t?.Err}}const We=e=>{const t=(n,r,o,i)=>{const s=o?{...o,async:!1}:{async:!1},c=n._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new V;if(c.issues.length){const u=new(i?.Err??e)(c.issues.map(a=>L(a,s,C())));throw Jt(u,i?.callee??t),u}return c.value};return t},Ge=e=>{const t=async(n,r,o,i)=>{const s=o?{...o,async:!0}:{async:!0};let c=n._zod.run({value:r,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const u=new(i?.Err??e)(c.issues.map(a=>L(a,s,C())));throw Jt(u,i?.callee??t),u}return c.value};return t},qe=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new V;return i.issues.length?Ht(e,i.issues,o):{success:!0,data:i.value}};function Ht(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>L(o,n,C()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}const Ye=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?Ht(e,i.issues,o):{success:!0,data:i.value}},Pr=Symbol.for("zod.compile.invalid"),Er=Symbol.for("zod.compile.fallback"),Ir=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Pr)return!0;if(r.definite===!0&&n===void 0)return!1}return Tr(e,t,n)});function Tr(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun;let i;if(o?(r[Er]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new V;return i.issues.length===0}const Ar=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},Nr=e=>{const t=We(e),n=(r,o,i,s)=>{const c=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,c,ke(n,s))};return n},jr=e=>{const t=We(e),n=(r,o,i,s)=>t(r,o,i,ke(n,s));return n},Rr=e=>{const t=Ge(e),n=async(r,o,i,s)=>{const c=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,c,ke(n,s))};return n},Cr=e=>{const t=Ge(e),n=async(r,o,i,s)=>await t(r,o,i,ke(n,s));return n},Dr=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return qe(e)(t,n,o)},Fr=e=>(t,n,r)=>qe(e)(t,n,r),Mr=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Ye(e)(t,n,o)},Ur=e=>async(t,n,r)=>Ye(e)(t,n,r),Lr=/^[cC][0-9a-z]{6,}$/,xr=/^[0-9a-z]+$/,Jr=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Kr=/^[0-9a-vA-V]{20}$/,Vr=/^[A-Za-z0-9]{27}$/,Br=/^[a-zA-Z0-9_-]{21}$/;function Wr(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const Gr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,lt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Yr=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Hr="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Xr(){return new RegExp(Hr,"u")}const Qr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,to=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,no=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ro=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,oo=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,io=/^https?$/,so=/^\+[1-9]\d{6,14}$/,Xt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function co(e){return new RegExp(`^${e}$`)}const uo=co(Xt);function Ce(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ao(e){return new RegExp(`^${Ce(e)}$`)}function fo(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${Ce({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Ce({precision:e.precision})}`:n;return new RegExp(`^${Xt}T(?:${r})$`)}const lo=/^[\s\S]{0,}$/,po=/^-?\d+$/,He=/^-?\d+(?:\.\d+)?$/,ho=/^(?:true|false)$/i,mo=/^[^A-Z]*$/,_o=/^[^a-z]*$/,E=l("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xe=e=>{const t=e.value;return!Wn(t)&&t.length!==void 0},me={number:"number",bigint:"bigint",object:"date"},Qt=l("$ZodCheckLessThan",(e,t)=>{E.init(e,t);const n=me[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:me[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),en=l("$ZodCheckGreaterThan",(e,t)=>{E.init(e,t);const n=me[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:me[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),go=l("$ZodCheckMultipleOf",(e,t)=>{E.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Gn(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),vo=l("$ZodCheckNumberFormat",(e,t)=>{E.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Bt[t.format];e._zod.check=s=>{const c=s.value;if(n){if(!Number.isInteger(c)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>i&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),yo=l("$ZodCheckMaxLength",(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=Xe),e._zod.check=r=>{const o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Ve(o):i)<=t.maximum)return;const c=Be(o);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),bo=l("$ZodCheckMinLength",(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=Xe),e._zod.check=r=>{const o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Ve(o):i)>=t.minimum)return;const c=Be(o);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),wo=l("$ZodCheckLengthEquals",(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=Xe),e._zod.check=r=>{const o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Ve(o):i;if(s===t.length)return;const c=Be(o),u=s>t.length;r.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),$e=l("$ZodCheckStringFormat",(e,t)=>{var n,r;E.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),zo=l("$ZodCheckRegex",(e,t)=>{$e.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ko=l("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=mo),$e.init(e,t)}),$o=l("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=_o),$e.init(e,t)}),Oo=l("$ZodCheckIncludes",(e,t)=>{E.init(e,t);const n=q(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Zo=l("$ZodCheckStartsWith",(e,t)=>{E.init(e,t);const n=new RegExp(`^${q(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),So=l("$ZodCheckEndsWith",(e,t)=>{E.init(e,t);const n=new RegExp(`.*${q(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Po=l("$ZodCheckOverwrite",(e,t)=>{E.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Eo{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
2
|
+
`).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
3
|
+
${n.join(`
|
|
4
|
+
`)}
|
|
5
|
+
};`)(...Object.values(this.closed))}}const Io={major:4,minor:6,patch:5},z=l("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Io;const r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const i of o)for(const s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(c,u,a)=>{if(c.memo)return c;let f=D(c),d;for(const h of u){if(h._zod.def.when){if(ar(c)||!h._zod.def.when(c))continue}else if(f)continue;const p=c.issues.length,m=h._zod.check(c);if(m instanceof Promise&&a?.async===!1)throw new V;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,c.issues.length!==p&&(ct(c.issues,p,e),f||(f=D(c,p)))});else{if(c.issues.length===p)continue;ct(c.issues,p,e),f||(f=D(c,p))}}return d?d.then(()=>c):c},s=(c,u,a)=>{if(D(c))return c.aborted=!0,c;const f=i(u,o,a);if(f instanceof Promise){if(a.async===!1)throw new V;return f.then(d=>e._zod.parse(d,a))}return e._zod.parse(f,a)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const f=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return f instanceof Promise?f.then(d=>s(d,c,u)):s(f,c,u)}const a=e._zod.parse(c,u);if(a instanceof Promise){if(u.async===!1)throw new V;return a.then(f=>i(f,o,u))}return i(a,o,u)}}},{get"~standard"(){return Gt(this,"~standard",nn(this))},set"~standard"(e){x(this,"~standard",e)}}),tn=(e,t)=>e.issues.length?{issues:e.issues.map(n=>L(n,t,C()))}:{value:e.value};async function To(e,t){const n={async:!0};return tn(await e._zod.run({value:t,issues:[]},n),n)}function nn(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return tn(r,n)}catch{}return To(e,t)},vendor:"zod",version:1}}const Qe=l("$ZodString",(e,t)=>{z.init(e,t),e._zod.pattern=t.pattern??lo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),k=l("$ZodStringFormat",(e,t)=>{$e.init(e,t),Qe.init(e,t)}),Ao=l("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qr),k.init(e,t)}),No=l("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=lt(r))}else t.pattern??(t.pattern=lt());k.init(e,t)}),jo=l("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Yr),k.init(e,t)}),rn=1,_e=2;function on(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Ro(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?on(e)||_e:Co(e,t)}function Co(e,t){if(!t.normalize&&t.protocol?.source===io.source&&!/^https?:\/\//i.test(e))return rn;try{if(typeof URL<"u"){const n=URL;if(typeof n.parse=="function")return n.parse(e)??_e}return new URL(e)}catch{return _e}}const Do=/[\t\n\r]/g;function dt(e){return e.replace(Do,"")}function Fo(e,t){return t.lastIndex=0,t.test(e.hostname)}function Mo(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}const Uo=l("$ZodURL",(e,t)=>{k.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=Ro(r,t);if(o===rn){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===_e){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=dt(r);return}t.hostname&&!Fo(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Mo(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:dt(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Lo=l("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Xr()),k.init(e,t)}),xo=l("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Br:Wr(t.length)),k.init(e,t)}),Jo=l("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Lr),k.init(e,t)}),Ko=l("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=xr),k.init(e,t)}),Vo=l("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Jr),k.init(e,t)}),Bo=l("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Kr),k.init(e,t)}),Wo=l("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Vr),k.init(e,t)}),Go=l("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=fo(t)),k.init(e,t)}),qo=l("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=uo),k.init(e,t)}),Yo=l("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ao(t)),k.init(e,t)}),Ho=l("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Gr),k.init(e,t)}),Xo=l("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Qr),k.init(e,t)}),Qo=/^[0-9a-fA-F:.]+$/;function sn(e){return Qo.test(e)?on(`http://[${e}]`):!1}const ei=l("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=eo),k.init(e,t),e._zod.check=n=>{sn(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),ti=l("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=to),k.init(e,t)});function ni(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const o=Number(r);return`${o}`!==r||o<0||o>128?!1:sn(n)}const ri=l("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=no),k.init(e,t),e._zod.check=n=>{ni(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function cn(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const un=/^[0-9a-zA-Z+/]*={0,2}$/,oi=l("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=un),k.init(e,t),e._zod.check=n=>{cn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),et=/^[A-Za-z0-9_-]*$/;function ii(e){if(!et.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return cn(n)}const si=l("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=et),k.init(e,t),e._zod.check=n=>{ii(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),ci=l("$ZodE164",(e,t)=>{t.pattern??(t.pattern=so),k.init(e,t)});function ui(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const ai=l("$ZodJWT",(e,t)=>{k.init(e,t),e._zod.check=n=>{ui(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),an=l("$ZodNumber",(e,t)=>{z.init(e,t),e._zod.pattern=He,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),fi=l("$ZodNumberFormat",(e,t)=>{vo.init(e,t),an.init(e,t)}),li=l("$ZodBoolean",(e,t)=>{z.init(e,t),e._zod.pattern=ho,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),di=l("$ZodUnknown",(e,t)=>{z.init(e,t),e._zod.parse=n=>n}),pi=l("$ZodNever",(e,t)=>{z.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function pt(e,t,n){e.issues.length&&t.issues.push(...W(n,e.issues)),t.value[n]=e.value}const hi=l("$ZodArray",(e,t)=>{z.init(e,t);const n=j.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);const s=[],c=o?.abortEarly;for(let u=0;u<i.length;u++){const a=i[u],f=t.element._zod.run({value:a,issues:[]},o);if(f instanceof Promise)s.push(f.then(d=>pt(d,r,u)));else if(pt(f,r,u),c&&f.issues.length!==0&&D(f))break}return s.length?Promise.all(s).then(()=>r):r}});function ge(e,t,n,r,o,i){const s=n in r,c=i==="optional";if(!(!s&&c&&o==="optional")){if(e.issues.length){if(o!==void 0&&c&&!s)return;t.issues.push(...W(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!c)&&(t.value[n]=void 0):t.value[n]=e.value}}const mi=[];function fn(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:mi,o=r.length?[...t,...r]:t;for(const s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);const i=tr(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function ln(e,t,n,r,o,i,s){const c=[],u=o.keySet,a=o.catchall._zod,f=a.def.type,d=a.optin,h=a.optout;let p=0;for(const m in t){if(s&&n.issues.length!==p){if(D(n,p))break;p=n.issues.length}if(u.has(m))continue;if(m==="__proto__"){f==="never"&&c.push(m);continue}if(f==="never"){c.push(m);continue}const g=a.run({value:t[m],issues:[]},r);g instanceof Promise?e.push(g.then(v=>ge(v,n,m,t,d,h))):ge(g,n,m,t,d,h)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}const _i=l("$ZodObject",(e,t)=>{z.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){const a=()=>{const f={...r};return Object.defineProperty(t,"shape",{value:f}),a.raw=f,f};a.raw=r,Object.defineProperty(t,"shape",{get:a})}const o=we(()=>fn(t));y(e,"propValues",a=>{const f=a.def.shape,d={};for(const h in f){const p=f[h]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,h)||M(d,h,new Set);for(const m of p.values)d[h].add(m);p.optin!==void 0&&d[h].add(void 0)}}return d});const i=se,s=t.catchall;let c;const u=j.memoizer;u?.attach(e),e._zod.parse=(a,f)=>{c??(c=o.value);const d=a.value;if(!i(d))return a.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),a;a.value=u?u.alloc(e,a,{},f):{};const h=[],p=c.shape,m=f?.abortEarly;let g=a.issues.length;for(const v of c.allKeys){if(m&&a.issues.length!==g){if(D(a,g))break;g=a.issues.length}if(v==="__proto__")continue;const b=p[v],T=b._zod.optin,Q=b._zod.optout,ee=b._zod.run({value:d[v],issues:[]},f);ee instanceof Promise?h.push(ee.then(S=>ge(S,a,v,d,T,Q))):ge(ee,a,v,d,T,Q)}return s?ln(h,d,a,f,o.value,e,m===!0):h.length?Promise.all(h).then(()=>a):a}}),gi=l("$ZodObjectJIT",(e,t)=>{_i.init(e,t);const n=e._zod.parse,r=we(()=>fn(t)),o=j.memoizer,i=p=>{const m=r.value,g=m.symbolKeys,v=new Eo(["payload","ctx"],{shape:p,inst:e,memo:o,syms:g}),b=S=>`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`,T=(S,w)=>`
|
|
6
|
+
let ${S}_ab = false;
|
|
7
|
+
for (let i = 0; i < ${S}.issues.length; i++) {
|
|
8
|
+
const iss = ${S}.issues[i];
|
|
9
|
+
iss.path = iss.path ? [${w}, ...iss.path] : [${w}];
|
|
10
|
+
payload.issues.push(iss);
|
|
11
|
+
if (iss.continue !== true) ${S}_ab = true;
|
|
12
|
+
}
|
|
13
|
+
if (${S}_ab && ctx && ctx.abortEarly) {
|
|
14
|
+
payload.value = newResult;
|
|
15
|
+
return payload;
|
|
16
|
+
}`;v.write("const input = payload.value;");const Q=Object.create(null);let ee=0;for(const S of m.allKeys)Q[S]=`key_${ee++}`;v.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const S of m.allKeys){if(S==="__proto__")continue;const w=Q[S],R=typeof S=="symbol"?`syms[${g.indexOf(S)}]`:Hn(S),Ze=`${R} in input`,nt=p[S],Se=nt?._zod?.optin,rt=Se!==void 0,Kn=nt?._zod?.optout==="optional";if(v.write(`const ${w} = ${b(R)};`),rt&&Kn){const Vn=Se==="optional"?`${w}_present`:`${w}.value !== undefined || ${w}_present`;v.write(`
|
|
17
|
+
const ${w}_present = ${Ze};
|
|
18
|
+
if (!${w}.issues.length || ${w}_present) {
|
|
19
|
+
if (${w}.issues.length) {${T(w,R)}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (${Vn}) {
|
|
23
|
+
newResult[${R}] = ${w}.value;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
`)}else rt?(v.write(`
|
|
28
|
+
if (${w}.issues.length) {${T(w,R)}
|
|
29
|
+
}
|
|
30
|
+
`),Se==="defaulted"?v.write(`newResult[${R}] = ${w}.value;`):v.write(`
|
|
31
|
+
if (${w}.value !== undefined || ${Ze}) {
|
|
32
|
+
newResult[${R}] = ${w}.value;
|
|
33
|
+
}
|
|
34
|
+
`)):v.write(`
|
|
35
|
+
const ${w}_present = ${Ze};
|
|
36
|
+
if (${w}.issues.length) {${T(w,R)}
|
|
37
|
+
}
|
|
38
|
+
if (!${w}_present && !${w}.issues.length) {
|
|
39
|
+
payload.issues.push({
|
|
40
|
+
code: "invalid_type",
|
|
41
|
+
expected: "nonoptional",
|
|
42
|
+
input: undefined,
|
|
43
|
+
path: [${R}]
|
|
44
|
+
});
|
|
45
|
+
if (ctx && ctx.abortEarly) {
|
|
46
|
+
payload.value = newResult;
|
|
47
|
+
return payload;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (${w}_present) {
|
|
52
|
+
newResult[${R}] = ${w}.value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
`)}return v.write("payload.value = newResult;"),v.write("return payload;"),v.compile()};let s;const c=se,u=!j.jitless,f=u&&Qn.value,d=t.catchall;let h;e._zod.parse=(p,m)=>{h??(h=r.value);const g=p.value;return c(g)?u&&f&&m?.async===!1&&m.jitless!==!0?(s||(s=i(t.shape)),p=s(p,m),d?ln([],g,p,m,h,e,m?.abortEarly===!0):p):n(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function ht(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!D(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>L(s,r,C())))}),t)}const dn=l("$ZodUnion",(e,t)=>{z.init(e,t),y(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),y(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),y(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),y(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){const o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Je(i.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1;const s=[];for(const c of t.options){const u=c._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(c=>ht(c,r,e,o)):ht(s,r,e,o)}});function vi(e){const t=new Map;for(const n of e.options){const r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(const o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}const yi=l("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,dn.init(e,t);const n=e._zod.parse;y(e,"propValues",o=>{const i={};let s=0;for(const c of o.def.options){const u=c._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(c)}"`);u[o.def.discriminator]?.has(void 0)&&s++;for(const[a,f]of Object.entries(u)){Object.prototype.hasOwnProperty.call(i,a)||M(i,a,new Set);for(const d of f)i[a].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{const s=Ke(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});const r=we(()=>vi(t));e._zod.parse=(o,i)=>{const s=o.value;if(!se(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;const c=s?.[t.discriminator],u=r.value.get(c);return u&&(c!==void 0||i.direction!=="backward")?u._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(a=>r.value.get(a)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),bi=l("$ZodIntersection",(e,t)=>{z.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([u,a])=>mt(n,u,a)):mt(n,i,s)}});function De(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(G(e)&&G(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(const i of r){if(i==="__proto__")continue;const s=De(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],s=De(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function mt(e,t,n){const r=new Map;let o;const i=new Map,s=(a,f)=>{let d;if(a.code==="unrecognized_keys"&&!a.path?.length)o??(o=a),d=a.keys;else if(a.code==="invalid_key"&&a.origin==="record"&&a.path?.length===1){const h=String(a.path[0]);i.has(h)||i.set(h,a),d=[h]}else return!1;for(const h of d)r.has(h)||r.set(h,{}),r.get(h)[f]=!0;return!0};for(const a of t.issues)s(a,"l")||e.issues.push(a);for(const a of n.issues)s(a,"r")||e.issues.push(a);const c=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(c.length){const a=o?c.filter(f=>o.keys.includes(f)):[];a.length&&e.issues.push({...o,keys:a});for(const f of c)!a.includes(f)&&i.has(f)&&e.issues.push(i.get(f))}const u=De(t.value,n.value);if(!u.valid){if(D(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}const wi=l("$ZodRecord",(e,t)=>{z.init(e,t);const n=j.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{const i=r.value;if(!G(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;const s=[],c=t.keyType._zod.values;if(c&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};const u=new Set;for(const f of c)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){if(u.add(typeof f=="number"?f.toString():f),f==="__proto__")continue;const d=t.keyType._zod.run({value:f,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(m=>L(m,o,C())),input:f,path:[f],inst:e});continue}const h=d.value;if(h==="__proto__")continue;const p=t.valueType._zod.run({value:i[f],issues:[]},o);p instanceof Promise?s.push(p.then(m=>{m.issues.length&&r.issues.push(...W(f,m.issues)),r.value[h]=m.value})):(p.issues.length&&r.issues.push(...W(f,p.issues)),r.value[h]=p.value)}let a;for(const f in i)if(!u.has(f))if(t.mode==="loose"){if(f==="__proto__")continue;r.value[f]=i[f]}else a=a??[],a.push(f);a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let u;for(const a of Reflect.ownKeys(i)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,a))continue;let f=t.keyType._zod.run({value:a,issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&He.test(a)&&f.issues.length){const m=t.keyType._zod.run({value:Number(a),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(f=m)}if(f.issues.length){t.mode==="loose"?r.value[a]=i[a]:c?(u=u??[],u.push(a)):r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(m=>L(m,o,C())),input:a,path:[a],inst:e});continue}const h=f.value;if(h==="__proto__")continue;const p=t.valueType._zod.run({value:i[a],issues:[]},o);p instanceof Promise?s.push(p.then(m=>{m.issues.length&&r.issues.push(...W(a,m.issues)),r.value[h]=m.value})):(p.issues.length&&r.issues.push(...W(a,p.issues)),r.value[h]=p.value)}u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),zi=l("$ZodEnum",(e,t)=>{z.init(e,t);const n=je(t.entries),r=new Set(n);e._zod.values=r,y(e,"pattern",o=>{const i=je(o.def.entries).filter(s=>er.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>q(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{const s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),ki=l("$ZodLiteral",(e,t)=>{z.init(e,t);const n=new Set(t.values);e._zod.values=n,y(e,"pattern",r=>{const o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?q(i):i?q(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),$i=l("$ZodTransform",(e,t)=>{z.init(e,t),e._zod.optin="optional",j.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Yt(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new V;return n.value=o,n}});function _t(e,t){return e.value=t.issues.length?void 0:t.value,e}const pn=l("$ZodOptional",(e,t)=>{z.init(e,t),y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",y(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),y(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Je(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>_t(n,i)):_t(n,o)}return t.innerType._zod.run(n,r)}}),Oi=l("$ZodExactOptional",(e,t)=>{pn.init(e,t),y(e,"values",n=>n.def.innerType._zod.values),y(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Zi=l("$ZodNullable",(e,t)=>{z.init(e,t),y(e,"optin",n=>n.def.innerType._zod.optin),y(e,"optout",n=>n.def.innerType._zod.optout),y(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Je(r.source)}|null)$`):void 0}),y(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Si=l("$ZodDefault",(e,t)=>{z.init(e,t),e._zod.optin="defaulted",y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>gt(i,t)):gt(o,t)}});function gt(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Pi=l("$ZodPrefault",(e,t)=>{z.init(e,t),e._zod.optin="defaulted",y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Ei=l("$ZodNonOptional",(e,t)=>{z.init(e,t),y(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>vt(i,e)):vt(o,e)}});function vt(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function yt(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>L(o,r,C()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const Ii=l("$ZodCatch",(e,t)=>{z.init(e,t),y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),y(e,"optout",n=>n.def.innerType._zod.optout),y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>yt(n,i,t,r)):yt(n,o,t,r)}}),hn=l("$ZodPipe",(e,t)=>{z.init(e,t),y(e,"values",n=>n.def.in._zod.values),y(e,"optin",n=>n.def.in._zod.optin),y(e,"optout",n=>n.def.out._zod.optout),y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ue(s,t.in,r)):ue(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>ue(i,t.out,r)):ue(o,t.out,r)}});function ue(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Ti=l("$ZodPreprocess",(e,t)=>{hn.init(e,t)}),Ai=l("$ZodReadonly",(e,t)=>{z.init(e,t),y(e,"propValues",n=>n.def.innerType._zod.propValues),y(e,"values",n=>n.def.innerType._zod.values),y(e,"optin",n=>n.def.innerType?._zod?.optin),y(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(bt):bt(o)}});function bt(e){return e.memo||(e.value=Object.freeze(e.value)),e}const Ni=l("$ZodLazy",(e,t)=>{z.init(e,t),qn(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),y(e,"pattern",n=>n.innerType?._zod?.pattern),y(e,"propValues",n=>n.innerType?._zod?.propValues),y(e,"optin",n=>n.innerType?._zod?.optin??void 0),y(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),ji=l("$ZodCustom",(e,t)=>{E.init(e,t),z.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>wt(i,n,r,e));wt(o,n,r,e)}});function wt(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(ce(o))}}class Ri extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const Fe="~memo",zt=[];function mn(e){return e!==null&&typeof e=="object"}function Te(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const _n=new WeakMap,ne=0,pe=1,oe=2;function he(e,t,n){const r=_n.get(e);if(r!==void 0)return r?oe:ne;if(t.has(e))return oe;t.add(e);let o=ne;const i=f=>{if(o!==oe&&f?._zod){const d=he(f,t);d>o&&(o=d)}},s=(f,d)=>{let h=ne;for(const p of Reflect.ownKeys(f)){const m=Object.getOwnPropertyDescriptor(f,p);if(!m.enumerable)continue;const g=m.get?pe:m.value?._zod?he(m.value,t):ne;g>h&&(h=g)}return h},c=f=>{f>o&&(o=f)},u=e._zod.def;switch(u.type){case"object":{const f=Ke(u);c(f?s(f):pe),i(u.catchall);break}case"array":i(u.element);break;case"tuple":for(const f of u.items)i(f);i(u.rest);break;case"record":case"map":i(u.keyType),i(u.valueType);break;case"set":i(u.valueType);break;case"union":for(const f of u.options)i(f);break;case"intersection":i(u.left),i(u.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(u.innerType);break;case"pipe":i(u.in),i(u.out);break;case"function":i(u.input),i(u.output);break;case"lazy":{const f=u._cachedInner??void 0;c(f?he(f,t):pe);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const f in u){const d=Object.getOwnPropertyDescriptor(u,f);if(!d||d.get)continue;const h=d.value;if(!(!h||typeof h!="object")){if(h._zod)i(h);else if(Array.isArray(h))for(const p of h)i(p)}}}return t.delete(e),Ci(e,o)}function Ci(e,t){return t!==pe&&_n.set(e,t===oe),t}function Di(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let ae;const fe=[],Fi={alloc(e,t,n){const r=ae;if(!r)return n;ae=void 0;const o={value:n,issues:null};return r.set(t.value,o),fe.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&Ui(i,o.value))throw new Ri;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,c=(u,a)=>{if(n===void 0){const b=he(e,new Set);if(b===ne)return e._zod.parse=s,e._zod.run===c&&(e._zod.run=s),s(u,a);b===oe||r?n=!0:r=!0}const f=u.value;if(!mn(f))return s(u,a);let d=a[Fe];d||(d={buckets:new WeakMap,backEdges:void 0},a[Fe]=d);let h;o===a?h=i:(h=Di(d,e),o=a,i=h);const p=h.get(f);if(p)return u.value=p.value,p.issues?p.issues.length&&u.issues.push(...Te(p.issues)):(u.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(p.value)),u;ae=h;const m=fe.length,g=s(u,a);ae=void 0;const v=fe.length>m?fe.pop():void 0;return g instanceof Promise?g.then(b=>(v&&(v.issues=b.issues.length?Te(b.issues):zt),b)):(v&&(v.issues=g.issues.length?Te(g.issues):zt),g)};e._zod.parse=c,e._zod.run===s&&(e._zod.run=c)})}};function Mi(){return Fi}function Ui(e,t){const n=e[Fe]?.backEdges;return n!==void 0&&mn(t)&&n.has(t)}const Li=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{const s=o(i.expected),c=lr(i.input),u=o(c,i.input);return`Invalid input: expected ${s}, received ${u}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Vt(i.values[0])}`:`Invalid option: expected one of ${ot(i.values,"|")}`;case"too_big":{const s=i.exact?"exactly ":i.inclusive?"<=":"<",c=t(i.origin);return c?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${c.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{const s=i.exact?"exactly ":i.inclusive?">=":">",c=t(i.origin);return c?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${c.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{const s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${ot(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(c=>`'${c}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function xi(){return{localeError:Li()}}var kt;class Ji{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Ki(){return new Ji}(kt=globalThis).__zod_globalRegistry??(kt.__zod_globalRegistry=Ki());const re=globalThis.__zod_globalRegistry;function gn(e){return e.checks&&(e.checks=[...e.checks]),e}function Vi(e,t){return new e(gn({type:"string",..._(t)}))}function Bi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._(t)})}function Wi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._(t)})}function Gi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._(t)})}function qi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._(t)})}function Yi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._(t)})}function Hi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._(t)})}function Xi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._(t)})}function Qi(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._(t)})}function es(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._(t)})}function ts(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._(t)})}function ns(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._(t)})}function rs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._(t)})}function os(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._(t)})}function is(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._(t)})}function ss(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._(t)})}function cs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._(t)})}function us(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._(t)})}function as(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._(t)})}function fs(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._(t)})}function ls(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._(t)})}function ds(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._(t)})}function ps(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._(t)})}function vn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._(t)})}function hs(e,t){return new e({type:"string",format:"date",check:"string_format",..._(t)})}function ms(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,..._(t)})}function _s(e,t){return new e({type:"string",format:"duration",check:"string_format",..._(t)})}function gs(e,t){return new e(gn({type:"number",checks:[],..._(t)}))}function vs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._(t)})}function ys(e,t){return new e({type:"boolean",..._(t)})}function bs(e){return new e({type:"unknown"})}function ws(e,t){return new e({type:"never",..._(t)})}function $t(e,t){return new Qt({check:"less_than",..._(t),value:e,inclusive:!1})}function Ae(e,t){return new Qt({check:"less_than",..._(t),value:e,inclusive:!0})}function Ot(e,t){return new en({check:"greater_than",..._(t),value:e,inclusive:!1})}function Ne(e,t){return new en({check:"greater_than",..._(t),value:e,inclusive:!0})}function Zt(e,t){return new go({check:"multiple_of",..._(t),value:e})}function yn(e,t){return new yo({check:"max_length",..._(t),maximum:e})}function ve(e,t){return new bo({check:"min_length",..._(t),minimum:e})}function bn(e,t){return new wo({check:"length_equals",..._(t),length:e})}function zs(e,t){return new zo({check:"string_format",format:"regex",..._(t),pattern:e})}function ks(e){return new ko({check:"string_format",format:"lowercase",..._(e)})}function $s(e){return new $o({check:"string_format",format:"uppercase",..._(e)})}function Os(e,t){return new Oo({check:"string_format",format:"includes",..._(t),includes:e})}function Zs(e,t){return new Zo({check:"string_format",format:"starts_with",..._(t),prefix:e})}function Ss(e,t){return new So({check:"string_format",format:"ends_with",..._(t),suffix:e})}function X(e){return new Po({check:"overwrite",tx:e})}function Ps(e){return X(t=>t.normalize(e))}function Es(){return X(e=>e.trim())}function Is(){return X(e=>e.toLowerCase())}function Ts(){return X(e=>e.toUpperCase())}function As(){return X(e=>Xn(e))}function Ns(e,t,n){return new e({type:"array",element:t,..._(n)})}function js(e,t,n){return new e({type:"custom",check:"custom",fn:t,..._(n)})}function Rs(e,t){const n=Cs(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(ce(o,r.value,n._zod.def));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(ce(i))}},e(r.value,r)),t);return n}function Cs(e,t){const n=new E({check:"custom",..._(t)});return n._zod.check=e,n}function ie(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&M(e,r,n[r]);return e}function wn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??re,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function J(e,t,n,r,o){const i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function Z(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const c=e._zod.toJSONSchema?.();if(c)s.schema=c;else{const f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,f);else{const h=s.schema,p=t.processors[o.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);p(e,t,h,f)}const d=e._zod.parent;d&&(s.ref||(s.ref=d),Z(d,t,f),t.seen.get(d).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&ie(s.schema,u),t.io==="input"&&P(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function St(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function zn(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const s of e.seen.entries()){const c=e.metadataRegistry.get(s[0])?.id;if(c){const u=r.get(c);if(u&&u!==s[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(c,s[0])}}const o=s=>{const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(s[0])?.id,h=e.external.uri??(m=>m);if(d)return{ref:h(d)};const p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${h("__shared")}#/${c}/${St(p)}`}}const u="#",a=`${u}/${c}/`;if(s[1]===n&&!s[1].schema.id)return{ref:u};const f=s[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:a+St(f)}},i=s=>{if(s[1].schema.$ref)return;const c=s[1],{ref:u,defId:a}=o(s);c.def={...c.schema},a&&(c.defId=a);const f=c.schema;for(const d in f)delete f[d];f.$ref=u};if(e.cycles==="throw")for(const s of e.seen.entries()){const c=s[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
|
|
56
|
+
|
|
57
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const c=s[1];if(t===s[0]){i(s);continue}if(e.external){const a=e.external.registry.get(s[0])?.id;if(t!==s[0]&&a){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(c.cycle){i(s);continue}c.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function kn(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;kn(r);const o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;const i=r.type;for(const s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const $n=new Set(["type","properties","required","additionalProperties"]),Pt=["oneOf","anyOf"];function Et(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Me(e){const t=[];for(const i of e){if(typeof i!="object"||i.type!=="object")return null;for(const s in i)if(!$n.has(s))return null;t.push(i)}const n={},r=new Set;for(const i of t){for(const s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;const c=[];for(const a of t){const f=a.properties?.[s]??Et(a);f!=null&&(c.some(d=>JSON.stringify(d)===JSON.stringify(f))||c.push(f))}const u=c.length===1?c[0]:Me(c)??{allOf:c};M(n,s,u)}for(const s of i.required??[])r.add(s)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{const i=[];for(const s of t){const c=Et(s);c&&!i.some(u=>JSON.stringify(u)===JSON.stringify(c))&&i.push(c)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function Ds(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of $n)if(o in e)return;const n=t.filter(o=>Pt.some(i=>Array.isArray(o[i])));let r=null;if(!n.length)r=Me(t);else{const o=n[0],i=Pt.find(u=>Array.isArray(o[u]));if(Object.keys(o).length!==1)return;const s=t.filter(u=>u!==o),c=o[i].map(u=>Me([...s,u]));if(c.some(u=>!u))return;r={[i]:c}}r&&(delete e.allOf,ie(e,r))}function On(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=e.seen.get(c);if(u.ref===null)return;const a=u.def??u.schema,f={...a},d=u.ref;if(u.ref=null,d){r(d);const p=e.seen.get(d),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(a.allOf=a.allOf??[],a.allOf.push(m)):ie(a,m),ie(a,f),c._zod.parent===d)for(const v in a)v==="$ref"||v==="allOf"||v in f||delete a[v];if(m.$ref&&p.def)for(const v in a)v==="$ref"||v==="allOf"||v in p.def&&JSON.stringify(a[v])===JSON.stringify(p.def[v])&&delete a[v]}const h=c._zod.parent;if(h&&h!==d){r(h);const p=e.seen.get(h);if(p?.schema.$ref&&(a.$ref=p.schema.$ref,p.def))for(const m in a)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(a[m])===JSON.stringify(p.def[m])&&delete a[m]}e.override({zodSchema:c,jsonSchema:a,path:u.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const c of[...e.seen.entries()].reverse())r(c[0]);if(e.target!=="openapi-3.0")for(const c of e.seen.entries())kn(c[1].def??c[1].schema);for(const c of e.deferred)c();if(e.intersections.length){const c=new Map;for(const u of e.seen.values())for(const a of[u.schema,u.def]){const f=a?.allOf;if(!Array.isArray(f))continue;const d=c.get(f);d?d.push(a):c.set(f,[a])}for(const u of e.intersections)for(const a of c.get(u)??[])Ds(a)}}const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}ie(o,n.defId?n.schema:n.def??n.schema);const i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;const s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const c of e.seen.entries()){const u=c[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,M(s,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:ye(t,"input",e.processors),output:ye(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function P(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return P(r.element,n);if(r.type==="set")return P(r.valueType,n);if(r.type==="lazy")return P(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return P(r.innerType,n);if(r.type==="intersection")return P(r.left,n)||P(r.right,n);if(r.type==="record"||r.type==="map")return P(r.keyType,n)||P(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:P(r.in,n)||P(r.out,n);if(r.type==="object"){for(const o in r.shape)if(P(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(P(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(P(o,n))return!0;return!!(r.rest&&P(r.rest,n))}return!1}const Fs=(e,t={})=>n=>{const r=wn({...n,processors:t});return Z(e,r),zn(r,e),On(r,e)},ye=(e,t,n={})=>r=>{const{libraryOptions:o,target:i}=r??{},s=wn({...o??{},target:i,io:t,processors:n});return Z(e,s),zn(s,e),On(s,e)},Y=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},H=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},It=(e,t)=>{Y(e,"minimum",t),H(e,"maximum",t)},Zn=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Sn=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Pn=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},En=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Tt=(e,t)=>Y(e,"minimum",t.minimum),At=(e,t)=>H(e,"maximum",t.maximum),Nt=e=>(t,n)=>{En(t,n.format);const[r,o]=e[n.format];Y(t,"minimum",r),H(t,"maximum",o)},Ms={greater_than:(e,t)=>Y(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>H(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Zn(e,t.value),number_format:Nt(Bt),bigint_format:Nt(nr),min_length:Tt,max_length:At,length_equals:(e,t)=>It(e,t.length),min_size:Tt,max_size:At,size_equals:(e,t)=>It(e,t.size),string_format:(e,t)=>{En(e,t.format),t.pattern&&Sn(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Pn(e,t.mime)};function N(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const i of r)Ms[i._zod.def.check]?.(t,i._zod.def);const o=e._zod.bag;o.minimum!==void 0&&Y(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Y(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&H(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&H(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&Zn(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&Pn(t,o.mime);for(const i of o.patterns??[])Sn(t,i);return t}const Us={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ls=new Map([[un,ro],[et,oo]]),In=e=>Ls.get(e)??e,xs=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:i,maximum:s,format:c,patterns:u,contentEncoding:a,laxFormat:f}=N(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),c&&(o.format=Us[c]??c,o.format===""&&delete o.format,(c==="time"||f)&&delete o.format),a&&(o.contentEncoding=a),u&&u.size>0){const d=[...u].map(In);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Js=(e,t,n,r)=>{const o=n,{minimum:i,maximum:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:a,isInt:f}=N(e);o.type=f?"integer":"number";const d=typeof a=="number"&&a>=(i??Number.NEGATIVE_INFINITY),h=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";if(d?p?(o.minimum=a,o.exclusiveMinimum=!0):o.exclusiveMinimum=a:typeof i=="number"&&(o.minimum=i),h?p?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof s=="number"&&(o.maximum=s),c){const m=new Set;for(const b of c)Number.isFinite(b)&&b!==0?m.add(Math.abs(b)):J(e,t,o,r,`A multipleOf divisor of ${b} cannot be represented in JSON Schema`);const[g,...v]=m;g!==void 0&&(o.multipleOf=g),v.length&&(o.allOf=[...o.allOf??[],...v.map(b=>({multipleOf:b}))])}},Ks=(e,t,n,r)=>{n.type="boolean"},Vs=(e,t,n,r)=>{n.not={}},Bs=(e,t,n,r)=>{},Ws=(e,t,n,r)=>{const o=e._zod.def,i=je(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},Gs=(e,t,n,r)=>{const o=e._zod.def;if(o.values.length===0){n.not={};return}const i=[];for(const s of o.values)if(s===void 0){if(J(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(J(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){const s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},qs=(e,t,n,r)=>{J(e,t,n,r,"Custom types cannot be represented in JSON Schema")},Ys=(e,t,n,r)=>{J(e,t,n,r,"Transforms cannot be represented in JSON Schema")},Hs=(e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:s,maximum:c}=N(e);typeof s=="number"&&(o.minItems=s),typeof c=="number"&&(o.maxItems=c),o.type="array",o.items=Z(i.element,t,{...r,path:[...r.path,"items"]})};function be(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?be(t.out):t.type==="catch"?be(t.innerType):e._zod.optin}const Xs=(e,t,n,r)=>{const o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&J(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const a in s)M(o.properties,a,Z(s[a],t,{...r,path:[...r.path,"properties",a]}));const u=[];for(const a of Object.keys(s)){const f=i.shape[a];(t.io==="input"?be(f)===void 0:f._zod.optout===void 0)&&u.push(a)}u.length>0&&(o.required=u),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Z(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Qs=(e,t,n,r)=>{const o=e._zod.def,i=o.inclusive===!1,s=o.options.map((c,u)=>Z(c,t,{...r,path:[...r.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=s:n.anyOf=s},ec=(e,t,n,r)=>{const o=e._zod.def,i=Z(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=Z(o.right,t,{...r,path:[...r.path,"allOf",1]}),c=a=>"allOf"in a&&Object.keys(a).length===1,u=[...c(i)?i.allOf:[i],...c(s)?s.allOf:[s]];n.allOf=u,t.intersections.push(u)};function Ue(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);const m=e.get(t)?.def;if(!m)return t;const g=Ue(e,m,n);return g===m?t:g}for(const m of["anyOf","oneOf"]){const g=t[m];if(!Array.isArray(g))continue;const v=g.map(b=>Ue(e,b,n));v.some((b,T)=>b!==g[T])&&(t={...t,[m]:v})}const r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(m=>m==="number"||m==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(m=>typeof m=="number"))return t;const{minimum:s,maximum:c,exclusiveMinimum:u,exclusiveMaximum:a,multipleOf:f,format:d,id:h,...p}=t;return p.enum?p.enum=p.enum.map(m=>typeof m=="number"?String(m):m):typeof p.const=="number"&&(p.const=String(p.const)),o&&(p.type="string",i||(p.pattern=(r.includes("number")?He:po).source)),p}const Le=new WeakMap;function tc(e){const t=new Map;for(const r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);const n=new Map;for(const r of Le.get(e)??[]){const o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;const s=Ue(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(const r of e.seen.values())for(const o of[r.schema,r.def]){const i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}const nc=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object";const s=i.keyType,c=N(s).patterns;if(i.mode==="loose"&&c&&c.size>0){const f=Z(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const d of c)M(o.patternProperties,In(d).source,f)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=Z(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let f=Le.get(t);f||(f=[],Le.set(t,f),t.deferred.push(()=>tc(t))),f.push(e)}o.additionalProperties=Z(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}const u=s._zod.values,a=t.io==="input"&&be(i.valueType)!==void 0;if(u&&!i.partial&&!a){const f=[...u].filter(d=>typeof d=="string"||typeof d=="number");f.length>0&&(o.required=f.map(String))}},rc=(e,t,n,r)=>{const o=e._zod.def,i=Z(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},oc=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},tt=Symbol();function Tn(e,t,n,r,o){let i=!1;const s=JSON.stringify(e,(c,u)=>typeof u!="bigint"?u:(i=!0,null));return i?(J(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),tt):JSON.parse(s)}const ic=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType;const s=Tn(o.defaultValue,e,t,n,r);s!==tt&&(n.default=s)},sc=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;const s=Tn(o.defaultValue,e,t,n,r);s!==tt&&(n._prefault=s)},cc=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{J(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},uc=(e,t,n,r)=>{const o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;Z(s,t,r);const c=t.seen.get(e);c.ref=s},ac=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},An=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},fc=(e,t,n,r)=>{const o=e._zod.innerType;Z(o,t,r);const i=t.seen.get(e);i.ref=o},jt=new WeakSet([Object.prototype,Error.prototype]);function le(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const lc=(e,t)=>{$r.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);jt.has(n)||(jt.add(n),le(n,"format",r=>o=>Sr(r,o)),le(n,"flatten",r=>o=>Zr(r,o)),le(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Re,2)}),le(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Re,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},A=l("ZodError",lc,void 0,{Parent:Error}),dc=We(A),pc=Ge(A),hc=qe(A),mc=Ye(A),_c=Nr(A),gc=jr(A),vc=Rr(A),yc=Cr(A),bc=Dr(A),wc=Fr(A),zc=Mr(A),kc=Ur(A);function $c(){j.localeError||C(xi())}function Oe(){j.memoizer||C({memoizer:Mi()})}const $=l("ZodType",(e,t)=>($c(),z.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(I(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return K(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(wu(e,t))},superRefine(e,t){return this.check(zu(e,t))},overwrite(e){return this.check(X(e))},optional(){return Ft(this)},exactOptional(){return cu(this)},nullable(){return Mt(this)},nullish(){return Ft(Mt(this))},nonoptional(e){return pu(this,e)},array(){return Qc(this)},or(e){return eu([this,e])},and(e){return ru(this,e)},transform(e){return Ut(this,Mn(e))},default(e){return fu(this,e)},prefault(e){return du(this,e)},catch(e){return mu(this,e)},pipe(e){return Ut(this,e)},readonly(){return vu(this)},describe(e){const t=this.clone();return re.add(t,{description:e}),t},meta(...e){if(e.length===0)return re.get(this);const t=this.clone();return re.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Gt(this,"~standard",{...nn(this),jsonSchema:{input:ye(this,"input"),output:ye(this,"output")}})},set"~standard"(e){x(this,"~standard",e)},parse:function e(t,n){return dc(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await pc(this,t,n,{callee:e})},safeParse(e,t){return hc(this,e,t)},async safeParseAsync(e,t){return mc(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){x(this,"spa",e)},validate(e,t){return Ir(this,e,t)},validateAsync(e,t){return Ar(this,e,t)},encode:function e(t,n){return _c(this,t,n,{callee:e})},decode:function e(t,n){return gc(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await vc(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await yc(this,t,n,{callee:e})},safeEncode(e,t){return bc(this,e,t)},safeDecode(e,t){return wc(this,e,t)},async safeEncodeAsync(e,t){return zc(this,e,t)},async safeDecodeAsync(e,t){return kc(this,e,t)},toJSONSchema(e){return Fs(this,{})(e)},get description(){return re.get(this)?.description},get _def(){return this._zod.def}}),Nn=l("_ZodString",(e,t)=>{Qe.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xs(e,n,r)},qt({format:e=>N(e).format??null,minLength:e=>N(e).minimum??null,maxLength:e=>N(e).maximum??null},{regex(...e){return this.check(zs(...e))},includes(...e){return this.check(Os(...e))},startsWith(...e){return this.check(Zs(...e))},endsWith(...e){return this.check(Ss(...e))},min(...e){return this.check(ve(...e))},max(...e){return this.check(yn(...e))},length(...e){return this.check(bn(...e))},nonempty(...e){return this.check(ve(1,...e))},lowercase(e){return this.check(ks(e))},uppercase(e){return this.check($s(e))},trim(){return this.check(Es())},normalize(...e){return this.check(Ps(...e))},toLowerCase(){return this.check(Is())},toUpperCase(){return this.check(Ts())},slugify(){return this.check(As())}})),Oc=l("ZodString",(e,t)=>{Qe.init(e,t),Nn.init(e,t)},{email(e){return this.check(Bi(Ic,e))},url(e){return this.check(Xi(Ac,e))},jwt(e){return this.check(ps(Wc,e))},emoji(e){return this.check(Qi(Nc,e))},guid(e){return this.check(Wi(Tc,e))},uuid(e){return this.check(Gi(de,e))},uuidv4(e){return this.check(qi(de,e))},uuidv6(e){return this.check(Yi(de,e))},uuidv7(e){return this.check(Hi(de,e))},nanoid(e){return this.check(es(jc,e))},cuid(e){return this.check(ts(Rc,e))},cuid2(e){return this.check(ns(Cc,e))},ulid(e){return this.check(rs(Dc,e))},base64(e){return this.check(fs(Kc,e))},base64url(e){return this.check(ls(Vc,e))},xid(e){return this.check(os(Fc,e))},ksuid(e){return this.check(is(Mc,e))},ipv4(e){return this.check(ss(Uc,e))},ipv6(e){return this.check(cs(Lc,e))},cidrv4(e){return this.check(us(xc,e))},cidrv6(e){return this.check(as(Jc,e))},e164(e){return this.check(ds(Bc,e))},datetime(e){return this.check(vn(jn,e))},date(e){return this.check(hs(Sc,e))},time(e){return this.check(ms(Pc,e))},duration(e){return this.check(_s(Ec,e))}});function Zc(e){return Vi(Oc,e)}const O=l("ZodStringFormat",(e,t)=>{k.init(e,t),Nn.init(e,t)}),jn=l("ZodISODateTime",(e,t)=>{Go.init(e,t),O.init(e,t)}),Sc=l("ZodISODate",(e,t)=>{qo.init(e,t),O.init(e,t)}),Pc=l("ZodISOTime",(e,t)=>{Yo.init(e,t),O.init(e,t)}),Ec=l("ZodISODuration",(e,t)=>{Ho.init(e,t),O.init(e,t)}),Ic=l("ZodEmail",(e,t)=>{jo.init(e,t),O.init(e,t)}),Tc=l("ZodGUID",(e,t)=>{Ao.init(e,t),O.init(e,t)}),de=l("ZodUUID",(e,t)=>{No.init(e,t),O.init(e,t)}),Ac=l("ZodURL",(e,t)=>{Uo.init(e,t),O.init(e,t)}),Nc=l("ZodEmoji",(e,t)=>{Lo.init(e,t),O.init(e,t)}),jc=l("ZodNanoID",(e,t)=>{xo.init(e,t),O.init(e,t)}),Rc=l("ZodCUID",(e,t)=>{Jo.init(e,t),O.init(e,t)}),Cc=l("ZodCUID2",(e,t)=>{Ko.init(e,t),O.init(e,t)}),Dc=l("ZodULID",(e,t)=>{Vo.init(e,t),O.init(e,t)}),Fc=l("ZodXID",(e,t)=>{Bo.init(e,t),O.init(e,t)}),Mc=l("ZodKSUID",(e,t)=>{Wo.init(e,t),O.init(e,t)}),Uc=l("ZodIPv4",(e,t)=>{Xo.init(e,t),O.init(e,t)}),Lc=l("ZodIPv6",(e,t)=>{ei.init(e,t),O.init(e,t)}),xc=l("ZodCIDRv4",(e,t)=>{ti.init(e,t),O.init(e,t)}),Jc=l("ZodCIDRv6",(e,t)=>{ri.init(e,t),O.init(e,t)}),Kc=l("ZodBase64",(e,t)=>{oi.init(e,t),O.init(e,t)}),Vc=l("ZodBase64URL",(e,t)=>{si.init(e,t),O.init(e,t)}),Bc=l("ZodE164",(e,t)=>{ci.init(e,t),O.init(e,t)}),Wc=l("ZodJWT",(e,t)=>{ai.init(e,t),O.init(e,t)}),Rn=l("ZodNumber",(e,t)=>{an.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Js(e,n,r,o),e.isFinite=!0},qt({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=N(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=N(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=N(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>N(e).format??null},{gt(e,t){return this.check(Ot(e,t))},gte(e,t){return this.check(Ne(e,t))},min(e,t){return this.check(Ne(e,t))},lt(e,t){return this.check($t(e,t))},lte(e,t){return this.check(Ae(e,t))},max(e,t){return this.check(Ae(e,t))},int(e){return this.check(Rt(e))},safe(e){return this.check(Rt(e))},positive(e){return this.check(Ot(0,e))},nonnegative(e){return this.check(Ne(0,e))},negative(e){return this.check($t(0,e))},nonpositive(e){return this.check(Ae(0,e))},multipleOf(e,t){return this.check(Zt(e,t))},step(e,t){return this.check(Zt(e,t))},finite(){return this}}));function ku(e){return gs(Rn,e)}const Gc=l("ZodNumberFormat",(e,t)=>{fi.init(e,t),Rn.init(e,t)});function Rt(e){return vs(Gc,e)}const qc=l("ZodBoolean",(e,t)=>{li.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ks(e,n,r)});function $u(e){return ys(qc,e)}const Yc=l("ZodUnknown",(e,t)=>{di.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bs()});function Ct(){return bs(Yc)}const Hc=l("ZodNever",(e,t)=>{pi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vs(e,n,r)});function Cn(e){return ws(Hc,e)}const Xc=l("ZodArray",(e,t)=>{Oe(),hi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hs(e,n,r,o),e.element=t.element},{min(e,t){return this.check(ve(e,t))},nonempty(e){return this.check(ve(1,e))},max(e,t){return this.check(yn(e,t))},length(e,t){return this.check(bn(e,t))},unwrap(){return this.element}});function Qc(e,t){return Ns(Xc,e,t)}const Dn=l("ZodObject",(e,t)=>{Oe(),gi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xs(e,n,r,o),_r(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return ou(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(I(this._zod.def,{catchall:e}))},passthrough(){return this.clone(I(this._zod.def,{catchall:Ct()}))},loose(){return this.clone(I(this._zod.def,{catchall:Ct()}))},strict(){return this.clone(I(this._zod.def,{catchall:Cn()}))},strip(){return this.clone(I(this._zod.def,{catchall:void 0}))},extend(e){return ir(this,e)},safeExtend(e){return sr(this,e)},merge(e){return cr(this,e)},pick(e){return rr(this,e)},omit(e){return or(this,e)},partial(...e){return st(Un,this,e[0])},exactPartial(...e){return st(Ln,this,e[0],"exactPartial")},required(...e){return ur(xn,this,e[0])}});function Ou(e,t){const n={type:"object",shape:e??{},..._(t)};return new Dn(n)}function Zu(e,t){return new Dn({type:"object",shape:e,catchall:Cn(),..._(t)})}const Fn=l("ZodUnion",(e,t)=>{dn.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qs(e,n,r,o),e.options=t.options});function eu(e,t){return new Fn({type:"union",options:e,..._(t)})}const tu=l("ZodDiscriminatedUnion",(e,t)=>{Fn.init(e,t),yi.init(e,t)});function Su(e,t,n){return new tu({type:"union",options:t,discriminator:e,..._(n)})}const nu=l("ZodIntersection",(e,t)=>{bi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ec(e,n,r,o)});function ru(e,t){return new nu({type:"intersection",left:e,right:t})}const Dt=l("ZodRecord",(e,t)=>{Oe(),wi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nc(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function Pu(e,t,n){return!t||!t._zod?new Dt({type:"record",keyType:Zc(),valueType:e,..._(t)}):new Dt({type:"record",keyType:e,valueType:t,..._(n)})}const xe=l("ZodEnum",(e,t)=>{zi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Ws(e,r,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new xe({...t,checks:[],..._(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new xe({...t,checks:[],..._(o),entries:i})}});function ou(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new xe({type:"enum",entries:n,..._(t)})}const iu=l("ZodLiteral",(e,t)=>{ki.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gs(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Eu(e,t){return new iu({type:"literal",values:Array.isArray(e)?e:[e],..._(t)})}const su=l("ZodTransform",(e,t)=>{Oe(),$i.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ys(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Yt(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ce(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ce(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Mn(e){return new su({type:"transform",transform:e})}const Un=l("ZodOptional",(e,t)=>{pn.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>An(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Ft(e){return new Un({type:"optional",innerType:e})}const Ln=l("ZodExactOptional",(e,t)=>{Oi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>An(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function cu(e){return new Ln({type:"optional",innerType:e})}const uu=l("ZodNullable",(e,t)=>{Zi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Mt(e){return new uu({type:"nullable",innerType:e})}const au=l("ZodDefault",(e,t)=>{Si.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ic(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fu(e,t){return new au({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Kt(t)}})}const lu=l("ZodPrefault",(e,t)=>{Pi.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function du(e,t){return new lu({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Kt(t)}})}const xn=l("ZodNonOptional",(e,t)=>{Ei.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>oc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function pu(e,t){return new xn({type:"nonoptional",innerType:e,..._(t)})}const hu=l("ZodCatch",(e,t)=>{Ii.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function mu(e,t){return new hu({type:"catch",innerType:e,catchValue:typeof t=="function"?t:vr(t)})}const Jn=l("ZodPipe",(e,t)=>{hn.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uc(e,n,r,o),e.in=t.in,e.out=t.out});function Ut(e,t){return new Jn({type:"pipe",in:e,out:t})}const _u=l("ZodPreprocess",(e,t)=>{Jn.init(e,t),Ti.init(e,t)}),gu=l("ZodReadonly",(e,t)=>{Ai.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ac(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function vu(e){return new gu({type:"readonly",innerType:e})}const yu=l("ZodLazy",(e,t)=>{Ni.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fc(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function Iu(e){return new yu({type:"lazy",getter:e})}const bu=l("ZodCustom",(e,t)=>{ji.init(e,t),$.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qs(e,n,r,o)});function wu(e,t={}){return js(bu,e,t)}function zu(e,t){return Rs(e,t)}function Tu(e,t){return new _u({type:"pipe",in:Mn(e),out:t})}const Au={custom:"custom"};function Nu(e){return vn(jn,e)}const ju={path:"M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"},Ru={path:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"},Cu={path:"M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"},Du={path:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},Fu={path:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"},Mu={path:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},Uu={path:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},Lu={path:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"};export{Au as Z,ou as _,Qc as a,$u as b,Ct as c,Nu as d,Zu as e,Su as f,Iu as g,Cu as h,ju as i,Fu as j,Uu as k,Eu as l,Ru as m,ku as n,Ou as o,Tu as p,Lu as q,Pu as r,Zc as s,Mu as t,eu as u,Du as v};
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
|
|
2
|
+
<rect x="0" y="0" width="1024" height="1024" rx="228" fill="#0F0F0F"/><rect x="236.6" y="269" width="324" height="324" rx="71.28" fill="none" stroke="#6B6B6B" stroke-width="19.44" stroke-dasharray="42.12 35.64"/><rect x="350" y="350" width="324" height="324" rx="71.28" fill="none" stroke="#EDEDED" stroke-width="22.68"/><rect x="463.4" y="431" width="324" height="324" rx="71.28" fill="#FF5A1F"/><path d="M572.94 534.68Q572.94 518.48 587.02 526.48L690.01 585Q704.09 593 690.01 601L587.02 659.52Q572.94 667.52 572.94 651.32Z" fill="#FFFFFF"/>
|
|
3
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<link rel="icon" href="/favicon.ico" sizes="48x48" />
|
|
7
|
+
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
8
|
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
9
|
+
<link rel="manifest" href="/site.webmanifest" />
|
|
10
|
+
<meta name="theme-color" content="#ff5a1f" />
|
|
11
|
+
<title>Motion Studio</title>
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-DCwEfJxp.js"></script>
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/react-VlNyIE0d.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-IQO2I6nB.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/shared-D-Exbs4c.js">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/vendor-CfFIcVU3.css">
|
|
17
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CCBNWqgR.css">
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="root"></div>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Motion Studio",
|
|
3
|
+
"short_name": "Motion Studio",
|
|
4
|
+
"description": "Motion graphics studio built on Claude Code",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"scope": "/",
|
|
7
|
+
"icons": [
|
|
8
|
+
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
|
|
9
|
+
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" },
|
|
10
|
+
{ "src": "/icon-512-maskable.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
|
|
11
|
+
],
|
|
12
|
+
"theme_color": "#ff5a1f",
|
|
13
|
+
"background_color": "#0f0f0f",
|
|
14
|
+
"display": "standalone"
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motion-studio/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Motion Studio: crea video in motion graphics e immagini con il tuo agente di coding locale",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Aleloca/motion-studio.git",
|
|
9
|
+
"directory": "apps/cli"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Aleloca/motion-studio#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Aleloca/motion-studio/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"motion graphics",
|
|
17
|
+
"video",
|
|
18
|
+
"claude code",
|
|
19
|
+
"ai",
|
|
20
|
+
"remotion"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"bin": {
|
|
24
|
+
"motion-studio": "dist/main.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=22"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@fastify/multipart": "^9.4.0",
|
|
36
|
+
"@fastify/static": "^8.3.0",
|
|
37
|
+
"@fastify/websocket": "^11.3.3",
|
|
38
|
+
"@napi-rs/keyring": "^2.1.0",
|
|
39
|
+
"fastify": "^5.12.5",
|
|
40
|
+
"open": "^10.2.0",
|
|
41
|
+
"zod": "^4.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"tsup": "^8.5.0",
|
|
45
|
+
"tsx": "^4.20.0",
|
|
46
|
+
"@motion-studio/core": "0.0.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsup && node -e \"require('node:fs').cpSync('../../packages/web/dist','dist/web',{recursive:true})\" && node -e \"require('node:fs').copyFileSync('../../packages/mcp-studio/src/server.mjs','dist/mcp-studio.mjs')\" && node -e \"const fs=require('node:fs');fs.cpSync('../../packages/composition-runtime/dist','dist/runtime',{recursive:true});for(const f of ['index.html','runtime.js','layer.js','clock.js','preview.js'])if(!fs.existsSync('dist/runtime/'+f))throw new Error('composition runtime not built: '+f)\"",
|
|
50
|
+
"typecheck": "tsc -p tsconfig.json"
|
|
51
|
+
}
|
|
6
52
|
}
|