├── .github ├── FUNDING.yml └── workflows │ └── build-package-plugin.yml ├── media ├── note.png ├── actions.png ├── download.png ├── expeditions-view.png └── character-progression.gif ├── images ├── abyss.png ├── daily.png ├── done.png ├── progress.png ├── completed.png ├── character-back.png ├── character-next.png └── character-reset.png ├── plugin ├── icons │ ├── abyssIcon.png │ ├── category.png │ ├── pageState.png │ ├── resinIcon.png │ ├── abyssIcon@2x.png │ ├── abyssState.png │ ├── bannerIcon.png │ ├── bannerState.png │ ├── category@2x.png │ ├── pageState@2x.png │ ├── pluginIcon.png │ ├── resinIcon@2x.png │ ├── resinState.png │ ├── rewardIcon.png │ ├── rewardState.png │ ├── teapotIcon.png │ ├── teapotState.png │ ├── abyssState@2x.png │ ├── bannerIcon@2x.png │ ├── bannerState@2x.png │ ├── characterIcon.png │ ├── characterState.png │ ├── commissionIcon.png │ ├── expeditionIcon.png │ ├── pluginIcon@2x.png │ ├── resinState@2x.png │ ├── rewardIcon@2x.png │ ├── rewardState@2x.png │ ├── teapotIcon@2x.png │ ├── teapotState@2x.png │ ├── characterIcon@2x.png │ ├── characterState@2x.png │ ├── commissionIcon@2x.png │ ├── commissionState.png │ ├── expeditionIcon@2x.png │ ├── expeditionState.png │ ├── transformerIcon.png │ ├── transformerState.png │ ├── commissionState@2x.png │ ├── expeditionState@2x.png │ ├── transformerIcon@2x.png │ ├── transformerState@2x.png │ ├── transformerReadyState.png │ └── transformerReadyState@2x.png ├── previews │ ├── 1-preview.png │ └── 2-preview.png ├── GenshinDeck.streamDeckProfile ├── GenshinDeckXL.streamDeckProfile ├── GenshinDeckMini.streamDeckProfile └── manifest.json ├── property-inspector ├── src │ ├── images │ │ └── hoyolab.png │ ├── components │ │ ├── SettingsBox.js │ │ ├── SettingsHeader.js │ │ ├── Gesture.js │ │ └── ButtonsGroup.js │ ├── actions │ │ ├── daily-reward.js │ │ ├── index.js │ │ ├── banner.js │ │ └── parametric-transformer.js │ ├── index.js │ ├── index.css │ ├── hooks │ │ └── stream-deck.js │ └── App.js ├── .prettierrc ├── public │ └── index.html └── package.json ├── .prettierrc ├── src ├── api │ ├── gist.ts │ └── hoyolab.ts ├── util │ ├── canvas.ts │ └── cache.ts ├── interfaces.ts ├── actions │ ├── resin.ts │ ├── teapot.ts │ ├── commission.ts │ ├── transformer.ts │ ├── daily-reward.ts │ ├── abyss.ts │ ├── banner.ts │ ├── expedition.ts │ └── progression.ts └── index.ts ├── tsconfig.json ├── package.json ├── README.md ├── .gitignore ├── LICENSE └── pnpm-lock.yaml /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | ko_fi: fcannizzaro 2 | patreon: fcannizzaro 3 | -------------------------------------------------------------------------------- /media/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/media/note.png -------------------------------------------------------------------------------- /images/abyss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/abyss.png -------------------------------------------------------------------------------- /images/daily.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/daily.png -------------------------------------------------------------------------------- /images/done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/done.png -------------------------------------------------------------------------------- /images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/progress.png -------------------------------------------------------------------------------- /media/actions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/media/actions.png -------------------------------------------------------------------------------- /media/download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/media/download.png -------------------------------------------------------------------------------- /images/completed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/completed.png -------------------------------------------------------------------------------- /images/character-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/character-back.png -------------------------------------------------------------------------------- /images/character-next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/character-next.png -------------------------------------------------------------------------------- /images/character-reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/images/character-reset.png -------------------------------------------------------------------------------- /media/expeditions-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/media/expeditions-view.png -------------------------------------------------------------------------------- /plugin/icons/abyssIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/abyssIcon.png -------------------------------------------------------------------------------- /plugin/icons/category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/category.png -------------------------------------------------------------------------------- /plugin/icons/pageState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/pageState.png -------------------------------------------------------------------------------- /plugin/icons/resinIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/resinIcon.png -------------------------------------------------------------------------------- /plugin/icons/abyssIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/abyssIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/abyssState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/abyssState.png -------------------------------------------------------------------------------- /plugin/icons/bannerIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/bannerIcon.png -------------------------------------------------------------------------------- /plugin/icons/bannerState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/bannerState.png -------------------------------------------------------------------------------- /plugin/icons/category@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/category@2x.png -------------------------------------------------------------------------------- /plugin/icons/pageState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/pageState@2x.png -------------------------------------------------------------------------------- /plugin/icons/pluginIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/pluginIcon.png -------------------------------------------------------------------------------- /plugin/icons/resinIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/resinIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/resinState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/resinState.png -------------------------------------------------------------------------------- /plugin/icons/rewardIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/rewardIcon.png -------------------------------------------------------------------------------- /plugin/icons/rewardState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/rewardState.png -------------------------------------------------------------------------------- /plugin/icons/teapotIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/teapotIcon.png -------------------------------------------------------------------------------- /plugin/icons/teapotState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/teapotState.png -------------------------------------------------------------------------------- /plugin/previews/1-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/previews/1-preview.png -------------------------------------------------------------------------------- /plugin/previews/2-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/previews/2-preview.png -------------------------------------------------------------------------------- /media/character-progression.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/media/character-progression.gif -------------------------------------------------------------------------------- /plugin/icons/abyssState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/abyssState@2x.png -------------------------------------------------------------------------------- /plugin/icons/bannerIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/bannerIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/bannerState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/bannerState@2x.png -------------------------------------------------------------------------------- /plugin/icons/characterIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/characterIcon.png -------------------------------------------------------------------------------- /plugin/icons/characterState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/characterState.png -------------------------------------------------------------------------------- /plugin/icons/commissionIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/commissionIcon.png -------------------------------------------------------------------------------- /plugin/icons/expeditionIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/expeditionIcon.png -------------------------------------------------------------------------------- /plugin/icons/pluginIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/pluginIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/resinState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/resinState@2x.png -------------------------------------------------------------------------------- /plugin/icons/rewardIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/rewardIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/rewardState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/rewardState@2x.png -------------------------------------------------------------------------------- /plugin/icons/teapotIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/teapotIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/teapotState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/teapotState@2x.png -------------------------------------------------------------------------------- /plugin/icons/characterIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/characterIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/characterState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/characterState@2x.png -------------------------------------------------------------------------------- /plugin/icons/commissionIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/commissionIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/commissionState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/commissionState.png -------------------------------------------------------------------------------- /plugin/icons/expeditionIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/expeditionIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/expeditionState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/expeditionState.png -------------------------------------------------------------------------------- /plugin/icons/transformerIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/transformerIcon.png -------------------------------------------------------------------------------- /plugin/icons/transformerState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/transformerState.png -------------------------------------------------------------------------------- /plugin/GenshinDeck.streamDeckProfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/GenshinDeck.streamDeckProfile -------------------------------------------------------------------------------- /plugin/icons/commissionState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/commissionState@2x.png -------------------------------------------------------------------------------- /plugin/icons/expeditionState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/expeditionState@2x.png -------------------------------------------------------------------------------- /plugin/icons/transformerIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/transformerIcon@2x.png -------------------------------------------------------------------------------- /plugin/icons/transformerState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/transformerState@2x.png -------------------------------------------------------------------------------- /plugin/GenshinDeckXL.streamDeckProfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/GenshinDeckXL.streamDeckProfile -------------------------------------------------------------------------------- /plugin/icons/transformerReadyState.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/transformerReadyState.png -------------------------------------------------------------------------------- /plugin/GenshinDeckMini.streamDeckProfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/GenshinDeckMini.streamDeckProfile -------------------------------------------------------------------------------- /plugin/icons/transformerReadyState@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/plugin/icons/transformerReadyState@2x.png -------------------------------------------------------------------------------- /property-inspector/src/images/hoyolab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcannizzaro/genshin-deck/HEAD/property-inspector/src/images/hoyolab.png -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | "tabWidth": 2, 4 | "printWidth": 100, 5 | "singleQuote": true, 6 | "trailingComma": "all", 7 | "jsxSingleQuote": true, 8 | "bracketSpacing": true 9 | } 10 | -------------------------------------------------------------------------------- /property-inspector/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | "tabWidth": 2, 4 | "printWidth": 100, 5 | "singleQuote": true, 6 | "trailingComma": "all", 7 | "jsxSingleQuote": true, 8 | "bracketSpacing": true 9 | } 10 | -------------------------------------------------------------------------------- /property-inspector/src/components/SettingsBox.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components'; 2 | 3 | export const SettingsBox = styled.div` 4 | display: flex; 5 | width: calc(100% - 18px); 6 | max-width: 320px; 7 | background: #222222; 8 | flex-direction: column; 9 | `; 10 | -------------------------------------------------------------------------------- /property-inspector/src/actions/daily-reward.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Gesture } from '../components/Gesture'; 3 | 4 | export const DailyReward = () => { 5 | return ( 6 | <> 7 | 8 | 9 | ); 10 | }; 11 | -------------------------------------------------------------------------------- /property-inspector/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Genshin Deck Settings 7 | 8 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /property-inspector/src/actions/index.js: -------------------------------------------------------------------------------- 1 | import { ParametricTransformer } from './parametric-transformer'; 2 | import { Banner } from './banner'; 3 | import { DailyReward } from './daily-reward'; 4 | 5 | export const Actions = { 6 | transformer: ParametricTransformer, 7 | banner: Banner, 8 | 'daily-reward': DailyReward, 9 | }; 10 | -------------------------------------------------------------------------------- /src/api/gist.ts: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | import { Banner } from '../interfaces'; 3 | 4 | export const fetchBanner = async (): Promise => { 5 | try { 6 | const res = await axios( 7 | 'https://gist.github.com/fcannizzaro/3043559011496c9c641f614feb416414/raw/genshin-banners-deck.json', 8 | ); 9 | const items: Banner[] = res.data; 10 | const now = new Date().getTime() / 1000; 11 | return items.filter((it) => now < it.end); 12 | } catch (e) { 13 | return []; 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /property-inspector/src/actions/banner.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { useSettings } from '../hooks/stream-deck'; 3 | import { SettingsBox } from '../components/SettingsBox'; 4 | import { ButtonsGroup } from '../components/ButtonsGroup'; 5 | 6 | export const Banner = () => { 7 | const [settings, setSettings] = useSettings(); 8 | return ( 9 | 10 | setSettings({ banner })} 13 | items={['character', 'weapon']} 14 | /> 15 | 16 | ); 17 | }; 18 | -------------------------------------------------------------------------------- /property-inspector/src/components/SettingsHeader.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components'; 2 | 3 | export const SettingsHeader = styled.div` 4 | display: flex; 5 | padding: 9px 16px; 6 | width: calc(100% - 32px); 7 | background: #3d3d3d; 8 | color: white; 9 | color: rgba(255, 255, 255, 0.7); 10 | flex-direction: column; 11 | border-bottom: ${(p) => (p.error ? '2px solid #FF3333' : 'none')}; 12 | 13 | & div:first-of-type { 14 | font-weight: bold; 15 | text-transform: uppercase; 16 | } 17 | 18 | & div:last-of-type { 19 | margin-top: 4px; 20 | opacity: 0.7; 21 | } 22 | `; 23 | -------------------------------------------------------------------------------- /property-inspector/src/actions/parametric-transformer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { useSettings } from '../hooks/stream-deck'; 3 | import { SettingsBox } from '../components/SettingsBox'; 4 | import { ButtonsGroup } from '../components/ButtonsGroup'; 5 | 6 | export const ParametricTransformer = () => { 7 | const [settings, setSettings] = useSettings(); 8 | return ( 9 | 10 | setSettings({ style })} 13 | items={['icon', 'text']} 14 | /> 15 | 16 | ); 17 | }; 18 | -------------------------------------------------------------------------------- /src/util/canvas.ts: -------------------------------------------------------------------------------- 1 | import { createCanvas, loadImage } from 'canvas'; 2 | import { cacheOrImage } from './cache'; 3 | 4 | const renderedImages: Record = {}; 5 | 6 | export const combineImages = async (id: string, ...images: string[]) => { 7 | if (!renderedImages[id]) { 8 | const canvas = createCanvas(206, 206); 9 | const ctx = canvas.getContext('2d'); 10 | for (const image of images) { 11 | const img = await loadImage(await cacheOrImage(image)); 12 | ctx.drawImage(img, 0, 0, 206, 206); 13 | } 14 | renderedImages[id] = canvas.toDataURL(); 15 | } 16 | return renderedImages[id]; 17 | }; 18 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "./dist", 4 | "module": "commonjs", 5 | "target": "es5", 6 | "lib": ["ES2020"], 7 | "rootDir": "src", 8 | "declaration": false, 9 | "moduleResolution": "node", 10 | "noUnusedLocals": false, 11 | "noUnusedParameters": true, 12 | "experimentalDecorators": true, 13 | "esModuleInterop": true, 14 | "noImplicitReturns": true, 15 | "noImplicitThis": true, 16 | "noImplicitAny": true, 17 | "strictNullChecks": true, 18 | "suppressImplicitAnyIndexErrors": true, 19 | "allowSyntheticDefaultImports": true 20 | }, 21 | "include": ["."], 22 | "exclude": ["node_modules", "dist", "sample"] 23 | } 24 | -------------------------------------------------------------------------------- /property-inspector/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import { StreamDeckProvider } from './hooks/stream-deck'; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById('root')); 8 | 9 | window.connectElgatoStreamDeckSocket = (inPort, inUUID, inRegisterEvent, inInfo, inActionInfo) => { 10 | const registration = { 11 | port: inPort, 12 | uuid: inUUID, 13 | registerEvent: inRegisterEvent, 14 | info: JSON.parse(inInfo), 15 | actionInfo: JSON.parse(inActionInfo), 16 | }; 17 | root.render( 18 | 19 | 20 | , 21 | ); 22 | }; 23 | -------------------------------------------------------------------------------- /src/interfaces.ts: -------------------------------------------------------------------------------- 1 | export interface Banner { 2 | type: 'character' | 'weapon'; 3 | image: string; 4 | start: number; 5 | end: number; 6 | } 7 | 8 | export interface PluginSettings { 9 | authentication: { 10 | uid: string; 11 | ltuid: string; 12 | ltoken: string; 13 | }; 14 | daily: Record; 15 | abyss: { 16 | end: number; 17 | stars: string; 18 | }; 19 | progression: Array; 20 | } 21 | 22 | export interface RecoveryTime { 23 | Day: number; 24 | Hour: number; 25 | Minute: number; 26 | } 27 | 28 | export interface Character { 29 | avatar_level: number; 30 | element_attr_id: number; 31 | icon: string; 32 | id: number; 33 | max_level: number; 34 | name: string; 35 | weapon_cat_id: number; 36 | } 37 | -------------------------------------------------------------------------------- /property-inspector/src/components/Gesture.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components'; 2 | 3 | const GestureBox = styled.div` 4 | display: flex; 5 | background: #1b1d2a; 6 | flex-direction: column; 7 | align-items: flex-start; 8 | margin-bottom: 8px; 9 | &:first-of-type { 10 | margin-top: 10px; 11 | } 12 | width: calc(100% - 18px); 13 | padding-bottom: 8px; 14 | 15 | & span:nth-child(1) { 16 | display: inline-flex; 17 | background: #0c0f1d; 18 | color: white; 19 | padding: 4px 8px; 20 | font-weight: bold; 21 | text-transform: uppercase; 22 | } 23 | 24 | & span:nth-child(2) { 25 | margin-top: 8px; 26 | opacity: 0.6; 27 | padding: 0 8px; 28 | color: white; 29 | } 30 | `; 31 | 32 | export const Gesture = ({ gesture, action }) => { 33 | return ( 34 | 35 | {gesture} 36 | {action} 37 | 38 | ); 39 | }; 40 | -------------------------------------------------------------------------------- /property-inspector/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | .container { 11 | display: flex; 12 | flex-direction: column; 13 | } 14 | 15 | .spaced { 16 | height: 1px; 17 | width: 104px; 18 | } 19 | 20 | .mini-spaced { 21 | height: 1px; 22 | width: 68px; 23 | } 24 | 25 | .content { 26 | padding-top: 8px; 27 | flex: 1; 28 | } 29 | 30 | ::-webkit-scrollbar { 31 | width: 2px; 32 | } 33 | 34 | /* Track */ 35 | ::-webkit-scrollbar-track { 36 | background: transparent; 37 | } 38 | 39 | /* Handle */ 40 | ::-webkit-scrollbar-thumb { 41 | background: transparent; 42 | } 43 | 44 | /* Handle on hover */ 45 | ::-webkit-scrollbar-thumb:hover { 46 | background: transparent; 47 | } 48 | -------------------------------------------------------------------------------- /src/util/cache.ts: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | import Cache from 'file-system-cache'; 3 | import { tmpdir } from 'os'; 4 | import { join } from 'path'; 5 | 6 | export const cache = Cache({ 7 | basePath: join(tmpdir(), './genshin-deck'), 8 | }); 9 | 10 | export const cacheOrImage = async (image: string) => { 11 | let cached = await cache.get(image); 12 | let img; 13 | if (!cached) { 14 | // download image 15 | const { data } = await axios({ url: image, responseType: 'arraybuffer' }); 16 | // overwrite cached (null) 17 | img = 'data:image/png;base64, ' + Buffer.from(data, 'binary').toString('base64'); 18 | // cache image 19 | await cache.set(image, img); 20 | } else { 21 | img = cached; 22 | } 23 | return img; 24 | }; 25 | 26 | export const cacheById = async (id: string, obtain: () => any) => { 27 | let cached = await cache.get(id); 28 | if (!cached) { 29 | cached = await obtain(); 30 | cache.set(id, cached).then(); 31 | } 32 | return cached; 33 | }; 34 | -------------------------------------------------------------------------------- /src/actions/resin.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { refreshData, sd } from '../index'; 9 | import { PluginSettings } from '../interfaces'; 10 | 11 | @Action('resin') 12 | export class ResinAction extends BaseAction { 13 | updateTile(context: string) { 14 | const { current_resin, error } = sd.pluginSettings.daily || {}; 15 | if (error) { 16 | return sd.showAlert(context); 17 | } 18 | sd.setTitle(context, current_resin?.toString()); 19 | } 20 | 21 | async onSingleTap(e: KeyEvent) { 22 | sd.showOk(e.context); 23 | await refreshData(); 24 | } 25 | 26 | async onAppear(e: AppearDisappearEvent) { 27 | this.updateTile(e.context); 28 | } 29 | 30 | async onPluginSettingsChanged(e: PluginSettingsChanged) { 31 | if (!e.changedKeys.includes('daily')) { 32 | return; 33 | } 34 | this.contexts.forEach(this.updateTile); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/actions/teapot.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { refreshData, sd } from '../index'; 9 | import { PluginSettings } from '../interfaces'; 10 | 11 | @Action('teapot') 12 | export class ResinAction extends BaseAction { 13 | updateTile(context: string) { 14 | const { current_home_coin, error } = sd.pluginSettings.daily || {}; 15 | if (error) { 16 | return sd.showAlert(context); 17 | } 18 | sd.setTitle(context, current_home_coin?.toString()); 19 | } 20 | 21 | async onSingleTap(e: KeyEvent) { 22 | sd.showOk(e.context); 23 | await refreshData(); 24 | } 25 | 26 | async onAppear(e: AppearDisappearEvent) { 27 | this.updateTile(e.context); 28 | } 29 | 30 | async onPluginSettingsChanged(e: PluginSettingsChanged) { 31 | if (!e.changedKeys.includes('daily')) { 32 | return; 33 | } 34 | this.contexts.forEach(this.updateTile); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/actions/commission.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { refreshData, sd } from '../index'; 9 | import { PluginSettings } from '../interfaces'; 10 | 11 | @Action('commission') 12 | export class CommissionAction extends BaseAction { 13 | updateTile(context: string) { 14 | const { finished_task_num = 0, total_task_num = 0, error } = sd.pluginSettings.daily || {}; 15 | if (error) { 16 | return sd.showAlert(context); 17 | } 18 | sd.setTitle(context, `${total_task_num - finished_task_num}`); 19 | } 20 | 21 | async onSingleTap(e: KeyEvent) { 22 | sd.showOk(e.context); 23 | await refreshData(); 24 | } 25 | 26 | async onAppear(e: AppearDisappearEvent) { 27 | this.updateTile(e.context); 28 | } 29 | 30 | async onPluginSettingsChanged(e: PluginSettingsChanged) { 31 | if (!e.changedKeys.includes('daily')) { 32 | return; 33 | } 34 | this.contexts.forEach(this.updateTile); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /property-inspector/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "stream-deck-react-pi", 3 | "version": "0.1.0", 4 | "private": true, 5 | "homepage": ".", 6 | "home": ".", 7 | "dependencies": { 8 | "polished": "^4.2.2", 9 | "react": "^18.1.0", 10 | "react-dom": "^18.1.0", 11 | "react-scripts": "5.0.1", 12 | "styled-components": "^5.3.5" 13 | }, 14 | "devDependencies": { 15 | "cross-env": "^7.0.3", 16 | "prettier": "^2.7.1" 17 | }, 18 | "scripts": { 19 | "start": "react-scripts start", 20 | "build": "cross-env GENERATE_SOURCEMAP=false BUILD_PATH=../plugin/pi react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject" 23 | }, 24 | "eslintConfig": { 25 | "extends": [ 26 | "react-app", 27 | "react-app/jest" 28 | ] 29 | }, 30 | "browserslist": { 31 | "production": [ 32 | ">0.2%", 33 | "not dead", 34 | "not op_mini all" 35 | ], 36 | "development": [ 37 | "last 1 chrome version", 38 | "last 1 firefox version", 39 | "last 1 safari version" 40 | ] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /property-inspector/src/components/ButtonsGroup.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components'; 2 | 3 | const ButtonsGroupContainer = styled.div` 4 | display: flex; 5 | border-top: 2px solid rgba(255, 255, 255, 0.2); 6 | border-left: none; 7 | border-right: none; 8 | flex-wrap: wrap; 9 | width: 100%; 10 | background: #1b1d2a; 11 | `; 12 | 13 | const Button = styled.button` 14 | flex: 1; 15 | justify-content: center; 16 | display: flex; 17 | outline: none; 18 | border: none; 19 | border-bottom: 2px solid; 20 | border-bottom-color: ${(p) => (p.selected ? '#657ef8' : 'rgba(255, 255, 255, .2)')}; 21 | padding: 4px 2px; 22 | background: none; 23 | color: ${(p) => (p.selected ? '#657ef8' : 'rgba(255, 255, 255, .5)')}; 24 | cursor: pointer; 25 | `; 26 | 27 | export const ButtonsGroup = ({ items, value, onChange }) => { 28 | const buttons = items.map((it) => ( 29 | 32 | )); 33 | 34 | return {buttons}; 35 | }; 36 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "com.genshin.deck", 4 | "version": "1.0.6", 5 | "author": "fcannizzaro", 6 | "main": "./dist/index.js", 7 | "bin": "./dist/index.js", 8 | "scripts": { 9 | "start": "npx ts-node ./src/index.ts -debug com.genshin.deck", 10 | "build": "npm run build:ts && npm run build:bin", 11 | "build:ts": "npx tsc -outDir dist", 12 | "build:bin": "npx pkg package.json --compress GZip -o plugin/com.genshin.deck" 13 | }, 14 | "pkg": { 15 | "targets": [ 16 | "node16-windows-x64" 17 | ], 18 | "assets": [ 19 | "./node_modules/canvas/build/Release/*", 20 | "./images" 21 | ] 22 | }, 23 | "dependencies": { 24 | "@stream-deck-for-node/sdk": "1.0.15", 25 | "axios": "^0.25.0", 26 | "canvas": "^2.9.0", 27 | "crypto-js": "^4.1.1", 28 | "file-system-cache": "^2.0.0", 29 | "lodash.uniqby": "^4.7.0", 30 | "timediff": "^1.1.1" 31 | }, 32 | "devDependencies": { 33 | "@types/crypto-js": "^4.1.0", 34 | "@types/lodash.uniqby": "^4.7.7", 35 | "@types/node": "^16.11.12", 36 | "pkg": "^5.7.0", 37 | "prettier": "^2.7.1", 38 | "ts-node": "^10.4.0", 39 | "typescript": "^4.5.3" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/actions/transformer.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | SettingsChanged, 8 | } from '@stream-deck-for-node/sdk'; 9 | import { sd } from '../index'; 10 | import { PluginSettings, RecoveryTime } from '../interfaces'; 11 | 12 | interface TransformerSettings { 13 | style: 'icon' | 'text'; 14 | } 15 | 16 | const calcTime = ({ Day, Hour, Minute }: RecoveryTime) => { 17 | const hours = Hour ? `${Hour}h` : ''; 18 | const minutes = Minute ? `${Minute}m` : ''; 19 | if (Day) { 20 | return `-${Day}d ${hours}`; 21 | } else if (Hour) { 22 | return `-${hours} ${minutes}`; 23 | } else { 24 | return `-${minutes}`; 25 | } 26 | }; 27 | 28 | @Action('transformer', { m: 1 }) 29 | export class TransformerAction extends BaseAction { 30 | updateTile(context: string) { 31 | const settings = sd.getSettings(context); 32 | const { transformer } = sd.pluginSettings.daily || {}; 33 | const recovery = transformer?.recovery_time; 34 | if (!recovery) { 35 | return; 36 | } 37 | sd.setState(context, recovery.reached && settings.style === 'icon' ? 1 : 0); 38 | sd.setTitle( 39 | context, 40 | recovery.reached ? (settings.style === 'icon' ? '' : 'ready') : calcTime(recovery).trim(), 41 | ); 42 | } 43 | 44 | onPeriodicUpdate() { 45 | this.contexts.forEach(this.updateTile); 46 | } 47 | 48 | onSingleTap(e: KeyEvent) { 49 | this.updateTile(e.context); 50 | } 51 | 52 | async onAppear(e: AppearDisappearEvent) { 53 | this.updateTile(e.context); 54 | } 55 | 56 | async onSettingsChanged(e: SettingsChanged) { 57 | this.updateTile(e.context); 58 | } 59 | 60 | async onPluginSettingsChanged(e: PluginSettingsChanged) { 61 | if (!e.changedKeys.includes('daily')) { 62 | return; 63 | } 64 | this.contexts.forEach(this.updateTile); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/actions/daily-reward.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { sd } from '../index'; 9 | import { createCanvas, loadImage } from 'canvas'; 10 | import { readFileSync } from 'fs'; 11 | import { join } from 'path'; 12 | import { claimReward, getTodayReward } from '../api/hoyolab'; 13 | 14 | @Action('daily-reward') 15 | export class DailyReward extends BaseAction { 16 | async renderReward(context: string, image: string, claimed: boolean) { 17 | const canvas = createCanvas(128, 128); 18 | const ctx = canvas.getContext('2d'); 19 | const icon = await loadImage(image!); 20 | const bg = await loadImage(readFileSync(join(__dirname, '../../images/daily.png'))); 21 | ctx.drawImage(bg, 0, 0, 128, 128); 22 | ctx.drawImage(icon, 9, 9, 110, 110); 23 | if (claimed) { 24 | const done = await loadImage(readFileSync(join(__dirname, '../../images/done.png'))); 25 | ctx.drawImage(done, 9, 9, 110, 110); 26 | } 27 | sd.setImage(context, canvas.toDataURL()); 28 | } 29 | 30 | async refreshAction(context: string) { 31 | const [claimed, icon] = await getTodayReward(sd.pluginSettings.authentication); 32 | await this.renderReward(context, icon, claimed); 33 | } 34 | 35 | async onAppear(e: AppearDisappearEvent) { 36 | await this.refreshAction(e.context); 37 | } 38 | 39 | onPluginSettingsChanged(e: PluginSettingsChanged) { 40 | if (e.changedKeys.includes('authentication')) { 41 | this.contexts.forEach((ctx) => this.refreshAction(ctx)); 42 | } 43 | } 44 | 45 | async onSingleTap(e: KeyEvent) { 46 | const { retcode } = await claimReward(sd.pluginSettings.authentication); 47 | if (retcode === -5003) { 48 | sd.showAlert(e.context); 49 | } else { 50 | sd.showOk(e.context); 51 | } 52 | await this.refreshAction(e.context); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Genshin Deck 2 | Genshin Impact Stream Deck's plugin 3 | 4 | Actions for Live Resin, Spiral Abyss, Daily Commissions, Expeditions, Wish Banners, etc ... 5 | 6 | [![](https://img.shields.io/badge/Stream%20Deck%20SDK-for%20Node.js-green)](https://github.com/stream-deck-for-node/sdk) 7 | [![Publish Stream Deck plugin package](https://github.com/fcannizzaro/genshin-deck/actions/workflows/build-package-plugin.yml/badge.svg)](https://github.com/fcannizzaro/genshin-deck/actions/workflows/build-package-plugin.yml) 8 | 9 | > At this moment this plugin works only with **GENSHIN IMPACT GLOBAL** 10 | 11 | ## Installation 12 | 13 | Download the stream-deck plugin from the [releases](https://github.com/fcannizzaro/genshin-deck/releases) 14 | or from below: 15 | 16 | [![download](https://github.com/fcannizzaro/genshin-deck/blob/main/media/download.png?raw=true)](https://github.com/fcannizzaro/genshin-deck/releases/latest) 17 | 18 | ## All actions 19 | ![actions](https://github.com/fcannizzaro/genshin-deck/blob/main/media/actions.png?raw=true) 20 | 21 | ## Expeditions View 22 | > tap on expeditions' action 23 | > 24 | > ![actions](https://github.com/fcannizzaro/genshin-deck/blob/main/media/expeditions-view.png?raw=true) 25 | 26 | ## Progression Action and View 27 | > single tap show progression resources 28 | > 29 | > long press set character as selected 30 | > 31 | > ![actions](https://github.com/fcannizzaro/genshin-deck/blob/main/media/character-progression.gif?raw=true) 32 | 33 | ## Authentication 34 | 35 | This tool uses the HoYoLAB cookies to obtain the info about your game instance. 36 | 37 | - Remember to set this option in your HoYoLAB account > Battle Chronicles 38 | 39 | ![note](https://github.com/fcannizzaro/genshin-deck/blob/main/media/note.png?raw=true) 40 | 41 | - Configure the uid and tokens 42 | 43 | See [wiki](https://github.com/fcannizzaro/genshin-deck/wiki) 44 | 45 | ## Author 46 | 47 | Francesco Saverio Cannizzaro ([fcannizzaro](https://github.com/fcannizzaro)) 48 | -------------------------------------------------------------------------------- /src/actions/abyss.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { refreshData, sd } from '../index'; 9 | import { createCanvas, loadImage } from 'canvas'; 10 | import { PluginSettings } from '../interfaces'; 11 | import path from 'path'; 12 | import fs from 'fs'; 13 | 14 | const canvas = createCanvas(256, 256); 15 | const ctx = canvas.getContext('2d'); 16 | 17 | ctx.fillStyle = 'white'; 18 | 19 | @Action('abyss', { m: 15 }) 20 | export class AbyssAction extends BaseAction { 21 | async updateTile(context: string) { 22 | let days; 23 | const { stars, end } = sd.pluginSettings?.abyss || {}; 24 | if (!end) { 25 | return sd.showAlert(context); 26 | } 27 | const diff = new Date(end).getTime() - new Date().getTime(); 28 | const missingDays = Math.floor(diff / (1000 * 3600 * 24)); 29 | if (!missingDays) { 30 | days = `-${Math.floor(diff / (1000 * 3600))}h`; 31 | } else { 32 | days = `-${missingDays}d`; 33 | } 34 | const imageBuffer = fs.readFileSync(path.join(__dirname, '../../images/abyss.png')); 35 | const image = await loadImage(imageBuffer); 36 | ctx.drawImage(image, 0, 0, 256, 256); 37 | ctx.font = '84px Verdana'; 38 | const daysText = ctx.measureText(days); 39 | ctx.fillText(days, (256 - daysText.width) / 2, 128); 40 | ctx.font = '42px Verdana'; 41 | const starsText = ctx.measureText(stars); 42 | ctx.fillText(stars, 90 + (121 - starsText.width) / 2, 218); 43 | sd.setImage(context, canvas.toDataURL()); 44 | } 45 | 46 | async onSingleTap(e: KeyEvent) { 47 | sd.showOk(e.context); 48 | await refreshData(); 49 | } 50 | 51 | async onAppear(e: AppearDisappearEvent) { 52 | await this.updateTile(e.context); 53 | } 54 | 55 | async onPluginSettingsChanged(e: PluginSettingsChanged) { 56 | if (!e.changedKeys.includes('abyss')) { 57 | return; 58 | } 59 | this.contexts.forEach(this.updateTile); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /.github/workflows/build-package-plugin.yml: -------------------------------------------------------------------------------- 1 | name: Publish Stream Deck plugin package 2 | on: 3 | workflow_dispatch: 4 | push: 5 | tags-ignore: 6 | - '**' 7 | paths-ignore: 8 | - 'docs/**' 9 | - 'media/**' 10 | 11 | jobs: 12 | build-plugin: 13 | runs-on: windows-latest 14 | steps: 15 | - uses: actions/checkout@v3 16 | - name: Use Node.js 17 | uses: actions/setup-node@v3 18 | with: 19 | node-version: '16.x' 20 | 21 | - name: Use pnpm 22 | uses: pnpm/action-setup@v2.2.2 23 | with: 24 | version: latest 25 | 26 | - name: Install dependencies 27 | run: pnpm install --frozen-lockfile 28 | 29 | - name: Build plugin 30 | run: pnpm build 31 | 32 | - name: Build Property Inspector 33 | run: cd property-inspector && pnpm install --frozen-lockfile && pnpm build 34 | 35 | - name: Rename plugin directory 36 | run: ren plugin com.genshin.deck.sdPlugin 37 | 38 | - uses: suisei-cn/actions-download-file@v1 39 | id: distribution_tool 40 | name: Download Elgato Distribution Tool 41 | with: 42 | url: "https://developer.elgato.com/documentation/stream-deck/distributiontool/DistributionToolWindows.zip" 43 | target: . 44 | 45 | - name: Extract DistributionTool.exe 46 | run: 7z x "${{ steps.distribution_tool.outputs.filename }}" 47 | 48 | - name: Package plugin 49 | run: ./DistributionTool.exe -b -i com.genshin.deck.sdPlugin -o . 50 | 51 | - name: Extract plugin version 52 | id: version 53 | uses: notiz-dev/github-action-json-property@release 54 | with: 55 | path: 'package.json' 56 | prop_path: 'version' 57 | 58 | - name: Publish/Update Release 59 | uses: IsaacShelton/update-existing-release@v1.2.0 60 | with: 61 | token: ${{ secrets.SECRET_TOKEN }} 62 | tag: "${{steps.version.outputs.prop}}" 63 | release: "${{steps.version.outputs.prop}}" 64 | prerelease: true 65 | replace: true 66 | files: ./com.genshin.deck.streamDeckPlugin 67 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { PluginSettings } from './interfaces'; 2 | import './actions/resin'; 3 | import './actions/commission'; 4 | import './actions/expedition'; 5 | import './actions/abyss'; 6 | import './actions/banner'; 7 | import './actions/teapot'; 8 | import './actions/transformer'; 9 | import './actions/daily-reward'; 10 | import './actions/progression'; 11 | import { StreamDeck } from '@stream-deck-for-node/sdk'; 12 | import { fetchAbyss, fetchDaily, progressionCalculator } from './api/hoyolab'; 13 | import { cache } from './util/cache'; 14 | 15 | export const sd = new StreamDeck(); 16 | 17 | export const GenshinView = sd.registerDynamicView('page', 'GenshinDeck'); 18 | 19 | let loading = false; 20 | 21 | export const refreshData = async () => { 22 | // ignore if already running 23 | if (loading) { 24 | return; 25 | } 26 | 27 | // change loading status 28 | loading = true; 29 | // obtain data 30 | try { 31 | const { ltoken, ltuid, uid } = sd.pluginSettings?.authentication || {}; 32 | 33 | console.log(ltoken, ltuid, uid); 34 | 35 | if (ltoken && ltuid && uid) { 36 | // if (!sd.pluginSettings.progression?.length) { 37 | const progression = await progressionCalculator({ 38 | ltoken, 39 | ltuid, 40 | body: { 41 | element_attr_ids: [], 42 | is_all: true, 43 | lang: 'en-us', 44 | page: 1, 45 | size: 100, 46 | weapon_cat_ids: [], 47 | }, 48 | }); 49 | 50 | sd.setPluginSettings({ progression }); 51 | 52 | const [daily, abyss]: any = await Promise.all([ 53 | fetchDaily({ ltoken, ltuid, uid }), 54 | fetchAbyss({ ltoken, ltuid, uid }), 55 | ]); 56 | sd.setPluginSettings({ 57 | daily: daily || {}, 58 | abyss: abyss || {}, 59 | }); 60 | } 61 | } catch (e) { 62 | // ignore request 63 | } 64 | // change loading status 65 | loading = false; 66 | }; 67 | 68 | process.on('uncaughtException', (e) => { 69 | console.log(e); 70 | sd.logMessage('ERROR: ' + e.message); 71 | }); 72 | 73 | const init = async () => { 74 | await sd.ready(); 75 | await cache.load(); 76 | await refreshData(); 77 | setInterval(refreshData, 1000 * 60); 78 | }; 79 | 80 | init().then(); 81 | -------------------------------------------------------------------------------- /src/actions/banner.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | SettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { sd } from '../index'; 9 | import { createCanvas, loadImage } from 'canvas'; 10 | import axios from 'axios'; 11 | import { fetchBanner } from '../api/gist'; 12 | 13 | const timeDiff = require('timediff'); 14 | 15 | const canvas = createCanvas(256, 256); 16 | const ctx = canvas.getContext('2d'); 17 | ctx.textAlign = 'center'; 18 | 19 | interface BannerSettings { 20 | banner: 'weapon' | 'character'; 21 | } 22 | 23 | @Action('banner', { m: 15 }) 24 | export class BannerAction extends BaseAction { 25 | cache: Record = {}; 26 | 27 | async updateTile(context: string) { 28 | const wishes = await fetchBanner(); 29 | const bannerType = sd.getSettings(context)?.banner; 30 | const banner = wishes.find((it) => it.type === bannerType); 31 | 32 | if (!banner) { 33 | return; 34 | } 35 | 36 | const { image, end } = banner; 37 | const diff = timeDiff(end * 1000, new Date(), 'DHm'); 38 | const title = `${Math.abs(diff.days)}d ${Math.abs(diff.hours)}h`; 39 | 40 | if (!this.cache[image]) { 41 | // download image 42 | const { data } = await axios({ url: image, responseType: 'arraybuffer' }); 43 | 44 | // cache image 45 | this.cache[image] = await loadImage(Buffer.from(data, 'binary')); 46 | } 47 | 48 | const imageRes = this.cache[image]; 49 | const width = (imageRes.width * 256) / imageRes.height; 50 | ctx.drawImage(imageRes, -(width - 256) / (bannerType === 'weapon' ? 2 : 3), 0, width, 256); 51 | ctx.font = '42px Verdana'; 52 | ctx.fillStyle = 'black'; 53 | ctx.fillRect(0, 160, 256, 70); 54 | ctx.fillStyle = 'white'; 55 | ctx.fillText(title, 128, 210); 56 | sd.setImage(context, canvas.toDataURL()); 57 | } 58 | 59 | async onAppear(e: AppearDisappearEvent) { 60 | await this.updateTile(e.context); 61 | } 62 | 63 | onPeriodicUpdate() { 64 | this.contexts.forEach((ctx) => this.updateTile(ctx)); 65 | } 66 | 67 | async onSingleTap(e: KeyEvent) { 68 | sd.showOk(e.context); 69 | await this.updateTile(e.context); 70 | } 71 | 72 | async onSettingsChanged(e: SettingsChanged) { 73 | await this.updateTile(e.context); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/actions/expedition.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | PluginSettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { GenshinView, sd } from '../index'; 9 | import { PluginSettings } from '../interfaces'; 10 | import { createCanvas, loadImage } from 'canvas'; 11 | import { readFileSync } from 'fs'; 12 | import { join } from 'path'; 13 | import { DeviceType } from '@stream-deck-for-node/sdk/lib/types/interfaces'; 14 | 15 | @Action('expedition') 16 | export class ExpeditionAction extends BaseAction { 17 | updateTile(context: string) { 18 | const { expeditions = [] } = sd.pluginSettings.daily || {}; 19 | const completed = expeditions.filter((it: any) => it.status != 'Ongoing').length; 20 | sd.setTitle(context, `${completed} / ${expeditions.length}`); 21 | } 22 | 23 | async renderExpedition(image: string, completed: boolean, time: number) { 24 | const canvas = createCanvas(128, 128); 25 | const ctx = canvas.getContext('2d'); 26 | ctx.font = '24px Verdana'; 27 | ctx.fillStyle = 'white'; 28 | 29 | // load image 30 | const imgRes = await loadImage(image!); 31 | const imageBuffer = readFileSync( 32 | join(__dirname, `../../images/${completed ? 'completed' : 'progress'}.png`), 33 | ); 34 | const bg = await loadImage(imageBuffer); 35 | // draw images 36 | ctx.fillRect(0, 0, 128, 128); 37 | ctx.drawImage(bg, 0, 0, 128, 128); 38 | ctx.drawImage(imgRes, 0, 0, 128, 128); 39 | // calc and print remaining time 40 | let hours = time / 3600; 41 | const minutes = Math.round((hours - Math.floor(hours)) * 10); 42 | hours = Math.floor(hours); 43 | let text = minutes ? `-${minutes}m` : 'done'; 44 | if (hours) { 45 | text = `-${hours}h ${minutes ? minutes + 'm' : ''}`; 46 | } 47 | text = text.trim(); 48 | const textMeasure = ctx.measureText(text); 49 | ctx.fillText(text, (128 - textMeasure.width) / 2, 28); 50 | return canvas.toDataURL(); 51 | } 52 | 53 | async onSingleTap(e: KeyEvent) { 54 | const device = sd.info.devices.find((it) => it.id === e.device)!; 55 | const dv = GenshinView.show(device, [DeviceType.StreamDeckMini]); 56 | dv?.clear(); 57 | 58 | const { expeditions = [] } = sd.pluginSettings.daily || {}; 59 | 60 | if (!dv) { 61 | return; 62 | } 63 | 64 | const geometry = dv.geometry; 65 | const [mappable] = geometry.mappable('bottomLeft', 'bottomRight'); 66 | 67 | mappable.map(async (index, i) => { 68 | const item = expeditions[i]; 69 | dv.update(index, { 70 | image: item 71 | ? await this.renderExpedition( 72 | item.avatar_side_icon, 73 | item.status !== 'Ongoing', 74 | item.remained_time, 75 | ) 76 | : undefined, 77 | }); 78 | }); 79 | 80 | dv.update(geometry.bottomLeft, { 81 | image: join(__dirname, '../../images/character-back.png'), 82 | onSingleTap: () => dv.hide(), 83 | }); 84 | } 85 | 86 | async onAppear(e: AppearDisappearEvent) { 87 | this.updateTile(e.context); 88 | } 89 | 90 | async onPluginSettingsChanged(e: PluginSettingsChanged) { 91 | if (!e.changedKeys.includes('daily')) { 92 | return; 93 | } 94 | this.contexts.forEach(this.updateTile); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /property-inspector/src/hooks/stream-deck.js: -------------------------------------------------------------------------------- 1 | import React, { useContext, useEffect, useState } from 'react'; 2 | 3 | let ws; 4 | 5 | const StreamDeckContext = React.createContext(undefined); 6 | 7 | const send = (event, data) => { 8 | ws.send( 9 | JSON.stringify({ 10 | event, 11 | ...data, 12 | }), 13 | ); 14 | }; 15 | 16 | export const StreamDeckProvider = ({ children, registration }) => { 17 | const [state, setState] = useState(undefined); 18 | const [settings, setSettings] = useState({}); 19 | const [globalSettings, setGlobalSettings] = useState(null); 20 | 21 | useEffect(() => { 22 | ws = new WebSocket('ws://localhost:' + registration.port); 23 | 24 | ws.onopen = () => { 25 | send(registration.registerEvent, { uuid: registration.uuid }); 26 | send('getSettings', { context: registration.uuid }); 27 | send('getGlobalSettings', { context: registration.uuid }); 28 | setState({ 29 | uuid: registration.uuid, 30 | info: registration.info, 31 | action: registration.actionInfo.action, 32 | context: registration.actionInfo.context, 33 | device: registration.actionInfo.device, 34 | coordinates: registration.actionInfo.payload.coordinates, 35 | }); 36 | setSettings(registration.actionInfo.payload.settings); 37 | }; 38 | 39 | ws.onmessage = ({ data }) => { 40 | const { event, payload } = JSON.parse(data); 41 | if (event === 'didReceiveSettings') { 42 | setSettings(payload.settings); 43 | } else if (event === 'didReceiveGlobalSettings') { 44 | setGlobalSettings(payload.settings); 45 | } 46 | }; 47 | }, [registration]); 48 | 49 | const providerValue = { 50 | ...state, 51 | settings, 52 | globalSettings, 53 | setSettings, 54 | setGlobalSettings, 55 | }; 56 | 57 | return {children}; 58 | }; 59 | 60 | export const useStreamDeck = () => useContext(StreamDeckContext); 61 | 62 | export const useSendToPlugin = () => { 63 | const sd = useStreamDeck(); 64 | return (payload) => 65 | send('sendToPlugin', { 66 | action: sd?.action, 67 | context: sd?.uuid, 68 | payload: payload, 69 | }); 70 | }; 71 | 72 | export const useSettings = () => { 73 | const sd = useStreamDeck(); 74 | const setSettings = (payload) => { 75 | const newSettings = { 76 | ...sd.settings, 77 | ...payload, 78 | }; 79 | send('setSettings', { 80 | action: sd?.action, 81 | context: sd?.uuid, 82 | payload: newSettings, 83 | }); 84 | sd.setSettings(newSettings); 85 | }; 86 | return [sd?.settings || {}, setSettings]; 87 | }; 88 | 89 | export const useGlobalSettings = () => { 90 | const sd = useStreamDeck(); 91 | const setGlobalSettings = (payload) => { 92 | const newSettings = { 93 | ...sd.globalSettings, 94 | ...payload, 95 | }; 96 | send('setGlobalSettings', { 97 | action: sd?.action, 98 | context: sd?.uuid, 99 | payload: { 100 | ...sd.globalSettings, 101 | ...payload, 102 | }, 103 | }); 104 | sd.setGlobalSettings(newSettings); 105 | }; 106 | return [sd?.globalSettings, setGlobalSettings]; 107 | }; 108 | -------------------------------------------------------------------------------- /property-inspector/src/App.js: -------------------------------------------------------------------------------- 1 | import { Actions } from './actions'; 2 | import { useGlobalSettings, useStreamDeck } from './hooks/stream-deck'; 3 | import { SettingsBox } from './components/SettingsBox'; 4 | import { SettingsHeader } from './components/SettingsHeader'; 5 | import styled from 'styled-components'; 6 | import { useState } from 'react'; 7 | import HoYoLab from './images/hoyolab.png'; 8 | import { darken } from 'polished'; 9 | import { Gesture } from './components/Gesture'; 10 | 11 | function SimpleBox({ message }) { 12 | return ( 13 | 14 | 15 | {message} 16 | 17 | 18 | ); 19 | } 20 | 21 | const TextInput = styled.input` 22 | background: transparent; 23 | opacity: 0.7; 24 | outline: none; 25 | color: white; 26 | border-radius: 30px; 27 | width: calc(100% - 44px); 28 | margin-left: 4px; 29 | resize: none; 30 | margin-bottom: 12px; 31 | padding: 8px 16px; 32 | transition: all 0.3s; 33 | border: 2px solid #242734; 34 | 35 | &:first-of-type { 36 | margin-top: 12px; 37 | } 38 | 39 | &:focus, 40 | &:hover { 41 | opacity: 1; 42 | border-color: #657ef8; 43 | } 44 | `; 45 | 46 | const BlockDisplay = styled.div` 47 | background: #0c0f1d; 48 | background-size: cover; 49 | margin-top: 8px; 50 | width: calc(100% - 18px); 51 | 52 | & > div { 53 | padding: 0 8px; 54 | } 55 | 56 | & > div:first-of-type { 57 | background: #1b1d2a; 58 | cursor: pointer; 59 | padding: 12px 0; 60 | display: flex; 61 | justify-content: center; 62 | align-items: center; 63 | transition: all 0.3s; 64 | opacity: 0.7; 65 | 66 | & img { 67 | max-height: 24px; 68 | } 69 | 70 | &:hover { 71 | opacity: 1; 72 | } 73 | } 74 | 75 | display: block; 76 | `; 77 | 78 | const Spaced = styled.div` 79 | margin-top: 8px; 80 | `; 81 | 82 | const Collapsed = styled.div` 83 | height: ${(p) => (p.collapsed ? 0 : 'auto')}; 84 | overflow: hidden; 85 | display: flex; 86 | flex-direction: column; 87 | justify-content: center; 88 | align-items: center; 89 | 90 | & button { 91 | margin-top: 12px; 92 | background: #657ef8; 93 | color: white; 94 | text-align: center; 95 | padding: 8px; 96 | width: calc(100% - 16px); 97 | border-radius: 16px; 98 | border: none; 99 | transition: all 0.3s; 100 | outline: none !important; 101 | 102 | &:hover { 103 | cursor: pointer; 104 | background: ${darken(0.05, '#657ef8')}; 105 | } 106 | } 107 | `; 108 | 109 | function Authentication({ authentication = {}, setSettings }) { 110 | const [collapsed, setCollapsed] = useState(authentication?.uuid); 111 | return ( 112 | 113 |
setCollapsed(!collapsed)}> 114 | HoYoLab 115 |
116 | 117 | 120 | 121 | setSettings({ uid: e.target.value })} 125 | /> 126 | setSettings({ ltuid: e.target.value })} 131 | /> 132 | setSettings({ ltoken: e.target.value })} 137 | /> 138 | 139 |
140 | ); 141 | } 142 | 143 | function App() { 144 | const { action, info } = useStreamDeck(); 145 | const [pluginSettings, setPluginSettings] = useGlobalSettings(); 146 | const shortAction = action?.replace(`${info?.plugin.uuid}.`, ''); 147 | const Action = Actions[shortAction]; 148 | 149 | const authentication = pluginSettings?.['authentication']; 150 | 151 | return ( 152 |
153 |
154 |
155 | {!action ? : Action ? : <>} 156 | {!!pluginSettings && shortAction !== 'banner' && ( 157 | 160 | setPluginSettings({ 161 | authentication: { 162 | ...authentication, 163 | ...auth, 164 | }, 165 | }) 166 | } 167 | /> 168 | )} 169 |
170 | 171 | 172 | 173 |
174 | ); 175 | } 176 | 177 | export default App; 178 | -------------------------------------------------------------------------------- /plugin/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "uuid": "com.genshin.deck", 3 | "Name": "Genshin Deck", 4 | "Author": "fcannizzaro", 5 | "Description": "Utilities Actions for Genshin Impact", 6 | "Icon": "./icons/pluginIcon", 7 | "Version": "1.0.6", 8 | "CodePath": "com.genshin.deck.exe", 9 | "PropertyInspectorPath": "pi/index.html", 10 | "SDKVersion": 2, 11 | "Profiles": [ 12 | { 13 | "Name": "GenshinDeck", 14 | "ReadOnly": true, 15 | "DeviceType": 0, 16 | "DontAutoSwitchWhenInstalled": true 17 | }, 18 | { 19 | "Name": "GenshinDeckMini", 20 | "ReadOnly": true, 21 | "DeviceType": 1, 22 | "DontAutoSwitchWhenInstalled": true 23 | }, 24 | { 25 | "Name": "GenshinDeckXL", 26 | "ReadOnly": true, 27 | "DeviceType": 2, 28 | "DontAutoSwitchWhenInstalled": true 29 | }, 30 | { 31 | "Name": "GenshinDeck", 32 | "ReadOnly": true, 33 | "DeviceType": 3, 34 | "DontAutoSwitchWhenInstalled": true 35 | } 36 | ], 37 | "Software": { 38 | "MinimumVersion": "5.0" 39 | }, 40 | "OS": [ 41 | { 42 | "Platform": "windows", 43 | "MinimumVersion": "10" 44 | } 45 | ], 46 | "Category": "Genshin Deck", 47 | "CategoryIcon": "icons/category", 48 | "Actions": [ 49 | { 50 | "Icon": "icons/resinIcon", 51 | "Name": "Resin Counter", 52 | "States": [ 53 | { 54 | "TitleAlignment": "middle", 55 | "TitleColor": "white", 56 | "Image": "icons/resinState" 57 | } 58 | ], 59 | "Tooltip": "Resin Counter", 60 | "UUID": "com.genshin.deck.resin" 61 | }, 62 | { 63 | "Icon": "icons/abyssIcon", 64 | "Name": "Spiral Abyss", 65 | "States": [ 66 | { 67 | "Image": "icons/abyssState" 68 | } 69 | ], 70 | "Tooltip": "Spiral Abyss", 71 | "UUID": "com.genshin.deck.abyss" 72 | }, 73 | { 74 | "Icon": "icons/commissionIcon", 75 | "Name": "Commissions", 76 | "States": [ 77 | { 78 | "TitleAlignment": "middle", 79 | "TitleColor": "white", 80 | "Image": "icons/commissionState" 81 | } 82 | ], 83 | "Tooltip": "Commissions", 84 | "UUID": "com.genshin.deck.commission" 85 | }, 86 | { 87 | "Icon": "icons/expeditionIcon", 88 | "Name": "Expeditions", 89 | "States": [ 90 | { 91 | "TitleAlignment": "middle", 92 | "TitleColor": "white", 93 | "Image": "icons/expeditionState" 94 | } 95 | ], 96 | "Tooltip": "Expeditions", 97 | "UUID": "com.genshin.deck.expedition" 98 | }, 99 | { 100 | "Icon": "icons/bannerIcon", 101 | "Name": "Wish Banner", 102 | "States": [ 103 | { 104 | "TitleAlignment": "middle", 105 | "TitleColor": "white", 106 | "Image": "icons/bannerState" 107 | } 108 | ], 109 | "Tooltip": "Wish Banner", 110 | "UUID": "com.genshin.deck.banner" 111 | }, 112 | { 113 | "Icon": "icons/teapotIcon", 114 | "Name": "Teapot Counter", 115 | "States": [ 116 | { 117 | "TitleAlignment": "middle", 118 | "TitleColor": "white", 119 | "Image": "icons/teapotState" 120 | } 121 | ], 122 | "Tooltip": "Teapot Counter", 123 | "UUID": "com.genshin.deck.teapot" 124 | }, 125 | { 126 | "Icon": "icons/transformerIcon", 127 | "Name": "Parametric Transformer", 128 | "States": [ 129 | { 130 | "TitleAlignment": "middle", 131 | "TitleColor": "white", 132 | "Image": "icons/transformerState" 133 | }, 134 | { 135 | "Image": "icons/transformerReadyState" 136 | } 137 | ], 138 | "Tooltip": "Parametric Transformer", 139 | "UUID": "com.genshin.deck.transformer" 140 | }, 141 | { 142 | "Icon": "icons/rewardIcon", 143 | "Name": "Claim Daily Reward", 144 | "States": [ 145 | { 146 | "TitleAlignment": "middle", 147 | "TitleColor": "white", 148 | "Image": "icons/rewardState" 149 | } 150 | ], 151 | "Tooltip": "Daily Reward", 152 | "UUID": "com.genshin.deck.daily-reward" 153 | }, 154 | { 155 | "Icon": "icons/characterIcon", 156 | "Name": "Character Progression", 157 | "States": [ 158 | { 159 | "Image": "icons/characterState" 160 | } 161 | ], 162 | "Tooltip": "Character Leveling resources", 163 | "UUID": "com.genshin.deck.progression" 164 | }, 165 | { 166 | "Name": "Tile", 167 | "States": [ 168 | { 169 | "Image": "icons/pageState", 170 | "TitleAlignment": "middle", 171 | "FontSize": "10" 172 | } 173 | ], 174 | "SupportedInMultiActions": false, 175 | "VisibleInActionsList": false, 176 | "UUID": "com.genshin.deck.page" 177 | } 178 | ] 179 | } 180 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/jetbrains+all,node 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains+all,node 4 | 5 | ### JetBrains+all ### 6 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 7 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 8 | 9 | # User-specific stuff 10 | .idea/**/workspace.xml 11 | .idea/**/tasks.xml 12 | .idea/**/usage.statistics.xml 13 | .idea/**/dictionaries 14 | .idea/**/shelf 15 | 16 | # AWS User-specific 17 | .idea/**/aws.xml 18 | 19 | # Generated files 20 | .idea/**/contentModel.xml 21 | 22 | # Sensitive or high-churn files 23 | .idea/**/dataSources/ 24 | .idea/**/dataSources.ids 25 | .idea/**/dataSources.local.xml 26 | .idea/**/sqlDataSources.xml 27 | .idea/**/dynamic.xml 28 | .idea/**/uiDesigner.xml 29 | .idea/**/dbnavigator.xml 30 | 31 | # Gradle 32 | .idea/**/gradle.xml 33 | .idea/**/libraries 34 | 35 | # Gradle and Maven with auto-import 36 | # When using Gradle or Maven with auto-import, you should exclude module files, 37 | # since they will be recreated, and may cause churn. Uncomment if using 38 | # auto-import. 39 | # .idea/artifacts 40 | # .idea/compiler.xml 41 | # .idea/jarRepositories.xml 42 | # .idea/modules.xml 43 | # .idea/*.iml 44 | # .idea/modules 45 | # *.iml 46 | # *.ipr 47 | 48 | # CMake 49 | cmake-build-*/ 50 | 51 | # Mongo Explorer plugin 52 | .idea/**/mongoSettings.xml 53 | 54 | # File-based project format 55 | *.iws 56 | 57 | # IntelliJ 58 | out/ 59 | 60 | # mpeltonen/sbt-idea plugin 61 | .idea_modules/ 62 | 63 | # JIRA plugin 64 | atlassian-ide-plugin.xml 65 | 66 | # Cursive Clojure plugin 67 | .idea/replstate.xml 68 | 69 | # SonarLint plugin 70 | .idea/sonarlint/ 71 | 72 | # Crashlytics plugin (for Android Studio and IntelliJ) 73 | com_crashlytics_export_strings.xml 74 | crashlytics.properties 75 | crashlytics-build.properties 76 | fabric.properties 77 | 78 | # Editor-based Rest Client 79 | .idea/httpRequests 80 | 81 | # Android studio 3.1+ serialized cache file 82 | .idea/caches/build_file_checksums.ser 83 | 84 | ### JetBrains+all Patch ### 85 | # Ignores the whole .idea folder and all .iml files 86 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 87 | 88 | .idea/* 89 | 90 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 91 | 92 | *.iml 93 | modules.xml 94 | .idea/misc.xml 95 | *.ipr 96 | 97 | # Sonarlint plugin 98 | .idea/sonarlint 99 | 100 | ### Node ### 101 | # Logs 102 | logs 103 | *.log 104 | npm-debug.log* 105 | yarn-debug.log* 106 | yarn-error.log* 107 | lerna-debug.log* 108 | .pnpm-debug.log* 109 | 110 | # Diagnostic reports (https://nodejs.org/api/report.html) 111 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 112 | 113 | # Runtime data 114 | pids 115 | *.pid 116 | *.seed 117 | *.pid.lock 118 | 119 | # Directory for instrumented libs generated by jscoverage/JSCover 120 | lib-cov 121 | 122 | # Coverage directory used by tools like istanbul 123 | coverage 124 | *.lcov 125 | 126 | # nyc test coverage 127 | .nyc_output 128 | 129 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 130 | .grunt 131 | 132 | # Bower dependency directory (https://bower.io/) 133 | bower_components 134 | 135 | # node-waf configuration 136 | .lock-wscript 137 | 138 | # Compiled binary addons (https://nodejs.org/api/addons.html) 139 | build/Release 140 | 141 | # Dependency directories 142 | node_modules/ 143 | jspm_packages/ 144 | 145 | # Snowpack dependency directory (https://snowpack.dev/) 146 | web_modules/ 147 | 148 | # TypeScript cache 149 | *.tsbuildinfo 150 | 151 | # Optional npm cache directory 152 | .npm 153 | 154 | # Optional eslint cache 155 | .eslintcache 156 | 157 | # Optional stylelint cache 158 | .stylelintcache 159 | 160 | # Microbundle cache 161 | .rpt2_cache/ 162 | .rts2_cache_cjs/ 163 | .rts2_cache_es/ 164 | .rts2_cache_umd/ 165 | 166 | # Optional REPL history 167 | .node_repl_history 168 | 169 | # Output of 'npm pack' 170 | *.tgz 171 | 172 | # Yarn Integrity file 173 | .yarn-integrity 174 | 175 | # dotenv environment variable files 176 | .env 177 | .env.development.local 178 | .env.test.local 179 | .env.production.local 180 | .env.local 181 | 182 | # parcel-bundler cache (https://parceljs.org/) 183 | .cache 184 | .parcel-cache 185 | 186 | # Next.js build output 187 | .next 188 | out 189 | 190 | # Nuxt.js build / generate output 191 | .nuxt 192 | dist 193 | 194 | # Gatsby files 195 | .cache/ 196 | # Comment in the public line in if your project uses Gatsby and not Next.js 197 | # https://nextjs.org/blog/next-9-1#public-directory-support 198 | # public 199 | 200 | # vuepress build output 201 | .vuepress/dist 202 | 203 | # vuepress v2.x temp and cache directory 204 | .temp 205 | 206 | # Docusaurus cache and generated files 207 | .docusaurus 208 | 209 | # Serverless directories 210 | .serverless/ 211 | 212 | # FuseBox cache 213 | .fusebox/ 214 | 215 | # DynamoDB Local files 216 | .dynamodb/ 217 | 218 | # TernJS port file 219 | .tern-port 220 | 221 | # Stores VSCode versions used for testing VSCode extensions 222 | .vscode-test 223 | 224 | # yarn v2 225 | .yarn/cache 226 | .yarn/unplugged 227 | .yarn/build-state.yml 228 | .yarn/install-state.gz 229 | .pnp.* 230 | 231 | ### Node Patch ### 232 | # Serverless Webpack directories 233 | .webpack/ 234 | 235 | # Optional stylelint cache 236 | 237 | # SvelteKit build / generate output 238 | .svelte-kit 239 | 240 | # End of https://www.toptal.com/developers/gitignore/api/jetbrains+all,node 241 | 242 | # ignore executables 243 | *.exe 244 | pi/ 245 | 246 | .idea 247 | -------------------------------------------------------------------------------- /src/api/hoyolab.ts: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | import CryptoJS from 'crypto-js'; 3 | import { sd } from '../index'; 4 | 5 | const OS_DS_SALT = '6cqshh5dhw73bzxn20oexa9k516chk7s'; 6 | 7 | const asciiLetters = () => { 8 | const length = 26; 9 | let i = 65; 10 | return [...Array(length + 6 + length)] 11 | .map((_, idx) => String.fromCharCode(i + idx)) 12 | .filter((it) => /[a-zA-Z]+/g.test(it)); 13 | }; 14 | 15 | const randomPick = (values: string[], count: number) => { 16 | const out: string[] = []; 17 | while (out.length < count) { 18 | const picked = values[Math.floor(Math.random() * values.length)]; 19 | if (!out.includes(picked)) { 20 | out.push(picked); 21 | } 22 | } 23 | return out; 24 | }; 25 | 26 | const generate_ds = () => { 27 | const t = Math.floor(new Date().getTime() / 1000); 28 | const r = randomPick(asciiLetters(), 6).join(''); 29 | const md5Hash = CryptoJS.MD5(`salt=${OS_DS_SALT}&t=${t}&r=${r}`); 30 | return `${t},${r},${md5Hash.toString()}`; 31 | }; 32 | 33 | const SHARED_HEADERS = { 34 | 'user-agent': 35 | 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36', 36 | 'x-rpc-app_version': '1.5.0', 37 | 'x-rpc-client_type': '4', 38 | 'x-rpc-language': 'en-us', 39 | }; 40 | 41 | const SERVER_PREFIX = { 42 | '1': 'cn_gf01', 43 | '2': 'cn_gf01', 44 | '5': 'cn_qd01', 45 | '6': 'os_usa', 46 | '7': 'os_euro', 47 | '8': 'os_asia', 48 | '9': 'os_cht', 49 | }; 50 | 51 | export const fetchDaily = async ({ ltoken, ltuid, uid }: any) => { 52 | try { 53 | const res = await axios( 54 | `https://bbs-api-os.mihoyo.com:443/game_record/genshin/api/dailyNote?server=${ 55 | SERVER_PREFIX[uid[0]] 56 | }&role_id=${uid}`, 57 | { 58 | headers: { 59 | Cookie: `ltoken=${ltoken}; ltuid=${ltuid}`, 60 | ds: generate_ds(), 61 | ...SHARED_HEADERS, 62 | }, 63 | }, 64 | ); 65 | return res.data.data; 66 | } catch (e) { 67 | console.log(e); 68 | return null; 69 | } 70 | }; 71 | 72 | export const fetchAbyss = async ({ ltoken, ltuid, uid }: any) => { 73 | try { 74 | const res = await axios( 75 | `https://bbs-api-os.mihoyo.com:443/game_record/genshin/api/spiralAbyss?server=${ 76 | SERVER_PREFIX[uid[0]] 77 | }&role_id=${uid}&schedule_type=1`, 78 | { 79 | headers: { 80 | Cookie: `ltoken=${ltoken}; ltuid=${ltuid}`, 81 | ds: generate_ds(), 82 | ...SHARED_HEADERS, 83 | }, 84 | }, 85 | ); 86 | const data = res.data.data; 87 | return { 88 | stars: data.total_star.toString(), 89 | end: parseInt(data.end_time) * 1000, 90 | }; 91 | } catch (e) { 92 | return null; 93 | } 94 | }; 95 | 96 | const dailyRewardRequest = async ({ ltoken, ltuid, method, path }: any) => { 97 | try { 98 | const res = await axios( 99 | `https://sg-hk4e-api.hoyolab.com/event/sol/${path}?act_id=e202102251931481&lang=en-us`, 100 | { 101 | method, 102 | headers: { 103 | Cookie: `ltoken=${ltoken}; ltuid=${ltuid}`, 104 | ds: generate_ds(), 105 | ...SHARED_HEADERS, 106 | }, 107 | }, 108 | ); 109 | return res.data?.data; 110 | } catch (e) { 111 | return null; 112 | } 113 | }; 114 | 115 | export const getCharacterSkills = async ( 116 | avatar_id: number, 117 | element_attr_id: number, 118 | { ltoken, ltuid }: any, 119 | ) => { 120 | const res = await axios.get( 121 | `https://sg-public-api.hoyolab.com/event/calculateos/avatar/skill_list?avatar_id=${avatar_id}&element_attr_id=${element_attr_id}&lang=en-us`, 122 | { 123 | headers: { 124 | Cookie: `ltoken=${ltoken}; ltuid=${ltuid}`, 125 | ...SHARED_HEADERS, 126 | }, 127 | }, 128 | ); 129 | return res.data.data.list; 130 | }; 131 | 132 | export const progressionCalculator = async ({ ltoken, ltuid, path = 'avatar/list', body }: any) => { 133 | try { 134 | const res = await axios.post( 135 | 'https://sg-public-api.hoyolab.com/event/calculateos/' + path, 136 | body, 137 | { 138 | headers: { 139 | Cookie: `ltoken=${ltoken}; ltuid=${ltuid}`, 140 | ...SHARED_HEADERS, 141 | }, 142 | }, 143 | ); 144 | const data = res.data?.data; 145 | return data?.list ?? data; 146 | } catch (e) { 147 | console.log(e); 148 | return null; 149 | } 150 | }; 151 | 152 | export const getCharacterDetails = async ( 153 | avatar_id: number, 154 | element_attr_id: number, 155 | ): Promise => { 156 | const { authentication } = sd.pluginSettings; 157 | const skills = await getCharacterSkills(avatar_id, element_attr_id, authentication); 158 | try { 159 | const { avatar_consume, avatar_skill_consume } = await progressionCalculator({ 160 | ...authentication, 161 | path: 'compute', 162 | body: { 163 | avatar_id, 164 | avatar_level_current: 1, 165 | avatar_level_target: 90, 166 | element_attr_id, 167 | skill_list: skills.map((it: any) => ({ 168 | id: it.group_id, 169 | level_current: 1, 170 | level_target: it.max_level, 171 | })), 172 | weapon: {}, 173 | reliquary_list: [], 174 | lang: 'en-us', 175 | }, 176 | }); 177 | return [...avatar_consume, ...avatar_skill_consume]; 178 | } catch (e) { 179 | console.log(e); 180 | return []; 181 | } 182 | }; 183 | 184 | export const getTodayReward = async ({ ltoken, ltuid }: any) => { 185 | const dailyInfo = await dailyRewardRequest({ ltoken, ltuid, path: 'info' }); 186 | const { total_sign_day, is_sign } = dailyInfo || {}; 187 | const index = total_sign_day - 1 * (is_sign ? 1 : 0); 188 | const dailyHomeRewards = await dailyRewardRequest({ ltoken, ltuid, path: 'home' }); 189 | return [is_sign, dailyHomeRewards?.awards[index]?.icon]; 190 | }; 191 | 192 | export const claimReward = async ({ ltoken, ltuid }: any) => { 193 | return dailyRewardRequest({ ltoken, ltuid, method: 'post', path: 'sign' }); 194 | }; 195 | -------------------------------------------------------------------------------- /src/actions/progression.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Action, 3 | AppearDisappearEvent, 4 | BaseAction, 5 | KeyEvent, 6 | SettingsChanged, 7 | } from '@stream-deck-for-node/sdk'; 8 | import { GenshinView, sd } from '../index'; 9 | import { DeviceType, DynamicViewInstance } from '@stream-deck-for-node/sdk/lib/types/interfaces'; 10 | import { combineImages } from '../util/canvas'; 11 | import { Character } from '../interfaces'; 12 | import { getCharacterDetails } from '../api/hoyolab'; 13 | import { cacheById, cacheOrImage } from '../util/cache'; 14 | import { join } from 'path'; 15 | import uniqBy from 'lodash.uniqby'; 16 | 17 | const STARS_BACKGROUNDS = { 18 | 5: 'https://act.hoyolab.com/ys/event/calculator-sea/images/star-5.f90aad73.png', 19 | 4: 'https://act.hoyolab.com/ys/event/calculator-sea/images/star-4.f2478054.png', 20 | }; 21 | 22 | interface ProgressionSettings { 23 | selected: Character; 24 | } 25 | 26 | @Action('progression', { m: 15 }) 27 | export class ProgressionAction extends BaseAction { 28 | pages: Record = {}; 29 | 30 | async renderItems(items: any[], dv: DynamicViewInstance, backTo?: () => void) { 31 | const geometry = dv.geometry; 32 | const [mappable, ignored] = geometry.mappable('bottomLeft', 'bottomRight'); 33 | const maxPages = Math.ceil(items.length / geometry.total); 34 | 35 | const slicedItems = items.slice( 36 | dv.page * geometry.total, 37 | dv.page * geometry.total + geometry.total - ignored + 1, 38 | ); 39 | 40 | const handleBack = () => { 41 | dv.prevPage(backTo) && this.renderItems(items, dv, backTo); 42 | }; 43 | 44 | const handleNext = () => { 45 | dv.nextPage(maxPages) && this.renderItems(items, dv, backTo); 46 | }; 47 | 48 | const hasNext = items.length > (dv.page + 1) * geometry.total; 49 | 50 | dv.update(geometry.bottomLeft, { 51 | image: join(__dirname, '../../images/character-back.png'), 52 | onSingleTap: handleBack, 53 | }); 54 | 55 | dv.update(geometry.bottomRight, { 56 | image: hasNext ? join(__dirname, '../../images/character-next.png') : undefined, 57 | onSingleTap: hasNext ? handleNext : undefined, 58 | }); 59 | 60 | mappable.map((index, i) => { 61 | const item = slicedItems[i]; 62 | dv.update(index, item ?? {}); 63 | }); 64 | } 65 | 66 | async renderCharacterView(character: Character, dv: DynamicViewInstance, backTo?: () => void) { 67 | dv.clear(); 68 | const details = await cacheById(`char-details:${character.id}`, () => 69 | getCharacterDetails(character.id, character.element_attr_id), 70 | ); 71 | if (details) { 72 | const filteredDetails = uniqBy( 73 | details.filter((it: any) => ![202, 104003, 104319].includes(it.id) && it.num !== 1), 74 | 'name', 75 | ); 76 | 77 | const showNames: Record = {}; 78 | 79 | const items = filteredDetails.map(async (it: any, i: number) => { 80 | const onSingleTap = async () => { 81 | showNames[i] = !showNames[i]; 82 | dv.update(it.index, { 83 | onSingleTap, 84 | image: await cacheOrImage(it.icon), 85 | title: showNames[i] ? it.name.replace(/ +/g, '\n') : '', 86 | }); 87 | }; 88 | return { 89 | source: it, 90 | image: await cacheOrImage(it.icon), 91 | onSingleTap, 92 | }; 93 | }); 94 | return this.renderItems(await Promise.all(items), dv, backTo); 95 | } 96 | } 97 | 98 | async renderCharacters(context: string, dv: DynamicViewInstance) { 99 | dv.clear(); 100 | const characters = sd.pluginSettings.progression; 101 | const items = characters.map(async (it: Character) => ({ 102 | onLongPress: () => { 103 | dv.setSettings(context, { selected: it }); 104 | dv.hide(); 105 | }, 106 | onSingleTap: async () => { 107 | const oldPage = dv.page; 108 | dv.page = 0; 109 | return this.renderCharacterView(it, dv, () => { 110 | dv.page = oldPage; 111 | this.renderCharacters(context, dv); 112 | }); 113 | }, 114 | image: await combineImages(it.id.toString(), STARS_BACKGROUNDS[it.avatar_level], it.icon), 115 | })); 116 | 117 | const resetIcon = { 118 | image: join(__dirname, '../../images/character-reset.png'), 119 | onSingleTap: async () => { 120 | dv.setSettings(context, { selected: null }); 121 | dv.hide(); 122 | }, 123 | }; 124 | 125 | return this.renderItems([resetIcon, ...(await Promise.all(items))], dv); 126 | } 127 | 128 | async openSelector(context: string, deviceId: string) { 129 | const device = sd.info.devices.find((it) => it.id === deviceId)!; 130 | const dv = GenshinView.show(device, [DeviceType.StreamDeckMini]); 131 | if (!dv) return; 132 | this.pages[device.id] = 0; 133 | await this.renderCharacters(context, dv); 134 | } 135 | 136 | async refreshTile(context: string) { 137 | const char = sd.getSettings(context)?.selected; 138 | sd.setImage( 139 | context, 140 | char && 141 | (await combineImages(char.id.toString(), STARS_BACKGROUNDS[char.avatar_level], char.icon)), 142 | ); 143 | } 144 | 145 | async onAppear(e: AppearDisappearEvent) { 146 | GenshinView.storeSettings(e.device, e.context); 147 | return this.refreshTile(e.context); 148 | } 149 | 150 | onLongPress(e: KeyEvent) { 151 | return this.openSelector(e.context, e.device); 152 | } 153 | 154 | async onSingleTap(e: KeyEvent) { 155 | if (!e.payload.settings.selected) { 156 | await this.openSelector(e.context, e.device); 157 | } else { 158 | const device = sd.info.devices.find((it) => it.id === e.device)!; 159 | const dv = GenshinView.show(device, [DeviceType.StreamDeckMini]); 160 | if (dv) { 161 | return this.renderCharacterView(e.payload.settings.selected, dv); 162 | } 163 | } 164 | } 165 | 166 | onSettingsChanged(e: SettingsChanged) { 167 | return this.refreshTile(e.context); 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: 5.4 2 | 3 | specifiers: 4 | '@stream-deck-for-node/sdk': 1.0.15 5 | '@types/crypto-js': ^4.1.0 6 | '@types/lodash.uniqby': ^4.7.7 7 | '@types/node': ^16.11.12 8 | axios: ^0.25.0 9 | canvas: ^2.9.0 10 | crypto-js: ^4.1.1 11 | file-system-cache: ^2.0.0 12 | lodash.uniqby: ^4.7.0 13 | pkg: ^5.7.0 14 | prettier: ^2.7.1 15 | timediff: ^1.1.1 16 | ts-node: ^10.4.0 17 | typescript: ^4.5.3 18 | 19 | dependencies: 20 | '@stream-deck-for-node/sdk': 1.0.15 21 | axios: 0.25.0 22 | canvas: 2.9.1 23 | crypto-js: 4.1.1 24 | file-system-cache: 2.0.0 25 | lodash.uniqby: 4.7.0 26 | timediff: 1.1.1 27 | 28 | devDependencies: 29 | '@types/crypto-js': 4.1.1 30 | '@types/lodash.uniqby': 4.7.7 31 | '@types/node': 16.11.41 32 | pkg: 5.7.0 33 | prettier: 2.7.1 34 | ts-node: 10.8.1_qqpsu5gwjto2muvbbvmj4ndcmu 35 | typescript: 4.7.4 36 | 37 | packages: 38 | 39 | /@babel/helper-validator-identifier/7.16.7: 40 | resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==} 41 | engines: {node: '>=6.9.0'} 42 | dev: true 43 | 44 | /@babel/parser/7.17.10: 45 | resolution: {integrity: sha512-n2Q6i+fnJqzOaq2VkdXxy2TCPCWQZHiCo0XqmrCvDWcZQKRyZzYi4Z0yxlBuN0w+r2ZHmre+Q087DSrw3pbJDQ==} 46 | engines: {node: '>=6.0.0'} 47 | hasBin: true 48 | dependencies: 49 | '@babel/types': 7.17.10 50 | dev: true 51 | 52 | /@babel/types/7.17.10: 53 | resolution: {integrity: sha512-9O26jG0mBYfGkUYCYZRnBwbVLd1UZOICEr2Em6InB6jVfsAv1GKgwXHmrSg+WFWDmeKTA6vyTZiN8tCSM5Oo3A==} 54 | engines: {node: '>=6.9.0'} 55 | dependencies: 56 | '@babel/helper-validator-identifier': 7.16.7 57 | to-fast-properties: 2.0.0 58 | dev: true 59 | 60 | /@cspotcode/source-map-support/0.8.1: 61 | resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} 62 | engines: {node: '>=12'} 63 | dependencies: 64 | '@jridgewell/trace-mapping': 0.3.9 65 | dev: true 66 | 67 | /@jridgewell/resolve-uri/3.0.7: 68 | resolution: {integrity: sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA==} 69 | engines: {node: '>=6.0.0'} 70 | dev: true 71 | 72 | /@jridgewell/sourcemap-codec/1.4.13: 73 | resolution: {integrity: sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==} 74 | dev: true 75 | 76 | /@jridgewell/trace-mapping/0.3.9: 77 | resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} 78 | dependencies: 79 | '@jridgewell/resolve-uri': 3.0.7 80 | '@jridgewell/sourcemap-codec': 1.4.13 81 | dev: true 82 | 83 | /@mapbox/node-pre-gyp/1.0.9: 84 | resolution: {integrity: sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==} 85 | hasBin: true 86 | dependencies: 87 | detect-libc: 2.0.1 88 | https-proxy-agent: 5.0.1 89 | make-dir: 3.1.0 90 | node-fetch: 2.6.7 91 | nopt: 5.0.0 92 | npmlog: 5.0.1 93 | rimraf: 3.0.2 94 | semver: 7.3.7 95 | tar: 6.1.11 96 | transitivePeerDependencies: 97 | - encoding 98 | - supports-color 99 | dev: false 100 | 101 | /@nodelib/fs.scandir/2.1.5: 102 | resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} 103 | engines: {node: '>= 8'} 104 | dependencies: 105 | '@nodelib/fs.stat': 2.0.5 106 | run-parallel: 1.2.0 107 | dev: true 108 | 109 | /@nodelib/fs.stat/2.0.5: 110 | resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} 111 | engines: {node: '>= 8'} 112 | dev: true 113 | 114 | /@nodelib/fs.walk/1.2.8: 115 | resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} 116 | engines: {node: '>= 8'} 117 | dependencies: 118 | '@nodelib/fs.scandir': 2.1.5 119 | fastq: 1.13.0 120 | dev: true 121 | 122 | /@stream-deck-for-node/sdk/1.0.15: 123 | resolution: {integrity: sha512-XHg5l4MNPqpLIc3UfZOffYxliNDvEqr2zdDgxZZB59d7JHbc6RV7lMBTieWEdolkL869iczmjCs6uzYBdOqnpQ==} 124 | dependencies: 125 | axios: 0.24.0 126 | command-line-args: 5.2.1 127 | mime-types: 2.1.35 128 | rxjs: 7.5.5 129 | ws: 8.8.0 130 | transitivePeerDependencies: 131 | - bufferutil 132 | - debug 133 | - utf-8-validate 134 | dev: false 135 | 136 | /@tsconfig/node10/1.0.9: 137 | resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} 138 | dev: true 139 | 140 | /@tsconfig/node12/1.0.11: 141 | resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} 142 | dev: true 143 | 144 | /@tsconfig/node14/1.0.3: 145 | resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} 146 | dev: true 147 | 148 | /@tsconfig/node16/1.0.3: 149 | resolution: {integrity: sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==} 150 | dev: true 151 | 152 | /@types/crypto-js/4.1.1: 153 | resolution: {integrity: sha512-BG7fQKZ689HIoc5h+6D2Dgq1fABRa0RbBWKBd9SP/MVRVXROflpm5fhwyATX5duFmbStzyzyycPB8qUYKDH3NA==} 154 | dev: true 155 | 156 | /@types/lodash.uniqby/4.7.7: 157 | resolution: {integrity: sha512-sv2g6vkCIvEUsK5/Vq17haoZaisfj2EWW8mP7QWlnKi6dByoNmeuHDDXHR7sabuDqwO4gvU7ModIL22MmnOocg==} 158 | dependencies: 159 | '@types/lodash': 4.14.182 160 | dev: true 161 | 162 | /@types/lodash/4.14.182: 163 | resolution: {integrity: sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==} 164 | dev: true 165 | 166 | /@types/node/16.11.41: 167 | resolution: {integrity: sha512-mqoYK2TnVjdkGk8qXAVGc/x9nSaTpSrFaGFm43BUH3IdoBV0nta6hYaGmdOvIMlbHJbUEVen3gvwpwovAZKNdQ==} 168 | dev: true 169 | 170 | /abbrev/1.1.1: 171 | resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} 172 | dev: false 173 | 174 | /acorn-walk/8.2.0: 175 | resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} 176 | engines: {node: '>=0.4.0'} 177 | dev: true 178 | 179 | /acorn/8.7.1: 180 | resolution: {integrity: sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==} 181 | engines: {node: '>=0.4.0'} 182 | hasBin: true 183 | dev: true 184 | 185 | /agent-base/6.0.2: 186 | resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} 187 | engines: {node: '>= 6.0.0'} 188 | dependencies: 189 | debug: 4.3.4 190 | transitivePeerDependencies: 191 | - supports-color 192 | 193 | /ansi-regex/2.1.1: 194 | resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} 195 | engines: {node: '>=0.10.0'} 196 | dev: true 197 | 198 | /ansi-regex/5.0.1: 199 | resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} 200 | engines: {node: '>=8'} 201 | 202 | /ansi-styles/4.3.0: 203 | resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} 204 | engines: {node: '>=8'} 205 | dependencies: 206 | color-convert: 2.0.1 207 | dev: true 208 | 209 | /aproba/1.2.0: 210 | resolution: {integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==} 211 | dev: true 212 | 213 | /aproba/2.0.0: 214 | resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==} 215 | dev: false 216 | 217 | /are-we-there-yet/1.1.7: 218 | resolution: {integrity: sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==} 219 | dependencies: 220 | delegates: 1.0.0 221 | readable-stream: 2.3.7 222 | dev: true 223 | 224 | /are-we-there-yet/2.0.0: 225 | resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==} 226 | engines: {node: '>=10'} 227 | dependencies: 228 | delegates: 1.0.0 229 | readable-stream: 3.6.0 230 | dev: false 231 | 232 | /arg/4.1.3: 233 | resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} 234 | dev: true 235 | 236 | /array-back/3.1.0: 237 | resolution: {integrity: sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==} 238 | engines: {node: '>=6'} 239 | dev: false 240 | 241 | /array-union/2.1.0: 242 | resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} 243 | engines: {node: '>=8'} 244 | dev: true 245 | 246 | /at-least-node/1.0.0: 247 | resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} 248 | engines: {node: '>= 4.0.0'} 249 | dev: true 250 | 251 | /axios/0.24.0: 252 | resolution: {integrity: sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==} 253 | dependencies: 254 | follow-redirects: 1.15.1 255 | transitivePeerDependencies: 256 | - debug 257 | dev: false 258 | 259 | /axios/0.25.0: 260 | resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==} 261 | dependencies: 262 | follow-redirects: 1.15.1 263 | transitivePeerDependencies: 264 | - debug 265 | dev: false 266 | 267 | /balanced-match/1.0.2: 268 | resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} 269 | dev: false 270 | 271 | /base64-js/1.5.1: 272 | resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} 273 | dev: true 274 | 275 | /bl/4.1.0: 276 | resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} 277 | dependencies: 278 | buffer: 5.7.1 279 | inherits: 2.0.4 280 | readable-stream: 3.6.0 281 | dev: true 282 | 283 | /brace-expansion/1.1.11: 284 | resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} 285 | dependencies: 286 | balanced-match: 1.0.2 287 | concat-map: 0.0.1 288 | dev: false 289 | 290 | /braces/3.0.2: 291 | resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} 292 | engines: {node: '>=8'} 293 | dependencies: 294 | fill-range: 7.0.1 295 | dev: true 296 | 297 | /buffer/5.7.1: 298 | resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} 299 | dependencies: 300 | base64-js: 1.5.1 301 | ieee754: 1.2.1 302 | dev: true 303 | 304 | /canvas/2.9.1: 305 | resolution: {integrity: sha512-vSQti1uG/2gjv3x6QLOZw7TctfufaerTWbVe+NSduHxxLGB+qf3kFgQ6n66DSnuoINtVUjrLLIK2R+lxrBG07A==} 306 | engines: {node: '>=6'} 307 | requiresBuild: true 308 | dependencies: 309 | '@mapbox/node-pre-gyp': 1.0.9 310 | nan: 2.16.0 311 | simple-get: 3.1.1 312 | transitivePeerDependencies: 313 | - encoding 314 | - supports-color 315 | dev: false 316 | 317 | /chalk/4.1.2: 318 | resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} 319 | engines: {node: '>=10'} 320 | dependencies: 321 | ansi-styles: 4.3.0 322 | supports-color: 7.2.0 323 | dev: true 324 | 325 | /chownr/1.1.4: 326 | resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} 327 | dev: true 328 | 329 | /chownr/2.0.0: 330 | resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} 331 | engines: {node: '>=10'} 332 | dev: false 333 | 334 | /cliui/7.0.4: 335 | resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} 336 | dependencies: 337 | string-width: 4.2.3 338 | strip-ansi: 6.0.1 339 | wrap-ansi: 7.0.0 340 | dev: true 341 | 342 | /code-point-at/1.1.0: 343 | resolution: {integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==} 344 | engines: {node: '>=0.10.0'} 345 | dev: true 346 | 347 | /color-convert/2.0.1: 348 | resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} 349 | engines: {node: '>=7.0.0'} 350 | dependencies: 351 | color-name: 1.1.4 352 | dev: true 353 | 354 | /color-name/1.1.4: 355 | resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} 356 | dev: true 357 | 358 | /color-support/1.1.3: 359 | resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} 360 | hasBin: true 361 | dev: false 362 | 363 | /command-line-args/5.2.1: 364 | resolution: {integrity: sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==} 365 | engines: {node: '>=4.0.0'} 366 | dependencies: 367 | array-back: 3.1.0 368 | find-replace: 3.0.0 369 | lodash.camelcase: 4.3.0 370 | typical: 4.0.0 371 | dev: false 372 | 373 | /concat-map/0.0.1: 374 | resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} 375 | dev: false 376 | 377 | /console-control-strings/1.1.0: 378 | resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} 379 | 380 | /core-util-is/1.0.3: 381 | resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} 382 | dev: true 383 | 384 | /create-require/1.1.1: 385 | resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} 386 | dev: true 387 | 388 | /crypto-js/4.1.1: 389 | resolution: {integrity: sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==} 390 | dev: false 391 | 392 | /debug/4.3.4: 393 | resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} 394 | engines: {node: '>=6.0'} 395 | peerDependencies: 396 | supports-color: '*' 397 | peerDependenciesMeta: 398 | supports-color: 399 | optional: true 400 | dependencies: 401 | ms: 2.1.2 402 | 403 | /decompress-response/4.2.1: 404 | resolution: {integrity: sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==} 405 | engines: {node: '>=8'} 406 | dependencies: 407 | mimic-response: 2.1.0 408 | 409 | /deep-extend/0.6.0: 410 | resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} 411 | engines: {node: '>=4.0.0'} 412 | dev: true 413 | 414 | /deep-is/0.1.4: 415 | resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} 416 | dev: true 417 | 418 | /delegates/1.0.0: 419 | resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} 420 | 421 | /detect-libc/1.0.3: 422 | resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==} 423 | engines: {node: '>=0.10'} 424 | hasBin: true 425 | dev: true 426 | 427 | /detect-libc/2.0.1: 428 | resolution: {integrity: sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==} 429 | engines: {node: '>=8'} 430 | dev: false 431 | 432 | /diff/4.0.2: 433 | resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} 434 | engines: {node: '>=0.3.1'} 435 | dev: true 436 | 437 | /dir-glob/3.0.1: 438 | resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} 439 | engines: {node: '>=8'} 440 | dependencies: 441 | path-type: 4.0.0 442 | dev: true 443 | 444 | /emoji-regex/8.0.0: 445 | resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} 446 | 447 | /end-of-stream/1.4.4: 448 | resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} 449 | dependencies: 450 | once: 1.4.0 451 | dev: true 452 | 453 | /escalade/3.1.1: 454 | resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} 455 | engines: {node: '>=6'} 456 | dev: true 457 | 458 | /escodegen/2.0.0: 459 | resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} 460 | engines: {node: '>=6.0'} 461 | hasBin: true 462 | dependencies: 463 | esprima: 4.0.1 464 | estraverse: 5.3.0 465 | esutils: 2.0.3 466 | optionator: 0.8.3 467 | optionalDependencies: 468 | source-map: 0.6.1 469 | dev: true 470 | 471 | /esprima/4.0.1: 472 | resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} 473 | engines: {node: '>=4'} 474 | hasBin: true 475 | dev: true 476 | 477 | /estraverse/5.3.0: 478 | resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} 479 | engines: {node: '>=4.0'} 480 | dev: true 481 | 482 | /esutils/2.0.3: 483 | resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} 484 | engines: {node: '>=0.10.0'} 485 | dev: true 486 | 487 | /expand-template/2.0.3: 488 | resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} 489 | engines: {node: '>=6'} 490 | dev: true 491 | 492 | /fast-glob/3.2.11: 493 | resolution: {integrity: sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==} 494 | engines: {node: '>=8.6.0'} 495 | dependencies: 496 | '@nodelib/fs.stat': 2.0.5 497 | '@nodelib/fs.walk': 1.2.8 498 | glob-parent: 5.1.2 499 | merge2: 1.4.1 500 | micromatch: 4.0.5 501 | dev: true 502 | 503 | /fast-levenshtein/2.0.6: 504 | resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} 505 | dev: true 506 | 507 | /fastq/1.13.0: 508 | resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==} 509 | dependencies: 510 | reusify: 1.0.4 511 | dev: true 512 | 513 | /file-system-cache/2.0.0: 514 | resolution: {integrity: sha512-QlYut2ZtxRgdW/dboSmiKZWM8FsnpLaLI549hN/RWgwn3FawSil7Jc2n7nFHheclvYxa4LJqwEOvNUYv9VsCXg==} 515 | dependencies: 516 | fs-extra: 10.1.0 517 | ramda: 0.28.0 518 | dev: false 519 | 520 | /fill-range/7.0.1: 521 | resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} 522 | engines: {node: '>=8'} 523 | dependencies: 524 | to-regex-range: 5.0.1 525 | dev: true 526 | 527 | /find-replace/3.0.0: 528 | resolution: {integrity: sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==} 529 | engines: {node: '>=4.0.0'} 530 | dependencies: 531 | array-back: 3.1.0 532 | dev: false 533 | 534 | /follow-redirects/1.15.1: 535 | resolution: {integrity: sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==} 536 | engines: {node: '>=4.0'} 537 | peerDependencies: 538 | debug: '*' 539 | peerDependenciesMeta: 540 | debug: 541 | optional: true 542 | dev: false 543 | 544 | /from2/2.3.0: 545 | resolution: {integrity: sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==} 546 | dependencies: 547 | inherits: 2.0.4 548 | readable-stream: 2.3.7 549 | dev: true 550 | 551 | /fs-constants/1.0.0: 552 | resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} 553 | dev: true 554 | 555 | /fs-extra/10.1.0: 556 | resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} 557 | engines: {node: '>=12'} 558 | dependencies: 559 | graceful-fs: 4.2.10 560 | jsonfile: 6.1.0 561 | universalify: 2.0.0 562 | dev: false 563 | 564 | /fs-extra/9.1.0: 565 | resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} 566 | engines: {node: '>=10'} 567 | dependencies: 568 | at-least-node: 1.0.0 569 | graceful-fs: 4.2.10 570 | jsonfile: 6.1.0 571 | universalify: 2.0.0 572 | dev: true 573 | 574 | /fs-minipass/2.1.0: 575 | resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} 576 | engines: {node: '>= 8'} 577 | dependencies: 578 | minipass: 3.3.3 579 | dev: false 580 | 581 | /fs.realpath/1.0.0: 582 | resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} 583 | dev: false 584 | 585 | /function-bind/1.1.1: 586 | resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} 587 | dev: true 588 | 589 | /gauge/2.7.4: 590 | resolution: {integrity: sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==} 591 | dependencies: 592 | aproba: 1.2.0 593 | console-control-strings: 1.1.0 594 | has-unicode: 2.0.1 595 | object-assign: 4.1.1 596 | signal-exit: 3.0.7 597 | string-width: 1.0.2 598 | strip-ansi: 3.0.1 599 | wide-align: 1.1.5 600 | dev: true 601 | 602 | /gauge/3.0.2: 603 | resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==} 604 | engines: {node: '>=10'} 605 | dependencies: 606 | aproba: 2.0.0 607 | color-support: 1.1.3 608 | console-control-strings: 1.1.0 609 | has-unicode: 2.0.1 610 | object-assign: 4.1.1 611 | signal-exit: 3.0.7 612 | string-width: 4.2.3 613 | strip-ansi: 6.0.1 614 | wide-align: 1.1.5 615 | dev: false 616 | 617 | /get-caller-file/2.0.5: 618 | resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} 619 | engines: {node: 6.* || 8.* || >= 10.*} 620 | dev: true 621 | 622 | /github-from-package/0.0.0: 623 | resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} 624 | dev: true 625 | 626 | /glob-parent/5.1.2: 627 | resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} 628 | engines: {node: '>= 6'} 629 | dependencies: 630 | is-glob: 4.0.3 631 | dev: true 632 | 633 | /glob/7.2.3: 634 | resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} 635 | dependencies: 636 | fs.realpath: 1.0.0 637 | inflight: 1.0.6 638 | inherits: 2.0.4 639 | minimatch: 3.1.2 640 | once: 1.4.0 641 | path-is-absolute: 1.0.1 642 | dev: false 643 | 644 | /globby/11.1.0: 645 | resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} 646 | engines: {node: '>=10'} 647 | dependencies: 648 | array-union: 2.1.0 649 | dir-glob: 3.0.1 650 | fast-glob: 3.2.11 651 | ignore: 5.2.0 652 | merge2: 1.4.1 653 | slash: 3.0.0 654 | dev: true 655 | 656 | /graceful-fs/4.2.10: 657 | resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} 658 | 659 | /has-flag/4.0.0: 660 | resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} 661 | engines: {node: '>=8'} 662 | dev: true 663 | 664 | /has-unicode/2.0.1: 665 | resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==} 666 | 667 | /has/1.0.3: 668 | resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} 669 | engines: {node: '>= 0.4.0'} 670 | dependencies: 671 | function-bind: 1.1.1 672 | dev: true 673 | 674 | /https-proxy-agent/5.0.1: 675 | resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} 676 | engines: {node: '>= 6'} 677 | dependencies: 678 | agent-base: 6.0.2 679 | debug: 4.3.4 680 | transitivePeerDependencies: 681 | - supports-color 682 | 683 | /ieee754/1.2.1: 684 | resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} 685 | dev: true 686 | 687 | /ignore/5.2.0: 688 | resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==} 689 | engines: {node: '>= 4'} 690 | dev: true 691 | 692 | /inflight/1.0.6: 693 | resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} 694 | dependencies: 695 | once: 1.4.0 696 | wrappy: 1.0.2 697 | dev: false 698 | 699 | /inherits/2.0.4: 700 | resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} 701 | 702 | /ini/1.3.8: 703 | resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} 704 | dev: true 705 | 706 | /into-stream/6.0.0: 707 | resolution: {integrity: sha512-XHbaOAvP+uFKUFsOgoNPRjLkwB+I22JFPFe5OjTkQ0nwgj6+pSjb4NmB6VMxaPshLiOf+zcpOCBQuLwC1KHhZA==} 708 | engines: {node: '>=10'} 709 | dependencies: 710 | from2: 2.3.0 711 | p-is-promise: 3.0.0 712 | dev: true 713 | 714 | /is-core-module/2.9.0: 715 | resolution: {integrity: sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==} 716 | dependencies: 717 | has: 1.0.3 718 | dev: true 719 | 720 | /is-extglob/2.1.1: 721 | resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} 722 | engines: {node: '>=0.10.0'} 723 | dev: true 724 | 725 | /is-fullwidth-code-point/1.0.0: 726 | resolution: {integrity: sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==} 727 | engines: {node: '>=0.10.0'} 728 | dependencies: 729 | number-is-nan: 1.0.1 730 | dev: true 731 | 732 | /is-fullwidth-code-point/3.0.0: 733 | resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} 734 | engines: {node: '>=8'} 735 | 736 | /is-glob/4.0.3: 737 | resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} 738 | engines: {node: '>=0.10.0'} 739 | dependencies: 740 | is-extglob: 2.1.1 741 | dev: true 742 | 743 | /is-number/7.0.0: 744 | resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} 745 | engines: {node: '>=0.12.0'} 746 | dev: true 747 | 748 | /isarray/1.0.0: 749 | resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} 750 | dev: true 751 | 752 | /jsonfile/6.1.0: 753 | resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} 754 | dependencies: 755 | universalify: 2.0.0 756 | optionalDependencies: 757 | graceful-fs: 4.2.10 758 | 759 | /levn/0.3.0: 760 | resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} 761 | engines: {node: '>= 0.8.0'} 762 | dependencies: 763 | prelude-ls: 1.1.2 764 | type-check: 0.3.2 765 | dev: true 766 | 767 | /lodash.camelcase/4.3.0: 768 | resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} 769 | dev: false 770 | 771 | /lodash.uniqby/4.7.0: 772 | resolution: {integrity: sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==} 773 | dev: false 774 | 775 | /lru-cache/6.0.0: 776 | resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} 777 | engines: {node: '>=10'} 778 | dependencies: 779 | yallist: 4.0.0 780 | 781 | /make-dir/3.1.0: 782 | resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} 783 | engines: {node: '>=8'} 784 | dependencies: 785 | semver: 6.3.0 786 | dev: false 787 | 788 | /make-error/1.3.6: 789 | resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} 790 | dev: true 791 | 792 | /merge2/1.4.1: 793 | resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} 794 | engines: {node: '>= 8'} 795 | dev: true 796 | 797 | /micromatch/4.0.5: 798 | resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} 799 | engines: {node: '>=8.6'} 800 | dependencies: 801 | braces: 3.0.2 802 | picomatch: 2.3.1 803 | dev: true 804 | 805 | /mime-db/1.52.0: 806 | resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} 807 | engines: {node: '>= 0.6'} 808 | dev: false 809 | 810 | /mime-types/2.1.35: 811 | resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} 812 | engines: {node: '>= 0.6'} 813 | dependencies: 814 | mime-db: 1.52.0 815 | dev: false 816 | 817 | /mimic-response/2.1.0: 818 | resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==} 819 | engines: {node: '>=8'} 820 | 821 | /minimatch/3.1.2: 822 | resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} 823 | dependencies: 824 | brace-expansion: 1.1.11 825 | dev: false 826 | 827 | /minimist/1.2.6: 828 | resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==} 829 | dev: true 830 | 831 | /minipass/3.3.3: 832 | resolution: {integrity: sha512-N0BOsdFAlNRfmwMhjAsLVWOk7Ljmeb39iqFlsV1At+jqRhSUP9yeof8FyJu4imaJiSUp8vQebWD/guZwGQC8iA==} 833 | engines: {node: '>=8'} 834 | dependencies: 835 | yallist: 4.0.0 836 | dev: false 837 | 838 | /minizlib/2.1.2: 839 | resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} 840 | engines: {node: '>= 8'} 841 | dependencies: 842 | minipass: 3.3.3 843 | yallist: 4.0.0 844 | dev: false 845 | 846 | /mkdirp-classic/0.5.3: 847 | resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} 848 | dev: true 849 | 850 | /mkdirp/1.0.4: 851 | resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} 852 | engines: {node: '>=10'} 853 | hasBin: true 854 | dev: false 855 | 856 | /moment/2.29.3: 857 | resolution: {integrity: sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==} 858 | dev: false 859 | 860 | /ms/2.1.2: 861 | resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} 862 | 863 | /multistream/4.1.0: 864 | resolution: {integrity: sha512-J1XDiAmmNpRCBfIWJv+n0ymC4ABcf/Pl+5YvC5B/D2f/2+8PtHvCNxMPKiQcZyi922Hq69J2YOpb1pTywfifyw==} 865 | dependencies: 866 | once: 1.4.0 867 | readable-stream: 3.6.0 868 | dev: true 869 | 870 | /nan/2.16.0: 871 | resolution: {integrity: sha512-UdAqHyFngu7TfQKsCBgAA6pWDkT8MAO7d0jyOecVhN5354xbLqdn8mV9Tat9gepAupm0bt2DbeaSC8vS52MuFA==} 872 | dev: false 873 | 874 | /napi-build-utils/1.0.2: 875 | resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} 876 | dev: true 877 | 878 | /node-abi/2.30.1: 879 | resolution: {integrity: sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==} 880 | dependencies: 881 | semver: 5.7.1 882 | dev: true 883 | 884 | /node-fetch/2.6.7: 885 | resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} 886 | engines: {node: 4.x || >=6.0.0} 887 | peerDependencies: 888 | encoding: ^0.1.0 889 | peerDependenciesMeta: 890 | encoding: 891 | optional: true 892 | dependencies: 893 | whatwg-url: 5.0.0 894 | 895 | /nopt/5.0.0: 896 | resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} 897 | engines: {node: '>=6'} 898 | hasBin: true 899 | dependencies: 900 | abbrev: 1.1.1 901 | dev: false 902 | 903 | /npmlog/4.1.2: 904 | resolution: {integrity: sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==} 905 | dependencies: 906 | are-we-there-yet: 1.1.7 907 | console-control-strings: 1.1.0 908 | gauge: 2.7.4 909 | set-blocking: 2.0.0 910 | dev: true 911 | 912 | /npmlog/5.0.1: 913 | resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==} 914 | dependencies: 915 | are-we-there-yet: 2.0.0 916 | console-control-strings: 1.1.0 917 | gauge: 3.0.2 918 | set-blocking: 2.0.0 919 | dev: false 920 | 921 | /number-is-nan/1.0.1: 922 | resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==} 923 | engines: {node: '>=0.10.0'} 924 | dev: true 925 | 926 | /object-assign/4.1.1: 927 | resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} 928 | engines: {node: '>=0.10.0'} 929 | 930 | /once/1.4.0: 931 | resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} 932 | dependencies: 933 | wrappy: 1.0.2 934 | 935 | /optionator/0.8.3: 936 | resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} 937 | engines: {node: '>= 0.8.0'} 938 | dependencies: 939 | deep-is: 0.1.4 940 | fast-levenshtein: 2.0.6 941 | levn: 0.3.0 942 | prelude-ls: 1.1.2 943 | type-check: 0.3.2 944 | word-wrap: 1.2.3 945 | dev: true 946 | 947 | /p-is-promise/3.0.0: 948 | resolution: {integrity: sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==} 949 | engines: {node: '>=8'} 950 | dev: true 951 | 952 | /path-is-absolute/1.0.1: 953 | resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} 954 | engines: {node: '>=0.10.0'} 955 | dev: false 956 | 957 | /path-parse/1.0.7: 958 | resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} 959 | dev: true 960 | 961 | /path-type/4.0.0: 962 | resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} 963 | engines: {node: '>=8'} 964 | dev: true 965 | 966 | /picomatch/2.3.1: 967 | resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} 968 | engines: {node: '>=8.6'} 969 | dev: true 970 | 971 | /pkg-fetch/3.4.1: 972 | resolution: {integrity: sha512-fS4cdayCa1r4jHkOKGPJKnS9PEs6OWZst+s+m0+CmhmPZObMnxoRnf9T9yUWl+lzM2b5aJF7cnQIySCT7Hq8Dg==} 973 | hasBin: true 974 | dependencies: 975 | chalk: 4.1.2 976 | fs-extra: 9.1.0 977 | https-proxy-agent: 5.0.1 978 | node-fetch: 2.6.7 979 | progress: 2.0.3 980 | semver: 7.3.7 981 | tar-fs: 2.1.1 982 | yargs: 16.2.0 983 | transitivePeerDependencies: 984 | - encoding 985 | - supports-color 986 | dev: true 987 | 988 | /pkg/5.7.0: 989 | resolution: {integrity: sha512-PTiAjNq/CGAtK5qUBR6pjheqnipTFjeecgSgIKEcAOJA4GpmZeOZC8pMOoT0rfes5vHsmcFo7wbSRTAmXQurrg==} 990 | hasBin: true 991 | peerDependencies: 992 | node-notifier: '>=9.0.1' 993 | peerDependenciesMeta: 994 | node-notifier: 995 | optional: true 996 | dependencies: 997 | '@babel/parser': 7.17.10 998 | '@babel/types': 7.17.10 999 | chalk: 4.1.2 1000 | escodegen: 2.0.0 1001 | fs-extra: 9.1.0 1002 | globby: 11.1.0 1003 | into-stream: 6.0.0 1004 | is-core-module: 2.9.0 1005 | minimist: 1.2.6 1006 | multistream: 4.1.0 1007 | pkg-fetch: 3.4.1 1008 | prebuild-install: 6.1.4 1009 | resolve: 1.22.1 1010 | stream-meter: 1.0.4 1011 | transitivePeerDependencies: 1012 | - encoding 1013 | - supports-color 1014 | dev: true 1015 | 1016 | /prebuild-install/6.1.4: 1017 | resolution: {integrity: sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==} 1018 | engines: {node: '>=6'} 1019 | hasBin: true 1020 | dependencies: 1021 | detect-libc: 1.0.3 1022 | expand-template: 2.0.3 1023 | github-from-package: 0.0.0 1024 | minimist: 1.2.6 1025 | mkdirp-classic: 0.5.3 1026 | napi-build-utils: 1.0.2 1027 | node-abi: 2.30.1 1028 | npmlog: 4.1.2 1029 | pump: 3.0.0 1030 | rc: 1.2.8 1031 | simple-get: 3.1.1 1032 | tar-fs: 2.1.1 1033 | tunnel-agent: 0.6.0 1034 | dev: true 1035 | 1036 | /prelude-ls/1.1.2: 1037 | resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} 1038 | engines: {node: '>= 0.8.0'} 1039 | dev: true 1040 | 1041 | /prettier/2.7.1: 1042 | resolution: {integrity: sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==} 1043 | engines: {node: '>=10.13.0'} 1044 | hasBin: true 1045 | dev: true 1046 | 1047 | /process-nextick-args/2.0.1: 1048 | resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} 1049 | dev: true 1050 | 1051 | /progress/2.0.3: 1052 | resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} 1053 | engines: {node: '>=0.4.0'} 1054 | dev: true 1055 | 1056 | /pump/3.0.0: 1057 | resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} 1058 | dependencies: 1059 | end-of-stream: 1.4.4 1060 | once: 1.4.0 1061 | dev: true 1062 | 1063 | /queue-microtask/1.2.3: 1064 | resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} 1065 | dev: true 1066 | 1067 | /ramda/0.28.0: 1068 | resolution: {integrity: sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==} 1069 | dev: false 1070 | 1071 | /rc/1.2.8: 1072 | resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} 1073 | hasBin: true 1074 | dependencies: 1075 | deep-extend: 0.6.0 1076 | ini: 1.3.8 1077 | minimist: 1.2.6 1078 | strip-json-comments: 2.0.1 1079 | dev: true 1080 | 1081 | /readable-stream/2.3.7: 1082 | resolution: {integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==} 1083 | dependencies: 1084 | core-util-is: 1.0.3 1085 | inherits: 2.0.4 1086 | isarray: 1.0.0 1087 | process-nextick-args: 2.0.1 1088 | safe-buffer: 5.1.2 1089 | string_decoder: 1.1.1 1090 | util-deprecate: 1.0.2 1091 | dev: true 1092 | 1093 | /readable-stream/3.6.0: 1094 | resolution: {integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==} 1095 | engines: {node: '>= 6'} 1096 | dependencies: 1097 | inherits: 2.0.4 1098 | string_decoder: 1.3.0 1099 | util-deprecate: 1.0.2 1100 | 1101 | /require-directory/2.1.1: 1102 | resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} 1103 | engines: {node: '>=0.10.0'} 1104 | dev: true 1105 | 1106 | /resolve/1.22.1: 1107 | resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==} 1108 | hasBin: true 1109 | dependencies: 1110 | is-core-module: 2.9.0 1111 | path-parse: 1.0.7 1112 | supports-preserve-symlinks-flag: 1.0.0 1113 | dev: true 1114 | 1115 | /reusify/1.0.4: 1116 | resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} 1117 | engines: {iojs: '>=1.0.0', node: '>=0.10.0'} 1118 | dev: true 1119 | 1120 | /rimraf/3.0.2: 1121 | resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} 1122 | hasBin: true 1123 | dependencies: 1124 | glob: 7.2.3 1125 | dev: false 1126 | 1127 | /run-parallel/1.2.0: 1128 | resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} 1129 | dependencies: 1130 | queue-microtask: 1.2.3 1131 | dev: true 1132 | 1133 | /rxjs/7.5.5: 1134 | resolution: {integrity: sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==} 1135 | dependencies: 1136 | tslib: 2.4.0 1137 | dev: false 1138 | 1139 | /safe-buffer/5.1.2: 1140 | resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} 1141 | dev: true 1142 | 1143 | /safe-buffer/5.2.1: 1144 | resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} 1145 | 1146 | /semver/5.7.1: 1147 | resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} 1148 | hasBin: true 1149 | dev: true 1150 | 1151 | /semver/6.3.0: 1152 | resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} 1153 | hasBin: true 1154 | dev: false 1155 | 1156 | /semver/7.3.7: 1157 | resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==} 1158 | engines: {node: '>=10'} 1159 | hasBin: true 1160 | dependencies: 1161 | lru-cache: 6.0.0 1162 | 1163 | /set-blocking/2.0.0: 1164 | resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} 1165 | 1166 | /signal-exit/3.0.7: 1167 | resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} 1168 | 1169 | /simple-concat/1.0.1: 1170 | resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} 1171 | 1172 | /simple-get/3.1.1: 1173 | resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==} 1174 | dependencies: 1175 | decompress-response: 4.2.1 1176 | once: 1.4.0 1177 | simple-concat: 1.0.1 1178 | 1179 | /slash/3.0.0: 1180 | resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} 1181 | engines: {node: '>=8'} 1182 | dev: true 1183 | 1184 | /source-map/0.6.1: 1185 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} 1186 | engines: {node: '>=0.10.0'} 1187 | requiresBuild: true 1188 | dev: true 1189 | optional: true 1190 | 1191 | /stream-meter/1.0.4: 1192 | resolution: {integrity: sha512-4sOEtrbgFotXwnEuzzsQBYEV1elAeFSO8rSGeTwabuX1RRn/kEq9JVH7I0MRBhKVRR0sJkr0M0QCH7yOLf9fhQ==} 1193 | dependencies: 1194 | readable-stream: 2.3.7 1195 | dev: true 1196 | 1197 | /string-width/1.0.2: 1198 | resolution: {integrity: sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==} 1199 | engines: {node: '>=0.10.0'} 1200 | dependencies: 1201 | code-point-at: 1.1.0 1202 | is-fullwidth-code-point: 1.0.0 1203 | strip-ansi: 3.0.1 1204 | dev: true 1205 | 1206 | /string-width/4.2.3: 1207 | resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} 1208 | engines: {node: '>=8'} 1209 | dependencies: 1210 | emoji-regex: 8.0.0 1211 | is-fullwidth-code-point: 3.0.0 1212 | strip-ansi: 6.0.1 1213 | 1214 | /string_decoder/1.1.1: 1215 | resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} 1216 | dependencies: 1217 | safe-buffer: 5.1.2 1218 | dev: true 1219 | 1220 | /string_decoder/1.3.0: 1221 | resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} 1222 | dependencies: 1223 | safe-buffer: 5.2.1 1224 | 1225 | /strip-ansi/3.0.1: 1226 | resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==} 1227 | engines: {node: '>=0.10.0'} 1228 | dependencies: 1229 | ansi-regex: 2.1.1 1230 | dev: true 1231 | 1232 | /strip-ansi/6.0.1: 1233 | resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} 1234 | engines: {node: '>=8'} 1235 | dependencies: 1236 | ansi-regex: 5.0.1 1237 | 1238 | /strip-json-comments/2.0.1: 1239 | resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} 1240 | engines: {node: '>=0.10.0'} 1241 | dev: true 1242 | 1243 | /supports-color/7.2.0: 1244 | resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} 1245 | engines: {node: '>=8'} 1246 | dependencies: 1247 | has-flag: 4.0.0 1248 | dev: true 1249 | 1250 | /supports-preserve-symlinks-flag/1.0.0: 1251 | resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} 1252 | engines: {node: '>= 0.4'} 1253 | dev: true 1254 | 1255 | /tar-fs/2.1.1: 1256 | resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} 1257 | dependencies: 1258 | chownr: 1.1.4 1259 | mkdirp-classic: 0.5.3 1260 | pump: 3.0.0 1261 | tar-stream: 2.2.0 1262 | dev: true 1263 | 1264 | /tar-stream/2.2.0: 1265 | resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} 1266 | engines: {node: '>=6'} 1267 | dependencies: 1268 | bl: 4.1.0 1269 | end-of-stream: 1.4.4 1270 | fs-constants: 1.0.0 1271 | inherits: 2.0.4 1272 | readable-stream: 3.6.0 1273 | dev: true 1274 | 1275 | /tar/6.1.11: 1276 | resolution: {integrity: sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==} 1277 | engines: {node: '>= 10'} 1278 | dependencies: 1279 | chownr: 2.0.0 1280 | fs-minipass: 2.1.0 1281 | minipass: 3.3.3 1282 | minizlib: 2.1.2 1283 | mkdirp: 1.0.4 1284 | yallist: 4.0.0 1285 | dev: false 1286 | 1287 | /timediff/1.1.1: 1288 | resolution: {integrity: sha512-0jw2uAy2Wc+tlKo/puWa2U20NwGkadyh0qSxz/paWWay1dR+4V82BQJ4/s+ebk89tN/+W2Al5YZp7K6cVTDevg==} 1289 | engines: {node: '>=0.10.0'} 1290 | hasBin: true 1291 | dependencies: 1292 | moment: 2.29.3 1293 | dev: false 1294 | 1295 | /to-fast-properties/2.0.0: 1296 | resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} 1297 | engines: {node: '>=4'} 1298 | dev: true 1299 | 1300 | /to-regex-range/5.0.1: 1301 | resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} 1302 | engines: {node: '>=8.0'} 1303 | dependencies: 1304 | is-number: 7.0.0 1305 | dev: true 1306 | 1307 | /tr46/0.0.3: 1308 | resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} 1309 | 1310 | /ts-node/10.8.1_qqpsu5gwjto2muvbbvmj4ndcmu: 1311 | resolution: {integrity: sha512-Wwsnao4DQoJsN034wePSg5nZiw4YKXf56mPIAeD6wVmiv+RytNSWqc2f3fKvcUoV+Yn2+yocD71VOfQHbmVX4g==} 1312 | hasBin: true 1313 | peerDependencies: 1314 | '@swc/core': '>=1.2.50' 1315 | '@swc/wasm': '>=1.2.50' 1316 | '@types/node': '*' 1317 | typescript: '>=2.7' 1318 | peerDependenciesMeta: 1319 | '@swc/core': 1320 | optional: true 1321 | '@swc/wasm': 1322 | optional: true 1323 | dependencies: 1324 | '@cspotcode/source-map-support': 0.8.1 1325 | '@tsconfig/node10': 1.0.9 1326 | '@tsconfig/node12': 1.0.11 1327 | '@tsconfig/node14': 1.0.3 1328 | '@tsconfig/node16': 1.0.3 1329 | '@types/node': 16.11.41 1330 | acorn: 8.7.1 1331 | acorn-walk: 8.2.0 1332 | arg: 4.1.3 1333 | create-require: 1.1.1 1334 | diff: 4.0.2 1335 | make-error: 1.3.6 1336 | typescript: 4.7.4 1337 | v8-compile-cache-lib: 3.0.1 1338 | yn: 3.1.1 1339 | dev: true 1340 | 1341 | /tslib/2.4.0: 1342 | resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} 1343 | dev: false 1344 | 1345 | /tunnel-agent/0.6.0: 1346 | resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} 1347 | dependencies: 1348 | safe-buffer: 5.2.1 1349 | dev: true 1350 | 1351 | /type-check/0.3.2: 1352 | resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} 1353 | engines: {node: '>= 0.8.0'} 1354 | dependencies: 1355 | prelude-ls: 1.1.2 1356 | dev: true 1357 | 1358 | /typescript/4.7.4: 1359 | resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==} 1360 | engines: {node: '>=4.2.0'} 1361 | hasBin: true 1362 | dev: true 1363 | 1364 | /typical/4.0.0: 1365 | resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==} 1366 | engines: {node: '>=8'} 1367 | dev: false 1368 | 1369 | /universalify/2.0.0: 1370 | resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} 1371 | engines: {node: '>= 10.0.0'} 1372 | 1373 | /util-deprecate/1.0.2: 1374 | resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} 1375 | 1376 | /v8-compile-cache-lib/3.0.1: 1377 | resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} 1378 | dev: true 1379 | 1380 | /webidl-conversions/3.0.1: 1381 | resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} 1382 | 1383 | /whatwg-url/5.0.0: 1384 | resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} 1385 | dependencies: 1386 | tr46: 0.0.3 1387 | webidl-conversions: 3.0.1 1388 | 1389 | /wide-align/1.1.5: 1390 | resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} 1391 | dependencies: 1392 | string-width: 4.2.3 1393 | 1394 | /word-wrap/1.2.3: 1395 | resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==} 1396 | engines: {node: '>=0.10.0'} 1397 | dev: true 1398 | 1399 | /wrap-ansi/7.0.0: 1400 | resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} 1401 | engines: {node: '>=10'} 1402 | dependencies: 1403 | ansi-styles: 4.3.0 1404 | string-width: 4.2.3 1405 | strip-ansi: 6.0.1 1406 | dev: true 1407 | 1408 | /wrappy/1.0.2: 1409 | resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} 1410 | 1411 | /ws/8.8.0: 1412 | resolution: {integrity: sha512-JDAgSYQ1ksuwqfChJusw1LSJ8BizJ2e/vVu5Lxjq3YvNJNlROv1ui4i+c/kUUrPheBvQl4c5UbERhTwKa6QBJQ==} 1413 | engines: {node: '>=10.0.0'} 1414 | peerDependencies: 1415 | bufferutil: ^4.0.1 1416 | utf-8-validate: ^5.0.2 1417 | peerDependenciesMeta: 1418 | bufferutil: 1419 | optional: true 1420 | utf-8-validate: 1421 | optional: true 1422 | dev: false 1423 | 1424 | /y18n/5.0.8: 1425 | resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} 1426 | engines: {node: '>=10'} 1427 | dev: true 1428 | 1429 | /yallist/4.0.0: 1430 | resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} 1431 | 1432 | /yargs-parser/20.2.9: 1433 | resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} 1434 | engines: {node: '>=10'} 1435 | dev: true 1436 | 1437 | /yargs/16.2.0: 1438 | resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} 1439 | engines: {node: '>=10'} 1440 | dependencies: 1441 | cliui: 7.0.4 1442 | escalade: 3.1.1 1443 | get-caller-file: 2.0.5 1444 | require-directory: 2.1.1 1445 | string-width: 4.2.3 1446 | y18n: 5.0.8 1447 | yargs-parser: 20.2.9 1448 | dev: true 1449 | 1450 | /yn/3.1.1: 1451 | resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} 1452 | engines: {node: '>=6'} 1453 | dev: true 1454 | --------------------------------------------------------------------------------