├── frames ├── README.md ├── find-starknet-frens │ ├── data │ │ └── .gitkeep │ ├── .gitignore │ ├── image.png │ ├── tanis │ ├── package.json │ ├── src │ │ ├── utils.js │ │ ├── sync.js │ │ └── server.js │ ├── public │ │ └── index.html │ └── package-lock.json ├── map-fid-starknet-address │ ├── .env.example │ ├── .eslintrc.json │ ├── public │ │ └── starknet.png │ ├── next.config.mjs │ ├── src │ │ ├── pages │ │ │ ├── _app.tsx │ │ │ ├── profile │ │ │ │ └── index.tsx │ │ │ ├── _document.tsx │ │ │ ├── api │ │ │ │ ├── addMapping.ts │ │ │ │ ├── getMapping.ts │ │ │ │ ├── redirect.ts │ │ │ │ ├── userData.ts │ │ │ │ ├── db.ts │ │ │ │ └── validate.ts │ │ │ ├── index.tsx │ │ │ └── verify │ │ │ │ └── [id].tsx │ │ ├── components │ │ │ ├── starknet-provider.tsx │ │ │ ├── profile.tsx │ │ │ └── connect-wallet.tsx │ │ └── utils.ts │ ├── README.md │ ├── .gitignore │ ├── tsconfig.json │ └── package.json └── ai-story-teller │ ├── .eslintrc.json │ ├── next.config.mjs │ ├── postcss.config.js │ ├── src │ ├── app │ │ ├── favicon.ico │ │ ├── layout.tsx │ │ ├── globals.css │ │ ├── page.tsx │ │ ├── result │ │ │ └── route.tsx │ │ ├── mintNFT │ │ │ └── [fid] │ │ │ │ └── page.tsx │ │ ├── selectNewOption │ │ │ └── route.tsx │ │ ├── selectRelevantOption │ │ │ └── route.tsx │ │ ├── start │ │ │ └── route.ts │ │ ├── afterResult │ │ │ └── route.ts │ │ └── getAnswer │ │ │ └── route.ts │ ├── utils │ │ ├── db.ts │ │ ├── utils.ts │ │ └── constants.ts │ └── components │ │ ├── generateImage.tsx │ │ ├── generateNewOptions.ts │ │ ├── starknet-provider.tsx │ │ ├── generateRelevantOptions.ts │ │ ├── generateStory.tsx │ │ ├── profile.tsx │ │ └── connect-wallet.tsx │ ├── .gitignore │ ├── tailwind.config.ts │ ├── public │ ├── vercel.svg │ └── next.svg │ ├── tsconfig.json │ ├── README.md │ ├── package.json │ └── cairo │ └── lib.cairo ├── LICENSE ├── README.md └── .gitignore /frames/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/.env.example: -------------------------------------------------------------------------------- 1 | BASE_URL="" 2 | POSTGRES_URL="" -------------------------------------------------------------------------------- /frames/ai-story-teller/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | .env.local 4 | .DS_STORE 5 | data/* 6 | !data/.gitkeep 7 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamigordon/starknet-warpcast/HEAD/frames/find-starknet-frens/image.png -------------------------------------------------------------------------------- /frames/ai-story-teller/next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /frames/ai-story-teller/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamigordon/starknet-warpcast/HEAD/frames/ai-story-teller/src/app/favicon.ico -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/public/starknet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamigordon/starknet-warpcast/HEAD/frames/map-fid-starknet-address/public/starknet.png -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | reactStrictMode: true, 4 | }; 5 | 6 | export default nextConfig; 7 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/_app.tsx: -------------------------------------------------------------------------------- 1 | import type { AppProps } from 'next/app' 2 | 3 | export default function App({ Component, pageProps }: AppProps) { 4 | return 5 | } 6 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/README.md: -------------------------------------------------------------------------------- 1 | # Farcaster Frame - Starknet Address Linker 2 | 3 | This project provides a Farcaster Frame that enables users to securely link their Farcaster ID to their Starknet address. 4 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/utils/db.ts: -------------------------------------------------------------------------------- 1 | import { Redis } from '@upstash/redis'; 2 | 3 | export const redis = new Redis({ 4 | url: process.env.NEXT_PUBLIC_REDIS_URL!, 5 | token: process.env.NEXT_PUBLIC_REDIS_TOKEN!, 6 | }); 7 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/profile/index.tsx: -------------------------------------------------------------------------------- 1 | import { StarknetProvider } from "@/components/starknet-provider"; 2 | import Profile from "@/components/profile"; 3 | 4 | export default function Home() { 5 | return ( 6 | 7 | 8 | 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/_document.tsx: -------------------------------------------------------------------------------- 1 | import { Html, Head, Main, NextScript } from "next/document"; 2 | 3 | export default function Document() { 4 | return ( 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/tanis: -------------------------------------------------------------------------------- 1 | # Find you starket friends on Farcaster! 2 | 3 | The project implements a farcaster frame, which allows you to find starknet builders on warpcast! 4 | 5 | ![Alt text](image.png) 6 | 7 | ## How does it work? 8 | - It parses the list from [here](https://github.com/keep-starknet-strange/starknet-warpcast/blob/main/builder_follow_builder.md). 9 | - Then uses [puppeteer](https://pptr.dev/) to screenshot all profiles, by running a headless chrome in the background! 10 | - Then randomly suggests starknet profiles! 11 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | 9 | # testing 10 | /coverage 11 | 12 | # next.js 13 | /.next/ 14 | /out/ 15 | 16 | # production 17 | /build 18 | 19 | # misc 20 | .DS_Store 21 | *.pem 22 | 23 | # debug 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | 28 | # local env files 29 | .env*.local 30 | .env 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | -------------------------------------------------------------------------------- /frames/ai-story-teller/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | bun.lockb 9 | .env 10 | # testing 11 | /coverage 12 | 13 | # next.js 14 | /.next/ 15 | /out/ 16 | 17 | # production 18 | /build 19 | 20 | # misc 21 | .DS_Store 22 | *.pem 23 | 24 | # debug 25 | npm-debug.log* 26 | yarn-debug.log* 27 | yarn-error.log* 28 | 29 | # local env files 30 | .env*.local 31 | 32 | # vercel 33 | .vercel 34 | 35 | # typescript 36 | *.tsbuildinfo 37 | next-env.d.ts 38 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/generateImage.tsx: -------------------------------------------------------------------------------- 1 | import OpenAI from 'openai'; 2 | 3 | interface Props { 4 | text: string; 5 | } 6 | 7 | export const generateImage = async ({ text }: Props) => { 8 | const openai = new OpenAI({ 9 | apiKey: process.env.NEXT_PUBLIC_API_KEY, 10 | dangerouslyAllowBrowser: true, 11 | }); 12 | 13 | const response = await openai.images.generate({ 14 | model: 'dall-e-2', 15 | prompt: text, 16 | n: 1, 17 | size: '512x512', 18 | quality: 'standard', 19 | }); 20 | 21 | const imageUrl = response.data[0].url; 22 | 23 | return imageUrl; 24 | }; 25 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "skipLibCheck": true, 6 | "strict": true, 7 | "noEmit": true, 8 | "esModuleInterop": true, 9 | "module": "esnext", 10 | "moduleResolution": "bundler", 11 | "resolveJsonModule": true, 12 | "isolatedModules": true, 13 | "jsx": "preserve", 14 | "incremental": true, 15 | "paths": { 16 | "@/*": ["./src/*"] 17 | } 18 | }, 19 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], 20 | "exclude": ["node_modules"] 21 | } 22 | -------------------------------------------------------------------------------- /frames/ai-story-teller/tailwind.config.ts: -------------------------------------------------------------------------------- 1 | import type { Config } from "tailwindcss"; 2 | 3 | const config: Config = { 4 | content: [ 5 | "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", 6 | "./src/components/**/*.{js,ts,jsx,tsx,mdx}", 7 | "./src/app/**/*.{js,ts,jsx,tsx,mdx}", 8 | ], 9 | theme: { 10 | extend: { 11 | backgroundImage: { 12 | "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", 13 | "gradient-conic": 14 | "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", 15 | }, 16 | }, 17 | }, 18 | plugins: [], 19 | }; 20 | export default config; 21 | -------------------------------------------------------------------------------- /frames/ai-story-teller/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "warpcast-profile-indexer-starknet-frens", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "install-chrome": "npx puppeteer browsers install chrome", 8 | "serve": "node src/server.js", 9 | "build": "npm run install-chrome && npm run serve", 10 | "test": "echo \"Error: no test specified\" && exit 1" 11 | }, 12 | "keywords": [], 13 | "author": "", 14 | "license": "ISC", 15 | "dependencies": { 16 | "axios": "^1.6.7", 17 | "cors": "^2.8.5", 18 | "dotenv": "^16.4.1", 19 | "express": "^4.18.2", 20 | "puppeteer": "^21.9.0" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/api/addMapping.ts: -------------------------------------------------------------------------------- 1 | import type { NextApiRequest, NextApiResponse } from "next"; 2 | import { addOrUpdateMapping } from "./db"; 3 | 4 | export default async function handler( 5 | req: NextApiRequest, 6 | res: NextApiResponse 7 | ) { 8 | if (req.method === "POST") { 9 | const { fid, starknetAddress } = req.body; 10 | 11 | try { 12 | await addOrUpdateMapping(fid, starknetAddress); 13 | res.status(200).json({ message: "Mapping added successfully" }); 14 | } catch (error) { 15 | res.status(500).json({ error: "Internal Server Error" }); 16 | } 17 | } else { 18 | res.status(405).json({ error: "Method Not Allowed" }); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /frames/ai-story-teller/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "skipLibCheck": true, 6 | "strict": true, 7 | "noEmit": true, 8 | "esModuleInterop": true, 9 | "module": "esnext", 10 | "moduleResolution": "bundler", 11 | "resolveJsonModule": true, 12 | "isolatedModules": true, 13 | "jsx": "preserve", 14 | "incremental": true, 15 | "plugins": [ 16 | { 17 | "name": "next" 18 | } 19 | ], 20 | "paths": { 21 | "@/*": ["./src/*"] 22 | } 23 | }, 24 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 25 | "exclude": ["node_modules"] 26 | } 27 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/src/utils.js: -------------------------------------------------------------------------------- 1 | const crypto = require('crypto'); 2 | const fs = require('fs'); 3 | 4 | function generateSHA256Hash(inputString) { 5 | const hash = crypto.createHash('sha256'); 6 | hash.update(inputString); 7 | return hash.digest('hex'); 8 | } 9 | 10 | const sleep = async (milliseconds) => { 11 | return new Promise(resolve => setTimeout(resolve, milliseconds)) 12 | } 13 | 14 | const getProfileLists = () => { 15 | let data = JSON.parse(fs.readFileSync('./data/frenList.json')); 16 | `` 17 | return data.map(({ frenFarCasterProfileUrl }) => { 18 | return frenFarCasterProfileUrl 19 | }); 20 | }; 21 | 22 | module.exports = { 23 | generateSHA256Hash, 24 | sleep, 25 | getProfileLists, 26 | } 27 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import type { Metadata } from 'next'; 2 | import { Inter } from 'next/font/google'; 3 | import './globals.css'; 4 | import { ToastContainer } from 'react-toastify'; 5 | import 'react-toastify/dist/ReactToastify.css'; 6 | 7 | const inter = Inter({ subsets: ['latin'] }); 8 | 9 | export const metadata: Metadata = { 10 | title: 'Create Next App', 11 | description: 'Generated by create next app', 12 | }; 13 | 14 | export default function RootLayout({ 15 | children, 16 | }: Readonly<{ 17 | children: React.ReactNode; 18 | }>) { 19 | return ( 20 | 21 | 22 | {children} 23 | 24 | 25 | 26 | ); 27 | } 28 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | :root { 6 | --foreground-rgb: 0, 0, 0; 7 | --background-start-rgb: 214, 219, 220; 8 | --background-end-rgb: 255, 255, 255; 9 | } 10 | 11 | @media (prefers-color-scheme: dark) { 12 | :root { 13 | --foreground-rgb: 255, 255, 255; 14 | --background-start-rgb: 0, 0, 0; 15 | --background-end-rgb: 0, 0, 0; 16 | } 17 | } 18 | 19 | body { 20 | color: rgb(var(--foreground-rgb)); 21 | background: linear-gradient( 22 | to bottom, 23 | transparent, 24 | rgb(var(--background-end-rgb)) 25 | ) 26 | rgb(var(--background-start-rgb)); 27 | } 28 | 29 | @layer utilities { 30 | .text-balance { 31 | text-wrap: balance; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/index.tsx: -------------------------------------------------------------------------------- 1 | import { BASE_URL } from "@/utils"; 2 | import Head from "next/head"; 3 | 4 | export default function Home() { 5 | return ( 6 | <> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 19 | 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/api/getMapping.ts: -------------------------------------------------------------------------------- 1 | import type { NextApiRequest, NextApiResponse } from "next"; 2 | import { getMappingByStarknetAddress } from "./db"; 3 | 4 | export default async function handler( 5 | req: NextApiRequest, 6 | res: NextApiResponse 7 | ) { 8 | if (req.method === "GET") { 9 | const starknetAddress = req.query.starknetAddress as string; 10 | 11 | try { 12 | const fid = await getMappingByStarknetAddress(starknetAddress); 13 | if (fid) { 14 | res.status(200).json({ fid }); 15 | } else { 16 | res.status(404).json({ error: "Mapping not found" }); 17 | } 18 | } catch (error) { 19 | res.status(500).json({ error: "Internal Server Error" }); 20 | } 21 | } else { 22 | res.status(405).json({ error: "Method Not Allowed" }); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /frames/ai-story-teller/README.md: -------------------------------------------------------------------------------- 1 | ## Framer For Starknet 2 | 3 | An AI generated story awaits for you. Play the game, make the choices and see how the story unfolds. Your choices will determine the outcome of the story. 4 | 5 | The entire storyline gets minted as an NFT on Starknet, let's see who is a good storyteller. 6 | 7 | Test it here: 8 | 9 | Warpcast: https://warpcast.com/saviour/0xee8de3f2 10 | 11 | Video Explainer: https://www.youtube.com/watch?v=-kUl0m5eoNA 12 | 13 | Add the below link in your Cast to use this frame: 14 | 15 | ``` 16 | https://starknet-story-frame.vercel.app/ 17 | ``` 18 | 19 | Smart Contract Link: 20 | 21 | https://starkscan.co/contract/0x05c7f6058eaa54e2407ee816b4d792852cad15c6845bb1c2a3b8986361085397 22 | 23 | https://testnet.starkscan.co/contract/0x07d6a456565e355c07a4074b3e0d72b0b36f9ffe191236ab83199d6c4175c7ec 24 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Find Starknet Friends :) 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 21 |

Starknet follow fellow builders

22 | 23 | 24 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/api/redirect.ts: -------------------------------------------------------------------------------- 1 | import { NextApiRequest, NextApiResponse } from "next"; 2 | import { BASE_URL } from "@/utils"; 3 | 4 | export default async function handler( 5 | req: NextApiRequest, 6 | res: NextApiResponse 7 | ) { 8 | if (req.method === "POST") { 9 | const signedMessage = req.body as { 10 | untrustedData: { 11 | fid: number; 12 | url: string; 13 | messageHash: string; 14 | timestamp: number; 15 | network: number; 16 | buttonIndex: number; 17 | castId: { fid: number; hash: string }; 18 | }; 19 | trustedData?: { 20 | messageBytes: string; 21 | }; 22 | }; 23 | 24 | const messageBytes = signedMessage?.trustedData?.messageBytes; 25 | res.redirect(302, `${BASE_URL}verify/${messageBytes}`); 26 | } else { 27 | res.status(405).end(); // Method Not Allowed 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/page.tsx: -------------------------------------------------------------------------------- 1 | import { Metadata } from 'next'; 2 | 3 | export async function generateMetadata(): Promise { 4 | const fcMetadata: Record = { 5 | 'fc:frame': 'vNext', 6 | 'fc:frame:post_url': `${process.env.HOST_URL}/start?time${Date.now()}`, 7 | 'fc:frame:image': `https://t4.ftcdn.net/jpg/04/61/47/03/360_F_461470323_6TMQSkCCs9XQoTtyer8VCsFypxwRiDGU.jpg`, 8 | 'fc:frame:button:1': 'Create your story', 9 | }; 10 | 11 | return { 12 | title: 'Starknet Frame', 13 | openGraph: { 14 | title: 'Starknet Frame', 15 | images: [ 16 | 'https://t4.ftcdn.net/jpg/04/61/47/03/360_F_461470323_6TMQSkCCs9XQoTtyer8VCsFypxwRiDGU.jpg', 17 | ], 18 | }, 19 | other: { 20 | ...fcMetadata, 21 | }, 22 | metadataBase: new URL(`${process.env.HOST_URL}`), 23 | }; 24 | } 25 | 26 | const Room = () => { 27 | return

Starknet Frame

; 28 | }; 29 | 30 | export default Room; 31 | -------------------------------------------------------------------------------- /frames/ai-story-teller/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "starknet-frame", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@farcaster/hub-nodejs": "^0.10.23", 13 | "@spheron/storage": "^2.0.4", 14 | "@starknet-react/core": "^2.2.4", 15 | "@upstash/redis": "^1.28.3", 16 | "axios": "^1.6.7", 17 | "nanoid": "^5.0.5", 18 | "next": "14.1.0", 19 | "openai": "^4.26.0", 20 | "react": "^18", 21 | "react-dom": "^18", 22 | "react-toastify": "^10.0.4", 23 | "starknet": "^5.24.3", 24 | "starknetkit": "^1.1.3" 25 | }, 26 | "devDependencies": { 27 | "@types/node": "^20", 28 | "@types/react": "^18", 29 | "@types/react-dom": "^18", 30 | "autoprefixer": "^10.0.1", 31 | "eslint": "^8", 32 | "eslint-config-next": "14.1.0", 33 | "postcss": "^8", 34 | "tailwindcss": "^3.3.0", 35 | "typescript": "^5" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "farcaster-frame", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@farcaster/hub-nodejs": "^0.10.22", 13 | "@farcaster/hub-web": "^0.7.3", 14 | "@starknet-react/chains": "^0.1.6", 15 | "@starknet-react/core": "^2.2.4", 16 | "@types/axios": "^0.14.0", 17 | "axios": "^1.6.7", 18 | "get-starknet-core": "^3.2.0", 19 | "next": "14.1.0", 20 | "pg": "^8.11.3", 21 | "react": "^18", 22 | "react-dom": "^18", 23 | "save-dev": "^0.0.1-security", 24 | "starknet": "^5.27.0", 25 | "starknetkit": "^1.1.3" 26 | }, 27 | "devDependencies": { 28 | "@types/node": "^20", 29 | "@types/pg": "^8.11.0", 30 | "@types/react": "^18", 31 | "@types/react-dom": "^18", 32 | "autoprefixer": "^10.0.1", 33 | "eslint": "^8", 34 | "eslint-config-next": "14.1.0", 35 | "typescript": "^5" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Keep Starknet Strange 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/generateNewOptions.ts: -------------------------------------------------------------------------------- 1 | 'use server'; 2 | 3 | import OpenAI from 'openai'; 4 | 5 | export const generateNewOptions = async () => { 6 | const openai = new OpenAI({ 7 | apiKey: process.env.NEXT_PUBLIC_API_KEY, 8 | dangerouslyAllowBrowser: true, 9 | }); 10 | 11 | const response = await openai.chat.completions.create({ 12 | model: 'gpt-4', 13 | messages: [ 14 | { 15 | role: 'system', 16 | content: ` 17 | I am creating a "Build your story" where I ask user to select one option from 4 and continue this process to have a full story. This options should be small of 4-5 words. 18 | 19 | return as an array in this format only 4 options are allowed: 20 | ["option1", "option2", "option3", "option4"] 21 | `, 22 | }, 23 | ], 24 | n: 1, 25 | }); 26 | 27 | if (response?.choices[0]?.message?.content) { 28 | const dataArray: string[] = JSON.parse( 29 | response?.choices[0]?.message?.content.toString() 30 | ); 31 | return { 32 | options: dataArray, 33 | }; 34 | } else { 35 | throw new Error('Error in generating options'); 36 | } 37 | }; 38 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/starknet-provider.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | import React from "react"; 3 | 4 | import { goerli } from "@starknet-react/chains"; 5 | import { 6 | StarknetConfig, 7 | nethermindProvider, 8 | argent, 9 | braavos, 10 | useInjectedConnectors, 11 | voyager, 12 | } from "@starknet-react/core"; 13 | import { ArgentMobileConnector } from "starknetkit/argentMobile"; 14 | 15 | export function StarknetProvider({ children }: { children: React.ReactNode }) { 16 | const { connectors } = useInjectedConnectors({ 17 | // Show these connectors if the user has no connector installed. 18 | recommended: [argent(), braavos(), new ArgentMobileConnector()], 19 | // Hide recommended connectors if the user has any connector installed. 20 | includeRecommended: "onlyIfNoConnectors", 21 | // Randomize the order of the connectors. 22 | order: "random", 23 | }); 24 | 25 | return ( 26 | 34 | {children} 35 | 36 | ); 37 | } 38 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/components/starknet-provider.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | import React from "react"; 3 | 4 | import { mainnet } from "@starknet-react/chains"; 5 | import { 6 | StarknetConfig, 7 | nethermindProvider, 8 | argent, 9 | braavos, 10 | useInjectedConnectors, 11 | voyager, 12 | } from "@starknet-react/core"; 13 | import { ArgentMobileConnector } from "starknetkit/argentMobile"; 14 | 15 | export function StarknetProvider({ children }: { children: React.ReactNode }) { 16 | const { connectors } = useInjectedConnectors({ 17 | // Show these connectors if the user has no connector installed. 18 | recommended: [argent(), braavos(), new ArgentMobileConnector()], 19 | // Hide recommended connectors if the user has any connector installed. 20 | includeRecommended: "onlyIfNoConnectors", 21 | // Randomize the order of the connectors. 22 | order: "random", 23 | }); 24 | 25 | return ( 26 | 34 | {children} 35 | 36 | ); 37 | } 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Starknet Warpcast 2 | 3 |
4 | 5 | Static Badge 6 | 7 | 8 | Static Badge 9 | 10 |
11 | 12 | ## Starknet builders on Warpcast 13 | 14 | Wanna find easily the Starknet builders on Warpcast? 15 | 16 | Here is a maintained list of Farcaster/Warpcast handles for the Starknet builders: 17 | 18 | [Builder follow builder](builder_follow_builder.md). 19 | 20 | ## Frames 21 | 22 | See [README.md](frames/README.md). 23 | 24 | ### Resources 25 | 26 | - [Coinbase Onchain Kit and Frame kit](https://github.com/coinbase/onchainkit) 27 | - [Farcaster Frames docs](https://warpcast.notion.site/Farcaster-Frames-4bd47fe97dc74a42a48d3a234636d8c5) 28 | - [Neynar Farcaster Developer Hub](https://docs.neynar.com/) 29 | - [Farcaster Dev Telegram Chat](https://t.me/farcasterdevchat) 30 | - [frames.js is the fastest way to make Frames.](https://framesjs.org/) 31 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/generateRelevantOptions.ts: -------------------------------------------------------------------------------- 1 | import OpenAI from 'openai'; 2 | 3 | interface Props { 4 | text: string; 5 | } 6 | 7 | export const generateRelevantOptions = async ({ text }: Props) => { 8 | const openai = new OpenAI({ 9 | apiKey: process.env.NEXT_PUBLIC_API_KEY, 10 | dangerouslyAllowBrowser: true, 11 | }); 12 | 13 | const response = await openai.chat.completions.create({ 14 | model: 'gpt-4', 15 | messages: [ 16 | { 17 | role: 'system', 18 | content: ` 19 | I am creating a "Build your story" where I ask user to select one option from 4 and continue this process to have a full story. This options should be small of 4-5 words. 20 | Show me the options for the next step in the story based on the previous story i.e. "${text}". 21 | 22 | return as an array in this format: 23 | ["option1", "option2", "option3", "option4"] 24 | `, 25 | }, 26 | ], 27 | }); 28 | if (response?.choices[0]?.message?.content) { 29 | const dataArray: string[] = JSON.parse( 30 | response?.choices[0]?.message?.content.toString() 31 | ); 32 | return { 33 | options: dataArray, 34 | }; 35 | } else { 36 | throw new Error('Error in generating options'); 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/generateStory.tsx: -------------------------------------------------------------------------------- 1 | import { redis } from '@/utils/db'; 2 | import { redisType } from '@/utils/utils'; 3 | import OpenAI from 'openai'; 4 | 5 | interface Props { 6 | farcasterId: string; 7 | } 8 | 9 | export const generateStory = async ({ farcasterId }: Props) => { 10 | const openai = new OpenAI({ 11 | apiKey: process.env.NEXT_PUBLIC_API_KEY, 12 | dangerouslyAllowBrowser: true, 13 | }); 14 | 15 | console.log('farcasterId', farcasterId); 16 | 17 | const story = (await redis.get(farcasterId)) as redisType; 18 | 19 | console.log('story', story); 20 | 21 | const response = await openai.chat.completions.create({ 22 | model: 'gpt-4', 23 | messages: [ 24 | { 25 | role: 'system', 26 | content: ` 27 | You are an amazing Story writer who writes nail biting story, i am giving you some portions of a story, 28 | and you have to make an entire short story using points. The word limit of the story should be 350 words. 29 | 30 | Here are the points: 31 | 32 | ${story.answers} 33 | `, 34 | }, 35 | ], 36 | n: 1, 37 | }); 38 | 39 | const text = response?.choices[0].message.content; 40 | 41 | console.log('text', text); 42 | 43 | return text; 44 | }; 45 | -------------------------------------------------------------------------------- /frames/ai-story-teller/public/next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/utils.ts: -------------------------------------------------------------------------------- 1 | import { RpcProvider, Abi, Contract } from "starknet"; 2 | 3 | export const BASE_URL = process.env.BASE_URL || ""; 4 | 5 | export const timeValid = (timestamp: number): boolean => { 6 | // Farcaster epoch starts on Jan 1, 2021 7 | const farcasterEpochStart = new Date("2021-01-01T00:00:00Z").getTime() / 1000; 8 | const currentTimestamp = Math.floor(Date.now() / 1000) - farcasterEpochStart; // Current time in seconds since Farcaster epoch 9 | const thirtyMinutes = 30 * 60; // 30 minutes in seconds 10 | 11 | return currentTimestamp - timestamp <= thirtyMinutes; 12 | }; 13 | 14 | export const getAbi = async ( 15 | provider: RpcProvider, 16 | contractAddress: string 17 | ): Promise => { 18 | const classHash = await provider.getClassHashAt(contractAddress); 19 | const contractClass = await provider.getClass(classHash); 20 | let abi = contractClass.abi; 21 | 22 | for (const f of abi) { 23 | // Check if any of the abi functions is named "get_implementation" 24 | if (f.name === "get_implementation") { 25 | const contract = new Contract(abi, contractAddress, provider); 26 | const implementationClassHash = await contract.get_implementation(); 27 | const implementationClass = await provider.getClass( 28 | implementationClassHash.implementation 29 | ); 30 | abi = implementationClass.abi; 31 | } 32 | } 33 | 34 | return abi; 35 | }; 36 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/utils/utils.ts: -------------------------------------------------------------------------------- 1 | import { RpcProvider, Abi, Contract } from 'starknet'; 2 | 3 | export const BASE_URL = process.env.BASE_URL || ''; 4 | 5 | export const timeValid = (timestamp: number): boolean => { 6 | // Farcaster epoch starts on Jan 1, 2021 7 | const farcasterEpochStart = new Date('2021-01-01T00:00:00Z').getTime() / 1000; 8 | const currentTimestamp = Math.floor(Date.now() / 1000) - farcasterEpochStart; // Current time in seconds since Farcaster epoch 9 | const thirtyMinutes = 30 * 60; // 30 minutes in seconds 10 | 11 | return currentTimestamp - timestamp <= thirtyMinutes; 12 | }; 13 | 14 | export const getAbi = async ( 15 | provider: RpcProvider, 16 | contractAddress: string 17 | ): Promise => { 18 | const classHash = await provider.getClassHashAt(contractAddress); 19 | const contractClass = await provider.getClass(classHash); 20 | let abi = contractClass.abi; 21 | 22 | for (const f of abi) { 23 | // Check if any of the abi functions is named "get_implementation" 24 | if (f.name === 'get_implementation') { 25 | const contract = new Contract(abi, contractAddress, provider); 26 | const implementationClassHash = await contract.get_implementation(); 27 | const implementationClass = await provider.getClass( 28 | implementationClassHash.implementation 29 | ); 30 | abi = implementationClass.abi; 31 | } 32 | } 33 | 34 | return abi; 35 | }; 36 | 37 | export interface redisType { 38 | options: string[]; 39 | answers: string; 40 | image: string; 41 | } 42 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/api/userData.ts: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | import type { NextApiRequest, NextApiResponse } from "next"; 3 | 4 | const extractProfileData = (apiResponse: any) => { 5 | let profileData = { 6 | pfp: "", 7 | username: "", 8 | bio: "", 9 | display: "", 10 | }; 11 | 12 | apiResponse.messages.forEach((item: any) => { 13 | const userData = item.data.userDataBody; 14 | switch (userData.type) { 15 | case "USER_DATA_TYPE_PFP": 16 | profileData.pfp = userData.value; 17 | break; 18 | case "USER_DATA_TYPE_USERNAME": 19 | profileData.username = userData.value; 20 | break; 21 | case "USER_DATA_TYPE_BIO": 22 | profileData.bio = userData.value; 23 | break; 24 | case "USER_DATA_TYPE_DISPLAY": 25 | profileData.display = userData.value; 26 | break; 27 | default: 28 | break; 29 | } 30 | }); 31 | 32 | return profileData; 33 | }; 34 | 35 | export default async function handler( 36 | req: NextApiRequest, 37 | res: NextApiResponse 38 | ) { 39 | // Extract the FID from the query parameters 40 | const { fid } = req.query; 41 | 42 | try { 43 | const response = await axios.get( 44 | `https://nemes.farcaster.xyz:2281/v1/userDataByFid`, 45 | { params: { fid } } 46 | ); 47 | 48 | const profileData = extractProfileData(response.data); 49 | res.status(200).json(profileData); 50 | } catch (error) { 51 | console.error("Error fetching user data:", error); 52 | res.status(500).json({ error: "Internal Server Error" }); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/result/route.tsx: -------------------------------------------------------------------------------- 1 | import { generateImage } from '@/components/generateImage'; 2 | import { redis } from '@/utils/db'; 3 | import { redisType } from '@/utils/utils'; 4 | import { ImageResponse } from 'next/og'; 5 | 6 | export const runtime = 'edge'; 7 | 8 | export const dynamic = 'force-dynamic'; 9 | 10 | export async function GET(request: Request) { 11 | const { searchParams } = new URL(request.url); 12 | const answer = searchParams.get('answer'); 13 | const fid = searchParams.get('fid'); 14 | 15 | console.log(answer); 16 | 17 | if (!answer || !fid) { 18 | return new Response('Invalid Request', { status: 400 }); 19 | } 20 | 21 | const imageUrl = (await generateImage({ text: answer })) as string; 22 | 23 | console.log(imageUrl); 24 | 25 | const existingData = (await redis.get(fid?.toString())) as redisType; 26 | 27 | await redis.set(fid, { 28 | ...existingData, 29 | image: imageUrl, 30 | }); 31 | 32 | try { 33 | return new ImageResponse( 34 | ( 35 |
46 | 47 |
48 | ), 49 | { 50 | width: 1200, 51 | height: 630, 52 | } 53 | ); 54 | } catch (e: any) { 55 | console.log(e); 56 | return new Response(e, { status: 500 }); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/mintNFT/[fid]/page.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import ConnectWallet from '@/components/connect-wallet'; 4 | import { StarknetProvider } from '@/components/starknet-provider'; 5 | import { timeValid } from '@/utils/utils'; 6 | import { useEffect, useState } from 'react'; 7 | 8 | const Minter = ({ params }: { params: { fid: string } }) => { 9 | const [invalidVerification, setInvalidVerification] = useState(false); 10 | const [fid, setFid] = useState(0); 11 | const [timestamp, setTimestamp] = useState(0); 12 | 13 | useEffect(() => { 14 | console.log('params.id: ', params.fid); 15 | const messageBytes = params.fid; 16 | console.log(messageBytes); 17 | if (messageBytes) { 18 | fetch('/api/validate', { 19 | method: 'POST', 20 | headers: { 21 | 'Content-Type': 'application/json', 22 | }, 23 | body: JSON.stringify({ messageBytes }), 24 | }) 25 | .then((res) => res.json()) 26 | .then((res) => { 27 | if (timeValid(res.timestamp)) { 28 | setFid(res.fid); 29 | setTimestamp(res.timestamp); 30 | } else { 31 | console.log('Timestamp is older than 30 minutes'); 32 | setInvalidVerification(true); 33 | } 34 | }) 35 | .catch((err) => { 36 | console.error(err); 37 | setInvalidVerification(true); 38 | }); 39 | } 40 | }, [params.fid]); 41 | 42 | return ( 43 |
44 | 45 | 46 | 47 |
48 | ); 49 | }; 50 | 51 | export default Minter; 52 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/api/db.ts: -------------------------------------------------------------------------------- 1 | import { Pool } from "pg"; 2 | 3 | const pool = new Pool({ 4 | connectionString: process.env.POSTGRES_URL + "?sslmode=require", 5 | }); 6 | 7 | // Function to add a new mapping 8 | 9 | export async function addOrUpdateMapping( 10 | fid: number, 11 | starknetAddress: string 12 | ): Promise { 13 | const client = await pool.connect(); 14 | try { 15 | const existingMapping = await getMappingByFid(fid); 16 | if (existingMapping) { 17 | await client.query( 18 | "UPDATE user_mappings SET starknet_address = $1 WHERE fid = $2", 19 | [starknetAddress, fid] 20 | ); 21 | } else { 22 | await client.query( 23 | "INSERT INTO user_mappings (fid, starknet_address) VALUES ($1, $2)", 24 | [fid, starknetAddress] 25 | ); 26 | } 27 | } finally { 28 | client.release(); 29 | } 30 | } 31 | 32 | // Function to get a Starknet address by Farcaster ID 33 | export async function getMappingByFid(fid: number): Promise { 34 | const client = await pool.connect(); 35 | try { 36 | const res = await client.query( 37 | "SELECT starknet_address FROM user_mappings WHERE fid = $1", 38 | [fid] 39 | ); 40 | return res.rows[0]?.starknet_address || null; 41 | } finally { 42 | client.release(); 43 | } 44 | } 45 | 46 | // Function to get a Farcaster ID by Starknet address 47 | export async function getMappingByStarknetAddress( 48 | starknetAddress: string 49 | ): Promise { 50 | const client = await pool.connect(); 51 | try { 52 | const res = await client.query( 53 | "SELECT fid FROM user_mappings WHERE starknet_address = $1", 54 | [starknetAddress] 55 | ); 56 | return res.rows[0]?.fid || null; 57 | } finally { 58 | client.release(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/verify/[id].tsx: -------------------------------------------------------------------------------- 1 | import { StarknetProvider } from "../../components/starknet-provider"; 2 | import ConnectWallet from "../../components/connect-wallet"; 3 | import { useRouter } from "next/router"; 4 | import { useEffect, useState } from "react"; 5 | import { timeValid } from "../../utils"; 6 | 7 | export default function Home() { 8 | const router = useRouter(); 9 | const [invalidVerification, setInvalidVerification] = useState(false); 10 | const [fid, setFid] = useState(0); 11 | const [timestamp, setTimestamp] = useState(0); 12 | 13 | useEffect(() => { 14 | const messageBytes = router.query.id; 15 | if (messageBytes) { 16 | // send a request to /api/validate 17 | fetch("/api/validate", { 18 | method: "POST", 19 | headers: { 20 | "Content-Type": "application/json", 21 | }, 22 | body: JSON.stringify({ messageBytes }), 23 | }) 24 | .then((res) => res.json()) 25 | .then((res) => { 26 | if (timeValid(res.timestamp)) { 27 | setFid(res.fid); 28 | setTimestamp(res.timestamp); 29 | } else { 30 | console.log("Timestamp is older than 30 minutes"); 31 | setInvalidVerification(true); 32 | } 33 | }) 34 | .catch((err) => { 35 | console.error(err); 36 | setInvalidVerification(true); 37 | }); 38 | } 39 | }, [router.query.id]); 40 | 41 | return ( 42 |
43 | {invalidVerification ? ( 44 |
45 |

Invalid Verification

46 |

The verification link is invalid.

47 |
48 | ) : ( 49 |
50 | 51 | 52 | 53 |
54 | )} 55 |
56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/pages/api/validate.ts: -------------------------------------------------------------------------------- 1 | import type { NextApiRequest, NextApiResponse } from "next"; 2 | import { Message } from "@farcaster/hub-nodejs"; 3 | import axios from "axios"; 4 | 5 | export default async function handler( 6 | req: NextApiRequest, 7 | res: NextApiResponse 8 | ) { 9 | if (req.method === "POST") { 10 | // validate the message 11 | const messageBytes = req.body["messageBytes"]; 12 | if (!messageBytes) { 13 | return res.status(400).send("Missing messageBytes"); 14 | } 15 | 16 | let validatedMessage: Message | undefined = undefined; 17 | try { 18 | const buffer = Buffer.from(messageBytes, "hex"); 19 | const response = await axios.post( 20 | "https://nemes.farcaster.xyz:2281/v1/validateMessage", 21 | buffer, 22 | { 23 | headers: { "Content-Type": "application/octet-stream" }, 24 | } 25 | ); 26 | 27 | if (response && response.data && response.data.valid) { 28 | validatedMessage = response.data.message; 29 | } 30 | 31 | // Also validate the frame url matches the expected url 32 | let urlBuffer = validatedMessage?.data?.frameActionBody?.url || []; 33 | const urlString = atob(urlBuffer.toString()); 34 | if ( 35 | validatedMessage && 36 | !urlString.startsWith(process.env["BASE_URL"] || "") 37 | ) { 38 | res.status(400).json({ error: `invalid frame url: ${urlString}` }); 39 | } 40 | 41 | const fid = validatedMessage?.data?.fid; 42 | if (!fid && fid !== 0) { 43 | res.status(400).json({ error: "Invalid fid" }); 44 | } 45 | res 46 | .status(200) 47 | .json({ fid: fid, timestamp: validatedMessage?.data?.timestamp }); 48 | } catch (e) { 49 | res.status(400).json({ error: `Failed to validate message: ${e}` }); 50 | } 51 | } else { 52 | // Handle any non-POST requests 53 | res.setHeader("Allow", ["POST"]); 54 | res.status(405).end(`Method ${req.method} Not Allowed`); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/selectNewOption/route.tsx: -------------------------------------------------------------------------------- 1 | import { generateNewOptions } from '@/components/generateNewOptions'; 2 | import { redis } from '@/utils/db'; 3 | import { redisType } from '@/utils/utils'; 4 | import { ImageResponse } from 'next/og'; 5 | 6 | export const runtime = 'edge'; 7 | 8 | export const dynamic = 'force-dynamic'; 9 | 10 | export async function GET(request: Request) { 11 | const { searchParams } = new URL(request.url); 12 | const fid = searchParams.get('fid'); 13 | 14 | console.log('called'); 15 | 16 | if (!fid) { 17 | return new Response('Invalid Request', { status: 400 }); 18 | } 19 | 20 | const options = ((await generateNewOptions()) as { options: string[] }) 21 | .options; 22 | 23 | console.log(options); 24 | 25 | await redis.set(fid?.toString(), { 26 | options: options, 27 | answers: '', 28 | image: '', 29 | } as redisType); 30 | 31 | try { 32 | return new ImageResponse( 33 | ( 34 |
45 | 53 | Select Option to Create your Story 54 | 55 |
66 | {options.map((option: string, idx: number) => ( 67 | 68 | {idx + 1}. {option} 69 | 70 | ))} 71 |
72 |
73 | ), 74 | { 75 | width: 1200, 76 | height: 630, 77 | } 78 | ); 79 | } catch (e: any) { 80 | console.log(e); 81 | return new Response(e, { status: 500 }); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/selectRelevantOption/route.tsx: -------------------------------------------------------------------------------- 1 | import { generateRelevantOptions } from '@/components/generateRelevantOptions'; 2 | import { redis } from '@/utils/db'; 3 | import { redisType } from '@/utils/utils'; 4 | import { ImageResponse } from 'next/og'; 5 | 6 | export const runtime = 'edge'; 7 | 8 | export const dynamic = 'force-dynamic'; 9 | 10 | export async function GET(request: Request) { 11 | const { searchParams } = new URL(request.url); 12 | const fid = searchParams.get('fid'); 13 | 14 | if (!fid) { 15 | return new Response('Invalid Request', { status: 400 }); 16 | } 17 | 18 | const existingData = (await redis.get(fid?.toString())) as redisType; 19 | 20 | if (!existingData) { 21 | return new Response('Invalid Request', { status: 400 }); 22 | } 23 | 24 | const options = ( 25 | (await generateRelevantOptions({ text: existingData.answers })) as { 26 | options: string[]; 27 | } 28 | ).options; 29 | 30 | await redis.set(fid, { 31 | ...existingData, 32 | options: options, 33 | }); 34 | 35 | console.log(options); 36 | 37 | try { 38 | return new ImageResponse( 39 | ( 40 |
51 | 59 | Select Option to Create your Story 60 | 61 |
72 | {options.map((option: string, idx: number) => ( 73 | 74 | {idx + 1}. {option} 75 | 76 | ))} 77 |
78 |
79 | ), 80 | { 81 | width: 1200, 82 | height: 630, 83 | } 84 | ); 85 | } catch (e: any) { 86 | console.log(e); 87 | return new Response(e, { status: 500 }); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | .pnpm-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # Snowpack dependency directory (https://snowpack.dev/) 46 | web_modules/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional stylelint cache 58 | .stylelintcache 59 | 60 | # Microbundle cache 61 | .rpt2_cache/ 62 | .rts2_cache_cjs/ 63 | .rts2_cache_es/ 64 | .rts2_cache_umd/ 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variable files 76 | .env 77 | .env.development.local 78 | .env.test.local 79 | .env.production.local 80 | .env.local 81 | 82 | # parcel-bundler cache (https://parceljs.org/) 83 | .cache 84 | .parcel-cache 85 | 86 | # Next.js build output 87 | .next 88 | out 89 | 90 | # Nuxt.js build / generate output 91 | .nuxt 92 | dist 93 | 94 | # Gatsby files 95 | .cache/ 96 | # Comment in the public line in if your project uses Gatsby and not Next.js 97 | # https://nextjs.org/blog/next-9-1#public-directory-support 98 | # public 99 | 100 | # vuepress build output 101 | .vuepress/dist 102 | 103 | # vuepress v2.x temp and cache directory 104 | .temp 105 | .cache 106 | 107 | # Docusaurus cache and generated files 108 | .docusaurus 109 | 110 | # Serverless directories 111 | .serverless/ 112 | 113 | # FuseBox cache 114 | .fusebox/ 115 | 116 | # DynamoDB Local files 117 | .dynamodb/ 118 | 119 | # TernJS port file 120 | .tern-port 121 | 122 | # Stores VSCode versions used for testing VSCode extensions 123 | .vscode-test 124 | 125 | # yarn v2 126 | .yarn/cache 127 | .yarn/unplugged 128 | .yarn/build-state.yml 129 | .yarn/install-state.gz 130 | .pnp.* 131 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/start/route.ts: -------------------------------------------------------------------------------- 1 | import { getSSLHubRpcClient, Message } from '@farcaster/hub-nodejs'; 2 | 3 | const HUB_URL = 'nemes.farcaster.xyz:2283'; 4 | const client = getSSLHubRpcClient(HUB_URL); 5 | 6 | export const dynamic = 'force-dynamic'; 7 | 8 | export async function POST(request: Request) { 9 | const body = await request.json(); 10 | 11 | let validatedMessage: Message | undefined; 12 | 13 | try { 14 | const frameMessage = Message.decode( 15 | Buffer.from(body?.trustedData?.messageBytes || '', 'hex') 16 | ); 17 | const result = await client.validateMessage(frameMessage); 18 | if (result.isOk() && result.value.valid) { 19 | validatedMessage = result.value.message; 20 | } 21 | 22 | // Also validate the frame url matches the expected url 23 | let urlBuffer = validatedMessage?.data?.frameActionBody?.url || []; 24 | const urlString = Buffer.from(urlBuffer).toString('utf-8'); 25 | if (!urlString.startsWith(process.env.HOST_URL || '')) { 26 | return new Response('Invalid frame url', { status: 400 }); 27 | } 28 | } catch (e: any) { 29 | return new Response(e, { status: 500 }); 30 | } 31 | 32 | const buttonId = validatedMessage?.data?.frameActionBody?.buttonIndex || 0; 33 | 34 | console.log('buttonId', buttonId); 35 | 36 | if (buttonId === 1) { 37 | try { 38 | const imageUrl = `${process.env.HOST_URL}/selectNewOption?fid=${ 39 | validatedMessage?.data?.fid 40 | }&time=${Date.now()}`; 41 | return new Response( 42 | ` 43 | 44 | 45 | 46 | Create your Story 47 | 48 | 49 | 50 | 51 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |

Let's start creating a story

61 | 62 | 63 | `, 64 | { 65 | headers: { 66 | 'Content-Type': 'text/html', 67 | }, 68 | status: 200, 69 | } 70 | ); 71 | } catch (e: any) { 72 | return new Response(e, { status: 500 }); 73 | } 74 | } 75 | return new Response('Invalid request', { status: 400 }); 76 | } 77 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/src/sync.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | const puppeteer = require('puppeteer'); 3 | const dotenv = require('dotenv'); 4 | const { generateSHA256Hash, sleep } = require('./utils'); 5 | 6 | dotenv.config(); 7 | 8 | const sync = async () => { 9 | const browser = await getBrowser(); 10 | 11 | const frenList = await fetchFrenList(browser); 12 | fs.writeFileSync('./data/frenList.json', JSON.stringify(frenList)); 13 | 14 | for (let i = 0; i < frenList.length; i++) { 15 | let fren = frenList[i]; 16 | let frenFarCasterProfileUrl = fren.frenFarCasterProfileUrl; 17 | await takeScreenShot(browser, frenFarCasterProfileUrl); 18 | } 19 | 20 | } 21 | 22 | const getBrowser = async () => { 23 | const options = process.env.PROD == "true" ? { 24 | executablePath: process.env.CHROMIUM_PATH, 25 | args: ['--no-sandbox', '--disable-setuid-sandbox'], 26 | } : { 27 | } 28 | 29 | const browser = await puppeteer.launch({ 30 | ...options, 31 | headless: true, 32 | defaultViewport: { 33 | width: 542, 34 | height: 284, 35 | isLandscape: true 36 | } 37 | }); 38 | return browser; 39 | } 40 | 41 | const takeScreenShot = async (browser, frenFarCasterProfileUrl) => { 42 | const clipRegion = { 43 | x: 0, // The x-coordinate of the top-left corner of the clip area 44 | y: 0, // The y-coordinate of the top-left corner of the clip area 45 | width: 542, // The width of the clip area 46 | height: 284 // The height of the clip area 47 | }; 48 | const page = await browser.newPage(); 49 | await page.goto(frenFarCasterProfileUrl, { waitUntil: 'networkidle2' }); 50 | await sleep(5000); 51 | 52 | await page.screenshot({ path: `./data/${generateSHA256Hash(frenFarCasterProfileUrl)}.png`, clip: clipRegion }); 53 | await page.close(); 54 | } 55 | 56 | const fetchFrenList = async (browser) => { 57 | const page = await browser.newPage(); 58 | await page.goto("https://github.com/keep-starknet-strange/starknet-warpcast/blob/main/builder_follow_builder.md", { waitUntil: 'domcontentloaded' }); 59 | await sleep(2000); 60 | 61 | let result = await page.evaluate(() => { 62 | const arr = []; 63 | let table = document.getElementsByTagName('table')[0]; 64 | let tableBody = table.children[1]; 65 | 66 | for (let i = 0; i < tableBody.children.length; i++) { 67 | let row = tableBody.children[i]; 68 | let frenName = row.children[0].innerText; 69 | let frenFarCasterProfileUrl = row.children[1].children[0].href; 70 | 71 | arr.push({ frenName, frenFarCasterProfileUrl }); 72 | } 73 | 74 | return arr; 75 | }); 76 | 77 | await page.close(); 78 | 79 | return result; 80 | } 81 | 82 | module.exports = { 83 | sync 84 | } 85 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/afterResult/route.ts: -------------------------------------------------------------------------------- 1 | import { redis } from '@/utils/db'; 2 | import { getSSLHubRpcClient, Message } from '@farcaster/hub-nodejs'; 3 | 4 | const HUB_URL = 'nemes.farcaster.xyz:2283'; 5 | const client = getSSLHubRpcClient(HUB_URL); 6 | 7 | export const dynamic = 'force-dynamic'; 8 | 9 | export async function POST(request: Request) { 10 | const body = await request.json(); 11 | 12 | let validatedMessage: Message | undefined; 13 | 14 | try { 15 | const frameMessage = Message.decode( 16 | Buffer.from(body?.trustedData?.messageBytes || '', 'hex') 17 | ); 18 | const result = await client.validateMessage(frameMessage); 19 | if (result.isOk() && result.value.valid) { 20 | validatedMessage = result.value.message; 21 | } 22 | 23 | // Also validate the frame url matches the expected url 24 | let urlBuffer = validatedMessage?.data?.frameActionBody?.url || []; 25 | const urlString = Buffer.from(urlBuffer).toString('utf-8'); 26 | if (!urlString.startsWith(process.env.HOST_URL || '')) { 27 | return new Response('Invalid frame url', { status: 400 }); 28 | } 29 | } catch (e: any) { 30 | return new Response(e, { status: 500 }); 31 | } 32 | 33 | const buttonId = validatedMessage?.data?.frameActionBody?.buttonIndex || 0; 34 | 35 | if (buttonId === 1) { 36 | try { 37 | const imageUrl = `${process.env.HOST_URL}/selectRelevantOption?fid=${ 38 | validatedMessage?.data?.fid 39 | }&time=${Date.now()}`; 40 | return new Response( 41 | ` 42 | 43 | 44 | 45 | Create your Story 46 | 47 | 48 | 49 | 50 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |

Let's start creating a story

60 | 61 | 62 | `, 63 | { 64 | headers: { 65 | 'Content-Type': 'text/html', 66 | }, 67 | status: 200, 68 | } 69 | ); 70 | } catch (e: any) { 71 | return new Response(e, { status: 500 }); 72 | } 73 | } 74 | 75 | if (buttonId === 2) { 76 | return new Response('Minting NFT', { 77 | status: 302, 78 | headers: { 79 | Location: `${process.env.HOST_URL}/mintNFT/${validatedMessage?.data?.fid}`, 80 | }, 81 | }); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /frames/ai-story-teller/cairo/lib.cairo: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | 3 | #[starknet::contract] 4 | mod frame_for_starknet { 5 | use openzeppelin::token::erc721::ERC721Component; 6 | use openzeppelin::introspection::src5::SRC5Component; 7 | use openzeppelin::access::ownable::OwnableComponent; 8 | use starknet::ContractAddress; 9 | 10 | component!(path: ERC721Component, storage: erc721, event: ERC721Event); 11 | component!(path: SRC5Component, storage: src5, event: SRC5Event); 12 | component!(path: OwnableComponent, storage: ownable, event: OwnableEvent); 13 | 14 | #[abi(embed_v0)] 15 | impl ERC721MetadataImpl = ERC721Component::ERC721MetadataImpl; 16 | #[abi(embed_v0)] 17 | impl ERC721MetadataCamelOnly = ERC721Component::ERC721MetadataCamelOnlyImpl; 18 | #[abi(embed_v0)] 19 | impl ERC721Impl = ERC721Component::ERC721Impl; 20 | #[abi(embed_v0)] 21 | impl ERC721CamelOnly = ERC721Component::ERC721CamelOnlyImpl; 22 | #[abi(embed_v0)] 23 | impl SRC5Impl = SRC5Component::SRC5Impl; 24 | #[abi(embed_v0)] 25 | impl OwnableImpl = OwnableComponent::OwnableImpl; 26 | #[abi(embed_v0)] 27 | impl OwnableCamelOnlyImpl = OwnableComponent::OwnableCamelOnlyImpl; 28 | 29 | impl ERC721InternalImpl = ERC721Component::InternalImpl; 30 | impl OwnableInternalImpl = OwnableComponent::InternalImpl; 31 | 32 | #[storage] 33 | struct Storage { 34 | #[substorage(v0)] 35 | erc721: ERC721Component::Storage, 36 | #[substorage(v0)] 37 | src5: SRC5Component::Storage, 38 | #[substorage(v0)] 39 | ownable: OwnableComponent::Storage, 40 | } 41 | 42 | #[event] 43 | #[derive(Drop, starknet::Event)] 44 | enum Event { 45 | #[flat] 46 | ERC721Event: ERC721Component::Event, 47 | #[flat] 48 | SRC5Event: SRC5Component::Event, 49 | #[flat] 50 | OwnableEvent: OwnableComponent::Event, 51 | } 52 | 53 | #[constructor] 54 | fn constructor(ref self: ContractState, owner: ContractAddress) { 55 | self.erc721.initializer('FramerForStarknet', 'FFS'); 56 | self.ownable.initializer(owner); 57 | } 58 | 59 | #[generate_trait] 60 | #[external(v0)] 61 | impl ExternalImpl of ExternalTrait { 62 | fn safe_mint( 63 | ref self: ContractState, 64 | recipient: ContractAddress, 65 | token_id: u256, 66 | data: Span, 67 | token_uri: felt252, 68 | ) { 69 | self.ownable.assert_only_owner(); 70 | self.erc721._safe_mint(recipient, token_id, data); 71 | self.erc721._set_token_uri(token_id, token_uri); 72 | } 73 | 74 | fn safeMint( 75 | ref self: ContractState, 76 | recipient: ContractAddress, 77 | tokenId: u256, 78 | data: Span, 79 | tokenURI: felt252, 80 | ) { 81 | self.safe_mint(recipient, tokenId, data, tokenURI); 82 | } 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/app/getAnswer/route.ts: -------------------------------------------------------------------------------- 1 | import { redis } from '@/utils/db'; 2 | import { redisType } from '@/utils/utils'; 3 | import { getSSLHubRpcClient, Message } from '@farcaster/hub-nodejs'; 4 | 5 | const HUB_URL = 'nemes.farcaster.xyz:2283'; 6 | const client = getSSLHubRpcClient(HUB_URL); 7 | 8 | export const dynamic = 'force-dynamic'; 9 | 10 | export async function POST(request: Request) { 11 | const body = await request.json(); 12 | 13 | let validatedMessage: Message | undefined; 14 | 15 | try { 16 | const frameMessage = Message.decode( 17 | Buffer.from(body?.trustedData?.messageBytes || '', 'hex') 18 | ); 19 | const result = await client.validateMessage(frameMessage); 20 | if (result.isOk() && result.value.valid) { 21 | validatedMessage = result.value.message; 22 | } 23 | 24 | // Also validate the frame url matches the expected url 25 | let urlBuffer = validatedMessage?.data?.frameActionBody?.url || []; 26 | const urlString = Buffer.from(urlBuffer).toString('utf-8'); 27 | if (!urlString.startsWith(process.env.HOST_URL || '')) { 28 | return new Response('Invalid frame url', { status: 400 }); 29 | } 30 | } catch (e: any) { 31 | return new Response(e, { status: 500 }); 32 | } 33 | 34 | const buttonId = validatedMessage?.data?.frameActionBody?.buttonIndex || 0; 35 | 36 | const answers = ( 37 | (await redis.get(validatedMessage?.data?.fid.toString() || '')) as redisType 38 | ).options; 39 | 40 | console.log('answers', answers); 41 | 42 | const imageUrl = `${process.env.HOST_URL}/result?answer=${ 43 | answers[buttonId - 1] 44 | }&time=${Date.now()}&fid=${validatedMessage?.data?.fid}`; 45 | 46 | if (answers[buttonId - 1] && validatedMessage?.data?.fid) { 47 | const pastData = (await redis.get( 48 | validatedMessage?.data?.fid.toString() 49 | )) as redisType; 50 | console.log('fid', validatedMessage?.data?.fid); 51 | console.log('answers', pastData); 52 | await redis.set(validatedMessage?.data?.fid.toString(), { 53 | ...pastData, 54 | answers: `${pastData.answers}, ${answers[buttonId - 1]}`, 55 | }); 56 | } 57 | 58 | return new Response( 59 | ` 60 | 61 | 62 | 63 | Result 64 | 65 | 66 | 67 | 68 | 71 | 72 | 73 | 74 | 75 | 76 |

Let's start creating a story

77 | 78 | 79 | `, 80 | { 81 | headers: { 82 | 'Content-Type': 'text/html', 83 | }, 84 | status: 200, 85 | } 86 | ); 87 | } 88 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/src/server.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const https = require('https'); 3 | const path = require('path'); 4 | const fs = require('fs'); 5 | const cors = require('cors'); 6 | 7 | const { getProfileLists, generateSHA256Hash } = require('./utils'); 8 | const { sync } = require('./sync'); 9 | 10 | const app = express(); 11 | 12 | // Use CORS for all routes 13 | app.use(cors()); 14 | 15 | const port = 3000; 16 | 17 | sync(); 18 | let profileList = []; 19 | 20 | // Middleware function to log requests 21 | const loggerMiddleware = (req, res, next) => { 22 | console.log(`${new Date().toISOString()} - ${req.method} request to ${req.url}`); 23 | next(); // Move on to the next middleware or route handler 24 | }; 25 | 26 | // Apply the middleware globally 27 | app.use(loggerMiddleware); 28 | 29 | // Serve static files from the 'data' directory 30 | app.use('/frame', express.static('public')); 31 | 32 | // Serve static files from the 'data' directory 33 | app.use('/data', express.static('data')); 34 | 35 | // The request should download all the images to the 'data' directory 36 | // NOTE: should be called periodically from a cron job 37 | app.post('/sync', (req, res) => { 38 | sync(); 39 | profileList = getProfileLists(); 40 | res.send('OK'); 41 | }); 42 | 43 | // The request should return the URL of the next profile to be displayed 44 | app.post('/next_profile', (req, res) => { 45 | if (profileList.length === 0) { 46 | profileList = getProfileLists(); 47 | } 48 | 49 | let profile_url = `https://kakachain.xyz:3000/data/${generateSHA256Hash(profileList.pop())}.png` 50 | 51 | let result = ` 52 | 53 | 54 | Find Starknet Friends :) 55 | 56 | 60 | 61 | 65 | 66 | 70 | 71 | 72 |

Starknet follow fellow builders

73 | 74 | `; 75 | 76 | res.send(result); 77 | }); 78 | 79 | if (process.env.PROD == "true") { 80 | 81 | const certDir = "/etc/letsencrypt/live/kakachain.xyz"; 82 | 83 | // Read the certificate and private key 84 | const privateKey = fs.readFileSync(path.join(certDir, 'privkey.pem'), 'utf8'); 85 | const certificate = fs.readFileSync(path.join(certDir, 'fullchain.pem'), 'utf8'); 86 | 87 | const credentials = { key: privateKey, cert: certificate }; 88 | 89 | // Create an HTTPS server 90 | const httpsServer = https.createServer(credentials, app); 91 | 92 | httpsServer.listen(port, () => { 93 | console.log(`HTTPS Server running on port ${port}`); 94 | }); 95 | } else { 96 | app.listen(port, () => { 97 | console.log(`Example app listening at http://localhost:${port}`); 98 | }); 99 | } 100 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/components/profile.tsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useState } from "react"; 2 | import { useAccount, useConnect, useDisconnect } from "@starknet-react/core"; 3 | import { useStarknetkitConnectModal } from "starknetkit"; 4 | import Link from "next/link"; 5 | 6 | export default function Home() { 7 | const [profileData, setProfileData] = useState(null); 8 | const [errorMessage, setErrorMessage] = useState(""); 9 | const { connect } = useConnect(); 10 | const { disconnect } = useDisconnect(); 11 | const { address, isConnected } = useAccount(); 12 | const { starknetkitConnectModal } = useStarknetkitConnectModal({ 13 | dappName: "Starknet Farcaster", 14 | }); 15 | 16 | const connectWallet = async () => { 17 | const { connector } = await starknetkitConnectModal(); 18 | await connect({ connector }); 19 | }; 20 | 21 | const disconnectWallet = async () => { 22 | await disconnect(); 23 | }; 24 | 25 | const getMapping = async (starknetAddress: string, retries: number) => { 26 | try { 27 | const response = await fetch( 28 | `/api/getMapping?starknetAddress=${starknetAddress}` 29 | ); 30 | 31 | if (!response.ok) { 32 | throw new Error("Network response was not ok"); 33 | } 34 | 35 | return response.json(); 36 | } catch (error) { 37 | // wait 1 second before retrying 38 | setTimeout(() => { 39 | if (retries < 3) { 40 | getMapping(starknetAddress, retries + 1); 41 | } else { 42 | setErrorMessage("Failed to get mapping"); 43 | } 44 | }, 1000); 45 | console.error("Failed to get mapping:", error); 46 | } 47 | }; 48 | 49 | useEffect(() => { 50 | if (address) { 51 | let retries = 0; 52 | getMapping(address, retries).then((res) => { 53 | if (res) { 54 | fetch(`/api/userData?fid=${res.fid}`) 55 | .then((response) => response.json()) 56 | .then((data) => { 57 | setProfileData(data); 58 | }) 59 | .catch((error) => { 60 | console.error("Error fetching user data:", error); 61 | }); 62 | } 63 | }); 64 | } 65 | }, [address]); 66 | 67 | return ( 68 |
75 | {isConnected ? ( 76 |
77 | {profileData ? ( 78 | 79 | ) : ( 80 |

81 | {errorMessage ? errorMessage : "Fetching Farcaster profile..."} 82 |

83 | )} 84 |
85 | ) : ( 86 |
87 |

93 | Connect to Starknet to view your Farcaster profile 94 |

95 | 108 |
109 | )} 110 |
111 | ); 112 | } 113 | 114 | const ProfileCard = ({ profileData }: any) => { 115 | return ( 116 |
126 | {!profileData.pfp && 127 | !profileData.username && 128 | !profileData.bio && 129 | !profileData.display && ( 130 |
131 |

No Farcaster profile connected to this address yet.

132 |

133 | Connect Farcaster to Starknet{" "} 134 | here{" "} 135 | to view your Farcaster profile 136 |

137 |
138 | )} 139 | 140 | {profileData.pfp && ( 141 | Profile 148 | )} 149 |

{profileData.username}

150 |

{profileData.bio}

151 |

{profileData.display}

152 |
153 | ); 154 | }; 155 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/profile.tsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useState } from "react"; 2 | import { useAccount, useConnect, useDisconnect } from "@starknet-react/core"; 3 | import { useStarknetkitConnectModal } from "starknetkit"; 4 | import Image from "next/image"; 5 | import Link from "next/link"; 6 | 7 | export default function Home() { 8 | const [profileData, setProfileData] = useState(null); 9 | const [errorMessage, setErrorMessage] = useState(""); 10 | const { connect } = useConnect(); 11 | const { disconnect } = useDisconnect(); 12 | const { address, isConnected } = useAccount(); 13 | const { starknetkitConnectModal } = useStarknetkitConnectModal({ 14 | dappName: "Starknet Farcaster", 15 | }); 16 | 17 | const connectWallet = async () => { 18 | const { connector } = await starknetkitConnectModal(); 19 | await connect({ connector }); 20 | }; 21 | 22 | const disconnectWallet = async () => { 23 | await disconnect(); 24 | }; 25 | 26 | const getMapping = async (starknetAddress: string, retries: number) => { 27 | try { 28 | const response = await fetch( 29 | `/api/getMapping?starknetAddress=${starknetAddress}` 30 | ); 31 | 32 | if (!response.ok) { 33 | throw new Error("Network response was not ok"); 34 | } 35 | 36 | return response.json(); 37 | } catch (error) { 38 | // wait 1 second before retrying 39 | setTimeout(() => { 40 | if (retries < 3) { 41 | getMapping(starknetAddress, retries + 1); 42 | } else { 43 | setErrorMessage("Failed to get mapping"); 44 | } 45 | }, 1000); 46 | console.error("Failed to get mapping:", error); 47 | } 48 | }; 49 | 50 | useEffect(() => { 51 | if (address) { 52 | let retries = 0; 53 | getMapping(address, retries).then((res) => { 54 | if (res) { 55 | fetch(`/api/userData?fid=${res.fid}`) 56 | .then((response) => response.json()) 57 | .then((data) => { 58 | setProfileData(data); 59 | }) 60 | .catch((error) => { 61 | console.error("Error fetching user data:", error); 62 | }); 63 | } 64 | }); 65 | } 66 | }, [address]); 67 | 68 | return ( 69 |
76 | {isConnected ? ( 77 |
78 | {profileData ? ( 79 | 80 | ) : ( 81 |

82 | {errorMessage ? errorMessage : "Fetching Farcaster profile..."} 83 |

84 | )} 85 |
86 | ) : ( 87 |
88 |

94 | Connect to Starknet to view your Farcaster profile 95 |

96 | 109 |
110 | )} 111 |
112 | ); 113 | } 114 | 115 | const ProfileCard = ({ profileData }: any) => { 116 | return ( 117 |
127 | {!profileData.pfp && 128 | !profileData.username && 129 | !profileData.bio && 130 | !profileData.display && ( 131 |
132 |

No Farcaster profile connected to this address yet.

133 |

134 | Connect Farcaster to Starknet{" "} 135 | here{" "} 136 | to view your Farcaster profile 137 |

138 |
139 | )} 140 | 141 | {profileData.pfp && ( 142 | // eslint-disable-next-line @next/next/no-img-element 143 | Profile 150 | )} 151 |

{profileData.username}

152 |

{profileData.bio}

153 |

{profileData.display}

154 |
155 | ); 156 | }; 157 | -------------------------------------------------------------------------------- /frames/map-fid-starknet-address/src/components/connect-wallet.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | import { useEffect, useState } from "react"; 3 | import { 4 | useAccount, 5 | useConnect, 6 | useDisconnect, 7 | useSignTypedData, 8 | } from "@starknet-react/core"; 9 | import { useStarknetkitConnectModal } from "starknetkit"; 10 | import { 11 | shortString, 12 | typedData, 13 | Contract, 14 | RpcProvider, 15 | Signature, 16 | } from "starknet"; 17 | import { timeValid, getAbi } from "@/utils"; 18 | import Profile from "@/components/profile"; 19 | 20 | type FarcasterData = { 21 | fid: number; 22 | timestamp: number; 23 | }; 24 | 25 | function ConnectWallet({ fid, timestamp }: FarcasterData) { 26 | const [validSignature, setValidSignature] = useState(false); 27 | const { connect } = useConnect(); 28 | const { disconnect } = useDisconnect(); 29 | const { address, isConnected } = useAccount(); 30 | const { starknetkitConnectModal } = useStarknetkitConnectModal({ 31 | dappName: "Starknet Farcaster", 32 | }); 33 | 34 | const message: typedData.TypedData = { 35 | domain: { 36 | name: "Starknet Farcaster", 37 | version: "1", 38 | chainId: shortString.encodeShortString("SN_MAIN"), 39 | }, 40 | types: { 41 | StarkNetDomain: [ 42 | { name: "name", type: "felt" }, 43 | { name: "version", type: "felt" }, 44 | { name: "chainId", type: "felt" }, 45 | ], 46 | Verification: [ 47 | { name: "fid", type: "felt" }, 48 | { name: "timestamp", type: "felt" }, 49 | ], 50 | }, 51 | message: { 52 | fid, 53 | timestamp, 54 | }, 55 | primaryType: "Verification", 56 | }; 57 | const { data, signTypedData, isPending } = useSignTypedData(message); 58 | 59 | const connectWallet = async () => { 60 | const { connector } = await starknetkitConnectModal(); 61 | await connect({ connector }); 62 | }; 63 | 64 | const disconnectWallet = async () => { 65 | await disconnect(); 66 | }; 67 | 68 | const addMapping = async (fid: number, starknetAddress: string) => { 69 | try { 70 | const response = await fetch("/api/addMapping", { 71 | method: "POST", 72 | headers: { "Content-Type": "application/json" }, 73 | body: JSON.stringify({ fid, starknetAddress }), 74 | }); 75 | 76 | if (!response.ok) { 77 | throw new Error("Network response was not ok"); 78 | } 79 | 80 | return response.json(); 81 | } catch (error) { 82 | console.error("Failed to add mapping:", error); 83 | } 84 | }; 85 | 86 | const verifySignature = async ( 87 | contractAddress: string, 88 | signature: Signature 89 | ) => { 90 | const provider = new RpcProvider({ 91 | nodeUrl: "https://free-rpc.nethermind.io/mainnet-juno/", 92 | }); 93 | 94 | try { 95 | const abi = await getAbi(provider, contractAddress); 96 | 97 | const contract = new Contract(abi, contractAddress, provider); 98 | const msgHash = typedData.getMessageHash(message, contractAddress); 99 | 100 | await contract.isValidSignature(msgHash, signature); 101 | setValidSignature(true); 102 | // Store the result in a database 103 | addMapping(fid, contractAddress) 104 | .then(() => { 105 | console.log("Mapping added"); 106 | window.alert( 107 | `Successfully verified ownership of address: ${address}` 108 | ); 109 | }) 110 | .catch((err) => console.error("Error adding mapping:", err)); 111 | } catch (error) { 112 | console.error(error); 113 | } 114 | }; 115 | 116 | useEffect(() => { 117 | if (data && address) { 118 | verifySignature(address!, data); 119 | } 120 | }, [data]); 121 | 122 | return ( 123 |
131 | {/* {address &&

Address: {address}

} */} 132 | 133 | {!isConnected ? ( 134 | 147 | ) : ( 148 |
149 | {validSignature ? ( 150 | 151 | ) : ( 152 | 171 | )} 172 |
173 | {/* */} 186 |
187 | )} 188 |
189 | ); 190 | } 191 | 192 | export default ConnectWallet; 193 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/components/connect-wallet.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | import { useEffect, useState } from "react"; 3 | import { 4 | useAccount, 5 | useConnect, 6 | useDisconnect, 7 | useSignTypedData, 8 | } from "@starknet-react/core"; 9 | import { useStarknetkitConnectModal } from "starknetkit"; 10 | import { 11 | shortString, 12 | typedData, 13 | Contract, 14 | RpcProvider, 15 | num, 16 | Signature, 17 | } from "starknet"; 18 | import { timeValid, getAbi } from "@/utils/utils"; 19 | import Profile from "@/components/profile"; 20 | import { abi, contractAddress } from "../utils/constants"; 21 | import { nanoid } from "nanoid"; 22 | import { generateStory } from "./generateStory"; 23 | import { toast } from "react-toastify"; 24 | 25 | type FarcasterData = { 26 | fid: number; 27 | timestamp: number; 28 | }; 29 | 30 | function ConnectWallet({ fid, timestamp }: FarcasterData) { 31 | const [validSignature, setValidSignature] = useState(false); 32 | const { connect } = useConnect(); 33 | const { disconnect } = useDisconnect(); 34 | const { address, isConnected } = useAccount(); 35 | const [isMinting, setIsMinting] = useState(false); 36 | 37 | const { starknetkitConnectModal } = useStarknetkitConnectModal({ 38 | dappName: "Starknet Farcaster", 39 | }); 40 | 41 | const message: typedData.TypedData = { 42 | domain: { 43 | name: "Starknet Farcaster", 44 | version: "1", 45 | chainId: shortString.encodeShortString("SN_MAIN"), 46 | }, 47 | types: { 48 | StarkNetDomain: [ 49 | { name: "name", type: "felt" }, 50 | { name: "version", type: "felt" }, 51 | { name: "chainId", type: "felt" }, 52 | ], 53 | Verification: [ 54 | { name: "fid", type: "felt" }, 55 | { name: "timestamp", type: "felt" }, 56 | ], 57 | }, 58 | message: { 59 | fid, 60 | timestamp, 61 | }, 62 | primaryType: "Verification", 63 | }; 64 | const { data, signTypedData, isPending } = useSignTypedData(message); 65 | 66 | const connectWallet = async () => { 67 | const { connector } = await starknetkitConnectModal(); 68 | await connect({ connector }); 69 | }; 70 | 71 | const disconnectWallet = async () => { 72 | await disconnect(); 73 | }; 74 | 75 | const { account, status } = useAccount(); 76 | const contract = new Contract(abi, contractAddress); 77 | const provider = new RpcProvider({ 78 | nodeUrl: "https://starknet-mainnet.public.blastapi.io/rpc/v0_6", 79 | }); 80 | 81 | const getRandomInt = (min: number, max: number): number => 82 | Math.floor(Math.random() * (max - min)) + min; 83 | 84 | const mintFunction = async () => { 85 | console.log("Minting"); 86 | 87 | setIsMinting(true); 88 | 89 | const fetchingABI = await getAbi(provider, contractAddress); 90 | const contract = new Contract(abi, contractAddress, account); 91 | 92 | const name = await contract.name(); 93 | console.log("Name:", name); 94 | 95 | const demoURL = "http://tinyurl.com/yc4ajenr"; 96 | 97 | const tokenURI = num.hexToDecimalString( 98 | shortString.encodeShortString(demoURL) 99 | ); 100 | 101 | const storyLine = (await generateStory({ 102 | farcasterId: fid.toString(), 103 | })) as string; 104 | 105 | console.log("Storyline:", storyLine); 106 | 107 | const feltStoryLine = string_to_feltArray(storyLine); 108 | // convert feltStoryline to array 109 | 110 | const feltStoryLineArray = feltStoryLine.split(",").map(Number); 111 | 112 | const tx = await contract.safeMint( 113 | address, // recipient 114 | getRandomInt(999, 99999), // token id 115 | feltStoryLineArray, // data in felt 116 | tokenURI // token URI in felt 117 | ); 118 | 119 | if (tx) { 120 | toast("Minted successfully, here is the transaction", { 121 | onClick: () => { 122 | window.location.href = `https://starkscan.co/tx/${tx.transaction_hash}`; 123 | }, 124 | }); 125 | setIsMinting(false); 126 | } 127 | }; 128 | 129 | const string_to_feltArray = (str: string) => { 130 | str = str 131 | .split("") 132 | .reduce((acc, char) => acc + char.charCodeAt(0) + ",", "") 133 | .slice(0, -1); 134 | 135 | return str; 136 | }; 137 | 138 | const addMapping = async (fid: number, starknetAddress: string) => { 139 | try { 140 | const response = await fetch("/api/addMapping", { 141 | method: "POST", 142 | headers: { "Content-Type": "application/json" }, 143 | body: JSON.stringify({ fid, starknetAddress }), 144 | }); 145 | 146 | if (!response.ok) { 147 | throw new Error("Network response was not ok"); 148 | } 149 | 150 | return response.json(); 151 | } catch (error) { 152 | console.error("Failed to add mapping:", error); 153 | } 154 | }; 155 | 156 | const verifySignature = async ( 157 | contractAddress: string, 158 | signature: Signature 159 | ) => { 160 | const provider = new RpcProvider({ 161 | nodeUrl: "https://starknet-testnet.public.blastapi.io/rpc/v0_6", 162 | }); 163 | 164 | try { 165 | const abi = await getAbi(provider, contractAddress); 166 | 167 | const contract = new Contract(abi, contractAddress, provider); 168 | const msgHash = typedData.getMessageHash(message, contractAddress); 169 | 170 | await contract.isValidSignature(msgHash, signature); 171 | setValidSignature(true); 172 | // Store the result in a database 173 | addMapping(fid, contractAddress) 174 | .then(() => { 175 | console.log("Mapping added"); 176 | window.alert( 177 | `Successfully verified ownership of address: ${address}` 178 | ); 179 | }) 180 | .catch((err) => console.error("Error adding mapping:", err)); 181 | } catch (error) { 182 | console.error(error); 183 | } 184 | }; 185 | 186 | useEffect(() => { 187 | if (data && address) { 188 | verifySignature(address!, data); 189 | } 190 | }, [data]); 191 | 192 | useEffect(() => {}, []); 193 | 194 | return ( 195 |
203 | {/* {address &&

Address: {address}

} */} 204 | 205 | {!isConnected ? ( 206 | 209 | ) : ( 210 |
211 | 224 | 232 |
233 | )} 234 |
235 | ); 236 | } 237 | 238 | export default ConnectWallet; 239 | -------------------------------------------------------------------------------- /frames/ai-story-teller/src/utils/constants.ts: -------------------------------------------------------------------------------- 1 | export const abi = [ 2 | { 3 | type: "struct", 4 | name: "core::integer::u256", 5 | members: [ 6 | { name: "low", type: "core::integer::u128" }, 7 | { name: "high", type: "core::integer::u128" }, 8 | ], 9 | }, 10 | { 11 | type: "struct", 12 | name: "core::array::Span::", 13 | members: [ 14 | { name: "snapshot", type: "@core::array::Array::" }, 15 | ], 16 | }, 17 | { 18 | type: "function", 19 | name: "safe_mint", 20 | inputs: [ 21 | { 22 | name: "recipient", 23 | type: "core::starknet::contract_address::ContractAddress", 24 | }, 25 | { name: "token_id", type: "core::integer::u256" }, 26 | { name: "data", type: "core::array::Span::" }, 27 | { name: "token_uri", type: "core::felt252" }, 28 | ], 29 | outputs: [], 30 | state_mutability: "external", 31 | }, 32 | { 33 | type: "function", 34 | name: "safeMint", 35 | inputs: [ 36 | { 37 | name: "recipient", 38 | type: "core::starknet::contract_address::ContractAddress", 39 | }, 40 | { name: "tokenId", type: "core::integer::u256" }, 41 | { name: "data", type: "core::array::Span::" }, 42 | { name: "tokenURI", type: "core::felt252" }, 43 | ], 44 | outputs: [], 45 | state_mutability: "external", 46 | }, 47 | { 48 | type: "impl", 49 | name: "ERC721MetadataImpl", 50 | interface_name: "openzeppelin::token::erc721::interface::IERC721Metadata", 51 | }, 52 | { 53 | type: "interface", 54 | name: "openzeppelin::token::erc721::interface::IERC721Metadata", 55 | items: [ 56 | { 57 | type: "function", 58 | name: "name", 59 | inputs: [], 60 | outputs: [{ type: "core::felt252" }], 61 | state_mutability: "view", 62 | }, 63 | { 64 | type: "function", 65 | name: "symbol", 66 | inputs: [], 67 | outputs: [{ type: "core::felt252" }], 68 | state_mutability: "view", 69 | }, 70 | { 71 | type: "function", 72 | name: "token_uri", 73 | inputs: [{ name: "token_id", type: "core::integer::u256" }], 74 | outputs: [{ type: "core::felt252" }], 75 | state_mutability: "view", 76 | }, 77 | ], 78 | }, 79 | { 80 | type: "impl", 81 | name: "ERC721MetadataCamelOnly", 82 | interface_name: 83 | "openzeppelin::token::erc721::interface::IERC721MetadataCamelOnly", 84 | }, 85 | { 86 | type: "interface", 87 | name: "openzeppelin::token::erc721::interface::IERC721MetadataCamelOnly", 88 | items: [ 89 | { 90 | type: "function", 91 | name: "tokenURI", 92 | inputs: [{ name: "tokenId", type: "core::integer::u256" }], 93 | outputs: [{ type: "core::felt252" }], 94 | state_mutability: "view", 95 | }, 96 | ], 97 | }, 98 | { 99 | type: "impl", 100 | name: "ERC721Impl", 101 | interface_name: "openzeppelin::token::erc721::interface::IERC721", 102 | }, 103 | { 104 | type: "enum", 105 | name: "core::bool", 106 | variants: [ 107 | { name: "False", type: "()" }, 108 | { name: "True", type: "()" }, 109 | ], 110 | }, 111 | { 112 | type: "interface", 113 | name: "openzeppelin::token::erc721::interface::IERC721", 114 | items: [ 115 | { 116 | type: "function", 117 | name: "balance_of", 118 | inputs: [ 119 | { 120 | name: "account", 121 | type: "core::starknet::contract_address::ContractAddress", 122 | }, 123 | ], 124 | outputs: [{ type: "core::integer::u256" }], 125 | state_mutability: "view", 126 | }, 127 | { 128 | type: "function", 129 | name: "owner_of", 130 | inputs: [{ name: "token_id", type: "core::integer::u256" }], 131 | outputs: [ 132 | { type: "core::starknet::contract_address::ContractAddress" }, 133 | ], 134 | state_mutability: "view", 135 | }, 136 | { 137 | type: "function", 138 | name: "safe_transfer_from", 139 | inputs: [ 140 | { 141 | name: "from", 142 | type: "core::starknet::contract_address::ContractAddress", 143 | }, 144 | { 145 | name: "to", 146 | type: "core::starknet::contract_address::ContractAddress", 147 | }, 148 | { name: "token_id", type: "core::integer::u256" }, 149 | { name: "data", type: "core::array::Span::" }, 150 | ], 151 | outputs: [], 152 | state_mutability: "external", 153 | }, 154 | { 155 | type: "function", 156 | name: "transfer_from", 157 | inputs: [ 158 | { 159 | name: "from", 160 | type: "core::starknet::contract_address::ContractAddress", 161 | }, 162 | { 163 | name: "to", 164 | type: "core::starknet::contract_address::ContractAddress", 165 | }, 166 | { name: "token_id", type: "core::integer::u256" }, 167 | ], 168 | outputs: [], 169 | state_mutability: "external", 170 | }, 171 | { 172 | type: "function", 173 | name: "approve", 174 | inputs: [ 175 | { 176 | name: "to", 177 | type: "core::starknet::contract_address::ContractAddress", 178 | }, 179 | { name: "token_id", type: "core::integer::u256" }, 180 | ], 181 | outputs: [], 182 | state_mutability: "external", 183 | }, 184 | { 185 | type: "function", 186 | name: "set_approval_for_all", 187 | inputs: [ 188 | { 189 | name: "operator", 190 | type: "core::starknet::contract_address::ContractAddress", 191 | }, 192 | { name: "approved", type: "core::bool" }, 193 | ], 194 | outputs: [], 195 | state_mutability: "external", 196 | }, 197 | { 198 | type: "function", 199 | name: "get_approved", 200 | inputs: [{ name: "token_id", type: "core::integer::u256" }], 201 | outputs: [ 202 | { type: "core::starknet::contract_address::ContractAddress" }, 203 | ], 204 | state_mutability: "view", 205 | }, 206 | { 207 | type: "function", 208 | name: "is_approved_for_all", 209 | inputs: [ 210 | { 211 | name: "owner", 212 | type: "core::starknet::contract_address::ContractAddress", 213 | }, 214 | { 215 | name: "operator", 216 | type: "core::starknet::contract_address::ContractAddress", 217 | }, 218 | ], 219 | outputs: [{ type: "core::bool" }], 220 | state_mutability: "view", 221 | }, 222 | ], 223 | }, 224 | { 225 | type: "impl", 226 | name: "ERC721CamelOnly", 227 | interface_name: "openzeppelin::token::erc721::interface::IERC721CamelOnly", 228 | }, 229 | { 230 | type: "interface", 231 | name: "openzeppelin::token::erc721::interface::IERC721CamelOnly", 232 | items: [ 233 | { 234 | type: "function", 235 | name: "balanceOf", 236 | inputs: [ 237 | { 238 | name: "account", 239 | type: "core::starknet::contract_address::ContractAddress", 240 | }, 241 | ], 242 | outputs: [{ type: "core::integer::u256" }], 243 | state_mutability: "view", 244 | }, 245 | { 246 | type: "function", 247 | name: "ownerOf", 248 | inputs: [{ name: "tokenId", type: "core::integer::u256" }], 249 | outputs: [ 250 | { type: "core::starknet::contract_address::ContractAddress" }, 251 | ], 252 | state_mutability: "view", 253 | }, 254 | { 255 | type: "function", 256 | name: "safeTransferFrom", 257 | inputs: [ 258 | { 259 | name: "from", 260 | type: "core::starknet::contract_address::ContractAddress", 261 | }, 262 | { 263 | name: "to", 264 | type: "core::starknet::contract_address::ContractAddress", 265 | }, 266 | { name: "tokenId", type: "core::integer::u256" }, 267 | { name: "data", type: "core::array::Span::" }, 268 | ], 269 | outputs: [], 270 | state_mutability: "external", 271 | }, 272 | { 273 | type: "function", 274 | name: "transferFrom", 275 | inputs: [ 276 | { 277 | name: "from", 278 | type: "core::starknet::contract_address::ContractAddress", 279 | }, 280 | { 281 | name: "to", 282 | type: "core::starknet::contract_address::ContractAddress", 283 | }, 284 | { name: "tokenId", type: "core::integer::u256" }, 285 | ], 286 | outputs: [], 287 | state_mutability: "external", 288 | }, 289 | { 290 | type: "function", 291 | name: "setApprovalForAll", 292 | inputs: [ 293 | { 294 | name: "operator", 295 | type: "core::starknet::contract_address::ContractAddress", 296 | }, 297 | { name: "approved", type: "core::bool" }, 298 | ], 299 | outputs: [], 300 | state_mutability: "external", 301 | }, 302 | { 303 | type: "function", 304 | name: "getApproved", 305 | inputs: [{ name: "tokenId", type: "core::integer::u256" }], 306 | outputs: [ 307 | { type: "core::starknet::contract_address::ContractAddress" }, 308 | ], 309 | state_mutability: "view", 310 | }, 311 | { 312 | type: "function", 313 | name: "isApprovedForAll", 314 | inputs: [ 315 | { 316 | name: "owner", 317 | type: "core::starknet::contract_address::ContractAddress", 318 | }, 319 | { 320 | name: "operator", 321 | type: "core::starknet::contract_address::ContractAddress", 322 | }, 323 | ], 324 | outputs: [{ type: "core::bool" }], 325 | state_mutability: "view", 326 | }, 327 | ], 328 | }, 329 | { 330 | type: "impl", 331 | name: "SRC5Impl", 332 | interface_name: "openzeppelin::introspection::interface::ISRC5", 333 | }, 334 | { 335 | type: "interface", 336 | name: "openzeppelin::introspection::interface::ISRC5", 337 | items: [ 338 | { 339 | type: "function", 340 | name: "supports_interface", 341 | inputs: [{ name: "interface_id", type: "core::felt252" }], 342 | outputs: [{ type: "core::bool" }], 343 | state_mutability: "view", 344 | }, 345 | ], 346 | }, 347 | { 348 | type: "impl", 349 | name: "OwnableImpl", 350 | interface_name: "openzeppelin::access::ownable::interface::IOwnable", 351 | }, 352 | { 353 | type: "interface", 354 | name: "openzeppelin::access::ownable::interface::IOwnable", 355 | items: [ 356 | { 357 | type: "function", 358 | name: "owner", 359 | inputs: [], 360 | outputs: [ 361 | { type: "core::starknet::contract_address::ContractAddress" }, 362 | ], 363 | state_mutability: "view", 364 | }, 365 | { 366 | type: "function", 367 | name: "transfer_ownership", 368 | inputs: [ 369 | { 370 | name: "new_owner", 371 | type: "core::starknet::contract_address::ContractAddress", 372 | }, 373 | ], 374 | outputs: [], 375 | state_mutability: "external", 376 | }, 377 | { 378 | type: "function", 379 | name: "renounce_ownership", 380 | inputs: [], 381 | outputs: [], 382 | state_mutability: "external", 383 | }, 384 | ], 385 | }, 386 | { 387 | type: "impl", 388 | name: "OwnableCamelOnlyImpl", 389 | interface_name: 390 | "openzeppelin::access::ownable::interface::IOwnableCamelOnly", 391 | }, 392 | { 393 | type: "interface", 394 | name: "openzeppelin::access::ownable::interface::IOwnableCamelOnly", 395 | items: [ 396 | { 397 | type: "function", 398 | name: "transferOwnership", 399 | inputs: [ 400 | { 401 | name: "newOwner", 402 | type: "core::starknet::contract_address::ContractAddress", 403 | }, 404 | ], 405 | outputs: [], 406 | state_mutability: "external", 407 | }, 408 | { 409 | type: "function", 410 | name: "renounceOwnership", 411 | inputs: [], 412 | outputs: [], 413 | state_mutability: "external", 414 | }, 415 | ], 416 | }, 417 | { 418 | type: "constructor", 419 | name: "constructor", 420 | inputs: [ 421 | { 422 | name: "owner", 423 | type: "core::starknet::contract_address::ContractAddress", 424 | }, 425 | ], 426 | }, 427 | { 428 | type: "event", 429 | name: "openzeppelin::token::erc721::erc721::ERC721Component::Transfer", 430 | kind: "struct", 431 | members: [ 432 | { 433 | name: "from", 434 | type: "core::starknet::contract_address::ContractAddress", 435 | kind: "key", 436 | }, 437 | { 438 | name: "to", 439 | type: "core::starknet::contract_address::ContractAddress", 440 | kind: "key", 441 | }, 442 | { name: "token_id", type: "core::integer::u256", kind: "key" }, 443 | ], 444 | }, 445 | { 446 | type: "event", 447 | name: "openzeppelin::token::erc721::erc721::ERC721Component::Approval", 448 | kind: "struct", 449 | members: [ 450 | { 451 | name: "owner", 452 | type: "core::starknet::contract_address::ContractAddress", 453 | kind: "key", 454 | }, 455 | { 456 | name: "approved", 457 | type: "core::starknet::contract_address::ContractAddress", 458 | kind: "key", 459 | }, 460 | { name: "token_id", type: "core::integer::u256", kind: "key" }, 461 | ], 462 | }, 463 | { 464 | type: "event", 465 | name: "openzeppelin::token::erc721::erc721::ERC721Component::ApprovalForAll", 466 | kind: "struct", 467 | members: [ 468 | { 469 | name: "owner", 470 | type: "core::starknet::contract_address::ContractAddress", 471 | kind: "key", 472 | }, 473 | { 474 | name: "operator", 475 | type: "core::starknet::contract_address::ContractAddress", 476 | kind: "key", 477 | }, 478 | { name: "approved", type: "core::bool", kind: "data" }, 479 | ], 480 | }, 481 | { 482 | type: "event", 483 | name: "openzeppelin::token::erc721::erc721::ERC721Component::Event", 484 | kind: "enum", 485 | variants: [ 486 | { 487 | name: "Transfer", 488 | type: "openzeppelin::token::erc721::erc721::ERC721Component::Transfer", 489 | kind: "nested", 490 | }, 491 | { 492 | name: "Approval", 493 | type: "openzeppelin::token::erc721::erc721::ERC721Component::Approval", 494 | kind: "nested", 495 | }, 496 | { 497 | name: "ApprovalForAll", 498 | type: "openzeppelin::token::erc721::erc721::ERC721Component::ApprovalForAll", 499 | kind: "nested", 500 | }, 501 | ], 502 | }, 503 | { 504 | type: "event", 505 | name: "openzeppelin::introspection::src5::SRC5Component::Event", 506 | kind: "enum", 507 | variants: [], 508 | }, 509 | { 510 | type: "event", 511 | name: "openzeppelin::access::ownable::ownable::OwnableComponent::OwnershipTransferred", 512 | kind: "struct", 513 | members: [ 514 | { 515 | name: "previous_owner", 516 | type: "core::starknet::contract_address::ContractAddress", 517 | kind: "data", 518 | }, 519 | { 520 | name: "new_owner", 521 | type: "core::starknet::contract_address::ContractAddress", 522 | kind: "data", 523 | }, 524 | ], 525 | }, 526 | { 527 | type: "event", 528 | name: "openzeppelin::access::ownable::ownable::OwnableComponent::Event", 529 | kind: "enum", 530 | variants: [ 531 | { 532 | name: "OwnershipTransferred", 533 | type: "openzeppelin::access::ownable::ownable::OwnableComponent::OwnershipTransferred", 534 | kind: "nested", 535 | }, 536 | ], 537 | }, 538 | { 539 | type: "event", 540 | name: "frame_for_starknet::frame_for_starknet::Event", 541 | kind: "enum", 542 | variants: [ 543 | { 544 | name: "ERC721Event", 545 | type: "openzeppelin::token::erc721::erc721::ERC721Component::Event", 546 | kind: "flat", 547 | }, 548 | { 549 | name: "SRC5Event", 550 | type: "openzeppelin::introspection::src5::SRC5Component::Event", 551 | kind: "flat", 552 | }, 553 | { 554 | name: "OwnableEvent", 555 | type: "openzeppelin::access::ownable::ownable::OwnableComponent::Event", 556 | kind: "flat", 557 | }, 558 | ], 559 | }, 560 | ]; 561 | 562 | export const contractAddress = 563 | "0x05c7f6058eaa54e2407ee816b4d792852cad15c6845bb1c2a3b8986361085397"; 564 | -------------------------------------------------------------------------------- /frames/find-starknet-frens/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "warpcast-profile-indexer-starknet-frens", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "warpcast-profile-indexer-starknet-frens", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "axios": "^1.6.7", 13 | "cors": "^2.8.5", 14 | "dotenv": "^16.4.1", 15 | "express": "^4.18.2", 16 | "puppeteer": "^21.9.0" 17 | } 18 | }, 19 | "node_modules/@babel/code-frame": { 20 | "version": "7.23.5", 21 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", 22 | "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", 23 | "dependencies": { 24 | "@babel/highlight": "^7.23.4", 25 | "chalk": "^2.4.2" 26 | }, 27 | "engines": { 28 | "node": ">=6.9.0" 29 | } 30 | }, 31 | "node_modules/@babel/helper-validator-identifier": { 32 | "version": "7.22.20", 33 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", 34 | "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", 35 | "engines": { 36 | "node": ">=6.9.0" 37 | } 38 | }, 39 | "node_modules/@babel/highlight": { 40 | "version": "7.23.4", 41 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", 42 | "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", 43 | "dependencies": { 44 | "@babel/helper-validator-identifier": "^7.22.20", 45 | "chalk": "^2.4.2", 46 | "js-tokens": "^4.0.0" 47 | }, 48 | "engines": { 49 | "node": ">=6.9.0" 50 | } 51 | }, 52 | "node_modules/@puppeteer/browsers": { 53 | "version": "1.9.1", 54 | "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.1.tgz", 55 | "integrity": "sha512-PuvK6xZzGhKPvlx3fpfdM2kYY3P/hB1URtK8wA7XUJ6prn6pp22zvJHu48th0SGcHL9SutbPHrFuQgfXTFobWA==", 56 | "dependencies": { 57 | "debug": "4.3.4", 58 | "extract-zip": "2.0.1", 59 | "progress": "2.0.3", 60 | "proxy-agent": "6.3.1", 61 | "tar-fs": "3.0.4", 62 | "unbzip2-stream": "1.4.3", 63 | "yargs": "17.7.2" 64 | }, 65 | "bin": { 66 | "browsers": "lib/cjs/main-cli.js" 67 | }, 68 | "engines": { 69 | "node": ">=16.3.0" 70 | } 71 | }, 72 | "node_modules/@tootallnate/quickjs-emscripten": { 73 | "version": "0.23.0", 74 | "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", 75 | "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==" 76 | }, 77 | "node_modules/@types/node": { 78 | "version": "20.11.10", 79 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.10.tgz", 80 | "integrity": "sha512-rZEfe/hJSGYmdfX9tvcPMYeYPW2sNl50nsw4jZmRcaG0HIAb0WYEpsB05GOb53vjqpyE9GUhlDQ4jLSoB5q9kg==", 81 | "optional": true, 82 | "dependencies": { 83 | "undici-types": "~5.26.4" 84 | } 85 | }, 86 | "node_modules/@types/yauzl": { 87 | "version": "2.10.3", 88 | "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", 89 | "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", 90 | "optional": true, 91 | "dependencies": { 92 | "@types/node": "*" 93 | } 94 | }, 95 | "node_modules/accepts": { 96 | "version": "1.3.8", 97 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 98 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 99 | "dependencies": { 100 | "mime-types": "~2.1.34", 101 | "negotiator": "0.6.3" 102 | }, 103 | "engines": { 104 | "node": ">= 0.6" 105 | } 106 | }, 107 | "node_modules/agent-base": { 108 | "version": "7.1.0", 109 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", 110 | "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", 111 | "dependencies": { 112 | "debug": "^4.3.4" 113 | }, 114 | "engines": { 115 | "node": ">= 14" 116 | } 117 | }, 118 | "node_modules/ansi-regex": { 119 | "version": "5.0.1", 120 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 121 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 122 | "engines": { 123 | "node": ">=8" 124 | } 125 | }, 126 | "node_modules/ansi-styles": { 127 | "version": "3.2.1", 128 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 129 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 130 | "dependencies": { 131 | "color-convert": "^1.9.0" 132 | }, 133 | "engines": { 134 | "node": ">=4" 135 | } 136 | }, 137 | "node_modules/argparse": { 138 | "version": "2.0.1", 139 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 140 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" 141 | }, 142 | "node_modules/array-flatten": { 143 | "version": "1.1.1", 144 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 145 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 146 | }, 147 | "node_modules/ast-types": { 148 | "version": "0.13.4", 149 | "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", 150 | "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", 151 | "dependencies": { 152 | "tslib": "^2.0.1" 153 | }, 154 | "engines": { 155 | "node": ">=4" 156 | } 157 | }, 158 | "node_modules/asynckit": { 159 | "version": "0.4.0", 160 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 161 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 162 | }, 163 | "node_modules/axios": { 164 | "version": "1.6.7", 165 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", 166 | "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", 167 | "dependencies": { 168 | "follow-redirects": "^1.15.4", 169 | "form-data": "^4.0.0", 170 | "proxy-from-env": "^1.1.0" 171 | } 172 | }, 173 | "node_modules/b4a": { 174 | "version": "1.6.4", 175 | "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", 176 | "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==" 177 | }, 178 | "node_modules/base64-js": { 179 | "version": "1.5.1", 180 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 181 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 182 | "funding": [ 183 | { 184 | "type": "github", 185 | "url": "https://github.com/sponsors/feross" 186 | }, 187 | { 188 | "type": "patreon", 189 | "url": "https://www.patreon.com/feross" 190 | }, 191 | { 192 | "type": "consulting", 193 | "url": "https://feross.org/support" 194 | } 195 | ] 196 | }, 197 | "node_modules/basic-ftp": { 198 | "version": "5.0.4", 199 | "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.4.tgz", 200 | "integrity": "sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==", 201 | "engines": { 202 | "node": ">=10.0.0" 203 | } 204 | }, 205 | "node_modules/body-parser": { 206 | "version": "1.20.1", 207 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", 208 | "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", 209 | "dependencies": { 210 | "bytes": "3.1.2", 211 | "content-type": "~1.0.4", 212 | "debug": "2.6.9", 213 | "depd": "2.0.0", 214 | "destroy": "1.2.0", 215 | "http-errors": "2.0.0", 216 | "iconv-lite": "0.4.24", 217 | "on-finished": "2.4.1", 218 | "qs": "6.11.0", 219 | "raw-body": "2.5.1", 220 | "type-is": "~1.6.18", 221 | "unpipe": "1.0.0" 222 | }, 223 | "engines": { 224 | "node": ">= 0.8", 225 | "npm": "1.2.8000 || >= 1.4.16" 226 | } 227 | }, 228 | "node_modules/body-parser/node_modules/debug": { 229 | "version": "2.6.9", 230 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 231 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 232 | "dependencies": { 233 | "ms": "2.0.0" 234 | } 235 | }, 236 | "node_modules/body-parser/node_modules/ms": { 237 | "version": "2.0.0", 238 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 239 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 240 | }, 241 | "node_modules/buffer": { 242 | "version": "5.7.1", 243 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", 244 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", 245 | "funding": [ 246 | { 247 | "type": "github", 248 | "url": "https://github.com/sponsors/feross" 249 | }, 250 | { 251 | "type": "patreon", 252 | "url": "https://www.patreon.com/feross" 253 | }, 254 | { 255 | "type": "consulting", 256 | "url": "https://feross.org/support" 257 | } 258 | ], 259 | "dependencies": { 260 | "base64-js": "^1.3.1", 261 | "ieee754": "^1.1.13" 262 | } 263 | }, 264 | "node_modules/buffer-crc32": { 265 | "version": "0.2.13", 266 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 267 | "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", 268 | "engines": { 269 | "node": "*" 270 | } 271 | }, 272 | "node_modules/bytes": { 273 | "version": "3.1.2", 274 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 275 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 276 | "engines": { 277 | "node": ">= 0.8" 278 | } 279 | }, 280 | "node_modules/call-bind": { 281 | "version": "1.0.5", 282 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", 283 | "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", 284 | "dependencies": { 285 | "function-bind": "^1.1.2", 286 | "get-intrinsic": "^1.2.1", 287 | "set-function-length": "^1.1.1" 288 | }, 289 | "funding": { 290 | "url": "https://github.com/sponsors/ljharb" 291 | } 292 | }, 293 | "node_modules/callsites": { 294 | "version": "3.1.0", 295 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 296 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 297 | "engines": { 298 | "node": ">=6" 299 | } 300 | }, 301 | "node_modules/chalk": { 302 | "version": "2.4.2", 303 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 304 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 305 | "dependencies": { 306 | "ansi-styles": "^3.2.1", 307 | "escape-string-regexp": "^1.0.5", 308 | "supports-color": "^5.3.0" 309 | }, 310 | "engines": { 311 | "node": ">=4" 312 | } 313 | }, 314 | "node_modules/chromium-bidi": { 315 | "version": "0.5.4", 316 | "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.4.tgz", 317 | "integrity": "sha512-p9CdiHl0xNh4P7oVa44zXgJJw+pvnHXFDB+tVdo25xaPLgQDVf2kQO+TDxD2fp2Evqi7vs/vGRINMzl1qJrWiw==", 318 | "dependencies": { 319 | "mitt": "3.0.1", 320 | "urlpattern-polyfill": "9.0.0" 321 | }, 322 | "peerDependencies": { 323 | "devtools-protocol": "*" 324 | } 325 | }, 326 | "node_modules/cliui": { 327 | "version": "8.0.1", 328 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 329 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 330 | "dependencies": { 331 | "string-width": "^4.2.0", 332 | "strip-ansi": "^6.0.1", 333 | "wrap-ansi": "^7.0.0" 334 | }, 335 | "engines": { 336 | "node": ">=12" 337 | } 338 | }, 339 | "node_modules/color-convert": { 340 | "version": "1.9.3", 341 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 342 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 343 | "dependencies": { 344 | "color-name": "1.1.3" 345 | } 346 | }, 347 | "node_modules/color-name": { 348 | "version": "1.1.3", 349 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 350 | "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" 351 | }, 352 | "node_modules/combined-stream": { 353 | "version": "1.0.8", 354 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 355 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 356 | "dependencies": { 357 | "delayed-stream": "~1.0.0" 358 | }, 359 | "engines": { 360 | "node": ">= 0.8" 361 | } 362 | }, 363 | "node_modules/content-disposition": { 364 | "version": "0.5.4", 365 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 366 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 367 | "dependencies": { 368 | "safe-buffer": "5.2.1" 369 | }, 370 | "engines": { 371 | "node": ">= 0.6" 372 | } 373 | }, 374 | "node_modules/content-type": { 375 | "version": "1.0.5", 376 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 377 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 378 | "engines": { 379 | "node": ">= 0.6" 380 | } 381 | }, 382 | "node_modules/cookie": { 383 | "version": "0.5.0", 384 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", 385 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", 386 | "engines": { 387 | "node": ">= 0.6" 388 | } 389 | }, 390 | "node_modules/cookie-signature": { 391 | "version": "1.0.6", 392 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 393 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 394 | }, 395 | "node_modules/cors": { 396 | "version": "2.8.5", 397 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 398 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 399 | "dependencies": { 400 | "object-assign": "^4", 401 | "vary": "^1" 402 | }, 403 | "engines": { 404 | "node": ">= 0.10" 405 | } 406 | }, 407 | "node_modules/cosmiconfig": { 408 | "version": "9.0.0", 409 | "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz", 410 | "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==", 411 | "dependencies": { 412 | "env-paths": "^2.2.1", 413 | "import-fresh": "^3.3.0", 414 | "js-yaml": "^4.1.0", 415 | "parse-json": "^5.2.0" 416 | }, 417 | "engines": { 418 | "node": ">=14" 419 | }, 420 | "funding": { 421 | "url": "https://github.com/sponsors/d-fischer" 422 | }, 423 | "peerDependencies": { 424 | "typescript": ">=4.9.5" 425 | }, 426 | "peerDependenciesMeta": { 427 | "typescript": { 428 | "optional": true 429 | } 430 | } 431 | }, 432 | "node_modules/cross-fetch": { 433 | "version": "4.0.0", 434 | "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", 435 | "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", 436 | "dependencies": { 437 | "node-fetch": "^2.6.12" 438 | } 439 | }, 440 | "node_modules/data-uri-to-buffer": { 441 | "version": "6.0.1", 442 | "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz", 443 | "integrity": "sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg==", 444 | "engines": { 445 | "node": ">= 14" 446 | } 447 | }, 448 | "node_modules/debug": { 449 | "version": "4.3.4", 450 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 451 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 452 | "dependencies": { 453 | "ms": "2.1.2" 454 | }, 455 | "engines": { 456 | "node": ">=6.0" 457 | }, 458 | "peerDependenciesMeta": { 459 | "supports-color": { 460 | "optional": true 461 | } 462 | } 463 | }, 464 | "node_modules/define-data-property": { 465 | "version": "1.1.1", 466 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", 467 | "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", 468 | "dependencies": { 469 | "get-intrinsic": "^1.2.1", 470 | "gopd": "^1.0.1", 471 | "has-property-descriptors": "^1.0.0" 472 | }, 473 | "engines": { 474 | "node": ">= 0.4" 475 | } 476 | }, 477 | "node_modules/degenerator": { 478 | "version": "5.0.1", 479 | "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", 480 | "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", 481 | "dependencies": { 482 | "ast-types": "^0.13.4", 483 | "escodegen": "^2.1.0", 484 | "esprima": "^4.0.1" 485 | }, 486 | "engines": { 487 | "node": ">= 14" 488 | } 489 | }, 490 | "node_modules/delayed-stream": { 491 | "version": "1.0.0", 492 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 493 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 494 | "engines": { 495 | "node": ">=0.4.0" 496 | } 497 | }, 498 | "node_modules/depd": { 499 | "version": "2.0.0", 500 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 501 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 502 | "engines": { 503 | "node": ">= 0.8" 504 | } 505 | }, 506 | "node_modules/destroy": { 507 | "version": "1.2.0", 508 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 509 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 510 | "engines": { 511 | "node": ">= 0.8", 512 | "npm": "1.2.8000 || >= 1.4.16" 513 | } 514 | }, 515 | "node_modules/devtools-protocol": { 516 | "version": "0.0.1232444", 517 | "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1232444.tgz", 518 | "integrity": "sha512-pM27vqEfxSxRkTMnF+XCmxSEb6duO5R+t8A9DEEJgy4Wz2RVanje2mmj99B6A3zv2r/qGfYlOvYznUhuokizmg==" 519 | }, 520 | "node_modules/dotenv": { 521 | "version": "16.4.1", 522 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz", 523 | "integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==", 524 | "engines": { 525 | "node": ">=12" 526 | }, 527 | "funding": { 528 | "url": "https://github.com/motdotla/dotenv?sponsor=1" 529 | } 530 | }, 531 | "node_modules/ee-first": { 532 | "version": "1.1.1", 533 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 534 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 535 | }, 536 | "node_modules/emoji-regex": { 537 | "version": "8.0.0", 538 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 539 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 540 | }, 541 | "node_modules/encodeurl": { 542 | "version": "1.0.2", 543 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 544 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 545 | "engines": { 546 | "node": ">= 0.8" 547 | } 548 | }, 549 | "node_modules/end-of-stream": { 550 | "version": "1.4.4", 551 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 552 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 553 | "dependencies": { 554 | "once": "^1.4.0" 555 | } 556 | }, 557 | "node_modules/env-paths": { 558 | "version": "2.2.1", 559 | "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", 560 | "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", 561 | "engines": { 562 | "node": ">=6" 563 | } 564 | }, 565 | "node_modules/error-ex": { 566 | "version": "1.3.2", 567 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", 568 | "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", 569 | "dependencies": { 570 | "is-arrayish": "^0.2.1" 571 | } 572 | }, 573 | "node_modules/escalade": { 574 | "version": "3.1.1", 575 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 576 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 577 | "engines": { 578 | "node": ">=6" 579 | } 580 | }, 581 | "node_modules/escape-html": { 582 | "version": "1.0.3", 583 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 584 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 585 | }, 586 | "node_modules/escape-string-regexp": { 587 | "version": "1.0.5", 588 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 589 | "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", 590 | "engines": { 591 | "node": ">=0.8.0" 592 | } 593 | }, 594 | "node_modules/escodegen": { 595 | "version": "2.1.0", 596 | "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", 597 | "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", 598 | "dependencies": { 599 | "esprima": "^4.0.1", 600 | "estraverse": "^5.2.0", 601 | "esutils": "^2.0.2" 602 | }, 603 | "bin": { 604 | "escodegen": "bin/escodegen.js", 605 | "esgenerate": "bin/esgenerate.js" 606 | }, 607 | "engines": { 608 | "node": ">=6.0" 609 | }, 610 | "optionalDependencies": { 611 | "source-map": "~0.6.1" 612 | } 613 | }, 614 | "node_modules/esprima": { 615 | "version": "4.0.1", 616 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 617 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 618 | "bin": { 619 | "esparse": "bin/esparse.js", 620 | "esvalidate": "bin/esvalidate.js" 621 | }, 622 | "engines": { 623 | "node": ">=4" 624 | } 625 | }, 626 | "node_modules/estraverse": { 627 | "version": "5.3.0", 628 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 629 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 630 | "engines": { 631 | "node": ">=4.0" 632 | } 633 | }, 634 | "node_modules/esutils": { 635 | "version": "2.0.3", 636 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 637 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 638 | "engines": { 639 | "node": ">=0.10.0" 640 | } 641 | }, 642 | "node_modules/etag": { 643 | "version": "1.8.1", 644 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 645 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 646 | "engines": { 647 | "node": ">= 0.6" 648 | } 649 | }, 650 | "node_modules/express": { 651 | "version": "4.18.2", 652 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", 653 | "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", 654 | "dependencies": { 655 | "accepts": "~1.3.8", 656 | "array-flatten": "1.1.1", 657 | "body-parser": "1.20.1", 658 | "content-disposition": "0.5.4", 659 | "content-type": "~1.0.4", 660 | "cookie": "0.5.0", 661 | "cookie-signature": "1.0.6", 662 | "debug": "2.6.9", 663 | "depd": "2.0.0", 664 | "encodeurl": "~1.0.2", 665 | "escape-html": "~1.0.3", 666 | "etag": "~1.8.1", 667 | "finalhandler": "1.2.0", 668 | "fresh": "0.5.2", 669 | "http-errors": "2.0.0", 670 | "merge-descriptors": "1.0.1", 671 | "methods": "~1.1.2", 672 | "on-finished": "2.4.1", 673 | "parseurl": "~1.3.3", 674 | "path-to-regexp": "0.1.7", 675 | "proxy-addr": "~2.0.7", 676 | "qs": "6.11.0", 677 | "range-parser": "~1.2.1", 678 | "safe-buffer": "5.2.1", 679 | "send": "0.18.0", 680 | "serve-static": "1.15.0", 681 | "setprototypeof": "1.2.0", 682 | "statuses": "2.0.1", 683 | "type-is": "~1.6.18", 684 | "utils-merge": "1.0.1", 685 | "vary": "~1.1.2" 686 | }, 687 | "engines": { 688 | "node": ">= 0.10.0" 689 | } 690 | }, 691 | "node_modules/express/node_modules/debug": { 692 | "version": "2.6.9", 693 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 694 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 695 | "dependencies": { 696 | "ms": "2.0.0" 697 | } 698 | }, 699 | "node_modules/express/node_modules/ms": { 700 | "version": "2.0.0", 701 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 702 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 703 | }, 704 | "node_modules/extract-zip": { 705 | "version": "2.0.1", 706 | "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", 707 | "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", 708 | "dependencies": { 709 | "debug": "^4.1.1", 710 | "get-stream": "^5.1.0", 711 | "yauzl": "^2.10.0" 712 | }, 713 | "bin": { 714 | "extract-zip": "cli.js" 715 | }, 716 | "engines": { 717 | "node": ">= 10.17.0" 718 | }, 719 | "optionalDependencies": { 720 | "@types/yauzl": "^2.9.1" 721 | } 722 | }, 723 | "node_modules/fast-fifo": { 724 | "version": "1.3.2", 725 | "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", 726 | "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==" 727 | }, 728 | "node_modules/fd-slicer": { 729 | "version": "1.1.0", 730 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", 731 | "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", 732 | "dependencies": { 733 | "pend": "~1.2.0" 734 | } 735 | }, 736 | "node_modules/finalhandler": { 737 | "version": "1.2.0", 738 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 739 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 740 | "dependencies": { 741 | "debug": "2.6.9", 742 | "encodeurl": "~1.0.2", 743 | "escape-html": "~1.0.3", 744 | "on-finished": "2.4.1", 745 | "parseurl": "~1.3.3", 746 | "statuses": "2.0.1", 747 | "unpipe": "~1.0.0" 748 | }, 749 | "engines": { 750 | "node": ">= 0.8" 751 | } 752 | }, 753 | "node_modules/finalhandler/node_modules/debug": { 754 | "version": "2.6.9", 755 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 756 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 757 | "dependencies": { 758 | "ms": "2.0.0" 759 | } 760 | }, 761 | "node_modules/finalhandler/node_modules/ms": { 762 | "version": "2.0.0", 763 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 764 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 765 | }, 766 | "node_modules/follow-redirects": { 767 | "version": "1.15.5", 768 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", 769 | "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", 770 | "funding": [ 771 | { 772 | "type": "individual", 773 | "url": "https://github.com/sponsors/RubenVerborgh" 774 | } 775 | ], 776 | "engines": { 777 | "node": ">=4.0" 778 | }, 779 | "peerDependenciesMeta": { 780 | "debug": { 781 | "optional": true 782 | } 783 | } 784 | }, 785 | "node_modules/form-data": { 786 | "version": "4.0.0", 787 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", 788 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", 789 | "dependencies": { 790 | "asynckit": "^0.4.0", 791 | "combined-stream": "^1.0.8", 792 | "mime-types": "^2.1.12" 793 | }, 794 | "engines": { 795 | "node": ">= 6" 796 | } 797 | }, 798 | "node_modules/forwarded": { 799 | "version": "0.2.0", 800 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 801 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 802 | "engines": { 803 | "node": ">= 0.6" 804 | } 805 | }, 806 | "node_modules/fresh": { 807 | "version": "0.5.2", 808 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 809 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 810 | "engines": { 811 | "node": ">= 0.6" 812 | } 813 | }, 814 | "node_modules/fs-extra": { 815 | "version": "8.1.0", 816 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", 817 | "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", 818 | "dependencies": { 819 | "graceful-fs": "^4.2.0", 820 | "jsonfile": "^4.0.0", 821 | "universalify": "^0.1.0" 822 | }, 823 | "engines": { 824 | "node": ">=6 <7 || >=8" 825 | } 826 | }, 827 | "node_modules/function-bind": { 828 | "version": "1.1.2", 829 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 830 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 831 | "funding": { 832 | "url": "https://github.com/sponsors/ljharb" 833 | } 834 | }, 835 | "node_modules/get-caller-file": { 836 | "version": "2.0.5", 837 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 838 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 839 | "engines": { 840 | "node": "6.* || 8.* || >= 10.*" 841 | } 842 | }, 843 | "node_modules/get-intrinsic": { 844 | "version": "1.2.2", 845 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", 846 | "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", 847 | "dependencies": { 848 | "function-bind": "^1.1.2", 849 | "has-proto": "^1.0.1", 850 | "has-symbols": "^1.0.3", 851 | "hasown": "^2.0.0" 852 | }, 853 | "funding": { 854 | "url": "https://github.com/sponsors/ljharb" 855 | } 856 | }, 857 | "node_modules/get-stream": { 858 | "version": "5.2.0", 859 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", 860 | "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", 861 | "dependencies": { 862 | "pump": "^3.0.0" 863 | }, 864 | "engines": { 865 | "node": ">=8" 866 | }, 867 | "funding": { 868 | "url": "https://github.com/sponsors/sindresorhus" 869 | } 870 | }, 871 | "node_modules/get-uri": { 872 | "version": "6.0.2", 873 | "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz", 874 | "integrity": "sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw==", 875 | "dependencies": { 876 | "basic-ftp": "^5.0.2", 877 | "data-uri-to-buffer": "^6.0.0", 878 | "debug": "^4.3.4", 879 | "fs-extra": "^8.1.0" 880 | }, 881 | "engines": { 882 | "node": ">= 14" 883 | } 884 | }, 885 | "node_modules/gopd": { 886 | "version": "1.0.1", 887 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 888 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 889 | "dependencies": { 890 | "get-intrinsic": "^1.1.3" 891 | }, 892 | "funding": { 893 | "url": "https://github.com/sponsors/ljharb" 894 | } 895 | }, 896 | "node_modules/graceful-fs": { 897 | "version": "4.2.11", 898 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 899 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 900 | }, 901 | "node_modules/has-flag": { 902 | "version": "3.0.0", 903 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 904 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 905 | "engines": { 906 | "node": ">=4" 907 | } 908 | }, 909 | "node_modules/has-property-descriptors": { 910 | "version": "1.0.1", 911 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", 912 | "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", 913 | "dependencies": { 914 | "get-intrinsic": "^1.2.2" 915 | }, 916 | "funding": { 917 | "url": "https://github.com/sponsors/ljharb" 918 | } 919 | }, 920 | "node_modules/has-proto": { 921 | "version": "1.0.1", 922 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", 923 | "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", 924 | "engines": { 925 | "node": ">= 0.4" 926 | }, 927 | "funding": { 928 | "url": "https://github.com/sponsors/ljharb" 929 | } 930 | }, 931 | "node_modules/has-symbols": { 932 | "version": "1.0.3", 933 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 934 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 935 | "engines": { 936 | "node": ">= 0.4" 937 | }, 938 | "funding": { 939 | "url": "https://github.com/sponsors/ljharb" 940 | } 941 | }, 942 | "node_modules/hasown": { 943 | "version": "2.0.0", 944 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", 945 | "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", 946 | "dependencies": { 947 | "function-bind": "^1.1.2" 948 | }, 949 | "engines": { 950 | "node": ">= 0.4" 951 | } 952 | }, 953 | "node_modules/http-errors": { 954 | "version": "2.0.0", 955 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 956 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 957 | "dependencies": { 958 | "depd": "2.0.0", 959 | "inherits": "2.0.4", 960 | "setprototypeof": "1.2.0", 961 | "statuses": "2.0.1", 962 | "toidentifier": "1.0.1" 963 | }, 964 | "engines": { 965 | "node": ">= 0.8" 966 | } 967 | }, 968 | "node_modules/http-proxy-agent": { 969 | "version": "7.0.0", 970 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", 971 | "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", 972 | "dependencies": { 973 | "agent-base": "^7.1.0", 974 | "debug": "^4.3.4" 975 | }, 976 | "engines": { 977 | "node": ">= 14" 978 | } 979 | }, 980 | "node_modules/https-proxy-agent": { 981 | "version": "7.0.2", 982 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", 983 | "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", 984 | "dependencies": { 985 | "agent-base": "^7.0.2", 986 | "debug": "4" 987 | }, 988 | "engines": { 989 | "node": ">= 14" 990 | } 991 | }, 992 | "node_modules/iconv-lite": { 993 | "version": "0.4.24", 994 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 995 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 996 | "dependencies": { 997 | "safer-buffer": ">= 2.1.2 < 3" 998 | }, 999 | "engines": { 1000 | "node": ">=0.10.0" 1001 | } 1002 | }, 1003 | "node_modules/ieee754": { 1004 | "version": "1.2.1", 1005 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 1006 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 1007 | "funding": [ 1008 | { 1009 | "type": "github", 1010 | "url": "https://github.com/sponsors/feross" 1011 | }, 1012 | { 1013 | "type": "patreon", 1014 | "url": "https://www.patreon.com/feross" 1015 | }, 1016 | { 1017 | "type": "consulting", 1018 | "url": "https://feross.org/support" 1019 | } 1020 | ] 1021 | }, 1022 | "node_modules/import-fresh": { 1023 | "version": "3.3.0", 1024 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1025 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1026 | "dependencies": { 1027 | "parent-module": "^1.0.0", 1028 | "resolve-from": "^4.0.0" 1029 | }, 1030 | "engines": { 1031 | "node": ">=6" 1032 | }, 1033 | "funding": { 1034 | "url": "https://github.com/sponsors/sindresorhus" 1035 | } 1036 | }, 1037 | "node_modules/inherits": { 1038 | "version": "2.0.4", 1039 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1040 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1041 | }, 1042 | "node_modules/ip": { 1043 | "version": "1.1.8", 1044 | "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", 1045 | "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" 1046 | }, 1047 | "node_modules/ipaddr.js": { 1048 | "version": "1.9.1", 1049 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1050 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 1051 | "engines": { 1052 | "node": ">= 0.10" 1053 | } 1054 | }, 1055 | "node_modules/is-arrayish": { 1056 | "version": "0.2.1", 1057 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1058 | "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" 1059 | }, 1060 | "node_modules/is-fullwidth-code-point": { 1061 | "version": "3.0.0", 1062 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1063 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1064 | "engines": { 1065 | "node": ">=8" 1066 | } 1067 | }, 1068 | "node_modules/js-tokens": { 1069 | "version": "4.0.0", 1070 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1071 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 1072 | }, 1073 | "node_modules/js-yaml": { 1074 | "version": "4.1.0", 1075 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1076 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1077 | "dependencies": { 1078 | "argparse": "^2.0.1" 1079 | }, 1080 | "bin": { 1081 | "js-yaml": "bin/js-yaml.js" 1082 | } 1083 | }, 1084 | "node_modules/json-parse-even-better-errors": { 1085 | "version": "2.3.1", 1086 | "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", 1087 | "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" 1088 | }, 1089 | "node_modules/jsonfile": { 1090 | "version": "4.0.0", 1091 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", 1092 | "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", 1093 | "optionalDependencies": { 1094 | "graceful-fs": "^4.1.6" 1095 | } 1096 | }, 1097 | "node_modules/lines-and-columns": { 1098 | "version": "1.2.4", 1099 | "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", 1100 | "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" 1101 | }, 1102 | "node_modules/lru-cache": { 1103 | "version": "7.18.3", 1104 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", 1105 | "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", 1106 | "engines": { 1107 | "node": ">=12" 1108 | } 1109 | }, 1110 | "node_modules/media-typer": { 1111 | "version": "0.3.0", 1112 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1113 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 1114 | "engines": { 1115 | "node": ">= 0.6" 1116 | } 1117 | }, 1118 | "node_modules/merge-descriptors": { 1119 | "version": "1.0.1", 1120 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1121 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" 1122 | }, 1123 | "node_modules/methods": { 1124 | "version": "1.1.2", 1125 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1126 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1127 | "engines": { 1128 | "node": ">= 0.6" 1129 | } 1130 | }, 1131 | "node_modules/mime": { 1132 | "version": "1.6.0", 1133 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1134 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1135 | "bin": { 1136 | "mime": "cli.js" 1137 | }, 1138 | "engines": { 1139 | "node": ">=4" 1140 | } 1141 | }, 1142 | "node_modules/mime-db": { 1143 | "version": "1.52.0", 1144 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1145 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1146 | "engines": { 1147 | "node": ">= 0.6" 1148 | } 1149 | }, 1150 | "node_modules/mime-types": { 1151 | "version": "2.1.35", 1152 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1153 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1154 | "dependencies": { 1155 | "mime-db": "1.52.0" 1156 | }, 1157 | "engines": { 1158 | "node": ">= 0.6" 1159 | } 1160 | }, 1161 | "node_modules/mitt": { 1162 | "version": "3.0.1", 1163 | "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", 1164 | "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==" 1165 | }, 1166 | "node_modules/mkdirp-classic": { 1167 | "version": "0.5.3", 1168 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", 1169 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==" 1170 | }, 1171 | "node_modules/ms": { 1172 | "version": "2.1.2", 1173 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1174 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1175 | }, 1176 | "node_modules/negotiator": { 1177 | "version": "0.6.3", 1178 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1179 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1180 | "engines": { 1181 | "node": ">= 0.6" 1182 | } 1183 | }, 1184 | "node_modules/netmask": { 1185 | "version": "2.0.2", 1186 | "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", 1187 | "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", 1188 | "engines": { 1189 | "node": ">= 0.4.0" 1190 | } 1191 | }, 1192 | "node_modules/node-fetch": { 1193 | "version": "2.7.0", 1194 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", 1195 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", 1196 | "dependencies": { 1197 | "whatwg-url": "^5.0.0" 1198 | }, 1199 | "engines": { 1200 | "node": "4.x || >=6.0.0" 1201 | }, 1202 | "peerDependencies": { 1203 | "encoding": "^0.1.0" 1204 | }, 1205 | "peerDependenciesMeta": { 1206 | "encoding": { 1207 | "optional": true 1208 | } 1209 | } 1210 | }, 1211 | "node_modules/object-assign": { 1212 | "version": "4.1.1", 1213 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1214 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1215 | "engines": { 1216 | "node": ">=0.10.0" 1217 | } 1218 | }, 1219 | "node_modules/object-inspect": { 1220 | "version": "1.13.1", 1221 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 1222 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 1223 | "funding": { 1224 | "url": "https://github.com/sponsors/ljharb" 1225 | } 1226 | }, 1227 | "node_modules/on-finished": { 1228 | "version": "2.4.1", 1229 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1230 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1231 | "dependencies": { 1232 | "ee-first": "1.1.1" 1233 | }, 1234 | "engines": { 1235 | "node": ">= 0.8" 1236 | } 1237 | }, 1238 | "node_modules/once": { 1239 | "version": "1.4.0", 1240 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1241 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1242 | "dependencies": { 1243 | "wrappy": "1" 1244 | } 1245 | }, 1246 | "node_modules/pac-proxy-agent": { 1247 | "version": "7.0.1", 1248 | "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.1.tgz", 1249 | "integrity": "sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==", 1250 | "dependencies": { 1251 | "@tootallnate/quickjs-emscripten": "^0.23.0", 1252 | "agent-base": "^7.0.2", 1253 | "debug": "^4.3.4", 1254 | "get-uri": "^6.0.1", 1255 | "http-proxy-agent": "^7.0.0", 1256 | "https-proxy-agent": "^7.0.2", 1257 | "pac-resolver": "^7.0.0", 1258 | "socks-proxy-agent": "^8.0.2" 1259 | }, 1260 | "engines": { 1261 | "node": ">= 14" 1262 | } 1263 | }, 1264 | "node_modules/pac-resolver": { 1265 | "version": "7.0.0", 1266 | "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", 1267 | "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", 1268 | "dependencies": { 1269 | "degenerator": "^5.0.0", 1270 | "ip": "^1.1.8", 1271 | "netmask": "^2.0.2" 1272 | }, 1273 | "engines": { 1274 | "node": ">= 14" 1275 | } 1276 | }, 1277 | "node_modules/parent-module": { 1278 | "version": "1.0.1", 1279 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1280 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1281 | "dependencies": { 1282 | "callsites": "^3.0.0" 1283 | }, 1284 | "engines": { 1285 | "node": ">=6" 1286 | } 1287 | }, 1288 | "node_modules/parse-json": { 1289 | "version": "5.2.0", 1290 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", 1291 | "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", 1292 | "dependencies": { 1293 | "@babel/code-frame": "^7.0.0", 1294 | "error-ex": "^1.3.1", 1295 | "json-parse-even-better-errors": "^2.3.0", 1296 | "lines-and-columns": "^1.1.6" 1297 | }, 1298 | "engines": { 1299 | "node": ">=8" 1300 | }, 1301 | "funding": { 1302 | "url": "https://github.com/sponsors/sindresorhus" 1303 | } 1304 | }, 1305 | "node_modules/parseurl": { 1306 | "version": "1.3.3", 1307 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1308 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1309 | "engines": { 1310 | "node": ">= 0.8" 1311 | } 1312 | }, 1313 | "node_modules/path-to-regexp": { 1314 | "version": "0.1.7", 1315 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1316 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" 1317 | }, 1318 | "node_modules/pend": { 1319 | "version": "1.2.0", 1320 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 1321 | "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" 1322 | }, 1323 | "node_modules/progress": { 1324 | "version": "2.0.3", 1325 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1326 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1327 | "engines": { 1328 | "node": ">=0.4.0" 1329 | } 1330 | }, 1331 | "node_modules/proxy-addr": { 1332 | "version": "2.0.7", 1333 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1334 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1335 | "dependencies": { 1336 | "forwarded": "0.2.0", 1337 | "ipaddr.js": "1.9.1" 1338 | }, 1339 | "engines": { 1340 | "node": ">= 0.10" 1341 | } 1342 | }, 1343 | "node_modules/proxy-agent": { 1344 | "version": "6.3.1", 1345 | "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.1.tgz", 1346 | "integrity": "sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ==", 1347 | "dependencies": { 1348 | "agent-base": "^7.0.2", 1349 | "debug": "^4.3.4", 1350 | "http-proxy-agent": "^7.0.0", 1351 | "https-proxy-agent": "^7.0.2", 1352 | "lru-cache": "^7.14.1", 1353 | "pac-proxy-agent": "^7.0.1", 1354 | "proxy-from-env": "^1.1.0", 1355 | "socks-proxy-agent": "^8.0.2" 1356 | }, 1357 | "engines": { 1358 | "node": ">= 14" 1359 | } 1360 | }, 1361 | "node_modules/proxy-from-env": { 1362 | "version": "1.1.0", 1363 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 1364 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" 1365 | }, 1366 | "node_modules/pump": { 1367 | "version": "3.0.0", 1368 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1369 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1370 | "dependencies": { 1371 | "end-of-stream": "^1.1.0", 1372 | "once": "^1.3.1" 1373 | } 1374 | }, 1375 | "node_modules/puppeteer": { 1376 | "version": "21.9.0", 1377 | "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.9.0.tgz", 1378 | "integrity": "sha512-vcLR81Rp+MBrgqhiXZfpwEBbyKTa88Hd+8Al3+emWzcJb9evLLSfUYli0QUqhofPFrXsO2A/dAF9OunyOivL6w==", 1379 | "hasInstallScript": true, 1380 | "dependencies": { 1381 | "@puppeteer/browsers": "1.9.1", 1382 | "cosmiconfig": "9.0.0", 1383 | "puppeteer-core": "21.9.0" 1384 | }, 1385 | "bin": { 1386 | "puppeteer": "lib/esm/puppeteer/node/cli.js" 1387 | }, 1388 | "engines": { 1389 | "node": ">=16.13.2" 1390 | } 1391 | }, 1392 | "node_modules/puppeteer-core": { 1393 | "version": "21.9.0", 1394 | "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.9.0.tgz", 1395 | "integrity": "sha512-QgowcczLAoLWlV38s3y3VuEvjJGfKU5rR6Q23GUbiGOaiQi+QpaWQ+aXdzP9LHVSUPmHdAaWhcvMztYSw3f8gQ==", 1396 | "dependencies": { 1397 | "@puppeteer/browsers": "1.9.1", 1398 | "chromium-bidi": "0.5.4", 1399 | "cross-fetch": "4.0.0", 1400 | "debug": "4.3.4", 1401 | "devtools-protocol": "0.0.1232444", 1402 | "ws": "8.16.0" 1403 | }, 1404 | "engines": { 1405 | "node": ">=16.13.2" 1406 | } 1407 | }, 1408 | "node_modules/qs": { 1409 | "version": "6.11.0", 1410 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 1411 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 1412 | "dependencies": { 1413 | "side-channel": "^1.0.4" 1414 | }, 1415 | "engines": { 1416 | "node": ">=0.6" 1417 | }, 1418 | "funding": { 1419 | "url": "https://github.com/sponsors/ljharb" 1420 | } 1421 | }, 1422 | "node_modules/queue-tick": { 1423 | "version": "1.0.1", 1424 | "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", 1425 | "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" 1426 | }, 1427 | "node_modules/range-parser": { 1428 | "version": "1.2.1", 1429 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1430 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1431 | "engines": { 1432 | "node": ">= 0.6" 1433 | } 1434 | }, 1435 | "node_modules/raw-body": { 1436 | "version": "2.5.1", 1437 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", 1438 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", 1439 | "dependencies": { 1440 | "bytes": "3.1.2", 1441 | "http-errors": "2.0.0", 1442 | "iconv-lite": "0.4.24", 1443 | "unpipe": "1.0.0" 1444 | }, 1445 | "engines": { 1446 | "node": ">= 0.8" 1447 | } 1448 | }, 1449 | "node_modules/require-directory": { 1450 | "version": "2.1.1", 1451 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1452 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 1453 | "engines": { 1454 | "node": ">=0.10.0" 1455 | } 1456 | }, 1457 | "node_modules/resolve-from": { 1458 | "version": "4.0.0", 1459 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1460 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1461 | "engines": { 1462 | "node": ">=4" 1463 | } 1464 | }, 1465 | "node_modules/safe-buffer": { 1466 | "version": "5.2.1", 1467 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1468 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1469 | "funding": [ 1470 | { 1471 | "type": "github", 1472 | "url": "https://github.com/sponsors/feross" 1473 | }, 1474 | { 1475 | "type": "patreon", 1476 | "url": "https://www.patreon.com/feross" 1477 | }, 1478 | { 1479 | "type": "consulting", 1480 | "url": "https://feross.org/support" 1481 | } 1482 | ] 1483 | }, 1484 | "node_modules/safer-buffer": { 1485 | "version": "2.1.2", 1486 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1487 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1488 | }, 1489 | "node_modules/send": { 1490 | "version": "0.18.0", 1491 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 1492 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 1493 | "dependencies": { 1494 | "debug": "2.6.9", 1495 | "depd": "2.0.0", 1496 | "destroy": "1.2.0", 1497 | "encodeurl": "~1.0.2", 1498 | "escape-html": "~1.0.3", 1499 | "etag": "~1.8.1", 1500 | "fresh": "0.5.2", 1501 | "http-errors": "2.0.0", 1502 | "mime": "1.6.0", 1503 | "ms": "2.1.3", 1504 | "on-finished": "2.4.1", 1505 | "range-parser": "~1.2.1", 1506 | "statuses": "2.0.1" 1507 | }, 1508 | "engines": { 1509 | "node": ">= 0.8.0" 1510 | } 1511 | }, 1512 | "node_modules/send/node_modules/debug": { 1513 | "version": "2.6.9", 1514 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1515 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1516 | "dependencies": { 1517 | "ms": "2.0.0" 1518 | } 1519 | }, 1520 | "node_modules/send/node_modules/debug/node_modules/ms": { 1521 | "version": "2.0.0", 1522 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1523 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 1524 | }, 1525 | "node_modules/send/node_modules/ms": { 1526 | "version": "2.1.3", 1527 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1528 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1529 | }, 1530 | "node_modules/serve-static": { 1531 | "version": "1.15.0", 1532 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 1533 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 1534 | "dependencies": { 1535 | "encodeurl": "~1.0.2", 1536 | "escape-html": "~1.0.3", 1537 | "parseurl": "~1.3.3", 1538 | "send": "0.18.0" 1539 | }, 1540 | "engines": { 1541 | "node": ">= 0.8.0" 1542 | } 1543 | }, 1544 | "node_modules/set-function-length": { 1545 | "version": "1.2.0", 1546 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz", 1547 | "integrity": "sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==", 1548 | "dependencies": { 1549 | "define-data-property": "^1.1.1", 1550 | "function-bind": "^1.1.2", 1551 | "get-intrinsic": "^1.2.2", 1552 | "gopd": "^1.0.1", 1553 | "has-property-descriptors": "^1.0.1" 1554 | }, 1555 | "engines": { 1556 | "node": ">= 0.4" 1557 | } 1558 | }, 1559 | "node_modules/setprototypeof": { 1560 | "version": "1.2.0", 1561 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 1562 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 1563 | }, 1564 | "node_modules/side-channel": { 1565 | "version": "1.0.4", 1566 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", 1567 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", 1568 | "dependencies": { 1569 | "call-bind": "^1.0.0", 1570 | "get-intrinsic": "^1.0.2", 1571 | "object-inspect": "^1.9.0" 1572 | }, 1573 | "funding": { 1574 | "url": "https://github.com/sponsors/ljharb" 1575 | } 1576 | }, 1577 | "node_modules/smart-buffer": { 1578 | "version": "4.2.0", 1579 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", 1580 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", 1581 | "engines": { 1582 | "node": ">= 6.0.0", 1583 | "npm": ">= 3.0.0" 1584 | } 1585 | }, 1586 | "node_modules/socks": { 1587 | "version": "2.7.1", 1588 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", 1589 | "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", 1590 | "dependencies": { 1591 | "ip": "^2.0.0", 1592 | "smart-buffer": "^4.2.0" 1593 | }, 1594 | "engines": { 1595 | "node": ">= 10.13.0", 1596 | "npm": ">= 3.0.0" 1597 | } 1598 | }, 1599 | "node_modules/socks-proxy-agent": { 1600 | "version": "8.0.2", 1601 | "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.2.tgz", 1602 | "integrity": "sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==", 1603 | "dependencies": { 1604 | "agent-base": "^7.0.2", 1605 | "debug": "^4.3.4", 1606 | "socks": "^2.7.1" 1607 | }, 1608 | "engines": { 1609 | "node": ">= 14" 1610 | } 1611 | }, 1612 | "node_modules/socks/node_modules/ip": { 1613 | "version": "2.0.0", 1614 | "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", 1615 | "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" 1616 | }, 1617 | "node_modules/source-map": { 1618 | "version": "0.6.1", 1619 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1620 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1621 | "optional": true, 1622 | "engines": { 1623 | "node": ">=0.10.0" 1624 | } 1625 | }, 1626 | "node_modules/statuses": { 1627 | "version": "2.0.1", 1628 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1629 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1630 | "engines": { 1631 | "node": ">= 0.8" 1632 | } 1633 | }, 1634 | "node_modules/streamx": { 1635 | "version": "2.15.6", 1636 | "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.6.tgz", 1637 | "integrity": "sha512-q+vQL4AAz+FdfT137VF69Cc/APqUbxy+MDOImRrMvchJpigHj9GksgDU2LYbO9rx7RX6osWgxJB2WxhYv4SZAw==", 1638 | "dependencies": { 1639 | "fast-fifo": "^1.1.0", 1640 | "queue-tick": "^1.0.1" 1641 | } 1642 | }, 1643 | "node_modules/string-width": { 1644 | "version": "4.2.3", 1645 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1646 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1647 | "dependencies": { 1648 | "emoji-regex": "^8.0.0", 1649 | "is-fullwidth-code-point": "^3.0.0", 1650 | "strip-ansi": "^6.0.1" 1651 | }, 1652 | "engines": { 1653 | "node": ">=8" 1654 | } 1655 | }, 1656 | "node_modules/strip-ansi": { 1657 | "version": "6.0.1", 1658 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1659 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1660 | "dependencies": { 1661 | "ansi-regex": "^5.0.1" 1662 | }, 1663 | "engines": { 1664 | "node": ">=8" 1665 | } 1666 | }, 1667 | "node_modules/supports-color": { 1668 | "version": "5.5.0", 1669 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1670 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1671 | "dependencies": { 1672 | "has-flag": "^3.0.0" 1673 | }, 1674 | "engines": { 1675 | "node": ">=4" 1676 | } 1677 | }, 1678 | "node_modules/tar-fs": { 1679 | "version": "3.0.4", 1680 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", 1681 | "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", 1682 | "dependencies": { 1683 | "mkdirp-classic": "^0.5.2", 1684 | "pump": "^3.0.0", 1685 | "tar-stream": "^3.1.5" 1686 | } 1687 | }, 1688 | "node_modules/tar-stream": { 1689 | "version": "3.1.7", 1690 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", 1691 | "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", 1692 | "dependencies": { 1693 | "b4a": "^1.6.4", 1694 | "fast-fifo": "^1.2.0", 1695 | "streamx": "^2.15.0" 1696 | } 1697 | }, 1698 | "node_modules/through": { 1699 | "version": "2.3.8", 1700 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1701 | "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" 1702 | }, 1703 | "node_modules/toidentifier": { 1704 | "version": "1.0.1", 1705 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1706 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1707 | "engines": { 1708 | "node": ">=0.6" 1709 | } 1710 | }, 1711 | "node_modules/tr46": { 1712 | "version": "0.0.3", 1713 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 1714 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" 1715 | }, 1716 | "node_modules/tslib": { 1717 | "version": "2.6.2", 1718 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", 1719 | "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" 1720 | }, 1721 | "node_modules/type-is": { 1722 | "version": "1.6.18", 1723 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1724 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1725 | "dependencies": { 1726 | "media-typer": "0.3.0", 1727 | "mime-types": "~2.1.24" 1728 | }, 1729 | "engines": { 1730 | "node": ">= 0.6" 1731 | } 1732 | }, 1733 | "node_modules/unbzip2-stream": { 1734 | "version": "1.4.3", 1735 | "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", 1736 | "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", 1737 | "dependencies": { 1738 | "buffer": "^5.2.1", 1739 | "through": "^2.3.8" 1740 | } 1741 | }, 1742 | "node_modules/undici-types": { 1743 | "version": "5.26.5", 1744 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 1745 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", 1746 | "optional": true 1747 | }, 1748 | "node_modules/universalify": { 1749 | "version": "0.1.2", 1750 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", 1751 | "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", 1752 | "engines": { 1753 | "node": ">= 4.0.0" 1754 | } 1755 | }, 1756 | "node_modules/unpipe": { 1757 | "version": "1.0.0", 1758 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1759 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1760 | "engines": { 1761 | "node": ">= 0.8" 1762 | } 1763 | }, 1764 | "node_modules/urlpattern-polyfill": { 1765 | "version": "9.0.0", 1766 | "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz", 1767 | "integrity": "sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==" 1768 | }, 1769 | "node_modules/utils-merge": { 1770 | "version": "1.0.1", 1771 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1772 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1773 | "engines": { 1774 | "node": ">= 0.4.0" 1775 | } 1776 | }, 1777 | "node_modules/vary": { 1778 | "version": "1.1.2", 1779 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1780 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1781 | "engines": { 1782 | "node": ">= 0.8" 1783 | } 1784 | }, 1785 | "node_modules/webidl-conversions": { 1786 | "version": "3.0.1", 1787 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 1788 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" 1789 | }, 1790 | "node_modules/whatwg-url": { 1791 | "version": "5.0.0", 1792 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 1793 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 1794 | "dependencies": { 1795 | "tr46": "~0.0.3", 1796 | "webidl-conversions": "^3.0.0" 1797 | } 1798 | }, 1799 | "node_modules/wrap-ansi": { 1800 | "version": "7.0.0", 1801 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1802 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1803 | "dependencies": { 1804 | "ansi-styles": "^4.0.0", 1805 | "string-width": "^4.1.0", 1806 | "strip-ansi": "^6.0.0" 1807 | }, 1808 | "engines": { 1809 | "node": ">=10" 1810 | }, 1811 | "funding": { 1812 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1813 | } 1814 | }, 1815 | "node_modules/wrap-ansi/node_modules/ansi-styles": { 1816 | "version": "4.3.0", 1817 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1818 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1819 | "dependencies": { 1820 | "color-convert": "^2.0.1" 1821 | }, 1822 | "engines": { 1823 | "node": ">=8" 1824 | }, 1825 | "funding": { 1826 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1827 | } 1828 | }, 1829 | "node_modules/wrap-ansi/node_modules/color-convert": { 1830 | "version": "2.0.1", 1831 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1832 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1833 | "dependencies": { 1834 | "color-name": "~1.1.4" 1835 | }, 1836 | "engines": { 1837 | "node": ">=7.0.0" 1838 | } 1839 | }, 1840 | "node_modules/wrap-ansi/node_modules/color-name": { 1841 | "version": "1.1.4", 1842 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1843 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 1844 | }, 1845 | "node_modules/wrappy": { 1846 | "version": "1.0.2", 1847 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1848 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 1849 | }, 1850 | "node_modules/ws": { 1851 | "version": "8.16.0", 1852 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", 1853 | "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", 1854 | "engines": { 1855 | "node": ">=10.0.0" 1856 | }, 1857 | "peerDependencies": { 1858 | "bufferutil": "^4.0.1", 1859 | "utf-8-validate": ">=5.0.2" 1860 | }, 1861 | "peerDependenciesMeta": { 1862 | "bufferutil": { 1863 | "optional": true 1864 | }, 1865 | "utf-8-validate": { 1866 | "optional": true 1867 | } 1868 | } 1869 | }, 1870 | "node_modules/y18n": { 1871 | "version": "5.0.8", 1872 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 1873 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 1874 | "engines": { 1875 | "node": ">=10" 1876 | } 1877 | }, 1878 | "node_modules/yargs": { 1879 | "version": "17.7.2", 1880 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 1881 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 1882 | "dependencies": { 1883 | "cliui": "^8.0.1", 1884 | "escalade": "^3.1.1", 1885 | "get-caller-file": "^2.0.5", 1886 | "require-directory": "^2.1.1", 1887 | "string-width": "^4.2.3", 1888 | "y18n": "^5.0.5", 1889 | "yargs-parser": "^21.1.1" 1890 | }, 1891 | "engines": { 1892 | "node": ">=12" 1893 | } 1894 | }, 1895 | "node_modules/yargs-parser": { 1896 | "version": "21.1.1", 1897 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 1898 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 1899 | "engines": { 1900 | "node": ">=12" 1901 | } 1902 | }, 1903 | "node_modules/yauzl": { 1904 | "version": "2.10.0", 1905 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", 1906 | "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", 1907 | "dependencies": { 1908 | "buffer-crc32": "~0.2.3", 1909 | "fd-slicer": "~1.1.0" 1910 | } 1911 | } 1912 | } 1913 | } 1914 | --------------------------------------------------------------------------------